joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d9360
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x584ad3
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.00573dd5
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_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.005796c4
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0057b5e4
test eax, eax
je 0x4d947c
mov ecx, dword [esp + 0x3c]
call fcn.005796f1
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 0x4d9440
push edi
mov ecx, esi
call fcn.00576cf0
mov ecx, esi
call fcn.004d9620
cmp dword [esp + 0x38], 1
jne 0x4d9475
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.00576e46
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 0x4db650
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4db683
push esi
call fcn.004e98c0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4db67c
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 0x4db709
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4db6f2
mov eax, dword [esi + 8]
test eax, eax
je 0x4db6a7
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 0x4db6ee
cmp eax, 2
je 0x4db6f2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4db69a
cmp eax, 3
je 0x4db6cd
cmp eax, 1
jne 0x4db69a
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 0x4db69a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4db69a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004db730
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4db718
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004db730
add esp, 4
pop esi
ret

Function at 0x4dbfb0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4dbfd1
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x4dbfd1
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4dbfd1
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4f9eb0
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [ecx]
test eax, eax
jne 0x4f9ebb
pop ecx
ret 8
mov edx, dword [esp + 0xc]
lea ecx, [esp]
push 0
push ecx
mov ecx, dword [esp + 0x10]
push edx
push ecx
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ecx
ret 8
Function at 0x4fa1e0
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
xor edi, edi
cmp ebx, edi
mov word [ebp], di
je 0x4fa33c
mov esi, dword [esp + 0x1c]
cmp esi, edi
je 0x4fa33c
push 0xf0000000
push 1
push edi
lea eax, [esp + 0x28]
push edi
push eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x24], edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4fa313
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push edi
push edi
push 0x8003
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4fa313
mov eax, dword [esp + 0x20]
push edi
push esi
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4fa313
mov edx, dword [esp + 0x20]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
lea ecx, [esp + 0x18]
push edi
push ecx
push edi
push 2
push edx
mov dword [esp + 0x2c], 4
call esi
test eax, eax
je 0x4fa313
mov eax, dword [esp + 0x18]
push eax
call fcn.00560a47
mov ebx, eax
add esp, 4
cmp ebx, edi
je 0x4fa313
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x18]
push edi
push ecx
push ebx
push 2
push edx
call esi
cmp eax, edi
mov dword [esp + 0x10], eax
je 0x4fa30a
mov eax, dword [esp + 0x18]
cmp eax, 0x10
jb 0x4fa2da
mov eax, ebx
mov ecx, ebp
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
jmp 0x4fa306
mov ecx, eax
mov esi, ebx
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x10
lea edi, [ebp + eax*2]
sub ecx, eax
xor eax, eax
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
xor edi, edi
mov word [ebp + 0x20], di
push ebx
call fcn.0056095e
add esp, 4
mov eax, dword [esp + 0x20]
cmp eax, edi
je 0x4fa322
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x4fa332
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x4fa350
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xc
test eax, eax
je 0x4fa377
cmp word [eax], 0x5a4d
jne 0x4fa377
mov ecx, dword [eax + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4fa377
test word [eax + 4], 0x14c
jne 0x4fa37f
xor eax, eax
add esp, 0xc
ret 8
mov edx, dword [eax + 0x54]
mov cx, word [eax + 6]
push ebx
mov dword [esp + 4], edx
push ebp
xor edx, edx
mov dx, word [eax + 0x14]
push esi
mov esi, dword [eax + 0x50]
push edi
mov edi, dword [esp + 0x24]
mov word [esp + 0x14], cx
lea ecx, [edx + eax + 0x18]
mov eax, dword [edi]
mov dword [esp + 0x18], ecx
test eax, eax
jne 0x4fa3c8
cmp esi, dword [0x8c4024]
jne 0x4fa3b8
xor esi, esi
push 0
push esi
mov ecx, edi
call fcn.004f71b0
mov edx, dword [edi]
mov dword [edx], esi
jmp 0x4fa406
mov ebx, dword [eax]
mov eax, dword [eax + 0xc]
cmp eax, esi
jae 0x4fa3e2
lea eax, [eax + esi + 0x1000]
push 0
push eax
mov ecx, edi
call fcn.004f71b0
mov ecx, dword [edi]
cmp esi, ebx
mov dword [ecx], esi
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov eax, dword [eax]
mov byte [edx + eax], 0
ja 0x4fa406
jae 0x4fa406
mov ecx, dword [edi]
inc esi
cmp esi, ebx
mov edx, dword [ecx + 8]
mov byte [edx + esi - 1], 0
jb 0x4fa3f7
mov edi, dword [edi]
test edi, edi
je 0x4fa411
mov ebp, dword [edi + 8]
jmp 0x4fa413
xor ebp, ebp
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x20]
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x24], ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
test cx, cx
jbe 0x4fa494
mov ebx, dword [esp + 0x18]
lea eax, [ebx + 0xc]
lea edx, [ebx + 0x14]
add ebx, 0x10
and ecx, 0xffff
mov dword [esp + 0x10], ecx
mov edi, dword [eax]
test edi, edi
je 0x4fa480
mov ecx, dword [ebx]
test ecx, ecx
je 0x4fa480
mov esi, dword [edx]
add edi, ebp
add esi, dword [esp + 0x20]
mov ebp, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
mov ebp, dword [esp + 0x24]
and ecx, 3
add ebx, 0x28
add edx, 0x28
add eax, 0x28
rep movsb byte es:[edi], byte [esi]
jmp 0x4fa489
add ebx, 0x28
add edx, 0x28
add eax, 0x28
mov ecx, dword [esp + 0x10]
dec ecx
mov dword [esp + 0x10], ecx
jne 0x4fa44f
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8

Function at 0x4ffb5d
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x585168
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [esp + 0x28]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edx, dword [esi + 0x40]
test edx, edx
setne bl
inc ebx
test eax, eax
je 0x4ffb73
or bh, 0x80
lea ecx, [esp + 0xc]
call fcn.005092b0
mov edx, dword [esp + 0x30]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x28], 0
push ecx
push edx
lea ecx, [esp + 0x14]
call fcn.005097b0
lea eax, [esp + 0xc]
push ebx
push eax
mov ecx, esi
call fcn.004ffbe0
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0xc], 0x918ec8
call fcn.005094b0
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 8
Function at 0x5088f0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x13c]
push edi
test eax, eax
jle 0x50893c
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x50893c
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x508926
push eax
call ebp
test ax, ax
jl 0x508934
inc esi
add edi, 4
cmp esi, 6
jb 0x508918
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.005085f0
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x50b9f0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x50ba50
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x50ba50
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x50ba50
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x50ba50
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 0x50ba90
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 0x517550
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x51755b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x51765e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x919a78]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x919a78]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x919a78]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x919a78]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x919a78]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x919a78]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x919a78]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x919a78]
xor eax, edx
inc ecx
dec edi
jne 0x517576
pop edi
test esi, esi
je 0x517680
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x919a78]
xor eax, edx
inc ecx
dec esi
jne 0x517662
pop esi
pop ebx
not eax
ret
Function at 0x521680
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
push edi
mov ecx, dword [esp + 0x10]
push eax
push ecx
push esi
mov byte [esi + 0x40], 1
call fcn.00562295
mov al, byte [esi + 0x40]
add esp, 0xc
test al, al
je 0x5216ba
lea edi, [esi + 0x20]
push 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jg 0x5216ba
mov byte [edi], 0x30
mov byte [esi + 0x21], 0
mov eax, esi
pop edi
pop esi
ret 8

Function at 0x521870
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov edi, dword [0x98fea4]
test edi, edi
jne 0x5218a6
lea eax, [esp + 0x1c]
push 0x1c
push eax
push 0x5219e0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
mov ecx, dword [esp + 0x20]
neg eax
sbb eax, eax
and eax, ecx
mov edi, eax
push 0x95c3a0
push str.E2EE_IDR_DLL
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
jne 0x5218ca
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x28
ret
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
mov dword [esp + 0x10], esi
jne 0x5218e9
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x28
ret
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x18], ebp
jne 0x521908
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x28
ret
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
mov dword [esp + 0x14], edi
jne 0x521926
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 0x28
ret
mov ebx, dword [esp + 0x3c]
push ebx
push esi
push edi
call fcn.00521a10
add esp, 0xc
test al, al
jne 0x5219ca
mov eax, dword [ebx + 8]
mov ebp, esi
shr ebp, 6
inc ebp
shl ebp, 6
cmp ebp, eax
jbe 0x5219a9
mov ecx, dword [ebx]
push ebp
mov dword [esp + 0x40], ecx
call fcn.00560a47
mov ecx, ebp
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x521991
mov esi, dword [esp + 0x3c]
mov edi, dword [ebx]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x5219a2
push eax
call fcn.0056095e
add esp, 4
mov edi, dword [esp + 0x14]
mov dword [ebx + 8], ebp
mov ecx, dword [ebx]
mov dword [ebx + 4], esi
mov ebp, dword [esp + 0x18]
mov byte [ecx + esi], 0
mov ecx, esi
mov edx, ecx
mov esi, edi
mov edi, dword [ebx]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret
Function at 0x521c50
Capabilities:
Delete file

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp byte [esi + 0xc], bl
je 0x521cc0
mov eax, dword [esi + 4]
sub eax, ebx
je 0x521cbd
dec eax
je 0x521c91
dec eax
jne 0x521cbd
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x521cbd
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp eax, 1
jne 0x521cbd
mov byte [esi + 0xd], bl
mov dword [esi + 8], ebx
mov dword [esi + 4], 0xffffffff
mov byte [esi + 0xc], bl
mov byte [esi + 0xd], bl
pop esi
pop ebx
ret
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x521cbd
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp eax, 1
jne 0x521cbd
lea eax, [esi + 0xd]
mov dword [esi + 8], ebx
push eax
mov byte [eax], bl
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [esi + 4], 0xffffffff
mov byte [esi + 0xc], bl
mov byte [esi + 0xd], bl
pop esi
pop ebx
ret

Function at 0x521cd0
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, dword [esp + 0xc]
mov edi, esi
push ecx
or ecx, 0xffffffff
xor eax, eax
push 0x95c3a4
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, esi
push ecx
call fcn.00562295
add esp, 0xc
mov eax, esi
pop edi
pop esi
ret 0xc

Function at 0x521d10
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
push edi
mov al, byte [esi + 0xc]
test al, al
je 0x521d69
mov eax, dword [esi + 4]
push ebx
xor edi, edi
xor bl, bl
sub eax, edi
je 0x521dd4
dec eax
je 0x521dad
dec eax
jne 0x521d60
mov eax, dword [esi + 8]
cmp eax, edi
je 0x521dd4
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp eax, 1
jne 0x521dd4
mov dword [esi + 8], edi
mov byte [esi + 0xd], 0
mov bl, al
mov dword [esi + 4], 0xffffffff
mov byte [esi + 0xc], 0
test bl, bl
mov byte [esi + 0xd], 0
pop ebx
je 0x521dd8
mov edi, dword [esp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esi + 8], eax
je 0x521dd8
or ecx, 0xffffffff
xor eax, eax
mov byte [esi + 0xc], 1
mov dword [esi + 4], 2
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esi + 0xd]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov al, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
ret 4
mov eax, dword [esi + 8]
cmp eax, edi
je 0x521dd4
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp eax, 1
jne 0x521dd4
lea eax, [esi + 0xd]
mov dword [esi + 8], edi
push eax
mov bl, 1
mov byte [eax], 0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x521d55
xor bl, bl
jmp 0x521d60
pop edi
xor al, al
pop esi
ret 4
Function at 0x521de0
Capabilities:
Delete file

Disassembly:
push ebx
push esi
mov esi, ecx
xor bl, bl
mov al, byte [esi + 0xc]
test al, al
je 0x521e29
mov eax, dword [esi + 4]
sub eax, 0
je 0x521e6b
dec eax
je 0x521e2e
dec eax
jne 0x521e25
mov eax, dword [esi + 8]
test eax, eax
je 0x521e6b
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp eax, 1
jne 0x521e6b
mov byte [esi + 0xd], bl
mov dword [esi + 8], 0
mov bl, al
mov dword [esi + 4], 0xffffffff
mov byte [esi + 0xc], 0
mov byte [esi + 0xd], 0
mov al, bl
pop esi
pop ebx
ret
mov eax, dword [esi + 8]
test eax, eax
je 0x521e6b
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp eax, 1
jne 0x521e6b
lea eax, [esi + 0xd]
mov dword [esi + 8], 0
push eax
mov bl, 1
mov byte [eax], 0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [esi + 4], 0xffffffff
mov byte [esi + 0xc], 0
mov byte [esi + 0xd], 0
mov al, bl
pop esi
pop ebx
ret
xor bl, bl
mov byte [esi + 0xd], bl
mov al, bl
pop esi
pop ebx
ret

Function at 0x5281b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x8c
lea eax, [esp]
push esi
push eax
push 1
push 0
push str.Control_PanelDesktop
push reloc.WS2_32.dll_accept
mov esi, 3
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x528223
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push str.WheelScrollLines
push ecx
mov dword [esp + 0x20], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x528218
push 0xa
lea edx, [esp + 0x14]
push eax
push edx
call fcn.00562ce9
add esp, 0xc
mov esi, eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x8c
ret
Function at 0x539560
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x5869d6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov eax, dword [0x96f1e8]
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], eax
lea ecx, [esp + 8]
xor ebx, ebx
push ecx
mov ecx, esi
mov dword [esp + 0xac], ebx
call fcn.00574bca
cmp dword [0x9a8438], ebx
je 0x5395d0
lea ecx, [esp + 8]
mov dword [esp + 0xa8], 0xffffffff
call fcn.005727bd
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
add esp, 0xa4
ret
mov edx, dword [0x96f1e8]
push ebp
push edi
mov edi, 1
mov dword [0x9a8438], edi
mov dword [esp + 0x40], edx
cmp esi, ebx
mov byte [esp + 0xb0], 1
jne 0x5395f9
mov dword [esp + 0x20], ebx
jmp 0x539600
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x20], eax
mov ecx, esi
call fcn.00576d32
mov ecx, dword [esi + 0x84]
mov edx, dword [esi + 0x88]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x2c], 0xffffff96
mov dword [esp + 0x38], 5
mov dword [esp + 0x34], edx
call fcn.005728aa
mov eax, dword [esi + 0x9c]
mov ecx, dword [esi + 0x94]
mov edx, dword [esi + 0x1c]
cmp eax, ebx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x1c], edx
jne 0x53965e
mov dword [esp + 0x14], ebx
jmp 0x539665
mov ebp, dword [eax + 0x1c]
mov dword [esp + 0x14], ebp
cmp ecx, 0xd
jne 0x53967f
mov eax, dword [eax + 0x3c8]
cmp eax, edi
je 0x539679
cmp eax, 2
jne 0x53967f
mov dword [esp + 0x18], edi
jmp 0x539683
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 0x20]
cmp eax, ebx
jne 0x539691
push edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.00574200
mov edi, eax
cmp edi, ebx
jne 0x5396a1
xor eax, eax
jmp 0x5396a4
mov eax, dword [edi + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x5396cc
mov ecx, esi
call fcn.00576d32
mov edx, dword [edi + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push eax
push 0x4e
push edx
call ebp
mov esi, dword [esp + 0x1c]
push esi
call ebx
test eax, eax
je 0x5396e4
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x18]
mov dword [0x9a8438], 0
test eax, eax
je 0x53970d
mov esi, dword [esp + 0x14]
push esi
call ebx
test eax, eax
je 0x53970d
push 1
push 0xd
push 0x100
push esi
call ebp
lea ecx, [esp + 0x40]
mov byte [esp + 0xb0], 0
call fcn.005727bd
lea ecx, [esp + 0x10]
mov dword [esp + 0xb0], 0xffffffff
call fcn.005727bd
mov ecx, dword [esp + 0xa8]
pop edi
pop ebp
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0xa4
ret
Function at 0x53b620
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x586bc8
mov eax, dword fs:[ScaleWindowExtEx]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0057941c
push ExcludeClipRect
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov ecx, esi
mov dword [esp + MoveToExx44], 0
call fcn.0053b560
mov ecx, dword [esi + 0x174]
mov eax, dword [esi + 0x178]
add ecx, 0x64
add eax, 0x64
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0057934a
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 0x53b6e7
cmp dword [esp + 0x40], 1
jne 0x53b6e5
cmp ecx, eax
jge 0x53b6e7
mov eax, ecx
cmp eax, 0x12c
jge 0x53b6f3
mov eax, 0x12c
mov ecx, esi
mov dword [esi + 0x194], eax
mov dword [esi + 0x1dc], 1
call fcn.0053b740
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.0057948e
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8