joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10000f290
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x100014120]
jne 0x10000f2ab
rol rcx, 0x10
test cx, 0xffff
jne 0x10000f2a7
ret 0
ror rcx, 0x10
jmp 0x10000f7ec
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1000143d0]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov r11, qword [0x1000144c8]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.ntdll.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x10000f871
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1000143d0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.ntdll.dll_RtlVirtualUnwind
jmp 0x10000f893
mov rax, qword [rsp + 0x88]
mov qword [0x1000144c8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x100014468], rax
mov rax, qword [0x1000144c8]
mov qword [0x100014340], rax
mov rax, qword [rsp + 0x90]
mov qword [0x100014450], rax
mov dword [0x100014330], 0xc0000409
mov dword [0x100014334], 1
mov rax, qword [0x100014120]
mov qword [rsp + 0x68], rax
mov rax, qword [0x100014128]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1000015b8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x10000f688
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x10000f6d5
cmp rcx, 0xffffffffffffffff
je 0x10000f6d5
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x10000f6cd
cmp dword [rcx + 0x3c], edx
jl 0x10000f6cd
cmp dword [rcx + 0x3c], 0x10000000
jae 0x10000f6cd
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x10000f6d5
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140003450
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x1401e10d0]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x140004330
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x1400043a7
movsxd rdx, ecx
lea rcx, [0x14000428c]
call qword [sym.imp.USER32.DLL_EnumWindows]
mov rbx, qword [0x1401e3910]
test rbx, rbx
je 0x14000441a
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x14000439d
cmp byte [rbx + 0x20], 0
je 0x14000439d
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea rdx, [r9 - 2]
xor r8d, r8d
call qword [sym.imp.USER32.DLL_SetWindowPos]
mov rbx, rdi
test rdi, rdi
jne 0x140004363
jmp 0x14000441a
mov rbx, qword [0x1401e3910]
test rbx, rbx
je 0x14000441a
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140004412
cmp byte [rbx + 0x21], 0
je 0x1400043d6
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x140004402
mov rcx, qword [rbx + 0x18]
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
or rdx, 0xffffffffffffffff
call qword [sym.imp.USER32.DLL_SetWindowPos]
lea rdx, [rbx + 0x10]
lea rcx, [0x1401e3910]
call fcn.1400150ec
mov rbx, rdi
test rdi, rdi
jne 0x1400043b3
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140004b50
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x1401e3928], 0
jne 0x140004b75
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1401e3928], 1
mov dword [0x1401e392c], eax
mov rcx, qword [0x1401e37c0]
xor edx, edx
mov r8d, 0x90
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1401e392c]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, eax
mov ecx, ebx
add rsp, 0x20
pop rbx
jmp 0x140004d30
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp dword [0x1401e3928], 0
mov ebx, ecx
jne 0x140004d54
call fcn.140004b50
mov ecx, dword [0x1401e392c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x140004d7c
call fcn.140004b50
mov ecx, dword [0x1401e392c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
lea rdx, [rdi + 8]
mov r8d, 0x11
nop word [rax + rax]
imul eax, ebx, 0x53a9b4fb
mov ecx, 1
mov ebx, 1
sub ecx, eax
lea rdx, [rdx + 4]
mov dword [rdx + 0x40], ecx
imul eax, ecx, 0x53a9b4fb
sub ebx, eax
mov dword [rdx - 4], ebx
dec r8
jne 0x140004d90
lea esi, [r8 + 0x1f]
mov dword [rdi], r8d
mov dword [rdi + 4], 0xa
lea ebp, [rsi - 0xf]
nop word [rax + rax]
movsxd r11, dword [rdi]
movsxd rbx, dword [rdi + 4]
mov r10d, dword [rdi + rbx*4 + 8]
mov r9d, dword [rdi + r11*4 + 8]
mov eax, dword [rdi + r11*4 + 0x4c]
ror r9d, 5
lea rcx, [rdi + r11*4]
lea r8, [rdi + r11*4]
ror eax, 0xd
add r9d, r10d
add eax, dword [rdi + rbx*4 + 0x4c]
dec r11d
mov dword [r8 + 0x4c], r9d
cmovs r11d, ebp
dec ebx
mov dword [rcx + 8], eax
cmovs ebx, ebp
mov dword [rdi], r11d
mov dword [rdi + 4], ebx
dec rsi
jne 0x140004dd0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140004d30
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x1401e3928], 0
jne 0x140004b75
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1401e3928], 1
mov dword [0x1401e392c], eax
mov rcx, qword [0x1401e37c0]
xor edx, edx
mov r8d, 0x90
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1401e392c]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, eax
mov ecx, ebx
add rsp, 0x20
pop rbx
jmp 0x140004d30
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp dword [0x1401e3928], 0
mov ebx, ecx
jne 0x140004d54
call fcn.140004b50
mov ecx, dword [0x1401e392c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x140004d7c
call fcn.140004b50
mov ecx, dword [0x1401e392c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
lea rdx, [rdi + 8]
mov r8d, 0x11
nop word [rax + rax]
imul eax, ebx, 0x53a9b4fb
mov ecx, 1
mov ebx, 1
sub ecx, eax
lea rdx, [rdx + 4]
mov dword [rdx + 0x40], ecx
imul eax, ecx, 0x53a9b4fb
sub ebx, eax
mov dword [rdx - 4], ebx
dec r8
jne 0x140004d90
lea esi, [r8 + 0x1f]
mov dword [rdi], r8d
mov dword [rdi + 4], 0xa
lea ebp, [rsi - 0xf]
nop word [rax + rax]
movsxd r11, dword [rdi]
movsxd rbx, dword [rdi + 4]
mov r10d, dword [rdi + rbx*4 + 8]
mov r9d, dword [rdi + r11*4 + 8]
mov eax, dword [rdi + r11*4 + 0x4c]
ror r9d, 5
lea rcx, [rdi + r11*4]
lea r8, [rdi + r11*4]
ror eax, 0xd
add r9d, r10d
add eax, dword [rdi + rbx*4 + 0x4c]
dec r11d
mov dword [r8 + 0x4c], r9d
cmovs r11d, ebp
dec ebx
mov dword [rcx + 8], eax
cmovs ebx, ebp
mov dword [rdi], r11d
mov dword [rdi + 4], ebx
dec rsi
jne 0x140004dd0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140004e30
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x1401e3928], 0
mov rbx, rcx
jne 0x140004e47
call fcn.140004b50
mov ecx, dword [0x1401e392c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r9, rax
test rax, rax
jne 0x140004e6f
call fcn.140004b50
mov ecx, dword [0x1401e392c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r9, rax
movsxd r8, dword [r9]
movsxd rdx, dword [r9 + 4]
mov eax, 0x10
mov r10d, dword [r9 + r8*4 + 0x4c]
mov r11d, dword [r9 + r8*4 + 8]
ror r10d, 0xd
add r10d, dword [r9 + rdx*4 + 0x4c]
ror r11d, 5
add r11d, dword [r9 + rdx*4 + 8]
mov dword [r9 + r8*4 + 8], r10d
mov dword [r9 + r8*4 + 0x4c], r11d
dec r8d
mov ecx, r11d
cmovs r8d, eax
dec edx
cmovs edx, eax
mov dword [r9], r8d
mov dword [r9 + 4], edx
inc rbx
je 0x140004ee8
mov edx, r10d
mov r8, rbx
mov eax, ebx
shr r8, 0x20
imul rax, rdx
shr rax, 0x20
imul rcx, r8
imul rdx, r8
shr rcx, 0x20
add rax, rcx
add rax, rdx
add rsp, 0x20
pop rbx
ret
mov eax, r10d
shl rax, 0x20
and rax, rcx
add rsp, 0x20
pop rbx
ret
Function at 0x140006298
Capabilities:
Reference http user-agent string

Disassembly:
lea r9, str.Mozilla_5.0_Gecko_41.0_Firefox_41.0
xor r8d, r8d
jmp 0x1400062a8
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor ebx, ebx
mov r15, r9
mov r14d, r8d
mov rsi, rdx
mov rbp, rcx
test rcx, rcx
je 0x140006378
test rdx, rdx
je 0x140006378
mov rcx, qword [0x1401e37c0]
lea edx, [rbx + 8]
mov r8d, 0x90
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, rbp
or dword [rax + 4], 0xffffffff
mov dword [rax], ebx
mov rdi, rax
call sub.msvcrt.dll__wcsdup
mov rcx, rsi
mov qword [rdi + 8], rax
call sub.msvcrt.dll__wcsdup
mov rcx, r15
mov qword [rdi + 0x10], rax
call sub.msvcrt.dll__wcsdup
mov dword [rdi + 0x40], r14d
mov qword [rdi + 0x58], rax
test r14b, 1
je 0x140006365
lea rax, [rsp + 0x50]
lea r8, [0x14000654c]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov edx, 0x10000
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x140006370
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, rdi
jmp 0x140006378
mov rcx, rdi
call fcn.140006394
movsxd rbx, eax
mov rcx, rdi
call fcn.1400065cc
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret

Function at 0x1400062a8
Capabilities:
Create thread

Disassembly:
lea r9, str.Mozilla_5.0_Gecko_41.0_Firefox_41.0
xor r8d, r8d
jmp 0x1400062a8
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor ebx, ebx
mov r15, r9
mov r14d, r8d
mov rsi, rdx
mov rbp, rcx
test rcx, rcx
je 0x140006378
test rdx, rdx
je 0x140006378
mov rcx, qword [0x1401e37c0]
lea edx, [rbx + 8]
mov r8d, 0x90
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, rbp
or dword [rax + 4], 0xffffffff
mov dword [rax], ebx
mov rdi, rax
call sub.msvcrt.dll__wcsdup
mov rcx, rsi
mov qword [rdi + 8], rax
call sub.msvcrt.dll__wcsdup
mov rcx, r15
mov qword [rdi + 0x10], rax
call sub.msvcrt.dll__wcsdup
mov dword [rdi + 0x40], r14d
mov qword [rdi + 0x58], rax
test r14b, 1
je 0x140006365
lea rax, [rsp + 0x50]
lea r8, [0x14000654c]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov edx, 0x10000
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x140006370
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, rdi
jmp 0x140006378
mov rcx, rdi
call fcn.140006394
movsxd rbx, eax
mov rcx, rdi
call fcn.1400065cc
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x140006394
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r15, qword [rcx + 0x10]
mov rdi, rcx
mov rcx, qword [rcx + 8]
xor ebx, ebx
mov esi, ebx
call fcn.14006b6d0
mov rcx, qword [rdi + 0x58]
mov r12, rax
call fcn.14006b6d0
mov r13, rax
call fcn.14002f950
mov rbp, rax
test rax, rax
je 0x14000650f
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 1]
xor r9d, r9d
mov edx, 0xc0000000
mov rcx, r15
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x1400064f5
test byte [rdi + 0x40], 2
mov qword [rdi + 0x18], rax
jne 0x140006434
lea edx, [rbx + 0x34]
lea r8d, [rbx + 1]
mov rcx, rbp
call fcn.1400324c0
mov r8, qword [0x1401e3960]
test r8, r8
je 0x14000644d
mov edx, 0x2714
mov rcx, rbp
call fcn.1400324c0
mov r8, qword [0x1401e3968]
test r8, r8
je 0x140006483
cmp qword [0x1401e3970], rbx
je 0x140006483
mov edx, 0x27bf
mov rcx, rbp
call fcn.1400324c0
mov r8, qword [0x1401e3970]
mov edx, 0x27c0
mov rcx, rbp
call fcn.1400324c0
mov r8, r12
mov edx, 0x2712
mov rcx, rbp
call fcn.1400324c0
mov r8, r13
mov edx, 0x2722
mov rcx, rbp
call fcn.1400324c0
lea r8, [0x14000655c]
mov edx, 0x4e2b
mov rcx, rbp
call fcn.1400324c0
mov r8, rdi
mov edx, 0x2711
mov rcx, rbp
call fcn.1400324c0
mov rcx, rbp
call fcn.14002fb80
test eax, eax
jne 0x1400064df
cmp dword [rdi + 4], 0xfffffffb
mov eax, 1
cmovne esi, eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x1400064f5
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, rbp
call fcn.14002f6e0
mov eax, 1
cmp esi, eax
jne 0x14000650f
mov dword [rdi + 4], 0xfffffffe
jmp 0x14000651c
cmp dword [rdi + 4], 0xfffffffb
setne bl
add ebx, 0xfffffffc
mov dword [rdi + 4], ebx
mov rcx, r12
call fcn.14006b6c0
mov rcx, r13
call fcn.14006b6c0
lea r11, [rsp + 0x40]
mov eax, esi
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140006754
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1c0
xor ebx, ebx
cmp word [0x1401e3978], bx
jne 0x140006847
lea rdx, [rsp + 0x20]
mov ecx, 0x101
call qword [sym.imp.WSOCK32.DLL_WSAStartup]
lea edi, [rbx + 1]
mov word [0x1401e3978], di
test eax, eax
je 0x140006795
mov word [0x1401e3978], bx
lea rcx, str.ws2_32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x1401e39a8], rax
test rax, rax
je 0x140006847
lea rdx, [0x14007cde0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1401e39a8]
lea rdx, [0x14007cdf0]
mov qword [0x1401e3988], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1401e39a8]
lea rdx, str.getnameinfo
mov qword [0x1401e3990], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1401e39a8]
lea rdx, str.WSAStringToAddressA
mov qword [0x1401e3998], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x1401e3988], rbx
mov qword [0x1401e39a0], rax
je 0x140006847
cmp qword [0x1401e3990], rbx
je 0x140006847
cmp qword [0x1401e3998], rbx
je 0x140006847
mov ecx, dword [0x1401e397c]
test rax, rax
cmovne ecx, edi
mov dword [0x1401e397c], ecx
movsx rax, word [0x1401e3978]
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x1c0
pop rdi
ret
Function at 0x14000b03c
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x30
lea rax, [r11 + 0x10]
mov rdi, rdx
mov edx, ecx
xor esi, esi
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov qword [r11 - 0x18], rax
mov ebx, esi
call qword [sym.imp.SHELL32.DLL_SHGetFolderLocation]
test eax, eax
jne 0x14000b0ad
mov rcx, qword [rsp + 0x48]
mov rdx, rdi
call qword [sym.imp.SHELL32.DLL_SHGetPathFromIDListW]
test eax, eax
je 0x14000b0a2
mov rcx, rdi
call sub.msvcrt.dll_wcslen
mov rbx, rax
test eax, eax
je 0x14000b0a2
lea ecx, [rsi + 0x5c]
cdqe
cmp word [rdi + rax*2 - 2], cx
je 0x14000b0a2
mov word [rdi + rax*2], cx
inc ebx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.OLE32.DLL_CoTaskMemFree]
movsxd rax, ebx
mov word [rdi + rax*2], si
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14000b160
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov rbx, rcx
mov dword [rsp + 0x40], eax
cmp dword [rcx + 0x1c], eax
jne 0x14000b1a4
mov r8d, dword [rcx + 0x10]
mov rdx, qword [rcx + 8]
lea r9, [rsp + 0x40]
sub r8d, dword [rcx + 0x14]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rbx + 0x10]
mov dword [rbx + 0x14], eax
movsxd rax, dword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret
cdqe
add rsp, 0x30
pop rbx
ret

Function at 0x14000b8c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov edi, r8d
mov rsi, rdx
mov dword [rsp + 0x48], ebx
test rdx, rdx
je 0x14000b938
test r8d, r8d
je 0x14000b938
mov rdx, rcx
mov rcx, qword [0x1401e4e20]
call fcn.140014688
test rax, rax
je 0x14000b934
mov r8d, edi
mov rdx, rsi
cmp qword [rax + 8], rbx
je 0x14000b921
mov rcx, rax
call fcn.14000bfe0
mov ebx, eax
cdqe
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rax]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
movsxd rax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14000b950
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, rcx
mov rcx, qword [0x1401e4e20]
call fcn.140014688
mov rbx, rax
test rax, rax
je 0x14000b9a3
cmp qword [rax + 8], 0
je 0x14000b982
cmp dword [rax + 0x1c], 0
jne 0x14000b982
mov rcx, rax
call fcn.14000b160
mov rcx, qword [rbx]
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov eax, dword [rsp + 0x38]
shl rax, 0x20
or rax, rcx
add rsp, 0x20
pop rbx
ret
or rax, 0xffffffffffffffff
add rsp, 0x20
pop rbx
ret
Function at 0x14000b9b0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rdx, rcx
mov rcx, qword [0x1401e4e20]
mov rbx, r8
mov dword [rsp + 0x58], 0
call fcn.140014688
test rax, rax
je 0x14000ba18
cmp qword [rax + 8], 0
mov rdx, rdi
je 0x14000b9fe
mov r8, rbx
mov rcx, rax
call fcn.14000c130
cdqe
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rax]
lea r9, [rsp + 0x58]
mov r8d, ebx
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd rax, dword [rsp + 0x58]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14000ba30
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rdi, rcx
mov rcx, qword [0x1401e37c0]
mov rsi, r8
mov r15d, edx
mov r14d, 0x1000
xor edx, edx
mov r8d, r14d
mov r12, r9
xor r13d, r13d
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x14000bbf4
movzx r8d, byte [rsp + 0x30]
mov qword [rsp + 0x70], rbx
mov rbx, rax
cmp rsi, 0xffffffffffffffff
je 0x14000ba9a
test rsi, rsi
je 0x14000bb5a
dec rsi
lea rdx, [rsp + 0x30]
cmp qword [rdi + 8], r13
je 0x14000bab9
mov r8d, 1
mov rcx, rdi
call fcn.14000c130
mov dword [rsp + 0x34], eax
jmp 0x14000bad6
mov rcx, qword [rdi]
lea r9, [rsp + 0x34]
mov r8d, 1
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x34]
movzx r8d, byte [rsp + 0x30]
cmp eax, 1
jne 0x14000bb5a
test r8b, r8b
je 0x14000baf2
mov byte [rbx], r8b
movzx r8d, byte [rsp + 0x30]
inc rbx
lea eax, [r14 - 1]
mov rdx, rbx
movsxd rcx, eax
sub rdx, rbp
cmp rdx, rcx
jle 0x14000bb34
mov rcx, qword [0x1401e37c0]
add r14d, 0x1000
mov r8, rbp
mov edx, 8
movsxd r9, r14d
sub ebx, ebp
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
movzx r8d, byte [rsp + 0x30]
movsxd rbx, ebx
mov rbp, rax
add rbx, rax
test r8b, r8b
je 0x14000bb5a
test r15d, r15d
jne 0x14000ba88
cmp r8b, 0xd
je 0x14000bb5f
cmp r8b, 0xa
jne 0x14000ba88
dec rbx
jmp 0x14000bbdd
test r15d, r15d
jne 0x14000bbdd
cmp r8b, 0xa
jne 0x14000bb6a
dec rbx
jmp 0x14000bbdd
cmp r8b, 0xd
jne 0x14000bbdd
dec rbx
lea rdx, [rsp + 0x30]
cmp qword [rdi + 8], r13
je 0x14000bb92
mov r8d, 1
mov rcx, rdi
call fcn.14000c130
mov dword [rsp + 0x34], eax
jmp 0x14000bbab
mov rcx, qword [rdi]
lea r9, [rsp + 0x34]
mov r8d, 1
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [rsp + 0x30], 0xa
je 0x14000bbdd
cmp qword [rdi + 8], r13
je 0x14000bbbd
inc dword [rdi + 0x14]
jmp 0x14000bbdd
mov rcx, qword [rdi]
lea r8, [rsp + 0x3c]
mov r9d, 1
or edx, 0xffffffff
mov qword [rsp + 0x38], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rax, rbx
sub rax, rbp
mov qword [r12], rax
mov byte [rbx], r13b
mov rbx, qword [rsp + 0x70]
mov rax, rbp
jmp 0x14000bbf7
mov rax, r13
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14000bc20
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rsi, rcx
mov rcx, qword [0x1401e37c0]
mov rbp, r8
mov r12d, edx
mov r8d, 0x1000
xor edx, edx
mov r13, r9
xor edi, edi
mov r15d, 0x800
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rax, rax
je 0x14000be02
movzx edx, word [rsp + 0x30]
mov qword [rsp + 0x70], rbx
mov rbx, rax
nop dword [rax]
cmp rbp, 0xffffffffffffffff
je 0x14000bc92
test rbp, rbp
je 0x14000bd54
dec rbp
cmp qword [rsi + 8], 0
lea rdx, [rsp + 0x30]
je 0x14000bcb2
mov r8d, 2
mov rcx, rsi
call fcn.14000c130
mov dword [rsp + 0x34], eax
jmp 0x14000bccf
mov rcx, qword [rsi]
lea r9, [rsp + 0x34]
mov r8d, 2
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x34]
movzx edx, word [rsp + 0x30]
cmp eax, 2
jne 0x14000bd54
test dx, dx
je 0x14000bcea
mov word [rbx], dx
movzx edx, word [rsp + 0x30]
add rbx, 2
mov rdi, rbx
lea eax, [r15 - 1]
sub rdi, r14
movsxd rcx, eax
sar rdi, 1
cmp rdi, rcx
jle 0x14000bd30
mov rcx, qword [0x1401e37c0]
add r15d, 0x800
mov r8, r14
movsxd r9, r15d
mov edx, 8
add r9, r9
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
movzx edx, word [rsp + 0x30]
mov r14, rax
movsxd rax, edi
lea rbx, [r14 + rax*2]
test dx, dx
je 0x14000bd54
mov edi, 0
test r12d, r12d
jne 0x14000bc80
cmp dx, 0xd
je 0x14000bd59
cmp dx, 0xa
je 0x14000bd5f
jmp 0x14000bc80
test r12d, r12d
jne 0x14000bd63
cmp dx, 0xa
jne 0x14000bd82
sub rbx, 2
xor edi, edi
mov rax, rbx
sub rax, r14
sar rax, 1
mov qword [r13], rax
mov word [rbx], di
mov rbx, qword [rsp + 0x70]
mov rax, r14
jmp 0x14000be05
cmp dx, 0xd
jne 0x14000bd63
sub rbx, 2
cmp qword [rsi + 8], 0
lea rdx, [rsp + 0x30]
je 0x14000bdae
mov r8d, 2
mov rcx, rsi
call fcn.14000c130
xor edi, edi
mov dword [rsp + 0x34], eax
jmp 0x14000bdc7
mov rcx, qword [rsi]
xor edi, edi
lea r9, [rsp + 0x34]
lea r8d, [rdi + 2]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp word [rsp + 0x30], 0xa
je 0x14000bd65
cmp qword [rsi + 8], 0
je 0x14000bddc
add dword [rsi + 0x14], 2
jmp 0x14000bd65
mov rcx, qword [rsi]
mov r9d, 1
lea r8, [rsp + 0x3c]
lea edx, [r9 - 3]
mov qword [rsp + 0x38], 0xfffffffffffffffe
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x14000bd65
mov rax, rdi
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret