joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180099b80
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x180001b10]
xor rax, rsp
mov qword [rbp + 0x20], rax
xor eax, eax
mov r9d, 0x4f00
lea r8, [0x1800fb368]
lea rcx, [rsp + 0x20]
lea edx, [rax + 9]
mov dword [rsp + 0x20], 0x4f614f57
mov dword [rsp + 0x24], 0x4f4e4f6a
mov dword [rsp + 0x28], 0x4f744f65
mov dword [rsp + 0x2c], 0x4f6e4f45
mov qword [rsp + 0x30], r9
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rax
mov qword [rbp], rax
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x18], rax
call fcn.18005f120
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.1800b8aa0
add rsp, 0x130
pop rbp
ret

Function at 0x18009c570
Capabilities:
Get common file path
Get program files directory

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x180001b10]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor r9d, r9d
mov rdi, rdx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x270], rsi
mov rsi, rcx
lea edx, [r9 + 0x26]
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor ebx, ebx
test eax, eax
jne 0x18009c5fa
cmp word [rsp + 0x30], bx
jne 0x18009c5d8
lea rdx, [rsp + 0x30]
mov r8d, ebx
mov rcx, rsi
call fcn.1800329a0
jmp 0x18009c60b
lea rax, [rsp + 0x30]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], bx
jne 0x18009c5e1
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.1800329a0
jmp 0x18009c60b
cmp qword [rsi + 0x18], 8
mov qword [rsi + 0x10], rbx
jb 0x18009c608
mov rsi, qword [rsi]
mov word [rsi], bx
xor r9d, r9d
lea rax, [rsp + 0x30]
xor r8d, r8d
lea edx, [r9 + 0x2a]
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov rsi, qword [rsp + 0x270]
test eax, eax
jne 0x18009c65f
cmp word [rsp + 0x30], ax
je 0x18009c64d
lea rax, [rsp + 0x30]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x18009c643
lea rdx, [rsp + 0x30]
mov r8, rbx
mov rcx, rdi
call fcn.1800329a0
jmp 0x18009c670
cmp qword [rdi + 0x18], 8
mov qword [rdi + 0x10], rbx
jb 0x18009c66d
mov rdi, qword [rdi]
mov word [rdi], bx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1800b8aa0
mov rbx, qword [rsp + 0x278]
add rsp, 0x250
pop rdi
ret
Function at 0x18009e4c0
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0x80
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0xa0], rbx
mov rax, qword [0x180001b10]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x30], 0
call fcn.18009e370
mov dword [rsp + 0x68], 0
xor eax, eax
mov qword [rdi], rax
mov qword [rdi + 8], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, rbx
lea r8, [0x18009e0e0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
mov rcx, rdi
call fcn.180085f80
mov dword [rsp + 0x30], 1
mov rax, qword [rdi]
test rax, rax
je 0x18009e586
cmp qword [rax], 0
je 0x18009e586
lea rbx, [0x1800f8ab8]
mov qword [rsp + 0x38], rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rdx, rdi
call fcn.18009ea90
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, rdi
jmp 0x18009e5b3
lea rax, str.wtf__cannot_create_the_thread
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x50]
call fcn.1800b8b10
lea rdx, [0x180160d68]
lea rcx, [rsp + 0x50]
call fcn.1800bef68
nop
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1800b8aa0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x80
pop rdi
ret

Function at 0x18009e6b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x180001b10]
xor rax, rsp
mov qword [rbp + 0x20], rax
xor eax, eax
mov r9d, 0x4f00
lea r8, [0x1800fb610]
lea rcx, [rsp + 0x20]
lea edx, [rax + 0xd]
mov dword [rsp + 0x20], 0x4f654f4b
mov dword [rsp + 0x24], 0x4f6e4f72
mov dword [rsp + 0x28], 0x4f6c4f65
mov dword [rsp + 0x2c], 0x4f324f33
mov dword [rsp + 0x30], 0x4f644f2e
mov dword [rsp + 0x34], 0x4f6c4f6c
mov qword [rsp + 0x38], r9
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rax
mov qword [rbp], rax
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x18], rax
call fcn.18005f120
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.1800b8aa0
add rsp, 0x130
pop rbp
ret
Function at 0x1800bcd00
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.1800bcb68
Function at 0x1800dcc60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x1800dce40
push rdi
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rsi
mov ecx, dword [0x180002bec]
cmp ecx, 0xffffffff
jne 0x1800dce6d
xor r14d, r14d
jmp 0x1800dce76
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r14, rax
mov qword [rsp + 0x50], r14
test r14, r14
je 0x1800dcfa8
mov rdi, qword [r14 + 0x18]
cmp qword [r14 + 0x28], 0
jne 0x1800dce9a
test rdi, rdi
je 0x1800dcf81
jmp 0x1800dcea0
test rdi, rdi
je 0x1800dcef4
nop
mov rax, qword [rdi + 8]
mov qword [r14 + 0x18], rax
mov rcx, qword [rdi]
test rcx, rcx
je 0x1800dced7
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rbx, qword [rdi]
mov rax, qword [rbx]
xor edx, edx
mov rcx, rbx
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdi, qword [r14 + 0x18]
test rdi, rdi
jne 0x1800dcea0
mov rsi, qword [r14 + 0x20]
mov rbx, qword [rsi]
cmp rbx, rsi
je 0x1800dce84
mov rdi, rbx
cmp byte [rbx + 0x19], 0
jne 0x1800dcf4e
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x1800dcf2e
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x1800dcf4e
nop
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1800dcf20
jmp 0x1800dcf4e
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x1800dcf4b
cmp rbx, qword [rax + 0x10]
jne 0x1800dcf4b
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x1800dcf38
mov rbx, rax
mov rcx, qword [rdi + 0x28]
test rcx, rcx
je 0x1800dcf66
mov rdx, qword [rdi + 0x38]
test rdx, rdx
je 0x1800dcf66
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov r8, rdi
lea rdx, [rsp + 0x58]
lea rcx, [r14 + 0x20]
call fcn.1800dc750
cmp rbx, rsi
jne 0x1800dcf00
jmp 0x1800dce84
lea rdx, [0x1800dc710]
lea rcx, [0x1800f7e58]
call fcn.1800dc330
mov ecx, dword [0x180002bec]
cmp ecx, 0xffffffff
je 0x1800dcfa8
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
test r14, r14
je 0x1800dcfd2
lock dec dword [r14 + 8]
jne 0x1800dcfd2
mov rax, qword [r14]
xor edx, edx
mov rcx, r14
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x1800dce40
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x1800dce40
push rdi
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rsi
mov ecx, dword [0x180002bec]
cmp ecx, 0xffffffff
jne 0x1800dce6d
xor r14d, r14d
jmp 0x1800dce76
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r14, rax
mov qword [rsp + 0x50], r14
test r14, r14
je 0x1800dcfa8
mov rdi, qword [r14 + 0x18]
cmp qword [r14 + 0x28], 0
jne 0x1800dce9a
test rdi, rdi
je 0x1800dcf81
jmp 0x1800dcea0
test rdi, rdi
je 0x1800dcef4
nop
mov rax, qword [rdi + 8]
mov qword [r14 + 0x18], rax
mov rcx, qword [rdi]
test rcx, rcx
je 0x1800dced7
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rbx, qword [rdi]
mov rax, qword [rbx]
xor edx, edx
mov rcx, rbx
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdi, qword [r14 + 0x18]
test rdi, rdi
jne 0x1800dcea0
mov rsi, qword [r14 + 0x20]
mov rbx, qword [rsi]
cmp rbx, rsi
je 0x1800dce84
mov rdi, rbx
cmp byte [rbx + 0x19], 0
jne 0x1800dcf4e
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x1800dcf2e
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x1800dcf4e
nop
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1800dcf20
jmp 0x1800dcf4e
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x1800dcf4b
cmp rbx, qword [rax + 0x10]
jne 0x1800dcf4b
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x1800dcf38
mov rbx, rax
mov rcx, qword [rdi + 0x28]
test rcx, rcx
je 0x1800dcf66
mov rdx, qword [rdi + 0x38]
test rdx, rdx
je 0x1800dcf66
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov r8, rdi
lea rdx, [rsp + 0x58]
lea rcx, [r14 + 0x20]
call fcn.1800dc750
cmp rbx, rsi
jne 0x1800dcf00
jmp 0x1800dce84
lea rdx, [0x1800dc710]
lea rcx, [0x1800f7e58]
call fcn.1800dc330
mov ecx, dword [0x180002bec]
cmp ecx, 0xffffffff
je 0x1800dcfa8
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
test r14, r14
je 0x1800dcfd2
lock dec dword [r14 + 8]
jne 0x1800dcfd2
mov rax, qword [r14]
xor edx, edx
mov rcx, r14
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x180001000
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x98
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x80], rax
lea rax, [rsp + 0x48]
lea rcx, str.SOFTWAREMicrosoft.KN_FHB
mov rdi, rax
mov rsi, rcx
mov ecx, 0x1b
rep movsb byte [rdi], byte [rsi]
mov dword [rsp + 0x68], 0x104
mov eax, dword [rsp + 0x68]
mov qword [rsp + 0x78], rax
mov rdi, qword [rsp + 0xb0]
xor eax, eax
mov rcx, qword [rsp + 0x78]
rep stosb byte [rdi], al
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rsp + 0x48]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x180001088
xor al, al
jmp 0x1800010e2
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
mov r9d, 2
lea r8, str.sign
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegGetValueA]
test eax, eax
je 0x1800010d5
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x1800010e2
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.180004870
add rsp, 0x98
pop rdi
pop rsi
ret
Function at 0x180001510
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x180001536
xor eax, eax
jmp 0x1800016af
mov rax, qword [rsp + 0x40]
movzx eax, byte [rax]
cmp eax, 0x4d
jne 0x180001551
mov rax, qword [rsp + 0x40]
movzx eax, byte [rax + 1]
cmp eax, 0x5a
je 0x180001558
xor eax, eax
jmp 0x1800016af
mov rax, qword [rsp + 0x40]
add rax, 0x3c
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
movzx eax, word [rax]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
cmp dword [rax], 0x4550
jne 0x1800015a7
mov rax, qword [rsp + 0x58]
cmp dword [rax + 0x84], 1
jb 0x1800015a7
mov rax, qword [rsp + 0x58]
cmp dword [rax + 0x88], 0
jne 0x1800015ae
xor eax, eax
jmp 0x1800016af
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0x88]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x28], 0
jmp 0x1800015dd
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x28], eax
jae 0x18000163f
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x28]
shl ecx, 2
mov ecx, ecx
add rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0
jne 0x18000161b
jmp 0x1800015d3
mov rax, qword [rsp + 0x38]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.1800014a0
cmp dword [rsp + 0x78], eax
jne 0x18000163d
jmp 0x18000163f
jmp 0x1800015d3
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x28], eax
jb 0x180001651
xor eax, eax
jmp 0x1800016af
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x28]
shl ecx, 1
mov ecx, ecx
add rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x20]
movzx ecx, word [rcx]
shl ecx, 2
movsxd rcx, ecx
add rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
add rsp, 0x68
ret
Function at 0x180003bd0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
movzx eax, byte [rsp + 0x80]
test eax, eax
je 0x180003c39
mov dword [rsp + 0x48], 0
jmp 0x180003c08
mov eax, dword [rsp + 0x48]
inc eax
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x70]
cmp dword [rsp + 0x48], eax
jae 0x180003c39
movsxd rax, dword [rsp + 0x48]
movzx ecx, byte [rsp + 0x80]
mov rdx, qword [rsp + 0x68]
movzx eax, byte [rdx + rax]
xor eax, ecx
movsxd rcx, dword [rsp + 0x48]
mov rdx, qword [rsp + 0x68]
mov byte [rdx + rcx], al
jmp 0x180003bfe
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov r8d, 3
mov edx, 0x40000000
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0xffffffffffffffff
jne 0x180003c7c
xor al, al
jmp 0x180003cc1
mov r9d, dword [rsp + 0x78]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x70]
mov r8d, dword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
add rsp, 0x58
ret

Function at 0x180003cd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rsi
push rdi
sub rsp, 0x58
movzx eax, word [rsp + 0x70]
mov r8, qword [rsp + 0x80]
mov edx, eax
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x180003d1a
xor eax, eax
jmp 0x180003db9
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x180003d3e
xor eax, eax
jmp 0x180003db9
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x180003d5a
xor eax, eax
jmp 0x180003db9
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
jne 0x180003d7c
xor eax, eax
jmp 0x180003db9
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [rsp + 0x28]
mov ecx, eax
call fcn.180004c14
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x20]
mov ecx, eax
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x78]
mov ecx, dword [rsp + 0x28]
mov dword [rax], ecx
mov rax, qword [rsp + 0x30]
add rsp, 0x58
pop rdi
pop rsi
ret
Function at 0x1800054eb
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [section..data]
jne 0x18000488a
rol rcx, 0x10
test cx, 0xffff
jne 0x180004886
repz ret
ror rcx, 0x10
jmp 0x180005444
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1800167a0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x180016898]
mov qword [rsp + 0x58], rax
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 0x1800054c9
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, [0x1800167a0]
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 0x1800054eb
mov rax, qword [rsp + 0x88]
mov qword [0x180016898], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x180016838], rax
mov rax, qword [0x180016898]
mov qword [0x180016710], rax
mov rax, qword [rsp + 0x90]
mov qword [0x180016820], rax
mov dword [0x180016700], 0xc0000409
mov dword [0x180016704], 1
mov rax, qword [section..data]
mov qword [rsp + 0x68], rax
mov rax, qword [0x180015008]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x180016798], eax
mov ecx, 1
call fcn.180008d90
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1800112f8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x180016798], 0
jne 0x180005572
mov ecx, 1
call fcn.180008d90
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 0x180009658
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.180007b38
xor ebx, ebx
cmp qword [0x1800176a0], rbx
mov rdi, rax
jne 0x18000976b
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x180009842
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180009842
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1800176a0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x1800176a8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x1800176b0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x1800176c0], rax
test rax, rax
je 0x180009762
lea rdx, [0x180011fd0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x1800176b8], rax
jmp 0x180009772
mov rax, qword [0x1800176b8]
jmp 0x180009779
mov rax, qword [0x1800176b8]
mov r11, qword [0x1800176c0]
cmp rax, rdi
je 0x1800097e0
cmp r11, rdi
je 0x1800097e0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x1800176c0]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x1800097e0
test rax, rax
je 0x1800097e0
call rsi
test rax, rax
je 0x1800097da
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1800097da
test byte [rsp + 0x40], 1
jne 0x1800097e0
bts ebp, 0x15
jmp 0x180009820
mov rcx, qword [0x1800176a8]
cmp rcx, rdi
je 0x180009820
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180009820
call rax
mov rbx, rax
test rax, rax
je 0x180009820
mov rcx, qword [0x1800176b0]
cmp rcx, rdi
je 0x180009820
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180009820
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1800176a0]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180009842
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x180009844
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180004870
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140036e92
Capabilities:
Terminate process

Disassembly:
jmp 0x1400a0480
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
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]
nop
add rsp, 0x28
ret

Function at 0x140037248
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400a17c0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400a17e0
xor al, al
jmp 0x1400a1861
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400a17f3
xor al, al
jmp 0x1400a1861
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400a181d
xor al, al
jmp 0x1400a1861
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400a1831
xor al, al
jmp 0x1400a1861
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400a1843
xor al, al
jmp 0x1400a1861
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400a185f
xor al, al
jmp 0x1400a1861
mov al, 1
add rsp, 0x38
ret