joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408e54
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x3c7108bc
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x15fd3966
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x401996
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
test ebx, ebx
sete dl
cmp dword [ebp + 8], 0
sete al
mov ecx, 0
or dl, al
jne 0x401ada
lea ecx, [edi*4 + 0xb]
mov edx, 0x2aaaaaab
mov eax, ecx
imul edx
sar edx, 1
mov eax, ecx
sar eax, 0x1f
sub edx, eax
lea edx, [edx*4 + 1]
cmp edx, dword [ebp + 0x14]
jle 0x401a3d
mov dword [esp], 0x6f
call sub.KERNEL32.DLL_SetLastError
sub esp, 4
mov ecx, 0
jmp 0x401ada
movzx eax, byte [ecx]
and eax, 3
shl eax, 4
movzx eax, byte [eax + section.3424opad]
mov byte [ebx + 1], al
mov byte [ebx + 2], 0x3d
mov byte [ebx + 3], 0x3d
add ebx, 4
jmp 0x401ad2
movzx eax, byte [ecx + 1]
and eax, 0xf
movzx eax, byte [eax*4 + section.3424opad]
mov byte [ebx + 2], al
mov byte [ebx + 3], 0x3d
add ebx, 4
jmp 0x401ad2
mov esi, 0
mov ecx, dword [ebp + 8]
cmp esi, edi
jge 0x401ad2
movzx eax, byte [ecx]
shr al, 2
movzx eax, al
movzx eax, byte [eax + section.3424opad]
mov byte [ebx], al
mov eax, edi
sub eax, esi
cmp eax, 1
je 0x4019fc
movzx edx, byte [ecx]
and edx, 3
shl edx, 4
movzx eax, byte [ecx + 1]
shr al, 4
movzx eax, al
or edx, eax
movzx eax, byte [edx + section.3424opad]
mov byte [ebx + 1], al
mov eax, edi
sub eax, esi
cmp eax, 2
je 0x401a1f
movzx edx, byte [ecx + 1]
and edx, 0xf
shl edx, 2
movzx eax, byte [ecx + 2]
shr al, 6
movzx eax, al
or edx, eax
movzx eax, byte [edx + section.3424opad]
mov byte [ebx + 2], al
movzx eax, byte [ecx + 2]
and eax, 0x3f
movzx eax, byte [eax + section.3424opad]
mov byte [ebx + 3], al
add esi, 3
add ecx, 3
add ebx, 4
cmp esi, edi
jl 0x401a4d
mov byte [ebx], 0
mov ecx, 1
mov eax, ecx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x401b7e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, 0
mov dword [esp], 0
call sub.msvcrt.dll_malloc
mov esi, eax
mov dword [esp + 4], 0x40e000
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov edi, eax
mov eax, 0
test edi, edi
je 0x401c23
jmp 0x401bc1
mov eax, 0
jmp 0x401c23
test byte [edi + 0xc], 0x10
jne 0x401c00
inc ebx
mov dword [esp + 4], ebx
mov dword [esp], esi
call sub.msvcrt.dll_realloc
mov esi, eax
test eax, eax
je 0x401bba
mov dword [esp + 0xc], edi
mov dword [esp + 8], 1
mov dword [esp + 4], 1
lea eax, [eax + ebx - 1]
mov dword [esp], eax
call sub.msvcrt.dll_fread
test byte [edi + 0xc], 0x10
je 0x401bc7
lea eax, [ebx - 1]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00401b44
mov ebx, eax
mov dword [esp], esi
call sub.msvcrt.dll_free
mov dword [esp], edi
call sub.msvcrt.dll_fclose
mov eax, ebx
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x402527
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x402554
xor eax, eax
jmp 0x4025a2
push ebx
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
push esi
push esi
push 2
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], eax
call edi
cmp dword [ebp - 4], 0xffffffff
jne 0x402585
xor eax, eax
jmp 0x4025a1
push esi
push esi
push esi
push 4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push dword [ebp - 4]
mov esi, eax
call edi
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
mov eax, esi
pop ebx
pop edi
pop esi
leave
ret
Function at 0x401000
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
rcl edx, 0x5b
rcl edx, 0xb0
sub ebx, 0xc3
dec eax
bswap edx
inc edx
mov ebx, 0x87
imul esi
neg esi
and ebx, 0x3f
imul ebx
not eax
dec esi
dec eax
sbb edx, 0x46
neg esi
imul ebx
sub esi, 0x74
bswap eax
sbb eax, 0xaf
imul edx
inc esi
imul edx
sub edi, 0xa3
inc edx
ror edi, 0xb9
ror edi, 0xe4
rcr eax, 0x8a
dec ebx
bswap edi
imul eax
neg esi
add edx, 0xdb
sub eax, 0x6a
dec edi
mov esi, 0xd9
sbb edx, 0xb8
neg edx
mov esi, 0x3e
add eax, 0xf0
inc ebx
rol ebx, 0x40
add eax, 0xaa
imul edx
rcl esi, 0xc4
neg edi
imul edi
mov eax, 0x2c
sub esi, 0x34
mov eax, 0x64
xor ecx, ecx
xor edi, edi
imul edx
dec edx
not eax
and esi, 0xa
not edi
not edi
and esi, 0xc4
mov ebx, 0x92
imul esi
and eax, 0x6b
sub esi, 0x46
rol esi, 0xc9
bswap ebx
inc esi
neg edx
inc ebx
bswap edi
or edx, 0xbc
bswap esi
sub ebx, 0xa4
ror esi, 0x1c
bswap esi
imul eax
inc eax
not ebx
bswap eax
not edi
not esi
sbb esi, 2
neg edx
inc ebx
inc ebx
not ebx
rcr eax, 0x14
sub esi, 0x3a
dec esi
and eax, 0xb7
bswap esi
sbb eax, 0x72
mov ebx, 0x34
add ebx, 0xca
neg esi
bswap eax
sub edi, 0x3c
or edi, 0xe8
or ebx, 0x68
rol edx, 0x6d
ror edx, 3
ror esi, 0x58
add eax, 0xf6
mov ecx, dword [ebp + 0xc]
not edx
bswap esi
inc edi
dec esi
sbb esi, 0xe4
rol edi, 0xba
rcl esi, 0x65
dec eax
and ebx, 0xbb
rol esi, 0x39
dec edx
rol esi, 0x69
sbb eax, 0x3d
mov edx, 0x44
imul eax
rol edx, 9
inc ebx
rol edx, 0xcf
sbb edi, 0xdd
not edx
ror ebx, 0x54
rol ebx, 0x23
bswap ebx
imul edi
dec esi
mov edi, 0x19
neg ebx
not ebx
bswap esi
rcr edx, 0x9d
not eax
rol edi, 0xa8
neg esi
rol edx, 0x18
sbb edx, 0x4b
inc esi
inc edx
neg ebx
rol eax, 0xa4
mov edi, 0x47
imul ebx
dec esi
rol eax, 0x77
ror edx, 0xaa
dec ebx
mov esi, 0x33
sbb esi, 0xb7
dec esi
rcl edi, 0x60
bswap ebx
mov edi, dword [ebp + 8]
mov ebx, ebx
xor esi, eax
xor ebx, eax
mov eax, esi
xor ebx, esi
xor eax, esi
mov ebx, eax
xor esi, eax
xor eax, esi
mov ebx, esi
mov ebx, eax
xor esi, esi
not byte [edi]
mov esi, ebx
mov eax, esi
mov esi, eax
xor esi, eax
xor eax, esi
mov esi, eax
mov esi, esi
mov esi, esi
xor eax, eax
sub byte [edi], 0x89
mov eax, ebx
mov ebx, esi
xor ebx, eax
mov esi, eax
xor ebx, esi
mov eax, eax
xor eax, ebx
mov esi, ebx
xor esi, esi
add byte [edi], 0x43
mov ebx, ebx
xor eax, esi
xor esi, ebx
mov eax, esi
mov eax, esi
xor esi, eax
mov eax, ebx
mov eax, esi
xor esi, esi
imul byte [edi]
inc edi
loop 0x4011b6
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x403333
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00402229
and dword [ebp - 4], 0
cmp dword [0x45e088], 0
mov ebx, eax
jne 0x4033e4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x403495
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x403495
push eax
call fcn.004021b7
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x45e088], eax
call esi
push eax
call fcn.004021b7
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x45e08c], eax
call esi
push eax
call fcn.004021b7
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x45e090], eax
call esi
push eax
call fcn.004021b7
pop ecx
mov dword [0x45e098], eax
test eax, eax
je 0x4033e4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004021b7
pop ecx
mov dword [0x45e094], eax
mov eax, dword [0x45e094]
cmp eax, ebx
je 0x40343c
cmp dword [0x45e098], ebx
je 0x40343c
push eax
call fcn.00402232
push dword [0x45e098]
mov esi, eax
call fcn.00402232
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40343c
test edi, edi
je 0x40343c
call esi
test eax, eax
je 0x403433
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x403433
test byte [ebp - 0xc], 1
jne 0x40343c
or dword [ebp + 0x10], 0x200000
jmp 0x403475
mov eax, dword [0x45e08c]
cmp eax, ebx
je 0x403475
push eax
call fcn.00402232
pop ecx
test eax, eax
je 0x403475
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x403475
mov eax, dword [0x45e090]
cmp eax, ebx
je 0x403475
push eax
call fcn.00402232
pop ecx
test eax, eax
je 0x403475
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45e088]
call fcn.00402232
pop ecx
test eax, eax
je 0x403495
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x403497
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40519e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45d7f8]
jne 0x4051a8
repz ret
jmp fcn.004068c5
Function at 0x10006089
Capabilities:
Resume thread

Disassembly:
push 0x10
mov eax, 0x10011324
call fcn.10010dbc
mov ebx, ecx
mov dword [ebp - 0x18], ebx
cmp byte [ebx + 4], 0
jne 0x100061ed
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
cmp eax, dword [ebx]
jne 0x100061ed
push 0x1000334a
push 0xd008
call fcn.10009830
mov edi, eax
mov dword [ebp - 0x1c], edi
pop ecx
pop ecx
test edi, edi
je 0x100061e6
push 0xc000
xor ebx, ebx
push ebx
push edi
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xc000], ebx
lea eax, [edi + 0xc004]
push 0x1000
push ebx
push eax
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xd004], ebx
test edi, edi
je 0x100061e6
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
lea ecx, [ebp - 0x1c]
call fcn.10009830
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.10009830
mov esi, eax
push esi
push 0x10003028
mov dword [ebp - 0x10], esi
call fcn.10009830
pop ecx
pop ecx
test esi, esi
jne 0x1000619a
mov ecx, edi
call fcn.10009830
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100061fa
mov eax, dword [eax]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x10014250]
mov ecx, dword [ebp - 0x14]
call esi
call fcn.10009830
test eax, eax
je 0x10006190
jg 0x10006175
mov esi, eax
mov dword [ebp - 0x10], eax
jmp 0x10006181
movzx esi, ax
or esi, 0x80070000
mov dword [ebp - 0x10], esi
push esi
push 0x10003050
call fcn.10009830
pop ecx
pop ecx
jmp 0x1000619a
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
mov byte [eax + 4], 1
lea ecx, [ebp - 0x1c]
call fcn.1000704c
lea eax, [edi + 0xc000]
mov dword [ebp - 0x1c], eax
cmp dword [eax], ebx
jbe 0x100061ce
lea esi, [edi + 8]
test byte [esi - 4], 1
je 0x100061c3
push dword [esi]
call dword [sym.imp.kernel32.dll_ResumeThread]
mov eax, dword [ebp - 0x1c]
inc ebx
add esi, 0xc
cmp ebx, dword [eax]
jb 0x100061b2
mov esi, dword [ebp - 0x10]
mov ecx, edi
call fcn.10009830
push 0xd008
push edi
call fcn.10009830
pop ecx
pop ecx
mov eax, esi
jmp 0x100061f2
mov eax, 0x8007000e
jmp 0x100061f2
mov eax, 0x800710dd
call fcn.10010d85
ret 4
call fcn.10009830
int3

Function at 0x10009830
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x1000983f
pop dword [ebp - 0x18]
mov eax, 0x67e511ed
sub eax, 0x57e479ae
sub dword [ebp - 0x18], eax
push 0x40
push 0x1000
push 0x33f97
push 0
mov eax, 0xc6a873fc
add eax, 0x4958cc68
add eax, dword [ebp - 0x18]
call dword [eax]
mov ecx, 0x33e4
mov edi, eax
mov esi, 0x3df87d71
sub esi, 0x2df6f771
add esi, dword [ebp - 0x18]
mov ebx, 0x315c60a7
sub ebx, 0xec2ffaeb
sub dword [ebp - 0xc], edi
mov edx, dword [esi]
add dword [ebp - 4], 0xba74790a
add edx, ebx
xor dword [ebp - 0xc], 0x83d9dc61
mov dword [edi], edx
add edi, 4
add esi, 0xfe0a2a87
add esi, 0x1f5d57d
loop 0x10009898
add eax, 0xb87e1d76
sub eax, 0xb87d5b13
mov ebx, eax
add eax, 5
mov ecx, 0xebe994c3
sub ecx, 0xdbe994c3
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x401750
Capabilities:
Terminate process

Disassembly:
push ebp
mov eax, dword [eax - 0x74f7ba75]
or eax, sym.imp.MSVCRT.dll__iob
std
add ecx, 0x40
push 0xfcd299
push ecx
mov dword [0x40c17622], eax
add byte [ecx + 0x774102ac], ah

Function at 0x406840
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
dec esp
push esi
adc byte [edx], al
add byte [eax], al
cmp al, 0x8b
pop ebp
das
push esi
push edi
mov eax, dword [ebx + 4]
jo 0x40684c
dec dword [edi]
test byte [edi + ebx*4 + 0x4b8b0000], dl
sbb byte [ebx - 0x37], ch
je 0x10769ef
test al, 0x81
or al, 0x35
loopne 0x406880
lea edx, [esi + 0x28]
pop edi
push edx
push eax
call dword [0xaac1a4]
fdiv st(0), st(0)
dec dword [edi]
test dword [edi], esi
add dword [eax], eax
add byte [ebx + 0x4001d835], cl
add byte [ecx + 0xfc01340], cl
pop ebp
stc
add byte [eax], al
add bh, bh
salc
add eax, 0xe10afc80
cmp eax, 0xb23b3
jne 0x4069f4
mov eax, dword [ebx + 0x20]
mov esi, dword [ebx + 0x24]
loope 0x406906
invalid
inc esi
dec esi
add byte [eax], al
mov dword [ebp - 4], eax
lea eax, [ebp - 0x43]
lea ecx, [ebp - 0x6d010c]
push eax
lea edx, [ebp - 0x3000210]
push ecx
push edx
adc dword [edx + ebp*2 + 0x41], edi
call dword [sym.imp.WSOCK32.dll_select]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x40697e
test eax, eax
jne 0x406943
pop edi
mov al, byte [0xb23ccb8]
add byte [ebx - 0x23], bl
in eax, 0x5d
ret 8
mov ecx, dword [ebx + 4]
jnp 0x406997
hlt
call 0x4eb960
test eax, eax
je 0x4069b5
mov esi, dword [edx + 4]
lea edx, [ebp + 0xc]
lea eax, [ebp + 8]
push edx
push eax
push 0x6307
sahf
invalid
or cl, byte [eax - 0xffc800]
clc
mov al, byte [0x850027c1]
inc edx
je 0x4069a5
xor eax, 0x52c1d8
call esi
test eax, eax
jl 0x40696e
mov dl, 0x5e
js 0x40694e
push 0xfe5de58b
or byte [eax], al
inc dword [eax + 0x5f]
pop edi
pop esi
add eax, 0xa4380
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
test dword [edi], edx
jne 0x406997
pop edi
sbb dword [edx + 0x2b5de5f8], 0x758b0008
or al, 0x8b
push ebp
adc byte [ecx - 0x7c99eb33], cl
js 0x4069ec
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov ebp, ecx
adc al, 0x66
cmp dword [eax + 0x2a], 0
jne 0x4069cc
add byte [ebp + 7], dh
mov dword [ebx + 0x29], 0x2d
invalid
ret 8
pop edi
pop esi
pop ebx
add al, 0xe5
pop ebp
ret 8

Function at 0x409ed0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov esp, esp
or byte [ebx - 0x3e08f7b8], cl
add byte [ebx], ch
adc byte [ebp + eax - 0x7d], dh
jne 0x409ee9
push esp
add eax, dword [ebx - 0x2e74a037]
mov edx, ecx
mov dword [esi], ebx
or cl, al
loop 0x409ef5
or edx, ecx
shl edx, 0x95
xchg ebp, eax
or edx, ecx
xor cl, byte [eax + 4]
or ecx, 0x95700000
or al, 0x50
or byte [ecx + 0x48], dl
add al, 0x8b
ror dword [ebx - 0x2f08f3b3], 0x23
sal edi, 0xd8
pop esp
sal byte [ebp + 0x5d], 0x11
fild word [ebp + 0x6290c35d]
nop
nop
nop
Function at 0x402af8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404944
test esi, esi
jne 0x402b2e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404a34
jmp 0x402b4c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a0c
mov edi, eax
test esi, esi
je 0x402b4c
cmp dword [ebx], 0
je 0x402b4c
dec esi
jmp 0x402b35
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x52d008], 0x8088405
inc edx
mov dword [ebx + 0x52d008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4039c4
Capabilities:
Query or enumerate registry value

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

Function at 0x404744
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x53104c], 0
je 0x4047a5
cmp word [0x531220], 0xd7b2
jne 0x40476d
cmp dword [0x531228], 0
jbe 0x40476d
mov eax, 0x53121c
call dword [0x531238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x52d058
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 0x4047cc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x52d020], 0
jne 0x4047c1
push 0
push 0x52d078
push 0x52d058
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4048f8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402768
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x53104d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4048c0
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x409538
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404df4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409551
test al, 0x10
jne 0x409555
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x409698
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404df4
push eax
call sub.kernel32.dll_GetFileAttributesA
pop ebx
ret

Function at 0x4096ac
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.00404df4
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x4096ce
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40c950
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 0x40c989
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404a34
jmp 0x40c992
mov eax, ebx
mov edx, esi
call fcn.00404998
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40d044
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40cebc
mov eax, dword [0x5309e8]
cmp byte [eax], 0
je 0x40d0ac
mov eax, dword [0x530794]
call fcn.00402f74
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00409c4c
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
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 0x40d0f4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d0e2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x530734]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x531718]
call fcn.004060ec
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 0x40df58
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 0x40dfbc
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_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404bac
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409320
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dfc3
lea eax, [ebp - 0xc]
call fcn.00404944
ret

Function at 0x4200b0
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0041ff24
dec esi
jne 0x4200d2
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x4211fc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x531a28
cmp dword [edi], 0
jne 0x421278
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x531a24]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x52d5b0
mov ecx, 2
call fcn.004029cc
mov edx, 0x4211d4
lea eax, [esi + 5]
call fcn.004211f4
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004211f4
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 0x42124d
mov dword [0x531a24], 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 0x4227f4
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 0x4227fa
ret

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