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

Disassembly:
mov qword [rsp + 8], rbx
xor ebx, ebx
mov r10d, r9d
lea r9, [r10 + rdx]
cmp rdx, r9
cmova r10d, ebx
test r10, r10
je 0x14013c9d2
cmp r10, 0x40
jb 0x14013c9d2
lea r11, [rcx - 1]
lea rax, [r8 - 1]
add r11, r10
add rax, r10
cmp rcx, rax
ja 0x14013c954
cmp r11, r8
jae 0x14013c9d2
lea rax, [rdx - 1]
add rax, r10
cmp rcx, rax
ja 0x14013c965
cmp r11, rdx
jae 0x14013c9d2
and r10, 0xffffffffffffffc0
nop dword [rax]
movdqu xmm0, xmmword [rdx]
add rbx, 0x40
movdqu xmm1, xmmword [r8]
pxor xmm1, xmm0
movdqu xmm0, xmmword [rdx + 0x10]
movdqu xmmword [rcx], xmm1
movdqu xmm1, xmmword [r8 + 0x10]
pxor xmm1, xmm0
movdqu xmm0, xmmword [rdx + 0x20]
movdqu xmmword [rcx + 0x10], xmm1
movdqu xmm1, xmmword [r8 + 0x20]
pxor xmm1, xmm0
movdqu xmm0, xmmword [rdx + 0x30]
add rdx, 0x40
movdqu xmmword [rcx + 0x20], xmm1
movdqu xmm1, xmmword [r8 + 0x30]
add r8, 0x40
pxor xmm1, xmm0
movdqu xmmword [rcx + 0x30], xmm1
add rcx, 0x40
cmp rbx, r10
jb 0x14013c970
cmp rdx, r9
jae 0x14013c9f2
sub r8, rdx
sub rcx, rdx
nop dword [rax]
movzx eax, byte [r8 + rdx]
xor al, byte [rdx]
mov byte [rcx + rdx], al
inc rdx
cmp rdx, r9
jb 0x14013c9e0
mov rbx, qword [rsp + 8]
ret

Function at 0x14013ef70
Capabilities:
Get common file path
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x230
mov rax, qword [0x1407ddd00]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov rbx, qword [rcx + 8]
xor ebp, ebp
mov rax, qword [rcx + 0x10]
mov rdi, rcx
sub rax, rbx
mov esi, ebp
cmp rax, 0x38
jb 0x14013efbb
lea rax, [rbx + 0x38]
mov qword [rcx + 8], rax
jmp 0x14013efc8
mov edx, gethostname
call fcn.140128e80
mov rbx, rax
xor eax, eax
test rbx, rbx
je 0x14013f0aa
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movups xmmword [rbx], xmm0
mov edx, 0x200
movups xmmword [rbx + 0x10], xmm0
movups xmmword [rbx + 0x20], xmm0
mov qword [rbx + 0x30], rax
call fcn.140140200
test rax, rax
je 0x14013f00b
mov r8, rbx
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14013eb40
mov esi, eax
mov edx, 0x200
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x14013f031
mov r8, rbx
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14013eb40
add esi, eax
mov r8, rbx
lea rdx, [0x14022ad84]
mov rcx, rdi
call fcn.14013eb40
mov edx, 0x200
lea rcx, [rsp + 0x20]
add esi, eax
call fcn.140140180
test rax, rax
je 0x14013f06b
mov r8, rbx
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14013eb40
add esi, eax
lea rcx, str.MYSQL_HOME
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x14013f08d
mov r8, rbx
mov rdx, rax
mov rcx, rdi
call fcn.14013eb40
add esi, eax
mov r8, rbx
lea rdx, [0x1404df8b6]
mov rcx, rdi
call fcn.14013eb40
add eax, esi
test eax, eax
cmovg rbx, rbp
mov rax, rbx
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.1401db8e0
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1401400e0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rbx, rdx
lea rcx, str.MYSQL_TEST_LOGIN_FILE
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140140118
lea rcx, str.MYSQL_TEST_LOGIN_FILE
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
lea r8, [0x1404e0e18]
jmp 0x14014013e
lea rcx, str.APPDATA
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140140162
lea rcx, str.APPDATA
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
lea r8, str._sMySQL.mylogin.cnf
mov r9, rax
mov rdx, rbx
mov rcx, rdi
call fcn.14004d720
movsxd rcx, eax
xor eax, eax
test rcx, rcx
setne al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov r8, rbx
xor edx, edx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memset
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x140140200
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rbx, rdx
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.GetSystemWindowsDirectoryA
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, ebx
mov rcx, rdi
test rax, rax
je 0x140140246
call rax
mov eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ebx, eax
cmp rbx, 8
jbe 0x140140273
lea rcx, [rdi - 8]
add rcx, rbx
lea rdx, str.System32
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x140140273
sub rbx, 8
mov byte [rbx + rdi], al
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1401432a0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [rcx]
lea r8, [rsp + 0x30]
mov rbx, rdx
mov edx, 0x4004667f
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x1401432c8
mov al, 1
add rsp, 0x20
pop rbx
ret
mov eax, dword [rsp + 0x30]
mov dword [rbx], eax
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1401434e0
Capabilities:
Resolve dns

Disassembly:
sub rsp, 0x48
movzx eax, word [rcx]
mov r10, rdx
xor edx, edx
cmp ax, 2
je 0x1401434ff
cmp ax, 0x17
jne 0x140143504
mov edx, Ordinal_32
jmp 0x140143504
mov edx, reloc.WS2_32.dll_recv
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r9
mov r9d, r8d
mov r8, r10
call qword [sym.imp.WS2_32.dll_getnameinfo]
add rsp, 0x48
ret
Function at 0x140143530
Capabilities:
Get socket status

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x6d8
mov rax, qword [0x1407ddd00]
xor rax, rsp
mov qword [rsp + 0x6c0], rax
mov r15, qword [rcx]
xor edi, edi
mov qword [rsp + 0x60], rdi
mov ebx, r8d
mov esi, edx
mov r14, rcx
mov ebp, edi
cmp r15, 0xffffffffffffffff
jne 0x140143574
mov eax, r15d
jmp 0x140143729
mov qword [rsp + 0x718], r12
mov qword [rsp + 0x6d0], r13
test ebx, ebx
js 0x1401435aa
mov eax, 0x10624dd3
mov ecx, ebx
mul ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [rsp + 0x38], edx
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x2a0], edi
mov ecx, esi
mov dword [rsp + 0x90], edi
mov qword [rsp + 0x4b8], r15
mov dword [rsp + 0x4b0], 1
test esi, esi
je 0x1401435f0
sub ecx, 1
je 0x1401435db
cmp ecx, 1
jne 0x140143603
mov qword [rsp + 0x98], r15
mov dword [rsp + 0x90], 1
jmp 0x140143603
mov qword [rsp + 0x2a8], r15
mov dword [rsp + 0x2a0], 1
movups xmm0, xmmword [r14]
psrldq xmm0, 8
movq rdx, xmm0
test rdx, rdx
je 0x14014364e
cmp byte [rdx], dil
je 0x14014364e
mov rax, qword [0x140515650]
lea rcx, [rsp + 0x40]
xor r9d, r9d
mov dword [rsp + 0x28], 0x3b1
mov r10, qword [rax + 0x18]
lea rax, str.C:_build_sb_1_12756051_1695398590.5mysql_8.2.0_vio_viosocket.cc
lea r8d, [r9 + 0xe]
mov qword [rsp + 0x20], rax
call r10
mov r13, rax
jmp 0x140143651
mov r13, rdi
test ebx, ebx
lea r12, [rsp + 0x38]
cmovs r12, rdi
nop dword [rax]
lea r9, [rsp + 0x4b0]
mov qword [rsp + 0x20], r12
lea r8, [rsp + 0x90]
lea rdx, [rsp + 0x2a0]
lea ecx, [r15 + 1]
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
test eax, eax
jns 0x1401436a3
mov rcx, r14
call fcn.140143d90
test al, al
je 0x1401436a3
mov ecx, ebp
inc ebp
cmp ecx, dword [r14 + 0x20]
jl 0x140143660
mov r12, qword [rsp + 0x718]
test r13, r13
je 0x1401436bf
mov rax, qword [0x140515650]
xor edx, edx
mov rcx, r13
call qword [rax + reloc.WLDAP32.dll_Ordinal_32]
mov r13, qword [rsp + 0x6d0]
test ebx, ebx
jne 0x1401436da
mov ecx, 0x274c
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, ebx
jmp 0x140143729
jg 0x1401436e0
mov eax, ebx
jmp 0x140143729
test esi, esi
je 0x1401436f8
sub esi, 1
je 0x1401436ee
cmp esi, 1
jne 0x14014370f
lea rdx, [rsp + 0x90]
jmp 0x140143700
lea rdx, [rsp + 0x2a0]
mov rcx, r15
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
mov ebx, edi
setne bl
lea rdx, [rsp + 0x4b0]
mov rcx, r15
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
setne dil
or edi, ebx
mov eax, edi
mov rcx, qword [rsp + 0x6c0]
xor rcx, rsp
call fcn.1401db8e0
add rsp, 0x6d8
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140143b20
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x90
mov rbp, r8
mov qword [rax + 8], rsi
mov r14, rdx
lea r12, str.C:_build_sb_1_12756051_1695398590.5mysql_8.2.0_vio_viosocket.cc
mov rdi, rcx
xor r15d, r15d
movups xmm0, xmmword [rdi]
movaps xmmword [rsp + 0x30], xmm0
psrldq xmm0, 8
movq rdx, xmm0
test rdx, rdx
je 0x140143bd4
cmp byte [rdx], r15b
je 0x140143bd4
mov rax, qword [0x140515650]
lea rcx, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x60], r15
mov dword [rsp + 0x28], __WSAFDIsSet
mov qword [rsp + 0x20], r12
mov r10, qword [rax + 0x18]
lea r8d, [r9 + 5]
call r10
mov rcx, qword [rsp + 0x30]
xor r9d, r9d
mov r8d, ebp
mov rdx, r14
mov rsi, rax
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbx, eax
test rsi, rsi
je 0x140143beb
mov rax, qword [0x140515650]
cmp rbx, 0xffffffffffffffff
mov rdx, r15
mov rcx, rsi
cmovg rdx, rbx
call qword [rax + reloc.WLDAP32.dll_Ordinal_32]
jmp 0x140143beb
mov rcx, qword [rsp + 0x30]
xor r9d, r9d
mov r8d, ebp
mov rdx, r14
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbx, eax
cmp rbx, 0xffffffffffffffff
jne 0x140143c22
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd8cd
cmp eax, 1
ja 0x140143c22
mov rcx, rdi
call fcn.140143750
test al, al
je 0x140143c4b
xor edx, edx
mov rcx, rdi
call fcn.1401442d0
movsxd rbx, eax
test eax, eax
je 0x140143b53
mov rax, rbx
mov rsi, qword [rsp + 0xb0]
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
mov rax, 0xffffffffffffffff
jmp 0x140143c25

Function at 0x140143d30
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx]
lea r8, [rsp + 0x38]
movzx eax, dl
mov edx, 0x8004667e
xor eax, 1
mov dword [rsp + 0x38], eax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
add rsp, 0x28
ret
Function at 0x14014a8c0
Capabilities:
Hash data using fnv

Disassembly:
movzx r8d, byte [rdx]
movabs r9, 0x100000001b3
movzx eax, byte [rdx + 1]
xor r8, rcx
movzx ecx, byte [rdx + 2]
imul r8, r9
xor rax, r8
imul rax, r9
xor rax, rcx
movzx ecx, byte [rdx + 3]
imul rax, r9
xor rax, rcx
imul rax, r9
ret
mov rdx, rcx
movabs rcx, 0xcbf29ce484222325
jmp 0x14014a7e0

Function at 0x140151690
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
xor r10d, r10d
mov ebx, edx
mov r11, rcx
test edx, edx
js 0x1401516c0
mov eax, r10d
lea r11, [r11 + 1]
cdq
inc r10d
idiv r9d
movsxd rax, edx
movzx ecx, byte [rax + r8]
xor byte [r11 - 1], cl
cmp r10d, ebx
jle 0x1401516a1
mov rbx, qword [rsp + 8]
ret

Function at 0x14015a3a0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rax, rdx
mov edi, r9d
mov r9, rcx
mov rsi, rcx
mov rcx, rax
mov edx, 1
mov rbx, r8
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rbp, rax
cmp rax, rbx
je 0x14015a47b
test dil, 0x1a
je 0x14015a441
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
test eax, eax
je 0x14015a410
mov rcx, rsi
call fcn.14015a390
mov ecx, eax
call fcn.14014d550
mov rbx, rax
call fcn.140132e80
mov edx, 2
mov ecx, eax
jmp 0x14015a436
mov eax, edi
and eax, 6
je 0x14015a441
mov rcx, rsi
call fcn.14015a390
mov ecx, eax
call fcn.14014d550
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov edx, 9
mov ecx, dword [rax]
mov r9, rbx
xor r8d, r8d
call fcn.14015a300
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 0
je 0x14015a456
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
jmp 0x14015a45b
mov ecx, 0xffffffff
call fcn.140133160
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
test eax, eax
jne 0x14015a472
and edi, 6
je 0x14015a484
mov rax, 0xffffffffffffffff
jmp 0x14015a487
and edi, 6
je 0x14015a484
xor eax, eax
jmp 0x14015a487
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140182780
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movsx ebx, cl
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ecx, ebx
mov edi, eax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_toupper]
lea ecx, [rax - 0x41]
cmp cl, 0x19
ja 0x1401827c0
movsx ecx, al
sub ecx, 0x41
movzx edx, cl
bt edi, edx
jae 0x1401827c0
mov al, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor al, al
add rsp, 0x20
pop rdi
ret

Function at 0x140182a80
Capabilities:
Get inbound credentials handle via credssp

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
lea rax, vtable.Handshake.0
mov qword [rcx], rax
xor ebp, ebp
mov dword [rcx + 0x30], ebp
mov dword [rcx + 0x38], ebp
mov word [rcx + 0x3c], bp
mov byte [rcx + 0x3e], bpl
add rcx, 0x40
call fcn.140182b80
nop
lea rax, [rsi + 0x28]
lea rcx, [rsi + 0x18]
mov r8d, ebp
cmp ebx, 1
setne r8b
inc r8d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
xor r9d, r9d
mov rdx, rdi
xor ecx, ecx
call sub.Secur32.dll_AcquireCredentialsHandleA
mov ebx, eax
test eax, eax
je 0x140182b16
lea rcx, str.Could_not_obtain_local_credentials_required_for_authentication
call fcn.1401510c0
mov dword [rsi + 0x38], ebx
mov byte [rsi + 0x3d], 1
mov rax, rsi
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x14018d0b0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rcx
shr rax, 0x21
xor rax, rcx
movabs rcx, 0xc2b2ae3d27d4eb4f
imul rax, rcx
mov rcx, rax
shr rcx, 0x1d
xor rcx, rax
movabs rax, 0x165667b19e3779f9
imul rcx, rax
mov rax, rcx
shr rax, 0x20
xor rax, rcx
ret
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r15
sub rsp, 0x20
mov rsi, r8
mov qword [rsp + 0x50], r14
and esi, 0x1f
mov r14d, r9d
mov rdi, rdx
mov rbx, rcx
movabs r15, 0x9e3779b185ebca87
cmp rsi, 8
jb 0x14018cde1
mov qword [rsp + 0x40], rbp
mov ebp, esi
shr rbp, 3
imul rax, rbp, 0xfffffffffffffff8
mov qword [rsp + 0x48], r12
movabs r12, 0x7a1435883d4d519d
add rsi, rax
cmp r14d, 1
jne 0x14018cdb2
mov rcx, rdi
call fcn.14018cf30
jmp 0x14018cdb5
mov rax, qword [rdi]
mov rdx, rax
xor ecx, ecx
add rdi, 8
call fcn.14018cec0
xor rbx, rax
rol rbx, 0x1b
imul rbx, r15
sub rbx, r12
sub rbp, 1
jne 0x14018cda2
mov r12, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
cmp rsi, 4
jb 0x14018ce29
cmp r14d, 1
jne 0x14018cdf7
mov rcx, rdi
call fcn.14018cf10
jmp 0x14018cdf9
mov eax, dword [rdi]
mov eax, eax
add rdi, 4
imul rax, r15
xor rbx, rax
movabs rax, 0xc2b2ae3d27d4eb4f
rol rbx, 0x17
imul rbx, rax
movabs rax, 0x165667b19e3779f9
add rbx, rax
sub rsi, 4
mov r14, qword [rsp + 0x50]
test rsi, rsi
je 0x14018ce5c
movabs rcx, 0x27d4eb2f165667c5
nop dword [rax]
movzx eax, byte [rdi]
lea rdi, [rdi + 1]
imul rax, rcx
xor rbx, rax
rol rbx, 0xb
imul rbx, r15
sub rsi, 1
jne 0x14018ce40
mov rcx, rbx
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop rdi
pop rsi
jmp 0x14018cd10
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, qword [rcx]
mov rbx, rcx
cmp rdi, 0x20
jb 0x14018d11c
mov rdx, qword [rcx + 8]
mov rcx, qword [rcx + 0x18]
mov rax, rdx
rol rax, 1
rol rcx, 0xc
add rcx, rax
mov rax, qword [rbx + 0x10]
rol rax, 7
add rcx, rax
mov rax, qword [rbx + 0x20]
rol rax, 0x12
add rcx, rax
call fcn.14018ce80
mov rdx, qword [rbx + 0x10]
mov rcx, rax
call fcn.14018ce80
mov rdx, qword [rbx + 0x18]
mov rcx, rax
call fcn.14018ce80
mov rdx, qword [rbx + 0x20]
mov rcx, rax
call fcn.14018ce80
jmp 0x14018d12d
mov rax, qword [rcx + 0x18]
movabs rcx, 0x27d4eb2f165667c5
add rax, rcx
lea rdx, [rbx + 0x28]
xor r9d, r9d
lea rcx, [rdi + rax]
mov r8, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x14018cd50
Function at 0x1401d7520
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rax, qword [str.P_R_]
mov rdi, r8
mov esi, edx
mov rbx, rcx
movsxd r9, r9d
add rsi, rcx
xor edx, edx
mov rcx, rdi
mov r10d, dword [rax + r9*4]
shr r10d, 3
mov r8d, r10d
lea rbp, [r10 + rdi]
call sub.VCRUNTIME140.dll_memset
mov rax, rdi
cmp rbx, rsi
jae 0x1401d7587
nop word [rax + rax]
movzx ecx, byte [rbx]
cmp rax, rbp
cmove rax, rdi
inc rbx
xor byte [rax], cl
inc rax
cmp rbx, rsi
jb 0x1401d7570
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1401da120
Capabilities:
Hash data with crc32

Disassembly:
mov r8d, ecx
lea r9, [0x1404ddf40]
shr r8d, 8
movzx ecx, cl
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
shr r8d, 8
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
shr r8d, 8
xor r8d, dword [r9 + rcx*4]
movzx edx, r8b
shr r8d, 8
xor r8d, dword [r9 + rdx*4]
mov eax, r8d
ret

Function at 0x1401dc888
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401dc8d2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401dc8d2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401dc8d2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401dc8d2
cmp dword [rcx + 0x84], 0xe
jbe 0x1401dc8d2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1401dc8d4
xor al, al
add rsp, 0x28
ret

Function at 0x1401dcad8
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 0x1401dcb12
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1401dcb17
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 0x1401dcb60
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 0x1401dcb60
dec r8
sub rdx, 1
jne 0x1401dcb46
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140001000
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov eax, 0x5a4d
mov ebp, r8d
mov r14d, edx
mov rdi, rcx
cmp word [rcx], ax
jne 0x14000110a
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x14000110a
mov ecx, 0x8664
cmp word [rax + 4], cx
jne 0x14000110a
mov ecx, 0x20b
cmp word [rax + 0x18], cx
jne 0x14000110a
cmp dword [rax + 0x84], 0
jbe 0x14000110a
cmp dword [rax + 0x8c], 0
je 0x14000110a
mov ecx, dword [rax + 0x88]
add rcx, rdi
je 0x14000110a
mov ebx, dword [rcx + 0x20]
xor r11d, r11d
mov r15d, dword [rcx + 0x24]
add rbx, rdi
mov r12d, dword [rcx + 0x1c]
add r15, rdi
mov esi, dword [rcx + 0x18]
add r12, rdi
test esi, esi
je 0x14000110a
nop dword [rax]
mov r10d, dword [rbx]
mov r9d, r14d
add r10, rdi
xor eax, eax
nop dword [rax + rax]
movsx ecx, byte [rax + r10]
movzx edx, cl
lea ecx, [rdx - 0x61]
cmp ecx, 0x19
lea r8d, [rdx - 0x20]
cmova r8d, edx
lea ecx, [r8 + r8*8]
xor r9d, ecx
mov ecx, r8d
imul ecx, r8d
rol r9d, 5
sub r9d, ecx
test r8d, r8d
je 0x1400010f9
inc rax
cmp rax, 0xffffffffffffffff
jne 0x1400010c0
cmp r9d, ebp
je 0x140001127
inc r11d
add rbx, 4
cmp r11d, esi
jb 0x1400010b0
xor eax, eax
mov rbx, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
pop r15
pop r14
pop r12
ret
movzx ecx, word [r15 + r11*2]
mov eax, dword [r12 + rcx*4]
add rax, rdi
jmp 0x14000110c
Function at 0x14000bda0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [rcx]
lea r9, [rcx + 4]
xor edx, edx
test eax, eax
je 0x14000bdc0
nop dword [rax]
lea r8d, [rdx + 0x78]
xor byte [rdx + r9], r8b
inc edx
mov eax, dword [rcx]
cmp edx, eax
jb 0x14000bdb0
mov ecx, eax
mov rax, r9
mov byte [rcx + r9], 0
ret
Function at 0x14002b8b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx + 0x718], 0
mov rsi, r9
mov rbp, r8
movsxd rbx, edx
mov rdi, rcx
je 0x14002b90e
mov dl, 1
call fcn.14001c290
mov rax, qword [rdi + 0x670]
mov r9, rsi
mov r8, rbp
mov qword [rsp + 0x20], rax
mov edx, ebx
mov rcx, rdi
call qword [rdi + 0x718]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.14001c290
mov eax, ebx
jmp 0x14002b952
cmp ebx, 2
ja 0x14002b950
mov r9, qword [rdi + 0x668]
lea rdx, [0x14006b148]
lea rcx, [rbx + rbx*2]
add rcx, rdx
mov edx, 2
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rdi + 0x668]
mov r8d, 1
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14002b970
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rdi
sub rsp, 0x160
mov rax, qword [0x140083080]
xor rax, rsp
mov qword [rsp + 0x140], rax
cmp byte [rcx + 0xf1e], 0
mov rdi, rcx
jne 0x14002b9b3
cmp qword [rcx + 0x678], 0
je 0x14002ba90
mov r8, rdx
mov qword [rsp + 0x158], rbx
mov edx, 0x100
lea r9, [rsp + 0x180]
lea rcx, [rsp + 0x30]
call fcn.14003c400
lea rax, [rsp + 0x30]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x14002b9e1
mov rcx, qword [rdi + 0x678]
test rcx, rcx
je 0x14002ba28
cmp byte [rdi + 0x1597], 0
jne 0x14002ba28
lea rdx, [rsp + 0x30]
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rdx]
lea rdx, [rdx + 1]
mov byte [rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x14002ba10
mov byte [rdi + 0x1597], 1
cmp byte [rdi + 0xf1e], 0
je 0x14002ba88
mov byte [rsp + rbx + 0x30], 0xa
inc rbx
cmp rbx, 0x102
jae 0x14002bae3
cmp qword [rdi + 0x718], 0
mov byte [rsp + rbx + 0x30], 0
je 0x14002baa9
mov dl, 1
mov rcx, rdi
call fcn.14001c290
mov rax, qword [rdi + 0x670]
lea r8, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rdi
call qword [rdi + 0x718]
xor edx, edx
mov rcx, rdi
call fcn.14001c290
mov rbx, qword [rsp + 0x158]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140066540
add rsp, 0x160
pop rdi
ret
mov r9, qword [rdi + 0x668]
lea rcx, [0x14006b148]
mov edx, 2
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rdi + 0x668]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x14002ba88
call fcn.140066cf4
int3