joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401736f0
Capabilities:
Get file size

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0xf0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
cmp qword [rcx + 0x38], 0
je 0x140173731
mov rdx, r8
call fcn.140173050
cmp dword [rsi], 0
jne 0x1401738b5
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rsi
lea rax, vtable.std::_Func_impl_no_alloc_class__lambda_d3c3cf2b0aa593e640d86e6de13892a2___void___.0
mov qword [rsp + 0x58], rax
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rsp + 0x60], xmm0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x90], rax
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0xa0]
call fcn.140191ca0
nop
xor ebp, ebp
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x140173799
mov rax, qword [rcx]
lea rdx, [rsp + 0x58]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov qword [rsp + 0x90], rbp
mov rcx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1401737a6
mov rcx, qword [rbx]
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r9 + 5]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rdi], rax
cmp rax, 0xffffffffffffffff
je 0x1401738a8
lea rdx, [rsp + 0x100]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1401738a8
mov rax, qword [rsp + 0x100]
mov qword [rdi + 0x30], rax
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], ebp
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 4]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov qword [rdi + 8], rax
test rax, rax
je 0x1401738a8
mov qword [rsp + 0x20], rbp
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf001f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rdi + 0x38], rax
test rax, rax
je 0x1401738a8
lea rcx, [rdi + 0x10]
cmp rcx, rbx
je 0x140173868
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x140173860
mov rbx, qword [rbx]
mov rdx, rbx
call fcn.1400399d0
mov dword [rsp + 0x40], ebp
lea rbx, [0x140346c30]
mov r8, rbx
lea rdx, [0x140070000]
lea rcx, [0x140346c28]
call fcn.1401b6a68
test eax, eax
je 0x1401738ce
mov qword [rsp + 0x48], rbx
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rsi], xmm0
lea rcx, [rsp + 0xa0]
call fcn.140191d90
nop
lea rcx, [rsp + 0xa0]
call fcn.140191d30
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.14020b584
nop
int3
Function at 0x1401738f0
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rbx, rdx
lea rsi, [0x140346c30]
mov rdi, rcx
lea rdx, [0x140070000]
mov r8, rsi
lea rcx, [0x140346c28]
call fcn.1401b6a68
test eax, eax
je 0x140173a0e
cmp qword [rbx + 0x18], 0x10
mov rdx, rbx
jb 0x140173937
mov rdx, qword [rbx]
add rdi, 0x10
mov rcx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140173948
mov rcx, qword [rdi]
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x14017399a
cmp rdi, rbx
je 0x140173976
cmp qword [rbx + 0x18], 0x10
mov r8, qword [rbx + 0x10]
jb 0x14017396b
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rdi
call fcn.1400399d0
mov r8, rsi
mov dword [rsp + 0x20], 0
lea rdx, [0x140070000]
lea rcx, [0x140346c28]
call fcn.1401b6a68
test eax, eax
je 0x140173a0e
jmp 0x1401739be
mov r8, rsi
lea rdx, [0x140070000]
lea rcx, [0x140346c28]
call fcn.1401b6a68
test eax, eax
je 0x140173a0e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x28], rsi
movaps xmm0, xmmword [rsp + 0x20]
movd eax, xmm0
test eax, eax
jne 0x1401739e0
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
lea r8, str.MemoryMappedFile::rename
movdqa xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.1400b5490
lea rdx, [0x14032eb18]
lea rcx, [rsp + 0x30]
call fcn.1401f4780
int3
call fcn.14020b584
int3

Function at 0x140173a20
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rdx + 0x18], 0x10
mov rsi, r8
mov rbx, rdx
jb 0x140173a3f
mov rdx, qword [rdx]
cmp qword [rcx + 0x28], 0x10
lea rdi, [rcx + 0x10]
mov rcx, rdi
jb 0x140173a50
mov rcx, qword [rdi]
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x140173aa9
cmp rdi, rbx
je 0x140173a7e
cmp qword [rbx + 0x18], 0x10
mov r8, qword [rbx + 0x10]
jb 0x140173a73
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rdi
call fcn.1400399d0
lea rbx, [0x140346c30]
mov dword [rsp + 0x20], 0
mov r8, rbx
lea rdx, [0x140070000]
lea rcx, [0x140346c28]
call fcn.1401b6a68
test eax, eax
je 0x140173af1
jmp 0x140173ad4
lea rbx, [0x140346c30]
mov r8, rbx
lea rdx, [0x140070000]
lea rcx, [0x140346c28]
call fcn.1401b6a68
test eax, eax
je 0x140173af1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x28], rbx
movups xmm0, xmmword [rsp + 0x20]
mov rbx, qword [rsp + 0x40]
movups xmmword [rsi], xmm0
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
call fcn.14020b584
int3
Function at 0x140174ff0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister
Resolve dns

Disassembly:
push rbp
lea rbp, [rsp - 0x1340]
mov eax, 0x1440
call fcn.1401d74c0
sub rsp, rax
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x1458], rbx
mov qword [rsp + 0x1460], rsi
mov qword [rsp + 0x1468], rdi
mov rdi, r8
mov rsi, rdx
mov rcx, qword [rcx]
call fcn.1401727b0
test al, al
jne 0x1401751d6
movdqa xmm0, xmmword [0x14027a000]
movdqu xmmword [rsp + 0x40], xmm0
xor ebx, ebx
mov qword [rsp + 0x50], rbx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], rbx
cmp qword [rdi + 0x18], 0x10
jb 0x14017506b
mov rdi, qword [rdi]
lea r9, [rbp + 0x1350]
lea r8, [rsp + 0x40]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x140175196
mov rax, qword [rbp + 0x1350]
test rax, rax
je 0x1401750ac
nop word [rax + rax]
inc rbx
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x1401750a0
call fcn.1401b7e24
mov r9d, 0xffffffff
mov dword [rbp + 0x1334], r9d
mov dword [rbp - 0x4c], eax
mov r8d, 1
mov edx, r8d
nop word [rax + rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, r8d
mov dword [rbp + rdx*4 - 0x4c], eax
inc r8d
inc rdx
cmp rdx, 0x270
jl 0x1401750d0
mov dword [rbp - 0x50], 0x270
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
mov ecx, 0x40
mov rax, 0xffffffffffffffff
nop
dec rcx
shr rax, 1
cmp rax, r9
ja 0x140175110
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x20]
test rbx, rbx
jne 0x140175136
call fcn.1400bc840
jmp 0x14017513e
mov rdx, rbx
call fcn.1400b8ae0
mov rbx, qword [rbp + 0x1350]
test rax, rax
je 0x14017515a
nop word [rax + rax]
mov rbx, qword [rbx + 0x28]
sub rax, 1
jne 0x140175150
mov rax, qword [rbx + 0x20]
mov ecx, dword [rax + 4]
call qword [sym.imp.WS2_32.dll_ntohl]
mov edx, eax
mov rcx, rsi
call fcn.140175df0
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rax, rsi
lea r11, [rsp + 0x1440]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.1401759f0
nop
mov r8, rax
lea rdx, str.Ipv4Resolver::resolve__getaddrinfo_failed_
lea rcx, [rbp - 0x70]
call fcn.140019b00
nop
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1400b5400
lea rdx, [0x14032e2a0]
lea rcx, [rsp + 0x20]
call fcn.1401f4780
nop
xor eax, eax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x20]
call fcn.140173bc0
lea rdx, [0x14032fbd0]
lea rcx, [rsp + 0x20]
call fcn.1401f4780
int3
Function at 0x140181c10
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, r8
mov r9, rcx
movzx r8d, byte [r8 + 0x10]
movabs rcx, 0x100000001b3
movabs rax, 0xcbf29ce484222325
mov rsi, rdx
xor r8, rax
movzx eax, byte [rdi + 0x11]
mov rdx, qword [r9 + 0x30]
imul r8, rcx
xor r8, rax
movzx eax, byte [rdi + 0x12]
imul r8, rcx
xor r8, rax
movzx eax, byte [rdi + 0x13]
imul r8, rcx
xor r8, rax
movzx eax, byte [rdi + 0x14]
imul r8, rcx
xor r8, rax
movzx eax, byte [rdi + 0x15]
imul r8, rcx
xor r8, rax
movzx eax, byte [rdi + 0x16]
imul r8, rcx
xor r8, rax
movzx eax, byte [rdi + 0x17]
imul r8, rcx
xor r8, rax
imul r8, rcx
mov rcx, qword [r9 + 0x18]
and rdx, r8
shl rdx, 4
add rcx, rdx
mov rax, qword [rcx]
cmp qword [rcx + 8], rdi
jne 0x140181cd5
cmp rax, rdi
jne 0x140181ccb
mov rax, qword [r9 + 8]
mov qword [rcx], rax
mov rcx, qword [r9 + 0x18]
mov rax, qword [r9 + 8]
mov qword [rdx + rcx + 8], rax
jmp 0x140181ce0
mov rax, qword [rdi + 8]
mov qword [rcx + 8], rax
jmp 0x140181ce0
cmp rax, rdi
jne 0x140181ce0
mov rax, qword [rdi]
mov qword [rcx], rax
mov rax, qword [rdi + 8]
mov rbx, qword [rdi]
mov qword [rax], rbx
mov rcx, qword [rdi]
mov rax, qword [rdi + 8]
mov qword [rcx + 8], rax
lea rcx, [rdi + 0x18]
dec qword [r9 + 0x10]
call fcn.140079390
mov edx, 0x30
mov rcx, rdi
call fcn.1401d6ea0
mov qword [rsi], rbx
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1401993c0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
movdqu xmm3, xmmword [rcx + 0x10]
movdqu xmm1, xmmword [rcx]
movdqu xmmword [rdx + 0x10], xmm3
movdqa xmm2, xmm1
movdqu xmmword [rdx], xmm1
pslldq xmm2, 4
movdqa xmm0, xmm2
pslldq xmm2, 4
pxor xmm0, xmm1
movdqa xmm4, xmm2
pxor xmm4, xmm0
pslldq xmm2, 4
pxor xmm4, xmm2
aeskeygenassist xmm0, xmm3, 1
pshufd xmm1, xmm0, 0xff
pxor xmm4, xmm1
movdqa xmm1, xmm3
pslldq xmm1, 4
movdqa xmm0, xmm1
movdqu xmmword [rdx + 0x20], xmm4
pslldq xmm1, 4
pxor xmm0, xmm3
movdqa xmm2, xmm1
pslldq xmm1, 4
pxor xmm2, xmm0
pxor xmm2, xmm1
aeskeygenassist xmm0, xmm4, 0
pshufd xmm1, xmm0, 0xaa
pxor xmm2, xmm1
movdqa xmm1, xmm4
pslldq xmm1, 4
movdqa xmm0, xmm1
movdqu xmmword [rdx + 0x30], xmm2
pslldq xmm1, 4
pxor xmm0, xmm4
movdqa xmm3, xmm1
pslldq xmm1, 4
pxor xmm3, xmm0
pxor xmm3, xmm1
aeskeygenassist xmm0, xmm2, 2
pshufd xmm1, xmm0, 0xff
pxor xmm3, xmm1
movdqa xmm1, xmm2
pslldq xmm1, 4
movdqa xmm0, xmm1
movdqu xmmword [rdx + 0x40], xmm3
pxor xmm0, xmm2
pslldq xmm1, 4
movdqa xmm2, xmm1
pslldq xmm1, 4
pxor xmm2, xmm0
pxor xmm2, xmm1
aeskeygenassist xmm0, xmm3, 0
pshufd xmm1, xmm0, 0xaa
pxor xmm2, xmm1
movdqa xmm1, xmm3
pslldq xmm1, 4
movdqa xmm0, xmm1
movdqu xmmword [rdx + 0x50], xmm2
pslldq xmm1, 4
pxor xmm0, xmm3
movdqa xmm3, xmm1
pslldq xmm1, 4
pxor xmm3, xmm0
pxor xmm3, xmm1
aeskeygenassist xmm0, xmm2, 4
pshufd xmm1, xmm0, 0xff
pxor xmm3, xmm1
movdqa xmm1, xmm2
pslldq xmm1, 4
movdqa xmm0, xmm1
movdqu xmmword [rdx + 0x60], xmm3
pxor xmm0, xmm2
pslldq xmm1, 4
movdqa xmm2, xmm1
pslldq xmm1, 4
pxor xmm2, xmm0
pxor xmm2, xmm1
aeskeygenassist xmm0, xmm3, 0
pshufd xmm1, xmm0, 0xaa
pxor xmm2, xmm1
movdqa xmm1, xmm3
movdqu xmmword [rdx + 0x70], xmm2
pslldq xmm1, 4
movdqa xmm0, xmm1
pslldq xmm1, 4
movdqa xmm4, xmm1
pxor xmm0, xmm3
pslldq xmm1, 4
pxor xmm4, xmm0
pxor xmm4, xmm1
aeskeygenassist xmm0, xmm2, 8
pshufd xmm1, xmm0, 0xff
pxor xmm4, xmm1
movdqa xmm1, xmm2
pslldq xmm1, 4
movdqa xmm0, xmm1
movdqu xmmword [rdx + 0x80], xmm4
pxor xmm0, xmm2
pslldq xmm1, 4
movdqa xmm3, xmm1
pslldq xmm1, 4
pxor xmm3, xmm0
pxor xmm3, xmm1
aeskeygenassist xmm0, xmm4, 0
pshufd xmm1, xmm0, 0xaa
pxor xmm3, xmm1
movdqa xmm1, xmm4
pslldq xmm1, 4
movdqa xmm0, xmm1
movdqu xmmword [rdx + 0x90], xmm3
pslldq xmm1, 4
pxor xmm0, xmm4
movdqa xmm2, xmm1
pslldq xmm1, 4
pxor xmm2, xmm0
pxor xmm2, xmm1
aeskeygenassist xmm0, xmm3, 0x10
pshufd xmm1, xmm0, 0xff
pxor xmm2, xmm1
movdqu xmmword [rdx + 0xa0], xmm2
ret
Function at 0x1401ae0e0
Capabilities:
Encode data using xor

Disassembly:
mov r9d, 0xc8
jmp fcn.1401addf0
Function at 0x1401da884
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1401da897
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.1401daea4
lea rdx, [0x14032fec8]
lea rcx, [rsp + 0x20]
call fcn.1401f4780
int3

Function at 0x1401e50e0
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x14034adb8]
xor edx, edx
jmp fcn.1401da884

Function at 0x1401e5a64
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x14034adb8]
jmp fcn.1401da884

Function at 0x1401f11b8
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x1401f1274]
mov r9, qword [r9 + 8]
jmp fcn.1401e2a98

Function at 0x1401f124c
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x1401f1284]
mov r9, qword [r9 + 8]
jmp fcn.1401e2a98

Function at 0x1401ff138
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 0x1401fefa3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401fefa3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401fefa3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401fefa3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401fefa3
cmp dword [rcx + 0x84], 0xe
jbe 0x1401fefa3
cmp dword [rcx + 0xf8], 0
je 0x1401fefa3
mov ecx, ebx
call fcn.1401ff054
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.1401fee30
nop
cmp dword [rbp + 0x20], 0
je 0x1401feff1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1401feffc
int3
xor r8d, r8d
xor edx, edx
jmp 0x1401fef34
Function at 0x14020b370
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x140336e78]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x140294b68]
mov rbp, rcx
call fcn.14021dac0
xor edi, edi
test rax, rax
je 0x14020b456
mov ebx, edi
call fcn.1401fece8
mov r14d, dword [rax]
call fcn.1401fece8
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.14021da0c
mov rsi, rax
test rax, rax
je 0x14020b3e7
call fcn.1401fece8
mov dword [rax], r14d
jmp 0x14020b411
call fcn.1401fece8
cmp dword [rax], 0x22
jne 0x14020b44e
call fcn.1401fece8
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.14021da0c
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x14020b44e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x14020b415
cmp rax, 3
je 0x14020b430
mov rcx, rsi
call fcn.14020b2cc
test al, al
je 0x14020b441
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x14020b441
mov dil, 1
mov rcx, rbx
call fcn.1401fee14
mov al, dil
jmp 0x14020b458
mov rcx, rbx
call fcn.1401fee14
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1401d7af0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x14021194c
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 0x140211983
call fcn.1401fece8
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.1401fe6c4
xor eax, eax
jmp 0x140211a11
mov rdx, r9
mov rcx, r8
call fcn.1402118e8
mov rbx, rax
test rax, rax
je 0x140211a0e
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140211814]
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 0x1402119fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1401fec5c
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1402119e2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1402119f1
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140218230
jmp 0x140211a0e
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140211a0b
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 0x14021b1bc
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.1401d74c0
sub rsp, rax
mov rax, qword [0x140336e78]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1402102ec
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14021b20b
mov rax, rbp
jmp 0x14021b313
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 + 0x34b680]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14021c2dc
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x34b680]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14021b30f
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 0x14021b30f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14021c2dc
test rax, rax
js 0x14021b30f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14021b30f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14021b301
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14021b301
cmp byte [rcx], 0xd
jne 0x14021b2e7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14021b2f6
cmp byte [rcx + 1], 0xa
jne 0x14021b2f6
inc rcx
jmp 0x14021b2f6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x337380]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14021b2c9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14021b313
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1401d7af0
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 0x14021b534
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14021b54a
mov al, 1
jmp 0x14021b5aa
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14021b55b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14021b5a8
mov ecx, dword [rcx + 0x18]
nop
call fcn.14021e1ec
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14021b5a8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14021b5a8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14021b5a8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14021b5aa
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14021b67c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x14034b680]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14021b6d3
cmp word [rdx], r13w
jne 0x14021b6d3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14021b6d8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14021b7fd
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14021b81e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14021b711
mov rdx, r9
mov word [rbx], cx
jmp 0x14021b738
cmp r9, r8
jae 0x14021b748
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14021b6f2
jmp 0x14021b7fd
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14021b7f2
cmp dword [rsp + 0x80], esi
je 0x14021b7f2
lea r8, [0x14034b680]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14021b7ca
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14021b79a
mov word [rbx], r13w
jmp 0x14021b7fa
mov ecx, reloc.WS2_32.dll_listen
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14021b7a7
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14021b7fa
cmp word [rsp + 0x70], r13w
jne 0x14021b7d7
cmp rbx, r14
je 0x14021b794
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14021c2e4
cmp word [rsp + 0x70], r13w
je 0x14021b7fd
mov ecx, reloc.WS2_32.dll_listen
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x14034b680]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14021b7f7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14021b7fd
Function at 0x140222a3c
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 0x140222a6c
xor eax, eax
jmp 0x140222b2f
mov rbp, rbx
cmp word [rax], si
je 0x140222a91
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140222a78
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140222a74
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.14021f628
movsxd r14, eax
test eax, eax
jne 0x140222acf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140222a65
mov rcx, r14
call fcn.14021c548
mov rdi, rax
test rax, rax
jne 0x140222ae8
xor ecx, ecx
call fcn.140218230
jmp 0x140222ac4
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.14021f628
test eax, eax
jne 0x140222b19
mov rcx, rdi
call fcn.140218230
jmp 0x140222b23
xor ecx, ecx
call fcn.140218230
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

Function at 0x140222b4c
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
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140222bd3
mov rsi, rbx
cmp word [rax], bp
je 0x140222b92
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140222b7c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140222b78
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14021c548
mov rdi, rax
test rax, rax
je 0x140222bc0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1401f4fc0
mov rbp, rdi
xor ecx, ecx
call fcn.140218230
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret