joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100006e60
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
sub rsp, 0x98
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rsi, rcx
mov qword [rax + 0x20], rdi
mov qword [rax - 0x20], r15
lea rcx, str.SHELL32.DLL
mov rbp, r8
mov r15, rdx
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rdi, rax
je 0x100007051
mov qword [rsp + 0x90], r12
lea rdx, str.SHBrowseForFolder
mov rcx, rax
mov qword [rsp + 0x88], r13
mov qword [rsp + 0x80], r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov r14, rax
je 0x100007023
mov edx, 0xc3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov r12, rax
je 0x100007023
lea rdx, str.SHGetPathFromIDList
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov r13, rax
je 0x100007023
cmp byte [0x100012180], 0
lea rbx, [0x100012180]
jne 0x100006f60
mov rdx, rbx
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, rbx
movsxd rdx, eax
add rdx, rbx
call qword [sym.imp.USER32.dll_CharPrevA]
mov rbx, rax
cmp byte [rax], 0x5c
jne 0x100006f60
lea rcx, [0x100012180]
mov rdx, rax
call qword [sym.imp.USER32.dll_CharPrevA]
cmp byte [rax], 0x3a
je 0x100006f60
mov byte [rbx], 0
mov qword [rsp + 0x48], r15
lea rax, [0x100003bf0]
xor ebx, ebx
lea r15, [0x100012180]
lea rcx, [rsp + 0x30]
mov byte [rbp], 0
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x60], r15
mov dword [rsp + 0x50], 1
mov qword [rsp + 0x58], rax
call r14
test rax, rax
mov rsi, rax
je 0x100006fcd
mov rdx, r15
mov rcx, rax
call r13
cmp byte [0x100012180], bl
je 0x100006fc7
mov rdx, r15
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
mov rcx, rsi
call r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp byte [rbp], bl
setne bl
mov eax, ebx
mov r13, qword [rsp + 0x88]
mov r12, qword [rsp + 0x90]
mov r14, qword [rsp + 0x80]
mov r15, qword [rsp + 0x78]
mov rdi, qword [rsp + 0xb8]
mov rsi, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
add rsp, 0x98
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x4c1
mov rcx, rsi
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 0x10
call fcn.100005260
xor eax, eax
jmp 0x100006fde
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x4c2
mov rcx, rsi
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 0x10
call fcn.100005260
xor eax, eax
jmp 0x100006ff6
Function at 0x100007080
Capabilities:
Extract resource via kernel32 functions
Set file attributes

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov rsi, rcx
mov ebx, 1
call fcn.100009b70
test eax, eax
je 0x10000719a
cmp dword [0x100012340], 0
mov qword [rsp + 0x58], rdi
jne 0x100007187
test byte [0x1000130f8], bl
jne 0x100007187
mov rdi, qword [0x100012bc0]
lea r8d, [rbx + 4]
mov qword [rsp + 0x48], rbp
mov edx, 0x7d3
mov rcx, rdi
mov qword [rsp + 0x30], r12
mov r12, qword [0x100011bc8]
mov qword [0x100012570], rsi
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
je 0x10000713c
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
mov rbp, rax
je 0x10000713c
lea r9, [0x1000051a0]
mov r8, r12
mov rdx, rax
mov rcx, rdi
mov qword [rsp + 0x20], 0
call qword [sym.imp.USER32.dll_DialogBoxIndirectParamA]
mov rcx, rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_FreeResource]
cmp rdi, 0xffffffffffffffff
jne 0x100007163
xor r9d, r9d
xor r8d, r8d
mov edx, 0x4fb
xor ecx, ecx
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10
call fcn.100005260
mov edi, 6
sub rdi, 6
mov r12, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x48]
je 0x100007187
dec rdi
je 0x1000071ab
cmp rdi, 0x832
jne 0x100007187
mov dword [0x100012340], ebx
mov edx, 0x80
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x38
ret
xor ebx, ebx
jmp 0x100007195
Function at 0x1000074d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub rsp, 0x58
lea rdx, [0x100001650]
mov r8d, 0xa
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
lea rdx, [0x100001650]
mov r8d, 0xa
xor ecx, ecx
mov dword [0x1000122a8], eax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov qword [0x1000122a0], rax
jne 0x100007534
add rsp, 0x58
ret
mov rcx, qword [0x100011bc8]
test rcx, rcx
je 0x10000757d
mov edx, 0x842
call qword [sym.imp.USER32.dll_GetDlgItem]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x100011bc8]
mov edx, 0x841
call qword [sym.imp.USER32.dll_GetDlgItem]
mov edx, 5
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
mov rax, qword [0x1000122a0]
mov rcx, rax
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x78], rdi
call fcn.1000058c0
test eax, eax
jne 0x1000075bf
mov rcx, qword [0x100011bc8]
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x4ba
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 0x10
call fcn.100005260
mov edi, ebx
jmp 0x1000076d0
lea rax, [0x1000122ac]
lea r9, [0x100003d80]
lea r8, [fcn.100005620]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], 1
lea rax, [0x100004060]
mov qword [rsp + 0x30], rax
lea rax, [fcn.100003fd0]
lea rdx, [0x1000041e0]
mov qword [rsp + 0x28], rax
lea rax, [0x100003e50]
lea rcx, [0x1000041c0]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x70], rsi
call fcn.100009fe0
test rax, rax
mov rsi, rax
jne 0x100007655
mov edx, dword [0x1000122ac]
mov rcx, qword [0x100011bc8]
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
add edx, 0x514
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 0x10
call fcn.100005260
mov edi, ebx
jmp 0x1000076cb
lea rax, [0x1000122a0]
xor ebx, ebx
lea r8, [0x100001555]
mov qword [rsp + 0x30], rax
lea rax, [0x1000071c0]
lea rdx, str.MEMCAB
xor r9d, r9d
mov rcx, rsi
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call fcn.10000b990
test eax, eax
mov edi, eax
je 0x1000076cb
mov rcx, rsi
call fcn.10000ac50
test eax, eax
jne 0x1000076cb
mov edx, dword [0x1000122ac]
mov rcx, qword [0x100011bc8]
xor r9d, r9d
xor r8d, r8d
add edx, 0x514
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 0x10
call fcn.100005260
mov edi, ebx
mov rsi, qword [rsp + 0x70]
mov rcx, qword [0x1000122a0]
test rcx, rcx
je 0x1000076e9
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov qword [0x1000122a0], rbx
test edi, edi
jne 0x100007713
cmp dword [0x10001233c], edi
jne 0x100007713
xor r9d, r9d
xor r8d, r8d
mov edx, 0x4f8
xor ecx, ecx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 0x10
call fcn.100005260
test byte [0x1000130f8], 1
mov rbx, qword [rsp + 0x68]
jne 0x100007742
test byte [0x100012ba4], 1
jne 0x100007742
mov rcx, qword [0x100011bc8]
movsxd r8, edi
xor r9d, r9d
mov edx, 0xfa1
call qword [sym.imp.USER32.dll_SendMessageA]
mov eax, edi
mov rdi, qword [rsp + 0x78]
add rsp, 0x58
ret
Function at 0x100007760
Capabilities:
Create directory
Delete directory
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x170
mov rax, qword [0x100011410]
mov qword [rsp + 0x160], rax
test edx, edx
mov ebx, r8d
je 0x100007828
lea rdx, [rsp + 0x50]
mov r8d, 0x104
call fcn.100004390
test eax, eax
je 0x1000078ee
lea rdx, [rsp + 0x50]
lea rcx, [0x100012350]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
test byte [0x100012ba4], 0x20
je 0x10000780e
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx r11d, word [rsp + 0x20]
test r11d, r11d
je 0x1000077f6
dec r11d
je 0x1000077ed
dec r11d
je 0x1000077e4
dec r11d
jne 0x10000780e
lea r8, [0x100001724]
jmp 0x1000077fd
lea r8, [0x10000171c]
jmp 0x1000077fd
lea r8, [0x100001714]
jmp 0x1000077fd
lea r8, [0x10000170c]
lea rcx, [0x100012350]
mov edx, 0x104
call fcn.100009a40
lea r8, [0x100001555]
lea rcx, [0x100012350]
mov edx, 0x104
call fcn.100009a40
jmp 0x100007838
mov rdx, rcx
lea rcx, [0x100012350]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rcx, [0x100012350]
call fcn.100005dc0
test eax, eax
jne 0x100007865
lea rcx, [0x100012350]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x10000789f
mov dword [0x1000130e0], 1
lea rcx, [0x100012350]
xor r8d, r8d
mov edx, ebx
call fcn.100005f40
test eax, eax
je 0x1000078ce
mov dword [0x100012170], 0
mov eax, 1
mov rcx, qword [rsp + 0x160]
call fcn.10000ea20
add rsp, 0x170
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x1000078b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x100012170], eax
jmp 0x1000078ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
mov dword [0x100012170], ecx
jmp 0x1000078ee
cmp dword [0x1000130e0], 0
je 0x1000078ee
lea rcx, [0x100012350]
mov dword [0x1000130e0], 0
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
xor eax, eax
mov rcx, qword [rsp + 0x160]
call fcn.10000ea20
add rsp, 0x170
pop rbx
ret
Function at 0x1000082e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub rsp, 0x38
lea rax, [0x100012be0]
mov ecx, 0x28
mov dword [rax], 1
add rax, 0x20
dec rcx
jne 0x1000082f0
test byte [0x1000130f8], 1
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rdi
jne 0x1000083f0
test byte [0x100012ba4], 1
jne 0x1000083f0
mov eax, dword [0x100011400]
mov rbx, qword [0x100012bc0]
lea r8d, [rcx + 5]
neg eax
mov rcx, rbx
sbb rdx, rdx
add rdx, 0x7d5
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
je 0x100008393
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
mov rdi, rax
je 0x100008393
lea r9, [0x1000080d0]
xor r8d, r8d
mov rdx, rax
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.USER32.dll_DialogBoxIndirectParamA]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_FreeResource]
cmp rbx, 0xffffffffffffffff
jne 0x1000083d0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x4fb
xor ecx, ecx
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10
call fcn.100005260
mov dword [0x100012170], 0x8007042b
xor eax, eax
mov rdi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
add rsp, 0x38
ret
test rbx, rbx
jne 0x1000083f9
mov dword [0x100012170], 0x8007042b
xor eax, eax
mov rdi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
add rsp, 0x38
ret
call fcn.1000074d0
test eax, eax
jmp 0x1000083d3
lea rcx, [0x100004e90]
call fcn.100004c10
test eax, eax
je 0x1000083df
mov rdi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov dword [0x100012170], 0
mov eax, 1
add rsp, 0x38
ret
Function at 0x100009140
Capabilities:
Get common file path
Set current directory

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x100011410]
mov qword [rsp + 0x140], rax
cmp word [0x1000130f8], 0
jne 0x10000918f
cmp dword [0x1000130e4], 0
jne 0x100009182
call fcn.100005ba0
test eax, eax
je 0x100009298
cmp word [0x1000130f8], 0
jne 0x10000918f
call fcn.100006840
test eax, eax
je 0x100009298
call fcn.1000059e0
test eax, eax
je 0x100009298
call fcn.100008be0
test eax, eax
je 0x100009298
lea rcx, [rsp + 0x30]
mov edx, 0x105
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea r8, [0x100001548]
lea rcx, [rsp + 0x30]
mov edx, 0x105
call fcn.100009a40
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rbx, rax
je 0x100009202
lea rdx, [0x1000017c0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x100009202
lea rcx, [0x100012350]
xor edx, edx
call rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [0x1000130e4], 0
jne 0x100009226
cmp dword [0x100012ba0], 0
jne 0x100009226
call fcn.1000062d0
test eax, eax
je 0x100009298
lea rcx, [0x100012350]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x1000092b0
mov dword [rsp + 0x28], eax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x4bc
xor ecx, ecx
mov dword [rsp + 0x20], 0x10
call fcn.100005260
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x100009283
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x100012170], eax
xor eax, eax
mov rcx, qword [rsp + 0x140]
call fcn.10000ea20
add rsp, 0x150
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
mov dword [0x100012170], ecx
xor eax, eax
mov rcx, qword [rsp + 0x140]
call fcn.10000ea20
add rsp, 0x150
pop rbx
ret
cmp dword [0x1000130ec], 0
jne 0x1000092c2
call fcn.1000082e0
test eax, eax
je 0x100009298
mov eax, dword [0x100013408]
test al, 0x40
jne 0x1000092e4
test al, al
js 0x1000092e4
movzx ecx, word [0x100012178]
call fcn.100002430
mov dword [0x100012284], eax
jmp 0x1000092ee
mov dword [0x100012284], 0
mov eax, dword [0x1000130e4]
test eax, eax
jne 0x10000930f
cmp dword [0x100012ba0], eax
jne 0x10000930f
call fcn.100008430
test eax, eax
je 0x100009298
mov eax, dword [0x1000130e4]
cmp word [0x1000130f8], 0
jne 0x100009322
test eax, eax
jne 0x100009322
call fcn.100006cf0
mov eax, 1
mov rcx, qword [rsp + 0x140]
call fcn.10000ea20
add rsp, 0x150
pop rbx
ret
Function at 0x100009490
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rdi, rcx
lea rsi, [0x100011c90]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [0x100011d88]
lea rdx, [rsp + 0x70]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x100009511
mov rdx, qword [rsp + 0x70]
mov qword [rsp + 0x38], 0
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x48]
mov r9, rax
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov r8, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
mov r11, qword [0x100011d88]
jmp 0x10000952d
mov r11, qword [rsp + 0x68]
lea rax, [rsp + 0x68]
add rax, 8
mov qword [0x100011d88], r11
mov qword [0x100011d28], rax
mov rax, qword [0x100011410]
mov qword [0x100011c00], r11
mov qword [0x100011d10], rdi
mov dword [0x100011bf0], 0xc0000409
mov dword [0x100011bf4], 1
mov qword [rsp + 0x50], rax
mov rax, qword [0x100011408]
xor ecx, ecx
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1000017d0]
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]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x78]
add rsp, 0x68
ret
cmp rcx, qword [0x100011410]
jne 0x10000ea39
rol rcx, 0x10
test cx, 0xffff
jne 0x10000ea35
ret
ror rcx, 0x10
jmp 0x100009490
Function at 0x1000095b0
Capabilities:
Parse pe header
Terminate process

Disassembly:
mov rax, rsp
sub rsp, 0xc8
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rdi
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
nop
cmp word [0x100000000], 0x5a4d
je 0x1000095ed
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
lea rdi, [0x100000000]
jmp 0x10000967b
movsxd rax, dword [0x10000003c]
lea rdi, [0x100000000]
add rax, rdi
cmp dword [rax], 0x4550
je 0x100009611
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x10000967b
movzx ecx, word [rax + 0x18]
cmp ecx, 0x10b
je 0x100009658
cmp ecx, 0x20b
je 0x100009630
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x10000967b
cmp dword [rax + 0x84], 0xe
ja 0x100009644
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x10000967b
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0xd0], ebx
jmp 0x10000967b
cmp dword [rax + 0x74], 0xe
ja 0x100009669
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x10000967b
xor ebx, ebx
cmp dword [rax + 0xe8], ebx
setne bl
mov dword [rsp + 0xd0], ebx
mov ecx, 2
call qword [sym.imp.msvcrt.dll___set_app_type]
mov qword [0x100013448], 0xffffffffffffffff
mov qword [0x100013450], 0xffffffffffffffff
mov rcx, qword [sym.imp.msvcrt.dll__fmode]
mov eax, dword [0x10001216c]
mov dword [rcx], eax
mov rcx, qword [sym.imp.msvcrt.dll__commode]
mov eax, dword [0x100012168]
mov dword [rcx], eax
call fcn.100009880
cmp dword [0x100011420], 0
jne 0x1000096d5
lea rcx, [fcn.100009880]
call qword [sym.imp.msvcrt.dll___setusermatherr]
lea rdx, [0x100001508]
lea rcx, [0x100001500]
call sub.msvcrt.dll__initterm
mov r11d, dword [0x100012164]
mov dword [rsp + 0xd8], r11d
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x20], rax
mov r9d, dword [0x100012160]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x3c]
call qword [sym.imp.msvcrt.dll___getmainargs]
lea rdx, [0x1000014f8]
lea rcx, [0x1000014e8]
call sub.msvcrt.dll__initterm
mov r11, qword [sym.imp.msvcrt.dll__acmdln]
mov r8, qword [r11]
mov qword [rsp + 0x30], r8
cmp byte [r8], 0x22
jne 0x100009776
nop
nop
inc r8
mov qword [rsp + 0x30], r8
movzx eax, byte [r8]
test al, al
je 0x100009766
cmp al, 0x22
je 0x100009766
jmp 0x100009750
cmp byte [r8], 0x22
jne 0x100009786
inc r8
mov qword [rsp + 0x30], r8
jmp 0x100009786
cmp byte [r8], 0x20
jbe 0x100009786
inc r8
mov qword [rsp + 0x30], r8
jmp 0x100009776
movzx eax, byte [r8]
test al, al
je 0x10000979c
cmp al, 0x20
ja 0x10000979c
inc r8
mov qword [rsp + 0x30], r8
jmp 0x100009786
test byte [rsp + 0x8c], 1
je 0x1000097b1
movzx r9d, word [rsp + 0x90]
jmp 0x1000097b7
mov r9d, 0xa
xor edx, edx
mov rcx, rdi
call fcn.100009350
mov edi, eax
mov dword [rsp + 0x38], eax
test ebx, ebx
jne 0x1000097d3
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
call qword [sym.imp.msvcrt.dll__cexit]
jmp 0x1000097f7
mov eax, edi
jmp 0x100009800
mov rbx, qword [rsp + 0xe0]
mov rdi, qword [rsp + 0xe8]
add rsp, 0xc8
ret

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

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100009b86
xor eax, eax
add rsp, 0x28
ret
shr eax, 4
not eax
and eax, 1
add rsp, 0x28
ret
Function at 0x100009d30
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
sub rsp, 0x118
mov rax, qword [0x100011410]
mov qword [rsp + 0x100], rax
mov eax, dword [0x10001142c]
mov qword [rsp + 0x138], rdi
mov dword [rsp + 0x30], 0xc
cmp eax, 0xfffffffe
jne 0x100009eb8
lea rcx, [rsp + 0x50]
xor edi, edi
mov dword [rsp + 0x50], 0x94
mov dword [0x10001142c], edi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x100009eb2
cmp dword [rsp + 0x60], 1
jne 0x100009eb2
cmp dword [rsp + 0x54], 4
jne 0x100009eb2
cmp dword [rsp + 0x58], 0xa
jae 0x100009eb2
lea ecx, [rdi + 0x4a]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x100009eb2
lea rax, [rsp + 0x38]
lea rdx, [0x1000017e0]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100009eb2
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xf0]
lea rdx, [0x100001555]
xor r8d, r8d
mov qword [rsp + 0x130], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x38]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
mov rbx, qword [rsp + 0x130]
jne 0x100009eb2
lea rcx, [rsp + 0xf0]
movzx eax, byte [rcx]
cmp al, 0x30
jl 0x100009e64
cmp al, 0x39
jg 0x100009e64
add edi, 0xfffffffd
movsx eax, al
shl edi, 4
add edi, eax
call qword [sym.imp.USER32.dll_CharNextA]
mov rcx, rax
jmp 0x100009e43
cmp al, 0x61
jl 0x100009e6a
add al, 0xe0
movsx edx, al
sub edx, 0x37
lea eax, [rdx - 0xa]
cmp eax, 5
ja 0x100009e88
shl edi, 4
add edi, edx
call qword [sym.imp.USER32.dll_CharNextA]
mov rcx, rax
jmp 0x100009e43
lea rax, [rsp + 0xf0]
cmp rcx, rax
je 0x100009eb2
and edi, 0x3ff
cmp edi, 1
je 0x100009ea5
cmp edi, 0xd
jne 0x100009eb2
mov eax, 1
mov dword [0x10001142c], eax
jmp 0x100009eb8
mov eax, dword [0x10001142c]
mov rdi, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x100]
call fcn.10000ea20
add rsp, 0x118
ret

Function at 0x100009ee0
Capabilities:
Get disk size

Disassembly:
sub rsp, 0x38
xor eax, eax
cmp byte [rcx], al
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x58], eax
je 0x100009f3b
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x100009f22
add rsp, 0x38
ret
mov ecx, dword [rsp + 0x40]
mov edx, dword [rsp + 0x50]
mov r8d, 0x400
imul ecx, dword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_MulDiv]
add rsp, 0x38
ret
Function at 0x100009f50
Capabilities:
Get disk size

Disassembly:
sub rsp, 0x48
xor eax, eax
mov qword [rsp + 0x68], rdi
mov rdi, rdx
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x3c], eax
lea rax, [rsp + 0x3c]
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x34]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x100009f9b
mov rdi, qword [rsp + 0x68]
add rsp, 0x48
ret
mov edx, dword [rsp + 0x38]
mov qword [rsp + 0x60], rbx
mov ebx, dword [rsp + 0x30]
imul ebx, dword [rsp + 0x34]
mov r8d, 0x400
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_MulDiv]
test rdi, rdi
je 0x100009fc2
mov dword [rdi], ebx
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x48
ret

Function at 0x10000be20
Capabilities:
Encode data using xor

Disassembly:
mov r9, rcx
mov ecx, edx
mov r10d, r8d
shr ecx, 2
test ecx, ecx
jle 0x10000be62
nop
movzx eax, byte [r9 + 1]
movzx r8d, byte [r9]
dec ecx
shl eax, 8
add r9, 4
or r8d, eax
movzx eax, byte [r9 - 2]
shl eax, 0x10
or r8d, eax
movzx eax, byte [r9 - 1]
shl eax, 0x18
or r8d, eax
xor r10d, r8d
test ecx, ecx
jg 0x10000be30
and edx, 3
xor eax, eax
dec edx
je 0x10000be89
dec edx
je 0x10000be7d
dec edx
jne 0x10000be8f
movzx eax, byte [r9]
shl eax, 0x10
inc r9
movzx ecx, byte [r9]
shl ecx, 8
or eax, ecx
inc r9
movzx ecx, byte [r9]
or eax, ecx
xor eax, r10d
ret