joyce8/EMBER2024-capa huggingface dataset:
Function at 0x613310
Capabilities:
Generate random numbers via winapi

Disassembly:
push ecx
push esi
push 0xf0000000
push 1
push 0
push 0
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov ecx, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 4]
push ecx
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov eax, dword [esp + 4]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
pop esi
pop ecx
ret 0xc

Function at 0x6143b0
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x641908
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push esi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x614424
push 0x22
push str.cannot_allocate_thread_context_key
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], 0
mov byte [esp + 0xc], 0
call fcn.00573a6d
push 0
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x60], 0
call fcn.00607180
push 0x6be5e0
lea ecx, [esp + 0x24]
push ecx
call fcn.005dcab3
mov ecx, dword [esp + 0x50]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x58
ret

Function at 0x6144e0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x641956
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x9c
push ebx
push esi
lea eax, [esp + 8]
push eax
mov esi, ecx
mov ecx, dword [esp + 0xb8]
mov edx, dword [esi + 0x14]
xor ebx, ebx
push ebx
push esi
push ecx
push edx
push ebx
call fcn.00636c70
mov ecx, dword [esp + 0x20]
add esp, 0x18
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
cmp eax, ebx
jne 0x614570
push 0x14
push str.cannot_create_thread
lea ecx, [esp + 0x30]
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
call fcn.00573a6d
push ebx
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x4c]
mov dword [esp + 0xb4], ebx
call fcn.00607180
push 0x6be5e0
lea eax, [esp + 0x48]
push eax
call fcn.005dcab3
mov esi, dword [esi + 0x10]
cmp esi, ebx
je 0x6145cc
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x6145cc
push 0x1a
push str.cannot_set_thread_priority
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
call fcn.00573a6d
push ebx
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x7c]
mov dword [esp + 0xb4], 1
call fcn.00607180
push 0x6be5e0
lea edx, [esp + 0x78]
push edx
call fcn.005dcab3
mov ecx, dword [esp + 0xa4]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0xa8
ret 8
Function at 0x616000
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x641c08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.005730e7
mov eax, dword [esi + 0x10]
xor ebx, ebx
mov dword [esi + 0x3c], 0xffffffff
mov byte [esi + 0x40], bl
mov dword [eax], ebx
mov ecx, dword [esi + 0x20]
mov dword [ecx], ebx
mov edx, dword [esi + 0x30]
mov dword [edx], ebx
mov eax, dword [esi + 0x14]
mov dword [eax], ebx
mov ecx, dword [esi + 0x24]
mov dword [ecx], ebx
mov edx, dword [esi + 0x34]
mov dword [edx], ebx
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov dword [esi + 0x44], edi
and edi, 1
mov dword [esi], vtable.Poco::Base64DecoderBuf.0
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov eax, dword [edx + eax + 0x38]
mov dword [esi + 0x54], eax
mov dword [esp + 0x18], ebx
mov eax, 0x6d1f80
jne 0x616084
mov eax, 0x6d1e80
mov ecx, 0x6d2084
mov dword [esi + 0x58], eax
mov dword [esp + 0x24], ecx
call fcn.0057ed30
cmp edi, ebx
je 0x6160e2
cmp byte [0x6d2081], bl
jne 0x616130
push 0x100
push 0xff
push 0x6d1f80
call fcn.005dd9b0
add esp, 0xc
xor eax, eax
mov edi, edi
movzx ecx, byte [eax + 0x64f8d0]
mov byte [ecx + 0x6d1f80], al
inc eax
cmp eax, 0x40
jb 0x6160c0
mov byte [0x6d1fbd], bl
mov byte [0x6d2081], 1
jmp 0x616130
cmp byte [0x6d2080], bl
jne 0x616130
push 0x100
push 0xff
push 0x6d1e80
call fcn.005dd9b0
add esp, 0xc
xor eax, eax
jmp 0x616110
movzx edx, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [edx + 0x6d1e80], al
inc eax
cmp eax, 0x40
jb 0x616110
mov byte [0x6d1ebd], bl
mov byte [0x6d2080], 1
lea ecx, [esp + 0x24]
call fcn.0057ef60
mov ecx, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x6195d0
Capabilities:
Copy file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x641fa8
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
jne 0x61960a
push 0
push 0x128
push str.d:pocopoco_1.9.4_all_foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.00612f80
add esp, 0x10
xor eax, eax
mov dword [esp + 0x18], 7
mov dword [esp + 0x14], 0
mov word [esp + 4], ax
mov edx, dword [esp + 0x30]
lea ecx, [esp + 4]
push ecx
push edx
mov dword [esp + 0x30], eax
call fcn.006181d0
mov ecx, dword [esp + 0xc]
add esp, 8
cmp dword [esp + 0x18], 8
jae 0x619646
lea ecx, [esp + 4]
cmp dword [esi + 0x34], 8
lea eax, [esi + 0x20]
jb 0x619651
mov eax, dword [eax]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x619668
add esi, 4
push esi
call fcn.00618500
cmp dword [esp + 0x18], 8
jb 0x61967c
mov eax, dword [esp + 4]
push eax
call fcn.005dc86c
add esp, 4
mov ecx, dword [esp + 0x20]
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 4

Function at 0x6195e8
Capabilities:
Copy file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x641fa8
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
jne 0x61960a
push 0
push 0x128
push str.d:pocopoco_1.9.4_all_foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.00612f80
add esp, 0x10
xor eax, eax
mov dword [esp + 0x18], 7
mov dword [esp + 0x14], 0
mov word [esp + 4], ax
mov edx, dword [esp + 0x30]
lea ecx, [esp + 4]
push ecx
push edx
mov dword [esp + 0x30], eax
call fcn.006181d0
mov ecx, dword [esp + 0xc]
add esp, 8
cmp dword [esp + 0x18], 8
jae 0x619646
lea ecx, [esp + 4]
cmp dword [esi + 0x34], 8
lea eax, [esi + 0x20]
jb 0x619651
mov eax, dword [eax]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x619668
add esi, 4
push esi
call fcn.00618500
cmp dword [esp + 0x18], 8
jb 0x61967c
mov eax, dword [esp + 4]
push eax
call fcn.005dc86c
add esp, 4
mov ecx, dword [esp + 0x20]
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 4

Function at 0x619870
Capabilities:
Delete directory
Delete file

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
jne 0x619892
push 0
push 0x15b
push str.d:pocopoco_1.9.4_all_foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.00612f80
add esp, 0x10
mov ecx, esi
call fcn.00619130
test al, al
lea eax, [esi + 0x20]
je 0x6198bc
cmp dword [eax + 0x14], 8
jb 0x6198a8
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x6198d8
add esi, 4
push esi
call fcn.00618500
cmp dword [eax + 0x14], 8
jb 0x6198c4
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x6198d8
add esi, 4
push esi
call fcn.00618500
pop esi
ret
Function at 0x61cd00
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x6423c1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
mov esi, 0x7fff
xor ecx, ecx
xor ebx, ebx
mov eax, esi
mov edx, 2
mul edx
seto cl
mov dword [esp + 8], ebx
push edi
mov dword [esp + 0x74], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov byte [esp + 0x1c], 1
neg ecx
or ecx, eax
push ecx
call fcn.005dc092
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
push esi
push edi
mov dword [esp + 0x7c], 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, ebx
jbe 0x61ce23
push esi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, ebx
ja 0x61cdc0
push 0x2a
push str.Cannot_get_system_directory_long_path_name
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.00573a6d
push ebx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x7c], 2
call fcn.00607180
push 0x6be5e0
lea ecx, [esp + 0x40]
push ecx
call fcn.005dcab3
mov esi, dword [esp + 0x7c]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
push esi
push edi
mov dword [esp + 0x14], 1
call fcn.00624e40
mov ecx, dword [esi + 0x10]
add esp, 8
cmp dword [esi + 0x14], 0x10
jb 0x61cdef
mov eax, dword [esi]
jmp 0x61cdf1
mov eax, esi
cmp byte [eax + ecx - 1], 0x5c
je 0x61ce06
push 1
push 0x69d580
mov ecx, esi
call fcn.00573dc8
push edi
call fcn.005e1a47
mov ecx, dword [esp + 0x70]
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x6c
ret
push 0x23
push str.Cannot_get_temporary_directory_path
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.00573a6d
push ebx
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x44]
mov byte [esp + 0x7c], 3
call fcn.00607180
push 0x6be5e0
lea eax, [esp + 0x40]
push eax
call fcn.005dcab3
int3
Function at 0x624ca0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x642df8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov esi, dword [esp + 0x30]
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x624cce
mov eax, dword [esi]
jmp 0x624cd0
mov eax, esi
lea ecx, [esp + 0x30]
mov byte [eax], 0
call fcn.0062f150
push 2
lea ecx, [esp + 8]
mov dword [esp + 0x24], 0
call fcn.0062f560
push 0x3f
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 1
call fcn.0062f610
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push esi
lea eax, [edx + edx]
push eax
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 2
call fcn.0062f890
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 1
call fcn.0062f630
lea ecx, [esp + 4]
mov byte [esp + 0x20], 0
call fcn.0062f2d0
lea ecx, [esp + 0x30]
mov dword [esp + 0x20], 0xffffffff
call fcn.0062ef30
mov ecx, dword [esp + 0x18]
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x62e4e0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x34
push ebx
push ebp
mov ebp, dword [esp + 0x44]
cmp dword [ebp + 0x14], 0x10
push esi
mov dword [esp + 0xc], 0
jb 0x62e4fd
mov eax, dword [ebp]
jmp 0x62e4ff
mov eax, ebp
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push 0
push 0
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x62e52c
push eax
push ebp
lea ecx, [esp + 0x18]
call fcn.00606e20
push 0x6bb550
lea eax, [esp + 0x14]
push eax
call fcn.005dcab3
push edi
push esi
call fcn.005dc092
add esp, 4
cmp dword [ebp + 0x14], 0x10
mov edi, eax
jb 0x62e541
mov ebp, dword [ebp]
push esi
push edi
push ebp
call ebx
mov esi, dword [esp + 0x48]
mov eax, edi
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x62e560
sub eax, edx
push eax
push edi
mov ecx, esi
call fcn.00573a6d
push edi
call fcn.005e1a47
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret

Function at 0x631aa0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6434b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 0x34
mov edi, ecx
call fcn.005e19c7
mov esi, eax
xor eax, eax
add esp, 4
mov dword [ebp - 0x14], esi
cmp esi, eax
je 0x631b2e
mov ecx, dword [edi + 4]
mov dword [esi], ecx
mov edx, dword [edi + 4]
mov dword [esi + 4], edx
mov ecx, dword [edi + 4]
mov edx, dword [ebp + 8]
mov word [esi + 0x30], ax
mov dword [ebp - 4], eax
push edx
lea eax, [esi + 0xc]
push eax
add edi, 0xd
push edi
mov dword [esi + 8], ecx
call fcn.00631670
mov ecx, dword [ebp - 0xc]
add esp, 0xc
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
lea edx, [ebp + 8]
push edx
lea ecx, [ebp - 0x20]
mov dword [ebp + 8], eax
call fcn.005de5d2
push 0x6b994c
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], vtable.std::bad_alloc.0
call fcn.005dcab3
int3

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

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x705a457e
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
mov ecx, 0x77d56abe
nop
nop
nop
nop
test eax, eax
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

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

Disassembly:
pushal
nop
nop
nop
call 0x43300c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00431219
Function at 0x402bb8
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x403010
Capabilities:
Query or enumerate registry value

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

Function at 0x403d6c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48a048], 0
je 0x403dcd
cmp word [0x48a21c], 0xd7b2
jne 0x403d95
cmp dword [0x48a224], 0
jbe 0x403d95
mov eax, 0x48a218
call dword [0x48a234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x486070
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 0x403df4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x486034], 0
jne 0x403de9
push 0
push 0x486068
push 0x486070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405a70
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 0x405ad6
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.00404158
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402bd4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405ac0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405add
lea eax, [ebp - 0x10]
call fcn.00403ee8
ret

Function at 0x40ae40
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 0x40ae79
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403fd8
jmp 0x40ae82
mov eax, ebx
mov edx, esi
call fcn.00403f3c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b534
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b3ac
mov eax, dword [0x4893b8]
cmp byte [eax], 0
je 0x40b5b0
mov eax, dword [0x48919c]
call fcn.004029e8
call fcn.00402834
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.004086b4
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 0x40b5f8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b5e6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x489144]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x48a664]
call fcn.00404f84
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 0x40be4c
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 0x40bf22
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403f80
lea eax, [ebp - 8]
call fcn.004043f8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004043a8
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40bf0c
mov eax, ebx
call fcn.004026cc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40bf05
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.004043a8
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40beef
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40bf34
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40beef
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 0x40bf0c
mov eax, dword [ebp - 0x10]
call fcn.004026ec
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bf29
lea eax, [ebp - 8]
call fcn.00403ee8
ret

Function at 0x40c42c
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 0x40c490
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.00404158
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004081fc
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c497
lea eax, [ebp - 0xc]
call fcn.00403ee8
ret

Function at 0x41a628
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x48a884
cmp dword [edi], 0
jne 0x41a6a4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x48a880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4863f0
mov ecx, 2
call fcn.004028c8
mov edx, 0x41a600
lea eax, [esi + 5]
call fcn.0041a620
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041a620
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41a679
mov dword [0x48a880], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41bc78
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 0x41bc7e
ret