joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005380
Capabilities:
Create directory

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 r13
push r14
push r15
sub rsp, 0x40
xor r14d, r14d
lea r13, [0x14000d040]
mov ebx, edx
mov rsi, rcx
mov rax, r13
lea edi, [r14 + 1]
cmp dword [rax], edi
je 0x1400053ca
add r14d, edi
lea rcx, [0x14000d540]
add rax, 0x20
cmp rax, rcx
jl 0x1400053b3
cmp r14d, 0x28
jne 0x1400053fd
and dword [rsp + 0x28], 0
xor r9d, r9d
mov rcx, qword [0x14000c828]
xor r8d, r8d
mov edx, 0x4bb
mov dword [rsp + 0x20], FDIDestroy
call fcn.140004dcc
or rax, 0xffffffffffffffff
jmp 0x1400055b6
lea rdx, [0x14000c200]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
nop dword [rax + rax]
test eax, eax
jne 0x140005454
test ebx, 0x10b
jne 0x1400053f4
movsxd rdx, r14d
mov rcx, rdx
shl rcx, 5
and dword [rcx + r13], eax
mov rax, qword [0x14000d560]
and dword [rcx + r13 + 0x10], 0
mov qword [rcx + r13 + 8], rax
mov eax, dword [0x14000d568]
mov dword [rcx + r13 + 0x14], eax
mov dword [rcx + r13 + 4], edi
jmp 0x1400055b3
test bl, 8
je 0x140005462
or rcx, 0xffffffffffffffff
jmp 0x14000558d
mov eax, ebx
and al, 3
neg al
sbb ebp, ebp
and ebp, 0xc0000000
add ebp, 0x80000000
bt ebx, 8
jae 0x140005498
bt ebx, 0xa
jae 0x140005486
mov ebx, edi
jmp 0x1400054a8
and ebx, 0x200
neg ebx
sbb ebx, ebx
and ebx, 0xfffffffe
add ebx, 4
jmp 0x1400054a8
and ebx, 0x200
neg ebx
sbb ebx, ebx
and ebx, 2
add ebx, 3
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, ebp
mov dword [rsp + 0x20], ebx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
nop dword [rax + rax]
mov rcx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000558d
cmp ebx, 3
je 0x14000558d
cmp byte [rsi], 0
je 0x140005561
mov al, byte [rsi + 1]
lea rdi, [rsi + 2]
xor r15d, r15d
cmp al, 0x3a
jne 0x140005505
cmp byte [rdi], 0x5c
jne 0x140005505
lea rdi, [rsi + 3]
jmp 0x140005514
cmp byte [rsi], 0x5c
jne 0x140005518
cmp al, 0x5c
jne 0x140005518
mov r15d, 2
mov al, byte [rdi]
jmp 0x14000555d
lea rdi, [rsi + 1]
jmp 0x14000555d
cmp al, 0x5c
jne 0x140005549
cmp byte [rdi - 1], 0x3a
je 0x140005549
test r15d, r15d
je 0x140005532
dec r15d
jmp 0x140005549
xor edx, edx
mov byte [rdi], 0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
nop dword [rax + rax]
mov byte [rdi], 0x5c
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharNextA]
nop dword [rax + rax]
mov rdi, rax
mov al, byte [rax]
test al, al
jne 0x14000551e
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, ebp
mov dword [rsp + 0x20], ebx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
nop dword [rax + rax]
mov rcx, rax
movsxd rdx, r14d
mov rax, rdx
shl rax, 5
mov qword [rax + r13 + 0x18], rcx
cmp rcx, 0xffffffffffffffff
je 0x1400055af
and dword [rax + r13], 0
and dword [rax + r13 + 4], 0
jmp 0x1400055b3
or rdx, 0xffffffffffffffff
mov rax, rdx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
ret
Function at 0x140005d90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
xor r8d, r8d
lea rcx, [0x140009940]
xor edx, edx
call fcn.140005050
mov r8d, 0xa
mov dword [0x14000d568], eax
lea rdx, [0x140009940]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
nop dword [rax + rax]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
nop dword [rax + rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
nop dword [rax + rax]
mov qword [0x14000d560], rax
test rax, rax
je 0x140005fd1
mov rcx, qword [0x14000c828]
test rcx, rcx
je 0x140005e56
mov edx, 0x842
call qword [sym.imp.USER32.dll_GetDlgItem]
nop dword [rax + rax]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
nop dword [rax + rax]
mov rcx, qword [0x14000c828]
mov edx, 0x841
call qword [sym.imp.USER32.dll_GetDlgItem]
nop dword [rax + rax]
mov rcx, rax
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
nop dword [rax + rax]
call fcn.140005c60
test eax, eax
jne 0x140005e69
mov edx, 0x4ba
jmp 0x140005f34
lea rax, [0x14000d56c]
mov qword [rsp + 0x40], rax
lea r9, [0x1400055e0]
mov dword [rsp + 0x38], 1
lea rax, [0x1400057e0]
mov qword [rsp + 0x30], rax
lea r8, [fcn.140005380]
lea rax, [fcn.140005770]
mov qword [rsp + 0x28], rax
lea rdx, [0x140005890]
lea rax, [0x140005690]
lea rcx, [0x140005870]
mov qword [rsp + 0x20], rax
call qword [sym.imp.Cabinet.dll_FDICreate]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x140005f28
lea rax, [0x14000d560]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea r8, [0x140009700]
and qword [rsp + 0x28], 0
lea rax, [0x1400058b0]
lea rdx, [0x14000c200]
mov qword [rsp + 0x20], rax
mov rcx, rdi
call qword [sym.imp.Cabinet.dll_FDICopy]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x140005f55
mov rcx, rdi
call qword [sym.imp.Cabinet.dll_FDIDestroy]
nop dword [rax + rax]
test eax, eax
jne 0x140005f55
mov edx, dword [0x14000d56c]
add edx, 0x514
and dword [rsp + 0x28], 0
xor r9d, r9d
mov rcx, qword [0x14000c828]
xor r8d, r8d
mov dword [rsp + 0x20], FDIDestroy
call fcn.140004dcc
xor ebx, ebx
mov rcx, qword [0x14000d560]
test rcx, rcx
je 0x140005f75
call qword [sym.imp.KERNEL32.dll_FreeResource]
nop dword [rax + rax]
and qword [0x14000d560], 0
test ebx, ebx
jne 0x140005f9f
cmp dword [0x14000d5fc], ebx
jne 0x140005f9f
and dword [rsp + 0x28], ebx
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], FDIDestroy
mov edx, 0x4f8
xor ecx, ecx
call fcn.140004dcc
test byte [0x14000cd18], 1
jne 0x140005fcf
test byte [0x14000de64], 1
jne 0x140005fcf
mov rcx, qword [0x14000c828]
xor r9d, r9d
movsxd r8, ebx
mov edx, 0xfa1
call qword [sym.imp.USER32.dll_SendMessageA]
nop dword [rax + rax]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x1400061ec
Capabilities:
Delete file
Delete registry value
Persist via run registry key
Set current directory
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbx, qword [0x14000d608]
jmp 0x14000626e
cmp dword [0x14000cd04], 0
mov rdi, rbx
jne 0x14000624c
cmp dword [0x14000de60], 0
jne 0x14000624c
mov rcx, qword [rbx]
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
nop dword [rax + rax]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
nop dword [rax + rax]
mov rcx, qword [rdi]
mov rbx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
test rbx, rbx
jne 0x140006214
mov eax, dword [0x14000cd00]
mov ebx, 1
test eax, eax
je 0x140006317
cmp dword [0x14000cd04], 0
jne 0x140006317
cmp dword [0x14000de60], 0
jne 0x140006317
lea r8, [0x14000d610]
mov edx, 0x104
lea rax, [rsp + 0x40]
sub r8, rax
lea rcx, [rsp + 0x40]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x1400062d3
mov al, byte [r8 + rcx]
test al, al
je 0x1400062d3
mov byte [rcx], al
add rcx, rbx
sub rdx, rbx
jne 0x1400062b5
test rdx, rdx
lea rax, [rcx - 1]
cmovne rax, rcx
test byte [0x14000de64], 0x20
mov byte [rax], 0
je 0x1400062f4
lea rcx, [rsp + 0x40]
call fcn.140007c40
lea rcx, [0x1400097d0]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
nop dword [rax + rax]
lea rcx, [rsp + 0x40]
call fcn.14000204c
mov eax, dword [0x14000cd00]
cmp word [0x14000de78], bx
je 0x140006387
test eax, eax
je 0x140006387
cmp byte [0x14000c7d0], 0
je 0x140006387
lea rax, [rsp + 0x30]
mov r9d, 0x20006
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x14000c088]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
nop dword [rax + rax]
test eax, eax
jne 0x140006387
mov rcx, qword [rsp + 0x30]
lea rdx, [0x14000c7d0]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
and dword [0x14000cd00], 0
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140008470
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret
Function at 0x1400063b8
Capabilities:
Check if file exists
Create directory
Delete directory
Delete file
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x140
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rsp + 0x130], rax
xor ebx, ebx
mov rdi, rdx
mov esi, ebx
mov rbp, rcx
mov r9d, esi
lea r8, [0x140009970]
mov edx, 0x104
lea rcx, [rsp + 0x20]
call fcn.14000114c
mov r8, rbp
mov edx, 0x104
mov rcx, rdi
inc esi
call fcn.140001008
lea r8, [rsp + 0x20]
mov edx, 0x104
mov rcx, rdi
call fcn.140007ba8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
nop dword [rax + rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x1400064b6
cmp esi, 0x190
jl 0x1400063e3
mov r9, rdi
lea rdx, [0x14000997c]
xor r8d, r8d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
nop dword [rax + rax]
test eax, eax
je 0x140006490
mov rcx, rdi
mov ebx, 1
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
nop dword [rax + rax]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140008470
mov rbx, qword [rsp + 0x170]
add rsp, 0x140
pop rdi
pop rsi
pop rbp
ret
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
nop dword [rax + rax]
test eax, eax
je 0x14000644b
mov dword [0x14000cd00], 1
mov ebx, 1
jmp 0x140006490
Function at 0x1400064e4
Capabilities:
Create directory
Delete directory
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x170
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov esi, r8d
mov r9, rcx
test edx, edx
je 0x1400065df
lea rdx, [rsp + 0x50]
call fcn.1400063b8
test eax, eax
je 0x140006688
lea rbx, [0x14000d610]
mov edi, 0x104
lea r8, [rsp + 0x50]
mov edx, edi
mov rcx, rbx
sub r8, rbx
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140006560
mov al, byte [r8 + rcx]
test al, al
je 0x140006560
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x140006541
test rdx, rdx
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], 0
test byte [0x14000de64], 0x20
je 0x1400065cc
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
nop dword [rax + rax]
movzx ecx, word [rsp + 0x20]
test ecx, ecx
je 0x1400065bb
sub ecx, 1
je 0x1400065b2
sub ecx, 1
je 0x1400065a9
cmp ecx, 1
jne 0x1400065cc
lea r8, [0x140009998]
jmp 0x1400065c2
lea r8, [0x140009990]
jmp 0x1400065c2
lea r8, [0x140009988]
jmp 0x1400065c2
lea r8, [0x140009980]
mov edx, edi
mov rcx, rbx
call fcn.140007ba8
lea r8, [0x140009700]
mov edx, edi
mov rcx, rbx
call fcn.140007ba8
jmp 0x14000661e
lea rbx, [0x14000d610]
mov edi, 0x104
mov rcx, rbx
sub r9, rbx
lea rax, [rdi + 0x7ffffefa]
test rax, rax
je 0x140006610
mov al, byte [r9 + rcx]
test al, al
je 0x140006610
mov byte [rcx], al
inc rcx
sub rdi, 1
jne 0x1400065f1
test rdi, rdi
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], 0
mov rcx, rbx
call fcn.140006b70
test eax, eax
jne 0x140006649
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
nop dword [rax + rax]
test eax, eax
je 0x14000667d
mov dword [0x14000cd00], 1
test esi, esi
je 0x14000668c
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call fcn.140006ca4
test eax, eax
jne 0x14000668c
cmp dword [0x14000cd00], eax
je 0x140006688
and dword [0x14000cd00], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
nop dword [rax + rax]
jmp 0x140006688
call fcn.140007700
mov dword [0x14000d544], eax
xor eax, eax
jmp 0x140006698
and dword [0x14000d544], 0
mov eax, 1
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140008470
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140006b70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rdi, rcx
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rcx + rbx], 0
jne 0x140006b8b
add ebx, 0x14
mov ecx, 0x40
mov edx, ebx
mov ebp, ebx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
jne 0x140006bf5
and dword [rsp + 0x28], eax
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], FDIDestroy
mov edx, 0x4b5
xor ecx, ecx
call fcn.140004dcc
call fcn.140007700
mov dword [0x14000d544], eax
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov r8, rdi
mov rdx, rbp
mov rcx, rsi
call fcn.140001008
lea r8, [0x1400099b0]
mov edx, ebx
mov rcx, rsi
call fcn.140007ba8
and qword [rsp + 0x30], 0
mov ebp, 1
mov dword [rsp + 0x28], 0x4000080
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], ebp
mov edx, 0x40000000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
nop dword [rax + rax]
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
cmp rbx, 0xffffffffffffffff
je 0x140006bd2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x140006bd2
test al, 0x10
je 0x140006bd2
and dword [0x14000d544], 0
mov eax, ebp
jmp 0x140006bdf
Function at 0x14000772c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor esi, esi
mov rbp, rcx
xor r9d, r9d
mov edi, 1
jmp 0x1400077c9
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
nop dword [rax + rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x140007813
lea r8, [rax + 8]
or rax, 0xffffffffffffffff
inc rax
cmp byte [r8 + rax], 0
jne 0x140007792
mov edx, dword [rbx + 4]
lea r9, [rax + 1]
mov ecx, dword [rbx]
add r9, r8
mov rax, rbp
call qword [vtable.H_MA8HI.0]
mov rcx, rbx
test eax, eax
je 0x140007803
call qword [sym.imp.KERNEL32.dll_FreeResource]
nop dword [rax + rax]
add esi, edi
mov r9d, esi
lea r8, [0x1400099d0]
mov edx, reloc.Cabinet.dll_FDICreate
lea rcx, [rsp + 0x30]
call fcn.14000114c
mov r8d, 0xa
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
nop dword [rax + rax]
test rax, rax
jne 0x14000775e
jmp 0x14000781f
xor edi, edi
call qword [sym.imp.KERNEL32.dll_FreeResource]
nop dword [rax + rax]
jmp 0x14000781f
mov dword [0x14000d544], 0x80070714
xor edi, edi
mov eax, edi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140008470
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret

Function at 0x1400079f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x148
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov edx, 0x104
lea r9, [0x14000d610]
lea rax, [rsp + 0x20]
mov r8d, edx
sub r9, rax
lea rcx, [rsp + 0x20]
lea rax, [r8 + 0x7ffffefa]
test rax, rax
je 0x140007a44
mov al, byte [r9 + rcx]
test al, al
je 0x140007a44
mov byte [rcx], al
inc rcx
sub r8, 1
jne 0x140007a25
test r8, r8
lea rax, [rcx - 1]
lea r8, [0x1400097a8]
cmovne rax, rcx
lea rcx, [rsp + 0x20]
mov byte [rax], 0
call fcn.140007ba8
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x140007a96
test al, 0x10
jne 0x140007a96
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
nop dword [rax + rax]
jmp 0x140007aa9
lea rcx, [0x1400097a8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140008470
add rsp, 0x148
ret
Function at 0x140007f04
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x18]
sub rsp, 0x110
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rbp], rax
mov esi, dword [0x14000c20c]
mov dword [rsp + 0x30], InitCommonControls
cmp esi, 0xfffffffe
jne 0x14000809c
xor edi, edi
mov dword [rsp + 0x50], 0x94
lea rcx, [rsp + 0x50]
mov dword [0x14000c20c], edi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
nop dword [rax + rax]
test eax, eax
je 0x140008096
lea esi, [rdi + 1]
cmp dword [rsp + 0x60], esi
jne 0x140008096
cmp dword [rsp + 0x54], 4
jne 0x140008096
cmp dword [rsp + 0x58], 0xa
jae 0x140008096
lea ecx, [rdi + 0x4a]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
nop dword [rax + rax]
test eax, eax
je 0x140008096
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x1400099e0]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
nop dword [rax + rax]
test eax, eax
jne 0x140008096
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rbp - 0x10]
xor r8d, r8d
lea rdx, [0x140009700]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x38]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
test ebx, ebx
jne 0x140008096
lea rcx, [rbp - 0x10]
mov al, byte [rcx]
sub al, 0x30
cmp al, 9
ja 0x14000803f
movsx eax, byte [rcx]
add edi, 0xfffffffd
shl edi, 4
add edi, eax
jmp 0x140008065
mov al, byte [rcx]
sub al, 0x20
cmp byte [rcx], 0x61
movzx edx, al
movzx eax, byte [rcx]
cmovl edx, eax
movsx r8d, dl
lea eax, [r8 - 0x41]
cmp eax, 5
ja 0x140008076
shl edi, 4
add edi, 0xffffffc9
add edi, r8d
call qword [sym.imp.USER32.dll_CharNextA]
nop dword [rax + rax]
mov rcx, rax
jmp 0x14000802a
lea rax, [rbp - 0x10]
cmp rcx, rax
je 0x140008096
and edi, 0x3ff
cmp edi, esi
je 0x14000808e
cmp edi, 0xd
jne 0x140008096
mov dword [0x14000c20c], esi
jmp 0x14000809c
mov esi, dword [0x14000c20c]
mov eax, esi
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.140008470
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x1400011d0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rdi
sub rsp, 0x70
mov rbp, rcx
mov ecx, 0x64000
call fcn.140001700
lea rcx, str.wininet.dll
mov dword [rsp + 0x98], 1
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x14000143f
mov qword [rsp + 0x90], rsi
lea rdx, str.InternetOpenW
mov qword [rsp + 0x68], r12
mov rcx, rax
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r15
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.InternetOpenUrlW
mov rcx, rbx
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.InternetReadFile
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.InternetCloseHandle
mov rcx, rbx
mov r12, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
test r15, r15
je 0x14000141f
test rsi, rsi
je 0x14000141f
test r12, r12
je 0x14000141f
test rax, rax
je 0x14000141f
mov qword [rsp + 0x60], r13
lea rcx, str.RookIE_1.0
xor r13d, r13d
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], r13d
xor edx, edx
call r15
mov r15, rax
test rax, rax
je 0x140001418
mov qword [rsp + 0x28], r13
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 0x4000000
mov rdx, rbp
mov rcx, rax
call rsi
mov rbp, rax
test rax, rax
je 0x140001412
mov qword [rsp + 0x40], r13
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x38], rax
lea rdx, str.Console
mov qword [rsp + 0x30], r13
xor r9d, r9d
mov dword [rsp + 0x28], 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x20], r13d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14000140c
mov ebx, r13d
mov esi, r13d
cmp dword [rsp + 0x98], ebx
jbe 0x1400013d7
mov r8d, 0x64000
mov edx, ebx
sub r8d, ebx
lea r9, [rsp + 0x98]
add rdx, rdi
mov rcx, rbp
call r12
mov eax, dword [rsp + 0x98]
test eax, eax
je 0x1400013aa
add ebx, eax
cmp ebx, 0x64000
jne 0x1400013a6
mov rcx, qword [rsp + 0xa0]
lea rdx, str.hr360qnmlb
mov dword [rsp + 0x28], ebx
mov r9d, 3
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [rsp + 0x98]
add esi, ebx
mov ebx, r13d
test eax, eax
jne 0x140001342
test ebx, ebx
je 0x1400013d7
mov rcx, qword [rsp + 0xa0]
lea rdx, str.hr360qnmlb
mov dword [rsp + 0x28], ebx
mov r9d, 3
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add esi, ebx
mov rcx, qword [rsp + 0xa0]
lea rdx, str.hr360qnmlb
mov dword [rsp + 0x28], esi
mov r9d, 3
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rbp
call r14
mov rcx, r15
call r14
mov r13, qword [rsp + 0x60]
jmp 0x140001428
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov r14, qword [rsp + 0x58]
mov r12, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x90]
mov r15, qword [rsp + 0x50]
mov rcx, rdi
call fcn.1400016f8
add rsp, 0x70
pop rdi
pop rbp
pop rbx
ret
Function at 0x140013e5c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140013be4
Function at 0x140041b94
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 0x140041bc4
xor eax, eax
jmp 0x140041c87
mov rbp, rbx
cmp word [rax], si
je 0x140041be9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140041bd0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140041bcc
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.140041a14
movsxd r14, eax
test eax, eax
jne 0x140041c27
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140041bbd
mov rcx, r14
call fcn.140044e10
mov rdi, rax
test rax, rax
jne 0x140041c40
xor ecx, ecx
call fcn.14003e624
jmp 0x140041c1c
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.140041a14
test eax, eax
jne 0x140041c71
mov rcx, rdi
call fcn.14003e624
jmp 0x140041c7b
xor ecx, ecx
call fcn.14003e624
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 0x140041ca4
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 0x140041d2b
mov rsi, rbx
cmp word [rax], bp
je 0x140041cea
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140041cd4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140041cd0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140044e10
mov rdi, rax
test rax, rax
je 0x140041d18
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000ddc0
mov rbp, rdi
xor ecx, ecx
call fcn.14003e624
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