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

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x140032b08]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14000d6d4
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14000d73a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14000d771
test eax, eax
js 0x14000d74b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14000d764
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.1400085b0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140004b90
mov ecx, 7
int 0x29
ud2

Function at 0x14000e6a0
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x14003b121]
mov ecx, 0x10
mov edx, 8
call fcn.140002e20
test rax, rax
je 0x14000e77f
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x14000e810]
xor edi, edi
xor ecx, ecx
mov rdx, rsi
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14000e771
mov rcx, qword [rbx]
mov qword [rbp - 0x18], rbx
mov rax, qword [rbx + 8]
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x10], rax
call qword [rax]
mov rax, qword [rbp - 0x10]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14000e748
mov r8, qword [rax + 0x10]
mov rcx, qword [rbp - 0x20]
call fcn.140002e30
mov edx, 0x10
mov r8d, 8
mov rcx, qword [rbp - 0x18]
call fcn.140002e30
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp - 0x10], r14
mov qword [rbp - 0x18], rdi
mov ecx, 8
mov edx, 0x10
call fcn.14001ea90
ud2
Function at 0x14001be10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14001be8a
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x14001be80
cmp r10, r11
jb 0x14001bf23
cmp r10, rdx
ja 0x14001bf37
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14001be82
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14001be60
jmp 0x14001bef7
ja 0x14001be8a
mov r11, r10
cmp rax, r8
jne 0x14001be32
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14001befb
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14001bed0
mov r8, r10
sub ecx, r9d
jns 0x14001beee
jmp 0x14001befd
cmp r10, rdx
je 0x14001bf09
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14001befd
xor al, 1
cmp r8, rdx
jne 0x14001beb0
jmp 0x14001befd
xor eax, eax
jmp 0x14001befd
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.called__Option::unwrap____on_a__None__valuefrom_str_radix_int:_must_lie_in_the_range___2__36_____found
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14001ebb0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14001f080
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14001f000
ud2

Function at 0x14001dae0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001db2a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001db2a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001db2a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001db2a
cmp dword [rcx + 0x84], 0xe
jbe 0x14001db2a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001db2c
xor al, al
add rsp, 0x28
ret
Function at 0x140dff77b
Capabilities:
Execute anti-debugging instructions

Disassembly:
push rsi
mov sil, bl
not sil
pushfq
bt esi, 0x32
push rax
btr ax, bp
push r13
push r15
bts ax, dx
btc eax, 0xae
rcr sil, 0xbd
push r11
push rcx
cwde
lahf
cdqe
push rbp
push r8
push r14
rcr r11b, 0x12
cmovle si, bx
test r14b, 0x80
push r9
or r11b, cl
cdqe
mov sil, bl
push r10
mov r11w, di
rcl r8b, cl
cmp si, 0x5b82
push rdx
rcl rsi, cl
push r12
rdtsc
rcl r8b, cl
push rbx
sub si, r11w
jmp 0x140ed0565
push rdi
add edi, r12d
movzx rdi, r8w
xor dword [rsp], ebx
dec di
pop rdi
clc
movsxd rbx, ebx
add rsi, rbx
jmp 0x140ebd1a4
ror ebx, 1
clc
neg ebx
jmp 0x140e44388
add ebx, 0x150d73c2
ror ebx, 2
inc ebx
xor ebx, 0x1d8c1c87
stc
clc
jmp 0x140e5e1b7
jmp rsi
push rdi
movabs r11, 0
cmp r12b, 0xeb
bswap rbp
setg bpl
push r11
rcr bl, 0x72
mov r8, qword [rsp + 0x90]
shr esi, cl
rdtsc
bts bx, sp
bswap r8d
test dh, 0xa2
neg bpl
movsx dx, r11b
xor r8d, 0x6ec542b0
bt rbp, r14
movzx eax, sp
btc di, r12w
ror r8d, 1
ror eax, 0xe8
rdtsc
not r8d
lea r8, [r8 + r11]
rdtsc
dec dh
cmc
movabs rax, 0x100000000
lea r8, [r8 + rax]
not sil
bt bx, 0x89
movsx rsi, di
mov rbp, rsp
dec si
cwd
sub rsp, 0x180
and rsp, 0xfffffffffffffff0
mov rdi, r8
rcr edx, 0xfd
xor si, r12w
cmp bp, ax
movabs rdx, 0
neg bl
cmc
xchg bl, sil
sub rdi, rdx
lea rsi, [0x140ed0615]
mov bx, 0x3af7
shld rbx, rbx, 0xc
sub r8, 4
sub rbx, rbp
mov ebx, dword [r8]
stc
test r11w, r8w
xor ebx, edi
stc
test r9d, 0x64b4341e
neg ebx
jmp 0x140e8e31c
Function at 0x1400021b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1400021cd
xor eax, eax
jmp 0x1400021d2
mov eax, 1
add rsp, 0x28
ret

Function at 0x140002280
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x38
mov r8d, 0x104
lea rdx, [0x1400cd050]
lea rcx, str.APPDATA
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea rdx, str.javajre
lea rcx, [0x1400cd050]
call fcn.14005dd80
xor eax, eax
test eax, eax
je 0x1400022cc
lea rdx, [0x140083394]
lea rcx, [0x1400cd050]
call fcn.14005dd80
jmp 0x1400022df
lea rdx, [0x1400833ec]
lea rcx, [0x1400cd050]
call fcn.14005dd80
lea rcx, [0x1400cd050]
call fcn.14005def0
mov dword [rsp + 0x20], eax
lea rdx, [0x140084268]
lea rcx, [0x1400cd050]
call fcn.14005dd80
lea rcx, [0x1400cd050]
call fcn.1400021b0
cmp eax, 1
jne 0x140002346
movsxd rax, dword [rsp + 0x20]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0x104
jae 0x14000232a
jmp 0x14000232f
call fcn.140059a40
lea rax, [0x1400cd050]
mov rcx, qword [rsp + 0x28]
mov byte [rax + rcx], 0
mov eax, 1
jmp 0x140002348
xor eax, eax
add rsp, 0x38
ret
Function at 0x1400026a0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
lea rdx, str.Unable_to_find_Java
lea rcx, [0x1400cdd50]
call fcn.140002e80
mov eax, 1
imul rax, rax, 0
lea rcx, [0x1400cd050]
movsx eax, byte [rcx + rax]
test eax, eax
jne 0x1400026fd
call fcn.1400021e0
test eax, eax
jne 0x1400026fd
call fcn.140002360
test eax, eax
jne 0x1400026fd
call fcn.140002280
test eax, eax
jne 0x1400026fd
lea rcx, [0x1400cdd50]
call fcn.140001000
xor eax, eax
jmp 0x1400027cc
mov edx, 0x25
lea rcx, [0x1400cd050]
call fcn.140002c80
test rax, rax
je 0x140002740
mov r8d, 0x104
lea rdx, [0x1400cd160]
lea rcx, [0x1400cd050]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea rdx, [0x1400cd160]
lea rcx, [0x1400cd050]
call fcn.14005de20
lea rdx, [0x1400cd050]
lea rcx, [0x1400cd270]
call fcn.14005de20
lea rdx, str._bin
lea rcx, [0x1400cd270]
call fcn.14005dd80
lea rcx, [0x1400cd270]
call qword [sym.imp.KERNEL32.dll_SetDllDirectoryA]
lea rdx, [0x1400cd050]
lea rcx, [0x1400cd270]
call fcn.14005de20
lea rdx, str._bin_serverjvm.dll
lea rcx, [0x1400cd270]
call fcn.14005dd80
lea rcx, [0x1400cd270]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x1400ccf38], rax
cmp qword [0x1400ccf38], 0
jne 0x1400027c7
lea rcx, str.Unable_to_open_jvm.dll
call fcn.140001000
xor eax, eax
jmp 0x1400027cc
mov eax, 1
add rsp, 0x28
ret

Function at 0x140002820
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov rax, qword [rsp + 0x48]
mov qword [0x1400cd3f8], rax
mov eax, dword [rsp + 0x40]
mov dword [0x1400cd044], eax
mov r8d, 0x104
lea rdx, [0x1400cd400]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dl, 0x2e
lea rcx, [0x1400cd400]
call fcn.1400027e0
lea rdx, [0x1400cd400]
lea rcx, [0x1400cd510]
call fcn.14005de20
mov dl, 0x5c
lea rcx, [0x1400cd510]
call fcn.1400027e0
call fcn.140001130
test eax, eax
jne 0x1400028a6
lea rcx, str.Unable_to_load_properties
call fcn.140001000
mov eax, 2
jmp 0x14000294a
call fcn.140002610
cmp eax, 1
jne 0x1400028bc
mov dword [0x1400cd154], 1
jmp 0x1400028cc
call fcn.1400026a0
test eax, eax
jne 0x1400028cc
mov eax, 2
jmp 0x14000294a
lea rdx, str.JNI_CreateJavaVM
mov rcx, qword [0x1400ccf38]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400cd048], rax
cmp qword [0x1400cd048], 0
jne 0x140002904
lea rcx, str.Unable_to_find_Java_interfaces_in_jvm.dll
call fcn.140001000
mov eax, 2
jmp 0x14000294a
lea rax, [0x1400ccf34]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x140001070]
mov edx, 0x10000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1400cd158], rax
mov edx, 0xffffffff
mov rcx, qword [0x1400cd158]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
add rsp, 0x38
ret
Function at 0x140003270
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x50]
call fcn.140041580
mov qword [rsp + 0x38], rax
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x50]
call fcn.140041510
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, eax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor r9d, r9d
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x50]
call fcn.140041a40
mov eax, dword [rsp + 0x30]
add rsp, 0x48
ret

Function at 0x140003300
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x50]
call fcn.140041580
mov qword [rsp + 0x38], rax
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x50]
call fcn.140041510
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, eax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r9d, 2
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x50]
call fcn.140041a40
mov eax, dword [rsp + 0x30]
add rsp, 0x48
ret

Function at 0x1400039f0
Capabilities:
Impersonate user

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
xor r8d, r8d
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x70]
call fcn.140041900
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x70]
call fcn.140041900
mov qword [rsp + 0x40], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x70]
call fcn.140041900
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9d, 2
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_LogonUserA]
mov dword [rsp + 0x30], eax
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x70]
call fcn.140041b40
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x70]
call fcn.140041b40
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x70]
call fcn.140041b40
cmp dword [rsp + 0x30], 0
jne 0x140003ad7
xor al, al
jmp 0x140003b16
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x140003af8
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x30], 0
je 0x140003b09
mov dword [rsp + 0x34], 1
jmp 0x140003b11
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
add rsp, 0x68
ret
Function at 0x140003b30
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x288
mov rax, qword [0x1400cc418]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [0x140088338]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140003bb0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SoftwareJavaSoftJava_Development_Kit
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140003bb0
xor eax, eax
jmp 0x140003d26
mov dword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, [0x140088378]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140003bfa
cmp dword [rsp + 0x34], 1
jne 0x140003bfa
cmp dword [rsp + 0x30], 0x104
jle 0x140003c01
xor eax, eax
jmp 0x140003d26
mov dword [rsp + 0x30], 0x104
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.CurrentVersion
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x140003c40
xor eax, eax
jmp 0x140003d26
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140003c6e
xor eax, eax
jmp 0x140003d26
mov dword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, [0x140088398]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140003cb8
cmp dword [rsp + 0x34], 1
jne 0x140003cb8
cmp dword [rsp + 0x30], 0x104
jle 0x140003cbc
xor eax, eax
jmp 0x140003d26
mov dword [rsp + 0x30], 0x104
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x160]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.JavaHome
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x140003cfb
xor eax, eax
jmp 0x140003d26
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rsp + 0x160]
mov rcx, qword [rsp + 0x290]
call fcn.140002bd0
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140059c60
add rsp, 0x288
ret
Function at 0x140004850
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
lea r8, [rsp + 0x30]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x50]
call fcn.1400418c0
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x140004897
mov dword [0x1400ce558], 0xffffffff
xor eax, eax
jmp 0x1400048fa
mov dword [rsp + 0x34], 0
movsxd rax, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov r8d, dword [rsp + 0x78]
mov rdx, rax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_ReadFile]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1400ce558], eax
mov r9d, 2
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x50]
call fcn.140041b00
mov eax, dword [rsp + 0x34]
add rsp, 0x48
ret

Function at 0x140004910
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
lea r8, [rsp + 0x30]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x50]
call fcn.1400418c0
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x140004957
mov dword [0x1400ce558], 0xffffffff
xor eax, eax
jmp 0x1400049ba
mov dword [rsp + 0x34], 0
movsxd rax, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov r8d, dword [rsp + 0x78]
mov rdx, rax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1400ce558], eax
mov r9d, 2
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x50]
call fcn.140041b00
mov eax, dword [rsp + 0x34]
add rsp, 0x48
ret
Function at 0x14003e0a0
Capabilities:
Hash data with crc32

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov dword [rsp + 4], 0xffffffff
mov dword [rsp], 0
jmp 0x14003e0c6
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp], eax
jge 0x14003e101
mov eax, dword [rsp + 4]
shr eax, 8
movsxd rcx, dword [rsp]
mov rdx, qword [rsp + 0x20]
movzx ecx, byte [rdx + rcx]
mov edx, dword [rsp + 4]
and edx, 0xff
xor ecx, edx
mov ecx, ecx
lea rdx, [0x1400a27c0]
xor eax, dword [rdx + rcx*4]
mov dword [rsp + 4], eax
jmp 0x14003e0be
mov eax, dword [rsp + 4]
not eax
add rsp, 0x18
ret
Function at 0x140049d00
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1400cc418]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea rax, str.libOSMesa.dll
mov qword [rsp + 0x28], rax
lea rax, str.OSMesa.dll
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 0
cmp qword [0x1400d08d0], 0
je 0x140049d48
mov eax, 1
jmp 0x140049ec8
mov dword [rsp + 0x20], 0
jmp 0x140049d5c
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
cmp qword [rsp + rax*8 + 0x28], 0
je 0x140049d8e
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + rax*8 + 0x28]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x1400d08d0], rax
cmp qword [0x1400d08d0], 0
je 0x140049d8c
jmp 0x140049d8e
jmp 0x140049d52
cmp qword [0x1400d08d0], 0
jne 0x140049db0
lea rdx, str.OSMesa:_Library_not_found
mov ecx, 0x10006
call fcn.14004f400
xor eax, eax
jmp 0x140049ec8
lea rdx, str.OSMesaCreateContextExt
mov rcx, qword [0x1400d08d0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400d08d8], rax
lea rdx, str.OSMesaCreateContextAttribs
mov rcx, qword [0x1400d08d0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400d08e0], rax
lea rdx, str.OSMesaDestroyContext
mov rcx, qword [0x1400d08d0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400d08e8], rax
lea rdx, str.OSMesaMakeCurrent
mov rcx, qword [0x1400d08d0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400d08f0], rax
lea rdx, str.OSMesaGetColorBuffer
mov rcx, qword [0x1400d08d0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400d08f8], rax
lea rdx, str.OSMesaGetDepthBuffer
mov rcx, qword [0x1400d08d0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400d0900], rax
lea rdx, str.OSMesaGetProcAddress
mov rcx, qword [0x1400d08d0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400d0908], rax
cmp qword [0x1400d08d8], 0
je 0x140049ea9
cmp qword [0x1400d08e8], 0
je 0x140049ea9
cmp qword [0x1400d08f0], 0
je 0x140049ea9
cmp qword [0x1400d08f8], 0
je 0x140049ea9
cmp qword [0x1400d0900], 0
je 0x140049ea9
cmp qword [0x1400d0908], 0
jne 0x140049ec3
lea rdx, str.OSMesa:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.14004f400
call fcn.140049ee0
xor eax, eax
jmp 0x140049ec8
mov eax, 1
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140059c60
add rsp, 0x58
ret
Function at 0x14004ab20
Capabilities:
Log keystrokes

Disassembly:
push rdi
sub rsp, 0x1c0
mov rax, qword [0x1400cc418]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
lea rax, [rsp + 0xb0]
mov rdi, rax
xor eax, eax
mov ecx, 0x100
rep stosb byte [rdi], al
mov r8d, 0x6d1
xor edx, edx
lea rcx, [0x1400cffc2]
call fcn.14005ae40
mov dword [rsp + 0x40], 0x20
jmp 0x14004ab77
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0x15c
jg 0x14004ad33
movsxd rax, dword [rsp + 0x40]
lea rcx, [0x1400cfd08]
movsx eax, word [rcx + rax*2]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0xffffffff
jne 0x14004aba2
jmp 0x14004ab6d
cmp dword [rsp + 0x40], 0x140
jl 0x14004ac54
cmp dword [rsp + 0x40], 0x14e
jg 0x14004ac54
mov dword [rsp + 0x50], 0x60
mov dword [rsp + 0x54], 0x61
mov dword [rsp + 0x58], 0x62
mov dword [rsp + 0x5c], 0x63
mov dword [rsp + 0x60], 0x64
mov dword [rsp + 0x64], 0x65
mov dword [rsp + 0x68], 0x66
mov dword [rsp + 0x6c], 0x67
mov dword [rsp + 0x70], 0x68
mov dword [rsp + 0x74], 0x69
mov dword [rsp + 0x78], 0x6e
mov dword [rsp + 0x7c], 0x6f
mov dword [rsp + 0x80], 0x6a
mov dword [rsp + 0x84], 0x6d
mov dword [rsp + 0x88], 0x6b
mov eax, dword [rsp + 0x40]
sub eax, 0x140
cdqe
mov eax, dword [rsp + rax*4 + 0x50]
mov dword [rsp + 0x48], eax
jmp 0x14004ac67
mov edx, 1
mov ecx, dword [rsp + 0x44]
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10
lea r9, [rsp + 0x90]
lea r8, [rsp + 0xb0]
mov edx, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x48]
call qword [sym.imp.USER32.dll_ToUnicode]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0xffffffff
jne 0x14004acd2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10
lea r9, [rsp + 0x90]
lea r8, [rsp + 0xb0]
mov edx, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x48]
call qword [sym.imp.USER32.dll_ToUnicode]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 1
jge 0x14004acde
jmp 0x14004ab6d
movsxd rax, dword [rsp + 0x40]
imul rax, rax, 5
lea rcx, [0x1400cffc2]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], rax
mov r9d, 1
lea r8, [rsp + 0x90]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
jmp 0x14004ab6d
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.140059c60
add rsp, 0x1c0
pop rdi
ret