joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405c74
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
lea ebx, [ebp - 0x244]
sub esp, 0x254
mov dword [esp + 4], 0x104
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push edx
push edx
lea edx, [eax - 1]
cmp edx, 0x103
ja 0x405cb2
xor edx, edx
cmp word [ebp + eax*2 - 0x246], 0x5c
sete dl
jmp 0x405cb9
xor eax, eax
mov edx, 1
mov ecx, dword [ebp + 8]
add edx, edx
add eax, eax
mov dword [esp + 4], str._s_S.dll
add edx, 0x40d3a0
add eax, ebx
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 0xc], ecx
call dword [sym.imp.USER32.dll_wsprintfW]
mov dword [esp], ebx
mov dword [esp + 8], 8
mov dword [esp + 4], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, dword [ebp - 4]
sub esp, 0xc
leave
ret 4
Function at 0x406760
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov dword [0x448bc0], 0x55004e
mov esi, dword [ebp + 0xc]
mov dword [0x448bc4], 0x4c
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test esi, esi
jne 0x4067b9
mov dword [esp + 8], 0x400
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x4483c0
mov dword [esp], eax
call ebx
sub esp, 0xc
test eax, eax
je 0x4069ad
cmp eax, 0x400
jle 0x40680a
jmp 0x4069ad
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], esi
call fcn.00409ea8
sub esp, 0xc
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0x448bc0
mov dword [esp], esi
call ebx
sub esp, 0xc
test eax, eax
je 0x4069ad
cmp eax, 0x400
jle 0x40678a
jmp 0x4069ad
mov dword [esp + 0xc], 0x4483c0
mov dword [esp + 8], 0x448bc0
mov dword [esp + 4], str._ls_ls_r_n
mov dword [esp], 0x447fc0
call dword [sym.imp.USER32.dll_wsprintfA]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x44ea60]
mov eax, dword [eax + 0x128]
mov dword [esp], 0x4483c0
mov dword [esp + 4], eax
call fcn.00404ea8
push esi
push esi
mov dword [esp + 8], 4
mov dword [esp + 4], 0xc0000000
mov dword [esp], 0x4483c0
call fcn.00409ea8
sub esp, 0xc
cmp eax, 0xffffffff
mov edi, eax
je 0x4069ad
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ecx
mov esi, eax
mov eax, dword [ebp - 0x1c]
push ecx
mov dword [esp], 0x40
add eax, esi
mov dword [ebp - 0x24], eax
add eax, 0xa
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push ebx
test eax, eax
push ebx
mov ebx, eax
je 0x4069a3
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.00409f00
sub esp, 0xc
test eax, eax
je 0x4069a3
mov dword [esp + 4], str._Rename__r_n
mov dword [esp], ebx
call fcn.0040a1a8
push edx
test eax, eax
push edx
lea edx, [ebx + esi]
jne 0x406904
mov dword [esp + 4], str._Rename__r_n
add esi, 0xa
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, esi
push eax
push eax
jmp 0x406943
mov dword [esp + 4], 0x40d3cb
add eax, 0xa
mov dword [esp], eax
mov dword [ebp - 0x28], edx
call fcn.0040a1a8
push ecx
test eax, eax
push ecx
mov ecx, esi
mov dword [ebp - 0x20], eax
je 0x406943
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
add ecx, ebx
cmp dword [ebp - 0x20], edx
jae 0x40693b
mov al, byte [edx]
dec edx
dec ecx
mov byte [ecx + 1], al
jmp 0x40692d
mov eax, dword [ebp - 0x20]
sub eax, ebx
lea ecx, [eax + 1]
mov dword [esp + 4], 0x447fc0
mov eax, dword [ebp - 0x1c]
add ecx, ebx
mov dword [esp], ecx
mov dword [esp + 8], eax
call fcn.00409acc
add esi, dword [ebp - 0x1c]
sub esp, 0xc
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub esp, 0x10
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], edi
call fcn.0040a010
sub esp, 0xc
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edx
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40808c
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [esp], ebx
call fcn.0040a30c
push ecx
cmp eax, 0xffffffff
jne 0x4080ad
xor edi, edi
jmp 0x4080ea
mov dword [esp], ebx
test edi, 1
mov esi, eax
je 0x4080e2
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
push edx
jne 0x4080db
and edi, 4
jne 0x4080a9
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push eax
push eax
jmp 0x4080ea
mov edi, 1
jmp 0x4080ea
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4080c0
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret 8

Function at 0x40815c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
cmp dword [ebp + 8], 0
mov eax, dword [0x42c080]
je 0x408187
test eax, eax
je 0x40817b
mov dword [esp], eax
call dword [sym.imp.USER32.dll_DestroyWindow]
push ecx
mov dword [0x42c080], 0
jmp 0x4081f1
test eax, eax
je 0x40819a
mov dword [esp], 0
call fcn.00405d04
push edx
jmp 0x4081f1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x44eac0]
jbe 0x4081f1
mov dword [esp + 0x10], 0
mov eax, dword [0x44eaec]
mov dword [esp + 0xc], 0x40ad18
mov dword [esp + 8], 0
mov dword [esp + 4], 0x6f
mov dword [esp], eax
call dword [sym.imp.USER32.dll_CreateDialogParamW]
mov dword [0x42c080], eax
sub esp, 0x14
mov dword [esp + 4], 5
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push eax
push eax
leave
ret

Function at 0x409540
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov dword [esp], 0x4493c0
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
call fcn.0040a178
push ebx
push ebx
mov dword [esp], 0x4493c0
call fcn.0040a458
push edx
test eax, eax
jne 0x409571
xor eax, eax
jmp 0x4095eb
mov dword [esp], eax
mov ebx, eax
call fcn.0040ac08
test byte [0x44eac4], 0x80
push ecx
je 0x409591
movzx eax, word [ebx]
test eax, eax
je 0x40956d
cmp eax, 0x5c
je 0x40956d
sub ebx, 0x4493c0
sar ebx, 1
mov dword [esp], 0x4493c0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ecx
cmp ebx, eax
mov dword [esp], 0x4493c0
jge 0x4095d0
call fcn.004080f8
push edx
test eax, eax
je 0x4095c1
test byte [eax], 0x10
je 0x40956d
mov dword [esp], 0x4493c0
call fcn.0040a5a0
push eax
jmp 0x409599
call fcn.00408004
push eax
mov dword [esp], 0x4493c0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edx
inc eax
setne al
movzx eax, al
mov ebx, dword [ebp - 4]
leave
ret 4
Function at 0x409aec
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [esp + 0x20], 0x44d3c0
lea eax, [ebp - 0x18]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x4000000
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0
mov dword [0x44d3c0], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edx, eax
sub esp, 0x28
xor eax, eax
test edx, edx
je 0x409b6a
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
mov eax, dword [ebp - 0x18]
leave
ret 4
Function at 0x409ea8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edx
cmp eax, 0xffffffff
jne 0x409ec3
xor eax, eax
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, dword [ebp - 4]
sub esp, 0x1c
leave
ret 0xc

Function at 0x409f00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 0xc]
sub esp, 0x34
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], 0
mov ebx, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0x14
test eax, eax
je 0x409f3f
xor eax, eax
cmp dword [ebp - 0xc], ebx
sete al
mov ebx, dword [ebp - 4]
leave
ret 0xc

Function at 0x409f48
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x30
mov dword [ebp - 0x10], 0x2000
mov eax, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x14]
test eax, eax
je 0x409f66
mov eax, 0x100
lea edx, [ebp - 0x14]
or eax, 0x20019
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0040664c
sub esp, 0x10
test eax, eax
je 0x409f96
mov word [ebx], 0
jmp 0x409feb
mov dword [esp + 0x10], ebx
lea eax, [ebp - 0x10]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [ebp - 0x14]
sub esp, 0x18
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
push eax
mov word [ebx + 0x1ffe], 0
jne 0x409f8f
mov eax, dword [ebp - 0xc]
dec eax
cmp eax, 1
ja 0x409f8f
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 0x14

Function at 0x409ff4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x3c
mov dword [eax + 0x24], 0
pop ebp
jmp dword [sym.imp.SHELL32.dll_ShellExecuteExW]

Function at 0x40a010
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 0xc]
sub esp, 0x34
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], 0
mov ebx, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esp, 0x14
test eax, eax
je 0x40a04f
xor eax, eax
cmp dword [ebp - 0xc], ebx
sete al
mov ebx, dword [ebp - 4]
leave
ret 0xc
Function at 0x40a08c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, 0x65
push ebx
sub esp, 0x20
mov ebx, dword [ebp + 8]
dec esi
je 0x40a0e8
mov dword [ebp - 0x10], 0x73006e
mov dword [ebp - 0xc], 0x61
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x1a
xor edx, edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
div ecx
lea eax, [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
add word [ebp - 0xc], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
sub esp, 0x10
test eax, eax
je 0x40a09c
jmp 0x40a0ef
mov word [ebx], 0
xor ebx, ebx
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 8

Function at 0x40a30c
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edx
mov ebx, eax
inc eax
je 0x40a33a
mov dword [esp], esi
mov eax, ebx
and eax, 0xfffffffe
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push eax
push eax
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 4
Function at 0x403e90
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 0x403ecc
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 0x403ee0
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp edi, 0xffffffff
jne 0x403ef9
push dword [0x43eb18]
call fcn.004096e3
pop edi
ret 4
push esi
push edi
push dword [0x43eb18]
call fcn.00405e65
mov esi, eax
test esi, esi
je 0x403f63
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x403f4f
cmp dword [esi + 0x14], 0
mov dword [esp + 0xc], 0
jne 0x403f3e
push 0
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push ecx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
push dword [esi + 4]
push 0
push dword [0x43e804]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push dword [0x43eb18]
call fcn.00405e8d
pop esi
pop edi
ret 4
Function at 0x40c96f
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
xor edi, edi
call dword [sym.imp.USER32.dll_GetFocus]
mov ebp, dword [esp + 0x3c]
mov ebx, eax
and dword [esp + 0x10], edi
push str.PB_WindowID
push ebp
call dword [sym.imp.USER32.dll_GetPropW]
mov esi, eax
push 9
pop eax
test esi, esi
je 0x40ca05
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x40ca02
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x40ca02
lea eax, [esi - 1]
push eax
push dword [0x43ebf8]
call fcn.00405e65
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x40ca04
mov ecx, dword [edi + 4]
add ecx, 4
pop esi
cmp word [ecx - 2], si
jne 0x40c9f2
mov edx, 0xfa01
cmp word [ecx], dx
je 0x40c9fd
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x40c9e2
jmp 0x40ca02
and dword [esp + 0x10], 0
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x40caab
push eax
call esi
test al, al
jns 0x40caab
push 0x11
call esi
test al, al
js 0x40caab
push 0x10
call esi
test al, al
js 0x40caab
push 0x12
call esi
test al, al
js 0x40caab
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x40caab
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call fcn.00418be6
add esp, 0xc
test eax, eax
je 0x40ca7f
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call fcn.00418be6
add esp, 0xc
test eax, eax
jne 0x40ca96
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x40caec
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call fcn.00416eec
pop ecx
pop ecx
test eax, eax
je 0x40caec
test ebp, ebp
je 0x40cacf
push 0x11
call esi
test al, al
js 0x40cac7
push 0x10
call esi
test al, al
js 0x40cac7
push 0x12
call esi
test al, al
jns 0x40cacf
push 1
push ebp
call fcn.0040cc10
test ebx, ebx
je 0x40cae3
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x40caec
test edi, edi
je 0x40caec
mov eax, dword [edi + 8]
jmp 0x40caee
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x40de30
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0041a5c0
mov eax, dword [0x43c410]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004180f4
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x40de72
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x40dfce
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041a510
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x43efa0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0041a091
mov ecx, dword [esi*4 + 0x43efa0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x40dfc7
cmp eax, dword [ecx + edi + 0x24]
jne 0x40dfc7
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40dfc7
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041a091
add esp, 0x14
test edx, edx
jl 0x40dfc7
jg 0x40df3d
test eax, eax
jb 0x40dfc7
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x40dfc7
jl 0x40df57
cmp dword [ebp - 0x1008], eax
ja 0x40dfc7
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x40df75
test ebx, ebx
je 0x40dfae
cmp ecx, edi
jae 0x40dfae
mov al, byte [ecx]
cmp al, 0xd
jne 0x40df8f
lea eax, [edi - 1]
cmp ecx, eax
jae 0x40df9b
cmp byte [ecx + 1], 0xa
jne 0x40df9b
inc ecx
jmp 0x40df9b
movzx eax, al
movsx eax, byte [eax + 0x43c420]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x40df75
cmp edx, ebx
jne 0x40df75
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x40dfcc
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0041826c
leave
ret

Function at 0x40e430
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x40e468
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
push dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40e463
xor eax, eax
cmp dword [esp + 0xc], esi
pop edi
sete al
pop esi
ret
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [edi + 4]
add eax, dword [edi + 8]
push esi
push dword [esp + 0x14]
push eax
call fcn.00418370
add dword [edi + 8], esi
add esp, 0xc
mov eax, 1
pop edi
pop esi
ret
Function at 0x40ee50
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push 0x1000
push 0
push dword [0x43e804]
mov dword [esp + 0x14], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x40efe0
mov cl, byte [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
mov esi, edx
mov edi, edi
cmp ebp, 0xffffffff
je 0x40ee9e
test ebp, ebp
je 0x40ef46
dec ebp
cmp dword [ebx + 4], 0
lea edi, [ebx + 4]
je 0x40eeba
push 1
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.0041b0f0
mov dword [esp + 0x10], eax
jmp 0x40eed4
push 0
lea eax, [esp + 0x14]
push eax
push 1
lea eax, [esp + 0x30]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x10]
mov cl, byte [esp + 0x24]
cmp eax, 1
jne 0x40ef49
test cl, cl
je 0x40eee8
mov byte [esi], cl
inc esi
mov cl, byte [esp + 0x24]
mov eax, dword [esp + 0x14]
mov edi, esi
mov edx, dword [esp + 0x1c]
dec eax
sub edi, edx
cmp edi, eax
jle 0x40ef23
mov eax, dword [esp + 0x14]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x43e804]
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov cl, byte [esp + 0x24]
mov edx, eax
mov dword [esp + 0x1c], edx
lea esi, [edi + edx]
test cl, cl
je 0x40ef46
cmp dword [esp + 0x28], 0
jne 0x40ee90
cmp cl, 0xd
je 0x40ef52
cmp cl, 0xa
jne 0x40ee90
dec esi
jmp 0x40efc3
lea edi, [ebx + 4]
cmp dword [esp + 0x28], 0
jne 0x40efc3
jmp 0x40ef55
lea edi, [ebx + 4]
cmp cl, 0xa
jne 0x40ef5d
dec esi
jmp 0x40efc3
cmp cl, 0xd
jne 0x40efc3
dec esi
cmp dword [edi], 0
je 0x40ef7b
push 1
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.0041b0f0
mov dword [esp + 0x10], eax
jmp 0x40ef91
push 0
lea eax, [esp + 0x14]
push eax
push 1
lea eax, [esp + 0x30]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x24], 0xa
je 0x40efc3
cmp dword [edi], 0
je 0x40efa2
inc dword [ebx + 0xc]
jmp 0x40efc3
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0xffffffff
push eax
push 0xffffffffffffffff
push dword [ebx]
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x30]
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, 0x10
ret 0x10
xor eax, eax
pop ebx
add esp, 0x10
ret 0x10
Function at 0x40eff0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x1c]
push 0x1000
push 0
push dword [0x43e804]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 8], edx
test edx, edx
je 0x40f1af
mov ax, word [esp + 0x1c]
push ebp
push esi
push edi
mov edi, edx
mov dword [esp + 0x1c], 0x1000
mov dword [esp + 0x18], 0x7ff
mov ecx, dword [esp + 0x30]
cmp ecx, 0xffffffff
je 0x40f049
test ecx, ecx
je 0x40f10c
dec ecx
mov dword [esp + 0x30], ecx
cmp dword [ebx + 4], 0
lea ebp, [ebx + 4]
je 0x40f065
push 2
lea eax, [esp + 0x2c]
push eax
push ebx
call fcn.0041b0f0
mov dword [esp + 0x10], eax
jmp 0x40f07f
push 0
lea eax, [esp + 0x14]
push eax
push 2
lea eax, [esp + 0x34]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x10]
cmp eax, 2
mov ax, word [esp + 0x28]
jne 0x40f10f
test ax, ax
je 0x40f09d
mov word [edi], ax
add edi, 2
mov ax, word [esp + 0x28]
mov edx, dword [esp + 0x14]
mov esi, edi
mov ecx, dword [esp + 0x18]
sub esi, edx
sar esi, 1
cmp esi, ecx
jle 0x40f0e4
mov eax, dword [esp + 0x1c]
add ecx, 0x800
add eax, 0x1000
mov dword [esp + 0x18], ecx
push eax
push edx
push 8
push dword [0x43e804]
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
mov ax, word [esp + 0x28]
mov dword [esp + 0x14], edx
lea edi, [edx + esi*2]
test ax, ax
je 0x40f10f
cmp dword [esp + 0x2c], 0
jne 0x40f033
cmp ax, 0xd
je 0x40f116
cmp ax, 0xa
jne 0x40f033
sub edi, 2
jmp 0x40f18e
lea ebp, [ebx + 4]
cmp dword [esp + 0x2c], 0
jne 0x40f18e
cmp ax, 0xa
jne 0x40f121
sub edi, 2
jmp 0x40f18e
cmp ax, 0xd
jne 0x40f18e
sub edi, 2
cmp dword [ebp], 0
je 0x40f143
push 2
lea eax, [esp + 0x2c]
push eax
push ebx
call fcn.0041b0f0
mov dword [esp + 0x10], eax
jmp 0x40f159
push 0
lea eax, [esp + 0x14]
push eax
push 2
lea eax, [esp + 0x34]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp word [esp + 0x28], 0xa
je 0x40f18e
cmp dword [ebp], 0
je 0x40f16d
add dword [ebx + 0xc], 2
jmp 0x40f18e
push 1
lea eax, [esp + 0x24]
mov dword [esp + 0x20], 0xfffffffe
push eax
push 0xfffffffffffffffe
push dword [ebx]
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x34]
mov ecx, edi
sub ecx, dword [esp + 0x14]
sar ecx, 1
mov dword [eax], ecx
xor eax, eax
mov word [edi], ax
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
xor eax, eax
pop ebx
add esp, 0x14
ret 0x10