joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ae9d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
pushal
mov edx, dword [ebp + 0xc]
sub eax, eax
mov ax, word [edx + 2]
mov dword [ebp - 0x118], eax
add edx, 0x14
mov eax, dword [edx + 0x1c]
mov dword [ebp - 0x114], eax
mov eax, dword [edx + 0x38]
mov dword [ebp - 0x110], edx
lea edx, [ebp - 0xc]
mov ebx, dword [ebp + 8]
push edx
push 4
push eax
push dword [ebp - 0x114]
call dword [ebx + 0x24]
test eax, eax
je 0x41afee
mov byte [ebp - 0x10c], 0x53
mov byte [ebp - 0x10b], 0x65
mov byte [ebp - 0x10a], 0x74
mov byte [ebp - 0x109], 0x20
mov byte [ebp - 0x108], 0x49
mov byte [ebp - 0x107], 0x6d
mov byte [ebp - 0x106], 0x61
mov byte [ebp - 0x105], 0x67
mov byte [ebp - 0x104], 0x65
mov byte [ebp - 0x103], 0x20
mov byte [ebp - 0x102], 0x77
mov byte [ebp - 0x101], 0x72
mov byte [ebp - 0x100], 0x69
mov byte [ebp - 0xff], 0x74
mov byte [ebp - 0xfe], 0x61
mov byte [ebp - 0xfd], 0x62
mov byte [ebp - 0xfc], 0x6c
mov byte [ebp - 0xfb], 0x65
mov byte [ebp - 0xfa], 0x3a
mov byte [ebp - 0xf9], 0
mov eax, 1
mov eax, 1
test eax, eax
je 0x41afee
mov edx, dword [ebp - 0x110]
lea ebx, [edx + 0x60]
mov eax, dword [edx + 0x5c]
mov edx, 8
mul edx
add eax, ebx
mov dword [ebp - 8], eax
mov eax, 0x28
mov edx, dword [ebp - 0x118]
mul edx
add eax, dword [ebp - 8]
mov ebx, dword [ebp + 0x10]
sub eax, ebx
mov dword [ebp - 4], eax
mov edi, dword [ebp - 0x114]
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x118]
mov ebx, dword [ebp - 8]
push dword [ebp + 0x10]
push dword [ebp - 0x114]
push ebx
push dword [ebp + 8]
call fcn.0041aff8
test eax, eax
je 0x41afee
add ebx, 0x28
dec ecx
jne 0x41afc7
popal
mov eax, dword [ebp - 0x114]
leave
ret 0x10
popal
mov eax, 0
leave
ret 0x10

Function at 0x41b09e
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
pushal
mov edx, dword [ebp + 0xc]
mov ebx, dword [edx + 0x24]
and ebx, 0xe0000000
cmp ebx, 0xe0000000
jne 0x41b0c9
mov eax, 0x40
mov dword [ebp - 0x108], eax
jmp 0x41b12e
mov ebx, dword [edx + 0x24]
and ebx, 0x60000000
cmp ebx, 0x60000000
jne 0x41b0e7
mov eax, 0x20
mov dword [ebp - 0x108], eax
jmp 0x41b12e
mov ebx, dword [edx + 0x24]
and ebx, 0xc0000000
cmp ebx, 0xc0000000
jne 0x41b105
mov eax, 4
mov dword [ebp - 0x108], eax
jmp 0x41b12e
mov ebx, dword [edx + 0x24]
and ebx, 0x40000000
cmp ebx, 0x40000000
jne 0x41b123
mov eax, 2
mov dword [ebp - 0x108], eax
jmp 0x41b12e
mov eax, 1
mov dword [ebp - 0x108], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xc]
add eax, dword [ebp + 0x10]
mov ebx, dword [edx + 8]
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x104]
push edx
push dword [ebp - 0x108]
push ebx
push eax
call dword [ecx + 0x24]
test eax, eax
je 0x41b16b
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xc]
add eax, dword [ebp + 0x10]
mov eax, 1
popal
mov eax, 1
leave
ret 0x10
popal
sub eax, eax
leave
ret 0x10
Function at 0x41b172
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
pushal
mov edx, dword [ebp + 8]
mov ax, word [edx]
cmp ax, 0x5a4d
jne 0x41b1a1
mov eax, dword [edx + 0x3c]
add edx, eax
mov eax, dword [edx]
cmp eax, 0x4550
jne 0x41b1a1
add edx, 4
mov dword [ebp - 4], edx
popal
mov eax, dword [ebp - 4]
leave
ret 8
popal
sub eax, eax
leave
ret 8

Function at 0x41bdff
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov ecx, 3
mov edx, 1
push ecx
push dword [ebp + 8]
call fcn.0041bf04
rol eax, 8
push dword [ebp + 0xc]
push eax
call fcn.0041bf20
push edx
push dword [ebp + 0x10]
push eax
call fcn.0041beec
inc edx
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.0041bf04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.0041becb
push ecx
push dword [ebp + 8]
call fcn.0041bf04
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.0041bf04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.0041becb
push ecx
push dword [ebp + 8]
call fcn.0041bf04
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.0041bf04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.0041becb
push ecx
push dword [ebp + 8]
call fcn.0041bf04
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.0041bf04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.0041becb
cmp ecx, 0x2b
jne 0x41be0f
leave
ret 0xc

Function at 0x41d4b4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
pushal
mov byte [ebp - 0x118], 0x42
mov byte [ebp - 0x117], 0x72
mov byte [ebp - 0x116], 0x75
mov byte [ebp - 0x115], 0x74
mov byte [ebp - 0x114], 0x65
mov byte [ebp - 0x113], 0x66
mov byte [ebp - 0x112], 0x6f
mov byte [ebp - 0x111], 0x72
mov byte [ebp - 0x110], 0x63
mov byte [ebp - 0x10f], 0x69
mov byte [ebp - 0x10e], 0x6e
mov byte [ebp - 0x10d], 0x67
mov byte [ebp - 0x10c], 0x20
mov byte [ebp - 0x10b], 0x4b
mov byte [ebp - 0x10a], 0x65
mov byte [ebp - 0x109], 0x79
mov byte [ebp - 0x108], 0
mov eax, 1
lea edi, [ebp - 0x14]
mov ecx, 0x10
mov al, 0
mov byte [edi], al
inc edi
dec ecx
jne 0x41d544
mov eax, dword [ebp + 8]
push 4
push 0x3000
push 0xdb20
push 0
call dword [eax + 0x20]
test eax, eax
je 0x41d5d6
mov dword [ebp - 4], eax
mov edi, eax
mov esi, dword [ebp + 0xc]
mov ecx, 0xdb20
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0xc]
push 0xdb20
call fcn.0041d3fa
push 0xdb20
push dword [ebp + 0xc]
call fcn.0041b1a8
test eax, eax
jne 0x41d5b8
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 0xc]
mov ecx, 0xdb20
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14]
push eax
call fcn.0041d5dd
test eax, eax
je 0x41d5d6
jmp 0x41d574
mov eax, dword [ebp + 8]
push 0x8000
push 0
push dword [ebp - 4]
call dword [eax + 0x28]
test eax, eax
je 0x41d5d6
popal
mov eax, 1
leave
ret 8
popal
sub eax, eax
leave
ret 8
Function at 0x41d60b
Capabilities:
Terminate process

Disassembly:
call fcn.0041d618
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
Function at 0x10005cd4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x98
mov eax, dword [0x10020054]
xor eax, esp
mov dword [esp + 0x94], eax
push ebx
push ebp
push esi
push edi
mov edi, 0x80
lea eax, [esp + 0x24]
push edi
push 0
push eax
mov esi, ecx
call fcn.10008cb0
add esp, 0xc
mov ecx, esi
call fcn.10006027
test eax, eax
je 0x10005f0b
lea eax, [esp + 0x18]
push eax
push dword [esi + 0x3c]
push esi
call fcn.100013ec
add esp, 0xc
test al, al
je 0x10005d2c
call fcn.10004881
mov eax, dword [esp + 0x18]
add eax, 0x78
push edi
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.10008730
mov eax, dword [esp + 0x34]
add esp, 0xc
test eax, eax
sete cl
test eax, eax
je 0x10005d57
cmp dword [esp + 0x24], 0
sete cl
test cl, cl
jne 0x10005f0b
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x28]
push esi
call fcn.100013ec
add esp, 0xc
test al, al
je 0x10005d7a
call fcn.10004881
mov eax, dword [esp + 0xac]
or eax, dword [esp + 0xb0]
je 0x10005f0b
mov ebx, dword [esp + 0x18]
xor edi, edi
mov ebp, dword [ebx + 0x18]
test ebp, ebp
js 0x10005f0b
lea eax, [esp + 0x18]
push eax
push 4
push edi
call fcn.1000606d
add esp, 0xc
test al, al
je 0x10005db8
call fcn.10004881
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x1c]
push dword [ebx + 0x20]
call fcn.100013ec
add esp, 0xc
test al, al
je 0x10005dd5
call fcn.10004881
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x20]
push esi
call fcn.100013ec
add esp, 0xc
test al, al
je 0x10005df0
call fcn.10004881
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x24]
push dword [eax]
push esi
call fcn.100013ec
add esp, 0xc
test al, al
je 0x10005e0d
call fcn.10004881
mov ecx, dword [esp + 0x10]
call fcn.10005c64
cmp dword [esp + 0xac], eax
jne 0x10005e28
cmp dword [esp + 0xb0], edx
je 0x10005e52
lea eax, [esp + 0x14]
push eax
push 1
push edi
call fcn.100013ec
add esp, 0xc
test al, al
je 0x10005e41
call fcn.10004881
mov edi, dword [esp + 0x14]
cmp edi, ebp
jle 0x10005d9f
jmp 0x10005f0b
lea eax, [esp + 0x14]
push eax
push 2
push edi
call fcn.1000606d
add esp, 0xc
test al, al
je 0x10005e6b
call fcn.10004881
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x18]
push dword [ebx + 0x24]
call fcn.100013ec
add esp, 0xc
test al, al
je 0x10005e88
call fcn.10004881
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14]
push esi
call fcn.100013ec
add esp, 0xc
test al, al
je 0x10005ea3
call fcn.10004881
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
mov ax, word [eax]
shl ax, 2
movzx eax, ax
push eax
push dword [ebx + 0x1c]
call fcn.100013ec
add esp, 0xc
test al, al
je 0x10005ecb
call fcn.10004881
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14]
push esi
call fcn.100013ec
add esp, 0xc
test al, al
je 0x10005ee6
call fcn.10004881
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
push dword [eax]
push esi
call fcn.100013ec
add esp, 0xc
test al, al
je 0x10005f03
call fcn.10004881
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x10005f0d
xor eax, eax
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10007925
add esp, 0x98
ret 8
Function at 0x10005f28
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [eax + 0xc]
mov ebx, edx
add ebp, 0x14
push esi
push edi
mov edi, ecx
mov esi, dword [ebp]
jmp 0x10005f4a
mov esi, dword [esi]
cmp esi, ebp
je 0x10005f65
push dword [esi + 0x28]
push edi
call dword [0x1002171c]
test eax, eax
jne 0x10005f44
mov esi, dword [esi + 0x10]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
not ebx
mov ecx, ebx
call fcn.10005958
test al, al
jne 0x10006020
mov ecx, 0x100189ac
call fcn.10005bde
xor edx, edx
mov ecx, eax
call fcn.10005f28
xor esi, esi
xor edx, edx
push esi
push 0xd02065c1
mov ecx, eax
call fcn.10005cd4
mov ebp, eax
test ebp, ebp
je 0x10005f5b
push 8
lea eax, [esp + 0x18]
push esi
push eax
call fcn.10008cb0
add esp, 0xc
mov dword [esp + 0x18], edi
push edi
call dword [0x10021660]
mov ebx, eax
test ebx, ebx
jns 0x10005fd4
push esi
push 0x7fffffff
push esi
cdq
push esi
push edx
push eax
call fcn.1000488c
add esp, 0x18
mov edx, ebx
mov ecx, edi
call fcn.10005961
test eax, eax
je 0x10005fe6
mov ax, word [eax]
jmp 0x10005fe8
xor eax, eax
mov word [esp + 0x14], ax
mov eax, dword [esp + 0x14]
add eax, eax
mov dword [esp + 0x10], esi
mov word [esp + 0x14], ax
add eax, 2
mov word [esp + 0x16], ax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push esi
push esi
call ebp
xor esi, esi
test eax, eax
cmovns esi, dword [esp + 0x10]
jmp 0x10005f5b
xor esi, esi
jmp 0x10005f5b

Function at 0x10006027
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
test ecx, ecx
je 0x10006069
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x10006069
lea eax, [ebp - 4]
push eax
push dword [ecx + 0x3c]
push ecx
call fcn.100013ec
add esp, 0xc
test al, al
je 0x10006052
call fcn.10004881
mov eax, dword [ebp - 4]
cmp dword [eax], 0x4550
jne 0x10006069
movzx eax, word [eax + 0x16]
shr eax, 0xd
and eax, 1
leave
ret
xor eax, eax
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 0x40279c
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x4027d9
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x108]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x4027f9
lea eax, [esp + 0x108]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x104
call fcn.00403bf8
add esp, 0x20c
pop esi
pop ebx
ret

Function at 0x40294c
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 0x40297b
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.00403ab0
jmp 0x402999
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.004028e0
mov edi, eax
test ebx, ebx
je 0x402999
cmp dword [esi], 0
je 0x402999
dec ebx
jmp 0x402982
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402be8
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x45c03c], 0x8088405
inc edx
mov dword [0x45c03c], edx
mul edx
mov eax, edx
ret

Function at 0x402d1c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x45a000]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402db4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402d94
xor eax, eax
push ebp
push 0x402d8d
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 0x402dd0
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 0x402d94
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x45a000]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x45a000], ax
mov esp, ebp
pop ebp
ret
Function at 0x40475c
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 0x4048f8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40480c
xor eax, eax
push ebp
push 0x404805
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 0x4047ee
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404918
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 0x40480c
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 0x4048ed
cmp byte [ebp - 0xd], 0
jne 0x40484e
cmp byte [ebp - 0x12], 0
je 0x4048ed
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404867
dec ebx
cmp byte [ebx], 0x2e
je 0x404876
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404866
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4048ed
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4048a3
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 0x4048ed
cmp byte [ebp - 0xd], 0
je 0x4048ed
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 0x4048ed
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 0x404dfc
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, edx
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x404e58
push ecx
push 0
mov eax, esp
push 0
push eax
mov eax, dword [ebx + 8]
mul ecx
push eax
push esi
push dword [ebx]
call sub.kernel32.dll_ReadFile
dec eax
pop eax
pop ecx
jne 0x404e4a
xor edx, edx
div dword [ebx + 8]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x404e3f
mov dword [edx], eax
pop esi
pop ebx
ret 4
cmp eax, ecx
je 0x404e3a
mov eax, 0x64
jmp 0x404e4f
call sub.kernel32.dll_GetLastError
call fcn.00402764
xor eax, eax
jmp 0x404e3a
mov eax, 0x67
jmp 0x404e4f
Function at 0x404e60
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, edx
mov eax, dword [eax + 4]
sub eax, 0xd7b2
cmp eax, 1
ja 0x404ebb
push ecx
push 0
mov eax, esp
push 0
push eax
mov eax, dword [ebx + 8]
mul ecx
push eax
push esi
push dword [ebx]
call sub.kernel32.dll_WriteFile
dec eax
pop eax
pop ecx
jne 0x404ead
xor edx, edx
div dword [ebx + 8]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x404ea2
mov dword [edx], eax
pop esi
pop ebx
ret 4
cmp eax, ecx
je 0x404e9d
mov eax, 0x65
jmp 0x404eb2
call sub.kernel32.dll_GetLastError
call fcn.00402764
xor eax, eax
jmp 0x404e9d
mov eax, 0x67
jmp 0x404eb2

Function at 0x404f00
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, eax
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x404f43
push 0
push dword [ebx]
call sub.kernel32.dll_GetFileSize
cmp eax, 0xffffffff
je 0x404f3a
push eax
push 1
push 0
push 0
push dword [ebx]
call sub.kernel32.dll_SetFilePointer
cmp eax, 0xffffffff
je 0x404f3a
pop edx
cmp eax, edx
setae al
pop ebx
ret
call fcn.00402774
mov al, 1
jmp 0x404f38
mov eax, 0x67
call fcn.00402764
mov al, 0xff
jmp 0x404f38

Function at 0x4074cc
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00403e0c
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x4074ee
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x408c44
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 0x408c7d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403ab0
jmp 0x408c86
mov eax, ebx
mov edx, esi
call fcn.00403a64
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x408c90
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 0x408cb1
mov al, byte [esp]
jmp 0x408cb3
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x414afc
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 0x414b02
ret

Function at 0x41715c
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 0x4171ad
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x417194
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jne 0x417184
jmp 0x4171ad
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 0x417195
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x422754
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x114], 0
je 0x422770
cmp dword [esi + 4], 0
je 0x422797
mov eax, ebx
call fcn.00421988
test eax, eax
jne 0x422789
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x4228a7
mov edx, esi
mov eax, ebx
call fcn.004223f8
jmp 0x4228a7
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4228a0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00423d54
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00420890
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00422754
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00423d54
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4228a7
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4267e4
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.004039cc
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x426845
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
cmp byte [ebp - 0x101], 0
jne 0x426845
cmp byte [ebp - 0x102], 0
je 0x426845
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00403bf8
pop ebx
mov esp, ebp
pop ebp
ret