joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10026bc0
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10026d1a
push eax
mov dword fs:[0], esp
sub esp, 0x2b4
mov dword [ebp - 0x1c], 0
push ebx
lea eax, [ebp - 0x40]
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea ecx, [ebp - 0x18]
lea eax, [ebp - 0x40]
push ecx
mov ebx, dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
push eax
call ebx
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
shr edx, 0x18
mov eax, dword [ebp - 0x18]
shr eax, 0x10
mov bl, byte [ebp - 0x18]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x20], ecx
mov byte [ebp - 0x10], bl
shr ecx, 0x10
mov ebx, dword [ebp - 0x10]
shr dword [ebp - 0x20], 0x18
mov dword [ebp - 0x10], 0
push ebx
mov bl, byte [ebp - 0x17]
mov byte [ebp - 0x10], bl
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
push ebx
mov byte [ebp - 0x10], al
mov eax, dword [ebp - 0x10]
push eax
xor eax, eax
mov al, dl
push eax
xor eax, eax
mov al, byte [ebp - 0x14]
push eax
xor eax, eax
mov al, byte [ebp - 0x13]
push eax
xor eax, eax
mov al, cl
lea ecx, [ebp - 0x30]
push eax
xor eax, eax
mov al, byte [ebp - 0x20]
push eax
push str.NMU_x_x_x_x._x_x_x
push ecx
mov esi, dword [sym.imp.MSVCRT40.dll_sprintf]
call esi
add esp, 0x28
lea ecx, [ebp - 0xc0]
push ecx
push pe_nt_image_headers32
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0x30]
lea edx, [ebp - 0xc0]
push ecx
lea eax, [ebp - 0x2c0]
push edx
push str._s_s
push eax
call esi
add esp, 0x10
lea ecx, [ebp - 0x2c0]
cmp dword [0x10034308], ecx
je 0x10026d0e
mov edi, ecx
sub eax, eax
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
lea edi, [ebp - 0x2c0]
call fcn.1001f710
add esp, 4
mov edx, dword [ebp + 8]
mov ecx, 0xffffffff
mov dword [edx], eax
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, dword [edx]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, edx
mov ecx, dword [ebp - 0xc]
or dword [ebp - 0x1c], 1
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x10034308]
mov edx, dword [ebp + 8]
mov dword [edx], eax
jmp 0x10026cf7
Function at 0x10026d90
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
push 0x180
push 0x810a
mov ecx, dword [esi + 0xc]
call fcn.10027de0
test eax, eax
je 0x10026db1
xor eax, eax
pop edi
pop esi
pop ebx
ret
mov eax, dword [esi + 0xc]
mov edi, 0xffffffff
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
je 0x10026dcd
push eax
call dword [sym.imp.MSVCRT40.dll__filelength]
add esp, 4
mov edi, eax
test edi, edi
je 0x10026e0b
lea eax, [edi + 1]
push eax
call fcn.1000c54f
add esp, 4
mov ebx, eax
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
jne 0x10026df1
mov eax, 0xffffffff
jmp 0x10026dfd
push edi
push ebx
push eax
call dword [sym.imp.MSVCRT40.dll__read]
add esp, 0xc
push eax
lea ecx, [esi + 0x10]
push ebx
mov byte [ebx + eax], 0
call fcn.10026550
mov edi, dword [esi + 0xc]
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.MSVCRT40.dll__close]
mov dword [edi + 4], 0xffffffff
add esp, 4
call dword [sym.imp.MSVCRT40.dll__errno]
lea ecx, [esi + 0x10]
call fcn.10026580
mov eax, 1
pop edi
pop esi
pop ebx
ret
Function at 0x42e000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e072
nop
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
mov esi, 0x22995bec
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e060
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
je 0x42e0d2
nop
nop
nop
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x763610e5
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x10002f17
Capabilities:
Allocate or change rwx memory

Disassembly:
push 0xc
mov eax, 0x10007c55
call fcn.1000779e
xor ecx, ecx
call fcn.10005421
test eax, eax
je 0x10002fdc
push 0x28
mov dword [ebp - 0x10], 0x747eb0
call fcn.10006775
mov dword [ebp - 0x14], eax
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
push ecx
mov ecx, eax
call fcn.1000417b
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], eax
lea ecx, [eax + 0xc]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ecx
push eax
call fcn.100030ab
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x10002f74
call fcn.10001166
push 0x28
call fcn.10006775
mov ebx, eax
mov dword [ebp - 0x14], ebx
xor ecx, ecx
lea esi, [ebx + 0xc]
inc ecx
mov edi, ebx
mov dword [ebp - 4], ecx
xor eax, eax
push 0x53bee0
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebx + 4], ecx
mov dword [ebx + 8], ecx
mov ecx, esi
mov dword [ebx], vtable.std::_Ref_count_obj2_class_hook_void____cdecl___void___void____cdecl___void___.0
call fcn.10004476
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], esi
push eax
mov dword [ebp - 0x14], ebx
call fcn.100030de
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x10002fc3
call fcn.10001166
call fcn.10004a12
push 0
push 0x40
push 0x4f3000
push 0x401000
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, 0x10010e58
call fcn.1000777b
ret

Function at 0x10003836
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, 0x811c9dc5
xor edx, edx
movzx eax, byte [edi + edx]
xor eax, esi
imul esi, eax, 0x1000193
inc edx
cmp edx, 4
jb 0x10003843
mov eax, dword [ecx + 0x18]
pop edi
and eax, esi
pop esi
ret 4

Function at 0x10003938
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push esi
mov esi, dword [esp + 8]
mov edx, 0x811c9dc5
xor ecx, ecx
movzx eax, byte [esi + ecx]
xor eax, edx
imul edx, eax, 0x1000193
inc ecx
cmp ecx, 4
jb 0x10003944
pop esi
mov eax, edx
ret 4

Function at 0x10003f08
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10010040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 5
pop edx
mov esi, ecx
mov dword [ebp - 0x10], edx
lea ecx, [ebp - 8]
push ecx
push 0x40
mov eax, dword [esi]
push edx
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 8]
call fcn.10003a32
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 8]
push eax
push dword [esi + 8]
push dword [esi]
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.10004143
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10006767
leave
ret
Function at 0x10003f68
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x10010040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 5
pop edi
mov esi, ecx
mov dword [ebp - 0x18], edi
lea ecx, [ebp - 0x10]
push ecx
push 0x40
mov eax, dword [esi]
push edi
push eax
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 0x10]
call fcn.10003a32
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x14]
mov byte [ebp - 0xc], 0xe9
push edi
mov eax, dword [eax + 0x1c]
sub eax, dword [esi]
sub eax, edi
mov dword [ebp - 0xb], eax
lea eax, [ebp - 0xc]
push eax
push dword [esi]
call sub.VCRUNTIME140.dll_memmove
mov edx, dword [esi + 0xc]
add esp, 0xc
sub edx, dword [esi + 8]
cmp edx, edi
jbe 0x10003fe2
mov eax, dword [esi]
lea ecx, [eax + 5]
sub eax, ecx
add eax, edx
push eax
push 0x90
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.10004143
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10006767
leave
ret
Function at 0x10004a12
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0xc
mov eax, dword [0x10010040]
xor eax, esp
mov dword [esp + 8], eax
push ebx
push ebp
push esi
push edi
push str.samp.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebp, eax
push str.xxxxxx
push 0x1000e0c4
mov ecx, dword [ebp + 0x3c]
mov edi, dword [ecx + ebp + 0x50]
mov edx, edi
mov ecx, ebp
mov dword [esp + 0x18], edi
call fcn.100049e3
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, eax
pop ecx
pop ecx
lea eax, [esp + 0x14]
mov dword [0x10010e3c], esi
push eax
push 0x40
push 6
push esi
call ebx
lea eax, [esp + 0x14]
mov byte [esi], 0xc3
push eax
push dword [esp + 0x18]
push 6
push esi
call ebx
push str.xxxx
push 0x1000e0d4
mov edx, edi
mov ecx, ebp
call fcn.100049e3
pop ecx
pop ecx
mov esi, eax
lea eax, [esp + 0x14]
push eax
push 0x40
push 0xa
push esi
mov dword [0x10010e38], esi
call ebx
mov edi, esi
mov eax, 0x90909090
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x18]
push 0xa
push esi
call ebx
mov edi, dword [esp + 0x10]
mov ecx, ebp
push str.xxxx
push 0x1000e0e4
mov edx, edi
call fcn.100049e3
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10004b01
lea ecx, [esp + 0x14]
push ecx
push 0x40
push 0xa
push esi
call ebx
mov edi, esi
mov eax, 0x90909090
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x18]
push 0xa
jmp 0x10004b5c
push str.xx____xxxxxxxx
push 0x1000e0ec
mov edx, edi
mov ecx, ebp
call fcn.100049e3
pop ecx
pop ecx
mov esi, eax
lea eax, [esp + 0x14]
push eax
push 0x40
push 6
pop edi
push edi
push esi
call ebx
mov ebp, 0x90909090
lea eax, [esp + 0x14]
push eax
mov dword [esi], ebp
mov word [esi + 4], bp
push dword [esp + 0x18]
push edi
push esi
call ebx
lea eax, [esp + 0x14]
add esi, 0x1c
push eax
push 0x40
push edi
push esi
call ebx
lea eax, [esp + 0x14]
mov dword [esi], ebp
push eax
mov word [esi + 4], bp
push dword [esp + 0x18]
push edi
push esi
call ebx
mov eax, dword [0x1000e10c]
mov ecx, 0x745240
pop edi
pop esi
pop ebp
mov dword [ecx], eax
mov al, byte [0x1000e110]
mov byte [ecx + 4], al
mov ecx, dword [esp + 0xc]
pop ebx
xor ecx, esp
call fcn.10006767
add esp, 0xc
ret
Function at 0x429ae0
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
push eax
push ecx
push 0xca62c1d6
push 0x8f1bbcdc
push 0x6ed9eba1
push 0x5a827999
push edx
call fcn.00429e90
ret 0x18

Function at 0x429d70
Capabilities:
Hash data using sha1

Disassembly:
mov ecx, dword [esp + 4]
mov eax, ecx
and eax, 0xfffffff
imul eax, eax, 8
jo 0x429d90
test ecx, 0x10000000
je 0x429d8d
or eax, 0x80000000
ret 4
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x429da0
Capabilities:
Hash data using sha1

Disassembly:
mov ecx, dword [esp + 4]
mov eax, ecx
and eax, 0x3fffffff
imul eax, eax, 2
jo 0x429dca
test ecx, 0x40000000
je 0x429dbd
or eax, 0x80000000
test ecx, 0x80000000
je 0x429dc7
or al, 1
ret 4
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]

Function at 0x429dd0
Capabilities:
Hash data using sha1

Disassembly:
push esi
mov esi, dword [esp + 8]
mov ecx, esi
mov eax, esi
and ecx, 0x3ffffff
imul ecx, ecx, 0x20
jo 0x429e0e
and eax, 0xf8000000
cdq
and edx, 0x7ffffff
add eax, edx
sar eax, 0x1b
and eax, 0x1f
or ecx, eax
test esi, 0x4000000
pop esi
je 0x429e09
or ecx, 0x80000000
mov eax, ecx
ret 4
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x429e20
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, eax
xor edx, ecx
jge 0x429e35
add eax, ecx
jo 0x429e46
ret 8
xor eax, 0x80000000
add eax, ecx
jo 0x429e46
xor eax, 0x80000000
ret 8
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop

Function at 0x429e50
Capabilities:
Hash data using sha1

Disassembly:
push ebx
mov ebx, dword [esp + 8]
mov ecx, ebx
mov eax, ebx
and ecx, 1
imul ecx, ecx, 0x40000000
jo 0x429e87
and al, 0xfc
cdq
and edx, 3
add eax, edx
sar eax, 2
and eax, 0x3fffffff
or ecx, eax
test bl, 2
pop ebx
je 0x429e82
or ecx, 0x80000000
mov eax, ecx
ret 4
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
Function at 0x3a820d7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x3a820f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.03a82e07
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x3a8211a
test byte [esp + 8], 2
je 0x3a8211a
call fcn.03a82e7a
mov dword [eax], 0xd
call fcn.03a82e83
mov dword [eax], 5
jmp 0x3a820f3
xor eax, eax
ret

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

Disassembly:
pushal
nop
nop
call 0x42e00c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x407be8
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
push 0
push 0
push 0
cld
call dword es:[sym.imp.KERNEL32.dll_GetShortPathNameA]
sub eax, 2
mov edx, dword [ecx]
imul eax, edx
cmp al, 0x7c
jne 0x407c39
lea eax, [esp + 4]
push eax
push esp
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
cmp eax, dword [edx + ebp]
je 0x407c7a
mov eax, 0x407c34
lea eax, [edx + eax]
push ebp
push eax
push 0
bnd call sub.KERNEL32.dll_EnumResourceTypesW
push esi
jmp 0x407c7a
cmc
nop
mov eax, esp
lea eax, [eax + 8]
mov ecx, eax
or eax, dword [ecx]
and eax, dword [ecx]
or eax, 7
xchg dword [esp + 0xc], edx
lea eax, es:[eax + 0x78968f]
sub eax, 0x783648
xacquire lock add dword es:[edx - 0x1b4], eax
pop ecx
add esp, 0x10
mov eax, 0
mov dx, cs
push dx
push ecx
retf
add byte [eax], al
add byte [eax], al
mov eax, dword [0xf59a0040]
retf
Function at 0x4032e0
Capabilities:
Query or enumerate registry value

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

Function at 0x40405c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x450048], 0
je 0x4040bd
cmp word [0x45021c], 0xd7b2
jne 0x404085
cmp dword [0x450224], 0
jbe 0x404085
mov eax, 0x450218
call dword [0x450234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x44e06c
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 0x4040e4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x44e030], 0
jne 0x4040d9
push 0
push 0x44e064
push 0x44e06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405e24
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 0x405e8a
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.00404470
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402ea4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405e74
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405e91
lea eax, [ebp - 0x10]
call fcn.00404200
ret

Function at 0x40ae58
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 0x40ae91
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004042f0
jmp 0x40ae9a
mov eax, ebx
mov edx, esi
call fcn.00404254
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b55c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b3c4
mov eax, dword [0x44f014]
cmp byte [eax], 0
je 0x40b5d8
mov eax, dword [0x44ee3c]
call fcn.00402d10
call fcn.00402bb4
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.00408648
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 0x40b620
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b60e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x44edec]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x450664]
call fcn.00405290
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 0x40be7c
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 0x40bf52
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404298
lea eax, [ebp - 8]
call fcn.00404710
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004046c0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40bf3c
mov eax, ebx
call fcn.00402a28
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40bf35
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.004046c0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40bf1f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40bf64
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40bf1f
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 0x40bf3c
mov eax, dword [ebp - 0x10]
call fcn.00402a58
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bf59
lea eax, [ebp - 8]
call fcn.00404200
ret

Function at 0x40c53c
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 0x40c5a0
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.00404470
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004081c4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c5a7
lea eax, [ebp - 0xc]
call fcn.00404200
ret
Function at 0x41a998
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, 0x450884
cmp dword [esi], 0
jne 0x41aa3e
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 [0x450880]
mov dword [eax], edx
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, 0x44e3ec
mov ecx, 2
call fcn.00402c48
mov edx, 0x41a970
mov eax, dword [ebp - 8]
add eax, 5
call fcn.0041a990
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.0041a990
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 0x41aa05
mov eax, dword [ebp - 8]
mov dword [0x450880], 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 0x41bc64
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 0x41bc6a
ret

Function at 0x41e0dc
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 0x41e12d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41e114
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41e104
jmp 0x41e12d
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 0x41e115
pop ebx
mov esp, ebp
pop ebp
ret