joyce8/EMBER2024-capa huggingface dataset:
Function at 0xcffbe7
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x100a89c0]
xor edx, edx
cmp eax, edx
jne 0xcffc0d
xor eax, eax
mov byte [eax + 0x100a88c0], al
inc eax
cmp eax, 0x100
jl 0xcffbf5
mov dword [0x100a89c0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x100a88c0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0xcffc9e
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0xcffc71
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0xcffc3f
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0xcffd17
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0xcffd6a
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0xcffd51
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xd00f87
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x10077568
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [0x100793bc]
push 0
lea ecx, [esp + 0x20]
call fcn.00d44452
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00d00927
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00d44380
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00d3efb9
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00d3efb9
push 1
push 0
push 0
mov ecx, esi
call fcn.00d3ef61
push 1
push 0
push 1
mov ecx, esi
call fcn.00d3ef61
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00d444c4
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0xd01107
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x10077588
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00d44452
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00d00927
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00d44380
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [0x100793bc]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0xd011cb
cmp dword [esp + 0x40], 1
jne 0xd011c9
cmp ecx, eax
jge 0xd011cb
mov eax, ecx
cmp eax, 0xc8
jge 0xd011d7
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00d00f87
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [0x1007939c]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00d444c4
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0xd01957
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x100775f3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00d3d3ec
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0x10080af0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], 0x1007ce00
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [0x100790f8]
push eax
mov ecx, edi
call fcn.00d446fa
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00d45f71
test eax, eax
je 0xd01a73
mov ecx, dword [esp + 0x3c]
call fcn.00d44727
mov ecx, dword [esi + 0x1c]
mov ebp, dword [0x1007938c]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0xd01a37
push edi
mov ecx, esi
call fcn.00d40fc0
mov ecx, esi
call fcn.00d01bd7
cmp dword [esp + 0x38], 1
jne 0xd01a6c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00d410fb
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28

Function at 0xd11577
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0xd115aa
push esi
call fcn.00d1f787
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0xd115a3
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0xd11630
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0xd11619
mov eax, dword [esi + 8]
test eax, eax
je 0xd115ce
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0xd11615
cmp eax, 2
je 0xd11619
mov ecx, dword [esi + 8]
test ecx, ecx
je 0xd115c1
cmp eax, 3
je 0xd115f4
cmp eax, 1
jne 0xd115c1
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0xd115c1
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0xd115c1
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00d11657
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0xd1163f
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00d11657
add esp, 4
pop esi
ret
Function at 0x433006
Capabilities:
Encode data using xor

Disassembly:
call 0x43300c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, reloc.shlwapi.dll_PathAppendW
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x405ed6
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4232f4], 0
push esi
jne 0x405f0d
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405ee7
mov dword [ecx*4 + 0x4232f0], eax
inc ecx
cmp ecx, 0x100
jl 0x405ee2
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f3e
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4232f0]
xor eax, esi
inc ecx
dec edx
jne 0x405f20
pop edi
not eax
pop esi
ret 0xc

Function at 0x8003b3f
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov dword [0x80043b4], 0x30
mov dword [0x80043bc], 0x8003351
mov dword [0x80043b8], 2
mov dword [0x80043c0], 0
mov dword [0x80043c4], 0
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
jmp 0x8003b82
mov dword [0x80043c8], eax
mov dword [0x80043dc], 0x80041e0
mov dword [0x80043d4], 0xf
mov dword [0x8004102], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x80043cc], eax
mov dword [0x80043e0], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x800410a], ebp
mov dword [0x80043d0], eax
push 0x80043b4
call dword [sym.imp.user32.dll_RegisterClassExA]
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x8004434], eax
push 0
push dword [0x8004102]
push 0
push 0
push 0x1ef
push 0x21c
push 0xffffe688
push 0xfffff524
push 0xcf0000
push str.uno_momento
push str.verba
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x800442c], eax
push 1
push dword [0x800442c]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x800442c]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x8003c40
xor edi, edi
lea ebx, [0x80043e4]
jmp 0x8003c58
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x8003c4a
jmp 0x8003c6c
mov eax, dword [0x80043ec]
call fcn.08002ae4
ret
Function at 0x42a390
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1d000]
push edi
jmp 0x42a3aa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42a3b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42a3a0
mov eax, 1
add ebx, ebx
jne 0x42a3c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42a3b8
jne 0x42a3d4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42a3b8
xor ecx, ecx
sub eax, 3
jb 0x42a3e8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42a45a
mov ebp, eax
add ebx, ebx
jne 0x42a3f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42a400
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42a424
inc ecx
add ebx, ebx
jne 0x42a410
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42a405
jne 0x42a421
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42a405
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42a444
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42a435
jmp 0x42a3a6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42a444
add edi, ecx
jmp 0x42a3a6
pop esi
mov edi, esi
mov ecx, 0x91a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42a462
cmp byte [edi], 9
jne 0x42a462
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x42a467
lea edi, [esi + 0x28000]
mov eax, dword [edi]
or eax, eax
je 0x42a4df
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x361cc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x362ac]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42a494
mov ecx, edi
jns 0x42a4c3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x362b4]
or eax, eax
je 0x42a4d9
mov dword [ebx], eax
add ebx, 4
jmp 0x42a4b1
call dword [esi + 0x362b0]
mov ebp, dword [esi + 0x362b8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x42a513
sub esp, 0xffffff80
jmp 0x41382f
Function at 0xb63290
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
xor eax, eax
test edx, edx
jle 0xb632a6
mov ecx, dword [esp + 4]
xor eax, dword [ecx]
add ecx, 4
dec edx
jne 0xb6329e
ret
Function at 0xbf0e54
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
pop eax
pop ebx
pop edi
push eax
cmp edi, 0xffff
ja 0xbf0e64
mov ecx, edi
xor edi, edi
mov edx, ebx
cmp word [ebx], 0x5a4d
jne 0xbf0ed3
movzx eax, word [ebx + 0x3c]
add ebx, eax
cmp word [ebx], 0x4550
jne 0xbf0ed3
mov ebx, dword [ebx + 0x78]
add ebx, edx
or edi, edi
je 0xbf0ec4
mov esi, dword [ebx + 0x20]
add esi, edx
mov ecx, dword [ebx + 0x18]
push ebx
xor ebx, ebx
lodsd eax, dword [esi]
add eax, edx
push esi
push edi
xchg esi, edi
xchg edi, eax
lodsb al, byte [esi]
or al, al
jne 0xbf0ea2
cmp byte [edi], 0
je 0xbf0eab
jmp 0xbf0ea9
cmp byte [edi], al
jne 0xbf0ea9
inc edi
jmp 0xbf0e96
mov al, 1
pop edi
pop esi
or al, al
je 0xbf0eb7
inc ebx
loop 0xbf0e8e
pop ebx
jmp 0xbf0ed3
xchg ebx, eax
pop ebx
mov esi, dword [ebx + 0x24]
add esi, edx
movzx ecx, word [esi + eax*2]
jmp 0xbf0ec7
sub ecx, dword [ebx + 0x10]
mov esi, dword [ebx + 0x1c]
add esi, edx
xchg ecx, eax
mov eax, dword [esi + eax*4]
add eax, edx
ret
xor eax, eax
ret

Function at 0xbf1556
Capabilities:
Parse pe header

Disassembly:
enter 4, 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0xbf158d
cmp word [eax], 0x5a4d
jne 0xbf158d
mov ecx, eax
add eax, dword [eax + 0x3c]
cmp word [eax], 0x4550
jne 0xbf158d
cmp dword [eax + 0x88], 0
je 0xbf158d
push ecx
call fcn.00bf16c5
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
leave
ret 4
Function at 0x4026e0
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.00403150
test esi, esi
jne 0x402716
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.00403214
jmp 0x402734
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004025f4
mov edi, eax
test esi, esi
je 0x402734
cmp dword [ebx], 0
je 0x402734
dec esi
jmp 0x40271d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4028f4
Capabilities:
Query or enumerate registry value

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

Function at 0x402fd4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x409034], 0
je 0x403035
cmp word [0x409208], 0xd7b2
jne 0x402ffd
cmp dword [0x409210], 0
jbe 0x402ffd
mov eax, 0x409204
call dword [0x409220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x408054
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 0x40305c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x408018], 0
jne 0x403051
push 0
push 0x40804c
push 0x408054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40371c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x403782
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403274
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004027e8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40376c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403789
lea eax, [ebp - 0x10]
call fcn.00403150
ret
Function at 0x403c34
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebx
push esi
movzx eax, word [0x40967c]
cmp eax, dword [0x409680]
jb 0x403cba
push 0
push 0x409680
mov eax, dword [0x40826c]
mov eax, dword [eax]
mov edx, 0x8000
call fcn.00407440
push eax
mov eax, dword [0x409674]
push eax
mov eax, dword [0x408224]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_ReadFile
mov eax, dword [0x408268]
mov ax, word [eax + 6]
and ax, 1
cmp ax, 1
jne 0x403cb1
mov esi, dword [0x409680]
dec esi
test esi, esi
jl 0x403cb1
inc esi
xor ebx, ebx
call fcn.004071dc
mov edx, dword [0x409674]
xor byte [edx + ebx], al
mov eax, dword [0x409674]
mov al, byte [eax + ebx]
call fcn.00407108
inc ebx
dec esi
jne 0x403c92
mov word [0x40967c], 0
cmp dword [0x409680], 0
jne 0x403cdb
mov eax, dword [0x40826c]
xor edx, edx
mov dword [eax], edx
mov word [0x40967c], 0
or eax, 0xffffffff
pop esi
pop ebx
ret
movzx eax, word [0x40967c]
mov edx, dword [0x409674]
movzx eax, byte [edx + eax]
inc word [0x40967c]
pop esi
pop ebx
ret

Function at 0x403d44
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, esp
mov ebp, 0x409678
mov eax, dword [0x40966c]
mov dword [edi], eax
mov ax, word [0x409670]
mov word [esp + 4], ax
mov bx, word [0x409684]
mov si, word [esp + 4]
and si, 7
lea ecx, [esp + 4]
mov edx, edi
mov eax, esi
call fcn.00403d38
lea ecx, [esp + 4]
mov edx, edi
mov ax, 0x10
call fcn.00403d14
mov si, word [edi]
and si, 0xffff
lea ecx, [esp + 4]
mov edx, edi
mov ax, 0x10
call fcn.00403d38
lea ecx, [esp + 4]
mov edx, edi
mov ax, 0x10
call fcn.00403d14
mov ax, word [edi]
not ax
and ax, 0xffff
cmp si, ax
je 0x403dce
mov word [0x409684], 0
lea ecx, [esp + 4]
mov edx, edi
mov ax, 0x10
call fcn.00403d38
test si, si
je 0x403e52
dec esi
lea ecx, [esp + 4]
mov edx, edi
mov ax, 8
call fcn.00403d14
movzx eax, bx
mov edx, dword [ebp]
mov cl, byte [edi]
mov byte [edx + eax], cl
inc ebx
cmp bx, 0x8000
jne 0x403e3e
push 0
lea eax, [esp + 0xc]
push eax
movzx eax, bx
push eax
mov eax, dword [ebp]
push eax
mov eax, dword [0x408260]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_WriteFile_1
mov eax, dword [esp + 8]
add dword [0x409694], eax
mov ecx, dword [0x408244]
movzx edx, bx
mov eax, dword [ebp]
call fcn.0040741c
xor ebx, ebx
lea ecx, [esp + 4]
mov edx, edi
mov ax, 8
call fcn.00403d38
test si, si
jne 0x403de2
mov word [0x409684], bx
mov eax, dword [edi]
mov dword [0x40966c], eax
mov ax, word [esp + 4]
mov word [0x409670], ax
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x404ce8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, 0x409668
xor eax, eax
mov dword [0x409694], eax
mov word [0x40967c], 0
xor eax, eax
mov dword [0x409680], eax
mov word [0x409684], 0
mov word [0x409670], 0
xor eax, eax
mov dword [0x40966c], eax
xor ebx, ebx
xor eax, eax
mov dword [0x409674], eax
xor eax, eax
mov dword [0x409678], eax
mov eax, 0x8002
call fcn.00402458
mov dword [0x409674], eax
mov eax, 0x8002
call fcn.00402458
mov dword [0x409678], eax
xor eax, eax
push ebp
push 0x404e37
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [0x409688], eax
xor eax, eax
mov dword [0x40968c], eax
xor eax, eax
push ebp
push 0x404e01
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.004079e8
mov word [esi], 0
lea eax, [ebp - 4]
call fcn.00404c30
cmp bx, word [esi]
jae 0x404d98
mov bx, word [esi]
call fcn.00406570
cmp dword [ebp - 4], 0
je 0x404d83
cmp word [0x409684], 0
jbe 0x404df7
push 0
lea eax, [ebp - 8]
push eax
movzx eax, word [0x409684]
push eax
mov eax, dword [0x409678]
push eax
mov eax, dword [0x408260]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_WriteFile_1
mov eax, dword [ebp - 8]
add dword [0x409694], eax
mov ecx, dword [0x408244]
movzx edx, word [0x409684]
mov eax, dword [0x409678]
call fcn.0040741c
mov word [0x409684], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x404e0b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404e3e
mov edx, 0x8001
mov eax, dword [0x409674]
call fcn.00402478
mov edx, 0x8001
mov eax, dword [0x409678]
call fcn.00402478
ret

Function at 0x405384
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffff6c
mov ebx, edx
mov edi, eax
xor esi, esi
mov eax, dword [ebx]
mov edx, 0x405424
call fcn.004033d8
jne 0x4053af
mov eax, ebx
mov edx, 0x405434
call fcn.00403294
jmp 0x4053b6
mov eax, ebx
call fcn.00403150
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x40540e
mov eax, dword [esp + 0x10]
dec eax
je 0x4053d3
dec eax
je 0x4053e3
jmp 0x4053fd
mov ecx, dword [edi]
mov eax, edi
mov edx, 0x405440
call fcn.004032d8
jmp 0x4053fd
push 0x405488
push dword [ebx]
push 0x4054cc
push dword [edi]
mov eax, edi
mov edx, 4
call fcn.0040334c
push 5
mov eax, dword [edi]
call fcn.0040348c
push eax
call sub.kernel32.dll_WinExec
mov esi, eax
mov eax, esi
add esp, 0x94
pop edi
pop esi
pop ebx
ret