joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400366b4
Capabilities:
Connect socket

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x118]
sub rsp, 0x218
mov rax, qword [0x1400ac108]
xor rax, rsp
mov qword [rbp + 0x100], rax
movsxd r12, r9d
mov rax, r8
mov r13, rdx
lea r9, [rsp + 0x28]
lea r8, [rsp + 0x40]
mov r14, rcx
xor esi, esi
or qword [rdx + r12*8 + 0x170], 0xffffffffffffffff
mov rdx, rax
call fcn.140035f48
mov ebx, eax
test eax, eax
jne 0x140036939
mov edx, dword [rsp + 0x4c]
lea r9, [rsp + 0x24]
lea r8, [rbp - 0x30]
lea rcx, [rsp + 0x50]
call fcn.1400353f4
mov r15, qword [rsp + 0x28]
test al, al
jne 0x14003676e
call fcn.140053204
mov ebx, dword [rax]
call fcn.140053204
mov r8d, 0x100
lea rdx, [rbp]
mov ecx, ebx
mov rdi, rax
call fcn.140046bd4
mov r8d, dword [rdi]
lea rdx, str.sa_addr_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, r14
call fcn.140034b14
jmp 0x1400367ff
cmp dword [rsp + 0x40], 2
jne 0x140036795
cmp dword [rsp + 0x44], 1
jne 0x140036795
mov dil, 1
cmp byte [r14 + 0x97c], sil
je 0x140036798
mov rdx, r15
mov rcx, r14
call fcn.140036a40
jmp 0x140036798
mov dil, sil
mov rcx, r15
call fcn.140035e8c
test dil, dil
je 0x1400367b9
cmp byte [r14 + 0x983], sil
je 0x1400367b9
mov rdx, r15
mov rcx, r14
call fcn.14003695c
cmp qword [r14 + 0x270], rsi
je 0x140036814
mov dl, 1
mov rcx, r14
call fcn.14002bac8
mov rcx, qword [r14 + 0x278]
xor r8d, r8d
mov rdx, r15
call qword [r14 + 0x270]
xor edx, edx
mov rcx, r14
mov edi, eax
call fcn.14002bac8
cmp edi, 2
jne 0x1400367f6
mov dil, 1
jmp 0x140036817
test edi, edi
je 0x140036814
mov esi, 0x2a
mov r8, r15
mov rdx, r13
mov rcx, r14
call fcn.140035490
mov eax, esi
jmp 0x140036939
mov dil, sil
cmp dword [rsp + 0x40], 2
jne 0x140036856
xor r9d, r9d
mov rdx, r15
mov rcx, r14
lea r8d, [r9 + 2]
call fcn.140036274
mov ebx, eax
test eax, eax
je 0x140036856
mov r8, r15
mov rdx, r13
mov rcx, r14
call fcn.140035490
cmp ebx, 1
mov eax, 7
cmove ebx, eax
mov eax, ebx
jmp 0x140036939
mov edx, 1
mov rcx, r15
call fcn.140047bf8
lea rcx, [rsp + 0x28]
call fcn.140039550
cmp dword [r13 + 0x5e8], 1
movups xmm0, xmmword [rax]
movdqu xmmword [r13 + 0x2a8], xmm0
jle 0x1400368ad
mov rdx, qword [r13 + 0x2b8]
mov r8d, 3
mov rcx, r14
call fcn.14002b640
mov rdx, qword [r13 + 0x2c0]
mov r8d, 4
mov rcx, r14
call fcn.14002b640
test dil, dil
jne 0x14003692f
cmp byte [r13 + 0x5fd], 4
je 0x14003692f
cmp byte [r13 + 0x2a0], sil
jne 0x1400368e7
mov r8d, dword [rsp + 0x4c]
lea rdx, [rsp + 0x50]
mov rcx, r15
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1400368e7
test ebx, ebx
jne 0x14003684f
jmp 0x140036922
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
sub edx, 0xb
je 0x140036920
sub edx, 0x2728
je 0x140036920
cmp edx, 1
je 0x140036920
mov r8, r15
mov dword [r14 + 0xc14], eax
mov rdx, r13
mov rcx, r14
call fcn.140035490
mov ebx, 7
jmp 0x14003684f
mov ebx, esi
mov qword [r13 + r12*8 + 0x170], r15
jmp 0x14003684f
mov qword [r13 + r12*8 + 0x170], r15
xor eax, eax
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.14004f320
add rsp, 0x218
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14003695c
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x1400ac108]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor eax, eax
mov dword [rsp + 0x20], 4
cmp byte [rcx + 0x983], al
lea r9, [rsp + 0x50]
mov rdi, rdx
mov rbx, rcx
setne al
mov edx, 0xffff
mov r8d, 8
mov dword [rsp + 0x50], eax
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
js 0x140036a23
mov ecx, dword [rbx + 0x910]
mov dword [rsp + 0x58], 1
call fcn.140036b90
mov ecx, dword [rbx + 0x914]
imul edx, eax, 0x3e8
mov dword [rsp + 0x50], edx
mov dword [rsp + 0x5c], edx
call fcn.140036b90
and qword [rsp + 0x40], 0
lea r8, [rsp + 0x58]
and qword [rsp + 0x38], 0
mov r9d, ntohs
imul edx, eax, 0x3e8
mov rcx, rdi
lea rax, [rsp + 0x54]
mov qword [rsp + 0x30], rax
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov dword [rsp + 0x50], edx
mov dword [rsp + 0x60], edx
mov edx, 0x98000004
call qword [sym.imp.WS2_32.dll_WSAIoctl]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14004f320
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret

Function at 0x140036a40
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov r8d, 1
mov dword [rsp + 0x20], 4
mov rcx, rdx
mov dword [rsp + 0x50], r8d
lea r9, [rsp + 0x50]
lea edx, [r8 + 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret
Function at 0x140036db8
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, rcx
xor ebx, ebx
lea rcx, [0x14008cd30]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rsi, rax
test rax, rax
je 0x140036efd
lea rdx, str.LoadLibraryExA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x14008cd50]
mov rcx, rdi
mov rbp, rax
call fcn.1400599c8
test rax, rax
je 0x140036e2d
mov rcx, rdi
test rbp, rbp
je 0x140036e25
mov r8d, 8
jmp 0x140036e50
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x140036e54
test rbp, rbp
je 0x140036e5c
lea rdx, str.AddDllDirectory
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140036e5c
mov r8d, 0x800
mov rcx, rdi
xor edx, edx
call rbp
mov rbx, rax
jmp 0x140036efa
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r15d, eax
test eax, eax
je 0x140036efa
or r14, 0xffffffffffffffff
mov rdx, r14
inc rdx
cmp byte [rdi + rdx], bl
jne 0x140036e78
lea ecx, [rax + 1]
add rcx, rdx
call qword [fcn.140056704]
mov rsi, rax
test rax, rax
je 0x140036ef1
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x140036ef1
mov rax, r14
inc rax
cmp byte [rsi + rax], bl
jne 0x140036ea7
mov ecx, 0x5c
mov word [rax + rsi], cx
inc r14
cmp byte [rsi + r14], bl
jne 0x140036eb8
mov rcx, rsi
sub rcx, rdi
add rcx, r14
mov al, byte [rdi]
mov byte [rcx + rdi], al
inc rdi
test al, al
jne 0x140036eca
mov rcx, rsi
test rbp, rbp
je 0x140036ee8
xor edx, edx
lea r8d, [rdx + 8]
call rbp
jmp 0x140036eee
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
mov rcx, rsi
call qword [fcn.1400566fc]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x140036f58
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x1400ac108]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
test cl, 2
je 0x140036fad
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140036f94
mov eax, 2
jmp 0x140037026
movzx eax, word [rsp + 0x30]
cmp al, 2
jne 0x140036fa5
shr ax, 8
cmp al, 2
je 0x140036fad
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x140036f8a
call fcn.140048a58
test eax, eax
jne 0x140037026
lea rcx, str.iphlpapi.dll
call fcn.140036db8
mov qword [0x1400ad1f0], rax
test rax, rax
je 0x140036ff3
lea rdx, str.if_nametoindex
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400ad1e8]
test rax, rax
cmovne rcx, rax
mov qword [0x1400ad1e8], rcx
xor edx, edx
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
lea ecx, [rdx + 6]
call fcn.140047e08
test al, al
lea rcx, [0x1400ae9c8]
setne byte [0x1400ae9c0]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.14004f320
add rsp, 0x1e8
ret
Function at 0x1400394e4
Capabilities:
Set socket configuration

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x50
and qword [r11 - 0x18], 0
lea rax, [r11 + 0x18]
and qword [r11 - 0x20], 0
xor r9d, r9d
mov qword [r11 - 0x28], rax
xor r8d, r8d
lea rax, [r11 + 0x10]
mov dword [rsp + 0x28], 4
mov edx, 0x4004747b
mov qword [r11 - 0x38], rax
mov rbx, rcx
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x140039547
lea r9, [rsp + 0x68]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x50
pop rbx
ret
Function at 0x14003f3d4
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, r9
mov rbx, r8
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
je 0x14003f3fe
cmp dword [rdx], 0
jne 0x14003f414
test rbx, rbx
je 0x14003f409
cmp dword [r8], 0
jne 0x14003f414
test rdi, rdi
je 0x14003f460
cmp dword [r9], 0
je 0x14003f460
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.14004a738
test rdi, rdi
je 0x14003f42d
cmp dword [rdi], 0
jne 0x14003f42f
xor edi, edi
test rbx, rbx
je 0x14003f439
cmp dword [rbx], 0
jne 0x14003f43b
xor ebx, ebx
test rsi, rsi
je 0x14003f445
cmp dword [rsi], 0
jne 0x14003f447
xor esi, esi
lea ecx, [rbp + 1]
mov qword [rsp + 0x20], rax
mov r9, rdi
mov r8, rbx
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_select]
jmp 0x14003f46a
mov rcx, qword [rsp + 0x60]
call fcn.14003f394
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x14004090c
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x20
mov r12, r9
xor edi, edi
and qword [r9], rdi
xor r15d, r15d
lea r9, [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov ebp, eax
test eax, eax
jne 0x140040a4a
mov rbx, qword [rsp + 0x68]
test rbx, rbx
je 0x140040a37
mov rax, qword [rbx + 0x18]
test rax, rax
je 0x14004096c
or r14, 0xffffffffffffffff
inc r14
cmp byte [rax + r14], 0
jne 0x14004095d
inc r14
jmp 0x14004096f
xor r14d, r14d
cmp dword [rbx + 4], 2
jne 0x1400409ff
cmp qword [rbx + 0x20], 0
je 0x1400409ff
cmp qword [rbx + 0x10], 0x10
jb 0x1400409ff
lea rcx, [r14 + 0x40]
call qword [fcn.140056704]
mov rsi, rax
test rax, rax
je 0x140040a0d
mov ecx, dword [rbx]
mov dword [rax], ecx
mov ecx, dword [rbx + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rbx + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rbx + 0xc]
and qword [rax + 0x18], 0
and qword [rax + 0x28], 0
mov dword [rax + 0xc], ecx
lea rcx, [rax + 0x30]
mov qword [rax + 0x20], rcx
mov dword [rax + reloc.WS2_32.dll_recv], 0x10
mov rax, qword [rbx + 0x20]
movups xmm0, xmmword [rax]
movdqu xmmword [rcx], xmm0
test r14, r14
je 0x1400409ec
add rcx, 0x10
mov r8, r14
mov qword [rsi + 0x18], rcx
mov rdx, qword [rbx + 0x18]
call fcn.14004fcb0
test rdi, rdi
cmove rdi, rsi
test r15, r15
je 0x1400409fc
mov qword [r15 + 0x28], rsi
mov r15, rsi
mov rbx, qword [rbx + 0x28]
test rbx, rbx
je 0x140040a12
jmp 0x140040950
mov ebp, 8
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140040a22
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebp, ebp
je 0x140040a32
mov rcx, rdi
call fcn.1400408e8
xor edi, edi
jmp 0x140040a44
test rdi, rdi
jne 0x140040a44
mov ebp, 0x2af9
mov ecx, ebp
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov qword [r12], rdi
mov eax, ebp
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1400426d8
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
and qword [rbp - 0x10], 0
mov rdi, r8
and qword [rbp - 0x18], 0
mov rbx, r9
and dword [rbp + 0x38], 0
mov rsi, rdx
mov r14, rcx
mov dword [rbp - 0x20], 4
mov rcx, rdi
mov dword [rbp - 0x1c], ebx
mov r8, r9
xor edx, edx
call fcn.140050110
mov r9d, dword [rbp + 0x40]
lea rcx, [rbp - 0x10]
xor r8d, r8d
mov dword [rsp + 0x20], 0xf0000040
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1400427db
mov edx, dword [rbp + 0x48]
lea rax, [rbp - 0x18]
mov rcx, qword [rbp - 0x10]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1400427bb
mov rcx, qword [rbp - 0x18]
xor r9d, r9d
mov r8d, esi
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1400427bb
mov rcx, qword [rbp - 0x18]
lea r9, [rbp - 0x20]
and dword [rsp + 0x20], 0
lea r8, [rbp + 0x38]
mov edx, 4
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x1400427bb
mov eax, dword [rbp + 0x38]
cmp rbx, rax
jb 0x1400427bb
and dword [rsp + 0x20], 0
lea r9, [rbp - 0x1c]
mov rcx, qword [rbp - 0x18]
mov r8, rdi
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x1400427ca
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x1400427db
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
pop rdi
pop rbp
ret

Function at 0x1400440f0
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, 0x20
xor ebp, ebp
mov r14, rcx
xor ecx, ecx
lea edi, [rbp + 1]
jmp 0x140044142
mov r8d, edi
mov rdx, rbx
mov rcx, r14
mov rbp, rbx
mov esi, edi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edi, eax
test eax, eax
je 0x14004417e
cmp edi, esi
je 0x14004417e
cmp edi, 0x8000
ja 0x14004417e
cmp edi, esi
jb 0x140044179
mov rcx, rbx
mov rdx, rdi
call qword [fcn.14005670c]
mov rbx, rax
test rax, rax
jne 0x140044115
mov rcx, rbp
call qword [fcn.1400566fc]
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, rbx
jmp 0x14004415e
mov rcx, rbx
jmp 0x140044156
jmp 0x1400440f0
Function at 0x140044184
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, 0x20
xor ebp, ebp
mov r14, rcx
xor ecx, ecx
lea edi, [rbp + 1]
jmp 0x140044142
mov r8d, edi
mov rdx, rbx
mov rcx, r14
mov rbp, rbx
mov esi, edi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edi, eax
test eax, eax
je 0x14004417e
cmp edi, esi
je 0x14004417e
cmp edi, 0x8000
ja 0x14004417e
cmp edi, esi
jb 0x140044179
mov rcx, rbx
mov rdx, rdi
call qword [fcn.14005670c]
mov rbx, rax
test rax, rax
jne 0x140044115
mov rcx, rbp
call qword [fcn.1400566fc]
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, rbx
jmp 0x14004415e
mov rcx, rbx
jmp 0x140044156
jmp 0x1400440f0

Function at 0x140047c1c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x28
mov rax, r8
mov r10, rdx
cmp ecx, 2
je 0x140047c3d
call fcn.140053204
mov dword [rax], 0x273f
xor eax, eax
add rsp, 0x28
ret
mov r8, r9
mov rdx, rax
mov rcx, r10
add rsp, 0x28
jmp 0x140047c50
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1400ac108]
xor rax, rsp
mov qword [rsp + 0x50], rax
movzx eax, byte [rcx + 3]
mov rbx, rdx
movzx edx, byte [rcx + 2]
mov rdi, r8
movzx r10d, byte [rcx + 1]
lea r8, str._d._d._d._d
movzx r9d, byte [rcx]
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], edx
mov edx, reloc.WS2_32.dll_recv
mov byte [rsp + 0x40], 0
mov dword [rsp + 0x20], r10d
call fcn.14003f658
lea rcx, [rsp + 0x40]
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x140047cb1
test rax, rax
je 0x140047ce6
cmp rax, rdi
jae 0x140047ce6
lea rax, [rsp + 0x40]
mov r8, rbx
sub r8, rax
lea rdx, [rsp + 0x40]
mov cl, byte [rdx]
mov byte [r8 + rdx], cl
inc rdx
test cl, cl
jne 0x140047cd4
mov rax, rbx
jmp 0x140047cf3
call fcn.140053204
mov dword [rax], 0x1c
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14004f320
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x14004ad08
Capabilities:
Get file size
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, 0x170
mov rax, qword [0x1400ac108]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov qword [rsp + 0x50], rcx
mov r15, r8
mov rcx, rdx
mov r12, rdx
xor esi, esi
xor edi, edi
call fcn.140066e18
mov rbp, rax
test rax, rax
jne 0x14004ad87
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.140046cf8
lea rdx, str.schannel:_invalid_path_name_for_CA_file__s:__s
mov r8, r12
mov r9, rax
mov rcx, r15
call fcn.140034b14
mov ebx, 0x4d
jmp 0x14004aece
and qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, rbp
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x14004addb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.140046cf8
lea rdx, str.schannel:_failed_to_open_CA_file__s:__s
jmp 0x14004ad6f
lea rdx, [rsp + 0x48]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x14004ae24
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.140046cf8
lea rdx, str.schannel:_failed_to_determine_size_of_CA_file__s:__s
mov r8, r12
mov r9, rax
mov rcx, r15
call fcn.140034b14
mov ebx, 0x4d
jmp 0x14004aec5
mov rbx, qword [rsp + 0x48]
mov eax, 0x100000
cmp rbx, rax
jle 0x14004ae47
mov r8d, eax
lea rdx, str.schannel:_CA_file_exceeds_max_size_of__u_bytes
mov rcx, r15
call fcn.140034b14
jmp 0x14004ae1a
lea rcx, [rbx + 1]
call qword [fcn.140056704]
mov rsi, rax
test rax, rax
jne 0x14004ae5e
lea ebx, [rax + 0x1b]
jmp 0x14004aec5
test rbx, rbx
je 0x14004aea7
and dword [rsp + 0x40], 0
lea rdx, [rsi + rdi]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, ebx
mov r13d, edi
sub r8d, edi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14004af11
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x14004ae9e
mov ebx, r13d
jmp 0x14004aea0
add edi, eax
mov eax, edi
cmp rax, rbx
jb 0x14004ae63
mov rcx, qword [rsp + 0x50]
mov r9, r12
mov r8, rbx
mov byte [rbx + rsi], 0
mov rdx, rsi
mov qword [rsp + 0x20], r15
call fcn.14004ab28
mov ebx, eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [fcn.1400566fc]
test rbp, rbp
je 0x14004aee4
mov rcx, rbp
call fcn.1400566fc
mov eax, ebx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14004f320
mov rbx, qword [rsp + 0x1c8]
add rsp, 0x170
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.140046cf8
lea rdx, str.schannel:_failed_to_read_from_CA_file__s:__s
jmp 0x14004ae0c
Function at 0x14004cd78
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ecx, dword [rcx + 0x20]
mov r14, rdx
add rcx, 0x18
mov ebp, r8d
lea r9d, [rax + rax]
add rcx, r9
call qword [fcn.140056704]
xor esi, esi
mov rdi, rax
test rax, rax
je 0x14004ce81
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x14004cdfa
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + ioctlsocket]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
test rbp, rbp
je 0x14004ce76
mov rsi, rbp
mov al, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + ioctlsocket]
mov al, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
mov r8d, 1
mov byte [rsp + 0x40], al
inc r14
mov rcx, qword [rdi + 0x10]
call qword [rbx + ioctlsocket]
sub rbp, 1
jne 0x14004ce0a
jmp 0x14004ce76
mov rcx, qword [rdi + 8]
lea rdx, [0x140090639]
mov r8d, 1
call qword [rbx + ioctlsocket]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14009063a]
mov r8d, 1
call qword [rbx + ioctlsocket]
inc rsi
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jb 0x14004ce4b
mov rax, rdi
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x140064ac0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140064824
Function at 0x14006ba90
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x14006b930
call fcn.140053204
mov dword [rax], socket
call fcn.1400530b4
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14006b918
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x14006b918
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x14006b962
lock or dword [rax + 0x14], 0x10
jmp 0x14006b918
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x14006b97f
mov rcx, qword [rbp + 0x10]
call fcn.140073924
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.140069854
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.1400673c0
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x14006b9d6
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x14006b918
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x14006ba42
mov rcx, qword [rbp + 0x10]
call fcn.140069854
cmp eax, 0xffffffff
je 0x14006ba29
mov rcx, qword [rbp + 0x10]
call fcn.140069854
cmp eax, 0xfffffffe
je 0x14006ba29
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.140069854
movsxd rdi, eax
lea rsi, [0x1400ae2b0]
mov rcx, rbx
sar rdi, 6
call fcn.140069854
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x14006ba30
lea rax, [0x1400ac5b0]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14006ba42
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x14006ba78
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x14006ba74
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x14006ba74
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x14006b91b
jmp 0x14006b8e8
Function at 0x14000b9ac
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140016950], eax
call fcn.14000b730
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x140016950], 0
jne case.default.0x14000ba02
mov ecx, 1
call fcn.14000b730
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
fnsave dword [rsi + 0x15b26a29]
cmp esp, dword [rdx + 0x1d21d26c]
mov word [rcx], gs
or al, 0x5d
push rdi
adc al, 0xdf
std
invalid