joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400020d0
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor esi, esi
mov r12, r8
mov r14, rdx
mov ebp, esi
test rdx, rdx
je 0x1400021a6
test r8, r8
je 0x1400021a6
mov ebx, esi
lea r13d, [rsi + 1]
cmp dword [rdx], ebx
jle 0x14000218d
mov r15d, esi
nop word [rax + rax]
mov rcx, qword [r12 + r15*8]
lea rdi, [r12 + r15*8]
lea rdx, [0x140030880]
call fcn.140014fa8
test eax, eax
je 0x140002159
mov rcx, qword [rdi]
lea rdx, str._accepteula
call fcn.140014fa8
test eax, eax
je 0x140002159
inc ebx
inc r15
mov ebp, esi
cmp ebx, dword [r14]
jl 0x140002120
jmp 0x14000218d
mov ecx, dword [r14]
mov ebp, r13d
lea eax, [rcx - 1]
cmp ebx, eax
jge 0x140002187
nop word [rax + rax]
mov rax, qword [rdi + 8]
inc ebx
mov qword [rdi], rax
lea rdi, [rdi + 8]
mov ecx, dword [r14]
lea eax, [rcx - 1]
cmp ebx, eax
jl 0x140002170
lea eax, [rcx - 1]
mov dword [r14], eax
mov rcx, qword [rsp + 0x50]
mov edx, ebp
call fcn.1400022f0
test eax, eax
cmovne ebp, r13d
test ebp, ebp
jmp 0x140002288
mov r13d, 1
lea rcx, str.Shell32.dll
mov edx, r13d
mov r14d, esi
call fcn.140001850
mov rcx, rax
lea rdx, str.CommandLineToArgvW
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x140002272
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [0x140043fe8]
call rbx
mov ebx, esi
mov r15, rax
cmp dword [0x140043fe8], ebx
jle 0x140002272
nop dword [rax]
mov rcx, qword [r15 + rbp*8]
lea rdi, [r15 + rbp*8]
lea rdx, [0x140030850]
call fcn.140014b10
test eax, eax
je 0x14000223d
mov rcx, qword [rdi]
lea rdx, [0x140030868]
call fcn.140014b10
test eax, eax
je 0x14000223d
inc ebx
inc rbp
cmp ebx, dword [0x140043fe8]
mov r14d, esi
jl 0x140002200
jmp 0x140002272
mov ecx, dword [0x140043fe8]
mov r14d, r13d
lea eax, [rcx - 1]
cmp ebx, eax
jge 0x14000226a
nop dword [rax]
mov rax, qword [rdi + 8]
inc ebx
mov qword [rdi], rax
lea rdi, [rdi + 8]
mov ecx, dword [0x140043fe8]
lea eax, [rcx - 1]
cmp ebx, eax
jl 0x140002250
dec ecx
mov dword [0x140043fe8], ecx
mov rcx, qword [rsp + 0x50]
mov edx, r14d
call fcn.1400022f0
test eax, eax
cmovne r14d, r13d
test r14d, r14d
mov rbx, qword [rsp + 0x58]
setne sil
mov rbp, qword [rsp + 0x60]
mov eax, esi
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400029d0
Capabilities:
Get file version info

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x270
mov rax, qword [0x140043238]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor r15d, r15d
mov qword [rsp + 0x2c8], r13
cmp dword [rdx], 1
mov r12, r8
mov r14, rdx
mov r13, rcx
mov esi, r15d
jle 0x140002a8d
mov ebx, 1
mov ebp, ebx
nop word [rax + rax]
mov rcx, qword [r12 + rbp*8]
lea rdi, [r12 + rbp*8]
lea rdx, [0x140030a88]
call fcn.140014fa8
test eax, eax
je 0x140002a5a
mov rcx, qword [rdi]
lea rdx, str._nobanner
call fcn.140014fa8
test eax, eax
je 0x140002a5a
inc ebx
inc rbp
mov esi, r15d
cmp ebx, dword [r14]
jl 0x140002a20
jmp 0x140002a8d
mov ecx, dword [r14]
mov esi, 1
lea eax, [rcx - 1]
cmp ebx, eax
jge 0x140002a87
nop dword [rax]
mov rax, qword [rdi + 8]
inc ebx
mov qword [rdi], rax
lea rdi, [rdi + 8]
mov ecx, dword [r14]
lea eax, [rcx - 1]
cmp ebx, eax
jl 0x140002a70
lea eax, [rcx - 1]
mov dword [r14], eax
mov r8, r12
mov rdx, r14
mov rcx, r13
call fcn.140001b80
mov r13, qword [rsp + 0x2c8]
test eax, eax
jne 0x140002c47
lea ecx, [rax + 1]
call fcn.14000d318
mov rcx, rax
call fcn.1400151ec
mov ecx, eax
call fcn.1400156c0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 2
je 0x140002c47
mov ecx, 1
call fcn.14000d318
lea rdx, [rsp + 0x40]
mov rcx, rax
mov rbx, rax
call fcn.1400151a0
test eax, eax
jne 0x140002b1c
cmp qword [rsp + 0x40], r15
jne 0x140002b1c
mov rcx, rbx
call fcn.1400151ec
mov ecx, eax
mov edx, 0x20000
call fcn.1400157a8
lea rdx, [0x140030bd0]
mov rcx, rbx
call fcn.140002e60
test esi, esi
jne 0x140002c50
mov r8d, 0x104
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ecx, eax
mov ebx, eax
call fcn.140014c8c
mov r9, rax
lea rcx, [rsp + 0x50]
mov r8d, ebx
xor edx, edx
mov rdi, rax
call sub.VERSION.dll_GetFileVersionInfoW
lea rdx, [0x140030aa8]
mov rcx, rdi
call fcn.140002fd0
lea rdx, [0x140030ac8]
mov rcx, rdi
mov rbx, rax
call fcn.140002fd0
lea rdx, [0x140030ae0]
mov rcx, rdi
mov rbp, rax
call fcn.140002fd0
lea rdx, [0x140030b00]
mov rcx, rdi
mov r14, rax
call fcn.140002fd0
lea rdx, [0x140030b20]
mov rcx, rdi
mov r12, rax
call fcn.140002fd0
mov rdi, rax
call fcn.140001df0
test eax, eax
je 0x140002c05
lea ecx, [rsi + 1]
call fcn.14000d318
mov qword [rsp + 0x30], rdi
lea rdx, [0x140030b38]
mov rcx, rax
mov qword [rsp + 0x28], r12
mov r9, rbp
mov qword [rsp + 0x20], r14
mov r8, rbx
call fcn.140002eb0
lea ecx, [rsi + 1]
call fcn.14000d318
mov rcx, rax
call fcn.14000d728
jmp 0x140002c4e
mov ecx, 2
call fcn.14000d318
mov qword [rsp + 0x30], rdi
lea rdx, [0x140030b38]
mov rcx, rax
mov qword [rsp + 0x28], r12
mov r9, rbp
mov qword [rsp + 0x20], r14
mov r8, rbx
call fcn.140002eb0
mov ecx, 2
call fcn.14000d318
mov rcx, rax
call fcn.14000d728
jmp 0x140002c4e
mov ecx, esi
call fcn.140002c80
test esi, esi
sete r15b
mov eax, r15d
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400069e0
add rsp, 0x270
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140002c80
Capabilities:
Get file version info

Disassembly:
test ecx, ecx
jne 0x140002e0f
mov r11, rsp
sub rsp, 0x178
mov rax, qword [0x140043238]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov qword [r11 + 8], rbx
lea rdx, [rsp + 0x50]
mov qword [r11 + 0x10], rbp
mov r8d, 0x104
mov qword [r11 + 0x18], rsi
xor ecx, ecx
mov qword [r11 + 0x20], rdi
mov qword [r11 - 8], r14
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ecx, eax
mov ebx, eax
call fcn.140014c8c
mov r9, rax
lea rcx, [rsp + 0x50]
mov r8d, ebx
xor edx, edx
mov rdi, rax
call sub.VERSION.dll_GetFileVersionInfoA
lea rdx, [0x140030b68]
mov rcx, rdi
call fcn.140002f00
lea rdx, [0x140030b78]
mov rcx, rdi
mov rbx, rax
call fcn.140002f00
lea rdx, [0x140030b88]
mov rcx, rdi
mov rsi, rax
call fcn.140002f00
lea rdx, [0x140030b98]
mov rcx, rdi
mov rbp, rax
call fcn.140002f00
lea rdx, [0x140030ba8]
mov rcx, rdi
mov r14, rax
call fcn.140002f00
mov rdi, rax
call fcn.140001df0
test eax, eax
je 0x140002d90
mov ecx, 1
call fcn.14000d318
mov qword [rsp + 0x30], rdi
lea rdx, str._n_s_v_s____s_n_s_n_s_n_n
mov rcx, rax
mov qword [rsp + 0x28], r14
mov r9, rsi
mov qword [rsp + 0x20], rbp
mov r8, rbx
call fcn.140002e10
mov ecx, 1
jmp 0x140002dc3
mov ecx, 2
call fcn.14000d318
mov qword [rsp + 0x30], rdi
lea rdx, str._n_s_v_s____s_n_s_n_s_n_n
mov rcx, rax
mov qword [rsp + 0x28], r14
mov r9, rsi
mov qword [rsp + 0x20], rbp
mov r8, rbx
call fcn.140002e10
mov ecx, 2
call fcn.14000d318
mov rcx, rax
call fcn.14000d728
mov rdi, qword [rsp + 0x198]
mov rsi, qword [rsp + 0x190]
mov rbp, qword [rsp + 0x188]
mov rbx, qword [rsp + 0x180]
mov r14, qword [rsp + 0x170]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1400069e0
add rsp, 0x178
ret

Function at 0x140003260
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rdx
lea r8, str.BINRES
mov rdx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdi, rax
test rax, rax
je 0x1400032ee
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdx, rdi
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LockResource]
lea rdx, [0x140030ca4]
mov rcx, rbp
mov rsi, rax
call fcn.140015c20
mov rbx, rax
test rax, rax
je 0x1400032ee
mov r8d, edi
mov r9, rax
mov edx, 1
mov rcx, rsi
call fcn.140015f9c
mov rcx, rbx
call fcn.140015acc
mov al, 1
jmp 0x1400032f0
xor al, al
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140003490
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x140043238]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbp, rdx
mov rsi, rcx
lea rdx, [rsp + 0x40]
xor ecx, ecx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ecx, eax
mov ebx, eax
call fcn.140014c8c
mov r9, rax
lea rcx, [rsp + 0x40]
mov r8d, ebx
xor edx, edx
mov rdi, rax
call sub.VERSION.dll_GetFileVersionInfoA
mov eax, 0x400
lea r9, [rsp + 0x34]
mov word [rsp + 0x20], ax
lea r8, [rsp + 0x28]
lea rax, [rsp + 0x20]
mov rcx, rdi
lea rdx, [0x140030c30]
mov qword [rsp + 0x28], rax
call sub.VERSION.dll_VerQueryValueA
mov rax, qword [rsp + 0x28]
lea r9, [0x140030b68]
mov rcx, rdi
movzx r8d, word [rax + 2]
movzx edx, word [rax]
call fcn.140003310
mov r8, rbp
mov rdx, rsi
mov rcx, rax
mov rbx, rax
call fcn.1400029d0
test rsi, rsi
je 0x140003568
mov r8, rbp
mov rdx, rsi
mov rcx, rbx
call fcn.1400020d0
test eax, eax
je 0x140003593
mov rcx, rdi
call fcn.140014658
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400069e0
mov rbx, qword [rsp + 0x190]
add rsp, 0x160
pop rdi
pop rsi
pop rbp
ret
mov ecx, 2
call fcn.14000d318
mov rcx, rax
lea rdx, str.Eula_declined._n_n
call fcn.140004540
mov ecx, 1
call fcn.140014f9c
int3

Function at 0x1400035c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
xor ebx, ebx
lea eax, [rcx - 0x834]
mov esi, ecx
mov edi, 0x1300
cmp eax, 0x383
ja 0x140003606
xor edx, edx
lea r8d, [rbx + 2]
lea rcx, str.netmsg.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov rbx, rax
mov eax, 0x1b00
test rbx, rbx
cmovne edi, eax
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], 0
mov r9d, 0x400
mov r8d, esi
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edi, eax
test eax, eax
je 0x140003670
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rdx, qword [rsp + 0x58]
lea r9, [rsp + 0x50]
mov rcx, rax
mov qword [rsp + 0x20], 0
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rbx, rbx
je 0x14000367e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x140003d40
Capabilities:
Delete file
Delete service
Get common file path
Get hostname

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x378
mov rax, qword [0x140043238]
xor rax, rsp
mov qword [rsp + 0x360], rax
xor ebx, ebx
mov r14, r9
mov rsi, r8
mov rdi, rdx
test cl, cl
je 0x140003e7d
xor edx, edx
mov qword [rsp + 0x370], rbp
mov r8d, 0xf003f
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rcx, rax
mov rdx, rsi
mov rbp, rax
call fcn.140004410
mov r8d, 0xf01ff
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rsi, rax
test rax, rax
je 0x140003dc5
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x104
lea rcx, [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov rdx, rdi
lea rcx, [rsp + 0x140]
call fcn.140014fa8
mov rbp, qword [rsp + 0x370]
test eax, eax
jne 0x140003e34
mov edx, 0x104
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, 0x5c
lea rcx, [rsp + 0x30]
call fcn.140016260
lea rdx, str._s_s
lea r8, [rsp + 0x30]
mov byte [rax], bl
jmp 0x140003e3e
lea rdx, str._sADMIN__s
mov r8, rdi
mov r9, r14
lea rcx, [rsp + 0x250]
call fcn.140004590
nop
lea rcx, [rsp + 0x250]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x140003e7d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x140003e7d
lea ecx, [rax + 0x5f]
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0xa
jb 0x140003e50
mov rcx, rdi
call fcn.140003eb0
mov rcx, qword [rsp + 0x360]
xor rcx, rsp
call fcn.1400069e0
add rsp, 0x378
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400042d0
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140043238]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x140043ff8]
mov ebx, eax
test rcx, rcx
je 0x14000430e
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r8d, 0xf01ff
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov qword [0x140043ff8], rax
test rax, rax
je 0x1400043e6
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x14000434f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x1400043ba
mov rcx, qword [0x140043ff8]
lea rdx, [rsp + 0x20]
mov edi, 1
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1400043ba
nop word [rax + rax]
mov eax, dword [rsp + 0x24]
cmp eax, 4
je 0x1400043bc
cmp eax, edi
je 0x1400043ba
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
cmp eax, 0xea60
ja 0x1400043af
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [0x140043ff8]
lea rdx, [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x140004370
jmp 0x1400043ba
mov ecx, 0x41d
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x140043ff8]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, ebx
mov qword [0x140043ff8], 0
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400069e0
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret

Function at 0x140004410
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140043238]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rdx
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, 0xf01ff
mov rdx, rdi
mov rcx, rbx
mov esi, eax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rdi, rax
test rax, rax
je 0x1400044c3
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov ebx, eax
test eax, eax
je 0x1400044b8
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1400044b6
cmp dword [rsp + 0x24], 1
je 0x1400044b8
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, 0xea60
ja 0x1400044ab
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x140004481
jmp 0x1400044b6
mov ecx, 0x41d
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400069e0
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x1400062a4
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x14000631c
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x14000631c
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x14000631c
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x140006310
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x14000632e
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x1400062fe
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x14000631e

Function at 0x14000761c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140007666
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140007666
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140007666
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140007666
cmp dword [rcx + 0x84], 0xe
jbe 0x140007666
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140007668
xor al, al
add rsp, 0x28
ret

Function at 0x140014f9c
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140014e07
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140014e07
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140014e07
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140014e07
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140014e07
cmp dword [rcx + 0x84], 0xe
jbe 0x140014e07
cmp dword [rcx + 0xf8], 0
je 0x140014e07
mov ecx, ebx
call fcn.140014eb8
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140014c94
nop
cmp dword [rbp + 0x20], 0
je 0x140014e55
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140014e60
int3
xor r8d, r8d
xor edx, edx
jmp 0x140014d98
Function at 0x140016178
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1400161af
call fcn.140016d80
mov dword [rax], 0x16
call fcn.14000d160
xor eax, eax
jmp 0x14001623d
mov rdx, r9
mov rcx, r8
call fcn.140016114
mov rbx, rax
test rax, rax
je 0x14001623a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140016040]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140016227
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140016cf4
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14001620e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14001621d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14001b78c
jmp 0x14001623a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140016237
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14001f02c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140006aa0
sub rsp, rax
mov rax, qword [0x140043238]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400151ec
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001f07b
mov rax, rbp
jmp 0x14001f183
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x45120]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140023384
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x45120]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001f17f
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001f17f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140023384
test rax, rax
js 0x14001f17f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001f17f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14001f171
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14001f171
cmp byte [rcx], 0xd
jne 0x14001f157
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14001f166
cmp byte [rcx + 1], 0xa
jne 0x14001f166
inc rcx
jmp 0x14001f166
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x43d10]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14001f139
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14001f183
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400069e0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x14001fc18
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001fc2e
mov al, 1
jmp 0x14001fc8e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001fc3f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001fc8c
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400156c0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001fc8c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001fc8c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001fc8c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001fc8e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140022264
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140022294
xor eax, eax
jmp 0x140022357
mov rbp, rbx
cmp word [rax], si
je 0x1400222b9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400222a0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14002229c
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14001e4f4
movsxd r14, eax
test eax, eax
jne 0x1400222f7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14002228d
mov rcx, r14
call fcn.14001cf88
mov rdi, rax
test rax, rax
jne 0x140022310
xor ecx, ecx
call fcn.14001b78c
jmp 0x1400222ec
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14001e4f4
test eax, eax
jne 0x140022341
mov rcx, rdi
call fcn.14001b78c
jmp 0x14002234b
xor ecx, ecx
call fcn.14001b78c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret