joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b620
Capabilities:
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
lea ecx, [esp]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREClickSpring
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40b661
push str.setUID:_RegCreateKeyEx
call fcn.0040b010
add esp, 4
xor eax, eax
add esp, 8
ret
mov edx, dword [esp + 0xc]
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
mov edx, dword [esp + 0xc]
push 1
push eax
push str.UUID
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop edi
je 0x40b69e
push str.setUID:_RegSetValueEx
call fcn.0040b010
add esp, 4
xor eax, eax
add esp, 8
ret
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 8
ret

Function at 0x40b6c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp + 8]
push esi
push eax
push 0x20019
push 0
push str.SOFTWAREClickSpring
push 0x80000002
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], 0x200
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40b6fb
xor eax, eax
pop esi
add esp, 0xc
ret
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, dword [esp + 0x10]
add esp, 4
lea edx, [esp + 4]
mov esi, eax
push edx
lea eax, [esp + 0xc]
push esi
push eax
push 0
push str.UUID
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push esi
je 0x40b73d
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
xor eax, eax
pop esi
add esp, 0xc
ret
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, 1
pop esi
add esp, 0xc
ret

Function at 0x40b8c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov al, byte [0x41b2b8]
sub esp, 8
test al, al
je 0x40b8d9
push 0x41b2b8
call fcn.0040b620
add esp, 4
lea eax, [esp + 4]
lea ecx, [esp]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREClickSpring
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40b917
push str.setUID:_RegCreateKeyEx
call fcn.0040b010
add esp, 4
xor eax, eax
add esp, 8
ret
cmp dword [esp + 4], 2
je 0x40b924
xor eax, eax
add esp, 8
ret
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp]
push edx
push eax
push 0
push 0
push 0x41988c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40b959
push str.setUID:_RegQueryValueEx
call fcn.0040b010
add esp, 4
xor eax, eax
add esp, 8
ret
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 8
ret
Function at 0x40b970
Capabilities:
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
lea ecx, [esp]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREClickSpring
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40b9b1
push str.set_pid_list:_RegCreateKeyEx
call fcn.0040b010
add esp, 4
xor eax, eax
add esp, 8
ret
mov edx, dword [esp + 0xc]
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
mov edx, dword [esp + 0xc]
push 1
push eax
push 0x41988c
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop edi
je 0x40b9ee
push str.set_pid_list:_RegSetValueEx
call fcn.0040b010
add esp, 4
xor eax, eax
add esp, 8
ret
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 8
ret
Function at 0x40d1f0
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [0x41de48]
cmp eax, 0x1c00
jle 0x40d227
lea eax, [esp]
push 0
push eax
push 0x41b53c
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov ecx, dword [esp + 0x10]
push eax
push 0x41b53c
push ecx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
xor eax, eax
mov dword [0x41de48], eax
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
lea edx, [eax + 0x41b53c]
push ecx
push edx
call dword [sym.imp.USER32.dll_wvsprintfA]
add dword [0x41de48], eax
pop ecx
ret

Function at 0x40d250
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414c60
push 0x409886
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov edi, dword [ebp + 0xc]
xor ebx, ebx
cmp edi, ebx
jne 0x40d2e2
mov dword [ebp - 4], ebx
push str.raising_exception_r_n
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
push ebx
push ebx
push ebx
push 0x80000003
call dword [sym.imp.KERNEL32.DLL_RaiseException]
push str.dbghelp.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
cmp eax, ebx
je 0x40d338
push str.MiniDumpWriteDump
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x40d338
push str.writing_minidump_r_n
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], ebx
push ebx
push ebx
lea edx, [ebp - 0x24]
push edx
push ebx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40d350
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
lea eax, [esp + 0x2c]
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov edi, dword [esp + 0x34]
mov eax, 0x40000000
xor edx, edx
mov esi, 0
div edi
mov ebp, esi
mov dword [esp + 0x10], 1
mov ebx, eax
shl ebx, 2
je 0x40d3eb
mov edx, esi
lea ecx, [esp + 0x14]
imul edx, edi
push 0x1c
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x40d3dc
mov eax, dword [esp + 0x20]
test eax, eax
jbe 0x40d3dc
xor edx, edx
div edi
add esi, eax
mov eax, dword [esp + 0x24]
cmp eax, 0x1000
jne 0x40d3e7
mov eax, dword [esp + 0x18]
cmp eax, ebp
jbe 0x40d3e7
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x58]
push ecx
push eax
push edx
mov ebp, eax
call fcn.0040d400
add esp, 0xc
test al, al
je 0x40d3e7
inc dword [esp + 0x10]
jmp 0x40d3e7
mov eax, 0x10000
xor edx, edx
div edi
add esi, eax
cmp esi, ebx
jb 0x40d385
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
Function at 0x40d7c0
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
sub esp, 0x324
lea eax, [esp]
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemTimeAsFileTime]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push ecx
lea eax, [esp + 0xc4]
push edx
push eax
call fcn.0040d730
mov esi, dword [esp + 0x33c]
add esp, 0xc
lea ecx, [esp + 0xc0]
push ecx
push str.Error_occurred_at__s._r_n
push esi
call fcn.0040d1f0
add esp, 0xc
lea edx, [esp + 0x124]
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x124]
push 0x206
push edx
push eax
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
ja 0x40d845
lea eax, [esp + 0x124]
push str.Unknown
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
lea ecx, [esp + 0x124]
push ecx
push str._s._r_n
push esi
call fcn.0040d1f0
lea edx, [esp + 0x98]
lea eax, [esp + 0x3c]
push edx
lea ecx, [esp + 0x68]
push eax
push ecx
call fcn.0040e960
add esp, 0x18
lea edx, [esp + 0x8c]
lea eax, [esp + 0x58]
push edx
push eax
push str.Operating_system:___s___s_._r_n
push esi
call fcn.0040d1f0
add esp, 0x10
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
push edx
push eax
push str._d_processor_s___type__d._r_n
push esi
call fcn.0040d1f0
add esp, 0x10
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0x20
push ecx
call dword [sym.imp.KERNEL32.DLL_GlobalMemoryStatus]
mov edx, dword [esp + 0x14]
push edx
push str._d___memory_in_use._r_n
push esi
call fcn.0040d1f0
mov eax, dword [esp + 0x24]
add esp, 0xc
add eax, 0xfffff
shr eax, 0x14
push eax
push str._d_MBytes_physical_memory._r_n
push esi
call fcn.0040d1f0
mov ecx, dword [esp + 0x28]
add esp, 0xc
add ecx, 0xfffff
shr ecx, 0x14
push ecx
push str._d_MBytes_physical_memory_free._r_n
push esi
call fcn.0040d1f0
mov edx, dword [esp + 0x2c]
add esp, 0xc
add edx, 0xfffff
shr edx, 0x14
push edx
push str._d_MBytes_paging_file._r_n
push esi
call fcn.0040d1f0
mov eax, dword [esp + 0x30]
add esp, 0xc
add eax, 0xfffff
shr eax, 0x14
push eax
push str._d_MBytes_paging_file_free._r_n
push esi
call fcn.0040d1f0
mov ecx, dword [esp + 0x34]
add esp, 0xc
add ecx, 0xfffff
shr ecx, 0x14
push ecx
push str._d_MBytes_user_address_space._r_n
push esi
call fcn.0040d1f0
mov edx, dword [esp + 0x38]
add esp, 0xc
add edx, 0xfffff
shr edx, 0x14
push edx
push str._d_MBytes_user_address_space_free._r_n
push esi
call fcn.0040d1f0
add esp, 0xc
pop edi
pop esi
add esp, 0x324
ret
Function at 0x40d990
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc0
mov edx, dword [esp + 0xc4]
mov dword [esp], 0x40010005
mov dword [esp + 4], str.a_Control_C
mov dword [esp + 8], 0x40010008
mov dword [esp + 0xc], str.a_Control_Break
mov dword [esp + 0x10], 0x80000002
mov dword [esp + 0x14], str.a_Datatype_Misalignment
mov dword [esp + 0x18], 0x80000003
mov dword [esp + 0x1c], str.a_Breakpoint
mov dword [esp + 0x20], 0xc0000005
mov dword [esp + 0x24], str.an_Access_Violation
mov dword [esp + 0x28], 0xc0000006
mov dword [esp + 0x2c], str.an_In_Page_Error
mov dword [esp + 0x30], 0xc0000017
mov dword [esp + 0x34], str.a_No_Memory
mov dword [esp + 0x38], 0xc000001d
mov dword [esp + 0x3c], str.an_Illegal_Instruction
mov dword [esp + 0x40], 0xc0000025
mov dword [esp + 0x44], str.a_Noncontinuable_Exception
mov dword [esp + 0x48], 0xc0000026
mov dword [esp + 0x4c], str.an_Invalid_Disposition
mov dword [esp + 0x50], 0xc000008c
mov dword [esp + 0x54], str.a_Array_Bounds_Exceeded
mov dword [esp + 0x58], 0xc000008d
mov dword [esp + 0x5c], str.a_Float_Denormal_Operand
mov dword [esp + 0x60], 0xc000008e
mov dword [esp + 0x64], str.a_Float_Divide_by_Zero
mov dword [esp + 0x68], 0xc000008f
mov dword [esp + 0x6c], str.a_Float_Inexact_Result
mov dword [esp + 0x70], 0xc0000090
mov dword [esp + 0x74], str.a_Float_Invalid_Operation
mov dword [esp + 0x78], 0xc0000091
mov dword [esp + 0x7c], str.a_Float_Overflow
mov dword [esp + 0x80], 0xc0000092
mov dword [esp + 0x84], str.a_Float_Stack_Check
mov dword [esp + 0x88], 0xc0000093
mov dword [esp + 0x8c], str.a_Float_Underflow
mov dword [esp + 0x90], 0xc0000094
mov dword [esp + 0x94], str.an_Integer_Divide_by_Zero
mov dword [esp + 0x98], 0xc0000095
mov dword [esp + 0x9c], str.an_Integer_Overflow
mov dword [esp + 0xa0], 0xc0000096
mov dword [esp + 0xa4], str.a_Privileged_Instruction
mov dword [esp + 0xa8], 0xc00000fd
mov dword [esp + 0xac], str.a_Stack_Overflow
mov dword [esp + 0xb0], 0xc0000142
mov dword [esp + 0xb4], str.a_DLL_Initialization_Failed
mov dword [esp + 0xb8], 0xe06d7363
mov dword [esp + 0xbc], str.a_Microsoft_C_Exception
xor eax, eax
lea ecx, [esp]
cmp edx, dword [ecx]
je 0x40db6c
inc eax
add ecx, 8
cmp eax, 0x18
jb 0x40db53
mov eax, str.an_Unknown_exception_type
add esp, 0xc0
ret
mov eax, dword [esp + eax*8 + 4]
add esp, 0xc0
ret

Function at 0x40e380
Capabilities:
Delete file
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
mov edi, dword [esp + 0x1c]
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
mov dword [edi], eax
push ebx
mov dword [esp + 0x28], 0
add edi, 4
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40e3e2
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0xc]
push 0
push ecx
lea eax, [edi + 4]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov eax, dword [esp + 0xc]
mov dword [edi], eax
pop edi
pop esi
add eax, 8
pop ebx
pop ecx
ret
Function at 0x40e590
Capabilities:
Get file version info

Disassembly:
sub esp, 0x38
lea eax, [esp]
push ebx
push ebp
push esi
mov esi, ecx
push eax
lea ebp, [esi + 0x28]
push ebp
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40e6a6
push edi
lea edi, [ebx + 1]
push edi
call sub.MFC42.DLL_operatornew
mov edx, eax
mov ecx, edi
mov dword [esi], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi]
mov ecx, dword [esp + 0x10]
push eax
push ebx
push ecx
push ebp
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
pop edi
je 0x40e6a6
lea edx, [esp + 0x10]
mov ecx, esi
push edx
call fcn.0040e820
test eax, eax
je 0x40e6a6
mov eax, dword [esp + 0x18]
mov ecx, eax
mov word [esi + 0xa], ax
mov eax, dword [esp + 0x1c]
shr ecx, 0x10
mov edx, eax
mov word [esi + 0xe], ax
mov eax, dword [esp + 0x20]
mov word [esi + 8], cx
mov ecx, eax
mov word [esi + 0x12], ax
mov eax, dword [esp + 0x24]
shr edx, 0x10
shr ecx, 0x10
mov word [esi + 0xc], dx
mov word [esi + 0x10], cx
mov ecx, dword [esp + 0x30]
mov edx, eax
mov word [esi + 0x16], ax
mov eax, dword [esp + 0x2c]
shr edx, 0x10
mov dword [esi + 0x1c], ecx
lea ecx, [esi + 0x230]
mov word [esi + 0x14], dx
mov edx, dword [esp + 0x34]
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x38]
push ecx
push str.CompanyName
mov ecx, esi
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], eax
call fcn.0040e870
lea edx, [esi + 0x640]
mov ecx, esi
push edx
push 0x41a3ac
call fcn.0040e870
lea eax, [esi + 0x438]
mov ecx, esi
push eax
push 0x41a3a0
call fcn.0040e870
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x38
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x38
ret
Function at 0x40f1b0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
mov edi, dword [eax + 0x38]
mov cl, byte [eax + 0x34]
test edi, edi
mov byte [esp + 0x10], cl
jle 0x40f1f1
mov esi, dword [esp + 0x10]
and esi, 0xff
mov edx, dword [eax + 0x260]
mov ebx, edx
shr ebx, 0x18
xor ebx, esi
shl edx, 8
mov ebx, dword [ebx*4 + 0x41a4e4]
xor ebx, edx
dec edi
mov dword [eax + 0x260], ebx
jne 0x40f1cf
mov edx, dword [eax + 0x34]
mov bl, 1
mov byte [eax + edx + 0x58], bl
mov edx, dword [eax + 0x38]
mov esi, edx
dec esi
je 0x40f29f
dec esi
je 0x40f27e
dec esi
je 0x40f264
mov byte [edx + eax + 0x54], bl
mov edx, dword [eax + 0x24]
mov esi, dword [eax + 0x44]
mov byte [edx + esi], cl
mov esi, dword [eax + 0x44]
inc esi
mov dword [eax + 0x44], esi
mov edx, esi
mov esi, dword [eax + 0x24]
mov byte [esi + edx], cl
mov edx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
inc edx
mov dword [eax + 0x44], edx
mov byte [esi + edx], cl
mov ebx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
inc ebx
mov edx, ebx
mov dword [eax + 0x44], ebx
mov byte [esi + edx], cl
mov edi, dword [eax + 0x44]
mov dl, byte [eax + 0x38]
mov esi, dword [eax + 0x24]
inc edi
sub dl, 4
mov ecx, edi
mov dword [eax + 0x44], edi
pop edi
mov byte [esi + ecx], dl
mov ecx, dword [eax + 0x44]
inc ecx
pop esi
mov dword [eax + 0x44], ecx
pop ebx
ret
mov edx, dword [eax + 0x24]
mov esi, dword [eax + 0x44]
mov byte [edx + esi], cl
mov esi, dword [eax + 0x44]
inc esi
mov dword [eax + 0x44], esi
mov edx, esi
mov esi, dword [eax + 0x24]
mov byte [esi + edx], cl
jmp 0x40f287
mov edx, dword [eax + 0x24]
mov esi, dword [eax + 0x44]
mov byte [edx + esi], cl
mov edx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
inc edx
pop edi
mov dword [eax + 0x44], edx
mov byte [esi + edx], cl
mov ecx, dword [eax + 0x44]
inc ecx
pop esi
mov dword [eax + 0x44], ecx
pop ebx
ret
mov edx, dword [eax + 0x24]
mov esi, dword [eax + 0x44]
pop edi
mov byte [edx + esi], cl
mov ecx, dword [eax + 0x44]
inc ecx
pop esi
mov dword [eax + 0x44], ecx
pop ebx
ret
Function at 0x402e44
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402e81
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402ea1
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.004050cc
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x4030e8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404e5c
test esi, esi
jne 0x40311f
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.00404f4c
jmp 0x403140
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402f84
mov dword [esp], eax
test esi, esi
je 0x403140
cmp dword [ebx], 0
je 0x403140
dec esi
jmp 0x403127
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403794
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x403d78
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x58d024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403e10
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403df0
xor eax, eax
push ebp
push 0x403de9
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 0x403e2c
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 0x403df0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x58d024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x58d024], ax
mov esp, ebp
pop ebp
ret
Function at 0x40722c
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 0x407292
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.004050cc
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004037b0
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40727c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407299
lea eax, [ebp - 0x10]
call fcn.00404e5c
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405338
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40c5f1
test al, 0x10
jne 0x40c5f5
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40fca0
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 0x40fcd9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404f4c
jmp 0x40fce2
mov eax, ebx
mov edx, esi
call fcn.00404eb0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x410d3c
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 0x410e12
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404ef4
lea eax, [ebp - 8]
call fcn.00405388
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00405338
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x410dfc
mov eax, ebx
call fcn.00402bf4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x410df5
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.00405338
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x410ddf
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x410e24
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x410ddf
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 0x410dfc
mov eax, dword [ebp - 0x10]
call fcn.00402c24
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x410e19
lea eax, [ebp - 8]
call fcn.00404e5c
ret
Function at 0x4114f0
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 0x411554
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.004050cc
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040c110
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41155b
lea eax, [ebp - 0xc]
call fcn.00404e5c
ret

Function at 0x412330
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffc00
mov esi, edx
mov edi, eax
mov eax, esi
call fcn.00404e5c
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.00405338
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA
mov ebx, eax
cmp ebx, 0x400
jge 0x412375
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.00404f4c
jmp 0x41238e
mov edx, ebx
dec edx
mov eax, esi
call fcn.004054c4
push ebx
mov eax, dword [esi]
call fcn.00405338
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA
add esp, 0x400
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x42be8c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x5a18e0
cmp dword [edi], 0
jne 0x42bf08
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x5a18dc]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x58d6e4
mov ecx, 2
call fcn.00402f44
mov edx, 0x42be64
lea eax, [esi + 5]
call fcn.0042be84
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0042be84
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 0x42bedd
mov dword [0x5a18dc], 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