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

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x14036a3c8]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, 0xffff
movzx esi, dx
mov rbx, rcx
cmp di, dx
jne 0x14002cb81
xor eax, eax
jmp 0x14002cccf
mov rax, qword [rcx + 0x40]
mov r8, qword [rax]
test r8, r8
je 0x14002cbbe
mov r9, qword [rcx + 0x58]
movsxd r10, dword [r9]
lea rdx, [r8 + r10*2]
cmp r8, rdx
jae 0x14002cbbe
lea ecx, [r10 - 1]
movzx eax, si
mov dword [r9], ecx
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 2]
mov qword [rdx], rcx
mov word [r8], si
jmp 0x14002cccf
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xb0], rbp
je 0x14002ccc4
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x14002cc05
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub rdx, rcx
mov rax, qword [rbx + 0x38]
sar rdx, 1
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14002cc2e
movzx ecx, si
mov rdx, qword [rbx + 0x80]
call fcn.1402549c8
cmp ax, di
je 0x14002ccc4
movzx edi, si
jmp 0x14002ccc4
lea r8, [rsp + 0x48]
mov word [rsp + 0x40], si
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rsp + 0x42]
lea r8, [rsp + 0x78]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x50]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x40]
call qword [rax + gethostname]
test eax, eax
je 0x14002cc84
sub eax, 1
je 0x14002cc84
cmp eax, 2
jne 0x14002ccc4
movzx ecx, word [rsp + 0x40]
jmp 0x14002cc11
mov rbp, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rbp, rax
je 0x14002ccb1
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rbp
mov edx, 1
call fcn.140256278
cmp rbp, rax
jne 0x14002ccc4
lea rax, [rsp + 0x40]
mov byte [rbx + 0x72], 1
cmp qword [rsp + 0x50], rax
movzx eax, si
jne 0x14002ccc7
movzx eax, di
mov rbp, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140240e30
add rsp, 0x80
pop rdi
pop rsi
pop rbx
ret

Function at 0x14002e5d0
Capabilities:
Create directory
Delete directory

Disassembly:
push rbx
mov eax, 0x4e50
call fcn.140240e90
sub rsp, rax
mov rax, qword [0x14036a3c8]
xor rax, rsp
mov qword [rsp + 0x4e40], rax
mov rdx, rcx
lea r8, str.try_create_directory
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
test eax, eax
je 0x14002e631
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x14002e64b
lea r8, [0x140281a50]
lea rdx, str.testDirectoryPrivileges:CreateDirectory
lea rcx, str.no_privileges
call fcn.140036e10
mov eax, ebx
mov rcx, qword [rsp + 0x4e40]
xor rcx, rsp
call fcn.140240e30
add rsp, 0x4e50
pop rbx
ret
Function at 0x140030dc0
Capabilities:
Check if file exists
Copy file

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x14036a3c8]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rdx
mov rdi, rcx
lea rcx, [rsp + 0x20]
call fcn.140031b40
nop
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140030e7f
lea rdx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rdx, qword [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov esi, eax
test eax, eax
je 0x140030e7f
xor edx, edx
mov r8d, 0x200
lea rcx, [rsp + 0x40]
call fcn.140243780
mov r9d, 0xa
mov r8d, 0x100
lea rdx, [rsp + 0x40]
mov ecx, esi
call fcn.1402569a4
lea rdx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rdx, qword [rsp + 0x20]
lea r8, [rsp + 0x40]
lea rcx, str._patchProc__create_dir_fail
call fcn.140036e10
xor bl, bl
jmp 0x140030ea8
cmp qword [rbx + 0x18], 8
jb 0x140030e89
mov rbx, qword [rbx]
cmp qword [rdi + 0x18], 8
jb 0x140030e93
mov rdi, qword [rdi]
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, 1
sete bl
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140030ee6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140030ee1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140030f0e
call fcn.140240d18
movzx eax, bl
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140240e30
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.1402480bc
int3

Function at 0x1400317a0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x14036a3c8]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rcx
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x20], 0
call fcn.140033390
mov dword [rsp + 0x20], 1
mov rax, qword [rbx]
cmp dword [rax - 0x10], 0
jne 0x1400318b0
xor edx, edx
mov r8d, 0x20a
lea rcx, [rsp + 0x40]
call fcn.140243780
lea rdx, [rsp + 0x40]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
call fcn.140004c80
mov rcx, rax
test rax, rax
je 0x1400318d4
mov rax, qword [rax]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov rdi, 0xffffffffffffffff
cmp rax, 0x10000
jae 0x140031853
lea rax, [rsp + 0x40]
movzx edx, ax
lea rcx, [rsp + 0x28]
call fcn.140005650
jmp 0x14003187d
lea rcx, [rsp + 0x40]
mov rax, rdi
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140031860
mov r8d, eax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x28]
call fcn.14000ae10
nop
mov dword [rsp + 0x20], 3
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.140017160
nop
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x1400318b0
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rioctlsocket + 8]
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140240e30
mov rbx, qword [rsp + 0x278]
add rsp, 0x260
pop rdi
ret
mov ecx, 0x80004005
call fcn.140004b00
int3
Function at 0x140037ca0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x14036a3c8]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
xor r14b, r14b
cmp byte [0x14036e9ec], r14b
je 0x140037d01
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140037d08
lea r8, [0x140281a50]
mov rdx, rdi
lea rcx, str._ApplyPatch__src_file_not_exist
call fcn.140036e10
xor al, al
jmp 0x140037ed4
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140037d32
lea r8, [0x140281a50]
mov rdx, rsi
lea rcx, str._ApplyPatch__patch_file_not_exist
call fcn.140036e10
xor al, al
jmp 0x140037ed4
xor r15d, r15d
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], r15w
mov r8, 0xffffffffffffffff
inc r8
cmp word [rbx + r8*2], r15w
jne 0x140037d55
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.14000a410
nop
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.140031b40
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x140037dbf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140037dba
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140037f00
call fcn.140240d18
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], r15w
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140037e60
lea rdx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rdx, qword [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov r15d, eax
test eax, eax
je 0x140037e60
xor edx, edx
mov r8d, 0x200
lea rcx, [rsp + 0x60]
call fcn.140243780
mov r9d, 0xa
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, r15d
call fcn.1402569a4
lea rdx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rdx, qword [rsp + 0x20]
lea r8, [rsp + 0x60]
lea rcx, str._ApplyPatch__create_dir_fail
call fcn.140036e10
xor r14b, r14b
jmp 0x140037e92
mov rax, qword [0x14036e9f0]
test rax, rax
je 0x140037e7f
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call rax
movzx r14d, al
test al, al
jne 0x140037e92
mov r8, rsi
mov rdx, rdi
lea rcx, str._ApplyPatch__apply_patch_func__fail
call fcn.140036e10
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140037ed0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140037ecb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140037efa
call fcn.140240d18
movzx eax, r14b
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140240e30
mov rbx, qword [rsp + 0x2b8]
add rsp, 0x270
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.1402480bc
nop
call fcn.1402480bc
nop
int3
Function at 0x140050070
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x14036a3c8]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rdx
mov rdi, rcx
mov ebp, 0xa00000
test r8, r8
cmovne rbp, r8
mov rax, rdx
cmp qword [rdx + 0x18], 0x10
jb 0x1400500b0
mov rax, qword [rdx]
xor r14d, r14d
mov qword [rdx + 0x10], r14
mov byte [rax], r14b
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], r14w
lea r8d, [r14 + 2]
lea rdx, [0x140287158]
lea rcx, [rsp + 0x30]
call fcn.14000a410
nop
lea r8, [rsp + 0x30]
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.14004feb0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x14005013e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140050139
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140050288
call fcn.140240d18
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], r14w
mov rdi, qword [rsp + 0x28]
test rdi, rdi
je 0x14005024a
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, rdi
call fcn.140255ac8
test eax, eax
jne 0x14005024a
mov rcx, rdi
call fcn.140256010
mov rsi, rax
test rax, rax
js 0x14005024a
cmp rax, rbp
ja 0x14005024a
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call fcn.140255ac8
test eax, eax
jne 0x14005024a
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call fcn.1400096b0
mov rcx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1400501c3
mov rcx, qword [rbx]
mov r9, rdi
mov r8, rsi
mov edx, 1
call fcn.1402557b8
cmp rsi, rax
je 0x14005027e
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], reloc.WS2_32.dll_ntohs
movups xmm2, xmmword [rsp + 0x30]
movups xmm3, xmmword [rsp + 0x40]
movups xmm0, xmmword [rbx]
movups xmmword [rsp + 0x30], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rbx], xmm2
movups xmmword [rbx + 0x10], xmm3
psrldq xmm1, 8
movq rdx, xmm1
cmp rdx, 0x10
jb 0x14005024a
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140050245
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140050282
call fcn.140240d18
xor bl, bl
test rdi, rdi
je 0x140050259
mov rcx, rdi
call qword [rsp + 0x20]
nop
movzx eax, bl
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140240e30
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
mov bl, 1
jmp 0x14005024c
call fcn.1402480bc
int3
call fcn.1402480bc
int3
Function at 0x140061b00
Capabilities:
Read file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x3f]
sub rsp, 0xa8
mov rax, qword [0x14036a3c8]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rbx, r9
xor edi, edi
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x39]
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140061cbb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 0x26
je 0x140061cbe
mov qword [rbp - 0x11], rdi
mov qword [rbp - 1], rdi
mov qword [rbp + 7], 7
lea r8d, [rdi + 0x13]
lea rdx, str.ReadFile_get_error:
lea rcx, [rbp - 0x11]
call fcn.14000a410
mov edx, esi
lea rcx, [rbp + 0xf]
call fcn.140060790
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x140061b8d
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp - 0x11]
call fcn.14000a290
mov rbx, rax
mov qword [rbp - 0x31], rdi
mov qword [rbp - 0x21], rdi
mov qword [rbp - 0x19], 7
mov r8d, reloc.WLDAP32.dll_Ordinal_27
lea rdx, str.seven_zip::FileStream::Read
lea rcx, [rbp - 0x31]
call fcn.14000a410
mov rdx, rbx
lea rcx, [rbp - 0x31]
call fcn.1400347a0
mov rdx, qword [rbp - 0x19]
cmp rdx, 8
jb 0x140061c0e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140061c09
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140061cdf
call fcn.140240d18
mov qword [rbp - 0x21], rdi
mov qword [rbp - 0x19], 7
mov word [rbp - 0x31], di
mov rdx, qword [rbp + 0x27]
cmp rdx, 8
jb 0x140061c5e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140061c59
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140061cdf
call fcn.140240d18
mov qword [rbp + 0x1f], rdi
mov qword [rbp + 0x27], 7
mov word [rbp + 0xf], di
mov rdx, qword [rbp + 7]
cmp rdx, 8
jb 0x140061caa
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140061ca5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140061cdf
call fcn.140240d18
test esi, esi
jle 0x140061cb7
movzx esi, si
or esi, 0x80070000
mov eax, esi
jmp 0x140061cc7
mov edi, dword [rbp - 0x39]
test rbx, rbx
je 0x140061cc5
mov dword [rbx], edi
xor eax, eax
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140240e30
add rsp, 0xa8
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1402480bc
int3
Function at 0x1400622d0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x3f]
sub rsp, 0xa8
mov rax, qword [0x14036a3c8]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rbx, r9
xor esi, esi
mov dword [rbp - 0x39], esi
mov qword [rsp + 0x20], rsi
lea r9, [rbp - 0x39]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140062485
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov qword [rbp - 0x11], rsi
mov qword [rbp - 1], rsi
mov qword [rbp + 7], 7
lea r8d, [rsi + 0x14]
lea rdx, str.WriteFile_get_error:
lea rcx, [rbp - 0x11]
call fcn.14000a410
mov edx, edi
lea rcx, [rbp + 0xf]
call fcn.140060790
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x140062357
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp - 0x11]
call fcn.14000a290
mov rbx, rax
mov qword [rbp - 0x31], rsi
mov qword [rbp - 0x21], rsi
mov qword [rbp - 0x19], 7
mov r8d, 0x1c
lea rdx, str.seven_zip::FileStream::Write
lea rcx, [rbp - 0x31]
call fcn.14000a410
mov rdx, rbx
lea rcx, [rbp - 0x31]
call fcn.1400347a0
mov rdx, qword [rbp - 0x19]
cmp rdx, 8
jb 0x1400623d8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400623d3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400624a9
call fcn.140240d18
mov qword [rbp - 0x21], rsi
mov qword [rbp - 0x19], 7
mov word [rbp - 0x31], si
mov rdx, qword [rbp + 0x27]
cmp rdx, 8
jb 0x140062428
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140062423
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400624a9
call fcn.140240d18
mov qword [rbp + 0x1f], rsi
mov qword [rbp + 0x27], 7
mov word [rbp + 0xf], si
mov rdx, qword [rbp + 7]
cmp rdx, 8
jb 0x140062474
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006246f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400624a9
call fcn.140240d18
test edi, edi
jle 0x140062481
movzx edi, di
or edi, 0x80070000
mov eax, edi
jmp 0x140062491
test rbx, rbx
je 0x14006248f
mov eax, dword [rbp - 0x39]
mov dword [rbx], eax
xor eax, eax
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140240e30
add rsp, 0xa8
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1402480bc
int3
Function at 0x1400656d0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rbx, r8
mov r9, rcx
movzx r8d, byte [r8 + 0x10]
movabs rcx, 0x100000001b3
mov r14, rdx
movabs rax, 0xcbf29ce484222325
xor r8, rax
movzx eax, byte [rbx + 0x11]
mov rdx, qword [r9 + 0x30]
imul r8, rcx
xor r8, rax
movzx eax, byte [rbx + 0x12]
imul r8, rcx
xor r8, rax
movzx eax, byte [rbx + 0x13]
imul r8, rcx
xor r8, rax
imul r8, rcx
and rdx, r8
shl rdx, 4
add rdx, qword [r9 + 0x18]
mov rax, qword [rdx]
cmp qword [rdx + 8], rbx
jne 0x140065763
cmp rax, rbx
jne 0x140065759
mov rax, qword [r9 + 8]
mov qword [rdx], rax
mov qword [rdx + 8], rax
jmp 0x14006576e
mov rax, qword [rbx + 8]
mov qword [rdx + 8], rax
jmp 0x14006576e
cmp rax, rbx
jne 0x14006576e
mov rax, qword [rbx]
mov qword [rdx], rax
mov rbp, qword [rbx]
dec qword [r9 + 0x10]
mov rax, qword [rbx + 8]
mov qword [rax], rbp
mov rax, qword [rbx + 8]
mov qword [rbp + 8], rax
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x1400657c3
mov qword [rsp + 0x30], rsi
mov esi, 0xffffffff
mov eax, esi
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x1400657be
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
lock xadd dword [rdi + 0xc], esi
cmp esi, 1
jne 0x1400657be
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + ioctlsocket]
mov rsi, qword [rsp + 0x30]
mov edx, Ordinal_41
mov rcx, rbx
call fcn.140240d18
mov rbx, qword [rsp + 0x38]
mov rax, r14
mov rdi, qword [rsp + 0x48]
mov qword [r14], rbp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140067db0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x140067f72
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x40], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.14000eb00
mov qword [rsi + 0x38], rdi
lea rax, [rdi - 1]
mov qword [rsi + 0x30], rax
mov rcx, qword [rsi + 8]
mov rcx, qword [rcx]
mov rdx, rcx
cmp rcx, rbx
je 0x140067f37
mov qword [rsp + 0x38], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rcx + 0x11]
movzx r9d, byte [rcx + 0x10]
mov r11, qword [rsi + 0x30]
xor r9, rbp
mov rdx, qword [rdx]
imul r9, rdi
xor r9, rax
movzx eax, byte [rcx + 0x12]
imul r9, rdi
xor r9, rax
movzx eax, byte [rcx + 0x13]
imul r9, rdi
xor r9, rax
imul r9, rdi
and r11, r9
shl r11, 4
add r11, qword [rsi + 0x18]
mov r10, qword [r11]
cmp r10, rbx
jne 0x140067ea3
mov qword [r11], rcx
mov qword [r11 + 8], rcx
jmp 0x140067f26
mov rax, qword [r11 + 8]
mov r9d, dword [rcx + 0x10]
cmp r9d, dword [rax + 0x10]
jne 0x140067ee0
mov r10, qword [rax]
cmp r10, rcx
je 0x140067eda
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], r10
mov rax, qword [r10 + 8]
mov qword [rax], rcx
mov qword [r10 + 8], r8
mov qword [rdx + 8], r9
mov qword [rcx + 8], rax
mov qword [r11 + 8], rcx
jmp 0x140067f26
mov r8, rax
cmp r10, rax
je 0x140067f02
nop dword [rax + rax]
mov rax, qword [rax + 8]
mov r8, rax
cmp r9d, dword [rax + 0x10]
je 0x140067f4c
cmp r10, rax
jne 0x140067ef0
mov r10, qword [rcx + 8]
mov qword [r10], rdx
mov r9, qword [rdx + 8]
mov qword [r9], r8
mov rax, qword [r8 + 8]
mov qword [rax], rcx
mov qword [r8 + 8], r9
mov qword [rdx + 8], r10
mov qword [rcx + 8], rax
mov qword [r11], rcx
mov rcx, rdx
cmp rdx, rbx
jne 0x140067e50
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov r10, qword [rax]
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], r10
mov rax, qword [r10 + 8]
mov qword [rax], rcx
mov qword [r10 + 8], r8
mov qword [rdx + 8], r9
mov qword [rcx + 8], rax
jmp 0x140067f26
lea rcx, str.invalid_hash_bucket_count
call fcn.14023b9b4
int3
Function at 0x14006ded0
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
lea ecx, [rbx + 0x11]
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 8
test ax, ax
cmovs ebx, ecx
mov ecx, 2
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x14006deff
or ebx, 2
mov ecx, 1
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x14006df12
or ebx, 1
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x14006df25
or ebx, 4
mov ecx, reloc.WS2_32.dll_select
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x14006df38
or ebx, 0x20
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x140071410
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov rdi, rcx
mov r15, r9
add rcx, 0x358
mov r14, r8
mov esi, edx
xor ebx, ebx
call fcn.1400691a0
test eax, eax
jle 0x140071499
mov edx, ebx
mov byte [rsp + 0x90], 0
lea rcx, [rdi + 0x358]
call fcn.1400687d0
lea rcx, [rsp + 0x90]
mov r9, r15
mov qword [rsp + 0x20], rcx
mov r8, r14
mov edx, esi
mov rcx, rax
mov r10, qword [rax]
call qword [r10]
cmp byte [rsp + 0x90], 0
jne 0x14007163a
lea rcx, [rdi + 0x358]
inc ebx
call fcn.1400691a0
cmp ebx, eax
jl 0x140071445
sub esi, 0x100
je 0x1400715ac
sub esi, 4
je 0x140071529
cmp esi, 2
jne 0x140071590
cmp qword [rdi + 0x128], 0
je 0x140071590
mov ecx, r14d
mov dword [rsp + 0x90], 0
call fcn.14025984c
mov rcx, qword [rdi + 0x128]
lea r8, [rsp + 0x90]
mov word [rsp + 0x90], ax
lea rdx, [0x140073c60]
mov r9d, 0x80000012
mov rax, qword [rcx]
call qword [rax + 0x340]
mov rbx, rax
test rax, rax
je 0x140071590
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x2e0]
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 0xf8]
mov al, 1
jmp 0x140071592
mov rax, qword [rdi + 0x130]
test rax, rax
je 0x140071590
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
mov rax, qword [rdi + 0x160]
mov qword [rsp + 0x4c], rax
mov qword [rsp + 0x30], 6
mov qword [rsp + 0x40], 0
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x54], r14w
call fcn.14006ded0
mov word [rsp + 0x56], ax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [rdi + 0x130]
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x48], eax
mov rax, qword [rcx]
call qword [rax + 0x360]
xor al, al
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
cmp r14, 9
jne 0x140071641
mov rcx, qword [rdi + 0x130]
test rcx, rcx
je 0x14007161b
mov rax, qword [rcx]
call qword [rax + 0x290]
test al, al
je 0x14007161b
mov rcx, qword [rdi + 0x130]
mov rax, qword [rcx]
call qword [rax + 0x2a8]
test al, al
je 0x14007161b
mov rcx, qword [rdi + 0x130]
mov rax, qword [rcx]
call qword [rax + reloc.WLDAP32.dll_Ordinal_216]
mov rcx, rax
lea rdx, str.RichEdit
call fcn.140241fb0
test rax, rax
je 0x14007161b
mov rcx, qword [rdi + 0x130]
call fcn.14008a3a0
test al, al
jne 0x140071590
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
mov rcx, rdi
setns dl
xor r9d, r9d
xor r8d, r8d
call fcn.140072cc0
mov al, 1
jmp 0x140071592
cmp r14, 0x75
jne 0x140071590
lea ecx, [r14 - 0x65]
call qword [sym.imp.USER32.dll_GetKeyState]
mov r9b, 1
mov rcx, rdi
test ax, ax
setns dl
xor r8d, r8d
call fcn.140072cc0
mov al, 1
jmp 0x140071592