joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14009e8d0
Capabilities:
Send data
Send data on socket

Disassembly:
mov r10, qword [rcx + 0x1c0]
movsxd r11, edx
mov r9d, dword [r10 + r11*4 + 8]
cmp r8d, 1
jne 0x14009e923
test r9d, r9d
je 0x14009e90d
sub r9d, 2
je 0x14009e935
cmp r9d, r8d
jne 0x14009e963
cmp dword [r10 + r11*4 + 0x408], 0
jne 0x14009e963
mov dword [r10 + r11*4 + 0x408], 1
ret
mov r8d, edx
mov dword [r10 + r11*4 + 8], 2
mov edx, 0xfb
jmp fcn.14009e520
sub r9d, 1
je 0x14009e94d
sub r9d, 1
je 0x14009e8f5
cmp r9d, 1
jne 0x14009e963
cmp dword [r10 + r11*4 + 0x408], 1
jne 0x14009e963
mov dword [r10 + r11*4 + 0x408], 0
ret
mov r8d, edx
mov dword [r10 + r11*4 + 8], 3
mov edx, 0xfc
jmp fcn.14009e520
ret

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

Disassembly:
mov r10, qword [rcx + 0x1c0]
movsxd r11, edx
mov r9d, dword [r10 + r11*4 + 0xc08]
cmp r8d, 1
jne 0x14009e9c9
test r9d, r9d
je 0x14009e9b0
sub r9d, 2
je 0x14009e9db
cmp r9d, r8d
jne 0x14009ea0c
cmp dword [r10 + r11*4 + 0x1008], 0
jne 0x14009ea0c
mov dword [r10 + r11*4 + 0x1008], 1
ret
mov r8d, edx
mov dword [r10 + r11*4 + 0xc08], 2
mov edx, 0xfd
jmp fcn.14009e520
sub r9d, 1
je 0x14009e9f3
sub r9d, 1
je 0x14009e998
cmp r9d, 1
jne 0x14009ea0c
cmp dword [r10 + r11*4 + 0x1008], 1
jne 0x14009ea0c
mov dword [r10 + r11*4 + 0x1008], 0
ret
mov r8d, edx
mov dword [r10 + r11*4 + 0xc08], 3
mov edx, 0xfe
jmp fcn.14009e520
ret
Function at 0x14009fb70
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x140185640]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rax, qword [rcx + 0x20]
mov rbp, rcx
xor r9d, r9d
xor esi, esi
mov rdi, qword [rax + 0x3f8]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], Ordinal_133
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r8d, dword [rdi + 0x144]
lea r14, [rdi + 0x150]
mov rdx, qword [r14]
add r8d, 4
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.WS2_32.dll_recvfrom]
mov dword [rdi + 0x13c], eax
cmp dword [rdi + 0x138], esi
jne 0x14009fc0e
movsxd r8, dword [rsp + 0x30]
lea rcx, [rdi + 0xb8]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rdi + 0x138], eax
mov r9d, dword [rdi + 0x13c]
mov qword [rsp + 0x100], r15
cmp r9d, 4
jge 0x14009fc67
lea rdx, [0x1400c09e8]
mov rcx, rbp
call fcn.140074760
mov dword [rdi + 0xc], 7
mov eax, esi
mov r15, qword [rsp + 0x100]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400b2d40
mov rbp, qword [rsp + 0x108]
add rsp, 0xd0
pop r14
pop rdi
pop rsi
ret
mov rcx, r14
call fcn.14009f6b0
movzx r8d, ax
mov dword [rdi + 0xc], r8d
dec r8d
cmp r8d, 5
ja case.0x14009fc98.1
lea rdx, [0x140000000]
movsxd rax, r8d
mov ecx, dword [rdx + rax*4 + 0x9fda0]
add rcx, rdx
jmp rcx
cmp r9d, 4
jle case.0x14009fc98.4
mov rcx, r14
call fcn.14009f690
movzx ecx, word [rdi + 0x14c]
inc ecx
cmp cx, ax
jne case.0x14009fc98.4
mov r8, qword [r14]
lea eax, [r9 - 4]
movsxd r9, eax
add r8, 4
mov edx, 1
mov rcx, rbp
call fcn.140075770
mov esi, eax
test eax, eax
je case.0x14009fc98.4
mov edx, 5
mov rcx, rdi
call fcn.1400a05e0
jmp 0x14009fc39
mov r15, qword [r14]
lea eax, [r9 - 4]
mov qword [rsp + 0xf8], rbx
mov rcx, r14
movsxd rbx, eax
call fcn.14009f690
movzx r9d, ax
lea rcx, [r15 + 4]
mov rdx, rbx
mov dword [rdi + 8], r9d
call fcn.1400a0700
cmp rax, rbx
mov rbx, qword [rsp + 0xf8]
jae case.0x14009fc98.4
lea r8, [r15 + 4]
mov rcx, rbp
lea rdx, [0x1400c0a08]
call fcn.140074850
jmp case.0x14009fc98.4
mov rdx, qword [r14]
lea r8d, [r9 - 2]
add rdx, 2
mov rcx, rdi
call fcn.14009f8d0
mov esi, eax
test eax, eax
je case.0x14009fc98.4
jmp 0x14009fc3b
lea r8, [0x1400c0a18]
mov rcx, rbp
lea rdx, [0x1401748c8]
call fcn.140074760
mov rcx, rbp
call fcn.140085e10
test eax, eax
je 0x14009fc39
mov edx, 5
mov rcx, rdi
call fcn.1400a05e0
mov eax, Ordinal_46
jmp 0x14009fc3b
Function at 0x1400a2c00
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x14021bae0]
mov rbx, rcx
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x1400a2c64
lea r9d, [rax + 2]
mov dword [rsp + 0x20], 3
xor r8d, r8d
lea ecx, [rax + 6]
xor edx, edx
call fcn.1400ab150
test al, al
je 0x1400a2c58
mov dword [0x14021bae0], 2
add rsp, 0x30
pop rbx
ret
mov dword [0x14021bae0], 1
jmp 0x1400a2c69
cmp eax, 2
je 0x1400a2cbb
lea rax, [rsp + 0x58]
mov edx, 0xffff
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1400a2c9a
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x1400a2cbb
lea r9, [rsp + 0x50]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x30
pop rbx
ret

Function at 0x1400a3700
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rbx, qword [rcx + 0x10]
mov rdi, rdx
mov rbp, rcx
mov r8d, dword [rbx + 0x14]
lea rdx, [rbx + 0x18]
mov rcx, qword [rbx + 0x98]
lea rsi, [rbx + 0xe0]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1400a3755
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rdx, rsi
mov rcx, rdi
mov r8d, eax
call fcn.1400a3d50
jmp 0x1400a37d2
mov rdx, rdi
mov byte [rbx + 0x17e], 1
mov rcx, rbp
call fcn.1400a3a80
cmp dword [rbx], 5
lea rax, [0x1400c1260]
lea rcx, [rbx + 0x10e]
mov rdx, rbp
lea r9, [0x1400c1268]
cmove r9, rax
lea r8, [0x1400c1270]
mov eax, dword [rbx + 0x13c]
mov dword [rsp + 0x40], eax
mov eax, dword [rbx + 0x140]
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], eax
mov rax, qword [rbx + 0x98]
mov qword [rsp + 0x28], rcx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.140074960
mov rcx, qword [rbx + 0x98]
mov edx, 1
call fcn.1400af700
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x1400a37f0
Capabilities:
Connect socket

Disassembly:
mov rcx, qword [rcx + 0x10]
test r8b, r8b
jne 0x1400a380f
mov r8d, dword [rcx + 0x14]
lea rdx, [rcx + 0x18]
mov rcx, qword [rcx + 0x98]
jmp qword [sym.imp.WS2_32.dll_connect]
mov eax, 0xffffffff
ret
Function at 0x1400a3820
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x150
mov rax, qword [0x140185640]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rax, qword [rcx]
mov rsi, r9
mov rdi, rcx
mov rbp, r8
mov r14, qword [rax + 0x10]
mov dword [r9], 0
xor r9d, r9d
mov rcx, qword [r14 + 0x98]
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbx, eax
cmp rbx, 0xffffffffffffffff
jne 0x1400a38c3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x1400a3887
mov dword [rsi], 0x51
jmp 0x1400a38bc
mov r8d, pe_nt_image_headers64
lea rdx, [rsp + 0x40]
mov ecx, ebx
call fcn.1400871e0
mov rcx, qword [rdi + 8]
lea rdx, [0x1400c0f48]
mov r8, rax
call fcn.140074760
mov rax, qword [rdi + 8]
mov dword [rax + 0xcf4], ebx
mov dword [rsi], gethostname
mov rbx, 0xffffffffffffffff
mov edx, dword [rsi]
lea r8, [0x1400c0f60]
mov rcx, qword [rdi + 8]
mov r9, rbp
mov dword [rsp + 0x30], edx
mov rdx, qword [r14 + 0x98]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rdx
mov rdx, qword [rdi]
call fcn.140074960
mov rax, rbx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400b2d40
add rsp, 0x150
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1400a3a50
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x10], edx
sub rsp, 0x38
mov edx, reloc.WLDAP32.dll_Ordinal_41
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x48]
lea r8d, [rdx - 0xe]
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret
Function at 0x1400a3a80
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x1c0
mov rax, qword [0x140185640]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rax, qword [rdx + 0x20]
mov rsi, rdx
mov rbx, qword [rcx + 0x10]
mov rcx, qword [rax + 0x360]
test dword [rcx + 0x84], 0x800
jne 0x1400a3bc3
mov rcx, qword [rbx + 0x98]
lea r8, [rsp + 0x20]
xorps xmm0, xmm0
mov dword [rsp + 0x20], Ordinal_133
lea rdx, [rsp + 0x30]
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1400a3b51
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, pe_nt_image_headers64
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.1400871e0
mov r9, rax
lea rdx, [0x1400c0e98]
mov r8d, ebx
mov rcx, rsi
call fcn.140074760
mov eax, 2
jmp 0x1400a3bc5
mov edx, dword [rsp + 0x20]
lea r9, [rbx + 0x140]
lea r8, [rbx + 0x10e]
lea rcx, [rsp + 0x30]
call fcn.140076fd0
test al, al
jne 0x1400a3bc3
mov qword [rsp + 0x1e0], rdi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ebx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov r8d, pe_nt_image_headers64
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.1400871e0
mov r8d, dword [rdi]
lea rdx, [0x1400c13d0]
mov r9, rax
mov rcx, rsi
call fcn.140074760
mov rdi, qword [rsp + 0x1e0]
mov eax, 2
jmp 0x1400a3bc5
xor eax, eax
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.1400b2d40
mov rbx, qword [rsp + 0x1e8]
add rsp, 0x1c0
pop rsi
ret
Function at 0x1400a3e80
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140185640]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor esi, esi
mov dword [rsp + 0x20], 4
mov eax, esi
lea r9, [rsp + 0x50]
cmp byte [rcx + 0xaba], al
mov rdi, rdx
mov rbx, rcx
mov edx, 0xffff
setne al
lea r8d, [rsi + 8]
mov rcx, rdi
mov dword [rsp + 0x50], eax
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x1400a3eea
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [0x1400c1368]
jmp 0x1400a3f6b
mov ecx, dword [rbx + 0xa2c]
mov dword [rsp + 0x58], 1
call fcn.140078400
imul ecx, eax, 0x3e8
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x5c], ecx
mov ecx, dword [rbx + 0xa30]
call fcn.140078400
imul ecx, eax, 0x3e8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x54]
mov qword [rsp + 0x38], rsi
mov r9d, ntohs
mov qword [rsp + 0x30], rax
mov edx, 0x98000004
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x60], ecx
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x1400a3f79
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [0x1400c1398]
mov r9d, eax
mov r8, rdi
mov rcx, rbx
call fcn.140074850
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400b2d40
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1400a3fa0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x140185640]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rax, rdx
mov dword [rsp + 0x30], 1
mov edx, 6
mov dword [rsp + 0x20], 4
mov rbx, rcx
lea r9, [rsp + 0x30]
mov rcx, rax
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x1400a4016
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, pe_nt_image_headers64
lea rdx, [rsp + 0x40]
mov ecx, eax
call fcn.1400871e0
mov r8, rax
lea rdx, [0x1400c1348]
mov rcx, rbx
call fcn.140074850
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400b2d40
add rsp, 0x150
pop rbx
ret
Function at 0x1400a66e0
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 rsi, rdx
mov r15, rcx
lea rdx, [0x1400bb358]
mov r8d, reloc.WS2_32.dll_recvfrom
mov rcx, r9
mov rbx, r9
call fcn.14007a990
test eax, eax
je 0x1400a672d
mov r14d, dword [rsi + 0x13c]
cmp r14d, 0x191
je 0x1400a6756
mov r8d, reloc.WS2_32.dll_send
lea rdx, [0x1400bb2f0]
mov rcx, rbx
call fcn.14007a990
test eax, eax
je 0x1400a67b2
mov r14d, dword [rsi + 0x13c]
cmp r14d, 0x197
jne 0x1400a67b2
mov rcx, rbx
call fcn.14007f730
mov rdi, rax
test rax, rax
jne 0x1400a676e
lea eax, [rdi + 0x1b]
jmp 0x1400a697b
mov r9, rbx
lea r8, [0x1400c1910]
mov rdx, r15
mov rcx, rsi
call fcn.140074960
cmp r14d, 0x197
mov r8, rdi
mov rcx, rsi
sete dl
call fcn.140080e80
mov rcx, rdi
mov ebx, eax
call qword [case.0x14006a89c.0]
test ebx, ebx
je 0x1400a6979
mov eax, ebx
jmp 0x1400a697b
mov r8d, reloc.WS2_32.dll_ntohs
lea rdx, [0x1400bac78]
mov rcx, rbx
call fcn.14007a990
test eax, eax
je 0x1400a680d
mov r8d, dword [rsi + 0x13c]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x1400a67f2
lea rdx, [0x1400c1930]
mov rcx, rsi
call fcn.140074850
jmp 0x1400a6979
xor edx, edx
lea r9, [rbp + 0xb0]
lea rcx, [rbx + 0xf]
lea r8d, [rdx + 0xa]
call fcn.140087ed0
jmp 0x1400a6979
lea r9, [0x1400b9dac]
mov qword [rsp + 0x20], 5
mov r8d, ntohs
lea rdx, [0x1400bac88]
mov rcx, rbx
call fcn.14007f660
test al, al
jne 0x1400a6972
mov r8d, reloc.WS2_32.dll_select
lea rdx, [0x1400bac98]
mov rcx, rbx
call fcn.14007a990
test eax, eax
je 0x1400a68d1
mov r8d, dword [rsi + 0x13c]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x1400a687a
lea rdx, [0x1400c1968]
mov rcx, rsi
call fcn.140074850
jmp 0x1400a6979
lea r9, [0x1400ba550]
mov qword [rsp + 0x20], 7
mov r8d, reloc.WS2_32.dll_select
lea rdx, [0x1400bac98]
mov rcx, rbx
call fcn.14007f660
test al, al
je 0x1400a6979
lea rdx, [0x1400c19a0]
mov rcx, rsi
call fcn.140074850
lea rdx, [rbp + 0x60]
mov byte [rbp + 0xbc], 1
mov r8b, 1
mov rcx, rsi
call fcn.1400aba90
jmp 0x1400a6979
lea r9, [0x1400b9dac]
mov qword [rsp + 0x20], 5
mov r8d, reloc.WS2_32.dll_recvfrom
lea rdx, [0x1400bb280]
mov rcx, rbx
call fcn.14007f660
test al, al
jne 0x1400a6972
mov r8d, 7
lea rdx, [0x1400c19c0]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x1400a6979
movzx eax, byte [rbx + 7]
sub al, 0x30
cmp al, 1
ja 0x1400a6979
cmp byte [rbx + 8], 0x20
jne 0x1400a6979
movsx ecx, byte [rbx + 9]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x1400a6979
movsx edx, byte [rbx + 0xa]
lea eax, [rdx - 0x30]
cmp al, 9
ja 0x1400a6979
movsx r8d, byte [rbx + 0xb]
lea eax, [r8 - 0x30]
cmp al, 9
ja 0x1400a6979
movzx eax, byte [rbx + 0xc]
sub al, 0x30
cmp al, 9
jbe 0x1400a6979
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 [rsi + 0x13c], ecx
mov dword [rsi + 0x1334], ecx
jmp 0x1400a6979
mov byte [rbp + 0xbd], 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 0x1400b1660
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x140185640]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rsi, r8
mov dword [rsp + 0x40], 8
mov rbx, rdx
mov dword [rsp + 0x20], 0xf0000040
mov rdi, rcx
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x48]
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1400b172c
mov qword [rsp + 0xa0], rbp
lea rdx, [rsp + 0x64]
xor ebp, ebp
mov dword [rsp + 0x58], 0x208
mov rcx, rsi
mov qword [rsp + 0x64], rbp
mov dword [rsp + 0x5c], 0x6601
mov dword [rsp + 0x60], 8
call fcn.1400b17a0
lea rcx, [rsp + 0x64]
lea edx, [rbp + 8]
call fcn.1400b2bb0
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea r8d, [rbp + 0x14]
xor r9d, r9d
mov dword [rsp + 0x20], ebp
lea rdx, [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
mov rbp, qword [rsp + 0xa0]
test eax, eax
jne 0x1400b1730
mov rcx, qword [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
jmp 0x1400b177a
mov rax, qword [rdi]
xor r9d, r9d
mov rcx, qword [rsp + 0x50]
xor r8d, r8d
mov qword [rbx], rax
xor edx, edx
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400b2d40
add rsp, 0x80
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400b2540
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push r14
push r15
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbp, rcx
mov ecx, dword [rcx + 0x20]
mov r14, rdx
add rcx, 0x18
mov r15d, r8d
lea r9d, [rax + rax]
add rcx, r9
call qword [section..data]
mov rbx, rax
test rax, rax
jne 0x1400b2585
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
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], rsi
mov qword [rbx + 0x10], rax
mov qword [rsp + 0x50], rdi
cmp r15d, dword [rbp + 0x1c]
jbe 0x1400b25d0
call qword [rbp]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, r14
call qword [rbp + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbp + 0x18]
add r14, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, r14
call qword [rbp + reloc.WS2_32.dll_recv]
mov r15d, dword [rbp + 0x20]
mov rcx, qword [rbx + 8]
call qword [rbp]
mov rcx, qword [rbx + 0x10]
call qword [rbp]
xor esi, esi
test r15, r15
je 0x1400b2632
mov rsi, r15
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rbx + 8]
call qword [rbp + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rbx + 0x10]
call qword [rbp + reloc.WS2_32.dll_htonl]
sub r15, 1
jne 0x1400b25f0
mov eax, dword [rbp + 0x1c]
cmp rsi, rax
jae 0x1400b2673
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x1400c37e0]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x1400c37e1]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov eax, dword [rbp + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400b2640
mov rdi, qword [rsp + 0x50]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret

Function at 0x1400b2bb0
Capabilities:
Encode data using xor

Disassembly:
mov r10, rcx
test rdx, rdx
je 0x1400b2c15
nop dword [rax + rax]
movzx r8d, byte [r10]
lea r10, [r10 + 1]
movzx eax, r8b
movzx r9d, r8b
shr r9b, 1
and al, 0xfe
not r9b
movzx eax, al
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
or r8b, 1
test r9b, 2
movzx ecx, r8b
cmove ecx, eax
mov byte [r10 - 1], cl
sub rdx, 1
jne 0x1400b2bc0
ret
Function at 0x1400b2ca0
Capabilities:
Create new key via cryptacquirecontext
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
lea rdi, [rcx + 8]
mov r9d, 1
xor r8d, r8d
mov qword [rdi], 0
xor edx, edx
mov qword [rcx], 0
mov rbx, rcx
mov dword [rsp + 0x20], 0xf0000040
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1400b2d0b
mov rcx, qword [rbx]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov edx, 0x8002
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1400b2d18
mov rcx, qword [rbx]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov qword [rbx], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x40]
mov eax, 1
add rsp, 0x30
pop rdi
ret

Function at 0x1400b3d18
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400b3d62
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400b3d62
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400b3d62
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400b3d62
cmp dword [rcx + 0x84], 0xe
jbe 0x1400b3d62
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400b3d64
xor al, al
add rsp, 0x28
ret
Function at 0x140f93058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140f931df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140f93089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140f9306f
add dl, dl
jne 0x140f93096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140f930f6
xor eax, eax
add dl, dl
jne 0x140f930a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140f931ad
add dl, dl
jne 0x140f930b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f930c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f930d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f930dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140f930ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140f9307e
mov eax, 1
add dl, dl
jne 0x140f93106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f93113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140f930fb
sub eax, ebx
mov ebx, 1
jne 0x140f9314c
mov ecx, 1
add dl, dl
jne 0x140f9312e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140f9313b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140f93123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140f9307e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140f93168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140f93175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140f9315d
cmp eax, 0x7d00
jae 0x140f9319b
cmp eax, 0x500
jb 0x140f93196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140f9307e
cmp eax, 0x7f
ja 0x140f9319e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140f9307e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140f931d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140f9307e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400ddf4b
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x1401754c0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov qword [rsp], 0
jmp 0x1401754e8
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
mov rax, qword [rsp + 0x30]
cmp qword [rsp], rax
jae 0x140175532
mov rax, qword [rsp]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
mov rcx, qword [rsp + 0x20]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
movabs rax, 0x100000001b3
mov rcx, qword [rsp + 0x20]
imul rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
jmp 0x1401754dd
mov rax, qword [rsp + 0x20]
add rsp, 0x18
ret