joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a7e20
Capabilities:
Hash data using fnv

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 8
mov qword [rsp + 0x18], rax
mov byte [rsp + 0x20], bl
mov qword [rsp], 0
movzx ecx, byte [rsp + 0x20]
xor rax, rcx
mov qword [rsp + 0x18], rax
movabs rcx, 0x100000001b3
imul rax, rcx
mov qword [rsp + 0x18], rax
mov qword [rsp], rax
add rsp, 8
pop rbp
ret

Function at 0x1400a7e80
Capabilities:
Hash data using fnv

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x18
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rcx
mov qword [rsp], 0
mov qword [rsp + 8], 0
jmp 0x1400a7eaa
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x10], rcx
cmp qword [rsp + 8], rcx
jl 0x1400a7ebd
jmp 0x1400a7ef0
mov rcx, qword [rsp + 0x30]
add rcx, qword [rsp + 8]
movzx ecx, byte [rcx]
xor rcx, qword [rsp + 0x28]
mov qword [rsp + 0x28], rcx
movabs rdx, 0x100000001b3
imul rcx, rdx
mov qword [rsp + 0x28], rcx
jmp 0x1400a7ee9
inc qword [rsp + 8]
jmp 0x1400a7eaa
mov rax, qword [rsp + 0x28]
mov qword [rsp], rax
add rsp, 0x18
pop rbp
ret

Function at 0x1400a7f00
Capabilities:
Hash data using fnv

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rbx
mov qword [rsp], 0
mov qword [rsp + 8], 0
jmp 0x1400a7f25
cmp qword [rsp + 8], 8
jl 0x1400a7f2f
jmp 0x1400a7f69
movzx ecx, byte [rsp + 0x28]
xor rcx, qword [rsp + 0x20]
mov qword [rsp + 0x20], rcx
mov rdx, qword [rsp + 0x28]
shr rdx, 8
mov qword [rsp + 0x28], rdx
movabs rdx, 0x100000001b3
imul rcx, rdx
mov qword [rsp + 0x20], rcx
nop
jmp 0x1400a7f62
inc qword [rsp + 8]
jmp 0x1400a7f25
mov rax, qword [rsp + 0x20]
mov qword [rsp], rax
add rsp, 0x10
pop rbp
ret

Function at 0x1400a7f80
Capabilities:
Hash data using fnv

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], ebx
mov qword [rsp], 0
mov qword [rsp + 8], 0
jmp 0x1400a7fa4
cmp qword [rsp + 8], 4
jl 0x1400a7fae
jmp 0x1400a7fe4
movzx ecx, byte [rsp + 0x28]
xor qword [rsp + 0x20], rcx
mov ecx, dword [rsp + 0x28]
shr ecx, 8
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x20]
movabs rdx, 0x100000001b3
imul rcx, rdx
mov qword [rsp + 0x20], rcx
jmp 0x1400a7fdd
inc qword [rsp + 8]
jmp 0x1400a7fa4
mov rax, qword [rsp + 0x20]
mov qword [rsp], rax
add rsp, 0x10
pop rbp
ret

Function at 0x1400bd660
Capabilities:
Execute anti-debugging instructions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rcx, [0x14017dc60]
mov r12d, 1
xor esi, esi
lea rbp, str._d_t_t_llu_n
xor edi, edi
call fcn.1400bd610
nop word [rax + rax]
rdtsc
mov r9d, eax
mov r8d, edx
mov eax, edi
cpuid
rdtsc
shl r8, 0x20
mov eax, eax
shl rdx, 0x20
mov rcx, rbp
or rdx, rax
mov rax, r8
or rax, r9
sub rdx, rax
mov r8, rdx
add rsi, rdx
mov edx, r12d
add r12d, 1
call fcn.1400bd610
mov ecx, 1
call fcn.1400bdc20
cmp r12d, 0xb
jne 0x1400bd690
movabs rax, 0xcccccccccccccccd
lea rcx, str.Average_Time_Difference:__llu_n
mul rsi
mov rsi, rdx
shr rsi, 3
mov rdx, rsi
sub rsi, 1
call fcn.1400bd610
cmp rsi, 0x2ec
seta al
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x1400c2e60
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.1400c3f40
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400c3f40
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x1400c2ed0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140215474]
mov rbx, rcx
test esi, esi
jle 0x1400c3000
mov rax, qword [0x140215478]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400c2f1b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400c2fa5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400c2f00
mov rcx, rbx
call fcn.1400c3940
mov rdi, rax
test rax, rax
je 0x1400c3022
mov rax, qword [0x140215478]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400c3a80
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140215478]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400c3007
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400c2f9e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1400c2fb0
add dword [0x140215474], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140215478]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400c2f9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400c2e60
nop dword [rax]
xor esi, esi
jmp 0x1400c2f28
mov rax, qword [0x140215478]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400c2e60
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400c2e60
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400c35b0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1402154e0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1402154c0]
test rbx, rbx
je 0x1400c360c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x1400c3603
test eax, eax
jne 0x1400c3603
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400c35e8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400c3940
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14017e4f0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400c3960
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400c3968
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400c3960
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400c39bd
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 0x1400c39b4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400c3960
add rax, 0x28
cmp rax, r9
jne 0x1400c39a0
xor eax, eax
ret

Function at 0x1400c39c0
Capabilities:
Parse pe header

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

Function at 0x1400c3a80
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14017e4f0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400c3a9f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400c3aa8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140001810
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x20
xor r9d, r9d
lea rdx, [0x14002ec60]
mov rbx, rcx
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor ecx, ecx
call fcn.14000eda8
int3

Function at 0x140002920
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x140033080]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor r14d, r14d
mov rbp, r9
mov edi, r8d
mov esi, edx
mov rbx, rcx
cmp qword [rcx + 0x6b0], r14
je 0x140002964
call fcn.140001bd0
mov qword [rbx + 0x6b0], r14
mov dword [rbx + 8], esi
mov dword [rbx + 0xc], edi
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
movzx edi, byte [rsp + 0xb0]
test rax, rax
mov qword [0x140033cd8], rax
setne al
mov byte [rbx + 0x88], al
test al, al
jne 0x1400029f4
test dil, dil
je 0x1400029f4
call qword [sym.imp.KERNEL32.dll_AllocConsole]
mov ecx, 1
call fcn.14000ef9c
mov r9, rax
lea rcx, [rbx + 0x6a0]
lea r8, [0x140025668]
lea rdx, [0x140025670]
call fcn.140012a20
xor ecx, ecx
call fcn.14000ef9c
mov r9, rax
lea rcx, [rbx + 0x6a8]
lea r8, [0x140025678]
lea rdx, str.CONIN_
call fcn.140012a20
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov qword [0x140033cd8], rax
jmp 0x1400029fb
mov rax, qword [0x140033cd8]
test rax, rax
je 0x140002a14
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov rax, qword [0x140033cd8]
cmp byte [rbx + 0x88], r14b
je 0x140002a4e
test dil, dil
jne 0x140002a4e
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [rsp + 0x50]
test eax, eax
cmovs eax, r14d
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x54]
test eax, eax
cmovs eax, r14d
mov dword [rsp + 0x34], eax
jmp 0x140002a57
mov qword [rsp + 0x30], 0xffffffffffffffff
movzx eax, byte [rsp + 0xb8]
lea r9, [rsp + 0x30]
mov byte [rsp + 0x38], al
lea r8, [0x140002c00]
movzx eax, byte [rsp + 0xc0]
xor edx, edx
mov byte [rsp + 0x39], al
xor ecx, ecx
movzx eax, byte [rsp + 0xc8]
mov byte [rsp + 0x3a], al
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r14d
mov qword [rsp + 0x40], rbp
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x90]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rcx, [0x140033d08]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rbx + 0x6b0]
call qword [sym.imp.USER32.dll_GetDC]
mov r8d, dword [rbx + 0xc]
mov rcx, rbx
mov edx, dword [rbx + 8]
mov qword [rbx + 0x6b8], rax
call fcn.1400022b0
lea rcx, [0x140033d08]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ecx, ecx
call fcn.140001b40
mov rax, qword [rbx + 0x6b0]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140007810
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1400069e0
Capabilities:
Hide graphical window

Disassembly:
mov rcx, qword [0x140033d40]
jmp fcn.140002720

Function at 0x140007590
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x48
lea rcx, str.gdiplus.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
mov qword [0x140033f48], rax
lea rdx, str.GdiplusStartup
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140033f48]
lea rdx, str.GdiplusShutdown
mov qword [0x140033ee0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140033f48]
lea rdx, str.GdipLoadImageFromStream
mov qword [0x140033ee8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140033f48]
lea rdx, str.GdipGetImageWidth
mov qword [0x140033ef0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140033f48]
lea rdx, str.GdipGetImageHeight
mov qword [0x140033ef8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140033f48]
lea rdx, str.GdipCreateFromHDC
mov qword [0x140033f00], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140033f48]
lea rdx, str.GdipDrawImageRectI
mov qword [0x140033f08], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140033f48]
lea rdx, str.GdipDisposeImage
mov qword [0x140033f10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140033f48]
lea rdx, str.GdipDeleteGraphics
mov qword [0x140033f18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140033f48]
lea rdx, str.GdipGetImageEncodersSize
mov qword [0x140033f20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140033f48]
lea rdx, str.GdipGetImageEncoders
mov qword [0x140033f28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140033f48]
lea rdx, str.GdipCreateBitmapFromGdiDib
mov qword [0x140033f30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140033f48]
lea rdx, str.GdipSaveImageToFile
mov qword [0x140033f38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor r8d, r8d
mov dword [rsp + 0x20], 1
mov qword [0x140033f40], rax
lea rdx, [rsp + 0x20]
xor eax, eax
lea rcx, [0x140033f50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
call qword [0x140033ee0]
add rsp, 0x48
ret

Function at 0x140008364
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400083ae
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400083ae
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400083ae
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400083ae
cmp dword [rcx + 0x84], 0xe
jbe 0x1400083ae
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400083b0
xor al, al
add rsp, 0x28
ret
Function at 0x14000e7bc
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.140023a40
sub rsp, rax
mov rax, qword [0x140033080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140015188
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14000e80b
mov rax, rbp
jmp 0x14000e913
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 + 0x348b0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140015418
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x348b0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14000e90f
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 0x14000e90f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140015418
test rax, rax
js 0x14000e90f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14000e90f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14000e901
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14000e901
cmp byte [rcx], 0xd
jne 0x14000e8e7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14000e8f6
cmp byte [rcx + 1], 0xa
jne 0x14000e8f6
inc rcx
jmp 0x14000e8f6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x333a0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14000e8c9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14000e913
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140007810
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 0x14000eda8
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 0x14000ec13
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000ec13
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000ec13
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000ec13
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000ec13
cmp dword [rcx + 0x84], 0xe
jbe 0x14000ec13
cmp dword [rcx + 0xf8], 0
je 0x14000ec13
mov ecx, ebx
call fcn.14000ecc4
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.14000eaa0
nop
cmp dword [rbp + 0x20], 0
je 0x14000ec61
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000ec6c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000eba4
Function at 0x140015b9c
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, [0x1400348b0]
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 0x140015bf3
cmp word [rdx], r13w
jne 0x140015bf3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140015bf8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140015d1d
mov r11d, recv
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140015d3e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140015c31
mov rdx, r9
mov word [rbx], cx
jmp 0x140015c58
cmp r9, r8
jae 0x140015c68
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 0x140015c12
jmp 0x140015d1d
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 0x140015d12
cmp dword [rsp + 0x80], esi
je 0x140015d12
lea r8, [0x1400348b0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140015cea
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140015cba
mov word [rbx], r13w
jmp 0x140015d1a
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 0x140015cc7
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140015d1a
cmp word [rsp + 0x70], r13w
jne 0x140015cf7
cmp rbx, r14
je 0x140015cb4
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140015420
cmp word [rsp + 0x70], r13w
je 0x140015d1d
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, [0x1400348b0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140015d17
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140015d1d
Function at 0x14001a0c0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001a0d6
mov al, 1
jmp 0x14001a136
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001a0e7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001a134
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001d168
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001a134
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001a134
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001a134
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001a136
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14001c764
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 0x14001c794
xor eax, eax
jmp 0x14001c857
mov rbp, rbx
cmp word [rax], si
je 0x14001c7b9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001c7a0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001c79c
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.14001c684
movsxd r14, eax
test eax, eax
jne 0x14001c7f7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001c78d
mov rcx, r14
call fcn.140017bf8
mov rdi, rax
test rax, rax
jne 0x14001c810
xor ecx, ecx
call fcn.140016f50
jmp 0x14001c7ec
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.14001c684
test eax, eax
jne 0x14001c841
mov rcx, rdi
call fcn.140016f50
jmp 0x14001c84b
xor ecx, ecx
call fcn.140016f50
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 0x140021e20
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140012a38
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140021eaa
cmp byte [rbp - 0x21], r15b
je 0x140021ea5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140021ee0
call fcn.1400171a0
test eax, eax
jne 0x140021ecc
cmp byte [rbp - 0x21], r15b
je 0x140021ec4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140021ee0
cmp byte [rbp - 0x21], r15b
je 0x140021edd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14001add0
test eax, eax
jne 0x140021f80
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140012a38
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140021f1f
cmp byte [rbp - 0x21], r15b
je 0x140021f54
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140021f54
call fcn.1400171a0
test eax, eax
jne 0x140021f40
cmp byte [rbp - 0x21], r15b
je 0x140021f39
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140021f54
cmp byte [rbp - 0x21], r15b
je 0x140021f51
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14001add0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140021f80
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140021f83
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140021f91
mov rcx, rdi
call fcn.140016f50
cmp byte [rbp + 0x3f], r15b
je 0x140021fa0
mov rcx, qword [rbp + 0x27]
call fcn.140016f50
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret