joyce8/EMBER2024-capa huggingface dataset:
Function at 0x437f5a
Capabilities:
Get common file path

Disassembly:
mov eax, 0x45e1f2
call fcn.0044e550
push ecx
push ebx
mov ebx, dword [ebp + 8]
movzx eax, byte [ebx]
cmp byte [eax + 0x474d68], 1
push edi
mov edi, ecx
jne 0x437fa3
lea eax, [ebp - 0x10]
push eax
push ebx
call fcn.0043b370
mov ecx, dword [ebp - 0x10]
cmp byte [ecx], 0
jne 0x437f9f
cmp eax, 0xffff
ja 0x437f9f
push 0
push edi
push eax
call fcn.0043e7a5
add esp, 0xc
jmp 0x437fc7
xor al, al
jmp 0x437fc7
push esi
xor esi, esi
push dword [esi*8 + 0x464974]
push ebx
call sym.qmmacro.exe_q_stricmp
pop ecx
pop ecx
test eax, eax
je 0x437fbf
inc esi
cmp esi, 0x34
jl 0x437fa6
cmp esi, 0x34
jne 0x437fd7
xor al, al
pop esi
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
mov esi, dword [esi*8 + 0x464970]
xor ebx, ebx
mov dword [ebp + 8], ebx
mov dword [ebp - 4], ebx
mov eax, pe_nt_image_headers32
cmp esi, eax
jge 0x43802f
push 0x104
lea ecx, [ebp + 8]
call fcn.0043d435
push ebx
push esi
push eax
push ebx
call dword [0x473a58]
test eax, eax
jne 0x438020
xor bl, bl
or dword [ebp - 4], 0xffffffff
push dword [ebp + 8]
call fcn.0043d2ed
and dword [ebp + 8], 0
mov al, bl
jmp 0x437fc6
push dword [ebp + 8]
mov ecx, edi
call fcn.0042c1fe
jmp 0x43810f
sub esi, eax
je 0x4380fc
dec esi
je 0x4380ee
dec esi
je 0x4380b9
dec esi
je 0x4380a5
dec esi
je 0x438061
dec esi
jne 0x43810f
push edi
push dword [0x474160]
call fcn.00431425
pop ecx
pop ecx
jmp 0x43810f
mov ecx, 0x474128
call fcn.0042d133
cmp eax, 1
jne 0x438087
cmp byte [0x4741e0], 0
je 0x438080
mov eax, str._temp_LowQM_portable
jmp 0x43809a
mov eax, str._temp_LowQM
jmp 0x43809a
cmp byte [0x4741e0], 0
mov eax, str._temp_QM_portable
jne 0x43809a
mov eax, str._temp_QM
push ebx
push eax
mov ecx, edi
call fcn.0043811a
jmp 0x43810f
push ebx
push str._windows_Media
mov ecx, edi
call fcn.0043811a
mov bl, 1
jmp 0x43800c
mov esi, 0x104
push esi
lea ecx, [ebp + 8]
call fcn.0043d435
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push dword [ebp + 8]
mov ecx, edi
call fcn.0042c1fe
push 0x5c
mov ecx, edi
call fcn.00430934
push 1
push ebx
mov ecx, edi
call fcn.00438596
jmp 0x43810f
mov eax, dword [0x4741a4]
dec eax
push eax
push 0x4741a0
jmp 0x438108
mov eax, dword [0x474164]
dec eax
push eax
push 0x474160
mov ecx, edi
call fcn.0042c859
cmp dword [edi + 4], ebx
setne bl
jmp 0x43800c
Function at 0x402cf8
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402d35
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402d55
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.004047b8
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x403500
Capabilities:
Query or enumerate registry value

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

Function at 0x404340
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x49004c], 0
je 0x4043a1
cmp word [0x490220], 0xd7b2
jne 0x404369
cmp dword [0x490228], 0
jbe 0x404369
mov eax, 0x49021c
call dword [0x490238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x48e078
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 0x4043c8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x48e034], 0
jne 0x4043bd
push 0
push 0x48e070
push 0x48e078
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4044fc
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.00402af8
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x49004d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4044c4
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4065b0
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 0x406616
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.004047b8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004030b8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406600
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40661d
lea eax, [ebp - 0x10]
call fcn.00404548
ret

Function at 0x40bd18
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 0x40bd51
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404638
jmp 0x40bd5a
mov eax, ebx
mov edx, esi
call fcn.0040459c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40bd64
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 0x40bd85
mov al, byte [esp]
jmp 0x40bd87
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c41c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c284
mov eax, dword [0x48f988]
cmp byte [eax], 0
je 0x40c498
mov eax, dword [0x48f744]
call fcn.00402efc
call fcn.00402c84
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.00409390
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 0x40c4e0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c4ce
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x48f6e4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x490668]
call fcn.00405a1c
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
Function at 0x40cd84
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40ce5a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004045e0
lea eax, [ebp - 8]
call fcn.00404a58
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404a08
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40ce44
mov eax, ebx
call fcn.00402af8
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40ce3d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404a08
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40ce27
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40ce6c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40ce27
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ce44
mov eax, dword [ebp - 0x10]
call fcn.00402b28
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ce61
lea eax, [ebp - 8]
call fcn.00404548
ret

Function at 0x40d404
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40d468
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004047b8
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408d20
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d46f
lea eax, [ebp - 0xc]
call fcn.00404548
ret

Function at 0x41ec78
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov al, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x41ecc5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.0041eaa4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41ecdd
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x41ece4
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0041eaa4
dec esi
jne 0x41ed06
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x41fe48
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x490890
cmp dword [edi], 0
jne 0x41fec4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x49088c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x48e4b0
mov ecx, 2
call fcn.00402d90
mov edx, 0x41fe20
lea eax, [esi + 5]
call fcn.0041fe40
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041fe40
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41fe99
mov dword [0x49088c], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x421368
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x42136e
ret

Function at 0x423810
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x423861
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x423848
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x423838
jmp 0x423861
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x423849
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x430c08
Capabilities:
Enumerate gui resources

Disassembly:
mov byte [eax + 0xc], 0
mov byte [eax + 0xd], 0
xor edx, edx
mov dword [eax + 4], edx
push eax
push 0x430b54
call sub.user32.dll_EnumWindows
ret

Function at 0x430d28
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x430da5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00430788
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
push 0
call sub.kernel32.dll_Sleep
call sub.kernel32.dll_GetTickCount_1
sub eax, ebx
cmp eax, 0x3e8
jbe 0x430d4d
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.00430388
cmp dword [ebp - 4], 0
je 0x430d8f
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.00404a08
push eax
mov eax, dword [esi + 0x1c]
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
call sub.user32.dll_WinHelpA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x430dac
lea eax, [ebp - 4]
call fcn.00404548
ret

Function at 0x433020
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x433070]
test si, 4
je 0x433034
or bl, 1
test si, 8
je 0x43303e
or bl, 4
test si, 1
je 0x433048
or bl, 8
test si, 2
je 0x433052
or bl, 0x10
test si, 0x10
je 0x43305c
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43306b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x433074
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4330ac]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43308d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43309c
or bl, 4
test esi, 0x20000000
je 0x4330a7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x439770
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x439782
add esp, 0xfffffff0
call fcn.004039cc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041edb8
mov eax, dword [0x48f6ec]
mov dword [eax + 4], ebx
mov dword [eax], 0x439b14
mov eax, dword [0x48f6f8]
mov dword [eax + 4], ebx
mov dword [eax], 0x439b20
mov eax, ebx
call fcn.00439b2c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x415e20]
call fcn.00403664
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x415e20]
call fcn.00403664
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x415e20]
call fcn.00403664
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x415e20]
call fcn.00403664
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x415e20]
call fcn.00403664
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x435f44
push eax
push 0
push 0
mov eax, dword [0x48f880]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x420814]
call fcn.00421ed4
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x420814]
call fcn.00421ed4
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x420814]
call fcn.00421ed4
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00439f7c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x439e44
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x439e44
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x439e44
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4398bf
call fcn.00403a24
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x439c28
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x439dd3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x439db4
mov dl, 1
mov eax, dword [0x4163b0]
call fcn.00403664
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404548
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x439da3
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0044d480
test al, al
je 0x439d96
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x439de4
lea eax, [ebp - 0x254]
call fcn.00409a40
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x439d96
xor eax, eax
push ebp
push 0x439d8f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x439e1c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x439d78
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004047b8
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x439d78
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004047b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x439d96
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x439c99
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041a95c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x439dda
lea eax, [ebp - 0x260]
call fcn.00404548
ret

Function at 0x43a71c
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x490b20]
cmp byte [eax + 0xa5], 0
jne 0x43a78d
cmp dword [0x490b38], 0
jne 0x43a74e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x43a6d8
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x490b38], eax
cmp dword [0x490b34], 0
jne 0x43a769
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x490b34], eax
cmp dword [0x490b3c], 0
jne 0x43a78d
push esp
push 0
push 0
push 0x43a67c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x490b3c], eax
pop edx
ret
Function at 0x43ae20
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x490b20]
cmp dword [eax + 0x30], 0
je 0x43aeca
cmp dword [ebx + 0x94], 0
jne 0x43aec4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x43adb0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x43aec4
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x43ae8a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x43aec4
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.004183a8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x43ae99
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x43ba28
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x43ba5d
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404638
jmp 0x43ba6a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040459c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x43ca10
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x43ca51
mov eax, esi
call fcn.00448c38
test al, al
je 0x43ca51
mov eax, dword [ebx + 0x84]
call fcn.004489d8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x43ca51
push 0
mov eax, dword [ebx + 0x84]
call fcn.004489d8
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x43fe40
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x490b84], 0
je 0x43ff8f
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x48f914]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x43ff8f
mov eax, dword [0x490b88]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x490b84]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x43ff5e
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x490b84]
call fcn.004183a8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x43ff56
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x43ff56
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x43ff56
mov eax, dword [ebp - 0x14]
call fcn.004489d8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x43ff56
push ebp
call fcn.0043fdfc
pop ecx
test al, al
jne 0x43ff56
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x43ff12
mov eax, dword [ebp - 0x14]
call fcn.00447508
dec eax
jle 0x43ff56
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.0040389c
cmp byte [ebp - 1], 0
je 0x43ff56
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x43ff56
mov edx, dword [ebp - 0x14]
mov eax, dword [0x490b88]
call fcn.0043f5c8
inc edi
dec ebx
jne 0x43fea5
mov eax, dword [0x490b88]
cmp dword [eax + 8], 0
jle 0x43ff76
mov eax, dword [0x490b88]
call fcn.0043f658
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x43ff8f
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0043fc64
pop ecx
test al, al
jne 0x43ff8f
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret