joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000fb40
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rdi
push rbp
lea rbp, [r11 - 0x5f]
sub rsp, 0x90
mov eax, dword [0x140071470]
xor r8d, r8d
cmp dword [0x14008c098], 2
mov rdi, rcx
movups xmm0, xmmword [str.wu]
mov dword [rbp + 0x17], eax
movups xmm1, xmmword [0x140071460]
movzx eax, byte [0x140071474]
movups xmmword [rbp - 9], xmm0
mov byte [rbp + 0x1b], al
movups xmmword [rbp + 7], xmm1
jl 0x14000fcfd
movdqa xmm0, xmmword [0x140082bf0]
lea rcx, [rbp - 5]
movdqa xmm5, xmmword [0x140082b80]
mov eax, 4
movdqa xmm4, xmmword [0x140082c10]
movaps xmmword [r11 - 0x18], xmm6
movaps xmmword [rsp + 0x70], xmm7
movdqa xmm7, xmmword [0x140082bb0]
movd xmm6, eax
mov eax, 0x1f
movaps xmmword [r11 - 0x38], xmm8
movdqa xmmword [rbp - 0x19], xmm0
mov edx, dword [rbp - 0x19]
movd xmm8, eax
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add r8d, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
pand xmm2, xmmword [0x140082bd0]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
pxor xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, edx
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x140082bd0]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
pxor xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0x20
jl 0x14000fbe1
movaps xmm8, xmmword [rsp + 0x60]
movaps xmm7, xmmword [rsp + 0x70]
movaps xmm6, xmmword [rsp + 0x80]
cmp r8d, 0x25
jge 0x14000fd43
movsxd rax, r8d
lea r9, [rbp - 9]
add r9, rax
nop word [rax + rax]
mov eax, 0x4bda12f7
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub al, dl
movsx eax, al
imul ecx, eax, 0x36
add cl, r8b
inc r8d
xor byte [r9 - 1], cl
cmp r8d, 0x25
jl 0x14000fd10
movsd xmm0, qword [str.rrkrntl]
mov ebx, 8
movsd qword [rbp - 0x19], xmm0
xor byte [rbp - 0x18], 0x37
xor byte [rbp - 0x17], 0x38
xor byte [rbp - 0x16], 0x39
xor byte [rbp - 0x15], 0x3a
xor byte [rbp - 0x14], 0x3b
xor byte [rbp - 0x13], 0x3c
xor byte [rbp - 0x12], 0x3d
mov byte [rbp - 0x19], 0x44
mov rax, qword [rbp - 0x19]
mov qword [rdi], rax
nop dword [rax]
call fcn.14002e090
and eax, 7
movzx eax, byte [rbp + rax - 9]
mov byte [rbx + rdi], al
inc rbx
cmp rbx, 0x10
jl 0x14000fd80
lea r11, [rsp + 0x90]
mov byte [rdi + 0xf], 0
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x140021060
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
push r12
push r13
push r14
sub rsp, 0x38
mov qword [rsp + 0x30], rsi
mov r13, rcx
mov rsi, qword [rdx + 0x10]
mov r8, rdx
mov qword [rsp + 0x28], rdi
mov rdi, rdx
mov qword [rsp + 0x20], r15
mov r15, qword [rdx + 0x18]
cmp r15, 0x10
jb 0x140021095
mov r8, qword [rdx]
xor ecx, ecx
movabs rdx, 0xcbf29ce484222325
test rsi, rsi
je 0x1400210c4
movabs r9, 0x100000001b3
movzx eax, byte [rcx + r8]
inc rcx
xor rdx, rax
imul rdx, r9
cmp rcx, rsi
jb 0x1400210b0
mov r14, qword [r13 + 0x30]
mov r12, qword [r13 + 8]
and r14, rdx
shl r14, 4
add r14, qword [r13 + 0x18]
mov rcx, qword [r14 + 8]
mov rbx, rcx
cmp rcx, r12
jne 0x1400210e7
xor ebx, ebx
jmp 0x140021135
mov qword [rsp + 0x70], rbp
mov rbp, qword [r14]
nop
cmp qword [rbx + 0x28], 0x10
lea rdx, [rbx + 0x10]
mov rax, qword [rdx + 0x10]
jb 0x140021102
mov rdx, qword [rdx]
mov rcx, rdi
cmp r15, 0x10
jb 0x14002110e
mov rcx, qword [rdi]
cmp rsi, rax
jne 0x14002111f
mov r8, rsi
call fcn.140027040
test eax, eax
je 0x14002112c
cmp rbx, rbp
je 0x14002112a
mov rbx, qword [rbx + 8]
jmp 0x1400210f0
xor ebx, ebx
mov rcx, qword [r14 + 8]
mov rbp, qword [rsp + 0x70]
mov r15, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
test rbx, rbx
je 0x1400211f7
mov rax, qword [r14]
cmp rcx, rbx
jne 0x14002116d
cmp rax, rbx
jne 0x140021163
mov qword [r14], r12
mov qword [r14 + 8], r12
jmp 0x140021178
mov r12, qword [rbx + 8]
mov qword [r14 + 8], r12
jmp 0x140021178
cmp rax, rbx
jne 0x140021178
mov rax, qword [rbx]
mov qword [r14], rax
mov rcx, qword [rbx]
dec qword [r13 + 0x10]
mov rax, qword [rbx + 8]
mov qword [rax], rcx
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
mov rdx, qword [rbx + 0x28]
cmp rdx, 0x10
jb 0x1400211c5
mov rcx, qword [rbx + 0x10]
inc rdx
cmp rdx, 0x1000
jb 0x1400211c0
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140021205
mov rcx, r8
call fcn.140024220
mov edx, 0x30
mov qword [rbx + 0x20], 0
mov rcx, rbx
mov qword [rbx + 0x28], 0xf
mov byte [rbx + 0x10], 0
call fcn.140024220
mov eax, 1
add rsp, 0x38
pop r14
pop r13
pop r12
pop rbx
ret
xor eax, eax
add rsp, 0x38
pop r14
pop r13
pop r12
pop rbx
ret
call fcn.14002fc9c
int3
Function at 0x140023308
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14002338c
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140052950]
cmp byte [rcx + rax], 0
je 0x14002338c
dec r8
sub rdx, 1
jne 0x140023372
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140025104
Capabilities:
Parse pe header

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

Function at 0x14002e4c4
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14002e4e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14003017c
or eax, 0xffffffff
jmp 0x14002e4e6
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400368c0
Capabilities:
Parse pe header

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

Function at 0x14003e084
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14003e09a
mov al, 1
jmp 0x14003e0fa
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14003e0ab
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14003e0f8
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400458dc
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14003e0f8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14003e0f8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14003e0f8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14003e0fa
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14003f838
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.140024f50
sub rsp, rax
mov rax, qword [0x14008c090]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14003c7a0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14003f887
mov rax, rbp
jmp 0x14003f98f
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 + 0x94cb0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140040784
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x94cb0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14003f98b
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 0x14003f98b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140040784
test rax, rax
js 0x14003f98b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14003f98b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14003f97d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14003f97d
cmp byte [rcx], 0xd
jne 0x14003f963
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14003f972
cmp byte [rcx + 1], 0xa
jne 0x14003f972
inc rcx
jmp 0x14003f972
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x8c650]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14003f945
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14003f98f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140024200
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 0x14003fb24
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, [0x140094cb0]
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 0x14003fb7b
cmp word [rdx], r13w
jne 0x14003fb7b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14003fb80
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14003fca5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14003fcc6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14003fbb9
mov rdx, r9
mov word [rbx], cx
jmp 0x14003fbe0
cmp r9, r8
jae 0x14003fbf0
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 0x14003fb9a
jmp 0x14003fca5
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 0x14003fc9a
cmp dword [rsp + 0x80], esi
je 0x14003fc9a
lea r8, [0x140094cb0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14003fc72
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14003fc42
mov word [rbx], r13w
jmp 0x14003fca2
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 0x14003fc4f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14003fca2
cmp word [rsp + 0x70], r13w
jne 0x14003fc7f
cmp rbx, r14
je 0x14003fc3c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14004078c
cmp word [rsp + 0x70], r13w
je 0x14003fca5
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, [0x140094cb0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14003fc9f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14003fca5
Function at 0x1400446d0
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 0x140044700
xor eax, eax
jmp 0x1400447c3
mov rbp, rbx
cmp word [rax], si
je 0x140044725
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14004470c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140044708
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.1400408c0
movsxd r14, eax
test eax, eax
jne 0x140044763
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400446f9
mov rcx, r14
call fcn.14003b544
mov rdi, rax
test rax, rax
jne 0x14004477c
xor ecx, ecx
call fcn.140039664
jmp 0x140044758
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.1400408c0
test eax, eax
jne 0x1400447ad
mov rcx, rdi
call fcn.140039664
jmp 0x1400447b7
xor ecx, ecx
call fcn.140039664
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 0x1400447e0
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 0x140044867
mov rsi, rbx
cmp word [rax], bp
je 0x140044826
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140044810
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14004480c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14003b544
mov rdi, rax
test rax, rax
je 0x140044854
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140026550
mov rbp, rdi
xor ecx, ecx
call fcn.140039664
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 0x140047e30
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.14003ccac
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 0x140047ed1
cmp ebx, dword [rsp + 0x30]
je 0x140047eca
test esi, esi
je 0x140047eca
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140047ea5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140047eb2
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140047e8f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140047eb6
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140047ed3
mov eax, 1
jmp 0x140047ed3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14004c89c
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14002eec0
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14004c926
cmp byte [rbp - 0x21], r15b
je 0x14004c921
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14004c95c
call fcn.140039968
test eax, eax
jne 0x14004c948
cmp byte [rbp - 0x21], r15b
je 0x14004c940
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14004c95c
cmp byte [rbp - 0x21], r15b
je 0x14004c959
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14002fd14
test eax, eax
jne 0x14004c9fc
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14002eec0
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14004c99b
cmp byte [rbp - 0x21], r15b
je 0x14004c9d0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14004c9d0
call fcn.140039968
test eax, eax
jne 0x14004c9bc
cmp byte [rbp - 0x21], r15b
je 0x14004c9b5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14004c9d0
cmp byte [rbp - 0x21], r15b
je 0x14004c9cd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14002fd14
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14004c9fc
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14004c9ff
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14004ca0d
mov rcx, rdi
call fcn.140039664
cmp byte [rbp + 0x3f], r15b
je 0x14004ca1c
mov rcx, qword [rbp + 0x27]
call fcn.140039664
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14004dcf0
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.14004078c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14004078c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14004de40
cmp rax, 0xffffffffffffffff
je 0x14004de40
xor edi, edi
test rbp, rbp
jle 0x14004ddeb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400395ec
mov rbx, rax
test rax, rax
jne 0x14004dd78
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14004dde1
mov edx, 0x8000
mov ecx, r14d
call fcn.1400379d4
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.14003ecac
cmp eax, 0xffffffff
je 0x14004ddc1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14004dd88
mov edx, r15d
mov ecx, r14d
call fcn.1400379d4
jmp 0x14004dde1
cmp byte [rsi + 0x38], dil
je 0x14004ddd8
cmp dword [rsi + 0x34], 5
jne 0x14004ddd8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14004dde1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140039664
jmp 0x14004de54
jns 0x14004de54
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14004078c
cmp rax, 0xffffffffffffffff
jne 0x14004de0c
cmp byte [rsi + 0x30], dil
je 0x14004de54
mov edi, dword [rsi + 0x2c]
jmp 0x14004de54
mov ecx, r14d
call fcn.1400458dc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14004de54
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 0x14004de54
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14004de4d
mov eax, dword [rsi + 0x2c]
jmp 0x14004de52
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14004078c
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 0x140013800
Capabilities:
Listen for remote procedure calls

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0xc]
mov ecx, dword [rcx + 8]
mov r8d, 1
call qword [sym.imp.RPCRT4.dll_RpcServerListen]
mov ebx, eax
cmp eax, 0x6b1
je 0x140013871
test eax, eax
je 0x140013871
lea rcx, str...SwRpcServer.cpp
mov edx, 0x5c
call qword [sym.imp.MSVCR120.dll_strrchr]
test rax, rax
je 0x140013841
inc rax
jmp 0x140013848
lea rax, str...SwRpcServer.cpp
lea rcx, [0x140042858]
mov rdx, rax
call fcn.140001760
movabs rcx, 0x212500000000
shl rax, 0x34
or rax, rbx
or rax, rcx
add rsp, 0x20
pop rbx
ret
movabs rax, 0x8000000000
add rsp, 0x20
pop rbx
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]
lea r9, str._J_ms8m
mov r8d, 3
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], 2
call sub.jli.dll_JLI_Launch
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
Function at 0x1400099b0
Capabilities:
Encode data using base64

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov r14, r9
mov rbx, r8
mov rdi, rdx
lea rax, [r8*4]
movabs rdx, 0xaaaaaaaaaaaaaaab
mul rdx
mov rsi, rcx
shr rdx, 1
lea rcx, [rdx + 4]
call fcn.14000b830
mov qword [r14], rax
cmp rbx, 3
jb 0x140009a7f
mov edx, 2
xor ecx, ecx
nop word [rax + rax]
movzx r8d, byte [rdi + rdx - 2]
shr r8, 2
movzx r8d, byte [rsi + r8]
mov byte [rax + rcx], r8b
movzx r8d, byte [rdi + rdx - 2]
shl r8d, 4
and r8d, 0x30
movzx r9d, byte [rdi + rdx - 1]
shr r9, 4
or r9, r8
movzx r8d, byte [rsi + r9]
mov byte [rax + rcx + 1], r8b
movzx r8d, byte [rdi + rdx - 1]
and r8d, 0xf
movzx r9d, byte [rdi + rdx]
shr r9, 6
lea r8, [r9 + r8*4]
movzx r8d, byte [rsi + r8]
mov byte [rax + rcx + 2], r8b
movzx r8d, byte [rdi + rdx]
and r8d, 0x3f
movzx r8d, byte [rsi + r8]
mov byte [rax + rcx + 3], r8b
add rcx, 4
add rdx, 3
cmp rdx, rbx
jb 0x140009a00
add rdx, 0xfffffffffffffffe
jmp 0x140009a83
xor edx, edx
xor ecx, ecx
mov r8, qword [rsp + 0x70]
sub rbx, rdx
cmp rbx, 2
je 0x140009aca
cmp rbx, 1
jne 0x140009b2d
movzx r9d, byte [rdi + rdx]
shr r9, 2
movzx r9d, byte [rsi + r9]
mov r10, rcx
or r10, 1
mov byte [rax + rcx], r9b
movzx edx, byte [rdi + rdx]
shl edx, 4
and edx, 0x30
movzx edx, byte [rsi + rdx]
mov byte [rax + r10], dl
mov dl, 0x3d
jmp 0x140009b12
movzx r9d, byte [rdi + rdx]
shr r9, 2
movzx r9d, byte [rsi + r9]
mov r10, rcx
or r10, 1
mov byte [rax + rcx], r9b
movzx r9d, byte [rdi + rdx]
shl r9d, 4
and r9d, 0x30
movzx r11d, byte [rdi + rdx + 1]
shr r11, 4
or r11, r9
movzx r9d, byte [rsi + r11]
mov byte [rax + r10], r9b
movzx edx, byte [rdi + rdx + 1]
and edx, 0xf
movzx edx, byte [rsi + rdx*4]
mov r9, rcx
or r9, 2
mov r10, rcx
or r10, 3
mov byte [rax + r9], dl
add rcx, 4
mov byte [rax + r10], 0x3d
mov qword [r8], rcx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret