joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002a630
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x38], 0
je 0x14002a65e
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x14], 1
jne 0x14002a665
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x40]
cmp rax, 0x40
jae 0x14002a665
xor eax, eax
jmp 0x14002a7bf
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x38]
mov qword [rsp], rax
mov rax, qword [rsp]
movsxd rax, dword [rax + 0x3c]
cmp rax, 0x40
jae 0x14002a68b
mov qword [rsp + 0x10], 0x40
jmp 0x14002a698
mov rax, qword [rsp]
movsxd rax, dword [rax + 0x3c]
mov qword [rsp + 0x10], rax
mov eax, dword [rsp + 0x10]
mov dword [rsp + 8], eax
mov eax, dword [rsp + 8]
add rax, 0xf8
mov dword [rsp + 8], eax
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x14], 1
jne 0x14002a6ce
mov rcx, qword [rsp + 0x30]
mov eax, dword [rsp + 8]
cmp dword [rcx + 0x40], eax
jae 0x14002a6ce
xor eax, eax
jmp 0x14002a7bf
mov rax, qword [rsp]
movsxd rcx, dword [rax + 0x3c]
mov rax, qword [rsp + 0x30]
add rcx, qword [rax + 0x38]
mov rax, qword [rsp + 0x30]
mov qword [rax + 0xd0], rcx
mov rax, qword [rsp]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x14002a70d
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0xd0]
cmp dword [rax], 0x4550
je 0x14002a714
xor eax, eax
jmp 0x14002a7bf
mov rax, qword [rsp + 0x30]
mov dword [rax + 8], 1
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0xd0]
movzx eax, word [rax + 0x16]
and eax, 0x2000
test eax, eax
je 0x14002a743
mov dword [rsp + 0x18], 1
jmp 0x14002a74b
mov dword [rsp + 0x18], 0
mov rcx, qword [rsp + 0x30]
mov eax, dword [rsp + 0x18]
mov dword [rcx + 0x10], eax
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0xd0]
movzx eax, word [rax + 0x18]
cmp eax, 0x10b
jne 0x14002a77c
mov rax, qword [rsp + 0x30]
mov dword [rax + 0xc], 0
jmp 0x14002a7b7
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0xd0]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x14002a7b7
mov rax, qword [rsp + 0x30]
mov dword [rax + 0xc], 1
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0xd0]
mov qword [rcx + 0xd8], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 8]
add rsp, 0x28
ret
Function at 0x14003d000
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, str.http:__www.chinapyg.com
lea rdx, str.open
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + 8]
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
add rsp, 0x38
ret

Function at 0x140040580
Capabilities:
Check os version

Disassembly:
push rdi
sub rsp, 0x160
mov rax, qword [0x14007a9b0]
xor rax, rsp
mov qword [rsp + 0x158], rax
mov dword [rsp + 0x30], VarUI4FromDisp
lea rdi, [rsp + 0x34]
xor eax, eax
mov ecx, 0x110
rep stosb byte [rdi], al
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [rsp + 0x150], eax
cmp dword [rsp + 0x150], 0
je 0x1400405e1
cmp dword [rsp + 0x34], 6
jb 0x1400405e1
mov dword [rsp + 0x154], 1
jmp 0x1400405ec
mov dword [rsp + 0x154], 0
mov al, byte [rsp + 0x154]
mov rcx, qword [rsp + 0x158]
xor rcx, rsp
call fcn.14004c470
add rsp, 0x160
pop rdi
ret

Function at 0x140041b40
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
xor eax, eax
test eax, eax
jne 0x140041b58
xor eax, eax
test eax, eax
jne 0x140041b58
mov rax, qword [rsp + 0x68]
mov eax, dword [rax]
shl rax, 1
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x68]
mov dword [rax], 0
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x140041bc0
mov eax, dword [rsp + 0x38]
jmp 0x140041c43
cmp dword [rsp + 0x30], 1
je 0x140041bd5
cmp dword [rsp + 0x30], 2
je 0x140041bd5
mov eax, 0xd
jmp 0x140041c43
cmp qword [rsp + 0x60], 0
je 0x140041c29
cmp dword [rsp + 0x34], 0
je 0x140041c1f
mov eax, dword [rsp + 0x34]
xor edx, edx
mov ecx, 2
div rcx
test rdx, rdx
jne 0x140041c16
mov eax, dword [rsp + 0x34]
xor edx, edx
mov ecx, 2
div rcx
mov rcx, rax
mov rax, qword [rsp + 0x60]
movzx eax, word [rax + rcx*2 - 2]
test eax, eax
je 0x140041c1d
mov eax, 0xd
jmp 0x140041c43
jmp 0x140041c29
xor ecx, ecx
mov rax, qword [rsp + 0x60]
mov word [rax], cx
mov eax, dword [rsp + 0x34]
xor edx, edx
mov ecx, 2
div rcx
mov rcx, rax
mov rax, qword [rsp + 0x68]
mov dword [rax], ecx
xor eax, eax
add rsp, 0x48
ret

Function at 0x140041d10
Capabilities:
Get graphical window text

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx]
call qword [sym.imp.USER32.dll_GetWindowTextW]
add rsp, 0x28
ret
Function at 0x1400431c0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x70
mov byte [rsp + 0x30], 1
mov rcx, qword [rsp + 0x80]
call fcn.140044c80
movzx eax, al
test eax, eax
je 0x140043261
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 8]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x80]
add rcx, 8
call fcn.140043380
cdqe
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], 0xfffffffe
mov rcx, qword [rsp + 0x80]
add rcx, 8
call fcn.140043380
movsxd rbx, eax
mov rcx, qword [rsp + 0x80]
add rcx, 8
lea rdx, [rsp + 0x58]
call fcn.14003c500
mov rcx, rax
call fcn.140011510
lea r9, [rsp + 0x38]
mov r8, rbx
mov edx, 0x4e
mov rcx, rax
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x140043367
mov rcx, qword [rsp + 0x80]
call fcn.1400440a0
movzx eax, al
test eax, eax
je 0x1400432d1
mov rcx, qword [rsp + 0x80]
add rcx, 8
call fcn.140043380
cdqe
and rax, 0xffff
movzx ebx, ax
mov rcx, qword [rsp + 0x80]
add rcx, 8
lea rdx, [rsp + 0x60]
call fcn.14003c500
mov rcx, rax
call fcn.140011510
mov r9, qword [rsp + 0x80]
mov r9, qword [r9 + 8]
mov r8, rbx
mov edx, VarUI4FromDisp
mov rcx, rax
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x140043367
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x80]
mov r8, qword [r8 + 0x50]
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0x20
jbe 0x140043317
mov dword [rsp + 0x68], 1
jmp 0x14004331f
mov dword [rsp + 0x68], 0
movzx eax, byte [rsp + 0x68]
mov byte [rsp + 0x30], al
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x140043367
mov rax, qword [rsp + 0x80]
movzx ecx, byte [rax + 0x94]
or cl, 2
mov rax, qword [rsp + 0x80]
mov byte [rax + 0x94], cl
mov rcx, qword [rsp + 0x80]
add rcx, 8
mov edx, 1
call fcn.140040e00
mov al, byte [rsp + 0x30]
add rsp, 0x70
pop rbx
ret
Function at 0x140047520
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x4e0
mov qword [rsp + 0x4c8], 0xfffffffffffffffe
mov rax, qword [0x14007a9b0]
xor rax, rsp
mov qword [rsp + 0x4d0], rax
call fcn.140011490
mov dword [rsp + 0x70], eax
lea rcx, [rsp + 0x78]
call fcn.14004aa70
nop
mov rdx, qword [rsp + 0x4f0]
lea rcx, [rsp + 0x50]
call fcn.140047900
lea rcx, [rsp + 0x90]
call fcn.14004aa70
nop
mov edx, 0x400
mov rcx, qword [rsp + 0x4f8]
call fcn.140046da0
mov qword [rsp + 0x38], rax
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x1400475d6
call fcn.140046db0
mov dword [rsp + 0x4b0], eax
jmp 0x140047781
mov r8, qword [rsp + 0x508]
mov rdx, qword [rsp + 0x500]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rsp + 0x4a8], rax
cmp qword [rsp + 0x4a8], 0
jne 0x140047615
call fcn.140046db0
mov dword [rsp + 0x4b0], eax
jmp 0x140047781
mov rdx, qword [rsp + 0x4a8]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x4b8], rax
cmp qword [rsp + 0x4b8], 0
jne 0x14004764c
call fcn.140046db0
mov dword [rsp + 0x4b0], eax
jmp 0x140047781
mov rdx, qword [rsp + 0x4a8]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x60], eax
mov rax, qword [rsp + 0x4b8]
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x60]
add eax, 1
cmp eax, dword [rsp + 0x60]
jae 0x1400476ac
mov dword [rsp + 0x4c0], 0x8007000e
lea rcx, [rsp + 0x90]
call fcn.14004ae90
nop
lea rcx, [rsp + 0x78]
call fcn.14004aa90
mov eax, dword [rsp + 0x4c0]
jmp 0x1400477c1
mov eax, dword [rsp + 0x60]
add eax, 1
mov edx, eax
lea rcx, [rsp + 0x90]
call fcn.14004ae30
nop
lea rcx, [rsp + 0x90]
call fcn.140011510
test rax, rax
jne 0x1400476e5
mov dword [rsp + 0x4b0], 0x8007000e
jmp 0x140047781
lea rcx, [rsp + 0x90]
call fcn.140011510
mov rbx, rax
call fcn.140011490
mov ecx, eax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, dword [rsp + 0x60]
mov r8, qword [rsp + 0x40]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [rsp + 0x4a0], eax
cmp dword [rsp + 0x4a0], 0
jne 0x14004773a
call fcn.140046db0
mov dword [rsp + 0x4b0], eax
jmp 0x140047781
mov ebx, dword [rsp + 0x4a0]
lea rcx, [rsp + 0x90]
call fcn.140011510
mov r11, rax
xor eax, eax
mov word [r11 + rbx*2], ax
lea rcx, [rsp + 0x90]
call fcn.140011510
mov r8d, dword [rsp + 0x510]
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140047930
mov dword [rsp + 0x4b0], eax
cmp qword [rsp + 0x48], 0
je 0x140047794
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [rsp + 0x4b0]
mov dword [rsp + 0x4c4], eax
lea rcx, [rsp + 0x90]
call fcn.14004ae90
nop
lea rcx, [rsp + 0x78]
call fcn.14004aa90
mov eax, dword [rsp + 0x4c4]
mov rcx, qword [rsp + 0x4d0]
xor rcx, rsp
call fcn.14004c470
add rsp, 0x4e0
pop rbx
ret
Function at 0x140049540
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor eax, eax
test eax, eax
jne 0x14004954e
xor eax, eax
test eax, eax
jne 0x14004954e
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
add rsp, 0x28
ret

Function at 0x140049580
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor eax, eax
test eax, eax
jne 0x14004958e
xor eax, eax
test eax, eax
jne 0x14004958e
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
add rsp, 0x28
ret

Function at 0x140049680
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x298
mov rax, qword [0x14007a9b0]
xor rax, rsp
mov qword [rsp + 0x280], rax
lea rcx, [rsp + 0x50]
call fcn.140041a20
mov r11, qword [rsp + 0x2a0]
mov r9d, dword [r11 + 8]
or r9d, 0x2001f
mov r8, qword [rsp + 0x2a8]
mov rdx, qword [rsp + 0x2a0]
mov rdx, qword [rdx]
lea rcx, [rsp + 0x50]
call fcn.140041ac0
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x140049709
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x270], eax
lea rcx, [rsp + 0x50]
call fcn.140041a50
mov eax, dword [rsp + 0x270]
jmp 0x1400497cd
mov dword [rsp + 0x40], 0x100
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140049796
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.140049680
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x140049789
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x274], eax
lea rcx, [rsp + 0x50]
call fcn.140041a50
mov eax, dword [rsp + 0x274]
jmp 0x1400497cd
mov dword [rsp + 0x40], 0x100
jmp 0x140049711
lea rcx, [rsp + 0x50]
call fcn.140041a70
mov rdx, qword [rsp + 0x2a8]
mov rcx, qword [rsp + 0x2a0]
call fcn.140049540
mov dword [rsp + 0x278], eax
lea rcx, [rsp + 0x50]
call fcn.140041a50
mov eax, dword [rsp + 0x278]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14004c470
add rsp, 0x298
ret
Function at 0x140049d90
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
xor eax, eax
test eax, eax
jne 0x140049da3
xor eax, eax
test eax, eax
jne 0x140049da3
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret

Function at 0x140049df0
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
xor eax, eax
test eax, eax
jne 0x140049e08
xor eax, eax
test eax, eax
jne 0x140049e08
cmp qword [rsp + 0x60], 0
je 0x140049e26
mov dword [rsp + 0x34], 1
jmp 0x140049e2e
mov dword [rsp + 0x34], 0
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x140049e44
mov eax, 0xd
jmp 0x140049e86
xor eax, eax
test eax, eax
jne 0x140049e14
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cdqe
shl rax, 1
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x48
ret

Function at 0x140049e90
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
xor eax, eax
test eax, eax
jne 0x140049ea3
xor eax, eax
test eax, eax
jne 0x140049ea3
cmp qword [rsp + 0x70], 0
je 0x140049ec1
mov dword [rsp + 0x48], 1
jmp 0x140049ec9
mov dword [rsp + 0x48], 0
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x140049ee2
mov eax, 0xd
jmp 0x140049f63
xor eax, eax
test eax, eax
jne 0x140049eaf
mov dword [rsp + 0x30], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [rsp + 0x40], eax
mov ecx, dword [rsp + 0x40]
mov rax, qword [rsp + 0x38]
lea rax, [rax + rcx*2]
mov qword [rsp + 0x38], rax
mov ecx, dword [rsp + 0x40]
mov eax, dword [rsp + 0x30]
lea rax, [rax + rcx*2]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x40], 1
jne 0x140049efa
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 7
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x58
ret
Function at 0x14004eb47
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14007a9b0]
jne 0x14004c48a
rol rcx, 0x10
test cx, 0xffff
jne 0x14004c486
repz ret
ror rcx, 0x10
jmp 0x14004eaa0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14007d560]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x14007d658]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14004eb25
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14007d560]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14004eb47
mov rax, qword [rsp + 0x88]
mov qword [0x14007d658], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14007d5f8], rax
mov rax, qword [0x14007d658]
mov qword [0x14007d4d0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14007d5e0], rax
mov dword [0x14007d4c0], 0xc0000409
mov dword [0x14007d4c4], 1
mov rax, qword [0x14007a9b0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14007a9b8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14007d558], eax
mov ecx, 1
call fcn.140053038
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14006cb90]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14007d558], 0
jne 0x14004ebce
mov ecx, 1
call fcn.140053038
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140054de8
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call fcn.14005714c
nop
cmp dword [0x14007db00], 1
je 0x140054d94
mov dword [0x14007dafc], 1
mov byte [0x14007daf8], r12b
test ebx, ebx
jne 0x140054d80
mov rcx, qword [0x14007e750]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140054d6d
mov rcx, qword [0x14007e748]
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x140054d0c
call fcn.14004ed88
cmp qword [rdi], rax
jne 0x140054d0c
jmp 0x140054cf2
cmp rdi, rsi
jb 0x140054d6d
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.14004ed88
mov qword [rdi], rax
call rbx
mov rcx, qword [0x14007e750]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x14007e748]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x140054d4b
cmp r13, rax
je 0x140054d6b
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x140054cf2
lea rdx, [0x1400648e0]
lea rcx, [0x1400648c8]
call fcn.140054b3c
lea rdx, [0x1400648f0]
lea rcx, [0x1400648e8]
call fcn.140054b3c
nop
test r12d, r12d
je 0x140054da3
mov ecx, 8
call fcn.14005704c
test r12d, r12d
jne 0x140054dce
mov dword [0x14007db00], 1
lea ecx, [r12 + 8]
call fcn.14005704c
mov ecx, r15d
call fcn.140054ad0
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
xor edx, edx
jmp 0x140054c5c

Function at 0x140054df4
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x140054c5c
Function at 0x14005ae28
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.14004ed88
xor ebx, ebx
mov rdi, rax
cmp qword [0x14007e348], rbx
jne 0x14005af2e
lea rcx, [0x14006e718]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14005b003
lea rdx, [0x14006e708]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14005b003
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x14006e6f8]
mov rcx, rsi
mov qword [0x14007e348], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x14006e6e0]
mov rcx, rsi
mov qword [0x14007e350], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x14006e6c0]
mov rcx, rsi
mov qword [0x14007e358], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x14007e368], rax
test rax, rax
je 0x14005af25
lea rdx, [0x14006e6a8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x14007e360], rax
jmp 0x14005af35
mov rax, qword [0x14007e360]
jmp 0x14005af3c
mov rax, qword [0x14007e360]
mov r11, qword [0x14007e368]
cmp rax, rdi
je 0x14005afa4
cmp r11, rdi
je 0x14005afa4
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x14007e368]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x14005afa4
test rax, rax
je 0x14005afa4
call rsi
test rax, rax
je 0x14005af9e
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14005af9e
test byte [rsp + 0x38], 1
jne 0x14005afa4
bts ebp, 0x15
jmp 0x14005afe2
mov rcx, qword [0x14007e350]
cmp rcx, rdi
je 0x14005afe2
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14005afe2
call rax
mov rbx, rax
test rax, rax
je 0x14005afe2
mov rcx, qword [0x14007e358]
cmp rcx, rdi
je 0x14005afe2
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14005afe2
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14007e348]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14005b003
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x14005b005
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x14005e278
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rcx, qword [0x14007e4e8]
test rcx, rcx
jne 0x14005e1cf
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 0x60]
mov rcx, qword [rbx + 0x40]
test rcx, rcx
jne 0x14005e1c8
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
lea r8d, [rdx + 0x10]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x14005e1fa
and qword [rax], 0
and qword [rax + 8], 0
xor eax, eax
lock cmpxchg qword [rbx + 0x40], rdi
je 0x14005e1c4
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rbx + 0x40]
mov qword [0x14007e4e8], rcx
call qword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
test rax, rax
jne 0x14005e26d
mov edx, 0x1000
lea r9d, [rax + 0x40]
xor ecx, ecx
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x14005e21d
xor edx, edx
lea r9, [rsp + 0x30]
mov ecx, 0xc0000017
lea r8d, [rdx + 1]
mov qword [rsp + 0x30], 0x20
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, dword [rax]
mov rcx, qword [0x14007e4e8]
call qword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
mov rdi, rax
test rax, rax
je 0x14005e24a
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, rdi
jmp 0x14005e26d
lea rdi, [rbx + 0xfe0]
mov rcx, qword [0x14007e4e8]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add rbx, 0x20
cmp rbx, rdi
jb 0x14005e251
mov rax, rbx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
jmp 0x14005e154