joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43eda8
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 0x43ef53
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
jne 0x43ef34
mov dl, 1
mov eax, dword [0x40dd48]
call fcn.00402d18
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.004039d0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x43ef23
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.0042d72c
test al, al
je 0x43ef16
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, 0x43ef64
lea eax, [ebp - 0x254]
call fcn.00408768
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x43ef16
xor eax, eax
push ebp
push 0x43ef0f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x100
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x43ef9c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x43eef8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.00403c00
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jne 0x43eef8
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.00403c00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43ef16
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x43ee19
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.00410b80
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x28]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43ef5a
lea eax, [ebp - 0x260]
call fcn.004039d0
ret

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

Disassembly:
push ecx
mov eax, dword [0x47d7c8]
cmp byte [eax + 0x95], 0
jne 0x43f811
cmp dword [0x47d7e4], 0
jne 0x43f7d2
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x43f75c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x47d7e4], eax
cmp dword [0x47d7e0], 0
jne 0x43f7ed
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x47d7e0], eax
cmp dword [0x47d7e8], 0
jne 0x43f811
push esp
push 0
push 0
push 0x43f700
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x47d7e8], eax
pop edx
ret
Function at 0x43f908
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x43f91f
add esp, 0xfffffff0
call fcn.00403048
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00413b3c
mov byte [ebx + 0x28], 0
mov dl, 1
mov eax, dword [0x40da48]
call fcn.00402d18
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x40da48]
call fcn.00402d18
mov dword [ebx + 0x98], eax
xor eax, eax
mov dword [ebx + 0x50], eax
xor eax, eax
mov dword [ebx + 0x74], eax
mov dword [ebx + 0x4c], 0x80000018
mov dword [ebx + 0x68], 0x1f4
mov byte [ebx + 0x6c], 1
xor eax, eax
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x64], 0x9c4
mov byte [ebx + 0x78], 0
mov byte [ebx + 0x8d], 1
mov dl, 1
mov eax, dword [0x415994]
call fcn.0041cd6c
mov esi, eax
mov dword [ebx + 0x88], esi
push 0x43fa94
mov eax, dword [0x47c37c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0041d13c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x441408
push 0x100
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x47c37c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_2
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040b610
test eax, eax
je 0x43fa12
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408108
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040b638
test eax, eax
je 0x43fa26
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x7c]
lea edx, [ebp - 0x101]
mov ecx, 0x100
call fcn.00403c00
mov eax, dword [0x47c268]
cmp byte [eax], 0
jne 0x43fa57
mov eax, ebx
call fcn.0043fb80
mov byte [ebx + 0x49], 1
mov byte [ebx + 0x4a], 1
mov byte [ebx + 0x4b], 1
mov byte [ebx + 0x8e], 1
xor eax, eax
mov dword [ebx + 0x90], eax
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x43fa89
call fcn.004030a0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43fdf0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x47d7c8]
cmp dword [eax + 0x24], 0
je 0x43fe93
cmp dword [ebx + 0x84], 0
jne 0x43fe8d
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x43fd80
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x80]
cmp dword [eax + 8], 0
je 0x43fe8d
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 0x43fe56
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x80]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x43fe8d
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x80]
call fcn.0040f10c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x43fe65
inc dword [ebx + 0x84]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x4408a0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x94], 0
je 0x4408d5
push 0x100
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403ab8
jmp 0x4408df
mov eax, esi
mov edx, dword [ebx + 0x7c]
call fcn.00403a24
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44177c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x74]
test esi, esi
je 0x4417b4
mov eax, esi
call fcn.004294e4
test al, al
je 0x4417b4
mov eax, dword [ebx + 0x74]
call fcn.004291e8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4417b4
push 0
mov eax, dword [ebx + 0x74]
call fcn.004291e8
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x445fd8
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x446006
mov eax, ebx
call fcn.00446a7c
cmp dword [ebx + 0x3c], 0
je 0x445fff
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x446077
mov edx, dword [ebx + 0x1a6]
cmp dword [edx + 0x10], 0
je 0x446069
cmp dword [ebx + 8], 0
je 0x446028
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1a6]
call dword [edx]
test eax, eax
jne 0x44603a
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x446069
cmp dword [ebx + 8], 0
je 0x44601b
cmp eax, 3
je 0x44604d
dec eax
jne 0x44601b
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x44601b
mov edx, dword [ebx + 0x132]
add dword [eax + 8], edx
jmp 0x44601b
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x446095
cmp dword [ebx + 0x10], 0xcc
je 0x446095
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004460a0
pop ebx
ret

Function at 0x466a54
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
test dl, dl
je 0x466a69
add esp, 0xfffffff0
call fcn.00403048
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00403e04
xor eax, eax
push ebp
push 0x466b2f
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.00462618
lea ecx, [ebp - 0xc]
xor edx, edx
xor eax, eax
call fcn.0040e67c
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x28], eax
lea ecx, [ebp - 0xc]
xor edx, edx
xor eax, eax
call fcn.0040e67c
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x3c], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x40], eax
lea ecx, [ebp - 0xc]
xor edx, edx
xor eax, eax
call fcn.0040e67c
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x34], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x38], eax
lea ecx, [ebp - 0xc]
xor edx, edx
xor eax, eax
call fcn.0040e67c
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x30], eax
push 0
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.0040e694
push esi
lea edi, [esi + 0x44]
lea esi, [ebp - 0x1c]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
pop esi
mov dword [esi + 0xc], 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x466b36
lea eax, [ebp - 4]
call fcn.004039d0
ret
Function at 0x46b224
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x46b34f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 4]
push eax
mov ecx, 0x46b368
mov edx, dword [ebx + 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi]
mov edx, dword [ebp - 4]
lea eax, [ebx + 8]
call fcn.00403a24
mov ecx, 0x46b378
mov edx, dword [ebx + 4]
mov eax, esi
call fcn.004586f4
mov byte [ebx + 0x4c], al
push 0xffffffffffffffff
mov ecx, 0x46b388
mov edx, dword [ebx + 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
mov dword [ebx + 0x44], eax
mov ecx, 0x46b3a4
mov edx, dword [ebx + 4]
mov eax, esi
call fcn.004586f4
mov byte [ebx + 0xc], al
push 0xffffffffffffffff
mov ecx, 0x46b3c0
mov edx, dword [ebx + 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
mov dword [ebx + 0x48], eax
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x46b3d4
mov edx, dword [ebx + 4]
mov eax, esi
call fcn.004585e0
push esi
lea esi, [ebp - 0x14]
lea edi, [ebx + 0x10]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
pop esi
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x46b3e8
mov edx, dword [ebx + 4]
mov eax, esi
call fcn.004585e0
push esi
lea esi, [ebp - 0x14]
lea edi, [ebx + 0x20]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
pop esi
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x46b400
mov edx, dword [ebx + 4]
mov eax, esi
call fcn.004585e0
push esi
lea esi, [ebp - 0x14]
lea edi, [ebx + 0x30]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
pop esi
mov ecx, 0x46b41c
mov edx, dword [ebx + 4]
mov eax, esi
call fcn.004586f4
mov byte [ebx + 0x40], al
mov ecx, 0x46b430
mov edx, dword [ebx + 4]
mov eax, esi
call fcn.00462198
mov byte [ebx + 0x41], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46b356
lea eax, [ebp - 4]
call fcn.004039d0
ret

Function at 0x4788d8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00403e04
xor eax, eax
push ebp
push 0x47897d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, dword [ebx + 0x2e8]
call fcn.00403c9c
mov eax, dword [ebp - 8]
call fcn.00407ee8
test al, al
je 0x478962
mov eax, dword [ebp - 4]
call fcn.0047873c
test al, al
jne 0x478962
push 5
mov eax, dword [ebx + 0x2e8]
call fcn.00403e14
push eax
push 0
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov edx, dword [ebx + 0x2e8]
call fcn.00403c9c
mov eax, dword [ebp - 0xc]
call fcn.00403e14
push eax
push 0x47898c
mov eax, ebx
call fcn.004291e8
push eax
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x478984
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004039f4
ret
Function at 0x4063e4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x406409
mov eax, dword [0x40a8a0]
cmp eax, 0xffffffff
je 0x406400
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a8a0], 0xffffffff
jmp 0x40647c
cmp dword [0x440a60], ebx
je 0x40647c
cmp byte [0x440660], bl
je 0x406448
cmp dword [0x40a8a0], 0xffffffff
jne 0x406451
push 4
push 0x40000000
push 0x440660
call fcn.00405d98
cmp eax, 0xffffffff
mov dword [0x40a8a0], eax
je 0x40647c
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a8a0], 0xffffffff
je 0x40647c
push esi
mov esi, 0x444a80
push 0x40aae8
push esi
call fcn.004060e6
lea eax, [ebp + 8]
push ebx
push eax
push esi
call fcn.004060d9
push eax
push esi
push dword [0x40a8a0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

Function at 0x40662e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x440254], esi
push edi
jne 0x406668
mov ecx, 0x440250
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x406644
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x440650
jl 0x40663f
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x40669d
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x440250]
xor eax, esi
inc ecx
dec edx
jne 0x406680
pop edi
pop esi
not eax
ret 0xc
Function at 0x401c0b
Capabilities:
Get common file path

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push 0x400
call fcn.00404340
mov dword [esp], eax
mov eax, dword [0x40c6a0]
push eax
push eax
call fcn.00407093
lea eax, [esp + 8]
push eax
call fcn.00408a10
push dword [esp]
push 0
push 0x40b00d
push dword [esp + 0x10]
call sub.KERNEL32.dll_GetTempFileNameA
mov eax, dword [0x40c6a0]
push eax
push eax
push dword [esp + 8]
call fcn.004043d0
push 0x40c388
call fcn.00408a10
push dword [esp]
call fcn.004043b0
push dword [0x40c388]
call fcn.00407081
push dword [0x40c388]
call fcn.004070f4
mov eax, dword [0x40c6a0]
push eax
push eax
call fcn.00406fb6
push 0x40c380
call fcn.00408a10
mov eax, dword [esp + 0x14]
call fcn.00404420
push eax
xor ebx, ebx
cmp ebx, dword [esp]
jne 0x401d11
mov ebx, dword [esp + 0x18]
inc ebx
mov eax, ebx
call fcn.00404420
mov ebx, eax
cmp ebx, 1
jne 0x401cec
push dword [0x40c380]
call sub.SHLWAPI.DLL_PathQuoteSpacesA
push dword [0x40c6a0]
mov edx, 0x40b00e
call fcn.00408ac0
mov edx, dword [0x40c380]
call fcn.00408ac0
push 0x40c384
call fcn.00408a10
mov edx, dword [0x40c388]
push dword [0x40c6a0]
call fcn.00408ac0
push 0x40c380
call fcn.00408a10
mov dword [esp + 0xc], 2
jmp 0x401d23
mov ebx, 1
cmp ebx, dword [esp]
jne 0x401d23
mov dword [esp + 0xc], 1
pop eax
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 8]
mov eax, ebx
call fcn.00404420
mov dword [0x40c378], eax
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 8]
inc ebx
mov eax, ebx
call fcn.00404420
mov dword [0x40c37c], eax
mov eax, 1
jmp 0x401d56
push dword [esp + 4]
call fcn.00408b20
add esp, 0xc
pop ebx
ret 4
Function at 0x4020bb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
xor eax, eax
push eax
push eax
mov edx, dword [esp + 0x10]
lea ecx, [esp]
call fcn.00403060
push 0xa
push dword [esp + 4]
push dword [esp + 0x14]
call sub.KERNEL32.dll_FindResourceA
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
je 0x40210c
push dword [esp + 4]
push dword [esp + 0x10]
call sub.KERNEL32.dll_LoadResource
mov dword [0x40c38c], eax
push dword [esp + 4]
push dword [esp + 0x10]
call sub.KERNEL32.dll_SizeofResource
mov dword [0x40c3c8], eax
mov eax, dword [esp + 4]
jmp 0x402114
push dword [esp]
call fcn.00408b20
add esp, 8
ret 8

Function at 0x4038a1
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
je 0x4038b9
push dword [esp + 4]
push 0x40383a
call dword [sym.imp.USER32.DLL_EnumWindows]
jmp 0x4038f6
push esi
mov esi, dword [0x40c428]
test esi, esi
je 0x4038f5
push ebx
push edi
mov ebx, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x4038ed
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
push edi
push 0x40c428
call fcn.00407bc4
pop ecx
pop ecx
test ebx, ebx
mov esi, ebx
jne 0x4038c6
pop edi
pop ebx
pop esi
ret 4
Function at 0x404227
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x130
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 0x64
pop ebx
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 0x94
call edi
test eax, eax
je 0x4042fe
mov eax, dword [ebp - 0xc]
dec eax
je 0x4042e1
dec eax
jne 0x4042fe
lea eax, [ebp - 0xb8]
push eax
xor esi, esi
mov dword [ebp - 0xb8], 0x9c
call edi
test eax, eax
je 0x404284
cmp byte [ebp - 0x1e], 1
jne 0x404284
inc esi
mov eax, dword [ebp - 0x18]
sub eax, 3
je 0x4042dd
dec eax
je 0x4042d9
dec eax
je 0x4042b7
dec eax
jne 0x4042fe
mov eax, dword [ebp - 0x14]
sub eax, 0
je 0x4042a9
dec eax
jne 0x4042fe
neg esi
sbb esi, esi
and esi, 5
jmp 0x4042b0
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
mov ebx, esi
jmp 0x4042fe
mov eax, dword [ebp - 0x14]
sub eax, 0
je 0x4042d5
dec eax
je 0x4042d1
dec eax
jne 0x4042fe
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x4042b3
push 0x3c
jmp 0x4042fd
push 0x32
jmp 0x4042fd
push 0x14
jmp 0x4042fd
push 5
jmp 0x4042fd
cmp dword [ebp - 0x14], 0
je 0x4042fb
cmp dword [ebp - 0x14], 0xa
je 0x4042f7
cmp dword [ebp - 0x14], 0x5a
jne 0x4042fe
push 0x28
jmp 0x4042fd
push 0x1e
jmp 0x4042fd
push 0xa
pop ebx
pop edi
pop esi
mov eax, ebx
pop ebx
add ebp, 0x78
leave
ret

Function at 0x404c42
Capabilities:
Get graphical window text

Disassembly:
push edi
push dword [esp + 8]
push dword [0x40c714]
call fcn.004075e1
mov edi, eax
test edi, edi
je 0x404ca4
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x404c6b
push dword [esp + 0xc]
push edi
call eax
jmp 0x404ca4
push ebx
push esi
push dword [edi]
call dword [sym.imp.USER32.DLL_GetWindowTextLengthA]
push dword [esp + 0x14]
mov esi, eax
push esi
call fcn.00408c90
mov ebx, eax
lea eax, [esi + 1]
push eax
push ebx
mov byte [ebx], 0
push dword [edi]
call dword [sym.imp.USER32.DLL_GetWindowTextA]
push ebx
call sub.MSVCRT.dll_strlen
pop ecx
sub esi, eax
push esi
call fcn.00408db0
pop esi
pop ebx
pop edi
ret 8
Function at 0x40643c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
call dword [sym.imp.USER32.DLL_GetFocus]
test eax, eax
mov edi, dword [sym.imp.USER32.DLL_GetPropA]
mov dword [ebp - 4], eax
je 0x4064c7
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
push 9
call esi
test al, al
jns 0x4064b9
push 0x11
call esi
test al, al
js 0x4064b9
push 0x10
call esi
test al, al
js 0x4064b9
push 0x12
call esi
test al, al
js 0x4064b9
push 5
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.DLL_GetClassNameA]
push 4
lea eax, [ebp - 0xc]
push 0x40a0e8
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x4064b9
push eax
push eax
push 0x44e
push dword [ebp - 4]
call dword [sym.imp.USER32.DLL_SendMessageA]
test ax, 0x800
je 0x4064e7
push 0x40a0dc
push dword [ebp - 4]
call edi
test eax, eax
jne 0x4064e7
push 0x40a074
push dword [ebp + 8]
call edi
test eax, eax
je 0x4064e7
dec eax
push eax
push dword [0x40c71c]
call fcn.004075e1
mov eax, dword [eax + 8]
jmp 0x4064e9
xor eax, eax
pop edi
pop esi
leave
ret 4

Function at 0x40677c
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
push edi
push 0x40a134
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor edi, edi
cmp eax, edi
mov dword [0x40c674], eax
je 0x4067af
push 0x40a128
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x40c678], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [0x40c670], 1
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4067ed
cmp dword [ebp - 0xc], 1
je 0x4067fe
cmp dword [ebp - 0xc], 2
jne 0x4067ed
cmp dword [ebp - 0x18], 5
jb 0x4067fe
jne 0x4067ed
cmp dword [ebp - 0x14], edi
jne 0x4067ed
mov dword [0x40c670], edi
cmp dword [0x40c670], edi
je 0x406804
call fcn.004066c3
test eax, eax
jne 0x406804
mov dword [0x40c670], edi
pop edi
add ebp, 0x78
leave
ret

Function at 0x4070f4
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
cmp dword [ebp + 8], 0
je 0x407167
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strncpy
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 4], 0
call sub.MSVCRT.dll_strlen
add esp, 0x10
lea eax, [ebp + eax - 0x108]
jmp 0x407149
lea ecx, [eax - 1]
mov dl, byte [ecx]
cmp dl, 0x20
je 0x407147
cmp dl, 0x5c
je 0x407147
cmp dl, 0x2f
jne 0x407153
mov eax, ecx
lea ecx, [ebp - 0x108]
cmp eax, ecx
ja 0x407133
mov byte [eax], 0
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x407169
xor eax, eax
leave
ret 4

Function at 0x407170
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
cmp dword [esi + 0x14], eax
mov dword [esp + 4], eax
jne 0x4071a5
mov ecx, dword [esi + 8]
sub ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push eax
lea eax, [esp + 8]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 4]
mov dword [esi + 0xc], ecx
pop esi
pop ecx
ret 4
Function at 0x4073a0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
xor eax, eax
test esi, esi
mov dword [esp + 4], eax
je 0x4073e9
cmp byte [esi], al
je 0x4073e9
mov eax, dword [esp + 0xc]
mov ecx, dword [0x40c7b8]
push eax
push ecx
call fcn.004075e1
test eax, eax
je 0x407417
cmp dword [eax + 4], 0
mov ecx, esi
push edi
lea edi, [ecx + 1]
je 0x4073f0
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x4073d5
sub ecx, edi
push ecx
push esi
push eax
call fcn.00407480
pop edi
pop esi
pop ecx
ret 8
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x4073f0
mov eax, dword [eax]
push 0
lea edx, [esp + 0xc]
push edx
sub ecx, edi
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 8
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 8

Function at 0x407420
Capabilities:
Write file on windows

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0x10]
xor eax, eax
test edi, edi
mov dword [esp + 4], eax
je 0x407479
push esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x407478
mov eax, dword [esp + 0x10]
mov ecx, dword [0x40c7b8]
push eax
push ecx
call fcn.004075e1
test eax, eax
je 0x407474
cmp dword [eax + 4], 0
je 0x407462
push esi
push edi
push eax
call fcn.00407480
pop esi
pop edi
pop ecx
ret 0xc
mov eax, dword [eax]
push 0
lea edx, [esp + 0xc]
push edx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop esi
pop edi
pop ecx
ret 0xc