joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400cafe0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
cmp byte [rcx + 0xf1e], 0
movsxd r10, r9d
je 0x1400cb104
cmp r8d, 0xff
jne 0x1400cb041
lea eax, [r10 - 0xec]
cmp eax, 0x13
ja 0x1400cb02b
lea r8, [0x140000000]
mov r9, qword [r8 + r10*8 + 0xf87c0]
mov r8, rdx
lea rdx, str._s_IAC__s_n
add rsp, 0x38
jmp fcn.1400a78f0
mov r8, rdx
mov r9d, r10d
lea rdx, str._s_IAC__d_n
add rsp, 0x38
jmp fcn.1400a78f0
cmp r8d, 0xfb
jne 0x1400cb053
lea r9, str.WILL
jmp 0x1400cb091
cmp r8d, 0xfc
jne 0x1400cb065
lea r9, str.WONT
jmp 0x1400cb091
cmp r8d, 0xfd
jne 0x1400cb077
lea r9, [0x1400f91e4]
jmp 0x1400cb091
xor r9d, r9d
lea rax, str.DONT
cmp r8d, 0xfe
cmove r9, rax
test r9, r9
je 0x1400cb0ed
cmp r10d, 0x27
jg 0x1400cb0c4
lea r8, [0x140000000]
mov r8, qword [r8 + r10*8 + 0xf8de0]
test r8, r8
jne 0x1400cb0d4
mov r8, rdx
mov dword [rsp + 0x20], r10d
lea rdx, str._s__s__d_n
call fcn.1400a78f0
add rsp, 0x38
ret
cmp r10d, 0xff
jne 0x1400cb0ab
lea r8, str.EXOPL
mov qword [rsp + 0x20], r8
mov r8, rdx
lea rdx, str._s__s__s_n
call fcn.1400a78f0
add rsp, 0x38
ret
mov r9d, r8d
mov dword [rsp + 0x20], r10d
mov r8, rdx
lea rdx, str._s__d__d_n
call fcn.1400a78f0
add rsp, 0x38
ret

Function at 0x1400cb450
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx]
mov edi, r8d
mov esi, edx
mov byte [rax + 0x10], 0xff
xor r9d, r9d
mov byte [rax + 0x11], sil
mov rbx, rcx
mov byte [rax + 0x12], dil
mov rcx, qword [rcx + 0x4c0]
lea rdx, [rax + 0x10]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1400cb4af
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400a7770
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.1400cafe0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400cb660
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x1400cb808
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1e0]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x1400cb6c5
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x1400cb6c5
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1400cb6c5
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x1400cb6fc
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x1400cb752
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400cb752
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400cb752
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400cb752
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400cb752
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.1400cb110
mov rcx, qword [r14 + 0x4c0]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x1400cb7b4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400a7770
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.1400cb4e0
mov rcx, qword [r14 + 0x4c0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1400cb800
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400a7770
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x1400ccf70
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x140109140]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x1400cd005
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x1400cd066
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.1400a7770
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400e0a80
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x1400cd121
sub ecx, 1
je 0x1400cd194
sub ecx, 1
je 0x1400cd0d0
cmp ecx, 1
je 0x1400cd0b3
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1400f6c40]
call fcn.1400a7770
jmp 0x1400cd194
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.1400ccca0
test eax, eax
je 0x1400cd194
jmp 0x1400cd03a
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x1400cd194
sub rax, rsi
cmp rax, rbp
jae 0x1400cd194
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.1400a78f0
jmp 0x1400cd194
cmp r8d, 4
jle 0x1400cd194
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x1400cd194
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.1400a7690
mov esi, eax
test eax, eax
je 0x1400cd173
mov edx, 5
mov rcx, rbx
call fcn.1400cdc60
mov eax, esi
jmp 0x1400cd03a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.1400b6090
mov rcx, r14
call fcn.1400b6370
test eax, eax
je 0x1400cd038
mov edx, 5
mov rcx, rbx
call fcn.1400cdc60
mov eax, Ordinal_45
jmp 0x1400cd03a
Function at 0x1400dff30
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1400dff72
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400dffb9
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400e0012
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1400dffd0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400e0053
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400fc3ca]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400fc3cb]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400e0020
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x1400e007c
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 0x1400e00b6
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400e00bb
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 0x1400e0104
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 0x1400e0104
dec r8
sub rdx, 1
jne 0x1400e00ea
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1400e15a0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400e15ea
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400e15ea
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400e15ea
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400e15ea
cmp dword [rcx + 0x84], 0xe
jbe 0x1400e15ea
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400e15ec
xor al, al
add rsp, 0x28
ret
Function at 0x18000c060
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [rcx + 0x10]
mov r10d, ecx
and r10d, 7
je 0x18000c094
cmp ecx, r10d
jge 0x18000c082
mov rcx, rbx
call fcn.18000b850
mov eax, dword [rbx + 0x14]
mov ecx, r10d
shr eax, cl
sub dword [rbx + 0x10], r10d
mov ecx, dword [rbx + 0x10]
mov dword [rbx + 0x14], eax
xor r8d, r8d
mov eax, ecx
test ecx, ecx
jle 0x18000c0ce
mov ecx, dword [rbx + 0x14]
lea rdx, [rsp + 0x30]
movzx r9d, cl
nop dword [rax]
shr ecx, 8
inc r8d
mov byte [rdx], r9b
lea rdx, [rdx + 1]
sub eax, 8
mov dword [rbx + 0x14], ecx
movzx r9d, cl
test eax, eax
jg 0x18000c0b0
mov dword [rbx + 0x10], eax
test eax, eax
jns 0x18000c0fd
mov edx, dword [0x1801f2f24]
mov rax, qword gs:[0x58]
mov ecx, 0x28
mov rax, qword [rax + rdx*8]
lea rdx, str.zlib_corrupt
mov qword [rcx + rax], rdx
xor eax, eax
add rsp, 0x20
pop rbx
ret
movsxd rcx, r8d
cmp rcx, 4
jge 0x18000c12f
mov r8, qword [rbx + 8]
mov rax, qword [rbx]
nop dword [rax]
cmp rax, r8
jb 0x18000c119
xor dl, dl
jmp 0x18000c122
movzx edx, byte [rax]
inc rax
mov qword [rbx], rax
mov byte [rsp + rcx + 0x30], dl
inc rcx
cmp rcx, 4
jl 0x18000c110
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
jne 0x18000c0d2
mov rcx, qword [rbx]
mov qword [rsp + 0x38], rdi
mov edi, r8d
add rcx, rdi
cmp rcx, qword [rbx + 8]
jbe 0x18000c1a4
mov edx, dword [0x1801f2f24]
mov rax, qword gs:[0x58]
mov ecx, 0x28
mov rax, qword [rax + rdx*8]
lea rdx, str.read_past_buffer
mov qword [rcx + rax], rdx
mov rdi, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rdx, qword [rbx + 0x18]
lea rax, [r8 + rdx]
cmp rax, qword [rbx + 0x28]
jbe 0x18000c1be
mov rcx, rbx
call fcn.18000b990
test eax, eax
je 0x18000c197
mov rdx, qword [rbx]
mov r8, rdi
mov rcx, qword [rbx + 0x18]
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx], rdi
mov eax, 1
add qword [rbx + 0x18], rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
Function at 0x180025610
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x2b0
mov rax, qword [0x180166880]
xor rax, rsp
mov qword [rsp + 0x2a8], rax
mov qword [rsp + 0x38], rsp
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x1800257a5
lea rdx, [0x180112418]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x1800257a5
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov qword [rsp + 0x48], rax
cmp rax, 0xffffffffffffffff
je 0x1800257a5
mov dword [rsp + 0x60], 0x238
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1800257a5
mov byte [rsp + 0x30], 0
xor esi, esi
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x2a0], esi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rsp + 0x34], eax
mov r8d, dword [rsp + 0x68]
cmp eax, r8d
jne 0x1800256e0
lea rdx, [0x18002576a]
mov rcx, qword [rsp + 0x38]
call sub.VCRUNTIME140.dll__local_unwind
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x18002570b
lea rdx, [0x18002576a]
mov rcx, qword [rsp + 0x38]
call sub.VCRUNTIME140.dll__local_unwind
mov qword [rsp + 0x20], rsi
mov r9d, 4
lea r8, [rsp + 0x2a0]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x18002573f
lea rdx, [0x18002576a]
mov rcx, qword [rsp + 0x38]
call sub.VCRUNTIME140.dll__local_unwind
mov eax, dword [rbx]
cmp dword [rsp + 0x2a0], eax
je 0x180025761
mov byte [rsp + 0x30], 1
lea rdx, [0x18002578e]
mov rcx, qword [rsp + 0x38]
call sub.VCRUNTIME140.dll__local_unwind
nop
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x18002578e
xor esi, esi
mov rbx, qword [rsp + 0x50]
mov eax, dword [rsp + 0x34]
jmp 0x1800256c5
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x18002579e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [rsp + 0x30]
jmp 0x1800257a7
xor al, al
mov rcx, qword [rsp + 0x2a8]
xor rcx, rsp
call fcn.1800e1e90
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x1800257d0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x58
call fcn.180025610
test al, al
je 0x18002584d
movdqa xmm0, xmmword [0x180136ad0]
xor eax, eax
movdqa xmm1, xmmword [0x180136ac0]
movdqu xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x40], 0xd0f09edb
movdqu xmmword [rsp + 0x30], xmm1
mov dword [rsp + 0x44], 0xdedfc2d4
mov dword [rsp + 0x48], 0x100c9df
nop dword [rax]
nop word [rax + rax]
lea edx, [rax - 0x6e]
xor byte [rsp + rax + 0x20], dl
inc rax
cmp rax, 0x2a
jb 0x180025820
mov rcx, qword [0x180180c70]
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x4b], 0
call fcn.18006da40
mov ecx, 0x1a4
int 0x29
add rsp, 0x58
ret
Function at 0x1800259e0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
call fcn.180025b40
mov rdi, rax
movabs r8, 0x100000001b3
movabs rax, 0xcbf29ce484222325
mov rcx, rbx
shr rcx, 8
movzx edx, cl
movzx ecx, bl
xor rcx, rax
mov rax, rbx
shr rax, 0x10
imul rcx, r8
xor rdx, rcx
movzx ecx, al
imul rdx, r8
mov rax, rbx
xor rdx, rcx
shr rax, 0x18
imul rdx, r8
movzx ecx, al
mov rax, rbx
xor rdx, rcx
shr rax, 0x20
imul rdx, r8
movzx ecx, al
mov rax, rbx
xor rdx, rcx
shr rax, 0x28
imul rdx, r8
movzx ecx, al
mov rax, rbx
xor rdx, rcx
shr rax, 0x30
imul rdx, r8
movzx ecx, al
mov rax, rbx
xor rdx, rcx
shr rax, 0x38
mov rcx, qword [rdi + 0x480]
imul rdx, r8
xor rdx, rax
imul rdx, r8
and rcx, rdx
mov rdx, qword [rdi + 0x458]
shl rcx, 4
add rcx, qword [rdi + 0x468]
mov rax, qword [rcx + 8]
cmp rax, rdx
je 0x180025ac6
mov rcx, qword [rcx]
cmp rbx, qword [rax + 0x10]
je 0x180025ac8
cmp rax, rcx
je 0x180025ac6
mov rax, qword [rax + 8]
cmp rbx, qword [rax + 0x10]
jne 0x180025ab5
jmp 0x180025ac8
xor eax, eax
test rax, rax
cmove rax, rdx
cmp rax, rdx
je 0x180025b14
mov rdx, qword [rax + 0x18]
test rdx, rdx
je 0x180025b0b
mov r8, qword [0x1801f2f58]
mov rcx, rdi
mov r8, qword [r8 + 0x40]
call fcn.1800d6b20
mov rax, qword [0x1801f2f58]
mov rcx, rdi
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [rax + 0xf0]
lea rdx, str.Failed_to_find_handler_for_native__p
jmp 0x180025b1b
lea rdx, str.Failed_to_find_current_hash_for_native__p
mov rcx, qword [0x180180c70]
mov r8, rbx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.18006da40
Function at 0x180029a50
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x180166880]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor r12d, r12d
lea rbx, str.shop_controller
mov r15d, edx
mov r11d, r12d
mov ebp, r9d
lea rdx, [0x180117f6f]
mov r14d, r8d
movzx r10d, byte [rbx]
movzx eax, r10b
or al, 0x20
movzx ecx, al
lea r9d, [r10 - 0x41]
cmp r9b, 0x19
cmova ecx, r10d
inc rbx
movsx eax, cl
add eax, r11d
imul r11d, eax, 0x401
mov eax, r11d
shr eax, 6
xor r11d, eax
cmp rbx, rdx
jne 0x180029a90
lea eax, [r11 + r11*8]
mov ecx, eax
shr ecx, 0xb
xor ecx, eax
mov rax, qword [0x1801f2f58]
imul r9d, ecx, 0x8001
mov rcx, qword [rax + 0x28]
mov rdx, qword [rcx]
movzx eax, word [rcx + 8]
lea r8, [rdx + rax*8]
cmp rdx, r8
je 0x180029c10
mov rcx, qword [rdx]
test rcx, rcx
je 0x180029b0c
cmp dword [rcx + 8], r12d
je 0x180029b0c
cmp dword [rcx + 0xc], r9d
je 0x180029b1a
add rdx, 8
cmp rdx, r8
jne 0x180029af8
jmp 0x180029c10
mov rax, qword gs:[0x58]
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rdi
mov rdi, qword [rax]
mov rsi, qword [rdi + 0x848]
mov qword [rdi + 0x848], rcx
mov byte [rdi + 0x850], 1
call fcn.180025b40
movabs rcx, 0xa65568121df2ea26
mov dword [rax + 8], r12d
mov dword [rax + 0x18], r12d
call fcn.1800259e0
call fcn.180025b40
mov rcx, qword [rax]
cmp dword [rcx], r12d
je 0x180029b8f
call fcn.180025b40
movabs rcx, 0xfa336e7f40c0a0d0
mov dword [rax + 8], r12d
mov dword [rax + 0x18], r12d
call fcn.1800259e0
call fcn.180025b40
mov dword [rsp + 0x28], 1
lea rcx, [rsp + 0x30]
mov r9d, r14d
mov dword [rsp + 0x20], ebp
mov r8d, r15d
mov dword [rsp + 0x30], 0xffffffff
mov edx, 0x57de404e
call fcn.180029840
test eax, eax
je 0x180029bf3
mov ebx, dword [rsp + 0x30]
call fcn.180025b40
mov dword [rax + 8], r12d
mov dword [rax + 0x18], r12d
call fcn.180025b40
mov edx, dword [rax + 8]
mov rcx, qword [rax + 0x10]
mov dword [rcx + rdx*8], ebx
movabs rcx, 0x39be7cea8d9cc8e6
inc dword [rax + 8]
call fcn.1800259e0
call fcn.180025b40
test rsi, rsi
mov qword [rdi + 0x848], rsi
mov rsi, qword [rsp + 0x60]
setne al
mov byte [rdi + 0x850], al
mov rdi, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1800e1e90
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
ret
Function at 0x18002f3b0
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x48
test dl, dl
je 0x18002f5cb
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x40], rdi
movaps xmmword [rsp + 0x30], xmm6
call fcn.180025b40
xor edi, edi
movabs rsi, 0xd80958fc74e988a6
mov rcx, rsi
mov dword [rax + 8], edi
mov dword [rax + 0x18], edi
call fcn.1800259e0
call fcn.180025b40
mov rcx, qword [rax]
mov ebx, dword [rcx]
call fcn.180025b40
mov dword [rax + 8], edi
mov dword [rax + 0x18], edi
call fcn.180025b40
mov edx, dword [rax + 8]
mov rcx, qword [rax + 0x10]
mov dword [rcx + rdx*8], ebx
inc dword [rax + 8]
call fcn.180025b40
mov edx, dword [rax + 8]
mov rcx, qword [rax + 0x10]
mov dword [rcx + rdx*8], 0xa
inc dword [rax + 8]
call fcn.180025b40
mov edx, dword [rax + 8]
mov rcx, qword [rax + 0x10]
mov dword [rcx + rdx*8], 0xa
inc dword [rax + 8]
call fcn.180025b40
mov edx, dword [rax + 8]
mov rcx, qword [rax + 0x10]
mov dword [rcx + rdx*8], edi
inc dword [rax + 8]
call fcn.180025b40
mov edx, dword [rax + 8]
mov rcx, qword [rax + 0x10]
mov dword [rcx + rdx*8], 1
inc dword [rax + 8]
call fcn.180025b40
mov edx, dword [rax + 8]
mov rcx, qword [rax + 0x10]
mov dword [rcx + rdx*8], 1
inc dword [rax + 8]
call fcn.180025b40
mov edx, dword [rax + 8]
mov rcx, qword [rax + 0x10]
mov dword [rcx + rdx*8], 1
movabs rcx, 0xae99fb955581844a
inc dword [rax + 8]
call fcn.1800259e0
call fcn.180025b40
lea ecx, [rdi + 0x57]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov rbx, qword [rsp + 0x50]
xorps xmm6, xmm6
test ax, ax
je 0x18002f4f3
call fcn.180025b40
mov rcx, rsi
mov dword [rax + 8], edi
mov dword [rax + 0x18], edi
call fcn.1800259e0
call fcn.180025b40
movss xmm3, dword [0x180136648]
xorps xmm2, xmm2
movss dword [rsp + 0x20], xmm6
mov rcx, qword [rax]
mov edx, dword [rcx]
call fcn.18002d1f0
mov ecx, 0x53
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x18002f536
call fcn.180025b40
mov rcx, rsi
mov dword [rax + 8], edi
mov dword [rax + 0x18], edi
call fcn.1800259e0
call fcn.180025b40
movss xmm3, dword [0x1801367cc]
xorps xmm2, xmm2
movss dword [rsp + 0x20], xmm6
mov rcx, qword [rax]
mov edx, dword [rcx]
call fcn.18002d1f0
mov ecx, 0x41
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x18002f579
call fcn.180025b40
mov rcx, rsi
mov dword [rax + 8], edi
mov dword [rax + 0x18], edi
call fcn.1800259e0
call fcn.180025b40
movss xmm2, dword [0x180136648]
xorps xmm3, xmm3
movss dword [rsp + 0x20], xmm6
mov rcx, qword [rax]
mov edx, dword [rcx]
call fcn.18002d1f0
mov ecx, 0x44
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x18002f5bc
call fcn.180025b40
mov rcx, rsi
mov dword [rax + 8], edi
mov dword [rax + 0x18], edi
call fcn.1800259e0
call fcn.180025b40
movss xmm2, dword [0x1801367cc]
xorps xmm3, xmm3
movss dword [rsp + 0x20], xmm6
mov rcx, qword [rax]
mov edx, dword [rcx]
call fcn.18002d1f0
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x58]
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
ret