joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18003b060
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x240
mov rax, qword [0x1801c3938]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rdi, r8
movsxd rsi, edx
mov r13, rcx
mov r14d, reloc.OLEAUT32.dll_SafeArrayGetDim
mov byte [rsp + 0x30], 0
xor edx, edx
mov r8d, 0xff
lea rcx, [rsp + 0x31]
call fcn.1800c7520
mov byte [rsp + 0x130], 0
xor edx, edx
mov r8d, 0xff
lea rcx, [rsp + 0x131]
call fcn.1800c7520
nop
mov rcx, rsi
call fcn.1800bd9f0
mov r12, rax
mov r8, rsi
xor edx, edx
mov rcx, rax
call fcn.1800c7520
xor r11d, r11d
mov r9d, r11d
mov dword [rsp + 0x20], r11d
cmp r9d, 0x100
jge 0x18003b126
movsxd r8, r9d
mov byte [rsp + r8 + 0x30], r9b
mov eax, r9d
cdq
idiv r14d
movsxd rax, edx
movzx ecx, byte [rax + rdi]
mov byte [rsp + r8 + 0x130], cl
inc r9d
mov dword [rsp + 0x20], r9d
jmp 0x18003b0f5
mov edx, r11d
mov r8d, r11d
mov dword [rsp + 0x20], r11d
cmp r8d, 0x100
jge 0x18003b17f
movsxd r9, r8d
movzx r10d, byte [rsp + r9 + 0x30]
movzx eax, byte [rsp + r9 + 0x130]
add edx, eax
add edx, r10d
and edx, 0x800000ff
jge 0x18003b163
dec edx
or edx, 0xffffff00
inc edx
movsxd rcx, edx
movzx eax, byte [rsp + rcx + 0x30]
mov byte [rsp + r9 + 0x30], al
mov byte [rsp + rcx + 0x30], r10b
inc r8d
mov dword [rsp + 0x20], r8d
jmp 0x18003b131
mov r8d, r11d
mov dword [rsp + 0x20], r11d
mov r9d, r11d
mov dword [rsp + 0x24], r11d
nop
cmp r9d, esi
jge 0x18003b227
inc r8d
and r8d, 0x800000ff
jge 0x18003b1b2
dec r8d
or r8d, 0xffffff00
inc r8d
mov dword [rsp + 0x20], r8d
movsxd rdx, r8d
movzx r10d, byte [rsp + rdx + 0x30]
add r11d, r10d
and r11d, 0x800000ff
jge 0x18003b1d9
dec r11d
or r11d, 0xffffff00
inc r11d
movsxd rcx, r11d
movzx eax, byte [rsp + rcx + 0x30]
mov byte [rsp + rdx + 0x30], al
mov byte [rsp + rcx + 0x30], r10b
movzx ecx, byte [rsp + rdx + 0x30]
add ecx, r10d
and ecx, 0x800000ff
jge 0x18003b204
dec ecx
or ecx, 0xffffff00
inc ecx
movsxd rdx, r9d
movsxd rax, ecx
movzx ecx, byte [rsp + rax + 0x30]
movzx eax, byte [rdx + r13]
xor ecx, eax
mov byte [rdx + r12], cl
inc r9d
mov dword [rsp + 0x24], r9d
jmp 0x18003b190
mov rax, r12
jmp 0x18003b22e
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1800be9b0
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret
Function at 0x18003b260
Capabilities:
Hash data with md5

Disassembly:
push rdi
sub rsp, 0xd0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0xe0], rbx
mov rax, qword [0x1801c3938]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov ebx, edx
mov rdi, rcx
mov rdx, r8
lea rcx, [rsp + 0x28]
call fcn.180001820
nop
mov r8, qword [rsp + 0x38]
test r8, r8
jne 0x18003b2c5
mov r8d, reloc.OLEAUT32.dll_SafeArrayLock
lea rdx, str.dwIr23Cew_T_R471_
lea rcx, [rsp + 0x28]
call fcn.180001cd0
mov r8, qword [rsp + 0x38]
test ebx, ebx
jne 0x18003b2da
lea rcx, [rsp + 0x28]
call fcn.18008f070
xor eax, eax
jmp 0x18003b362
mov byte [rsp + 0xb8], 0
xor eax, eax
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x50], 0x67452301
mov dword [rsp + 0x54], 0xefcdab89
mov dword [rsp + 0x58], 0x98badcfe
mov dword [rsp + 0x5c], 0x10325476
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 0x10
cmovae rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x50]
call fcn.18003be50
cmp byte [rsp + 0xb8], 0
jne 0x18003b340
mov byte [rsp + 0xb8], 1
lea rcx, [rsp + 0x50]
call fcn.18003bf20
lea r8, [rsp + 0xa8]
mov edx, ebx
mov rcx, rdi
call fcn.18003b060
mov rbx, rax
lea rcx, [rsp + 0x28]
call fcn.18008f070
mov rax, rbx
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1800be9b0
mov rbx, qword [rsp + 0xe0]
add rsp, 0xd0
pop rdi
ret
Function at 0x180043d90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, dword [rcx + 0x44]
mov rdi, rcx
mov qword [rsp + 0x30], rbp
nop word [rax + rax]
mov edx, dword [rdi + 0x94]
mov esi, dword [rdi + 0x58]
mov eax, dword [rdi + 0x44]
sub esi, dword [rdi + 0x9c]
lea ecx, [rbx + rax - 0x106]
sub esi, edx
cmp edx, ecx
jb 0x180043e3f
mov rcx, qword [rdi + 0x50]
mov r8, rbx
lea rdx, [rcx + rbx]
call fcn.1800bed30
mov r8d, dword [rdi + 0x74]
mov rax, qword [rdi + 0x68]
sub dword [rdi + 0x98], ebx
sub dword [rdi + 0x94], ebx
sub dword [rdi + 0x84], ebx
lea rdx, [rax + r8*2]
nop dword [rax]
movzx eax, word [rdx - 2]
sub rdx, 2
cmp eax, ebx
jb 0x180043e10
sub eax, ebx
jmp 0x180043e12
xor eax, eax
dec r8d
mov word [rdx], ax
jne 0x180043e00
mov rax, qword [rdi + 0x60]
mov edx, ebx
lea rcx, [rax + rbx*2]
movzx eax, word [rcx - 2]
sub rcx, 2
cmp eax, ebx
jb 0x180043e34
sub eax, ebx
jmp 0x180043e36
xor eax, eax
dec edx
mov word [rcx], ax
jne 0x180043e24
add esi, ebx
mov rcx, qword [rdi]
cmp dword [rcx + 8], 0
je 0x180043eb9
mov edx, dword [rdi + 0x9c]
mov eax, dword [rdi + 0x94]
mov r8d, esi
add rdx, rax
add rdx, qword [rdi + 0x50]
call fcn.180043a50
add dword [rdi + 0x9c], eax
mov r9d, dword [rdi + 0x9c]
cmp r9d, 3
jb 0x180043ea3
mov eax, dword [rdi + 0x94]
mov rdx, qword [rdi + 0x50]
mov ecx, dword [rdi + 0x80]
movzx r8d, byte [rax + rdx]
mov dword [rdi + 0x70], r8d
shl r8d, cl
inc eax
movzx eax, byte [rax + rdx]
xor r8d, eax
and r8d, dword [rdi + 0x7c]
mov dword [rdi + 0x70], r8d
cmp r9d, 0x106
jae 0x180043eb9
mov rax, qword [rdi]
cmp dword [rax + 8], 0
jne 0x180043db0
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180057b30
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x180057ba4
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180057bc6
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180057bc6
mov rcx, qword [rbx]
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rcx + 8], 0
je 0x180057bc6
mov rdx, r8
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, 1
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov rdi, rdx
test rcx, rcx
je 0x180057c0e
mov r8, rdx
mov rdx, qword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x180057b30
cmp byte [0x1801dbbf4], 0
jne 0x180057c59
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180057c49
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x1801dbbf4], 1
mov qword [0x1801dbbf8], rax
jmp 0x180057c60
mov rax, qword [0x1801dbbf8]
mov byte [0x1801dbbf4], 1
jmp 0x180057c60
mov rax, qword [0x1801dbbf8]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x180057c7f
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
Function at 0x180057be0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x180057ba4
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180057bc6
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180057bc6
mov rcx, qword [rbx]
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rcx + 8], 0
je 0x180057bc6
mov rdx, r8
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, 1
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov rdi, rdx
test rcx, rcx
je 0x180057c0e
mov r8, rdx
mov rdx, qword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x180057b30
cmp byte [0x1801dbbf4], 0
jne 0x180057c59
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180057c49
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x1801dbbf4], 1
mov qword [0x1801dbbf8], rax
jmp 0x180057c60
mov rax, qword [0x1801dbbf8]
mov byte [0x1801dbbf4], 1
jmp 0x180057c60
mov rax, qword [0x1801dbbf8]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x180057c7f
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]

Function at 0x180057dd0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r12
sub rsp, 0x30
mov rsi, r8
mov rbp, rdx
mov r12, rcx
test r8, r8
jne 0x180057e03
lea eax, [r8 + 0xd]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rdi
xor edi, edi
mov rbx, r8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea rbx, [rbx + rax*2]
lea edi, [rdi + rax*2]
cmp eax, 1
jne 0x180057e12
mov rcx, qword [r12]
lea r9d, [rax + 6]
xor r8d, r8d
mov rdx, rbp
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
Function at 0x180057e70
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x1801c3938]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r9d, dword [rcx + 8]
xor ebp, ebp
mov rsi, rdx
mov r8, rdx
mov rdx, qword [rcx]
mov rdi, rcx
lea rcx, [rsp + 0x48]
or r9d, 0x2001f
mov qword [rsp + 0x48], rbp
mov dword [rsp + 0x50], ebp
mov qword [rsp + 0x58], rbp
call fcn.18003a1c0
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test eax, eax
jne 0x180057f8c
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
xor edx, edx
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x40], 0x100
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x180057f61
nop dword [rax + rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.180057e70
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test eax, eax
jne 0x180057f8c
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
xor edx, edx
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x40], 0x100
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x180057f10
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x180057f76
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rbp
mov rdx, rsi
mov rcx, rdi
mov dword [rsp + 0x50], ebp
call fcn.180057be0
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test rcx, rcx
je 0x180057f97
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1800be9b0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800584a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rsi
push rdi
push r12
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x4b0], rbx
mov rax, qword [0x1801c3938]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rsi, r9
mov rbx, r8
mov rax, rdx
xor r12d, r12d
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x70], r12
xor edx, edx
lea r8d, [r12 + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x180058518
call fcn.180057a80
mov ebx, eax
jmp 0x180058638
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x180058539
call fcn.180057a80
jmp 0x18005862c
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x18005855c
call fcn.180057a80
jmp 0x18005862c
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x18005857e
mov ebx, 0x8007000e
jmp 0x18005862e
mov ecx, eax
test eax, eax
je 0x1800585b6
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x1800585ac
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x1800585b6
lea rcx, [rsp + 0x70]
call fcn.18005fe20
jmp 0x1800585c0
mov ecx, 0x80070216
call fcn.180040c70
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x1800585d3
mov rax, qword [rsp + 0x70]
test rax, rax
jne 0x1800585e4
mov ebx, 0x8007000e
jmp 0x18005862e
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x180058609
call fcn.180057a80
jmp 0x18005862c
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], r12w
mov r8d, dword [rsp + 0x4d0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.180059420
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x18005864f
lea rcx, [rsp + 0x70]
call fcn.18005f2f0
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.1800be9b0
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x490
pop r12
pop rdi
pop rsi
ret
Function at 0x18005df70
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x50
xor ebx, ebx
test rcx, rcx
je 0x18005df86
add rcx, 0xfffffffffffffe40
jmp 0x18005df89
mov rcx, rbx
mov rax, qword [rdx]
mov rcx, qword [rcx + 0x20]
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x20], rax
mov rax, qword [rdx + 8]
mov qword [rsp + 0x28], rax
mov rax, qword [rdx + 0x10]
mov qword [rsp + 0x30], rax
mov rax, qword [rdx + 0x18]
mov qword [rsp + 0x38], rax
mov rax, qword [rdx + 0x20]
mov qword [rsp + 0x40], rax
mov rax, qword [rdx + 0x28]
mov qword [rsp + 0x48], rax
test rcx, rcx
jne 0x18005dfdb
mov rcx, rbx
mov qword [rsp + 0x60], rbx
mov edx, 0x80004005
jmp 0x18005dff3
mov rax, qword [rcx]
lea r8, [rsp + 0x60]
lea rdx, [0x180156d30]
call qword [rax]
mov rcx, qword [rsp + 0x60]
mov edx, eax
test edx, edx
js 0x18005e065
test rcx, rcx
je 0x18005e05e
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov qword [rsp + 0x68], rdi
call qword [sym.imp.USER32.dll_GetKeyState]
mov edx, 1
mov edi, ebx
test ax, ax
lea ecx, [rdx + 0x10]
cmovs edi, edx
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x18005e02a
add edi, 2
mov ecx, SafeArrayGetLBound
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x18005e03d
add edi, 4
mov rcx, qword [rsp + 0x60]
lea rdx, [rsp + 0x20]
mov r8d, edi
mov rax, qword [rcx]
call qword [rax + 0x38]
mov rcx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov edx, eax
jmp 0x18005e063
mov edx, 1
test edx, edx
setne bl
test rcx, rcx
je 0x18005e073
mov rdx, qword [rcx]
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov eax, ebx
add rsp, 0x50
pop rbx
ret

Function at 0x18008d920
Capabilities:
Allocate thread local storage

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x1a0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x18008da24
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, dword [0x1801dbce0]
test cl, 1
jne 0x18008d983
or ecx, 1
mov dword [0x1801dbce0], ecx
lea rax, vtable.system_error_category.0
mov qword [0x1801dbcb0], rax
lea rcx, [0x1801410f0]
call fcn.1800bf260
mov dword [rsp + 0x28], edi
lea rsi, [0x1801dbcb0]
test edi, edi
je 0x18008da24
lea rax, [0x1801592f8]
mov qword [rsp + 0x1b0], rax
lea rdx, [rsp + 0x1b0]
lea rcx, [rsp + 0x40]
call fcn.1800bea9c
lea r11, vtable.boost::system::system_error.0
mov qword [rsp + 0x40], r11
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x80], reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rsp + 0x78], 0
mov byte [rsp + 0x68], 0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x120]
call fcn.18008e3f0
nop
mov rdx, rax
lea rcx, [rsp + 0x90]
call fcn.18008e440
lea rdx, [0x1801c0bc8]
lea rcx, [rsp + 0x90]
call fcn.1800c3ae4
nop
mov eax, ebx
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x18009e100
Capabilities:
Allocate thread local storage

Disassembly:
mov rax, rsp
push r12
sub rsp, 0xa0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x1801c3938]
xor rax, rsp
mov qword [rsp + 0x90], rax
lea rsi, [0x1801db220]
mov qword [rsp + 0x28], rsi
xor dil, dil
mov qword [rsp + 0x20], 0
mov byte [rsp + 0x40], dil
mov ebx, 0xc15730e2
mov r12d, 0x7f0725e3
nop dword [rax + rax]
mov eax, dword [rsi]
cmp eax, ebx
je 0x18009e282
xor eax, eax
lock cmpxchg dword [rsi], r12d
jne 0x18009e225
mov rax, qword [rsp + 0x20]
test rax, rax
jne 0x18009e1ad
cmp byte [rsp + 0x40], al
jne 0x18009e191
lea rcx, [rsp + 0x40]
call fcn.18009dc50
lea r8, [rsp + 0x40]
xor edx, edx
mov ecx, 0x100002
call qword [sym.imp.KERNEL32.dll_OpenEventA]
mov qword [rsp + 0x20], rax
test rax, rax
je 0x18009e1b6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResetEvent]
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1801c7a18], eax
test dil, dil
jne 0x18009e1cb
lock inc dword [rsi + 4]
xchg dword [rsi], ebx
mov rbx, qword [rsp + 0x20]
test rbx, rbx
jne 0x18009e219
mov eax, dword [rsi + 4]
cmp eax, 1
jle 0x18009e212
cmp byte [rsp + 0x40], bl
jne 0x18009e1ef
lea rcx, [rsp + 0x40]
call fcn.18009dc50
lea r9, [rsp + 0x40]
xor r8d, r8d
lea edx, [r8 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rbx, rax
mov qword [rsp + 0x20], rax
test rax, rax
je 0x18009e223
jmp 0x18009e219
mov rbx, qword [rsp + 0x20]
jmp 0x18009e223
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEvent]
nop
jmp 0x18009e287
test dil, dil
jne 0x18009e26f
lock inc dword [rsi + 4]
mov dil, 1
mov eax, dword [rsi]
cmp eax, ebx
je 0x18009e282
mov rcx, qword [rsp + 0x20]
test rcx, rcx
jne 0x18009e274
cmp byte [rsp + 0x40], cl
jne 0x18009e251
lea rcx, [rsp + 0x40]
call fcn.18009dc50
lea r9, [rsp + 0x40]
xor r8d, r8d
lea edx, [r8 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rsp + 0x20], rax
jmp 0x18009e160
mov rcx, qword [rsp + 0x20]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x18009e160
mov rbx, qword [rsp + 0x20]
test rbx, rbx
je 0x18009e29b
cmp rbx, 0xffffffffffffffff
je 0x18009e29b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1800be9b0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop r12
ret
Function at 0x1800c79a3
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1801c3938]
jne 0x1800be9ca
rol rcx, 0x10
test cx, 0xffff
jne 0x1800be9c6
repz ret
ror rcx, 0x10
jmp 0x1800c78fc
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1801d93f0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1801d94e8]
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 0x1800c7981
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, [0x1801d93f0]
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 0x1800c79a3
mov rax, qword [rsp + 0x88]
mov qword [0x1801d94e8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1801d9488], rax
mov rax, qword [0x1801d94e8]
mov qword [0x1801d9360], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1801d9470], rax
mov dword [0x1801d9350], 0xc0000409
mov dword [0x1801d9354], 1
mov rax, qword [0x1801c3938]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1801c3940]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1801d93e8], eax
mov ecx, 1
call fcn.1800d5034
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1801459a8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1801d93e8], 0
jne 0x1800c7a2a
mov ecx, 1
call fcn.1800d5034
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 0x1800cf0e0
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 [0x1801c3938]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.1800c9a88
xor ebx, ebx
cmp qword [0x1801da3b0], rbx
mov rdi, rax
jne 0x1800cf1f3
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x1800cf2ca
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800cf2ca
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1801da3b0], 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 [0x1801da3b8], 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 [0x1801da3c0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x1801da3d0], rax
test rax, rax
je 0x1800cf1ea
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x1801da3c8], rax
jmp 0x1800cf1fa
mov rax, qword [0x1801da3c8]
jmp 0x1800cf201
mov rax, qword [0x1801da3c8]
mov r11, qword [0x1801da3d0]
cmp rax, rdi
je 0x1800cf268
cmp r11, rdi
je 0x1800cf268
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x1801da3d0]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x1800cf268
test rax, rax
je 0x1800cf268
call rsi
test rax, rax
je 0x1800cf262
lea rcx, [rsp + 0x30]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1800cf262
test byte [rsp + 0x40], 1
jne 0x1800cf268
bts ebp, 0x15
jmp 0x1800cf2a8
mov rcx, qword [0x1801da3b8]
cmp rcx, rdi
je 0x1800cf2a8
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1800cf2a8
call rax
mov rbx, rax
test rax, rax
je 0x1800cf2a8
mov rcx, qword [0x1801da3c0]
cmp rcx, rdi
je 0x1800cf2a8
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1800cf2a8
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1801da3b0]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1800cf2ca
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x1800cf2cc
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1800be9b0
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret