joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140048290
Capabilities:
Register raw input devices

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov qword [0x1400bf548], rcx
lea rdi, [rcx + 0x350]
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x1400482ec
mov rcx, qword [rdi]
lea rdx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_ScreenToClient]
movd xmm0, dword [rsp + 0x40]
movd xmm1, dword [rsp + 0x44]
cvtdq2pd xmm0, xmm0
cvtdq2pd xmm1, xmm1
movsd qword [0x1400bf538], xmm0
movsd qword [0x1400bf540], xmm1
cmp dword [rbx + 0x7c], 0x34001
jne 0x140048330
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x140048311
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_SetCursor]
lea rdi, [rbx + 0x350]
jmp 0x140048338
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
lea rdi, [rbx + 0x350]
jmp 0x140048338
xor ecx, ecx
call qword [sym.imp.USER32.dll_SetCursor]
mov rcx, rbx
call fcn.140043660
mov rcx, rbx
call fcn.1400486b0
cmp dword [rbx + 0x1f8], 0
je 0x14004838b
mov rax, qword [rdi]
lea rcx, [rsp + 0x20]
mov edx, 1
mov qword [rsp + 0x20], 0x20001
mov qword [rsp + 0x28], rax
lea r8d, [rdx + 0xf]
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x14004838b
lea rdx, str.Win32:_Failed_to_register_raw_input_device
mov ecx, 0x10008
call fcn.140044630
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1400483a0
Capabilities:
Register raw input devices

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [rcx + 0x1f8], 0
mov rbx, rcx
je 0x1400483f0
mov edx, 1
mov dword [rsp + 0x20], 0x20001
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x24], edx
mov qword [rsp + 0x28], 0
lea r8d, [rdx + 0xf]
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x1400483f0
lea rdx, str.Win32:_Failed_to_remove_raw_input_device
mov ecx, 0x10008
call fcn.140044630
xor ecx, ecx
mov qword [0x1400bf548], 0
call fcn.1400486b0
cvttsd2si ecx, qword [0x1400bf538]
lea rdx, [rsp + 0x40]
cvttsd2si eax, qword [0x1400bf540]
mov dword [rsp + 0x40], ecx
mov dword [rbx + 0x388], ecx
mov rcx, qword [rbx + 0x350]
mov dword [rsp + 0x44], eax
mov dword [rbx + 0x38c], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.USER32.dll_SetCursorPos]
cmp dword [rbx + 0x7c], 0x34001
jne 0x140048484
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x140048468
mov rcx, qword [rcx + 8]
add rsp, 0x30
pop rbx
jmp qword [sym.imp.USER32.dll_SetCursor]
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
add rsp, 0x30
pop rbx
jmp qword [sym.imp.USER32.dll_SetCursor]
xor ecx, ecx
add rsp, 0x30
pop rbx
jmp qword [sym.imp.USER32.dll_SetCursor]
Function at 0x140048540
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
movzx ebx, ax
mov ecx, 0x11
shr ebx, 0xf
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, ebx
mov esi, 0x8000
or edi, 2
mov ecx, 0x12
test si, ax
cmove edi, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
and ax, si
mov ecx, 0x5c
mov esi, edi
or esi, 4
test ax, ax
cmove esi, edi
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x5b
movzx ebx, ax
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, esi
mov ecx, 0x14
or edi, 8
or bx, ax
cmovns edi, esi
call qword [sym.imp.USER32.dll_GetKeyState]
mov ebx, edi
mov ecx, 0x90
or ebx, 0x10
test al, 1
cmove ebx, edi
call qword [sym.imp.USER32.dll_GetKeyState]
mov rsi, qword [rsp + 0x38]
mov ecx, ebx
or ecx, 0x20
test al, 1
cmove ecx, ebx
mov rbx, qword [rsp + 0x30]
mov eax, ecx
add rsp, 0x20
pop rdi
ret
Function at 0x14004cde0
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x48
mov rax, qword [0x1400baf38]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [0x1400bf778], 0
lea rax, str.libOSMesa.dll
lea rcx, str.OSMesa.dll
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], 0
je 0x14004ce35
mov eax, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14004d4a0
add rsp, 0x48
ret
mov qword [rsp + 0x40], rbx
xor ebx, ebx
nop dword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x1400bf778], rax
test rax, rax
jne 0x14004ce78
mov rax, qword [rsp + rbx*8 + 0x28]
inc rbx
test rax, rax
jne 0x14004ce40
lea rdx, str.OSMesa:_Library_not_found
mov ecx, 0x10006
call fcn.1400416a0
jmp 0x14004cf9d
lea rdx, str.OSMesaCreateContextExt
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400bf778]
lea rdx, str.OSMesaCreateContextAttribs
mov qword [0x1400bf780], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400bf778]
lea rdx, str.OSMesaDestroyContext
mov qword [0x1400bf788], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400bf778]
lea rdx, str.OSMesaMakeCurrent
mov qword [0x1400bf790], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400bf778]
lea rdx, str.OSMesaGetColorBuffer
mov qword [0x1400bf798], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400bf778]
lea rdx, str.OSMesaGetDepthBuffer
mov qword [0x1400bf7a0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400bf778]
lea rdx, str.OSMesaGetProcAddress
mov qword [0x1400bf7a8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x1400bf780], 0
mov qword [0x1400bf7b0], rax
je 0x14004cf6f
cmp qword [0x1400bf790], 0
je 0x14004cf6f
cmp qword [0x1400bf798], 0
je 0x14004cf6f
cmp qword [0x1400bf7a0], 0
je 0x14004cf6f
cmp qword [0x1400bf7a8], 0
je 0x14004cf6f
test rax, rax
je 0x14004cf6f
mov eax, 1
jmp 0x14004cf9f
lea rdx, str.OSMesa:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.1400416a0
mov rcx, qword [0x1400bf778]
test rcx, rcx
je 0x14004cf9d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x1400bf778], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14004d4a0
add rsp, 0x48
ret

Function at 0x14005c564
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14005c360
Function at 0x140061988
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400619b8
xor eax, eax
jmp 0x140061a7b
mov rbp, rbx
cmp word [rax], si
je 0x1400619dd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400619c4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400619c0
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400618a8
movsxd r14, eax
test eax, eax
jne 0x140061a1b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400619b1
mov rcx, r14
call fcn.14005e410
mov rdi, rax
test rax, rax
jne 0x140061a34
xor ecx, ecx
call fcn.14005dc68
jmp 0x140061a10
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400618a8
test eax, eax
jne 0x140061a65
mov rcx, rdi
call fcn.14005dc68
jmp 0x140061a6f
xor ecx, ecx
call fcn.14005dc68
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1400663e0
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140056228
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14006646a
cmp byte [rbp - 0x21], r15b
je 0x140066465
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400664a0
call fcn.140062da0
test eax, eax
jne 0x14006648c
cmp byte [rbp - 0x21], r15b
je 0x140066484
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400664a0
cmp byte [rbp - 0x21], r15b
je 0x14006649d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14005fff4
test eax, eax
jne 0x140066540
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140056228
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400664df
cmp byte [rbp - 0x21], r15b
je 0x140066514
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140066514
call fcn.140062da0
test eax, eax
jne 0x140066500
cmp byte [rbp - 0x21], r15b
je 0x1400664f9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140066514
cmp byte [rbp - 0x21], r15b
je 0x140066511
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14005fff4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140066540
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140066543
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140066551
mov rcx, rdi
call fcn.14005dc68
cmp byte [rbp + 0x3f], r15b
je 0x140066560
mov rcx, qword [rbp + 0x27]
call fcn.14005dc68
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x18000111c
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xe0
mov rcx, qword [str.KERNEL32.dll]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, qword [0x180001014]
mov rdi, rax
mov rsi, qword [rcx + 0xd1f0]
mov ecx, dword [0x18000103c]
call rsi
mov edx, dword [0x18000103c]
mov rcx, rax
mov rbx, rax
call fcn.1800010c8
mov rdx, qword [str.GetModuleFileNameW]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r8d, 0x104
add byte [rax - 0x75], cl
sal dword [rbx], cl
leave
Function at 0x1800018fc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0xf60]
mov eax, 0x1060
call fcn.18000b3c0
sub rsp, rax
mov rax, qword [0x180015060]
xor rax, rsp
mov qword [rbp + 0xf50], rax
and dword [rsp + 0x20], 0
mov r14, rcx
mov ecx, 4
call sym.jli.dll_JLI_List_new
mov ecx, 8
mov qword [rsp + 0x40], rax
mov rdi, rax
mov byte [rsp + 0x38], 0x22
call sym.jli.dll_JLI_List_new
mov rcx, r14
mov rsi, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
test eax, eax
jne 0x1800019f8
mov r9, r14
lea rcx, [rsp + 0x50]
mov edx, 1
mov r8d, 0x1000
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, r14
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
test eax, eax
jne 0x180001a56
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
add rax, rbx
mov qword [rsp + 0x30], rax
jmp 0x1800019c6
mov rcx, rbx
call fcn.180001184
mov rdx, rbx
mov rcx, rsi
call sym.jli.dll_JLI_List_add
lea rcx, [rsp + 0x20]
call fcn.180001678
mov rbx, rax
test rax, rax
jne 0x1800019b3
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
test eax, eax
je 0x18000196d
cmp dword [rsp + 0x20], 5
je 0x180001a2a
cmp dword [rsp + 0x20], 2
je 0x180001a2a
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
call fcn.180008f74
mov rax, rsi
mov rcx, qword [rbp + 0xf50]
xor rcx, rsp
call fcn.18000b420
lea r11, [rsp + 0x1060]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov rdi, qword [rsp + 0x40]
cmp qword [rdi + 8], 0
je 0x1800019f8
mov rcx, rdi
call fcn.180008e98
mov rcx, rax
mov rbx, rax
call fcn.180001184
mov rdx, rbx
mov rcx, rsi
call sym.jli.dll_JLI_List_add
jmp 0x1800019f8
mov rcx, rsi
call fcn.180008f74
xor eax, eax
jmp 0x180001a03
Function at 0x180001a64
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rdi, rcx
mov byte [rsp + 0x50], 0
mov ecx, 1
call sym.jli.dll_JLI_List_new
lea rdx, str.JDK_JAVA_OPTIONS
mov rcx, rax
mov rbx, rax
call sym.jli.dll_JLI_AddArgsFromEnvVar
test al, al
je 0x180001adc
lea rcx, str._JAVA_LAUNCHER_DEBUG
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x180001adc
lea rcx, str._JAVA_OPTIONS
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x180001adc
mov r8, rax
lea rdx, str._JAVA_OPTIONS
lea rcx, str.NOTE:_Picked_up__s:__s
call sym.jli.dll_JLI_ReportMessage
mov r15, qword [rbx + 8]
lea rbp, [r15 + 1]
mov rcx, rbp
shl rcx, 4
call sym.jli.dll_JLI_MemAlloc
mov rcx, rdi
mov rsi, rax
call sym.jli.dll_JLI_StringDup
lea r8, [rsp + 0x50]
mov rdx, rax
mov rcx, rdi
mov r14, rax
call fcn.180001c70
mov rcx, r14
mov r12, rax
call sym.jli.dll_JLI_StringDup
mov cl, byte [rsp + 0x50]
mov r9d, 1
mov qword [rsi], rax
mov edi, r9d
mov byte [rsi + 8], cl
mov r8d, r9d
cmp r9, rbp
jae 0x180001b57
lea rdx, [rsi + 0x10]
lea edi, [r15 + 1]
mov rax, qword [rbx]
mov rcx, qword [rax + r8*8 - 8]
add r8, r9
mov qword [rdx], rcx
mov byte [rdx + 8], 0
lea rdx, [rdx + 0x10]
cmp r8, rbp
jb 0x180001b3c
mov rcx, qword [rbx]
call sym.jli.dll_JLI_MemFree
mov rcx, rbx
call sym.jli.dll_JLI_MemFree
mov byte [r14], 0
test r12, r12
je 0x180001c33
movsxd r15, edi
lea r8, [rsp + 0x50]
mov rdx, r14
mov rcx, r12
call fcn.180001c70
mov dl, 1
mov rcx, r14
mov r12, rax
call sym.jli.dll_JLI_PreprocessArg
mov rbx, rax
mov rcx, rsi
test rax, rax
je 0x180001bf8
mov rbp, qword [rax + 8]
movsxd rdx, edi
add rdx, rbp
shl rdx, 4
call fcn.1800091a4
xor r8d, r8d
mov rsi, rax
test rbp, rbp
je 0x180001be6
mov rdx, r15
add edi, ebp
shl rdx, 4
add rdx, rax
add r15, rbp
mov rax, qword [rbx]
mov rcx, qword [rax + r8*8]
inc r8
mov qword [rdx], rcx
mov byte [rdx + 8], 0
lea rdx, [rdx + 0x10]
cmp r8, rbp
jb 0x180001bcc
mov rcx, qword [rbx]
call sym.jli.dll_JLI_MemFree
mov rcx, rbx
call sym.jli.dll_JLI_MemFree
jmp 0x180001c26
inc edi
movsxd rdx, edi
shl rdx, 4
call fcn.1800091a4
mov rbx, r15
mov rcx, r14
add rbx, rbx
mov rsi, rax
call sym.jli.dll_JLI_StringDup
mov qword [rsi + rbx*8], rax
inc r15
mov al, byte [rsp + 0x50]
mov byte [rsi + rbx*8 + 8], al
mov byte [r14], 0
test r12, r12
jne 0x180001b77
mov rcx, r14
call sym.jli.dll_JLI_MemFree
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov dword [0x1800150b0], edi
mov qword [0x1800150a8], rsi
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140001ca8
Capabilities:
Parse pe header

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

Function at 0x140008128
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140007f24
Function at 0x14000d468
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14000d498
xor eax, eax
jmp 0x14000d55b
mov rbp, rbx
cmp word [rax], si
je 0x14000d4bd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000d4a4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000d4a0
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14000d388
movsxd r14, eax
test eax, eax
jne 0x14000d4fb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000d491
mov rcx, r14
call fcn.140009c1c
mov rdi, rax
test rax, rax
jne 0x14000d514
xor ecx, ecx
call fcn.140008fa4
jmp 0x14000d4f0
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14000d388
test eax, eax
jne 0x14000d545
mov rcx, rdi
call fcn.140008fa4
jmp 0x14000d54f
xor ecx, ecx
call fcn.140008fa4
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14001187c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140011892
mov al, 1
jmp 0x1400118f2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400118a3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400118f0
mov ecx, dword [rcx + 0x18]
nop
call fcn.14000dd88
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400118f0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400118f0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400118f0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400118f2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140012930
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000c458
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400129ba
cmp byte [rbp - 0x21], r15b
je 0x1400129b5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400129f0
call fcn.1400091f4
test eax, eax
jne 0x1400129dc
cmp byte [rbp - 0x21], r15b
je 0x1400129d4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400129f0
cmp byte [rbp - 0x21], r15b
je 0x1400129ed
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000ba38
test eax, eax
jne 0x140012a90
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000c458
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140012a2f
cmp byte [rbp - 0x21], r15b
je 0x140012a64
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140012a64
call fcn.1400091f4
test eax, eax
jne 0x140012a50
cmp byte [rbp - 0x21], r15b
je 0x140012a49
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140012a64
cmp byte [rbp - 0x21], r15b
je 0x140012a61
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000ba38
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140012a90
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140012a93
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140012aa1
mov rcx, rdi
call fcn.140008fa4
cmp byte [rbp + 0x3f], r15b
je 0x140012ab0
mov rcx, qword [rbp + 0x27]
call fcn.140008fa4
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x140015020
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140015048
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140015048
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400061a0
Capabilities:
Write file on windows

Disassembly:
push rdi
sub rsp, 0x20
mov rdi, rcx
test rdx, rdx
lea rcx, [0x140057458]
cmovne rcx, rdx
mov rdx, 0xffffffffffffffff
nop
inc rdx
cmp byte [rcx + rdx], 0
jne 0x1400061c0
mov r8d, dword [rdi + 0x18]
mov r9, qword [rdi]
add r8d, edx
mov qword [rsp + 0x30], rbx
mov dword [rdi + 0x18], r8d
test r9, r9
je 0x140006212
mov ebx, edx
mov r8d, edx
mov edx, 1
call fcn.14003a224
cmp rax, rbx
je 0x140006251
lea r8, str.Write_to_file_error_in_CGATS_parser
mov edx, 7
xor ecx, ecx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140012770
cmp qword [rdi + 8], 0
je 0x140006251
cmp r8d, dword [rdi + 0x1c]
jbe 0x14000623c
lea r8, str.Write_to_memory_overflows_in_CGATS_parser
mov edx, 7
xor ecx, ecx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140012770
mov ebx, edx
mov r8d, edx
mov rdx, rcx
mov rcx, qword [rdi + 0x10]
call fcn.140030780
add qword [rdi + 0x10], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140007230
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x140065008]
xor rax, rsp
mov qword [rsp + 0xb0], rax
lea rdx, [0x14005726c]
mov rbx, rcx
call fcn.140039ee0
mov rdi, rax
test rax, rax
jne 0x14000729d
mov r9, rbx
lea r8, str.File__s_not_found
lea edx, [rax + 1]
xor ecx, ecx
call fcn.140012770
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14002eeb0
mov rbx, qword [rsp + 0xd8]
add rsp, 0xc0
pop rdi
ret
mov r9, rdi
lea rcx, [rsp + 0x20]
mov edx, 1
mov r8d, 0x84
call fcn.14003ad54
mov rcx, rdi
mov rbx, rax
call fcn.140039f70
test eax, eax
jne 0x14000727a
mov eax, ebx
cmp rax, 0x85
jae 0x1400072e1
mov edx, ebx
mov byte [rsp + rax + 0x20], 0
lea rcx, [rsp + 0x20]
call fcn.140007180
jmp 0x14000727c
call fcn.14002efdc
int3

Function at 0x140030f34
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x140030dc7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140030dc7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140030dc7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140030dc7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140030dc7
cmp dword [rcx + 0x84], 0xe
jbe 0x140030dc7
cmp dword [rcx + 0xf8], 0
je 0x140030dc7
mov ecx, ebx
call fcn.140030e68
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.140030c58
cmp dword [rbp + 0x20], 0
je 0x140030e14
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140030e1c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140030d60
Function at 0x1400424d8
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400424f8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14003d178
or eax, 0xffffffff
jmp 0x1400424fa
xor eax, eax
add rsp, 0x28
ret