joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140078dd4
Capabilities:
Get file size
Read file on windows

Disassembly:
or r8d, 0xffffffff
jmp 0x140078de0
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor r13d, r13d
mov ebp, r8d
mov rax, rdx
mov r14, rcx
mov ebx, r13d
test rdx, rdx
je 0x140078fcc
cmp word [rdx], r13w
je 0x140078fcc
mov qword [r11 - 0x38], r13
lea r15d, [r13 + 1]
xor r9d, r9d
mov edx, 0x80000000
mov rcx, rax
mov r8d, r15d
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x140078fc7
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
movsxd rsi, eax
test eax, eax
jle 0x140078fbe
mov ecx, ebp
call fcn.140079570
mov rdi, rax
test rax, rax
je 0x140078fbe
mov rcx, r14
lea edx, [r13 + 2]
cmp ebp, 0xffffffff
je 0x140078e8e
mov edx, ebp
call fcn.140079b94
mov rbx, rax
test rax, rax
je 0x140078fb6
mov qword [rax + 0x40], rdi
mov qword [rbx + 0x60], r13
mov dword [rbx + 0x68], r13d
mov dword [rbx + 0x20], r13d
cmp r14, 0xffffffffffffffff
lea r8, [rsi + 0x10]
cmove r14, rax
xor edx, edx
mov qword [rax + 0x48], r14
mov rax, qword [rax + 8]
mov qword [rbx + 0x58], rax
mov rcx, qword [0x140845c04]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx + 0x38], rax
test rax, rax
je 0x140078ef8
lea ecx, [rsi + 0x10]
mov dword [rax + 8], ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], r13
mov rax, qword [rbx + 0x38]
add rax, 0x10
mov qword [rbx + 0x70], rax
cmp ebp, 0xffffffff
je 0x140078f01
mov dword [rbx + 0x50], r15d
mov rdx, rbx
mov rcx, rdi
call fcn.140102dd0
mov ebp, r13d
mov r14d, 0x4000
test esi, esi
jle 0x140078fb2
lea eax, [r14 + rbp]
cmp eax, esi
jle 0x140078f2b
mov r14d, esi
sub r14d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.140102120
mov r15, rax
test rax, rax
je 0x140078fa0
lea r9, [rsp + 0x78]
mov r8d, r14d
mov rdx, rax
mov rcx, r12
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [rsp + 0x78]
add ebp, edx
cmp dword [rbx + 0x20], r13d
jne 0x140078f72
mov rcx, r15
call fcn.14007964c
mov dword [rbx + 0x20], eax
mov edx, dword [rsp + 0x78]
mov rcx, rdi
cmp ebp, esi
jl 0x140078f81
mov r8d, 1
jmp 0x140078f84
xor r8d, r8d
call fcn.140102610
test eax, eax
je 0x140078f93
cmp ebp, esi
jl 0x140078f1d
jmp 0x140078fb2
mov rcx, rdi
call fcn.140102450
mov dword [rbx + 0x24], eax
jmp 0x140078fa7
mov dword [rbx + 0x24], 1
mov rdx, rdi
mov rcx, rbx
call fcn.140079748
mov qword [rbx + 0x40], r13
mov rcx, rdi
call fcn.1401027a0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rbx
jmp 0x140078fce
xor eax, eax
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140078de0
Capabilities:
Get file size
Read file on windows

Disassembly:
or r8d, 0xffffffff
jmp 0x140078de0
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor r13d, r13d
mov ebp, r8d
mov rax, rdx
mov r14, rcx
mov ebx, r13d
test rdx, rdx
je 0x140078fcc
cmp word [rdx], r13w
je 0x140078fcc
mov qword [r11 - 0x38], r13
lea r15d, [r13 + 1]
xor r9d, r9d
mov edx, 0x80000000
mov rcx, rax
mov r8d, r15d
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x140078fc7
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
movsxd rsi, eax
test eax, eax
jle 0x140078fbe
mov ecx, ebp
call fcn.140079570
mov rdi, rax
test rax, rax
je 0x140078fbe
mov rcx, r14
lea edx, [r13 + 2]
cmp ebp, 0xffffffff
je 0x140078e8e
mov edx, ebp
call fcn.140079b94
mov rbx, rax
test rax, rax
je 0x140078fb6
mov qword [rax + 0x40], rdi
mov qword [rbx + 0x60], r13
mov dword [rbx + 0x68], r13d
mov dword [rbx + 0x20], r13d
cmp r14, 0xffffffffffffffff
lea r8, [rsi + 0x10]
cmove r14, rax
xor edx, edx
mov qword [rax + 0x48], r14
mov rax, qword [rax + 8]
mov qword [rbx + 0x58], rax
mov rcx, qword [0x140845c04]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx + 0x38], rax
test rax, rax
je 0x140078ef8
lea ecx, [rsi + 0x10]
mov dword [rax + 8], ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], r13
mov rax, qword [rbx + 0x38]
add rax, 0x10
mov qword [rbx + 0x70], rax
cmp ebp, 0xffffffff
je 0x140078f01
mov dword [rbx + 0x50], r15d
mov rdx, rbx
mov rcx, rdi
call fcn.140102dd0
mov ebp, r13d
mov r14d, 0x4000
test esi, esi
jle 0x140078fb2
lea eax, [r14 + rbp]
cmp eax, esi
jle 0x140078f2b
mov r14d, esi
sub r14d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.140102120
mov r15, rax
test rax, rax
je 0x140078fa0
lea r9, [rsp + 0x78]
mov r8d, r14d
mov rdx, rax
mov rcx, r12
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [rsp + 0x78]
add ebp, edx
cmp dword [rbx + 0x20], r13d
jne 0x140078f72
mov rcx, r15
call fcn.14007964c
mov dword [rbx + 0x20], eax
mov edx, dword [rsp + 0x78]
mov rcx, rdi
cmp ebp, esi
jl 0x140078f81
mov r8d, 1
jmp 0x140078f84
xor r8d, r8d
call fcn.140102610
test eax, eax
je 0x140078f93
cmp ebp, esi
jl 0x140078f1d
jmp 0x140078fb2
mov rcx, rdi
call fcn.140102450
mov dword [rbx + 0x24], eax
jmp 0x140078fa7
mov dword [rbx + 0x24], 1
mov rdx, rdi
mov rcx, rbx
call fcn.140079748
mov qword [rbx + 0x40], r13
mov rcx, rdi
call fcn.1401027a0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rbx
jmp 0x140078fce
xor eax, eax
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140079e54
Capabilities:
Create thread

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
lea rax, [r11 + 0x18]
mov r9, rdx
mov r8, rcx
mov qword [r11 - 0x10], rax
xor edi, edi
mov edx, 0x1000
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbp, rax
test rax, rax
je 0x140079f1a
lea rcx, [0x1408c3a30]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1408467d0]
jmp 0x140079ede
lea rsi, [rbx + 0x10]
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140079edb
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rbx]
lea rcx, [0x1408467d0]
mov rdx, rsi
call fcn.1400fa064
jmp 0x140079ede
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140079eab
mov rdx, qword [0x140840f00]
lea rcx, [0x1408467d0]
mov rdi, rdx
inc rdx
mov qword [0x140840f00], rdx
lea edx, [rbx + 0x20]
call fcn.1400fa0ac
lea rcx, [0x1408c3a30]
mov qword [rax], rbp
mov qword [rax + 8], rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
mov rax, rdi
add rsp, 0x30
pop rdi
ret

Function at 0x14007a2e8
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x14007a35f
movsxd rdx, ecx
lea rcx, [0x14007a244]
call qword [sym.imp.USER32.DLL_EnumWindows]
mov rbx, qword [0x1408467e0]
test rbx, rbx
je 0x14007a3d2
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x14007a355
cmp byte [rbx + 0x20], 0
je 0x14007a355
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 0x14007a31b
jmp 0x14007a3d2
mov rbx, qword [0x1408467e0]
test rbx, rbx
je 0x14007a3d2
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x14007a3ca
cmp byte [rbx + 0x21], 0
je 0x14007a38e
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x14007a3ba
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, [0x1408467e0]
call fcn.1400fa064
mov rbx, rdi
test rdi, rdi
jne 0x14007a36b
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x14007aaa0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
mov rdx, rcx
mov rcx, qword [0x1408c3a70]
call fcn.1400f9c50
test rax, rax
je 0x14007aadd
cmp dword [rax + 0x28], 0
je 0x14007aadd
mov rcx, qword [rax + 0x18]
mov r9d, ebx
mov r8d, dword [rcx + 4]
mov edx, dword [rcx]
mov rcx, qword [rax + 0x10]
add rsp, 0x20
pop rbx
jmp fcn.14007a6c0
mov ecx, ebx
add rsp, 0x20
pop rbx
jmp fcn.1400fad90
Function at 0x140098368
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, edx
xor r8d, r8d
xor edx, edx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor ebp, ebp
mov edi, eax
test eax, eax
je 0x140098396
dec edi
mov edx, ebx
mov ecx, edi
call fcn.1400fa930
lea r8d, [rdi + 1]
mov rcx, rsi
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rsi, qword [rsp + 0x40]
movsxd rcx, edi
mov word [rbx + rcx*2], bp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140098448
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [0x1408c3ab0]
call fcn.1400f9380
xor ebp, ebp
or esi, 0xffffffff
mov r14, rax
mov ebx, ebp
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
movzx edx, word [rax]
test dx, dx
je 0x140098545
mov rcx, qword [rsp + 0x40]
mov r9w, 0x22
cmp dx, 0x20
jne 0x14009849f
add rax, 2
cmp word [rax], 0x20
je 0x140098495
movzx edx, word [rax]
mov r8d, 1
cmp dx, r9w
jne 0x1400984dd
add rax, 2
mov rbx, rax
movzx ecx, word [rax]
test cx, cx
je 0x14009851d
cmp cx, r9w
je 0x1400984cf
add rax, 2
movzx ecx, word [rax]
test cx, cx
jne 0x1400984bd
cmp word [rax], bp
je 0x14009851d
mov rcx, rax
add rax, 2
jmp 0x140098525
test dx, dx
je 0x140098522
mov rbx, rax
cmp dx, 0x20
je 0x1400984cf
add rax, 2
cmp word [rax], r9w
jne 0x140098513
add rax, 2
movzx ecx, word [rax]
test cx, cx
je 0x14009851d
cmp cx, r9w
je 0x140098513
add rax, 2
movzx ecx, word [rax]
test cx, cx
jne 0x140098501
movzx edx, word [rax]
test dx, dx
jne 0x1400984e5
jmp 0x1400984cf
mov rcx, rax
jmp 0x140098525
mov r8d, ebp
cmp dword [r14], esi
jne 0x14009852f
test rdi, rdi
jne 0x14009854f
test r8d, r8d
je 0x140098536
inc esi
movzx edx, word [rax]
mov rbx, rbp
test dx, dx
jne 0x14009848f
test rdi, rdi
jne 0x140098564
movsxd rax, esi
jmp 0x140098566
test rbx, rbx
je 0x140098564
sub rcx, rbx
mov rax, rbx
sar rcx, 1
mov dword [rdi], ecx
inc dword [r14]
jmp 0x140098566
mov dword [rdi], ebp
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x14009857c
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x1408c3ab0]
call fcn.1400f9380
xor ecx, ecx
add rsp, 0x28
jmp fcn.140098448
Function at 0x140098610
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov ebx, ecx
mov rcx, qword [0x1408c3ab0]
xor ebp, ebp
mov esi, edx
mov dword [rax + 8], ebp
call fcn.1400f9380
test ebx, ebx
js 0x14009863f
mov dword [rax], ebx
lea rcx, [rsp + 0x30]
call fcn.140098448
mov edi, dword [rsp + 0x30]
mov edx, esi
mov ecx, edi
mov rbx, rax
call fcn.1400fa930
mov ecx, ebp
jmp 0x14009867b
test edi, edi
je 0x140098680
movzx edx, word [rbx]
cmp dx, 0x22
jne 0x14009866e
inc ecx
jmp 0x140098675
mov word [rax], dx
add rax, 2
add rbx, 2
dec edi
cmp word [rbx], bp
jne 0x14009865d
mov word [rax], bp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
jmp fcn.1400faa70

Function at 0x14009873c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
test r8d, r8d
jle 0x1400987a3
mov rcx, qword [rbp + 0x18]
and dword [rsp + 0x50], 0
and qword [rsp + 0x20], 0
mov r8d, edi
movsxd rdx, ebx
lea r9, [rsp + 0x50]
sub r8d, ebx
add rdx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140098795
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x14009879f
add ebx, dword [rsp + 0x50]
cmp ebx, edi
jge 0x1400987a3
jmp 0x140098760
add ebx, dword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
movsxd rax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140098888
Capabilities:
Read file on windows

Disassembly:
mov rcx, qword [rcx + 0x18]
jmp 0x140098894
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x48
xor eax, eax
mov r12, rcx
mov ecx, 0x1000
mov r15d, r8d
mov r14d, edx
mov edi, ecx
mov esi, eax
mov r13d, eax
cmp edx, 0x18
je 0x1400989ab
cmp edx, 2
je 0x1400989ab
mov rcx, qword [0x140845c04]
xor edx, edx
mov r8d, 0x2000
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea r9, [rbp - 0x14]
lea r8d, [r13 + 2]
lea rdx, [rbp - 0x18]
xor r14d, r14d
mov rcx, r12
mov rbx, rax
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140098993
mov r13, qword [rbp + 0x48]
xor r15d, r15d
mov r12d, edi
cmp dword [rbp - 0x14], 2
jne 0x14009898c
test edi, edi
jne 0x14009894c
mov rcx, qword [0x140845c04]
movsxd r9, r12d
lea edx, [rdi + 8]
add r9, r9
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edi, 0x1000
mov rbx, rax
movzx eax, word [rbp - 0x18]
cmp ax, 0xa
je 0x14009898c
cmp ax, 0xd
je 0x14009896c
mov word [r14 + rbx], ax
inc esi
inc r12d
add r14, 2
dec edi
lea r9, [rbp - 0x14]
lea rdx, [rbp - 0x18]
mov r8d, 2
mov rcx, r13
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140098921
mov r15d, dword [rbp + 0x58]
xor r14d, r14d
movsxd rax, esi
mov edx, r15d
mov rcx, rbx
mov word [rbx + rax*2], r14w
call fcn.140148e30
jmp 0x140098a73
mov r8, rcx
mov rcx, qword [0x140845c04]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
and qword [rsp + 0x20], rsi
lea r9, [rbp - 0x14]
lea rdx, [rbp + 0x60]
mov r8d, 1
mov rcx, r12
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140098a54
mov r15, qword [rbp + 0x48]
mov r12d, edi
xor r14d, r14d
cmp dword [rbp - 0x14], 1
jne 0x140098a4c
test edi, edi
jne 0x140098a12
mov rcx, qword [0x140845c04]
lea edx, [rdi + 8]
movsxd r9, r12d
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edi, 0x1000
mov rbx, rax
mov al, byte [rbp + 0x60]
cmp al, 0xa
je 0x140098a4c
cmp al, 0xd
je 0x140098a2c
mov byte [r13 + rbx], al
inc esi
inc r12d
inc r13
dec edi
lea r9, [rbp - 0x14]
lea rdx, [rbp + 0x60]
mov r8d, 1
mov rcx, r15
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400989ea
mov r14d, dword [rbp + 0x50]
mov r15d, dword [rbp + 0x58]
movsxd rax, esi
mov edx, r15d
mov rcx, rbx
mov byte [rax + rbx], 0
cmp r14d, 0x18
jne 0x140098a6e
call fcn.140148e90
jmp 0x140098a73
call fcn.140148c60
mov rcx, qword [0x140845c04]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140098894
Capabilities:
Read file on windows

Disassembly:
mov rcx, qword [rcx + 0x18]
jmp 0x140098894
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x48
xor eax, eax
mov r12, rcx
mov ecx, 0x1000
mov r15d, r8d
mov r14d, edx
mov edi, ecx
mov esi, eax
mov r13d, eax
cmp edx, 0x18
je 0x1400989ab
cmp edx, 2
je 0x1400989ab
mov rcx, qword [0x140845c04]
xor edx, edx
mov r8d, 0x2000
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea r9, [rbp - 0x14]
lea r8d, [r13 + 2]
lea rdx, [rbp - 0x18]
xor r14d, r14d
mov rcx, r12
mov rbx, rax
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140098993
mov r13, qword [rbp + 0x48]
xor r15d, r15d
mov r12d, edi
cmp dword [rbp - 0x14], 2
jne 0x14009898c
test edi, edi
jne 0x14009894c
mov rcx, qword [0x140845c04]
movsxd r9, r12d
lea edx, [rdi + 8]
add r9, r9
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edi, 0x1000
mov rbx, rax
movzx eax, word [rbp - 0x18]
cmp ax, 0xa
je 0x14009898c
cmp ax, 0xd
je 0x14009896c
mov word [r14 + rbx], ax
inc esi
inc r12d
add r14, 2
dec edi
lea r9, [rbp - 0x14]
lea rdx, [rbp - 0x18]
mov r8d, 2
mov rcx, r13
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140098921
mov r15d, dword [rbp + 0x58]
xor r14d, r14d
movsxd rax, esi
mov edx, r15d
mov rcx, rbx
mov word [rbx + rax*2], r14w
call fcn.140148e30
jmp 0x140098a73
mov r8, rcx
mov rcx, qword [0x140845c04]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
and qword [rsp + 0x20], rsi
lea r9, [rbp - 0x14]
lea rdx, [rbp + 0x60]
mov r8d, 1
mov rcx, r12
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140098a54
mov r15, qword [rbp + 0x48]
mov r12d, edi
xor r14d, r14d
cmp dword [rbp - 0x14], 1
jne 0x140098a4c
test edi, edi
jne 0x140098a12
mov rcx, qword [0x140845c04]
lea edx, [rdi + 8]
movsxd r9, r12d
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edi, 0x1000
mov rbx, rax
mov al, byte [rbp + 0x60]
cmp al, 0xa
je 0x140098a4c
cmp al, 0xd
je 0x140098a2c
mov byte [r13 + rbx], al
inc esi
inc r12d
inc r13
dec edi
lea r9, [rbp - 0x14]
lea rdx, [rbp + 0x60]
mov r8d, 1
mov rcx, r15
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400989ea
mov r14d, dword [rbp + 0x50]
mov r15d, dword [rbp + 0x58]
movsxd rax, esi
mov edx, r15d
mov rcx, rbx
mov byte [rax + rbx], 0
cmp r14d, 0x18
jne 0x140098a6e
call fcn.140148e90
jmp 0x140098a73
call fcn.140148c60
mov rcx, qword [0x140845c04]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14009a8e0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
xor ebx, ebx
mov rax, rdx
mov r14, rcx
test rdx, rdx
je 0x14009a9a2
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 1]
xor r9d, r9d
mov edx, 0x80000000
mov rcx, rax
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
test rax, rax
je 0x14009a9a2
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, qword [0x140845c04]
xor edx, edx
movsxd rbp, eax
mov r8, rbp
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x14009a999
lea r9, [rsp + 0x68]
mov r8d, ebp
mov rdx, rax
mov rcx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r8d, ebp
mov rdx, rsi
mov rcx, r14
call fcn.14009afc0
mov rcx, qword [0x140845c04]
mov r8, rsi
xor edx, edx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x70]
mov rax, rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret

Function at 0x14009a9b8
Capabilities:
Create thread

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rsi, rcx
mov rdx, rcx
mov rcx, qword [0x1408c3b30]
xor ebx, ebx
call fcn.1400f9c50
mov rdi, rax
test rax, rax
je 0x14009aab0
mov rcx, rsi
call fcn.14009abd4
mov eax, dword [rdi + 0x18]
mov rcx, qword [rdi + 0x10]
cdq
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x30], rbx
sub eax, edx
lea esi, [rbx + 1]
lea r9, [rsp + 0x78]
sar eax, 1
mov dword [rdi + 8], esi
mov r10, qword [rcx]
mov r8d, eax
lea rax, [rsp + 0x68]
xor edx, edx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call qword [r10 + 0x58]
test eax, eax
jne 0x14009aa5d
mov eax, dword [rdi + 0x18]
mov rcx, qword [rdi]
cdq
sub eax, edx
mov rdx, qword [rsp + 0x78]
sar eax, 1
mov r8d, eax
call fcn.14009aeb0
mov rcx, qword [rdi + 0x10]
mov r8d, dword [rsp + 0x68]
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x78]
xor r9d, r9d
mov dword [rsp + 0x20], ebx
call qword [rax + 0x98]
lea rax, [rsp + 0x70]
lea r8, [0x14009aabc]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov edx, 0x2000
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x14009aa92
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, esi
mov rcx, qword [rdi + 0x10]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x68]
mov rcx, qword [rdi + 0x10]
mov r9d, esi
mov rax, qword [rcx]
xor r8d, r8d
xor edx, edx
call qword [rax + 0x60]
movsxd rax, ebx
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400bda5c
Capabilities:
Create thread

Disassembly:
or r8d, 0xffffffff
xor edx, edx
jmp 0x1400bda5c
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov r12d, edx
mov r15, rcx
mov rdx, rcx
mov rcx, qword [0x1408be928]
mov esi, r8d
xor r14d, r14d
call fcn.1400f9c50
mov rbx, rax
test rax, rax
je 0x1400bdc41
mov rcx, qword [rax]
mov qword [rsp + 0x30], rcx
cmp qword [rax + 0x20], r14
je 0x1400bdb42
mov rcx, r15
call fcn.1400bddc4
jmp 0x1400bdac0
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [rbx + 0x2d], r14b
jne 0x1400bdab5
mov rcx, qword [rbx + 0x20]
call fcn.1400be39c
mov edi, 1
xor edx, edx
mov rcx, rbx
mov dword [rbx + 0x30], r12d
mov byte [rbx + 0x2c], dil
call fcn.1400bd9a4
lea rax, [rsp + 0x88]
lea r8, [0x1400bdc5c]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], r14d
mov r9, rbx
mov edx, 0x2000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x1400bdb1d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xffffffff
je 0x1400bdb2c
mov edx, esi
mov rcx, r15
call fcn.1400bdecc
mov rcx, qword [rbx]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x68]
mov rcx, qword [rbx]
mov r9d, edi
jmp 0x1400bdbed
mov edi, 1
mov ebp, r14d
test dil, r12b
cmovne ebp, edi
test r12b, 2
je 0x1400bdbfa
mov rcx, rax
call fcn.1400bd790
lea rcx, [rbx + 8]
lea edx, [rdi + 0x1f]
call fcn.1400fa0ac
mov rcx, qword [0x1408be948]
mov rdx, qword [rsp + 0x30]
mov r9, qword [rcx]
lea r8, [rsp + 0x30]
mov r14, rax
call qword [r9 + 0x28]
test eax, eax
jne 0x1400bdc41
mov rcx, qword [rsp + 0x30]
mov byte [r14 + 9], bpl
mov byte [r14 + 8], dil
mov qword [r14], rcx
mov rcx, qword [rsp + 0x30]
mov edx, dword [rbx + 0x14]
mov rax, qword [rcx]
call qword [rax + 0x88]
mov rcx, qword [rsp + 0x30]
mov edx, dword [rbx + 0x10]
mov rax, qword [rcx]
call qword [rax + pe_nt_image_headers64]
cmp esi, 0xffffffff
je 0x1400bdbd7
mov r8, r14
mov edx, esi
mov rcx, r15
call fcn.1400bded4
jmp 0x1400bdbe5
mov rcx, qword [rsp + 0x30]
mov edx, dword [rbx + 0x18]
mov rax, qword [rcx]
call qword [rax + 0x78]
mov rcx, qword [rsp + 0x30]
mov r9d, ebp
mov rax, qword [rcx]
xor r8d, r8d
xor edx, edx
call qword [rax + 0x60]
jmp 0x1400bdc41
mov rax, qword [rcx]
call qword [rax + 0x90]
mov rcx, qword [rsp + 0x30]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x68]
cmp esi, 0xffffffff
je 0x1400bdc1f
mov edx, esi
mov rcx, r15
call fcn.1400bdecc
mov rcx, qword [rsp + 0x30]
mov r9d, ebp
xor r8d, r8d
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x60]
test eax, eax
jne 0x1400bdc41
mov r14, rdi
mov byte [rbx + 0x2c], dil
mov byte [rbx + 0x2e], bpl
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rax, r14
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret