joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006a250
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rax, rdx
mov qword [rsp + 0x20], rdx
mov rsi, rcx
lea rdx, [rsp + 0x28]
xor ebx, ebx
mov rcx, rax
movzx r15d, r9b
mov dword [rsp + 0x28], ebx
movzx r12d, r8b
call fcn.140067610
mov r13d, dword [rsp + 0x28]
lea r14, [rsi + 0x18]
test al, al
lea rbp, [rsi + 0x48]
mov rax, qword [rsi + 0x28]
cmove r13d, ebx
mov qword [rsi + 0x30], rax
mov rax, qword [rsi]
xor edx, edx
mov dword [rsp + 0x28], r13d
mov ecx, dword [rax + 0x64]
add ecx, 0x1f
shr ecx, 5
shl ecx, 2
mov edi, ecx
mov r8d, ecx
mov rcx, qword [rsi + 0x78]
mov qword [rsp + 0x60], rdi
call fcn.1402bd780
mov rax, qword [rsi]
mov rdx, r14
mov rcx, rsi
mov r8d, dword [rax + 0x60]
call fcn.14006bb80
mov rcx, qword [rsi + 0x28]
movzx r11d, al
cmp qword [rsi + 0x30], rcx
je 0x14006a436
nop word [rax + rax]
mov ebx, r13d
test r13d, r13d
je 0x14006a436
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call fcn.140067610
mov r13d, dword [rsp + 0x28]
test al, al
mov rcx, qword [rsi + 0x78]
mov eax, 0
cmove r13d, eax
mov r8, rdi
xor edx, edx
mov dword [rsp + 0x28], r13d
call fcn.1402bd780
mov rax, qword [rbp + 0x10]
xor r11b, r11b
mov qword [rbp + 0x18], rax
mov rdi, qword [r14 + 0x10]
cmp rdi, qword [r14 + 0x18]
je 0x14006a415
nop word [rax + rax]
mov r10, qword [rsi]
mov r9d, dword [rdi]
shl r9, 4
add r9, qword [r10 + 0x10]
mov eax, dword [r9 + 0xc]
cmp eax, ebx
je 0x14006a3cc
cmp eax, 0xffffffff
je 0x14006a3cc
cmp eax, 0xfffffffe
jne 0x14006a3f0
mov edx, dword [r9 + 8]
mov r10, qword [r10 + 0x40]
lea rcx, [rdx + rdx*2]
mov r8d, dword [r10 + rcx*4]
shr r8d, 0x1f
not r8b
and r8b, 1
cmp edx, 0xffffffff
je 0x14006a3c3
mov eax, edx
lea rcx, [rax + rax*2]
mov eax, dword [r10 + rcx*4]
btr eax, 0x1f
cmp ebx, eax
jb 0x14006a3b9
cmp ebx, dword [r10 + rcx*4 + 4]
jbe 0x14006a3c7
mov edx, dword [r10 + rcx*4 + 8]
cmp edx, 0xffffffff
jne 0x14006a3a0
xor r8b, 1
test r8b, r8b
je 0x14006a3f0
mov r8d, dword [r9]
mov rdx, rbp
mov rcx, rsi
call fcn.14006bb80
test al, al
jne 0x14006a3e3
test r11b, r11b
je 0x14006a3e6
mov r11b, 1
test r15b, r15b
jne 0x14006a3f0
test r11b, r11b
jne 0x14006a432
test r12b, r12b
jne 0x14006a407
mov rax, qword [rsi]
mov rdx, rbp
mov rcx, rsi
mov r8d, dword [rax + 0x60]
call fcn.14006bb80
add rdi, 4
cmp rdi, qword [r14 + 0x18]
jne 0x14006a360
mov rax, r14
mov r14, rbp
mov rbp, rax
mov rax, qword [r14 + 0x10]
cmp qword [r14 + 0x18], rax
je 0x14006a436
mov rdi, qword [rsp + 0x60]
jmp 0x14006a300
mov al, 1
jmp 0x14006a43a
movzx eax, r11b
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1401bfdb0
Capabilities:
Encode data using base64

Disassembly:
xor r10d, r10d
test r8d, r8d
jle 0x1401bfea3
lea r9, [rdx + 1]
lea r11, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
cmp r8d, 3
jl 0x1401bfe2b
movzx eax, byte [r9]
movzx edx, byte [r9 - 1]
shl rdx, 8
or rdx, rax
movzx eax, byte [r9 + 1]
shl rdx, 8
or rdx, rax
mov rax, rdx
shr rax, 0x12
movzx eax, byte [rax + r11]
mov byte [rcx], al
mov rax, rdx
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rax + r11]
mov byte [rcx + 1], al
mov rax, rdx
shr rax, 6
and eax, 0x3f
movzx eax, byte [rax + r11]
mov byte [rcx + 2], al
add rcx, 3
and edx, 0x3f
movzx eax, byte [rdx + r11]
mov byte [rcx], al
jmp 0x1401bfe84
movzx edx, byte [r9 - 1]
shl edx, 0x10
cmp r8d, 2
jne 0x1401bfe42
movzx eax, byte [r9]
shl eax, 8
or edx, eax
mov rax, rdx
shr rax, 0x12
movzx eax, byte [rax + r11]
mov byte [rcx], al
mov rax, rdx
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rax + r11]
mov byte [rcx + 1], al
cmp r8d, 1
jne 0x1401bfe6e
lea eax, [r8 + 0x3c]
jmp 0x1401bfe7a
shr rdx, 6
and edx, 0x3f
movzx eax, byte [rdx + r11]
mov byte [rcx + 2], al
add rcx, 3
mov byte [rcx], 0x3d
add r10d, 4
add r9, 3
sub r8d, 3
inc rcx
test r8d, r8d
jg 0x1401bfdc7
mov byte [rcx], 0
mov eax, r10d
ret
mov byte [rcx], r10b
mov eax, r10d
ret
Function at 0x140297250
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov r9, qword [rcx]
lea r8, [0x1402972e0]
mov rdi, rcx
xor edx, edx
xor ecx, ecx
lea rax, [r9 + 0x20]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
call fcn.1402cf0a8
mov rsi, rax
test rax, rax
jne 0x140297294
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rax, qword [rdi]
mov qword [rsp + 0x40], rbx
lock inc dword [rax + 8]
mov rbx, qword [rdi]
mov rcx, qword [rbx + 0x10]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1402972b7
call qword [0x140316430]
mov qword [rbx + 0x10], rsi
mov rcx, qword [rdi]
mov rcx, qword [rcx + 0x10]
call qword [0x1403165f0]
mov rbx, qword [rsp + 0x40]
mov al, 1
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1402cf828
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x1402cf6bb
xor ecx, ecx
call qword [0x140316390]
test rax, rax
je 0x1402cf6bb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1402cf6bb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1402cf6bb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1402cf6bb
cmp dword [rcx + 0x84], 0xe
jbe 0x1402cf6bb
cmp dword [rcx + 0xf8], 0
je 0x1402cf6bb
mov ecx, ebx
call fcn.1402cf75c
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.1402cf54c
cmp dword [rbp + 0x20], 0
je 0x1402cf708
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1402cf710
int3
xor r8d, r8d
xor edx, edx
jmp 0x1402cf654
Function at 0x140002108
Capabilities:
Parse pe header

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

Function at 0x140a09108
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140a0928f
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 0x140a09139
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a0911f
add dl, dl
jne 0x140a09146
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a091a6
xor eax, eax
add dl, dl
jne 0x140a09155
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a0925d
add dl, dl
jne 0x140a09166
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a09173
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a09180
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a0918d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140a0919a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140a0912e
mov eax, 1
add dl, dl
jne 0x140a091b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a091c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a091ab
sub eax, ebx
mov ebx, 1
jne 0x140a091fc
mov ecx, 1
add dl, dl
jne 0x140a091de
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a091eb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a091d3
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a0912e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140a09218
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a09225
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a0920d
cmp eax, 0x7d00
jae 0x140a0924b
cmp eax, 0x500
jb 0x140a09246
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a0912e
cmp eax, 0x7f
ja 0x140a0924e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a0912e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140a09282
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 0x140a0912e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x180001cf0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rdi
sub rsp, 0x40
mov rdi, rcx
sub edx, 1
je 0x180001d1d
cmp edx, 5
jne 0x180001d12
test r8, r8
je 0x180001d12
mov rax, qword [0x180006640]
mov qword [r8], rax
mov eax, 1
add rsp, 0x40
pop rdi
ret
lea r8, str.bintype
mov qword [rsp + 0x50], rbx
mov edx, 0x68
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rbx, rax
test rax, rax
je 0x180001d94
mov rdx, rax
mov qword [rsp + 0x58], rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
je 0x180001d7f
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, eax
mov rcx, rsi
call fcn.180001470
test rax, rax
je 0x180001d7f
mov rcx, rax
call fcn.180001b60
test rax, rax
je 0x180001d7f
call rax
mov rsi, qword [rsp + 0x58]
mov eax, 1
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov rbx, qword [rsp + 0x50]
mov eax, 1
add rsp, 0x40
pop rdi
ret
Function at 0x140011352
Capabilities:
Terminate process

Disassembly:
jmp 0x1400169e0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret
Function at 0x14001142e
Capabilities:
Parse pe header

Disassembly:
jmp 0x140017d30
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140017d50
xor al, al
jmp 0x140017dd1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140017d63
xor al, al
jmp 0x140017dd1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140017d8d
xor al, al
jmp 0x140017dd1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140017da1
xor al, al
jmp 0x140017dd1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140017db3
xor al, al
jmp 0x140017dd1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140017dcf
xor al, al
jmp 0x140017dd1
mov al, 1
add rsp, 0x38
ret
Function at 0x140015b30
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140011604
movzx eax, al
test eax, eax
jne 0x140015b50
mov ecx, 7
call fcn.140011500
nop
mov byte [rsp + 0x20], 0
call fcn.14001153c
mov byte [rsp + 0x21], al
cmp dword [0x140023b78], 1
jne 0x140015b74
mov ecx, 7
call fcn.140011500
nop
jmp 0x140015bcc
cmp dword [0x140023b78], 0
jne 0x140015bc7
mov dword [0x140023b78], 1
lea rdx, [0x14001e660]
lea rcx, [0x14001e330]
call fcn.1400112d0
test eax, eax
je 0x140015ba8
mov eax, 0xff
jmp 0x140015cd1
lea rdx, [0x14001e220]
lea rcx, [section..rdata]
call fcn.140011523
mov dword [0x140023b78], 2
jmp 0x140015bcc
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.1400114ec
call fcn.140011456
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140015c29
mov rcx, qword [rsp + 0x30]
call fcn.14001123f
movzx eax, al
test eax, eax
je 0x140015c29
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x14002a020]
nop
call fcn.140011497
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x140015c5d
mov rcx, qword [rsp + 0x38]
call fcn.14001123f
movzx eax, al
test eax, eax
je 0x140015c5d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.1400115b4
nop
call fcn.140015d80
mov dword [rsp + 0x28], eax
call fcn.14001142e
movzx eax, al
test eax, eax
jne 0x140015c7c
mov ecx, dword [rsp + 0x28]
call fcn.14001107d
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140015c8b
call fcn.1400115c3
nop
xor edx, edx
mov cl, 1
call fcn.140011217
mov eax, dword [rsp + 0x28]
jmp 0x140015cd1
add rsp, 0x68
ret
Function at 0x140004ad0
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, 7
syscall
ret

Function at 0x1400054fc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call fcn.1403fadb8
nop
test rax, rax
je 0x140005547
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140005547
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140005547
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140005547
cmp dword [rcx + 0x84], 0xe
jbe 0x140005547
cmp dword [rcx + 0xf8], 0
je 0x140005547
mov al, 1
jmp 0x140005549
xor al, al
add rsp, 0x28
ret
Function at 0x140001000
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x58
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x34], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0x20
lea r8, [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp eax, 0
je 0x1400010b3
mov dword [rsp + 0x40], 1
lea r8, [rsp + 0x40]
add r8, 4
xor eax, eax
mov ecx, eax
lea rdx, str.SeDebugPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov dword [rsp + 0x4c], 2
mov rcx, qword [rsp + 0x38]
xor edx, edx
lea r8, [rsp + 0x40]
mov r9d, 0x10
xor eax, eax
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0
sete al
and al, 1
movzx eax, al
mov dword [rsp + 0x34], eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140001590
mov eax, dword [rsp + 0x30]
add rsp, 0x58
ret

Function at 0x1400013b0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x48
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x34], ecx
cmp dword [rsp + 0x34], 3
jne 0x14000142e
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 8]
call qword [sym.imp.ucrtbased.dll_atol]
mov rdx, qword [rsp + 0x28]
mov ecx, eax
call fcn.1400010e0
mov dword [rsp + 0x30], eax
mov eax, 0xffffffff
cmp eax, dword [rsp + 0x30]
jne 0x14000141d
lea rcx, str.Inject_dll_failed_n
call fcn.140001470
jmp 0x140001429
lea rcx, str.Inject_dll_successfully_n
call fcn.140001470
jmp 0x140001459
lea rcx, [0x1400040fe]
call fcn.140001470
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax]
lea rcx, str.Usage:__s_PID__DllPath__n
call fcn.140001470
mov ecx, 1
call qword [sym.imp.ucrtbased.dll_exit]
mov eax, dword [rsp + 0x44]
add rsp, 0x48
ret
Function at 0x140895058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1408951df
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 0x140895089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14089506f
add dl, dl
jne 0x140895096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408950f6
xor eax, eax
add dl, dl
jne 0x1408950a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408951ad
add dl, dl
jne 0x1408950b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408950c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408950d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408950dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1408950ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14089507e
mov eax, 1
add dl, dl
jne 0x140895106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140895113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408950fb
sub eax, ebx
mov ebx, 1
jne 0x14089514c
mov ecx, 1
add dl, dl
jne 0x14089512e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14089513b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140895123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14089507e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140895168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140895175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14089515d
cmp eax, 0x7d00
jae 0x14089519b
cmp eax, 0x500
jb 0x140895196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14089507e
cmp eax, 0x7f
ja 0x14089519e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14089507e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1408951d2
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 0x14089507e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20

Function at 0x100403a20
Capabilities:
Encode data using xor

Disassembly:
xor al, 0x6c
xor al, 0x64
xor al, 0x67
xor al, 0x41
xor al, 0x3e
xor al, 0x7d
xor al, 0xa2
xor al, 0x9a
xor al, 0xa3
xor al, 0x88
xor al, 0x9d
xor al, 0xa4
xor al, 0x71
xor al, 0x74
xor al, 0x59
xor al, 0x87
xchg dword [rbp*4 - 0x57cb58cc], esi
xor al, 0x99
xor al, 0xa1
xor al, 0x86
xor al, 0xa3
xor al, 0xa3
movabs dword [0xa73490345934a834], eax
xor al, 0xad
xor al, 0xa7
xor al, 0xa8
xor al, 0x99
cdq
xor al, 0xa1
xor al, 0x67
xor al, 0x66
xor al, 0x90
xor al, 0xa7
xor al, 0x9c
xor al, 0x99
xor al, 0xa0
xor al, 0xa0
xor al, 0x67
xor al, 0x66
xor al, 0x62
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, [0x1400022e8]
lea r9, str._J_ms8m
mov r8d, 5
mov qword [rsp + 0x38], rax
lea rax, [0x1400022d8]
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], 2
call sub.jli.dll_JLI_Launch
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret

Function at 0x140001978
Capabilities:
Parse pe header

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

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.14001fb10
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.14001fb10
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x1400156a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400ef154]
mov rbx, rcx
test esi, esi
jle 0x1400157d0
mov rax, qword [0x1400ef158]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400156eb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140015775
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400156d0
mov rcx, rbx
call fcn.1400160f0
mov rdi, rax
test rax, rax
je 0x1400157f2
mov rax, qword [0x1400ef158]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140016230
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400ef158]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400157d7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14001576e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140015780
add dword [0x1400ef154], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400ef158]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001576e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140015630
nop dword [rax]
xor esi, esi
jmp 0x1400156f8
mov rax, qword [0x1400ef158]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140015630
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140015630
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140015d60
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400ef1c0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400ef1a0]
test rbx, rbx
je 0x140015dbc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140015db3
test rsi, rsi
je 0x140015db3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140015d98
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]