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

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rdi, rcx
cmp qword [rcx + 0x80], 0
je 0x1400055f9
cmp byte [rcx + 0x89], 0
je 0x1400055f9
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400055cd
mov edx, 0xf
mov qword [rbp - 0x10], rdx
mov byte [rbp - 0x28], 0
xor ecx, ecx
mov qword [rbp - 0x28], rcx
mov qword [rbp - 0x18], 8
lea rax, [rbp - 0x28]
cmp rdx, 0x10
cmovae rax, rcx
mov byte [rax + 8], cl
xor r12d, r12d
mov r9, qword [rbp - 0x10]
mov r10, qword [rbp - 0x28]
nop word [rax + rax]
lea rdx, [rbp - 0x28]
cmp r9, 0x10
cmovae rdx, r10
lea r8, [rbp - 0x28]
cmovae r8, r10
mov rcx, qword [rdi + 0x80]
mov r10, qword [rcx]
mov rax, qword [rbp - 0x18]
lea r9, [rdx + rax]
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rdi + 0x8c]
call qword [r10 + 0x30]
test eax, eax
je 0x140005498
dec eax
jne 0x140005597
jmp 0x14000549f
mov byte [rdi + 0x89], r12b
lea rax, [rbp - 0x28]
mov r10, qword [rbp - 0x28]
mov r9, qword [rbp - 0x10]
cmp r9, 0x10
cmovae rax, r10
mov rbx, qword [rbp + 0x20]
sub rbx, rax
je 0x1400054ed
lea rcx, [rbp - 0x28]
cmp r9, 0x10
cmovae rcx, r10
mov r9, qword [rdi + 0x98]
mov r8, rbx
mov edx, 1
call fcn.140009d60
cmp rbx, rax
jne 0x1400055bd
mov r9, qword [rbp - 0x10]
mov r10, qword [rbp - 0x28]
cmp byte [rdi + 0x89], r12b
je 0x1400055eb
test rbx, rbx
jne 0x140005450
or rax, 0xffffffffffffffff
mov r8, qword [rbp - 0x18]
sub rax, r8
cmp rax, 8
jbe 0x1400055de
lea rbx, [r8 + 8]
cmp rbx, 0xfffffffffffffffe
ja 0x1400055d1
cmp r9, rbx
jae 0x140005541
mov rdx, rbx
lea rcx, [rbp - 0x28]
call fcn.140006200
mov r9, qword [rbp - 0x10]
mov r10, qword [rbp - 0x28]
jmp 0x14000555e
test rbx, rbx
jne 0x140005567
mov qword [rbp - 0x18], r12
lea rax, [rbp - 0x28]
cmp r9, 0x10
cmovae rax, r10
mov byte [rax], r12b
jmp 0x14000543b
test rbx, rbx
je 0x140005450
lea rcx, [rbp - 0x28]
cmp r9, 0x10
cmovae rcx, r10
mov rax, qword [rbp - 0x18]
xor edx, edx
mov qword [rcx + rax], rdx
mov qword [rbp - 0x18], rbx
lea rax, [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
cmovae rax, qword [rbp - 0x28]
mov byte [rax + rbx], dl
jmp 0x14000543b
sub eax, 2
je 0x1400055b0
cmp qword [rbp - 0x10], 0x10
jb 0x1400055cd
mov rcx, qword [rbp - 0x28]
call fcn.140009b44
xor al, al
jmp 0x1400055fb
cmp qword [rbp - 0x10], 0x10
jb 0x1400055f9
mov rcx, qword [rbp - 0x28]
jmp 0x1400055f4
cmp qword [rbp - 0x10], 0x10
jb 0x1400055cd
mov rcx, qword [rbp - 0x28]
call fcn.140009b44
xor al, al
jmp 0x1400055fb
lea rcx, str.string_too_long
call fcn.140007b84
int3
lea rcx, str.string_too_long
call fcn.140007b84
nop
cmp r9, 0x10
jb 0x1400055f9
mov rcx, r10
call fcn.140009b44
mov al, 1
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret

Function at 0x140006c00
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x30]
ret
Function at 0x1400109b8
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140010828

Function at 0x140020568
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x140030b48]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.140012f0c
xor ebx, ebx
cmp qword [0x140032af8], rbx
mov rdi, rax
jne 0x14002067b
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x140020752
lea rdx, [0x140029178]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140020752
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140032af8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140032b00], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x140032b08], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x140032b18], rax
test rax, rax
je 0x140020672
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x140032b10], rax
jmp 0x140020682
mov rax, qword [0x140032b10]
jmp 0x140020689
mov rax, qword [0x140032b10]
mov r11, qword [0x140032b18]
cmp rax, rdi
je 0x1400206f0
cmp r11, rdi
je 0x1400206f0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x140032b18]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x1400206f0
test rax, rax
je 0x1400206f0
call rsi
test rax, rax
je 0x1400206ea
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1400206ea
test byte [rsp + 0x40], 1
jne 0x1400206f0
bts ebp, 0x15
jmp 0x140020730
mov rcx, qword [0x140032b00]
cmp rcx, rdi
je 0x140020730
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140020730
call rax
mov rbx, rax
test rax, rax
je 0x140020730
mov rcx, qword [0x140032b08]
cmp rcx, rdi
je 0x140020730
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140020730
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140032af8]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140020752
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x140020754
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140013720
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140020bff
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140030b48]
jne 0x14001373a
rol rcx, 0x10
test cx, 0xffff
jne 0x140013736
repz ret
ror rcx, 0x10
jmp 0x140020b58
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140032bc0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140032cb8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140020bdd
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140032bc0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140020bff
mov rax, qword [rsp + 0x88]
mov qword [0x140032cb8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140032c58], rax
mov rax, qword [0x140032cb8]
mov qword [0x140032b30], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140032c40], rax
mov dword [0x140032b20], 0xc0000409
mov dword [0x140032b24], 1
mov rax, qword [0x140030b48]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140030b50]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140032bb8], eax
mov ecx, 1
call fcn.1400184b4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400291a0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140032bb8], 0
jne 0x140020c86
mov ecx, 1
call fcn.1400184b4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x1404cacb0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1404cacbd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1404caccd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1404cacb5
lea eax, [rcx + 1]
jmp 0x1404cacdb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1404cacee
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1404cacd4
sub eax, 3
jb 0x1404cad0e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1404cad5d
sar eax, 1
movsxd rbp, eax
jb 0x1404cad44
jmp 0x1404cad1c
add ebx, ebx
jne 0x1404cad1a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1404cad44
inc ecx
add ebx, ebx
jne 0x1404cad2a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1404cad44
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1404cad3d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1404cad2c
add ecx, 2
jmp 0x1404cad49
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1404cac72
jmp 0x1404cacbd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x9a00
mov dl, 5
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1404cada9
cmp rsi, rcx
jae 0x1404cadb1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1404cad90
cmp al, 0x8f
ja 0x1404cad90
cmp byte [rsi - 2], 0xf
je 0x1404cad96
sub al, 0xe8
cmp al, 1
ja 0x1404cad7a
cmp rsi, rcx
jae 0x1404cadb1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1404cad80
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1404cadb1
lodsb al, byte [rsi]
jmp 0x1404cad90
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x4a8000]
mov eax, dword [rdi]
or eax, eax
je 0x1404cae0e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x4ca0f0]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1404cadbe
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1404cae08
mov qword [rbx], rax
add rbx, 8
jmp 0x1404cadde
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1404cae52
cmp al, 0xef
ja 0x1404cae3a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1404cae1a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x1404cae29
mov eax, dword [rdi]
add rdi, 4
jmp 0x1404cae29
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x22f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1404caea6
sub rsp, 0xffffffffffffff80
jmp 0x140008c28
Function at 0x1409d3a10
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x1409d3a38
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x1409d3a5e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1409d3a60
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1409d3ab9
test ecx, ecx
jle 0x1409d3a99
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x1409d3ab9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1409d3ab9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x1409d3ae0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x1409d3b02
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x1409d3b18
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1409d3b34
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1409d3b36
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1409d3b72
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x1409d3c0e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1409d3bad
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x1409d3bee
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x1409d3c0e
cmp rbx, rax
ja 0x1409d3bc0
test rbx, rbx
je 0x1409d3c0e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x1409d4070
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1409da040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1409d409d
xor eax, eax
jmp 0x1409d4209
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1409d40d7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1409d40d7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x1409d4209
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1409d41fc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1409d411a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x1409d4145
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1409d4201
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1409d41b4
sub eax, 1
je 0x1409d41b4
cmp eax, 2
jne 0x1409d41fc
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1409d4201
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1409d41e2
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x1409d41fc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1409d4201
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1409d4e90
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1409d4570
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1409da040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1409d4643
cmp byte [rcx + 0x71], 0
je 0x1409d4643
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1409d463f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1409d4604
sub eax, 1
je 0x1409d4608
cmp eax, 2
jne 0x1409d463f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1409d4e90
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1409d4636
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1409d463f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1409d45ec
xor al, al
jmp 0x1409d45ec
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1409d4e90
add rsp, 0x60
pop rbx
ret

Function at 0x1409d5810
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1409d585a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1409d585a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1409d585a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1409d585a
cmp dword [rcx + 0x84], 0xe
jbe 0x1409d585a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1409d585c
xor al, al
add rsp, 0x28
ret
Function at 0x1800a0470
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 0x1800a04aa
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1800a04af
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 0x1800a04f8
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1800ba640]
cmp byte [rcx + rax], 0
je 0x1800a04f8
dec r8
sub rdx, 1
jne 0x1800a04de
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140004000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x140027998]
lea rcx, str._JAVA_LAUNCHER_DEBUG
mov qword [0x1400279a0], rax
call fcn.14000cf2c
test rax, rax
je 0x140004068
lea rcx, str.Windows_original_main_args:_n
call fcn.14000cdc4
xor ebx, ebx
cmp dword [0x140027984], ebx
jle 0x140004068
xor edi, edi
mov r8, qword [0x140027988]
lea rcx, str.wwwd_args__d____s_n
mov edx, ebx
mov r8, qword [rdi + r8]
call fcn.14000cdc4
inc ebx
add rdi, 8
cmp ebx, dword [0x140027984]
jl 0x140004041
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rcx, rax
call fcn.140006f5c
call fcn.140006f4c
movsxd rdi, eax
lea ecx, [rdi + 1]
movsxd rcx, ecx
shl rcx, 3
call fcn.140007000
mov rbx, rax
call fcn.140006f54
xor r9d, r9d
xor edx, edx
test edi, edi
jle 0x1400040b4
mov r9d, edi
mov rcx, qword [rax]
add rax, 0x10
mov qword [rbx + rdx*8], rcx
inc rdx
cmp rdx, rdi
jl 0x1400040a1
mov rdx, qword [str.java]
movsxd rax, r9d
and qword [rbx + rax*8], 0
test rdx, rdx
jne 0x1400040cb
mov rdx, qword [rbx]
mov rcx, qword [0x140026018]
test rcx, rcx
jne 0x1400040da
mov rcx, qword [rbx]
mov r9, qword [0x140027720]
mov r8d, 1
test r9, r9
setne al
and dword [rsp + 0x68], 0
mov byte [rsp + 0x60], 1
mov byte [rsp + 0x58], 1
mov byte [rsp + 0x50], al
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x40], rcx
lea rax, [0x14001d440]
mov rdx, rbx
mov qword [rsp + 0x38], rax
lea rax, [0x14001d430]
mov ecx, edi
mov qword [rsp + 0x30], rax
mov rax, qword [0x140027728]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
call fcn.140006880
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
Function at 0x140004720
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x150
mov rax, qword [0x1400260c0]
xor rax, rsp
mov qword [rsp + 0x140], rax
movsxd rbp, ecx
lea rcx, str.CLASSPATH
mov r12, rdx
mov word [rsp + 0x20], 0x3b
call fcn.14000cf2c
mov esi, 0x28
test rax, rax
je 0x1400047a5
mov rcx, rax
call fcn.140009198
mov rcx, rax
mov rdi, rax
call fcn.14000d160
lea rcx, [rsi + rax]
call fcn.140007000
lea rdx, str._Denv.class.path_s
mov r8, rdi
mov rcx, rax
mov rbx, rax
call fcn.14000d634
xor edx, edx
mov rcx, rbx
call fcn.14000421c
lea rcx, [rsp + 0x30]
mov edx, 0x104
call fcn.1400071cc
test al, al
jne 0x1400047cb
lea rcx, str.Error:_Could_not_determine_application_home.
call fcn.140007370
xor al, al
jmp 0x140004893
lea rcx, [rsp + 0x30]
call fcn.14000d160
lea rcx, [rsi + rax]
call fcn.140007000
lea r8, [rsp + 0x30]
lea rdx, str._Dapplication.home_s
mov rcx, rax
mov rbx, rax
call fcn.14000d634
xor edx, edx
mov rcx, rbx
call fcn.14000421c
xor edi, edi
test rbp, rbp
jle 0x140004828
mov rcx, qword [r12 + rdi*8]
call fcn.14000d160
lea rcx, [rsp + 0x30]
lea ebx, [rsi + rax]
call fcn.14000d160
inc rdi
lea esi, [rbx + rax + 1]
cmp rdi, rbp
jl 0x140004806
lea eax, [rsi + 1]
movsxd rcx, eax
call fcn.140007000
lea rdx, str._Djava.class.path
mov rcx, rax
mov rbx, rax
call fcn.14000d910
xor edi, edi
test rbp, rbp
jle 0x14000487a
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14000d870
mov rdx, qword [r12 + rdi*8]
mov rcx, rbx
call fcn.14000d870
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14000d870
inc rdi
cmp rdi, rbp
jl 0x14000484c
mov rcx, rbx
call fcn.14000d160
xor edx, edx
mov rcx, rbx
mov byte [rax + rbx - 1], 0
call fcn.14000421c
mov al, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14000d9e0
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret

Function at 0x140004e2c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
lea rcx, [0x14001d8d8]
call fcn.14000cf2c
lea rcx, [0x14001d8c0]
mov rsi, rax
call fcn.14000cf2c
mov rbx, rax
test rsi, rsi
je 0x140004e91
lea r8, [rsp + 0x30]
mov rdx, rax
mov rcx, rsi
call fcn.140009bf8
mov rdi, rax
test rax, rax
je 0x140004ea3
call fcn.1400092a8
mov edx, dword [rsp + 0x30]
mov rcx, rdi
call fcn.140009220
mov rcx, rdi
call fcn.140007084
jmp 0x140004ea3
test rax, rax
je 0x140004eea
call fcn.1400092a8
mov rcx, rbx
call fcn.140009268
mov rdx, rsi
mov rcx, rbx
call fcn.1400092d8
lea rcx, [0x14001d8a8]
call fcn.140007d34
lea rcx, [0x14001d8c0]
call fcn.140007d34
lea rcx, [0x14001d8d8]
call fcn.140007d34
mov rcx, qword [0x140027780]
call fcn.140007084
mov rcx, qword [0x140027778]
call fcn.140007084
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret