joyce8/EMBER2024-capa huggingface dataset:
Function at 0x480f00
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x4d000]
push edi
jmp 0x480f1a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x480f21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x480f10
mov eax, 1
add ebx, ebx
jne 0x480f33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x480f44
jne 0x480f63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x480f63
dec eax
add ebx, ebx
jne 0x480f50
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x480f28
add ebx, ebx
jne 0x480f5f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x480fb5
xor ecx, ecx
sub eax, 3
jb 0x480f7b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x480fea
sar eax, 1
mov ebp, eax
jmp 0x480f86
add ebx, ebx
jne 0x480f86
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x480f54
inc ecx
add ebx, ebx
jne 0x480f94
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x480f54
add ebx, ebx
jne 0x480fa1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x480f96
jne 0x480fb2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x480f96
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x480fd4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x480fc6
jmp 0x480f16
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x480fd4
add edi, ecx
jmp 0x480f16
pop esi
mov edi, esi
mov ecx, 0x33cb
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x480ff2
cmp byte [edi], 0xe
jne 0x480ff2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x480ff7
lea edi, [esi + 0x7d000]
mov eax, dword [edi]
or eax, eax
je 0x48106f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x85aec]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x85bb4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x481024
mov ecx, edi
jns 0x481053
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x85bb8]
or eax, eax
je 0x481069
mov dword [ebx], eax
add ebx, 4
jmp 0x481041
call dword [esi + 0x85bc8]
mov ebp, dword [esi + 0x85bbc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4810a3
sub esp, 0xffffff80
jmp 0x440cab

Function at 0x40c006
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ecx, 0xcbf
mov ebx, edx
xor word [eax], dx
lea edx, [ebx + edx]
xchg dh, dl
lea eax, [eax + 2]
loop 0x40c00e
pop ebx
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x110f337e
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43304e
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
mov ecx, 0xb983552
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x4092e9
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 0x409305
mov dword [esp], 1
jmp 0x409315
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x409427
mov ebx, dword [esp + 0x10]
cmp ebx, 1
je 0x409347
push 0x10
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, ebx
je 0x409337
mov dword [esp], 1
jmp 0x409347
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x409427
mov ebx, dword [esp + 0x14]
cmp ebx, 1
je 0x409379
push 0x11
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, ebx
je 0x409369
mov dword [esp], 1
jmp 0x409379
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x409427
mov ebx, dword [esp + 0x18]
cmp ebx, 1
je 0x4093a8
push 0x12
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, ebx
je 0x40939b
mov dword [esp], 1
jmp 0x4093a8
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x409427
mov ebx, dword [esp + 0x10]
cmp ebx, 1
jne 0x4093ce
push 0x10
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, ebx
je 0x4093ce
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x409427
mov ebx, dword [esp + 0x14]
cmp ebx, 1
jne 0x4093f4
push 0x11
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, ebx
je 0x4093f4
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x409427
mov ebx, dword [esp + 0x18]
cmp ebx, 1
jne 0x40941a
push 0x12
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, ebx
je 0x40941a
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x409427
xor edx, edx
mov eax, 1
jmp 0x409427
add esp, 4
pop ebx
ret 0x10

Function at 0x40b98c
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 0x40ba70
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test byte [ebp + 0x10], 1
mov ebx, eax
je 0x40ba26
push edi
push edi
push edi
push dword [ebp + 0xc]
call fcn.0040c4d5
mov ebx, eax
cmp ebx, edi
je 0x40ba65
push dword [ebp + 8]
push dword [0x49ba68]
call fcn.00412ad3
mov esi, eax
mov eax, 0x10000
push eax
push ebx
mov dword [esi + 0x18], eax
call fcn.0040c478
push eax
push ebx
call fcn.0040c45e
push eax
call fcn.0040c0b9
cmp eax, edi
mov dword [esi], eax
je 0x40ba1e
mov dword [esi + 0x14], ebx
mov dword [ebp - 4], esi
jmp 0x40ba65
push ebx
call fcn.0040c485
jmp 0x40ba65
push ebx
push edi
push dword [0x49b2f4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, edi
je 0x40ba65
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.0040c0a3
push esi
push edi
push dword [0x49b2f4]
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 0x40bbad
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 [0x49ba68]
mov dword [ebp - 8], ebx
xor edi, edi
call fcn.00412b6a
mov esi, eax
cmp esi, ebx
je 0x40bd28
mov eax, dword [esi]
mov dword [ebp - 4], eax
cmp dword [esi + 0x14], ebx
je 0x40bc5d
push dword [ebp + 8]
call fcn.0040c1d6
jmp 0x40bbf0
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esi + 0x1d], bl
jne 0x40bbe8
push dword [esi + 0x14]
call fcn.0040c4ae
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x20], eax
push ebx
mov eax, esi
mov byte [esi + 0x1c], 1
call fcn.0040ba8a
pop ecx
lea eax, [ebp + 0xc]
push eax
push ebx
push esi
push 0x40baff
push 0x2000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x40bc32
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x10], 0xffffffff
je 0x40bc43
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0040c26c
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 0x40bd28
test byte [ebp + 0xc], 1
je 0x40bc66
xor edi, edi
inc edi
test byte [ebp + 0xc], 2
je 0x40bcf0
push esi
call fcn.0040bd42
lea eax, [esi + 4]
push 0xc
push eax
call fcn.00413170
pop ecx
pop ecx
lea edx, [ebp - 4]
push edx
push dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [0x49ba7c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
jne 0x40bd28
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 0x40bcd6
push dword [ebp - 8]
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0040c206
jmp 0x40bce2
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 0x40bd28
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 0x40bd11
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0040c26c
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 0x40bd28
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40c64e
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
je 0x40c666
push dword [esp + 4]
push 0x40c5e7
call dword [sym.imp.USER32.DLL_EnumWindows]
jmp 0x40c6a3
push esi
mov esi, dword [0x49baa8]
test esi, esi
je 0x40c6a2
push ebx
push edi
mov ebx, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x40c69a
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
push edi
push 0x49baa8
call fcn.0041319d
pop ecx
pop ecx
test ebx, ebx
mov esi, ebx
jne 0x40c673
pop edi
pop ebx
pop esi
ret 4
Function at 0x40cd41
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x49bab8], 0
jne 0x40cd53
call fcn.0040cc92
push esi
push edi
push dword [0x49bab4]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call edi
mov esi, eax
test esi, esi
jne 0x40cd78
call fcn.0040cc92
push dword [0x49bab4]
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 0x40cd81
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.0040cc49
dec edi
pop ecx
pop ecx
jne 0x40cdb2
pop edi
pop esi
leave
ret 4
Function at 0x410110
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 0x41019b
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
push 9
call esi
test al, al
jns 0x41018d
push 0x11
call esi
test al, al
js 0x41018d
push 0x10
call esi
test al, al
js 0x41018d
push 0x12
call esi
test al, al
js 0x41018d
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 0x41018d
push eax
push eax
push 0x44e
push dword [ebp - 4]
call dword [sym.imp.USER32.DLL_SendMessageA]
test ax, 0x800
je 0x4101bb
push str.PB_Hotkey
push dword [ebp - 4]
call edi
test eax, eax
jne 0x4101bb
push str.PB_WindowID
push dword [ebp + 8]
call edi
test eax, eax
je 0x4101bb
dec eax
push eax
push dword [0x49c050]
call fcn.00412b6a
mov eax, dword [eax + 8]
jmp 0x4101bd
xor eax, eax
pop edi
pop esi
leave
ret 4

Function at 0x410547
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 0x410658
cmp byte [eax], 0
je 0x410658
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 0x4105a1
cmp eax, 3
jne 0x4105de
cmp byte [ebp - 0x107], 0x3a
jne 0x4105de
cmp eax, 2
jne 0x4105c2
lea eax, [ebp - 0x108]
push 0x447288
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 0x410658
jmp 0x410652
mov byte [ecx], 0
dec ecx
cmp byte [ecx], 0x5c
je 0x4105da
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x41062a
test byte [ebp - 0x248], 0x10
je 0x41060d
push 0xfffffffffffffffe
pop edi
or esi, 0xffffffff
jmp 0x410621
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 0x410658
cmp byte [ebp - 0x108], 0x5c
jne 0x410658
cmp byte [ebp - 0x107], 0x5c
jne 0x410658
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x410658
test al, 0x10
je 0x410658
push 0xfffffffffffffffe
or esi, 0xffffffff
pop edi
mov eax, edi
pop edi
mov edx, esi
pop esi
leave
ret 4
Function at 0x410670
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 0x4106a5
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 0x4108c0
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 0x410919
push esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x410918
mov eax, dword [esp + 0x10]
mov ecx, dword [0x49c068]
push eax
push ecx
call fcn.00412b6a
test eax, eax
je 0x410914
cmp dword [eax + 4], 0
je 0x410902
push esi
push edi
push eax
call fcn.00410c80
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 0x410920
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.00413640
mov ecx, dword [esp + 0x1c]
mov edx, dword [0x49c068]
push ecx
mov edi, eax
push edx
mov ebp, edi
call fcn.00412b6a
mov ebx, eax
test ebx, ebx
je 0x410a3e
push esi
lea ecx, [ecx]
mov byte [esp + 0x13], 0
cmp dword [ebx + 4], 0
je 0x41097e
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.00410d80
mov dword [esp + 0x14], eax
jmp 0x410995
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 0x4109a7
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 0x4109d1
mov edx, dword [esp + 0x24]
add ecx, 0x1000
push edx
push ecx
mov dword [esp + 0x20], ecx
call fcn.00413640
mov edi, eax
mov al, byte [esp + 0x13]
lea ebp, [esi + edi]
test al, al
je 0x410a3d
cmp dword [esp + 0x14], 0
je 0x4109e8
cmp al, 0xd
je 0x4109e8
cmp al, 0xa
jne 0x410960
sub ebp, 1
cmp al, 0xd
jne 0x410a3d
cmp dword [ebx + 4], 0
je 0x410a04
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.00410d80
jmp 0x410a1b
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 0x410a3d
cmp dword [ebx + 4], 0
je 0x410a2e
add dword [ebx + 0xc], 1
jmp 0x410a3d
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.004136e0
pop edi
pop ebp
pop ebx
add esp, 0xc
ret 8
Function at 0x410a60
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
mov ecx, dword [0x49c068]
push esi
push eax
push ecx
mov dword [esp + 0xc], 0
call fcn.00412b6a
mov esi, eax
test esi, esi
je 0x410ae4
cmp dword [esi + 4], 0
je 0x410ab3
push 1
lea edx, [esp + 8]
push edx
push esi
call fcn.00410d80
test eax, eax
je 0x410aa7
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 0x410aef
cmp dword [esp + 8], 0
je 0x410aef
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 0x410b60
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov ecx, dword [0x49c068]
push eax
push ecx
mov byte [esp + 0xb], 0
call fcn.00412b6a
test eax, eax
je 0x410baa
cmp dword [eax + 4], 0
lea edx, [esp + 3]
je 0x410b97
push 1
push edx
push eax
call fcn.00410d80
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 0x410bc0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov ecx, dword [0x49c068]
push eax
push ecx
mov dword [esp + 8], 0
call fcn.00412b6a
test eax, eax
je 0x410c0a
cmp dword [eax + 4], 0
lea edx, [esp]
je 0x410bf7
push 4
push edx
push eax
call fcn.00410d80
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 0x410c20
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov ecx, dword [0x49c068]
push eax
push ecx
mov byte [esp + 0xb], 0
call fcn.00412b6a
test eax, eax
je 0x410c6a
cmp dword [eax + 4], 0
lea edx, [esp + 3]
je 0x410c57
push 1
push edx
push eax
call fcn.00410d80
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 0x410c80
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 0x410cb5
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 0x410d2e
mov eax, dword [esi + 8]
add eax, dword [esi + 4]
sub eax, ecx
mov ecx, edi
sub ecx, 1
je 0x410d1b
sub ecx, 1
je 0x410d06
sub ecx, 2
je 0x410cf3
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.00410670
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x410d5b
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