joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000fa60
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x88
mov rax, qword [0x1400f32b0]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r13d, r8d
mov rbp, rdx
mov r8d, ecx
mov ecx, 0x1fffff
xor edx, edx
mov rsi, r9
call qword [sym.imp.KERNEL32.dll_OpenProcess]
xor edi, edi
mov r12b, 1
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x30], rdi
mov ebx, edi
movzx r15d, r12b
movzx r14d, r12b
test rax, rax
je 0x14000fcd2
mov qword [rsp + 0x68], reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rsp + 0x60], rdi
mov byte [rsp + 0x50], bl
cmp byte [rsi], bl
jne 0x14000fade
mov r8d, edi
jmp 0x14000faeb
or r8, 0xffffffffffffffff
inc r8
cmp byte [rsi + r8], bl
jne 0x14000fae2
lea rcx, [rsp + 0x50]
mov rdx, rsi
call fcn.14000b7d0
cmp qword [rsp + 0x68], 0x10
mov rbx, qword [rsp + 0x60]
mov r8d, 4
lea rcx, [rsp + 0x50]
cmovae rcx, qword [rsp + 0x50]
cmp rbx, r8
cmovb r8, rbx
test r8, r8
jne 0x14000fb24
mov eax, edi
jmp 0x14000fb30
lea rdx, [0x14001330c]
call sub.MSVCR110.dll_memcmp
cdqe
test rax, rax
jne 0x14000fb42
cmp rbx, 4
jb 0x14000fba9
mov eax, edi
setne al
test eax, eax
jne 0x14000fba9
mov rsi, r13
mov r13, qword [rsp + 0x38]
nop
mov r9d, 0x3000
mov r8, rsi
xor edx, edx
mov rcx, r13
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbx, rax
test rax, rax
jne 0x14000fb7b
inc edi
cmp edi, 5
jl 0x14000fb50
xor dil, dil
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x68], 0x10
jb 0x14000fb99
mov rcx, qword [rsp + 0x50]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void____ptr64_
test dil, dil
je 0x14000fcd2
xor eax, eax
jmp 0x14000fcd5
test rbp, rbp
jne 0x14000fbb3
mov ebp, 0x7fff
mov rax, r13
mov r13, qword [rsp + 0x38]
mov rsi, rbp
mov qword [rsp + 0x40], rax
nop word [rax + rax]
mov r9d, 0x3000
mov r8, rax
mov rdx, rsi
mov rcx, r13
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbx, rax
test rax, rax
je 0x14000fc1b
cmp rax, rsi
je 0x14000fc1b
sub rax, rbp
cmp rax, 0x7fffffff
jb 0x14000fb7e
mov rax, rbp
sub rax, rbx
cmp rax, 0x7fffffff
jb 0x14000fb7e
test r14b, r14b
je 0x14000fc65
test r12b, r12b
je 0x14000fcbc
mov rax, qword [rsp + 0x48]
test r15b, r15b
movzx r14d, r14b
cmovne r14d, edi
add rax, 0xffff
movabs rcx, 0x7fffffffffffffff
mov esi, eax
mov qword [rsp + 0x48], rax
add rsi, rbp
cmp rsi, rcx
jae 0x14000fc60
cmp rax, 0x7fffffff
jb 0x14000fcae
xor r12b, r12b
jmp 0x14000fcbc
test r15b, r15b
je 0x14000fcae
test r12b, r12b
mov ecx, 1
movzx r14d, r14b
cmovne r14d, ecx
mov rcx, qword [rsp + 0x30]
mov rsi, rbp
add rcx, 0xffff
mov eax, ecx
mov qword [rsp + 0x30], rcx
sub rsi, rax
movabs rax, 0x7fffffffffffffff
cmp rsi, rax
jae 0x14000fcab
cmp rcx, 0x7fffffff
jb 0x14000fcae
xor r15b, r15b
mov rax, qword [rsp + 0x40]
test r12b, r12b
jne 0x14000fbd0
mov rax, qword [rsp + 0x40]
test r15b, r15b
jne 0x14000fbd0
mov dil, 1
jmp 0x14000fb7e
mov rax, rbx
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400104e0
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400106b4
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x30
xor r15d, r15d
mov dword [rax - 0x18], r15d
call qword [sym.imp.MSVCR110.dll___crtGetShowWindowMode]
movzx r14d, ax
mov rcx, qword gs:[0x30]
mov rdx, qword [rcx + 8]
mov esi, r15d
xor eax, eax
lock cmpxchg qword [0x1400f3928], rdx
je 0x14001070b
cmp rax, rdx
jne 0x140010709
mov ebx, 1
mov esi, ebx
jmp 0x140010710
jmp 0x1400106ee
mov ebx, 1
mov eax, dword [0x1400f3930]
cmp eax, ebx
jne 0x140010728
mov edi, 0x1f
mov ecx, edi
call sub.MSVCR110.dll__amsg_exit
jmp 0x140010764
mov eax, dword [0x1400f3930]
test eax, eax
jne 0x140010759
mov dword [0x1400f3930], ebx
lea rdx, [0x1400123d8]
lea rcx, [0x1400123b8]
call sub.MSVCR110.dll__initterm_e
test eax, eax
je 0x14001075f
mov eax, 0xff
jmp 0x14001088f
mov dword [0x1400f3374], ebx
mov edi, 0x1f
mov eax, dword [0x1400f3930]
cmp eax, ebx
jne 0x14001078b
lea rdx, [0x1400123b0]
lea rcx, [0x140012358]
call sub.MSVCR110.dll__initterm
mov dword [0x1400f3930], 2
test esi, esi
jne 0x140010799
mov rax, r15
xchg qword [0x1400f3928], rax
cmp qword [0x1400f3938], r15
je 0x1400107c4
lea rcx, [0x1400f3938]
call fcn.140010bb0
test eax, eax
je 0x1400107c4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x1400f3938]
call rax
mov rax, qword [sym.imp.MSVCR110.dll__wcmdln]
mov rcx, qword [rax]
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
ja 0x140010840
cmp word [rcx], r15w
je 0x1400107e7
test edx, edx
jne 0x140010840
movzx eax, word [rcx]
sub ax, bx
cmp ax, di
ja 0x1400107fd
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400107e7
movzx r9d, r14w
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.14000fd00
mov dword [0x1400f3370], eax
cmp dword [0x1400f3390], r15d
jne 0x140010829
mov ecx, eax
call qword [sym.imp.MSVCR110.dll_exit]
cmp dword [0x1400f3374], r15d
jne 0x14001083e
call qword [sym.imp.MSVCR110.dll__cexit]
mov eax, dword [0x1400f3370]
jmp 0x14001088f
cmp word [rcx], 0x22
jne 0x140010854
mov eax, r15d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400107d7
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.140010c30
add rsp, 0x28
jmp 0x1400106b4
Function at 0x140001070
Capabilities:
Get common file path
Print debug messages

Disassembly:
sub rsp, 0x248
xor edx, edx
lea rcx, [rsp + 0x130]
mov r8d, 0x104
call fcn.140007c70
lea rdx, [rsp + 0x130]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.DLL_GetTempPathA]
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call fcn.140007c70
lea rcx, str..dll
call fcn.1400013b0
mov r9, rax
lea r8, [rsp + 0x130]
lea rdx, str._s_s
lea rcx, [rsp + 0x20]
call fcn.140001010
lea rcx, [rsp + 0x20]
call fcn.140001150
test al, al
je 0x14000112e
lea rcx, [0x140020fdd]
call fcn.1400013b0
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.1400015b0
test al, al
je 0x140001119
lea rcx, [0x140020fe0]
call qword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
add rsp, 0x248
ret
lea rcx, [0x140020ff0]
call qword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
add rsp, 0x248
ret
lea rcx, [0x140021000]
call qword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
add rsp, 0x248
ret
Function at 0x140001150
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push rsi
push r14
push r15
sub rsp, 0x290
movsd xmm0, qword [str.c:windows_]
mov r14, rcx
mov eax, dword [0x140021018]
lea rcx, [rsp + 0x6c]
xor edx, edx
movsd qword [rsp + 0x60], xmm0
mov r8d, 0xf8
mov dword [rsp + 0x68], eax
call fcn.140007c70
lea rcx, [0x140020fdd]
call fcn.1400013b0
lea rdx, [rsp + 0x60]
mov r8, rax
dec rdx
cmp byte [rdx + 1], 0
lea rdx, [rdx + 1]
jne 0x1400011a1
xor ecx, ecx
nop dword [rax]
movzx eax, byte [r8 + rcx]
mov byte [rdx + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x1400011b0
xor eax, eax
mov qword [rsp + 0x2b0], rbx
xor r15d, r15d
mov qword [rsp + 0x288], rbp
xor edx, edx
mov qword [rsp + 0x280], rdi
mov r8d, 0x104
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x170]
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x50], al
mov dword [rsp + 0x2b8], r15d
call fcn.140007c70
mov r8d, 0x104
lea rdx, [rsp + 0x170]
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
mov qword [rsp + 0x30], r15
lea r8d, [r15 + 1]
mov dword [rsp + 0x28], 0x80
lea rcx, [rsp + 0x170]
xor r9d, r9d
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.DLL_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140001386
xor eax, eax
lea rdx, [rsp + 0x2c0]
mov rcx, rsi
mov qword [rsp + 0x2c0], rax
call qword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
xor r9d, r9d
lea edx, [r15 + 0x4e]
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
lea r9, [rsp + 0x2b8]
mov qword [rsp + 0x20], r15
lea r8d, [r15 + 0x10]
mov rcx, rsi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.DLL_ReadFile]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x13e00
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
mov ebp, dword [rsp + 0x2c0]
add ebp, 0xfffec200
mov ecx, ebp
mov edi, ebp
call fcn.140006494
mov rbx, rax
test rax, rax
je 0x1400012e8
mov r8d, edi
xor edx, edx
mov rcx, rax
call fcn.140007c70
jmp 0x1400012eb
mov rbx, r15
lea r9, [rsp + 0x2b8]
mov qword [rsp + 0x20], r15
mov r8d, ebp
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x140001386
xor r9d, r9d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
lea rcx, [rsp + 0x60]
mov edx, 0x1f01ff
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.DLL_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140001386
lea r9, [rsp + 0x2b8]
mov qword [rsp + 0x20], r15
mov r8d, ebp
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x140001386
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
lea r8, [rsp + 0x40]
mov rdx, r14
lea rcx, [rsp + 0x60]
call fcn.140001b80
jmp 0x140001388
xor al, al
mov rdi, qword [rsp + 0x280]
mov rbp, qword [rsp + 0x288]
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x290
pop r15
pop r14
pop rsi
ret
Function at 0x140001500
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x50
xor ecx, ecx
lea rax, [r11 + 8]
mov qword [r11 - 0x18], rcx
mov rbx, r9
mov qword [r11 - 0x20], rax
mov edi, r8d
mov qword [r11 - 0x28], rcx
xor r9d, r9d
mov qword [r11 + 8], rcx
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ecx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1400015a2
mov rcx, qword [rsp + 0x80]
mov rax, 0xffffffffffffffff
nop
inc rax
cmp byte [rcx + rax], 0
jne 0x140001560
mov dword [rsp + 0x28], eax
mov r9d, edi
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [rsp + 0x60]
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1400015a2
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov rbx, qword [rsp + 0x68]
xor al, al
add rsp, 0x50
pop rdi
ret
Function at 0x140001b80
Capabilities:
Delete file
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
push rbx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x178
mov r12, rdx
mov r13, rcx
call fcn.140006080
xor edi, edi
mov rbx, rax
mov dword [rsp + 0x40], edi
mov r9d, edi
mov byte [rsp + 0x44], dil
mov dword [rsp + 0x168], edi
test rax, rax
jne 0x140001bc5
mov eax, 0x10000
jmp 0x140001be9
cmp dword [rax], 1
je 0x140001bd1
mov eax, 0x80000
jmp 0x140001be9
mov rcx, qword [rax + 8]
lea r8, [rsp + 0x40]
mov edx, 0xffffffff
call fcn.140005940
mov r9d, dword [rsp + 0x40]
mov qword [rsp + 0x1b0], rbp
mov r14, rdi
mov qword [rsp + 0x170], rsi
mov dword [0x140027cb8], eax
movsxd r15, r9d
test r9d, r9d
je 0x140001d39
nop
mov dword [rsp + 0x40], edi
mov esi, edi
mov byte [rsp + 0x44], 0
mov dword [rsp + 0x168], edi
test rbx, rbx
jne 0x140001c2e
mov eax, 0x10000
jmp 0x140001c52
cmp dword [rbx], 1
je 0x140001c3a
mov eax, 0x80000
jmp 0x140001c52
mov rcx, qword [rbx + 8]
lea r8, [rsp + 0x40]
mov edx, r14d
call fcn.140005940
mov esi, dword [rsp + 0x168]
movsxd rbp, esi
mov rcx, rbp
mov dword [0x140027cb8], eax
call fcn.140006494
mov rdi, rax
test rax, rax
je 0x140001c7a
mov r8, rbp
xor edx, edx
mov rcx, rax
call fcn.140007c70
jmp 0x140001c7c
xor edi, edi
mov r9d, esi
mov r8, rdi
mov edx, r14d
mov rcx, rbx
call fcn.140006310
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov edx, 0x1f01ff
mov rcx, r12
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.DLL_CreateFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140001d4d
xor eax, eax
lea r9, [rsp + 0x1c8]
mov r8d, esi
mov dword [rsp + 0x1c8], eax
mov rdx, rdi
mov qword [rsp + 0x20], rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_WriteFile]
xor r9d, r9d
xor r8d, r8d
mov rcx, rbp
lea edx, [r9 + 0x4e]
call qword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
mov rdx, qword [rsp + 0x1c0]
lea r9, [rsp + 0x1c8]
xor edi, edi
mov rcx, rbp
mov qword [rsp + 0x20], rdi
lea r8d, [rdi + 0x10]
call qword [sym.imp.KERNEL32.DLL_WriteFile]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
inc r14
cmp r14, r15
jb 0x140001c10
test rbx, rbx
jne 0x140001d54
mov dword [0x140027cb8], 0x10000
jmp 0x140001dee
xor al, al
jmp 0x140001df9
cmp dword [rbx], 1
je 0x140001d68
mov dword [0x140027cb8], 0x80000
jmp 0x140001dee
mov rdi, qword [rbx + 8]
cmp dword [rdi + 8], 0xffffffff
je 0x140001d7a
mov rcx, qword [rdi]
call fcn.1400058a0
mov rsi, qword [rdi]
mov dword [rdi + 8], 0xffffffff
test rsi, rsi
je 0x140001dc8
cmp qword [rsi + 0x80], 0
je 0x140001d9b
mov rcx, rsi
call fcn.1400058a0
mov rbp, qword [rsi]
test rbp, rbp
je 0x140001dc0
cmp byte [rbp + 0x18], 0
je 0x140001db3
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edx, 0x30
mov rcx, rbp
call fcn.14000649c
mov rcx, rsi
call fcn.14000b584
mov rcx, rdi
mov qword [rdi], 0
mov dword [0x140027cb8], 0
call fcn.1400062b0
mov edx, 0x10
mov rcx, rbx
call fcn.14000649c
mov rcx, r13
call qword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov al, 1
mov rsi, qword [rsp + 0x170]
mov rbp, qword [rsp + 0x1b0]
add rsp, 0x178
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rbx
ret
Function at 0x140003a60
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 8
mov r10d, r8d
mov r9, rdx
test rdx, rdx
jne 0x140003a76
xor eax, eax
add rsp, 8
ret
mov qword [rsp], rbx
lea rbx, [0x1400211a0]
not ecx
cmp r10d, 8
jb 0x140003b68
mov r11, r10
shr r11, 3
nop dword [rax]
nop dword [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r10d, 0xfffffff8
mov edx, dword [rbx + rax*4]
xor edx, ecx
movzx ecx, byte [r9 + 1]
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 2]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 3]
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 4]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 5]
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 6]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 7]
add r9, 8
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov ecx, dword [rbx + rax*4]
xor ecx, edx
sub r11, 1
jne 0x140003aa0
test r10d, r10d
je 0x140003b90
nop dword [rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
xor rdx, rax
shr eax, 8
movzx r8d, dl
mov ecx, dword [rbx + r8*4]
xor ecx, eax
add r10d, 0xffffffff
jne 0x140003b70
mov rbx, qword [rsp]
not ecx
mov eax, ecx
add rsp, 8
ret

Function at 0x140004480
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov r10, r8
mov rdi, r9
imul r10d, edx
mov rsi, rdx
cmp byte [r9], 0
mov r11, rcx
je 0x1400044da
mov rdx, rcx
mov qword [rsp + 0x20], 0
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x48]
mov r8d, r10d
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x1400044c6
mov byte [rdi + 0x10], 1
mov eax, dword [rsp + 0x48]
xor edx, edx
div rsi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov edx, dword [r9 + 0x2c]
mov ecx, dword [r9 + 0x28]
sub ecx, edx
mov qword [rsp + 0x40], rbx
lea eax, [rdx + r10]
cmp eax, dword [r9 + 0x28]
cmovbe ecx, r10d
add rdx, qword [r9 + 0x20]
mov ebx, ecx
mov r8d, ecx
mov rcx, r11
call fcn.140009aa0
add dword [rdi + 0x2c], ebx
mov eax, ebx
mov rbx, qword [rsp + 0x40]
xor edx, edx
div rsi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140004520
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
sub rsp, 0x38
cmp byte [rcx], 0
mov r14, rdx
mov qword [rsp + 0x58], rbp
mov rbx, rcx
mov qword [rsp + 0x30], rdi
mov edi, 1
je 0x140004570
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x60]
mov r8d, edi
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x14000456a
mov byte [rbx + 0x10], dil
mov ebp, dword [rsp + 0x60]
jmp 0x1400045a7
mov qword [rsp + 0x68], rsi
mov esi, dword [rcx + 0x2c]
mov ecx, dword [rcx + 0x28]
lea eax, [rsi + 1]
cmp eax, ecx
jbe 0x140004586
mov edi, ecx
sub edi, esi
mov rdx, rsi
mov r8d, edi
add rdx, qword [rbx + 0x20]
lea rcx, [rsp + 0x50]
mov ebp, edi
call fcn.140009aa0
lea eax, [rsi + rdi]
mov rsi, qword [rsp + 0x68]
mov dword [rbx + 0x2c], eax
mov rdi, qword [rsp + 0x30]
cmp ebp, 1
mov rbp, qword [rsp + 0x58]
jne 0x1400045c8
movzx eax, byte [rsp + 0x50]
mov dword [r14], eax
xor eax, eax
add rsp, 0x38
pop r14
pop rbx
ret
cmp byte [rbx], 0
je 0x1400045be
cmp byte [rbx + 0x10], 0
je 0x1400045be
mov eax, 0xffffffff
add rsp, 0x38
pop r14
pop rbx
ret
Function at 0x1400052f0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
je 0x140005501
cmp dword [rcx + 0x1c], 0
je 0x140005501
cmp qword [rcx + 0x80], 0
je 0x14000531f
call fcn.1400058a0
lea r9, [rsp + 0x50]
mov rcx, rdi
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x58]
call fcn.140005030
test eax, eax
je 0x140005346
mov eax, 0xffffff99
add rsp, 0x28
pop rdi
pop rsi
ret
mov ecx, 0xb0
mov qword [rsp + 0x48], rbx
call fcn.14000b69c
mov rbx, rax
test rax, rax
jne 0x14000536c
lea eax, [rbx - 0x68]
mov rbx, qword [rsp + 0x48]
add rsp, 0x28
pop rdi
pop rsi
ret
mov ecx, 0x4000
mov qword [rsp + 0x20], rbp
call fcn.14000b69c
mov ecx, dword [rsp + 0x40]
xor ebp, ebp
mov dword [rbx + 0x68], ecx
mov ecx, dword [rsp + 0x50]
mov dword [rbx + 0x6c], ecx
mov qword [rbx], rax
mov dword [rbx + 0x70], ebp
test rax, rax
jne 0x1400053b2
mov rcx, rbx
call fcn.14000b584
mov rbx, qword [rsp + 0x48]
lea eax, [rbp - 0x68]
mov rbp, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
mov dword [rbx + 0x64], ebp
mov eax, dword [rdi + 0x40]
mov ecx, dword [rdi + 0x38]
mov dword [rbx + 0x78], eax
mov dword [rbx + 0x74], ebp
mov eax, dword [rdi + 0x38]
mov dword [rbx + 0x90], eax
mov rax, qword [rdi]
mov qword [rbx + 0x88], rax
mov eax, dword [rdi + 0x10]
mov dword [rbx + 0x94], eax
mov dword [rbx + 0x24], ebp
test ecx, ecx
je 0x140005404
lea rcx, [rbx + 8]
mov qword [rbx + 0x38], rbp
mov qword [rbx + 0x40], rbp
mov qword [rbx + 0x48], rbp
call fcn.140003e20
test eax, eax
jne 0x140005404
mov dword [rbx + 0x64], 1
mov eax, dword [rdi + 0x44]
mov dword [rbx + 0x7c], eax
mov eax, dword [rdi + 0x48]
mov dword [rbx + 0x80], eax
movzx eax, byte [rdi + 0x34]
and al, 1
mov byte [rbx + 0x98], al
mov eax, dword [rdi + 0x34]
shr eax, 3
test al, 1
je 0x14000542f
movzx eax, byte [rdi + 0x3d]
jmp 0x140005433
movzx eax, byte [rdi + 0x43]
mov byte [rbx + 0xac], al
movzx eax, byte [rbx + 0x98]
neg al
sbb ecx, ecx
and ecx, 0xc
mov dword [rbx + 0xa8], ecx
mov dword [rbx + 0x9c], 0x12345678
mov dword [rbx + 0xa0], 0x23456789
mov dword [rbx + 0xa4], 0x34567890
test rsi, rsi
je 0x1400054d5
lea r8, [0x1400211a0]
movzx eax, byte [rsi]
test al, al
je 0x1400054d5
mov edx, dword [rbx + 0x9c]
xor rax, rdx
movzx ecx, al
shr edx, 8
mov eax, dword [r8 + rcx*4]
mov ecx, dword [rbx + 0xa4]
xor eax, edx
mov dword [rbx + 0x9c], eax
movzx eax, al
add eax, dword [rbx + 0xa0]
imul edx, eax, 0x8088405
movzx eax, cl
shr ecx, 8
inc edx
mov dword [rbx + 0xa0], edx
shr rdx, 0x18
xor rax, rdx
mov eax, dword [r8 + rax*4]
xor eax, ecx
mov dword [rbx + 0xa4], eax
add rsi, 1
jne 0x140005477
mov ecx, dword [rdi + 0x7c]
mov eax, dword [rsp + 0x58]
mov dword [rbx + 0x10], ebp
add eax, 0x1e
mov rbp, qword [rsp + 0x20]
add ecx, eax
mov dword [rbx + 0x60], ecx
xor eax, eax
mov qword [rdi + 0x80], rbx
mov rbx, qword [rsp + 0x48]
add rsp, 0x28
pop rdi
pop rsi
ret
mov eax, 0xffffff9a
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x140006080
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
push rdi
push r14
push r15
sub rsp, 0x50
mov qword [rax - 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rbp, rcx
mov ecx, 0x258
call fcn.1400064a4
mov rsi, rax
mov qword [rsp + 0x88], rax
xor r15d, r15d
mov qword [rax], r15
mov rdi, 0xffffffffffffffff
mov dword [rax + 8], edi
mov dword [rax + 0x138], edi
mov qword [rax + 0x140], r15
mov qword [rax + 0x148], r15
lea ecx, [rdi + 0xe]
call fcn.140006494
mov qword [rsi + 0x140], rax
lea rdx, str.butterfly007
sub rax, rdx
nop dword [rax]
movzx ecx, byte [rdx]
mov byte [rax + rdx], cl
lea rdx, [rdx + 1]
test cl, cl
jne 0x140006100
cmp qword [rsi], 0
jne 0x140006223
cmp dword [rsi + 8], 0xffffffff
jne 0x140006223
lea rbx, [rsi + 0x150]
mov rdx, rbx
mov ecx, 0x104
call qword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
nop word [rax + rax]
lea rdi, [rdi + 1]
cmp byte [rbx + rdi], 0
jne 0x140006140
movzx eax, byte [rdi + rsi + 0x14f]
cmp al, 0x5c
je 0x140006173
cmp al, 0x2f
je 0x140006173
dec rbx
nop dword [rax]
lea rbx, [rbx + 1]
cmp byte [rbx], 0
jne 0x140006160
movzx eax, word [0x140022ba0]
mov word [rbx], ax
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_CreateFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140006212
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov edi, eax
cmp eax, 0xffffffff
setne bl
mov ecx, 0x30
call fcn.1400064a4
mov r14, rax
mov byte [rax], 1
mov byte [rax + 0x18], 1
mov byte [rax + 1], bl
mov qword [rax + 8], rbp
mov byte [rax + 0x10], 0
mov dword [rax + 0x14], r15d
cmp edi, 0xffffffff
je 0x140006202
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov dword [r14 + 0x14], eax
mov rcx, r14
call fcn.140004840
mov qword [rsi], rax
test rax, rax
jne 0x14000621e
mov dword [0x140027cb8], 0x200
jmp 0x140006232
mov eax, r15d
jmp 0x140006228
mov eax, 0x1000000
mov dword [0x140027cb8], eax
test eax, eax
je 0x140006273
mov rcx, qword [rsi + 0x140]
test rcx, rcx
je 0x140006243
call fcn.14000649c
mov qword [rsi + 0x140], r15
mov rcx, qword [rsi + 0x148]
test rcx, rcx
je 0x14000625b
call fcn.14000649c
mov qword [rsi + 0x148], r15
mov edx, 0x258
mov rcx, rsi
call fcn.14000649c
xor eax, eax
jmp 0x140006287
mov ecx, 0x10
call fcn.1400064a4
mov dword [rax], 1
mov qword [rax + 8], rsi
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r14
pop rdi
ret

Function at 0x14000c2f0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000c11c
Function at 0x140006ad0
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor eax, eax
mov rbx, rcx
mov qword [rcx + 0x10], rax
mov word [rcx + 0x18], ax
mov dword [rcx + 0x1a], eax
mov qword [rcx + 0x224], rax
mov qword [rcx], rax
mov qword [rcx + 8], rax
mov dword [rcx + 0x22c], eax
mov word [rcx + 0x230], ax
mov word [rcx + 0x438], ax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rbx
mov rdx, rax
call fcn.140006c80
cmp dword [rbx + 0x10], 1
jne 0x140006b2c
lea rcx, [rbx + 0x14]
call fcn.140008690
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140007150
Capabilities:
Delete registry key

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
call fcn.1400088f0
mov rcx, rbx
call fcn.140007af0
mov qword [rsp + 0x48], 0
call fcn.140003c60
mov rcx, rax
lea rax, [rsp + 0x48]
lea rdx, str.SoftwareNVIDIA_CorporationGlobal
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400071c3
mov rcx, qword [rsp + 0x48]
lea rdx, [0x140044558]
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x30
pop rbx
ret