joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c9128
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 8
add esp, 0xfffff004
push eax
dec eax
jne 0x4c9131
mov eax, dword [ebp - 4]
add esp, 0xfffffff8
push ebx
push esi
mov eax, dword [ebp + 8]
add eax, 0xfffffe60
xor ecx, ecx
mov edx, 0x4c91fc
call fcn.004d778c
mov eax, dword [0x4e2ac0]
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
add eax, 0xfffffe60
mov ecx, 1
mov edx, 0x4c9200
call fcn.004d778c
mov eax, dword [0x4e2c6c]
mov eax, dword [eax]
mov dword [ebp - 0x800c], eax
mov eax, dword [ebp - 0x800c]
test eax, eax
je 0x4c9194
sub eax, 4
mov eax, dword [eax]
mov esi, eax
mov edx, esi
test edx, edx
jbe 0x4c91bb
mov ecx, 1
lea eax, [ebp - 0x8008]
mov ebx, dword [0x4e2c6c]
mov ebx, dword [ebx]
movzx ebx, byte [ebx + ecx - 1]
mov byte [eax], bl
inc ecx
inc eax
dec edx
jne 0x4c91a7
xor eax, eax
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x8008]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_WriteFile_1
mov eax, dword [0x4e2ac0]
mov edx, dword [ebp - 4]
mov dword [eax], edx
mov eax, dword [0x4e2ce4]
mov byte [eax], 2
mov eax, dword [ebp + 8]
mov byte [eax - 0x1a1], 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c9204
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 8
add esp, 0xfffff004
push eax
dec eax
jne 0x4c920d
mov eax, dword [ebp - 4]
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
add eax, 0xfffffe60
xor ecx, ecx
mov edx, 0x4c92e4
call fcn.004d778c
mov esi, dword [0x4e2ac0]
mov esi, dword [esi]
mov eax, dword [ebp + 8]
add eax, 0xfffffe60
xor ecx, ecx
mov edx, 0x4c92e8
call fcn.004d778c
call fcn.00457e00
mov ebx, eax
mov eax, dword [0x4e2ac0]
cmp ebx, dword [eax]
jle 0x4c9265
mov ebx, dword [0x4e2ac0]
mov ebx, dword [ebx]
xor edi, edi
test ebx, ebx
jle 0x4c9285
push 0
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0x8004]
push eax
push esi
call sub.kernel32.dll_ReadFile_1
test eax, eax
je 0x4c9285
mov edi, ebx
test edi, edi
jle 0x4c92be
mov eax, dword [0x4e2c6c]
mov edx, edi
call fcn.00406200
mov esi, edi
test esi, esi
jbe 0x4c92c8
mov edi, 1
lea ebx, [ebp - 0x8004]
mov eax, dword [0x4e2c6c]
call fcn.00405fd0
movzx edx, byte [ebx]
mov byte [eax + edi - 1], dl
inc edi
inc ebx
dec esi
jne 0x4c92a6
jmp 0x4c92c8
mov eax, dword [0x4e2c6c]
call fcn.00405ab4
mov eax, dword [0x4e2ce4]
mov byte [eax], 1
mov eax, dword [ebp + 8]
mov byte [eax - 0x1a1], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c94f8
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x4c9501
mov eax, dword [ebp - 4]
xor eax, eax
mov dword [ebp - 0x10004], eax
xor eax, eax
push ebp
push 0x4c95c8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
add eax, 0xfffffe60
mov ecx, 1
mov edx, 0x4c95d4
call fcn.004d778c
mov eax, dword [0x4e2c6c]
mov eax, dword [eax]
call fcn.00405f78
mov edx, eax
lea eax, [ebp - 0x8000]
call fcn.0040a7b4
push 0x8000
lea eax, [ebp - 0x10000]
push eax
lea eax, [ebp - 0x8000]
push eax
call sub.kernel32.dll_GetEnvironmentVariableA
test eax, eax
jbe 0x4c9593
lea edx, [ebp - 0x10004]
lea eax, [ebp - 0x10000]
call fcn.0040a9ec
mov edx, dword [ebp - 0x10004]
mov eax, dword [0x4e2c6c]
call fcn.00405b08
jmp 0x4c959d
mov eax, dword [0x4e2c6c]
call fcn.00405ab4
mov eax, dword [0x4e2ce4]
mov byte [eax], 1
mov eax, dword [ebp + 8]
mov byte [eax - 0x1a1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c95cf
lea eax, [ebp - 0x10004]
call fcn.00405ab4
ret

Function at 0x4cd328
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 8
add esp, 0xfffff004
push eax
dec eax
jne 0x4cd331
mov eax, dword [ebp - 4]
add esp, 4
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
add ebx, 0xfffffe60
mov eax, ebx
xor ecx, ecx
mov edx, 0x4cd49c
call fcn.004d778c
mov eax, dword [0x4e2ac0]
mov eax, dword [eax]
mov edx, dword [ebp + 8]
mov dword [edx - 0x1ac], eax
mov eax, ebx
mov ecx, 1
mov edx, 0x4cd49c
call fcn.004d778c
mov eax, dword [0x4e2c6c]
mov eax, dword [eax]
call fcn.00405f78
mov edx, eax
lea eax, [ebp - 0x8000]
call fcn.0040a7b4
mov eax, ebx
xor ecx, ecx
mov edx, 0x4cd49c
call fcn.004d778c
mov esi, dword [0x4e2ac0]
mov esi, dword [esi]
mov eax, ebx
xor ecx, ecx
mov edx, 0x4cd49c
call fcn.004d778c
mov edi, dword [0x4e2ac0]
mov edi, dword [edi]
mov eax, ebx
xor ecx, ecx
mov edx, 0x4cd49c
call fcn.004d778c
mov eax, dword [0x4e2ac0]
mov eax, dword [eax]
mov edx, dword [ebp + 8]
mov dword [edx - 0x1a8], eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x4cd4a0
call fcn.004d778c
mov ebx, dword [0x4e2ac0]
movzx ebx, word [ebx]
push 0x424f4c
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x1ac]
mov edx, 0x4cd4a4
mov eax, dword [0x4e67f4]
call fcn.0040865c
mov edx, dword [0x4e2ac0]
mov dword [edx], eax
lea eax, [ebp - 0x8000]
push eax
mov eax, dword [0x4e2ac0]
mov eax, dword [eax]
push eax
call sub.user32.dll_SetWindowTextA
push 4
movsx eax, bx
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x1a8]
push eax
push edi
push esi
push 0
mov eax, dword [0x4e2ac0]
mov eax, dword [eax]
push eax
call sub.user32.dll_SetWindowPos
push 1
mov eax, dword [0x4e2ac0]
mov eax, dword [eax]
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [0x4e2984]
cmp byte [eax], 0
je 0x4cd482
push 1
mov eax, dword [0x4e2fe8]
mov eax, dword [eax]
push eax
push 0x30
mov eax, dword [0x4e2ac0]
mov eax, dword [eax]
push eax
call sub.user32.dll_SendMessageA
mov eax, dword [0x4e2ce4]
mov byte [eax], 2
mov eax, dword [ebp + 8]
mov byte [eax - 0x1a1], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4cd4ac
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 8
add esp, 0xfffff004
push eax
dec eax
jne 0x4cd4b5
mov eax, dword [ebp - 4]
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
add ebx, 0xfffffe60
mov eax, ebx
xor ecx, ecx
mov edx, 0x4cd664
call fcn.004d778c
mov eax, dword [0x4e2ac0]
mov eax, dword [eax]
mov edx, dword [ebp + 8]
mov dword [edx - 0x1ac], eax
mov eax, ebx
mov ecx, 1
mov edx, 0x4cd664
call fcn.004d778c
mov eax, dword [0x4e2c6c]
mov eax, dword [eax]
call fcn.00405f78
mov edx, eax
lea eax, [ebp - 0x8004]
call fcn.0040a7b4
mov eax, ebx
xor ecx, ecx
mov edx, 0x4cd664
call fcn.004d778c
mov edi, dword [0x4e2ac0]
mov edi, dword [edi]
mov eax, ebx
xor ecx, ecx
mov edx, 0x4cd664
call fcn.004d778c
mov eax, dword [0x4e2ac0]
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x4cd664
call fcn.004d778c
mov eax, dword [0x4e2ac0]
mov eax, dword [eax]
mov edx, dword [ebp + 8]
mov dword [edx - 0x1a8], eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x4cd668
call fcn.004d778c
mov ebx, dword [0x4e2ac0]
movzx ebx, word [ebx]
mov esi, dword [0x4e2d0c]
mov esi, dword [esi]
test bx, bx
jl 0x4cd5cf
push esi
push edi
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x1a8]
push eax
movsx eax, bx
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x1ac]
push eax
push 0
mov eax, dword [0x4e67f4]
push eax
push 0
lea ecx, [ebp - 0x8004]
mov edx, 0x4cd66c
mov eax, dword [0x4e3104]
mov eax, dword [eax]
call fcn.004085ac
mov edx, dword [0x4e2ac0]
mov dword [edx], eax
jmp 0x4cd61f
push esi
push edi
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x1a8]
push eax
movsx eax, bx
cdq
xor eax, edx
sub eax, edx
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x1ac]
push eax
push 0
mov eax, dword [0x4e67f4]
push eax
push 0
lea ecx, [ebp - 0x8004]
mov edx, dword [0x4e2a70]
mov edx, dword [edx + 0x24]
mov eax, dword [0x4e3104]
mov eax, dword [eax]
call fcn.004085ac
mov edx, dword [0x4e2ac0]
mov dword [edx], eax
mov eax, dword [0x4e2fe0]
cmp byte [eax], 0
jne 0x4cd63a
push 5
mov eax, dword [0x4e2ac0]
mov eax, dword [eax]
push eax
call sub.user32.dll_ShowWindow
jmp 0x4cd649
push 0
mov eax, dword [0x4e2ac0]
mov eax, dword [eax]
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [0x4e2ce4]
mov byte [eax], 2
mov eax, dword [ebp + 8]
mov byte [eax - 0x1a1], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d1798
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0
xor eax, eax
push ebp
push 0x4d1847
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4e2900]
mov eax, dword [eax]
push eax
call sub.user32.dll_OpenClipboard
mov eax, dword [0x4e2c6c]
call fcn.00405ab4
push 7
call sub.user32.dll_IsClipboardFormatAvailable
test eax, eax
je 0x4d180d
push 1
call sub.user32.dll_GetClipboardData
mov edx, dword [0x4e29d4]
mov dword [edx], eax
mov eax, dword [0x4e29d4]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GlobalLock
mov edx, dword [0x4e2a00]
mov dword [edx], eax
lea edx, [ebp - 4]
mov eax, dword [0x4e2a00]
mov eax, dword [eax]
call fcn.0040a9ec
mov edx, dword [ebp - 4]
mov eax, dword [0x4e2c6c]
call fcn.00405b08
call sub.user32.dll_CloseClipboard
mov eax, dword [0x4e2ce4]
mov byte [eax], 1
mov eax, dword [ebp + 8]
mov byte [eax - 0x1a1], 1
mov eax, dword [0x4e29d4]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GlobalUnlock
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d184e
lea eax, [ebp - 4]
call fcn.00405ab4
ret
Function at 0x4d94dc
Capabilities:
Encode data using xor
Encrypt data using blowfish
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
lea edi, [ebp - 0x1c]
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, 0x10
mov eax, 0x4e1754
mov ecx, 0x1000
call fcn.00402fa0
mov edx, dword [ebp - 4]
add edx, 0x1010
mov eax, 0x4e170c
mov ecx, 0x48
call fcn.00402fa0
test esi, esi
jne 0x4d954e
mov eax, dword [ebp - 4]
xor ecx, ecx
mov edx, 8
call fcn.00403b50
mov eax, dword [ebp - 4]
add eax, 8
xor ecx, ecx
mov edx, 8
call fcn.00403b50
jmp 0x4d956f
mov edx, dword [ebp - 4]
mov eax, esi
mov ecx, 8
call fcn.00402fa0
mov edx, dword [ebp - 4]
add edx, 8
mov eax, esi
mov ecx, 8
call fcn.00402fa0
xor eax, eax
mov dword [ebp - 0x10], eax
mov esi, 0x12
mov ebx, dword [ebp - 4]
add ebx, 0x1010
mov eax, dword [ebp - 0x10]
add eax, 3
cdq
idiv dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
movzx ecx, byte [eax + edx]
mov eax, dword [ebp - 0x10]
add eax, 2
cdq
idiv dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + edx]
shl eax, 8
add ecx, eax
mov eax, dword [ebp - 0x10]
inc eax
cdq
idiv dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + edx]
shl eax, 0x10
add ecx, eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
movzx eax, byte [eax + edx]
shl eax, 0x18
add ecx, eax
xor dword [ebx], ecx
mov eax, dword [ebp - 0x10]
add eax, 4
cdq
idiv dword [ebp - 0xc]
mov dword [ebp - 0x10], edx
add ebx, 4
dec esi
jne 0x4d9582
mov eax, edi
xor ecx, ecx
mov edx, 8
call fcn.00403b50
mov esi, 9
mov ebx, dword [ebp - 4]
add ebx, 0x1010
mov ecx, edi
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.004d978c
movzx eax, byte [edi]
movzx edx, byte [edi + 1]
shl edx, 8
add eax, edx
movzx edx, byte [edi + 2]
shl edx, 0x10
add eax, edx
movzx edx, byte [edi + 3]
shl edx, 0x18
add eax, edx
mov dword [ebx], eax
movzx eax, byte [edi + 4]
movzx edx, byte [edi + 5]
shl edx, 8
add eax, edx
movzx edx, byte [edi + 6]
shl edx, 0x10
add eax, edx
movzx edx, byte [edi + 7]
shl edx, 0x18
add eax, edx
mov dword [ebx + 4], eax
add ebx, 8
dec esi
jne 0x4d95fd
mov dword [ebp - 0x10], 4
mov eax, dword [ebp - 4]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov esi, 0x80
mov eax, dword [ebp - 0x20]
mov ebx, eax
mov ecx, edi
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.004d978c
movzx eax, byte [edi]
movzx edx, byte [edi + 1]
shl edx, 8
add eax, edx
movzx edx, byte [edi + 2]
shl edx, 0x10
add eax, edx
movzx edx, byte [edi + 3]
shl edx, 0x18
add eax, edx
mov dword [ebx], eax
movzx eax, byte [edi + 4]
movzx edx, byte [edi + 5]
shl edx, 8
add eax, edx
movzx edx, byte [edi + 6]
shl edx, 0x10
add eax, edx
movzx edx, byte [edi + 7]
shl edx, 0x18
add eax, edx
mov dword [ebx + 4], eax
add ebx, 8
dec esi
jne 0x4d966b
add dword [ebp - 0x20], 0x400
dec dword [ebp - 0x10]
jne 0x4d9661
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4d98e8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov edi, dword [ebp + 8]
dec edi
test edi, edi
jl 0x4d9946
inc edi
xor esi, esi
mov eax, dword [ebp - 4]
movzx eax, byte [eax + esi]
mov byte [ebp - 0x11], al
lea ecx, [ebp - 0x10]
lea edx, [ebx + 8]
mov eax, ebx
call fcn.004d978c
mov eax, dword [ebp - 4]
movzx eax, byte [eax + esi]
xor al, byte [ebp - 0x10]
mov edx, dword [ebp - 8]
mov byte [edx + esi], al
lea edx, [ebx + 8]
lea eax, [ebx + 9]
mov ecx, 7
call fcn.00402fa0
movzx eax, byte [ebp - 0x11]
mov byte [ebx + 0xf], al
inc esi
dec edi
jne 0x4d9904
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40288c
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 0x4028bb
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.0040389c
jmp 0x4028d9
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.004027c0
mov edi, eax
test ebx, ebx
je 0x4028d9
cmp dword [esi], 0
je 0x4028d9
dec ebx
jmp 0x4028c2
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402bd4
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 0x402c6c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402c4c
xor eax, eax
push ebp
push 0x402c45
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 0x402c88
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 0x402c4c
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 0x404c20
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 0x404dbc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404cd0
xor eax, eax
push ebp
push 0x404cc9
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]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404cb2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404ddc
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 0x404cd0
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 0x404db1
cmp byte [ebp - 0xd], 0
jne 0x404d12
cmp byte [ebp - 0x12], 0
je 0x404db1
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404d2b
dec ebx
cmp byte [ebx], 0x2e
je 0x404d3a
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404d2a
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404db1
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404d67
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 0x404db1
cmp byte [ebp - 0xd], 0
je 0x404db1
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 0x404db1
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 0x404cd0
Capabilities:
Get geographical location

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 0x404dbc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404cd0
xor eax, eax
push ebp
push 0x404cc9
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]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404cb2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404ddc
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 0x404cd0
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 0x404db1
cmp byte [ebp - 0xd], 0
jne 0x404d12
cmp byte [ebp - 0x12], 0
je 0x404db1
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404d2b
dec ebx
cmp byte [ebx], 0x2e
je 0x404d3a
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404d2a
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404db1
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404d67
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 0x404db1
cmp byte [ebp - 0xd], 0
je 0x404db1
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 0x404db1
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 0x409760
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 0x409799
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040389c
jmp 0x4097a2
mov eax, ebx
mov edx, esi
call fcn.00403850
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4097ac
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 0x4097cd
mov al, byte [esp]
jmp 0x4097cf
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x413d58
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 0x413d5e
ret

Function at 0x415fd8
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 0x416029
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x416010
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jne 0x416000
jmp 0x416029
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
jne 0x416011
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41b574
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x44e65c
cmp dword [edi], 0
jne 0x41b5f0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x44e658]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x44c634
mov ecx, 2
call fcn.00402780
mov edx, 0x41b54c
lea eax, [esi + 5]
call fcn.0041b56c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041b56c
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 0x41b5c5
mov dword [0x44e658], 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 0x41b714
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x41b764]
test si, 4
je 0x41b728
or bl, 1
test si, 8
je 0x41b732
or bl, 4
test si, 1
je 0x41b73c
or bl, 8
test si, 2
je 0x41b746
or bl, 0x10
test si, 0x10
je 0x41b750
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x41b75f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x41b768
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x41b7a0]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x41b781
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x41b790
or bl, 4
test esi, 0x20000000
je 0x41b79b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret