joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005d00a
Capabilities:
Set registry value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
mov qword [rbp - 8], 0
call fcn.1400c0910
mov rdx, qword [rbp + 0x18]
lea rax, [rbp + 0x18]
mov rcx, rax
call fcn.1400c0cd0
mov rdx, qword [rbp + 0x20]
lea rax, [rbp + 0x20]
mov rcx, rax
call fcn.1400c0cd0
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x40]
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x38]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp + 0x18]
mov rcx, rax
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp - 0x18]
mov qword [rsp + 0x40], rdx
mov rdx, qword [rbp - 0x10]
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0xf003f
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rdx, rcx
mov rcx, rax
call sub.ADVAPI32.dll_RegCreateKeyExW
mov qword [rbp - 0x20], rax
cmp qword [rbp - 0x20], 0
jne 0x14005d117
mov rax, qword [rbp + 0x20]
mov r10, rax
mov rax, qword [rbp - 0x40]
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x38]
mov qword [rsp + 0x28], rdx
mov rdx, qword [rbp + 0x30]
mov qword [rsp + 0x20], rdx
mov r9, rcx
mov r8d, 0
mov rdx, r10
mov rcx, rax
call sub.ADVAPI32.dll_RegSetValueExW
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x40]
mov rcx, rax
call sub.ADVAPI32.dll_RegCloseKey
mov qword [rbp - 0x30], rax
jmp 0x14005d118
nop
mov qword [rbp - 8], 0
mov rax, qword [rbp + 0x20]
mov rcx, rax
call fcn.1400c0ca0
mov rax, qword [rbp + 0x18]
mov rcx, rax
call fcn.1400c0ca0
mov rax, qword [rbp - 8]
add rsp, 0x90
pop rbp
ret

Function at 0x14005e476
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov qword [rbp - 0x10], 0
call fcn.1400c0910
mov qword [rbp - 8], 0
mov qword [rbp - 0x18], 0
mov rax, qword [rbp + 0x10]
mov r8, rax
mov edx, 0
mov ecx, 1
call sub.KERNEL32.dll_OpenProcess
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
je 0x14005e501
mov rax, qword [rbp - 0x18]
mov edx, 1
mov rcx, rax
call sub.KERNEL32.dll_TerminateProcess
mov qword [rbp - 0x28], rax
cmp qword [rbp - 0x28], 0
je 0x14005e4ee
mov qword [rbp - 8], 1
jmp 0x14005e4ef
nop
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sub.KERNEL32.dll_CloseHandle
mov qword [rbp - 0x30], rax
jmp 0x14005e502
nop
mov rax, qword [rbp - 8]
mov qword [rbp - 0x10], rax
nop
mov rax, qword [rbp - 0x10]
add rsp, 0x50
pop rbp
ret
Function at 0x140062328
Capabilities:
Get graphical window text

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov dword [rbp + 0x10], ecx
mov qword [rbp - 8], 0
mov eax, dword [rbp + 0x10]
cdqe
mov rcx, rax
call fcn.1400c0e10
call fcn.1400c0910
mov qword [rbp - 0x68], 0
mov rax, qword [0x140791c80]
test rax, rax
jne 0x14006238f
mov edx, 0
mov ecx, 0
call sub.USER32.dll_FindWindowW
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov qword [0x140791c88], rax
mov qword [0x140791c80], 1
jmp 0x1400623bb
nop
mov rax, qword [0x140791c88]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov edx, 2
mov rcx, rax
call sub.USER32.dll_GetWindow
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov qword [0x140791c88], rax
mov rax, qword [0x140791c88]
test rax, rax
je 0x1400624b8
mov rax, qword [0x140791c88]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rdx, 0xfffffffffffffff0
mov rcx, rax
call sub.USER32.dll_GetWindowLongPtrW
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x30]
and eax, 0x10000000
test rax, rax
je 0x1400624b2
mov rax, qword [0x140791c88]
mov qword [rbp - 0x38], rax
mov rax, qword [rbp - 0x38]
mov rdx, 0xffffffffffffffec
mov rcx, rax
call sub.USER32.dll_GetWindowLongPtrW
mov qword [rbp - 0x40], rax
mov rax, qword [rbp - 0x40]
and eax, 0x80
test rax, rax
jne 0x1400624b5
call fcn.1400c0980
call fcn.1400c0980
call fcn.1400c09e0
mov edx, eax
mov ecx, 0x100
call fcn.1400bdf10
call fcn.1400c09e0
mov edx, eax
lea rax, [rbp - 0x68]
mov rcx, rax
call fcn.1400c0bc0
mov rax, qword [0x140791c88]
mov qword [rbp - 0x48], rax
mov rax, qword [rbp - 0x68]
mov rdx, rax
mov rax, qword [rbp - 0x48]
mov r8d, 0x100
mov rcx, rax
call sub.USER32.dll_GetWindowTextW
mov qword [rbp - 0x50], rax
mov rax, qword [rbp - 0x68]
mov qword [rbp - 0x58], rax
lea rax, [0x140791cf8]
mov qword [rbp - 0x60], rax
mov rdx, qword [rbp - 0x58]
mov rax, qword [rbp - 0x60]
mov rcx, rax
call fcn.1400c0d40
test eax, eax
je 0x1400624d6
jmp 0x1400624b6
nop
jmp 0x1400624c4
nop
jmp 0x1400624c4
nop
mov qword [0x140791c80], 0
mov rax, qword [0x140791c88]
test rax, rax
je 0x1400624d9
nop
jmp 0x140062358
nop
jmp 0x1400624da
nop
call fcn.1400c0980
mov rax, qword [rbp - 0x68]
mov rcx, rax
call fcn.1400c0da0
call fcn.1400c0b30
mov qword [rbp - 8], rax
nop
mov rax, qword [rbp - 0x68]
mov rcx, rax
call fcn.1400c0ca0
mov rax, qword [rbp - 8]
add rsp, 0x90
pop rbp
ret
Function at 0x14006db30
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
sub rsp, 0xc8
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rdi
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
nop
cmp word [0x140000000], 0x5a4d
je 0x14006db6d
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
lea rdi, [0x140000000]
jmp 0x14006dbfb
movsxd rax, dword [0x14000003c]
lea rdi, [0x140000000]
add rax, rdi
cmp dword [rax], 0x4550
je 0x14006db91
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x14006dbfb
movzx ecx, word [rax + 0x18]
cmp ecx, 0x10b
je 0x14006dbd8
cmp ecx, 0x20b
je 0x14006dbb0
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x14006dbfb
cmp dword [rax + 0x84], 0xe
ja 0x14006dbc4
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x14006dbfb
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0xd0], ebx
jmp 0x14006dbfb
cmp dword [rax + 0x74], 0xe
ja 0x14006dbe9
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x14006dbfb
xor ebx, ebx
cmp dword [rax + 0xe8], ebx
setne bl
mov dword [rsp + 0xd0], ebx
mov ecx, 2
call qword [sym.imp.msvcrt.dll___set_app_type]
mov qword [0x140794ae0], 0xffffffffffffffff
mov qword [0x140794b00], 0xffffffffffffffff
mov rcx, qword [sym.imp.msvcrt.dll__fmode]
mov eax, dword [0x140791e50]
mov dword [rcx], eax
mov rcx, qword [sym.imp.msvcrt.dll__commode]
mov eax, dword [0x140791e54]
mov dword [rcx], eax
call fcn.14006de20
cmp dword [0x140794b20], 0
jne 0x14006dc55
lea rcx, [0x14006de30]
call qword [sym.imp.msvcrt.dll___setusermatherr]
lea rdx, [0x1401ab5c8]
lea rcx, [0x1401ab5c0]
call sub.msvcrt.dll__initterm
mov r11d, dword [0x140791e58]
mov dword [rsp + 0xd8], r11d
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x20], rax
mov r9d, dword [0x140791e5c]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x3c]
call qword [sym.imp.msvcrt.dll___getmainargs]
lea rdx, [0x1401ab5b8]
lea rcx, [0x1401ab5b0]
call sub.msvcrt.dll__initterm
mov r11, qword [sym.imp.msvcrt.dll__acmdln]
mov r8, qword [r11]
mov qword [rsp + 0x30], r8
cmp byte [r8], 0x22
jne 0x14006dcf6
nop
nop
inc r8
mov qword [rsp + 0x30], r8
movzx eax, byte [r8]
test al, al
je 0x14006dce6
cmp al, 0x22
je 0x14006dce6
jmp 0x14006dcd0
cmp byte [r8], 0x22
jne 0x14006dd06
inc r8
mov qword [rsp + 0x30], r8
jmp 0x14006dd06
cmp byte [r8], 0x20
jbe 0x14006dd06
inc r8
mov qword [rsp + 0x30], r8
jmp 0x14006dcf6
movzx eax, byte [r8]
test al, al
je 0x14006dd1c
cmp al, 0x20
ja 0x14006dd1c
inc r8
mov qword [rsp + 0x30], r8
jmp 0x14006dd06
test byte [rsp + 0x8c], 1
je 0x14006dd31
movzx r9d, word [rsp + 0x90]
jmp 0x14006dd37
mov r9d, 0xa
xor edx, edx
mov rcx, rdi
call fcn.14006379b
mov edi, eax
mov dword [rsp + 0x38], eax
test ebx, ebx
jne 0x14006dd53
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
call qword [sym.imp.msvcrt.dll__cexit]
jmp 0x14006dd77
mov eax, edi
jmp 0x14006dd80
mov rbx, qword [rsp + 0xe0]
mov rdi, qword [rsp + 0xe8]
add rsp, 0xc8
ret
Function at 0x14006e8d4
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 0x14006e99a
lea rcx, [0x140794b60]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140791e70]
jmp 0x14006e95e
lea rsi, [rbx + 0x10]
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14006e95b
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rbx]
lea rcx, [0x140791e70]
mov rdx, rsi
call fcn.1400c03ac
jmp 0x14006e95e
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14006e92b
mov rdx, qword [reloc.WS2_32.dll_accept]
lea rcx, [0x140791e70]
mov rdi, rdx
inc rdx
mov qword [reloc.WS2_32.dll_accept], rdx
lea edx, [rbx + 0x20]
call fcn.1400c03f4
lea rcx, [0x140794b60]
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 0x14006eab0
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.14006ea40
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140794b60]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140791e70]
jmp 0x14006eaec
cmp qword [rbx + 0x18], rdi
je 0x14006eaf3
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14006eae3
jmp 0x14006eb0d
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x140791e70]
call fcn.1400c03ac
lea rcx, [0x140794b60]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14006f1c0
Capabilities:
Create thread

Disassembly:
or r8d, 0xffffffff
xor edx, edx
jmp 0x14006f1c0
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 [0x140791e78]
mov esi, r8d
xor r14d, r14d
call fcn.1400bf984
mov rbx, rax
test rax, rax
je 0x14006f3a5
mov rcx, qword [rax]
mov qword [rsp + 0x30], rcx
cmp qword [rax + 0x20], r14
je 0x14006f2a6
mov rcx, r15
call fcn.14006f528
jmp 0x14006f224
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [rbx + 0x2d], r14b
jne 0x14006f219
mov rcx, qword [rbx + 0x20]
call fcn.14006fb1c
mov edi, 1
xor edx, edx
mov rcx, rbx
mov dword [rbx + 0x30], r12d
mov byte [rbx + 0x2c], dil
call fcn.14006f108
lea rax, [rsp + 0x88]
lea r8, [0x14006f3c0]
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 0x14006f281
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xffffffff
je 0x14006f290
mov edx, esi
mov rcx, r15
call fcn.14006f630
mov rcx, qword [rbx]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x68]
mov rcx, qword [rbx]
mov r9d, edi
jmp 0x14006f351
mov edi, 1
mov ebp, r14d
test dil, r12b
cmovne ebp, edi
test r12b, 2
je 0x14006f35e
mov rcx, rax
call fcn.14006f064
lea rcx, [rbx + 8]
lea edx, [rdi + 0x1f]
call fcn.1400c03f4
mov rcx, qword [0x140791ea8]
mov rdx, qword [rsp + 0x30]
mov r9, qword [rcx]
lea r8, [rsp + 0x30]
mov r14, rax
call qword [r9 + 0x28]
test eax, eax
jne 0x14006f3a5
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 0x14006f33b
mov r8, r14
mov edx, esi
mov rcx, r15
call fcn.14006f638
jmp 0x14006f349
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 0x14006f3a5
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 0x14006f383
mov edx, esi
mov rcx, r15
call fcn.14006f630
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 0x14006f3a5
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
Function at 0x14006fcb4
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x14006fd2b
movsxd rdx, ecx
lea rcx, [0x14006fc10]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rbx, qword [0x140791ef8]
test rbx, rbx
je 0x14006fd9e
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x14006fd21
cmp byte [rbx + 0x20], 0
je 0x14006fd21
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 0x14006fce7
jmp 0x14006fd9e
mov rbx, qword [0x140791ef8]
test rbx, rbx
je 0x14006fd9e
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x14006fd96
cmp byte [rbx + 0x21], 0
je 0x14006fd5a
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.dll_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x14006fd86
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, [0x140791ef8]
call fcn.1400c03ac
mov rbx, rdi
test rdi, rdi
jne 0x14006fd37
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x140070350
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
mov rdx, rcx
mov rcx, qword [0x140795100]
call fcn.1400bf984
test rax, rax
je 0x14007038d
cmp dword [rax + 0x28], 0
je 0x14007038d
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.14006ff70
mov ecx, ebx
add rsp, 0x20
pop rbx
jmp fcn.1400c14c0
Function at 0x14008dd54
Capabilities:
Read file on windows

Disassembly:
mov rcx, qword [rcx + 0x18]
mov r9d, r8d
or r8d, 0xffffffff
jmp 0x14008e280
mov rax, rsp
mov dword [rax + 0x20], r9d
mov dword [rax + 0x18], r8d
mov dword [rax + 0x10], edx
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x48
xor eax, eax
mov ecx, 0x1000
mov r15d, r9d
mov r13d, r8d
mov edi, ecx
mov esi, eax
mov r14d, eax
mov r12d, eax
cmp edx, 0x18
je 0x14008e3bf
cmp edx, 2
je 0x14008e3bf
mov rcx, qword [0x140790968]
xor edx, edx
mov r8d, 0x2000
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor ecx, ecx
lea r9, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x90]
lea r8d, [r12 + 2]
lea rdx, [rsp + 0x34]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor ecx, ecx
test eax, eax
je 0x14008e3a8
mov r15, qword [rsp + 0x90]
mov ebp, edi
cmp dword [rsp + 0x38], 2
jne 0x14008e3a0
cmp r13d, 0xffffffff
je 0x14008e32d
cmp r14d, r13d
jae 0x14008e3a0
add r14d, 2
test edi, edi
jne 0x14008e358
mov rcx, qword [0x140790968]
movsxd r9, ebp
lea edx, [rdi + 8]
add r9, r9
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edi, 0x1000
xor ecx, ecx
mov rbx, rax
movzx eax, word [rsp + 0x34]
cmp ax, 0xa
je 0x14008e3a0
cmp ax, 0xd
je 0x14008e378
mov word [r12 + rbx], ax
inc esi
inc ebp
add r12, 2
dec edi
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x38]
lea rdx, [rsp + 0x34]
mov r8d, 2
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor ecx, ecx
test eax, eax
jne 0x14008e31b
mov r15d, dword [rsp + 0xa8]
movsxd rax, esi
mov edx, r15d
mov word [rbx + rax*2], cx
mov rcx, rbx
call fcn.14015fa80
jmp 0x14008e488
mov r8, rcx
mov rcx, qword [0x140790968]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15d, dword [rsp + 0xa0]
mov rbp, qword [rsp + 0x90]
mov rbx, rax
mov r13d, edi
cmp r15d, 0xffffffff
je 0x14008e3f2
cmp r14d, r15d
jae 0x14008e45c
xor ecx, ecx
lea r9, [rsp + 0x38]
lea rdx, [rsp + 0x30]
lea r8d, [rcx + 1]
mov qword [rsp + 0x20], rcx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14008e45c
cmp dword [rsp + 0x38], 1
jne 0x14008e45c
inc r14d
test edi, edi
jne 0x14008e440
mov rcx, qword [0x140790968]
lea edx, [rdi + 8]
movsxd r9, r13d
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edi, 0x1000
mov rbx, rax
mov al, byte [rsp + 0x30]
cmp al, 0xa
je 0x14008e45c
cmp al, 0xd
je 0x14008e3e7
mov byte [r12 + rbx], al
inc esi
inc r13d
inc r12
dec edi
jmp 0x14008e3e7
mov r15d, dword [rsp + 0xa8]
xor ecx, ecx
cmp dword [rsp + 0x98], 0x18
movsxd rax, esi
mov edx, r15d
mov byte [rax + rbx], cl
mov rcx, rbx
jne 0x14008e483
call fcn.14015fae0
jmp 0x14008e488
call fcn.14015f8b0
mov rcx, qword [0x140790968]
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 rbp
pop rbx
ret
Function at 0x14008ddf8
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 0x14008de5f
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 0x14008de51
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x14008de5b
add ebx, dword [rsp + 0x50]
cmp ebx, edi
jge 0x14008de5f
jmp 0x14008de1c
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 0x14008dec8
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 0x14008def6
dec edi
mov edx, ebx
mov ecx, edi
call fcn.1400c1380
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 0x14008e02c
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 [0x1407951a0]
call fcn.1400bf780
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 0x14008e129
mov rcx, qword [rsp + 0x40]
mov r9w, 0x22
cmp dx, 0x20
jne 0x14008e083
add rax, 2
cmp word [rax], 0x20
je 0x14008e079
movzx edx, word [rax]
mov r8d, 1
cmp dx, r9w
jne 0x14008e0c1
add rax, 2
mov rbx, rax
movzx ecx, word [rax]
test cx, cx
je 0x14008e101
cmp cx, r9w
je 0x14008e0b3
add rax, 2
movzx ecx, word [rax]
test cx, cx
jne 0x14008e0a1
cmp word [rax], bp
je 0x14008e101
mov rcx, rax
add rax, 2
jmp 0x14008e109
test dx, dx
je 0x14008e106
mov rbx, rax
cmp dx, 0x20
je 0x14008e0b3
add rax, 2
cmp word [rax], r9w
jne 0x14008e0f7
add rax, 2
movzx ecx, word [rax]
test cx, cx
je 0x14008e101
cmp cx, r9w
je 0x14008e0f7
add rax, 2
movzx ecx, word [rax]
test cx, cx
jne 0x14008e0e5
movzx edx, word [rax]
test dx, dx
jne 0x14008e0c9
jmp 0x14008e0b3
mov rcx, rax
jmp 0x14008e109
mov r8d, ebp
cmp dword [r14], esi
jne 0x14008e113
test rdi, rdi
jne 0x14008e133
test r8d, r8d
je 0x14008e11a
inc esi
movzx edx, word [rax]
mov rbx, rbp
test dx, dx
jne 0x14008e073
test rdi, rdi
jne 0x14008e148
movsxd rax, esi
jmp 0x14008e14a
test rbx, rbx
je 0x14008e148
sub rcx, rbx
mov rax, rbx
sar rcx, 1
mov dword [rdi], ecx
inc dword [r14]
jmp 0x14008e14a
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 0x14008e160
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x1407951a0]
call fcn.1400bf780
xor ecx, ecx
add rsp, 0x28
jmp fcn.14008e02c

Function at 0x14008e1f4
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 [0x1407951a0]
xor ebp, ebp
mov esi, edx
mov dword [rax + 8], ebp
call fcn.1400bf780
test ebx, ebx
js 0x14008e223
mov dword [rax], ebx
lea rcx, [rsp + 0x30]
call fcn.14008e02c
mov edi, dword [rsp + 0x30]
mov edx, esi
mov ecx, edi
mov rbx, rax
call fcn.1400c1380
mov ecx, ebp
jmp 0x14008e25f
test edi, edi
je 0x14008e264
movzx edx, word [rbx]
cmp dx, 0x22
jne 0x14008e252
inc ecx
jmp 0x14008e259
mov word [rax], dx
add rax, 2
add rbx, 2
dec edi
cmp word [rbx], bp
jne 0x14008e241
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.1400c1500