joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400444d0
Capabilities:
Execute command

Disassembly:
mov dword [rsp + 0x20], r9d
movss dword [rsp + 0x18], xmm2
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x148
mov dword [rsp + 0x20], 0
lea rcx, [0x14006a654]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov rax, qword [rsp + 0x158]
movss xmm0, dword [rax]
addss xmm0, dword [rsp + 0x160]
mov rax, qword [rsp + 0x158]
movss dword [rax], xmm0
mov rax, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x24]
call fcn.140044860
mov rcx, rax
call fcn.140046560
mov rdx, rax
lea rcx, [rsp + 0x120]
call fcn.14001a0f0
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x158]
cvttss2si eax, dword [rax]
mov edx, eax
lea rcx, [rsp + 0x100]
call fcn.140001620
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x25]
call fcn.1400446f0
mov rcx, rax
call fcn.1400465f0
mov rdx, rax
lea rcx, [rsp + 0xe0]
call fcn.14001a0f0
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x60], rax
mov r9, qword [rsp + 0x58]
mov r8, qword [rsp + 0x60]
movzx edx, byte [rsp + 0x26]
lea rcx, [rsp + 0xc0]
call fcn.140057a60
mov eax, dword [rsp + 0x20]
or eax, 2
mov dword [rsp + 0x20], eax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x78], rax
mov r9, qword [rsp + 0x70]
mov r8, qword [rsp + 0x78]
movzx edx, byte [rsp + 0x27]
lea rcx, [rsp + 0xa0]
call fcn.140057a60
mov eax, dword [rsp + 0x20]
or eax, 4
mov dword [rsp + 0x20], eax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x88], rax
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x90]
call fcn.1400557a0
nop
lea rcx, [rsp + 0xa0]
call fcn.1400541f0
nop
lea rcx, [rsp + 0xc0]
call fcn.1400541f0
nop
lea rcx, [rsp + 0xe0]
call fcn.1400541f0
nop
lea rcx, [rsp + 0x100]
call fcn.1400541f0
nop
lea rcx, [rsp + 0x120]
call fcn.1400541f0
cmp dword [rsp + 0x168], 0
jle 0x1400446e2
movsxd rax, dword [rsp + 0x168]
mov qword [rsp + 0x98], rax
lea rcx, [rsp + 0x98]
call fcn.140054fd0
add rsp, 0x148
ret
Function at 0x1400446f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x14006f010]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x28], 0x19
mov dword [0x1400f3778], 0x19
mov byte [rsp + 0x30], 0x4c
mov byte [rsp + 0x31], 0x51
mov byte [rsp + 0x32], 0x56
mov byte [rsp + 0x33], 0x57
mov byte [rsp + 0x34], 0x44
mov byte [rsp + 0x35], 0x4f
mov byte [rsp + 0x36], 0x4f
mov byte [rsp + 0x37], 0x44
mov byte [rsp + 0x38], 0x57
mov byte [rsp + 0x39], 0x4c
mov byte [rsp + 0x3a], 0x52
mov byte [rsp + 0x3b], 0x51
mov byte [rsp + 0x3c], 0x11
mov byte [rsp + 0x3d], 0x11
mov byte [rsp + 0x3e], 0x11
mov byte [rsp + 0x3f], 0xed
mov byte [rsp + 0x40], 0x53
mov byte [rsp + 0x41], 0x55
mov byte [rsp + 0x42], 0x52
mov byte [rsp + 0x43], 0x46
mov byte [rsp + 0x44], 0x48
mov byte [rsp + 0x45], 0x56
mov byte [rsp + 0x46], 0x56
mov byte [rsp + 0x47], 0xb
mov byte [rsp + 0x48], 0xe3
mov eax, 4
mov eax, eax
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx]
mov eax, dword [rax + rcx]
cmp dword [0x1400f4504], eax
jle 0x14004483b
lea rcx, [0x1400f4504]
call fcn.14005c22c
cmp dword [0x1400f4504], 0xffffffff
jne 0x14004483b
lea rax, [0x1400f4c00]
mov byte [rax + 0x19], 1
mov qword [rsp + 0x20], 0
jmp 0x1400447f2
mov rax, qword [rsp + 0x20]
inc rax
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0x19
jae 0x140044823
mov eax, 1
imul rax, rax, 0
lea rax, [rsp + rax + 0x30]
lea rcx, [0x1400f4c00]
mov rdx, qword [rsp + 0x20]
mov r8, qword [rsp + 0x20]
movzx eax, byte [rax + r8]
mov byte [rcx + rdx], al
jmp 0x1400447e5
lea rcx, [0x140067ab0]
call fcn.14005c884
lea rcx, [0x1400f4504]
call fcn.14005c1c0
lea rax, [0x1400f4c00]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14005c1a0
add rsp, 0x68
ret
Function at 0x140045d20
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x90
mov rax, qword [0x14006f010]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov dword [rsp + 0x30], 0
mov rax, qword gs:[0x60]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax + 2]
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x140045d83
xor eax, eax
test eax, eax
je 0x140045d83
xor eax, eax
cmp eax, 1
je 0x140045d83
cmp qword [rsp + 0x28], 0
jne 0x140045d81
jmp 0x140045d83
jmp 0x140045d70
cmp dword [rsp + 0xa0], 1
jne 0x140045dd7
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0x20
rep stosb byte [rdi], al
mov byte [rsp + 0x68], 0
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 0
xorps xmm0, xmm0
movss dword [rsp + 0x80], xmm0
lea rcx, [rsp + 0x68]
call fcn.1400046b0
jmp 0x140045e89
cmp dword [rsp + 0xa0], 2
jne 0x140045e13
lea rax, [rsp + 0x38]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov byte [rsp + 0x38], 0
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x38]
call fcn.14000ffe0
jmp 0x140045e89
cmp dword [rsp + 0xa0], 3
jne 0x140045e4f
lea rax, [rsp + 0x48]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov byte [rsp + 0x48], 0
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x48]
call fcn.14001bda0
jmp 0x140045e89
cmp dword [rsp + 0xa0], 4
jne 0x140045e89
lea rax, [rsp + 0x58]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov byte [rsp + 0x58], 0
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x58]
call fcn.140020c00
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14005c1a0
add rsp, 0x90
pop rdi
ret

Function at 0x140045eb0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x68
cmp dword [rsp + 0x70], 0x4a
je 0x140045ec4
jmp 0x140045f86
lea rcx, [rsp + 0x31]
call fcn.140045f90
mov rcx, rax
call fcn.140046170
mov dword [rsp + 0x28], 0x8050
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 1
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadImageA]
mov qword [rsp + 0x40], rax
mov rax, qword gs:[0x60]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx eax, byte [rax + 2]
mov byte [rsp + 0x30], al
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x140045f3e
xor eax, eax
test eax, eax
je 0x140045f3e
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x140045f3e
cmp qword [rsp + 0x38], 0
jne 0x140045f3c
jmp 0x140045f3e
jmp 0x140045f29
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov qword [rsp + 0x48], rax
mov r9, qword [rsp + 0x40]
mov r8d, 1
mov edx, 0x80
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.USER32.dll_SendMessageA]
mov qword [rsp + 0x50], rax
mov r9, qword [rsp + 0x40]
xor r8d, r8d
mov edx, 0x80
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.USER32.dll_SendMessageA]
mov qword [rsp + 0x50], rax
add rsp, 0x68
ret
Function at 0x140058c10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x14006f010]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x40], 0x80000000
cmp dword [rsp + 0x80], 0x80000000
jae 0x140058c6a
mov eax, dword [rsp + 0x80]
add eax, 0x80000000
mov dword [rsp + 0x20], eax
jmp 0x140058c7a
mov eax, dword [rsp + 0x80]
sub eax, 0x80000000
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x44], 0x80000000
cmp dword [rsp + 0x88], 0x80000000
jae 0x140058ca3
mov eax, dword [rsp + 0x88]
add eax, 0x80000000
mov dword [rsp + 0x24], eax
jmp 0x140058cb3
mov eax, dword [rsp + 0x88]
sub eax, 0x80000000
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x24]
sub ecx, eax
mov eax, ecx
cmp eax, 0xffffffff
jne 0x140058cef
mov rcx, qword [rsp + 0x50]
call fcn.14005a830
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xffffffff
ja 0x140058ce3
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x3c], eax
jmp 0x140058ce5
jmp 0x140058cc4
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x34], eax
jmp 0x140058d0d
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x24]
sub ecx, eax
mov eax, ecx
inc eax
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.140059f70
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x34]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x48], 0x80000000
cmp dword [rsp + 0x28], 0x80000000
jae 0x140058d40
mov eax, dword [rsp + 0x28]
add eax, 0x80000000
mov dword [rsp + 0x38], eax
jmp 0x140058d4d
mov eax, dword [rsp + 0x28]
sub eax, 0x80000000
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14005c1a0
add rsp, 0x68
ret
Function at 0x14005a830
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x270
jne 0x14005a852
mov rcx, qword [rsp + 0x40]
call fcn.14005a900
jmp 0x14005a869
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x4e0
jb 0x14005a869
mov rcx, qword [rsp + 0x40]
call fcn.14005a9b0
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax*4 + 4]
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
inc eax
mov rcx, qword [rsp + 0x40]
mov dword [rcx], eax
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 0xb
mov rcx, qword [rsp + 0x40]
and eax, dword [rcx + 0x1384]
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shl eax, 7
and eax, 0x9d2c5680
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shl eax, 0xf
and eax, 0xefc60000
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 0x12
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x14005a900
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov qword [rsp + 8], 0x270
jmp 0x14005a921
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
cmp qword [rsp + 8], 0x4e0
jae 0x14005a9a5
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 8]
mov eax, dword [rax + rcx*4 - 0x9bc]
and eax, 0x80000000
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
mov ecx, dword [rcx + rdx*4 - 0x9b8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp], eax
mov eax, dword [rsp]
and eax, 1
test eax, eax
je 0x14005a970
mov dword [rsp + 4], 0x9908b0df
jmp 0x14005a978
mov dword [rsp + 4], 0
mov eax, dword [rsp]
shr eax, 1
xor eax, dword [rsp + 4]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x14005a914
add rsp, 0x18
ret
Function at 0x14005a9b0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x28], 0x26f
mov qword [rsp + 0x30], 0xe3
mov qword [rsp], 0
jmp 0x14005a9e0
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
cmp qword [rsp], 0xe3
jae 0x14005aa62
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x10], eax
mov eax, dword [rsp + 0x10]
and eax, 1
test eax, eax
je 0x14005aa2e
mov dword [rsp + 0x14], 0x9908b0df
jmp 0x14005aa36
mov dword [rsp + 0x14], 0
mov eax, dword [rsp + 0x10]
shr eax, 1
xor eax, dword [rsp + 0x14]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp]
xor eax, dword [rcx + rdx*4 + 0xff8]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x14005a9d5
mov qword [rsp + 8], 0xe3
jmp 0x14005aa7a
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
cmp qword [rsp + 8], 0x26f
jae 0x14005ab01
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 8]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 8]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x18], eax
mov eax, dword [rsp + 0x18]
and eax, 1
test eax, eax
je 0x14005aacb
mov dword [rsp + 0x1c], 0x9908b0df
jmp 0x14005aad3
mov dword [rsp + 0x1c], 0
mov eax, dword [rsp + 0x18]
shr eax, 1
xor eax, dword [rsp + 0x1c]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 8]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 8]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x14005aa6d
mov qword [rsp + 0x38], 0x26f
mov eax, 4
imul rax, rax, 0x4df
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax + 4]
and eax, 0x80000000
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x50]
mov ecx, dword [rdx + rcx + 4]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
and eax, 1
test eax, eax
je 0x14005ab55
mov dword [rsp + 0x24], 0x9908b0df
jmp 0x14005ab5d
mov dword [rsp + 0x24], 0
mov eax, dword [rsp + 0x20]
shr eax, 1
xor eax, dword [rsp + 0x24]
mov ecx, 4
imul rcx, rcx, 0x18c
mov rdx, qword [rsp + 0x50]
xor eax, dword [rdx + rcx + 4]
mov ecx, 4
imul rcx, rcx, 0x26f
mov rdx, qword [rsp + 0x50]
mov dword [rdx + rcx + 4], eax
mov rax, qword [rsp + 0x50]
mov dword [rax], 0
add rsp, 0x48
ret

Function at 0x14005ceac
Capabilities:
Parse pe header

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

Disassembly:
push rdi
sub rsp, 0x1e0
mov rax, qword [0x00409048]
mov qword [rsp + 0x1d0], rax
mov rdx, rcx
lea rcx, [rsp + 0xa0]
call sub.msvcrt.dll_strcpy
lea rcx, [rsp + 0xa0]
mov edx, 0x5c
call qword [sym.imp.msvcrt.dll_strrchr]
lea rdx, str._Xusage.txt
mov rcx, rax
call sub.msvcrt.dll_strcpy
lea rdx, [0x00407240]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.msvcrt.dll_fopen]
test rax, rax
mov rdi, rax
jne 0x401e58
mov rcx, qword [sym.imp.msvcrt.dll__iob]
lea r8, [rsp + 0xa0]
lea rdx, str.Cant_open__s_n
add rcx, 0x60
call qword [sym.imp.msvcrt.dll_fprintf]
lea eax, [rdi + 1]
jmp 0x401ea3
mov r9, rax
jmp 0x401e7e
mov r9, qword [sym.imp.msvcrt.dll__iob]
lea rcx, [rsp + 0x20]
mov r8, rax
add r9, 0x30
mov edx, 1
call qword [sym.imp.msvcrt.dll_fwrite]
mov r9, rdi
mov r8d, 0x80
lea rcx, [rsp + 0x20]
lea edx, [r8 - 0x7f]
call qword [sym.imp.msvcrt.dll_fread]
test rax, rax
jne 0x401e5d
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_fclose]
xor eax, eax
mov rcx, qword [rsp + 0x1d0]
call fcn.004052a0
add rsp, 0x1e0
pop rdi
ret
Function at 0x403a2c
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
mov r11, rsp
sub rsp, 0x48
lea rax, [r11 - 0x18]
mov ebx, r9d
mov rbp, r8
mov qword [r11 - 0x20], rax
lea r9, [r11 - 0x14]
xor r8d, r8d
mov qword [r11 - 0x28], 0
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403a9b
cmp dword [rsp + 0x34], 1
jne 0x403a9b
cmp dword [rsp + 0x30], ebx
jae 0x403a9b
lea rcx, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rcx
mov rcx, rsi
mov rdx, rdi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403a9b
mov al, 1
jmp 0x403a9d
xor al, al
add rsp, 0x48
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x403e98
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x180
mov rax, qword [0x00409048]
mov qword [rsp + 0x170], rax
mov r12, rcx
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x48], 0xffffffff80000001
mov qword [rsp + 0x50], 0xffffffff80000002
xor edi, edi
mov rcx, qword [rsp + rdi*8 + 0x48]
lea rax, [rsp + 0x30]
lea rdx, str.SoftwareJavaSoftJava_Runtime_Environment
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40402a
mov rbp, qword [rsp + 0x30]
lea r8, [rsp + 0x60]
mov r9d, 0x104
xor edx, edx
mov rcx, rbp
xor esi, esi
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x40402a
mov rdx, qword [r12 + 0x10]
lea rcx, [rsp + 0x60]
inc esi
call sub.jli.dll_JLI_AcceptableRelease
test eax, eax
je 0x403f69
test rbx, rbx
je 0x403f5c
lea rcx, [rsp + 0x60]
mov rdx, rbx
call sub.jli.dll_JLI_ExactVersionId
test eax, eax
jle 0x403f69
mov rcx, rbx
call sub.jli.dll_JLI_MemFree
lea rcx, [rsp + 0x60]
call sub.jli.dll_JLI_StringDup
mov rbx, rax
lea r8, [rsp + 0x60]
mov r9d, 0x104
mov edx, esi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x403f29
test rbx, rbx
je 0x40402a
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rbx
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rcx, rbx
test eax, eax
je 0x403fbe
call sub.jli.dll_JLI_MemFree
mov rcx, qword [rsp + 0x38]
jmp 0x404000
call sub.jli.dll_JLI_MemFree
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
lea rdx, str.JavaHome
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x40], 0x104
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x38]
test eax, eax
je 0x40400d
test rcx, rcx
je 0x40402a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40402a
test rcx, rcx
je 0x404018
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x60]
call sub.jli.dll_JLI_StringDup
test rax, rax
mov rbx, rax
jne 0x404064
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x40403a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc rdi
cmp rdi, 1
jle 0x403ed5
xor eax, eax
mov rcx, qword [rsp + 0x170]
call fcn.004052a0
add rsp, 0x180
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x404074
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
jmp 0x404049
Function at 0x4046ac
Capabilities:
Create thread

Disassembly:
push rbx
push rbp
push rsi
push rdi
mov rax, rsp
sub rsp, 0x48
mov dword [rax + 0x40], 0
lea rax, [rax - 0x18]
mov rdi, r8
mov r9, r8
mov rsi, rcx
mov r8, rcx
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov rbp, rdx
mov dword [rsp + 0x20], 0x10000
call qword [sym.imp.msvcrt.dll__beginthreadex]
test rax, rax
mov rbx, rax
jne 0x404715
lea rax, [rsp + 0x30]
mov r9, rdi
mov r8, rsi
mov qword [rsp + 0x28], rax
mov edx, ebp
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.msvcrt.dll__beginthreadex]
test rax, rax
mov rbx, rax
je 0x404746
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rsp + 0x88]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x88]
jmp 0x40474b
mov rcx, rdi
call rsi
add rsp, 0x48
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x404bb8
Capabilities:
Terminate process

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rdi, rdx
mov rsi, rcx
mov edx, r9d
mov rcx, r8
mov rbx, r8
call fcn.00404754
test al, al
jne 0x404c03
mov rcx, qword [sym.imp.msvcrt.dll__iob]
lea r8, str.Error:_could_not_find_Java_SE_Runtime_Environment.
lea rdx, [0x00407d3c]
add rcx, 0x60
call qword [sym.imp.msvcrt.dll_fprintf]
mov ecx, 2
call qword [sym.imp.msvcrt.dll_exit]
int3
mov rcx, rbx
call fcn.004049a8
lea rdx, str.amd64
xor r8d, r8d
mov rcx, rbx
call fcn.00402eb0
cmp eax, 1
jge 0x404c4d
mov rcx, qword [sym.imp.msvcrt.dll__iob]
lea r8, str.Error:_no_known_VMs.__check_for_corrupt_jvm.cfg_file_
lea rdx, [0x00407d3c]
add rcx, 0x60
call qword [sym.imp.msvcrt.dll_fprintf]
mov ecx, 1
call qword [sym.imp.msvcrt.dll_exit]
int3
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call fcn.00402614
mov rdi, qword [rsp + 0x90]
mov edx, 0x2f
mov rcx, rax
mov byte [rdi], 0
mov rsi, rax
call qword [sym.imp.msvcrt.dll_strchr]
test rax, rax
jne 0x404ca5
lea edx, [rax + 0x5c]
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_strchr]
test rax, rax
jne 0x404ca5
lea rdx, str._s_bin_sjvm.dll
mov r9, rsi
mov r8, rbx
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_sprintf]
jmp 0x404cb8
lea rdx, str._sjvm.dll
mov r8, rsi
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_sprintf]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__stat]
test eax, eax
je 0x404d35
mov rcx, rsi
call sub.msvcrt.dll_strlen
lea rcx, str.Error:_no___s_JVM_at___s.
mov rbx, rax
call sub.msvcrt.dll_strlen
mov rcx, rdi
add rbx, rax
call sub.msvcrt.dll_strlen
lea rcx, [rbx + rax]
call sub.jli.dll_JLI_MemAlloc
lea rdx, str.Error:_no___s_JVM_at___s.
mov r9, rdi
mov rcx, rax
mov r8, rsi
mov rbx, rax
call qword [sym.imp.msvcrt.dll_sprintf]
mov rcx, qword [sym.imp.msvcrt.dll__iob]
lea rdx, [0x00407d3c]
add rcx, 0x60
mov r8, rbx
call qword [sym.imp.msvcrt.dll_fprintf]
mov ecx, 4
call qword [sym.imp.msvcrt.dll_exit]
int3
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x404f00
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rdi, rcx
lea rsi, [0x004091a0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [0x00409298]
lea rdx, [rsp + 0x70]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x404f81
mov rdx, qword [rsp + 0x70]
mov qword [rsp + 0x38], 0
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x48]
mov r9, rax
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov r8, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
mov r11, qword [0x00409298]
jmp 0x404f9d
mov r11, qword [rsp + 0x68]
lea rax, [rsp + 0x68]
add rax, 8
mov qword [0x00409298], r11
mov qword [0x00409238], rax
mov rax, qword [0x00409048]
mov qword [0x00409110], r11
mov qword [0x00409220], rdi
mov dword [0x00409100], 0xc0000409
mov dword [0x00409104], 1
mov qword [rsp + 0x50], rax
mov rax, qword [0x00409040]
xor ecx, ecx
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x004081a0]
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]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x78]
add rsp, 0x68
ret
cmp rcx, qword [0x00409048]
jne 0x4052b9
rol rcx, 0x10
test cx, 0xffff
jne 0x4052b5
ret
ror rcx, 0x10
jmp 0x404f00