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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100f004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0x10]
push edi
push dword [ebp + 0xc]
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x18]
push 0x1001288
push eax
call fcn.01003e44
add esp, 0xc
push 0
lea eax, [ebp - 0x18]
push eax
push 0xa
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
jne 0x1002d91
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1002db9
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1002d89
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, dword [ebp + 0x14]
push edi
push eax
push esi
call fcn.01003d20
add esp, 0xc
mov byte [esi + edi - 1], 0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01003a28
leave
ret 0x10

Function at 0x1003176
Capabilities:
Copy file
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x100f004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
lea ecx, [ebp - 0x214]
push ecx
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x218]
push ecx
push eax
call fcn.010030f9
mov esi, eax
xor ebx, ebx
cmp byte [esi], 0x22
jne 0x10031cc
inc esi
push esi
call fcn.01003c90
cmp byte [eax + esi - 1], 0x22
pop ecx
jne 0x10031cc
push esi
call fcn.01003c90
pop ecx
mov byte [eax + esi - 1], bl
cmp dword [ebp - 0x210], ebx
lea eax, [ebp - 0x20c]
je 0x100320b
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x20c]
push eax
push ebx
push 0x10012c0
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push ebx
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x100321d
push 0x208
push esi
push eax
call fcn.01003610
add esp, 0xc
mov byte [ebp - 5], bl
push dword [ebp - 0x214]
lea eax, [ebp - 0x20c]
push dword [ebp - 0x218]
push eax
call fcn.01002ec3
cmp dword [ebp - 0x210], ebx
mov esi, eax
je 0x100324c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01003a28
leave
ret 0x10

Function at 0x1003a28
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100f004]
jne 0x1003a32
repz ret
jmp fcn.01006326
Function at 0x1008c61
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.01004df8
xor ebx, ebx
cmp dword [0x10109e0], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x1008d36
push 0x1001a94
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x1008ca1
xor eax, eax
jmp 0x1008dfa
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001a88
push edi
call esi
cmp eax, ebx
je 0x1008c9a
push eax
call fcn.01004d95
mov dword [esp], 0x1001a78
push edi
mov dword [0x10109e0], eax
call esi
push eax
call fcn.01004d95
mov dword [esp], 0x1001a64
push edi
mov dword [0x10109e4], eax
call esi
push eax
call fcn.01004d95
mov dword [0x10109e8], eax
lea eax, [ebp - 8]
push eax
call fcn.010040a7
test eax, eax
pop ecx
pop ecx
je 0x1008d04
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.01005fa9
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x1008d36
push 0x1001a48
push edi
call esi
push eax
call fcn.01004d95
cmp eax, ebx
pop ecx
mov dword [0x10109f0], eax
je 0x1008d36
push 0x1001a30
push edi
call esi
push eax
call fcn.01004d95
pop ecx
mov dword [0x10109ec], eax
mov eax, dword [0x10109ec]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x1008daf
cmp dword [0x10109f0], esi
je 0x1008daf
push eax
call fcn.01004e01
pop ecx
call eax
cmp eax, ebx
je 0x1008d7c
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x10109f0]
call fcn.01004e01
pop ecx
call eax
test eax, eax
je 0x1008d7c
test byte [ebp - 0x18], 1
jne 0x1008daf
lea eax, [ebp - 0xc]
push eax
call fcn.010040de
test eax, eax
pop ecx
je 0x1008d97
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.01005fa9
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x1008da6
or dword [ebp + 0x10], 0x200000
jmp 0x1008de0
or dword [ebp + 0x10], 0x40000
jmp 0x1008de0
mov eax, dword [0x10109e4]
cmp eax, esi
je 0x1008de0
push eax
call fcn.01004e01
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1008de0
mov eax, dword [0x10109e8]
cmp eax, esi
je 0x1008de0
push dword [ebp - 4]
push eax
call fcn.01004e01
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x10109e0]
call fcn.01004e01
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401320
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x401332
mov eax, dword [0x46808b]
shl eax, 2
mov dword [0x46808f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.0045df88
pop edx
call fcn.0045deec
call fcn.0045dfc8
push 0
call fcn.0045f444
pop ecx
push 0x468034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x468093], eax
push 0
jmp fcn.00463300

Function at 0x405d70
Capabilities:
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x405e44
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0xa50]
test eax, eax
je 0x405d9f
push eax
call sub.WSOCK32.DLL_closesocket
call sub.WSOCK32.DLL_WSACleanup
lea eax, [ebx + 0x874]
push eax
push 0x101
call sub.WSOCK32.DLL_WSAStartup
test eax, eax
jne 0x405e0b
xor eax, eax
push ebp
push 0x405df5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 2
push 2
call sub.WSOCK32.DLL_socket
mov esi, eax
mov dword [ebx + 0xa50], esi
inc esi
jne 0x405deb
lea ecx, [ebp - 8]
mov dx, 0x2733
mov eax, ebx
call fcn.004061f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x405e19
lea ecx, [ebp - 0xc]
mov dx, 0x2733
mov eax, ebx
call fcn.004061f4
mov eax, dword [ebp - 4]
mov dword [ebx + 0x840], eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0xc]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405e4b
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00426720
ret
Function at 0x405ee0
Capabilities:
Set socket configuration

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffff7c
mov ebx, eax
mov edi, dword [0x46dae8]
lea eax, [esp + 1]
mov edx, dword [ebx + 0x838]
call fcn.00416c74
push eax
call sub.WSOCK32.DLL_inet_addr
mov esi, eax
mov dword [ebx + 0x848], esi
inc esi
jne 0x406029
xor esi, esi
mov byte [ebx + 0x868], 0
push 0x400
mov eax, dword [ebx + 0x86c]
push eax
lea eax, [esp + 9]
push eax
push 0x465
mov eax, dword [ebx + 0x864]
push eax
call sub.WSOCK32.DLL_WSAAsyncGetHostByName
mov eax, dword [edi]
call fcn.0044adc0
cmp byte [ebx + 0x868], 0
jne 0x405f59
cmp byte [ebx + 0x870], 0
je 0x405f40
cmp byte [ebx + 0x870], 0
je 0x405f78
mov ecx, 0x40603c
mov dl, 1
mov eax, dword [0x4057e8]
call fcn.00418b10
call fcn.0042635c
cmp byte [ebx + 0x871], 0
jne 0x405fd4
cmp esi, 1
jge 0x405fbc
inc esi
mov byte [esp], 0
cmp word [ebx + 0xa3a], 0
je 0x405fa3
mov edx, esp
mov eax, dword [ebx + 0xa3c]
call dword [ebx + 0xa38]
cmp byte [esp], 0
jne 0x40601c
mov ecx, 0x40603c
mov dl, 1
mov eax, dword [0x4057e8]
call fcn.00418b10
jmp 0x40601c
mov ecx, 0x40603c
mov dl, 1
mov eax, dword [0x4057e8]
call fcn.00418b10
call fcn.0042635c
jmp 0x40601c
lea eax, [ebx + 0x848]
mov edx, dword [ebx + 0x86c]
mov edx, dword [edx + 0xc]
mov edx, dword [edx]
mov dl, byte [edx]
mov byte [eax], dl
mov edx, dword [ebx + 0x86c]
mov edx, dword [edx + 0xc]
mov edx, dword [edx]
mov dl, byte [edx + 1]
mov byte [eax + 1], dl
mov edx, dword [ebx + 0x86c]
mov edx, dword [edx + 0xc]
mov edx, dword [edx]
mov dl, byte [edx + 2]
mov byte [eax + 2], dl
mov edx, dword [ebx + 0x86c]
mov edx, dword [edx + 0xc]
mov edx, dword [edx]
mov dl, byte [edx + 3]
mov byte [eax + 3], dl
cmp byte [ebx + 0x871], 1
jne 0x405f17
add esp, 0x84
pop edi
pop esi
pop ebx
ret
Function at 0x406054
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov ebx, ecx
test ebx, ebx
js 0x40606c
shr ebx, 2
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x406065
mov edx, esp
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor esi, esi
cmp dword [ebp + 8], 0
jne 0x406107
test esi, esi
jle 0x40609e
mov ecx, 0x4061b0
mov dl, 1
mov eax, dword [0x415870]
call fcn.00418b10
call fcn.0042635c
jmp 0x4060fd
cmp word [ebx + 0xa4a], 0
jne 0x4060c0
mov ecx, 0x4061b0
mov dl, 1
mov eax, dword [0x415870]
call fcn.00418b10
call fcn.0042635c
jmp 0x4060fd
mov byte [ebp - 9], 0
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
lea edx, [ebp - 9]
mov eax, dword [ebx + 0xa4c]
call dword [ebx + 0xa48]
cmp byte [ebp - 9], 0
jne 0x4060fc
mov ecx, 0x4061b0
mov dl, 1
mov eax, dword [0x415870]
call fcn.00418b10
call fcn.0042635c
jmp 0x4060fd
inc esi
cmp dword [ebp + 8], 0
je 0x406082
mov byte [ebx + 0x870], 0
mov eax, ebx
call fcn.00405ee0
cmp dword [ebx + 0x848], 0
jne 0x406134
mov ecx, 0x4061c8
mov dl, 1
mov eax, dword [0x4057e8]
call fcn.00418b10
call fcn.0042635c
mov ecx, 0x4061e4
mov dl, 2
mov eax, ebx
call fcn.004063b8
mov word [ebx + 0x844], 2
mov ax, word [ebx + 0x83c]
push eax
call sub.WSOCK32.DLL_htons
mov word [ebx + 0x846], ax
mov eax, 0x10
push eax
lea eax, [ebx + 0x844]
push eax
push 0
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebx + 0xa50]
push eax
call sub.WSOCK32.DLL_sendto
cmp word [ebx + 0xa32], 0
je 0x40619a
mov edx, ebx
mov eax, dword [ebx + 0xa34]
call dword [ebx + 0xa30]
mov esi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 4

Function at 0x406478
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40654c
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x800
lea eax, [ebx + 0x30]
push eax
mov eax, dword [ebx + 0xa50]
push eax
call sub.WSOCK32.DLL_recvfrom
mov dword [ebx + 0x834], eax
cmp word [ebx + 0xa2a], 0
je 0x406536
lea eax, [ebp - 8]
push eax
xor eax, eax
mov al, byte [ebp - 0x14]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0
xor eax, eax
mov al, byte [ebp - 0x13]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0
xor eax, eax
mov al, byte [ebp - 0x12]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0
xor eax, eax
mov al, byte [ebp - 0x11]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
lea edx, [ebp - 0x38]
mov ecx, 3
mov eax, 0x406560
call fcn.0041733c
mov ax, word [ebp - 0x16]
push eax
call sub.WSOCK32.DLL_ntohs
mov edx, dword [ebp - 8]
push edx
movzx eax, ax
push eax
mov ecx, dword [ebx + 0x834]
mov edx, ebx
mov eax, dword [ebx + 0xa2c]
call dword [ebx + 0xa28]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406553
lea eax, [ebp - 8]
call fcn.004266fc
ret
Function at 0x41415c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x46dd64
cmp dword [edi], 0
jne 0x4141d8
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x46dd60]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4698f4
mov ecx, 2
call fcn.00424fc4
mov edx, 0x414134
lea eax, [esi + 5]
call fcn.00414154
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00414154
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 0x4141ad
mov dword [0x46dd60], 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 0x418364
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 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x41839d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004267ec
jmp 0x4183a6
mov eax, ebx
mov edx, esi
call fcn.00426750
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4183b0
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
test eax, eax
jle 0x4183d1
mov al, byte [esp]
jmp 0x4183d3
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x418a58
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x4188d0
mov eax, dword [0x46dacc]
cmp byte [eax], 0
je 0x418ac5
mov eax, dword [0x46dad0]
call fcn.0042535c
call fcn.00424f30
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00416bdc
push eax
lea eax, [esp + 0x50]
push eax
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 0x418b0c
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x418afb
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x46d98c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x46dc54]
call fcn.00427e18
push eax
call sub.USER32.DLL_LoadStringA
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.USER32.DLL_MessageBoxA
add esp, 0x444
ret
Function at 0x4195c0
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 0x419624
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
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00426964
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.004168fc
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41962b
lea eax, [ebp - 0xc]
call fcn.004266fc
ret

Function at 0x425a38
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x469e1c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x425ad0
push reloc.WSOCK32.DLL_bind
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x425ab0
xor eax, eax
push ebp
push 0x425aa9
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 0x425aec
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 0x425ab0
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x469e1c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x469e1c], ax
mov esp, ebp
pop ebp
ret

Function at 0x426580
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46e080], 0
je 0x4265e1
cmp word [0x46e254], 0xd7b2
jne 0x4265a9
cmp dword [0x46e25c], 0
jbe 0x4265a9
mov eax, 0x46e250
call dword [0x46e26c]
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 0x426608
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x469e2c], 0
jne 0x4265fd
push 0
push 0x469e84
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret
Function at 0x42800c
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 0xf0019
push 0
push 0x42823c
push closesocket
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x42808f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x42823c
push reloc.WSOCK32.DLL_bind
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x42808f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x428258
push closesocket
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x428118
xor eax, eax
push ebp
push 0x428111
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00427e54
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x4280f6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x428278
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x4280f6
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x428118
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpynA
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 0x428232
cmp byte [ebp - 0xd], 0
jne 0x42815f
cmp byte [ebp - 0x12], 0
je 0x428232
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x428178
dec ebx
cmp byte [ebx], 0x2e
je 0x428187
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x428177
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x428232
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4281c4
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x428232
cmp byte [ebp - 0xd], 0
je 0x428232
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x428232
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
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 0x4289b0
Capabilities:
Accept command line arguments

Disassembly:
sub dword [0x46e5f4], 1
jae 0x428a36
mov byte [0x469e18], 2
mov dword [0x46e044], 0x46788c
mov dword [0x46e048], 0x46789e
mov byte [0x46e082], 2
mov dword [0x46e030], 0x42763c
call fcn.00425a08
test al, al
je 0x4289f3
call fcn.00425a38
call fcn.00425afc
mov word [0x46e088], 0xd7b0
mov word [0x46e254], 0xd7b0
mov word [0x46e420], 0xd7b0
call fcn.0042751c
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x46e074], eax
call fcn.004239fc
mov dword [0x46e070], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x46e068], eax
ret

Function at 0x42944c
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 0x429398
call sub.USER32.DLL_EnumWindows
ret

Function at 0x429570
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 0x4295ed
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00428fbc
call sub.KERNEL32.DLL_GetTickCount
mov ebx, eax
push 0
call sub.KERNEL32.DLL_Sleep
call sub.KERNEL32.DLL_GetTickCount
sub eax, ebx
cmp eax, 0x3e8
jbe 0x429595
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.00428c14
cmp dword [ebp - 4], 0
je 0x4295d7
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.00426bac
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 0x4295f4
lea eax, [ebp - 4]
call fcn.004266fc
ret

Function at 0x43239c
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.004266fc
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.USER32.DLL_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x4323eb
push 0x100
lea edx, [ebp - 0x102]
push edx
push eax
call sub.USER32.DLL_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, 0x100
call fcn.00426964
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x438698
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 0x43869e
ret

Function at 0x43ab1c
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 0x43ab6d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x43ab54
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x43ab44
jmp 0x43ab6d
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 0x43ab55
pop ebx
mov esp, ebp
pop ebp
ret