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

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x180
mov rbx, rcx
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov edx, 0x40
call qword [sym.imp.WS2_32.dll_gethostname]
xor ebp, ebp
mov byte [rdi + 0x3f], bpl
lea r8, [rsp + 0x2c]
mov dword [r8], 0x104
lea r14, [rsp + 0x70]
mov ecx, 2
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_GetComputerNameExA]
mov ecx, 3
call fcn.180009cce
mov rsi, rax
mov rcx, rax
mov rdx, rbx
call fcn.18000a5c3
lea rdx, [0x1800127cb]
mov rcx, rsi
call fcn.18000a5c3
lea rdx, [0x1800127cf]
mov rcx, rsi
call fcn.18000a5c3
lea rdx, [0x1800127d3]
mov rcx, rsi
call fcn.18000a5c3
lea rdx, str.k7avwscn
mov rcx, rsi
call fcn.18000a5c3
lea rdx, [0x1800127d5]
mov rcx, rsi
call fcn.18000a5c3
mov rcx, rsi
mov rdx, rdi
call fcn.18000a5c3
cmp byte [r14], bpl
je 0x180008b2b
lea rdx, [0x1800127d8]
mov rcx, rsi
call fcn.18000a5c3
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.18000a5c3
lea rdx, [0x1800127da]
mov rcx, rsi
call fcn.18000a5c3
mov rcx, rsi
xor edx, edx
call fcn.18000a082
mov rcx, rsi
xor edx, edx
call fcn.18000a166
nop
add rsp, 0x180
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x180009031
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
cmp dword [rcx + 8], 0
je 0x180009072
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
lea rdx, [rsp + 0x20]
call fcn.180001b90
test eax, eax
je 0x180009079
movzx ecx, word [rbx]
lea r8, str.Error_opening_file_for_reading
mov dx, 0xffff
call fcn.18000974b
mov rbx, rax
jmp 0x180009112
xor ebx, ebx
jmp 0x180009112
mov rcx, qword [rbx + 0x10]
lea rdx, [0x180012898]
call sub.msvcrt.dll_fopen
test rax, rax
je 0x180009057
mov rsi, rax
mov r15d, dword [rsp + 0x34]
movsxd rdi, r15d
mov rcx, rdi
call fcn.18000ec60
mov r14, rax
mov edx, 1
mov rcx, rax
mov r8, rdi
mov r9, rsi
call sub.msvcrt.dll_fread
movzx ecx, word [rbx]
cmp rax, rdi
jne 0x1800090ef
mov edx, 3
xor r8d, r8d
call fcn.1800096e9
mov rbx, rax
mov rcx, r15
call fcn.18000ec60
mov qword [rbx + 0x10], rax
mov rcx, rax
mov rdx, r14
mov r8, r15
call sub.msvcrt.dll_memcpy
mov dword [rbx + 0x18], r15d
jmp 0x180009102
lea r8, str.There_was_an_error_reading_the_file
mov dx, 0xffff
call fcn.18000974b
mov rbx, rax
mov rcx, rsi
call sub.msvcrt.dll_fclose
mov rcx, r14
call sub.msvcrt.dll_free
mov rax, rbx
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

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

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rdx
mov rcx, qword [rcx + 0x30]
mov eax, dword [rdx + 0x10]
lea rdx, [rsp + 0x20]
mov dword [rdx], 2
mov dword [rdx + 8], eax
call fcn.18000ebcb
test rax, rax
je 0x180009281
movsxd rcx, dword [rax + 4]
mov rdx, qword [rsi + 0x18]
mov r8d, dword [rsi + 0x20]
xor r9d, r9d
add rsp, 0x30
pop rsi
jmp qword [sym.imp.WS2_32.dll_send]
nop
add rsp, 0x30
pop rsi
ret
Function at 0x180009af6
Capabilities:
Create pipe
Create process on windows
Create two anonymous pipes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x100
mov rdi, rdx
mov rbx, rcx
mov ecx, 0x58
call fcn.18000ec60
mov rsi, rax
mov qword [rax], rdi
mov qword [rax + 8], rbx
mov ecx, 3
call fcn.180009cce
xorps xmm0, xmm0
lea r8, [rsp + 0x50]
movaps xmmword [r8], xmm0
mov qword [r8 + 0x10], 1
mov dword [r8], 0x18
and qword [r8 + 8], 0
mov qword [rsi + 0x10], rax
lea rcx, [rsi + 0x20]
lea rdx, [rsi + 0x28]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x180009c71
lea rcx, [rsi + 0x30]
lea rdx, [rsi + 0x38]
lea r8, [rsp + 0x50]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x180009c71
xorps xmm0, xmm0
lea rax, [rsp + 0x90]
movaps xmmword [rax], xmm0
movaps xmmword [rax + 0x30], xmm0
movaps xmmword [rax + 0x40], xmm0
movaps xmmword [rax + 0x20], xmm0
movaps xmmword [rax + 0x10], xmm0
mov dword [rax], 0x68
mov dword [rax + 0x3c], 0x100
mov rcx, qword [rsi + 0x20]
mov qword [rax + 0x50], rcx
mov rcx, qword [rsi + 0x38]
mov qword [rax + 0x58], rcx
mov qword [rax + 0x60], rcx
lea rcx, [rsp + 0x70]
movaps xmmword [rcx], xmm0
and qword [rcx + 0x10], 0
mov rdx, qword [rsi]
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rax
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 1
lea r9, [rsp + 0x50]
xor ecx, ecx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x180009c71
mov eax, dword [rsp + 0x80]
mov dword [rsi + 0x40], eax
mov rax, qword [rsp + 0x70]
mov qword [rsi + 0x48], rax
mov rcx, qword [rsi + 0x20]
mov rdi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rdi
mov rcx, qword [rsi + 0x38]
call rdi
mov edx, dword [rsi + 0x40]
mov dword [rsi + 0x50], edx
mov rcx, qword [rsi + 8]
mov r8, qword [rsi + 0x30]
mov r9, rsi
call fcn.18000ee47
mov rcx, qword [rsi + 8]
mov edx, dword [rsi + 0x50]
lea r8, [0x180009c7d]
call fcn.18000ef48
mov rcx, qword [rsi + 8]
mov edx, dword [rsi + 0x50]
lea r8, [0x180009c9c]
call fcn.18000ef64
mov rax, rsi
add rsp, 0x100
pop rbx
pop rdi
pop rsi
ret
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitThread]

Function at 0x180009caa
Capabilities:
Terminate process

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov rcx, qword [rcx + 0x48]
mov edx, 2
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [rsi + 0x18], 1
add rsp, 0x20
pop rsi
ret
Function at 0x18000cd16
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
test r8, r8
je 0x18000ce29
test rdx, rdx
je 0x18000ce29
mov rdi, rcx
test rcx, rcx
je 0x18000ce29
xor eax, eax
cmp rax, 8
je 0x18000cd60
mov cl, byte [rdx + rax]
mov byte [rsp + rax + 0x20], cl
inc rax
jmp 0x18000cd4e
mov r13d, r9d
xor r12d, r12d
lea rcx, [rsp + 0x30]
mov r14d, 0x14
cmp r12, r13
je 0x18000ce29
mov r15d, r12d
and r15d, 0x3f
test r15d, r15d
jne 0x18000ce18
mov eax, r12d
shr eax, 6
mov byte [rsp + 0x28], al
mov eax, r12d
shr eax, 0xe
mov byte [rsp + 0x29], al
mov eax, r12d
shr eax, 0x16
mov byte [rsp + 0x2a], al
mov eax, r12d
shr eax, 0x1e
mov byte [rsp + 0x2b], al
lea rax, str.expand_32_byte_k
mov rsi, rcx
xor edx, edx
cmp rdx, 0x40
jae 0x18000cde3
xor ebp, ebp
cmp rbp, 4
je 0x18000cdd7
mov bl, byte [rax + rbp]
mov byte [rsi + rbp], bl
inc rbp
jmp 0x18000cdc6
add rdx, r14
add rsi, r14
add rax, 4
jmp 0x18000cdbe
xor eax, eax
cmp rax, 0x10
je 0x18000ce07
mov dl, byte [rdi + rax]
mov byte [rsp + rax + 0x34], dl
mov dl, byte [rdi + rax + 0x10]
mov byte [rsp + rax + 0x5c], dl
mov dl, byte [rsp + rax + 0x20]
mov byte [rsp + rax + 0x48], dl
inc rax
jmp 0x18000cde5
mov rsi, rcx
mov rbx, r8
call fcn.18000ce3a
mov r8, rbx
mov rcx, rsi
mov al, byte [rsp + r15 + 0x30]
xor byte [r8 + r12], al
inc r12
jmp 0x18000cd71
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x18000f7c8
Capabilities:
Create pipe
Create thread

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov ecx, 0x10
call fcn.18000ec60
mov rsi, rax
mov rax, qword [0x180017c28]
test rax, rax
jne 0x18000f841
lea rdi, [rsp + 0x30]
lea rbx, [rsp + 0x38]
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreatePipe]
mov rax, qword [rdi]
mov qword [rsi], rax
mov rax, qword [rbx]
mov qword [rsi + 8], rax
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r8, [0x18000f856]
xor ecx, ecx
xor edx, edx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x18000f849
mov rax, qword [rsp + 0x30]
mov qword [0x180017c28], rax
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
lea rcx, str.stdin:_Couldnt_create_thread
call fcn.18000fb1f
int3

Function at 0x18000f93a
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns
Set socket configuration

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x30
mov r14d, edx
mov rdi, rcx
mov ecx, 2
mov edx, 1
mov r8d, 6
call qword [sym.imp.WS2_32.dll_socket]
mov rsi, rax
cmp esi, 0xffffffff
je 0x18000fa30
lea r8, [rsp + 0x20]
mov dword [r8], 1
movsxd rbx, esi
mov rcx, rbx
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x18000fa01
mov rbp, rax
lea rdi, [rsp + 0x24]
and dword [rdi + 8], 0
and qword [rdi], 0
mov word [rdi - 4], 2
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_htons]
mov word [rdi - 2], ax
mov rax, qword [rbp + 0x18]
mov rdx, qword [rax]
movsx r8, word [rbp + 0x12]
mov rcx, rdi
call sub.msvcrt.dll_memcpy
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov r8d, 0x10
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jns 0x18000fa23
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2733
je 0x18000fa23
lea rcx, str.tcp:_couldnt_connect_to_host
call fcn.18000fa47
jmp 0x18000fa1e
mov ecx, 2
call qword [fcn.180002070]
lea rdx, str.Couldnt_find_host__s_n
mov rcx, rax
mov r8, rdi
call fcn.18000f917
mov esi, 0xffffffff
mov eax, esi
add rsp, 0x30
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
lea rcx, str.tcp:_couldnt_create_socket
call fcn.18000fb1f
int3
Function at 0x18000fb34
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov dword [rsp + 0x2c], 1
mov ecx, 2
mov edx, 2
mov r8d, 0x11
call qword [sym.imp.WS2_32.dll_socket]
mov rsi, rax
test esi, esi
js 0x18000fbd6
movsxd rdi, esi
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x2c]
mov rcx, rdi
mov edx, 0xffff
mov r8d, 0x20
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
js 0x18000fbe2
lea rcx, str.0.0.0.0
call qword [sym.imp.WS2_32.dll_inet_addr]
mov ebx, eax
mov dword [rsp + 0x34], eax
mov word [rsp + 0x30], 2
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x32], ax
cmp ebx, 0xffffffff
je 0x18000fbee
lea rdx, [rsp + 0x30]
mov rcx, rdi
mov r8d, 0x10
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
js 0x18000fbfa
mov eax, esi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
lea rcx, str.udp:_couldnt_create_socket
call fcn.18000fb1f
lea rcx, str.udp:_couldnt_set_socket_to_SO_BROADCAST
call fcn.18000fb1f
lea rcx, str.udp:_couldnt_parse_local_address
call fcn.18000fb1f
lea rcx, str.udp:_couldnt_bind_to_port__are_you_running_as_root__
call fcn.18000fb1f
int3

Function at 0x18000fc07
Capabilities:
Resolve dns
Send data
Send data on socket

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov r14, r9
mov edi, r8d
mov rsi, rdx
mov ebp, ecx
mov rcx, rdx
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x18000fca1
mov rbx, rax
lea rsi, [rsp + 0x3c]
and dword [rsi + 8], 0
and qword [rsi], 0
mov r15, qword [rsp + 0xa0]
mov word [rsi - 4], 2
movsxd rbp, ebp
mov ecx, edi
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsi - 2], ax
mov rax, qword [rbx + 0x18]
mov rdx, qword [rax]
movsx r8, word [rbx + 0x12]
mov rcx, rsi
call sub.msvcrt.dll_memcpy
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0x10
mov rcx, rbp
mov rdx, r14
mov r8d, r15d
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x18000fcb7
lea rcx, str.udp:_couldnt_send_data
call fcn.18000fb1f
mov ecx, 2
call qword [fcn.180002070]
mov rcx, rax
mov r8, rsi
call fcn.18000fcc5
nop
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1400335d8
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x1400333ac
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
test rax, rax
je 0x1400333ac
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400333ac
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400333ac
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400333ac
cmp dword [rcx + 0x84], 0xe
jbe 0x1400333ac
cmp dword [rcx + 0xf8], esi
je 0x1400333ac
mov ecx, r14d
call fcn.1400334f4
mov ecx, 2
call fcn.14002f208
nop
cmp byte [0x140072248], 0
jne 0x140033476
mov r15d, 1
mov eax, r15d
xchg dword [0x140072238], eax
test ebx, ebx
jne 0x14003341f
mov rdi, qword [0x14006f0d0]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x140072240]
cmp rcx, rax
je 0x140033416
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140028b40]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x140072480]
jmp 0x14003342b
cmp ebx, r15d
jne 0x140033431
lea rcx, [0x140072498]
call fcn.140033f44
nop
test ebx, ebx
jne 0x140033448
lea rdx, [0x14004a798]
lea rcx, [0x14004a778]
call fcn.1400342b8
lea rdx, [0x14004a7a8]
lea rcx, [0x14004a7a0]
call fcn.1400342b8
movzx eax, byte [0x140072248]
test esi, esi
cmove eax, r15d
mov byte [0x140072248], al
jmp 0x140033476
mov ecx, 2
call fcn.14002f268
test esi, esi
jne 0x14003348d
mov ecx, r14d
call fcn.1400334a8
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x14003333c
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
push rcx
push rsi
xor rdx, rdx
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
mov rsi, qword [rdx + 0x50]
movzx rcx, word [rdx + 0x4a]
xor r9, r9
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
mov rdx, qword [rdx + 0x20]
push r9
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
mov ecx, dword [rax + 0x18]
mov r8d, dword [rax + 0x20]
add r8, rdx
push rax
jrcxz 0x1400040ca
dec rcx
mov esi, dword [r8 + rcx*4]
xor r9, r9
add rsi, rdx
xor rax, rax
lodsb al, byte [rsi]
ror r9d, 0xd
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
pop r8
pop r8
add rax, rdx
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x140037a40
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
movzx eax, byte [rcx]
xor r9d, r9d
mov r10, rcx
test al, al
je 0x140037a85
nop dword [rax]
movzx r8d, al
lea r10, [r10 + 1]
sub al, 0x41
cmp al, 0x19
lea edx, [r8 + 0x20]
movzx ecx, dl
cmova ecx, r8d
movsx eax, cl
add eax, r9d
imul r9d, eax, 0x401
mov eax, r9d
shr eax, 6
xor r9d, eax
movzx eax, byte [r10]
test al, al
jne 0x140037a50
lea eax, [r9 + r9*8]
mov ecx, eax
shr ecx, 0xb
xor ecx, eax
imul eax, ecx, 0x8001
ret
Function at 0x140038840
Capabilities:
Hash data using sha256

Disassembly:
xor eax, eax
lea rdx, [rcx + 0x68]
mov qword [rcx + 8], rax
lea rax, [rcx + 0x10]
mov byte [rax + 0x41], 1
mov qword [rax + 0x50], rax
mov qword [rax + 0x48], reloc.WS2_32.dll_recv
mov rax, rdx
neg rax
mov byte [rdx + 0x49], 1
and eax, 0xf
mov qword [rdx + 0x50], reloc.WS2_32.dll_recv
add rax, rdx
mov qword [rdx + 0x58], rax
vmovups ymm0, ymmword [0x140115ad0]
mov rax, qword [rcx + 0xc0]
vmovups ymmword [rax], ymm0
lea rax, vtable.CryptoPP::SHA256.0
mov qword [rcx], rax
mov rax, rcx
vzeroupper
ret

Function at 0x14003a230
Capabilities:
Hash data using sha1

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, 0xc0
call fcn.1400bf1e0
xor edx, edx
mov qword [rsp + 0x38], rax
mov r8d, 0xc0
mov rcx, rax
mov rbx, rax
call fcn.1400c20e0
xor eax, eax
lea rcx, [rbx + 0x10]
mov qword [rbx + 8], rax
lea rax, [rbx + 0x68]
mov byte [rcx + 0x41], 1
mov qword [rcx + 0x50], rcx
mov qword [rcx + 0x48], reloc.WS2_32.dll_recv
mov byte [rax + 0x41], 0
mov byte [rax + 0x41], 1
mov qword [rax + 0x50], rax
mov qword [rax + 0x48], reloc.WS2_32.dll_recv
mov rax, qword [rbx + 0xb8]
mov dword [rax], 0x67452301
mov dword [rax + 4], 0xefcdab89
mov dword [rax + 8], 0x98badcfe
mov dword [rax + 0xc], 0x10325476
mov dword [rax + 0x10], 0xc3d2e1f0
lea rax, vtable.CryptoPP::SHA1.0
mov qword [rbx], rax
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x14003fac0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r13, r8d
mov rdi, rcx
mov rcx, r13
xor r15d, r15d
mov r14, rdx
call fcn.1400bf5d0
movzx ebx, byte [rsp + 0x80]
mov r12, rax
mov qword [rsp + 0x78], rsi
nop dword [rax + rax]
xor r9d, r9d
mov r8d, r13d
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbp, eax
test eax, eax
jle 0x14003fb7c
mov r8, qword [r14 + 0x18]
mov rdx, qword [r14 + 0x10]
mov rcx, r8
sub rcx, rdx
cmp rbp, rcx
ja 0x14003fb60
lea rax, [rdx + rbp]
mov qword [r14 + 0x10], rax
mov rax, r14
cmp r8, 0x10
jb 0x14003fb40
mov rax, qword [r14]
lea rdi, [rax + rdx]
mov r8, rbp
mov rcx, rdi
mov rdx, r12
call fcn.1400c1a40
mov byte [rdi + rbp], 0
add r15d, ebp
mov rdi, qword [rsp + 0x70]
jmp 0x14003fb00
mov r9, r12
mov qword [rsp + 0x20], rbp
movzx r8d, bl
mov rdx, rbp
mov rcx, r14
call fcn.140028ff0
add r15d, ebp
jmp 0x14003fb00
mov rsi, qword [rsp + 0x78]
mov eax, 0xffffffff
cmp ebp, eax
cmovne eax, r15d
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rbp
pop rbx
ret
Function at 0x14004e940
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x14004e962
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x14004e9dc
mov rdi, r14
mov rcx, rbx
call fcn.140041200
test rax, rax
jle 0x14004e9b4
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.1400c1a40
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14004e9cc
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x14004e9d4
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x14004e976
sub r14, rdi
jmp 0x14004eabf
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x14004e9f3
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14004e9f5
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14004ea27
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.1400c1a40
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14004eabc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14004ea62
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x14004ea9d
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.1400d8070
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x14004eabc
cmp rbp, rax
ja 0x14004ea70
test rbp, rbp
je 0x14004eabc
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.1400d8070
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
Function at 0x140051350
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x1400513b1
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x140051370
mov ecx, dword [r9]
jmp 0x140051498
cmp ecx, 0x4e0
jb 0x140051498
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x630]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x1400513d0
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop dword [rax + rax]
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 - 0xd50]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x140051420
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x140058870
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x1400588cd
lea rbx, [0x14010de30]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x1400588b4
cmp r10, 2
jb 0x1400588b4
cmp byte [r9], r8b
jne 0x1400588b4
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x140058890
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14005890f
lea rbx, [0x14010de30]
cmp r8b, 0x23
jne 0x1400588f3
cmp byte [r9], r8b
jne 0x1400588f3
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x1400588e0
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x140058a50
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x140058a6a
mov qword [r8], 0
lea rdx, [0x140113ab0]
call fcn.140058920
mov rbx, rax
test rax, rax
jne 0x140058a8a
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call fcn.1400d8f78
mov esi, eax
cmp eax, 0xffffffff
je 0x140058b58
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call fcn.1400d8440
test eax, eax
jne 0x140058b58
mov rcx, rbx
call fcn.1400d8f78
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140058b58
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call fcn.1400d8440
test eax, eax
jne 0x140058b58
cmp rdi, 0xffffffffffffffff
je 0x140058b58
mov rax, qword [0x140152818]
test rax, rax
je 0x140058afa
inc dword [rax + 0xf4]
mov rcx, rdi
call fcn.1400dbd88
mov rsi, rax
test rax, rax
je 0x140058b58
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call fcn.1400d8070
mov rcx, rbx
cmp rax, rdi
je 0x140058b46
call fcn.1400d6a40
mov rax, qword [0x140152818]
test rax, rax
je 0x140058b3c
dec dword [rax + 0xf4]
mov rcx, rsi
call fcn.1400d61e0
jmp 0x140058b60
call fcn.1400d6a40
test r14, r14
je 0x140058b53
mov qword [r14], rdi
mov rax, rsi
jmp 0x140058b62
mov rcx, rbx
call fcn.1400d6a40
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret