joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18005d680
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edx, edx
lea r8, str.GlobalUFH_DC27E4C7_C59E_4710_927B_9F9C958092B1
lea ecx, [rdx + 2]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenEventW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x18005d6c1
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 2
jne 0x18005d6f5
xor ebx, ebx
jmp 0x18005d6f5
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
nop dword [rax + rax]
test eax, eax
jne 0x18005d6e4
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x18005d6e6
xor ebx, ebx
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x18005d70c
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x290
mov rax, qword [0x180083330]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0x208
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
and qword [rsp + 0x58], 0
lea rax, [rsp + 0x64]
and qword [rsp + 0x50], 0
xor r9d, r9d
and qword [rsp + 0x48], 0
xor r8d, r8d
and qword [rsp + 0x40], 0
xor edx, edx
and dword [rsp + 0x60], 0
mov rcx, rdi
and dword [rsp + 0x64], 0
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryInfoKeyW]
nop dword [rax + rax]
cmp dword [rsp + 0x64], 0x258
jbe 0x18005d853
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.18005d880
test eax, eax
jne 0x18005d855
lea rcx, [0x180084178]
call qword [sym.imp.ntdll.dll_RtlAcquireSRWLockExclusive]
nop dword [rax + rax]
mov ebx, dword [0x180084170]
lea rcx, [0x180084178]
call qword [sym.imp.ntdll.dll_RtlReleaseSRWLockExclusive]
nop dword [rax + rax]
jmp 0x18005d819
mov r9d, 0xa
lea rdx, [rsp + 0x70]
mov r8d, 0x104
mov ecx, ebx
call sub.api_ms_win_crt_private_l1_1_0.dll__o__itow_s
lea rdx, [rsp + 0x70]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
nop dword [rax + rax]
cmp eax, 2
jne 0x18005d821
inc ebx
cmp ebx, dword [rsp + 0x60]
jb 0x18005d7e6
jmp 0x18005d825
test eax, eax
jne 0x18005d855
lea rcx, [0x180084178]
inc ebx
call qword [sym.imp.ntdll.dll_RtlAcquireSRWLockExclusive]
nop dword [rax + rax]
lea rcx, [0x180084178]
mov dword [0x180084170], ebx
call qword [sym.imp.ntdll.dll_RtlReleaseSRWLockExclusive]
nop dword [rax + rax]
xor eax, eax
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.180062960
mov rbx, qword [rsp + 0x2a8]
add rsp, 0x290
pop rdi
ret
Function at 0x18005d880
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x270
mov rax, qword [0x180083330]
xor rax, rsp
mov qword [rsp + 0x260], rax
and dword [rsp + 0x44], 0
mov rsi, rcx
lea rcx, [0x180084178]
mov rbp, rdx
xor edi, edi
call qword [sym.imp.ntdll.dll_RtlAcquireSRWLockExclusive]
nop dword [rax + rax]
mov eax, dword [0x180084168]
test eax, eax
je 0x18005d8d8
mov dword [rsi], eax
jmp 0x18005d95f
and qword [rsp + 0x38], rdi
lea rax, [rsp + 0x44]
and qword [rsp + 0x30], rdi
xor r14d, r14d
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], rdi
xor edx, edx
jmp 0x18005d92d
test ebx, ebx
jne 0x18005d961
lea rcx, [rsp + 0x50]
call sub.api_ms_win_crt_private_l1_1_0.dll__o__wtoi
cmp eax, edi
cmovae edi, eax
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
lea rax, [rsp + 0x44]
inc r14d
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
mov edx, r14d
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], 0x104
lea r8, [rsp + 0x50]
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumValueW]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0x103
jne 0x18005d8f8
mov dword [0x180084168], edi
mov dword [rsi], edi
xor ebx, ebx
lea rcx, [0x180084178]
call qword [sym.imp.ntdll.dll_RtlReleaseSRWLockExclusive]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.180062960
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x18005d9a8
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x180083330]
xor rax, rsp
mov qword [rbp + 0x180], rax
and qword [rsp + 0x50], 0
lea rcx, [rsp + 0x70]
mov r15, r8
mov r14, rdx
xor edx, edx
mov r8d, 0x208
mov r12, r9
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
and dword [rsp + 0x58], 0
lea rax, [rsp + 0x50]
xor esi, esi
mov qword [rsp + 0x20], rax
and dword [rsp + 0x5c], esi
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionUFHSHC
mov edi, 0xf003f
mov qword [rsp + 0x60], rsi
mov r9d, edi
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 2
jne 0x18005da78
and qword [rsp + 0x40], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionUFHSHC
and qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], edi
xor r8d, r8d
and dword [rsp + 0x20], esi
mov rcx, 0xffffffff80000001
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
nop dword [rax + rax]
mov ebx, eax
test ebx, ebx
jne 0x18005db5a
mov rcx, qword [rsp + 0x50]
call fcn.18005d70c
mov ebx, eax
test eax, eax
jne 0x18005db5a
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x58]
call fcn.18005d880
mov ebx, eax
test eax, eax
jne 0x18005db5a
mov edi, dword [rsp + 0x58]
lea r9d, [rax + 0xa]
mov ecx, edi
lea rdx, [rsp + 0x70]
mov r8d, 0x104
call sub.api_ms_win_crt_private_l1_1_0.dll__o__itow_s
test eax, eax
je 0x18005dad5
mov ebx, 0x54f
jmp 0x18005db5a
mov r9, r15
mov qword [rsp + 0x20], r12
mov r8, r14
lea rdx, [rsp + 0x5c]
lea rcx, [rsp + 0x60]
call fcn.18005dbc0
mov rsi, qword [rsp + 0x60]
mov ebx, eax
test eax, eax
jne 0x18005db5a
mov eax, dword [rsp + 0x5c]
lea r9d, [rbx + 7]
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x70]
add eax, eax
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x18005db5a
lea rcx, [0x180084178]
inc edi
call qword [sym.imp.ntdll.dll_RtlAcquireSRWLockExclusive]
nop dword [rax + rax]
lea rcx, [0x180084178]
mov dword [0x180084168], edi
call qword [sym.imp.ntdll.dll_RtlReleaseSRWLockExclusive]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x18005db70
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
test rsi, rsi
je 0x18005db95
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.180062960
add rsp, 0x290
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x18005faf8
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov dword [r11 + 0x20], r9d
mov qword [r11 + 0x18], r8
sub rsp, 0x48
and dword [rsp + 0x68], 0
lea rax, [r11 + 0x18]
mov qword [r11 - 0x18], rax
lea r8, str.ResetCacheCount
lea rax, [r11 + 0x20]
mov dword [rsp + 0x60], 4
mov qword [r11 - 0x20], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionImmersiveShellStateStore
and qword [r11 - 0x28], 0
mov r9d, 0x10
mov rcx, 0xffffffff80000001
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x18005fb6a
mov eax, dword [rsp + 0x68]
inc eax
jmp 0x18005fb6f
mov eax, 1
mov dword [rsp + 0x68], eax
lea r8, str.ResetCacheCount
mov dword [rsp + 0x60], eax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionImmersiveShellStateStore
lea rax, [rsp + 0x60]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
call fcn.1800282e0
mov ecx, eax
movzx eax, ax
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
add rsp, 0x48
ret

Function at 0x180060da4
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x40
mov ecx, 0x34
call qword [sym.imp.SHCORE.dll_Ordinal_130]
nop dword [rax + rax]
cmp eax, dword [0x180083548]
mov ebx, eax
je 0x180060eb2
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x30], rax
lea r8, str.GlobalAssocChangedCounter
lea rax, [rsp + 0x58]
mov r9d, 0x10
mov qword [rsp + 0x28], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionExplorer
and qword [rsp + 0x20], 0
mov rcx, 0xffffffff80000002
xor dil, dil
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x180060e38
mov eax, dword [rsp + 0x58]
mov dil, 1
mov dword [0x180083544], eax
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x30], rax
lea r8, str.GlobalAssocChangedCounter
lea rax, [rsp + 0x60]
mov r9d, 0x10
mov qword [rsp + 0x28], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionExplorer
and qword [rsp + 0x20], 0
mov rcx, 0xffffffff80000001
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x180060ea0
mov eax, dword [rsp + 0x60]
mov dil, 1
mov dword [0x180083540], eax
mov eax, dword [0x180083548]
test dil, dil
cmovne eax, ebx
mov dword [0x180083548], eax
mov eax, dword [0x180083540]
add eax, dword [0x180083544]
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x1800630bc
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x180083bf0], eax
call fcn.180062ec0
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x180083bf0], 0
jne 0x1800630ff
mov ecx, 1
call fcn.180062ec0
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
Function at 0x140003d10
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x13d0
call fcn.140010fb0
sub rsp, rax
mov rax, qword [0x14371b080]
xor rax, rsp
mov qword [rsp + 0x13c0], rax
mov r15, r8
movsxd rsi, edx
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor ebx, ebx
mov dword [rsp + 0x20], ebx
call fcn.14000feb8
mov r9d, eax
mov dword [rsp + 0x13b4], 0xffffffff
mov dword [rsp + 0x34], eax
mov ecx, 1
nop word [rax + rax]
mov eax, r9d
shr eax, 0x1e
xor eax, r9d
imul r9d, eax, 0x6c078965
add r9d, ecx
mov dword [rsp + rcx*4 + 0x34], r9d
inc rcx
cmp rcx, 0x270
jb 0x140003d80
mov dword [rsp + 0x30], 0x270
mov r14d, dword [r15 + 0x10]
dec r14d
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], 0xf
mov byte [rdi], bl
mov dword [rsp + 0x20], 1
mov r12, rsi
test esi, esi
je 0x140003eac
mov r13d, 0x80000000
xor r14d, r13d
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x30]
cmp r14d, 0x7fffffff
jne 0x140003e07
call fcn.14000c480
mov ecx, eax
jmp 0x140003e4c
lea esi, [r14 - 0x7fffffff]
call fcn.14000c480
mov ebp, esi
mov ecx, eax
imul rcx, rbp
cmp ecx, esi
jae 0x140003e48
mov eax, esi
neg eax
xor edx, edx
div esi
mov esi, edx
cmp ecx, edx
jae 0x140003e48
nop dword [rax]
lea rcx, [rsp + 0x30]
call fcn.14000c480
mov ecx, eax
imul rcx, rbp
cmp ecx, esi
jb 0x140003e30
mov rbx, qword [rdi + 0x10]
shr rcx, 0x20
lea eax, [rcx + r13]
xor eax, r13d
mov rcx, r15
cmp qword [r15 + 0x18], 0xf
jbe 0x140003e60
mov rcx, qword [r15]
cdqe
movzx r9d, byte [rax + rcx]
mov rcx, qword [rdi + 0x18]
cmp rbx, rcx
jae 0x140003e8f
lea rax, [rbx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rcx, 0xf
jbe 0x140003e84
mov rax, qword [rdi]
mov byte [rax + rbx], r9b
mov byte [rax + rbx + 1], 0
jmp 0x140003e9f
xor r8d, r8d
mov edx, 1
mov rcx, rdi
call fcn.14000ae10
mov rbx, qword [rdi + 0x10]
cmp r12, rbx
ja 0x140003df0
mov rax, rdi
mov rcx, qword [rsp + 0x13c0]
xor rcx, rsp
call fcn.1400106c0
lea r11, [rsp + 0x13d0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140006150
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x30
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x140006174
xor eax, eax
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
je 0x140006202
mov rdi, r15
mov qword [rsp + 0x68], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400061d0
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x1400061d0
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.140033030
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x1400061ed
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x1400061f5
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x140006191
mov rbp, qword [rsp + 0x68]
sub r15, rdi
jmp 0x1400062e0
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x140006219
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000621b
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000624d
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.140033030
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x1400062dd
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140006288
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rsi, 0xfff
jbe 0x1400062be
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.14001a100
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x1400062dd
cmp rsi, rax
ja 0x140006291
test rsi, rsi
je 0x1400062dd
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14001a100
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x28]
mov rax, r15
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
Function at 0x14000c480
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x14000c4e1
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x14000c4a0
mov ecx, dword [r9]
jmp 0x14000c5cb
cmp ecx, 0x4e0
jb 0x14000c5cb
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x14000c500
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x14000c550
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x14001156c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400115b6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400115b6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400115b6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400115b6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400115b6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400115b8
xor al, al
add rsp, 0x28
ret

Function at 0x14001622c
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14001629b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001629b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001629b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001629b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001629b
cmp dword [rcx + 0x84], 0xe
jbe 0x14001629b
cmp dword [rcx + 0xf8], 0
je 0x14001629b
mov ecx, ebx
call fcn.14001634c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140016128
nop
cmp dword [rbp + 0x20], 0
je 0x1400162e9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400162f4
int3
xor r8d, r8d
xor edx, edx
jmp 0x14001622c

Function at 0x140016430
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14001629b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001629b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001629b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001629b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001629b
cmp dword [rcx + 0x84], 0xe
jbe 0x14001629b
cmp dword [rcx + 0xf8], 0
je 0x14001629b
mov ecx, ebx
call fcn.14001634c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140016128
nop
cmp dword [rbp + 0x20], 0
je 0x1400162e9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400162f4
int3
xor r8d, r8d
xor edx, edx
jmp 0x14001622c
Function at 0x14001fa90
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001faa6
mov al, 1
jmp 0x14001fb06
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001fab7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001fb04
mov ecx, dword [rcx + 0x18]
nop
call fcn.14002a36c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001fb04
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001fb04
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001fb04
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001fb06
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140024994
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140010fb0
sub rsp, rax
mov rax, qword [0x14371b080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001f970
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400249e3
mov rax, rbp
jmp 0x140024aeb
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x371d390]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400263b4
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x371d390]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140024ae7
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140024ae7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400263b4
test rax, rax
js 0x140024ae7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140024ae7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140024ad9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140024ad9
cmp byte [rcx], 0xd
jne 0x140024abf
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140024ace
cmp byte [rcx + 1], 0xa
jne 0x140024ace
inc rcx
jmp 0x140024ace
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x371b4c0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140024aa1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140024aeb
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400106c0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret