joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42f7d0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x473798
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
call fcn.0042a0d0
test eax, eax
je 0x42f8d8
lea ecx, [esp + 0xc]
call fcn.00403330
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x3c], 0
call fcn.0042a0d0
mov ecx, eax
call fcn.00427890
test eax, eax
je 0x42f8bf
mov eax, dword [esp + 0x1c]
test eax, eax
mov ebp, eax
je 0x42f8bf
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x42f8bf
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
neg esi
push edi
push ebx
sbb esi, esi
and esi, edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, ebp
mov edi, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.00403530
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
pop edi
jne 0x42f8a1
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x42f8bf
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [0x4f3e10]
push ebx
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0xc], 0x4c54b8
call fcn.00403530
mov ecx, dword [esp + 0x20]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x10
Function at 0x42f920
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.0042a0d0
test eax, eax
je 0x42fa0f
mov ecx, edi
call fcn.0042a0d0
mov ecx, eax
call fcn.00427740
test eax, eax
jne 0x42fa0f
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x42fa0f
mov eax, dword [0x4f3e10]
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
jne 0x42f982
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
lea ecx, [esp + 0x10]
mov ebp, dword [esp + 0x24]
push 1
push ecx
mov ecx, dword [edi + 0x44]
lea edx, [esp + 0x1c]
shr ecx, 4
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x2c]
and ecx, 1
push eax
push ecx
push ebp
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov ecx, edi
call fcn.0042a0d0
mov ecx, eax
call fcn.00427970
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x28]
mov eax, 1
cmp ecx, eax
jne 0x42fa0f
cmp ebx, eax
jne 0x42fa0f
cmp dword [esp + 0x10], eax
jne 0x42f9f5
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xcc]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [edi]
push eax
mov eax, dword [esp + 0x24]
push ecx
push ebp
push eax
mov ecx, edi
call dword [edx + 0xc0]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x432630
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x473a28
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x432669
inc eax
mov dword [esi + 0x10], eax
jmp 0x43277c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x43267d
mov eax, 0xffffffc7
jmp 0x43277e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x43268e
cmp dword [esi + 8], eax
jne 0x43267d
cmp dword [esi + 8], eax
jne 0x4326a7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x4326a7
mov eax, 0xffffffc7
jmp 0x43277e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x4326bb
push eax
mov ecx, ebx
call fcn.00431e60
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00403330
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x4326ec
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00403350
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.004315d0
test eax, eax
mov dword [esp + 0x38], eax
je 0x43271f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4c54b8
call fcn.00403530
mov eax, dword [esp + 0x38]
jmp 0x43277e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00432490
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x432763
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.004324b0
mov esi, eax
test esi, esi
jne 0x432793
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00432490
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x432735
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4c54b8
call fcn.00403530
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4c54b8
call fcn.00403530
mov eax, esi
jmp 0x43277e

Function at 0x4358b0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x435910
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x435910
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x435910
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x435910
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x435950
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x43baa0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x474058
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.0046b07f
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043b440
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0046afad
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00467794
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00467794
push 1
push 0
push 0
mov ecx, esi
call fcn.0046773c
push 1
push 0
push 1
mov ecx, esi
call fcn.0046773c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0046b0f1
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43bc20
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x474078
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0046b07f
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043b440
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0046afad
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x43bce4
cmp dword [esp + 0x40], 1
jne 0x43bce2
cmp ecx, eax
jge 0x43bce4
mov eax, ecx
cmp eax, 0xc8
jge 0x43bcf0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043baa0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0046b0f1
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43c470
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4740e3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00465bb4
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0046b327
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0046c87f
test eax, eax
je 0x43c58c
mov ecx, dword [esp + 0x3c]
call fcn.0046b354
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43c550
push edi
mov ecx, esi
call fcn.00468918
mov ecx, esi
call fcn.0043c6f0
cmp dword [esp + 0x38], 1
jne 0x43c585
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00468a82
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x43efa0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43efd3
push esi
call fcn.00442090
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43efcc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43f059
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43f042
mov eax, dword [esi + 8]
test eax, eax
je 0x43eff7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43f03e
cmp eax, 2
je 0x43f042
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43efea
cmp eax, 3
je 0x43f01d
cmp eax, 1
jne 0x43efea
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43efea
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43efea
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043f080
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43f068
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043f080
add esp, 4
pop esi
ret

Function at 0x4669aa
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4669e2
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00464a61
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00464a39
jmp 0x4669ee
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46809c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4680de
call fcn.0046dd8b
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4680de
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4680d5
xor eax, eax
jmp 0x4680e6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004680ec
pop edi
pop esi
pop ebx
ret 4

Function at 0x46e2bb
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46e2e9
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46e307
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046e221
jmp 0x46e307
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46e307
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046e221
test edi, edi
mov eax, edi
jne 0x46e2f1
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40632d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x40633c
pop dword [ebp - 0x18]
mov eax, 0x82ad733f
sub eax, 0x826d1003
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x17e02990
add dword [ebp - 0x28], 0x36721bbb
mov dword [ebp - 0x24], 0xa793efd8
add dword [ebp - 0x24], 0x8a9f5c6d
mov dword [ebp - 0x20], 0xe4bf7eca
add dword [ebp - 0x20], 0x678cc564
mov dword [ebp - 0x1c], 0xf6b3f13
add dword [ebp - 0x1c], 0xf094c0ed
lea eax, [ebp - 0x28]
push eax
mov eax, 0x6a50d4af
add eax, 0x95ef9bb1
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x2f156c4b
sub dword [ebp - 0x28], 0xbaa302f5
mov dword [ebp - 0x24], 0x371adb85
add dword [ebp - 0x24], 0xa5185f0
mov dword [ebp - 0x20], 0xedf52058
sub dword [ebp - 0x20], 0x8a85b3ec
mov dword [ebp - 0x1c], 0x63a4280
sub dword [ebp - 0x1c], 0x63a4280
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x38111
push 0
call eax
mov ecx, 0x4dcb
xor edi, edi
add edi, eax
mov esi, 0x2de2aae6
add esi, 0xd25e551a
add esi, dword [ebp - 0x18]
mov ebx, 0x54c88f3d
sub dword [ebp - 8], edx
mov edx, dword [esi]
add dword [ebp - 0xc], 0xf4102d64
xor edx, ebx
mov dword [edi], edx
mov dword [ebp - 4], 0x67becfbc
add edi, 0xf90ae48d
sub edi, 0xf90ae489
add esi, 0x188b7ed0
add esi, 0xe7748134
loop 0x40644f
add eax, 0xa6dc3f65
add eax, 0x5924ea9a
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x25d38337
sub ecx, 0x25938337
add ecx, dword [ebp - 0x18]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x401c70
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x468acf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebx
push esi
push edi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], esp
mov ebx, 1
push 0x48e488
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.0045dd36
mov eax, dword [ebp + 0x1c]
mov byte [ebp - 4], 3
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x401d1e
mov esi, dword [ebp + 8]
push 0x48e488
mov ecx, esi
call fcn.0045dd36
mov dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.0045dcc8
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x401ded
mov al, byte [ecx - 1]
test al, al
je 0x401de3
cmp al, 0xff
je 0x401de3
dec al
mov byte [ecx - 1], al
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x11c]
push 0x104
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x11c]
push ecx
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameA
lea edi, [ebp - 0x11c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x401d7d
lea edx, [ebp - 0x11c]
lea eax, [ebp + 0x1c]
push edx
push eax
call fcn.00401a20
add esp, 8
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.0045de01
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 3
call fcn.0045dcc8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401d91
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, esi
mov dword [ebp - 4], 2
call fcn.0045da3d
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], bl
or ecx, ebx
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x14]
call fcn.0045dcc8
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x401ded
mov al, byte [ecx - 1]
test al, al
je 0x401de3
cmp al, 0xff
je 0x401de3
dec al
mov byte [ecx - 1], al
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
dec ecx
push ecx
call fcn.0045da32
add esp, 4
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402680
Capabilities:
Get file version info

Disassembly:
sub esp, 0x118
lea eax, [esp + 0x10]
push ebx
mov ebx, dword [esp + 0x120]
push esi
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jbe 0x4027a6
push edi
call fcn.0045da09
add esp, 4
mov esi, eax
push esi
push edi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40279d
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
xor ecx, ecx
xor edx, edx
mov cx, word [eax + 2]
mov dx, word [eax]
push ecx
push edx
lea eax, [esp + 0x28]
push str.StringFileInfo_04x_04xCompanyName
push eax
call edi
add esp, 0x10
lea ecx, [esp + 0x18]
lea edx, [esp + 0xc]
lea eax, [esp + 0x20]
push ecx
push edx
push eax
push esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x28], 0
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40273f
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40273f
mov ecx, dword [esp + 0x12c]
push eax
call fcn.0045de51
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov dword [esp + 0xc], 0
xor edx, edx
mov cx, word [eax + 2]
mov dx, word [eax]
push ecx
push edx
lea eax, [esp + 0x28]
push str.StringFileInfo_04x_04xProductVersion
push eax
call edi
add esp, 0x10
lea ecx, [esp + 0x14]
lea edx, [esp + 0xc]
lea eax, [esp + 0x20]
push ecx
push edx
push eax
push esi
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x14]
test eax, eax
je 0x402799
mov eax, dword [esp + 0xc]
test eax, eax
je 0x402799
mov ecx, dword [esp + 0x130]
push eax
call fcn.0045de51
test esi, esi
je 0x4027a6
push esi
call fcn.0045da32
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x118
ret

Function at 0x4027b0
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push esi
test eax, eax
je 0x4027fa
cmp byte [eax], 0
je 0x4027fa
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x4027fa
cmp esi, 0xffffffff
je 0x4027fa
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret
or eax, 0xffffffff
pop esi
ret
Function at 0x4036b0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x154
push ebp
push esi
push edi
mov edi, ecx
push 0
push 2
mov dword [esp + 0x2c], edi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [esp + 0x38]
push eax
push esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x40], 0x128
call sub.KERNEL32.dll_Process32First
mov dword [esp + 0x20], eax
mov eax, dword [0x48e404]
push eax
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x1c]
push ecx
mov ecx, 0x48e400
call fcn.004058c0
mov eax, dword [0x48e41c]
mov ebp, dword [eax]
cmp ebp, eax
je 0x403821
push ebx
mov ecx, dword [ebp + 0xc]
mov edx, dword [0x48e404]
mov ebx, dword [0x48e484]
mov dword [esp + 0x14], ecx
mov esi, dword [edx + 4]
mov edi, edx
cmp esi, ebx
mov al, 1
je 0x403744
mov eax, dword [esi + 0xc]
mov edi, esi
cmp ecx, eax
setb al
test al, al
je 0x40373d
mov esi, dword [esi]
jmp 0x403740
mov esi, dword [esi + 8]
cmp esi, ebx
jne 0x40372b
mov bl, byte [0x48e408]
test bl, bl
je 0x40375b
lea edx, [esp + 0x14]
lea eax, [esp + 0x34]
push edx
push edi
push esi
jmp 0x403772
test al, al
mov dword [esp + 0x18], edi
je 0x403797
cmp edi, dword [edx]
jne 0x40378a
lea edx, [esp + 0x14]
lea eax, [esp + 0x30]
push edx
push edi
push esi
push eax
mov ecx, 0x48e400
call fcn.00406fe0
mov ecx, dword [eax]
mov byte [esp + 0x20], 1
mov dword [esp + 0x1c], ecx
jmp 0x4037db
lea ecx, [esp + 0x18]
call fcn.00407990
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
cmp dword [edx + 0xc], ecx
jae 0x4037c3
lea eax, [esp + 0x13]
lea ecx, [esp + 0x14]
push eax
push ecx
push edi
lea edx, [esp + 0x44]
push esi
push edx
mov ecx, 0x48e400
mov byte [esp + 0x27], 1
call fcn.00406fe0
push eax
jmp 0x4037d2
lea eax, [esp + 0x13]
lea ecx, [esp + 0x18]
push eax
mov byte [esp + 0x17], 0
push ecx
lea ecx, [esp + 0x24]
call fcn.00405a00
mov eax, dword [ebp + 8]
mov ecx, dword [0x48e47c]
cmp eax, ecx
je 0x4037f3
push eax
call fcn.00406060
add esp, 4
jmp 0x40380a
mov eax, dword [ebp + 4]
cmp ebp, dword [eax + 8]
jne 0x403805
mov ebp, eax
mov eax, dword [eax + 4]
cmp ebp, dword [eax + 8]
je 0x4037fb
cmp dword [ebp + 8], eax
je 0x40380c
mov ebp, eax
cmp ebp, dword [0x48e41c]
jne 0x40370d
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
pop ebx
mov eax, dword [esp + 0x20]
test eax, eax
je 0x403844
lea edx, [esp + 0x38]
mov ecx, edi
push edx
call fcn.00402800
lea eax, [esp + 0x38]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x403829
call fcn.00403060
test esi, esi
je 0x403854
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
add esp, 0x154
ret