joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140051c10
Capabilities:
Encode data using xor

Disassembly:
test rcx, rcx
je 0x140051c32
nop word cs:[rax + rax]
cmp byte [rcx], 0
lea rcx, [rcx + 1]
sete al
setns dl
xor dl, al
jne 0x140051c20
ret
mov al, 1
ret
Function at 0x14005fb10
Capabilities:
Send data
Send data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rsi, rcx
mov rax, qword [0x1400cb080]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov r12, qword [rcx + 0x198]
lea rbp, str.BINARY
xor ebx, ebx
mov rdi, qword [sym.imp.WS2_32.dll_send]
lea r14, [0x1400b9c3a]
lea r15, str.SENT
lea r13, [rsp + 0x2d]
jmp 0x14005fb81
cmp dword [rax + rbx*4 + 0x1008], 0
je 0x14005fc21
nop dword [rax]
inc rbx
add rbp, 8
cmp rbx, 0x28
je 0x14005fd4a
cmp rbx, 1
je 0x14005fb70
cmp dword [r12 + rbx*4 + 0x808], 1
jne 0x14005fc70
mov rax, qword [rsi + 0x198]
mov ecx, dword [rax + rbx*4 + 8]
cmp ecx, 3
je 0x14005fbf3
cmp ecx, 2
je 0x14005fc0a
test ecx, ecx
jne 0x14005fc70
mov dword [rax + rbx*4 + 8], 2
mov rax, qword [rsi + 0x20]
mov word [rsp + 0x2a], 0xfbff
mov byte [rsp + 0x2c], bl
mov rcx, qword [rax + 0x188]
lea rdx, [rsp + 0x2a]
mov r8d, 3
xor r9d, r9d
call rdi
test eax, eax
js 0x14005fc31
cmp byte [rsi + 0xa87], 0
jne 0x14005fc52
jmp 0x14005fc70
cmp dword [rax + rbx*4 + 0x408], 0
jne 0x14005fc70
mov dword [rax + rbx*4 + 0x408], 1
jmp 0x14005fc70
cmp dword [rax + rbx*4 + 0x408], 1
jne 0x14005fc70
mov dword [rax + rbx*4 + 0x408], 0
jmp 0x14005fc70
mov dword [rax + rbx*4 + 0x1008], 1
jmp 0x14005fb70
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rsi
lea rdx, str.Sending_data_failed___d_
mov r8d, eax
call fcn.14001cc90
cmp byte [rsi + 0xa87], 0
je 0x14005fc70
mov rax, qword [rbp]
mov qword [rsp + 0x20], rax
mov rcx, rsi
mov rdx, r14
mov r8, r15
lea r9, str.WILL
call fcn.14001cd60
cmp dword [r12 + rbx*4 + 0x1408], 1
jne 0x14005fb70
mov rax, qword [rsi + 0x198]
mov ecx, dword [rax + rbx*4 + 0xc08]
cmp ecx, 3
je 0x14005fb5e
cmp ecx, 2
je 0x14005fce4
test ecx, ecx
jne 0x14005fb70
mov dword [rax + rbx*4 + 0xc08], 2
mov rax, qword [rsi + 0x20]
mov word [rsp + 0x2d], 0xfdff
mov byte [rsp + 0x2f], bl
mov rcx, qword [rax + 0x188]
mov rdx, r13
mov r8d, 3
xor r9d, r9d
call rdi
test eax, eax
js 0x14005fd02
cmp byte [rsi + 0xa87], 0
jne 0x14005fd27
jmp 0x14005fb70
cmp dword [rax + rbx*4 + 0x1008], 1
jne 0x14005fb70
mov dword [rax + rbx*4 + 0x1008], 0
jmp 0x14005fb70
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rsi
lea rdx, str.Sending_data_failed___d_
mov r8d, eax
call fcn.14001cc90
cmp byte [rsi + 0xa87], 0
je 0x14005fb70
mov rax, qword [rbp]
mov qword [rsp + 0x20], rax
mov rcx, rsi
mov rdx, r14
mov r8, r15
lea r9, [0x1400bf12a]
call fcn.14001cd60
jmp 0x14005fb70
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140080da0
nop
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140067230
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rsi, rcx
mov rax, qword [0x1400cb080]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, qword [rcx + 0x20]
mov rbx, qword [rdi + 0x190]
mov dword [rsp + 0x24], reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x30]
lea r8, [rsp + 0x24]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1400672a0
lea rdx, str.Error_accept__ing_server_connect
mov rcx, rsi
call fcn.14001cc90
mov ebx, 0x1e
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140080da0
mov eax, ebx
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov dword [rsp + 0x24], reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x30]
lea r8, [rsp + 0x24]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rsp + 0x28], rax
cmp rax, 0xffffffffffffffff
je 0x140067274
mov rbx, rax
cmp byte [rsi + 0xa87], 0
je 0x1400672e1
lea rdx, str.Connection_accepted_from_server
mov rcx, rsi
call fcn.14001cd60
mov byte [rdi + 0x2b5], 0
mov rcx, rbx
mov edx, 1
call fcn.140073460
lea r9, [rsp + 0x28]
mov rcx, rsi
mov rdx, rdi
mov r8d, 1
call fcn.14003f130
mov ebx, eax
test eax, eax
jne 0x140067288
cmp qword [rsi + 0x268], 0
je 0x14006737f
mov rcx, rsi
mov dl, 1
call fcn.14002a280
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsi + 0x270]
mov r8d, 1
call qword [rsi + 0x268]
mov ebp, eax
xor ebx, ebx
mov rcx, rsi
xor edx, edx
call fcn.14002a280
test ebp, ebp
je 0x140067288
mov rcx, rsi
mov edx, 1
call fcn.1400327a0
mov rcx, rsi
mov rdx, rdi
mov r8d, 1
call fcn.140032730
mov ebx, Ordinal_46
jmp 0x140067288
xor ebx, ebx
jmp 0x140067288
Function at 0x140070310
Capabilities:
Generate random numbers via winapi

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rax, qword [0x1400cb080]
xor rax, rsp
mov qword [rsp + 0x30], rax
test r8, r8
je 0x140070456
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
lea r14, [rsp + 0x2c]
jmp 0x140070359
sub rsi, r15
je 0x14007045d
cmp rsi, 4
mov r15d, 4
cmovb r15, rsi
mov r8d, 4
mov rcx, rbx
mov rdx, r14
call fcn.14001e3e0
test eax, eax
je 0x1400703b2
mov ebp, eax
cmp eax, 4
jne 0x14007045f
mov dword [rsp + 0x2c], 0
mov ebp, 2
xor ecx, ecx
mov rdx, r14
mov r8d, 4
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
jne 0x14007045f
mov eax, dword [rsp + 0x2c]
lea rdx, [r15 - 1]
mov rcx, r15
and rcx, 3
je 0x140070400
xor r8d, r8d
nop word cs:[rax + rax]
mov byte [rdi + r8], al
mov eax, dword [rsp + 0x2c]
shr eax, 8
mov dword [rsp + 0x2c], eax
inc r8
cmp rcx, r8
jne 0x1400703d0
mov rcx, r15
sub rcx, r8
add rdi, r8
cmp rdx, 3
jae 0x140070410
jmp 0x140070350
mov rcx, r15
cmp rdx, 3
jb 0x140070350
nop dword [rax]
mov byte [rdi], al
mov eax, dword [rsp + 0x2c]
shr eax, 8
mov dword [rsp + 0x2c], eax
mov byte [rdi + 1], al
mov eax, dword [rsp + 0x2c]
shr eax, 8
mov dword [rsp + 0x2c], eax
mov byte [rdi + 2], al
mov eax, dword [rsp + 0x2c]
shr eax, 8
mov dword [rsp + 0x2c], eax
mov byte [rdi + 3], al
add rdi, 4
mov eax, dword [rsp + 0x2c]
shr eax, 8
mov dword [rsp + 0x2c], eax
add rcx, 0xfffffffffffffffc
jne 0x140070410
jmp 0x140070350
mov ebp, Ordinal_46
jmp 0x14007045f
xor ebp, ebp
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140080da0
mov eax, ebp
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x140070480
Capabilities:
Generate random numbers via winapi

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x30
mov rdi, r8
mov rsi, rdx
mov rax, qword [0x1400cb080]
xor rax, rsp
mov qword [rsp + 0x28], rax
dec rdi
je 0x140070544
mov rbx, rcx
lea r14, [rsp + 0x24]
mov r15d, 0x84210843
lea r12, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
jmp 0x1400704d9
mov eax, dword [rsp + 0x24]
cmp eax, 0xfffffffb
jbe 0x14007051e
mov r8d, 4
mov rcx, rbx
mov rdx, r14
call fcn.14001e3e0
test eax, eax
je 0x1400704d0
mov ebp, eax
cmp eax, 4
jne 0x140070549
mov dword [rsp + 0x24], 0
mov ebp, 2
xor ecx, ecx
mov rdx, r14
mov r8d, 4
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
je 0x1400704d0
jmp 0x140070549
mov ecx, eax
shr ecx, 1
imul rcx, r15
shr rcx, 0x24
mov edx, ecx
shl edx, 6
add ecx, ecx
sub ecx, edx
add ecx, eax
movzx eax, byte [rcx + r12]
mov byte [rsi], al
inc rsi
dec rdi
jne 0x1400704d9
mov byte [rsi], 0
xor ebp, ebp
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140080da0
mov eax, ebp
add rsp, 0x30
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140071340
Capabilities:
Move file

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1400cb080]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x40]
call fcn.140036620
mov rcx, rdi
call fcn.1400443b0
mov rdi, rax
mov rcx, rsi
call fcn.1400443b0
mov rsi, rax
mov rcx, rdi
mov rdx, rax
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1400713f0
lea rbx, [rsp + 0x30]
lea r14, [rsp + 0x20]
mov r15, qword [sym.imp.KERNEL32.dll_Sleep]
mov r12, qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov rcx, rbx
call fcn.140036620
movups xmm0, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x20], xmm0
mov rcx, rbx
mov rdx, r14
call fcn.1400366e0
cmp rax, 0x3e9
jae 0x140071429
mov ecx, 1
call r15
mov rcx, rdi
mov rdx, rsi
mov r8d, 1
call r12
test eax, eax
je 0x1400713b0
test rdi, rdi
je 0x1400713fd
mov rcx, rdi
call fcn.140092c88
xor edi, edi
test rsi, rsi
je 0x14007140c
mov rcx, rsi
call fcn.140092c88
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140080da0
mov eax, edi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
test rdi, rdi
je 0x140071436
mov rcx, rdi
call fcn.140092c88
mov edi, 1
test rsi, rsi
jne 0x140071404
jmp 0x14007140c

Function at 0x140073460
Capabilities:
Set socket configuration

Disassembly:
push rsi
sub rsp, 0x30
mov rax, qword [0x1400cb080]
xor rax, rsp
mov qword [rsp + 0x28], rax
xor eax, eax
test edx, edx
setne al
mov dword [rsp + 0x24], eax
lea r8, [rsp + 0x24]
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140080da0
mov eax, esi
add rsp, 0x30
pop rsi
ret
Function at 0x140077720
Capabilities:
Get file size
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x158
mov rbx, r8
mov rdi, rdx
mov r12, rcx
mov rax, qword [0x1400cb080]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rcx, rdx
call fcn.1400443b0
test rax, rax
je 0x1400777e1
mov rsi, rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], Ordinal_133
mov dword [rsp + 0x20], 3
mov rcx, rax
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x140077820
mov r14, rax
lea rdx, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140077857
mov r13, qword [rsp + 0x48]
cmp r13, 0x100001
jl 0x1400778cc
lea rdx, str.schannel:_CA_file_exceeds_max_size_of__u_bytes
mov rcx, rbx
mov r8d, 0x100000
call fcn.14001cc90
jmp 0x140077884
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [rsp + 0x50]
mov r8d, 0x100
mov ecx, eax
call fcn.140051250
lea rdx, str.schannel:_invalid_path_name_for_CA_file__s:__s
mov rcx, rbx
mov r8, rdi
mov r9, rax
call fcn.14001cc90
xor ecx, ecx
call qword [fcn.140092c88]
mov edi, Ordinal_79
jmp 0x1400778a6
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [rsp + 0x50]
mov r8d, 0x100
mov ecx, eax
call fcn.140051250
lea rdx, str.schannel:_failed_to_open_CA_file__s:__s
mov rcx, rbx
mov r8, rdi
mov r9, rax
call fcn.14001cc90
mov edi, Ordinal_79
xor r15d, r15d
jmp 0x140077895
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [rsp + 0x50]
mov r8d, 0x100
mov ecx, eax
call fcn.140051250
lea rdx, str.schannel:_failed_to_determine_size_of_CA_file__s:__s
mov rcx, rbx
mov r8, rdi
mov r9, rax
call fcn.14001cc90
mov edi, Ordinal_79
xor r15d, r15d
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r15
call qword [fcn.140092c88]
mov rcx, rsi
call fcn.140092c88
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140080da0
mov eax, edi
add rsp, 0x158
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [r13 + 1]
call qword [case.0x1400315e4.5]
test rax, rax
je 0x140077933
mov r15, rax
xor ebp, ebp
test r13, r13
mov qword [rsp + 0x38], r12
je 0x14007793d
xor r12d, r12d
nop dword [rax]
mov r8d, r13d
sub r8d, ebp
mov dword [rsp + 0x44], 0
lea rdx, [r15 + r12]
mov qword [rsp + 0x20], 0
mov rcx, r14
lea r9, [rsp + 0x44]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140077964
mov eax, dword [rsp + 0x44]
add ebp, eax
test eax, eax
cmove r13, r12
mov r12, rbp
cmp r13, rbp
ja 0x1400778f0
jmp 0x140077940
mov edi, reloc.WLDAP32.dll_Ordinal_27
jmp 0x140077889
xor r13d, r13d
mov byte [r15 + r13], 0
mov qword [rsp + 0x20], rbx
mov rcx, qword [rsp + 0x38]
mov rdx, r15
mov r8, r13
mov r9, rdi
call fcn.1400773a0
mov edi, eax
jmp 0x14007788c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [rsp + 0x50]
mov r8d, 0x100
mov ecx, eax
call fcn.140051250
lea rdx, str.schannel:_failed_to_read_from_CA_file__s:__s
mov rcx, rbx
mov r8, rdi
mov r9, rax
call fcn.14001cc90
mov edi, Ordinal_79
jmp 0x14007788c
Function at 0x14007ecd0
Capabilities:
Get hostname

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov ebx, edx
mov rdi, rcx
mov byte [rcx], 0
call qword [sym.imp.WS2_32.dll_gethostname]
mov esi, eax
movsxd rax, ebx
mov byte [rax + rdi - 1], 0
test esi, esi
jne 0x14007ed08
mov rcx, rdi
mov edx, reloc.WLDAP32.dll_Ordinal_46
call fcn.140082300
test rax, rax
je 0x14007ed08
mov byte [rax], 0
mov eax, esi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret

Function at 0x14007ed40
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rcx, rdx
mov rdx, r8
mov r8, rbx
call fcn.14007ed90
lea r8, [rbx + 7]
lea rdx, [rsi + 8]
mov rcx, rdi
call fcn.14007ed90
add rbx, 0xe
add rsi, 0x10
mov rcx, rdi
mov rdx, rsi
mov r8, rbx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.14007ed90

Function at 0x14007ed90
Capabilities:
Create new key via cryptacquirecontext
Encrypt or decrypt via wincrypt

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1400cb080]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x3c], 8
mov dword [rsp + 0x20], 0xf0000040
lea rcx, [rsp + 0x48]
xor edx, edx
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14007ef02
movabs rax, 0x660100000000
mov qword [rsp + 0x50], rax
mov word [rsp + 0x50], 0x208
mov dword [rsp + 0x58], 8
lea rcx, [rsp + 0x5c]
movzx eax, byte [rbx + 4]
mov edx, dword [rbx]
movd xmm0, edx
mov byte [rsp + 0x5c], dl
movdqa xmm1, xmm0
psrld xmm1, 8
movd xmm2, eax
pslld xmm2, 0x18
movdqa xmm3, xmmword [0x1400b13d0]
pandn xmm3, xmm2
por xmm3, xmm1
punpcklbw xmm3, xmm0
pmullw xmm3, xmmword [0x1400b13e0]
psrlw xmm3, 8
packuswb xmm3, xmm3
movd dword [rsp + 0x5d], xmm3
movzx edx, byte [rbx + 5]
lea eax, [rax*8]
mov r8d, edx
shr r8b, 5
or r8b, al
mov byte [rsp + 0x61], r8b
movzx eax, byte [rbx + 6]
shl dl, 2
mov r8d, eax
shr r8b, 6
or r8b, dl
mov byte [rsp + 0x62], r8b
add al, al
mov byte [rsp + 0x63], al
mov edx, 8
call fcn.1400807b0
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
lea rdx, [rsp + 0x50]
mov r8d, reloc.WS2_32.dll_sendto
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x14007eef5
mov rax, qword [rdi]
mov qword [rsi], rax
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x30], 8
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140080da0
nop
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
Function at 0x14007f630
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x1400cb080]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x20], 0xf0000040
lea rcx, [rsp + 0x30]
xor edx, edx
xor r8d, r8d
mov r9d, Ordinal_26
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14007f72e
lea rax, [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov edx, 0x800c
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x14007f735
mov rcx, rbx
call fcn.14002d8d0
mov rcx, qword [rsp + 0x38]
mov rdx, rdi
mov r8d, eax
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov dword [rsp + 0x44], 0
mov rcx, qword [rsp + 0x38]
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov edx, 2
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [rsp + 0x44], 0x20
jne 0x14007f708
mov rcx, qword [rsp + 0x38]
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov edx, 2
mov r8, rsi
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14007f718
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14007f72a
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor esi, esi
jmp 0x14007f747
mov esi, reloc.WLDAP32.dll_Ordinal_27
jmp 0x14007f747
mov rcx, qword [rsp + 0x30]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov esi, 2
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140080da0
mov eax, esi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
Function at 0x14007f870
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x30
mov ebp, r8d
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x1400cb080]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, dword [rcx + 0x18]
mov ecx, dword [rcx + 0x20]
add eax, eax
add rcx, rax
add rcx, 0x18
call qword [case.0x1400315e4.5]
mov rdi, rax
test rax, rax
je 0x14007f9ab
mov qword [rdi], rsi
lea rcx, [rdi + 0x18]
mov qword [rdi + 8], rcx
mov eax, dword [rsi + 0x18]
add rax, rdi
add rax, 0x18
mov qword [rdi + 0x10], rax
cmp dword [rsi + 0x1c], ebp
jae 0x14007f8fc
call qword [rsi]
mov rcx, qword [rdi + 8]
mov rdx, rbx
mov r8d, ebp
call qword [rsi + reloc.WS2_32.dll_htonl]
mov ebx, dword [rsi + 0x18]
add rbx, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, rbx
call qword [rsi + reloc.WS2_32.dll_recv]
mov ebp, dword [rsi + 0x20]
mov rcx, qword [rdi + 8]
call qword [rsi]
mov rcx, qword [rdi + 0x10]
call qword [rsi]
mov r15d, ebp
test ebp, ebp
je 0x14007f95e
xor r12d, r12d
lea r14, [rsp + 0x27]
nop word cs:[rax + rax]
movzx eax, byte [rbx + r12]
xor al, 0x36
mov byte [rsp + 0x27], al
mov rcx, qword [rdi + 8]
mov rdx, r14
mov r8d, 1
call qword [rsi + reloc.WS2_32.dll_htonl]
movzx eax, byte [rbx + r12]
xor al, 0x5c
mov byte [rsp + 0x27], al
mov rcx, qword [rdi + 0x10]
mov rdx, r14
mov r8d, 1
call qword [rsi + reloc.WS2_32.dll_htonl]
inc r12
cmp r15, r12
jne 0x14007f920
cmp r15d, dword [rsi + 0x1c]
jae 0x14007f9ab
lea rbx, [0x1400b1468]
lea r14, [0x1400b1469]
nop word cs:[rax + rax]
mov rcx, qword [rdi + 8]
mov rdx, rbx
mov r8d, 1
call qword [rsi + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
mov rdx, r14
mov r8d, 1
call qword [rsi + reloc.WS2_32.dll_htonl]
inc r15
mov eax, dword [rsi + 0x1c]
cmp r15, rax
jb 0x14007f980
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140080da0
mov rax, rdi
add rsp, 0x30
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140080c50
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x1400cb080]
xor rax, rsp
mov qword [rsp + 0x50], rax
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x20], 0xf0000040
lea rcx, [rsp + 0x30]
xor edx, edx
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov ebp, 2
test eax, eax
je 0x140080d69
lea rax, [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov edx, 0x8002
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x140080d5c
mov rcx, rbx
call fcn.14002d8d0
mov rcx, qword [rsp + 0x38]
mov rdx, rdi
mov r8d, eax
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov dword [rsp + 0x4c], 0
mov rcx, qword [rsp + 0x38]
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x4c]
mov edx, 2
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [rsp + 0x4c], 0x10
jne 0x140080d36
mov rcx, qword [rsp + 0x38]
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x4c]
mov edx, 2
mov r8, rsi
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140080d46
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140080d58
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor ebp, ebp
jmp 0x140080d69
mov rcx, qword [rsp + 0x30]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140080da0
mov eax, ebp
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
ret

Function at 0x14009c330
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14009c350
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14008c8bc
or eax, 0xffffffff
jmp 0x14009c352
xor eax, eax
add rsp, 0x28
ret
Function at 0x140003630
Capabilities:
Encode data using base64

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, qword [rsp + 0x50]
xor eax, eax
mov qword [r9], rax
mov rsi, r9
mov rbx, r8
mov rdi, rdx
mov qword [r14], rax
test r8, r8
jne 0x140003678
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rdx + rbx], al
jne 0x140003670
lea rcx, [rbx + 2]
movabs rbp, 0xaaaaaaaaaaaaaaab
mov rax, rbp
mul rcx
shr rdx, 1
lea rcx, [rdx*4 + 1]
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rcx, rax
mov r9, rax
test rax, rax
jne 0x1400036b1
lea eax, [r9 + 0x1b]
jmp 0x1400037a2
lea r10, [0x140067a10]
cmp rbx, 3
jb 0x140003737
mov rax, rbp
mul rbx
mov r8, rdx
shr r8, 1
imul rax, r8, 0xfffffffffffffffd
add rbx, rax
movzx eax, byte [rdi]
shr rax, 2
movzx eax, byte [rax + r10]
mov byte [rcx], al
movzx edx, byte [rdi]
movzx eax, byte [rdi + 1]
and edx, 3
shr rax, 4
shl rdx, 4
or rdx, rax
movzx eax, byte [rdx + r10]
mov byte [rcx + 1], al
movzx edx, byte [rdi + 1]
movzx eax, byte [rdi + 2]
and edx, 0xf
shr rax, 6
shl rdx, 2
or rdx, rax
movzx eax, byte [rdx + r10]
mov byte [rcx + 2], al
movzx eax, byte [rdi + 2]
add rdi, 3
and eax, 0x3f
movzx eax, byte [rax + r10]
mov byte [rcx + 3], al
add rcx, 4
sub r8, 1
jne 0x1400036d1
test rbx, rbx
je 0x140003794
movzx eax, byte [rdi]
shr rax, 2
movzx eax, byte [rax + r10]
mov byte [rcx], al
movzx edx, byte [rdi]
and edx, 3
shl rdx, 4
cmp rbx, 1
jne 0x14000376a
movzx eax, byte [rdx + r10]
mov byte [rcx + 1], al
mov word [rcx + 2], 0x3d3d
jmp 0x140003790
movzx eax, byte [rdi + 1]
shr rax, 4
or rax, rdx
movzx eax, byte [rax + r10]
mov byte [rcx + 1], al
movzx eax, byte [rdi + 1]
and eax, 0xf
movzx eax, byte [r10 + rax*4]
mov byte [rcx + 2], al
mov byte [rcx + 3], 0x3d
add rcx, 4
mov byte [rcx], 0
sub rcx, r9
mov qword [r14], rcx
xor eax, eax
mov qword [rsi], r9
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
Function at 0x1400067f0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x14007c040]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, dword [0x14007ead8]
mov rbx, rcx
mov dword [rsp + 0x34], 0x4020
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x38], 4
test eax, eax
jne 0x140006866
xor edx, edx
mov dword [rsp + 0x20], 3
call fcn.140064940
test al, al
je 0x14000685a
mov dword [0x14007ead8], 2
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140065250
add rsp, 0x50
pop rbx
ret
mov dword [0x14007ead8], 1
jmp 0x14000686b
cmp eax, 2
je 0x1400068bd
lea rax, [rsp + 0x38]
mov edx, 0xffff
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x14000689c
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x30], eax
jg 0x1400068bd
lea r9, [rsp + 0x34]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140065250
add rsp, 0x50
pop rbx
ret