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

Disassembly:
cmp edx, 0x1f
jne 0x1400cfdd8
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1e0]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x1400cfc95
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x1400cfc95
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1400cfc95
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x1400cfccc
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x1400cfd22
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400cfd22
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400cfd22
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400cfd22
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400cfd22
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.1400cf6e0
mov rcx, qword [r14 + 0x4c0]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x1400cfd84
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400abe60
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.1400cfab0
mov rcx, qword [r14 + 0x4c0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1400cfdd0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400abe60
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x1400d1540
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x140121080]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x1400d15d5
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x1400d1636
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.1400abe60
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400e4d60
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x1400d16f1
sub ecx, 1
je 0x1400d1764
sub ecx, 1
je 0x1400d16a0
cmp ecx, 1
je 0x1400d1683
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1400ff224]
call fcn.1400abe60
jmp 0x1400d1764
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.1400d1270
test eax, eax
je 0x1400d1764
jmp 0x1400d160a
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x1400d1764
sub rax, rsi
cmp rax, rbp
jae 0x1400d1764
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.1400abfe0
jmp 0x1400d1764
cmp r8d, 4
jle 0x1400d1764
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x1400d1764
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.1400abd80
mov esi, eax
test eax, eax
je 0x1400d1743
mov edx, 5
mov rcx, rbx
call fcn.1400d2230
mov eax, esi
jmp 0x1400d160a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.1400ba660
mov rcx, r14
call fcn.1400ba940
test eax, eax
je 0x1400d1608
mov edx, 5
mov rcx, rbx
call fcn.1400d2230
mov eax, Ordinal_46
jmp 0x1400d160a
Function at 0x1400e4500
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1400e4542
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400e4589
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
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]
xor esi, esi
test rbp, rbp
je 0x1400e45e2
mov rsi, rbp
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 [rdi + 8]
call qword [rbx + 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 [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1400e45a0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400e4623
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400f95c2]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400f95c3]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400e45f0
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x1400e4640
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400e46c4
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x1400e46c4
dec r8
sub rdx, 1
jne 0x1400e46aa
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1400e5ccc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400e5d16
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400e5d16
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400e5d16
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400e5d16
cmp dword [rcx + 0x84], 0xe
jbe 0x1400e5d16
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400e5d18
xor al, al
add rsp, 0x28
ret
Function at 0x180008f00
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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x180008f30
xor eax, eax
jmp 0x180008ff3
mov rbp, rbx
cmp word [rax], si
je 0x180008f55
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180008f3c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180008f38
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.180008e50
movsxd r14, eax
test eax, eax
jne 0x180008f93
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180008f29
mov rcx, r14
call fcn.18000a188
mov rdi, rax
test rax, rax
jne 0x180008fac
xor ecx, ecx
call fcn.180007554
jmp 0x180008f88
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.180008e50
test eax, eax
jne 0x180008fdd
mov rcx, rdi
call fcn.180007554
jmp 0x180008fe7
xor ecx, ecx
call fcn.180007554
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x18000e70c
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x18000003c]
lea rsi, [0x180000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x18000e784
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x18000e784
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x18000e784
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x18000e778
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x18000e796
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x18000e766
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x18000e786

Function at 0x18000ec50
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18000ec78
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18000ec78
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180003ec0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x10], 0
mov qword [rsp + 8], 0
mov qword [rsp + 0x18], 0
mov qword [rsp + 0x20], 0
mov rax, qword [0x18001ac30]
mov qword [rsp + 0x10], rax
jbe 0x180003f29
push rbp
nop
pop rbp
ja 0x180003f29
xlatb
invalid
mov rax, qword [rsp + 0x10]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x180003f3f
xor eax, eax
jmp 0x18000407f
mov rax, qword [rsp + 0x10]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x10]
add rcx, rax
mov rax, rcx
mov qword [rsp + 8], rax
js 0x180003f84
push rsi
push rbp
push rdi
pop rdi
pop rbp
pop rsi
jns 0x180003f84
sahf
invalid
mov rax, qword [rsp + 8]
cmp dword [rax], 0x4550
je 0x180003f98
xor eax, eax
jmp 0x18000407f
mov dword [rsp], 0
jmp 0x180003fa9
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov rax, qword [rsp + 8]
movzx eax, word [rax + 6]
cmp dword [rsp], eax
jae 0x180004054
mov rax, qword [rsp + 8]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 8]
lea rax, [rcx + rax + 0x18]
mov ecx, dword [rsp]
imul rcx, rcx, 0x28
add rax, rcx
mov qword [rsp + 0x18], rax
jnp 0x180004009
nop
jp 0x180004009
outsd dx, dword [rsi]
jo 0x180003ff6
sahf
ret
adc dword [0x11ed7b0a5], ecx
adc edi, edx
xlatb
or eax, 0x68f3e343
adc ebx, esi
lea ebp, [rax + 0x48]
mov eax, dword [rsp + 0x18]
mov rax, qword [rsp + 0x18]
cmp dword [rax + 0x24], 0xe0000020
jne 0x18000404f
jne 0x180004043
push rbp
push rsp
pop rsp
pop rbp
je 0x180004043
push 0xef36770
invalid
mov rax, qword [rsp + 0x18]
mov qword [rsp + 0x20], rax
jmp 0x180004054
jmp 0x180003fa1
cmp qword [rsp + 0x20], 0
jne 0x180004060
xor eax, eax
jmp 0x18000407f
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0xc]
mov rcx, qword [0x18001ac30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
add rsp, 0x38
ret
Function at 0x180013e40
Capabilities:
Access peb ldr_data
Parse pe header

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x10], 0
mov qword [rsp + 0x18], 0
mov qword [rsp + 8], 0
mov qword [rsp], 0
mov qword [rsp + 0x20], 0
mov rax, qword gs:[0x60]
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x10]
mov rax, qword [rax + 0x238]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x18]
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
mov qword [rsp], rax
mov rax, qword [rsp]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x180013eed
mov rax, qword [rsp]
cmp dword [rax + 0x3c], 0
jle 0x180013eed
mov rax, qword [rsp]
cmp dword [rax + 0x3c], 0x190
jge 0x180013eed
mov rax, qword [rsp]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
cmp dword [rax], 0x4550
jne 0x180013eed
jmp 0x180013efc
mov rax, qword [rsp + 8]
dec rax
mov qword [rsp + 8], rax
jmp 0x180013e99
mov rax, qword [rsp + 8]
add rsp, 0x38
ret

Function at 0x180013f10
Capabilities:
Hash data with crc32
Parse pe header

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov dword [rsp], 0
mov dword [rsp + 8], 0
mov dword [rsp], 0xffffffff
jg 0x180013f64
push rbx
push rsp
push rax
pop rax
pop rsp
pop rbx
jle 0x180013f64
jrcxz 0x180013f55
push 0xffffffff9ea9cece
sahf
or eax, 0x6fe3a96f
jrcxz 0x180013ede
push 0xfffffffff30d70d7
ret
repz ret
mov dword [rsp + 4], 0
jmp 0x180013f78
mov eax, dword [rsp + 4]
inc eax
mov dword [rsp + 4], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 4], eax
jae 0x180014043
jle 0x180013fb2
push rdi
push rcx
push rcx
nop
pop rcx
pop rcx
pop rdi
jg 0x180013fb2
test eax, 0xe3a96fa9
or eax, 0x706fa90e
push 0xd0e676f
jrcxz 0x18001400d
ret
mov eax, dword [rsp + 4]
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
mov ecx, dword [rsp]
xor ecx, eax
mov eax, ecx
and eax, 0xff
enter 0xffffffffffffc18b, 0x25
inc dword [rax]
add byte [rax], al
mov dword [rsp + 8], eax
jnp 0x180013ffb
jp 0x180013ffb
or eax, 0x707067c3
adc dword [rax - 0x3d], ebp
xlatb
xlatb
or eax, 0x7043700e
invalid
mov eax, dword [rsp]
shr eax, 8
mov ecx, dword [rsp + 8]
lea rdx, [0x18001a810]
xor eax, dword [rdx + rcx*4]
add al, 0x8a
mov dword [rsp], eax
jno 0x18001403e
push rcx
pop rcx
jo 0x18001403e
jo 0x180013fc3
invalid
outsd dx, dword [rsi]
jrcxz 0x18001409f
ret
jmp 0x180013f6e
js 0x18001406f
nop
jns 0x18001406f
jo 0x18001402d
adc dword [esi], ecx
xlatb
push 0xffffffffd74367a9
or eax, 0xf3a9cea9
outsd dx, dword [rsi]
push 0xffffffff8dd76f0d
invalid
mov eax, dword [rsp]
xor eax, 0xffffffff
mov dword [rsp], eax
jge 0x1800140a4
push rbx
push rdx
push rsi
push rbx
pop rbx
pop rsi
pop rdx
pop rbx
jl 0x1800140a4
invalid
sahf
push 0x48f3d743
mov eax, dword [rsp + 0x30]
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp]
mov dword [rax], ecx
xor eax, eax
add rsp, 0x18
ret
Function at 0x1800140c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x24], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
je 0x18001413d
push rax
push rsp
pop rsp
pop rax
jne 0x18001413d
test eax, 0xf311e370
invalid
mov rax, qword [rsp + 0x38]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x180014156
mov eax, 1
jmp 0x1800143d4
mov rax, qword [rsp + 0x38]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
jnp 0x18001419b
jp 0x18001419b
test eax, 0xd6843e3
outsd dx, dword [rsi]
lea ecx, [0x11ef4a94f]
sahf
adc ebx, esp
sahf
adc esi, ecx
or eax, 0x9e9e6f67
ret
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x1800141b2
mov eax, 1
jmp 0x1800143d4
mov dword [rsp + 0x20], 0
jmp 0x1800141c6
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x20], eax
jae 0x1800143a9
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x30]
lea rax, [rcx + rax + 0x18]
mov ecx, dword [rsp + 0x20]
imul rcx, rcx, 0x28
add rax, rcx
mov qword [rsp + 0x40], rax
jo 0x180014228
push rbx
push rcx
pop rcx
pop rbx
jno 0x180014228
adc dword [rsi], ecx
adc dword [rdi + 0x68], esp
lea eax, [rbx + 0x70]
sahf
ret
mov r8d, 0x10
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [0x18001ace8]
jno 0x180014267
nop
jo 0x180014267
test eax, 0x7068c343
adc dword [rbx + 0x43], eax
or eax, 0x8d43e39e
sahf
invalid
mov rax, qword [rsp + 0x40]
mov r8d, 8
mov rdx, rax
lea rcx, [rsp + 0x50]
call qword [0x18001ad78]
ja 0x1800142ac
push rdi
nop
pop rdi
jbe 0x1800142ac
test eax, 0x438d9ec3
outsd dx, dword [esi]
lea esi, [rax - 0x29]
outsd dx, dword [rsi]
sahf
invalid
jae 0x1800142d8
push rcx
push rdi
push rbp
nop
pop rbp
pop rdi
pop rcx
jb 0x1800142d8
sahf
ret
lea rdx, [0x18001af60]
lea rcx, [rsp + 0x50]
call qword [0x18001b028]
test eax, eax
jne 0x1800143a4
mov dword [rsp + 0x24], 1
jo 0x180014326
push rdi
push rsi
push rsp
push rdi
pop rdi
pop rsp
pop rsi
pop rdi
jno 0x180014326
sahf
outsd dx, dword [rsi]
invalid
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x70]
and al, 0x70
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
jo 0x18001436a
push rcx
push rsi
nop
pop rsi
pop rcx
jno 0x18001436a
invalid
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x28], eax
jbe 0x1800143a2
push rbx
push rdi
nop
pop rdi
pop rbx
ja 0x1800143a2
or eax, 0xd70e9e67
jrcxz 0x180014330
invalid
jmp 0x1800143a9
jmp 0x1800141bc
cmp dword [rsp + 0x24], 0
jne 0x1800143b7
mov eax, 1
jmp 0x1800143d4
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x48]
mov qword [rax], rcx
mov rax, qword [rsp + 0x80]
mov ecx, dword [rsp + 0x28]
mov dword [rax], ecx
xor eax, eax
add rsp, 0x68
ret
Function at 0x180015570
Capabilities:
Enumerate pe sections
Parse pe header
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x20], 0
jb 0x1800155a9
push rbp
push rdx
push rax
nop
pop rax
pop rdx
pop rbp
jae 0x1800155a9
invalid
mov rdx, 0xffffffffffffffff
mov ecx, dword [0x18001e460]
call qword [0x18001af30]
jno 0x1800155e8
push rsi
push rbx
push rax
nop
pop rax
pop rbx
pop rsi
jo 0x1800155e8
test eax, 0x67118dc3
adc ebx, eax
sahf
adc edi, edx
jrcxz 0x180015647
ret
mov ecx, dword [0x18001b448]
call qword [0x18001b018]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x180015608
mov eax, 1
jmp 0x180015615
mov rcx, qword [rsp + 0x20]
call qword [0x18001afe0]
xor eax, eax
add rsp, 0x38
ret
add byte [rax], al
add byte [rax - 0x39], cl
and al, 0x70
add byte [rax], al
add byte [rax], al
Function at 0x140f13108
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140f1328f
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140f13139
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140f1311f
add dl, dl
jne 0x140f13146
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140f131a6
xor eax, eax
add dl, dl
jne 0x140f13155
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140f1325d
add dl, dl
jne 0x140f13166
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f13173
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f13180
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f1318d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140f1319a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140f1312e
mov eax, 1
add dl, dl
jne 0x140f131b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f131c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140f131ab
sub eax, ebx
mov ebx, 1
jne 0x140f131fc
mov ecx, 1
add dl, dl
jne 0x140f131de
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140f131eb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140f131d3
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140f1312e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140f13218
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140f13225
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140f1320d
cmp eax, 0x7d00
jae 0x140f1324b
cmp eax, 0x500
jb 0x140f13246
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140f1312e
cmp eax, 0x7f
ja 0x140f1324e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140f1312e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140f13282
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 0x140f1312e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001000
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x140006008]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
mov dword [rsp + 0x28], r9d
xorps xmm0, xmm0
mov dword [rsp + 0x2c], eax
mov dword [rsp + 0x3c], eax
xor r9d, r9d
mov dword [rsp + 0x4c], eax
mov rbx, rcx
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0xc8]
mov dword [rsp + 0x38], edx
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x40], r8
lea r8d, [r9 + 0x30]
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x20], 0x8aa0f4e2
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x1400010bc
xor r9d, r9d
lea rdx, [rsp + 0x50]
mov rcx, rbx
lea r8d, [r9 + 0x30]
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, 8
jb 0x1400010bc
cmp dword [rsp + 0x50], 0x8aa0f4e2
jne 0x1400010bc
cmp dword [rsp + 0x54], 5
jne 0x1400010bc
mov eax, dword [rsp + 0x58]
jmp 0x1400010be
xor eax, eax
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400026c0
add rsp, 0x90
pop rbx
ret
Function at 0x1800014a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov byte [rsp + 8], cl
sub rsp, 0x18
mov byte [rsp], 0
jmp 0x1800014b7
movzx eax, byte [rsp]
add al, 1
mov byte [rsp], al
movzx eax, byte [rsp]
cmp eax, 4
jge 0x18000153e
mov byte [rsp + 1], 0
jmp 0x1800014d2
movzx eax, byte [rsp + 1]
add al, 1
mov byte [rsp + 1], al
movzx eax, byte [rsp + 1]
cmp eax, 4
jge 0x180001539
movzx ecx, byte [rsp]
mov rax, qword [0x1800182e8]
lea r8, [rax + rcx*4]
movzx edx, byte [rsp + 1]
movzx ecx, byte [rsp + 0x20]
shl ecx, 2
movzx eax, byte [rsp]
shl eax, 2
lea eax, [rax + rcx*4]
movzx ecx, byte [rsp + 1]
add eax, ecx
movsxd rcx, eax
lea rax, [0x180018230]
movzx eax, byte [rax + rcx]
movzx r8d, byte [r8 + rdx]
xor r8d, eax
movzx edx, byte [rsp + 1]
movzx ecx, byte [rsp]
mov rax, qword [0x1800182e8]
lea rax, [rax + rcx*4]
mov byte [rax + rdx], r8b
jmp 0x1800014c7
jmp 0x1800014ae
add rsp, 0x18
ret