joyce8/EMBER2024-capa huggingface dataset:
Function at 0x481f60
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x00495680]
xor edx, edx
mov r8, rcx
cmp word [r9], 0x5a4d
je 0x481f80
mov rax, rdx
add rsp, 0x28
ret
mov rcx, r9
call fcn.00481e40
test eax, eax
je 0x481f78
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add rax, r9
movzx edx, word [rax + 0x14]
lea rdx, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x481fdd
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x481fd4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x481f78
add rdx, 0x28
cmp rdx, r9
jne 0x481fc0
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x180743058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1807431df
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 0x180743089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18074306f
add dl, dl
jne 0x180743096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1807430f6
xor eax, eax
add dl, dl
jne 0x1807430a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1807431ad
add dl, dl
jne 0x1807430b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1807430c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1807430d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1807430dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1807430ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18074307e
mov eax, 1
add dl, dl
jne 0x180743106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180743113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1807430fb
sub eax, ebx
mov ebx, 1
jne 0x18074314c
mov ecx, 1
add dl, dl
jne 0x18074312e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18074313b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180743123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18074307e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x180743168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180743175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18074315d
cmp eax, 0x7d00
jae 0x18074319b
cmp eax, 0x500
jb 0x180743196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18074307e
cmp eax, 0x7f
ja 0x18074319e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18074307e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1807431d2
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 0x18074307e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400053dc
Capabilities:
Parse pe header

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

Disassembly:
cld
pop r11
jmp 0x9a83ad
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x9a83bd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x9a83a5
lea eax, [rcx + 1]
jmp 0x9a83cb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x9a83de
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x9a83c4
sub eax, 3
jb 0x9a83fe
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x9a844d
sar eax, 1
movsxd rbp, eax
jb 0x9a8434
jmp 0x9a840c
add ebx, ebx
jne 0x9a840a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x9a8434
inc ecx
add ebx, ebx
jne 0x9a841a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x9a8434
call r11
adc ecx, ecx
add ebx, ebx
jne 0x9a842d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x9a841c
add ecx, 2
jmp 0x9a8439
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.009a8362
jmp 0x9a83ad
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x17b000
mov dl, 0x43
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x9a8499
cmp rsi, rcx
jae 0x9a84a1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x9a8480
cmp al, 0x8f
ja 0x9a8480
cmp byte [rsi - 2], 0xf
je 0x9a8486
sub al, 0xe8
cmp al, 1
ja 0x9a846a
cmp rsi, rcx
jae 0x9a84a1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x9a8470
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x9a84a1
lodsb al, byte [rsi]
jmp 0x9a8480
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x5a2000]
mov eax, dword [rdi]
or eax, eax
je 0x9a84fe
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x5a8ba4]
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 0x9a84ae
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 0x9a84f8
mov qword [rbx], rax
add rbx, 8
jmp 0x9a84ce
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 0x9a8542
cmp al, 0xef
ja 0x9a852a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x9a850a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x9a8519
mov eax, dword [rdi]
add rdi, 4
jmp 0x9a8519
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 + 0x1af]
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 0x9a8596
sub rsp, 0xffffffffffffff80
jmp 0x46ca20
Function at 0x140060a50
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x140060a5d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140060a6d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140060a55
lea eax, [rcx + 1]
jmp 0x140060a7b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x140060a8e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140060a74
sub eax, 3
jb 0x140060aae
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140060afd
sar eax, 1
movsxd rbp, eax
jb 0x140060ae4
jmp 0x140060abc
add ebx, ebx
jne 0x140060aba
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140060ae4
inc ecx
add ebx, ebx
jne 0x140060aca
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140060ae4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140060add
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140060acc
add ecx, 2
jmp 0x140060ae9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140060a12
jmp 0x140060a5d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x38a00
mov dl, 0x15
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140060b4d
cmp rsi, rcx
jae 0x140060b55
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140060b34
cmp al, 0x8f
ja 0x140060b34
cmp byte [rsi - 2], 0xf
je 0x140060b3a
sub al, 0xe8
cmp al, 1
ja 0x140060b1e
cmp rsi, rcx
jae 0x140060b55
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140060b24
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140060b55
lodsb al, byte [rsi]
jmp 0x140060b34
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x5e000]
mov eax, dword [rdi]
or eax, eax
je 0x140060bb2
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x60614]
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 0x140060b62
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 0x140060bac
mov qword [rbx], rax
add rbx, 8
jmp 0x140060b82
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 0x140060bec
cmp al, 0xef
ja 0x140060bde
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140060bbe
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140060bcd
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 + 0x247]
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 0x140060c40
sub rsp, 0xffffffffffffff80
jmp 0x140011b50
Function at 0x1400cffd0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rcx
neg rcx
test rax, 7
je 0x1400cffed
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1400d0048
test al, 7
jne 0x1400cffe0
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x1400d0001
mov rdx, qword [rax - 8]
test dl, dl
je 0x1400d0072
test dh, dh
je 0x1400d006c
shr rdx, 0x10
test dl, dl
je 0x1400d0066
test dh, dh
je 0x1400d0060
shr rdx, 0x10
test dl, dl
je 0x1400d005a
test dh, dh
je 0x1400d0054
shr edx, 0x10
test dl, dl
je 0x1400d004e
test dh, dh
jne 0x1400d0001
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x1400d1620
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400d1648
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400d1648
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x1400da66c
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400da69c
xor eax, eax
jmp 0x1400da75f
mov rbp, rbx
cmp word [rax], si
je 0x1400da6c1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400da6a8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400da6a4
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400da5bc
movsxd r14, eax
test eax, eax
jne 0x1400da6ff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400da695
mov rcx, r14
call fcn.1400d49c0
mov rdi, rax
test rax, rax
jne 0x1400da718
xor ecx, ecx
call fcn.1400d3e34
jmp 0x1400da6f4
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400da5bc
test eax, eax
jne 0x1400da749
mov rcx, rdi
call fcn.1400d3e34
jmp 0x1400da753
xor ecx, ecx
call fcn.1400d3e34
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1400ae090
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1400ae09d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1400ae0ad
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1400ae095
lea eax, [rcx + 1]
jmp 0x1400ae0bb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1400ae0ce
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1400ae0b4
sub eax, 3
jb 0x1400ae0ee
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400ae13d
sar eax, 1
movsxd rbp, eax
jb 0x1400ae124
jmp 0x1400ae0fc
add ebx, ebx
jne 0x1400ae0fa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400ae124
inc ecx
add ebx, ebx
jne 0x1400ae10a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400ae124
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1400ae11d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1400ae10c
add ecx, 2
jmp 0x1400ae129
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1400ae052
jmp 0x1400ae09d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x62c00
mov dl, 0x12
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1400ae18d
cmp rsi, rcx
jae 0x1400ae195
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400ae174
cmp al, 0x8f
ja 0x1400ae174
cmp byte [rsi - 2], 0xf
je 0x1400ae17a
sub al, 0xe8
cmp al, 1
ja 0x1400ae15e
cmp rsi, rcx
jae 0x1400ae195
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400ae164
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1400ae195
lodsb al, byte [rsi]
jmp 0x1400ae174
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xab000]
mov eax, dword [rdi]
or eax, eax
je 0x1400ae1f2
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xc71fc]
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 0x1400ae1a2
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 0x1400ae1ec
mov qword [rbx], rax
add rbx, 8
jmp 0x1400ae1c2
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 0x1400ae22c
cmp al, 0xef
ja 0x1400ae21e
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1400ae1fe
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1400ae20d
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 + 0x24f]
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 0x1400ae280
sub rsp, 0xffffffffffffff80
jmp 0x140035110
Function at 0x14012a4a0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14012a4ad
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14012a4bd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14012a4a5
lea eax, [rcx + 1]
jmp 0x14012a4cb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14012a4de
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14012a4c4
sub eax, 3
jb 0x14012a4fe
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14012a54d
sar eax, 1
movsxd rbp, eax
jb 0x14012a534
jmp 0x14012a50c
add ebx, ebx
jne 0x14012a50a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14012a534
inc ecx
add ebx, ebx
jne 0x14012a51a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14012a534
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14012a52d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14012a51c
add ecx, 2
jmp 0x14012a539
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.14012a462
jmp 0x14012a4ad
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xb2a00
mov dl, 0x19
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14012a599
cmp rsi, rcx
jae 0x14012a5a1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14012a580
cmp al, 0x8f
ja 0x14012a580
cmp byte [rsi - 2], 0xf
je 0x14012a586
sub al, 0xe8
cmp al, 1
ja 0x14012a56a
cmp rsi, rcx
jae 0x14012a5a1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14012a570
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14012a5a1
lodsb al, byte [rsi]
jmp 0x14012a580
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x127000]
mov eax, dword [rdi]
or eax, eax
je 0x14012a5fe
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x14bc9c]
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 0x14012a5ae
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 0x14012a5f8
mov qword [rbx], rax
add rbx, 8
jmp 0x14012a5ce
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 0x14012a638
cmp al, 0xef
ja 0x14012a62a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14012a60a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14012a619
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 + 0x23f]
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 0x14012a68c
sub rsp, 0xffffffffffffff80
jmp 0x140042724
Function at 0x14009e8b0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14009e8fa
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14009e8fa
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14009e8fa
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14009e8fa
cmp dword [rcx + 0x84], 0xe
jbe 0x14009e8fa
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14009e8fc
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 0x140001040
Capabilities:
Access peb ldr_data
Encode data using xor
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x18
cmp dword [0x140149660], 0
jne 0x140001220
mov rax, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rax + 0x18]
mov r8, qword [rcx + 0x10]
mov rax, qword [r8 + 0x30]
test rax, rax
je 0x14000122a
mov r9, rax
movsxd rax, dword [rax + 0x3c]
mov ecx, dword [rax + r9 + 0x88]
test ecx, ecx
je 0x1400010ae
lea rdx, [r9 + rcx]
mov ecx, dword [r9 + rcx + 0xc]
mov eax, dword [rcx + r9]
or eax, 0x20202020
cmp eax, 0x6c64746e
jne 0x1400010ae
mov eax, dword [rcx + r9 + 4]
or eax, 0x20202020
cmp eax, 0x6c642e6c
je 0x1400010ba
mov r8, qword [r8]
mov rax, qword [r8 + 0x30]
test rax, rax
jne 0x140001071
test rdx, rdx
je 0x14000122a
mov qword [rsp + 0x20], rbx
mov ebx, dword [rdx + 0x18]
mov qword [rsp + 0x28], rbp
mov ebp, dword [rdx + 0x24]
mov qword [rsp + 0x30], rsi
add rbp, r9
mov esi, dword [rdx + 0x20]
mov qword [rsp + 0x38], rdi
add rsi, r9
mov qword [rsp + 0x10], r12
mov r12d, 0x775a
mov qword [rsp + 8], r14
mov r14d, dword [rdx + 0x1c]
add r14, r9
mov qword [rsp], r15
xor r8d, r8d
lea r15, [0x140149660]
nop dword [rax + rax]
dec ebx
mov edx, dword [rsi + rbx*4]
add rdx, r9
cmp word [rdx], r12w
jne 0x140001173
xor r11d, r11d
mov r10d, 0x66e6a1e1
mov rax, rdx
nop word [rax + rax]
movzx eax, word [rax]
mov ecx, r10d
ror ecx, 8
inc r11d
add ecx, eax
mov eax, r11d
add rax, rdx
xor r10d, ecx
cmp byte [rax], 0
jne 0x140001130
lea rcx, [r8*8]
inc r8d
mov dword [rcx + r15 + 4], r10d
movzx eax, word [rbp + rbx*2]
mov eax, dword [r14 + rax*4]
mov dword [rcx + r15 + 8], eax
cmp r8d, 0x1f4
je 0x140001177
test ebx, ebx
jne 0x140001110
mov r14, qword [rsp + 8]
lea eax, [r8 - 1]
mov r12, qword [rsp + 0x10]
xor edx, edx
mov rsi, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x28]
mov dword [0x140149660], r8d
test eax, eax
je 0x140001212
nop dword [rax]
mov ecx, r8d
xor eax, eax
sub ecx, edx
cmp ecx, 1
je 0x140001208
nop dword [rax]
mov ecx, eax
lea r9d, [rax + 1]
lea r10, [r9*8]
mov ebx, dword [r10 + r15 + 8]
lea r11, [rcx*8]
mov edi, dword [r11 + r15 + 8]
cmp edi, ebx
jbe 0x1400011f9
mov ecx, dword [r11 + r15 + 4]
mov eax, dword [r10 + r15 + 4]
mov dword [r11 + r15 + 4], eax
mov dword [r10 + r15 + 4], ecx
mov dword [r11 + r15 + 8], ebx
mov dword [r10 + r15 + 8], edi
mov r8d, dword [0x140149660]
mov ecx, r8d
mov eax, r9d
sub ecx, edx
dec ecx
cmp r9d, ecx
jb 0x1400011b0
inc edx
lea eax, [r8 - 1]
cmp edx, eax
jb 0x1400011a0
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x20]
mov r15, qword [rsp]
mov eax, 1
add rsp, 0x18
ret
xor eax, eax
add rsp, 0x18
ret