joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a5b54
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp bl, byte [eax + 0x29e]
je 0x4a5cc3
test bl, bl
jne 0x4a5b7f
mov eax, dword [ebp - 4]
cmp byte [eax + 0x29e], 3
je 0x4a5b90
cmp bl, 3
jne 0x4a5bee
mov eax, dword [ebp - 4]
cmp byte [eax + 0x29e], 0
jne 0x4a5bee
mov eax, dword [ebp - 4]
mov byte [eax + 0x29e], bl
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x4a5cc3
mov eax, dword [ebp - 4]
call fcn.00487a6c
test al, al
je 0x4a5cc3
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x29e], 3
sete al
and eax, 0x7f
mov eax, dword [eax*4 + 0x572024]
push eax
mov eax, dword [ebp - 4]
call fcn.004876c0
push eax
call sub.user32.dll_GetWindowTextW
jmp 0x4a5cc3
cmp bl, 1
jne 0x4a5c09
mov eax, dword [ebp - 4]
cmp byte [eax + 0x29f], 0
jne 0x4a5c09
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.004a604c
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
setne al
xor al, 1
mov byte [ebp - 5], al
cmp byte [ebp - 5], 0
je 0x4a5c28
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.0048954c
xor edx, edx
push ebp
push 0x4a5cbc
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [ebp - 5], 0
je 0x4a5c47
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0xc0]
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x29e]
mov edx, dword [ebp - 4]
mov byte [edx + 0x29e], bl
cmp bl, 2
je 0x4a5c63
cmp al, 2
jne 0x4a5c81
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1e9], 0
jne 0x4a5c81
mov eax, dword [ebp - 4]
call fcn.004a6180
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.0047e92c
cmp byte [ebp - 5], 0
je 0x4a5c8f
mov eax, dword [ebp - 4]
call fcn.00483dc8
cmp bl, 1
jne 0x4a5c9e
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.004a4808
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a5cc3
cmp byte [ebp - 5], 0
je 0x4a5cbb
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0048954c
ret
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x4a5d90
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a5fa4
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
je 0x4a5e24
mov eax, dword [0x57b288]
call fcn.004aaff4
dec eax
test eax, eax
jl 0x4a5e24
inc eax
mov dword [ebp - 4], eax
xor edi, edi
mov edx, edi
mov eax, dword [0x57b288]
call fcn.004aafe0
cmp esi, dword [eax + 0x2b4]
jne 0x4a5e1e
mov edx, edi
mov eax, dword [0x57b288]
call fcn.004aafe0
cmp ebx, eax
je 0x4a5e1e
mov eax, dword [esi + 8]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
lea edx, [ebp - 0x10]
mov eax, dword [0x574b08]
call fcn.0040a9b0
mov ecx, dword [ebp - 0x10]
mov dl, 1
mov eax, dword [0x42ca60]
call fcn.0041918c
call fcn.004060ac
inc edi
dec dword [ebp - 4]
jne 0x4a5dc9
mov eax, dword [ebx + 0x2b4]
test eax, eax
je 0x4a5e35
xor edx, edx
call fcn.0046ea24
test byte [ebx + 0x1c], 8
jne 0x4a5e45
test esi, esi
je 0x4a5e47
test byte [esi + 0x1c], 8
je 0x4a5e47
xor esi, esi
mov dword [ebx + 0x2b4], esi
test esi, esi
je 0x4a5e5a
mov edx, ebx
mov eax, esi
call fcn.00443f48
test esi, esi
je 0x4a5f0d
test byte [ebx + 0x1c], 0x10
jne 0x4a5e75
cmp byte [ebx + 0x299], 3
je 0x4a5f0d
mov eax, dword [ebx + 0x2b4]
cmp byte [eax + 0x64], 0
jne 0x4a5e8a
cmp byte [ebx + 0x29e], 1
jne 0x4a5e90
test byte [ebx + 0x1c], 0x10
je 0x4a5ee8
mov eax, ebx
call fcn.00487a6c
test al, al
je 0x4a5f27
mov eax, dword [ebx + 0x2b4]
mov edx, dword [eax]
call dword [edx + 0x38]
mov edi, eax
mov eax, ebx
call fcn.004876c0
push eax
call sub.user32.dll_CallNextHookEx
cmp edi, eax
je 0x4a5ed6
mov eax, dword [ebx + 0x2b4]
mov edx, dword [eax]
call dword [edx + 0x38]
push eax
mov eax, ebx
call fcn.004876c0
push eax
call sub.user32.dll_GetScrollRange
mov eax, ebx
call fcn.004876c0
mov edx, eax
mov eax, esi
call fcn.0046ea24
jmp 0x4a5f27
cmp byte [ebx + 0x29e], 1
je 0x4a5f27
mov eax, ebx
call fcn.00487a6c
test al, al
je 0x4a5f27
push 0
mov eax, ebx
call fcn.004876c0
push eax
call sub.user32.dll_GetScrollRange
jmp 0x4a5f27
mov eax, ebx
call fcn.00487a6c
test al, al
je 0x4a5f27
push 0
mov eax, ebx
call fcn.004876c0
push eax
call sub.user32.dll_GetScrollRange
cmp byte [ebx + 0x29d], 0
je 0x4a5f39
mov dl, 1
mov eax, ebx
call fcn.004a772c
mov eax, ebx
call fcn.004a5cc8
cmp dword [ebx + 0x2bc], 0
je 0x4a5f8e
test byte [ebx + 0x1c], 0x10
je 0x4a5f8e
cmp dword [ebx + 0x34], 0
je 0x4a5f8e
push 0x37
push 0
push 0
push 0
push 0
push 0
mov eax, ebx
call fcn.004876c0
push eax
call sub.user32.dll_GetWindowTextW
push 0
xor ecx, ecx
mov edx, 0x85
mov eax, ebx
call fcn.0047fc64
push 0
xor ecx, ecx
mov edx, 0xf
mov eax, ebx
call fcn.0047fc64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a5fab
lea eax, [ebp - 0x10]
call fcn.004074ac
ret
Function at 0x4a9f74
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov ebx, eax
test byte [ebx + 0x1c], 0x10
jne 0x4aa04c
cmp dword [0x571fc0], 0
je 0x4aa04c
mov eax, ebx
call fcn.00487a6c
test al, al
je 0x4aa04c
push 0xffffffffffffffec
mov eax, ebx
call fcn.004876c0
push eax
call sub.user32.dll_DispatchMessageW
mov esi, eax
cmp byte [ebx + 0x340], 0
jne 0x4a9fc1
cmp byte [ebx + 0x368], 0
je 0x4aa020
test esi, 0x80000
jne 0x4a9fdf
or esi, 0x80000
push esi
push 0xffffffffffffffec
mov eax, ebx
call fcn.004876c0
push eax
call sub.user32.dll_GetWindowPlacement
movzx eax, byte [ebx + 0x340]
mov eax, dword [eax*4 + 0x572050]
movzx edx, byte [ebx + 0x368]
or eax, dword [edx*4 + 0x572058]
push eax
movzx eax, byte [ebx + 0x341]
push eax
mov eax, dword [ebx + 0x36c]
call fcn.00455e3c
push eax
mov eax, ebx
call fcn.004876c0
push eax
call dword [0x571fc0]
jmp 0x4aa04c
and esi, 0xfff7ffff
push esi
push 0xffffffffffffffec
mov eax, ebx
call fcn.004876c0
push eax
call sub.user32.dll_GetWindowPlacement
push 0x485
push 0
push 0
mov eax, ebx
call fcn.004876c0
push eax
call sub.user32.dll_GetKeyState
pop esi
pop ebx
ret
Function at 0x4ac6e4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
xor edx, edx
mov dword [ebp - 0x2c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4ac895
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 0xac], 0
jne 0x4ac87f
mov eax, dword [0x57505c]
cmp byte [eax], 0
jne 0x4ac87f
push ebx
push fcn.004acfd4
call fcn.004a200c
mov dword [ebx + 0x174], eax
mov eax, fcn.0040c750
mov dword [fcn.0040c750], eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [0x5720f4]
push eax
mov eax, dword [0x578c40]
push eax
call fcn.0040c840
test eax, eax
jne 0x4ac789
mov eax, dword [0x578c40]
mov dword [0x5720e0], eax
push 0x5720d0
call sub.user32.dll_GetKeyboardLayout
test ax, ax
jne 0x4ac789
lea edx, [ebp - 0x2c]
mov eax, dword [0x5749dc]
call fcn.0040a9b0
mov ecx, dword [ebp - 0x2c]
mov dl, 1
mov eax, dword [0x42c9c0]
call fcn.00419150
call fcn.004060ac
push 0x84ca0000
push 0
mov eax, dword [0x574c04]
mov eax, dword [eax]
call eax
sar eax, 1
jns 0x4ac7a0
adc eax, 0
push eax
push 1
mov eax, dword [0x574c04]
mov eax, dword [eax]
call eax
sar eax, 1
jns 0x4ac7b3
adc eax, 0
push eax
push 0
push 0
push 0
push 0
mov eax, dword [0x578c40]
push eax
push 0
mov eax, dword [ebx + 0x8c]
call fcn.00407548
mov ecx, eax
mov edx, dword [0x5720f4]
mov eax, 0x80
call fcn.0040cc6c
mov dword [ebx + 0x170], eax
mov byte [ebx + 0xac], 1
mov eax, dword [ebx + 0x174]
push eax
push 0xfffffffffffffffc
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowPlacement
mov eax, dword [0x574d40]
cmp byte [eax], 0
je 0x4ac83e
mov eax, ebx
call fcn.004ad774
push eax
push 1
push 0x80
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetMenuState
mov eax, ebx
call fcn.004ad774
push eax
push 0xfffffffffffffff2
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindow
push 0
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_DestroyCursor
mov ebx, eax
push 0
push 0xf030
push ebx
call fcn.0040c758
push 0
push 0xf000
push ebx
call fcn.0040c758
mov eax, dword [0x574d40]
cmp byte [eax], 0
je 0x4ac87f
push 0
push 0xf010
push ebx
call fcn.0040c758
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ac89c
lea eax, [ebp - 0x2c]
call fcn.004074ac
ret
Function at 0x4ac9b8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x4aca5a
cmp dword [ebx + 0x94], 0
jne 0x4aca54
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4ac904
call fcn.0040c808
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4aca54
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_CopyIcon
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_DispatchMessageW
test al, 8
je 0x4aca1a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4aca54
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00437e90
push eax
call sub.user32.dll_GetWindowTextW
dec esi
cmp esi, 0xffffffff
jne 0x4aca29
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x4adc48
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov esi, edx
mov edi, eax
xor ebx, ebx
mov eax, dword [esi + 4]
cmp eax, 0x100
jb 0x4add36
cmp eax, 0x109
ja 0x4add36
call fcn.0040c838
mov ebp, eax
test ebp, ebp
jne 0x4adcf8
mov ebp, dword [esi]
mov eax, dword [edi + 0x44]
test eax, eax
je 0x4adc9b
cmp ebp, dword [eax + 0x37c]
jne 0x4adc9b
call fcn.004876c0
mov ebp, eax
jmp 0x4adcb0
push ebp
call sub.user32.dll_CreateAcceleratorTableW
mov ebp, eax
mov eax, ebp
call fcn.0047acd0
test al, al
jne 0x4adcaa
test ebp, ebp
jne 0x4adc93
test ebp, ebp
jne 0x4adcb0
mov ebp, dword [esi]
push ebp
call sub.user32.dll_EnumWindows
test eax, eax
je 0x4adcd9
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi + 8]
push eax
mov eax, dword [esi + 4]
add eax, 0xbc00
push eax
push ebp
call sub.user32.dll_GetMenuState
test eax, eax
je 0x4add36
mov bl, 1
jmp 0x4add36
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi + 8]
push eax
mov eax, dword [esi + 4]
add eax, 0xbc00
push eax
push ebp
call sub.user32.dll_GetMenuStringW
test eax, eax
je 0x4add36
mov bl, 1
jmp 0x4add36
push esp
push ebp
call sub.user32.dll_DrawFrameControl
lea eax, [esp + 4]
push eax
mov eax, dword [edi + 0x170]
push eax
call sub.user32.dll_DrawFrameControl
mov eax, dword [esp]
cmp eax, dword [esp + 4]
jne 0x4add36
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi + 8]
push eax
mov eax, dword [esi + 4]
add eax, 0xbc00
push eax
push ebp
call sub.user32.dll_GetMenuState
test eax, eax
je 0x4add36
mov bl, 1
mov eax, ebx
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4ae494
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.004afb1c
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4ae4c4
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x170]
jmp 0x4ae4c7
mov ebx, dword [ebp - 0x10]
push 2
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [0x574d74]
mov eax, dword [eax]
call eax
mov dword [ebp - 0x14], eax
push 2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x170]
push eax
mov eax, dword [0x574d74]
mov eax, dword [eax]
call eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x18]
je 0x4ae55f
mov dword [ebp - 0x48], 0x28
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [0x574ba0]
mov eax, dword [eax]
call eax
lea eax, [ebp - 0x58]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x170]
push eax
call sub.user32.dll_DrawEdge
push 0x1d
push 0
push 0
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x40]
sub ecx, edx
sar ecx, 1
jns 0x4ae539
adc ecx, 0
add ecx, edx
push ecx
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x44]
sub edx, eax
sar edx, 1
jns 0x4ae54b
adc edx, 0
add edx, eax
push edx
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov eax, dword [ebp - 0x10]
call fcn.004a1d30
mov dword [ebp - 0x20], eax
call fcn.004a1b84
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
call fcn.004acdfc
test al, al
je 0x4ae584
or esi, 0x100000
xor ecx, ecx
push ebp
push 0x4ae60b
push dword fs:[ecx]
mov dword fs:[ecx], esp
push esi
mov eax, dword [ebp - 8]
push eax
push edi
push ebx
call sub.user32.dll_GetCursorPos
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ae612
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x18]
je 0x4ae5f1
push 0x1d
push 0
push 0
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x54]
sub ecx, edx
sar ecx, 1
jns 0x4ae5cb
adc ecx, 0
add ecx, edx
push ecx
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x58]
sub edx, eax
sar edx, 1
jns 0x4ae5dd
adc edx, 0
add edx, eax
push edx
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov eax, dword [ebp - 0x20]
call fcn.004a1df4
mov eax, dword [ebp - 0x10]
push eax
call sub.user32.dll_GetMessageExtraInfo
mov eax, dword [ebp - 0x1c]
call fcn.004a1b8c
ret
Function at 0x4aefbc
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x170]
push eax
call sub.user32.dll_FillRect
cmp eax, 1
sbb eax, eax
inc eax
cmp al, byte [0x5720f8]
jne 0x4af056
cmp bl, byte [0x5720f8]
je 0x4af056
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
cmp byte [eax + 0xd3], 0
je 0x4af028
cmp byte [0x5720f8], 0
jne 0x4af028
push 0xffffffffffffffec
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov esi, dword [eax + 0x170]
push esi
call sub.user32.dll_DispatchMessageW
or eax, 0x8000000
push eax
push 0xffffffffffffffec
mov eax, dword [ebp + 8]
push esi
call sub.user32.dll_GetWindowPlacement
movzx eax, bl
movzx eax, word [eax*2 + 0x5720fc]
push eax
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov byte [0x5720f8], bl
pop esi
pop ebx
pop ebp
ret

Function at 0x4afe2c
Capabilities:
Set thread local storage value

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, edx
mov esi, eax
cmp bl, byte [esi + 0xd3]
je 0x4aff68
mov byte [esi + 0xd3], bl
mov edi, dword [esi + 0x44]
test edi, edi
je 0x4aff04
mov eax, edi
call fcn.00487a6c
test al, al
je 0x4aff04
mov eax, dword [esi + 0x44]
test byte [eax + 0x1c], 0x10
jne 0x4aff04
mov eax, dword [esi + 0x44]
test byte [eax + 0x1c], 2
jne 0x4aff04
test bl, bl
je 0x4afea5
xor ecx, ecx
xor edx, edx
mov eax, dword [esi + 0x170]
call fcn.004a1be0
mov eax, dword [esi + 0x44]
call fcn.004876c0
mov edx, dword [esi + 0x44]
movzx ecx, byte [edx + 0x59]
mov dl, 1
call fcn.004a1be0
jmp 0x4afef3
mov eax, dword [esi + 0x44]
call fcn.004876c0
mov edi, eax
call sub.KERNEL32.DLL_TlsSetValue
cmp edi, eax
sete byte [esp]
mov eax, dword [esi + 0x44]
call fcn.004876c0
mov edx, dword [esi + 0x44]
movzx ecx, byte [edx + 0x59]
xor edx, edx
call fcn.004a1be0
mov cl, 1
mov dl, 1
mov eax, dword [esi + 0x170]
call fcn.004a1be0
cmp byte [esp], 0
je 0x4afef3
mov eax, dword [esi + 0x44]
call fcn.004876c0
push eax
call sub.user32.dll_GetScrollPos
push 0
xor ecx, ecx
mov edx, 0xb033
mov eax, dword [esi + 0x44]
call fcn.0047fc64
test bl, bl
je 0x4aff34
push 0xffffffffffffffec
mov ebx, dword [esi + 0x170]
push ebx
call sub.user32.dll_DispatchMessageW
or eax, 0x80
push eax
push 0xffffffffffffffec
push ebx
call sub.user32.dll_GetWindowPlacement
push 0
mov eax, dword [esi + 0x170]
push eax
call sub.user32.dll_GetWindowThreadProcessId
jmp 0x4aff68
push 0xffffffffffffffec
mov ebx, dword [esi + 0x170]
push ebx
call sub.user32.dll_DispatchMessageW
and eax, 0xffffff7f
push eax
push 0xffffffffffffffec
push ebx
call sub.user32.dll_GetWindowPlacement
mov eax, dword [esi + 0x8c]
call fcn.00407548
push eax
mov eax, dword [esi + 0x170]
push eax
call sub.user32.dll_GetWindowThreadProcessId
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4d0d5c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffe00
mov ebx, eax
test ebx, ebx
je 0x4d0e66
mov ebp, ebx
mov eax, ebp
test eax, eax
je 0x4d0d7d
sub eax, 4
mov eax, dword [eax]
mov edi, eax
test ebx, ebx
je 0x4d0d8d
mov eax, ebp
sub eax, 0xa
movzx eax, word [eax]
jmp 0x4d0d91
mov ax, 2
cmp ax, 1
jne 0x4d0e0a
test ebx, ebx
je 0x4d0da5
mov eax, ebp
sub eax, 0xc
movzx eax, word [eax]
jmp 0x4d0dad
mov eax, dword [0x575008]
movzx eax, word [eax]
push 0
push 0
push edi
push ebx
push 0
movzx eax, ax
push eax
call fcn.0040c2d0
mov edi, eax
cmp edi, 0x100
jle 0x4d0dd5
mov eax, edi
add eax, eax
call fcn.004044a0
mov esi, eax
jmp 0x4d0dd7
mov esi, esp
test ebx, ebx
je 0x4d0de5
mov eax, ebp
sub eax, 0xc
movzx edx, word [eax]
jmp 0x4d0dee
mov edx, dword [0x575008]
movzx edx, word [edx]
mov eax, ebp
test eax, eax
je 0x4d0df9
sub eax, 4
mov eax, dword [eax]
push edi
push esi
push eax
push ebx
push 0
movzx eax, dx
push eax
call fcn.0040c2d0
jmp 0x4d0e2e
cmp edi, 0x100
jle 0x4d0e1f
mov eax, edi
add eax, eax
call fcn.004044a0
mov esi, eax
jmp 0x4d0e21
mov esi, esp
mov ecx, edi
add ecx, ecx
mov edx, esi
mov eax, ebx
call fcn.00404664
push edi
push esi
call fcn.0040c6f8
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x4d0e57
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x4d0e41
mov eax, esp
cmp esi, eax
je 0x4d0e68
mov eax, esi
call fcn.004044bc
jmp 0x4d0e68
xor ebx, ebx
mov eax, ebx
add esp, 0x200
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x564a9e
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff9ac
mov ebp, edx
mov edi, eax
xor ebx, ebx
push 0
push 0
push 0
push 0
push 0x564b44
call sub.wininet.dll_InternetOpenW
mov esi, eax
push 0
push 0
push 0
push 0
mov eax, edi
call fcn.00407548
push eax
push esi
call sub.wininet.dll_InternetOpenUrlW
mov edi, eax
test edi, edi
je 0x564b31
mov edx, ebp
lea eax, [esp + 4]
call fcn.00404b84
mov edx, 1
lea eax, [esp + 4]
call fcn.00404f7c
call fcn.00404608
push esp
push 0x400
lea eax, [esp + 0x25c]
push eax
push edi
call sub.wininet.dll_InternetReadFile
push 0
lea edx, [esp + 0x258]
mov ecx, dword [esp + 4]
lea eax, [esp + 8]
call fcn.00404cd4
call fcn.00404608
cmp dword [esp], 0
jne 0x564ae6
lea eax, [esp + 4]
call fcn.00404cf4
call fcn.00404608
mov bl, 1
push edi
call sub.wininet.dll_InternetCloseHandle
push esi
call sub.wininet.dll_InternetCloseHandle
mov eax, ebx
add esp, 0x654
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x5655c0
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
add esp, 0xffffffc0
mov esi, edx
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 0x3c
call fcn.00404dd8
mov dword [esp + 4], 0x3c
mov dword [esp + 8], pe_nt_image_headers32
mov eax, ebx
call fcn.00407548
mov dword [esp + 0x14], eax
mov eax, esi
call fcn.00407548
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x20], eax
lea eax, [esp + 4]
push eax
call sub.shell32.dll_ShellExecuteExW
test eax, eax
je 0x56562b
push esp
mov eax, dword [esp + 0x40]
push eax
call fcn.0040c154
cmp dword [esp], 0x103
je 0x565613
mov al, 1
jmp 0x56562d
xor eax, eax
add esp, 0x40
pop esi
pop ebx
ret
Function at 0x402a58
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040447c
test esi, esi
jne 0x402a8e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040456c
jmp 0x402aac
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040296c
mov edi, eax
test esi, esi
je 0x402aac
cmp dword [ebx], 0
je 0x402aac
dec esi
jmp 0x402a95
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402ff0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4aa008], 0x8088405
inc edx
mov dword [ebx + 0x4aa008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403580
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4aa010]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403618
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4035f8
xor eax, eax
push ebp
push 0x4035f1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403634
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4035f8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4aa010]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4aa010], ax
mov esp, ebp
pop ebp
ret

Function at 0x404300
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4ac04c], 0
je 0x404361
cmp word [0x4ac220], 0xd7b2
jne 0x404329
cmp dword [0x4ac228], 0
jbe 0x404329
mov eax, 0x4ac21c
call dword [0x4ac238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4aa058
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404388
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4aa020], 0
jne 0x40437d
push 0
push 0x4aa078
push 0x4aa058
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret