joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180034cd0
Capabilities:
Enumerate files on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
push rsi
push rdi
push r14
sub rsp, 0xa0
mov rdi, r9
lea r14, [0x180034ed0]
xor esi, esi
mov dword [rax + 0x10], esi
mov dword [rax + 0x18], esi
mov qword [rax - 0x70], rsi
xorps xmm0, xmm0
movups xmmword [rax - 0x50], xmm0
movups xmmword [rax - 0x40], xmm0
movups xmmword [rax - 0x30], xmm0
test rcx, rcx
je 0x180034eaa
movups xmmword [rax - 0x60], xmm0
mov rdx, rcx
lea rcx, [rax - 0x60]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov dword [rsp + 0x68], 0x30
mov qword [rsp + 0x70], rsi
mov dword [rsp + 0x80], 0x40
lea rax, [rsp + 0x58]
mov qword [rsp + 0x78], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x88], xmm0
lea r8, [rsp + 0x68]
lea edx, [rsi + 1]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntdll.dll_NtOpenDirectoryObject]
mov dword [rsp + 0x40], eax
test eax, eax
jne 0x180034ebc
nop word [rax + rax]
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x20], 0
mov r9b, 1
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntdll.dll_NtQueryDirectoryObject]
mov ebx, eax
mov dword [rsp + 0x40], eax
cmp eax, 0xc0000023
jne 0x180034e98
mov r8d, dword [rsp + 0xd0]
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov edx, 8
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x180034e94
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x20], 0
mov r9b, 1
mov r8d, dword [rsp + 0xd0]
mov rdx, rbx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntdll.dll_NtQueryDirectoryObject]
mov dword [rsp + 0x40], eax
test eax, eax
js 0x180034e76
mov rdx, rdi
mov rcx, rbx
call r14
mov dword [rsp + 0x44], eax
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov r8, qword [rsp + 0x50]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [rsp + 0x44], 0
jl 0x180034d80
mov ebx, esi
mov dword [rsp + 0x40], ebx
jmp 0x180034e98
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov r8, qword [rsp + 0x50]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ebx, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x180034ea8
call qword [sym.imp.ntdll.dll_NtClose]
jmp 0x180034eba
mov eax, 0xc00000f0
jmp 0x180034ebc
mov eax, ebx
mov rbx, qword [rsp + 0xc0]
add rsp, 0xa0
pop r14
pop rdi
pop rsi
ret
Function at 0x180035560
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0xc0
mov rdi, rdx
xor ebx, ebx
mov qword [rax + 0x10], rbx
mov dword [rax - 0x34], ebx
mov dword [rax - 0x1c], ebx
xor r9d, r9d
xor r8d, r8d
lea rdx, [rax - 0x58]
call qword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
test al, al
jne 0x1800355a5
xor eax, eax
mov rbx, qword [rsp + 0xd0]
add rsp, 0xc0
pop rdi
ret
mov dword [rsp + 0x90], 0x30
mov qword [rsp + 0x98], rbx
mov dword [rsp + 0xa8], 0x40
lea rax, [rsp + 0x70]
mov qword [rsp + 0xa0], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0xb0], xmm0
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x38], 5
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x80]
lea r8, [rsp + 0x90]
mov edx, 0x100002
lea rcx, [rsp + 0xd8]
call qword [sym.imp.ntdll.dll_NtCreateFile]
test eax, eax
js 0x18003567b
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], 0x10ac0
mov qword [rsp + 0x28], rdi
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.ntdll.dll_NtWriteFile]
test eax, eax
js 0x18003567b
mov ebx, dword [rsp + 0x88]
mov dword [rsp + 0x60], ebx
mov rcx, qword [rsp + 0xd8]
test rcx, rcx
je 0x18003568e
call qword [sym.imp.ntdll.dll_NtClose]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
mov eax, ebx
mov rbx, qword [rsp + 0xd0]
add rsp, 0xc0
pop rdi
ret
Function at 0x180038d50
Capabilities:
Enumerate processes

Disassembly:
push r12
push r13
push r14
push r15
sub rsp, 0x298
xor r13d, r13d
movzx r12d, r8b
mov r15, rcx
test r8b, r8b
jne 0x180038d71
mov dword [rcx], r13d
xor edx, edx
lea rcx, [rsp + 0x54]
mov r8d, 0x234
call fcn.18010b740
xor edx, edx
mov dword [rsp + 0x50], 0x238
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x180038db1
xor al, al
add rsp, 0x298
pop r15
pop r14
pop r13
pop r12
ret
mov qword [rsp + 0x2c0], rbx
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x2c8], rbp
mov rcx, r14
mov qword [rsp + 0x2d0], rsi
mov qword [rsp + 0x290], rdi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x180038ed3
nop word [rax + rax]
xorps xmm0, xmm0
mov qword [rsp + 0x40], r13
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x48], r13
lea rax, [rsp + 0x7c]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], r13w
jne 0x180038e10
lea rdx, [rsp + 0x7c]
lea rcx, [rsp + 0x30]
call fcn.180008fd0
cmp qword [r15 + 0x90], 7
lea r9, [r15 + 0x78]
mov rax, qword [r15 + 0x88]
jbe 0x180038e42
mov r9, qword [r15 + 0x78]
mov rsi, qword [rsp + 0x48]
lea rcx, [rsp + 0x30]
mov rbx, qword [rsp + 0x30]
cmp rsi, 7
mov rdx, qword [rsp + 0x40]
cmova rcx, rbx
mov qword [rsp + 0x20], rax
xor r8d, r8d
call fcn.180015b90
mov rbp, rax
cmp rsi, 7
jbe 0x180038ea9
lea rdx, [rsi*2 + 2]
mov rax, rbx
cmp rdx, 0x1000
jb 0x180038ea1
mov rbx, qword [rbx - 8]
add rdx, 0x27
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180038f22
mov rcx, rbx
call fcn.1800d95dc
cmp rbp, 0xffffffffffffffff
je 0x180038ebd
test r12b, r12b
je 0x180038f0e
mov eax, dword [rsp + 0x58]
cmp dword [r15], eax
je 0x180038f1e
lea rdx, [rsp + 0x50]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x180038df0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rsi, qword [rsp + 0x2d0]
mov rbp, qword [rsp + 0x2c8]
mov rbx, qword [rsp + 0x2c0]
mov rdi, qword [rsp + 0x290]
add rsp, 0x298
pop r15
pop r14
pop r13
pop r12
ret
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x58]
mov dword [r15], eax
mov al, 1
jmp 0x180038ede
call fcn.1800e5940
int3
Function at 0x180054380
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x10], rdx
push rdi
sub rsp, 0x30
mov rbx, rdx
mov rsi, rcx
xor ebp, ebp
mov rdi, qword [rdx + 8]
sub rdi, qword [rdx]
lea r8, [rdi + 2]
movabs rax, 0xaaaaaaaaaaaaaaab
mul r8
shr rdx, 1
shl rdx, 2
xor r8d, r8d
call fcn.1800428c0
mov rax, rsi
cmp qword [rsi + 0x18], 0xf
jbe 0x1800543d5
mov rax, qword [rsi]
mov r8, rbp
lea r9, [rdi - 2]
lea r10, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
test r9, r9
je 0x18005446d
nop dword [rax]
mov rcx, qword [rbx]
movzx ecx, byte [rcx + r8]
shr rcx, 2
movzx ecx, byte [rcx + r10]
mov byte [rax], cl
mov rcx, qword [rbx]
movzx edx, byte [rcx + r8]
and edx, 3
shl rdx, 4
movzx ecx, byte [rcx + r8 + 1]
shr rcx, 4
or rdx, rcx
movzx ecx, byte [rdx + r10]
mov byte [rax + 1], cl
mov rcx, qword [rbx]
movzx edx, byte [rcx + r8 + 1]
and edx, 0xf
shl rdx, 2
movzx ecx, byte [rcx + r8 + 2]
shr rcx, 6
or rdx, rcx
movzx ecx, byte [rdx + r10]
mov byte [rax + 2], cl
mov rcx, qword [rbx]
movzx ecx, byte [rcx + r8 + 2]
and ecx, 0x3f
movzx ecx, byte [rcx + r10]
mov byte [rax + 3], cl
add rax, 4
add r8, 3
cmp r8, r9
jb 0x1800543f0
cmp r8, rdi
jae 0x1800544e1
mov rcx, qword [rbx]
movzx ecx, byte [r8 + rcx]
shr rcx, 2
movzx ecx, byte [rcx + r10]
mov byte [rax], cl
lea rcx, [rdi - 1]
cmp r8, rcx
mov rcx, qword [rbx]
jne 0x1800544a8
movzx ecx, byte [r8 + rcx]
and ecx, 3
add rcx, rcx
movzx ecx, byte [r10 + rcx*8]
mov byte [rax + 1], cl
mov cl, 0x3d
jmp 0x1800544da
movzx edx, byte [rcx + r8]
and edx, 3
shl rdx, 4
movzx ecx, byte [rcx + r8 + 1]
shr rcx, 4
or rdx, rcx
movzx ecx, byte [rdx + r10]
mov byte [rax + 1], cl
mov rcx, qword [rbx]
movzx edx, byte [rcx + r8 + 1]
and edx, 0xf
movzx ecx, byte [r10 + rdx*4]
mov byte [rax + 2], cl
mov byte [rax + 3], 0x3d
mov rcx, qword [rbx]
test rcx, rcx
je 0x180054521
mov rdx, qword [rbx + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x180054511
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180054539
mov rcx, r8
call fcn.1800d95dc
mov qword [rbx], rbp
mov qword [rbx + 8], rbp
mov qword [rbx + 0x10], rbp
mov rax, rsi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
call fcn.1800e5940
int3
Function at 0x180054770
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x30
movzx esi, r8b
mov rbx, rdx
mov rdi, rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
mov qword [rcx], rbp
mov qword [rcx + 8], rbp
mov qword [rcx + 0x10], rbp
mov dword [rsp + 0x20], 1
mov rdx, qword [rdx + 8]
sub rdx, qword [rbx]
je 0x1800547b7
call fcn.180020720
mov rdx, qword [rdi + 8]
sub rdx, qword [rdi]
mov qword [rsp + 0x68], rdx
mov rax, qword [rdi + 0x10]
sub rax, qword [rdi]
cmp rdx, rax
jbe 0x1800547ef
movabs rax, 0x7fffffffffffffff
cmp rdx, rax
ja 0x18005487b
lea rdx, [rsp + 0x68]
mov rcx, rdi
call fcn.180020170
movzx edx, sil
mov r9, rbp
mov r8, qword [rbx]
cmp qword [rbx + 8], r8
je 0x18005482b
nop
movzx ecx, dl
test dl, dl
cmove ecx, esi
movzx edx, cl
xor cl, byte [r8 + r9]
mov rax, qword [rdi]
mov byte [r9 + rax], cl
add dl, 0xff
inc r9
mov r8, qword [rbx]
mov rax, qword [rbx + 8]
sub rax, r8
cmp r9, rax
jb 0x180054800
test r8, r8
je 0x18005486b
mov rdx, qword [rbx + 0x10]
sub rdx, r8
cmp rdx, 0x1000
jb 0x180054858
add rdx, 0x27
mov rcx, qword [r8 - 8]
sub r8, rcx
lea rax, [r8 - 8]
cmp rax, 0x1f
ja 0x180054881
mov r8, rcx
mov rcx, r8
call fcn.1800d95dc
mov qword [rbx], rbp
mov qword [rbx + 8], rbp
mov qword [rbx + 0x10], rbp
mov rax, rdi
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
call fcn.180008710
nop
call fcn.1800e5940
int3

Function at 0x180054b10
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, rdx
mov qword [rsp + 0x48], rbp
mov rdx, qword [rdx + 8]
xor r15d, r15d
mov rsi, r8
mov r14, rcx
mov ebp, r15d
mov r8, qword [rdi]
cmp rdx, r8
je 0x180054b81
mov qword [rsp + 0x40], rbx
mov rcx, rsi
call fcn.180042880
mov rbx, qword [rdi]
mov rcx, rax
xor edx, edx
mov rax, rbp
div rcx
mov rcx, rsi
call fcn.180042890
movzx eax, byte [rax]
xor byte [rbx + rbp], al
inc rbp
mov rdx, qword [rdi + 8]
mov r8, qword [rdi]
mov rax, rdx
sub rax, r8
cmp rbp, rax
jb 0x180054b43
mov rbx, qword [rsp + 0x40]
mov rax, qword [rdi + 0x10]
mov rbp, qword [rsp + 0x48]
mov qword [rdi + 0x10], r15
mov qword [rdi + 8], r15
mov qword [rdi], r15
mov qword [r14], r8
mov qword [r14 + 8], rdx
mov qword [r14 + 0x10], rax
mov rcx, qword [rdi]
test rcx, rcx
je 0x180054be0
mov rdx, qword [rdi + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x180054bd0
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180054c37
mov rcx, r8
call fcn.1800d95dc
mov qword [rdi], r15
mov qword [rdi + 8], r15
mov qword [rdi + 0x10], r15
mov rdx, qword [rsi + 0x18]
cmp rdx, 0xf
jbe 0x180054c16
mov rcx, qword [rsi]
inc rdx
cmp rdx, 0x1000
jb 0x180054c11
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180054c37
mov rcx, r8
call fcn.1800d95dc
mov qword [rsi + 0x10], r15
mov rax, r14
mov qword [rsi + 0x18], send
mov byte [rsi], r15b
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
call fcn.1800e5940
int3
Function at 0x180061e70
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov qword [rax + 0x10], rdx
push rdi
sub rsp, 0x450
mov rdi, rdx
mov rbx, rcx
xor esi, esi
mov dword [rsp + 0x20], esi
xorps xmm0, xmm0
movups xmmword [rdx], xmm0
mov qword [rdx + 0x10], rsi
mov qword [rdx + 0x18], send
mov byte [rdx], sil
mov dword [rsp + 0x20], 1
mov dword [rax + 8], esi
lea r8, [rax + 8]
mov edx, 0x4004667f
mov rcx, qword [rcx + 8]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x180061fac
nop
mov r8d, dword [rsp + 0x460]
test r8d, r8d
je 0x180061fac
cmp r8d, 0x400
jbe 0x180061ef8
mov r8d, 0x400
mov dword [rsp + 0x460], r8d
xor r9d, r9d
lea rdx, [rsp + 0x50]
mov rcx, qword [rbx + 8]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x180061fac
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], send
mov byte [rsp + 0x28], 0
movsxd r8, eax
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x28]
call fcn.180026fb0
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.18005a160
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x180061f86
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180061f81
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180061fc4
call fcn.1800d95dc
mov dword [rsp + 0x460], esi
lea r8, [rsp + 0x460]
mov edx, 0x4004667f
mov rcx, qword [rbx + 8]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x180061ed0
mov rax, rdi
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.1800e5940
int3
Function at 0x180068770
Capabilities:
Create thread
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x18], r8
push rdi
push r14
push r15
sub rsp, 0x3a0
mov r14d, 2
cmp dword [0x1803a3308], 0
jne 0x1800687be
mov ecx, r14d
lea rdx, [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1800687be
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.1800ebf04
inc dword [0x1803a3308]
xor r8d, r8d
lea edx, [r8 + 1]
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsp + 0x48], rax
cmp rax, 0xffffffffffffffff
jne 0x1800687ec
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.1800ebf04
mov ecx, 4
call fcn.1800d95a0
mov dword [rax], 1
mov qword [rsp + 0x50], rax
lea rax, [0x180184430]
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x30], r14w
mov ecx, 0x1698
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x32], ax
xor r8d, r8d
lea edx, [r8 + 1]
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_socket]
mov rsi, rax
mov qword [rsp + 0x48], rax
cmp rax, 0xffffffffffffffff
jne 0x180068858
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.1800ebf04
jmp 0x180068898
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x180068889
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.1800ebf04
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x180068898
mov edx, 5
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_listen]
nop
lea rax, [0x180040080]
mov qword [0x1803a3310], rax
xor ebp, ebp
lea r15, [0x180184430]
nop
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_accept]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1800688d9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1800688d9
mov rbx, rbp
jmp 0x18006893a
mov ecx, 0x18
call fcn.1800d95a0
mov rbx, rax
mov qword [rsp + 0x3d0], rax
mov qword [rax], r15
mov qword [rax + 8], rdi
cmp dword [0x1803a3308], 0
jne 0x180068920
mov ecx, r14d
lea rdx, [rsp + 0x200]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x180068920
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.1800ebf04
inc dword [0x1803a3308]
mov ecx, 4
call fcn.1800d95a0
mov dword [rax], 1
mov qword [rbx + 0x10], rax
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], ebp
mov r9, rbx
lea r8, [0x180066df0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x1800688b0
Function at 0x18006f950
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 0x28]
mov edx, 1
call fcn.1800c8070
xor edx, edx
lea rcx, [rdx - 1]
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x18007cc20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov edx, dword [rcx + 0x10]
lea r11, [rcx + 0x10]
mov edi, edx
mov rbx, rcx
and edi, 7
je 0x18007cc85
cmp edx, edi
jge 0x18007cc7b
mov r9, qword [rcx + 8]
mov r10d, dword [rcx + 0x14]
mov rax, qword [rbx]
cmp rax, r9
jb 0x18007cc53
xor cl, cl
jmp 0x18007cc5c
movzx ecx, byte [rax]
inc rax
mov qword [rbx], rax
movzx eax, cl
mov ecx, edx
shl eax, cl
add edx, 8
or eax, r10d
mov dword [r11], edx
mov dword [rbx + 0x14], eax
mov r10d, eax
cmp edx, 0x18
jle 0x18007cc47
lea r11, [rbx + 0x10]
mov ecx, edi
shr dword [rbx + 0x14], cl
sub edx, edi
mov dword [r11], edx
xor r9d, r9d
mov ecx, edx
test edx, edx
jle 0x18007ccbe
mov eax, dword [rbx + 0x14]
lea rdx, [rsp + 0x30]
movzx r10d, al
nop word [rax + rax]
shr eax, 8
inc r9d
mov byte [rdx], r10b
lea rdx, [rdx + 1]
sub ecx, 8
mov dword [rbx + 0x14], eax
movzx r10d, al
test ecx, ecx
jg 0x18007cca0
mov dword [r11], ecx
movsxd rcx, r9d
cmp rcx, 4
jge 0x18007ccf2
mov r8, qword [rbx + 8]
nop dword [rax + rax]
mov rax, qword [rbx]
cmp rax, r8
jb 0x18007ccdc
xor dl, dl
jmp 0x18007cce5
movzx edx, byte [rax]
inc rax
mov qword [rbx], rax
mov byte [rsp + rcx + 0x30], dl
inc rcx
cmp rcx, 4
jl 0x18007ccd0
movzx eax, byte [rsp + 0x30]
movzx r8d, byte [rsp + 0x31]
movzx ecx, byte [rsp + 0x33]
shl r8d, 8
add r8d, eax
shl ecx, 8
movzx eax, byte [rsp + 0x32]
add ecx, eax
mov eax, r8d
xor eax, 0xffff
cmp ecx, eax
je 0x18007cd4f
mov edx, dword [0x1803a2034]
mov rax, qword gs:[0x58]
mov ecx, 0x18
mov rax, qword [rax + rdx*8]
lea rdx, str.zlib_corrupt
mov qword [rcx + rax], rdx
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [rbx]
mov edi, r8d
add rcx, rdi
cmp rcx, qword [rbx + 8]
jbe 0x18007cd8e
mov edx, dword [0x1803a2034]
mov rax, qword gs:[0x58]
mov ecx, 0x18
mov rax, qword [rax + rdx*8]
lea rdx, str.read_past_buffer
mov qword [rcx + rax], rdx
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rdx, qword [rbx + 0x18]
lea rax, [r8 + rdx]
cmp rax, qword [rbx + 0x28]
jbe 0x18007cda8
mov rcx, rbx
call fcn.18007c2f0
test eax, eax
je 0x18007cd42
mov rdx, qword [rbx]
mov r8, rdi
mov rcx, qword [rbx + 0x18]
call fcn.18010b0a0
add qword [rbx], rdi
mov eax, 1
add qword [rbx + 0x18], rdi
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x18008d2d0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x18008d304
movabs r10, 0x100000001b3
nop
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x18008d2f0
ret
Function at 0x1800911a0
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 0x18009126c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x18009126c
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 0x180091285
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 0x18009125c
cmp byte [rax], 0x5c
jne 0x180091256
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x180091256
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x180091242
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x180091253
test r8b, 0x10
jne 0x180091256
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x180091256
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.18008de80
test edi, edi
jne 0x1800911c0
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.18008de70
int3

Function at 0x1800973b0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x18009740d
lea rbx, [0x18017c120]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x1800973f4
cmp r10, 2
jb 0x1800973f4
cmp byte [r9], r8b
jne 0x1800973f4
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x1800973d0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x18009744f
lea rbx, [0x18017c120]
cmp r8b, 0x23
jne 0x180097433
cmp byte [r9], r8b
jne 0x180097433
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x180097420
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x180097590
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x1800975aa
mov qword [r8], 0
lea rdx, [0x18017b8b8]
call fcn.180097460
mov rbx, rax
test rax, rax
jne 0x1800975ca
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call fcn.1800eced4
mov esi, eax
cmp eax, 0xffffffff
je 0x180097698
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call fcn.1800eb368
test eax, eax
jne 0x180097698
mov rcx, rbx
call fcn.1800eced4
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x180097698
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call fcn.1800eb368
test eax, eax
jne 0x180097698
cmp rdi, 0xffffffffffffffff
je 0x180097698
mov rax, qword [0x1803a3560]
test rax, rax
je 0x18009763a
inc dword [rax + 0x3bc]
mov rcx, rdi
call fcn.1800e59cc
mov rsi, rax
test rax, rax
je 0x180097698
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call fcn.1800eaf98
mov rcx, rbx
cmp rax, rdi
je 0x180097686
call fcn.1800ea0e8
mov rax, qword [0x1803a3560]
test rax, rax
je 0x18009767c
dec dword [rax + 0x3bc]
mov rcx, rsi
call fcn.1800e59b8
jmp 0x1800976a0
call fcn.1800ea0e8
test r14, r14
je 0x180097693
mov qword [r14], rdi
mov rax, rsi
jmp 0x1800976a2
mov rcx, rbx
call fcn.1800ea0e8
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret