joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400197b7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14002a070]
jne 0x1400178fa
rol rcx, 0x10
test cx, 0xffff
jne 0x1400178f6
repz ret
ror rcx, 0x10
jmp 0x140019710
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14002b3c0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14002b4b8]
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 0x140019795
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, [0x14002b3c0]
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 0x1400197b7
mov rax, qword [rsp + 0x88]
mov qword [0x14002b4b8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14002b458], rax
mov rax, qword [0x14002b4b8]
mov qword [0x14002b330], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14002b440], rax
mov dword [0x14002b320], 0xc0000409
mov dword [0x14002b324], 1
mov rax, qword [0x14002a070]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14002a078]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14002b3b8], eax
mov ecx, 1
call fcn.140019660
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140021430]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14002b3b8], 0
jne 0x14001983e
mov ecx, 1
call fcn.140019660
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 0x140019a50
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x30
lea r12, [0x14002a1f0]
xor esi, esi
mov edi, ecx
mov rax, r12
mov ebx, esi
nop
cmp ecx, dword [rax]
je 0x140019a8e
add ebx, 1
add rax, 0x10
cmp ebx, 0x17
jb 0x140019a70
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
cmp ebx, 0x17
jae 0x140019c75
mov ecx, 3
call fcn.14001cb90
cmp eax, 1
je 0x140019c2c
mov ecx, 3
call fcn.14001cb90
test eax, eax
jne 0x140019ac5
cmp dword [0x14002a050], 1
je 0x140019c2c
cmp edi, 0xfc
je 0x140019c75
mov qword [rsp + 0x50], rbp
lea rbp, [0x14002b890]
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rbp
mov edx, 0x314
call fcn.1400198e0
test eax, eax
je 0x140019b09
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1400175c0
lea rdx, [0x14002b8a9]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x14002b9ad], sil
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x140019b59
lea r8, str._program_name_unknown_
lea rcx, [0x14002b8a9]
mov edx, 0x2fb
call fcn.1400198e0
test eax, eax
je 0x140019b59
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1400175c0
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x14002b8a9]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x140019ba8
lea rcx, [rcx + rbp - 0x23]
lea rdx, [0x14002bba4]
lea r9d, [rax + 3]
lea r8, [0x1400219f4]
sub rdx, rcx
call fcn.14001ca70
test eax, eax
je 0x140019ba8
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1400175c0
lea r8, [0x1400219f0]
mov edx, 0x314
mov rcx, rbp
call fcn.14001c9b0
test eax, eax
je 0x140019bd4
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1400175c0
movsxd r8, ebx
mov edx, 0x314
mov rcx, rbp
add r8, r8
mov r8, qword [r12 + r8*8 + 8]
call fcn.14001c9b0
test eax, eax
je 0x140019c04
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1400175c0
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.14001c750
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x140019c75
cmp rax, 0xffffffffffffffff
je 0x140019c75
xor eax, eax
movsxd rcx, ebx
lea r9, [rsp + 0x58]
add rcx, rcx
mov qword [rsp + 0x20], rsi
mov rdx, qword [r12 + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x140019c90
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov ecx, 3
call fcn.14001cb90
cmp eax, 1
je 0x140019cc2
mov ecx, 3
call fcn.14001cb90
test eax, eax
jne 0x140019d76
cmp dword [0x14002a050], 1
jne 0x140019d76
mov qword [rsp + 0x48], rbx
lea rbx, [0x14002a1f0]
mov qword [rsp + 0x30], rdi
mov rax, rbx
xor edi, edi
cmp dword [rax], 0xfc
je 0x140019cee
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x140019cd8
jmp 0x140019d62
cmp edi, 0x17
jae 0x140019d62
mov ecx, 3
call fcn.14001cb90
cmp eax, 1
je 0x140019d19
mov ecx, 3
call fcn.14001cb90
test eax, eax
jne 0x140019d62
cmp dword [0x14002a050], 1
jne 0x140019d62
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x140019d62
cmp rax, 0xffffffffffffffff
je 0x140019d62
movsxd rcx, edi
xor eax, eax
lea r9, [rsp + 0x40]
add rcx, rcx
mov qword [rsp + 0x20], rax
mov rdx, qword [rbx + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0xff
call fcn.140019a50
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret
Function at 0x14001a5a0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov eax, dword [0x14002bdbc]
xor r12d, r12d
test eax, eax
mov ebp, r12d
jne 0x14001a5fc
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x14001a5dc
mov dword [0x14002bdbc], 1
jmp 0x14001a60f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x14001a5f6
mov dword [0x14002bdbc], 2
jmp 0x14001a679
mov eax, dword [0x14002bdbc]
cmp eax, 1
jne 0x14001a670
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x14001a64a
cmp word [rdi], bp
mov rax, rdi
je 0x14001a629
add rax, 2
cmp word [rax], bp
jne 0x14001a617
add rax, 2
cmp word [rax], bp
jne 0x14001a617
sub eax, edi
add eax, 2
movsxd rsi, eax
mov rcx, rsi
call fcn.140018ca0
test rax, rax
mov rbx, rax
jne 0x14001a651
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x14001a76b
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call fcn.140017910
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbx
jmp 0x14001a76b
cmp eax, 2
je 0x14001a679
test eax, eax
jne 0x14001a64a
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov rsi, rax
je 0x14001a64a
cmp byte [rax], bpl
mov rbx, rax
je 0x14001a6c8
nop
or r9d, 0xffffffff
mov r8, rbx
xor ecx, ecx
lea edx, [r9 + 2]
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x14001a64a
or rcx, 0xffffffffffffffff
add ebp, eax
mov rdi, rbx
xor eax, eax
repne scasb al, byte [rdi]
not rcx
add rbx, rcx
cmp byte [rbx], al
jne 0x14001a690
add ebp, 1
mov edx, 2
movsxd rcx, ebp
call fcn.140018d10
test rax, rax
mov r12, rax
jne 0x14001a6ed
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
jmp 0x14001a76b
cmp byte [rsi], 0
mov qword [rsp + 0x50], r13
mov rbx, rax
mov r13, rsi
je 0x14001a755
nop
or r9d, 0xffffffff
mov eax, ebp
mov rcx, rbx
sub rcx, r12
lea edx, [r9 + 2]
mov r8, r13
sar rcx, 1
sub eax, ecx
xor ecx, ecx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x14001a77e
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r13
repne scasb al, byte [rdi]
mov rdi, rbx
not rcx
add r13, rcx
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
cmp byte [r13], al
not rcx
lea rbx, [rbx + rcx*2]
jne 0x14001a700
mov rcx, rsi
mov word [rbx], 0
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov rax, r12
mov r13, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov rcx, r12
call fcn.140019990
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
jmp 0x14001a766
Function at 0x14001c750
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x50
mov edi, r8d
mov r13, rdx
mov r14, rcx
call fcn.140018590
xor ebx, ebx
cmp qword [0x14002c110], rbx
mov rbp, rax
mov dword [rsp + 0x98], ebx
mov dword [rsp + 0x30], ebx
jne 0x14001c87c
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x14001c98f
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001c98f
mov rcx, rax
call fcn.1400184c0
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x14002c110], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1400184c0
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x14002c118], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1400184c0
lea rcx, [rsp + 0x98]
mov qword [0x14002c120], rax
call fcn.140018f50
test eax, eax
je 0x14001c82f
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.1400175c0
cmp dword [rsp + 0x98], 2
jne 0x14001c87c
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1400184c0
test rax, rax
mov qword [0x14002c130], rax
je 0x14001c87c
lea rdx, [0x140022410]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1400184c0
mov qword [0x14002c128], rax
mov rcx, qword [0x14002c128]
mov qword [rsp + 0x80], r12
cmp rcx, rbp
je 0x14001c928
cmp qword [0x14002c130], rbp
je 0x14001c928
call fcn.140018680
mov rcx, qword [0x14002c130]
mov rsi, rax
call fcn.140018680
test rsi, rsi
mov r12, rax
je 0x14001c928
test rax, rax
je 0x14001c928
call rsi
test rax, rax
je 0x14001c8f3
lea rcx, [rsp + 0x34]
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 0x14001c8f3
test byte [rsp + 0x40], 1
jne 0x14001c928
lea rcx, [rsp + 0x30]
call fcn.140018fa0
test eax, eax
je 0x14001c915
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.1400175c0
cmp dword [rsp + 0x30], 4
jb 0x14001c922
bts edi, 0x15
jmp 0x14001c966
bts edi, 0x12
jmp 0x14001c966
mov rcx, qword [0x14002c118]
cmp rcx, rbp
je 0x14001c966
call fcn.140018680
test rax, rax
je 0x14001c966
call rax
test rax, rax
mov rbx, rax
je 0x14001c966
mov rcx, qword [0x14002c120]
cmp rcx, rbp
je 0x14001c966
call fcn.140018680
test rax, rax
je 0x14001c966
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14002c110]
call fcn.140018680
mov r12, qword [rsp + 0x80]
test rax, rax
je 0x14001c98f
mov r9d, edi
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x14001c991
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001dd40
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x14002a070]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x20]
mov r9d, 6
mov edx, 0x1004
mov byte [rsp + 0x26], 0
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x14001dd87
or eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400178e0
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.14001dc40
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400178e0
add rsp, 0x38
ret
Function at 0x1400012d0
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rax, qword gs:[0x60]
xor r13d, r13d
mov qword [rsp + 0x70], rdx
mov rcx, qword [rax + 0x18]
add rcx, 0x10
mov qword [rsp + 0x60], rcx
mov r15, qword [rcx]
cmp r15, rcx
je 0x1400014e8
mov edx, 0x20b
mov r8d, 0x5a4d
nop
cmp qword [r15 + 0x60], 0
je 0x1400014a0
mov rdi, qword [r15 + 0x30]
test rdi, rdi
je 0x1400014a0
movsxd rax, dword [rdi + 0x3c]
mov ebp, dword [rax + rdi + 0x88]
add rbp, rdi
cmp word [rdi], r8w
jne 0x1400014c5
cmp word [rax + rdi + 0x18], dx
jne 0x140001365
cmp dword [rax + rdi + 0x8c], 0
jbe 0x1400014a0
mov r14d, dword [rbp + 0x18]
xor ebx, ebx
test r14d, r14d
je 0x14000149b
mov r12d, dword [rbp + 0x20]
nop dword [rax + rax]
lea rax, [r12 + rbx*4]
xor r10d, r10d
mov r11d, dword [rax + rdi]
mov eax, 0xd978a2c0
add r11, rdi
movzx r9d, byte [r11]
test r9b, r9b
je 0x14000145e
mov r14d, 0xd978a2c0
nop word [rax + rax]
movzx r8d, r9b
sub r9b, 0x41
cmp r9b, 0x19
lea ecx, [r8 + 0x20]
movzx edx, cl
cmova edx, r8d
movsx r8d, dl
cmp eax, r8d
jne 0x1400013d4
xor ecx, ecx
jmp 0x1400013f5
movd xmm0, r8d
movd xmm2, eax
movdqa xmm1, xmm0
andnps xmm1, xmmword [0x140006570]
andps xmm1, xmm2
andnps xmm2, xmm0
orps xmm1, xmm2
movd ecx, xmm1
lea eax, [r10 - 0x26875d40]
imul eax, r8d
add eax, ecx
mov ecx, r10d
test r10d, r10d
cmove ecx, r14d
movd xmm0, eax
pshufd xmm0, xmm0, 0
movd eax, xmm0
cmp ecx, r14d
jne 0x140001422
xor ecx, ecx
jmp 0x140001443
movd xmm1, ecx
movd xmm2, r14d
movdqa xmm0, xmm1
andnps xmm0, xmmword [0x140006570]
andps xmm0, xmm2
andnps xmm2, xmm1
orps xmm0, xmm2
movd ecx, xmm0
imul eax, ecx
inc r10d
movzx r9d, byte [r10 + r11]
add eax, r8d
test r9b, r9b
jne 0x1400013b0
mov r14d, dword [rbp + 0x18]
mov ecx, eax
cmp qword [rsp + 0x70], rcx
je 0x140001474
inc ebx
cmp ebx, r14d
jb 0x140001380
jmp 0x14000148b
mov ecx, dword [rbp + 0x24]
add rcx, rdi
movzx edx, word [rcx + rbx*2]
mov ecx, dword [rbp + 0x1c]
add rcx, rdi
mov r13d, dword [rcx + rdx*4]
add r13, rdi
mov rcx, qword [rsp + 0x60]
mov r8d, 0x5a4d
mov edx, 0x20b
test r13, r13
jne 0x1400014ad
mov r15, qword [r15]
cmp r15, rcx
je 0x1400014e8
jmp 0x140001320
mov rbx, qword [rsp + 0x68]
mov rax, r13
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rdx, str.DOS_header_e_magic_mismatch
lea rcx, [rsp + 0x78]
call fcn.1400012c0
lea rdx, [0x140007288]
lea rcx, [rsp + 0x78]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rdx, str.Cannot_find_desired_export.
lea rcx, [rsp + 0x78]
call fcn.1400012c0
lea rdx, [0x140007288]
lea rcx, [rsp + 0x78]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x140004c30
Capabilities:
Parse pe header

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

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140013cec

Function at 0x140001008
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
lea rcx, str._JAVA_LAUNCHER_DEBUG
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140001069
lea rcx, str.Windows_original_main_args:_n
call fcn.140001148
xor ebx, ebx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
cmp dword [rax], ebx
jle 0x140001069
xor edi, edi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argv]
mov edx, ebx
lea rcx, str.wwwd_args__d____s_n
mov r8, qword [rax]
mov r8, qword [rdi + r8]
call fcn.140001148
inc ebx
lea rdi, [rdi + 8]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
cmp ebx, dword [rax]
jl 0x14000103e
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rcx, rax
call sub.jli.dll_JLI_CmdToArgs
call sub.jli.dll_JLI_GetStdArgc
movsxd rdi, eax
lea ecx, [rdi + 1]
movsxd rcx, ecx
shl rcx, 3
call sub.jli.dll_JLI_MemAlloc
mov rbx, rax
call sub.jli.dll_JLI_GetStdArgs
xor r9d, r9d
test edi, edi
jle 0x1400010b5
xor edx, edx
mov r9d, edi
mov rcx, qword [rax]
lea rax, [rax + 0x10]
mov qword [rbx + rdx*8], rcx
inc rdx
cmp rdx, rdi
jl 0x1400010a2
mov rcx, qword [str.java]
movsxd rax, r9d
and qword [rbx + rax*8], 0
test rcx, rcx
jne 0x1400010cc
mov rcx, qword [rbx]
mov rax, qword [section..data]
test rax, rax
jne 0x1400010db
mov rax, qword [rbx]
and dword [rsp + 0x68], 0
lea r9, str._J_ms8m
mov byte [rsp + 0x60], 0
mov r8d, 2
mov byte [rsp + 0x58], 0
mov rdx, rbx
mov byte [rsp + 0x50], 1
mov qword [rsp + 0x48], rcx
mov ecx, edi
mov qword [rsp + 0x40], rax
lea rax, [0x1400022cc]
mov qword [rsp + 0x38], rax
lea rax, [0x1400022d0]
mov qword [rsp + 0x30], rax
lea rax, str._lib_tools.jar
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r8d
call sub.jli.dll_JLI_Launch
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
Function at 0x140011bbc
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor edx, edx
mov rcx, qword gs:[0x60]
mov r8, qword [rbx + 0x28]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov r8, qword [rbx + 8]
and qword [rbx + 0x28], 0
cmp dword [r8], 2
jne 0x140011c13
mov rcx, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
and qword [rbx + 8], 0
mov r8, qword [rbx + 0x18]
cmp dword [r8], 2
jne case.default.0x140011c54
mov rcx, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
and qword [rbx + 0x18], 0
mov rcx, qword gs:[0x60]
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx + 0x30]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.ntdll.dll_RtlFreeHeap]
sbb cl, r13b
adc dl, ah
adc dword [rcx + rsi*4], eax
in eax, dx
push rcx
and ecx, esp
out dx, eax
push rsp
call 0x17e9771ec
out 0x38, eax
stosb byte [rdi], al
invalid
push rsi
jnp 0x14003f740
wait
fst dword [rdi - 0xce1fc64]
movsd dword [rdi], dword [rsi]
pushfq
add ebx, dword [rsi]
rep movsd dword [rdi], dword [rsi]
cmp dword [rdx + 0x199f45b], esi
movsb byte [rdi], byte [rsi]
and eax, 0x679ef820
int1
pop rdi
call [rsi - 5]
invalid
sahf
jae 0x14003f786
invalid
invalid
Function at 0x140002fc0
Capabilities:
Parse pe header

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

Function at 0x1413a9058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1413a91df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1413a9089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1413a906f
add dl, dl
jne 0x1413a9096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1413a90f6
xor eax, eax
add dl, dl
jne 0x1413a90a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1413a91ad
add dl, dl
jne 0x1413a90b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1413a90c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1413a90d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1413a90dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1413a90ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1413a907e
mov eax, 1
add dl, dl
jne 0x1413a9106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1413a9113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1413a90fb
sub eax, ebx
mov ebx, 1
jne 0x1413a914c
mov ecx, 1
add dl, dl
jne 0x1413a912e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1413a913b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1413a9123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1413a907e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1413a9168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1413a9175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1413a915d
cmp eax, 0x7d00
jae 0x1413a919b
cmp eax, 0x500
jb 0x1413a9196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1413a907e
cmp eax, 0x7f
ja 0x1413a919e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1413a907e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1413a91d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1413a907e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400044d0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400044e0]
mov dword [rax], 1
mov rax, qword [0x1400044f0]
mov dword [rax], 1
mov rax, qword [0x140004470]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400044c0]
mov dword [0x14000700c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x1400045a0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x140004580]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x140004420]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140001450
Capabilities:
Create process on windows

Disassembly:
push rbp
push rdi
sub rsp, 0xe8
lea rbp, [rsp + 0xe0]
call sym.__main
lea rdx, [rbp - 0x70]
mov eax, 0
mov ecx, 0xd
mov rdi, rdx
rep stosq qword [rdi], rax
mov qword [rbp - 0x90], 0
mov qword [rbp - 0x88], 0
mov qword [rbp - 0x80], 0
lea rax, [rbp - 0x90]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x4000
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 0
lea rax, str.C:WindowsSystem32mspaint.exe
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
test eax, eax
jne 0x14000153d
mov r9d, 0x30
lea r8, str.Error
lea rax, str.Failed_to_create_process
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_MessageBoxW]
call rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.____failed_to_create_process__error__ld
mov rcx, rax
call sym.printf
mov eax, 1
jmp 0x140001542
mov eax, 0
add rsp, 0xe8
pop rdi
pop rbp
ret

Function at 0x140001810
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]