joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4af660
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f1808
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5470b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [ebp + 8]
mov ecx, dword [ecx + 0xc]
push esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4af6dc
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4af6c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x18], esp
mov ebx, esp
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
push eax
lea edi, [ebp - 0x14]
lea esi, [ebp - 0x10]
call fcn.00425486
add eax, 0x10
add esp, 4
mov dword [ebx], eax
call fcn.00478230
add esp, 4
or edx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
test eax, eax
mov eax, dword [ebp + 8]
jne 0x4af74a
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4af6c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4af763
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4b1920
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebx + 0x3c]
movzx ecx, word [eax + ebx + 0x14]
add eax, ebx
push esi
push edi
movzx edi, word [eax + 6]
lea edx, [ecx + eax + 0x18]
xor ecx, ecx
mov dword [ebp - 4], edx
test edi, edi
jle 0x4b1968
lea eax, [edx + 8]
mov edx, dword [eax]
mov esi, edx
test edx, edx
jne 0x4b194f
mov esi, dword [eax + 8]
mov edx, dword [eax + 4]
cmp dword [ebp + 8], edx
jb 0x4b1960
add esi, edx
mov edx, dword [ebp + 8]
cmp edx, esi
jb 0x4b1972
inc ecx
add eax, 0x28
cmp ecx, edi
jl 0x4b1944
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
lea eax, [ecx + ecx*4]
mov ecx, dword [ebp - 4]
lea ecx, [ecx + eax*8]
mov eax, dword [ecx + 0x14]
sub eax, dword [ecx + 0xc]
pop edi
add eax, ebx
add eax, edx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4b1990
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f2023
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5470b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
lea edi, [esi + 0x20]
call fcn.004c31da
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4b19dc
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
lea ecx, [ebp + 0xc]
push ecx
mov byte [ebp - 4], 1
mov ecx, edi
mov dword [esi + 0x38], 0
call fcn.00424f20
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
push 0x80
push 3
mov edx, ebx
neg edx
sbb edx, edx
push edi
and edx, 0x116
push 1
add edx, 0x120089
push edx
push eax
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 0x34], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x4b1a4e
push 0x535358
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 0x10], str.Cant_open_file
call fcn.004d8ccc
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edi
cmp edi, edi
ja 0x4b1a85
jb 0x4b1a67
cmp eax, 0x40
jae 0x4b1a85
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x535358
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], str.Incorrect_PE_file__too_small_
call fcn.004d8ccc
mov edx, dword [esi]
xor ecx, ecx
cmp ebx, edi
push edi
setne cl
push edi
push edi
lea ecx, [ecx + ecx + 2]
push ecx
push edi
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 4], eax
cmp eax, edi
jne 0x4b1ac3
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x535358
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 0x10], str.Cant_create_file_mapping
call fcn.004d8ccc
xor edx, edx
cmp ebx, edi
setne dl
push edi
push edi
push edi
lea edx, [edx + edx + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x30], eax
cmp eax, edi
jne 0x4b1b06
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esi]
push ecx
call edi
push 0x535358
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 0x10], str.Cant_create_map_file_view
call fcn.004d8ccc
mov dword [esi + 0x34], 1
mov dword [esi + 0x38], ebx
call fcn.004b1b50
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b1b3b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4b1b50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi + 0x30]
mov ecx, 0x5a4d
mov dword [esi + 0xc], eax
push edi
cmp word [eax], cx
je 0x4b1ba2
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4b1b75
push eax
call edi
mov eax, dword [esi]
test eax, eax
je 0x4b1b83
cmp eax, 0xffffffff
je 0x4b1b83
push eax
call edi
mov edx, dword [esi + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push 0x535358
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], str.Incorrect_PE_file__e_magic___IMAGE_DOS_SIGNATURE_
call fcn.004d8ccc
mov ecx, dword [eax + 0x3c]
xor edx, edx
lea edi, [ecx + 0xf8]
cmp edx, dword [esi + 0x2c]
jb 0x4b1bfc
ja 0x4b1bb9
cmp edi, dword [esi + 0x28]
jb 0x4b1bfc
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4b1bc9
push eax
call edi
mov eax, dword [esi]
test eax, eax
je 0x4b1bd7
cmp eax, 0xffffffff
je 0x4b1bd7
push eax
call edi
cmp dword [esi + 0x34], 0
je 0x4b1be7
mov ecx, dword [esi + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push 0x535358
lea edx, [ebp - 4]
push edx
mov dword [ebp - 4], str.Incorrect_PE_file__header___filesize_
call fcn.004d8ccc
add ecx, eax
mov dword [esi + 0x40], ecx
cmp dword [ecx], 0x4550
je 0x4b1c4c
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4b1c19
push eax
call edi
mov eax, dword [esi]
test eax, eax
je 0x4b1c27
cmp eax, 0xffffffff
je 0x4b1c27
push eax
call edi
cmp dword [esi + 0x34], 0
je 0x4b1c37
mov eax, dword [esi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push 0x535358
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 4], str.Incorrect_PE_file__incorrect_signature_
call fcn.004d8ccc
add ecx, 0x18
push ebx
xor ebx, ebx
mov dword [esi + 0x14], ecx
mov edx, 0x20b
cmp word [ecx], dx
sete bl
mov ecx, ebx
mov dword [esi + 0x3c], ecx
pop ebx
test ecx, ecx
je 0x4b1c7d
mov ecx, dword [eax + 0x3c]
add eax, ecx
mov dword [esi + 0x44], eax
mov edx, dword [esi + 0x44]
add eax, 0x18
mov dword [esi + 0x18], eax
jmp 0x4b1c80
mov edx, dword [esi + 0x40]
mov ax, word [edx + 6]
mov ecx, edx
add ecx, 4
cmp dword [esi + 0x3c], 0
mov dword [esi + 0x10], ecx
mov word [esi + 8], ax
pop edi
je 0x4b1ca4
mov eax, dword [esi + 0x18]
add eax, 0x70
mov dword [esi + 0x1c], eax
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x14]
add eax, 0x60
mov dword [esi + 0x1c], eax
mov esp, ebp
pop ebp
ret
Function at 0x4b3ad0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0
push 0
push 0
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
test ebx, ebx
je 0x4b3afb
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [0x548fe0], 0xffffffff
jne 0x4b3bd0
push ecx
mov ecx, esp
mov dword [ebp - 8], esp
push str.License.dat
call fcn.004247f5
lea eax, [ebp - 8]
push eax
call fcn.00474800
mov esi, dword [eax]
add esp, 8
call fcn.004c31da
test eax, eax
jne 0x4b3b39
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov edi, eax
add edi, 0x10
mov dword [ebp - 4], edi
test esi, esi
je 0x4b3b6f
test esi, 0xffff0000
jne 0x4b3b73
movzx esi, si
push esi
call fcn.004cb124
test eax, eax
je 0x4b3b89
push esi
push eax
lea ecx, [ebp - 4]
call fcn.00424e92
jmp 0x4b3b86
xor eax, eax
jmp 0x4b3b7c
push esi
call fcn.004d1e6a
add esp, 4
push eax
push esi
lea ecx, [ebp - 4]
call fcn.00425415
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b3ba8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, edi
call fcn.004b2e90
mov dword [0x548fe0], eax
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b3bd0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [0x548fe0]
test ebx, ebx
je 0x4b3be8
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b7320
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [eax + 0x38], 0
mov dl, byte [eax + 0x34]
push ebx
push esi
mov dword [ebp - 4], 0
mov ebx, 1
jle 0x4b736b
movzx esi, dl
push edi
nop
mov ecx, dword [eax + 0x260]
mov edi, ecx
shr edi, 0x18
shl ecx, 8
xor edi, esi
xor ecx, dword [edi*4 + 0x5482e8]
mov dword [eax + 0x260], ecx
mov ecx, dword [ebp - 4]
add ecx, ebx
cmp ecx, dword [eax + 0x38]
mov dword [ebp - 4], ecx
jl 0x4b7340
pop edi
mov ecx, dword [eax + 0x34]
mov byte [eax + ecx + 0x58], bl
mov esi, dword [eax + 0x38]
mov ecx, esi
sub ecx, ebx
je 0x4b73f9
sub ecx, ebx
je 0x4b73db
sub ecx, ebx
je 0x4b73cf
mov byte [esi + eax + 0x54], bl
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
mov dl, byte [eax + 0x38]
mov esi, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
sub dl, 4
mov byte [esi + ecx], dl
add dword [eax + 0x44], ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b9610
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x5470b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x110
xor esi, esi
lea eax, [ebp - 0x114]
push esi
push eax
call fcn.004d2a50
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4b9662
cmp dword [ebp - 0x114], 6
lea eax, [esi + 1]
jae 0x4b9664
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004d14fc
mov esp, ebp
pop ebp
ret
Function at 0x4bbaa0
Capabilities:
Write clipboard data

Disassembly:
push ebx
push esi
xor ebx, ebx
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4bbab0
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4bbb07
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4bbb07
mov edx, eax
mov ecx, edi
sub edx, edi
movzx eax, word [ecx]
mov word [edx + ecx], ax
add ecx, 2
test ax, ax
jne 0x4bbae3
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
mov ebx, 1
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x4c0aa0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [ebp + 0x18]
mov esi, dword [eax]
mov ebx, ecx
test esi, esi
je 0x4c0ad6
test ebx, ebx
je 0x4c0ad6
mov dl, byte [esi + edi]
mov ecx, dword [ebp + 8]
xor dl, byte [ecx]
mov eax, dword [ebp + 0xc]
mov byte [eax], dl
inc eax
inc ecx
inc esi
dec ebx
and esi, 0xf
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], ecx
jne 0x4c0ab6
cmp ebx, 0x10
jb 0x4c0b5f
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov eax, ecx
sub eax, edi
mov dword [ebp - 4], eax
mov eax, edx
sub eax, edi
mov dword [ebp - 8], eax
mov eax, ebx
shr eax, 4
mov dword [ebp - 0xc], eax
shl eax, 4
add ecx, eax
add edx, eax
mov dword [ebp + 0xc], ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
push eax
push edi
push ecx
call fcn.00498250
mov edx, dword [ebp + 0x14]
add esp, 0xc
call fcn.004c0a80
cmp esi, 0x10
jae 0x4c0b4a
mov ecx, 0xf
sub ecx, esi
shr ecx, 2
lea eax, [esi + edi]
inc ecx
mov edx, dword [ebp - 8]
mov edx, dword [edx + eax]
xor edx, dword [eax]
mov esi, dword [ebp - 4]
mov dword [esi + eax], edx
add eax, 4
sub ecx, 1
jne 0x4c0b34
mov eax, 0x10
add dword [ebp - 4], eax
add dword [ebp - 8], eax
sub ebx, eax
xor esi, esi
sub dword [ebp - 0xc], 1
jne 0x4c0b08
test ebx, ebx
je 0x4c0bad
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
push eax
push edi
push ecx
call fcn.00498250
mov edx, dword [ebp + 0x14]
add esp, 0xc
call fcn.004c0a80
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
sub edx, edi
lea eax, [esi + edi]
sub ecx, edi
mov dword [ebp - 0xc], edx
add esi, ebx
mov edi, edi
mov dl, byte [eax + ecx]
xor dl, byte [eax]
mov edi, dword [ebp - 0xc]
dec ebx
mov byte [eax + edi], dl
inc eax
test ebx, ebx
jne 0x4c0b90
mov eax, dword [ebp + 0x18]
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x18]
pop edi
mov dword [ecx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c4b45
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x4c4b69
cmp dword [edi + 0x54], 0
jne 0x4c4b69
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.004c553c
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004c4b06
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4cad40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x4cad87
call fcn.004c553c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4cad87
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4cada3
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004ca8b8
mov esi, eax
test edi, edi
je 0x4cada1
test ebx, ebx
je 0x4cada1
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4d14fc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5470b0]
jne 0x4d1506
repz ret
jmp fcn.004da2ad

Function at 0x4e6729
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004d9c11
and dword [ebp - 4], 0
cmp dword [0x54c990], 0
mov ebx, eax
jne 0x4e67da
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4e688b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x504348
push edi
call esi
test eax, eax
je 0x4e688b
push eax
call fcn.004d9b9f
mov dword [esp], 0x504338
push edi
mov dword [0x54c990], eax
call esi
push eax
call fcn.004d9b9f
mov dword [esp], 0x504324
push edi
mov dword [0x54c994], eax
call esi
push eax
call fcn.004d9b9f
mov dword [esp], 0x504308
push edi
mov dword [0x54c998], eax
call esi
push eax
call fcn.004d9b9f
pop ecx
mov dword [0x54c9a0], eax
test eax, eax
je 0x4e67da
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004d9b9f
pop ecx
mov dword [0x54c99c], eax
mov eax, dword [0x54c99c]
cmp eax, ebx
je 0x4e6832
cmp dword [0x54c9a0], ebx
je 0x4e6832
push eax
call fcn.004d9c1a
push dword [0x54c9a0]
mov esi, eax
call fcn.004d9c1a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4e6832
test edi, edi
je 0x4e6832
call esi
test eax, eax
je 0x4e6829
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4e6829
test byte [ebp - 0xc], 1
jne 0x4e6832
or dword [ebp + 0x10], 0x200000
jmp 0x4e686b
mov eax, dword [0x54c994]
cmp eax, ebx
je 0x4e686b
push eax
call fcn.004d9c1a
pop ecx
test eax, eax
je 0x4e686b
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4e686b
mov eax, dword [0x54c998]
cmp eax, ebx
je 0x4e686b
push eax
call fcn.004d9c1a
pop ecx
test eax, eax
je 0x4e686b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x54c990]
call fcn.004d9c1a
pop ecx
test eax, eax
je 0x4e688b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4e688d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401130
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4506f6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push esi
xor esi, esi
mov dword [esp + 8], esi
call fcn.00401100
test al, al
je 0x4011fc
lea eax, [esp + 0xc]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4011fc
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0xc]
call fcn.0044381f
push 0x4678dc
lea edx, [esp + 8]
push eax
push edx
mov dword [esp + 0x128], esi
call fcn.00443a46
lea ecx, [esp + 8]
mov byte [esp + 0x11c], 2
call fcn.004437b1
mov eax, dword [esp + 4]
push 0x4678d8
push eax
call fcn.0042ce91
add esp, 8
cmp eax, esi
jne 0x4011ca
lea ecx, [esp + 0xc]
push ecx
jmp 0x4011d8
push eax
call fcn.0042cde3
add esp, 4
push 0x476b4c
mov esi, dword [esp + 0x128]
mov ecx, esi
call fcn.0044381f
lea ecx, [esp + 4]
mov dword [esp + 0x11c], 0xffffffff
call fcn.004437b1
jmp 0x40120f
mov esi, dword [esp + 0x124]
push 0x476b4c
mov ecx, esi
call fcn.0044381f
mov ecx, dword [esp + 0x114]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x11c
ret
Function at 0x403450
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45078b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
mov eax, dword [0x473630]
push ebx
push esi
push edi
mov dword [esp + 0xc], eax
push 0x66
lea ecx, [esp + 0x10]
mov dword [esp + 0x98], 0
call fcn.00443ce6
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
mov ebx, dword [0x476298]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push 0x4679d0
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x20]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push eax
call ebx
mov esi, dword [esp + 0xa0]
mov edi, dword [esp + 0x9c]
lea ecx, [esp + 0x24]
lea edx, [esp + 0x30]
push ecx
lea eax, [esp + 0x48]
push edx
push eax
push esi
push edi
call fcn.00401950
lea ecx, [esp + 0x44]
lea edx, [esp + 0x58]
push ecx
push edx
lea eax, [esp + 0x74]
push 0x4679c8
push eax
call fcn.0042d27a
add esp, 0x24
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
lea eax, [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push ecx
call ebx
mov edx, dword [esp + 0xa4]
and esi, 0xff
push edx
and edi, 0xff
push esi
push edi
call fcn.004023b0
add esp, 0xc
mov dword [esp + 0x20], eax
push 4
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x24]
push eax
push 4
push 0
push 0x4679e4
push ecx
call dword [0x476294]
mov edx, dword [esp + 0x14]
mov esi, dword [0x476290]
push edx
call esi
mov eax, dword [esp + 0x18]
push eax
call esi
mov ecx, dword [esp + 0x1c]
push ecx
call esi
lea ecx, [esp + 0xc]
mov dword [esp + 0x94], 0xffffffff
call fcn.004437b1
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x8c
ret
Function at 0x409c10
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x451200
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
mov ebx, dword [esp + 0x44]
push esi
mov esi, ecx
test ebx, ebx
jne 0x409c4a
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret 4
push edi
mov ecx, ebx
call fcn.0040bbe8
push eax
lea ecx, [esp + 0x10]
call fcn.0044381f
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x44], 0
rep stosd dword es:[edi], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0x455f64
mov eax, dword [0x473630]
mov dword [esp + 0x4c], eax
mov ecx, ebx
mov byte [esp + 0x44], 2
call fcn.0040bbb9
push eax
lea ecx, [esp + 0x50]
push 0x46b9b0
push ecx
call fcn.004424aa
add esp, 0xc
lea ecx, [esp + 0x4c]
call fcn.00443c9e
mov edi, dword [esp + 0x4c]
call fcn.0044da99
mov eax, dword [eax + 0xc]
push edi
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x14]
call fcn.0044a410
mov edi, dword [esi + 0x40]
test eax, eax
je 0x409ce9
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x48]
push 0xffffff
push edx
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
mov edi, eax
mov ecx, dword [esi + 0x1c]
push 0
push 0
push 0x146
push ecx
mov dword [esp + 0x28], 7
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x20], eax
lea edx, [esp + 0x18]
mov eax, dword [eax - 8]
push edx
mov ecx, esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call fcn.00442961
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.0044a467
lea ecx, [esp + 0x4c]
mov byte [esp + 0x44], 1
call fcn.004437b1
mov dword [esp + 0x10], 0x4582c0
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], 3
call fcn.0044a467
lea ecx, [esp + 0xc]
mov dword [esp + 0x44], 0xffffffff
call fcn.004437b1
mov ecx, dword [esp + 0x3c]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret 4