joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800248e0
Capabilities:
Decode data using base64 via winapi
Encrypt data using dpapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x180240300]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rsi, rdx
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
xor ebp, ebp
mov edi, ebp
mov qword [rsp + 0x68], rbp
mov dword [rsp + 0x50], ebp
mov rcx, rdx
cmp qword [rdx + 0x18], 0xf
jbe 0x18002492c
mov rcx, qword [rdx]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor edx, edx
mov r8d, 1
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
je 0x180024a01
mov edx, dword [rsp + 0x50]
test rdx, rdx
je 0x180024971
lea rcx, [rsp + 0x58]
call fcn.18004b580
mov rdi, qword [rsp + 0x68]
cmp qword [rsi + 0x18], 0xf
jbe 0x18002497b
mov rsi, qword [rsi]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov rbx, qword [rsp + 0x58]
mov r9, rbx
xor edx, edx
mov r8d, 1
mov rcx, rsi
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
je 0x180024a06
lea rax, [rbx + 5]
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x50]
add eax, 0xfffffffb
mov dword [rsp + 0x40], eax
mov ecx, reloc.WS2_32.dll_recv
call fcn.18017ba14
mov rsi, rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rbp
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
jne 0x180024a09
mov edx, reloc.WS2_32.dll_recv
mov rcx, rsi
call fcn.18017b9e0
jmp 0x180024a06
mov rbx, qword [rsp + 0x58]
mov rsi, rbp
test rbx, rbx
je 0x180024a3d
sub rdi, rbx
mov rax, rbx
cmp rdi, 0x1000
jb 0x180024a32
add rdi, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180024a66
mov rdx, rdi
mov rcx, rbx
call fcn.18017b9e0
mov rax, rsi
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.18017b580
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.1801b24f8
int3
Function at 0x18002b780
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x30
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x18002b7a4
xor eax, eax
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
je 0x18002b832
mov rdi, r15
mov qword [rsp + 0x68], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x18002b800
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x18002b800
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.1801d8850
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x18002b81d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + gethostname]
cmp eax, 0xffffffff
je 0x18002b825
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x18002b7c1
mov rbp, qword [rsp + 0x68]
sub r15, rdi
jmp 0x18002b910
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x18002b849
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x18002b84b
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x18002b87d
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.1801d8850
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x18002b90d
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x18002b8b8
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rsi, 0xfff
jbe 0x18002b8ee
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.1801bd464
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x18002b90d
cmp rsi, rax
ja 0x18002b8c1
test rsi, rsi
je 0x18002b90d
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.1801bd464
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x28]
mov rax, r15
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
Function at 0x18002d790
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x200
mov rax, qword [0x180240300]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
movzx ebx, dl
mov rdi, rcx
mov eax, 1
lock xadd dword [0x180251c78], eax
inc eax
cmp eax, 1
jne 0x18002d7df
mov ecx, 0x202
lea rdx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [0x180251c7c], eax
test bl, bl
je 0x18002d883
xor ebx, ebx
lock xadd dword [0x180251c7c], ebx
test ebx, ebx
je 0x18002d883
movabs rcx, 0x4d54ee85da812030
mov qword [rsp + 0x210], rsi
add rcx, qword [0x180244b60]
lea rsi, [0x180244b58]
mov dword [rsp + 0x3c], 0
cmp rcx, 1
jbe 0x18002d838
mov rax, qword [0x180244b58]
mov edx, ebx
mov rcx, rsi
call qword [rax + 0x30]
jmp 0x18002d83a
mov al, 1
lea rcx, str.C:UsersAdminDownloads_boost_1_85_0__1__boost_1_85_0_boost_1_85_0_boost_asiodetailimplwinsock_init.ipp
movzx eax, al
add rax, 2
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x40], rsi
lea rcx, str.void___cdecl_boost::asio::detail::winsock_init_base::throw_on_error_struct_boost::asio::detail::winsock_init_base::data__
mov rsi, qword [rsp + 0x210]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], 0x48
mov dword [rsp + 0x34], 0x1a
test al, 1
jne 0x18002d8a7
mov rax, rdi
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.18017b580
mov rbx, qword [rsp + 0x218]
add rsp, 0x200
pop rdi
ret
lea r8, [rsp + 0x20]
lea rdx, str.winsock
lea rcx, [rsp + 0x38]
call fcn.180011eb0
int3
Function at 0x18005ef10
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
cmp byte [rcx + 0x19], 0
mov r12, r9
mov rdi, r8
mov r10, rdx
mov rbp, rcx
jge 0x18005ef80
mov rax, qword [rcx + 0x80]
xor ecx, ecx
mov rdx, qword [rax + 0x10]
mov dword [rsp + 0x20], edx
test r8, r8
je 0x18005ef6e
nop word [rax + rax]
mov rax, rcx
and eax, 3
movzx eax, byte [rsp + rax + 0x20]
xor byte [r10 + rcx], al
inc rcx
cmp rcx, rdi
jb 0x18005ef50
mov rax, qword [rbp + 0x80]
mov rcx, rdi
and ecx, 3
je 0x18005ef7c
shl cl, 3
ror rdx, cl
mov qword [rax + 0x10], rdx
mov rax, qword [rbp + 0x80]
mov rdx, r10
mov rbx, qword [rax]
add rbx, 0x50
mov r15, qword [rbx + 0x10]
lea r14, [rbx + 0x10]
mov rcx, rbx
call fcn.180004310
mov r10, qword [rbp + 0x80]
mov rax, qword [r10]
cmp dword [rax + 0x70], 1
jne 0x18005f03a
cmp qword [rbx + 0x18], 0xf
jbe 0x18005efc7
mov rdx, qword [rbx]
mov rbx, rdx
add rdx, qword [r14]
jmp 0x18005efcd
mov rdx, qword [r14]
add rdx, rbx
lea rax, [r15 + rbx]
cmp rax, rdx
je 0x18005f03a
lea rbx, [0x1801f54a0]
nop dword [rax]
cmp dword [r10 + 0x18], 0
movzx r8d, byte [rax]
mov r9d, r8d
movzx r11d, byte [r8 + rbx]
je 0x18005f003
mov ecx, dword [r10 + 0x1c]
and r9d, 0x3f
shl ecx, 6
or r9d, ecx
jmp 0x18005f012
mov r8d, 0xff
mov ecx, r11d
sar r8d, cl
and r9d, r8d
mov dword [r10 + 0x1c], r9d
mov ecx, dword [r10 + 0x18]
add ecx, 0x10
shl ecx, 4
add ecx, r11d
movzx r8d, byte [rcx + rbx]
mov dword [r10 + 0x18], r8d
cmp r8d, 1
je 0x18005f050
inc rax
cmp rax, rdx
jne 0x18005efe0
sub qword [rbp + 0x30], rdi
mov rax, rdi
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
call fcn.18001c0a0
mov qword [rsp + 0x30], rax
xor eax, eax
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [r12], xmm0
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180080750
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
sub rsp, 0x20
mov rbp, rdx
mov ebx, ecx
call fcn.1801456f0
test eax, eax
jne 0x180080955
cmp byte [reloc.WS2_32.dll_accept], al
mov qword [rsp + 0x38], rdi
jne 0x18008077d
xor edi, edi
jmp 0x180080799
mov ecx, 5
call qword [0x180241320]
mov rdi, rax
test rax, rax
je 0x180080799
mov rcx, rax
call qword [0x180241330]
test ebx, ebx
jle 0x180080938
test rbp, rbp
je 0x180080938
cmp dword [0x180251aa0], 0
mov qword [rsp + 0x30], rsi
jne 0x1800808bf
call fcn.1801456f0
test eax, eax
je 0x1800807d5
movups xmm0, xmmword [str.expand_32_byte_k]
movaps xmmword [0x180251aa0], xmm0
jmp 0x180080839
cmp byte [reloc.WS2_32.dll_accept], 0
jne 0x1800807e7
mov rsi, qword [0x1802517e8]
jmp 0x180080826
mov ecx, 2
mov qword [rsp + 0x40], r14
call qword [0x180241320]
mov r14, rax
test rax, rax
je 0x18008081a
mov rcx, rax
call qword [0x180241330]
mov rsi, qword [0x1802517e8]
mov rcx, r14
call qword [0x180241340]
jmp 0x180080821
mov rsi, qword [0x1802517e8]
mov r14, qword [rsp + 0x40]
movups xmm0, xmmword [str.expand_32_byte_k]
movaps xmmword [0x180251aa0], xmm0
test rsi, rsi
jne 0x18008085b
xorps xmm0, xmm0
xor eax, eax
movups xmmword [0x180251ab0], xmm0
mov qword [0x180251ad0], rax
movups xmmword [0x180251ac0], xmm0
mov dword [0x180251ad8], eax
jmp 0x18008089f
mov eax, dword [0x180241460]
test eax, eax
je 0x18008088d
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [0x180251ab0], xmm0
mov dword [0x180251ab0], eax
movups xmmword [0x180251ac0], xmm0
mov qword [0x180251ad0], rcx
mov dword [0x180251ad8], ecx
jmp 0x18008089f
lea r8, [0x180251ab0]
mov edx, 0x2c
mov rcx, rsi
call qword [rsi + 0x68]
mov eax, dword [0x180251ad0]
xor cl, cl
mov byte [0x180251b20], cl
mov dword [0x180251adc], eax
mov dword [0x180251ad0], 0
jmp 0x1800808c6
movzx ecx, byte [0x180251b20]
movzx eax, cl
lea rsi, [0x180251ae0]
cmp ebx, eax
jle 0x180080915
test cl, cl
je 0x1800808f3
movzx r8d, cl
mov rdx, rsi
mov rcx, rbp
call fcn.1801d8850
movzx ecx, byte [0x180251b20]
sub ebx, ecx
add rbp, rcx
inc dword [0x180251ad0]
lea rdx, [0x180251aa0]
mov rcx, rsi
call fcn.1800803a0
mov cl, 0x40
mov byte [0x180251b20], cl
cmp ebx, 0x40
jg 0x1800808d4
movzx eax, cl
mov rcx, rbp
sub eax, ebx
movsxd r8, ebx
movsxd rdx, eax
add rdx, rsi
call fcn.1801d8850
sub byte [0x180251b20], bl
mov rsi, qword [rsp + 0x30]
jmp 0x180080942
mov dword [0x180251aa0], 0
test rdi, rdi
je 0x180080950
mov rcx, rdi
call qword [0x180241340]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
Function at 0x18009c640
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp byte [rcx + 0x11], 0
mov r9, rcx
jne 0x18009c697
movzx eax, byte [rcx + 0x10]
test al, al
je 0x18009c697
cmp al, 1
jne 0x18009c659
test edx, edx
jne 0x18009c697
mov r10, qword [rcx + 8]
test r8, r8
je 0x18009c672
mov rax, qword [r10 + 0x18]
mov rcx, qword [rax + 0x50]
mov eax, dword [rcx + 0x28]
bswap eax
mov dword [r8], eax
test edx, edx
je 0x18009c694
mov rax, qword [r9]
mov rcx, qword [r10]
mov edx, dword [rax + 0x2f0]
cmp edx, dword [rcx + 0x80]
jle 0x18009c694
cmp byte [rcx + 0xa], 0
jne fcn.180093840
xor eax, eax
ret
jmp fcn.18009c280
Function at 0x1800b0e50
Capabilities:
Encode data using xor

Disassembly:
mov rax, qword [rcx + 8]
test rax, rax
je 0x1800b0e7f
lea r8d, [rdx + 1]
nop dword [rax]
mov ecx, dword [rax + 0xc8]
mov edx, r8d
xor edx, ecx
and edx, 3
xor edx, ecx
mov dword [rax + 0xc8], edx
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1800b0e60
ret
Function at 0x1800f4360
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rsi
push rdi
push r12
sub rsp, 0x38
mov rsi, qword [rcx + 0xa8]
mov rbx, rcx
mov rdi, qword [rcx + 0x10]
mov r12, qword [rcx]
test rsi, rsi
je 0x1800f4554
mov qword [rsp + 0x68], r13
xor r13d, r13d
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x60], rbp
nop dword [rax + rax]
movsxd r14, dword [rsi + 0x10]
movzx eax, byte [rbx + 0x1f]
mov r15d, dword [rsi + 0x14]
shl r14, 5
add r14, qword [r12 + 0x20]
test al, al
jne 0x1800f43c1
inc dword [rbx + 0x38]
mov ebp, dword [rbx + 0x38]
jmp 0x1800f43d0
dec al
movzx eax, al
mov byte [rbx + 0x1f], al
mov ebp, dword [rbx + rax*4 + 0xe8]
movsxd rcx, dword [rdi + 0x90]
lea r8d, [r15 + 2]
lea edx, [rcx + 7]
cmp dword [rdi + 0x94], ecx
jg 0x1800f43fd
mov r9d, edx
mov dword [rsp + 0x20], r15d
mov edx, gethostname
mov rcx, rdi
call fcn.1800ab710
jmp 0x1800f442b
lea eax, [rcx + 1]
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8], gethostname
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r15d
mov qword [rax + rcx*8 + 0x10], r13
mov r9, qword [r14 + 0x18]
xor edx, edx
mov r8d, dword [rsi + 0x10]
mov rcx, rbx
mov dword [rsp + 0x20], WSACleanup
mov r9, qword [r9 + 0x68]
call fcn.1800f3610
mov eax, dword [rdi + 0x90]
add eax, 5
cmp eax, dword [rdi + 0x94]
jle 0x1800f446a
mov rcx, rdi
call fcn.1800ab5d0
test eax, eax
jne 0x1800f4540
movsxd rax, dword [rdi + 0x90]
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8 + 8], 2
mov byte [rax + rcx*8], 0x33
mov dword [rax + rcx*8 + 4], r13d
lea rax, [rax + rcx*8]
mov ecx, dword [rdi + 0x90]
mov dword [rax + 0xc], r13d
add ecx, 2
mov dword [rax + 8], ecx
mov byte [rax + 1], r13b
mov qword [rax + 0x10], r13
mov word [rax + 2], r13w
mov qword [rax + 0x18], 0x7f
mov qword [rax + 0x20], r13
mov qword [rax + 0x28], r13
mov qword [rax + 0x30], 0x61
mov qword [rax + 0x38], 2
mov qword [rax + 0x40], r13
mov qword [rax + 0x48], 0x80
mov qword [rax + 0x50], r13
mov qword [rax + 0x58], r13
mov qword [rax + 0x60], 0x7a
mov qword [rax + 0x68], r13
mov qword [rax + 0x70], r13
add dword [rdi + 0x90], 5
test rax, rax
je 0x1800f4540
mov dword [rax + 0x3c], ebp
lea edx, [r15 + 1]
mov dword [rax + 4], edx
lea ecx, [r15 - 1]
mov dword [rax + 0x20], edx
mov dword [rax + 0x34], ecx
mov dword [rax + 0x54], edx
mov dword [rax + 0x50], ebp
mov word [rax + 0x4a], 8
test ebp, ebp
je 0x1800f4534
movzx eax, byte [rbx + 0x1f]
cmp al, 8
jae 0x1800f4534
mov dword [rbx + rax*4 + 0xe8], ebp
inc byte [rbx + 0x1f]
mov rsi, qword [rsi]
test rsi, rsi
jne 0x1800f43a0
mov rbp, qword [rsp + 0x60]
mov r13, qword [rsp + 0x68]
mov r14, qword [rsp + 0x70]
mov r15, qword [rsp + 0x30]
add rsp, 0x38
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x180156180
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
sub rsp, 0x30
cmp byte [rcx + 0x18], 0xb
mov rbp, rcx
jne 0x1801561bb
mov eax, dword [rcx + 0x1c]
lea rdx, [rcx + 0x38]
mov r9, qword [rcx + 0x28]
dec eax
mov ecx, 0x1e
lea r8, [rax + rax*2]
mov r9, qword [r9 + r8*8 + 0x10]
lea r8, str.__lld_
add rsp, 0x30
pop rbp
jmp fcn.18014c5d0
mov edx, dword [rcx + 0xc]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x48], rsi
add rcx, 0xc0
xor esi, esi
mov qword [rsp + 0x50], rdi
mov dword [rsp + 0x40], esi
call fcn.18014eed0
add eax, dword [rbp + 0xc]
mov r9d, dword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
mov edx, eax
add rdx, qword [rbp + 0xc0]
test r9d, r9d
je 0x18015622f
movzx eax, byte [rdx]
lea r8, [0x1801f6ef0]
test byte [rax + r8], 2
je 0x18015622f
test r9d, r9d
je 0x180156222
movzx ecx, byte [rsi + rdx]
test byte [rcx + r8], 6
je 0x18015622f
inc esi
cmp esi, r9d
jb 0x180156210
lea ecx, [r9 + 2]
lea r8, str.._.s
jmp 0x18015623a
lea ecx, [r9 + 4]
lea r8, str..__.s_
add rbp, 0x38
mov qword [rsp + 0x20], rdx
mov rdx, rbp
call fcn.18014c5d0
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rbp
ret

Function at 0x18015981c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x180159856
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x18015985b
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1801598a4
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x1801598a4
dec r8
sub rdx, 1
jne 0x18015988a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x180171238
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x18015da92
movzx eax, byte [rcx + rdx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x18015da75
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x18015da60

Function at 0x18017ac0c
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x28
call fcn.1801bf06c
mov rcx, qword [rax + 0x28]
test rcx, rcx
je 0x18017ac5e
and dword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
mov r9d, 2
lea edx, [r9 + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx ecx, word [rsp + 0x30]
sub ecx, 0x30
je 0x18017ac5e
sub ecx, 1
je 0x18017ac57
cmp ecx, 1
je 0x18017ac50
xor eax, eax
jmp 0x18017ac63
mov eax, 3
jmp 0x18017ac63
mov eax, 1
jmp 0x18017ac63
mov eax, 2
add rsp, 0x28
ret

Function at 0x18017cfd0
Capabilities:
Generate random numbers via winapi

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [rcx]
lea r8, [rsp + 0x30]
mov edx, 4
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x18017cffa
mov eax, dword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
lea rdx, str.error_while_reading
mov rcx, rbx
call fcn.18017d010
int3
Function at 0x1801850a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov r14, qword [rsp + 0x60]
xor r15d, r15d
mov rax, qword [rsp + 0x68]
mov r13, rdx
mov r10, qword [rsp + 0x78]
mov qword [r14], r8
mov qword [r10], rax
mov rax, qword [r14]
cmp rax, r9
je 0x180185265
mov r12, qword [rsp + 0x70]
lea r8d, [r15 + 1]
mov rsi, qword [r10]
mov r9d, 0x3ff
mov r11d, 0x2400
mov ebx, 0x2800
cmp rsi, r12
je 0x180185265
movzx edx, word [r13]
xor bpl, bpl
movzx ecx, word [rax]
cmp r8w, dx
jae 0x18018513a
lea eax, [r11 + rcx]
cmp ax, r9w
ja 0x180185285
mov eax, edx
sub ecx, 0xdc00
shl eax, 0xa
or eax, ecx
jmp 0x180185150
mov eax, ecx
add cx, bx
cmp cx, r9w
ja 0x180185150
shl eax, 0xa
mov bpl, 1
sub eax, 0x35f0000
cmp eax, 0x80
jae 0x180185163
movzx r9d, al
mov r11d, r15d
mov ebx, r15d
jmp 0x1801851ae
mov r9d, eax
cmp eax, 0x800
jae 0x18018517d
shr r9d, 6
mov r11d, r8d
or r9b, 0xc0
mov ebx, r8d
jmp 0x1801851ae
cmp eax, 0x10000
jae 0x180185197
shr r9d, 0xc
mov r11d, 2
or r9b, 0xe0
mov ebx, r11d
jmp 0x1801851ae
shr r9d, 0x12
mov r11d, 3
movzx ebx, bpl
or r9b, 0xf0
xor ebx, 1
add ebx, ebx
lea r8d, [rbx + 1]
mov rdi, r12
sub rdi, rsi
mov ecx, r8d
cmp rdi, rcx
jl 0x180185265
test dx, dx
jne 0x1801851f9
mov rcx, qword [rsp + 0x40]
test byte [rcx + 0x14], 2
je 0x1801851f9
lea edx, [r8 + 3]
cmp rdi, rdx
jl 0x180185265
mov byte [rsi], 0xef
inc qword [r10]
mov rcx, qword [r10]
mov byte [rcx], 0xbb
inc qword [r10]
mov rcx, qword [r10]
mov byte [rcx], 0xbf
inc qword [r10]
add qword [r14], 2
test bpl, bpl
jne 0x180185208
cmp r11d, 3
jae 0x180185214
mov rcx, qword [r10]
mov r8d, ebx
mov byte [rcx], r9b
inc qword [r10]
mov r9, qword [r10]
test r8d, r8d
jle 0x180185240
lea ecx, [r11 + r11*2]
add ecx, ecx
sub ecx, 6
mov edx, eax
shr edx, cl
dec r8d
and dl, 0x3f
or dl, 0x80
mov byte [r9], dl
inc qword [r10]
mov r9, qword [r10]
test r8d, r8d
jg 0x180185222
shr eax, 0xa
mov r8d, 1
test bpl, bpl
mov ecx, r8d
cmovne ecx, eax
mov word [r13], cx
mov rax, qword [r14]
cmp rax, qword [rsp + 0x58]
jne 0x1801850ef
mov rax, qword [rsp + 0x50]
cmp rax, qword [r14]
sete r15b
mov eax, r15d
mov rbx, qword [rsp + 0x48]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rbx, qword [rsp + 0x48]
mov eax, 2
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x180193e50
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
cmp eax, 0xffffffff
je 0x180193e6f
mov rax, rbx
add rsp, 0x20
pop rbx
ret
mov r9d, recv
lea r8, str.TLS_capacity_depleted
lea rcx, str.libslog_src_thread_specific.cpp
lea edx, [r9 + 0x1d]
call fcn.180182ed0
int3
Function at 0x18019d1d0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
push r14
push r15
sub rsp, 0x40
mov r14, rdx
mov rbp, rcx
xor r15d, r15d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
mov eax, 1
test edi, edi
cmove edi, eax
mov edx, edi
mov eax, 2
mul rdx
mov rbx, 0xffffffffffffffff
cmovo rax, rbx
mov rcx, rax
call fcn.18017be88
mov rsi, rax
mov qword [rsp + 0x60], rax
mov rdx, rax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x18019d25d
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x18019d25d
lea r8, str.boost::filesystem::current_path
mov rdx, r14
mov ecx, eax
call fcn.18019be50
jmp 0x18019d27a
test r14, r14
je 0x18019d27a
xorps xmm0, xmm0
mov qword [rsp + 0x38], r15
movups xmmword [r14], xmm0
movsd xmm0, qword [rsp + 0x38]
movsd qword [r14 + 0x10], xmm0
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
mov qword [rbp + 0x10], r15
mov qword [rbp + 0x18], r15
nop dword [rax]
inc rbx
cmp word [rsi + rbx*2], 0
jne 0x18019d290
mov r8, rbx
mov rdx, rsi
mov rcx, rbp
call fcn.18003ccc0
nop
mov rcx, rsi
call fcn.18017b9e0
mov rax, rbp
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret

Function at 0x18019d5b0
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
cmp qword [rdx + 0x18], 7
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
jbe 0x18019d5d2
mov rdx, qword [rdx]
cmp qword [rcx + 0x18], 7
jbe 0x18019d5dc
mov rcx, qword [rcx]
mov r8d, 3
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x18019d622
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x18019d622
lea rcx, str.boost::filesystem::rename
mov r9, rbx
mov qword [rsp + 0x20], rcx
mov r8, rsi
mov ecx, eax
mov rdx, rdi
call fcn.18019bc50
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
test rbx, rbx
je 0x18019d641
xorps xmm0, xmm0
mov qword [rsp + 0x40], 0
movups xmmword [rbx], xmm0
movsd xmm0, qword [rsp + 0x40]
movsd qword [rbx + 0x10], xmm0
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret