joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000600b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov r12, rcx
mov rbp, rcx
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r12
mov r14, rdx
repne scasw ax, word [rdi]
mov eax, 0x40000000
not rcx
dec rcx
cmp ecx, eax
mov rsi, rcx
cmova esi, eax
xor r13d, r13d
cmp esi, 1
jb 0x1000601ce
cmp word [r12], 0x7c
jne 0x1000601ce
lea rcx, [r12 + 2]
lea r8d, [r13 + 0xa]
xor edx, edx
call qword [sym.imp.msvcrt.dll_wcstoul]
mov ebx, eax
cmp eax, r13d
je 0x1000601ce
shr eax, 4
xor ecx, ecx
inc eax
movzx r13d, ax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r8, r13
mov rcx, rax
xor eax, eax
lea edx, [rax + 6]
movzx r9d, ax
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
mov rdi, rax
xor eax, eax
cmp rdi, rax
jne 0x100060184
call qword [sym.imp.KERNEL32.dll_GetThreadLocale]
xor ecx, ecx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx r9d, di
mov r8, r13
mov edx, 6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
xor r13d, r13d
mov rdi, rax
cmp rax, r13
je 0x1000601ce
jmp 0x100060187
xor r13d, r13d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
cmp rax, r13
je 0x1000601ce
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rax
cmp rax, r13
je 0x1000601ce
and ebx, 0xf
jbe 0x1000601c7
mov edi, ebx
movzx ecx, word [rdx]
inc ecx
sub rdi, 1
lea rdx, [rdx + rcx*2]
jne 0x1000601b8
movzx esi, word [rdx]
lea r12, [rdx + 2]
lea ecx, [rsi + 1]
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1000910f4
mov rbx, rax
cmp rax, r13
jne 0x1000601fb
xor eax, eax
jmp 0x1000602a2
lea rdi, [rsi + rsi]
mov rdx, r12
mov rcx, rax
mov r8, rdi
call sub.msvcrt.dll_memcpy
mov word [rdi + rbx], r13w
or rsi, 0xffffffffffffffff
xor eax, eax
mov rcx, rsi
mov rdi, rbx
mov qword [rsp + 0x70], r13
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
jne 0x10006026a
mov rcx, rbx
call sub.msvcrt.dll_free
xor eax, eax
mov rcx, rsi
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
and ecx, ecx
mov edi, ecx
lea rdx, [rcx + rcx]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
mov qword [rsp + 0x70], rax
call sub.msvcrt.dll_wcscpy_s
jmp 0x10006029d
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], r14
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov ecx, 0x500
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov rcx, rbx
call sub.msvcrt.dll_free
mov rax, qword [rsp + 0x70]
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x100063938
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x48
test rcx, rcx
jne 0x100063978
lea rax, [0x100021088]
mov byte [rsp + 0x30], 1
lea r8d, [rcx + 1]
mov qword [rsp + 0x28], rax
lea rax, [0x1000210a8]
xor edx, edx
mov r9d, 0xfffe
mov qword [rsp + 0x20], rax
call fcn.100065a40
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
add rsp, 0x48
ret

Function at 0x100063e00
Capabilities:
Get session user name

Disassembly:
mov rax, rsp
mov dword [rax + 0x10], edx
mov qword [rax + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rdi, rcx
and dword [rax + 0x18], 0
lea rdx, [0x100014db8]
lea rcx, [rax - 0x30]
call fcn.10005fa08
nop
mov esi, 0x100
mov dword [rsp + 0x68], esi
mov eax, 2
mul rsi
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1000910f4
mov rbx, rax
test rax, rax
jne 0x100063e82
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.10005f994
mov dword [rsp + 0x70], 1
mov rcx, qword [rsp + 0x38]
call sub.msvcrt.dll_free
mov rax, rdi
jmp 0x100063ef4
lea r8, [rsp + 0x68]
mov rdx, rax
mov ecx, 3
call sub.Secur32.dll_GetUserNameExW
test al, al
je 0x100063ea7
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.10005fc4c
jmp 0x100063eca
mov dword [rsp + 0x68], esi
lea rdx, [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x100063eca
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.10005fc4c
mov rcx, rbx
call sub.msvcrt.dll_free
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.10005f994
mov dword [rsp + 0x70], 1
mov rcx, qword [rsp + 0x38]
call sub.msvcrt.dll_free
mov rax, rdi
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret

Function at 0x100064118
Capabilities:
Check if file exists
Create process on windows
Query environment variable

Disassembly:
push rbx
sub rsp, 0x290
mov rax, qword [0x1000a1140]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor ebx, ebx
cmp byte [0x1000acbbe], bl
jne 0x100064144
xor al, al
jmp 0x1000641c6
lea rcx, [rsp + 0x72]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x70], bx
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x30]
lea rdx, [0x1000210c8]
mov r8d, 0x3e
call sub.msvcrt.dll_memcpy
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x30]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, ebx
je 0x10006413d
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, ebx
je 0x10006413d
lea r8, [rsp + 0x70]
lea rdx, [0x1000151c0]
xor r9d, r9d
xor ecx, ecx
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rbx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp rax, 0x20
setg al
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1000915c0
add rsp, 0x290
pop rbx
ret
Function at 0x1000646a8
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
and dword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov r8d, 1
cmp dword [rsp + 0x40], r8d
mov rbx, rax
jle 0x100064707
lea rdx, [rax + 8]
mov rcx, qword [rdx]
cmp word [rcx], 0x2f
je 0x1000646f9
cmp word [rcx], 0x2d
jne 0x100064719
inc r8d
add rdx, 8
cmp r8d, dword [rsp + 0x40]
jl 0x1000646ea
xor al, al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
test rdi, rdi
je 0x100064730
movsxd r8, r8d
mov rdx, rsi
mov rcx, rdi
mov r8, qword [rax + r8*8]
call sub.msvcrt.dll_wcscpy_s
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov al, 1
jmp 0x100064709

Function at 0x100065788
Capabilities:
Check os version

Disassembly:
sub rsp, 0x168
mov rax, qword [0x1000a1140]
xor rax, rsp
mov qword [rsp + 0x150], rax
test rcx, rcx
jne 0x1000657ad
xor al, al
jmp 0x1000658d5
cmp qword [0x1000ace08], 0
mov qword [0x1000acde0], rcx
mov qword [0x1000acdd8], rdx
mov byte [0x1000acc3a], r8b
jne 0x1000658d3
lea rcx, [0x100021440]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x1000ace08], rax
test rax, rax
je 0x10006588e
lea rdx, [0x100021458]
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1000ace08]
lea rdx, [0x100021468]
mov qword [0x1000acde8], rax
call sub.KERNEL32.dll_GetProcAddress
cmp qword [0x1000acde8], 0
mov qword [0x1000acdf8], rax
jne 0x10006582c
test rax, rax
je 0x10006588e
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10006588e
cmp dword [rsp + 0x34], 6
jb 0x10006588e
cmp dword [rsp + 0x38], 0
jne 0x10006588e
cmp dword [rsp + 0x40], 2
jne 0x10006588e
cmp dword [rsp + 0x3c], 0x147c
jae 0x10006588e
mov rax, qword [0x1000acde8]
and qword [0x1000acde8], 0
mov qword [0x1000acdf0], rax
mov rax, qword [0x1000acdf8]
and qword [0x1000acdf8], 0
mov qword [0x1000ace00], rax
and dword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetProcessDefaultLayout]
mov r11b, byte [rsp + 0x20]
mov edx, 0xbb8
and r11b, 1
mov ecx, 0x40
mov dword [0x1000acce4], edx
mov byte [0x1000aa58d], r11b
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
and qword [0x1000aa618], 0
mov qword [0x1000ace90], rax
mov al, 1
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1000915c0
add rsp, 0x168
ret
Function at 0x10006a11c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x1000a1140]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov bpl, r8b
mov edi, edx
mov rsi, rcx
lea rbx, [rsp + 0x60]
cmp edx, 0x40
ja 0x10006a1c9
je 0x10006a1bd
mov eax, edx
sub eax, 1
je 0x10006a1b1
sub eax, 1
je 0x10006a1a5
sub eax, 2
je 0x10006a199
sub eax, 4
je 0x10006a18d
sub eax, 8
je 0x10006a181
cmp eax, 0x10
jne 0x10006a1f5
lea rbx, [0x1000219b0]
jmp 0x10006a25c
lea rbx, [0x100021988]
jmp 0x10006a25c
lea rbx, [0x100021968]
jmp 0x10006a25c
lea rbx, [0x100021998]
jmp 0x10006a25c
lea rbx, [0x100021950]
jmp 0x10006a25c
lea rbx, [0x100021940]
jmp 0x10006a25c
lea rbx, [0x1000219d8]
jmp 0x10006a25c
cmp edx, 0x80
je 0x10006a255
cmp edx, 0x100
je 0x10006a24c
cmp edx, 0x200
je 0x10006a243
cmp edx, 0x400
je 0x10006a23a
cmp edx, 0x800
je 0x10006a231
mov rax, qword [0x1000aa640]
test rax, rax
je 0x10006a212
mov ecx, edx
call rax
mov rbx, rax
test rax, rax
jne 0x10006a25c
lea rbx, [rsp + 0x60]
or r8, 0xffffffffffffffff
lea r9, [0x100021a48]
lea rcx, [rsp + 0x60]
lea edx, [r8 + 0x11]
mov dword [rsp + 0x20], edi
call sub.msvcrt.dll__snwprintf_s
jmp 0x10006a25c
lea rbx, [0x100021a38]
jmp 0x10006a25c
lea rbx, [0x100021a28]
jmp 0x10006a25c
lea rbx, [0x100021a10]
jmp 0x10006a25c
lea rbx, [0x100021a00]
jmp 0x10006a25c
lea rbx, [0x1000219e8]
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
lea rdi, [rcx - 1]
test bpl, bpl
je 0x10006a318
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 2
je 0x10006a2fc
and qword [rsp + 0x30], 0
and qword [rsp + 0x50], 0
lea r9, [rsp + 0x48]
lea rcx, [0x100021930]
mov edx, 0xc0000000
mov r8d, 2
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x48], 0x18
mov dword [rsp + 0x58], 1
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
test rax, rax
je 0x10006a333
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, edi
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10006a333
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, edi
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x10006a333
and qword [rsp + 0x20], rax
lea r8d, [rcx + rcx - 2]
lea r9, [rsp + 0x40]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1000915c0
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
Function at 0x10006a394
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x440
mov rax, qword [0x1000a1140]
xor rax, rsp
mov qword [rsp + 0x430], rax
xor eax, eax
or rbx, 0xffffffffffffffff
mov edx, 0x1ff
mov word [rsp + 0x30], ax
lea rdi, [rsp + 0x30]
mov qword [rsp + 0x20], r9
mov r9, r8
mov rcx, rbx
mov r8, rbx
repne scasw ax, word [rdi]
not rcx
dec rcx
mov eax, ecx
sub edx, ecx
lea rcx, [rsp + rax*2 + 0x30]
call sub.msvcrt.dll__vsnwprintf_s
lea r8, [0x10001549c]
lea rcx, [rsp + 0x30]
mov r9, rbx
mov edx, 0x200
call sub.msvcrt.dll_wcsncat_s
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.1000915c0
mov rbx, qword [rsp + 0x450]
add rsp, 0x440
pop rdi
ret

Function at 0x10006b428
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rcx, qword [0x1000ad0c8]
test rcx, rcx
jne 0x10006b44e
call fcn.10006b4dc
test eax, eax
je 0x10006b475
mov rcx, qword [0x1000ad0c8]
call qword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
test rax, rax
jne 0x10006b4c9
mov edx, 0x1000
lea r9d, [rax + 0x40]
xor ecx, ecx
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x10006b479
xor eax, eax
jmp 0x10006b4c9
mov eax, dword [rax]
mov rcx, qword [0x1000ad0c8]
call qword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
mov rdi, rax
test rax, rax
je 0x10006b4a6
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, rdi
jmp 0x10006b4c9
lea rdi, [rbx + 0xfe0]
mov rcx, qword [0x1000ad0c8]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add rbx, 0x20
cmp rbx, rdi
jb 0x10006b4ad
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x100073a90
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
cmp qword [0x1000ae298], 0
mov esi, dword [0x1000ad0a4]
mov edi, ecx
mov dword [0x1000ad0a4], ecx
jne 0x100073b2e
cmp qword [0x1000ae2a0], 0
jne 0x100073b2e
lea rcx, [0x100021ee8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x100073af4
lea rcx, [0x100021ee8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x100073af4
lea rdx, [0x100021ef8]
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x1000ae298], rax
lea rcx, [0x100021f08]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x100073b2e
lea rcx, [0x100021f08]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x100073b2e
lea rdx, [0x100021ef8]
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x1000ae2a0], rax
mov eax, dword [0x1000a9e34]
cmp eax, 0xffffffff
jne 0x100073bdd
and qword [rsp + 0x60], 0
lea rax, [rsp + 0x60]
lea rdx, [0x100021ec8]
mov r9d, 0x2000000
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x50], 4
call qword [sym.imp.KERNEL32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100073bc6
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [0x1000a9e34]
lea rdx, [0x100021f18]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x60]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_RegCloseKey]
test ebx, ebx
jne 0x100073bc6
cmp dword [rsp + 0x58], 4
jne 0x100073bc6
mov eax, dword [0x1000a9e34]
jmp 0x100073bce
xor eax, eax
mov dword [0x1000a9e34], eax
test eax, eax
je 0x100073be1
mov eax, 1
mov dword [0x1000a9e34], eax
test eax, eax
jne 0x100073c01
mov rax, qword [0x1000ae298]
test rax, rax
je 0x100073bf1
mov ecx, edi
call rax
mov rax, qword [0x1000ae2a0]
test rax, rax
je 0x100073c01
mov ecx, edi
call rax
mov eax, esi
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret

Function at 0x100073c14
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [0x1000ae2bc], 0
jne 0x100073cd0
lea rdx, [0x100003450]
xor ecx, ecx
mov dword [0x1000ae2bc], 1
xor esi, esi
call fcn.100073a6c
lea rdx, [0x100003450]
xor ecx, ecx
mov rdi, rax
call fcn.100073a6c
mov rbx, rax
test rdi, rdi
je 0x100073c6d
test rax, rax
je 0x100073c6d
cmp rdi, rax
jne 0x100073c72
mov esi, 1
test rdi, rdi
je 0x100073c7f
mov rcx, rdi
call sub.msvcrt.dll_free
test rbx, rbx
je 0x100073c91
cmp rbx, rdi
je 0x100073c91
mov rcx, rbx
call sub.msvcrt.dll_free
xor ecx, ecx
call sub.msvcrt.dll_free
test esi, esi
je 0x100073cd0
lea rcx, [0x100021f30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, [0x100021f90]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, [0x100021ff0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, [0x100022048]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x100080de4
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x30
mov eax, dword [rcx + 0x20]
xor ebp, ebp
mov r13, r9
mov esi, r8d
mov r12, rdx
mov rdi, rcx
test eax, eax
je 0x100080f9d
sub eax, 1
je 0x100080ed3
cmp eax, 1
jne 0x100080f36
mov rcx, qword [rcx + 0x28]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov ecx, dword [rdi + 0x3c]
lea edx, [rsi + rcx]
cmp edx, eax
jbe 0x100080ea2
mov rcx, qword [rdi + 0x28]
mov ebx, dword [rdi + 0x3c]
mov rax, qword [rcx]
add ebx, esi
call qword [rax + 0x20]
add eax, eax
cmp ebx, eax
ja 0x100080e63
mov rcx, qword [rdi + 0x28]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov ebx, eax
add ebx, ebx
mov rbp, qword [rdi + 0x28]
cmp ebx, dword [rbp + 0xc]
jbe 0x100080ea2
lea rdx, [0x100003450]
mov ecx, ebx
call fcn.100073a6c
mov r14, rax
test rax, rax
je 0x100080ec9
mov r8d, dword [rbp + 0xc]
mov rdx, qword [rbp + 0x10]
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rcx, qword [rbp + 0x10]
call sub.msvcrt.dll_free
mov qword [rbp + 0x10], r14
mov dword [rbp + 0xc], ebx
mov rcx, qword [rdi + 0x28]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov ecx, dword [rdi + 0x3c]
mov r8, rsi
add rcx, rax
mov rdx, r12
call sub.msvcrt.dll_memcpy
mov dword [r13], esi
add dword [rdi + 0x3c], esi
jmp 0x100080f9d
mov eax, 0x8007000e
jmp 0x100080f9f
mov ecx, dword [rcx + 0x38]
mov ebx, 0x10000
lea eax, [rcx + rsi]
cmp eax, ebx
ja 0x100080ef6
add rcx, qword [rdi + 0x30]
mov r8, rsi
call sub.msvcrt.dll_memcpy
add dword [rdi + 0x38], esi
jmp 0x100080f99
cmp ecx, ebx
je 0x100080f16
test ecx, ecx
je 0x100080f49
mov r8d, ebx
sub r8d, ecx
add rcx, qword [rdi + 0x30]
call sub.msvcrt.dll_memcpy
mov ecx, dword [rdi + 0x38]
sub r12, rcx
add r12, rbx
test ecx, ecx
je 0x100080f49
mov rdx, qword [rdi + 0x30]
mov rcx, qword [rdi]
and qword [rsp + 0x20], rbp
mov r9, r13
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100080f3d
mov eax, 0x80004005
jmp 0x100080f9f
add dword [rdi + 0x3c], ebx
mov ebp, ebx
sub ebp, dword [rdi + 0x38]
and dword [rdi + 0x38], 0
mov ebx, esi
sub ebx, ebp
shr ebx, 0x10
test ebx, ebx
je 0x100080f7d
mov rcx, qword [rdi]
and qword [rsp + 0x20], 0
shl ebx, 0x10
mov r8d, ebx
mov r9, r13
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100080f36
add dword [rdi + 0x3c], ebx
mov eax, ebx
add ebp, ebx
add r12, rax
cmp ebp, esi
jae 0x100080f99
mov rcx, qword [rdi + 0x30]
mov eax, esi
mov rdx, r12
sub eax, ebp
mov r8d, eax
mov ebx, eax
call sub.msvcrt.dll_memcpy
mov dword [rdi + 0x38], ebx
mov dword [r13], esi
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop r13
pop r12
ret
Function at 0x100080fc4
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [rcx + 0x20]
mov rbx, rcx
test eax, eax
je 0x100081016
sub eax, 1
je 0x100080fe0
cmp eax, 1
je 0x100081016
jmp 0x100081005
mov r8d, dword [rcx + 0x38]
test r8d, r8d
je 0x100081016
mov rdx, qword [rcx + 0x30]
mov rcx, qword [rcx]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10008100c
mov eax, 0x80004005
jmp 0x100081018
mov eax, dword [rbx + 0x38]
add dword [rbx + 0x3c], eax
and dword [rbx + 0x38], 0
xor eax, eax
add rsp, 0x30
pop rbx
ret
Function at 0x10008585c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
imul r9d, dword [rsp + 0x50]
mov rbx, rdx
mov rbp, rcx
mov edi, r9d
add rdi, rdx
cmp rdx, rdi
jae 0x10008598d
mov r13d, dword [rsp + 0x50]
mov r14d, dword [rsp + 0x58]
mov eax, r8d
lea rsi, [rdx + rax*4]
mov edx, 0xffc03fc0
lea r12, [r13 + r13]
mov r15, rbx
cmp rbx, rsi
jae 0x10008597b
mov r14, rbp
mov r11d, dword [r15 + 4]
mov r9d, dword [r15]
mov r10d, dword [r13 + r15]
mov r8d, dword [r13 + r15 + 4]
mov ecx, r9d
mov eax, r11d
shr eax, 2
shr ecx, 2
add r15, 8
and eax, edx
and ecx, edx
add ecx, eax
mov eax, r10d
shr eax, 2
and eax, edx
add ecx, eax
mov eax, r8d
shr eax, 2
and eax, edx
lea edx, [rcx + rax - 0x7fff80]
mov ecx, r10d
shr r10d, 2
and ecx, 0xff00ff
mov eax, r8d
shr r8d, 2
and eax, 0xff00ff
add ecx, eax
mov eax, r9d
shr r9d, 2
and eax, 0xff00ff
add ecx, eax
mov eax, r11d
shr r11d, 2
and eax, 0xff00ff
lea ecx, [rcx + rax + 0x20002]
shr ecx, 2
xor edx, ecx
mov ecx, 0x3fc03fc0
and r10d, ecx
and edx, 0xff00ff
and r8d, ecx
add r10d, r8d
and r9d, ecx
and r11d, ecx
add r10d, r9d
lea eax, [r10 + r11 + 0x800080]
xor edx, eax
mov dword [r14], edx
add r14, 4
mov edx, 0xffc03fc0
cmp r15, rsi
jb 0x1000858b9
mov r14d, dword [rsp + 0x58]
add rbx, r12
add rbp, r14
add rsi, r12
cmp rbx, rdi
jb 0x1000858aa
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor eax, eax
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x100085b38
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
mov rdx, qword [rcx]
mov rax, qword [rcx + 8]
mov rsi, rcx
mov edi, dword [rdx + 0x8c]
mov rbx, qword [rdx + 0x28]
mov rbp, qword [rax + 0x28]
imul edi, dword [rdx + 0x80]
add rdi, rbx
jmp 0x100085c60
mov eax, dword [rdx + 0x88]
mov r12d, dword [rdx + 0x80]
mov r15, rbp
lea r13, [rbx + rax*2]
add r12, rbx
mov r14, rbx
cmp rbx, r13
jae 0x100085c46
mov esi, 0x7e0
movzx r8d, word [r12]
movzx r10d, word [r14]
movzx r9d, word [r14 + 2]
movzx r11d, word [r12 + 2]
mov edx, 0xf81f
mov ecx, r10d
and ecx, edx
mov eax, r8d
add r14, 4
and eax, edx
add r12, 4
add ecx, eax
mov eax, r9d
and eax, edx
add ecx, eax
mov eax, r11d
and eax, edx
lea edx, [rcx + rax + 0x1002]
mov ecx, r10d
mov eax, r8d
and eax, esi
and ecx, esi
shr edx, 2
add ecx, eax
mov eax, r9d
and eax, esi
add ecx, eax
mov eax, r11d
and eax, esi
lea ecx, [rcx + rax + 0x40]
mov eax, 0xf81f
and r10d, eax
and r8d, eax
and r9d, eax
and r11d, eax
add r10d, r8d
shr ecx, 2
xor dx, cx
add r10d, r9d
and dx, si
lea eax, [r10 + r11 + 0x1002]
shr eax, 2
xor dx, ax
mov word [r15], dx
add r15, 2
cmp r14, r13
jb 0x100085ba3
mov rsi, qword [rsp + 0x30]
mov rax, qword [rsi + 8]
mov rdx, qword [rsi]
mov ecx, dword [rax + 0x80]
mov eax, dword [rdx + 0x80]
lea rbx, [rbx + rax*2]
add rbp, rcx
cmp rbx, rdi
jb 0x100085b7b
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor eax, eax
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x100085db8
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
mov rdx, qword [rcx]
mov rax, qword [rcx + 8]
mov rsi, rcx
mov edi, dword [rdx + 0x8c]
mov rbx, qword [rdx + 0x28]
mov rbp, qword [rax + 0x28]
imul edi, dword [rdx + 0x80]
add rdi, rbx
jmp 0x100085ee3
mov eax, dword [rdx + 0x88]
mov r12d, dword [rdx + 0x80]
mov r15, rbp
lea r13, [rbx + rax*2]
add r12, rbx
mov r14, rbx
cmp rbx, r13
jae 0x100085ec9
mov esi, 0x7c1f
movzx r8d, word [r12]
movzx r10d, word [r14]
movzx r9d, word [r14 + 2]
movzx r11d, word [r12 + 2]
mov edx, 0x83e0
mov ecx, r10d
and ecx, edx
mov eax, r8d
add r14, 4
and eax, edx
add r12, 4
add ecx, eax
mov eax, r9d
and eax, edx
add ecx, eax
mov eax, r11d
and eax, edx
lea edx, [rcx + rax + 0x10040]
mov ecx, r10d
mov eax, r8d
and eax, esi
and ecx, esi
shr edx, 2
add ecx, eax
mov eax, r9d
and eax, esi
add ecx, eax
mov eax, r11d
and eax, esi
lea ecx, [rcx + rax + 0x802]
mov eax, 0x83e0
and r10d, eax
and r8d, eax
and r9d, eax
and r11d, eax
add r10d, r8d
shr ecx, 2
xor dx, cx
add r10d, r9d
and dx, si
lea eax, [r10 + r11 + 0x10040]
shr eax, 2
xor dx, ax
mov word [r15], dx
add r15, 2
cmp r14, r13
jb 0x100085e23
mov rsi, qword [rsp + 0x30]
mov rax, qword [rsi + 8]
mov rdx, qword [rsi]
mov ecx, dword [rax + 0x80]
mov eax, dword [rdx + 0x80]
lea rbx, [rbx + rax*2]
add rbp, rcx
cmp rbx, rdi
jb 0x100085dfb
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor eax, eax
pop r15
pop r14
pop r13
pop r12
pop rdi
ret