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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov ebp, 1
mov ebx, ebp
mov edi, dword [rsp + 0xc0]
mov qword [rsp + 0xa0], rcx
mov ecx, edi
mov esi, r9d
shl ebx, cl
mov rcx, qword [rsp + 0xa0]
mov dword [rsp + 0xa8], edx
mov qword [rsp + 0xb0], r8
call sym.bn_wexpand
test rax, rax
je 0x6aa350
cmp edi, 3
jg 0x6aa198
mov edx, dword [rsp + 0xa8]
test edx, edx
jle 0x6aa328
mov rax, qword [rsp + 0xa0]
movsxd r11, ebx
mov rbp, qword [rsp + 0xb0]
shl r11, 3
mov r10, qword [rax]
mov eax, dword [rsp + 0xa8]
lea r9, [r10 + 8]
sub eax, 1
lea rdi, [r9 + rax*8]
nop word cs:[rax + rax]
mov rcx, rbp
xor r8d, r8d
xor edx, edx
nop dword [rax + rax]
mov r13d, edx
mov r12, qword [rcx]
add edx, 1
add rcx, 8
xor r13d, esi
lea eax, [r13 - 1]
not r13d
and eax, r13d
shr eax, 0x1f
neg rax
and rax, r12
or r8, rax
cmp ebx, edx
jne 0x6aa150
mov qword [r10], r8
add rbp, r11
mov r10, r9
cmp rdi, r9
je 0x6aa328
add r9, 8
jmp 0x6aa140
lea ecx, [rdi - 2]
shl ebp, cl
lea eax, [rbp - 1]
mov dword [rsp + 0x28], ebp
mov edx, ebp
and eax, esi
sar esi, cl
mov r12d, esi
mov r9d, esi
mov dword [rsp + 0x2c], eax
lea eax, [rsi - 1]
not r12d
mov ebp, r9d
xor esi, 1
mov edi, r9d
and r12d, eax
mov eax, r9d
sub esi, 1
xor ebp, 3
xor eax, 0xfffffffe
sub ebp, 1
xor edi, 2
shr r12d, 0x1f
and esi, eax
mov eax, r9d
xor r9d, 0xfffffffc
sub edi, 1
xor eax, 0xfffffffd
and r9d, ebp
shr esi, 0x1f
neg r12
and edi, eax
shr r9d, 0x1f
mov eax, dword [rsp + 0xa8]
neg rsi
shr edi, 0x1f
mov ebp, r9d
neg rdi
neg rbp
test eax, eax
jle 0x6aa328
movsxd rbx, ebx
movsxd r14, edx
lea rax, [rbx*8]
shl r14, 3
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xa0]
mov rbx, qword [rax]
mov eax, dword [rsp + 0xa8]
mov qword [rsp + 0x30], rbx
sub eax, 1
add rbx, 8
lea rax, [rbx + rax*8]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x48], rax
mov eax, 2
shl eax, cl
movsxd r13, eax
mov eax, 3
shl eax, cl
shl r13, 3
movsxd r15, eax
shl r15, 3
nop word [rax + rax]
mov rdx, qword [rsp + 0xb0]
xor ebx, ebx
xor r9d, r9d
nop dword [rax]
lea rcx, [r14 + rdx]
mov rax, qword [rdx]
lea r8, [r15 + rdx]
mov r11, qword [rcx]
lea rcx, [r13 + rdx]
add rdx, 8
mov rcx, qword [rcx]
mov r10, qword [r8]
and rax, r12
mov r8d, dword [rsp + 0x2c]
and r11, rsi
and rcx, rdi
and r10, rbp
xor r8d, r9d
or rcx, r11
add r9d, 1
or rax, rcx
mov ecx, r8d
sub r8d, 1
not ecx
or rax, r10
and r8d, ecx
shr r8d, 0x1f
neg r8
and rax, r8
or rbx, rax
cmp dword [rsp + 0x28], r9d
jne 0x6aa290
mov rax, qword [rsp + 0x30]
mov qword [rax], rbx
mov rax, qword [rsp + 0x40]
add qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x48], rax
je 0x6aa328
add rax, 8
mov qword [rsp + 0x38], rax
jmp 0x6aa280
mov rax, qword [rsp + 0xa0]
mov edi, dword [rsp + 0xa8]
mov dword [rax + 8], edi
mov eax, 1
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
xor eax, eax
jmp 0x6aa33f
Function at 0x6ae910
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xd8
movsxd r14, dword [r9 + 8]
mov rsi, r14
mov rdi, rdx
mov edx, r14d
mov qword [rsp + 0x28], r14
mov rbx, r8
mov qword [rsp + 0x120], rcx
mov rbp, r9
call sym.bn_wexpand
test rax, rax
je 0x6aeb40
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov r12, rax
cmp r14, 0x10
ja 0x6aeae0
mov rax, qword [rbp]
mov r10, qword [rdi]
mov r11, qword [rbx]
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x120]
test r10, r10
cmove r10, r12
test r11, r11
mov rax, qword [rax]
cmove r11, r12
mov qword [rsp + 0x40], rax
test rcx, rcx
je 0x6aeb50
movsxd r9, dword [rdi + 8]
movsxd rax, dword [rdi + 0xc]
xor r8d, r8d
movsxd rdi, dword [rbx + 0xc]
movsxd r15, dword [rbx + 8]
xor ebx, ebx
sub rcx, r9
mov rdx, r9
lea r13, [r12 + r9*8]
mov rbp, r9
mov qword [rsp + 0x48], rdi
lea rdi, [r9 + 1]
mov r14, rcx
neg rdx
sub r9, qword [rsp + 0x48]
xor ecx, ecx
sub rbp, r15
sub rdi, rax
add r9, 1
nop dword [rax]
mov rax, rdx
sar rax, 0x3f
and rax, qword [r10 + rcx*8]
add rax, rbx
mov r15, rax
lea rax, [rbp + rdx]
setb bl
sar rax, 0x3f
and rax, qword [r11 + r8*8]
movzx ebx, bl
add rax, r15
mov qword [r13 + rdx*8], rax
lea rax, [rdi + rdx]
adc rbx, 0
shr rax, 0x3f
add rcx, rax
lea rax, [r9 + rdx]
add rdx, 1
shr rax, 0x3f
add r8, rax
cmp r14, rdx
jne 0x6ae9e8
mov rdi, qword [rsp + 0x40]
mov r8, qword [rsp + 0x38]
mov r9d, esi
mov rdx, r12
mov rcx, rdi
call sym.bn_sub_words
mov rdx, r12
mov rcx, rdi
sub rbx, rax
mov rax, qword [rsp + 0x28]
lea r9, [r12 + rax*8]
nop dword [rax]
mov r8, qword [rcx]
mov rax, qword [rdx]
add rdx, 8
add rcx, 8
xor rax, r8
and rax, rbx
xor rax, r8
mov qword [rcx - 8], rax
mov qword [rdx - 8], 0
cmp r9, rdx
jne 0x6aea68
mov rax, qword [rsp + 0x120]
mov r13d, 1
mov dword [rax + 8], esi
mov dword [rax + 0x10], 0
cmp r12, qword [rsp + 0x30]
je 0x6aeac4
mov r8d, 0x5e
lea rdx, str..._openssl_3.1.1_crypto_bn_bn_mod.c
mov rcx, r12
call sym.CRYPTO_free
mov eax, r13d
add rsp, 0xd8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rsp + 0x28]
mov r8d, 0x3c
lea rdx, str..._openssl_3.1.1_crypto_bn_bn_mod.c
lea rcx, [rax*8]
call sym.CRYPTO_malloc
mov r12, rax
test rax, rax
jne 0x6ae968
call sym.ERR_new
lea r8, str.bn_mod_add_fixed_top
mov edx, 0x3e
xor r13d, r13d
lea rcx, str..._openssl_3.1.1_crypto_bn_bn_mod.c
call sym.ERR_set_debug
xor r8d, r8d
mov edx, 0xc0100
mov ecx, 3
call sym.ERR_set_error
jmp 0x6aeac4
xor r13d, r13d
jmp 0x6aeac4
mov r8, qword [rsp + 0x38]
mov rcx, rax
xor r9d, r9d
mov rdx, r12
call sym.bn_sub_words
jmp 0x6aea90
Function at 0x6b7690
Capabilities:
Query environment variable

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rbx, rcx
mov rsi, rdx
mov r12, r8
test r8, r8
je 0x6b7739
test rcx, rcx
je 0x6b7760
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x6b7739
lea r13, [rsp + 0x20]
test rdx, rdx
je 0x6b771b
movq xmm0, rdx
movq xmm1, r8
lea r13, [rsp + 0x20]
punpcklqdq xmm0, xmm1
mov rdx, r13
movaps xmmword [rsp + 0x20], xmm0
call sym.OPENSSL_LH_retrieve
test rax, rax
je 0x6b7700
mov rax, qword [rax + 0x10]
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret
mov ecx, 4
lea rdi, [0x007dd148]
repe cmpsb byte [rsi], byte [rdi]
seta al
sbb al, 0
test al, al
je 0x6b7750
mov rcx, qword [rbx + 0x10]
lea rax, [0x007dd14c]
mov rdx, r13
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rax
call sym.OPENSSL_LH_retrieve
test rax, rax
jne 0x6b76ee
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret
mov rcx, r12
call sym.ossl_safe_getenv
test rax, rax
jne 0x6b76f2
jmp 0x6b7717
mov rcx, r8
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp sym.ossl_safe_getenv

Function at 0x6ec830
Capabilities:
Encode data using base64

Disassembly:
push rbx
lea r10, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov rax, rcx
mov rcx, rdx
test rax, rax
je 0x6ec852
test byte [rax + 0x5c], 2
lea rax, str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz._
cmovne r10, rax
xor r11d, r11d
test r9d, r9d
jg 0x6ec8b1
jmp 0x6ec8f3
movzx eax, byte [r8 + 1]
add r8, 3
shl eax, 8
or eax, edx
movzx edx, byte [r8 - 1]
mov ebx, eax
shr ebx, 0x12
or edx, eax
shr eax, 0xc
movzx ebx, byte [r10 + rbx]
and eax, 0x3f
mov byte [rcx - 4], bl
movzx eax, byte [r10 + rax]
mov byte [rcx - 3], al
mov eax, edx
and edx, 0x3f
shr eax, 6
and eax, 0x3f
movzx eax, byte [r10 + rax]
mov byte [rcx - 2], al
movzx eax, byte [r10 + rdx]
mov byte [rcx - 1], al
sub r9d, 3
je 0x6ec8f3
movzx eax, byte [r8]
mov rbx, rcx
add r11d, 4
add rcx, 4
shl eax, 0x10
mov edx, eax
cmp r9d, 2
jg 0x6ec860
je 0x6ec900
shr eax, 0x12
movzx eax, byte [r10 + rax]
mov byte [rbx], al
mov eax, edx
shr eax, 0xc
and eax, 0x30
movzx eax, byte [r10 + rax]
mov byte [rbx + 1], al
mov eax, 0x3d
mov byte [rbx + 2], al
mov byte [rbx + 3], 0x3d
mov eax, r11d
mov byte [rcx], 0
pop rbx
ret
movzx r8d, byte [r8 + 1]
shl r8d, 8
or r8d, eax
shr eax, 0x12
movzx eax, byte [r10 + rax]
mov byte [rbx], al
mov eax, r8d
shr r8d, 6
shr eax, 0xc
and r8d, 0x3c
and eax, 0x3f
movzx eax, byte [r10 + rax]
mov byte [rbx + 1], al
movzx eax, byte [r10 + r8]
jmp 0x6ec8ec

Function at 0x6ece30
Capabilities:
Encode data using base64

Disassembly:
mov r9d, r8d
mov r8, rdx
mov rdx, rcx
xor ecx, ecx
jmp sym.evp_encodeblock_int
Function at 0x6f8e8d
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rdi
mov qword [rsp + 0x10], rsi
mov rax, rsp
mov rdi, rcx
mov rsi, rdx
mov rdx, r8

Function at 0x6fa0cd
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rdi
mov qword [rsp + 0x10], rsi
mov rax, rsp
mov rdi, rcx
mov rsi, rdx
mov rdx, r8

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

Disassembly:
push r14
push r13
push r12
push rbx
sub rsp, 0x28
mov r14, rdx
mov rdx, qword [rcx + 0x40]
mov r13, rcx
mov ebx, r8d
cmp dword [rdx], 5
je 0x711339
call sym.conn_state
mov r12d, eax
test eax, eax
jle 0x711369
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
movsxd rcx, dword [r13 + 0x38]
xor r9d, r9d
mov rdx, r14
mov r8d, ebx
call qword [sym.imp.WS2_32.dll_send]
mov edx, 0xf
mov rcx, r13
mov r12d, eax
call sym.BIO_clear_flags
test r12d, r12d
jle 0x711380
mov eax, r12d
add rsp, 0x28
pop rbx
pop r12
pop r13
pop r14
ret
mov ecx, r12d
call sym.BIO_sock_should_retry
test eax, eax
je 0x711369
mov edx, 0xa
mov rcx, r13
call sym.BIO_set_flags
jmp 0x711369

Function at 0x711840
Capabilities:
Receive data
Receive data on socket

Disassembly:
push r14
push r13
push r12
push rbx
sub rsp, 0x28
xor r12d, r12d
mov r14, rdx
mov rdx, qword [rcx + 0x40]
mov r13, rcx
mov ebx, r8d
cmp dword [rdx], 5
jne 0x7118a8
test r14, r14
je 0x711895
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
movsxd rcx, dword [r13 + 0x38]
xor r9d, r9d
mov rdx, r14
mov r8d, ebx
call qword [sym.imp.WS2_32.dll_recv]
mov edx, 0xf
mov rcx, r13
mov r12d, eax
call sym.BIO_clear_flags
test r12d, r12d
jle 0x7118c8
mov eax, r12d
add rsp, 0x28
pop rbx
pop r12
pop r13
pop r14
ret
call sym.conn_state
mov r12d, eax
test eax, eax
jg 0x711860
mov eax, r12d
add rsp, 0x28
pop rbx
pop r12
pop r13
pop r14
ret
mov ecx, r12d
call sym.BIO_sock_should_retry
test eax, eax
jne 0x7118e8
test r12d, r12d
jne 0x711895
or dword [r13 + 0x30], 0x800
jmp 0x711895
mov edx, 9
mov rcx, r13
call sym.BIO_set_flags
jmp 0x711895

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

Disassembly:
push r14
push r13
push r12
push rbx
sub rsp, 0x28
cmp byte [rdx], 0
mov r13, rcx
mov r14, rdx
je 0x711b88
mov rax, rdx
xor r8d, r8d
jmp 0x711af5
cmp r8d, 0x80000000
je 0x711b88
add rax, 1
add r8d, 1
cmp byte [rax], 0
jne 0x711ae8
mov ebx, r8d
and ebx, 0x7fffffff
mov rdx, qword [r13 + 0x40]
cmp dword [rdx], 5
je 0x711b23
mov rcx, r13
call sym.conn_state
mov r12d, eax
test eax, eax
jle 0x711b53
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
movsxd rcx, dword [r13 + 0x38]
xor r9d, r9d
mov rdx, r14
mov r8d, ebx
call qword [sym.imp.WS2_32.dll_send]
mov edx, 0xf
mov rcx, r13
mov r12d, eax
call sym.BIO_clear_flags
test r12d, r12d
jle 0x711b68
mov eax, r12d
add rsp, 0x28
pop rbx
pop r12
pop r13
pop r14
ret
mov ecx, r12d
call sym.BIO_sock_should_retry
test eax, eax
je 0x711b53
mov edx, 0xa
mov rcx, r13
call sym.BIO_set_flags
jmp 0x711b53
xor ebx, ebx
jmp 0x711b0b
Function at 0x711cb0
Capabilities:
Encode data using xor

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov eax, dword [r8 + 8]
mov rbx, rdx
mov edx, dword [rdx + 8]
mov r12, rcx
mov rsi, r8
cmp edx, eax
jge 0x711cd7
mov edx, eax
mov rax, rbx
mov rbx, r8
mov rsi, rax
mov rcx, r12
call sym.bn_wexpand
test rax, rax
je 0x711e18
mov eax, dword [rsi + 8]
test eax, eax
jle 0x711e50
mov rcx, qword [rbx]
mov r8, qword [r12]
mov r9, qword [rsi]
lea rdx, [rcx + 8]
cmp r8, rdx
lea rdx, [r9 + 8]
setne r10b
cmp r8, rdx
setne dl
test r10b, dl
je 0x711e28
lea edx, [rax - 1]
cmp edx, 2
jbe 0x711e28
mov r10d, eax
xor edx, edx
shr r10d, 1
shl r10, 4
nop dword [rax + rax]
movdqu xmm0, xmmword [rcx + rdx]
movdqu xmm1, xmmword [r9 + rdx]
pxor xmm0, xmm1
movups xmmword [r8 + rdx], xmm0
add rdx, 0x10
cmp rdx, r10
jne 0x711d38
mov edx, eax
and edx, 0xfffffffe
test al, 1
je 0x711d6a
mov rcx, qword [rcx + rdx*8]
xor rcx, qword [r9 + rdx*8]
mov qword [r8 + rdx*8], rcx
mov r10d, dword [rbx + 8]
cmp eax, r10d
jge 0x711de0
mov rcx, qword [rbx]
mov r11, qword [r12]
movsxd rdx, eax
lea r8, [rdx*8]
lea rbx, [r11 + r8]
lea r9, [rcx + r8 + 8]
cmp rbx, r9
je 0x711e00
lea r9d, [r10 - 1]
sub r9d, eax
cmp r9d, 3
jbe 0x711e00
mov esi, r10d
add r8, rcx
xor edx, edx
sub esi, eax
mov r9d, esi
shr r9d, 1
shl r9, 4
nop dword [rax]
movdqu xmm2, xmmword [r8 + rdx]
movups xmmword [rbx + rdx], xmm2
add rdx, 0x10
cmp rdx, r9
jne 0x711db8
mov edx, esi
and edx, 0xfffffffe
add eax, edx
cmp esi, edx
je 0x711de0
cdqe
mov rdx, qword [rcx + rax*8]
mov qword [r11 + rax*8], rdx
mov dword [r12 + 8], r10d
mov rcx, r12
call sym.bn_correct_top
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
mov rax, qword [rcx + rdx*8]
mov qword [r11 + rdx*8], rax
add rdx, 1
cmp r10d, edx
jg 0x711e00
jmp 0x711de0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
mov r11d, eax
xor edx, edx
nop dword [rax]
mov r10, qword [rcx + rdx*8]
xor r10, qword [r9 + rdx*8]
mov qword [r8 + rdx*8], r10
add rdx, 1
cmp r11, rdx
jne 0x711e30
jmp 0x711d6a
xor eax, eax
jmp 0x711d6a
Function at 0x723100
Capabilities:
Get common file path

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x278
lea rax, str.getaddrinfo
mov qword [rsp + 0x20], rax
mov rax, qword [sym.WspiapiLegacyGetAddrInfo]
movzx ebx, cx
mov qword [rsp + 0x28], rax
lea rax, str.getnameinfo
mov qword [rsp + 0x30], rax
mov rax, qword [sym.WspiapiLegacyGetNameInfo]
mov qword [rsp + 0x38], rax
lea rax, str.freeaddrinfo
mov qword [rsp + 0x40], rax
mov rax, qword [sym.WspiapiLegacyFreeAddrInfo]
mov qword [rsp + 0x48], rax
mov eax, dword [0x0082ab70]
test eax, eax
je 0x723190
lea rax, str.getaddrinfo
movsxd rcx, ebx
shl rcx, 4
mov rax, qword [rax + rcx + 8]
add rsp, 0x278
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rsi, [rsp + 0x50]
mov edx, 0x104
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x7231b3
mov dword [0x0082ab70], 1
jmp 0x723164
lea rdi, [rsp + 0x160]
mov rdx, rsi
mov rcx, rdi
call sym.strcpy
mov rdx, rdi
mov ecx, dword [rdx]
add rdx, 4
lea eax, [rcx - 0x1010101]
not ecx
and eax, ecx
and eax, 0x80808080
je 0x7231c9
mov ecx, eax
mov r13, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
shr ecx, 0x10
test eax, 0x8080
cmove eax, ecx
lea rcx, [rdx + 2]
cmove rdx, rcx
mov ecx, eax
add cl, al
mov rcx, rdi
movabs rax, 0x32335f3273775c
sbb rdx, 3
mov qword [rdx], rax
call r13
test rax, rax
mov rbp, rax
je 0x723299
lea rdx, str.getaddrinfo
mov rcx, rax
mov r12, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call r12
test rax, rax
je 0x723290
lea rsi, [rsp + 0x20]
lea rdi, [rsi + 0x30]
mov rdx, qword [rsi]
mov rcx, rbp
call r12
test rax, rax
mov qword [rsi + 8], rax
je 0x723318
add rsi, 0x10
cmp rsi, rdi
jne 0x723241
mov rax, qword [rsp + 0x28]
mov qword [sym.WspiapiLegacyGetAddrInfo], rax
mov rax, qword [rsp + 0x38]
mov qword [sym.WspiapiLegacyGetNameInfo], rax
mov rax, qword [rsp + 0x48]
mov qword [sym.WspiapiLegacyFreeAddrInfo], rax
jmp 0x7231a7
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rdx, rsi
mov rcx, rdi
call sym.strcpy
mov rdx, rdi
mov ecx, dword [rdx]
add rdx, 4
lea eax, [rcx - 0x1010101]
not ecx
and eax, ecx
and eax, 0x80808080
je 0x7232a7
mov ecx, eax
shr ecx, 0x10
test eax, 0x8080
cmove eax, ecx
lea rcx, [rdx + 2]
mov esi, eax
cmove rdx, rcx
add sil, al
mov rcx, rdi
movabs rax, 0x3670696873775c
sbb rdx, 3
mov qword [rdx], rax
call r13
test rax, rax
mov rbp, rax
je 0x7231a7
lea rdx, str.getaddrinfo
mov rcx, rax
mov r12, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call r12
test rax, rax
jne 0x723238
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x7231a7
Function at 0x723c70
Capabilities:
Resolve dns

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r13, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
mov edi, edx
mov ebp, r8d
mov esi, r9d
mov qword [rbx], 0
mov byte [r13], 0
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
mov r12, rax
je 0x723d40
cmp dword [rax + 0x10], 0x40002
jne 0x723d10
mov r14, qword [rax + 0x18]
mov rax, qword [r14]
test rax, rax
je 0x723d10
movzx esi, si
jmp 0x723ce0
lea rbx, [rax + 0x28]
add r14, 8
mov rax, qword [r14]
test rax, rax
je 0x723d10
mov r9d, dword [rax]
mov r8d, esi
mov edx, ebp
mov ecx, edi
call sym.WspiapiNewAddrInfo
test rax, rax
mov qword [rbx], rax
jne 0x723cd0
mov eax, 8
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rdx, qword [r12]
mov r8d, 0x400
mov rcx, r13
call sym.strncpy
xor eax, eax
mov byte [r13 + 0x400], 0
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea edx, [rax - 0x2afa]
cmp edx, 3
mov edx, 0x2af9
cmovae eax, edx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x7242b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x0082b164]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x724438
mov rax, qword [0x0082b168]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x7242fc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x724385
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x7242e0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x72446d
mov rax, qword [0x0082b168]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x0082b168]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x724450
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x72437e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x7243e0
add dword [0x0082b164], 1
cmp edi, 8
jae 0x7243b3
test dil, 4
jne 0x724424
test edi, edi
je 0x7243a8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x72443f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x7243a8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x7243cc
jmp 0x7243a8
add rsi, qword [0x0082b168]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x72437e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x7243a8
xor esi, esi
jmp 0x724307
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x7243a8
mov rax, qword [0x0082b168]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x724bc0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0082b440]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0082b420]
test rbx, rbx
je 0x724c14
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x724c0b
test rsi, rsi
je 0x724c0b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x724bf0
lea rcx, [0x0082b440]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x724e50
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x724e60
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x724e70
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x724eb1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x724ea8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x724eb3
add rax, 0x28
cmp rax, r9
jne 0x724e94
xor eax, eax
ret

Function at 0x724f50
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x007e9ca0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x724fbd
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x724fbd
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x724fbd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x724fb4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x724fbf
add rax, 0x28
cmp rax, r9
jne 0x724fa0
xor eax, eax
add rsp, 0x28
ret

Function at 0x7250c0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x007e9ca0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x7250e0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x7250d8
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x72513d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x725134
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x725144
add rax, 0x28
cmp rax, r9
jne 0x725120
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x725160
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x007e9ca0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x7251ce
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x7251ce
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x7251ce
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x7251ce
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x7251c5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x7251d5
add rcx, 0x28
cmp rcx, rax
jne 0x7251b0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x7251e8
jmp 0x7251ce
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x7251f6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x7251ce
test r9d, r9d
jg 0x7251e0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x7259c0
Capabilities:
Create process on windows
Delete file
Get common file path
Write and execute a file
Write file on windows

Disassembly:
sub rsp, 0x28
call sym.__main
mov rax, qword [0x007e9d10]
xor edx, edx
mov r9d, dword [rax]
mov rax, qword [0x007e9d00]
mov r8, qword [rax]
mov rax, qword [0x007e9cf0]
mov rcx, qword [rax]
add rsp, 0x28
jmp sym.WinMain

Function at 0x725a00
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop