joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000b2b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400be280]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000b2d0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000b2d8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000b2d0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000b32d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000b324
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000b2d0
add rax, 0x28
cmp rax, r9
jne 0x14000b310
xor eax, eax
ret

Function at 0x14000b330
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400be280]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000b34f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000b358
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000b34f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x14000b3f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400be280]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000b40f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14000b418
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1400782d0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.msvcrt.dll__fileno_1
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x140078318
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x1400782ea
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x1400b35c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1400b7f60]
jmp 0x14000c100

Function at 0x1400b35d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1400b7f60]
jmp 0x14000c100
Function at 0x140002480
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x270
mov rax, qword [0x1400790c0]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor ebp, ebp
mov dword [rsp + 0x28], 0x101
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.14000ac40
nop
lea rcx, [rsp + 0x30]
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
cmova rcx, r8
mov rax, qword [rsp + 0x40]
lea r14, [rcx + rax*2]
lea rdi, [rsp + 0x30]
cmova rdi, r8
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], recv
cmp rdi, r14
jne 0x140002521
mov byte [rbx], bpl
jmp 0x140002603
mov rax, r14
sub rax, rdi
sar rax, 1
movabs rsi, 0x7fffffffffffffff
cmp rax, rsi
ja 0x140002671
cmp rax, 0xf
jbe 0x1400025c0
or rax, 0xf
cmp rax, rsi
jbe 0x140002579
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.1400375d8
test rax, rax
je 0x140002677
lea rbp, [rax + 0x27]
and rbp, 0xffffffffffffffe0
mov qword [rbp - 8], rax
jmp 0x1400025b1
mov rsi, rax
mov ecx, socket
cmp rax, rcx
cmovb rsi, rcx
lea rcx, [rsi + 1]
cmp rcx, 0x1000
jb 0x1400025a4
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14000266b
jmp 0x14000255a
test rcx, rcx
je 0x1400025b1
call fcn.1400375d8
mov rbp, rax
mov qword [rbx], rbp
mov qword [rbx + 0x18], rsi
nop dword [rax + rax]
mov rdx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x1400025cd
mov rdx, qword [rbx]
movzx ecx, byte [rdi]
mov rax, qword [rbx + 0x10]
mov byte [rdx + rax], cl
inc qword [rbx + 0x10]
mov rax, qword [rbx + 0x10]
add rdi, 2
cmp rdi, r14
jne 0x1400025c0
mov rcx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x1400025f5
mov rcx, qword [rbx]
mov byte [rax + rcx], 0
mov rdx, qword [rsp + 0x48]
mov r8, qword [rsp + 0x30]
cmp rdx, 7
jbe 0x14000263a
lea rdx, [rdx*2 + 2]
mov rax, r8
cmp rdx, 0x1000
jb 0x140002632
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002665
mov rcx, r8
call fcn.1400375d0
mov rax, rbx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400375b0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.140042cec
nop
call fcn.140001270
nop
call fcn.140001310
int3
call fcn.140042cec
int3
Function at 0x140002680
Capabilities:
Check os version
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x120
mov rax, qword [0x1400790c0]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov rbx, rcx
mov qword [rsp + 0x30], rcx
lea rcx, str.ntdll.dll
xor edi, edi
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.RtlGetNtVersionNumbers
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x24]
call rax
cmp dword [rsp + 0x24], 0xa
jne 0x1400026f4
cmp dword [rsp + 0x28], edi
jne 0x1400026f4
lea r8d, [rdi + 0xa]
lea rdx, str.Windows_10
jmp 0x140002809
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x9c
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1400027ff
cmp dword [rsp + 0x44], 6
je 0x140002736
mov r8d, 0xa
lea rdx, str.Windows_11
jmp 0x140002809
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x1400027c6
sub eax, 1
je 0x14000278d
sub eax, 1
jne 0x140002822
cmp byte [rsp + 0xda], 1
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov rcx, rbx
mov qword [rbx + 0x18], rdi
jne 0x14000277b
lea r8d, [rax + 9]
lea rdx, str.Windows_8
jmp 0x14000281a
mov r8d, reloc.WS2_32.dll_send
lea rdx, str.Windows_Server_2012
jmp 0x14000281a
cmp byte [rsp + 0xda], 1
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov rcx, rbx
mov qword [rbx + 0x18], rdi
jne 0x1400027b7
mov r8d, 9
lea rdx, str.Windows_7
jmp 0x14000281a
mov r8d, 0x1e
lea rdx, str.Windows_Windows_Server_2008_R2
jmp 0x14000281a
cmp byte [rsp + 0xda], 1
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov rcx, rbx
mov qword [rbx + 0x18], rdi
jne 0x1400027f0
mov r8d, recv
lea rdx, str.Windows_Vista
jmp 0x14000281a
mov r8d, reloc.WS2_32.dll_send
lea rdx, str.Windows_Server_2008
jmp 0x14000281a
xor r8d, r8d
lea rdx, [0x14006e886]
xorps xmm0, xmm0
mov rcx, rbx
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
call fcn.14000edf0
mov rax, rbx
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.1400375b0
mov rbx, qword [rsp + 0x138]
add rsp, 0x120
pop rdi
ret
Function at 0x140002900
Capabilities:
Download url
Receive data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0xa0
mov rax, qword [0x1400790c0]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rbx, rcx
mov ecx, reloc.WS2_32.dll_recv
call fcn.1400375d8
mov rdi, rax
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
xor esi, esi
test rbx, rbx
je 0x1400029ea
mov qword [rsp + 0x20], rsi
xor r9d, r9d
lea r8, [rsp + 0x38]
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLOpenBlockingStreamA]
test eax, eax
js 0x1400029ea
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
lea r8d, [rsi + 1]
lea rdx, [rsp + 0x40]
call qword [rax + 0x60]
test eax, eax
js 0x1400029d4
mov ebx, dword [rsp + 0x50]
inc ebx
mov r14d, ebx
mov ecx, ebx
call fcn.140042d64
mov rsi, rax
test rax, rax
je 0x1400029d8
mov r8d, r14d
xor edx, edx
mov rcx, rax
call fcn.14005f900
mov rcx, qword [rsp + 0x38]
mov r10, qword [rcx]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [r10 + 0x28]
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
lea r8d, [rbx - 1]
xor r9d, r9d
mov rdx, rsi
call qword [rax + 0x18]
jmp 0x1400029d8
mov ebx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400029ee
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
jmp 0x1400029ee
mov ebx, dword [rsp + 0x38]
mov dword [rdi], ebx
mov qword [rdi + 8], rsi
mov rax, rdi
jmp 0x1400029fe
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400375b0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x140002ad0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x270
mov rax, qword [0x1400790c0]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rsi, rcx
mov qword [rsp + 0x38], rcx
xor r14d, r14d
mov dword [rsp + 0x30], r14d
lea rdx, [0x14006e9d4]
call fcn.14000ac40
mov dword [rsp + 0x30], 1
lea r9, [rsp + 0x40]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140062600]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jns 0x140002beb
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x801d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x140002c8b
lea rax, [rsp + 0x50]
mov rdi, 0xffffffffffffffff
nop dword [rax + rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x140002b70
mov rax, qword [rsi + 0x18]
cmp rdi, rax
ja 0x140002bae
mov rbp, rsi
cmp rax, 7
jbe 0x140002b8f
mov rbp, qword [rsi]
mov qword [rsi + 0x10], rdi
lea rbx, [rdi + rdi]
mov r8, rbx
lea rdx, [rsp + 0x50]
mov rcx, rbp
call fcn.14005f260
mov word [rbx + rbp], r14w
jmp 0x140002bbe
lea r9, [rsp + 0x50]
mov rdx, rdi
mov rcx, rsi
call fcn.14000fd60
lea rcx, [rsp + 0x50]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, rsi
cmp qword [rsi + 0x18], 7
jbe 0x140002bd6
mov rax, qword [rsi]
mov rcx, qword [rsi + 0x10]
cmp word [rax + rcx*2 - 2], 0x5c
je 0x140002c8b
jmp 0x140002c76
mov r9, qword [rsp + 0x40]
mov rdi, 0xffffffffffffffff
mov rdx, rdi
nop word [rax + rax]
inc rdx
cmp word [r9 + rdx*2], 0
jne 0x140002c00
mov rax, qword [rsi + 0x18]
cmp rdx, rax
ja 0x140002c3d
mov rbp, rsi
cmp rax, 7
jbe 0x140002c20
mov rbp, qword [rsi]
mov qword [rsi + 0x10], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r9
mov rcx, rbp
call fcn.14005f260
mov word [rbx + rbp], r14w
jmp 0x140002c45
mov rcx, rsi
call fcn.14000fd60
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rdx, qword [rsp + 0x40]
lea rdi, [rdi + 1]
cmp word [rdx + rdi*2], 0
jne 0x140002c55
movzx edx, word [rdx + rdi*2 - 2]
lea rcx, [0x14006e9d8]
call fcn.14003937c
test rax, rax
jne 0x140002c8b
mov r8d, 1
lea rdx, [0x14006e9d8]
mov rcx, rsi
call fcn.14000cce0
mov rax, rsi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400375b0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140008780
Capabilities:
Check mutex on windows

Disassembly:
sub rsp, 0x228
mov rax, qword [0x1400790c0]
xor rax, rsp
mov qword [rsp + 0x210], rax
lea r8, str.zQAVAVAOz
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rcx, rax
mov qword [0x14007ccf0], rax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
jne 0x140008845
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x1c0
call fcn.14005f900
xorps xmm0, xmm0
lea rdx, str.scr.nz
xorps xmm1, xmm1
lea rcx, [rsp + 0x30]
mov r8d, 6
movdqa xmmword [rsp + 0x40], xmm1
movups xmmword [rsp + 0x30], xmm0
call fcn.14000edf0
mov dword [rsp + 0x50], 0x5e31
nop dword [rax + rax]
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x20], 0
lea rcx, [rsp + 0x30]
call fcn.140003d60
movzx eax, byte [rsp + 0x20]
test al, al
je 0x140008838
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140008810
xor eax, eax
mov rcx, qword [rsp + 0x210]
xor rcx, rsp
call fcn.1400375b0
add rsp, 0x228
ret

Function at 0x140009fc0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140009fe2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x14000a05c
mov rdi, r14
mov rcx, rbx
call fcn.14000ca80
test rax, rax
jle 0x14000a034
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.14005f260
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14000a04c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x14000a054
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140009ff6
sub r14, rdi
jmp 0x14000a13f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x14000a073
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000a075
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000a0a7
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.14005f260
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14000a13c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000a0e2
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x14000a11d
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.1400424dc
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x14000a13c
cmp rbp, rax
ja 0x14000a0f0
test rbp, rbp
je 0x14000a13c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.1400424dc
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
Function at 0x14002c6b4
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x140018732
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x140018715
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x140018700

Function at 0x140038244
Capabilities:
Parse pe header

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

Function at 0x14003f0e4
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 0x14003f11b
call fcn.140042e40
mov dword [rax], socket
call fcn.140042ccc
xor eax, eax
jmp 0x14003f1a9
mov rdx, r9
mov rcx, r8
call fcn.14003f080
mov rbx, rax
test rax, rax
je 0x14003f1a6
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x14003efac]
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 0x14003f193
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140042db4
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14003f17a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14003f189
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14004d8c4
jmp 0x14003f1a6
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14003f1a3
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 0x14004a688
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14004a484

Function at 0x14004f308
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14004f31e
mov al, 1
jmp 0x14004f37e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14004f32f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14004f37c
mov ecx, dword [rcx + 0x18]
nop
call fcn.140057968
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14004f37c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14004f37c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14004f37c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14004f37e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140052478
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.140037db0
sub rsp, rax
mov rax, qword [0x1400790c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14004f1e8
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400524c7
mov rax, rbp
jmp 0x1400525cf
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 + 0x7c740]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140053e98
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x7c740]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400525cb
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 0x1400525cb
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140053e98
test rax, rax
js 0x1400525cb
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400525cb
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400525bd
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400525bd
cmp byte [rcx], 0xd
jne 0x1400525a3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400525b2
cmp byte [rcx + 1], 0xa
jne 0x1400525b2
inc rcx
jmp 0x1400525b2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x79500]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140052585
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400525cf
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400375b0
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 0x140053238
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, [0x14007c740]
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 0x14005328f
cmp word [rdx], r13w
jne 0x14005328f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140053294
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400533b9
mov r11d, recv
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400533da
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400532cd
mov rdx, r9
mov word [rbx], cx
jmp 0x1400532f4
cmp r9, r8
jae 0x140053304
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 0x1400532ae
jmp 0x1400533b9
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 0x1400533ae
cmp dword [rsp + 0x80], esi
je 0x1400533ae
lea r8, [0x14007c740]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140053386
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140053356
mov word [rbx], r13w
jmp 0x1400533b6
mov ecx, recv
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 0x140053363
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400533b6
cmp word [rsp + 0x70], r13w
jne 0x140053393
cmp rbx, r14
je 0x140053350
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140053ea0
cmp word [rsp + 0x70], r13w
je 0x1400533b9
mov ecx, recv
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, [0x14007c740]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400533b3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400533b9
Function at 0x140056cb4
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 0x140056d3b
mov rsi, rbx
cmp word [rax], bp
je 0x140056cfa
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140056ce4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140056ce0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14004d900
mov rdi, rax
test rax, rax
je 0x140056d28
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14005f260
mov rbp, rdi
xor ecx, ecx
call fcn.14004d8c4
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