joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401c8770
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x16
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x168]
mov rax, qword [0x14065e100]
xor rax, rbp
mov qword [rbp + 0x100], rax
lea rcx, [0x14068af5a]
call fcn.1401213a0
nop
mov edx, 8
lea rcx, [rbp + 8]
call fcn.1401df050
mov rdx, qword [rbp + 0x138]
lea rcx, [rbp + 8]
call fcn.1401caf80
nop
lea rax, [0x1401c8060]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x130]
add rax, 8
mov qword [rbp + 0xf8], rax
lea rcx, [rbp + 8]
call fcn.1401e5610
mov rcx, qword [rbp + 0xf8]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rbp + 0x28]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll__beginthreadex]
mov rcx, qword [rbp + 0x130]
mov qword [rcx], rax
mov rax, qword [rbp + 0x130]
cmp qword [rax], 0
je 0x1401c884c
lea rcx, [rbp + 8]
call fcn.1401e69d0
nop
jmp 0x1401c8865
mov rax, qword [rbp + 0x130]
mov dword [rax + 8], 0
mov ecx, 6
call fcn.14011b8fb
nop
lea rcx, [rbp + 8]
call fcn.1401ce510
nop
lea rcx, [rbp - 0x30]
lea rdx, [0x140383090]
call fcn.14011ff4b
mov rcx, qword [rbp + 0x100]
xor rcx, rbp
call fcn.14011d6a6
lea rsp, [rbp + 0x118]
pop rdi
pop rbp
ret

Function at 0x140293b00
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x20]
lea rcx, [0x14068b572]
call fcn.1401213a0
nop
call fcn.140291ed0
mov qword [rbp + 8], rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
shr rax, 0x10
and rax, 0xffff
movzx eax, ax
mov dword [rbp + 0x44], eax
mov rax, qword [rbp + 8]
add rax, 0x2c
mov r9d, 4
mov r8, rax
mov edx, 0x20001004
mov ecx, dword [rbp + 0x44]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x140293b73
mov rax, qword [rbp + 8]
mov dword [rax + 0x2c], 0
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret
Function at 0x1403508b0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1401217ec
movzx eax, al
test eax, eax
jne 0x1403508d0
mov ecx, 7
call fcn.14011ffff
nop
mov byte [rsp + 0x20], 0
call fcn.1401201d5
mov byte [rsp + 0x21], al
cmp dword [0x140666980], 1
jne 0x1403508f4
mov ecx, 7
call fcn.14011ffff
nop
jmp 0x14035094c
cmp dword [0x140666980], 0
jne 0x140350947
mov dword [0x140666980], 1
lea rdx, [0x1403688c8]
lea rcx, [0x140368598]
call fcn.14011d57a
test eax, eax
je 0x140350928
mov eax, 0xff
jmp 0x140350a51
lea rdx, [0x140368488]
lea rcx, [section..rdata]
call fcn.140120185
mov dword [0x140666980], 2
jmp 0x14035094c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.14011feb0
call fcn.14011f1ae
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x1403509a9
mov rcx, qword [rsp + 0x30]
call fcn.14011cb11
movzx eax, al
test eax, eax
je 0x1403509a9
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x14068e020]
nop
call fcn.14011f730
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x1403509dd
mov rcx, qword [rsp + 0x38]
call fcn.14011cb11
movzx eax, al
test eax, eax
je 0x1403509dd
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140121017
nop
call fcn.140350b00
mov dword [rsp + 0x28], eax
call fcn.14011eea2
movzx eax, al
test eax, eax
jne 0x1403509fc
mov ecx, dword [rsp + 0x28]
call fcn.14011a7e9
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140350a0b
call fcn.140121170
nop
xor edx, edx
mov cl, 1
call fcn.14011c8e1
mov eax, dword [rsp + 0x28]
jmp 0x140350a51
add rsp, 0x68
ret
Function at 0x1400172e3
Capabilities:
Identify system language via api

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov dword [rbp + 0x10], ecx
mov qword [rbp - 8], 0
mov eax, dword [rbp + 0x10]
cdqe
mov rcx, rax
call fcn.14008c570
call fcn.14008c200
mov qword [rbp - 0x20], 0
call fcn.14008c450
call fcn.14008c450
call sub.KERNEL32.dll_GetUserDefaultLangID
mov qword [rbp - 0x10], rax
call fcn.14008c480
mov edx, eax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.14008a400
call fcn.14008c480
mov edx, eax
lea rax, [rbp - 0x20]
mov rcx, rax
call fcn.14008c130
mov rax, qword [rbp - 0x20]
mov rcx, rax
call fcn.14008a5e0
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 3
jne 0x140017395
call fcn.14008c450
lea rax, [0x1408700e0]
mov rcx, rax
call fcn.14008c250
mov rax, qword [rbp - 0x20]
mov rcx, rax
call fcn.14008c250
call fcn.14008c480
mov edx, eax
lea rax, [rbp - 0x20]
mov rcx, rax
call fcn.14008c130
jmp 0x140017396
nop
call fcn.14008c450
mov rax, qword [rbp - 0x20]
mov rcx, rax
call fcn.14008c250
call fcn.14008c540
mov qword [rbp - 8], rax
nop
mov rax, qword [rbp - 0x20]
mov rcx, rax
call fcn.14008c3e0
mov rax, qword [rbp - 8]
add rsp, 0x40
pop rbp
ret
Function at 0x14003103f
Capabilities:
Query environment variable

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xa0
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov qword [rbp - 8], 0
mov eax, dword [rbp + 0x18]
cdqe
mov rcx, rax
call fcn.14008c570
call fcn.14008c200
mov rax, qword [rbp + 0x10]
mov rdx, rax
lea rcx, [rbp + 0x10]
call fcn.14008c2c0
mov qword [rbp - 0x70], 0
mov qword [rbp - 0x78], 0
mov qword [rbp - 0x10], 0
call fcn.14008c450
call fcn.14008c450
call fcn.14008c480
mov edx, eax
mov ecx, 0x3e8
call fcn.14008b010
call fcn.14008c480
mov edx, eax
lea rax, [rbp - 0x70]
mov rcx, rax
call fcn.14008c130
mov rax, qword [rbp - 0x70]
mov qword [rbp - 0x18], rax
lea rax, str.WINDIR
mov rdx, qword [rbp - 0x18]
mov r8d, 0x3e8
mov rcx, rax
call sub.KERNEL32.dll_GetEnvironmentVariableW
mov qword [rbp - 0x20], rax
lea rax, [rbp - 0x78]
lea rdx, [0x140894840]
mov rcx, rax
call fcn.14008c330
call fcn.14008c450
call fcn.14008c450
mov rax, qword [rbp - 0x70]
mov rcx, rax
call fcn.14008c250
lea rax, str.System32
mov rcx, rax
call fcn.14008c250
call fcn.14008c400
call fcn.14008c450
lea rax, str.__c
mov rcx, rax
call fcn.14008c250
mov rax, qword [rbp + 0x10]
mov rcx, rax
call fcn.14008c250
call fcn.14008c400
call fcn.14008c450
mov rax, qword [rbp - 0x70]
mov rcx, rax
call fcn.14008c250
lea rax, str.System32cmd.exe
mov rcx, rax
call fcn.14008c250
call fcn.14008c540
mov qword [rbp - 0x28], rax
call fcn.14008c540
mov qword [rbp - 0x30], rax
call fcn.14008c540
mov qword [rbp - 0x38], rax
mov rcx, qword [rbp - 0x38]
mov rdx, qword [rbp - 0x30]
mov rax, qword [rbp - 0x28]
mov r9d, SafeArrayGetElemsize
mov r8, rcx
mov rcx, rax
call fcn.140078414
mov qword [rbp - 0x40], rax
call fcn.14008c4d0
mov rax, qword [rbp - 0x40]
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x140031297
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.140077d58
mov qword [rbp - 0x48], rax
cmp qword [rbp - 0x48], 0
je 0x140031284
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.1400778fc
mov qword [rbp - 0x50], rax
cmp qword [rbp - 0x50], 0
je 0x14003127e
call fcn.14008c450
mov rax, qword [rbp - 0x78]
mov rcx, rax
call fcn.14008c250
call fcn.14008c450
call fcn.14008c450
call fcn.14008c450
call fcn.14008c450
call fcn.14008c480
mov edx, eax
mov rax, qword [rbp - 0x10]
mov r8d, edx
mov edx, SafeArrayPutElement
mov rcx, rax
call fcn.140077e34
call fcn.14008c540
mov qword [rbp - 0x58], rax
call fcn.14008c480
mov edx, eax
mov rax, qword [rbp - 0x58]
mov rcx, rax
call fcn.14001499e
mov qword [rbp - 0x60], rax
call fcn.14008c480
lea rax, [0x14088bab0]
mov rcx, rax
call fcn.14008c250
call fcn.14008c480
mov edx, eax
lea rax, [rbp - 0x78]
mov rcx, rax
call fcn.14008c130
jmp 0x1400311bc
nop
jmp 0x1400311bc
nop
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.140077934
mov qword [rbp - 0x68], rax
jmp 0x140031298
nop
call fcn.14008c450
mov rax, qword [rbp - 0x78]
mov rcx, rax
call fcn.14008c250
call fcn.14008c540
mov qword [rbp - 8], rax
nop
mov rax, qword [rbp + 0x10]
mov rcx, rax
call fcn.14008c3e0
mov rax, qword [rbp - 0x70]
mov rcx, rax
call fcn.14008c3e0
mov rax, qword [rbp - 0x78]
mov rcx, rax
call fcn.14008c3e0
mov rax, qword [rbp - 8]
add rsp, 0xa0
pop rbp
ret
Function at 0x14003676d
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xa0
mov qword [rbp + 0x10], rcx
mov qword [rbp - 8], 0
call fcn.14008c200
mov qword [rbp - 0x58], 0
mov qword [rbp - 0x10], 0
mov qword [rbp - 0x18], 0
lea rax, str.Kernel32
mov rcx, rax
call sub.KERNEL32.dll_GetModuleHandleW
mov qword [rbp - 0x20], rax
lea rdx, str.GetCurrentProcessId
mov rax, qword [rbp - 0x20]
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov qword [rbp - 0x18], rax
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp + 0x10]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, rdx
mov r8d, 0
mov edx, 0
mov rcx, rax
call sub.KERNEL32.dll_CreateRemoteThread
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x30]
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x140036829
mov qword [rbp - 8], 0
jmp 0x140036876
nop
mov rax, qword [rbp - 0x10]
mov rdx, 0xffffffffffffffff
mov rcx, rax
call sub.KERNEL32.dll_WaitForSingleObject
mov qword [rbp - 0x38], rax
lea rax, [rbp - 0x58]
mov qword [rbp - 0x40], rax
mov rdx, qword [rbp - 0x40]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sub.KERNEL32.dll_GetExitCodeThread
mov qword [rbp - 0x48], rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sub.KERNEL32.dll_CloseHandle
mov qword [rbp - 0x50], rax
mov rax, qword [rbp - 0x58]
mov qword [rbp - 8], rax
nop
mov rax, qword [rbp - 8]
add rsp, 0xa0
pop rbp
ret
Function at 0x14003764e
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.14008c200
mov rdx, qword [rbp + 0x18]
lea rax, [rbp + 0x18]
mov rcx, rax
call fcn.14008c2c0
mov rdx, qword [rbp + 0x20]
lea rax, [rbp + 0x20]
mov rcx, rax
call fcn.14008c2c0
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 0x14003775b
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 0x14003775c
nop
mov qword [rbp - 8], 0
mov rax, qword [rbp + 0x20]
mov rcx, rax
call fcn.14008c3e0
mov rax, qword [rbp + 0x18]
mov rcx, rax
call fcn.14008c3e0
mov rax, qword [rbp - 8]
add rsp, 0x90
pop rbp
ret
Function at 0x140076f18
Capabilities:
Get file size
Read file on windows

Disassembly:
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 edi, edi
mov ebp, r8d
mov rax, rdx
mov r14, rcx
test rdx, rdx
je 0x140076ef8
cmp word [rdx], di
je 0x140076ef8
mov qword [r11 - 0x38], rdi
lea r12d, [rdi + 1]
mov r8d, r12d
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x140076ef3
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
movsxd r15, eax
test eax, eax
jle 0x140076eea
mov ecx, ebp
call fcn.140098768
mov rsi, rax
test rax, rax
je 0x140076eea
lea edx, [rdi + 2]
cmp ebp, 0xffffffff
mov rcx, r14
cmovne edx, ebp
call fcn.140099154
mov rbx, rax
test rax, rax
je 0x140076edf
mov qword [rax + 0x40], rsi
lea r8, [r15 + 0x10]
mov qword [rbx + 0x60], rdi
cmp r14, 0xffffffffffffffff
mov dword [rbx + 0x68], edi
cmove r14, rax
mov dword [rbx + 0x20], edi
mov qword [rax + 0x48], r14
xor edx, edx
mov rax, qword [rax + 8]
mov qword [rbx + 0x58], rax
mov rcx, qword [0x140893d68]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx + 0x38], rax
mov rcx, rax
test rax, rax
je 0x140076e0f
lea eax, [r15 + 0x10]
mov dword [rcx + 8], eax
mov rax, qword [rbx + 0x38]
mov qword [rax], rdi
mov rax, qword [rbx + 0x38]
add rax, 0x10
mov qword [rbx + 0x70], rax
cmp ebp, 0xffffffff
je 0x140076e18
mov dword [rbx + 0x50], r12d
mov rdx, rbx
mov rcx, rsi
call fcn.14008f3a0
mov ebp, edi
mov r14d, 0x4000
lea eax, [r14 + rbp]
cmp eax, r15d
jle 0x140076e3a
mov r14d, r15d
sub r14d, ebp
mov edx, r14d
mov rcx, rsi
call fcn.14008f3c0
mov r12, rax
test rax, rax
je 0x140076ec9
lea r9, [rsp + 0x78]
mov qword [rsp + 0x20], rdi
mov r8d, r14d
mov rdx, rax
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [rsp + 0x78]
cmp edx, r14d
jne 0x140076eb5
add ebp, edx
cmp dword [rbx + 0x20], edi
jne 0x140076e85
mov rcx, r12
call fcn.1400988a0
mov dword [rbx + 0x20], eax
mov edx, dword [rsp + 0x78]
mov rcx, rsi
cmp ebp, r15d
jl 0x140076e95
mov r8d, 1
jmp 0x140076e98
xor r8d, r8d
call fcn.14008f640
test eax, eax
je 0x140076ea8
cmp ebp, r15d
jl 0x140076e2b
jmp 0x140076edb
mov rcx, rsi
call fcn.14008f7a0
mov dword [rbx + 0x24], eax
jmp 0x140076ed0
lea rax, str.file_read_error
mov dword [rbx + 0x24], 0x100
mov qword [rbx + 0x30], rax
jmp 0x140076edb
mov dword [rbx + 0x24], 1
mov rdx, rsi
mov rcx, rbx
call fcn.14009884c
mov qword [rbx + 0x40], rdi
mov rcx, rsi
call fcn.14008f880
mov rdi, rbx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
jmp 0x140076efa
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
or r8d, 0xffffffff
jmp 0x140076cfc
Function at 0x140076f58
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 0x14007701c
lea rcx, [0x1408949c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1408949a0]
jmp 0x140076fe2
lea rsi, [rbx + 0x10]
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140076fdf
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rbx]
lea rcx, [0x1408949a0]
mov rdx, rsi
call fcn.140099234
jmp 0x140076fe2
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140076faf
mov rdi, qword [0x140892420]
lea rcx, [0x1408949a0]
lea rdx, [rdi + 1]
mov qword [0x140892420], rdx
lea edx, [rbx + 0x20]
call fcn.1400991f0
lea rcx, [0x1408949c0]
mov qword [rax], rbp
mov qword [rax + 8], rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x40]
mov rax, rdi
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x1400777b0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
movsxd rsi, edx
mov ebp, r8d
sub ebp, edx
add rsi, rcx
movsxd rdx, ebp
mov rcx, rsi
mov ebx, r9d
call fcn.1400a43c0
mov edx, ebx
mov ecx, eax
mov rdi, rax
call fcn.1400986c0
mov r9d, ebp
mov dword [rsp + 0x28], edi
mov r8, rsi
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, 0xfde9
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rbp, qword [rsp + 0x48]
xor eax, eax
mov rsi, qword [rsp + 0x50]
movsxd rcx, edi
mov word [rbx + rcx*2], ax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
push rbx
sub rsp, 0x20
mov ebx, edx
mov rdx, rcx
mov rcx, qword [0x140894a08]
call fcn.14008ea90
test rax, rax
je 0x1400777ed
cmp dword [rax + 0x28], 0
je 0x1400777ed
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 0x140077730
mov ecx, ebx
add rsp, 0x20
pop rbx
jmp fcn.1400a44c0
Function at 0x1400779a4
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [0x140894a30]
call fcn.14008be58
mov rsi, rax
or edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor ebp, ebp
mov rdx, rax
movzx r8d, word [rax]
test r8w, r8w
je 0x140077adb
mov rcx, qword [rsp + 0x30]
jmp 0x1400779f5
add rdx, 2
movzx r8d, word [rdx]
cmp r8w, 0x20
je 0x1400779ed
mov r11d, 1
cmp r8w, 0x22
jne 0x140077a44
add rdx, 2
mov r9, rdx
movzx r8d, word [rdx]
test r8w, r8w
je 0x140077aa3
movzx eax, r8w
movzx r8d, ax
cmp ax, 0x22
je 0x140077a3e
add rdx, 2
movzx r8d, word [rdx]
movzx eax, r8w
test r8w, r8w
jne 0x140077a22
test r8w, r8w
jmp 0x140077aa3
test r8w, r8w
je 0x140077ab3
mov r9, rdx
movzx r10d, r8w
cmp r8w, 0x20
je 0x140077a9f
add rdx, 2
movzx r8d, word [rdx]
cmp r8w, 0x22
jne 0x140077a95
add rdx, 2
movzx r8d, word [rdx]
test r8w, r8w
je 0x140077a95
movzx eax, r8w
movzx r8d, ax
cmp ax, 0x22
je 0x140077a95
add rdx, 2
movzx r8d, word [rdx]
movzx eax, r8w
test r8w, r8w
jne 0x140077a79
movzx r10d, r8w
test r8w, r8w
jne 0x140077a4d
test r10w, r10w
lea rax, [rdx + 2]
mov rcx, rdx
cmove rax, rdx
mov rdx, rax
jmp 0x140077ab9
mov r11d, ebp
mov r9, rbp
cmp dword [rsi], edi
jne 0x140077ac2
test rbx, rbx
jne 0x140077ae5
movzx r8d, word [rdx]
lea eax, [rdi + 1]
test r11d, r11d
cmove eax, edi
mov edi, eax
test r8w, r8w
jne 0x1400779f5
test rbx, rbx
jne 0x140077af9
movsxd rax, edi
jmp 0x140077afe
test r9, r9
je 0x140077af9
sub rcx, r9
mov rax, r9
sar rcx, 1
mov dword [rbx], ecx
inc dword [rsi]
jmp 0x140077afe
mov dword [rbx], ebp
mov rax, rdx
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x140077b14
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
xor ebp, ebp
mov rcx, qword [0x140894a30]
mov esi, edx
mov dword [rax + 8], ebp
call fcn.14008be58
test ebx, ebx
js 0x140077b43
mov dword [rax], ebx
lea rcx, [rsp + 0x30]
call fcn.1400779a4
mov edi, dword [rsp + 0x30]
mov edx, esi
mov ecx, edi
mov rbx, rax
call fcn.1400986c0
mov ecx, ebp
jmp 0x140077b7f
test edi, edi
je 0x140077b84
movzx edx, word [rbx]
cmp dx, 0x22
jne 0x140077b72
inc ecx
jmp 0x140077b79
mov word [rax], dx
add rax, 2
add rbx, 2
dec edi
cmp word [rbx], bp
jne 0x140077b61
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.1400994b0

Function at 0x140077ba0
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x140894a30]
call fcn.14008be58
xor ecx, ecx
add rsp, 0x28
jmp fcn.1400779a4
Function at 0x140077bbc
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 0x140077bea
dec edi
mov edx, ebx
mov ecx, edi
call fcn.1400986c0
lea r8d, [rdi + 1]
mov rdx, rax
mov rcx, rsi
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 0x140077db4
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 0x140077e1b
mov rcx, qword [rbp + 0x18]
lea r9, [rsp + 0x50]
and dword [rsp + 0x50], 0
mov r8d, edi
and qword [rsp + 0x20], 0
sub r8d, ebx
movsxd rdx, ebx
add rdx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140077e0d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x140077e17
add ebx, dword [rsp + 0x50]
cmp ebx, edi
jge 0x140077e1b
jmp 0x140077dd8
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 0x140077e34
Capabilities:
Read file on windows

Disassembly:
mov rcx, qword [rcx + 0x18]
mov r9d, r8d
or r8d, 0xffffffff
jmp 0x1400b5330
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 r12, rcx
mov ecx, 0x1000
mov r15d, r9d
mov edi, ecx
mov r13d, r8d
mov ebp, eax
mov r14d, eax
cmp edx, 0x18
je 0x1400b546c
cmp edx, 2
je 0x1400b546c
mov rcx, qword [0x140893d68]
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
lea rdx, [rsp + 0x34]
mov rbx, rax
lea r8d, [rcx + 2]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor ecx, ecx
test eax, eax
je 0x1400b5455
mov r15, qword [rsp + 0x90]
mov esi, ecx
mov r12d, edi
cmp dword [rsp + 0x38], 2
jne 0x1400b544d
cmp r13d, 0xffffffff
je 0x1400b53da
cmp r14d, r13d
jae 0x1400b544d
add r14d, 2
test edi, edi
jne 0x1400b5405
mov rcx, qword [0x140893d68]
lea edx, [rdi + 8]
movsxd r9, r12d
mov r8, rbx
add r9, r9
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 0x1400b544d
cmp ax, 0xd
je 0x1400b5425
mov word [rsi + rbx], ax
inc ebp
add rsi, 2
inc r12d
dec edi
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x38]
mov rcx, r15
lea rdx, [rsp + 0x34]
mov r8d, 2
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor ecx, ecx
test eax, eax
jne 0x1400b53c8
mov r15d, dword [rsp + 0xa8]
movsxd rax, ebp
mov edx, r15d
mov word [rbx + rax*2], cx
mov rcx, rbx
call fcn.1400b5dd0
jmp 0x1400b553e
mov r8, rcx
xor edx, edx
mov rcx, qword [0x140893d68]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15d, dword [rsp + 0xa0]
mov r13d, edi
mov rsi, qword [rsp + 0x90]
mov rbx, rax
xor eax, eax
mov r12d, eax
jmp 0x1400b549d
xor eax, eax
cmp r15d, 0xffffffff
je 0x1400b54a8
cmp r14d, r15d
jae 0x1400b5512
lea r9, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r8d, 1
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400b5512
cmp dword [rsp + 0x38], 1
jne 0x1400b5512
inc r14d
test edi, edi
jne 0x1400b54f6
mov rcx, qword [0x140893d68]
lea edx, [rdi + 8]
movsxd r9, r13d
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rbx, rax
mov edi, 0x1000
mov al, byte [rsp + 0x30]
cmp al, 0xa
je 0x1400b5512
cmp al, 0xd
je 0x1400b549b
mov byte [r12 + rbx], al
inc ebp
inc r12
inc r13d
dec edi
jmp 0x1400b549b
mov r15d, dword [rsp + 0xa8]
xor ecx, ecx
cmp dword [rsp + 0x98], 0x18
mov edx, r15d
movsxd rax, ebp
mov byte [rax + rbx], cl
mov rcx, rbx
jne 0x1400b5539
call fcn.1400b5c60
jmp 0x1400b553e
call fcn.1400995d0
mov rcx, qword [0x140893d68]
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