joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4161f5
Capabilities:
Delete file

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
xor ebx, ebx
mov ebp, dword [edi + 0xc]
push dword [edi + 8]
mov dword [esp + 0x18], ebp
call fcn.0055b850
push dword [edi + 0x40]
mov dword [esp + 0x20], eax
call fcn.0055b850
mov dword [esp + 0x10], eax
call fcn.0046f2a0
mov esi, eax
test esi, esi
je 0x416353
push ebx
push pe_nt_image_headers32
push 2
push ebx
push 1
push 0xc0000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x41633e
test byte [edi + 0x24], 2
mov dword [edi + 0x10], ebp
jne 0x416267
push 1
push 0x34
push esi
call fcn.004721f0
add esp, 0xc
mov eax, dword [0x74b838]
test eax, eax
je 0x41627f
push eax
push 0x2714
push esi
call fcn.004721f0
add esp, 0xc
mov eax, dword [0x74b83c]
test eax, eax
je 0x4162b0
cmp dword [0x74b840], ebx
je 0x4162b0
push eax
push 0x27bf
push esi
call fcn.004721f0
push dword [0x74b840]
push 0x27c0
push esi
call fcn.004721f0
add esp, 0x18
push dword [esp + 0x1c]
push 0x2712
push esi
call fcn.004721f0
push dword [esp + 0x1c]
push 0x2722
push esi
call fcn.004721f0
push 0x41638c
push 0x4e2b
push esi
call fcn.004721f0
push edi
push 0x2711
push esi
call fcn.004721f0
push dword [edi + 0x28]
push 0x9c
push esi
call fcn.004721f0
push dword [edi + 0x2c]
push 0x9b
push esi
call fcn.004721f0
add esp, 0x48
push 1
push 0x63
push esi
call fcn.004721f0
push esi
call fcn.0046f340
add esp, 0x10
test eax, eax
jne 0x416329
cmp dword [edi + 4], 0xfffffffb
je 0x416329
xor ebx, ebx
inc ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x41633e
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call fcn.0046f260
pop ecx
cmp ebx, 1
jne 0x416353
mov dword [edi + 4], 0xfffffffe
jmp 0x416362
xor ecx, ecx
cmp dword [edi + 4], 0xfffffffb
setne cl
add ecx, 0xfffffffc
mov dword [edi + 4], ecx
push dword [esp + 0x1c]
call fcn.0055b840
push dword [esp + 0x10]
call fcn.0055b840
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
pop ecx
ret
Function at 0x4168de
Capabilities:
Create thread
Reference http user-agent string

Disassembly:
push ebx
push edi
push dword [0x74c9b4]
xor edi, edi
call fcn.004223a5
mov ebx, eax
cmp dword [esp + 0x10], edi
je 0x4169d2
push ebp
push esi
push 0x60
push 8
push dword [0x74ad6c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [esp + 0x18]
mov esi, eax
xor ebp, ebp
inc ebp
or dword [esi + 4], 0xffffffff
mov dword [esi], ebp
call sub.MSVCRT.dll__wcsdup
mov dword [esi + 8], eax
mov dword [esp], str.Mozilla_5.0_Gecko_41.0_Firefox_41.0
call sub.MSVCRT.dll__wcsdup
pop ecx
mov ecx, dword [esp + 0x24]
mov dword [esi + 0x40], eax
mov dword [esi + 0x24], ecx
mov eax, dword [ebx]
mov dword [esi + 0x28], eax
mov eax, dword [ebx + 4]
mov ebx, dword [esp + 0x20]
mov dword [esi + 0x2c], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x50], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 0x54], ebx
mov dword [esi + 0x4c], eax
test cl, 1
je 0x4169c0
test ebx, ebx
je 0x41698a
push ebx
push edi
push dword [0x74ad6c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 0x48], eax
test eax, eax
je 0x416985
push ebx
push dword [esp + 0x20]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
cmp dword [esi + 0x48], edi
je 0x4169b7
lea eax, [esp + 0x18]
push eax
push edi
push esi
push 0x4169d9
push 0x10000
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4169af
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4169b3
mov ebp, dword [esp + 0x18]
test ebp, ebp
jne 0x4169ce
push esi
call fcn.00416428
pop ecx
jmp 0x4169d0
mov eax, dword [esp + 0x1c]
push esi
mov dword [esi + 0x48], eax
call fcn.004164b9
pop ecx
mov edi, esi
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
ret 0x18

Function at 0x416ba5
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push 0x416af4
push 0x10
push 0x2c
call fcn.00422617
push 0
push 0
push 8
mov dword [0x74b84c], eax
call fcn.00422410
cmp word [0x74b844], 0
mov dword [0x74c9bc], eax
jne 0x416c8a
push edi
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor edi, edi
inc edi
test eax, eax
jne 0x416bfd
mov word [0x74b844], di
jmp 0x416c05
xor eax, eax
mov word [0x74b844], ax
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x74b860], eax
test eax, eax
je 0x416c89
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x56c27c
push eax
call esi
push 0x56c288
push dword [0x74b860]
mov dword [0x74b850], eax
call esi
push str.getnameinfo
push dword [0x74b860]
mov dword [0x74b854], eax
call esi
push str.WSAStringToAddressA
push dword [0x74b860]
mov dword [0x74b858], eax
call esi
cmp dword [0x74b850], 0
mov dword [0x74b85c], eax
pop esi
je 0x416c89
cmp dword [0x74b854], 0
je 0x416c89
cmp dword [0x74b858], 0
je 0x416c89
test eax, eax
je 0x416c89
mov dword [0x74b848], edi
pop edi
add esp, 0x190
ret
Function at 0x41729e
Capabilities:
Get socket status
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x920
xor eax, eax
inc eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov esi, ebx
cmp dword [edi], eax
jne 0x417321
mov esi, dword [edi + 8]
mov dword [ebp - 0x120], eax
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
lea eax, [ebp - 0x120]
mov dword [ebp - 0x11c], esi
push eax
lea eax, [esi + 1]
mov dword [ebp - 0xc], ebx
push eax
mov dword [ebp - 8], ebx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x417318
je 0x41731d
lea eax, [ebp - 0x120]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x41731d
lea eax, [ebp + 8]
push eax
push 0x4004667f
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x417318
cmp dword [ebp + 8], ebx
je 0x417318
push 2
jmp 0x41731a
push 4
pop esi
jmp 0x41737b
mov esi, ebx
jmp 0x41737b
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push 0x800
lea eax, [ebp - 0x920]
push eax
push dword [edi + 0x28]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov dword [ebp + 8], eax
test eax, eax
jle 0x41737b
push 2
pop esi
push eax
push ebx
push dword [0x74ad6c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
push ecx
mov dword [edi + 0x30], ecx
lea ecx, [ebp - 0x920]
push ecx
push eax
mov dword [edi + 0x2c], eax
mov dword [edi + 0x34], eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x417386
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, ebx
cmp dword [esi], 1
jne 0x4173ac
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
jmp 0x4173e9
cmp dword [esi + 0x2c], ebx
je 0x4173e9
mov edi, dword [ebp + 0x10]
cmp edi, dword [esi + 0x30]
jle 0x4173bc
mov edi, dword [esi + 0x30]
push edi
push dword [esi + 0x34]
push dword [ebp + 0xc]
call sub.MSVCRT.dll_memcpy
sub dword [esi + 0x30], edi
add esp, 0xc
add dword [esi + 0x34], edi
cmp dword [esi + 0x30], ebx
jne 0x4173e9
push dword [esi + 0x2c]
push ebx
push dword [0x74ad6c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi + 0x2c], ebx
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x41754f
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
lea eax, [ebp - 0x40]
push 0x40
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp dword [ebp + 8], 6
jne 0x417580
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x60]
jmp 0x417602
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x4175dc
mov eax, dword [ebp + 8]
sub eax, 0
je 0x4175d4
dec eax
je 0x4175cc
dec eax
je 0x4175c4
dec eax
je 0x4175bc
dec eax
je 0x4175b4
dec eax
jne 0x4175dc
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
jmp 0x417604
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
jmp 0x417604
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
jmp 0x417604
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
jmp 0x417604
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
jmp 0x417604
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
jmp 0x417604
cmp dword [ebp + 8], 7
jne 0x417600
push 0x2c
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.PSAPI.DLL_GetProcessMemoryInfo
test eax, eax
je 0x417600
mov eax, dword [ebp - 0x68]
jmp 0x417602
xor eax, eax
xor edx, edx
mov esp, ebp
pop ebp
ret 4
Function at 0x417651
Capabilities:
Check os version

Disassembly:
sub esp, 0x350
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x114
xor ebx, ebx
mov esi, 0xc8
and dword [esp + 0x10], ebx
xor edi, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4177c7
mov eax, dword [esp + 0x24]
dec eax
je 0x4177aa
dec eax
jne 0x4177c7
lea eax, [esp + 0x128]
xor ebp, ebp
push eax
call fcn.0041760a
pop ecx
test eax, eax
je 0x417708
mov ebx, dword [esp + 0x12c]
mov edi, dword [esp + 0x130]
mov eax, dword [esp + 0x134]
cmp byte [esp + 0x242], 1
jne 0x4176cb
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x4177a6
dec ebx
je 0x4177a2
dec ebx
je 0x417781
dec ebx
je 0x41773b
sub ebx, 4
jne 0x4177c7
test edi, edi
jne 0x4177c7
cmp eax, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x4177c7
lea eax, [esp + 0x244]
mov dword [esp + 0x244], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, dword [esp + 0x10]
je 0x4176cb
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x35e], 1
jmp 0x4176c6
sub edi, 0
je 0x417773
dec edi
je 0x417765
dec edi
je 0x417757
dec edi
jne 0x4177c7
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x4177c7
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x4177c7
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x4177c7
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x4177c7
sub edi, 0
je 0x41779e
dec edi
je 0x41779a
dec edi
jne 0x4177c7
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x4177c7
push 0x3c
jmp 0x4177c6
push 0x32
jmp 0x4177c6
push 0x14
jmp 0x4177c6
push 5
jmp 0x4177c6
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4177c4
cmp eax, 0xa
je 0x4177c0
cmp eax, 0x5a
jne 0x4177c7
push 0x28
jmp 0x4177c6
push 0x1e
jmp 0x4177c6
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret

Function at 0x417850
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 0x14], 0
jne 0x41788c
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4

Function at 0x417e00
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0
test esi, esi
je 0x417e65
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x417e5d
push dword [esp + 0x10]
push dword [0x74c9c0]
call fcn.00422544
test eax, eax
je 0x417e53
cmp dword [eax + 4], 0
je 0x417e42
push edi
push esi
push eax
call fcn.004183f0
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea ecx, [esp + 0xc]
push ecx
push edi
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
pop edi
xor eax, eax
pop esi
pop ecx
ret 0xc
xor eax, eax
pop esi
pop ecx
ret 0xc
Function at 0x418040
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov dword [esp], 0
test edx, edx
je 0x418148
cmp word [edx], 0
je 0x418148
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
test ecx, ecx
jne 0x41806e
mov ecx, dword [esi + 0x18]
push edi
cmp ecx, 0x19
jne 0x4180cd
cmp dword [esi + 4], 0
mov ecx, edx
lea edi, [ecx + 2]
je 0x4180a0
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418080
sub ecx, edi
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edx
push esi
call fcn.004183f0
pop edi
pop esi
pop ecx
ret 0xc
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4180a0
sub ecx, edi
lea eax, [esp + 8]
push 0
sar ecx, 1
push eax
lea eax, [ecx + ecx]
push eax
push edx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
xor eax, eax
cmp ecx, 2
lea ecx, [esp + 0x14]
setne al
push ecx
dec eax
and eax, 0xfde9
push edx
push eax
call fcn.004189b0
mov edi, eax
test edi, edi
je 0x4180c3
cmp dword [esi + 4], 0
je 0x41811b
push dword [esp + 0x14]
push edi
push esi
call fcn.004183f0
push edi
push 0
push dword [0x74ad6c]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x1c]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
push 0
push dword [0x74ad6c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
xor eax, eax
pop ecx
ret 0xc
Function at 0x4182d0
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
cmp dword [esi + 0x14], 0
jne 0x4182f1
push esi
call fcn.00417850
mov dword [esi + 0x14], 1
mov dword [esi + 0xc], 0
mov ebx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
mov eax, dword [esi + 0x10]
cmp ebx, edi
jl 0x418365
add eax, dword [esi + 4]
mov ecx, edi
sub eax, ebx
dec ecx
je 0x418352
dec ecx
je 0x41833d
sub ecx, 2
je 0x41832a
push edi
push eax
push dword [esp + 0x1c]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [eax]
mov eax, dword [esp + 0x14]
mov dword [eax], ecx
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov cx, word [eax]
mov eax, dword [esp + 0x14]
mov word [eax], cx
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [esp + 0x14]
mov dl, byte [eax]
mov eax, edi
mov byte [ecx], dl
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
push ebp
mov ebp, dword [esp + 0x18]
sub eax, ebx
add eax, dword [esi + 4]
push ebx
push eax
push ebp
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 8]
add esp, 0xc
sub edi, ebx
add ebp, ebx
push 0
cmp edi, eax
jl 0x4183aa
lea eax, [esp + 0x18]
push eax
push edi
push ebp
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
pop ebp
pop edi
mov dword [esi + 0xc], 0
add eax, ebx
pop esi
pop ebx
ret 0xc
lea ecx, [esp + 0x18]
push ecx
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
cmp edi, eax
jle 0x4183cb
mov edi, eax
push edi
push dword [esi + 4]
push ebp
call sub.MSVCRT.dll_memcpy
sub dword [esi + 0xc], edi
lea eax, [ebx + edi]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x4183f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
mov dword [esp + 4], 0
cmp dword [esi + 0x1c], 0
jne 0x4184f7
cmp dword [esi + 0x14], 1
jne 0x41843b
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0xc]
push 1
neg eax
cdq
push ecx
push eax
push dword [esi]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
push edi
mov edi, dword [esp + 0x20]
cmp eax, edi
jle 0x4184b8
mov ecx, dword [esi + 8]
add ecx, dword [esi + 4]
sub ecx, eax
mov eax, edi
dec eax
je 0x4184a3
dec eax
je 0x41848c
sub eax, 2
je 0x418477
push edi
push dword [esp + 0x20]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov ax, word [eax]
mov word [ecx], ax
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov al, byte [eax]
mov byte [ecx], al
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
push esi
call fcn.00417850
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x4184e5
push 0
lea eax, [esp + 0xc]
push eax
push edi
push dword [esp + 0x28]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0xc
ret 0xc
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 0xc]
push edi
push dword [esp + 0x20]
add ecx, eax
jmp 0x418461
xor eax, eax
pop esi
add esp, 0xc
ret 0xc
Function at 0x418500
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push 0x1000
push 0
push dword [0x74ad6c]
mov dword [esp + 0x14], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x418684
mov cl, byte [esp + 3]
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x28]
push esi
push edi
mov esi, edx
mov edi, edi
cmp ebp, 0xffffffff
je 0x41854e
test ebp, ebp
je 0x4185f0
dec ebp
cmp dword [ebx + 4], 0
je 0x418567
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.004182d0
mov dword [esp + 0x14], eax
jmp 0x418581
push 0
lea eax, [esp + 0x18]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
mov cl, byte [esp + 0x13]
cmp eax, 1
jne 0x4185f0
test cl, cl
je 0x418595
mov byte [esi], cl
inc esi
mov cl, byte [esp + 0x13]
mov eax, dword [esp + 0x18]
mov edi, esi
mov edx, dword [esp + 0x20]
dec eax
sub edi, edx
cmp edi, eax
jle 0x4185d0
mov eax, dword [esp + 0x18]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x74ad6c]
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov cl, byte [esp + 0x13]
mov edx, eax
mov dword [esp + 0x20], edx
lea esi, [edi + edx]
test cl, cl
je 0x4185f0
cmp dword [esp + 0x2c], 0
jne 0x418540
cmp cl, 0xd
je 0x4185f7
cmp cl, 0xa
jne 0x418540
dec esi
jmp 0x418667
cmp dword [esp + 0x2c], 0
jne 0x418667
cmp cl, 0xa
jne 0x4185ff
dec esi
jmp 0x418667
cmp cl, 0xd
jne 0x418667
dec esi
cmp dword [ebx + 4], 0
je 0x41861e
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.004182d0
mov dword [esp + 0x14], eax
jmp 0x418634
push 0
lea eax, [esp + 0x18]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x13], 0xa
je 0x418667
cmp dword [ebx + 4], 0
je 0x418646
inc dword [ebx + 0xc]
jmp 0x418667
push 1
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], 0xffffffff
push eax
push 0xffffffffffffffff
push dword [ebx]
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x34]
mov ecx, esi
sub ecx, dword [esp + 0x20]
pop edi
mov dword [eax], ecx
mov eax, dword [esp + 0x1c]
mov byte [esi], 0
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
xor eax, eax
add esp, 0x14
ret 0x10
Function at 0x418690
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
push 0x1000
push 0
push dword [0x74ad6c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov dword [esp + 8], ecx
test ecx, ecx
je 0x41883d
mov ax, word [esp]
push ebx
mov ebx, dword [esp + 0x20]
push ebp
mov ebp, dword [esp + 0x2c]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x20], 0x1000
mov dword [esp + 0x1c], 0x7ff
cmp ebp, 0xffffffff
je 0x4186e4
test ebp, ebp
je 0x41879d
dec ebp
cmp dword [ebx + 4], 0
je 0x4186fd
push 2
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.004182d0
mov dword [esp + 0x14], eax
jmp 0x418717
push 0
lea eax, [esp + 0x18]
push eax
push 2
lea eax, [esp + 0x1c]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
cmp eax, 2
mov ax, word [esp + 0x10]
jne 0x41879d
test ax, ax
je 0x418731
mov word [edi], ax
add edi, 2
mov ax, word [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov esi, edi
mov edx, dword [esp + 0x1c]
sub esi, ecx
sar esi, 1
cmp esi, edx
jle 0x418778
mov eax, dword [esp + 0x20]
add edx, 0x800
add eax, 0x1000
mov dword [esp + 0x1c], edx
push eax
push ecx
push 8
push dword [0x74ad6c]
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, eax
mov ax, word [esp + 0x10]
mov dword [esp + 0x18], ecx
lea edi, [ecx + esi*2]
test ax, ax
je 0x41879d
cmp dword [esp + 0x30], 0
jne 0x4186d6
cmp ax, 0xd
je 0x4187a4
cmp ax, 0xa
jne 0x4186d6
sub edi, 2
jmp 0x41881c
cmp dword [esp + 0x30], 0
jne 0x41881c
cmp ax, 0xa
jne 0x4187af
sub edi, 2
jmp 0x41881c
cmp ax, 0xd
jne 0x41881c
sub edi, 2
cmp dword [ebx + 4], 0
je 0x4187d1
push 2
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.004182d0
mov dword [esp + 0x14], eax
jmp 0x4187e7
push 0
lea eax, [esp + 0x18]
push eax
push 2
lea eax, [esp + 0x1c]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp word [esp + 0x10], 0xa
je 0x41881c
cmp dword [ebx + 4], 0
je 0x4187fb
add dword [ebx + 0xc], 2
jmp 0x41881c
push 1
lea eax, [esp + 0x28]
mov dword [esp + 0x24], 0xfffffffe
push eax
push 0xfffffffffffffffe
push dword [ebx]
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x38]
mov ecx, edi
sub ecx, dword [esp + 0x18]
sar ecx, 1
mov dword [eax], ecx
xor eax, eax
mov word [edi], ax
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x10
xor eax, eax
add esp, 0x18
ret 0x10
Function at 0x418850
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push 0x1000
push 0
push dword [0x74ad6c]
mov dword [esp + 0x10], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0xc], edx
test edx, edx
je 0x4189a0
mov eax, dword [esp + 0x1c]
mov cl, byte [esp + 3]
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, edx
cmp edi, 0xffffffff
je 0x41889c
test edi, edi
je 0x41890d
dec edi
push esi
push ebp
call fcn.00418a20
mov dword [esp + 0x20], eax
test eax, eax
jne 0x4188af
xor cl, cl
jmp 0x4188b1
mov cl, byte [esi]
mov edx, dword [esp + 0x1c]
add esi, eax
mov eax, dword [esp + 0x14]
mov ebx, esi
sub ebx, edx
mov byte [esp + 0x13], cl
add eax, 0xfffffffb
cmp ebx, eax
jle 0x4188f4
mov eax, dword [esp + 0x14]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x74ad6c]
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov cl, byte [esp + 0x13]
mov edx, eax
mov dword [esp + 0x1c], edx
lea esi, [ebx + edx]
mov eax, dword [esp + 0x2c]
test cl, cl
je 0x41890d
test eax, eax
jne 0x418892
cmp cl, 0xd
je 0x418911
cmp cl, 0xa
jne 0x418892
dec esi
jmp 0x418983
test eax, eax
jne 0x418983
cmp cl, 0xa
jne 0x418919
dec esi
jmp 0x418983
cmp cl, 0xd
jne 0x418983
dec esi
cmp dword [ebp + 4], 0
je 0x418938
push 1
lea eax, [esp + 0x17]
push eax
push ebp
call fcn.004182d0
mov dword [esp + 0x20], eax
jmp 0x41894f
push 0
lea eax, [esp + 0x24]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x13], 0xa
je 0x418983
cmp dword [ebp + 4], 0
je 0x418961
inc dword [ebp + 0xc]
jmp 0x418983
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0xffffffff
push eax
push 0xffffffffffffffff
push dword [ebp]
mov dword [esp + 0x28], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x34]
mov ecx, esi
sub ecx, dword [esp + 0x1c]
pop edi
mov dword [eax], ecx
mov eax, dword [esp + 0x18]
mov byte [esi], 0
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
xor eax, eax
add esp, 0x14
ret 0x10