joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18010ce80
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x180350010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
lea rcx, [rsp + 0x30]
call fcn.18010cfe0
lea rcx, [rsp + 0x30]
call fcn.18010d070
nop
lea rdi, [rbx + 8]
lea rcx, [rsp + 0x30]
call fcn.18010c510
mov r9, rax
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0
lea r8, [0x18010d0b0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbx], rax
test rax, rax
je 0x18010cf15
lea rcx, [rsp + 0x30]
call fcn.18010cff0
nop
lea rcx, [rsp + 0x30]
call fcn.18010d010
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.18012c2e0
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov dword [rdi], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3

Function at 0x1801104f0
Capabilities:
Enumerate process modules

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov rax, qword [0x180350010]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov r14, r8
mov rbx, rdx
xor edi, edi
mov edx, ecx
lea ecx, [rdi + 8]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
mov rdx, rbx
lea rcx, [rbp + 0x1b0]
call fcn.18010f8e0
nop
cmp rsi, 0xffffffffffffffff
je 0x18011069c
xor edx, edx
mov r8d, 0x234
lea rcx, [rsp + 0x54]
call fcn.18012d546
mov dword [rsp + 0x50], 0x238
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Module32First]
test eax, eax
je 0x180110692
lea rbx, [rdi - 1]
nop dword [rax + rax]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rdi
lea rax, [rbp - 0x80]
mov r8, rbx
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1801105a0
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x20]
call fcn.180071bc0
nop
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x190]
call fcn.18010f8e0
nop
lea rcx, [rsp + 0x20]
call fcn.180071b60
lea rdx, [rbp + 0x1b0]
cmp qword [rbp + 0x1c8], 0x10
cmovae rdx, qword [rbp + 0x1b0]
lea rcx, [rbp + 0x190]
cmp qword [rbp + 0x1a8], 0x10
cmovae rcx, qword [rbp + 0x190]
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
jne 0x180110631
lea rcx, [rbp + 0x190]
call fcn.180071b60
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Module32Next]
test eax, eax
je 0x180110692
jmp 0x180110580
test r14, r14
je 0x180110681
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
lea rax, [rbp - 0x80]
nop dword [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x180110650
mov r8, rbx
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x20]
call fcn.180071bc0
lea rdx, [rsp + 0x20]
mov rcx, r14
call fcn.180071a90
lea rcx, [rsp + 0x20]
call fcn.180071b60
mov rdi, qword [rsp + 0x68]
lea rcx, [rbp + 0x190]
call fcn.180071b60
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rbp + 0x1b0]
call fcn.180071b60
mov rax, rdi
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.18012c2e0
add rsp, 0x2e0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x180111250
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rbp
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], bpl
mov dword [rsp + 0x20], 1
lea rsi, [rdx + 0x10]
mov rdx, qword [rsi]
call fcn.1800867c0
lea r15d, [rbp - 6]
cmp qword [rdi + 0x18], 0x10
jb 0x1801112b4
mov r14, qword [rdi]
mov rcx, r14
mov rdi, r14
jmp 0x1801112ba
mov r14, rdi
mov rcx, rdi
mov r13, qword [rsi]
add r13, rcx
cmp rdi, r13
je 0x1801113b1
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
shl ebp, 8
movzx eax, byte [r14]
add ebp, eax
add r15d, 8
js 0x180111356
movsxd r12, ebp
movsxd rdi, r15d
lea ecx, [r15 + 6]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 2
mov esi, edx
imul eax, edx, 0xfffffffa
add r15d, eax
nop dword [rax + rax]
mov rax, r12
mov rcx, rdi
sar rax, cl
and eax, 0x3f
movzx r9d, byte [rax + r8]
mov rax, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rax, rdx
jae 0x18011133d
lea rcx, [rax + 1]
mov qword [rbx + 0x10], rcx
mov rcx, rbx
cmp rdx, 0x10
jb 0x180111332
mov rcx, qword [rbx]
mov byte [rcx + rax], r9b
mov byte [rcx + rax + 1], 0
jmp 0x18011134c
mov rcx, rbx
call fcn.180086e80
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
sub rdi, 6
sub rsi, 1
jne 0x180111300
inc r14
cmp r14, r13
jne 0x1801112d0
cmp r15d, 0xfffffffa
jle 0x1801113b1
lea ecx, [r15 + 8]
shl ebp, 8
movsxd rax, ebp
sar rax, cl
and eax, 0x3f
movzx r9d, byte [rax + r8]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x1801113a9
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x18011139e
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1801113b1
mov rcx, rbx
call fcn.180086e80
mov rcx, qword [rbx + 0x10]
test cl, 3
je 0x1801113f9
nop word [rax + rax]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x1801113e5
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x1801113dd
mov rax, qword [rbx]
mov word [rax + rcx], 0x3d
jmp 0x1801113f0
mov r9b, 0x3d
mov rcx, rbx
call fcn.180086e80
mov rcx, qword [rbx + 0x10]
test cl, 3
jne 0x1801113c0
mov rax, rbx
mov rbx, qword [rsp + 0x80]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180112100
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x180350010]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rcx
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x34], r8d
nop dword [rax + rax]
lea rax, [rsp + 0x30]
xor r9d, r9d
lea ecx, [rdi + 1]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
jns 0x180112170
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x180112140
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.18012c2e0
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret

Function at 0x1801121a0
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x180350010]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rcx
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x34], r8d
nop dword [rax + rax]
lea rax, [rsp + 0x30]
xor r9d, r9d
lea ecx, [rdi + 1]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x40]
xor edx, edx
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
jns 0x18011220f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1801121e0
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.18012c2e0
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret
Function at 0x18011c880
Capabilities:
Convert ip address from string

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0x58
mov rax, qword [0x180350010]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebx, ebx
mov qword [rsp + 0x28], rcx
cmp qword [rcx + 0x20], 0x10
lea rsi, [rcx + 8]
mov rbp, rdx
mov byte [rsp + 0x20], 0
mov edi, 2
mov r15d, ebx
mov rdx, rsi
jb 0x18011c8c4
mov rdx, qword [rsi]
lea r8, [rsp + 0x38]
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x18011c8e0
mov r15d, reloc.WS2_32.dll_recv
jmp 0x18011c904
cmp qword [rsi + 0x18], 0x10
jb 0x18011c8ea
mov rsi, qword [rsi]
lea r8, [rsp + 0x30]
mov rdx, rsi
mov ecx, edi
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x18011c909
mov r15d, 4
mov edi, 7
xor r9d, r9d
xor r8d, r8d
mov rcx, rbp
lea edx, [r9 + 0x55]
call fcn.18012e180
mov r12, rax
test rax, rax
je 0x18011c9f2
mov qword [rsp + 0xa0], r13
mov rcx, rax
mov qword [rsp + 0x50], r14
xor r13b, r13b
xor r14b, r14b
call fcn.180130e10
mov dword [rsp + 0x24], eax
test eax, eax
jle 0x18011c9e5
nop
test r14b, r14b
jne 0x18011c9e0
mov edx, ebx
mov rcx, r12
call fcn.180131040
mov rsi, rax
cmp dword [rax], edi
jne 0x18011c9ca
mov rcx, qword [rax + 8]
call fcn.180116540
mov rcx, qword [rsi + 8]
mov rbp, rax
call fcn.18012e5f0
movsxd r8, eax
cmp edi, 2
je 0x18011c9b9
cmp edi, 7
jne 0x18011c9ca
mov r8, r15
lea rcx, [rsp + 0x38]
mov rdx, rbp
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x18011c9b4
mov r8, r15
lea rcx, [rsp + 0x30]
mov rdx, rbp
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x18011c9ca
mov r13b, 1
jmp 0x18011c9ca
mov rcx, qword [rsp + 0x28]
mov rdx, rbp
call fcn.18011ca20
movzx r14d, al
inc ebx
cmp ebx, dword [rsp + 0x24]
jl 0x18011c950
test r14b, r14b
jne 0x18011c9e0
test r13b, r13b
je 0x18011c9e5
mov byte [rsp + 0x20], 1
mov r13, qword [rsp + 0xa0]
mov r14, qword [rsp + 0x50]
mov rcx, r12
call fcn.180133790
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.18012c2e0
add rsp, 0x58
pop r15
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18011da60
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x180350010]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdi, r9
mov r14, rdx
xor ebx, ebx
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
movdqa xmm1, xmmword [0x18032a950]
movdqu xmmword [rbp - 0x18], xmm1
mov byte [rbp - 0x28], bl
lea rdx, [rbp - 0x28]
call fcn.18011d850
test al, al
je 0x18011dbab
cmp qword [rdi + 0x10], rbx
je 0x18011db9a
mov qword [rbp - 0x60], rbx
mov qword [rbp - 0x58], rbx
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x28]
call fcn.180075a40
mov r9, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0x10
jb 0x18011dadc
mov rdi, qword [rdi]
mov rsi, qword [rbp - 0x60]
mov r8, qword [rbp - 0x58]
test r8, r8
je 0x18011db09
mov rax, rbx
mov rcx, rsi
nop
xor edx, edx
div r9
movzx eax, byte [rdx + rdi]
xor byte [rcx], al
inc ebx
lea rcx, [rcx + 1]
movsxd rax, ebx
cmp rax, r8
jb 0x18011daf0
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x38], xmm1
mov rdx, rsi
lea rcx, [rbp - 0x48]
call fcn.180071bc0
nop
test rsi, rsi
je 0x18011db32
mov rcx, rsi
call fcn.18012c40c
mov rdx, qword [rbp - 0x10]
cmp rdx, 0x10
jb 0x18011db70
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18011db6b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18011db6b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18012c40c
movups xmm0, xmmword [rbp - 0x48]
movups xmmword [rbp - 0x28], xmm0
movups xmm1, xmmword [rbp - 0x38]
movups xmmword [rbp - 0x18], xmm1
movdqa xmm0, xmmword [0x18032a950]
movdqu xmmword [rbp - 0x38], xmm0
mov byte [rbp - 0x48], 0
lea rcx, [rbp - 0x48]
call fcn.180071b60
mov rdx, r14
lea rcx, [rbp - 0x28]
call fcn.180091140
movzx ebx, al
jmp 0x18011dbad
xor bl, bl
lea rcx, [rbp - 0x28]
call fcn.180071b60
movzx eax, bl
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.18012c2e0
add rsp, 0x80
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x18011f7a0
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0xa0
mov rax, qword [0x180350010]
xor rax, rsp
mov qword [rbp - 1], rax
mov rbx, rdx
mov rsi, qword [rbp + 0x77]
mov qword [rbp - 0x69], rsi
mov r15, qword [rbp + 0x7f]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x21], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x11], xmm1
mov qword [rbp - 0x29], 1
xor r12d, r12d
movzx eax, byte [rdx]
test al, al
je 0x18011f800
mov qword [rbp - 0x31], 4
jmp 0x18011f808
mov dword [rbp - 0x2d], r9d
mov dword [rbp - 0x31], r12d
test al, al
cmove rbx, rcx
mov edx, r8d
lea rcx, [rbp - 0x51]
call fcn.1800f2170
nop
lea rdx, [rbp - 0x51]
cmp qword [rbp - 0x39], 0x10
cmovae rdx, qword [rbp - 0x51]
lea r9, [rbp - 0x61]
lea r8, [rbp - 0x31]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x18011f945
mov rbx, qword [rbp - 0x61]
test rbx, rbx
je 0x18011f93b
movzx r14d, byte [rbp + 0x6f]
nop dword [rax]
nop dword [rax + rax]
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], r12d
xor r9d, r9d
mov r8d, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
mov ecx, dword [rbx + 4]
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x18011f8a6
mov r8d, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
mov ecx, dword [rbx + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18011f92a
test r14b, r14b
je 0x18011f8d0
mov dword [rbp - 0x59], 1
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x59]
mov edx, 6
lea r8d, [rdx - 5]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x18011f8e7
mov qword [rbp - 0x59], rdi
mov rax, qword [rcx]
lea rdx, [rbp - 0x59]
call qword [rax + reloc.WS2_32.dll_recv]
cmp dword [rbx + 4], 0x17
jne 0x18011f90f
mov dword [rbp - 0x59], r12d
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x59]
mov edx, 0x29
lea r8d, [rdx - 0xe]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov r8, rbx
mov rdx, rdi
mov rcx, r15
call fcn.180112500
test al, al
jne 0x18011f98d
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x18011f860
mov rbx, qword [rbp - 0x61]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
lea rcx, [rbp - 0x51]
call fcn.180071b60
nop
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x18011f968
cmp rcx, rsi
mov rax, qword [rcx]
setne dl
call qword [rax + 0x20]
mov qword [rsi + 0x38], r12
mov rax, 0xffffffffffffffff
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.18012c2e0
add rsp, 0xa0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rcx, qword [rbp - 0x61]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
lea rcx, [rbp - 0x51]
call fcn.180071b60
nop
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x18011f9bb
mov rax, qword [rcx]
cmp rcx, rsi
setne dl
call qword [rax + 0x20]
mov qword [rsi + 0x38], r12
mov rax, rdi
jmp 0x18011f96f
Function at 0x1801211c0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rax, qword [0x180350010]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbp, rcx
mov r15, r9
mov rcx, r8
mov rsi, r8
mov rdi, rdx
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
jne 0x180121351
mov eax, dword [rsi + 0x4c]
cmp eax, 0x7fffffff
je 0x180121310
mov rcx, rdi
call fcn.18020aeb0
mov rcx, rsi
mov rdi, rax
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
test rdi, rdi
je 0x1801212d0
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 1
mov edx, 0x8004667e
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor edx, edx
mov ecx, ebp
call fcn.18012fd70
xor r9d, r9d
mov rcx, rax
mov r14, rax
lea edx, [r9 + 0x66]
lea r8d, [r9 + 1]
call fcn.180132560
mov r8, r14
mov rdx, r14
mov rcx, rdi
call fcn.18020b6a0
mov r9, qword [rsp + 0x80]
add r9, 8
cmp qword [r9 + 0x18], 0x10
jb 0x180121285
mov r9, qword [r9]
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 0x37]
call fcn.18020a040
mov rdx, rdi
mov rcx, r15
call fcn.18011c430
cmp al, 1
jne 0x1801212f1
xor r9d, r9d
xor r8d, r8d
mov rcx, r14
lea edx, [r9 + 0x66]
call fcn.180132560
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0
mov edx, 0x8004667e
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rax, rdi
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.18012c2e0
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rcx, rdi
call fcn.18020b9c0
mov rcx, rsi
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
jne 0x180121351
mov eax, dword [rsi + 0x4c]
cmp eax, 0x7fffffff
jne 0x180121321
dec eax
mov ecx, 6
mov dword [rsi + 0x4c], eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov rcx, rdi
call fcn.18020a500
mov rcx, rsi
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0
mov edx, 0x8004667e
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor eax, eax
jmp 0x1801212d3
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x180129b10
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x180129bdc
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x180129bdc
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x180129bf5
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x180129bcc
cmp byte [rax], 0x5c
jne 0x180129bc6
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x180129bc6
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x180129bb2
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x180129bc3
test r8b, 0x10
jne 0x180129bc6
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x180129bc6
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.180124c10
test edi, edi
jne 0x180129b30
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.180124c00
int3

Function at 0x18012bd80
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x18012be04
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x180255fc0]
cmp byte [rcx + rax], 0
je 0x18012be04
dec r8
sub rdx, 1
jne 0x18012bdea
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x18012c084
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.18012be1c
mov ebx, eax
test eax, eax
jne 0x18012c0b4
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x18012c117
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x18012c10e
test al, 0x10
je 0x18012c10e
bt eax, 0xa
jae 0x18012c107
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, pe_nt_image_headers64
mov rdx, rdi
call fcn.18012c128
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x18012c103
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x18012c103
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
test edi, edi
jne 0x18012c10e
and dword [rsp + 0x3c], 0
jmp 0x18012c113
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180145e10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
xor r10d, r10d
movsxd rbx, r8d
mov r11, rdx
mov rdi, rcx
test r8d, r8d
jle 0x180145e4f
mov r9, rdx
mov rdx, rcx
sub rdx, r9
movzx eax, byte [r9]
cmp byte [rdx + r9], al
jne 0x180145e4f
inc r9
inc r10d
mov rax, r9
sub rax, r11
cmp rax, rbx
jl 0x180145e34
lea edx, [r8 - 1]
movsxd rax, edx
test edx, edx
js 0x180145e7a
mov r8, rdi
lea rcx, [rax + r11]
sub r8, r11
cmp byte [rcx + r8], 0
jne 0x180145e7a
cmp byte [rcx], 0xff
jne 0x180145e7a
dec edx
dec rcx
cmp rcx, r11
jns 0x180145e64
cmp r10d, edx
jl case.0x180145ed3.2
jle 0x180145e98
lea eax, [r10*8]
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret
movsxd rax, r10d
movzx r8d, byte [rax + r11]
movzx r9d, byte [rax + rdi]
movzx edx, r8b
xor dl, r9b
movzx eax, dl
dec eax
cmp eax, 0x7e
ja case.0x180145ed3.2
lea r11, [0x180000000]
cdqe
movzx eax, byte [r11 + rax + 0x145f48]
mov ecx, dword [r11 + rax*4 + 0x145f28]
add rcx, r11
jmp rcx
mov eax, 7
jmp 0x180145f04
mov eax, 6
jmp 0x180145f04
mov eax, 5
jmp 0x180145f04
mov eax, 4
jmp 0x180145f04
mov eax, 3
jmp 0x180145f04
mov eax, 2
jmp 0x180145f04
mov eax, 1
test dl, r9b
jne case.0x180145ed3.2
and r8b, dl
lea eax, [rax + r10*8]
cmp r8b, dl
je 0x180145f1a
mov eax, 0xffffffff
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret

Function at 0x18014d440
Capabilities:
Set thread local storage value

Disassembly:
mov eax, 0x28
call fcn.18024a760
sub rsp, rax
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
add rsp, 0x28
ret
Function at 0x180153140
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x38
call fcn.18024a760
sub rsp, rax
mov r10, r8
mov r11, rcx
test r9, r9
jne 0x18015317f
mov edx, 0xe2
mov dword [rsp + 0x20], 0x9a
lea r9, str.crypto_asn1_a_int.c
lea ecx, [rax - 0x2b]
lea r8d, [rdx - 4]
call fcn.180136200
xor eax, eax
add rsp, 0x38
ret
movzx r8d, byte [r8]
and r8d, 0x80
test rdx, rdx
je 0x180153192
mov dword [rdx], r8d
cmp r9, 1
jne 0x1801531b4
test r11, r11
je 0x1801531aa
movzx eax, byte [r10]
test r8d, r8d
je 0x1801531a8
neg al
mov byte [rcx], al
mov eax, 1
add rsp, 0x38
ret
movzx ecx, byte [r10]
mov qword [rsp + 0x40], rbx
xor ebx, ebx
mov eax, ebx
test cl, cl
jne 0x1801531d1
mov eax, 1
mov ebx, eax
jmp 0x18015327f
cmp cl, 0xff
jne 0x1801532bd
mov eax, 1
lea rcx, [r9 - 1]
mov edx, ebx
cmp r9, rax
jbe 0x18015326f
cmp rcx, 8
jb 0x180153260
and ecx, 7
mov rdx, r9
sub rdx, rcx
xorps xmm2, xmm2
xorps xmm3, xmm3
movd xmm1, dword [rax + r10]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
por xmm2, xmm1
movd xmm1, dword [rax + r10 + 4]
punpcklbw xmm1, xmm0
add rax, 8
punpcklwd xmm1, xmm0
por xmm1, xmm3
movdqa xmm3, xmm1
cmp rax, rdx
jb 0x180153203
por xmm2, xmm1
movdqa xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movdqa xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movd edx, xmm2
cmp rax, r9
jae 0x18015326f
nop
movzx ecx, byte [rax + r10]
inc rax
or edx, ecx
cmp rax, r9
jb 0x180153260
test edx, edx
mov eax, ebx
setne al
test edx, edx
setne bl
test edx, edx
je 0x1801532bd
movzx ecx, byte [r10 + 1]
and ecx, 0x80
cmp r8d, ecx
jne 0x1801532bd
mov edx, 0xe2
mov dword [rsp + 0x20], 0xbb
lea r9, str.crypto_asn1_a_int.c
mov ecx, ntohs
lea r8d, [rdx - 5]
call fcn.180136200
mov rbx, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x38
ret
mov ecx, eax
sub r9, rcx
test r11, r11
je 0x180153311
neg r8d
mov qword [rsp + 0x30], rdi
lea r8, [rbx + r10]
sbb edi, edi
add r8, r9
movzx edi, dil
mov ecx, edi
and ecx, 1
test r9, r9
je 0x18015330c
mov rdx, r8
sub rdx, rbx
sub rdx, r10
nop
movzx eax, byte [r8 - 1]
lea r8, [r8 - 1]
dec rdx
xor eax, edi
add ecx, eax
mov byte [rdx + r11], cl
shr ecx, 8
test rdx, rdx
jne 0x1801532f0
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
mov rax, r9
add rsp, 0x38
ret

Function at 0x18015b3a0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
xor eax, eax
mov r10, rcx
test rcx, rcx
je 0x18015b40c
movzx ecx, byte [rcx]
test cl, cl
je 0x18015b40c
mov r11d, 0x100
nop word [rax + rax]
movsx r9d, cl
lea r10, [r10 + 1]
or r9d, r11d
mov r8d, eax
mov edx, r9d
mov ecx, 0x20
shr edx, 2
add r11d, 0x100
xor edx, r9d
imul r9d, r9d
and edx, 0xf
sub ecx, edx
shr r8, cl
mov ecx, edx
mov edx, eax
mov eax, r8d
shl edx, cl
movzx ecx, byte [r10]
or eax, edx
xor eax, r9d
test cl, cl
jne 0x18015b3c0
mov ecx, eax
shr ecx, 0x10
xor eax, ecx
ret