joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415192
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x34
mov eax, dword [esp + 0x38]
push ebp
xor ebp, ebp
push edi
cmp dword [eax + 8], 1
mov edi, ebp
mov dword [esp + 0x10], edi
mov dword [esp + 8], ebp
jne 0x415331
push esi
mov esi, dword [esp + 0x48]
test esi, esi
je 0x415330
push ebx
push ebp
push pe_nt_image_headers32
push 3
push ebp
push 7
push closesocket
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41532f
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x200000
push ebp
push dword [0x7831a8]
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
je 0x415328
call fcn.00435170
mov edi, eax
mov dword [esp + 0x1c], edi
test edi, edi
je 0x415315
lea eax, [esp + 0x20]
push eax
push esi
call sub.MSVCRT.dll__wstat
push 0x1a4
push edi
call fcn.00435640
lea eax, [esp + 0x30]
push eax
push edi
call fcn.004357c0
mov esi, dword [esp + 0x60]
add esp, 0x18
mov eax, dword [esi + 0x20]
cmp dword [eax + 8], 1
je 0x415261
cmp dword [eax + 8], 3
je 0x415261
push dword [esp + 0x50]
push edi
call fcn.00434f10
pop ecx
pop ecx
jmp 0x41527f
push dword [esp + 0x50]
call fcn.0055baf0
mov esi, eax
push esi
push edi
call fcn.00435630
pop ecx
pop ecx
push esi
call fcn.0055bae0
mov esi, dword [esp + 0x48]
mov eax, dword [esp + 0x14]
cdq
push edx
push eax
push edi
call fcn.00435690
push 0x8000
push edi
call fcn.004354e0
push edi
push dword [esi]
call fcn.00435930
add esp, 0x1c
lea eax, [esp + 0x4c]
push 0
push eax
push 0x200000
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x4c]
test eax, eax
jle 0x4152fc
mov edi, dword [esp + 0x10]
push eax
push ebp
push dword [esi]
call fcn.004358f0
add esp, 0xc
cmp eax, dword [esp + 0x4c]
jne 0x4152f4
add edi, dword [esp + 0x4c]
lea eax, [esp + 0x4c]
push 0
push eax
push 0x200000
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x4c]
test eax, eax
jg 0x4152c2
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x10], eax
jne 0x41530e
mov dword [esp + 0x18], 1
push edi
call fcn.004350a0
pop ecx
push ebp
push 0
push dword [0x7831a8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [esp + 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
mov eax, edi
pop edi
pop ebp
add esp, 0x34
ret 0xc

Function at 0x4153eb
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
xor edi, edi
test esi, esi
je 0x41544d
cmp word [esi], di
je 0x41544d
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00436340
push dword [esp + 0x1c]
mov ebx, eax
push ebx
call dword [esp + 0x20]
push esi
push ebx
call fcn.00436550
add esp, 0x10
test eax, eax
jne 0x41544c
push 0x24
push 8
push dword [0x7831a8]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov eax, dword [esp + 0x10]
mov dword [ecx + 0x14], edi
mov edi, ecx
mov dword [ecx], ebx
mov dword [ecx + 8], 1
mov dword [ecx + 0x20], eax
mov dword [eax + 4], ecx
pop ebx
mov eax, edi
pop edi
pop esi
ret 0x10
Function at 0x415bd0
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x783c68], 0
jne 0x415bde
call fcn.00415b50
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x783c6c]
call esi
test eax, eax
jne 0x415c01
call fcn.00415b50
push dword [0x783c6c]
call esi
mov edx, dword [esp + 0x14]
lea esi, [eax + 8]
mov edi, 0x11
lea ecx, [ecx]
imul ecx, edx, 0x53a9b4fb
lea esi, [esi + 4]
mov edx, 1
sub edx, ecx
imul ecx, edx, 0x53a9b4fb
mov dword [esi + 0x40], edx
mov edx, 1
sub edx, ecx
mov dword [esi - 4], edx
dec edi
jne 0x415c10
mov dword [eax], edi
lea ebp, [edi + 0x1f]
mov dword [eax + 4], 0xa
mov ebx, dword [eax]
mov edi, dword [eax + 4]
mov edx, dword [eax + ebx*4 + 8]
mov ecx, dword [eax + ebx*4 + 0x4c]
mov esi, dword [eax + edi*4 + 8]
ror ecx, 0xd
add ecx, dword [eax + edi*4 + 0x4c]
dec edi
ror edx, 5
add edx, esi
mov dword [eax + ebx*4 + 8], ecx
mov dword [eax + ebx*4 + 0x4c], edx
dec ebx
jns 0x415c70
mov ebx, 0x10
test edi, edi
jns 0x415c79
mov edi, 0x10
mov dword [eax], ebx
mov dword [eax + 4], edi
dec ebp
jne 0x415c42
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x415c90
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x783c68], 0
jne 0x415c9e
call fcn.00415b50
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x783c6c]
call esi
mov edx, eax
test edx, edx
jne 0x415cc5
call fcn.00415b50
push dword [0x783c6c]
call esi
mov edx, eax
mov ebx, dword [edx]
mov esi, dword [edx + 4]
mov ebp, dword [esp + 0x14]
inc ebp
mov edi, dword [edx + ebx*4 + 0x4c]
mov eax, dword [edx + ebx*4 + 8]
mov ecx, dword [edx + esi*4 + 8]
ror edi, 0xd
add edi, dword [edx + esi*4 + 0x4c]
dec esi
ror eax, 5
add eax, ecx
mov dword [edx + ebx*4 + 8], edi
mov dword [edx + ebx*4 + 0x4c], eax
dec ebx
jns 0x415cf8
mov ebx, 0x10
test esi, esi
jns 0x415d01
mov esi, 0x10
mov dword [edx], ebx
mov eax, edi
mov dword [edx + 4], esi
test ebp, ebp
je 0x415d10
mul ebp
mov eax, edx
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x416338
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push dword [0x784dfc]
xor edi, edi
call fcn.004225a5
mov ebx, eax
cmp dword [ebp + 8], edi
je 0x4163ef
cmp dword [ebp + 0xc], edi
je 0x4163ef
push esi
push 0x60
push 8
push dword [0x7831a8]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [ebp + 8]
mov esi, eax
or dword [esi + 4], 0xffffffff
mov dword [esi], edi
call sub.MSVCRT.dll__wcsdup
push dword [ebp + 0xc]
mov dword [esi + 8], eax
call sub.MSVCRT.dll__wcsdup
push dword [ebp + 0x14]
mov dword [esi + 0xc], eax
call sub.MSVCRT.dll__wcsdup
mov dword [esi + 0x40], eax
add esp, 0xc
mov eax, dword [ebx]
mov dword [esi + 0x28], eax
mov eax, dword [ebx + 4]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x24], eax
test al, 1
je 0x4163de
lea eax, [ebp + 8]
push eax
push edi
push esi
push 0x41657f
push 0x10000
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4163d6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, esi
jmp 0x4163ee
push esi
call fcn.0041662a
jmp 0x4163ed
push esi
call fcn.004163f7
push esi
mov edi, eax
call fcn.0041662a
pop ecx
pop ecx
pop esi
mov eax, edi
pop edi
pop ebx
pop ebp
ret 0x10
Function at 0x4163f7
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.0055ba50
push dword [edi + 0x40]
mov dword [esp + 0x20], eax
call fcn.0055ba50
mov dword [esp + 0x10], eax
call fcn.0046f4a0
mov esi, eax
test esi, esi
je 0x416555
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 0x416540
test byte [edi + 0x24], 2
mov dword [edi + 0x10], ebp
jne 0x416469
push 1
push 0x34
push esi
call fcn.004723f0
add esp, 0xc
mov eax, dword [0x783c80]
test eax, eax
je 0x416481
push eax
push 0x2714
push esi
call fcn.004723f0
add esp, 0xc
mov eax, dword [0x783c84]
test eax, eax
je 0x4164b2
cmp dword [0x783c88], ebx
je 0x4164b2
push eax
push 0x27bf
push esi
call fcn.004723f0
push dword [0x783c88]
push 0x27c0
push esi
call fcn.004723f0
add esp, 0x18
push dword [esp + 0x1c]
push 0x2712
push esi
call fcn.004723f0
push dword [esp + 0x1c]
push 0x2722
push esi
call fcn.004723f0
push 0x41658e
push 0x4e2b
push esi
call fcn.004723f0
push edi
push 0x2711
push esi
call fcn.004723f0
push dword [edi + 0x28]
push 0x9c
push esi
call fcn.004723f0
push dword [edi + 0x2c]
push 0x9b
push esi
call fcn.004723f0
add esp, 0x48
push 1
push 0x63
push esi
call fcn.004723f0
push esi
call fcn.0046f540
add esp, 0x10
test eax, eax
jne 0x41652b
cmp dword [edi + 4], 0xfffffffb
je 0x41652b
xor ebx, ebx
inc ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x416540
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call fcn.0046f460
pop ecx
cmp ebx, 1
jne 0x416555
mov dword [edi + 4], 0xfffffffe
jmp 0x416564
xor ecx, ecx
cmp dword [edi + 4], 0xfffffffb
setne cl
add ecx, 0xfffffffc
mov dword [edi + 4], ecx
push dword [esp + 0x1c]
call fcn.0055ba40
push dword [esp + 0x10]
call fcn.0055ba40
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
pop ecx
ret
Function at 0x416ae0
Capabilities:
Create thread
Reference http user-agent string

Disassembly:
push ebx
push edi
push dword [0x784dfc]
xor edi, edi
call fcn.004225a5
mov ebx, eax
cmp dword [esp + 0x10], edi
je 0x416bd4
push ebp
push esi
push 0x60
push 8
push dword [0x7831a8]
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 0x416bc2
test ebx, ebx
je 0x416b8c
push ebx
push edi
push dword [0x7831a8]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 0x48], eax
test eax, eax
je 0x416b87
push ebx
push dword [esp + 0x20]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
cmp dword [esi + 0x48], edi
je 0x416bb9
lea eax, [esp + 0x18]
push eax
push edi
push esi
push 0x416bdb
push 0x10000
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x416bb1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x416bb5
mov ebp, dword [esp + 0x18]
test ebp, ebp
jne 0x416bd0
push esi
call fcn.0041662a
pop ecx
jmp 0x416bd2
mov eax, dword [esp + 0x1c]
push esi
mov dword [esi + 0x48], eax
call fcn.004166bb
pop ecx
mov edi, esi
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
ret 0x18

Function at 0x416da7
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push 0x416cf6
push 0x10
push 0x2c
call fcn.00422817
push 0
push 0
push 8
mov dword [0x783c94], eax
call fcn.00422610
cmp word [0x783c8c], 0
mov dword [0x784e04], eax
jne 0x416e8c
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 0x416dff
mov word [0x783c8c], di
jmp 0x416e07
xor eax, eax
mov word [0x783c8c], ax
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x783ca8], eax
test eax, eax
je 0x416e8b
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x56c27c
push eax
call esi
push 0x56c288
push dword [0x783ca8]
mov dword [0x783c98], eax
call esi
push str.getnameinfo
push dword [0x783ca8]
mov dword [0x783c9c], eax
call esi
push str.WSAStringToAddressA
push dword [0x783ca8]
mov dword [0x783ca0], eax
call esi
cmp dword [0x783c98], 0
mov dword [0x783ca4], eax
pop esi
je 0x416e8b
cmp dword [0x783c9c], 0
je 0x416e8b
cmp dword [0x783ca0], 0
je 0x416e8b
test eax, eax
je 0x416e8b
mov dword [0x783c90], edi
pop edi
add esp, 0x190
ret
Function at 0x4174a0
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 0x417523
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 0x41751a
je 0x41751f
lea eax, [ebp - 0x120]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x41751f
lea eax, [ebp + 8]
push eax
push 0x4004667f
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x41751a
cmp dword [ebp + 8], ebx
je 0x41751a
push 2
jmp 0x41751c
push 4
pop esi
jmp 0x41757d
mov esi, ebx
jmp 0x41757d
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 0x41757d
push 2
pop esi
push eax
push ebx
push dword [0x7831a8]
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 0x417588
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 0x4175ae
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 0x4175eb
cmp dword [esi + 0x2c], ebx
je 0x4175eb
mov edi, dword [ebp + 0x10]
cmp edi, dword [esi + 0x30]
jle 0x4175be
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 0x4175eb
push dword [esi + 0x2c]
push ebx
push dword [0x7831a8]
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 0x417751
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 0x417782
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x60]
jmp 0x417804
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x4177de
mov eax, dword [ebp + 8]
sub eax, 0
je 0x4177d6
dec eax
je 0x4177ce
dec eax
je 0x4177c6
dec eax
je 0x4177be
dec eax
je 0x4177b6
dec eax
jne 0x4177de
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
jmp 0x417806
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
jmp 0x417806
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
jmp 0x417806
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
jmp 0x417806
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
jmp 0x417806
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
jmp 0x417806
cmp dword [ebp + 8], 7
jne 0x417802
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 0x417802
mov eax, dword [ebp - 0x68]
jmp 0x417804
xor eax, eax
xor edx, edx
mov esp, ebp
pop ebp
ret 4
Function at 0x417853
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 0x4179c9
mov eax, dword [esp + 0x24]
dec eax
je 0x4179ac
dec eax
jne 0x4179c9
lea eax, [esp + 0x128]
xor ebp, ebp
push eax
call fcn.0041780c
pop ecx
test eax, eax
je 0x41790a
mov ebx, dword [esp + 0x12c]
mov edi, dword [esp + 0x130]
mov eax, dword [esp + 0x134]
cmp byte [esp + 0x242], 1
jne 0x4178cd
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x4179a8
dec ebx
je 0x4179a4
dec ebx
je 0x417983
dec ebx
je 0x41793d
sub ebx, 4
jne 0x4179c9
test edi, edi
jne 0x4179c9
cmp eax, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x4179c9
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 0x4178cd
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x35e], 1
jmp 0x4178c8
sub edi, 0
je 0x417975
dec edi
je 0x417967
dec edi
je 0x417959
dec edi
jne 0x4179c9
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x4179c9
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x4179c9
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x4179c9
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x4179c9
sub edi, 0
je 0x4179a0
dec edi
je 0x41799c
dec edi
jne 0x4179c9
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x4179c9
push 0x3c
jmp 0x4179c8
push 0x32
jmp 0x4179c8
push 0x14
jmp 0x4179c8
push 5
jmp 0x4179c8
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4179c6
cmp eax, 0xa
je 0x4179c2
cmp eax, 0x5a
jne 0x4179c9
push 0x28
jmp 0x4179c8
push 0x1e
jmp 0x4179c8
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret

Function at 0x417a50
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 0x417a8c
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 0x418000
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0
test esi, esi
je 0x418065
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x41805d
push dword [esp + 0x10]
push dword [0x784e08]
call fcn.00422744
test eax, eax
je 0x418053
cmp dword [eax + 4], 0
je 0x418042
push edi
push esi
push eax
call fcn.004185f0
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 0x418240
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov dword [esp], 0
test edx, edx
je 0x418348
cmp word [edx], 0
je 0x418348
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
test ecx, ecx
jne 0x41826e
mov ecx, dword [esi + 0x18]
push edi
cmp ecx, 0x19
jne 0x4182cd
cmp dword [esi + 4], 0
mov ecx, edx
lea edi, [ecx + 2]
je 0x4182a0
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418280
sub ecx, edi
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edx
push esi
call fcn.004185f0
pop edi
pop esi
pop ecx
ret 0xc
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4182a0
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.00418bb0
mov edi, eax
test edi, edi
je 0x4182c3
cmp dword [esi + 4], 0
je 0x41831b
push dword [esp + 0x14]
push edi
push esi
call fcn.004185f0
push edi
push 0
push dword [0x7831a8]
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 [0x7831a8]
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 0x4184d0
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
cmp dword [esi + 0x14], 0
jne 0x4184f1
push esi
call fcn.00417a50
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 0x418565
add eax, dword [esi + 4]
mov ecx, edi
sub eax, ebx
dec ecx
je 0x418552
dec ecx
je 0x41853d
sub ecx, 2
je 0x41852a
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 0x4185aa
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 0x4185cb
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 0x4185f0
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 0x4186f7
cmp dword [esi + 0x14], 1
jne 0x41863b
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 0x4186b8
mov ecx, dword [esi + 8]
add ecx, dword [esi + 4]
sub ecx, eax
mov eax, edi
dec eax
je 0x4186a3
dec eax
je 0x41868c
sub eax, 2
je 0x418677
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.00417a50
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x4186e5
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 0x418661
xor eax, eax
pop esi
add esp, 0xc
ret 0xc