joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49e9ea
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
test byte [0x593ca4], 1
push ebx
push esi
push edi
mov ebx, ecx
jne 0x49ea19
or dword [0x593ca4], 1
mov ecx, 0x593ca0
call fcn.00412750
push 0x540125
call fcn.00515d21
pop ecx
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x49ea25
call fcn.0041861c
mov eax, dword [ebx + 0x318]
test eax, eax
je 0x49ea9e
cmp dword [eax + 0x20], 0
je 0x49ea9e
test eax, eax
je 0x49ea3c
mov eax, dword [eax + 0x20]
cmp dword [edi], eax
jne 0x49ea9e
mov eax, dword [edi + 4]
dec eax
je 0x49ea7d
dec eax
je 0x49ea53
dec eax
jne 0x49ea9e
mov esi, 0x428e
jmp 0x49ea82
push 0x11
mov esi, 0x3ea1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
je 0x49ea82
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x31c]
test eax, eax
je 0x49ea82
add esi, 3
jmp 0x49ea82
mov esi, 0x3ea0
push esi
mov ecx, 0x593ca0
call fcn.00417dc6
test eax, eax
je 0x49ea20
mov eax, dword [0x593ca0]
mov dword [edi + 0xc], eax
xor eax, eax
inc eax
jmp 0x49eaa0
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x49f42e
Capabilities:
Check for unmoving mouse cursor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
push esi
mov esi, dword [sym.imp.USER32.dll_GetCursorPos]
xor ecx, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_ScreenToClient]
mov dword [ebx + 0x9c], ecx
cmp dword [ebx + 0x90], ecx
je 0x49f4ae
cmp dword [ebp + 0xc], ecx
jne 0x49f4ae
cmp dword [ebx + 0x94], ecx
jne 0x49f4ae
mov eax, dword [ebx + 0x20]
cmp eax, ecx
je 0x49f4a4
cmp eax, 0xffffffff
je 0x49f4a4
lea eax, [ebp - 8]
push eax
call esi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x20]
call edi
push dword [ebp - 4]
lea ecx, [ebx + 0xc8]
push dword [ebp - 8]
call fcn.0041aee3
mov dword [ebx + 0x9c], eax
test eax, eax
jne 0x49f4ae
xor eax, eax
jmp 0x49f5ee
mov dword [ebx + 0x9c], 1
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xec]
test eax, eax
je 0x49f4e9
cmp dword [ebp + 0xc], 0
jne 0x49f4e9
lea eax, [ebp - 8]
push eax
call esi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x20]
call edi
push dword [ebp - 4]
lea ecx, [ebx + 0xd8]
push dword [ebp - 8]
call fcn.0041aee3
test eax, eax
jne 0x49f49d
xor ecx, ecx
cmp dword [ebx + 0x9c], ecx
jne 0x49f50f
mov eax, dword [ebx + 0x20]
cmp eax, ecx
jbe 0x49f50f
cmp eax, 0xffffffff
je 0x49f50f
cmp dword [ebx + 0x90], ecx
jne 0x49f50f
cmp dword [ebx + 0xa8], ecx
je 0x49f49d
push dword [ebx + 0x6c]
push 0x58a644
call fcn.0042947d
lea esi, [ebx + 0x8c]
mov dword [ebp - 4], eax
mov eax, dword [esi]
xor edi, edi
pop ecx
pop ecx
cmp eax, edi
je 0x49f548
mov dword [eax + 0xf8], edi
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x60]
mov ecx, dword [ebp - 4]
mov dword [esi], edi
cmp ecx, edi
je 0x49f5ae
push edi
jmp 0x49f5a9
push dword [ebx + 0x6c]
push 0x58a1fc
call fcn.0042947d
pop ecx
pop ecx
cmp dword [ebp + 0xc], edi
je 0x49f574
cmp eax, edi
je 0x49f574
cmp dword [0x5925c4], edi
jne 0x49f574
push 1
push ebx
mov ecx, eax
call fcn.00484766
jmp 0x49f5a1
mov ecx, dword [ebp - 4]
cmp ecx, edi
je 0x49f58c
push edi
call fcn.00439990
cmp eax, edi
je 0x49f58c
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x58]
push dword [ebp + 8]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc8]
test eax, eax
je 0x49f49d
mov ecx, dword [ebp - 4]
cmp ecx, edi
je 0x49f5ae
push ebx
call fcn.0043c5c3
cmp dword [ebx + 0x6c], edi
je 0x49f5eb
lea esi, [ebx + 0x54]
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0042cbdd
mov eax, dword [eax + 0x94]
push eax
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
push 0x401
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebx + 0x6c]
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_RedrawWindow]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4b3b5d
Capabilities:
Create thread

Disassembly:
push 0
mov eax, 0x5395fd
call fcn.00518281
xor edi, edi
cmp dword [0x58a0f8], edi
je 0x4b3c26
cmp dword [0x58ade0], 0xfffffffe
jne 0x4b3c13
cmp dword [ebp + 8], 0xffffffff
je 0x4b3c26
test byte [0x594070], 1
mov esi, 0x594050
jne 0x4b3bbc
or dword [0x594070], 1
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.0044b1bc
push 0x5401a5
call fcn.00515d21
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, esi
call fcn.0044b213
cmp dword [0x59404c], edi
je 0x4b3bd0
call fcn.0041861c
push edi
push edi
push 0x4b3b05
call fcn.0051bfa9
add esp, 0xc
mov dword [0x59404c], eax
cmp eax, edi
jbe 0x4b3c00
cmp eax, 0xffffffff
je 0x4b3c00
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [ebp + 8]
mov dword [0x58ade0], eax
jmp 0x4b3c06
mov dword [0x59404c], edi
push 0x594058
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4b3c26
mov eax, dword [ebp + 8]
mov dword [0x58ade0], eax
cmp eax, 0xffffffff
jne 0x4b3c26
mov dword [0x59404c], edi
call fcn.00518359
ret
Function at 0x4ee986
Capabilities:
Get common file path

Disassembly:
push 0x120
mov eax, 0x53bc79
call fcn.005182ea
mov esi, ecx
mov dword [ebp - 0x128], esi
call fcn.004f44a9
push 0x15c
call fcn.00416ec7
pop ecx
mov ecx, eax
mov dword [ebp - 0x124], ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp ecx, ebx
je 0x4ee9ca
mov eax, dword [esi + 4]
push ebx
push eax
call fcn.004f5978
jmp 0x4ee9cc
xor eax, eax
or dword [ebp - 4], 0xffffffff
push eax
mov ecx, esi
call fcn.004f447b
call fcn.00425829
mov eax, dword [eax + 4]
mov edi, dword [eax + 0x88]
lea eax, [ebp - 0x114]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov byte [ebp + esi - 0x114], 0x5c
inc esi
mov dword [ebp - 0x124], esi
mov byte [ebp + esi - 0x114], bl
mov dword [ebp - 0x120], ebx
cmp edi, ebx
je 0x4eeb66
cmp dword [edi + 4], ebx
jle 0x4eeb66
lea ecx, [ebp - 0x118]
call fcn.00412750
mov edx, dword [edi]
xor eax, eax
inc eax
push eax
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x114]
push eax
push ebx
lea eax, [ebp - 0x118]
push eax
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x4eeb4a
lea ecx, [ebp - 0x11c]
call fcn.00412750
mov eax, dword [ebp - 0x120]
mov byte [ebp - 4], 2
cmp eax, 9
jne 0x4eea9b
push dword [ebp - 0x118]
lea eax, [ebp - 0x11c]
push 0x55dc88
push eax
call fcn.00413890
add esp, 0xc
jmp 0x4eeacd
jge 0x4eeabb
push dword [ebp - 0x118]
inc eax
push eax
lea eax, [ebp - 0x11c]
push str._d__s
push eax
call fcn.00413890
add esp, 0x10
jmp 0x4eeacd
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x11c]
call fcn.00413510
push 0x15c
call fcn.00416ec7
pop ecx
mov dword [ebp - 0x12c], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x4eeaf1
mov ecx, eax
call fcn.004c78cd
mov esi, eax
jmp 0x4eeaf3
xor esi, esi
push dword [ebp - 0x11c]
mov eax, dword [esi]
mov ecx, esi
mov byte [ebp - 4], 2
call dword [eax + 0x10]
mov eax, dword [esi]
lea ecx, [ebx + 0xe110]
push ecx
mov ecx, esi
call dword [eax + 0xc]
push ebx
mov ecx, edi
call fcn.00424654
mov eax, dword [eax]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x24]
mov ecx, dword [ebp - 0x128]
push esi
call fcn.004f447b
mov ecx, dword [ebp - 0x11c]
inc dword [ebp - 0x120]
add ecx, 0xfffffff0
call fcn.00412510
mov esi, dword [ebp - 0x124]
mov ecx, dword [ebp - 0x118]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.00412510
inc ebx
cmp ebx, dword [edi + 4]
jl 0x4eea34
call fcn.0051836d
ret
Function at 0x4f353d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4f3555
mov edi, dword [esi + 0xc]
jmp 0x4f3595
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4f356e
call fcn.00427742
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4f3583
call fcn.00427742
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4f3595
call fcn.00427742
call fcn.00425829
cmp dword [eax + 0x3c], 0
je 0x4f35aa
push edi
mov ecx, ebx
call fcn.004f23a0
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004f3463
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x4f35c8
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x5c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4f35d4
mov edi, eax
mov dword [ebx + 0x5c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4fa738
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x20a
push esi
mov esi, ecx
jne 0x4fa782
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4fa782
call fcn.004fa020
test eax, eax
je 0x4fa782
push dword [ebx + 0xc]
mov eax, dword [esi + 0x54]
push dword [ebx + 8]
mov ecx, dword [eax + 0xb4]
push dword [ebx + 4]
call fcn.004189e5
xor eax, eax
inc eax
jmp 0x4fa99a
cmp dword [ebx + 4], 0x100
push edi
jne 0x4fa991
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x12
call edi
test ax, ax
jl 0x4fa87f
push 0x11
call edi
test ax, ax
jl 0x4fa87f
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4fa87f
mov eax, dword [ebx + 8]
cmp eax, 0xd
je 0x4fa7f2
cmp eax, 0x20
jbe 0x4fa87f
cmp eax, 0x24
jbe 0x4fa7e5
cmp eax, 0x26
je 0x4fa7e5
cmp eax, 0x28
jne 0x4fa87f
call fcn.004fa020
test eax, eax
je 0x4fa87f
mov ecx, esi
call fcn.00420e8d
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
call fcn.004fa020
test eax, eax
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
je 0x4fa827
push dword [ebx + 0xc]
push dword [ebx + 8]
push dword [ebx + 4]
call fcn.004189e5
jmp 0x4fa98c
call fcn.0041e4ad
test eax, eax
je 0x4fa98c
mov eax, dword [esi + 0x54]
add eax, 0xb8
push eax
mov ecx, esi
call fcn.0041e4e5
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0xb4]
test eax, eax
jne 0x4fa855
xor edi, edi
jmp 0x4fa858
mov edi, dword [eax + 0x20]
mov esi, dword [esi + 0x54]
mov ecx, dword [esi + 0xb4]
movzx esi, word [esi + 0x20]
call fcn.0041e4ad
push edi
push esi
push 0x111
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x4fa98c
mov eax, dword [ebx + 8]
sub eax, 9
je 0x4fa95b
sub eax, 0x12
je 0x4fa933
sub eax, 0xb
je 0x4fa8a1
dec eax
dec eax
jne 0x4fa991
push 0x12
call edi
test ax, ax
jl 0x4fa991
push 0x11
call edi
test ax, ax
jl 0x4fa991
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4fa991
call fcn.004fa020
test eax, eax
jne 0x4fa98c
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
push 1
call fcn.004f9f9a
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0xb4]
push dword [eax + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetParent]
call edi
push eax
call fcn.0041d0ea
test eax, eax
je 0x4fa98c
mov esi, dword [esi + 0x54]
lea ebx, [esi + 0x90]
mov esi, dword [esi + 0xb4]
push dword [esi + 0x20]
call edi
push eax
call fcn.0041d0ea
push 1
push ebx
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x4fa98c
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4fa947
push 0
call fcn.004f9f9a
mov ecx, esi
call fcn.0041dc30
test eax, eax
je 0x4fa991
mov ecx, esi
call fcn.0041dc30
jmp 0x4fa985
push dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetParent]
call edi
push eax
call fcn.0041d0ea
test eax, eax
je 0x4fa991
push dword [esi + 0x20]
call edi
push eax
call fcn.0041d0ea
push 0
push esi
mov ecx, eax
call fcn.00418a00
mov ecx, eax
call fcn.00420e8d
xor eax, eax
inc eax
jmp 0x4fa999
push ebx
mov ecx, esi
call fcn.0041af46
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x507d7c
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 4
mov eax, 0x531d2c
call fcn.00518281
mov edi, ecx
mov esi, dword [ebp + 8]
cmp dword [esi + 4], 0x100
jne 0x507e52
mov ebx, dword [esi + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
and eax, 0x8000
je 0x507e52
cmp ebx, 0x43
je 0x507dbe
cmp ebx, 0x2d
jne 0x507e52
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x507e52
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [ebp - 0x10]
call fcn.00412750
movzx ecx, byte [edi + 0xae]
and dword [ebp - 4], 0
push ecx
lea eax, [edi + 0xac]
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
push ecx
push eax
lea eax, [ebp - 0x10]
push str.RGB__d___d___d_
push eax
call fcn.00413890
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 0xc]
add esp, 0x14
inc eax
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00412510
mov esi, dword [ebp + 8]
push esi
mov ecx, edi
call fcn.00483496
call fcn.00518359
ret 4

Function at 0x50ff66
Capabilities:
Log keystrokes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi]
push edi
call dword [eax + 0x150]
mov edi, eax
movzx eax, word [ebp + 8]
push 2
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
cmp byte [ebp + 0xc], 0
jne 0x50ffa6
test edi, edi
jl 0x50ffa6
cmp al, 0x20
je 0x50ff9b
cmp word [ebp + 8], 0x71
jne 0x50ffa6
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x168]
pop edi
pop esi
pop ebp
ret 8

Function at 0x51555a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x58c804]
jne 0x515564
repz ret
jmp fcn.0051deec

Function at 0x515a75
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x515aa6
call fcn.00518871
mov dword [eax], esi
call fcn.0051885e
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0051f210
add esp, 0x14
or eax, 0xffffffff
jmp 0x515ae1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x515ac3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00518884
pop ecx
jmp 0x515aa1
test byte [ebp + 0xc], 0x80
je 0x515ace
and eax, 0xfffffffe
jmp 0x515ad1
or eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x515ab4
xor eax, eax
pop esi
pop ebp
ret
Function at 0x523e98
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x523ec9
call fcn.00518871
mov dword [eax], esi
call fcn.0051885e
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0051f210
add esp, 0x14
push 0x16
pop eax
jmp 0x523f1e
test dword [ebp + 0xc], 0xfffffff9
jne 0x523ea5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x523ef6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00518884
pop ecx
call fcn.0051885e
mov eax, dword [eax]
jmp 0x523f1e
test al, 0x10
jne 0x523f1c
test al, 1
je 0x523f1c
test byte [ebp + 0xc], 2
je 0x523f1c
call fcn.00518871
mov dword [eax], 5
call fcn.0051885e
mov dword [eax], 0xd
jmp 0x523eed
xor eax, eax
pop esi
pop ebp
ret

Function at 0x52a4ef
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.0051d8c4
and dword [ebp - 4], 0
cmp dword [0x595d68], 0
mov ebx, eax
jne 0x52a5a0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x52a651
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x569370
push edi
call esi
test eax, eax
je 0x52a651
push eax
call fcn.0051d852
mov dword [esp], 0x569360
push edi
mov dword [0x595d68], eax
call esi
push eax
call fcn.0051d852
mov dword [esp], 0x56934c
push edi
mov dword [0x595d6c], eax
call esi
push eax
call fcn.0051d852
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x595d70], eax
call esi
push eax
call fcn.0051d852
pop ecx
mov dword [0x595d78], eax
test eax, eax
je 0x52a5a0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0051d852
pop ecx
mov dword [0x595d74], eax
mov eax, dword [0x595d74]
cmp eax, ebx
je 0x52a5f8
cmp dword [0x595d78], ebx
je 0x52a5f8
push eax
call fcn.0051d8cd
push dword [0x595d78]
mov esi, eax
call fcn.0051d8cd
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x52a5f8
test edi, edi
je 0x52a5f8
call esi
test eax, eax
je 0x52a5ef
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x52a5ef
test byte [ebp - 0xc], 1
jne 0x52a5f8
or dword [ebp + 0x10], 0x200000
jmp 0x52a631
mov eax, dword [0x595d6c]
cmp eax, ebx
je 0x52a631
push eax
call fcn.0051d8cd
pop ecx
test eax, eax
je 0x52a631
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x52a631
mov eax, dword [0x595d70]
cmp eax, ebx
je 0x52a631
push eax
call fcn.0051d8cd
pop ecx
test eax, eax
je 0x52a631
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x595d68]
call fcn.0051d8cd
pop ecx
test eax, eax
je 0x52a651
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x52a653
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4029e8
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.00404484
test esi, esi
jne 0x402a1e
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.00404574
jmp 0x402a3c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004028fc
mov edi, eax
test esi, esi
je 0x402a3c
cmp dword [ebx], 0
je 0x402a3c
dec esi
jmp 0x402a25
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4034f8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x45a020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403590
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403570
xor eax, eax
push ebp
push 0x403569
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 0x4035ac
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 0x403570
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x45a020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x45a020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404284
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45c044], 0
je 0x4042e5
cmp word [0x45c218], 0xd7b2
jne 0x4042ad
cmp dword [0x45c220], 0
jbe 0x4042ad
mov eax, 0x45c214
call dword [0x45c230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45a070
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 0x40430c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45a030], 0
jne 0x404301
push 0
push 0x45a068
push 0x45a070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404438
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004026e0
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x45c045], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404400
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4064c0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x406526
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004046f4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402f60
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406510
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40652d
lea eax, [ebp - 0x10]
call fcn.00404484
ret

Function at 0x40b0f4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b12d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404574
jmp 0x40b136
mov eax, ebx
mov edx, esi
call fcn.004044d8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b140
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b161
mov al, byte [esp]
jmp 0x40b163
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b7e8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b660
mov eax, dword [0x45b428]
cmp byte [eax], 0
je 0x40b864
mov eax, dword [0x45b22c]
call fcn.00402e24
call fcn.00402828
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408574
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40b8ac
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b89a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x45b1ec]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x45c660]
call fcn.00405a04
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret