joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401a1758
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1401883c0
sub rsp, rax
mov rax, qword [0x140248800]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1401a1418
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1401a17a7
mov rax, rbp
jmp 0x1401a18af
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x255380]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1401ac09c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x255380]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1401a18ab
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401a18ab
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1401ac09c
test rax, rax
js 0x1401a18ab
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1401a18ab
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1401a189d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1401a189d
cmp byte [rcx], 0xd
jne 0x1401a1883
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1401a1892
cmp byte [rcx + 1], 0xa
jne 0x1401a1892
inc rcx
jmp 0x1401a1892
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x248c60]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1401a1865
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1401a18af
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140187c20
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1401a608c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1401a60a2
mov al, 1
jmp 0x1401a6102
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1401a60b3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1401a6100
mov ecx, dword [rcx + 0x18]
nop
call fcn.1401a1e84
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1401a6100
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1401a6100
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1401a6100
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1401a6102
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1401ab43c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140255380]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1401ab493
cmp word [rdx], r13w
jne 0x1401ab493
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1401ab498
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1401ab5bd
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1401ab5de
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1401ab4d1
mov rdx, r9
mov word [rbx], cx
jmp 0x1401ab4f8
cmp r9, r8
jae 0x1401ab508
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1401ab4b2
jmp 0x1401ab5bd
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401ab5b2
cmp dword [rsp + 0x80], esi
je 0x1401ab5b2
lea r8, [0x140255380]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1401ab58a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1401ab55a
mov word [rbx], r13w
jmp 0x1401ab5ba
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1401ab567
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1401ab5ba
cmp word [rsp + 0x70], r13w
jne 0x1401ab597
cmp rbx, r14
je 0x1401ab554
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1401ac0a4
cmp word [rsp + 0x70], r13w
je 0x1401ab5bd
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140255380]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1401ab5b7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1401ab5bd
Function at 0x1401af5f4
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1401af67b
mov rsi, rbx
cmp word [rax], bp
je 0x1401af63a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1401af624
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1401af620
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1401a6bd4
mov rdi, rax
test rax, rax
je 0x1401af668
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14018aa10
mov rbp, rdi
xor ecx, ecx
call fcn.1401a6b98
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1401b20e4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1401a654c
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1401b2185
cmp ebx, dword [rsp + 0x30]
je 0x1401b217e
test esi, esi
je 0x1401b217e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1401b2159
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1401b2166
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1401b2143
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1401b216a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1401b2187
mov eax, 1
jmp 0x1401b2187
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1401b4d10
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140248800]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1401b4d5a
call fcn.140195408
mov dword [rax], 0xf
call fcn.140195428
mov dword [rax], 0xd
call fcn.140193da4
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140187c20
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1401b4d65
lea eax, [rbx + 1]
jmp 0x1401b4d47
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1401b4d45
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1401b4d47
Function at 0x1401b6c4c
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1401ac0a4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1401ac0a4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1401b6d9c
cmp rax, 0xffffffffffffffff
je 0x1401b6d9c
xor edi, edi
test rbp, rbp
jle 0x1401b6d47
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1401a6b20
mov rbx, rax
test rax, rax
jne 0x1401b6cd4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1401b6d3d
mov edx, 0x8000
mov ecx, r14d
call fcn.1401a3044
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1401a93ac
cmp eax, 0xffffffff
je 0x1401b6d1d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1401b6ce4
mov edx, r15d
mov ecx, r14d
call fcn.1401a3044
jmp 0x1401b6d3d
cmp byte [rsi + 0x38], dil
je 0x1401b6d34
cmp dword [rsi + 0x34], 5
jne 0x1401b6d34
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1401b6d3d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1401a6b98
jmp 0x1401b6db0
jns 0x1401b6db0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1401ac0a4
cmp rax, 0xffffffffffffffff
jne 0x1401b6d68
cmp byte [rsi + 0x30], dil
je 0x1401b6db0
mov edi, dword [rsi + 0x2c]
jmp 0x1401b6db0
mov ecx, r14d
call fcn.1401a1e84
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1401b6db0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1401b6db0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1401b6da9
mov eax, dword [rsi + 0x2c]
jmp 0x1401b6dae
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1401ac0a4
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1401b7250
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1401b7278
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1401b7278
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x404618
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
lea rbx, [0x00401678]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x00401660]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [section..data], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x00401680]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x00407008], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x00401698]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x00407010], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x004016b8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x00407018], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x004016dc]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x00407020], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x004016e4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x00407028], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x004016ec]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x00407030], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x004016f4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x00407038], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x004016fc]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x00407040], rax
add rsp, 0x20
pop rbx
ret

Function at 0x404788
Capabilities:
Check os version

Disassembly:
sub rsp, 0x148
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x24], 6
setb al
add rsp, 0x148
ret
Function at 0x4048b8
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x80
mov rdi, rcx
call fcn.00404788
test al, al
jne 0x4048e0
mov eax, 2
jmp 0x4049cd
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor ebx, ebx
lea rdx, [rsp + 0x20]
lea r8d, [rbx + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x404977
mov esi, 0x1000
mov ecx, dword [rsp + 0x78]
mov rax, qword [rsp + 0x20]
xor edx, edx
div rcx
test rdx, rdx
jne 0x40494c
cmp qword [rsp + 0x38], rsi
jne 0x40494c
cmp dword [rsp + 0x40], esi
jne 0x40494c
cmp dword [rsp + 0x48], 0x20000
jne 0x40494c
cmp dword [rsp + 0x44], 4
jne 0x40494c
movabs rax, 0x74636a6e696d7678
cmp qword [rbx], rax
je 0x4049e2
add rbx, qword [rsp + 0x38]
cmp rbx, 0x7fff0000
jae 0x4048d6
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x404908
lea rsi, [0x00407060]
or edi, 0xffffffff
lea rdx, [0x00401348]
mov rcx, rsi
mov r8d, edi
call fcn.00406030
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0xa
mov edx, eax
mov rcx, rsi
call fcn.00405f80
lea rdx, [0x0040124c]
mov r8d, edi
mov rcx, rsi
call fcn.00406030
mov r8d, 0x10
mov edx, ebx
mov rcx, rsi
call fcn.00405f80
xor eax, eax
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
mov r8d, 0x20
mov rdx, rbx
mov rcx, rdi
call qword [0x00407020]
mov eax, 1
jmp 0x4049cd
Function at 0x404a08
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x840
call fcn.00404788
test al, al
je 0x404a2a
mov eax, 2
jmp 0x404c39
mov ebx, 0x400
lea rdx, [rsp + 0x40]
xor ecx, ecx
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x404c06
cmp eax, ebx
je 0x404c06
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
xor r9d, r9d
lea r8d, [r9 + 7]
lea rcx, [rsp + 0x40]
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x404a8e
lea rdx, [0x004011f0]
jmp 0x404c0d
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
lea r8d, [r9 + 2]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rsi, rax
test rax, rax
jne 0x404abf
lea rdx, [0x00401208]
jmp 0x404c0d
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 4]
mov qword [rsp + 0x20], 0x1000
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbp, rax
test rax, rax
jne 0x404aef
lea rdx, [0x00401220]
jmp 0x404c0d
mov rcx, rax
call fcn.00404858
and qword [rsp + 0x868], 0
and dword [rsp + 0x860], 0
mov rcx, rbp
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
xor r9d, r9d
lea rax, [rbx + 0xc]
lea edx, [r9 + 4]
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbp, rax
test rax, rax
jne 0x404b8e
lea rdx, [0x00401238]
lea rcx, [0x00407060]
or r8d, 0xffffffff
call fcn.00406030
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8d, [rbp + 0xa]
lea rcx, [0x00407060]
mov edx, eax
call fcn.00405f80
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x404c37
lea rdx, [0x0040124c]
lea rcx, [0x00407060]
or r8d, 0xffffffff
call fcn.00406030
jmp 0x404bc9
add rbx, rax
lea rcx, [rsp + 0x868]
mov r8d, 8
mov rdx, rbx
call qword [0x00407020]
lea rdx, [rbx + 8]
lea rcx, [rsp + 0x860]
mov r8d, 4
call qword [0x00407020]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movabs r11, 0x74636a6e696d7678
cmp qword [rsp + 0x868], r11
jne 0x404a20
mov eax, 1
test byte [rsp + 0x860], al
jne 0x404c39
jmp 0x404a20
lea rdx, [0x004011d8]
lea rcx, [0x00407060]
or r8d, 0xffffffff
call fcn.00406030
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x00407060]
mov edx, eax
mov r8d, 0xa
call fcn.00405f80
xor eax, eax
mov rbx, qword [rsp + 0x870]
add rsp, 0x840
pop rdi
pop rsi
pop rbp
ret
Function at 0x404da8
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, 0x22
cmp word [rax], dx
jne 0x404e0d
lea rcx, [rax + 2]
call qword [0x00407038]
xor ecx, ecx
cmp rax, rcx
je 0x404dd9
cmp word [rax + 2], cx
je 0x404dd9
add rax, 4
jmp 0x404e2f
lea rdx, [0x00401160]
lea rcx, [0x00407060]
or r8d, 0xffffffff
call fcn.00406030
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rcx, [0x00407060]
mov rdx, rax
or r8d, 0xffffffff
call fcn.00406030
xor eax, eax
jmp 0x404e2f
mov edx, 0x20
mov rcx, rax
call qword [0x00407038]
xor ecx, ecx
cmp rax, rcx
jne 0x404e2b
lea rdx, [0x00401178]
jmp 0x404de0
add rax, 2
add rsp, 0x28
ret

Function at 0x404e68
Capabilities:
Set environment variable

Disassembly:
sub rsp, 0x448
xor eax, eax
mov rdx, rcx
lea rcx, [rsp + 0x20]
lea r8d, [rax + 0x10]
mov dword [rsp + 0x434], eax
mov word [rsp + 0x20], ax
call fcn.00405ef0
lea rdx, [rsp + 0x20]
lea rcx, [0x00401150]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add rsp, 0x448
ret

Function at 0x404f08
Capabilities:
Resolve function by parsing pe exports

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 r12
push r13
push r14
sub rsp, 0x20
movsxd rax, dword [rcx + 0x3c]
xor r14d, r14d
mov rdi, rcx
mov rbx, r14
cmp dword [rax + rcx + 0x8c], r14d
je 0x404f98
mov esi, dword [rax + rcx + 0x88]
mov ebp, r14d
add rsi, rcx
mov r13d, dword [rsi + 0x1c]
mov r12d, dword [rsi + 0x20]
add r13, rcx
add r12, rcx
cmp dword [rsi + 0x14], r14d
jbe 0x404f98
mov ecx, dword [r12]
lea rdx, [0x00401580]
add rcx, rdi
call qword [0x00407030]
cmp eax, r14d
je 0x404f83
inc ebp
add r12, 4
cmp ebp, dword [rsi + 0x14]
jb 0x404f5d
jmp 0x404f98
mov eax, dword [rsi + 0x24]
mov edx, ebp
lea rcx, [rdi + rax]
movzx eax, word [rcx + rdx*2]
mov ebx, dword [r13 + rax*4]
add rbx, rdi
call main
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
sub eax, dword [0x00407054]
mov rdi, qword [rsp + 0x58]
cmp eax, 0x7fff
cmova rbx, r14
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
pop r13
pop r12
ret
Function at 0x140002060
Capabilities:
Parse pe header

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

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.14000114c
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.14000114c
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, 5
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, [0x14000235c]
mov qword [rsp + 0x38], rax
lea rax, [0x140002360]
mov qword [rsp + 0x30], rax
lea rax, str._lib_tools.jar
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 2
call sub.jli.dll_JLI_Launch
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
Function at 0x140001591
Capabilities:
Terminate process

Disassembly:
jmp 0x14000f46c
push rbx
movsxd r11, r9d
mov rbx, r8
mov r10, rcx
test edx, edx
jns 0x14000f484
lea rcx, str.bad_value_count
jmp 0x14000f4f3
mov r9, qword [rcx]
cmp r11d, 1
je 0x14000f4c7
mov ecx, 0x100
cmp dword [rsp + 0x30], ecx
je 0x14000f4c7
sub ecx, dword [rsp + 0x30]
mov r8d, r11d
jmp 0x14000f4be
mov rax, r9
inc r9
sub r8d, 1
je 0x14000f4b4
movzx eax, byte [rax]
cmp eax, ecx
jge 0x14000f4be
dec edx
mov r8d, r11d
cmp r9, rbx
ja 0x14000f4ec
test edx, edx
jg 0x14000f4a1
mov qword [r10], r9
pop rbx
ret
movsxd r8, edx
mov rcx, r11
imul r11, r8
xor edx, edx
mov rax, r11
div rcx
cmp rax, r8
jne 0x14000f4ec
lea rax, [r11 + r9]
cmp rax, rbx
ja 0x14000f4ec
mov qword [r10], rax
pop rbx
ret
lea rcx, str.EOF_reading_band
xor edx, edx
pop rbx
jmp fcn.1400014a6

Function at 0x1400015b4
Capabilities:
Terminate process

Disassembly:
jmp 0x14001f804
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov ecx, 1
call fcn.1400018ac
test al, al
je 0x14001f6cf
xor sil, sil
mov byte [rsp + 0x20], sil
call fcn.140001703
mov bl, al
mov ecx, dword [0x140033b48]
cmp ecx, 1
je 0x14001f6da
test ecx, ecx
jne 0x14001f605
mov dword [0x140033b48], 1
lea rdx, [0x140025660]
lea rcx, [0x140025330]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
test eax, eax
je 0x14001f5e6
mov eax, 0xff
jmp 0x14001f6bf
lea rdx, [0x140025220]
lea rcx, [section..rdata]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [0x140033b48], 2
jmp 0x14001f60d
mov sil, 1
mov byte [rsp + 0x20], sil
mov cl, bl
call fcn.1400016bd
call fcn.1400015f5
mov rbx, rax
cmp qword [rax], 0
je 0x14001f640
mov rcx, rax
call fcn.14000132a
test al, al
je 0x14001f640
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [rbx]
call qword [0x140038020]
call fcn.14000164f
mov rbx, rax
cmp qword [rax], 0
je 0x14001f662
mov rcx, rax
call fcn.14000132a
test al, al
je 0x14001f662
mov rcx, qword [rbx]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_initial_narrow_environment
mov rdi, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p___argv
mov rbx, qword [rax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p___argc
mov r8, rdi
mov rdx, rbx
mov ecx, dword [rax]
call fcn.14000159b
mov ebx, eax
call fcn.1400015be
test al, al
je 0x14001f6e4
test sil, sil
jne 0x14001f699
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
xor edx, edx
mov cl, 1
call fcn.14000131b
mov eax, ebx
jmp 0x14001f6bf
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov ecx, 7
call fcn.1400016ea
nop
mov ecx, 7
call fcn.1400016ea
mov ecx, ebx
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
mov ecx, ebx
call sub.api_ms_win_crt_runtime_l1_1_0.dll__exit
nop
int3
sub rsp, 0x28
call fcn.1400015d2
add rsp, 0x28
jmp 0x14001f578