joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d110
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40d13d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40d13d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
je 0x42e072
nop
nop
nop
nop
mov ebx, 0x407ef8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x72534964
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x42e060
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
je 0x42e0d2
nop
nop
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
mov esi, 0x4b382533
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
loop 0x42e0c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x20e6452c
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
nop
mov eax, section..text_1
nop
mov ebx, 0x42f314
nop
mov ecx, 0x60a231fa
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x432084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x409f10
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x409f41
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x409f30
pop edi
mov eax, edx
pop esi
pop ebp
ret 8

Function at 0x40eb40
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418433
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x41d00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x14], esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [ebp - 4], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
lea edx, [esi + 0x40]
mov dword [edx], 0
mov dword [edx + 4], 0
mov dword [edx + 8], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x20]
mov byte [ebp - 4], 2
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x54], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x5c], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x58], edi
mov dword [esi + 0x60], ecx
mov byte [esi + 0x64], 0
mov dword [esi + 0x68], eax
test byte [edi + 8], 8
je 0x40ec2b
test cl, 0x10
jne 0x40ec2b
mov al, 1
jmp 0x40ec2d
xor al, al
mov byte [esi + 0x6c], al
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x70], eax
mov ebx, dword [edx + 4]
mov ecx, ebx
mov edi, dword [edi + 0x18]
sar ecx, 3
cmp edi, ecx
jae 0x40ec51
lea ecx, [edi*8]
mov dword [edx + 4], ecx
jmp 0x40ec88
jbe 0x40ec88
mov eax, dword [edx + 8]
sar eax, 3
cmp edi, eax
jbe 0x40ec68
push ecx
push edi
mov ecx, edx
call fcn.00411870
jmp 0x40ec88
sub edi, ecx
je 0x40ec85
lea eax, [edi*8]
push eax
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ebx, [ebx + edi*8]
lea edx, [esi + 0x40]
mov dword [edx + 4], ebx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x416c39
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x416c78
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x416c78
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x416c78
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x416c78
cmp dword [ecx + 0x74], 0xe
jbe 0x416c78
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x50b9b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8000]
push edi
or ebp, 0xffffffff
jmp 0x50b9d2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x50b9d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50b9c8
mov eax, 1
add ebx, ebx
jne 0x50b9eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x50b9e0
jne 0x50b9fc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50b9e0
xor ecx, ecx
sub eax, 3
jb 0x50ba10
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x50ba82
mov ebp, eax
add ebx, ebx
jne 0x50ba1b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x50ba28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x50ba4c
inc ecx
add ebx, ebx
jne 0x50ba38
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x50ba2d
jne 0x50ba49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50ba2d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x50ba6c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x50ba5d
jmp 0x50b9ce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x50ba6c
add edi, ecx
jmp 0x50b9ce
pop esi
mov edi, esi
mov ecx, 0x1d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x50ba8a
cmp byte [edi], 6
jne 0x50ba8a
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 0x50ba8f
lea edi, [esi + 0x9000]
mov eax, dword [edi]
or eax, eax
je 0x50bafe
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xdacc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xdb24]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x50babc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xdb2c]
or eax, eax
je 0x50baf8
mov dword [ebx], eax
add ebx, 4
jmp 0x50bad9
call dword [esi + 0xdb28]
mov ebp, dword [esi + 0xdb30]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
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 0x50bb32
sub esp, 0xffffff80
jmp section.UPX0

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 0x10003f54
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
push es

Function at 0x10003fd0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
inc ecx
adc al, 0xf
mov bh, 0x71
out dx, eax
jg 0x10003f5e
jge 0x10003fdd
mov esi, dword [edi + 0x3c]
add esi, edi
mov ebx, dword [esi + 0x78]
call fcn.10003f14
sbb eax, 0x561ba70b
push ebx
call fcn.10003f54
pop ecx
test eax, eax
Function at 0x10004480
Capabilities:
Inspect section memory permissions

Disassembly:
movzx eax, word [ebp + 0xc]
mov ecx, dword [ebp - 0x44]
lea eax, [eax + eax*4]
push dword [ecx + eax*8 + 0x10]
lea eax, [ecx + eax*8]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
add ecx, dword [ebp + 0x10]
add eax, esi
push ecx
push eax
call fcn.10003e85
add esp, 0xc
inc dword [ebp + 0xc]
mov ax, word [ebp + 0xc]
cmp ax, word [edi + 6]
inc edi
push es
inc edi
push es
jb 0x10004451
call fcn.10003f14
push esp
pop esi
mov bl, 0x8b
jle 0x100044cc
add edi, esi
mov dword [ebp - 0x88], edi
mov eax, dword [edi + 0x80]
cmp eax, ebx
je 0x10004703
add eax, esi
mov dword [ebp - 0x44], eax
cmp dword [eax + 4], ebx
jne 0x100044b9
cmp dword [eax + 0xc], ebx
je 0x1000455c
mov edi, dword [eax + 0xc]
add edi, esi
push edi
call dword [ebp - 0xc0]
mov dword [ebp + 0xc], eax
call fcn.10003f14
pushfd
mov ebx, 0x5d39986b
call [ebx + edi*4 + 0x5d39986b]
or al, 0x75
adc dl, byte [edi - 1]
xchg ebp, eax
dec eax
invalid
call fcn.10003f14
cwde
dec eax
pop esi
inc eax
mov eax, dword [edi + 0xa0]
cmp eax, ebx
je 0x100045c8
add eax, esi
cmp dword [eax], ebx
je 0x100045c8
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x100045c3
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x100045ad
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x100045b5
cmp edx, ebx
jne 0x10004703
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x10004584
add eax, dword [eax + 4]
jmp 0x10004571
mov dword [ebp + 0xc], ebx
jmp 0x100045d3

Function at 0x10005c10
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add byte [eax - 0x7aa5b], al
inc dword [eax]
mov byte [ebp - 0x7aa], 0xed
invalid
Function at 0x18b101f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x18ad110]
jne 0x18b1029
repz ret
jmp fcn.018b12ab

Function at 0x18b4e11
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x18ad110]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.018b13b1
and dword [ebp - 0x14], 0
cmp dword [0x18b0224], 0
mov dword [ebp - 0x18], eax
jne 0x18b4ec4
push str.USER32.DLL
call dword [sym.imp.kernel32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x18b4f6c
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x18b4f6c
mov esi, dword [sym.imp.kernel32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x18b0224], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x18b0228], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x18b022c], eax
call edi
push eax
call esi
mov dword [0x18b0234], eax
test eax, eax
je 0x18b4ec4
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x18b0230], eax
mov eax, dword [0x18b0230]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.kernel32.dll_DecodePointer]
cmp eax, ecx
je 0x18b4f1d
cmp dword [0x18b0234], ecx
je 0x18b4f1d
push eax
call esi
push dword [0x18b0234]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x18b4f1d
test ebx, ebx
je 0x18b4f1d
call edi
test eax, eax
je 0x18b4f14
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x18b4f14
test byte [ebp - 8], 1
jne 0x18b4f1d
or dword [ebp + 0x10], 0x200000
jmp 0x18b4f50
mov eax, dword [0x18b0228]
cmp eax, dword [ebp - 0x18]
je 0x18b4f50
push eax
call esi
test eax, eax
je 0x18b4f50
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x18b4f50
mov eax, dword [0x18b022c]
cmp eax, dword [ebp - 0x18]
je 0x18b4f50
push eax
call esi
test eax, eax
je 0x18b4f50
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x18b0224]
call esi
test eax, eax
je 0x18b4f6c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x18b4f6e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.018b101f
leave
ret
Function at 0x402ee0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402f39
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.KERNEL32.DLL_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402d7c
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402d7c
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402f23
inc ebx
jmp 0x402f0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402f40
lea eax, [ebp - 8]
call fcn.00404750
ret

Function at 0x402f48
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404750
test esi, esi
jne 0x402f7f
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA_1
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404840
jmp 0x402fa0
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402d7c
mov dword [esp], eax
test esi, esi
je 0x402fa0
cmp dword [ebx], 0
je 0x402fa0
dec esi
jmp 0x402f87
add esp, 0x10c
pop esi
pop ebx
ret

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

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

Function at 0x403730
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x512024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4037c8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4037a8
xor eax, eax
push ebp
push 0x4037a1
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 0x4037e4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4037a8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov ax, word [0x512024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x512024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404528
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x51704c], 0
je 0x404589
cmp word [0x517220], 0xd7b2
jne 0x404551
cmp dword [0x517228], 0
jbe 0x404551
mov eax, 0x51721c
call dword [0x517238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x512070
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 0x4045b0
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x512034], 0
jne 0x4045a5
push 0
push 0x512068
push 0x512070
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret
Function at 0x404704
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.00402b1c
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x51704d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4046cc
push eax
push esi
push ebx
call sub.KERNEL32.DLL_CreateThread_1
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406920
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 0x406986
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_1
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004049c0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403288
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406970
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40698d
lea eax, [ebp - 0x10]
call fcn.00404750
ret

Function at 0x407f1c
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov dword [esp], ecx
mov edi, edx
mov esi, eax
mov eax, edi
call fcn.00402b1c
mov ebx, eax
mov eax, edi
dec eax
test eax, eax
jl 0x407f5f
inc eax
xor edx, edx
mov cl, byte [esi]
mov ebp, edx
and ebp, 0x800000ff
jns 0x407f51
dec ebp
or ebp, 0xffffff00
inc ebp
xor cl, byte [ebp + 0x5120c0]
mov byte [ebx], cl
inc esi
inc ebx
inc edx
dec eax
jne 0x407f3d
sub ebx, edi
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
mov eax, dword [esp + 0x18]
call fcn.00404c10
push eax
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
test esi, esi
je 0x407fa2
cmp esi, 0xffffffff
je 0x407fa2
push 0
lea eax, [esp + 8]
push eax
push edi
push ebx
push esi
call sub.KERNEL32.DLL_WriteFile
push esi
call sub.KERNEL32.DLL_CloseHandle
mov eax, ebx
call fcn.00402b4c
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x407fdc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
mov eax, 0x51767c
mov edx, 0x13
call fcn.00404d9c
mov eax, dword [0x51767c]
call fcn.00404a10
mov ebx, eax
test ebx, ebx
jle 0x408027
mov esi, 1
mov edi, 0x5121c0
mov ebp, 0x5120c0
mov eax, 0x51767c
call fcn.00404c68
mov dl, byte [edi]
xor dl, byte [ebp]
mov byte [eax + esi - 1], dl
inc esi
inc ebp
inc edi
dec ebx
jne 0x40800e
mov eax, 0x517680
mov edx, 0x15
call fcn.00404d9c
mov eax, dword [0x517680]
call fcn.00404a10
mov ebx, eax
test ebx, ebx
jle 0x40806e
mov esi, 1
mov edi, 0x5121d4
mov ebp, 0x5120c0
mov eax, 0x517680
call fcn.00404c68
mov dl, byte [edi]
xor dl, byte [ebp]
mov byte [eax + esi - 1], dl
inc esi
inc ebp
inc edi
dec ebx
jne 0x408055
mov eax, 0x517684
mov edx, 0x13
call fcn.00404d9c
mov eax, dword [0x517684]
call fcn.00404a10
mov ebx, eax
test ebx, ebx
jle 0x4080b5
mov esi, 1
mov edi, 0x5121ec
mov ebp, 0x5120c0
mov eax, 0x517684
call fcn.00404c68
mov dl, byte [edi]
xor dl, byte [ebp]
mov byte [eax + esi - 1], dl
inc esi
inc ebp
inc edi
dec ebx
jne 0x40809c
mov eax, 0x517688
mov edx, 0x11
call fcn.00404d9c
mov eax, dword [0x517688]
call fcn.00404a10
mov ebx, eax
test ebx, ebx
jle 0x4080fc
mov esi, 1
mov edi, 0x512200
mov ebp, 0x5120c0
mov eax, 0x517688
call fcn.00404c68
mov dl, byte [edi]
xor dl, byte [ebp]
mov byte [eax + esi - 1], dl
inc esi
inc ebp
inc edi
dec ebx
jne 0x4080e3
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x409f18
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x409f49
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x409f50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_WriteFile
test eax, eax
jne 0x409f81
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x40a068
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404c10
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x40a08e
test byte [ebp - 0xc], 0x10
jne 0x40a092
xor eax, eax
jmp 0x40a094
mov al, 1
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret

Function at 0x40a20c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404c10
push eax
call sub.KERNEL32.DLL_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret

Function at 0x40a538
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
push 0
mov eax, dword [ebp - 4]
call fcn.00404c10
push eax
call sub.KERNEL32.DLL_CreateDirectoryA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret

Function at 0x40d3cc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x40d414
mov ecx, dword [ebp - 0x10]
dec ecx
lea edx, [ebp - 0x110]
mov eax, dword [ebp + 8]
call fcn.00404840
jmp 0x40d41f
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
call fcn.004047a4
mov esp, ebp
pop ebp
ret 4