joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000c680
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x140022010]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x20], rcx
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x14000c79c
movsxd rax, dword [rdx + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14000c79c
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
xor edx, edx
mov qword [rsp + 0x50], rdx
mov ecx, dword [rax + rsi + 0xb0]
test ecx, ecx
jne 0x14000c6f8
mov qword [rdi], rdx
mov qword [rdi + 8], rdx
mov qword [rdi + 0x10], rdx
jmp 0x14000c7a9
lea rbx, [rsi + rcx]
mov ebp, dword [rax + rsi + 0xb4]
add rbp, rbx
mov eax, dword [rbx]
mov rcx, qword [rsp + 0x48]
test eax, eax
je 0x14000c78a
mov r8d, eax
cmp r8, rbp
jae 0x14000c78a
mov r9d, dword [rbx + 4]
test r9d, r9d
je 0x14000c78a
lea rax, [r8 + rsi]
mov qword [rsp + 0x28], rax
lea rax, [rbx + 8]
mov qword [rsp + 0x30], rax
lea rax, [r9 - 8]
shr rax, 1
mov dword [rsp + 0x38], eax
cmp rcx, rdx
je 0x14000c762
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rcx], xmm0
movsd xmm1, qword [rsp + 0x38]
movsd qword [rcx + 0x10], xmm1
add rcx, 0x18
mov qword [rsp + 0x48], rcx
jmp 0x14000c77e
lea r8, [rsp + 0x28]
mov rdx, rcx
lea rcx, [rsp + 0x40]
call fcn.14000cde0
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
mov eax, dword [rbx + 4]
add rbx, rax
mov eax, dword [rbx]
test eax, eax
jne 0x14000c711
mov rax, qword [rsp + 0x40]
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], rdx
jmp 0x14000c7a9
xor edx, edx
mov qword [rcx], rdx
mov qword [rcx + 8], rdx
mov qword [rcx + 0x10], rdx
mov rax, rdi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000ea10
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14000dd60
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x50
mov rax, qword [0x140022010]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor edx, edx
lea r9, [rsp + 0x20]
mov rsi, rcx
xor r14d, r14d
xor r8d, r8d
mov dword [rsp + 0x20], r14d
mov ebx, r14d
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x14000dde9
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rax
mov ecx, 0xb
mov rbx, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x14000dda0
test eax, eax
jns 0x14000de0a
test rbx, rbx
je 0x14000de0f
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x14000df04
test rbx, rbx
jne 0x14000de16
xor eax, eax
jmp 0x14000df04
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x80], rdi
mov edi, r14d
cmp dword [rbx], r14d
jbe 0x14000dee4
nop
mov ebp, edi
lea rdx, [rbx + 0x30]
imul rax, rbp, 0x128
mov qword [rsp + 0x28], r14
mov r8, 0xffffffffffffffff
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], 0xf
movzx ecx, word [rax + rbx + 0x2e]
add rcx, rax
add rdx, rcx
inc r8
cmp byte [rdx + r8], r14b
jne 0x14000de62
lea rcx, [rsp + 0x28]
call fcn.140005e70
cmp qword [rsi + 0x18], 0x10
mov rdx, rsi
jb 0x14000de82
mov rdx, qword [rsi]
cmp qword [rsp + 0x40], 0x10
lea rcx, [rsp + 0x28]
cmovae rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x14000df1a
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x14000deda
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000ded5
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000df6b
call fcn.14000ea30
inc edi
cmp edi, dword [rbx]
jb 0x14000de30
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rbp, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14000ea10
add rsp, 0x50
pop r14
pop rsi
pop rbx
ret
imul rax, rbp, 0x128
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
mov rdi, qword [rax + rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x14000df77
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000df72
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000df72
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000ea30
mov rax, rdi
jmp 0x14000def7
Function at 0x1400047e4
Capabilities:
Identify system language via api

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1400128b8]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea r14, str.en_US
mov rsi, rcx
mov qword [rcx], r14
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
mov word [rsp + 0x30], ax
mov ebx, 0x10
mov r9d, ebx
lea rdx, [0x140008110]
lea rax, [0x140004df0]
mov r8d, 0x1b3
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call sub.api_ms_win_crt_private_l1_1_0.dll__o_bsearch
xor ebp, ebp
test rax, rax
jne 0x14000485f
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400048e5
cmp dword [rax + 0xc], 0x7c
jne 0x14000486c
cmp word [rax + 8], 0x7f
jne 0x14000484f
mov r8, qword [rax]
or rcx, 0xffffffffffffffff
inc rcx
cmp word [r8 + rcx*2], bp
jne 0x140004873
inc rcx
cmp rcx, 0x7ffffffe
jbe 0x140004890
mov word [rsp + 0x38], bp
jmp 0x1400048d7
lea rax, [rsp + 0x38]
mov r9d, ebp
sub r8, rax
lea rdx, [rsp + 0x38]
lea rax, [rbx - 0x10]
add rax, rcx
je 0x1400048c0
movzx eax, word [r8 + rdx]
test ax, ax
je 0x1400048c0
mov word [rdx], ax
add rdx, 2
sub rbx, 1
jne 0x1400048a0
test rbx, rbx
jne 0x1400048cf
sub rdx, 2
mov r9d, 0x8007007a
mov word [rdx], bp
test r9d, r9d
jns 0x1400048e1
mov ecx, 0x7a
jmp 0x140004854
test ecx, ecx
jne 0x1400048f1
mov rcx, qword [rsp + 0x78]
call fcn.14000494c
jmp 0x14000492a
mov rbx, rbp
mov rdi, rbp
mov rdx, qword [rdi + r14]
lea rcx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
test eax, eax
je 0x14000491c
inc rbx
add rdi, 0x30
cmp rdi, 0x750
jb 0x1400048f7
jmp 0x14000492a
lea rax, [rbx + rbx*2]
shl rax, 4
add rax, r14
mov qword [rsi], rax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400050e0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x140005104
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140012e60], eax
call fcn.1400056f0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140012e60], 0
jne case.default.0x14000515a
mov ecx, 1
call fcn.1400056f0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
xchg ebp, eax
invalid
or al, 0xb9
enter 0x352c, 0x7d
or ch, dl
xchg edi, eax
add eax, 0x5abfc285
ret
jo 0x14001acab
mov ebx, 0x8b72f2
movabs al, byte [0xc7c9f29a3eac53be]
or dh, bl
scasb al, byte [rdi]
lahf
sub cl, byte [rsi + 0x3da97e7c]
add byte [rax - 0x4f65ebd2], dl
cmpsd dword [rsi], dword [rdi]
fnstcw word [rax - 0x4be2ee0f]
adc al, 0xa4
jge 0x14001ac93
sahf
invalid
int1
mov ah, 0x6d
jl 0x14001acc2
invalid
Function at 0x14000ace8
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x820
xor edx, edx
lea r8, str.DGVOODOOCOMM
mov rbp, rcx
xor r9d, r9d
lea rcx, [rdx - 3]
call qword [sym.imp.USER32.dll_FindWindowExW]
xor r14d, r14d
mov rbx, rax
test rax, rax
je 0x14000ae35
lea r15, [0x140000000]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x407
mov rcx, rbx
call qword [sym.imp.USER32.dll_SendMessageW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14000ae12
mov edi, r14d
mov rax, r14
mov ecx, 0x5b
mov word [rsp + rax + 0x20], cx
inc edi
mov eax, edi
add rax, rax
movzx ecx, word [rax + r15 + 0x25248]
test cx, cx
jne 0x14000ad67
mov r8d, 0x400
lea rdx, [rsp + 0x20]
add rdx, rax
sub r8d, edi
mov rcx, rbx
mov word [rdx], r14w
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea esi, [rdi + rax]
test rbx, rbx
je 0x14000aded
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40a
mov rcx, rbx
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x14000adff
mov edx, r14d
mov r8d, 0x20
lea eax, [rsi + rdx]
inc edx
mov word [rsp + rax*2 + 0x20], r8w
movzx r8d, word [r15 + rdx*2 + 0x25260]
test r8w, r8w
jne 0x14000adc8
lea eax, [rsi + rdx]
mov word [rsp + rax*2 + 0x20], r14w
jmp 0x14000adff
lea rdx, [rsp + 0x20]
mov rcx, rbp
call fcn.14000a6a8
cmp eax, 0xffffffff
jne 0x14000ae12
xor r9d, r9d
lea rdx, [rsp + 0x20]
mov r8, rbx
mov rcx, rbp
call fcn.14000a8f8
xor r9d, r9d
lea r8, str.DGVOODOOCOMM
mov rdx, rbx
lea rcx, [r9 - 3]
call qword [sym.imp.USER32.dll_FindWindowExW]
mov rbx, rax
test rax, rax
jne 0x14000ad32
lea r11, [rsp + 0x820]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret

Function at 0x14000d5f0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rcx, qword [rcx + 0x18]
mov rdi, r8
mov ebx, r9d
call qword [sym.imp.USER32.dll_GetDlgItem]
mov r9, rdi
mov r8d, ebx
mov rcx, rax
mov edx, 0xd
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.USER32.dll_SendMessageA]
Function at 0x14000e070
Capabilities:
Hide graphical window

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rcx, qword [rcx + 0x18]
mov ebx, r8d
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
mov edx, 0xffffffeb
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
xor r9d, r9d
mov rdi, rax
mov r10d, r9d
mov r8d, r9d
mov r11d, dword [rax + 0x10c]
test r11d, r11d
je 0x14000e0d9
cmp r9d, ebx
ja 0x14000e0d9
mov eax, dword [rdi + 0x108]
lea ecx, [r9 + 1]
mov edx, r8d
inc r10d
inc r8d
bt eax, edx
cmovae ecx, r9d
mov r9d, ecx
cmp r8d, r11d
jb 0x14000e0b2
lea esi, [r10 - 1]
cmp dword [rdi + 0x110], esi
je 0x14000e1ca
mov eax, dword [rdi + 0x110]
mov rbx, qword [rdi + rax*8 + 8]
cmp qword [rbx + 0x18], 0
jne 0x14000e14a
mov rdx, qword [rbx + 0x40]
test rdx, rdx
je 0x14000e122
mov r8, qword [rbx + 0x60]
lea r9, [0x14000ce10]
xor ecx, ecx
mov qword [rsp + 0x20], rbx
mov r8, qword [r8 + 0x18]
call qword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
jmp 0x14000e14a
mov eax, dword [rbx + 0x48]
test eax, eax
je 0x14000e14a
mov r8, qword [rbx + 0x60]
lea r9, [0x14000ce10]
mov rcx, qword [rbx + 0x50]
movzx edx, ax
mov qword [rsp + 0x20], rbx
mov r8, qword [r8 + 0x18]
call qword [sym.imp.USER32.dll_CreateDialogParamW]
mov rcx, qword [rbx + 0x18]
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
mov rbx, qword [rdi + rsi*8 + 8]
cmp qword [rbx + 0x18], 0
jne 0x14000e1b1
mov rdx, qword [rbx + 0x40]
test rdx, rdx
je 0x14000e189
mov r8, qword [rbx + 0x60]
lea r9, [0x14000ce10]
xor ecx, ecx
mov qword [rsp + 0x20], rbx
mov r8, qword [r8 + 0x18]
call qword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
jmp 0x14000e1b1
mov eax, dword [rbx + 0x48]
test eax, eax
je 0x14000e1b1
mov r8, qword [rbx + 0x60]
lea r9, [0x14000ce10]
mov rcx, qword [rbx + 0x50]
movzx edx, ax
mov qword [rsp + 0x20], rbx
mov r8, qword [r8 + 0x18]
call qword [sym.imp.USER32.dll_CreateDialogParamW]
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.dll_ShowWindow]
mov edx, esi
mov rcx, rdi
call fcn.14000e4b0
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14000e4b0
Capabilities:
Hide graphical window

Disassembly:
push rdi
sub rsp, 0x70
cmp qword [rcx], 0
mov rdi, rcx
mov dword [rcx + 0x110], edx
je 0x14000e65f
mov eax, edx
mov qword [rsp + 0x80], rbx
mov rbx, qword [rcx + rax*8 + 8]
cmp qword [rbx + 0x18], 0
jne 0x14000e52e
mov rdx, qword [rbx + 0x40]
test rdx, rdx
je 0x14000e506
mov r8, qword [rbx + 0x60]
lea r9, [0x14000ce10]
xor ecx, ecx
mov qword [rsp + 0x20], rbx
mov r8, qword [r8 + 0x18]
call qword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
jmp 0x14000e52e
mov eax, dword [rbx + 0x48]
test eax, eax
je 0x14000e52e
mov r8, qword [rbx + 0x60]
lea r9, [0x14000ce10]
mov rcx, qword [rbx + 0x50]
movzx edx, ax
mov qword [rsp + 0x20], rbx
mov r8, qword [r8 + 0x18]
call qword [sym.imp.USER32.dll_CreateDialogParamW]
mov rcx, qword [rbx + 0x18]
lea rdx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetClientRect]
mov rbx, qword [rdi]
cmp qword [rbx + 0x18], 0
jne 0x14000e596
mov rdx, qword [rbx + 0x40]
test rdx, rdx
je 0x14000e56e
mov r8, qword [rbx + 0x60]
lea r9, [0x14000ce10]
xor ecx, ecx
mov qword [rsp + 0x20], rbx
mov r8, qword [r8 + 0x18]
call qword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
jmp 0x14000e596
mov eax, dword [rbx + 0x48]
test eax, eax
je 0x14000e596
mov r8, qword [rbx + 0x60]
lea r9, [0x14000ce10]
mov rcx, qword [rbx + 0x50]
movzx edx, ax
mov qword [rsp + 0x20], rbx
mov r8, qword [r8 + 0x18]
call qword [sym.imp.USER32.dll_CreateDialogParamW]
mov rcx, qword [rbx + 0x18]
lea rdx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetClientRect]
mov rcx, qword [rdi]
mov r8d, dword [rsp + 0x3c]
sub r8d, dword [rsp + 0x34]
mov edx, dword [rsp + 0x4c]
sub edx, dword [rsp + 0x44]
cmp edx, r8d
setl al
xor ebx, ebx
mov byte [rdi + 0x114], al
cmp edx, r8d
mov edx, dword [rcx + 0x5c]
mov eax, 8
mov rcx, qword [rcx + 0x18]
cmovl ebx, eax
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
mov edx, ebx
call qword [sym.imp.USER32.dll_ShowWindow]
cmp byte [rdi + 0x114], 0
mov rbx, qword [rsp + 0x80]
je 0x14000e65f
mov rcx, qword [rdi]
mov eax, dword [rsp + 0x3c]
sub eax, dword [rsp + 0x34]
mov dword [rsp + 0x5c], eax
mov eax, dword [rsp + 0x4c]
sub eax, dword [rsp + 0x44]
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x50], 0x1c
mov qword [rsp + 0x54], 7
mov dword [rsp + 0x64], 0
mov edx, dword [rcx + 0x5c]
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov r9d, 1
lea r8, [rsp + 0x50]
mov rcx, rax
lea edx, [r9 + 1]
call qword [sym.imp.USER32.dll_SetScrollInfo]
xor edx, edx
mov rcx, rdi
call fcn.14000e670
add rsp, 0x70
pop rdi
ret
Function at 0x1400214a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140021545
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x140021545
mov ecx, eax
call fcn.140021978
mov r8, rsi
mov rdx, rbp
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
je 0x14002153d
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test eax, eax
je 0x14002153d
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14002153d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
je 0x14002153d
mov r8d, esi
mov rdx, rax
mov rcx, rdi
call fcn.140021cd0
mov rax, rdi
jmp 0x140021547
mov rcx, rdi
call fcn.140021950
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140021790
Capabilities:
Get file size

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 8]
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400217b7
cmp dword [rsp + 0x34], 0
jne 0x1400217b7
mov eax, dword [rsp + 0x30]
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400217d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rcx, qword [rcx + 8]
mov edi, edx
xor edx, edx
mov rbx, r9
mov r10, r8
mov dword [rsp + 0x40], edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14002183c
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x40]
mov rdx, r10
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x14002183c
test rbx, rbx
je 0x140021829
mov eax, dword [rsp + 0x40]
mov dword [rbx], eax
xor eax, eax
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rsp + 0x40], edi
jne 0x14002183c
xor eax, eax
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x48]
mov eax, 1
add rsp, 0x30
pop rdi
ret

Function at 0x1400218b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rcx, qword [rcx + 8]
mov edi, edx
xor edx, edx
mov rbx, r9
mov r10, r8
mov dword [rsp + 0x40], edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14002191c
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x40]
mov rdx, r10
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x14002191c
test rbx, rbx
je 0x140021909
mov eax, dword [rsp + 0x40]
mov dword [rbx], eax
xor eax, eax
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rsp + 0x40], edi
jne 0x14002191c
xor eax, eax
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x48]
mov eax, 1
add rsp, 0x30
pop rdi
ret
Function at 0x411aa0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x411c2b
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [0x00b58138]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.0042c1a0
xorps xmm15, xmm15
mov r14, qword [0x00bb17f8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x411b05
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x411b14
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x411b33
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x411b43
cmp rbx, 0x1000
jae 0x411b0b
jmp 0x411bad
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x411b55
xor edx, edx
jmp 0x411ba4
mov rcx, qword [0x00b58138]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.0042c1a0
xorps xmm15, xmm15
mov r14, qword [0x00bb17f8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
test dl, dl
jne 0x411b39
jmp 0x411b28
call fcn.00458a40
xorps xmm15, xmm15
mov r14, qword [0x00bb17f8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.00430500
lea rax, [0x00475568]
mov ebx, 0x18
nop dword [rax]
call fcn.00430d80
mov rax, qword [rsp + 0x38]
call fcn.00430ac0
lea rax, [0x0047582e]
mov ebx, 0x19
nop dword [rax + rax]
call fcn.00430d80
mov rax, qword [rsp + 0x30]
call fcn.00430ac0
call fcn.00430740
call fcn.00430560
lea rax, [0x00476f63]
mov ebx, 0x21
call fcn.0042eb60
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.004553a0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00411aa0
Function at 0x411c60
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x411e86
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbx
mov rcx, qword [0x00b58140]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call fcn.0042c220
xorps xmm15, xmm15
mov r14, qword [0x00bb17f8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x60]
mov rcx, rax
cmp qword [rsp + 0x28], rax
je 0x411cd3
mov rbx, qword [rsp + 0x68]
mov rax, rbx
jmp 0x411ce2
add rsp, 0x50
pop rbp
ret
sub rdx, rbx
add rcx, rbx
mov rbx, rdx
test rbx, rbx
jbe 0x411d05
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov rdx, rbx
jmp 0x411d15
cmp rbx, 0x1000
jae 0x411cd9
nop
jmp 0x411d98
add rsp, 0x50
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
nop word [rax + rax]
cmp rbx, 0x1000
jae 0x411d2d
xor esi, esi
jmp 0x411d8a
mov rax, qword [0x00b58140]
mov qword [rsp], rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call fcn.0042c220
xorps xmm15, xmm15
mov r14, qword [0x00bb17f8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x28], 0
sete al
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
mov esi, eax
mov rax, qword [rsp + 0x68]
test sil, sil
jne 0x411d0b
jmp 0x411cf6
call fcn.00458a40
xorps xmm15, xmm15
mov r14, qword [0x00bb17f8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov dword [rsp + 0x34], eax
cmp eax, 8
jne 0x411e20
nop dword [rax + rax]
call fcn.00430500
lea rax, [0x00475847]
mov ebx, 0x19
call fcn.00430d80
mov rax, qword [rsp + 0x68]
nop dword [rax + rax]
call fcn.00430ac0
lea rax, [0x0047582e]
mov ebx, 0x19
call fcn.00430d80
mov eax, dword [rsp + 0x34]
call fcn.00430ac0
nop
call fcn.00430740
call fcn.00430560
lea rax, [0x00473623]
mov ebx, 0xd
call fcn.0042eb60
nop dword [rax + rax]
cmp eax, 0x5af
je 0x411dc0
call fcn.00430500
lea rax, [0x00475847]
mov ebx, 0x19
call fcn.00430d80
mov rax, qword [rsp + 0x38]
call fcn.00430ac0
lea rax, [0x0047582e]
mov ebx, 0x19
call fcn.00430d80
mov eax, dword [rsp + 0x34]
nop dword [rax]
call fcn.00430ac0
call fcn.00430740
call fcn.00430560
lea rax, [0x004769c5]
mov ebx, 0x1f
nop dword [rax + rax]
call fcn.0042eb60
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.004553a0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
nop
jmp fcn.00411c60