joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180032800
Capabilities:
Hash data with crc32

Disassembly:
mov rax, qword [0x180077b00]
mov rdx, qword [rax + 0x4b10]
cmp ecx, 0xffffffff
jne 0x18003281a
cmp dword [rdx + 0x74], ecx
cmovne ecx, dword [rdx + 0x74]
cmp ecx, dword [rdx + 0x6c]
mov eax, 0xffffffff
cmove ecx, eax
test byte [rdx + 4], 7
je 0x180032897
mov r10d, dword [rdx]
lea r8, [0x180063b79]
movzx eax, word [rdx + 0x78]
lea r11, [0x18005f490]
not r10d
mov word [rdx + 0x210], cx
mov ecx, r10d
mov byte [rdx + 0x227], 1
mov word [rdx + 0x7a], ax
mov r9b, 0x23
nop dword [rax + rax]
cmp r9b, 0x23
jne 0x180032873
cmp byte [r8], r9b
jne 0x180032873
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x180032860
not ecx
jmp fcn.180014af0
ret
Function at 0x1800462f0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x180046318
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x18004633e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x180046340
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x180046399
test ecx, ecx
jle 0x180046379
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x180046399
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x180046399
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x1800463c0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x1800463e2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x1800463f8
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x180046414
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180046416
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180046452
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x1800464ee
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x18004648d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x1800464ce
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x1800464ee
cmp rbx, rax
ja 0x1800464a0
test rbx, rbx
je 0x1800464ee
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x180046920
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x180074020]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x18004694d
xor eax, eax
jmp 0x180046ab9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x180046987
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x180046987
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x180046ab9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x180046aac
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1800469ca
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x1800469f5
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x180046ab1
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x180046a64
sub eax, 1
je 0x180046a64
cmp eax, 2
jne 0x180046aac
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x180046ab1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x180046a92
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x180046aac
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x180046ab1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180058c40
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x180047ff0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x180074020]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1800480c3
cmp byte [rcx + 0x71], 0
je 0x1800480c3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1800480bf
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x180048084
sub eax, 1
je 0x180048088
cmp eax, 2
jne 0x1800480bf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180058c40
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1800480b6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1800480bf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x18004806c
xor al, al
jmp 0x18004806c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180058c40
add rsp, 0x60
pop rbx
ret

Function at 0x180059cb0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x180059d34
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x18005d890]
cmp byte [rcx + rax], 0
je 0x180059d34
dec r8
sub rdx, 1
jne 0x180059d1a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x10001df90
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
lea r8, [0x10001dcd0]
xor r9d, r9d
and qword [rsp + 0x28], rbx
and dword [rsp + 0x20], ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x100036170], rax
test rax, rax
jne 0x10001e032
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [0x100001b80]
lea rcx, [0x100001ba0]
movzx ebx, ax
mov edx, 0x130
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, 0x80004005
test ebx, ebx
cmovns ebx, eax
call fcn.100026818
test ebx, ebx
jns 0x10001e032
and qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov ecx, ebx
call fcn.100021e1c
mov r11, qword [rsp + 0x40]
lea r8, [0x100001b60]
lea rcx, [0x100001ba0]
mov r9d, ebx
mov edx, 0x134
mov qword [rsp + 0x20], r11
call fcn.100026818
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x1000203f4
Capabilities:
Shutdown system

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x30
mov eax, dword [0x100036280]
mov ebx, dword [0x1000361c0]
xor esi, esi
xor edi, edi
test eax, eax
je 0x10002042e
cmp dword [0x10003627c], esi
mov edi, 0xbc9
lea ecx, [rdi - 7]
cmovge edi, ecx
mov r9d, dword [0x10003624c]
test r9d, r9d
jne 0x1000205d3
test eax, eax
je 0x1000205d3
lea r12d, [r9 + 1]
cmp ebx, r12d
je 0x1000205d3
lea rcx, [0x100002f80]
call fcn.10002235c
mov esi, eax
test eax, eax
jns 0x100020473
lea r8, [0x100002fa8]
mov edx, 0x5ab
jmp 0x1000204eb
test ebx, ebx
jne 0x100020483
cmp dword [0x1000361b4], ebx
lea eax, [rbx + 4]
cmove ebx, eax
mov r8d, 2
xor edx, edx
xor ecx, ecx
sub ebx, r8d
je 0x10002057b
sub ebx, r12d
je 0x10002054a
cmp ebx, r12d
je 0x1000204fc
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], 0x80020011
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownExW]
test eax, eax
jne 0x100020508
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x5e4
movzx esi, ax
lea r8, [0x100002fd8]
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
lea rcx, [0x100002f58]
call fcn.100026818
jmp 0x1000205f3
mov r9d, 0x80020011
call qword [sym.imp.SHELL32.dll_RestartDialogEx]
mov r9, qword [0x100036208]
lea r8, [0x100003000]
lea rcx, [0x100002f58]
mov edx, 0x5e9
call fcn.100026818
cmp dword [0x1000361ac], 0
mov rbx, qword [0x100036208]
je 0x1000205ac
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rbx
mov rdx, rax
call fcn.100026b20
jmp 0x1000205bd
mov r8d, dword [0x100036238]
xor r9d, r9d
mov dword [rsp + 0x28], 0x80020011
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownExW]
test eax, eax
jne 0x100020508
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x5cd
jmp 0x1000204cc
mov r9d, r12d
xor r8d, r8d
mov dword [rsp + 0x28], 0x80020011
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownExW]
test eax, eax
jne 0x100020508
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x5bf
jmp 0x1000204cc
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rbx
mov rdx, rax
call fcn.1000269e4
cmp dword [0x10003627c], 0
mov edi, 0xbca
mov eax, 0x669
cmovge edi, eax
jmp 0x1000205f3
lea r8, [0x100002f00]
lea rcx, [0x100002f58]
mov edx, 0x5a6
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], eax
call fcn.100026818
test esi, esi
jns 0x10002062e
and qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov ecx, esi
call fcn.100021e1c
mov r11, qword [rsp + 0x40]
lea r8, [0x100001b60]
lea rcx, [0x100002f58]
mov r9d, esi
mov edx, 0x5ff
mov qword [rsp + 0x20], r11
call fcn.100026818
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov eax, edi
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
Function at 0x100021940
Capabilities:
Get token membership

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x100036110]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor esi, esi
lea rax, [r11 - 0x30]
mov rdi, rcx
mov qword [r11 - 0x48], rax
mov dword [rsp + 0x48], esi
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x30], esi
lea r8d, [rsi + 0x20]
lea rcx, [r11 - 0x20]
mov r9d, 0x220
mov dl, 2
mov dword [rsp + 0x28], esi
mov ebx, esi
mov byte [rsp + 0x78], sil
mov dword [rsp + 0x20], esi
mov byte [rsp + 0x79], sil
mov byte [rsp + 0x7a], sil
mov byte [rsp + 0x7b], sil
mov byte [rsp + 0x7c], sil
mov byte [rsp + 0x7d], 5
mov qword [r11 - 0x30], rsi
mov dword [rsp + 0x60], esi
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, esi
jne 0x1000219e3
mov qword [rsp + 0x68], rsi
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [0x100003ae0]
lea edx, [rsi + 0x3d]
jmp 0x100021a0b
mov rdx, qword [rsp + 0x68]
lea r8, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
cmp eax, esi
jne 0x100021a31
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [0x100003b40]
mov edx, 0x42
movzx ebx, ax
lea rcx, [0x100003b20]
or ebx, 0x80070000
cmp eax, esi
cmovle ebx, eax
mov eax, 0x80004005
cmp ebx, esi
cmovge ebx, eax
call fcn.100026818
jmp 0x100021a37
mov eax, dword [rsp + 0x60]
mov dword [rdi], eax
mov rcx, qword [rsp + 0x68]
cmp rcx, rsi
je 0x100021a47
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp ebx, esi
jge 0x100021a81
lea rdx, [rsp + 0x70]
mov ecx, ebx
mov qword [rsp + 0x70], rsi
call fcn.100021e1c
mov r11, qword [rsp + 0x70]
lea r8, [0x100001b60]
lea rcx, [0x100003b20]
mov r9d, ebx
mov edx, 0x4e
mov qword [rsp + 0x20], r11
call fcn.100026818
mov eax, ebx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1000336c0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x100022b70
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
cmp dword [rcx + 0x64], edi
jne 0x100022be3
mov rcx, qword [rcx + 0x28]
cmp rcx, rdi
je 0x100022b97
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rbx + 0x28], rdi
mov rcx, qword [rbx + 0x30]
cmp rcx, rdi
je 0x100022baa
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rbx + 0x30], rdi
mov rcx, qword [rbx + 0x38]
cmp rcx, rdi
je 0x100022bbd
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rbx + 0x38], rdi
mov rcx, qword [rbx + 0x40]
cmp rcx, rdi
je 0x100022bd0
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rbx + 0x40], rdi
mov rcx, qword [rbx + 0x48]
cmp rcx, rdi
je 0x100022be3
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rbx + 0x48], rdi
cmp dword [rbx + 0x128], edi
je 0x100022bf8
lea rcx, [rbx + 0x100]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
cmp dword [rbx + 0xec], edi
jne 0x100022c10
call qword [sym.imp.ole32.dll_CoUninitialize]
mov dword [rbx + 0xec], 1
mov rcx, qword [rbx + 0x90]
cmp rcx, rdi
je 0x100022c29
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx + 0x90], rdi
mov rcx, qword [rbx + 0xc8]
cmp rcx, rdi
je 0x100022c41
call fcn.10003379e
mov qword [rbx + 0xc8], rdi
mov rcx, qword [rbx + 0xb8]
lea rax, [rbx + 0xc0]
cmp rcx, rax
je 0x100022c65
cmp rcx, rdi
je 0x100022c65
call fcn.10003379e
mov qword [rbx + 0xb8], rdi
mov rcx, rbx
call fcn.100022d34
lea r8, [0x100001930]
lea rdx, [0x1000018d0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyValueW]
mov rcx, qword [rbx + 0x18]
cmp rcx, rdi
je 0x100022cb5
call qword [sym.imp.KERNEL32.dll_SetEvent]
cmp eax, edi
jne 0x100022cb5
lea r8, [0x1000042d0]
lea rcx, [0x100004308]
mov edx, 0x118
call fcn.100026818
jmp 0x100022ce0
mov rcx, qword [rbx + 0x20]
cmp rcx, rdi
je 0x100022cc7
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x98]
cmp rcx, rdi
je 0x100022ce0
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx + 0x98], rdi
mov rcx, qword [rbx + 0x18]
cmp rcx, rdi
je 0x100022cf3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x18], rdi
mov rcx, qword [0x100036a00]
cmp rcx, rdi
je 0x100022d05
call qword [sym.imp.ADVAPI32.dll_EventUnregister]
mov rcx, qword [rbx + 0xf0]
cmp rcx, 0xffffffffffffffff
je 0x100022d20
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [rbx + 0xf0], 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x100025d44
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x100036110]
xor rax, rsp
mov qword [rsp + 0x150], rax
and qword [rcx], 0
mov rsi, rcx
mov rcx, 0xffffffffffffffff
mov ebx, 0x104
mov eax, 2
mov dword [rsp + 0x30], 0x5c3a63
mul rbx
cmovo rax, rcx
mov rcx, rax
call fcn.100033792
mov rdi, rax
test rax, rax
jne 0x100025dc1
lea r8, [0x100005af0]
lea rcx, [0x100005b18]
mov edx, 0x1d2
call fcn.100026818
mov ebx, 0x8007000e
jmp 0x100025e59
xor edx, edx
mov r8d, 0x208
mov rcx, rax
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x40]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x100025e17
cmp eax, ebx
jae 0x100025e17
mov al, byte [rsp + 0x40]
lea rcx, [rsp + 0x30]
mov r8, rbx
mov rdx, rdi
mov byte [rsp + 0x30], al
call fcn.100025968
mov ebx, eax
test eax, eax
jns 0x100025e12
lea r8, [0x100002010]
mov edx, 0x1e8
jmp 0x100025e41
mov qword [rsi], rdi
jmp 0x100025e55
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [0x100005b40]
mov edx, 0x1e2
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, 0x80004005
test ebx, ebx
cmovns ebx, eax
lea rcx, [0x100005b18]
call fcn.100026818
mov rcx, rdi
call fcn.10003379e
test ebx, ebx
jns 0x100025e90
and qword [rsp + 0x38], 0
lea rdx, [rsp + 0x38]
mov ecx, ebx
call fcn.100021e1c
mov r11, qword [rsp + 0x38]
lea r8, [0x100001b60]
lea rcx, [0x100005b18]
mov r9d, ebx
mov edx, 0x1f1
mov qword [rsp + 0x20], r11
call fcn.100026818
mov eax, ebx
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1000336c0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1000263dc
Capabilities:
Create directory

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x70
and qword [rax + 0x10], 0
and qword [rax - 0x48], 0
and qword [rax - 0x40], 0
and qword [rax - 0x38], 0
and qword [rax - 0x30], 0
and qword [rax - 0x28], 0
and qword [rax - 0x20], 0
mov rdi, rcx
lea rdx, [rax + 0x10]
lea rcx, [rax - 0x48]
mov dword [rax - 0x18], 0x100
call fcn.10002502c
mov ebx, eax
test eax, eax
jns 0x100026442
lea r8, [0x100005938]
lea rcx, [0x100005dc0]
mov edx, 0x2a3
call fcn.100026818
jmp 0x1000264a1
mov rdx, qword [rsp + 0x88]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1000264a1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1000264a1
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [0x100005a20]
lea rcx, [0x100005dc0]
movzx ebx, ax
mov r9, rdi
mov edx, 0x2aa
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, 0x80004005
test ebx, ebx
cmovns ebx, eax
mov dword [rsp + 0x20], ebx
call fcn.100026818
test ebx, ebx
jns 0x1000264e5
and qword [rsp + 0x88], 0
lea rdx, [rsp + 0x88]
mov ecx, ebx
call fcn.100021e1c
mov r11, qword [rsp + 0x88]
lea r8, [0x100001b60]
lea rcx, [0x100005dc0]
mov r9d, ebx
mov edx, 0x2ae
mov qword [rsp + 0x20], r11
call fcn.100026818
lea rcx, [rsp + 0x30]
call fcn.1000258c8
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
Function at 0x1000280a8
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x840
mov rax, qword [0x100036110]
xor rax, rsp
mov qword [rsp + 0x830], rax
mov ebx, ecx
mov dil, dl
mov ebp, 0x3ff
lea rcx, [rsp + 0x30]
mov rdx, rbp
call qword [sym.imp.msvcrt.dll__vsnprintf]
xor esi, esi
cmp eax, esi
jl 0x10002814b
movsxd rcx, eax
cmp rcx, rbp
ja 0x10002814b
movzx eax, byte [rsp + 0x42f]
cmove eax, esi
mov byte [rsp + 0x42f], al
cmp dil, sil
je 0x100028140
mov ecx, ebx
call fcn.100028014
lea r9, [rsp + 0x30]
lea r8, [0x1000064e8]
mov qword [rsp + 0x28], rax
lea edx, [rbp + 1]
lea rcx, [rsp + 0x430]
mov dword [rsp + 0x20], ebx
call fcn.100026508
cmp eax, esi
jl 0x10002814b
lea rcx, [rsp + 0x430]
jmp 0x100028145
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x830]
xor rcx, rsp
call fcn.1000336c0
mov rbx, qword [rsp + 0x868]
add rsp, 0x840
pop rdi
pop rsi
pop rbp
ret

Function at 0x10003391c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x100033969
cmp rcx, 0xffffffffffffffff
je 0x100033969
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x100033961
cmp dword [rcx + 0x3c], edx
jl 0x100033961
cmp dword [rcx + 0x3c], 0x10000000
jae 0x100033961
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x100033969
mov rax, rdx
add rsp, 0x18
ret
Function at 0x416020
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4161c6
sub rsp, 0x50
mov qword [rsp + 0x48], rbp
lea rbp, [rsp + 0x48]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.004323e0
xorps xmm15, xmm15
mov r14, qword [0x00658a68]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x41608b
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x4160a0
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
nop
test rbx, rbx
jbe 0x4160c5
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x4160d9
cmp rbx, 0x1000
jae 0x416095
nop dword [rax]
jmp 0x416149
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
nop
cmp rbx, 0x1000
jae 0x4160ed
xor edx, edx
jmp 0x416140
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.004323e0
xorps xmm15, xmm15
mov r14, qword [0x00658a68]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
nop dword [rax]
test dl, dl
jne 0x4160cf
jmp 0x4160b4
call fcn.00463f20
xorps xmm15, xmm15
mov r14, qword [0x00658a68]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.00436ac0
lea rax, [0x004fe694]
mov ebx, 0x18
call fcn.004373c0
mov rax, qword [rsp + 0x38]
call fcn.004370c0
lea rax, [0x004fe754]
mov ebx, 0x19
call fcn.004373c0
mov rax, qword [rsp + 0x30]
nop
call fcn.004370c0
call fcn.00436d20
call fcn.00436b40
lea rax, [0x00501363]
mov ebx, 0x21
nop dword [rax + rax]
call fcn.00435180
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00460360
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
nop
jmp fcn.00416020