joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46ff90
Capabilities:
Find taskbar
Log keystrokes

Disassembly:
sub esp, 0x10
push edi
mov edi, eax
test edi, edi
jne 0x46ff9f
pop edi
add esp, 0x10
ret
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push ebp
push esi
push 0
push edi
call ebx
mov ebp, eax
mov dword [esp + 0x1c], ebp
cmp ebp, dword [0x4a4c40]
je 0x46ffca
mov esi, edi
call fcn.00470fb0
test al, al
jne 0x470162
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
jne 0x46ffe4
push eax
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
cmp edi, esi
jne 0x46fff2
pop esi
pop ebp
pop ebx
mov eax, edi
pop edi
add esp, 0x10
ret
push edi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x470006
push 9
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [0x4a2d52], 0
jne 0x470020
push esi
call fcn.0046ff30
add esp, 4
test eax, eax
jne 0x470164
mov byte [esp + 0x12], 0
mov byte [esp + 0x13], 0
test esi, esi
je 0x47007d
push 0
push esi
call ebx
mov ebx, eax
mov dword [esp + 0x18], ebx
test ebx, ebx
je 0x47007d
cmp dword [0x4a4c40], ebx
je 0x470064
call fcn.00470fb0
test al, al
jne 0x470064
mov eax, dword [0x4a4c40]
push 1
push ebx
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [esp + 0x12]
test ebp, ebp
je 0x47007d
cmp ebx, ebp
je 0x47007d
push 1
push ebp
push ebx
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [esp + 0x13]
mov ebx, dword [sym.imp.USER32.dll_SetForegroundWindow]
mov dword [esp + 0x14], 0
jmp 0x470090
push edi
call ebx
push 1
push 0xa
mov dword [0x49f3a4], 0
call fcn.004012a0
add esp, 8
mov dword [0x49f3a4], 1
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebp, eax
cmp ebp, edi
jne 0x4700c3
mov ebp, edi
jmp 0x4700d4
cmp ebp, esi
je 0x4700d8
push 4
push ebp
call dword [sym.imp.USER32.dll_GetWindow]
cmp edi, eax
jne 0x4700d8
test ebp, ebp
jne 0x470119
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, 5
jl 0x470090
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 2
call fcn.0040e7c0
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 2
call fcn.0040e7c0
push esi
call fcn.0046ff30
add esp, 0x34
mov ebp, eax
cmp byte [esp + 0x12], 0
je 0x470134
mov ecx, dword [esp + 0x18]
mov edx, dword [0x4a4c40]
push 0
push ecx
push edx
call dword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [esp + 0x13], 0
je 0x47014d
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push 0
push eax
push ecx
call dword [sym.imp.USER32.dll_AttachThreadInput]
test ebp, ebp
je 0x470162
push edi
call dword [sym.imp.USER32.dll_BringWindowToTop]
pop esi
mov eax, ebp
pop ebp
pop ebx
pop edi
add esp, 0x10
ret
xor eax, eax
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x10
ret
Function at 0x470250
Capabilities:
Check for time delay via gettickcount

Disassembly:
cmp byte [esp + 8], 0
je 0x470260
mov eax, esi
call fcn.0044fa40
jmp 0x47026d
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 4]
test eax, eax
js 0x4702c8
je 0x4702c8
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call ebp
push 1
push 0x8000012f
mov edi, eax
call fcn.004012a0
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
add esp, 8
push esi
call ebx
test eax, eax
je 0x4702c5
add edi, dword [esp + 0x10]
call ebp
mov ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x4702c5
push 1
push 0x8000012f
call fcn.004012a0
add esp, 8
push esi
call ebx
test eax, eax
jne 0x4702a4
pop edi
pop ebp
pop ebx
mov eax, esi
ret
Function at 0x4704a0
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x8e60
call fcn.0048b400
mov eax, dword [esp + 0x8e68]
push ebx
push ebp
mov ebp, dword [esp + 0x8e6c]
push esi
mov esi, ecx
mov cl, byte [edx]
xor ebx, ebx
cmp cl, 0x41
je 0x4704cb
cmp cl, 0x61
jne 0x47051c
cmp byte [edx + 1], bl
jne 0x47051c
cmp byte [edi], bl
jne 0x47051c
cmp byte [eax], bl
jne 0x47051c
cmp byte [esi], bl
jne 0x47051c
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
cmp esi, ebx
je 0x4704fd
cmp byte [ebp + 0xc6], bl
jne 0x4704fd
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x4704fd
xor esi, esi
cmp byte [esp + 0x8e7c], bl
je 0x470510
cmp esi, ebx
je 0x470510
mov dword [ebp + 0xa0], esi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x8e60
ret
cmp cl, bl
jne 0x47053d
cmp byte [edi], bl
jne 0x47053d
cmp byte [eax], bl
jne 0x47053d
cmp byte [esi], bl
jne 0x47053d
mov eax, ebp
call fcn.00470690
pop esi
pop ebp
pop ebx
add esp, 0x8e60
ret
push esi
push edi
push edx
push ebp
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x828], 0x4927f1
mov byte [esp + 0xc45], bl
mov dword [esp + 0xc48], ebx
mov dword [esp + 0xc4c], ebx
mov dword [esp + 0xc50], ebx
mov dword [esp + 0xc54], ebx
mov dword [esp + 0xc58], ebx
mov dword [esp + 0xc5c], ebx
mov dword [esp + 0xc68], ebx
mov dword [esp + 0xc6c], ebx
call fcn.004710f0
test eax, eax
je 0x47064e
test byte [esp + 0xc], 2
mov al, byte [esp + 0x8e78]
mov ecx, dword [esp + 0x8e80]
mov edx, dword [esp + 0x8e84]
mov byte [esp + 0xc35], al
mov dword [esp + 0xc44], ecx
mov dword [esp + 0xc48], edx
je 0x47065a
mov eax, dword [esp + 0x828]
cmp eax, 0xffff
je 0x470626
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x47064e
cmp byte [ebp + 0xc6], bl
jne 0x47061f
mov eax, dword [esp + 0x828]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x47061f
mov ecx, dword [esp + 0x828]
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x40000000
je 0x47064e
mov eax, dword [esp + 0x828]
cmp dword [esp + 0xc5c], eax
je 0x47063f
lea esi, [esp + 0xc]
mov dword [esp + 0xc5c], eax
call fcn.00471560
push ebx
lea edx, [esp + 0x10]
push edx
call fcn.00471620
test eax, eax
jne 0x47066a
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x8e60
ret
lea eax, [esp + 0xc]
push eax
push 0x470700
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 0xc3c]
cmp byte [esp + 0x8e7c], bl
je 0x470684
cmp eax, ebx
je 0x470684
mov dword [ebp + 0xa0], eax
pop esi
pop ebp
pop ebx
add esp, 0x8e60
ret
Function at 0x471560
Capabilities:
Get graphical window text

Disassembly:
push ecx
mov ecx, dword [esi + 0xc50]
test ecx, ecx
je 0x471617
mov eax, dword [esi]
test eax, eax
je 0x471617
push edi
test al, 1
jne 0x471589
mov eax, dword [esi + 0x80c]
cmp byte [eax], 0
je 0x4715a2
push 0x7fff
lea edi, [esi + 0xc58]
push edi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
jne 0x4715a2
mov byte [edi], al
test byte [esi], 4
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
je 0x4715bd
mov edx, dword [esi + 0xc50]
lea ecx, [esi + 0xc54]
push ecx
push edx
call edi
test byte [esi], 0x20
je 0x4715f8
mov ecx, dword [esi + 0xc50]
lea eax, [esp + 4]
push eax
push ecx
call edi
test eax, eax
je 0x4715f8
movzx edx, byte [esi + 0xc28]
mov ecx, dword [esp + 4]
push edx
lea eax, [esi + 0x8d58]
call fcn.0044b6c0
add esp, 4
test eax, eax
jne 0x4715f8
mov byte [esi + 0x8d58], al
test byte [esi], 8
pop edi
je 0x471617
mov ecx, dword [esi + 0xc50]
push 0x101
lea eax, [esi + 0x8c57]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClassNameA]
pop ecx
ret

Function at 0x471b90
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x8e5c
call fcn.0048b400
mov eax, dword [esp + 0x8e60]
mov eax, dword [eax + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x471c3d
mov dword [esp + 0xc44], eax
lea eax, [esp + 4]
push eax
push 0x4722c0
mov dword [esp + 0xc], ebx
mov dword [esp + 0x818], 0x4927f1
mov byte [esp + 0xc35], bl
mov dword [esp + 0xc38], ebx
mov dword [esp + 0xc3c], ebx
mov dword [esp + 0xc40], ebx
mov dword [esp + 0xc44], ebx
mov dword [esp + 0xc48], ebx
mov dword [esp + 0xc58], ebx
mov dword [esp + 0xc5c], ebx
mov byte [esp + 0xc50], cl
mov dword [esp + 0xc54], edx
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [esp + 0xc34], ebx
je 0x471c3d
mov ecx, dword [0x49f440]
mov eax, dword [ecx + 0x54]
cmp eax, 0xffffffff
jle 0x471c3d
push 1
push eax
call fcn.004012a0
add esp, 8
mov eax, 1
pop ebx
add esp, 0x8e5c
ret 4
Function at 0x471c50
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
cmp dword [edi + 8], 0
jne 0x471c6c
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
mov eax, dword [0x49f440]
push eax
push esi
mov ecx, edi
call fcn.00472100
cmp byte [edi], 0
mov dword [esp + 0x10], eax
je 0x471ca3
test eax, eax
jne 0x471ca7
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push edi
call fcn.00471d60
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
test eax, eax
jne 0x471d26
test esi, esi
je 0x471d26
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
push 1
push 0x8000012f
mov ebx, eax
call fcn.004012a0
mov edi, dword [sym.imp.USER32.dll_IsWindow]
add esp, 8
push esi
call edi
test eax, eax
je 0x471d05
mov edi, edi
call ebp
lea ecx, [ebx + 0x1f4]
sub ecx, eax
cmp ecx, 5
jle 0x471d05
push 1
push 0x8000012f
call fcn.004012a0
add esp, 8
push esi
call edi
test eax, eax
jne 0x471ce0
mov edx, dword [0x49f440]
mov eax, dword [edx + 0x54]
cmp eax, 0xffffffff
jle 0x471d1e
push 1
push eax
call fcn.004012a0
add esp, 8
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
cmp byte [edi], 0
je 0x471d40
mov ecx, dword [esp + 0x1c]
push 0
push ecx
push edi
call fcn.00471d60
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov edx, dword [esp + 0x1c]
push edx
mov ecx, edi
call fcn.00471ed0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x471ed0
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x8e68
call fcn.0048b400
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 8], ebx
je 0x472050
xor cl, cl
mov eax, edi
call fcn.00472070
test eax, eax
jne 0x471f05
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8e68
ret 4
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebp, eax
mov eax, dword [0x49f440]
push eax
push ebp
mov ecx, edi
call fcn.00472100
test eax, eax
je 0x471f28
xor eax, eax
mov dword [0x4a4c38], eax
jmp 0x471f2d
mov eax, dword [0x4a4c38]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x824], 0x4927f1
mov dword [esp + 0xc44], ebx
mov dword [esp + 0xc48], ebx
mov dword [esp + 0xc4c], ebx
mov dword [esp + 0xc64], ebx
mov dword [esp + 0xc68], ebx
cmp byte [esp + 0x8e7c], bl
je 0x471f73
mov byte [esp + 0xc41], bl
cmp eax, ebx
je 0x471f7b
mov byte [esp + 0xc41], 1
mov ecx, dword [0x4a4c34]
mov edx, dword [edi + 8]
mov esi, dword [sym.imp.USER32.dll_EnumWindows]
mov dword [esp + 0xc54], eax
lea eax, [esp + 0x18]
push eax
push 0x4721d0
mov dword [esp + 0xc58], ecx
mov dword [esp + 0xc60], edx
call esi
mov eax, dword [esp + 0xc48]
cmp eax, ebx
je 0x472028
lea ecx, [esp + 0x10]
push ecx
push 0x470f00
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
call esi
mov esi, dword [esp + 0x14]
cmp esi, ebx
je 0x471fe5
mov edx, dword [esp + 0xc48]
call fcn.004719b0
mov dword [esp + 0xc48], esi
mov eax, dword [esp + 0xc48]
call fcn.0046ff90
mov edx, dword [esp + 0xc48]
call fcn.004719b0
mov edx, dword [0x49f440]
mov eax, dword [edx + 0x54]
cmp eax, 0xffffffff
jle 0x472050
push 1
push eax
call fcn.004012a0
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8e68
ret 4
mov eax, dword [0x4a4c38]
cmp eax, ebx
je 0x472050
cmp eax, 1
setg al
mov dword [0x4a4c38], ebx
cmp al, bl
je 0x472050
mov edx, ebp
call fcn.004719b0
push ebx
mov ecx, edi
call fcn.00471ed0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x8e68
ret 4
Function at 0x485d14
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x49ed90]
jne 0x485d1e
repz ret
jmp fcn.0048a647

Function at 0x488694
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x49ed90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00482d32
and dword [ebp - 0x14], 0
cmp dword [0x4a1474], 0
mov dword [ebp - 0x18], eax
jne 0x488747
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4887ef
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4887ef
mov esi, dword [fcn.0047ea00]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4a1474], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4a1478], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4a147c], eax
call edi
push eax
call esi
mov dword [0x4a1484], eax
test eax, eax
je 0x488747
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4a1480], eax
mov eax, dword [0x4a1480]
mov ecx, dword [ebp - 0x18]
mov esi, dword [fcn.0047ea04]
cmp eax, ecx
je 0x4887a0
cmp dword [0x4a1484], ecx
je 0x4887a0
push eax
call esi
push dword [0x4a1484]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4887a0
test ebx, ebx
je 0x4887a0
call edi
test eax, eax
je 0x488797
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x488797
test byte [ebp - 8], 1
jne 0x4887a0
or dword [ebp + 0x10], 0x200000
jmp 0x4887d3
mov eax, dword [0x4a1478]
cmp eax, dword [ebp - 0x18]
je 0x4887d3
push eax
call esi
test eax, eax
je 0x4887d3
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4887d3
mov eax, dword [0x4a147c]
cmp eax, dword [ebp - 0x18]
je 0x4887d3
push eax
call esi
test eax, eax
je 0x4887d3
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4a1474]
call esi
test eax, eax
je 0x4887ef
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4887f1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00485d14
leave
ret
Function at 0x403be0
Capabilities:
Query or enumerate registry value

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

Function at 0x404b7c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4c904c], 0
je 0x404bdd
cmp word [0x4c9220], 0xd7b2
jne 0x404ba5
cmp dword [0x4c9228], 0
jbe 0x404ba5
mov eax, 0x4c921c
call dword [0x4c9238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x404c04
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4c602c], 0
jne 0x404bf9
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40961c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40966e
test eax, edx
je 0x409671
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x409631
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x409657
add ecx, 4
js 0x409647
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x409654
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x40967d
test edx, edx
jne 0x409624
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40a2a8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.0040518c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40a2c6
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x40a2e7
cmp ebx, 3
je 0x40a2e7
cmp ebx, 0x7b
je 0x40a2e7
mov eax, esi
call fcn.0040a268
test al, al
jne 0x40a2eb
xor eax, eax
jmp 0x40a2ed
mov al, 1
pop esi
pop ebx
ret

Function at 0x40d268
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 0x40d2a1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404dec
jmp 0x40d2aa
mov eax, ebx
mov edx, esi
call fcn.00404d50
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40d2b4
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 0x40d2d6
movzx eax, byte [esp]
jmp 0x40d2d8
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40dab4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40d92c
mov eax, dword [0x4c88ec]
cmp byte [eax], 0
je 0x40db30
mov eax, dword [0x4c8620]
call fcn.00403548
call fcn.004032fc
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.0040a494
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 0x40db78
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40db66
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4c85b0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4cb7f8]
call fcn.004067d4
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 0x40e45c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40e532
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404d94
lea eax, [ebp - 4]
call fcn.004051e4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040518c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40e51c
mov eax, ebx
call fcn.004031a0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40e515
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 - 4]
call fcn.0040518c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40e4ff
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40e544
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40e4ff
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e51c
mov eax, dword [ebp - 0x10]
call fcn.004031bc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e539
lea eax, [ebp - 4]
call fcn.00404cfc
ret

Function at 0x425e98
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4cd9ec
cmp dword [edi], 0
jne 0x425f14
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4cd9e8]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4c6d8c
mov ecx, 2
call fcn.00403390
mov edx, 0x425e70
lea eax, [esi + 5]
call fcn.00425e90
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00425e90
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 0x425ee9
mov dword [0x4cd9e8], 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 0x42949c
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 0x4294a2
ret
Function at 0x43691c
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404cfc
push 0
movzx eax, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x43696a
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404f6c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43ba4c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43bb7f
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x16], 0
lea eax, [ebp - 0x16]
push eax
call sub.user32.dll_GetKeyboardLayoutNameA
mov dl, 1
mov eax, dword [0x428154]
call fcn.00428224
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x43bb55
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.004282c4
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x16]
mov ecx, 0xa
call fcn.00404f6c
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x43bb94
call fcn.00405014
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.00428328
lea ecx, [ebp - 4]
mov edx, 0x43bbd0
mov eax, dword [ebp - 0xc]
call fcn.00428570
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0040fb90
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x43bb38
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x43bbdc
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x4c7724]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43bb3f
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret

Function at 0x43bc2c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movzx ebx, byte [esp + 4]
test bx, bx
je 0x43bc73
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43bc56
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43bc67
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x43bc73
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret