joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140029fc8
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x14004ffa8]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor esi, esi
mov qword [rsp + 0x58], rcx
mov edi, esi
mov rbx, r8
mov rbp, rdx
lea rax, [rsp + 0x50]
mov word [rsp + 0x60], si
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rsi
lea r8, [rsp + 0x60]
mov qword [rsp + 0x28], rsi
mov edx, edi
mov rcx, rbp
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x40], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
test eax, eax
jne 0x14002a088
mov rcx, qword [rsp + 0x50]
cmp rcx, qword [rbx]
jle 0x14002a046
mov qword [rbx], rcx
lea rax, [rsp + 0x48]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x60]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002a088
mov rdx, qword [rsp + 0x48]
mov r8, rbx
mov rcx, qword [rsp + 0x58]
call fcn.140029fc8
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc edi
test esi, esi
mov esi, 0
je 0x140029ff8
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400362c0
mov rbx, qword [rsp + 0x2b8]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002af10
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov eax, 0xffffffff
mov rdi, r8
mov rbx, rcx
cmp r8, rax
jbe 0x14002af33
mov byte [rcx + 0x210], 1
jmp 0x14002af68
cmp byte [rcx + 0x210], 0
jne 0x14002af68
mov rcx, qword [rcx + 0x208]
lea r9, [rsp + 0x40]
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14002af61
mov eax, dword [rsp + 0x40]
cmp rax, rdi
je 0x14002af68
mov byte [rbx + 0x210], 1
cmp byte [rbx + 0x210], 0
mov rbx, qword [rsp + 0x48]
sete al
add rsp, 0x30
pop rdi
ret

Function at 0x14002af80
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov eax, 0xffffffff
mov rdi, r8
mov rbx, rcx
cmp r8, rax
jbe 0x14002afa3
mov byte [rcx + 0x210], 1
jmp 0x14002afd8
cmp byte [rcx + 0x210], 0
jne 0x14002afd8
mov rcx, qword [rcx + 0x208]
lea r9, [rsp + 0x40]
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002afd1
mov eax, dword [rsp + 0x40]
cmp rax, rdi
je 0x14002afd8
mov byte [rbx + 0x210], 1
cmp byte [rbx + 0x210], 0
mov rbx, qword [rsp + 0x48]
sete al
add rsp, 0x30
pop rdi
ret
Function at 0x14002b604
Capabilities:
Query environment variable
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x14004ffa8]
xor rax, rsp
mov qword [rbp + 0x190], rax
lea rcx, [rsp + 0x48]
call fcn.14002d690
mov rdx, qword [0x140051418]
mov rcx, qword [0x140051628]
mov rax, qword [rsp + 0x48]
add rcx, rdx
cmp rcx, rax
jg 0x14002b83d
xor ebx, ebx
mov qword [0x140051628], rax
mov rsi, 0xffffffff80000001
test rdx, rdx
jne 0x14002b6c4
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], 8
mov qword [rsp + 0x30], rax
lea r9d, [rdx + 0x40]
lea rax, [0x140051418]
mov rcx, rsi
mov qword [rsp + 0x28], rax
lea r8, str.TimeStampInterval
lea rdx, str.SoftwareMicrosoftTPGHWRCustomization
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_RegGetValueW]
mov rcx, qword [0x140051418]
mov edx, 0xb2d05e00
test eax, eax
cmovne rcx, rdx
mov qword [0x140051418], rcx
cmp word [0x140051420], bx
jne 0x14002b732
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, 0x208
call sub.msvcrt.dll_memset
mov r8d, 0x104
lea rdx, [rbp - 0x80]
lea rcx, str._CommonProgramFiles_Microsoft_SharedInkHWRCustomization
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x103
ja 0x14002b83d
lea rax, str.trending_ngrams_en_us.hwrdict
mov edx, 0x104
lea r9, [rbp - 0x80]
mov qword [rsp + 0x20], rax
lea r8, str._s_s
lea rcx, [0x140051420]
call fcn.1400065c4
test eax, eax
jne 0x14002b83d
lea r8, [rsp + 0x58]
mov qword [rsp + 0x48], rbx
xor edx, edx
lea rcx, [0x140051420]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x14002b83d
mov eax, dword [rsp + 0x6c]
lea r8, str.TimeStamp
mov ecx, dword [rsp + 0x70]
lea rdx, str.SoftwareMicrosoftTPGHWRCustomization
shl rcx, 0x20
mov r9d, 0x40
add rcx, rax
mov dword [rsp + 0x40], 8
lea rax, [rsp + 0x40]
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x30], rax
mov rcx, rsi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_RegGetValueW]
mov r8, qword [rsp + 0x48]
test eax, eax
cmovne r8, rbx
cmp qword [rsp + 0x50], r8
jle 0x14002b83d
call fcn.14002b1e8
lea rax, [rsp + 0x48]
mov r9d, 2
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftTPGHWRCustomization
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002b83d
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], 8
lea rdx, str.TimeStamp
mov r9d, SafeArrayGetDim
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [0x140051418]
movabs rdx, 0x38d7ea4c68000
test eax, eax
cmovne rcx, rdx
mov qword [0x140051418], rcx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.1400362c0
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x14002de2c
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x14002de3a
xor eax, eax
mov qword [r8], rax
mov qword [r8 + 8], rax
test rcx, rcx
je 0x14002de6c
test edx, edx
je 0x14002de6c
test r8, r8
je 0x14002de6c
shr edx, 3
test edx, edx
je 0x14002de69
mov r9d, edx
mov rax, qword [rcx]
xor qword [r8], rax
mov rax, qword [rcx]
lea rcx, [rcx + 8]
add qword [r8 + 8], rax
sub r9, 1
jne 0x14002de52
xor eax, eax
ret
mov eax, 0x80070057
ret

Function at 0x14002e3d4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x14004ffa8]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rdx
mov rbx, rcx
test rdx, rdx
je 0x14002e407
mov rcx, rdx
call qword [sym.imp.OLEAUT32.dll_VariantClear]
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x14002e500
test rdi, rdi
je 0x14002e500
lea rdx, [0x1400405a8]
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wfopen]
mov rbp, rax
test rax, rax
jne 0x14002e443
mov eax, 0x80004005
jmp 0x14002e505
xor edx, edx
lea rcx, [rsp + 0x28]
lea r8d, [rdx + 0x38]
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wstat64]
mov r14, qword [rsp + 0x40]
mov eax, 0xffffffff
cmp r14, rax
ja 0x14002e439
mov ecx, 0x11
mov r8d, r14d
xor edx, edx
call qword [sym.imp.OLEAUT32.dll_SafeArrayCopyData]
xor ebx, ebx
mov r15d, 0x8007000e
test rax, rax
mov rsi, rax
cmove ebx, r15d
and qword [rsp + 0x20], 0
test ebx, ebx
js 0x14002e4e4
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
mov ebx, eax
test eax, eax
js 0x14002e4e4
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x14002e4e4
mov r8d, r14d
mov r9, rbp
mov edx, 1
call qword [sym.imp.msvcrt.dll_fread]
mov eax, 0x2011
mov qword [rdi + 8], rsi
mov rcx, rsi
mov word [rdi], ax
call qword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
mov ebx, eax
jmp 0x14002e4f3
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SafeArrayGetDim]
test ebx, ebx
cmovns ebx, r15d
mov rcx, rbp
call qword [sym.imp.msvcrt.dll_fclose]
mov eax, ebx
jmp 0x14002e505
mov eax, 0x80070057
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400362c0
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002e6c4
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, r8d
mov dword [rcx + 8], 0x80004005
mov rbx, rcx
lea r8, str.BFFF9080_1DAE_43B1_96B6_738575D01524
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rbx], rax
test rax, rax
je 0x14002e71e
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14002e708
and dword [rbx + 8], eax
jmp 0x14002e740
mov rcx, qword [rbx]
mov dword [rbx + 8], 0x102
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rbx], 0
jmp 0x14002e740
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov dword [rbx + 8], ecx
test ecx, ecx
jne 0x14002e740
mov dword [rbx + 8], 0x80004005
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14002eab4
Capabilities:
Create directory
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x14004ffa8]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor edx, edx
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor edi, edi
test eax, eax
jne 0x14002eb52
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14002eb52
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x14002eb4b
mov r8, rbx
lea rcx, [rsp + 0x20]
mov edx, 0x104
call fcn.140006470
lea edx, [rdi + 0x5c]
lea rcx, [rsp + 0x20]
call qword [sym.imp.msvcrt.dll_wcsrchr]
test rax, rax
je 0x14002eb4b
lea rcx, [rsp + 0x20]
cmp rax, rcx
je 0x14002eb4b
lea rcx, [rsp + 0x20]
mov word [rax], di
call fcn.14002eab4
test eax, eax
jne 0x14002eb4b
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14002eb52
mov eax, 0x80004005
jmp 0x14002eb62
mov edx, 0x2000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400362c0
mov rbx, qword [rsp + 0x258]
add rsp, 0x240
pop rdi
ret
Function at 0x14002edf0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x168]
sub rsp, 0x260
mov rax, qword [0x14004ffa8]
xor rax, rsp
mov qword [rbp + 0x150], rax
and qword [rsp + 0x38], 0
lea r8, str.SoftwareMicrosoftTPGSystem_Recognizers
and dword [rsp + 0x40], 0
mov rbx, rdx
and dword [rsp + 0x30], 0
mov rdi, rcx
mov esi, 0x100
lea rcx, [rsp + 0x50]
mov edx, esi
call fcn.140006470
lea r8, [0x14003f144]
mov edx, esi
lea rcx, [rsp + 0x50]
call fcn.1400064f4
mov r8, rbx
lea rcx, [rsp + 0x50]
mov edx, esi
call fcn.1400064f4
lea rax, [rsp + 0x38]
mov r9d, 0x20119
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x50]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002ef31
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rsi, str.Recognized_Languages
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rdx, rsi
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RegQueryValueExW]
test eax, eax
jne 0x14002ef26
cmp dword [rsp + 0x40], 3
jne 0x14002ef26
cmp dword [rsp + 0x30], 2
jbe 0x14002ef68
mov ecx, dword [rsp + 0x30]
lea rdx, [0x14003c468]
call fcn.140036d90
mov rbx, rax
test rax, rax
je 0x14002ef26
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_RegQueryValueExW]
mov rcx, rbx
test eax, eax
je 0x14002ef5b
call fcn.140035cb4
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.1400362c0
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
movzx eax, word [rbx]
mov word [rdi], ax
call fcn.140035cb4
jmp 0x14002ef8f
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_RegQueryValueExW]
test eax, eax
jne 0x14002ef26
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
sete al
jmp 0x14002ef33
Function at 0x1400354a8
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rcx, qword [0x140051638]
test rcx, rcx
jne 0x1400354ce
call fcn.140035568
test eax, eax
je 0x140035507
mov rcx, qword [0x140051638]
call qword [sym.imp.api_ms_win_core_interlocked_l1_1_0.dll_InterlockedPopEntrySList]
xor ecx, ecx
test rax, rax
je 0x1400354eb
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov dword [rax + 0x10], ecx
mov word [rax + 0x14], cx
jmp 0x14003555b
mov edx, 0x1000
mov r9d, 0x40
mov r8d, edx
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x14003550b
xor eax, eax
jmp 0x14003555b
mov eax, dword [rax]
mov rcx, qword [0x140051638]
call qword [sym.imp.api_ms_win_core_interlocked_l1_1_0.dll_InterlockedPopEntrySList]
mov rdi, rax
test rax, rax
je 0x140035538
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualFree]
mov rax, rdi
jmp 0x14003555b
lea rdi, [rbx + 0xfe0]
mov rcx, qword [0x140051638]
mov rdx, rbx
call qword [sym.imp.api_ms_win_core_interlocked_l1_1_0.dll_InterlockedPushEntrySList]
add rbx, 0x20
cmp rbx, rdi
jb 0x14003553f
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14003602c
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, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x1400516a0], rbx
je 0x140036093
cmp rax, rbx
jne 0x140036086
mov ebx, 1
mov esi, ebx
jmp 0x140036098
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14003606b
mov ebx, 1
mov eax, dword [0x1400516a8]
cmp eax, ebx
jne 0x1400360b0
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x14003611c
mov eax, dword [0x1400516a8]
test eax, eax
jne 0x140036111
mov dword [0x1400516a8], ebx
lea r15, [0x14003be40]
lea rdi, [0x14003be28]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x140036103
test eax, eax
jne 0x140036107
cmp qword [rdi], r14
je 0x1400360f8
mov rax, qword [rdi]
mov rcx, qword [case.0x140024a15.0]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x1400360da
test eax, eax
je 0x140036117
mov eax, 0xff
jmp 0x140036272
mov dword [0x14005034c], ebx
mov edi, 0x1f
mov eax, dword [0x1400516a8]
cmp eax, ebx
jne 0x140036143
lea rdx, [0x14003be20]
lea rcx, [0x14003bd78]
call sub.msvcrt.dll__initterm
mov dword [0x1400516a8], 2
test esi, esi
jne 0x140036151
mov rax, r14
xchg qword [0x1400516a0], rax
cmp qword [0x1400516c0], r14
je 0x140036184
lea rcx, [0x1400516c0]
call fcn.1400369f0
test eax, eax
je 0x140036184
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x1400516c0]
mov r9, qword [case.0x140024a15.0]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14003619d
mov eax, 0xff
jmp 0x140036272
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x140036223
test ax, ax
je 0x1400361b8
test edx, edx
jne 0x140036223
sub ax, bx
cmp ax, di
ja 0x1400361ce
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x1400361b8
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140009598
mov dword [0x140050348], eax
cmp dword [0x140050368], r14d
jne 0x14003620c
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14005034c], r14d
jne 0x140036221
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140050348]
jmp 0x140036272
cmp ax, 0x22
jne 0x140036237
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400361a6
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.140036a70
add rsp, 0x28
jmp 0x14003602c
Function at 0x140036900
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14003694c
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140036944
cmp dword [rcx + 0x3c], edx
jl 0x140036944
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140036944
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14003694c
mov rax, rdx
add rsp, 0x18
ret

Function at 0x140036b54
Capabilities:
Print debug messages

Disassembly:
jmp 0x140036b5c
push rbx
sub rsp, 0x540
mov rax, qword [0x14004ffa8]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x140036bd9
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlVirtualUnwind]
jmp 0x140036bf9
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.1400362c0
add rsp, 0x540
pop rbx
ret

Function at 0x140036b5c
Capabilities:
Print debug messages

Disassembly:
jmp 0x140036b5c
push rbx
sub rsp, 0x540
mov rax, qword [0x14004ffa8]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x140036bd9
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlVirtualUnwind]
jmp 0x140036bf9
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.1400362c0
add rsp, 0x540
pop rbx
ret
Function at 0x140008e84
Capabilities:
Hash data with crc32

Disassembly:
mov rax, qword [rcx + 0x1e8]
mov r10, r8
movsxd r9, dword [rcx + 0x1e0]
mov r11, rdx
mov rcx, r11
mov r8d, dword [rax + r9*4 - 4]
mov eax, r10d
sub eax, edx
neg r10
sbb edx, edx
and edx, eax
jmp fcn.1400098dc

Function at 0x14000956c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
movsxd r15, r9d
mov rsi, r8
test r8, r8
je 0x140009593
and qword [r8], 0
call fcn.1400096a8
mov rbx, rax
test rax, rax
je 0x14000968c
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140009683
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140009683
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140009683
mov rax, qword [0x1401527b0]
mov rbp, rdi
test rax, rax
je 0x1400095fb
inc dword [rax + 0x3c8]
mov rdx, qword [0x1401527c0]
lea rcx, [r15 + rdi]
call qword [section..data]
mov rdi, rax
test rax, rax
je 0x140009683
mov r9, rbx
mov r8, rbp
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, rbp
je 0x14000965a
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1401527b0]
test rax, rax
je 0x140009648
dec dword [rax + 0x3c8]
mov rdx, qword [0x1401527c0]
mov rcx, rdi
call qword [0x1400fa008]
jmp 0x14000968c
test r15d, r15d
jle 0x14000966d
lea rcx, [rdi + rbp]
mov r8, r15
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x14000967e
mov qword [rsi], rbp
mov rax, rdi
jmp 0x14000968e
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x1400098dc
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
cmp dword [0x1401527e4], 0
lea rsi, [0x1401527e0]
mov ebx, r8d
mov edi, edx
mov r10, rcx
jne 0x140009943
xor r9d, r9d
mov r11, rsi
mov r8d, r9d
mov edx, 8
mov ecx, r8d
mov eax, r8d
and ecx, 1
shr eax, 1
neg ecx
and ecx, 0xedb88320
mov r8d, ecx
xor r8d, eax
sub rdx, 1
jne 0x140009911
mov dword [r11], r8d
inc r9d
add r11, 4
cmp r9d, 0x100
jb 0x140009909
not ebx
mov edx, ebx
test edi, edi
jle 0x140009965
movzx eax, byte [r10]
inc r10
movzx ecx, dl
xor rcx, rax
shr edx, 8
xor edx, dword [rsi + rcx*4]
sub edi, 1
jne 0x14000994b
jmp 0x14000999f
mov r8b, byte [r10]
inc r10
test r8b, r8b
je 0x14000999f
mov r9b, 0x23
cmp r8b, r9b
jne 0x140009984
cmp byte [r10], r9b
jne 0x140009984
cmp byte [r10 + 1], r9b
cmove edx, ebx
movzx ecx, dl
movzx eax, r8b
mov r8b, byte [r10]
xor rcx, rax
shr edx, 8
inc r10
xor edx, dword [rsi + rcx*4]
test r8b, r8b
jne 0x140009973
mov rbx, qword [rsp + 8]
not edx
mov rsi, qword [rsp + 0x10]
mov eax, edx
mov rdi, qword [rsp + 0x18]
ret
Function at 0x14000f760
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x1401527b0]
mov rbx, rcx
and dword [rax + 0x2d9c], 0
test rcx, rcx
je 0x14000f7c9
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call fcn.14000f7d4
lea rdx, [0x1400ad00c]
mov rcx, rbx
mov rdi, rax
call fcn.1400096a8
mov rbx, rax
test rax, rax
je 0x14000f7c9
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret