joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800f6e20
Capabilities:
Get common file path
Initialize winsock library

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x180212e80]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
test cl, 2
je 0x1800f6e86
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.ws2_32.dll_WSAStartup]
test eax, eax
jne 0x1800f6e69
movzx eax, word [rsp + 0x30]
cmp al, 2
jne 0x1800f6e63
shr ax, 8
cmp al, 2
je 0x1800f6e86
call qword [sym.imp.ws2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1801458d0
add rsp, 0x1e8
ret
call fcn.18011e2f0
test eax, eax
jne 0x1800f7099
mov qword [rsp + 0x200], rsi
lea rcx, [0x1801a9780]
mov qword [rsp + 0x208], rdi
xor esi, esi
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x1800f6ec6
mov qword [0x180213d08], rsi
jmp 0x1800f7054
mov qword [rsp + 0x1f0], rbx
lea rdx, [0x1801a9790]
mov rcx, rdi
mov qword [rsp + 0x1f8], rbp
call qword [sym.imp.kernel32.dll_GetProcAddress]
lea rbx, str.iphlpapi.dll
mov rbp, rax
mov rcx, rbx
lea rdx, [0x1801a97a0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strpbrk]
test rax, rax
je 0x1800f6f2d
mov rcx, rbx
test rbp, rbp
je 0x1800f6f1f
xor edx, edx
mov r8d, 8
call rbp
mov rsi, rax
jmp 0x1800f701c
call qword [sym.imp.kernel32.dll_LoadLibraryA]
mov rsi, rax
jmp 0x1800f701c
test rbp, rbp
je 0x1800f6f5c
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x1800f6f5c
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call rbp
mov rsi, rax
jmp 0x1800f701c
xor edx, edx
mov qword [rsp + 0x1e0], r14
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetSystemDirectoryA]
mov r14d, eax
test eax, eax
je 0x1800f7014
lea ecx, [rax + 1]
add rcx, 0xc
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x1800f700b
mov edx, r14d
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1800f700b
mov rcx, 0xffffffffffffffff
mov rax, rcx
nop dword [rax + rax]
cmp byte [rdi + rax + 1], sil
lea rax, [rax + 1]
jne 0x1800f6fb0
mov word [rax + rdi], 0x5c
inc rcx
cmp byte [rdi + rcx], sil
jne 0x1800f6fc1
mov rax, rdi
sub rax, rbx
add rcx, rax
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x1800f6fe0
mov rcx, rdi
test rbp, rbp
je 0x1800f7002
xor edx, edx
mov r8d, 8
call rbp
jmp 0x1800f7008
call qword [sym.imp.kernel32.dll_LoadLibraryA]
mov rsi, rax
mov rcx, rdi
call qword [0x180211fa8]
mov r14, qword [rsp + 0x1e0]
mov rbp, qword [rsp + 0x1f8]
mov rbx, qword [rsp + 0x1f0]
mov qword [0x180213d08], rsi
test rsi, rsi
je 0x1800f7054
lea rdx, str.if_nametoindex
mov rcx, rsi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x1800f7054
mov qword [0x180213d00], rax
mov r9d, 2
mov dword [rsp + 0x20], 3
xor r8d, r8d
xor edx, edx
mov ecx, 6
call fcn.180109b30
test al, al
lea rcx, [0x180216a28]
setne byte [0x180216a20]
call qword [sym.imp.kernel32.dll_QueryPerformanceFrequency]
mov rdi, qword [rsp + 0x208]
xor eax, eax
mov rsi, qword [rsp + 0x200]
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1801458d0
add rsp, 0x1e8
ret
Function at 0x1801092c0
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rbx, rcx
movaps xmmword [rsp + 0x50], xmm6
lea rcx, [rsp + 0x30]
mov rdi, rdx
call fcn.1800f86c0
mov rcx, rbx
movups xmm6, xmmword [rax]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov rcx, rdi
mov rsi, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov r8d, 1
mov rcx, rsi
mov rdx, rax
mov rbx, rax
call qword [sym.imp.kernel32.dll_MoveFileExA]
test eax, eax
jne 0x180109370
nop word [rax + rax]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.1800f86c0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call fcn.1800f8750
cmp rax, 0x3e8
ja 0x1801093a3
mov ecx, 1
call qword [sym.imp.kernel32.dll_Sleep]
mov r8d, 1
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.kernel32.dll_MoveFileExA]
test eax, eax
je 0x180109320
test rsi, rsi
je 0x18010937e
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
je 0x18010938c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x60
pop rdi
ret
test rsi, rsi
je 0x1801093b1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
je 0x1801093bf
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, 1
jmp 0x18010938e

Function at 0x18010b570
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, rcx
mov ebx, 1
mov edx, ebx
xor ecx, ecx
xor ebp, ebp
call qword [case.0x1800e2bcc.0]
mov rdi, rax
test rax, rax
je 0x18010b5ed
nop word [rax + rax]
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
mov rbp, rdi
mov esi, ebx
call qword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
mov ebx, eax
test eax, eax
je 0x18010b618
cmp ebx, esi
je 0x18010b618
cmp ebx, 0x8000
ja 0x18010b618
cmp ebx, esi
jb 0x18010b613
mov edx, ebx
mov rcx, rdi
call qword [case.0x1800e2bcc.0]
mov rdi, rax
test rax, rax
jne 0x18010b5b0
mov rcx, rbp
call qword [0x180211fa8]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rax, rdi
jmp 0x18010b5f8
mov rcx, rdi
jmp 0x18010b5f0
Function at 0x18010e120
Capabilities:
Resolve dns

Disassembly:
push rdi
push r12
push r13
push r15
sub rsp, 0x28
mov r13, r9
xor edi, edi
mov qword [r9], rdi
xor r15d, r15d
lea r9, [rsp + 0x68]
call qword [sym.imp.ws2_32.dll_getaddrinfo]
mov r12d, eax
test eax, eax
jne 0x18010e2be
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rsi
mov rsi, qword [rsp + 0x68]
test rsi, rsi
je 0x18010e29e
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x20], r14
nop
mov rax, qword [rsi + 0x18]
test rax, rax
je 0x18010e18e
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x18010e180
inc rbx
jmp 0x18010e190
xor ebx, ebx
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x18010e19f
mov ebp, 0x10
jmp 0x18010e1ad
cmp eax, 0x17
jne 0x18010e245
mov ebp, 0x1c
cmp qword [rsi + 0x20], 0
je 0x18010e245
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x18010e245
cmp rax, rbp
jb 0x18010e245
lea rcx, [rbp + 0x30]
add rcx, rbx
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
test rax, rax
je 0x18010e254
mov ecx, dword [rsi]
mov r8, rbp
mov dword [rax], ecx
mov ecx, dword [rsi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rsi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rsi + 0xc]
mov dword [rax + 0xc], ecx
lea rcx, [r14 + 0x30]
mov dword [rax + 0x10], ebp
xor eax, eax
mov qword [r14 + 0x18], rax
mov qword [r14 + 0x28], rax
mov qword [r14 + 0x20], rcx
mov rdx, qword [rsi + 0x20]
call sub.VCRUNTIME140.dll_memcpy
test rbx, rbx
je 0x18010e232
mov rcx, qword [r14 + 0x20]
mov r8, rbx
add rcx, rbp
mov qword [r14 + 0x18], rcx
mov rdx, qword [rsi + 0x18]
call sub.VCRUNTIME140.dll_memcpy
test rdi, rdi
cmove rdi, r14
test r15, r15
je 0x18010e242
mov qword [r15 + 0x28], r14
mov r15, r14
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x18010e170
jmp 0x18010e25a
mov r12d, 8
mov rcx, qword [rsp + 0x68]
mov r14, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x58]
test rcx, rcx
je 0x18010e274
call qword [sym.imp.ws2_32.dll_freeaddrinfo]
test r12d, r12d
je 0x18010e299
test rdi, rdi
je 0x18010e295
nop
mov rbx, qword [rdi + 0x28]
mov rcx, rdi
call qword [0x180211fa8]
mov rdi, rbx
test rbx, rbx
jne 0x18010e280
xor edi, edi
jmp 0x18010e2ad
test rdi, rdi
jne 0x18010e2ad
mov r12d, 0x2af9
mov ecx, r12d
call qword [sym.imp.ws2_32.dll_WSASetLastError]
mov rsi, qword [rsp + 0x60]
mov eax, r12d
mov rbx, qword [rsp + 0x50]
mov qword [r13], rdi
add rsp, 0x28
pop r15
pop r13
pop r12
pop rdi
ret
Function at 0x180113f60
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
mov r9, rdx
mov r8, rcx
mov qword [rsp + 0x28], rbx
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
test rax, rax
je 0x180113f97
cmp rax, 0xffffffffffffffff
cmovne rbx, rax
mov rax, rbx
add rsp, 0x30
pop rbx
ret
add rsp, 0x30
pop rbx
ret
Function at 0x180117530
Capabilities:
Check http status code

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 rbp, r8
mov rdi, rdx
mov r15, rcx
lea rdx, str.WWW_Authenticate:
mov r8d, 0x11
mov rcx, r9
mov rbx, r9
call fcn.1800dab90
test eax, eax
je 0x18011757d
mov r14d, dword [rdi + 0x14c]
cmp r14d, 0x191
je 0x1801175a6
mov r8d, 0x13
lea rdx, str.Proxy_authenticate:
mov rcx, rbx
call fcn.1800dab90
test eax, eax
je 0x180117604
mov r14d, dword [rdi + 0x14c]
cmp r14d, 0x197
jne 0x180117604
mov rcx, rbx
call fcn.1800fc370
mov rsi, rax
test rax, rax
jne 0x1801175c0
mov eax, 0x1b
jmp 0x1801177cf
mov r9, rbx
lea r8, str.CONNECT:_fwd_auth_header__s
mov rdx, r15
mov rcx, rdi
call fcn.1800f2a70
cmp r14d, 0x197
mov r8, rsi
mov rcx, rdi
sete dl
call fcn.1800fda90
mov rcx, rsi
mov ebx, eax
call qword [0x180211fa8]
test ebx, ebx
je 0x1801177cd
mov eax, ebx
jmp 0x1801177cf
mov r8d, 0xf
lea rdx, str.Content_Length:
mov rcx, rbx
call fcn.1800dab90
test eax, eax
je 0x180117661
mov r8d, dword [rdi + 0x14c]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x180117644
lea rdx, str.Ignoring_Content_Length_in_CONNECT__03d_response
mov rcx, rdi
call fcn.1800f2a20
jmp 0x1801177cd
lea r9, [rbp + 0xa0]
xor edx, edx
lea rcx, [rbx + 0xf]
mov r8d, 0xa
call fcn.180108930
jmp 0x1801177cd
lea r9, str.close
mov qword [rsp + 0x20], 5
mov r8d, 0xb
lea rdx, str.Connection:
mov rcx, rbx
call fcn.1800fc290
test al, al
jne 0x1801177c6
mov r8d, 0x12
lea rdx, str.Transfer_Encoding:
mov rcx, rbx
call fcn.1800dab90
test eax, eax
je 0x180117725
mov r8d, dword [rdi + 0x14c]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x1801176ce
lea rdx, str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response
mov rcx, rdi
call fcn.1800f2a20
jmp 0x1801177cd
lea r9, str.chunked
mov qword [rsp + 0x20], 7
mov r8d, 0x12
lea rdx, str.Transfer_Encoding:
mov rcx, rbx
call fcn.1800fc290
test al, al
je 0x1801177cd
lea rdx, str.CONNECT_responded_chunked
mov rcx, rdi
call fcn.1800f2a20
lea rdx, [rbp + 0x50]
mov byte [rbp + 0xac], 1
mov r8b, 1
mov rcx, rdi
call fcn.18010fcd0
jmp 0x1801177cd
lea r9, str.close
mov qword [rsp + 0x20], 5
mov r8d, 0x11
lea rdx, str.Proxy_Connection:
mov rcx, rbx
call fcn.1800fc290
test al, al
jne 0x1801177c6
mov r8d, 7
lea rdx, str.HTTP_1.
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x1801177cd
movzx eax, byte [rbx + 7]
sub al, 0x30
cmp al, 1
ja 0x1801177cd
cmp byte [rbx + 8], 0x20
jne 0x1801177cd
movsx ecx, byte [rbx + 9]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x1801177cd
movsx edx, byte [rbx + 0xa]
lea eax, [rdx - 0x30]
cmp al, 9
ja 0x1801177cd
movsx r8d, byte [rbx + 0xb]
lea eax, [r8 - 0x30]
cmp al, 9
ja 0x1801177cd
movzx eax, byte [rbx + 0xc]
sub al, 0x30
cmp al, 9
jbe 0x1801177cd
lea ecx, [rcx + rcx*4]
lea ecx, [rdx + rcx*2]
lea ecx, [rcx + rcx*4]
lea ecx, [rcx - 0xa68]
lea ecx, [r8 + rcx*2]
mov dword [rdi + 0x14c], ecx
mov dword [rdi + 0x1274], ecx
jmp 0x1801177cd
mov byte [rbp + 0xad], 1
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x180126470
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push r15
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbp, rcx
mov ecx, dword [rcx + 0x20]
mov rsi, rdx
add rcx, 0x18
mov r15d, r8d
lea r9d, [rax + rax]
add rcx, r9
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
jne 0x1801264b3
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop rsi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbp
mov qword [rax + 8], rcx
mov eax, dword [rbp + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rdi
mov qword [rbx + 0x10], rax
lea rdi, [rbp + 8]
mov qword [rsp + 0x50], r14
cmp r15d, dword [rbp + 0x1c]
jbe 0x180126500
call qword [rbp]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, rsi
call qword [rdi]
mov esi, dword [rbp + 0x18]
add rsi, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, rsi
call qword [rbp + 0x10]
mov r15d, dword [rbp + 0x20]
mov rcx, qword [rbx + 8]
call qword [rbp]
mov rcx, qword [rbx + 0x10]
call qword [rbp]
xor r14d, r14d
test r15, r15
je 0x180126562
mov r14, r15
nop dword [rax]
movzx eax, byte [rsi]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rbx + 8]
call qword [rdi]
movzx eax, byte [rsi]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea rsi, [rsi + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rbx + 0x10]
call qword [rdi]
sub r15, 1
jne 0x180126520
lea rdi, [rbp + 8]
mov eax, dword [rbp + 0x1c]
cmp r14, rax
jae 0x1801265a1
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x1801b2501]
mov r8d, 1
call qword [rdi]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x1801b2502]
mov r8d, 1
call qword [rdi]
mov eax, dword [rbp + 0x1c]
inc r14
cmp r14, rax
jb 0x180126570
mov r14, qword [rsp + 0x50]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rsi
pop rbp
ret
Function at 0x1801267a0
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x180212e80]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbp, r8
mov dword [rsp + 0x20], 0xf0000040
mov rsi, rdx
mov rdi, rcx
xor r8d, r8d
lea rcx, [rsp + 0x38]
xor edx, edx
mov r9d, 0x18
call qword [sym.imp.advapi32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1801267ec
mov eax, 0x1b
jmp 0x1801268bf
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x800c
call qword [sym.imp.advapi32.dll_CryptCreateHash]
test eax, eax
jne 0x180126830
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.advapi32.dll_CryptReleaseContext]
mov eax, 2
mov qword [rsp + 0x38], 0
jmp 0x1801268bf
mov rcx, rbp
call fcn.1800ea910
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
mov r8d, eax
mov rdx, rsi
call qword [sym.imp.advapi32.dll_CryptHashData]
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x30], 0
mov edx, 2
mov dword [rsp + 0x20], 0
call qword [sym.imp.advapi32.dll_CryptGetHashParam]
cmp dword [rsp + 0x30], 0x20
jne 0x18012689b
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
mov r8, rdi
mov dword [rsp + 0x20], 0
mov edx, 2
call qword [sym.imp.advapi32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1801268ab
call qword [sym.imp.advapi32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1801268bd
xor edx, edx
call qword [sym.imp.advapi32.dll_CryptReleaseContext]
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1801458d0
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x180140440
Capabilities:
Query environment variable

Disassembly:
movzx eax, byte [str.d38cc827_e34f_4453_9df4_1e796e9f1d07]
cmp al, 0x65
je 0x18014044e
xor al, al
ret
jmp fcn.180142b10
Function at 0x180142b10
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbp, rcx
mov rsi, rdx
xor ecx, ecx
mov rax, rdx
mov qword [rdx + 0x10], rcx
cmp qword [rdx + 0x18], 7
jbe 0x180142b39
mov rax, qword [rdx]
mov word [rax], cx
xor r8d, r8d
mov rcx, rbp
mov qword [rsp + 0x30], rbx
xor edx, edx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov r14d, eax
test eax, eax
je 0x180142b8c
mov eax, 2
mov rbx, 0xffffffffffffffff
mul r14
cmovb rax, rbx
mov rcx, rax
call fcn.180145c54
mov r8d, r14d
mov rdx, rax
mov rcx, rbp
mov rdi, rax
call qword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x180142bc0
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0xcb
je 0x180142bb7
test eax, eax
jle 0x180142ba5
movzx eax, ax
or eax, 0x80070000
mov r8d, eax
lea rcx, str.Failed_to_read_environment_variable___s___HRESULT:_0x_X
mov rdx, rbp
call fcn.18013e3c0
xor al, al
jmp 0x180142be2
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x180142bc0
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call fcn.18013f360
mov rcx, rdi
call fcn.180145bcc
mov al, 1
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x18014c100
Capabilities:
Resolve dns

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov r14, r9
mov rsi, rcx
lea rcx, [rbp - 0x28]
call fcn.1800c05f0
mov rdx, qword [rbp - 0x28]
mov rax, rdx
neg rax
jno 0x18014c182
mov rdi, qword [rbp - 0x20]
mov rbx, qword [rbp - 0x18]
xorps xmm0, xmm0
movaps xmmword [rbp - 0x60], xmm0
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x50], xmm0
mov dword [rbp - 0x58], 1
mov qword [rbp - 8], 0
lea r8, [rbp - 0x60]
lea r9, [rbp - 8]
mov rcx, rdi
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x18014c1b2
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x18014c1c6
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
jae 0x18014c1e6
mov rcx, qword [rbp - 0x20]
mov r8d, 1
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
jmp fcn.180016d30
mov rcx, qword [r14]
mov rax, qword [rbp - 8]
movzx ecx, word [rcx]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
mov byte [rdi], 0
test rbx, rbx
je 0x18014c1e6
mov r8d, 1
mov rcx, rdi
mov rdx, rbx
call fcn.180016d30
nop
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
Function at 0x140003d30
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x140089080]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor edx, edx
mov dword [rsp + 0x20], 0x130
mov rdi, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140003e98
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
lea rax, [rsp + 0x4c]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140003d96
cmp qword [rdi + 0x18], 0x10
mov rcx, rdi
mov rsi, qword [rdi + 0x10]
jb 0x140003db0
mov rcx, qword [rdi]
cmp rbx, rsi
lea rdx, [rsp + 0x4c]
mov r8, rsi
cmovb r8, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140003e1e
cmp rsi, rbx
jb 0x140003e1e
ja 0x140003e1e
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rdi + 0x18]
mov ebx, dword [rsp + 0x28]
cmp rdx, 0x10
jb 0x140003e16
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x140003e11
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140003f0c
mov rcx, r8
call fcn.14006b770
mov rax, rbx
jmp 0x140003ed0
lea rdx, [rsp + 0x20]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
je 0x140003e8f
lea rax, [rsp + 0x4c]
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140003e40
cmp qword [rdi + 0x18], 0x10
mov rcx, rdi
mov rsi, qword [rdi + 0x10]
jb 0x140003e5a
mov rcx, qword [rdi]
cmp rbx, rsi
lea rdx, [rsp + 0x4c]
mov r8, rsi
cmovb r8, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140003e7d
cmp rsi, rbx
jb 0x140003e7d
jbe 0x140003dcf
lea rdx, [rsp + 0x20]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140003e30
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x140003ece
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x140003ec9
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140003f0c
mov rcx, r8
call fcn.14006b770
xor eax, eax
mov byte [rdi], 0
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov qword [rdi + 0x10], 0
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14006afc0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140005940
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x140005977
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x140005998
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14000599a
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400059f3
test ecx, ecx
jle 0x1400059d3
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
sub rbx, rbp
add r14, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x1400059f3
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400059f3
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x30]
sub rsi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140005a20
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140005a42
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140005a58
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140005a74
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140005a76
xor ecx, ecx
mov qword [rsp + 0x20], rdi
movsxd rax, ecx
test ecx, ecx
je 0x140005ab0
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
sub rbx, rdi
add r14, rdi
mov r8, rbx
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140005b57
mov r9, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r9], rax
jne 0x140005aeb
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x140005b31
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
add r14, rax
mov rdi, rbx
cmp rax, 0xfff
jne 0x140005b70
cmp rbx, rax
ja 0x140005b00
mov r8, rdi
test rdi, rdi
je 0x140005b57
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r8, rdi
sub r8, rax
sub rbp, r8
mov rdi, qword [rsp + 0x20]
mov rax, rbp
mov rbx, qword [rsp + 0x28]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
sub rbp, rbx
jmp 0x140005b5a