joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400040a0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x58
mov rax, qword [0x140011010]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], ecx
lea rax, [rsp + 0x30]
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
lea rdx, str.SOFTWARELenovoBatteryGauge
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140004126
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x28], 4
lea rdx, str.ShowInTaskbar
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140004126
lea rdx, str.UpdateRegStatus_....OK
lea rcx, vtable.CBGSimpleLogger.0
call fcn.140001900
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140004136
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140008c90
add rsp, 0x58
ret

Function at 0x140004150
Capabilities:
Get session user name
Get token membership

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x290
mov rax, qword [0x140011010]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rdi, rcx
lea rdx, str.ImpersonateLoggedOnUserBegin_1
lea rcx, vtable.CBGSimpleLogger.0
call fcn.140001900
xor ebx, ebx
lea rcx, [rsp + 0x80]
xor edx, edx
mov qword [rdi], rbx
mov r8d, 0x200
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x74]
mov dword [rsp + 0x74], 0x100
lea rcx, [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x68], ebx
mov qword [rsp + 0x50], rax
lea r8d, [rbx + 0x12]
mov dword [rsp + 0x48], ebx
lea rcx, [rsp + 0x68]
mov dword [rsp + 0x40], ebx
xor r9d, r9d
mov dword [rsp + 0x38], ebx
mov dl, 1
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov word [rsp + 0x6c], 0x500
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rsp + 0x70], eax
test eax, eax
je 0x140004226
mov rdx, qword [rsp + 0x60]
lea r8, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [rsp + 0x70], ebx
jne 0x140004261
lea rdx, [rsp + 0x80]
lea rcx, str.system
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x140004261
mov r8d, dword [rsp + 0x70]
lea r9, [rsp + 0x80]
lea rdx, str.ImpersonateLoggedOnUserBegin_3_failed._bRet_d__szUserName_s
lea rcx, vtable.CBGSimpleLogger.0
call fcn.140001900
jmp 0x1400042b1
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov ecx, eax
mov rdx, rdi
mov ebx, eax
call qword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
je 0x14000429e
mov r8d, ebx
lea rdx, str.ImpersonateLoggedOnUserBegin_5__dwSessionId_d
lea rcx, vtable.CBGSimpleLogger.0
call fcn.140001900
mov rcx, qword [rdi]
test rcx, rcx
je 0x14000429e
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
jmp 0x1400042b3
lea rdx, str.ImpersonateLoggedOnUserBegin_7_no_impersonate
lea rcx, vtable.CBGSimpleLogger.0
call fcn.140001900
xor eax, eax
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140008c90
mov rbx, qword [rsp + 0x2a8]
add rsp, 0x290
pop rdi
ret
Function at 0x1400047e0
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x270
mov rax, qword [0x140011010]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rcx
mov qword [rsp + 0x40], rcx
lea rdx, str.IsFileInfoValid_1
lea rcx, vtable.CBGSimpleLogger.0
call fcn.140001900
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memset
cmp qword [rbx + 0x18], 8
jb 0x140004843
mov rsi, qword [rbx]
mov rcx, rsi
jmp 0x140004849
mov rcx, rbx
mov rsi, rbx
xor edx, edx
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__waccess_s]
test eax, eax
je 0x1400048a2
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x140004894
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
mov rcx, qword [rbx]
jb 0x14000488f
add rdx, 0x27
mov rdi, qword [rcx - 8]
sub rcx, rdi
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140004a02
mov rcx, rdi
call fcn.140008cb0
xor eax, eax
mov qword [rbx + 0x10], rax
mov word [rbx], ax
jmp 0x1400049d2
xor edx, edx
mov rcx, rsi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebp, eax
test eax, eax
je 0x140004855
inc eax
movsxd rdi, eax
mov eax, 2
mul rdi
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140008d20
mov r14, rax
lea rcx, [rdi + rdi]
mov rdi, rax
xor eax, eax
rep stosb byte [rdi], al
mov r9, r14
mov r8d, ebp
xor edx, edx
mov rcx, rsi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x140004957
mov dword [rsp + 0x48], 0x34
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x40]
lea rdx, [0x14000b854]
mov rcx, r14
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x140004957
mov r8, qword [rsp + 0x40]
movzx eax, word [r8 + 0xc]
movzx edx, word [r8 + 0xe]
movzx edi, word [r8 + 8]
movzx r9d, word [r8 + 0xa]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], edi
lea r8, str._03d._03d._03d._03d
mov edx, 0x103
lea rcx, [rsp + 0x50]
call fcn.140008120
mov rcx, r14
call fcn.140008cb0
lea rdx, str.IsFileInfoValid_2_OK_
lea rcx, vtable.CBGSimpleLogger.0
call fcn.140001900
lea rdx, str.001.000.000.001
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
setns sil
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x1400049c5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x1400049c0
add rdx, 0x27
mov rdi, qword [rcx - 8]
sub rcx, rdi
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140004a02
mov rcx, rdi
call fcn.140008cb0
xor eax, eax
mov qword [rbx + 0x10], rax
mov word [rbx], ax
movzx eax, sil
mov qword [rbx + 0x18], 7
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140008c90
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140005a70
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x140011010]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov bl, 1
xor r15d, r15d
mov word [rsp + 0x30], r15w
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
xor r8d, r8d
lea rdx, [0x14000b6e0]
lea rcx, [rsp + 0x38]
call fcn.140007b10
nop
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x30]
lea rcx, str.E046963F.LenovoCompanion_k1h2ywk1493x8
call fcn.140001320
movzx ebp, al
movzx r14d, word [rsp + 0x30]
sub r14w, 0xa
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x140005b31
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005b2c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005b2c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140008cb0
test bpl, bpl
je 0x140005bca
cmp r14w, 9
ja 0x140005bcf
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x140005b5f
xor bl, bl
jmp 0x140005bca
mov r8d, 4
lea rdx, str.LenovoVantageService
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
jne 0x140005b8a
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor bl, bl
jmp 0x140005bca
xor bl, bl
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x140005bb8
cmp dword [rsp + 0x3c], 4
sete bl
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp r14w, 9
setbe r15b
mov r9d, ebp
movzx r8d, bl
mov dword [rsp + 0x20], r15d
lea rdx, str.IsRelateddServiceRunning______bRun_d__bInstalled_d__bVantage3x_d
lea rcx, vtable.CBGSimpleLogger.0
call fcn.140001900
test bl, bl
je 0x140005bff
test bpl, bpl
je 0x140005bff
mov al, 1
jmp 0x140005c01
xor al, al
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140008c90
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x1400068e0
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x290
mov rax, qword [0x140011010]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor r14d, r14d
mov rbx, rcx
cmp qword [rcx + 0x18], 8
mov edi, r14d
mov esi, r14d
jb 0x14000691d
mov rcx, qword [rcx]
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x140006980
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x140006970
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14000696b
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140006a7e
mov rcx, r8
call fcn.140008cb0
xor al, al
jmp 0x140006a46
movzx ecx, word [rsp + 0x5c]
movzx eax, word [rsp + 0x5e]
cmp cx, 0x2e
jne 0x1400069a7
test ax, ax
je 0x1400069b4
cmp cx, cx
jne 0x1400069a7
cmp ax, cx
jne 0x1400069a7
cmp word [rsp + 0x60], r14w
je 0x1400069b4
test byte [rsp + 0x30], 0x10
je 0x1400069b2
inc edi
jmp 0x1400069b4
inc esi
lea rdx, [rsp + 0x30]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140006980
cmp edi, 0xa
jle 0x1400069d5
cmp esi, 0xa
jle 0x1400069d5
mov bpl, 1
jmp 0x1400069d8
xor bpl, bpl
cmp qword [rbx + 0x18], 8
mov r8, rbx
jb 0x1400069e5
mov r8, qword [rbx]
movzx eax, bpl
lea rdx, str.SubDir____s__of_Addin_package_info:_FolderCount___d__FileCount___d__IsFullPackage___d
mov dword [rsp + 0x28], eax
lea rcx, vtable.CBGSimpleLogger.0
mov r9d, edi
mov dword [rsp + 0x20], esi
call fcn.140001900
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x140006a42
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140006a3d
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140006a7e
mov rcx, r8
call fcn.140008cb0
movzx eax, bpl
mov word [rbx], r14w
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r14
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140008c90
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140006a90
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x140011010]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [r8 + 0x18], 8
mov rdi, r8
mov r14, rdx
mov rbp, rcx
mov rax, r8
jb 0x140006ac1
mov rax, qword [r8]
xor r15d, r15d
lea rbx, [r8 + 0x10]
mov qword [rbx], r15
mov word [rax], r15w
test rbp, rbp
je 0x140006b88
mov ecx, 0x202
mov qword [rsp + 0x88], rsi
mov dword [rsp + 0x30], 0x100
call fcn.140008d20
mov r8d, dword [rsp + 0x30]
xor edx, edx
inc r8d
mov rcx, rax
mov rsi, rax
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
mov rdx, r14
mov qword [rsp + 0x20], rsi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140006b78
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rsi + rdx*2], r15w
jne 0x140006b35
mov rax, qword [rdi + 0x18]
cmp rdx, rax
ja 0x140006b6d
cmp rax, 8
jb 0x140006b51
mov rdi, qword [rdi]
mov qword [rbx], rdx
mov rcx, rdi
lea rbx, [rdx + rdx]
mov rdx, rsi
mov r8, rbx
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi], r15w
jmp 0x140006b78
mov r9, rsi
mov rcx, rdi
call fcn.140007c50
mov rcx, rsi
call fcn.140008cb0
mov rsi, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140008c90
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rbp
pop rbx
ret
Function at 0x140006f30
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x140011010]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x48], rcx
xor esi, esi
cmp qword [rcx + 0x18], 8
jb 0x140006f68
mov rcx, qword [rcx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140006fed
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
mov r8d, 5
lea rdx, str.x64_
lea rcx, [rsp + 0x50]
call fcn.140007b10
nop
mov eax, dword [rbx + 0x10]
sub eax, dword [rsp + 0x60]
test eax, eax
jg 0x14000705d
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x140006fed
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006fe7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000712b
call fcn.140008cb0
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x14000702c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140007027
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140007132
mov rcx, r8
call fcn.140008cb0
mov word [rbx], si
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rsi
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140008c90
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x38], xmm1
inc eax
movsxd r8, eax
cmp qword [rbx + 0x10], r8
cmovb r8, qword [rbx + 0x10]
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140007089
mov rdx, qword [rbx]
lea rcx, [rsp + 0x28]
call fcn.140007b10
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.140007890
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x1400070e6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400070e0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400070e0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140008cb0
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x140006fed
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006fe7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006fe7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x14000999c
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
mov r12d, 0x4e9
mov r13d, 0x62237622
movabs r14, int.140001180
xor r15, r15
xor dword [r14 + r15*4], r13d
mov eax, r13d
shl eax, 0xd
xor r13d, eax
mov eax, r13d
shr eax, 0x11
xor r13d, eax
mov eax, r13d
shl eax, 5
xor r13d, eax
inc r15
cmp r15, r12
jne 0x14000113d
lea rcx, [0x140002524]
call int.140001180
lea rcx, [0x14000252a]
lea rdx, [0x140002530]
jmp rax

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 0x180001360
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x180060010]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rdx
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x234
mov rdi, rax
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
nop dword [rax + rax]
lea rcx, [rsp + 0x4c]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x1800013d0
mov r11, qword [rbx + 0x18]
mov r9, rbx
mov r10, qword [rbx + 0x10]
cmp r11, 8
jb 0x1800013ee
mov r9, qword [rbx]
cmp rax, r10
lea rdx, [rsp + 0x4c]
mov r8, r10
cmovb r8, rax
test r8, r8
je 0x180001424
lea rcx, [rsp + 0x4c]
sub r9, rcx
nop word [rax + rax]
movzx ecx, word [r9 + rdx]
cmp cx, word [rdx]
jne 0x18000142f
add rdx, 2
sub r8, 1
jne 0x180001410
cmp r10, rax
jb 0x18000142f
jbe 0x1800014d8
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1800013c0
cmp qword [rbx + 0x18], 8
mov r8, rbx
jb 0x180001452
mov r8, qword [rbx]
lea rdx, str.ring0::Driver::GetPid
lea rcx, str._n__s__Failed_to_find_process___ws_:
call fcn.1800010a0
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x1800014a4
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x18000149f
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180001544
mov rcx, r8
call fcn.18004d1f0
xor ecx, ecx
xor eax, eax
mov word [rbx], cx
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rcx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.18004cd30
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret
mov r8, rbx
cmp r11, 8
jb 0x1800014e4
mov r8, qword [rbx]
mov r9d, dword [rsp + 0x28]
lea rdx, str.ring0::Driver::GetPid
lea rcx, str._n__s__Found_process___ws_:__d
call fcn.1800010a0
mov rdx, qword [rbx + 0x18]
mov edi, dword [rsp + 0x28]
cmp rdx, 8
jb 0x18000153b
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x180001536
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180001544
mov rcx, r8
call fcn.18004d1f0
xor ecx, ecx
mov eax, edi
jmp 0x1800014a8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x18000d470
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x18000d4cd
lea rbx, [0x180052860]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x18000d4b4
cmp r10, 2
jb 0x18000d4b4
cmp byte [r9], r8b
jne 0x18000d4b4
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x18000d490
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x18000d50f
lea rbx, [0x180052860]
cmp r8b, 0x23
jne 0x18000d4f3
cmp byte [r9], r8b
jne 0x18000d4f3
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x18000d4e0
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x18000d650
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x18000d66a
mov qword [r8], 0
call fcn.18000d520
mov rbx, rax
test rax, rax
jne 0x18000d683
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x18000d75a
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x18000d75a
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x18000d75a
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x18000d75a
cmp rdi, 0xffffffffffffffff
je 0x18000d75a
mov rax, qword [0x180087388]
test rax, rax
je 0x18000d6f7
inc dword [rax + 0xf0]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x18000d75a
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x18000d747
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x180087388]
test rax, rax
je 0x18000d73c
dec dword [rax + 0xf0]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x18000d763
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x18000d755
mov qword [r14], rdi
mov rax, rsi
jmp 0x18000d765
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret