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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
nop
mov ecx, 0xa151e94
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
mov eax, section..reloc
nop
nop
mov ebx, 0x42e1d0
mov ecx, 0x489e1ea7
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x401000
Capabilities:
Encode data using xor
Hash data with crc32
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xf98]
mov eax, 0x1018
call fcn.0040d630
mov eax, dword [0x415060]
xor eax, ebp
mov dword [ebp + 0xf94], eax
mov eax, dword [ebp + 0xfa0]
push ebx
push esi
push edi
push 0
push 0x8000027
push 3
push 0
push 1
push 0x80000000
push eax
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x74], 0
mov dword [ecx], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp esi, 0xffffffff
jne 0x401066
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x74], eax
jmp 0x4010d9
push 0
lea eax, [ebp - 0x70]
push eax
push 0x1000
lea ecx, [ebp - 0x6c]
push ecx
push esi
mov dword [ebp - 0x80], 0x415078
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4010d9
cmp dword [ebp - 0x70], 0
je 0x4010d9
push esi
push edi
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
mov edi, dword [ebp - 0x80]
lea esi, [ebp - 0x6c]
mov ebx, dword [ebp - 0x70]
lea edx, [esi + ebx]
xor eax, eax
mov bl, byte [esi]
mov al, cl
inc esi
xor al, bl
shr ecx, 8
mov ebx, dword [edi + eax*4]
xor ecx, ebx
cmp edx, esi
jne 0x4010a0
pop edi
pop esi
mov eax, dword [ebp - 0x78]
mov dword [eax], ecx
mov esi, dword [ebp - 0x7c]
push 0
lea edx, [ebp - 0x70]
push edx
push 0x1000
lea eax, [ebp - 0x6c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401087
test esi, esi
je 0x4010e4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
not ecx
mov dword [eax], ecx
mov ecx, dword [ebp + 0xf94]
mov eax, dword [ebp - 0x74]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d1a8
add ebp, 0xf98
mov esp, ebp
pop ebp
ret
Function at 0x4014a0
Capabilities:
Print debug messages
Read file on windows

Disassembly:
sub esp, 0x47c
mov eax, dword [0x415060]
xor eax, esp
mov dword [esp + 0x474], eax
mov eax, dword [esp + 0x480]
push ebx
push ebp
mov ebp, dword [esp + 0x48c]
push esi
push edi
push 0x412eb0
push eax
lea edx, [esp + 0x18]
xor esi, esi
push edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], esi
call dword [sym.imp.MSVCR90.dll_fopen_s]
add esp, 0xc
push 0x412eb4
push ebp
call fcn.00404510
mov edi, eax
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x4015d3
cmp edi, esi
je 0x4015d3
mov ebx, dword [sym.imp.MSVCR90.dll_fread]
push eax
push 0x80
lea eax, [esp + 0x20]
push 1
push eax
call ebx
add esp, 0x10
test eax, eax
jle 0x401549
push eax
lea ecx, [esp + 0x1c]
push ecx
push edi
add esi, eax
call fcn.00404d30
mov edx, dword [esp + 0x10]
push edx
push 0x80
lea eax, [esp + 0x20]
push 1
push eax
call ebx
add esp, 0x10
test eax, eax
jg 0x401521
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
push edi
call fcn.00404fb0
mov eax, ebp
call fcn.00401450
mov edx, dword [esp + 0x14]
mov ecx, eax
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
mov dword [edx], eax
test ecx, ecx
jge 0x40157e
fadd qword [0x413818]
mov edx, esi
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
test edx, edx
jge 0x401592
fadd qword [0x413818]
fdivp st(1)
sub esp, 8
fld1
fsubrp st(1)
fmul qword [0x413810]
fstp qword [esp]
push eax
push esi
push str.Read__ld_bytes__Wrote__ld_bytes_Compression_factor__4.2f___n
lea eax, [esp + 0xac]
push 0x3e8
push eax
call dword [sym.imp.MSVCR90.dll_sprintf_s]
add esp, 0x1c
lea ecx, [esp + 0x98]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
jmp 0x4015d6
or eax, 0xffffffff
mov ecx, dword [esp + 0x484]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040d1a8
add esp, 0x47c
ret
Function at 0x404b60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x3c], 0
je 0x404b75
or eax, 0xffffffff
jmp 0x404c16
mov ecx, dword [ebp + 8]
cmp dword [ecx + 4], 0
jne 0x404bec
call sub.MSVCR90.dll__errno
mov dword [eax], 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x40]
push eax
push 0x4000
push 1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x44]
push edx
call sub.MSVCR90.dll_fread
add esp, 0x10
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 4], 0
jne 0x404be1
mov eax, dword [ebp + 8]
mov dword [eax + 0x3c], 1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x40]
push edx
call sub.MSVCR90.dll_ferror
add esp, 4
test eax, eax
je 0x404bdc
mov eax, dword [ebp + 8]
mov dword [eax + 0x38], 0xffffffff
or eax, 0xffffffff
jmp 0x404c16
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x44]
mov dword [ecx], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
sub edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 4], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov al, byte [edx]
mov byte [ebp - 1], al
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax], edx
movzx eax, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x404d30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x404d4c
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx + 0x5c]
cmp edx, 0x77
je 0x404d56
mov eax, 0xfffffffe
jmp 0x404e4f
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
cmp dword [ecx + 4], 0
je 0x404e2c
mov edx, dword [ebp - 4]
cmp dword [edx + 0x10], 0
jne 0x404dc3
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x48]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x40]
push ecx
push 0x4000
push 1
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x48]
push eax
call sub.MSVCR90.dll_fwrite
add esp, 0x10
cmp eax, 0x4000
je 0x404db9
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x38], 0xffffffff
jmp 0x404e2c
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], 0x4000
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x64]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 4]
mov eax, dword [ebp - 4]
mov dword [eax + 0x64], ecx
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x68]
mov eax, dword [ebp - 4]
add edx, dword [eax + 0x10]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x68], edx
push 0
mov edx, dword [ebp - 4]
push edx
call fcn.00405770
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x38], eax
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov ecx, dword [edx + 0x64]
sub ecx, dword [eax + 4]
mov edx, dword [ebp - 4]
mov dword [edx + 0x64], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [eax + 0x68]
sub edx, dword [ecx + 0x10]
mov eax, dword [ebp - 4]
mov dword [eax + 0x68], edx
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x38], 0
je 0x404e27
jmp 0x404e2c
jmp 0x404d67
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x4c]
push edx
call fcn.00407d20
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x4c], eax
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
sub eax, dword [edx + 4]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x404e60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x404e85
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx + 0x5c]
cmp edx, 0x77
je 0x404e8f
mov eax, 0xfffffffe
jmp 0x404fac
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0
mov ecx, dword [ebp - 4]
mov edx, 0x4000
sub edx, dword [ecx + 0x10]
mov dword [ebp - 8], edx
je 0x404ef2
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x40]
push ecx
mov edx, dword [ebp - 8]
push edx
push 1
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x48]
push ecx
call sub.MSVCR90.dll_fwrite
add esp, 0x10
cmp eax, dword [ebp - 8]
je 0x404edc
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], 0xffffffff
or eax, 0xffffffff
jmp 0x404fac
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x48]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 0x4000
cmp dword [ebp - 0xc], 0
je 0x404efd
jmp 0x404f8e
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x68]
mov eax, dword [ebp - 4]
add edx, dword [eax + 0x10]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x68], edx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.00405770
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x38], eax
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov ecx, dword [edx + 0x68]
sub ecx, dword [eax + 0x10]
mov edx, dword [ebp - 4]
mov dword [edx + 0x68], ecx
cmp dword [ebp - 8], 0
jne 0x404f4d
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0xfffffffb
jne 0x404f4d
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x38], 0
mov edx, dword [ebp - 4]
cmp dword [edx + 0x10], 0
jne 0x404f68
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 1
je 0x404f68
mov dword [ebp - 0x10], 0
jmp 0x404f6f
mov dword [ebp - 0x10], 1
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 4]
cmp dword [edx + 0x38], 0
je 0x404f89
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 1
je 0x404f89
jmp 0x404f8e
jmp 0x404e99
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x38], 1
jne 0x404fa0
mov dword [ebp - 0x14], 0
jmp 0x404fa9
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x38]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x40cb1f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x24
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov eax, dword [edx + 0x78]
mov ebx, dword [edx + 0x8c]
cmp eax, ebx
mov eax, dword [edx + 0x34]
mov ebx, dword [edx + 0x7c]
jl 0x40cb44
shr ebx, 2
dec ebx
shl ebx, 0x10
or ebx, eax
mov dword [esp], ebx
mov eax, dword [edx + 0x90]
mov ebx, dword [edx + 0x74]
cmp ebx, eax
jl 0x40cb5c
mov ebx, eax
mov dword [esp + 0x18], ebx
mov esi, dword [edx + 0x38]
mov dword [esp + 4], esi
mov ebp, dword [edx + 0x6c]
lea edi, [ebp + esi]
mov dword [esp + 0x20], edi
mov eax, edi
neg eax
and eax, 3
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x2c]
sub eax, 0x106
sub ebp, eax
jg 0x40cb8b
xor ebp, ebp
mov eax, dword [edx + 0x78]
mov dword [esp + 0x1c], eax
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [edi]
mov dword [esp + 0x10], ebx
movzx ebx, word [eax + edi - 1]
mov dword [esp + 0xc], ebx
mov edi, dword [edx + 0x40]
mov edx, dword [esp]
jmp 0x40cbca
and ecx, edx
movzx ecx, word [edi + ecx*2]
cmp ecx, ebp
jbe 0x40cc9e
sub edx, 0x10000
js 0x40cc9e
movzx eax, word [ecx + esi - 1]
cmp eax, ebx
jne 0x40cbb0
mov eax, dword [esp + 4]
movzx eax, word [ecx + eax]
cmp eax, dword [esp + 0x10]
jne 0x40cbb0
mov dword [esp], edx
mov esi, dword [esp + 4]
mov edi, dword [esp + 0x20]
add esi, ecx
mov eax, dword [esp + 0x14]
mov edx, 0xfffffef8
lea edi, [eax + edi + 0x108]
lea esi, [eax + esi + 0x108]
mov eax, dword [edx + esi]
xor eax, dword [edx + edi]
jne 0x40cc21
mov eax, dword [edx + esi + 4]
xor eax, dword [edx + edi + 4]
jne 0x40cc1e
add edx, 8
jne 0x40cc05
jmp 0x40cc8f
add edx, 4
test eax, 0xffff
jne 0x40cc2e
add edx, 2
shr eax, 0x10
sub al, 1
adc edx, 0
lea eax, [edx + edi]
mov edi, dword [esp + 0x20]
sub eax, edi
cmp eax, 0x102
jge 0x40cc8f
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
cmp eax, ebx
jg 0x40cc62
mov esi, dword [esp + 8]
mov edi, dword [edx + 0x40]
mov ebx, dword [esp + 0xc]
mov edx, dword [esp]
jmp 0x40cbb0
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [edx + 0x70], ecx
cmp eax, ebx
jge 0x40cc9e
mov esi, dword [esp + 4]
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [eax + edi - 1]
mov edi, dword [edx + 0x40]
mov dword [esp + 0xc], ebx
mov edx, dword [esp]
jmp 0x40cbb0
mov edx, dword [esp + 0x38]
mov dword [esp + 0x1c], 0x102
mov dword [edx + 0x70], ecx
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
mov eax, dword [edx + 0x74]
cmp ebx, eax
jg 0x40ccaf
mov eax, ebx
add esp, 0x24
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40d1a8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x415060]
jne 0x40d1b2
repz ret
jmp fcn.0040d729
Function at 0x402dfc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040449c
test esi, esi
jne 0x402e33
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.0040458c
jmp 0x402e54
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402c98
mov dword [esp], eax
test esi, esi
je 0x402e54
cmp dword [ebx], 0
je 0x402e54
dec esi
jmp 0x402e3b
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403500
Capabilities:
Query or enumerate registry value

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

Function at 0x404294
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x466048], 0
je 0x4042f5
cmp word [0x46621c], 0xd7b2
jne 0x4042bd
cmp dword [0x466224], 0
jbe 0x4042bd
mov eax, 0x466218
call dword [0x466234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46406c
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 0x40431c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x464030], 0
jne 0x404311
push 0
push 0x464064
push 0x46406c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404450
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.00402a38
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x466049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404418
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4060f0
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 0x406156
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.0040470c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004030c4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406140
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40615d
lea eax, [ebp - 0x10]
call fcn.0040449c
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040495c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408a19
test al, 0x10
jne 0x408a1d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40b544
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 0x40b57d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040458c
jmp 0x40b586
mov eax, ebx
mov edx, esi
call fcn.004044f0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40bc48
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bab0
mov eax, dword [0x4650c8]
cmp byte [eax], 0
je 0x40bcc4
mov eax, dword [0x464ecc]
call fcn.00402ef4
call fcn.00402bc4
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408d20
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
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 0x40bd0c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bcfa
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x464e7c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x466664]
call fcn.0040555c
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40c568
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40c63e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404534
lea eax, [ebp - 8]
call fcn.004049ac
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.0040495c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c628
mov eax, ebx
call fcn.00402a38
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c621
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.0040495c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c60b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c650
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c60b
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c628
mov eax, dword [ebp - 0x10]
call fcn.00402a68
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c645
lea eax, [ebp - 8]
call fcn.0040449c
ret

Function at 0x40cc10
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40cc74
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.0040470c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408680
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cc7b
lea eax, [ebp - 0xc]
call fcn.0040449c
ret

Function at 0x41ad7c
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0041abd4
dec esi
jne 0x41ad9e
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x41bef8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
lea ebx, [ebp - 0xc]
mov esi, 0x466888
cmp dword [esi], 0
jne 0x41bf9e
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov edx, dword [0x466884]
mov dword [eax], edx
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, 0x4643ec
mov ecx, 2
call fcn.00402c58
mov edx, 0x41bed0
mov eax, dword [ebp - 8]
add eax, 5
call fcn.0041bef0
mov edx, dword [ebp - 8]
mov dword [edx + 6], eax
mov eax, dword [ebp - 8]
add eax, 0xa
mov dword [ebx], eax
mov eax, dword [ebx]
mov byte [eax], 0xe8
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, dword [ebx]
call fcn.0041bef0
mov edx, dword [ebx]
mov dword [edx + 1], eax
mov eax, dword [ebx]
mov edx, dword [esi]
mov dword [eax + 5], edx
mov eax, dword [ebx]
mov dword [esi], eax
add dword [ebx], 0xd
mov eax, dword [ebx]
sub eax, dword [ebp - 8]
cmp eax, 0xffc
jl 0x41bf65
mov eax, dword [ebp - 8]
mov dword [0x466884], eax
mov eax, dword [esi]
mov dword [ebp - 4], eax
mov eax, dword [esi]
mov dword [ebx], eax
mov eax, dword [ebx]
mov eax, dword [eax + 5]
mov dword [esi], eax
mov eax, dword [ebx]
mov edx, dword [ebp + 8]
mov dword [eax + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 9], edx
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41d44c
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 0x41d452
ret

Function at 0x41fa50
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 0x41faa1
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41fa88
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41fa78
jmp 0x41faa1
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x41fa89
pop ebx
mov esp, ebp
pop ebp
ret