joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100d6540
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010fc50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov edx, dword [0x1018230c]
movzx eax, dl
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, dh
push ebx
mov ebx, dword [0x10155304]
push esi
xor ecx, eax
mov esi, dword [0x1015530c]
movzx eax, byte [0x1018230e]
imul ecx, ecx, 0x1000193
push edi
mov dword [ebp - 0x10], esp
xor ecx, eax
movzx eax, byte [0x1018230f]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [0x10155318]
and ecx, eax
shl ecx, 3
mov dword [ebp - 0x14], ecx
mov eax, dword [esi + ecx]
cmp eax, ebx
jne 0x100d65ca
mov esi, ebx
jmp 0x100d65d0
mov esi, dword [esi + ecx + 4]
mov esi, dword [esi]
cmp esi, eax
je 0x100d65e0
mov esi, dword [esi + 4]
cmp edx, dword [esi + 8]
je 0x100d6615
cmp esi, eax
jne 0x100d65d4
mov dword [ebp - 4], 0xffffffff
mov ebx, dword [ebx]
push 0x1018230c
push dword [ebx + 4]
push ebx
call fcn.100a4c30
mov edx, dword [0x10155308]
mov ecx, 0x15555554
sub ecx, edx
mov edi, eax
cmp ecx, 1
jae 0x100d6631
push str.list_T__too_long
call fcn.100e89e5
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
inc edx
mov dword [0x10155308], edx
mov dword [ebx + 4], edi
mov eax, dword [edi + 4]
mov dword [eax], edi
mov edx, dword [0x10155304]
mov edi, dword [edx]
mov dword [ebp - 0x18], edi
mov eax, dword [edi]
cmp esi, eax
je 0x100d6678
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov edx, dword [esi + 4]
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
mov edx, dword [0x10155304]
mov ecx, dword [0x1015530c]
mov ebx, dword [ebp - 0x14]
add ecx, ebx
mov eax, dword [ecx]
cmp eax, edx
jne 0x100d6696
mov dword [ecx], edi
mov eax, dword [0x1015530c]
mov dword [ebx + eax + 4], edi
jmp 0x100d66bb
cmp eax, esi
jne 0x100d669e
mov dword [ecx], edi
jmp 0x100d66bb
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x100d66bb
mov ecx, dword [0x1015530c]
mov eax, dword [ecx + ebx + 4]
mov eax, dword [eax + 4]
mov dword [ecx + ebx + 4], eax
mov ecx, 0x10155300
mov dword [ebp - 4], 2
call fcn.100d6710
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax], edi
pop edi
pop esi
mov byte [eax + 4], 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100d6820
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010fc60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov dword [ebp - 4], 0
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x10], esp
mov esi, dword [ebx + 0xc]
mov dword [ebp - 0x18], ebx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul ecx, edx, 0x1000193
xor ecx, eax
movzx eax, byte [edi + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [ebx + 0x18]
and ecx, eax
mov eax, dword [esi + ecx*8]
lea edx, [ecx*8]
mov dword [ebp + 0xc], edx
cmp eax, dword [ebx + 4]
jne 0x100d68a1
mov esi, dword [ebx + 4]
jmp 0x100d68a7
mov esi, dword [esi + edx + 4]
mov esi, dword [esi]
cmp esi, eax
je 0x100d68bc
mov ecx, dword [edi]
nop dword [eax]
mov esi, dword [esi + 4]
cmp ecx, dword [esi + 8]
je 0x100d6903
cmp esi, eax
jne 0x100d68b0
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x14], edi
mov eax, dword [edi]
cmp esi, eax
je 0x100d68ec
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov edx, dword [esi + 4]
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebx + 0xc]
add ecx, edx
mov eax, dword [ecx]
cmp eax, dword [ebx + 4]
jne 0x100d693d
mov dword [ecx], edi
mov eax, dword [ebx + 0xc]
mov dword [eax + edx + 4], edi
jmp 0x100d695f
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [edx + 4]
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
dec dword [ebx + 8]
call fcn.100e9b9e
mov eax, dword [ebp + 8]
add esp, 4
mov dword [eax], esi
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp eax, esi
jne 0x100d6945
mov dword [ecx], edi
jmp 0x100d695f
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x100d695f
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx + edx + 4]
mov eax, dword [eax + 4]
mov dword [ecx + edx + 4], eax
mov ecx, ebx
mov dword [ebp - 4], 2
call fcn.100d6710
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax], edi
pop edi
pop esi
mov byte [eax + 4], 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100d7fe0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010e768
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x14], 0
push 2
push 0x10120a2c
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x10], edi
mov esi, edx
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call fcn.1000d690
mov dword [ebp - 4], 0
cmp dword [0x10154808], 0
jne 0x100d809f
mov edx, dword [esi]
cmp byte [edx], 0
jne 0x100d8047
xor ecx, ecx
jmp 0x100d8059
mov ecx, edx
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100d8050
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.1000c6b0
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
jae 0x100d8113
mov eax, dword [ebp - 0x1c]
add eax, 1
je 0x100d8118
push eax
lea eax, [ebp - 0x2c]
push eax
push edi
call fcn.100ebbd0
mov ecx, dword [ebp - 0x18]
add esp, 0xc
jmp 0x100d8118
push 0xffffffffffffffff
push 0
push 0x101547f8
lea ecx, [ebp - 0x2c]
call fcn.1000c820
mov edx, dword [esi]
cmp byte [edx], 0
jne 0x100d80bb
xor ecx, ecx
jmp 0x100d80cb
mov ecx, edx
push ebx
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100d80c1
sub ecx, ebx
pop ebx
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.1000c6b0
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
je 0x100d8063
mov edx, dword [esi]
mov esi, 2
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
mov al, byte [edx]
cmovae ecx, dword [ebp - 0x2c]
mov byte [ecx + esi], al
cmp byte [edx], 0
je 0x100d8063
inc esi
inc edx
jmp 0x100d80f6
mov eax, dword [ebp - 0x2c]
mov dword [edi], eax
mov eax, dword [ebp - 0x1c]
mov dword [edi + 0x10], eax
mov eax, edi
mov dword [edi + 0x14], ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x100e3fe0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 4]
push eax
push 0x40
push 4
push 0x45f627
call esi
mov eax, 0x100e3f60
sub eax, 0x45f62b
mov dword [0x45f627], eax
lea eax, [esp + 4]
push eax
push dword [esp + 8]
push 4
push 0x45f627
call esi
lea eax, [esp + 4]
push eax
push 0x40
push 5
push 0x426669
call esi
mov eax, 0x100e3fc0
mov byte [0x426669], 0xe8
sub eax, 0x42666e
mov dword [0x42666a], eax
lea eax, [esp + 4]
push eax
push dword [esp + 8]
push 5
push 0x426669
call esi
pop esi
pop ecx
ret

Function at 0x100e5720
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
push esi
push 1
push 0x100e5050
mov edx, 0x4cafe6
mov cl, 0xe8
call fcn.10012100
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 4]
push eax
push 0x40
push 1
push 0x4cafee
call esi
lea eax, [esp + 4]
mov byte [0x4cafee], 0xe9
push eax
push dword [esp + 8]
push 1
push 0x4cafee
call esi
lea eax, [esp + 4]
push eax
push 0x40
push 4
push 0x4cafef
call esi
lea eax, [esp + 4]
mov dword [0x4cafef], 0x1b1
push eax
push dword [esp + 8]
push 4
push 0x4cafef
call esi
lea eax, [esp + 4]
push eax
push 0x40
push 4
push 0x4cae72
call esi
lea eax, [esp + 4]
mov dword [0x4cae72], 0x100e53f0
push eax
push dword [esp + 8]
push 4
push 0x4cae72
call esi
lea eax, [esp + 4]
push eax
push 0x40
push 4
push 0x4cae77
call esi
lea eax, [esp + 4]
mov dword [0x4cae77], 0x10007220
push eax
push dword [esp + 8]
push 4
push 0x4cae77
call esi
lea eax, [esp + 4]
push eax
push 0x40
push 4
push 0x44260d
call esi
mov eax, 0x100e5670
sub eax, 0x442611
mov dword [0x44260d], eax
lea eax, [esp + 4]
push eax
push dword [esp + 8]
push 4
push 0x44260d
call esi
lea eax, [esp + 4]
push eax
push 0x40
push 5
push 0x4cb310
call esi
mov byte [0x4cb310], 0xe9
mov eax, 0x100e5640
sub eax, 0x4cb315
mov dword [0x4cb311], eax
lea eax, [esp + 4]
push eax
push dword [esp + 8]
push 5
push 0x4cb310
call esi
lea eax, [esp + 4]
push eax
push 0x40
push 5
push 0x4cb568
call esi
mov eax, 0x100e5650
mov byte [0x4cb568], 0xe9
sub eax, 0x4cb56d
mov dword [0x4cb569], eax
lea eax, [esp + 4]
push eax
push dword [esp + 8]
push 5
push 0x4cb568
call esi
lea eax, [esp + 4]
push eax
push 0x40
push 5
push 0x4cb1fd
call esi
mov eax, 0x100e56d0
mov byte [0x4cb1fd], 0xe8
sub eax, 0x4cb202
mov dword [0x4cb1fe], eax
lea eax, [esp + 4]
push eax
push dword [esp + 8]
push 5
push 0x4cb1fd
call esi
push 1
push 0x100e5680
mov edx, 0x4f5dd1
mov cl, 0xe8
call fcn.10012100
push 1
push 0x100e5680
mov edx, 0x4f5df6
mov cl, 0xe8
call fcn.10012100
pop esi
pop ecx
ret
Function at 0x100e5900
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
push esi
push 1
push 0x100e5050
mov edx, 0x4ec59f
mov byte [0x10182329], 1
mov cl, 0xe8
call fcn.10012100
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 4]
push eax
push 0x40
push 1
push 0x4ec5ac
call esi
lea eax, [esp + 4]
mov byte [0x4ec5ac], 0xe9
push eax
push dword [esp + 8]
push 1
push 0x4ec5ac
call esi
lea eax, [esp + 4]
push eax
push 0x40
push 4
push 0x4ec5ad
call esi
lea eax, [esp + 4]
mov dword [0x4ec5ad], 0x246
push eax
push dword [esp + 8]
push 4
push 0x4ec5ad
call esi
lea eax, [esp + 4]
push eax
push 0x40
push 4
push 0x4ec33e
call esi
lea eax, [esp + 4]
mov dword [0x4ec33e], 0x100e53f0
push eax
push dword [esp + 8]
push 4
push 0x4ec33e
call esi
lea eax, [esp + 4]
push eax
push 0x40
push 4
push 0x4ec352
call esi
lea eax, [esp + 4]
mov dword [0x4ec352], 0x10007220
push eax
push dword [esp + 8]
push 4
push 0x4ec352
call esi
lea eax, [esp + 4]
push eax
push 0x40
push 4
push 0x43c3de
call esi
mov eax, 0x100e58f0
sub eax, 0x43c3e2
mov dword [0x43c3de], eax
lea eax, [esp + 4]
push eax
push dword [esp + 8]
push 4
push 0x43c3de
call esi
lea eax, [esp + 4]
push eax
push 0x40
push 5
push 0x4ec9f8
call esi
mov eax, 0x100e5640
mov byte [0x4ec9f8], 0xe9
sub eax, 0x4ec9fd
mov dword [0x4ec9f9], eax
lea eax, [esp + 4]
push eax
push dword [esp + 8]
push 5
push 0x4ec9f8
call esi
lea eax, [esp + 4]
push eax
push 0x40
push 5
push 0x4ecdcb
call esi
mov eax, 0x100e5650
mov byte [0x4ecdcb], 0xe9
sub eax, 0x4ecdd0
mov dword [0x4ecdcc], eax
lea eax, [esp + 4]
push eax
push dword [esp + 8]
push 5
push 0x4ecdcb
call esi
lea eax, [esp + 4]
push eax
push 0x40
push 5
push 0x4ec884
call esi
mov eax, 0x100e56d0
mov byte [0x4ec884], 0xe8
sub eax, 0x4ec889
mov dword [0x4ec885], eax
lea eax, [esp + 4]
push eax
push dword [esp + 8]
push 5
push 0x4ec884
call esi
push 1
push 0x100e5680
mov edx, 0x525781
mov cl, 0xe8
call fcn.10012100
push 1
push 0x100e5680
mov edx, 0x5257a6
mov cl, 0xe8
call fcn.10012100
pop esi
pop ecx
ret

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

Disassembly:
mov eax, dword [esp + 0xc]
movzx eax, byte [eax + 0x100e5e0c]
jmp dword [eax*4 + 0x100e5d94]
Function at 0x100e65f0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x10
lea eax, [esp]
push eax
push 0x40
push 4
push 0x477ae8
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, 0x100e6570
sub eax, 0x477aec
mov dword [0x477ae8], eax
lea eax, [esp]
push eax
push dword [esp + 4]
push 4
push 0x477ae8
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x28
mov ecx, 0x100e6590
mov eax, esp
mov dword [eax + 0x24], 0
test ecx, ecx
je 0x100e664f
mov dword [eax], 0x101218c8
mov dword [eax + 4], 0x100e6590
mov dword [eax + 0x24], eax
lea eax, [esp + 0x2c]
mov ecx, 0x10154e30
push eax
call fcn.1001d220
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x100e6697
push dword [esp]
mov edx, dword [esp + 0xc]
push ecx
call fcn.1000fa00
mov edx, dword [esp + 0xc]
mov eax, 0x66666667
mov ecx, dword [esp + 4]
sub edx, ecx
imul edx
push 0x28
mov eax, edx
sar eax, 4
mov edx, eax
shr edx, 0x1f
add edx, eax
call fcn.1000d8e0
sub esp, 0x28
mov ecx, 0x10154dd0
mov eax, esp
mov dword [eax], 0x10132734
mov dword [eax + 0x24], eax
lea eax, [esp + 0x2c]
push eax
call fcn.1001d220
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x100e66ed
push dword [esp]
mov edx, dword [esp + 0xc]
push ecx
call fcn.1000fa00
mov edx, dword [esp + 0xc]
mov eax, 0x66666667
mov ecx, dword [esp + 4]
sub edx, ecx
imul edx
push 0x28
mov eax, edx
sar eax, 4
mov edx, eax
shr edx, 0x1f
add edx, eax
call fcn.1000d8e0
add esp, 0x10
ret

Function at 0x100e6760
Capabilities:
Hash data using fnv

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov edx, dword [0x101553ac]
push edi
movzx eax, byte [esi]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [esi + 1]
xor ecx, eax
movzx eax, byte [esi + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [esi + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [0x101553b8]
and ecx, eax
mov eax, dword [edx + ecx*8]
add ecx, ecx
mov edi, dword [edx + ecx*4]
lea ebx, [edx + ecx*4]
mov edx, dword [0x101553a4]
cmp edi, edx
jne 0x100e67c0
mov ecx, edx
jmp 0x100e67c5
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x100e67ea
mov ecx, dword [eax + 8]
cmp ecx, dword [esi]
je 0x100e67d4
mov eax, dword [eax]
jmp 0x100e67b8
mov ecx, dword [esi]
cmp ecx, dword [eax + 8]
mov ecx, dword [esp + 0x10]
pop edi
cmovne eax, edx
pop esi
mov dword [ecx], eax
mov eax, ecx
pop ebx
ret 8
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov dword [eax], edx
ret 8
Function at 0x100e7490
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x10
mov ecx, 0x100e73e0
sub esp, 0x28
mov eax, esp
mov dword [eax + 0x24], 0
test ecx, ecx
je 0x100e74b8
mov dword [eax], 0x101218c8
mov dword [eax + 4], 0x100e73e0
mov dword [eax + 0x24], eax
lea eax, [esp + 0x2c]
mov ecx, 0x10154dd0
push eax
call fcn.1001d220
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x100e7500
push dword [esp]
mov edx, dword [esp + 0xc]
push ecx
call fcn.1000fa00
mov edx, dword [esp + 0xc]
mov eax, 0x66666667
mov ecx, dword [esp + 4]
sub edx, ecx
imul edx
push 0x28
mov eax, edx
sar eax, 4
mov edx, eax
shr edx, 0x1f
add edx, eax
call fcn.1000d8e0
lea eax, [esp]
push eax
push 0x40
push 5
push 0x4bb22f
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, 0x100e7480
mov byte [0x4bb22f], 0xe9
sub eax, 0x4bb234
mov dword [0x4bb230], eax
lea eax, [esp]
push eax
push dword [esp + 4]
push 5
push 0x4bb22f
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esp, 0x10
ret

Function at 0x100fb9e5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100fb864

Function at 0x10105e23
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10105ae3
Function at 0x401eda
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
push ebx
lea eax, [ebp - 0x184]
push 0x104
push eax
call fcn.00402311
lea eax, [ebp - 0x184]
push 0x404990
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x401f33
lea eax, [ebp - 0x184]
push eax
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push str.Cant_open__s_n
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0xc
push 1
pop eax
jmp 0x401f83
push esi
mov esi, dword [sym.imp.MSVCRT.dll_fread]
push edi
mov edi, 0x80
push ebx
push edi
lea eax, [ebp - 0x80]
push 1
push eax
call esi
add esp, 0x10
test eax, eax
je 0x401f77
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
add ecx, 0x20
push ecx
push eax
lea eax, [ebp - 0x80]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
push ebx
push edi
lea eax, [ebp - 0x80]
push 1
push eax
call esi
add esp, 0x20
jmp 0x401f4d
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
pop edi
xor eax, eax
pop esi
pop ebx
leave
ret

Function at 0x4026ef
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4030d0
push 0x402830
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x404e6c], 0xffffffff
or dword [0x404e70], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x404e68]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x404e64]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x404e74], eax
call fcn.004025f6
cmp dword [0x404df0], 0
jne 0x402772
push fcn.0040281e
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.0040280c
push 0x40400c
push 0x404008
call sub.MSVCRT.dll__initterm
mov eax, dword [0x404e60]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x404e5c]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x404004
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call section..text
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x40273c
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 0x40276b
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.004036d8
jmp 0x402789
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.004026d0
mov edi, eax
test ebx, ebx
je 0x402789
cmp dword [esi], 0
je 0x402789
dec ebx
jmp 0x402772
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402a10
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 0x402aa8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402a88
xor eax, eax
push ebp
push 0x402a81
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 0x402ac4
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 0x402a88
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 0x4042d4
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 0x404470
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404384
xor eax, eax
push ebp
push 0x40437d
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 0x404366
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404490
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 0x404384
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 0x404465
cmp byte [ebp - 0xd], 0
jne 0x4043c6
cmp byte [ebp - 0x12], 0
je 0x404465
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4043df
dec ebx
cmp byte [ebx], 0x2e
je 0x4043ee
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4043de
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404465
inc ebx
cmp byte [ebp - 0x12], 0
je 0x40441b
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 0x404465
cmp byte [ebp - 0xd], 0
je 0x404465
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 0x404465
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 0x4068e8
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403a34
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
pop ebx
ret

Function at 0x4071c8
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 0x407201
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004036d8
jmp 0x40720a
mov eax, ebx
mov edx, esi
call fcn.0040368c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x407214
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 0x407235
mov al, byte [esp]
jmp 0x407237
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x41134c
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 0x411352
ret

Function at 0x41365c
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 0x4136ad
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x413694
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jne 0x413684
jmp 0x4136ad
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 0x413695
pop ebx
mov esp, ebp
pop ebp
ret