joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100063b00
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, [0x100002d00]
lea rcx, [rax - 0x30]
call fcn.100060370
nop
mov esi, 0x40
mov dword [rsp + 0x68], esi
lea eax, [rsi - 0x3e]
mul rsi
lea rcx, [rsi - 0x41]
cmovo rax, rcx
mov rcx, rax
call fcn.10009d604
mov rbx, rax
test rax, rax
jne 0x100063b7d
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.1000602fc
mov dword [rsp + 0x70], 1
mov rcx, qword [rsp + 0x38]
call sub.msvcrt.dll_free
mov rax, rdi
jmp 0x100063bef
lea r8, [rsp + 0x68]
mov rdx, rax
mov ecx, 3
call sub.Secur32.dll_GetUserNameExW
test al, al
je 0x100063ba2
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.1000605b4
jmp 0x100063bc5
mov dword [rsp + 0x68], esi
lea rdx, [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x100063bc5
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.1000605b4
mov rcx, rbx
call sub.msvcrt.dll_free
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.1000602fc
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 0x100063e14
Capabilities:
Check if file exists
Create process on windows
Query environment variable

Disassembly:
push rbx
sub rsp, 0x290
mov rax, qword [0x1000aa140]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor ebx, ebx
cmp byte [0x1000b5ff5], bl
jne 0x100063e40
xor al, al
jmp 0x100063ec2
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, [0x1000227a0]
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 0x100063e39
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, ebx
je 0x100063e39
lea r8, [rsp + 0x70]
lea rdx, [0x100002648]
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.10009dad0
add rsp, 0x290
pop rbx
ret

Function at 0x1000643a4
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
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 0x1000643fb
lea rdx, [rax + 8]
mov rcx, qword [rdx]
cmp word [rcx], 0x2f
je 0x1000643ed
cmp word [rcx], 0x2d
jne 0x100064408
inc r8d
add rdx, 8
cmp r8d, dword [rsp + 0x40]
jl 0x1000643de
xor al, al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
test rdi, rdi
je 0x100064421
movsxd r8, r8d
mov edx, 0x104
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 0x1000643fd
Function at 0x1000644cc
Capabilities:
Check os version

Disassembly:
sub rsp, 0x168
mov rax, qword [0x1000aa140]
xor rax, rsp
mov qword [rsp + 0x150], rax
test rcx, rcx
jne 0x1000644f1
xor al, al
jmp 0x100064619
cmp qword [0x1000b6428], 0
mov qword [0x1000b6400], rcx
mov qword [0x1000b63f8], rdx
mov byte [0x1000b60f6], r8b
jne 0x100064617
lea rcx, [0x1000227e0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x1000b6428], rax
test rax, rax
je 0x1000645d2
lea rdx, [0x1000227f8]
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1000b6428]
lea rdx, [0x100022808]
mov qword [0x1000b6408], rax
call sub.KERNEL32.dll_GetProcAddress
cmp qword [0x1000b6408], 0
mov qword [0x1000b6418], rax
jne 0x100064570
test rax, rax
je 0x1000645d2
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1000645d2
cmp dword [rsp + 0x34], 6
jb 0x1000645d2
cmp dword [rsp + 0x38], 0
jne 0x1000645d2
cmp dword [rsp + 0x40], 2
jne 0x1000645d2
cmp dword [rsp + 0x3c], 0x147c
jae 0x1000645d2
mov rax, qword [0x1000b6408]
and qword [0x1000b6408], 0
mov qword [0x1000b6410], rax
mov rax, qword [0x1000b6418]
and qword [0x1000b6418], 0
mov qword [0x1000b6420], 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 [0x1000b64b8], edx
mov byte [0x1000b385d], r11b
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
and qword [0x1000b38f0], 0
mov qword [0x1000b64b0], rax
mov al, 1
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.10009dad0
add rsp, 0x168
ret
Function at 0x100068878
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 0x100068996
cmp word [r12], 0x7c
jne 0x100068996
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 0x100068996
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 0x10006894c
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 0x100068996
jmp 0x10006894f
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 0x100068996
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rax
cmp rax, r13
je 0x100068996
and ebx, 0xf
jbe 0x10006898f
mov edi, ebx
movzx ecx, word [rdx]
inc ecx
sub rdi, 1
lea rdx, [rdx + rcx*2]
jne 0x100068980
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.10009d604
mov rbx, rax
cmp rax, r13
jne 0x1000689c3
xor eax, eax
jmp 0x100068a6a
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 0x100068a32
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 0x100068a65
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 0x100070e5c
Capabilities:
Encode data using xor

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
xor edx, edx
cmp dword [rcx], edx
jbe 0x100070ed7
mov r9, qword [rcx + 0x10]
mov r11d, dword [rcx]
mov rax, qword [r9]
mov r8d, edx
cmp dword [rax], 0
jbe 0x100070ec7
mov r10, qword [rax + 0x10]
mov edi, dword [rax]
mov rax, qword [r10]
xor ebx, ebx
xor ebp, ebp
mov esi, dword [rax]
test esi, esi
je 0x100070eb6
mov r12, qword [rax + 0x10]
lea ecx, [rbp + 7]
and ecx, 0x1f
rol ebx, cl
movzx ecx, byte [rbp + r12]
inc ebp
xor ebx, ecx
cmp ebp, esi
jb 0x100070ea0
rol r8d, 0x11
add r10, 8
xor r8d, ebx
sub rdi, 1
jne 0x100070e8f
rol edx, 0xb
add r9, 8
xor edx, r8d
sub r11, 1
jne 0x100070e7e
mov rbx, qword [rsp + 0x10]
mov rbp, qword [rsp + 0x18]
mov rsi, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x28]
mov eax, edx
pop r12
ret
Function at 0x100071910
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp byte [0x1000b6dfb], 0
jne 0x10007199b
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
and dword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edx, 1
cmp dword [rsp + 0x30], edx
jle 0x100071994
add rax, 8
mov rsi, qword [rax]
lea rdi, [0x100025410]
mov ecx, 0xd
repe cmpsw word [rsi], word [rdi]
je 0x10007198a
mov rsi, qword [rax]
lea rdi, [0x100025430]
mov ecx, 0xa
repe cmpsw word [rsi], word [rdi]
je 0x100071981
inc edx
add rax, 8
cmp edx, dword [rsp + 0x30]
jl 0x10007194b
jmp 0x100071994
and dword [0x1000b30f4], 0
jmp 0x100071994
mov dword [0x1000b30f4], 2
mov byte [0x1000b6dfb], 1
mov eax, dword [0x1000b30f4]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x10007792c
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rcx, qword [0x1000b64e0]
test rcx, rcx
jne 0x100077952
call fcn.1000779e0
test eax, eax
je 0x100077979
mov rcx, qword [0x1000b64e0]
call qword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
test rax, rax
jne 0x1000779cd
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 0x10007797d
xor eax, eax
jmp 0x1000779cd
mov eax, dword [rax]
mov rcx, qword [0x1000b64e0]
call qword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
mov rdi, rax
test rax, rax
je 0x1000779aa
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, rdi
jmp 0x1000779cd
lea rdi, [rbx + 0xfe0]
mov rcx, qword [0x1000b64e0]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add rbx, 0x20
cmp rbx, rdi
jb 0x1000779b1
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x10007ff94
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
cmp qword [0x1000b6e08], 0
mov esi, dword [0x1000b64bc]
mov edi, ecx
mov dword [0x1000b64bc], ecx
jne 0x100080032
cmp qword [0x1000b6e10], 0
jne 0x100080032
lea rcx, [0x100028ee8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x10007fff8
lea rcx, [0x100028ee8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x10007fff8
lea rdx, [0x100028ef8]
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x1000b6e08], rax
lea rcx, [0x100028f08]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x100080032
lea rcx, [0x100028f08]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x100080032
lea rdx, [0x100028ef8]
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x1000b6e10], rax
mov eax, dword [0x1000b30f8]
cmp eax, 0xffffffff
jne 0x1000800e1
and qword [rsp + 0x60], 0
lea rax, [rsp + 0x60]
lea rdx, [0x100028ec8]
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 0x1000800ca
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [0x1000b30f8]
lea rdx, [0x100028f18]
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 0x1000800ca
cmp dword [rsp + 0x58], 4
jne 0x1000800ca
mov eax, dword [0x1000b30f8]
jmp 0x1000800d2
xor eax, eax
mov dword [0x1000b30f8], eax
test eax, eax
je 0x1000800e5
mov eax, 1
mov dword [0x1000b30f8], eax
test eax, eax
jne 0x100080105
mov rax, qword [0x1000b6e08]
test rax, rax
je 0x1000800f5
mov ecx, edi
call rax
mov rax, qword [0x1000b6e10]
test rax, rax
je 0x100080105
mov ecx, edi
call rax
mov eax, esi
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret

Function at 0x100080118
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [0x1000b6e2c], 0
jne 0x1000801d4
lea rdx, [0x100002f50]
xor ecx, ecx
mov dword [0x1000b6e2c], 1
xor esi, esi
call fcn.10007ff70
lea rdx, [0x100002f50]
xor ecx, ecx
mov rdi, rax
call fcn.10007ff70
mov rbx, rax
test rdi, rdi
je 0x100080171
test rax, rax
je 0x100080171
cmp rdi, rax
jne 0x100080176
mov esi, 1
test rdi, rdi
je 0x100080183
mov rcx, rdi
call sub.msvcrt.dll_free
test rbx, rbx
je 0x100080195
cmp rbx, rdi
je 0x100080195
mov rcx, rbx
call sub.msvcrt.dll_free
xor ecx, ecx
call sub.msvcrt.dll_free
test esi, esi
je 0x1000801d4
lea rcx, [0x100028f30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, [0x100028f90]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, [0x100028ff0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, [0x100029048]
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 0x10008d2f4
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 0x10008d4ad
sub eax, 1
je 0x10008d3e3
cmp eax, 1
jne 0x10008d446
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 0x10008d3b2
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 0x10008d373
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 0x10008d3b2
lea rdx, [0x100002f50]
mov ecx, ebx
call fcn.10007ff70
mov r14, rax
test rax, rax
je 0x10008d3d9
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 0x10008d4ad
mov eax, 0x8007000e
jmp 0x10008d4af
mov ecx, dword [rcx + 0x38]
mov ebx, 0x10000
lea eax, [rcx + rsi]
cmp eax, ebx
ja 0x10008d406
add rcx, qword [rdi + 0x30]
mov r8, rsi
call sub.msvcrt.dll_memcpy
add dword [rdi + 0x38], esi
jmp 0x10008d4a9
cmp ecx, ebx
je 0x10008d426
test ecx, ecx
je 0x10008d459
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 0x10008d459
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 0x10008d44d
mov eax, 0x80004005
jmp 0x10008d4af
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 0x10008d48d
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 0x10008d446
add dword [rdi + 0x3c], ebx
mov eax, ebx
add ebp, ebx
add r12, rax
cmp ebp, esi
jae 0x10008d4a9
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 0x10008d4d4
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [rcx + 0x20]
mov rbx, rcx
test eax, eax
je 0x10008d526
sub eax, 1
je 0x10008d4f0
cmp eax, 1
je 0x10008d526
jmp 0x10008d515
mov r8d, dword [rcx + 0x38]
test r8d, r8d
je 0x10008d526
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 0x10008d51c
mov eax, 0x80004005
jmp 0x10008d528
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 0x100091d6c
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 0x100091e9d
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 0x100091e8b
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 0x100091dc9
mov r14d, dword [rsp + 0x58]
add rbx, r12
add rbp, r14
add rsi, r12
cmp rbx, rdi
jb 0x100091dba
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 0x100092048
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 0x100092170
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 0x100092156
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 0x1000920b3
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 0x10009208b
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 0x1000922c8
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 0x1000923f3
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 0x1000923d9
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 0x100092333
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 0x10009230b
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 0x100092420
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 0x10009254b
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 0x100092531
mov esi, 0xf0f
movzx r8d, word [r12]
movzx r10d, word [r14]
movzx r9d, word [r14 + 2]
movzx r11d, word [r12 + 2]
mov edx, 0xf0f0
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 + 0x2020]
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 + 0x202]
mov eax, 0xf0f0
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 + 0x2020]
shr eax, 2
xor dx, ax
mov word [r15], dx
add r15, 2
cmp r14, r13
jb 0x10009248b
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 0x100092463
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