joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409080
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x20]
lea esi, [ebp - 0x1c]
push ebx
sub esp, 0x4c
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x14], edi
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], 0
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [ebp - 0x2c], eax
call eax
sub esp, 0x18
test eax, eax
je 0x409140
mov ebx, eax
xor edx, edx
cmp eax, 2
je 0x4091e0
test byte [0x419080], 2
jne 0x409100
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], edx
call sym._wine_dbgstr_wn.constprop.0_2
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str.Error__ld_while_reading_value__s_n
mov dword [esp + 8], str.load_reg_multisz
mov dword [esp + 4], 0x419080
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_2
mov edx, dword [ebp - 0x2c]
jmp 0x4090e4
mov eax, dword [ebp - 0x1c]
cmp eax, 7
je 0x409170
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x409154
cmp eax, 1
je 0x409170
mov ebx, 0x70c
xor edx, edx
test byte [0x419080], 2
je 0x4090e4
jmp 0x409100
mov eax, dword [ebp - 0x20]
add eax, 4
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [esp + 0x14], edi
mov dword [ebp - 0x30], eax
mov dword [esp + 0x10], eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], esi
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], 0
mov dword [esp], eax
mov eax, dword [ebp - 0x2c]
call eax
mov edx, dword [ebp - 0x30]
sub esp, 0x18
test eax, eax
mov ebx, eax
jne 0x4090db
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x34]
xor esi, esi
xor edx, edx
and eax, 0xfffffffe
mov word [ecx + eax], dx
mov word [ecx + eax + 2], si
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 2
xor ebx, ebx
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_calloc]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x409210
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
lea edx, [ebp - 0x10]
sub esp, 0x30
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x10], 4
mov dword [eax], 0
mov dword [esp + 0x10], eax
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], edx
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
mov ebx, eax
test eax, eax
je 0x4092b8
cmp eax, 2
je 0x4092e0
test byte [0x419080], 2
jne 0x409278
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
mov eax, esi
call sym._wine_dbgstr_wn.constprop.0_2
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str.Error__ld_while_reading_value__s_n
mov dword [esp + 8], str.load_reg_dword
mov dword [esp + 4], 0x419080
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_2
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
mov eax, dword [ebp - 0xc]
sub eax, 3
cmp eax, 1
ja 0x4092c9
cmp dword [ebp - 0x10], 4
je 0x40926c
mov ebx, 0x70c
test byte [0x419080], 2
je 0x40926c
jmp 0x409278
lea esp, [ebp - 8]
xor ebx, ebx
mov eax, ebx
pop ebx
pop esi
pop ebp
ret

Function at 0x416010
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x41606b
cmp byte [esi + ebx - 1], 0xa
je 0x41603f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4211a4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x416d40
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_narrow_argv
call sym.__initialize_narrow_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___argv
mov edi, dword [eax]
call sym.__get_initial_narrow_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._main
mov dword [esp], eax
call sym._exit
nop
nop
Function at 0x40a821
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
xor eax, eax
push eax
push dword [esp + 0xc]
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, ebx
je 0x40a83d
mov dword [esp], 1
jmp 0x40a84d
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x40a95f
mov ebx, dword [esp + 0x10]
cmp ebx, 1
je 0x40a87f
push 0x10
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, ebx
je 0x40a86f
mov dword [esp], 1
jmp 0x40a87f
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x40a95f
mov ebx, dword [esp + 0x14]
cmp ebx, 1
je 0x40a8b1
push 0x11
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, ebx
je 0x40a8a1
mov dword [esp], 1
jmp 0x40a8b1
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x40a95f
mov ebx, dword [esp + 0x18]
cmp ebx, 1
je 0x40a8e0
push 0x12
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, ebx
je 0x40a8d3
mov dword [esp], 1
jmp 0x40a8e0
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x40a95f
mov ebx, dword [esp + 0x10]
cmp ebx, 1
jne 0x40a906
push 0x10
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, ebx
je 0x40a906
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x40a95f
mov ebx, dword [esp + 0x14]
cmp ebx, 1
jne 0x40a92c
push 0x11
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, ebx
je 0x40a92c
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x40a95f
mov ebx, dword [esp + 0x18]
cmp ebx, 1
jne 0x40a952
push 0x12
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, ebx
je 0x40a952
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x40a95f
xor edx, edx
mov eax, 1
jmp 0x40a95f
add esp, 4
pop ebx
ret 0x10

Function at 0x40db0c
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
push edi
push pe_nt_image_headers32
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x40dbf0
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test byte [ebp + 0x10], 1
mov ebx, eax
je 0x40dba6
push edi
push edi
push edi
push dword [ebp + 0xc]
call fcn.0040e655
mov ebx, eax
cmp ebx, edi
je 0x40dbe5
push dword [ebp + 8]
push dword [0x49ca48]
call fcn.00415283
mov esi, eax
mov eax, 0x10000
push eax
push ebx
mov dword [esi + 0x18], eax
call fcn.0040e5f8
push eax
push ebx
call fcn.0040e5de
push eax
call fcn.0040e239
cmp eax, edi
mov dword [esi], eax
je 0x40db9e
mov dword [esi + 0x14], ebx
mov dword [ebp - 4], esi
jmp 0x40dbe5
push ebx
call fcn.0040e605
jmp 0x40dbe5
push ebx
push edi
push dword [0x49c21c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, edi
je 0x40dbe5
push edi
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
push esi
push dword [ebp + 8]
call fcn.0040e223
push esi
push edi
push dword [0x49c21c]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
mov eax, dword [ebp - 4]
pop edi
leave
ret 0xc
Function at 0x40dd2d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
xor ebx, ebx
push dword [0x49ca48]
mov dword [ebp - 8], ebx
xor edi, edi
call fcn.0041531a
mov esi, eax
cmp esi, ebx
je 0x40dea8
mov eax, dword [esi]
mov dword [ebp - 4], eax
cmp dword [esi + 0x14], ebx
je 0x40dddd
push dword [ebp + 8]
call fcn.0040e356
jmp 0x40dd70
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esi + 0x1d], bl
jne 0x40dd68
push dword [esi + 0x14]
call fcn.0040e62e
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x20], eax
push ebx
mov eax, esi
mov byte [esi + 0x1c], 1
call fcn.0040dc0a
pop ecx
lea eax, [ebp + 0xc]
push eax
push ebx
push esi
push 0x40dc7f
push 0x2000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x40ddb2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x10], 0xffffffff
je 0x40ddc3
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0040e3ec
mov eax, dword [esi]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x34]
mov esi, dword [esi]
mov eax, dword [esi]
push 1
push ebx
push ebx
push esi
call dword [eax + 0x30]
jmp 0x40dea8
test byte [ebp + 0xc], 1
je 0x40dde6
xor edi, edi
inc edi
test byte [ebp + 0xc], 2
je 0x40de70
push esi
call fcn.0040dec2
lea eax, [esi + 4]
push 0xc
push eax
call fcn.00415920
pop ecx
pop ecx
lea edx, [ebp - 4]
push edx
push dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [0x49ca5c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
jne 0x40dea8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
push dword [esi + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 4]
push dword [esi + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x40]
cmp dword [ebp + 0x10], 0xffffffff
je 0x40de56
push dword [ebp - 8]
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0040e386
jmp 0x40de62
mov eax, dword [ebp - 4]
push dword [esi + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x3c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push edi
push ebx
push ebx
push eax
call dword [ecx + 0x30]
jmp 0x40dea8
mov ecx, dword [eax]
push eax
call dword [ecx + 0x48]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x34]
cmp dword [ebp + 0x10], 0xffffffff
je 0x40de91
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0040e3ec
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push edi
push ebx
push ebx
push eax
call dword [ecx + 0x30]
test eax, eax
jne 0x40dea8
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40e7ce
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
je 0x40e7e6
push dword [esp + 4]
push 0x40e767
call dword [sym.imp.USER32.DLL_EnumWindows]
jmp 0x40e823
push esi
mov esi, dword [0x49ca88]
test esi, esi
je 0x40e822
push ebx
push edi
mov ebx, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x40e81a
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
push edi
push 0x49ca88
call fcn.0041594d
pop ecx
pop ecx
test ebx, ebx
mov esi, ebx
jne 0x40e7f3
pop edi
pop ebx
pop esi
ret 4
Function at 0x40eec1
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x49ca98], 0
jne 0x40eed3
call fcn.0040ee12
push esi
push edi
push dword [0x49ca94]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call edi
mov esi, eax
test esi, esi
jne 0x40eef8
call fcn.0040ee12
push dword [0x49ca94]
call edi
mov esi, eax
mov eax, dword [ebp + 8]
push 0x11
lea ecx, [esi + 8]
pop edx
mov edi, eax
imul edi, edi, 0x53a9b4fb
xor eax, eax
inc eax
sub eax, edi
mov dword [ecx + 0x44], eax
imul eax, eax, 0x53a9b4fb
xor edi, edi
inc edi
sub edi, eax
mov eax, edi
mov dword [ecx], eax
add ecx, 4
dec edx
jne 0x40ef01
and dword [esi], edx
push 0x1f
mov dword [esi + 4], 0xa
pop edi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
mov eax, esi
call fcn.0040edc9
dec edi
pop ecx
pop ecx
jne 0x40ef32
pop edi
pop esi
leave
ret 4

Function at 0x410d73
Capabilities:
Get graphical window text

Disassembly:
push edi
push dword [esp + 8]
push dword [0x49d178]
call fcn.0041531a
mov edi, eax
test edi, edi
je 0x410dd5
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x410d9c
push dword [esp + 0xc]
push edi
call eax
jmp 0x410dd5
push ebx
push esi
push dword [edi]
call dword [sym.imp.USER32.DLL_GetWindowTextLengthA]
push dword [esp + 0x14]
mov esi, eax
push esi
call fcn.00415e70
mov ebx, eax
lea eax, [esi + 1]
push eax
push ebx
mov byte [ebx], 0
push dword [edi]
call dword [sym.imp.USER32.DLL_GetWindowTextA]
push ebx
call sub.MSVCRT.dll_strlen
pop ecx
sub esi, eax
push esi
call fcn.00415fc0
pop esi
pop ebx
pop edi
ret 8
Function at 0x4128ae
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
call dword [sym.imp.USER32.DLL_GetFocus]
test eax, eax
mov edi, dword [sym.imp.USER32.DLL_GetPropA]
mov dword [ebp - 4], eax
je 0x412939
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
push 9
call esi
test al, al
jns 0x41292b
push 0x11
call esi
test al, al
js 0x41292b
push 0x10
call esi
test al, al
js 0x41292b
push 0x12
call esi
test al, al
js 0x41292b
push 5
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.DLL_GetClassNameA]
push 4
lea eax, [ebp - 0xc]
push str.Rich
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x41292b
push eax
push eax
push 0x44e
push dword [ebp - 4]
call dword [sym.imp.USER32.DLL_SendMessageA]
test ax, 0x800
je 0x412959
push str.PB_Hotkey
push dword [ebp - 4]
call edi
test eax, eax
jne 0x412959
push str.PB_WindowID
push dword [ebp + 8]
call edi
test eax, eax
je 0x412959
dec eax
push eax
push dword [0x49d180]
call fcn.0041531a
mov eax, dword [eax + 8]
jmp 0x41295b
xor eax, eax
pop edi
pop esi
leave
ret 4

Function at 0x412cfb
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x248
push esi
or esi, 0xffffffff
test eax, eax
push edi
mov edi, esi
je 0x412e0c
cmp byte [eax], 0
je 0x412e0c
push 0x104
push eax
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strncpy
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 4], 0
call sub.MSVCRT.dll_strlen
add esp, 0x10
cmp eax, 2
lea ecx, [ebp + eax - 0x109]
je 0x412d55
cmp eax, 3
jne 0x412d92
cmp byte [ebp - 0x107], 0x3a
jne 0x412d92
cmp eax, 2
jne 0x412d76
lea eax, [ebp - 0x108]
push 0x4492a8
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
jbe 0x412e0c
jmp 0x412e06
mov byte [ecx], 0
dec ecx
cmp byte [ecx], 0x5c
je 0x412d8e
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x412dde
test byte [ebp - 0x248], 0x10
je 0x412dc1
push 0xfffffffffffffffe
pop edi
or esi, 0xffffffff
jmp 0x412dd5
mov ecx, dword [ebp - 0x228]
mov esi, dword [ebp - 0x22c]
xor edi, edi
xor edx, edx
or edi, ecx
or esi, edx
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x412e0c
cmp byte [ebp - 0x108], 0x5c
jne 0x412e0c
cmp byte [ebp - 0x107], 0x5c
jne 0x412e0c
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x412e0c
test al, 0x10
je 0x412e0c
push 0xfffffffffffffffe
or esi, 0xffffffff
pop edi
mov eax, edi
pop edi
mov edx, esi
pop esi
leave
ret 4
Function at 0x412e20
Capabilities:
Write file on windows

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

Function at 0x413070
Capabilities:
Write file on windows

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0x10]
xor eax, eax
test edi, edi
mov dword [esp + 4], eax
je 0x4130c9
push esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x4130c8
mov eax, dword [esp + 0x10]
mov ecx, dword [0x49d198]
push eax
push ecx
call fcn.0041531a
test eax, eax
je 0x4130c4
cmp dword [eax + 4], 0
je 0x4130b2
push esi
push edi
push eax
call fcn.00413430
pop esi
pop edi
pop ecx
ret 0xc
mov eax, dword [eax]
push 0
lea edx, [esp + 0xc]
push edx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop esi
pop edi
pop ecx
ret 0xc

Function at 0x4130d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x14]
push ebx
push ebp
push edi
push eax
push 0x1000
mov dword [esp + 0x1c], 0x1000
call fcn.00415e70
mov ecx, dword [esp + 0x1c]
mov edx, dword [0x49d198]
push ecx
mov edi, eax
push edx
mov ebp, edi
call fcn.0041531a
mov ebx, eax
test ebx, ebx
je 0x4131ee
push esi
lea ecx, [ecx]
mov byte [esp + 0x13], 0
cmp dword [ebx + 4], 0
je 0x41312e
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.00413530
mov dword [esp + 0x14], eax
jmp 0x413145
mov eax, dword [ebx]
push 0
lea ecx, [esp + 0x18]
push ecx
push 1
lea edx, [esp + 0x1f]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov al, byte [esp + 0x13]
test al, al
je 0x413157
mov byte [ebp], al
mov al, byte [esp + 0x13]
add ebp, 1
mov ecx, dword [esp + 0x18]
mov esi, ebp
sub esi, edi
cmp esi, ecx
jl 0x413181
mov edx, dword [esp + 0x24]
add ecx, 0x1000
push edx
push ecx
mov dword [esp + 0x20], ecx
call fcn.00415e70
mov edi, eax
mov al, byte [esp + 0x13]
lea ebp, [esi + edi]
test al, al
je 0x4131ed
cmp dword [esp + 0x14], 0
je 0x413198
cmp al, 0xd
je 0x413198
cmp al, 0xa
jne 0x413110
sub ebp, 1
cmp al, 0xd
jne 0x4131ed
cmp dword [ebx + 4], 0
je 0x4131b4
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.00413530
jmp 0x4131cb
mov eax, dword [ebx]
push 0
lea ecx, [esp + 0x18]
push ecx
push 1
lea edx, [esp + 0x1f]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x13], 0xa
je 0x4131ed
cmp dword [ebx + 4], 0
je 0x4131de
add dword [ebx + 0xc], 1
jmp 0x4131ed
mov ecx, dword [ebx]
push 1
push 0
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop esi
sub edi, ebp
add edi, dword [esp + 0x14]
mov byte [ebp], 0
push edi
call fcn.00415fc0
pop edi
pop ebp
pop ebx
add esp, 0xc
ret 8
Function at 0x413210
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
mov ecx, dword [0x49d198]
push esi
push eax
push ecx
mov dword [esp + 0xc], 0
call fcn.0041531a
mov esi, eax
test esi, esi
je 0x413294
cmp dword [esi + 4], 0
je 0x413263
push 1
lea edx, [esp + 8]
push edx
push esi
call fcn.00413530
test eax, eax
je 0x413257
add dword [esi + 0xc], 1
xor eax, eax
pop esi
add esp, 8
ret 4
mov eax, 1
pop esi
add esp, 8
ret 4
mov edx, dword [esi]
push 0
lea eax, [esp + 0xc]
push eax
push 1
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41329f
cmp dword [esp + 8], 0
je 0x41329f
mov eax, dword [esi]
push 1
push 0
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 4]
pop esi
add esp, 8
ret 4
or eax, 0xffffffff
pop esi
add esp, 8
ret 4

Function at 0x413310
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov ecx, dword [0x49d198]
push eax
push ecx
mov byte [esp + 0xb], 0
call fcn.0041531a
test eax, eax
je 0x41335a
cmp dword [eax + 4], 0
lea edx, [esp + 3]
je 0x413347
push 1
push edx
push eax
call fcn.00413530
movzx eax, byte [esp + 3]
pop ecx
ret 4
mov eax, dword [eax]
push 0
lea ecx, [esp + 0xc]
push ecx
push 1
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
movzx eax, byte [esp + 3]
pop ecx
ret 4

Function at 0x413370
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov ecx, dword [0x49d198]
push eax
push ecx
mov dword [esp + 8], 0
call fcn.0041531a
test eax, eax
je 0x4133ba
cmp dword [eax + 4], 0
lea edx, [esp]
je 0x4133a7
push 4
push edx
push eax
call fcn.00413530
mov eax, dword [esp]
pop ecx
ret 4
mov eax, dword [eax]
push 0
lea ecx, [esp + 0xc]
push ecx
push 4
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp]
pop ecx
ret 4

Function at 0x4133d0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov ecx, dword [0x49d198]
push eax
push ecx
mov byte [esp + 0xb], 0
call fcn.0041531a
test eax, eax
je 0x41341a
cmp dword [eax + 4], 0
lea edx, [esp + 3]
je 0x413407
push 1
push edx
push eax
call fcn.00413530
movsx eax, byte [esp + 3]
pop ecx
ret 4
mov eax, dword [eax]
push 0
lea ecx, [esp + 0xc]
push ecx
push 1
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
movsx eax, byte [esp + 3]
pop ecx
ret 4
Function at 0x413430
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
cmp dword [esi + 0x14], 1
push edi
mov dword [esp + 8], 0
jne 0x413465
mov eax, dword [esi + 0xc]
mov ecx, dword [esi]
push 1
push 0
neg eax
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], edx
mov ecx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
cmp ecx, edi
jle 0x4134de
mov eax, dword [esi + 8]
add eax, dword [esi + 4]
sub eax, ecx
mov ecx, edi
sub ecx, 1
je 0x4134cb
sub ecx, 1
je 0x4134b6
sub ecx, 2
je 0x4134a3
mov ecx, dword [esp + 0x14]
push edi
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov ecx, dword [edx]
mov dword [eax], ecx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov cx, word [edx]
mov word [eax], cx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov cl, byte [edx]
mov byte [eax], cl
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
push esi
call fcn.00412e20
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x41350b
mov eax, dword [esp + 0x14]
mov ecx, dword [esi]
push 0
lea edx, [esp + 0xc]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x14]
push edi
push edx
add ecx, eax
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc