joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b250
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov dword [ebp - 4], 0
push dword [ebp + 0x10]
call fcn.00428d50
test eax, eax
jne 0x41b276
mov dword [ebp - 4], 0x80070057
jmp 0x41b429
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0
je 0x41b294
mov eax, dword [ebp + 8]
push dword [eax + 8]
call sub.gdiplus.dll_GdipDisposeImage
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 0xa
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call sub.KERNEL32.dll_FindResourceW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x41b2c4
mov dword [ebp - 4], 0x80070057
jmp 0x41b429
push dword [ebp - 0x10]
push dword [ebp + 0xc]
call sub.KERNEL32.dll_SizeofResource
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x41b2e4
mov dword [ebp - 4], 0x80070057
jmp 0x41b429
push dword [ebp - 0x10]
push dword [ebp + 0xc]
call sub.KERNEL32.dll_LoadResource
push eax
call sub.KERNEL32.dll_LockResource
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x41b30a
mov dword [ebp - 4], 0x80070057
jmp 0x41b429
push dword [ebp - 0x14]
push 2
call sub.KERNEL32.dll_GlobalAlloc
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x41b41b
push dword [ebp - 0x1c]
call sub.KERNEL32.dll_GlobalLock
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x41b413
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x20]
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x24]
push eax
push 0
push dword [ebp - 0x1c]
call sub.ole32.dll_CreateStreamOnHGlobal
test eax, eax
jne 0x41b40b
mov eax, dword [ebp + 8]
lea ebx, [eax + 8]
push ebx
push dword [ebp - 0x24]
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x41b400
mov eax, dword [ebp + 8]
push dword [eax]
call sub.USER32.dll_GetDC
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x41b3a5
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0xc]
call sub.gdiplus.dll_GdipCreateFromHDC
mov dword [ebp - 8], eax
cmp dword [ebp - 0x28], 0
je 0x41b3c0
push 0
push 0
mov eax, dword [ebp + 8]
push dword [eax + 8]
push dword [ebp - 0x28]
call sub.gdiplus.dll_GdipDrawImageI
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
lea ebx, [eax + 0x18]
push ebx
mov ebx, dword [ebp + 8]
push dword [ebx + 8]
call sub.gdiplus.dll_GdipGetImageWidth
mov ebx, dword [ebp + 8]
lea eax, [ebx + 0x1c]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 8]
call sub.gdiplus.dll_GdipGetImageHeight
cmp dword [ebp - 0x28], 0
je 0x41b3f2
push dword [ebp - 0x28]
call sub.gdiplus.dll_GdipDeleteGraphics
cmp dword [ebp - 0xc], 0
je 0x41b400
push dword [ebp - 0xc]
call sub.GDI32.dll_DeleteDC
push dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
mov ebx, dword [eax]
call dword [ebx + 8]
push dword [ebp - 0x20]
call sub.KERNEL32.dll_GlobalUnlock
push dword [ebp - 0x1c]
call sub.KERNEL32.dll_GlobalFree
push dword [ebp + 8]
call fcn.0041a8e0
mov ebx, dword [ebp - 8]
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4253f0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10008
push ebx
push dword [ebp + 0x10]
call fcn.00428d50
test eax, eax
sete al
shr eax, 1
sbb eax, eax
push dword [ebp + 0x14]
mov ebx, eax
call fcn.00428d50
test eax, eax
sete al
shr eax, 1
sbb eax, eax
or ebx, eax
je 0x425432
push dword [ebp + 0x18]
push dword [ebp + 8]
call fcn.00410c10
add esp, 8
jmp 0x4254a4
lea eax, [ebp - 0x10000]
push eax
push edi
mov edi, eax
xor eax, eax
mov ecx, 0x3fff
rep stosd dword es:[edi], eax
mov word [edi], ax
pop edi
pop eax
mov eax, dword [ebp + 0xc]
lea ebx, [eax]
push ebx
push 0x7fff
lea ebx, [ebp - 0x10000]
push ebx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call sub.KERNEL32.dll_GetPrivateProfileStringW
mov dword [ebp - 0x10004], eax
push dword [ebp - 0x10004]
lea eax, [ebp - 0x10000]
push eax
call fcn.00428cd0
mov dword [ebp - 0x10008], eax
push dword [ebp - 0x10008]
push dword [ebp + 8]
call fcn.00410c10
add esp, 8
push dword [ebp - 0x10008]
call fcn.00428a80
mov eax, dword [ebp + 8]
pop ebx
mov esp, ebp
pop ebp
ret 0x14

Function at 0x4254b0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1000c
push ebx
push 1
push 0
push 8
lea eax, [ebp - 4]
push eax
call fcn.00422870
add esp, 0x10
push dword [ebp + 0x10]
call fcn.00428d50
test eax, eax
jne 0x4254f8
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.004228f0
add esp, 8
lea eax, [ebp - 4]
push eax
call fcn.00422910
add esp, 4
jmp 0x4255d8
lea eax, [ebp - 0x10004]
push eax
push edi
mov edi, eax
xor eax, eax
mov ecx, 0x3fff
rep stosd dword es:[edi], eax
mov word [edi], ax
pop edi
pop eax
mov eax, dword [ebp + 0xc]
lea ebx, [eax]
push ebx
push 0x7fff
lea ebx, [ebp - 0x10004]
push ebx
push 0
push 0
push dword [ebp + 0x10]
call sub.KERNEL32.dll_GetPrivateProfileStringW
mov dword [ebp - 0x10008], eax
cmp dword [ebp - 0x10008], 0
jne 0x42555a
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.004228f0
add esp, 8
lea eax, [ebp - 4]
push eax
call fcn.00422910
add esp, 4
jmp 0x4255d8
lea eax, [ebp - 0x10004]
mov dword [ebp - 0x1000c], eax
cmp dword [ebp - 0x1000c], 0
jne 0x425571
jmp 0x4255af
push dword [ebp - 0x1000c]
lea eax, [ebp - 4]
push eax
call fcn.00423970
push dword [ebp - 0x1000c]
call fcn.00428d50
mov dword [ebp - 0x10008], eax
cmp dword [ebp - 0x10008], 0
jne 0x42559c
jmp 0x4255af
mov eax, dword [ebp - 0x10008]
inc eax
mov ebx, eax
shl ebx, 1
add dword [ebp - 0x1000c], ebx
jmp 0x425566
lea ebx, [ebp - 4]
push ebx
push dword [ebp + 8]
call fcn.004228f0
add esp, 8
lea ebx, [ebp - 4]
push ebx
call fcn.00422910
add esp, 4
jmp 0x4255d8
mov eax, dword [ebp + 8]
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x429bd0
Capabilities:
Log keystrokes

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov edi, dword [esp + 0x40]
mov esi, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
test dword [esp + 0x4c], 0x100
je 0x429bf3
mov ebx, edi
test bl, bl
je 0x429c28
cmp si, 0x58
jbe 0x429c60
mov eax, dword [esp + 0x50]
test eax, eax
je 0x429c10
mov ebx, 0xffffffff
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, edi
movzx ebx, al
test al, al
je 0x429c01
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, esi
mov edx, 0x1c
xor eax, eax
jmp 0x429c43
lea edx, [eax + eax*4]
movzx edx, word [edx + edx + 0x42f3e0]
cmp cx, dx
je 0x429d10
add eax, 1
cmp eax, 0xc
jne 0x429c38
jmp 0x429c01
movzx esi, si
movzx eax, ax
mov dword [esp + 4], 2
lea ecx, [esi*8 + 0x42f100]
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
movzx ebp, ax
sub esp, 8
mov dword [esp], ebp
mov ebx, ebp
call dword [sym.imp.msvcrt.dll_isupper]
mov dword [esp], ebp
test eax, eax
jne 0x429cf0
call dword [sym.imp.msvcrt.dll_islower]
mov ecx, eax
mov eax, ebp
test ecx, ecx
je 0x429cb1
mov dword [esp], ebp
call dword [sym.imp.msvcrt.dll_toupper]
test byte [esp + 0x4c], 3
je 0x429cfd
mov esi, dword [esp + 0x1c]
movzx ebx, word [esi + 6]
cmp ebx, 0xff
jle 0x429bf9
mov ecx, edi
movzx ecx, cl
cmp ecx, ebp
je 0x429cdd
cmp eax, ecx
jne 0x429bf9
or bl, 0xff
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.msvcrt.dll_tolower]
test byte [esp + 0x4c], 3
jne 0x429cb8
test byte [esp + 0x4c], 0xc
je 0x429d50
mov esi, dword [esp + 0x1c]
movzx ebx, word [esi + 4]
jmp 0x429cc0
lea eax, [eax + eax*4]
lea eax, [eax + eax + 0x42f3e0]
test byte [esp + 0x4c], 3
jne 0x429d70
test byte [esp + 0x4c], 0xc
je 0x429d90
movzx ebx, word [eax + 6]
xor eax, eax
test ebx, ebx
setne al
test eax, eax
je 0x429c01
cmp ebx, 0xff
jle 0x429c06
or bl, 0xff
jmp 0x429ce0
test byte [esp + 0x4c], 0x10
jne 0x429d80
mov ecx, edi
test cl, cl
jne 0x429cc0
movzx ebx, word [esi*8 + 0x42f100]
jmp 0x429cc0
movzx ebx, word [eax + 8]
xor eax, eax
test ebx, ebx
setne al
jmp 0x429d33
mov esi, dword [esp + 0x1c]
movzx ebx, word [esi + 2]
jmp 0x429cc0
test byte [esp + 0x4c], 0x10
je 0x429da4
movzx ebx, word [eax + 4]
xor eax, eax
test ebx, ebx
setne al
jmp 0x429d33
movzx ebx, word [eax + 2]
jmp 0x429d3b
Function at 0x429db0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, eax
sub esp, 0x38
mov edx, dword [ebx]
mov eax, dword [eax + 0xc]
test edx, edx
jne 0x429e70
test al, 0x1c
jne 0x429dcf
test al, 3
jne 0x429e62
mov ebx, dword [0x4370c8]
test ebx, ebx
je 0x429e62
movsx eax, bl
mov dword [esp], eax
call dword [sym.imp.USER32.dll_VkKeyScanA]
sub esp, 4
movzx ecx, al
cwde
mov dword [esp + 0x28], 0
mov edx, eax
mov byte [esp + 0x2a], bl
mov ebx, eax
sar edx, 4
sar ebx, 6
and edx, 0x10
sar eax, 9
mov dword [esp], ecx
and ebx, 8
and eax, 2
mov dword [esp + 0x24], 0
or edx, ebx
mov word [esp + 0x26], cx
or eax, edx
mov dword [esp + 0x20], 0
mov dword [esp + 0x2c], eax
mov dword [esp + 4], 0
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
sub esp, 8
mov word [esp + 0x28], ax
movzx eax, byte [0x4370c8]
lea edx, [esp + 0x20]
call fcn.00429aa0
mov dword [0x4370c8], 0
add esp, 0x38
pop ebx
ret
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
movzx eax, word [ebx + 6]
mov dword [esp + 8], eax
movzx eax, word [ebx + 8]
mov dword [esp + 4], eax
movsx eax, byte [ebx + 0xa]
mov dword [esp], eax
call fcn.00429bd0
mov edx, dword [ebx + 0xc]
test dl, 0x1c
je 0x429ebf
cmp eax, 0xffffffff
je 0x429dcf
mov dword [0x4370c8], 0
mov edx, ebx
call fcn.00429aa0
add esp, 0x38
pop ebx
ret
and dl, 3
je 0x429ea0
movzx edx, word [ebx + 6]
lea ecx, [edx - 0x60]
cmp cx, 9
ja 0x429ef4
mov ecx, dword [ebx]
test ecx, ecx
je 0x429eea
mov ecx, dword [0x4370c8]
lea ecx, [ecx + ecx*4]
lea edx, [edx + ecx*2 - 0x60]
mov dword [0x4370c8], edx
cmp eax, 0xffffffff
jne 0x429eb3
jmp 0x429e62
cmp eax, 0xffffffff
jne 0x429ea9
jmp 0x429e62

Function at 0x42ae10
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.0042aae0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.0042aae0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
Function at 0x42ae70
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x43a47c]
test esi, esi
jle 0x42af70
mov eax, dword [0x43a480]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x42aea0
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x42af1f
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x42ae90
mov dword [esp], ebx
call fcn.0042b7e0
mov edi, eax
test eax, eax
je 0x42af97
mov eax, dword [0x43a480]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.0042b8f0
mov edx, dword [0x43a480]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x42af77
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x42af18
sub eax, 4
and eax, 0xfffffffb
jne 0x42af26
add dword [0x43a47c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
add ebx, dword [0x43a480]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x42af18
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.0042ae10
xor esi, esi
jmp 0x42aeaa
mov eax, dword [0x43a480]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.0042ae10
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.0042ae10
lea esi, [esi]
nop

Function at 0x42b450
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x43a498
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x43a490]
sub esp, 4
test ebx, ebx
je 0x42b4a5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x42b49e
test esi, esi
je 0x42b49e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x42b480
mov dword [esp], 0x43a498
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x402888
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x4028b7
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403a88
jmp 0x4028d5
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.00402810
mov edi, eax
test ebx, ebx
je 0x4028d5
cmp dword [esi], 0
je 0x4028d5
dec ebx
jmp 0x4028be
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402b8c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402c24
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402c04
xor eax, eax
push ebp
push 0x402bfd
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 0x402c40
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 0x402c04
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret
Function at 0x404eac
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x405068
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404f0d
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x405084
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404f7f
xor eax, eax
push ebp
push 0x404f78
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.00404d04
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404f61
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4050a4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404f7f
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x405060
cmp byte [ebp - 0xd], 0
jne 0x404fc1
cmp byte [ebp - 0x12], 0
je 0x405060
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404fda
dec ebx
cmp byte [ebx], 0x2e
je 0x404fe9
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404fd9
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405060
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405016
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405060
cmp byte [ebp - 0xd], 0
je 0x405060
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405060
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4087a8
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 0x4087e1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403a88
jmp 0x4087ea
mov eax, ebx
mov edx, esi
call fcn.004039f4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4087f4
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 0x408815
mov al, byte [esp]
jmp 0x408817
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x413ac0
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 0x413ac6
ret

Function at 0x415e24
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 0x415e75
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x415e5c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x415e4c
jmp 0x415e75
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 0x415e5d
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41e214
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 - 0xc]
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
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
cmp dword [0x441778], 0
sete dl
or al, dl
jne 0x41e354
mov eax, dword [0x44177c]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x441778]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x41e323
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [0x441778]
call fcn.0040d550
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x41e31b
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x168], 0
je 0x41e31b
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x41e31b
mov eax, dword [ebp - 0x14]
call fcn.004264cc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x41e31b
push ebp
call fcn.0041e1d0
pop ecx
test al, al
jne 0x41e31b
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x90]
cmp eax, dword [ebp - 0x14]
jne 0x41e2d7
mov eax, dword [ebp - 0x14]
call fcn.00424e58
dec eax
jle 0x41e31b
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov bx, 0xffc1
call fcn.00402ef0
cmp byte [ebp - 1], 0
je 0x41e31b
push dword [ebp - 8]
push dword [ebp - 0xc]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x41e31b
mov edx, dword [ebp - 0x14]
mov eax, dword [0x44177c]
call fcn.0041da1c
inc edi
dec esi
jne 0x41e26a
mov eax, dword [0x44177c]
cmp dword [eax + 8], 0
jle 0x41e33b
mov eax, dword [0x44177c]
call fcn.0041daac
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x41e354
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0041e038
pop ecx
test al, al
jne 0x41e354
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
Function at 0x423e64
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov eax, dword [esi]
cmp eax, 0x84
jg 0x423e95
je 0x423eef
sub eax, 7
je 0x423eb6
dec eax
je 0x423ee0
sub eax, 0x17
je 0x423f94
jmp 0x423fd2
add eax, 0xffffff00
sub eax, 9
jb 0x423f80
add eax, 0xffffff09
sub eax, 0xb
jb 0x423f48
jmp 0x423fd2
mov eax, ebx
call fcn.004359a8
mov edi, eax
test edi, edi
je 0x424032
mov edx, ebx
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0xd4]
test al, al
je 0x42403b
jmp 0x424032
test byte [ebx + 0x44], 0x20
jne 0x42403b
jmp 0x424032
mov edx, esi
mov eax, ebx
call fcn.004214a4
cmp dword [esi + 0xc], 0xffffffff
jne 0x42403b
push 0
lea edx, [ebp - 0x120]
mov eax, dword [esi + 8]
call fcn.004068c8
lea edx, [ebp - 0x120]
lea ecx, [ebp - 0x118]
mov eax, ebx
call fcn.0041fff0
lea edx, [ebp - 0x118]
xor ecx, ecx
mov eax, ebx
call fcn.00423d3c
test eax, eax
je 0x42403b
mov dword [esi + 0xc], 1
jmp 0x42403b
mov edx, esi
mov eax, ebx
call fcn.00423dd0
test al, al
je 0x424032
cmp dword [esi + 0xc], 0
jne 0x42403b
mov eax, dword [esi + 8]
push eax
mov eax, dword [esi + 4]
push eax
mov eax, dword [esi]
push eax
mov eax, ebx
call fcn.004264cc
push eax
call sub.user32.dll_DefWindowProcA
jmp 0x42403b
mov eax, ebx
call fcn.00420b40
test al, al
jne 0x42403b
jmp 0x424032
mov eax, ebx
call fcn.004264cc
mov edi, eax
call sub.user32.dll_GetCapture
cmp edi, eax
jne 0x424032
cmp dword [0x440698], 0
je 0x424032
mov eax, dword [0x440698]
cmp ebx, dword [eax + 0x24]
jne 0x424032
push 0
xor ecx, ecx
mov edx, 0x1f
mov eax, dword [0x440698]
call fcn.004213d8
jmp 0x424032
mov eax, dword [0x441740]
cmp byte [eax + 0x20], 0
je 0x424032
mov eax, dword [0x441740]
cmp dword [eax + 0x1c], 0
je 0x424032
mov eax, dword [esi]
mov edx, dword [0x441740]
cmp eax, dword [edx + 0x1c]
jne 0x424032
lea eax, [ebp - 0x110]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x110]
call fcn.004358ec
mov byte [ebp - 0xc], al
mov ax, word [esi + 4]
mov word [ebp - 0xa], ax
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, ebx
mov bx, 0xffb7
call fcn.00402ef0
jmp 0x42403b
mov edx, esi
mov eax, ebx
call fcn.004214a4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret