joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140158ba0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1401d7088]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x140158c35
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x140158c96
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.1401330f0
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14016c8e0
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x140158d51
sub ecx, 1
je 0x140158dc4
sub ecx, 1
je 0x140158d00
cmp ecx, 1
je 0x140158ce3
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1401a3420]
call fcn.1401330f0
jmp 0x140158dc4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.1401588d0
test eax, eax
je 0x140158dc4
jmp 0x140158c6a
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x140158dc4
sub rax, rsi
cmp rax, rbp
jae 0x140158dc4
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.140133270
jmp 0x140158dc4
cmp r8d, 4
jle 0x140158dc4
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x140158dc4
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.140133010
mov esi, eax
test eax, eax
je 0x140158da3
mov edx, 5
mov rcx, rbx
call fcn.140159890
mov eax, esi
jmp 0x140158c6a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.140141af0
mov rcx, r14
call fcn.140141dd0
test eax, eax
je 0x140158c68
mov edx, 5
mov rcx, rbx
call fcn.140159890
mov eax, Ordinal_45
jmp 0x140158c6a
Function at 0x14016bb60
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [0x1401d7020]
mov rdi, rax
test rax, rax
jne 0x14016bba2
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x14016bbe9
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x14016bc42
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x14016bc00
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x14016bc83
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14019d4e2]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14019d4e3]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x14016bc50
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x1400170d1
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.14008d350
call fcn.14008cfe0
mov qword [rbp - 0x20], 0
call fcn.14008d230
call fcn.14008d230
call sub.KERNEL32.dll_GetUserDefaultLangID
mov qword [rbp - 0x10], rax
call fcn.14008d260
mov edx, eax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.14008b1e0
call fcn.14008d260
mov edx, eax
lea rax, [rbp - 0x20]
mov rcx, rax
call fcn.14008cf10
mov rax, qword [rbp - 0x20]
mov rcx, rax
call fcn.14008b3c0
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 3
jne 0x140017183
call fcn.14008d230
lea rax, [0x140871180]
mov rcx, rax
call fcn.14008d030
mov rax, qword [rbp - 0x20]
mov rcx, rax
call fcn.14008d030
call fcn.14008d260
mov edx, eax
lea rax, [rbp - 0x20]
mov rcx, rax
call fcn.14008cf10
jmp 0x140017184
nop
call fcn.14008d230
mov rax, qword [rbp - 0x20]
mov rcx, rax
call fcn.14008d030
call fcn.14008d320
mov qword [rbp - 8], rax
nop
mov rax, qword [rbp - 0x20]
mov rcx, rax
call fcn.14008d1c0
mov rax, qword [rbp - 8]
add rsp, 0x40
pop rbp
ret
Function at 0x14003208c
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.14008d350
call fcn.14008cfe0
mov rax, qword [rbp + 0x10]
mov rdx, rax
lea rcx, [rbp + 0x10]
call fcn.14008d0a0
mov qword [rbp - 0x70], 0
mov qword [rbp - 0x78], 0
mov qword [rbp - 0x10], 0
call fcn.14008d230
call fcn.14008d230
call fcn.14008d260
mov edx, eax
mov ecx, 0x3e8
call fcn.14008bdf0
call fcn.14008d260
mov edx, eax
lea rax, [rbp - 0x70]
mov rcx, rax
call fcn.14008cf10
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, [0x140896280]
mov rcx, rax
call fcn.14008d110
call fcn.14008d230
call fcn.14008d230
mov rax, qword [rbp - 0x70]
mov rcx, rax
call fcn.14008d030
lea rax, str.System32
mov rcx, rax
call fcn.14008d030
call fcn.14008d1e0
call fcn.14008d230
lea rax, [0x140879110]
mov rcx, rax
call fcn.14008d030
mov rax, qword [rbp + 0x10]
mov rcx, rax
call fcn.14008d030
call fcn.14008d1e0
call fcn.14008d230
mov rax, qword [rbp - 0x70]
mov rcx, rax
call fcn.14008d030
lea rax, [0x140875e80]
mov rcx, rax
call fcn.14008d030
call fcn.14008d320
mov qword [rbp - 0x28], rax
call fcn.14008d320
mov qword [rbp - 0x30], rax
call fcn.14008d320
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.140079284
mov qword [rbp - 0x40], rax
call fcn.14008d2b0
mov rax, qword [rbp - 0x40]
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x1400322e4
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.140078bc8
mov qword [rbp - 0x48], rax
cmp qword [rbp - 0x48], 0
je 0x1400322d1
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.14007876c
mov qword [rbp - 0x50], rax
cmp qword [rbp - 0x50], 0
je 0x1400322cb
call fcn.14008d230
mov rax, qword [rbp - 0x78]
mov rcx, rax
call fcn.14008d030
call fcn.14008d230
call fcn.14008d230
call fcn.14008d230
call fcn.14008d230
call fcn.14008d260
mov edx, eax
mov rax, qword [rbp - 0x10]
mov r8d, edx
mov edx, SafeArrayPutElement
mov rcx, rax
call fcn.140078ca4
call fcn.14008d320
mov qword [rbp - 0x58], rax
call fcn.14008d260
mov edx, eax
mov rax, qword [rbp - 0x58]
mov rcx, rax
call fcn.14001478c
mov qword [rbp - 0x60], rax
call fcn.14008d260
lea rax, [0x14088d2d0]
mov rcx, rax
call fcn.14008d030
call fcn.14008d260
mov edx, eax
lea rax, [rbp - 0x78]
mov rcx, rax
call fcn.14008cf10
jmp 0x140032209
nop
jmp 0x140032209
nop
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.1400787a4
mov qword [rbp - 0x68], rax
jmp 0x1400322e5
nop
call fcn.14008d230
mov rax, qword [rbp - 0x78]
mov rcx, rax
call fcn.14008d030
call fcn.14008d320
mov qword [rbp - 8], rax
nop
mov rax, qword [rbp + 0x10]
mov rcx, rax
call fcn.14008d1c0
mov rax, qword [rbp - 0x70]
mov rcx, rax
call fcn.14008d1c0
mov rax, qword [rbp - 0x78]
mov rcx, rax
call fcn.14008d1c0
mov rax, qword [rbp - 8]
add rsp, 0xa0
pop rbp
ret
Function at 0x1400367fa
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xa0
mov qword [rbp + 0x10], rcx
mov qword [rbp - 8], 0
call fcn.14008cfe0
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 0x1400368b6
mov qword [rbp - 8], 0
jmp 0x140036903
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 0x1400376db
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.14008cfe0
mov rdx, qword [rbp + 0x18]
lea rax, [rbp + 0x18]
mov rcx, rax
call fcn.14008d0a0
mov rdx, qword [rbp + 0x20]
lea rax, [rbp + 0x20]
mov rcx, rax
call fcn.14008d0a0
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 0x1400377e8
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 0x1400377e9
nop
mov qword [rbp - 8], 0
mov rax, qword [rbp + 0x20]
mov rcx, rax
call fcn.14008d1c0
mov rax, qword [rbp + 0x18]
mov rcx, rax
call fcn.14008d1c0
mov rax, qword [rbp - 8]
add rsp, 0x90
pop rbp
ret
Function at 0x140077d88
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 0x140077d68
cmp word [rdx], di
je 0x140077d68
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 0x140077d63
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
movsxd r15, eax
test eax, eax
jle 0x140077d5a
mov ecx, ebp
call fcn.140099548
mov rsi, rax
test rax, rax
je 0x140077d5a
lea edx, [rdi + 2]
cmp ebp, 0xffffffff
mov rcx, r14
cmovne edx, ebp
call fcn.140099f34
mov rbx, rax
test rax, rax
je 0x140077d4f
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 [0x140895788]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx + 0x38], rax
mov rcx, rax
test rax, rax
je 0x140077c7f
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 0x140077c88
mov dword [rbx + 0x50], r12d
mov rdx, rbx
mov rcx, rsi
call fcn.140090180
mov ebp, edi
mov r14d, 0x4000
lea eax, [r14 + rbp]
cmp eax, r15d
jle 0x140077caa
mov r14d, r15d
sub r14d, ebp
mov edx, r14d
mov rcx, rsi
call fcn.1400901a0
mov r12, rax
test rax, rax
je 0x140077d39
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 0x140077d25
add ebp, edx
cmp dword [rbx + 0x20], edi
jne 0x140077cf5
mov rcx, r12
call fcn.140099680
mov dword [rbx + 0x20], eax
mov edx, dword [rsp + 0x78]
mov rcx, rsi
cmp ebp, r15d
jl 0x140077d05
mov r8d, 1
jmp 0x140077d08
xor r8d, r8d
call fcn.140090420
test eax, eax
je 0x140077d18
cmp ebp, r15d
jl 0x140077c9b
jmp 0x140077d4b
mov rcx, rsi
call fcn.140090580
mov dword [rbx + 0x24], eax
jmp 0x140077d40
lea rax, str.file_read_error
mov dword [rbx + 0x24], 0x100
mov qword [rbx + 0x30], rax
jmp 0x140077d4b
mov dword [rbx + 0x24], 1
mov rdx, rsi
mov rcx, rbx
call fcn.14009962c
mov qword [rbx + 0x40], rdi
mov rcx, rsi
call fcn.140090660
mov rdi, rbx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
jmp 0x140077d6a
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 0x140077b6c
Function at 0x140077dc8
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 0x140077e8c
lea rcx, [0x140896400]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1408963e0]
jmp 0x140077e52
lea rsi, [rbx + 0x10]
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140077e4f
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rbx]
lea rcx, [0x1408963e0]
mov rdx, rsi
call fcn.14009a014
jmp 0x140077e52
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140077e1f
mov rdi, qword [0x140893e40]
lea rcx, [0x1408963e0]
lea rdx, [rdi + 1]
mov qword [0x140893e40], rdx
lea edx, [rbx + 0x20]
call fcn.140099fd0
lea rcx, [0x140896400]
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 0x140078620
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.1400a51a0
mov edx, ebx
mov ecx, eax
mov rdi, rax
call fcn.1400994a0
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 [0x140896448]
call fcn.14008f870
test rax, rax
je 0x14007865d
cmp dword [rax + 0x28], 0
je 0x14007865d
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 0x1400785a0
mov ecx, ebx
add rsp, 0x20
pop rbx
jmp fcn.1400a52a0
Function at 0x140078814
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 [0x140896470]
call fcn.14008cc38
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 0x14007894b
mov rcx, qword [rsp + 0x30]
jmp 0x140078865
add rdx, 2
movzx r8d, word [rdx]
cmp r8w, 0x20
je 0x14007885d
mov r11d, 1
cmp r8w, 0x22
jne 0x1400788b4
add rdx, 2
mov r9, rdx
movzx r8d, word [rdx]
test r8w, r8w
je 0x140078913
movzx eax, r8w
movzx r8d, ax
cmp ax, 0x22
je 0x1400788ae
add rdx, 2
movzx r8d, word [rdx]
movzx eax, r8w
test r8w, r8w
jne 0x140078892
test r8w, r8w
jmp 0x140078913
test r8w, r8w
je 0x140078923
mov r9, rdx
movzx r10d, r8w
cmp r8w, 0x20
je 0x14007890f
add rdx, 2
movzx r8d, word [rdx]
cmp r8w, 0x22
jne 0x140078905
add rdx, 2
movzx r8d, word [rdx]
test r8w, r8w
je 0x140078905
movzx eax, r8w
movzx r8d, ax
cmp ax, 0x22
je 0x140078905
add rdx, 2
movzx r8d, word [rdx]
movzx eax, r8w
test r8w, r8w
jne 0x1400788e9
movzx r10d, r8w
test r8w, r8w
jne 0x1400788bd
test r10w, r10w
lea rax, [rdx + 2]
mov rcx, rdx
cmove rax, rdx
mov rdx, rax
jmp 0x140078929
mov r11d, ebp
mov r9, rbp
cmp dword [rsi], edi
jne 0x140078932
test rbx, rbx
jne 0x140078955
movzx r8d, word [rdx]
lea eax, [rdi + 1]
test r11d, r11d
cmove eax, edi
mov edi, eax
test r8w, r8w
jne 0x140078865
test rbx, rbx
jne 0x140078969
movsxd rax, edi
jmp 0x14007896e
test r9, r9
je 0x140078969
sub rcx, r9
mov rax, r9
sar rcx, 1
mov dword [rbx], ecx
inc dword [rsi]
jmp 0x14007896e
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 0x140078984
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 [0x140896470]
mov esi, edx
mov dword [rax + 8], ebp
call fcn.14008cc38
test ebx, ebx
js 0x1400789b3
mov dword [rax], ebx
lea rcx, [rsp + 0x30]
call fcn.140078814
mov edi, dword [rsp + 0x30]
mov edx, esi
mov ecx, edi
mov rbx, rax
call fcn.1400994a0
mov ecx, ebp
jmp 0x1400789ef
test edi, edi
je 0x1400789f4
movzx edx, word [rbx]
cmp dx, 0x22
jne 0x1400789e2
inc ecx
jmp 0x1400789e9
mov word [rax], dx
add rax, 2
add rbx, 2
dec edi
cmp word [rbx], bp
jne 0x1400789d1
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.14009a290

Function at 0x140078a10
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x140896470]
call fcn.14008cc38
xor ecx, ecx
add rsp, 0x28
jmp fcn.140078814
Function at 0x140078a2c
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 0x140078a5a
dec edi
mov edx, ebx
mov ecx, edi
call fcn.1400994a0
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 0x140078c24
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 0x140078c8b
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 0x140078c7d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x140078c87
add ebx, dword [rsp + 0x50]
cmp ebx, edi
jge 0x140078c8b
jmp 0x140078c48
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