joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140013478
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x480
mov rax, qword [0x1400280c8]
xor rax, rsp
mov qword [rsp + 0x470], rax
xor ebx, ebx
cmp qword [0x1400280a8], 0xffffffffffffffff
mov r8d, 0x104
mov dword [rsp + 0x48], r8d
mov dword [rsp + 0x44], ebx
mov dword [rsp + 0x40], ebx
lea rsi, str.unknown
je 0x1400135f5
cmp qword [0x1400299c0], rbx
je 0x1400135f5
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, 0x208
cmp eax, ebx
jne 0x1400134f8
lea rcx, [rsp + 0x50]
mov r8, rdi
xor edx, edx
call fcn.140014860
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x44]
lea rcx, [rsp + 0x50]
call fcn.1400110d0
cmp eax, ebx
jge 0x140013518
mov dword [rsp + 0x44], ebx
mov dword [rsp + 0x40], ebx
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
cmp eax, ebx
jne 0x140013541
lea rcx, [rsp + 0x260]
mov r8, rdi
xor edx, edx
call fcn.140014860
xor ecx, ecx
call fcn.1400143c8
mov edi, 1
lea rdx, str._Logging_started:__S_
mov r8, rax
mov ecx, edi
call fcn.140013454
mov r11d, dword [rsp + 0x40]
mov r9d, dword [rsp + 0x44]
movzx ecx, r11w
movzx eax, r9w
lea rdx, [rsp + 0x260]
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], ecx
shr r11d, 0x10
mov dword [rsp + 0x28], r11d
lea r8, [rsp + 0x50]
lea rdx, str.Executable:__S_v_d._d._d._d_r_nComputer__:__S
mov ecx, edi
shr r9d, 0x10
mov dword [rsp + 0x20], eax
call fcn.140013454
mov r11d, dword [0x1400280b0]
cmp r11d, ebx
je 0x1400135db
sub r11d, edi
je 0x1400135d2
sub r11d, edi
je 0x1400135c9
cmp r11d, edi
jne 0x1400135e2
lea rsi, str.debug
jmp 0x1400135e2
lea rsi, str.verbose
jmp 0x1400135e2
lea rsi, str.standard
jmp 0x1400135e2
lea rsi, str.none
lea rdx, str.____logging_level:__s____
mov r8, rsi
mov ecx, edi
call fcn.140013454
jmp 0x1400135fa
mov ebx, 1
mov eax, ebx
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.1400146fc
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140014080
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
mov eax, 0x10058
call fcn.1400200f4
sub rsp, rax
mov rax, qword [0x1400280c8]
xor rax, rsp
mov qword [rsp + 0x10040], rax
and qword [rsp + 0x38], 0
and dword [rsp + 0x30], 0
xor ebx, ebx
mov r12, r9
mov rbp, r8
mov edi, edx
mov rsi, rcx
mov r14d, 0x80070000
cmp qword [0x1400299c8], rbx
jne 0x140014103
mov eax, dword [0x1400299d0]
lea r9d, [rbx + 1]
lea rcx, [0x1400299c8]
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x140014103
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400141c8
mov rcx, qword [0x1400299c8]
lea rax, [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
mov edx, edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x140014147
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400141c8
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r8d, 0x10000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14001417f
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400141c8
mov r8d, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
test r8d, r8d
je 0x14001419e
lea rdx, [rsp + 0x40]
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
jmp 0x14001412a
xor ebx, ebx
mov r9, r12
mov r8, rbp
and dword [rsp + 0x20], ebx
lea edx, [rbx + 2]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x1400141c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400141d8
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, ebx
mov rcx, qword [rsp + 0x10040]
xor rcx, rsp
call fcn.1400146fc
add rsp, 0x10058
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1400142a4
Capabilities:
Read http header

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x30
lea rax, [r11 + 0x18]
mov rdi, rdx
xor ebx, ebx
and qword [r11 - 0x10], rbx
lea r9, [r11 + 0x20]
xor r8d, r8d
mov edx, 0x20000005
mov qword [r11 - 0x18], rax
mov dword [rsp + 0x50], 4
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x1400142f7
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400142fe
mov ecx, dword [rsp + 0x58]
mov qword [rdi], rcx
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14001430c
Capabilities:
Read http header

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x40
xor eax, eax
mov rdi, rdx
lea r9, [r11 - 0x18]
and qword [r11 - 0x20], rax
mov qword [r11 - 0x18], rax
mov qword [r11 - 0x10], rax
lea rax, [r11 + 0x18]
xor r8d, r8d
mov edx, 0x4000000b
xor ebx, ebx
mov dword [rsp + 0x60], 0x10
mov qword [r11 - 0x28], rax
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x140014369
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14001438f
lea rcx, [rsp + 0x30]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
jne 0x14001438f
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x14001467c
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov r11d, dword [r8]
mov rbx, rdx
mov r9, rcx
and r11d, 0xfffffff8
test byte [r8], 4
mov r10, rcx
je 0x1400146aa
mov eax, dword [r8 + 8]
movsxd r10, dword [r8 + 4]
neg eax
add r10, rcx
movsxd rcx, eax
and r10, rcx
movsxd rax, r11d
mov rdx, qword [rax + r10]
mov rax, qword [rbx + 0x10]
mov ecx, dword [rax + 8]
add rcx, qword [rbx + 8]
test byte [rcx + 3], 0xf
je 0x1400146ce
movzx eax, byte [rcx + 3]
and eax, 0xfffffff0
cdqe
add r9, rax
xor r9, rdx
mov rcx, r9
add rsp, 0x20
pop rbx
jmp fcn.1400146fc

Function at 0x1400158f0
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x140015758
Function at 0x140016deb
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1400280c8]
jne 0x140014716
rol rcx, 0x10
test cx, 0xffff
jne 0x140014712
repz ret
ror rcx, 0x10
jmp 0x140016d44
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140029f40]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x14002a038]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140016dc9
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140029f40]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140016deb
mov rax, qword [rsp + 0x88]
mov qword [0x14002a038], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140029fd8], rax
mov rax, qword [0x14002a038]
mov qword [0x140029eb0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140029fc0], rax
mov dword [0x140029ea0], 0xc0000409
mov dword [0x140029ea4], 1
mov rax, qword [0x1400280c8]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1400280d0]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140029f38], eax
mov ecx, 1
call fcn.14001c000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140023588]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140029f38], 0
jne 0x140016e72
mov ecx, 1
call fcn.14001c000
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140016fa0
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x5e0
and dword [rsp + 0x70], 0
lea rcx, [rsp + 0x74]
xor edx, edx
mov r8d, 0x94
call fcn.140014860
lea r11, [rsp + 0x70]
lea rax, [rsp + 0x110]
lea rcx, [rsp + 0x110]
mov qword [rsp + 0x48], r11
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x208]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call sub.KERNEL32.dll_RtlLookupFunctionEntry
test rax, rax
je 0x14001703c
and qword [rsp + 0x38], 0
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x58]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x110]
mov r8, rbx
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14001705c
mov rax, qword [rsp + 0x5e8]
mov qword [rsp + 0x208], rax
lea rax, [rsp + 0x5e8]
mov qword [rsp + 0x1a8], rax
mov rax, qword [rsp + 0x5e8]
mov dword [rsp + 0x70], 0xc0000417
mov dword [rsp + 0x74], 1
mov qword [rsp + 0x80], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x1400170a7
test ebx, ebx
jne 0x1400170a7
lea ecx, [rax + 2]
call fcn.14001c000
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000417
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x5e0
pop rbx
ret
Function at 0x14001b8f8
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.1400168f4
xor ebx, ebx
mov rdi, rax
cmp qword [0x14002a6c0], rbx
jne 0x14001b9fe
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14001bad3
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001bad3
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x14002a6c0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x14002a6c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x14002a6d0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x14002a6e0], rax
test rax, rax
je 0x14001b9f5
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x14002a6d8], rax
jmp 0x14001ba05
mov rax, qword [0x14002a6d8]
jmp 0x14001ba0c
mov rax, qword [0x14002a6d8]
mov r11, qword [0x14002a6e0]
cmp rax, rdi
je 0x14001ba74
cmp r11, rdi
je 0x14001ba74
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x14002a6e0]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x14001ba74
test rax, rax
je 0x14001ba74
call rsi
test rax, rax
je 0x14001ba6e
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14001ba6e
test byte [rsp + 0x38], 1
jne 0x14001ba74
bts ebp, 0x15
jmp 0x14001bab2
mov rcx, qword [0x14002a6c8]
cmp rcx, rdi
je 0x14001bab2
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14001bab2
call rax
mov rbx, rax
test rax, rax
je 0x14001bab2
mov rcx, qword [0x14002a6d0]
cmp rcx, rdi
je 0x14001bab2
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14001bab2
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14002a6c0]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14001bad3
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x14001bad5
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140001820
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push r14
sub rsp, 0x88
mov rax, qword [0x140022008]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rax, qword [0x140022a30]
mov ebx, r9d
mov r10, r8
mov qword [rsp + 0x58], rax
xor ebp, ebp
mov dword [rsp + 0x40], 1
xor eax, eax
mov dword [rsp + 0x50], ebp
mov rsi, rdx
mov qword [rsp + 0x70], rax
mov r14, rcx
mov qword [rsp + 0x48], rbp
mov rcx, qword [0x140022a38]
xorps xmm0, xmm0
xor r9d, r9d
mov qword [rsp + 0x20], rbp
mov r8d, ebx
mov rdx, r10
movups xmmword [rsp + 0x60], xmm0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400018a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14000198f
mov edx, 0x80
mov qword [rsp + 0x80], rdi
xor ecx, ecx
mov r8d, 0x1000
lea r9d, [rdx - 0x7c]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
test rax, rax
jne 0x1400018d2
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140001987
movaps xmm0, xmmword [rsp + 0x40]
lea r8, [rsp + 0x40]
movaps xmm1, xmmword [rsp + 0x50]
lea rdx, [rsp + 0x50]
mov qword [rax + 0x20], rsi
mov r9d, ebx
mov dword [rax + 0x28], ebx
mov eax, 0xc02
mov word [rdi], ax
mov dword [rdi + 4], 0x80
mov byte [rdi + 0x2c], 1
mov dword [rdi + 8], 1
mov qword [r14], rdi
mov rcx, qword [0x140023c78]
mov dword [rsp + 0x30], ebp
mov qword [rsp + 0x28], rbp
movdqa xmmword [rsp + 0x40], xmm0
movdqa xmmword [rsp + 0x50], xmm1
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_BuildIoRingReadFile]
mov ebx, eax
test eax, eax
jne 0x140001971
mov rcx, qword [0x140023c78]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SubmitIoRing]
mov ebx, eax
test eax, eax
jne 0x140001971
mov rcx, qword [0x140023c78]
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_PopIoRingCompletion]
mov ebx, eax
test eax, eax
jne 0x140001971
mov ebx, dword [rsp + 0x68]
mov edx, 0x80
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, ebx
mov rdi, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140001cd0
add rsp, 0x88
pop r14
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400026c4
Capabilities:
Parse pe header

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

Function at 0x140008f5c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140008d58
Function at 0x14000e3d0
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 0x14000e400
xor eax, eax
jmp 0x14000e4c3
mov rbp, rbx
cmp word [rax], si
je 0x14000e425
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000e40c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000e408
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.14000e2f0
movsxd r14, eax
test eax, eax
jne 0x14000e463
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000e3f9
mov rcx, r14
call fcn.14000aa4c
mov rdi, rax
test rax, rax
jne 0x14000e47c
xor ecx, ecx
call fcn.140009dd4
jmp 0x14000e458
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.14000e2f0
test eax, eax
jne 0x14000e4ad
mov rcx, rdi
call fcn.140009dd4
jmp 0x14000e4b7
xor ecx, ecx
call fcn.140009dd4
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 0x1400127ec
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140012802
mov al, 1
jmp 0x140012862
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140012813
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140012860
mov ecx, dword [rcx + 0x18]
nop
call fcn.14000ecf0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140012860
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140012860
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140012860
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140012862
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400138a0
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.14000c884
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001392a
cmp byte [rbp - 0x21], r15b
je 0x140013925
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140013960
call fcn.14000a024
test eax, eax
jne 0x14001394c
cmp byte [rbp - 0x21], r15b
je 0x140013944
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140013960
cmp byte [rbp - 0x21], r15b
je 0x14001395d
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.14000ca3c
test eax, eax
jne 0x140013a00
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000c884
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001399f
cmp byte [rbp - 0x21], r15b
je 0x1400139d4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400139d4
call fcn.14000a024
test eax, eax
jne 0x1400139c0
cmp byte [rbp - 0x21], r15b
je 0x1400139b9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400139d4
cmp byte [rbp - 0x21], r15b
je 0x1400139d1
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.14000ca3c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140013a00
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140013a03
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140013a11
mov rcx, rdi
call fcn.140009dd4
cmp byte [rbp + 0x3f], r15b
je 0x140013a20
mov rcx, qword [rbp + 0x27]
call fcn.140009dd4
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

Function at 0x140015f90
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140015fb8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140015fb8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400066f4
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rdi, qword [rcx + 0x20]
mov rsi, qword [rcx + 0x18]
mov rbp, qword [rcx + 0x10]
mov r14, qword [rcx + 8]
mov r15, qword [rcx]
mov ecx, dword [r15]
mov r9, rsi
inc ecx
mov qword [rsp + 0x20], rdi
mov r8, rbp
mov rdx, r14
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
jns 0x140006749
call fcn.140026f3c
cmp dword [rax], 4
je 0x14000671f
mov rbp, qword [rsp + 0x58]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret

Function at 0x140006768
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov rdi, qword [rcx + 0x18]
mov rsi, qword [rcx + 0x10]
mov r14, qword [rcx + 8]
mov r15, qword [rcx]
mov r9d, dword [rdi]
mov r8d, dword [rsi]
mov rdx, qword [r14]
mov rcx, qword [r15]
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbx, eax
test eax, eax
jns 0x1400067b3
call fcn.140026f3c
cmp dword [rax], 4
je 0x140006790
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret

Function at 0x1400067d4
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov rdi, qword [rcx + 0x18]
mov rsi, qword [rcx + 0x10]
mov r14, qword [rcx + 8]
mov r15, qword [rcx]
mov r9d, dword [rdi]
mov r8d, dword [rsi]
mov rdx, qword [r14]
mov rcx, qword [r15]
call qword [sym.imp.WS2_32.dll_send]
movsxd rbx, eax
test eax, eax
jns 0x14000681f
call fcn.140026f3c
cmp dword [rax], 4
je 0x1400067fc
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret

Function at 0x140006840
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x30
mov rdi, qword [rcx + 0x10]
mov rsi, qword [rcx + 8]
mov r14, qword [rcx]
mov ecx, dword [r14]
xor r9d, r9d
inc ecx
mov qword [rsp + 0x20], rdi
mov r8, rsi
xor edx, edx
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
jns 0x140006889
call fcn.140026f3c
cmp dword [rax], 4
je 0x140006860
mov rsi, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret