joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400763e8
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x14007641f
call fcn.140070a4c
mov dword [rax], 0x16
call fcn.14006ef48
xor eax, eax
jmp 0x1400764ad
mov rdx, r9
mov rcx, r8
call fcn.140076384
mov rbx, rax
test rax, rax
je 0x1400764aa
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400762b0]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140076497
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400709c0
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14007647e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14007648d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14008050c
jmp 0x1400764aa
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400764a7
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140083a08
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140083a1e
mov al, 1
jmp 0x140083a7e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140083a2f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140083a7c
mov ecx, dword [rcx + 0x18]
nop
call fcn.14008ae38
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140083a7c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140083a7c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140083a7c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140083a7e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140085300
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.140063280
sub rsp, rax
mov rax, qword [0x1400bb060]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140082738
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14008534f
mov rax, rbp
jmp 0x140085457
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 + 0xbefc0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14008624c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xbefc0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140085453
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 0x140085453
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14008624c
test rax, rax
js 0x140085453
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140085453
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140085445
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140085445
cmp byte [rcx], 0xd
jne 0x14008542b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14008543a
cmp byte [rcx + 1], 0xa
jne 0x14008543a
inc rcx
jmp 0x14008543a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xbb470]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14008540d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140085457
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140062b40
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 0x1400855ec
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, [0x1400befc0]
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 0x140085643
cmp word [rdx], r13w
jne 0x140085643
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140085648
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14008576d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14008578e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140085681
mov rdx, r9
mov word [rbx], cx
jmp 0x1400856a8
cmp r9, r8
jae 0x1400856b8
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 0x140085662
jmp 0x14008576d
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 0x140085762
cmp dword [rsp + 0x80], esi
je 0x140085762
lea r8, [0x1400befc0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14008573a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14008570a
mov word [rbx], r13w
jmp 0x14008576a
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 0x140085717
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14008576a
cmp word [rsp + 0x70], r13w
jne 0x140085747
cmp rbx, r14
je 0x140085704
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140086254
cmp word [rsp + 0x70], r13w
je 0x14008576d
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, [0x1400befc0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140085767
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14008576d
Function at 0x14008a1fc
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 0x14008a283
mov rsi, rbx
cmp word [rax], bp
je 0x14008a242
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14008a22c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14008a228
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400815b4
mov rdi, rax
test rax, rax
je 0x14008a270
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140064fd0
mov rbp, rdi
xor ecx, ecx
call fcn.14008050c
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 0x14008d38c
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.14008005c
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 0x14008d42d
cmp ebx, dword [rsp + 0x30]
je 0x14008d426
test esi, esi
je 0x14008d426
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14008d401
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14008d40e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14008d3eb
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14008d412
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14008d42f
mov eax, 1
jmp 0x14008d42f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140091ac0
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.140086254
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140086254
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140091c10
cmp rax, 0xffffffffffffffff
je 0x140091c10
xor edi, edi
test rbp, rbp
jle 0x140091bbb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140080494
mov rbx, rax
test rax, rax
jne 0x140091b48
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140091bb1
mov edx, 0x8000
mov ecx, r14d
call fcn.14007e0f0
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.140084760
cmp eax, 0xffffffff
je 0x140091b91
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140091b58
mov edx, r15d
mov ecx, r14d
call fcn.14007e0f0
jmp 0x140091bb1
cmp byte [rsi + 0x38], dil
je 0x140091ba8
cmp dword [rsi + 0x34], 5
jne 0x140091ba8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140091bb1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14008050c
jmp 0x140091c24
jns 0x140091c24
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140086254
cmp rax, 0xffffffffffffffff
jne 0x140091bdc
cmp byte [rsi + 0x30], dil
je 0x140091c24
mov edi, dword [rsi + 0x2c]
jmp 0x140091c24
mov ecx, r14d
call fcn.14008ae38
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140091c24
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 0x140091c24
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140091c1d
mov eax, dword [rsi + 0x2c]
jmp 0x140091c22
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140086254
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 0x140130de9
Capabilities:
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
add byte [rbp - 0x75], al
sar byte [rdx - 0x551a3dae], 1
ror byte [rsi + 0x41d1ff71], 1
rcr esp, 0x79
lea edx, [rbp - 0xd022]
jns 0x140131349
jg 0x1401305d2
lea r12d, [rcx - 0x92b2]
ret
leave
Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Create thread
Encode data using xor
Enumerate process modules
Spawn thread to rwx shellcode

Disassembly:
push rbx
mov eax, 0x1310
call fcn.140001f90
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1300], rax
mov ecx, 0x409
call qword [sym.imp.KERNEL32.dll_SetThreadLocale]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetDynamicTimeZoneInformation]
lea r8, [rsp + 0xec]
mov edx, 0x80
lea rcx, [rsp + 0x11f0]
sub r8, rcx
lea rax, [rsp + 0x11f0]
nop word [rax + rax]
lea rcx, [rdx + 0x7fffff7e]
test rcx, rcx
je 0x140001083
movzx ecx, word [r8 + rax]
test cx, cx
je 0x140001083
mov word [rax], cx
add rax, 2
sub rdx, 1
jne 0x140001060
test rdx, rdx
lea rcx, [rax - 2]
cmovne rcx, rax
xor ebx, ebx
mov word [rcx], bx
lea rcx, [rsp + 0x11f0]
call qword [sym.imp.USER32.dll_CharUpperW]
lea rdx, [0x140003460]
lea rcx, [rsp + 0x11f0]
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
je 0x14000114c
lea r8, [rsp + 0x30]
mov edx, 0x1000
lea rcx, [rsp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_K32EnumProcesses]
mov eax, dword [rsp + 0x30]
and eax, 0xfffffffc
cmp eax, 0xc8
jb 0x14000114c
mov edx, 1
xor ecx, ecx
mov r9d, 0x40
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea rcx, [0x140003290]
movzx ecx, cl
movzx edx, byte [rcx]
mov rcx, rax
mov byte [rax], dl
mov edx, ebx
xor byte [rcx], 0x35
lea rcx, [rcx + 1]
inc edx
cmp edx, 1
jb 0x140001112
lea rcx, [rsp + 0x34]
xor r9d, r9d
mov qword [rsp + 0x28], rcx
mov r8, rax
xor ecx, ecx
mov dword [rsp + 0x20], ebx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
mov rcx, qword [rsp + 0x1300]
xor rcx, rsp
call fcn.140001180
add rsp, 0x1310
pop rbx
ret

Function at 0x140001a48
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x1400163e0]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov rbx, rcx
mov rdi, rdx
lea rcx, [rsp + 0x41]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x40], 0
call sub.MSVCR100.dll_memset
lea rdx, [rsp + 0x40]
xor r8d, r8d
mov rcx, rbx
call fcn.14000197c
test eax, eax
jne 0x14000213c
lea rcx, [0x14000f778]
call qword [sym.imp.MSVCR100.dll_printf]
xor eax, eax
jmp 0x140002227
lea rax, [rsp + 0x40]
lea rbx, [0x140016cb0]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
lea r8, str._Xbootclasspath_a:__slibdeploy.jar____slibjavaws.jar____slibplugin.jar_
mov edx, 0x410
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCR100.dll__snprintf]
lea rdx, [rsp + 0x30]
mov rcx, rdi
mov qword [rsp + 0x30], rbx
call fcn.140002f00
lea rbx, [0x140016aa0]
lea r9, [rsp + 0x40]
lea r8, str._Djava.class.path__sclasses_
mov rcx, rbx
mov edx, 0x208
call qword [sym.imp.MSVCR100.dll__snprintf]
lea rdx, [rsp + 0x30]
mov rcx, rdi
mov qword [rsp + 0x30], rbx
call fcn.140002f00
mov ebx, 0x104
lea rdx, [rbp + 0x50]
lea rcx, [0x14000f810]
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x140002215
cmp eax, ebx
jae 0x140002215
lea rax, [rbp + 0x50]
lea rbx, [0x140016890]
lea r9, [0x14000f828]
lea r8, [0x14000f840]
mov edx, 0x208
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCR100.dll__snprintf]
lea rdx, [rsp + 0x30]
mov rcx, rdi
mov qword [rsp + 0x30], rbx
call fcn.140002f00
lea rcx, [rsp + 0x40]
mov rdx, rdi
call fcn.140001dfc
mov eax, 1
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.14000c970
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14000623c
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0xd0
mov rax, qword [0x1400163e0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor bl, bl
cmp byte [0x1400170d5], bl
je 0x140006269
mov al, byte [0x1400170d4]
jmp 0x1400062ad
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, DllRegisterServer
call sub.MSVCR100.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], DllRegisterServer
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x30], 2
jne 0x14000629e
cmp dword [rsp + 0x24], 6
jb 0x14000629e
mov bl, 1
mov byte [0x1400170d4], bl
mov byte [0x1400170d5], 1
mov al, bl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14000c970
add rsp, 0xd0
pop rbx
ret

Function at 0x1400063cc
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x20
lea rdx, [rax + 0x10]
xor r8d, r8d
mov rsi, rcx
mov byte [rax + 0x10], 0
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edi, eax
test eax, eax
jne 0x140006407
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x14000644e
xor al, al
jmp 0x140006450
mov rcx, rdi
mov edx, 1
call qword [sym.imp.MSVCR100.dll_calloc]
mov rbx, rax
test rax, rax
je 0x140006403
mov r8d, edi
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x140006445
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140006445
mov rcx, rbx
call qword [sym.imp.MSVCR100.dll_free]
jmp 0x140006403
mov rcx, rbx
call qword [sym.imp.MSVCR100.dll_free]
mov al, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140006cec
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x18], 0x10
mov rbx, rcx
jb 0x140006d01
mov rax, qword [rcx]
jmp 0x140006d04
mov rax, rcx
cmp byte [rax], 0x2d
je 0x140006d10
xor al, al
jmp 0x140006dd0
xor edx, edx
lea r9, str._Dsun.plugin2.jvm.args
lea r8d, [rdx + 0x16]
call fcn.140003acc
test eax, eax
jne 0x140006d3f
lea rcx, str.Rejecting_attempt_to_specify_sun.plugin2.jvm.args_system_property_n
call qword [sym.imp.MSVCR100.dll_printf]
mov ecx, 1
call qword [sym.imp.MSVCR100.dll_exit]
int3
cmp qword [rbx + 0x18], 0x10
jb 0x140006d4b
mov rcx, qword [rbx]
jmp 0x140006d4e
mov rcx, rbx
call fcn.14000652c
test al, al
je 0x140006d97
cmp qword [rbx + 0x18], 0x10
jb 0x140006d63
mov rcx, qword [rbx]
jmp 0x140006d66
mov rcx, rbx
mov edx, 0x3d
call qword [sym.imp.MSVCR100.dll__mbsrchr]
lea rcx, [rax + 1]
call fcn.1400062cc
test al, al
jne 0x140006d97
lea rcx, str.Rejecting_attempt_to_point_a_command_line_argument_into_the_LocalLow_directory_n
call qword [sym.imp.MSVCR100.dll_printf]
mov ecx, 1
call qword [sym.imp.MSVCR100.dll_exit]
int3
cmp qword [rbx + 0x18], 0x10
jb 0x140006da3
mov rcx, qword [rbx]
jmp 0x140006da6
mov rcx, rbx
call fcn.14000660c
test al, al
jne 0x140006dce
cmp qword [rbx + 0x18], 0x10
jb 0x140006db9
mov rbx, qword [rbx]
lea rcx, str.Rejecting_attempt_to_specify_insecure_property:__s_n
mov rdx, rbx
call qword [sym.imp.MSVCR100.dll_printf]
jmp 0x140006d09
mov al, 1
add rsp, 0x20
pop rbx
ret
Function at 0x1400071bc
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400163e0]
xor rax, rsp
mov qword [rbp - 8], rax
mov rax, rdx
mov rdi, rcx
lea rdx, [rbp - 0x40]
mov rcx, rax
call fcn.140005cd4
nop
mov rbx, qword [rbp - 0x40]
jmp 0x140007261
cmp qword [rbx + 0x18], 0x10
jb 0x14000720a
mov rdx, qword [rbx]
jmp 0x14000720d
mov rdx, rbx
lea rcx, str._Dsun.java2d.noddraw
call fcn.140006c5c
cmp eax, 1
je 0x140007269
cmp qword [rbx + 0x18], 0x10
jb 0x14000722a
mov rdx, qword [rbx]
jmp 0x14000722d
mov rdx, rbx
lea rcx, str._Dsun.java2d.d3d
call fcn.140006c5c
test eax, eax
je 0x140007269
cmp qword [rbx + 0x18], 0x10
jb 0x140007249
mov rdx, qword [rbx]
jmp 0x14000724c
mov rdx, rbx
lea rcx, str._Dsun.java2d.opengl
call fcn.140006c5c
cmp eax, 1
je 0x140007269
add rbx, 0x28
cmp rbx, qword [rbp - 0x38]
jne 0x1400071fe
jmp 0x140007270
and dword [0x140015f50], 0
cmp dword [0x140015f50], 0
je 0x140007330
mov byte [rbp - 0x18], 0
xor eax, eax
mov qword [rbp - 0x17], rax
mov dword [rbp - 0xf], eax
mov word [rbp - 0xb], ax
mov byte [rbp - 9], al
lea r8d, [rax + 0x10]
lea rdx, [rbp - 0x18]
lea rcx, str.J2D_D3D
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x1400072d0
cmp eax, 0x10
jae 0x1400072d0
lea rdx, [0x140010970]
lea rcx, [rbp - 0x18]
call qword [sym.imp.MSVCR100.dll__mbsicmp]
neg eax
sbb ecx, ecx
and ecx, dword [0x140015f50]
mov dword [0x140015f50], ecx
mov r8d, 0x10
lea rdx, [rbp - 0x18]
lea rcx, str.J2D_D3D_PRELOAD
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x140007313
cmp eax, 0x10
jae 0x140007313
lea rdx, [0x140010988]
lea rcx, [rbp - 0x18]
call qword [sym.imp.MSVCR100.dll__mbsicmp]
neg eax
sbb ecx, ecx
and ecx, dword [0x140015f50]
mov dword [0x140015f50], ecx
jmp 0x140007319
mov ecx, dword [0x140015f50]
test ecx, ecx
je 0x140007330
mov rdx, rdi
lea rcx, str.preloadD3D
call fcn.140006eec
mov ebx, eax
jmp 0x140007332
xor ebx, ebx
lea rcx, [rbp - 0x40]
call fcn.140004448
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14000c970
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14000766c
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x360
mov rax, qword [0x1400163e0]
xor rax, rsp
mov qword [rsp + 0x350], rax
mov rbx, rcx
lea rcx, [rsp + 0x141]
xor edx, edx
mov r8d, 0x207
mov byte [rsp + 0x140], 0
call sub.MSVCR100.dll_memset
lea rcx, [rsp + 0x31]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x30], 0
call sub.MSVCR100.dll_memset
lea rdx, [rsp + 0x30]
lea rcx, [0x140010730]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x14000771c
cmp eax, 0x104
jae 0x14000771c
lea rax, [rsp + 0x30]
lea r9, str.javaplugin.user.profile
lea r8, str._D_s_s
lea rcx, [rsp + 0x140]
mov edx, 0x208
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCR100.dll__snprintf]
lea rdx, [rsp + 0x140]
mov rcx, rbx
call fcn.140007868
mov rcx, qword [rsp + 0x350]
xor rcx, rsp
call fcn.14000c970
add rsp, 0x360
pop rbx
ret

Function at 0x140007ae8
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x140007b4b
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x140007b5f
lea rdx, str.RegDeleteKeyTransactedA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140007b5f
mov rcx, qword [rbx]
and qword [rsp + 0x28], 0
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call rax
jmp 0x140007b64
cmp dword [rcx + 8], 0
je 0x140007b5f
mov rdx, r8
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x140007b64
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140007b74
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov rdi, rdx
test rcx, rcx
je 0x140007b9a
mov r8, rdx
mov rdx, qword [rbx]
call fcn.140007ae8
jmp 0x140007c01
cmp byte [0x140017e28], 0
jne 0x140007bde
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x140007bce
lea rdx, str.RegDeleteKeyExA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140017e20], rax
jmp 0x140007bd5
mov rax, qword [0x140017e20]
mov byte [0x140017e28], 1
jmp 0x140007be5
mov rax, qword [0x140017e20]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x140007bfb
mov r8d, dword [rbx + 8]
xor r9d, r9d
call rax
jmp 0x140007c01
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret