joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43c544
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x454844]
cmp byte [eax + 0xc], 0
je 0x43c6b1
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43c6aa
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x45a790], 0
jne 0x43c598
push 0x43c6b8
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43c6c0
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45a790], eax
cmp dword [0x454224], 0
jne 0x43c693
push 0x43c6d0
call sub.kernel32.dll_LoadLibraryA
mov dword [0x454224], eax
cmp dword [0x454224], 0
je 0x43c693
push 0x43c6dc
mov eax, dword [0x454224]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45a794], eax
push 0x43c6ec
mov eax, dword [0x454224]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45a798], eax
push 0x43c700
mov eax, dword [0x454224]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45a79c], eax
push 0x43c718
mov eax, dword [0x454224]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45a7a0], eax
push 0x43c730
mov eax, dword [0x454224]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45a7a4], eax
push 0x43c744
mov eax, dword [0x454224]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45a7a8], eax
push 0x43c75c
mov eax, dword [0x454224]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45a7ac], eax
push 0x43c774
mov eax, dword [0x454224]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45a7b0], eax
push 0x43c790
mov eax, dword [0x454224]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45a7b4], eax
push 0x43c79c
mov eax, dword [0x454224]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45a7b8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43c6b1
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x44053c
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.004047b0
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x44058b
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404a20
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x447d34
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x447d84]
test si, 4
je 0x447d48
or bl, 1
test si, 8
je 0x447d52
or bl, 4
test si, 1
je 0x447d5c
or bl, 8
test si, 2
je 0x447d66
or bl, 0x10
test si, 0x10
je 0x447d70
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x447d7f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x447d88
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x447dc0]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x447da1
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x447db0
or bl, 4
test esi, 0x20000000
je 0x447dbb
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44e484
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44e496
add esp, 0xfffffff0
call fcn.00403d5c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a650
mov eax, dword [0x454518]
mov dword [eax + 4], ebx
mov dword [eax], 0x44e828
mov eax, dword [0x454524]
mov dword [eax + 4], ebx
mov dword [eax], 0x44e834
mov eax, ebx
call fcn.0044e840
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x412948]
call fcn.00403a0c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x412948]
call fcn.00403a0c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x412948]
call fcn.00403a0c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x412948]
call fcn.00403a0c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x412948]
call fcn.00403a0c
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x44ac58
push eax
push 0
push 0
mov eax, dword [0x45466c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x42016c]
call fcn.004215d4
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x42016c]
call fcn.004215d4
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x42016c]
call fcn.004215d4
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044ec90
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44eb58
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44eb58
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44eb58
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44e5d3
call fcn.00403db4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44e93c
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44eae7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44eac8
mov dl, 1
mov eax, dword [0x412d64]
call fcn.00403a0c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004047b0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44eab7
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0043c8a4
test al, al
je 0x44eaaa
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x44eaf8
lea eax, [ebp - 0x254]
call fcn.00409d54
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44eaaa
xor eax, eax
push ebp
push 0x44eaa3
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x44eb30
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44ea8c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404a20
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x44ea8c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404a20
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44eaaa
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44e9ad
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00416840
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44eaee
lea eax, [ebp - 0x260]
call fcn.004047b0
ret

Function at 0x44f430
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x45a7dc]
cmp byte [eax + 0xa5], 0
jne 0x44f4a1
cmp dword [0x45a7f4], 0
jne 0x44f462
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44f3ec
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x45a7f4], eax
cmp dword [0x45a7f0], 0
jne 0x44f47d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x45a7f0], eax
cmp dword [0x45a7f8], 0
jne 0x44f4a1
push esp
push 0
push 0
push 0x44f390
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x45a7f8], eax
pop edx
ret
Function at 0x44fb34
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x45a7dc]
cmp dword [eax + 0x30], 0
je 0x44fbde
cmp dword [ebx + 0x94], 0
jne 0x44fbd8
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44fac4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44fbd8
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x44fb9e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44fbd8
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00414cb0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44fbad
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45073c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x450771
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004048a0
jmp 0x45077e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404804
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x451838
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x451879
mov eax, esi
call fcn.004380ac
test al, al
je 0x451879
mov eax, dword [ebx + 0x84]
call fcn.00437e4c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x451879
push 0
mov eax, dword [ebx + 0x84]
call fcn.00437e4c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x452220
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push esp
push 0x104
call sub.kernel32.dll_GetTempPathA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004048a0
add esp, 0x104
pop ebx
ret
Function at 0x45256c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x45269f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404848
lea eax, [ebp - 0xc]
call fcn.004047b0
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x3c
call fcn.00403454
mov dword [ebp - 0x48], 0x3c
mov dword [ebp - 0x44], 0x800540
mov eax, 0x4526ac
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 8]
call fcn.00404c70
mov dword [ebp - 0x38], eax
mov eax, esi
call fcn.00404c70
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0xc]
call fcn.00404c70
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 1
lea eax, [ebp - 0x48]
push eax
call sub.shell32.dll_ShellExecuteExA
test eax, eax
jne 0x45260d
call sub.kernel32.dll_GetLastError
cmp eax, 0x4c7
jne 0x45260d
call fcn.0040c6c0
cmp dword [ebp - 0x10], 0
jne 0x452684
xor edx, edx
push ebp
push 0x45267d
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x4546e4]
mov eax, dword [eax]
call fcn.004509ec
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x10]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x452621
cmp eax, 0xffffffff
jne 0x452657
mov eax, dword [0x4546e4]
mov eax, dword [eax]
call fcn.004509ec
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetExitCodeProcess
test eax, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x452684
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4526a6
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004047d4
ret
Function at 0x1005c7b3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100a9070]
jne 0x1005c7bd
repz ret
jmp fcn.100651c3

Function at 0x1006a340
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x1006a34f
pop dword [ebp - 0x14]
mov eax, 0x1006a34f
sub dword [ebp - 0x14], eax
push 0x40
push 0x1000
push 0x531fa
push 0
mov eax, 0x24fd07b3
sub eax, 0x14fcf65b
add eax, dword [ebp - 0x14]
call dword [eax]
mov ecx, 0x53b7
xor edx, edx
add edx, eax
mov esi, 0xb86df5ce
add esi, 0x579e6832
add esi, dword [ebp - 0x14]
mov ebx, 0xa5721b50
sub ebx, 0x26ee7daf
mov dword [ebp - 4], 0xcc055163
mov edi, dword [esi]
xor dword [ebp - 4], 0xd55f29f4
xor edi, ebx
mov dword [edx], edi
add dword [ebp - 0x10], eax
add edx, 0x596fc2be
add edx, 0xa6903d46
add esi, 0x5dd6ed51
add esi, 0xa22912b3
loop 0x1006a3a5
add eax, 0x141af
mov ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x10007f00
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x10096040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
movzx esi, dl
push 0
mov dword [ebp - 0x8c], edi
push esi
mov dword [ebp - 0x8c], edi
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
add esi, 0xffffffdf
mov ecx, eax
cmp esi, 0x84
ja case.0x10007f43.41
movzx eax, byte [esi + 0x10007ff4]
jmp dword [eax*4 + 0x10007fec]
or ecx, 0x100
push 0x80
lea eax, [ebp - 0x88]
shl ecx, 0x10
push eax
push ecx
call dword [sym.imp.USER32.dll_GetKeyNameTextA]
test eax, eax
je 0x10007fb1
xorps xmm0, xmm0
lea ecx, [ebp - 0x88]
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
lea edx, [ecx + 1]
mov dword [edi + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10007f87
sub ecx, edx
lea eax, [ebp - 0x88]
push ecx
push eax
mov ecx, edi
call fcn.1000fd30
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.10079e87
mov esp, ebp
pop ebp
ret
call fcn.10002200
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x90]
call fcn.10001bc0
push dword [eax + 4]
push dword [eax]
push ecx
lea ecx, [ebp - 0xa8]
call fcn.10001ed0
push 0x10093bcc
lea eax, [ebp - 0xa8]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
nop
dec edx
jg 268468207
adc byte [eax + 0x7f], dl
add byte [eax], dl
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add dword [ecx], eax
add dword [ecx], eax
add byte [eax], al
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add byte [eax], al
add byte [ecx], al
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add byte [ecx], al
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [eax], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add byte [ecx], al
add ah, cl
int3

Function at 0x1000dea0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x1000debf
push 0
push 0
push dword [ebp + 8]
push 0x1000db10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc
Function at 0x1000e2c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x1000e2ec
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x1000e314
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x1000e31a
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x1000e382
jg 0x1000e331
test esi, esi
je 0x1000e382
test ecx, ecx
jl 0x1000e37d
jg 0x1000e33b
test eax, eax
je 0x1000e37d
cmp edi, ecx
jg 0x1000e34f
jl 0x1000e345
cmp esi, eax
jae 0x1000e34f
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x1000e385
mov ecx, dword [ebp + 8]
jmp 0x1000e38f
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x1000e3a9
jg 0x1000e38f
test esi, esi
je 0x1000e3a9
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x1000e3a9
push eax
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000e3c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
test eax, eax
jg 0x1000e3ec
jl 0x1000e3e0
test ecx, ecx
jne 0x1000e3ec
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x1000e405
push eax
push ecx
push esi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x1000e453
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x1000e459
mov edi, dword [ebp - 4]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [ebp - 4], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp - 4]
jmp 0x1000e459
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x1000e4c6
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x1000e482
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x1000e4b4
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x1000e4c6
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x1000e490
test edi, edi
je 0x1000e4c6
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000e840
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10096040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x1000e870
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10079e87
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1000e8ac
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x1000e8ac
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10079e87
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x1000e983
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x1000e8d4
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1000e8e0
movsx eax, bl
jmp 0x1000e918
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x1000e942
sub eax, 1
je 0x1000e942
sub eax, 2
jne 0x1000e983
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10079e87
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1000e960
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x1000e983
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10079e87
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10079e87
mov esp, ebp
pop ebp
ret 4