joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6ec7e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x7cd47c]
test esi, esi
jle 0x6ec8e0
mov eax, dword [0x7cd480]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x6ec810
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x6ec88f
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x6ec800
mov dword [esp], ebx
call fcn.006ed150
mov edi, eax
test eax, eax
je 0x6ec907
mov eax, dword [0x7cd480]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.006ed260
mov edx, dword [0x7cd480]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x6ec8e7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x6ec888
sub eax, 4
and eax, 0xfffffffb
jne 0x6ec896
add dword [0x7cd47c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
add ebx, dword [0x7cd480]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x6ec888
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.006ec780
xor esi, esi
jmp 0x6ec81a
mov eax, dword [0x7cd480]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.006ec780
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.006ec780
lea esi, [esi]
nop

Function at 0x6ecdc0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x7cd498
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x7cd490]
sub esp, 4
test ebx, ebx
je 0x6ece15
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x6ece0e
test esi, esi
je 0x6ece0e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x6ecdf0
mov dword [esp], 0x7cd498
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x10001840
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
cmp byte [ebx], 0x6a
push edi
mov edi, eax
jne 0x100018c2
lea eax, [ebp - 4]
push eax
push 0x80
push 7
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 7
push ebx
push esi
call dword [sym.imp.MSVCR100.dll_memmove]
mov edx, dword [ebp - 4]
add esp, 0xc
lea ecx, [ebp - 4]
push ecx
push edx
push 7
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push 5
lea ebx, [esi + 7]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp - 4]
lea ecx, [ebp - 8]
push ecx
sub edi, ebx
push edx
add edi, 2
push 5
mov dword [ebx + 1], edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
mov byte [ebx], 0xe9
call edi
lea eax, [ebp - 8]
push eax
push 0x40
push 0xa
push esi
call edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 4]
push ecx
push 0x80
push 5
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 5
push ebx
push esi
call dword [sym.imp.MSVCR100.dll_memmove]
mov eax, dword [ebp - 4]
add esp, 0xc
lea edx, [ebp - 4]
push edx
push eax
push 5
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [ebp - 4]
push ecx
push 0x40
push 5
lea ebx, [esi + 5]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push eax
sub edi, ebx
push 5
mov dword [ebx + 1], edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
mov byte [ebx], 0xe9
call edi
lea ecx, [ebp - 8]
push ecx
push 0x40
push 0xa
push esi
call edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10001930
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], 0
pushal
pushfd
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
mov esi, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 0x18]
cmp ecx, dword [ebp + 8]
jne 0x10001969
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x1000196d
cmp edx, esi
jne 0x10001952
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x14]
mov edx, dword [eax + 0x18]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 0x10]
cmp ecx, dword [ebp + 8]
jne 0x1000198d
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x10001991
cmp edx, esi
jne 0x10001976
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp + 8]
jne 0x100019b1
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x100019b5
cmp edx, esi
jne 0x1000199a
popfd
popal
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100019c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
push 0x1c
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [ebp - 8]
push ecx
push 0x40
push edx
push eax
call edi
push 0x1000
push 0
push esi
call sub.MSVCR100.dll_memset
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
add esp, 0xc
push 0
push ecx
push edx
push eax
call edi
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
pop edi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [0x1000bf74]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x80
push 0x19
push 0x1000bef0
call edi
push 0x19
push esi
push 0x1000bef0
call dword [sym.imp.MSVCR100.dll_memmove]
mov edx, dword [ebp - 4]
add esp, 0xc
lea ecx, [ebp - 8]
push ecx
push edx
push 0x19
push 0x1000bef0
call edi
xor ebx, ebx
jmp 0x10001a80
mov eax, dword [0x1000bf74]
add eax, ebx
cmp byte [eax], 0xe8
jne 0x10001ae1
mov ecx, dword [eax + 1]
push 4
lea ecx, [ecx + eax + 5]
push ecx
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
jne 0x10001ae1
mov eax, dword [0x1000bf74]
mov edi, dword [eax + ebx + 1]
add eax, ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 0x40
push 5
lea esi, [ebx + 0x1000bef0]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp - 8]
lea ecx, [ebp - 0xc]
push ecx
push edx
sub edi, esi
add edi, dword [ebp - 4]
push 5
push esi
mov byte [esi], pe_nt_image_headers32
mov dword [esi + 1], edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x10001ae6
cmp ebx, 0x19
je 0x10001aec
inc ebx
cmp ebx, 0x19
jb 0x10001a80
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10004240
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10008ea0
push 0x10007349
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [section..data]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
wait
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [0x1000acb0]
cmp dword [eax], esi
je 0x100043c2
cmp dword [0x1000ad3c], esi
je 0x100043c2
mov dword [0x1000ad58], esi
mov ecx, dword [0x1000acc4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20054]
imul eax, eax, 0x114
mov ecx, dword [0x1000ad2c]
mov edx, dword [ecx]
mov ecx, dword [eax + edx + 0x14]
lea ecx, [ecx + 0x268]
call fcn.10001f40
mov dword [eax + 0x154], esi
mov eax, dword [0x1000acc4]
mov ecx, dword [eax]
mov eax, dword [ecx + 0x20054]
imul eax, eax, 0x1f40
mov ecx, dword [eax + ecx + 0x8dc]
mov eax, 0x4f8b588f
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 0x10
imul eax, eax, 0x186a0
sub ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
cmp edx, 3
je 0x10004318
cmp edx, 4
jne 0x100043c2
mov edi, 1
mov esi, edi
call fcn.100016f0
test eax, eax
je 0x100043c2
call fcn.10003ab0
mov esi, eax
cmp esi, 0xffffffff
je 0x100043c2
mov ecx, dword [0x1000acc4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20054]
mov edi, dword [0x1000b1c0]
lea ebx, [ebp - 0x34]
call fcn.10002010
test al, al
je 0x100043c2
mov edi, dword [0x1000b1c0]
mov eax, esi
lea ebx, [ebp - 0x28]
call fcn.10002010
test al, al
je 0x100043c2
fld dword [ebp - 0x24]
fadd qword [0x10008ae8]
fstp dword [ebp - 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
cmp dword [0x1000beec], eax
ja 0x100043c2
mov eax, dword [0x1000acb0]
mov ecx, dword [eax]
mov ecx, dword [ecx + 0x28]
call fcn.10001f10
test eax, eax
jle 0x100043c2
mov edx, dword [0x1000acb0]
mov eax, dword [edx]
mov ecx, dword [eax + 0x28]
push 0
mov edx, ebx
push edx
lea eax, [ebp - 0x34]
push eax
call fcn.10001f20
call esi
add eax, 0x32
mov dword [0x1000beec], eax
wait
jmp 0x100043ce
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10006bb5
mov esp, ebp
pop ebp
ret
Function at 0x10004ab0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x94
lea eax, [ebp - 0x98]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x98]
push ecx
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 0x94]
cmp eax, 5
jne 0x10004b18
mov eax, 1
cmp dword [ebp - 0x90], eax
je 0x10004b0a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10006bb5
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x10004b6a
mov eax, dword [ebp - 0x90]
test eax, eax
jne 0x10004b3a
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10006bb5
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x10004b52
mov eax, 3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10006bb5
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x10004b08
mov eax, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10006bb5
mov esp, ebp
pop ebp
ret
cmp eax, 0xa
jne 0x10004b08
cmp dword [ebp - 0x90], 0
jne 0x10004b08
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 5
call fcn.10006bb5
mov esp, ebp
pop ebp
ret

Function at 0x10004b90
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0x1000a068
push 0x1000bf78
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
call fcn.10004ab0
mov esi, dword [sym.imp.MSVCR100.dll_sprintf]
dec eax
cmp eax, 4
ja case.default.0x10004bb6
jmp dword [eax*4 + 0x10004c74]
cmp dword [ebp - 4], 1
jne case.0x10004bb6.2
push str.Win_XP
push 0x1000bfa8
call esi
add esp, 8
call fcn.10004ab0
dec eax
cmp eax, 4
ja case.default.0x10004bdd
jmp dword [eax*4 + 0x10004c88]
cmp dword [ebp - 4], 2
jne case.0x10004bdd.1
push str.Win_Vista
push 0x1000bfa8
call esi
add esp, 8
call fcn.10004ab0
dec eax
cmp eax, 4
ja case.default.0x10004c04
jmp dword [eax*4 + 0x10004c9c]
cmp dword [ebp - 4], 3
jne case.0x10004c04.1
push str.Win_7
push 0x1000bfa8
call esi
add esp, 8
call fcn.10004ab0
dec eax
cmp eax, 4
ja case.default.0x10004c2b
jmp dword [eax*4 + 0x10004cb0]
cmp dword [ebp - 4], 4
jne case.0x10004c2b.1
push str.Win_8
push 0x1000bfa8
call esi
add esp, 8
call fcn.10004ab0
dec eax
cmp eax, 4
ja case.default.0x10004c52
jmp dword [eax*4 + 0x10004cc4]
cmp dword [ebp - 4], 5
jne case.0x10004c52.1
push str.Wi_10
push 0x1000bfa8
call esi
add esp, 8
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [0x1000ac80]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x80
push 6
push esi
call edi
push 6
push 0x10006030
push esi
call dword [sym.imp.MSVCR100.dll_memmove]
mov edx, dword [ebp - 4]
add esp, 0xc
lea ecx, [ebp - 4]
push ecx
push edx
push 6
push esi
call edi
mov eax, dword [0x1000ac80]
mov esi, dword [eax + 2]
mov ecx, dword [esi]
lea edx, [ebp - 4]
push edx
push 0x40
push 4
push esi
mov dword [0x1000ac78], ecx
call edi
mov ecx, dword [ebp - 4]
lea eax, [ebp - 8]
push eax
push ecx
push 4
push esi
mov dword [esi], 0x10006040
call edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100064c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov al, byte [ebx]
cmp al, 0x8b
je 0x100064db
cmp al, 0x6a
je 0x100064db
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100064c7
mov eax, dword [edi + 1]
lea ecx, [ebp - 4]
push ecx
push 0x40
lea esi, [eax + edi + 5]
push 5
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
lea eax, [ebp - 8]
push eax
push ecx
mov edx, ebx
sub edx, esi
push 5
sub edx, 5
push esi
mov byte [esi], 0xe9
mov dword [esi + 1], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [edi + 1]
mov ecx, dword [edx + edi + 6]
lea eax, [edx + edi + 5]
lea edx, [ecx + eax + 5]
cmp edx, ebx
je 0x1000652c
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100064c7
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10006900
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x10006937
push esi
mov esi, dword [ebp + 8]
push esi
mov dword [0x1000ac70], esi
call fcn.10001930
add esp, 4
call fcn.100019c0
push 0
push 0
push 0
push 0x10006820
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
mov eax, 1
pop ebp
ret 0xc

Function at 0x10006bb5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x10006bbf
repz ret
jmp fcn.10006f5c
Function at 0x418010
Capabilities:
Query or enumerate registry value

Disassembly:
mov al, byte [0x634042]
mov ecx, dword [0x634034]
sub esp, 0x14
mov edx, dword [0x63403c]
and ecx, 4
and edx, 0xc
push ebx
mov bl, byte [0x634049]
xor bl, al
mov eax, dword [0x634030]
add eax, ecx
mov ecx, dword [0x634038]
mov dword [0x634030], eax
mov eax, dword [0x634048]
and eax, 0xff
push esi
imul edx, eax
xor ecx, edx
push 0
mov byte [0x634049], bl
mov dword [0x634038], ecx
call sub.comdlg32.dll_FindTextW
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x637c3c
mov esi, eax
call fcn.00629c44
add esp, 4
test eax, eax
je 0x418089
pop esi
xor eax, eax
pop ebx
add esp, 0x14
ret
mov ecx, dword [0x634030]
mov eax, dword [0x634034]
mov dword [esp + 0x18], 0
mov ebx, 1
lea edx, [ecx + ecx]
mov dword [esp + 8], 0
or edx, eax
lea eax, [esp + 8]
mov dword [esp + 0x14], edx
push eax
fild qword [esp + 0x18]
push ebx
push 0
push str.CLSIDa893aa73_054f_4dbc_9e53_f4ee5fe07fd3InProcServer32
push SysReAllocStringLen
fadd qword [0x634058]
fstp qword [0x634058]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov dword [0x63cf5c], eax
jne 0x418152
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
push ecx
push 0x637c3c
push edx
push eax
mov dword [esp + 0x1c], eax
push eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x24], 0x208
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov dword [0x63cf5c], eax
jne 0x41811a
cmp dword [esp + 0xc], ebx
je 0x41811c
xor bl, bl
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x418133
pop esi
xor eax, eax
pop ebx
add esp, 0x14
ret
mov eax, dword [0x63cf5c]
test eax, eax
jne 0x418152
test esi, esi
jle 0x41814c
and esi, 0xffff
or esi, 0x80070000
mov dword [0x63cf5c], esi
pop esi
mov eax, 0x80004005
pop ebx
add esp, 0x14
ret
Function at 0x62b031
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x6343e8
cmp edx, dword [eax]
je 0x62b053
add eax, 8
inc ecx
cmp eax, 0x634478
jl 0x62b044
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x6343e8]
jne 0x62b181
mov eax, dword [0x63cf74]
cmp eax, 1
je 0x62b15b
test eax, eax
jne 0x62b084
cmp dword [0x634314], 1
je 0x62b15b
cmp edx, 0xfc
je 0x62b181
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x62b0bb
lea eax, [ebp - 0x1a4]
push 0x630b78
push eax
call fcn.0062ba10
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0062bea0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x62b0fe
lea eax, [ebp - 0x1a4]
push eax
call fcn.0062bea0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x630b74
push edi
call fcn.0062dd70
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x630b58
push eax
call fcn.0062ba10
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0062ba20
lea eax, [ebp - 0xa0]
push 0x630b54
push eax
call fcn.0062ba20
push dword [esi + 0x6343ec]
lea eax, [ebp - 0xa0]
push eax
call fcn.0062ba20
push 0x12010
lea eax, [ebp - 0xa0]
push 0x630b2c
push eax
call fcn.0062dce4
add esp, 0x2c
pop edi
jmp 0x62b181
lea eax, [ebp + 8]
lea esi, [esi + 0x6343ec]
push 0
push eax
push dword [esi]
call fcn.0062bea0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x1003a98
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x1003af0
call fcn.01003b0c
xor eax, eax
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x1003ae7
cmp ecx, 0xffffffff
je 0x1003ae7
and dword [ebp - 4], eax
mov edx, 0x5a4d
cmp word [ecx], dx
jne 0x1003ae0
mov edx, dword [ecx + 0x3c]
test edx, edx
jl 0x1003ae0
cmp edx, 0x10000000
jae 0x1003ae0
lea eax, [edx + ecx]
mov dword [ebp - 0x1c], eax
cmp dword [eax], 0x4550
jne 0x1006d0b
mov dword [ebp - 4], 0xfffffffe
call fcn.010023d0
ret 4
je 0x1006d56
outsb dx, byte [esi]
je 0x1006d75
jb 0x1006d7c
dec esp
and ch, byte [edx]
Function at 0x710c78
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x7109ec
dec ecx
sub ecx, 0x4b8a6df2
and ebx, ebx
call fcn.00710cae
mov ebx, 0x62872b3f
xor dword [eax], edi
mov ebx, ecx
mov ebx, 0x6432460c
add ebx, ebx
add eax, 1
dec ebx
cmp eax, edx
jne fcn.00710c78
sub ecx, 1
ret
Function at 0x403f9c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00405ab4
test esi, esi
jne 0x403fd2
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00405bf0
jmp 0x403ff0
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403e80
mov edi, eax
test esi, esi
je 0x403ff0
cmp dword [ebx], 0
je 0x403ff0
dec esi
jmp 0x403fd9
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405834
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x43e04c], 0
je 0x40589b
cmp word [0x43e338], 0xd7b2
jne 0x40585d
cmp dword [0x43e340], 0
jbe 0x40585d
mov eax, 0x43e334
call dword [0x43e350]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x4058c8
call fcn.00405f54
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x439022], 0
jne 0x4058b7
push 0
push 0x43999a
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406ff4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x407159
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00405ab4
cmp si, word [0x4399d8]
jb 0x40708c
cmp si, word [0x439bd8]
ja 0x40708c
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40708c
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4399d8]
jae 0x407066
mov edi, ebx
dec edi
jmp 0x407087
cmp si, word [ebx*8 + 0x4399d8]
jbe 0x407076
inc ebx
mov dword [ebp - 8], ebx
jmp 0x407087
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4399dc]
call fcn.00406f14
jmp 0x40708c
cmp edi, dword [ebp - 8]
jae 0x407050
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40713b
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40713b
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00406090
push dword [ebp - 0x160]
push 0x407174
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00406090
push dword [ebp - 0x164]
push 0x407184
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00406090
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00406248
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407160
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00405b14
ret
Function at 0x40730c
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40740f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x440b7c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x440b94]
jne 0x407358
mov eax, esi
mov edx, 0x440b96
mov ecx, 0x55
call fcn.00406090
push 0x440b7c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4073f9
push 0x440b7c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00405ab4
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4073c7
cmp byte [0x440b78], 0
je 0x40738c
mov edx, esi
mov eax, ebx
call fcn.004071f0
jmp 0x4073c7
mov edx, esi
mov eax, ebx
call fcn.00406ff4
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x4073c7
cmp dword [esi], 0
je 0x4073b0
mov eax, esi
mov edx, 0x407428
call fcn.00406168
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00406ff4
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00406168
push 0x440b7c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x440b94], bx
push 0xaa
mov eax, dword [esi]
call fcn.00405ffc
push eax
push 0x440b96
call sub.kernel32.dll_lstrcpynW
push 0x440b7c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407416
lea eax, [ebp - 4]
call fcn.00405ab4
ret