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

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x0040c624]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x401e98
mov rax, qword [0x0040c628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x401d5c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x401de5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x401d40
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x401ecd
mov rax, qword [0x0040c628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x0040c628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401eb0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x401dde
sub eax, 0x40
and eax, 0xffffffbf
jne 0x401e40
add dword [0x0040c624], 1
cmp edi, 8
jae 0x401e13
test dil, 4
jne 0x401e84
test edi, edi
je 0x401e08
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x401e9f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x401e08
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x401e2c
jmp 0x401e08
add rsi, qword [0x0040c628]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x401dde
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x401e08
xor esi, esi
jmp 0x401d67
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x401e08
mov rax, qword [0x0040c628]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x402620
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0040c900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0040c8e0]
test rbx, rbx
je 0x402674
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x40266b
test rsi, rsi
je 0x40266b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402650
lea rcx, [0x0040c900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x4028b0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x4028c0
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x4028d0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x402911
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x402908
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x402913
add rax, 0x28
cmp rax, r9
jne 0x4028f4
xor eax, eax
ret

Function at 0x4029b0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00409bb0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x402a1d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402a1d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x402a1d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x402a14
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402a1f
add rax, 0x28
cmp rax, r9
jne 0x402a00
xor eax, eax
add rsp, 0x28
ret

Function at 0x402b20
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00409bb0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x402b40
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402b38
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x402b9d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x402b94
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402ba4
add rax, 0x28
cmp rax, r9
jne 0x402b80
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x402bc0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x00409bb0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x402c2e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402c2e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x402c2e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x402c2e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x402c25
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x402c35
add rcx, 0x28
cmp rcx, rax
jne 0x402c10
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x402c48
jmp 0x402c2e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x402c56
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x402c2e
test r9d, r9d
jg 0x402c40
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x407b20
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140584058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1405841df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140584089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14058406f
add dl, dl
jne 0x140584096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405840f6
xor eax, eax
add dl, dl
jne 0x1405840a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405841ad
add dl, dl
jne 0x1405840b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405840c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405840d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405840dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1405840ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14058407e
mov eax, 1
add dl, dl
jne 0x140584106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140584113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405840fb
sub eax, ebx
mov ebx, 1
jne 0x14058414c
mov ecx, 1
add dl, dl
jne 0x14058412e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14058413b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140584123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14058407e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140584168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140584175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14058415d
cmp eax, 0x7d00
jae 0x14058419b
cmp eax, 0x500
jb 0x140584196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14058407e
cmp eax, 0x7f
ja 0x14058419e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14058407e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1405841d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14058407e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001360
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push rsi
push rdi
sub rsp, 0x278
mov rax, qword [0x140045040]
xor rax, rsp
mov qword [rsp + 0x260], rax
test rdx, rdx
mov rdi, rdx
mov rsi, rcx
je 0x140001464
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x140001464
lea rax, [rsp + 0x40]
mov r9d, 0x10108
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140001469
mov qword [rsp + 0x2a0], rbx
mov qword [rsp + 0x270], rbp
xor ebp, ebp
nop
nop
nop
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x50]
xor edx, edx
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x48], 0x104
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
mov ebx, eax
je 0x140001437
test eax, eax
jne 0x140001445
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x50]
call fcn.140001360
test eax, eax
mov ebx, eax
je 0x1400013e0
jmp 0x140001445
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, qword [rsp + 0x270]
mov eax, ebx
mov rbx, qword [rsp + 0x2a0]
jmp 0x140001469
mov eax, 0x3f2
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140018f50
add rsp, 0x278
pop rdi
pop rsi
ret
Function at 0x140006f18
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x280
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140045040]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], rdx
lea r8, [rsp + 0x30]
mov rdx, qword [rdx]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov ebx, eax
test eax, eax
jne 0x140007017
mov r9d, 0x104
lea r8, [rsp + 0x60]
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov ebx, eax
test eax, eax
jne 0x140006fee
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x28]
call fcn.140003598
nop
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
call fcn.140006f18
mov ebx, eax
test eax, eax
setne byte [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140006fd5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp byte [rsp + 0x20], 0
je 0x140006fde
jmp 0x140006fee
jmp 0x140006f6e
cmp ebx, 0x103
je 0x140006ffe
cmp ebx, 0x3f2
jne 0x14000700c
mov rdx, qword [rsi]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140018f50
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x14000a3b8
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, ecx
call fcn.14001143c
mov rbx, rax
mov rax, qword [rax + 0x78]
test rax, rax
je 0x14000a3ef
mov rcx, qword [rax + 0x40]
test rcx, rcx
je 0x14000a3ef
xor r9d, r9d
xor r8d, r8d
mov edx, 0x401
call qword [sym.imp.USER32.dll_SendMessageW]
test edi, edi
mov rbx, qword [rbx + 0xa0]
je 0x14000a41f
test rbx, rbx
je 0x14000a41f
mov ecx, 1
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x14000a41f
mov rax, qword [rbx]
or rdx, 0xffffffffffffffff
mov rcx, rbx
call qword [rax + 0x2d0]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14001020c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x20
xor edi, edi
xor ebx, ebx
test rdx, rdx
mov rsi, rdx
mov rbp, rcx
je 0x140010274
call fcn.1400113ec
mov r8d, 0xf0
mov rdx, rsi
mov r12, qword [rax + 0x18]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140010274
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
mov rbx, rax
je 0x140010296
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov rdx, rdi
mov rcx, rbp
call fcn.14000fc68
test rdi, rdi
mov esi, eax
je 0x140010294
test rbx, rbx
je 0x140010294
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret

Function at 0x140012948
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x230
mov rax, qword [0x140045040]
xor rax, rsp
mov qword [rsp + 0x220], rax
test rcx, rcx
mov rbx, rdx
mov rdi, rcx
jne 0x14001297d
call fcn.140010554
int3
test rdx, rdx
jne 0x140012988
call fcn.140010554
int3
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
and word [rsp + 0x20], 0
lea rcx, [rsp + 0x22]
xor edx, edx
mov r8d, 0x1fe
mov esi, eax
call fcn.140019990
mov r8d, 0x100
cmp esi, r8d
ja 0x1400129da
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, esi
jne 0x1400129da
lea rcx, [rsp + 0x20]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1400129e6
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.140018f50
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140013634
Capabilities:
Set thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x20
mov esi, 1
mov r14, r8
mov rdi, rdx
cmp dword [rdx + 0x10], esi
mov r12, rcx
mov ebp, esi
jle 0x1400136c1
lea ebx, [rsi + 7]
lea r13d, [rsi + 0xf]
test r14, r14
je 0x14001368d
mov rax, qword [r12 + 0x10]
cmp qword [rax + r13 + 8], r14
je 0x14001368d
mov rax, qword [rdi + 0x18]
cmp qword [rbx + rax], 0
je 0x1400136ad
xor esi, esi
jmp 0x1400136ad
mov rax, qword [rdi + 0x18]
mov rcx, qword [rbx + rax]
test rcx, rcx
je 0x1400136a4
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rax, qword [rdi + 0x18]
and qword [rbx + rax], 0
add ebp, 1
add r13, 0x10
add rbx, 8
cmp ebp, dword [rdi + 0x10]
jl 0x14001366d
test esi, esi
je 0x140013708
lea rcx, [r12 + 0x28]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [r12 + 0x18]
mov rdx, rdi
call fcn.140013154
lea rcx, [r12 + 0x28]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r11, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [r11]
mov ecx, dword [r12]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
ret
Function at 0x140016204
Capabilities:
Get file attributes
Get file size

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x38
mov rbx, rdx
mov rdi, rcx
mov r8d, 0x230
mov rcx, rbx
xor edx, edx
call fcn.140019990
mov r8, qword [rdi + 0x18]
lea rcx, [rbx + 0x22]
or r9, 0xffffffffffffffff
mov edx, 0x104
call fcn.14001b420
xor esi, esi
cmp eax, esi
je 0x140016265
cmp eax, 0xc
je 0x14001625f
cmp eax, 0x16
je 0x140016259
cmp eax, 0x22
je 0x140016259
cmp eax, 0x50
je 0x140016265
call fcn.140010554
int3
call fcn.140010554
int3
call fcn.14001050c
int3
mov rcx, qword [rdi + 8]
cmp rcx, qword [0x140037d90]
je 0x1400163c3
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileTime]
cmp eax, esi
jne 0x140016296
xor eax, eax
jmp 0x1400163c8
mov rcx, qword [rdi + 8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, 0xffffffff
mov r11d, eax
cmp r11, rbp
mov qword [rbx + 0x18], r11
je 0x14001628f
mov rcx, qword [rdi + 0x18]
cmp dword [rcx - 0x10], esi
jne 0x1400162c2
mov byte [rbx + 0x20], sil
jmp 0x1400162d3
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
movzx ecx, al
cmp eax, ebp
cmove ecx, esi
mov byte [rbx + 0x20], cl
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
cmp eax, esi
je 0x140016316
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
cmp eax, esi
je 0x140016316
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x78]
or r8d, 0xffffffff
call fcn.140016144
mov rcx, qword [rax]
mov qword [rbx], rcx
jmp 0x140016319
mov qword [rbx], rsi
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
cmp eax, esi
je 0x14001635d
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
cmp eax, esi
je 0x14001635d
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x78]
or r8d, 0xffffffff
call fcn.140016144
mov rax, qword [rax]
mov qword [rbx + 0x10], rax
jmp 0x140016361
mov qword [rbx + 0x10], rsi
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
cmp eax, esi
je 0x1400163a5
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
cmp eax, esi
je 0x1400163a5
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x78]
or r8d, 0xffffffff
call fcn.140016144
mov rax, qword [rax]
mov qword [rbx + 8], rax
jmp 0x1400163a9
mov qword [rbx + 8], rsi
cmp qword [rbx], rsi
jne 0x1400163b5
mov rax, qword [rbx + 8]
mov qword [rbx], rax
cmp qword [rbx + 0x10], rsi
jne 0x1400163c3
mov rax, qword [rbx + 8]
mov qword [rbx + 0x10], rax
mov eax, 1
add rsp, 0x38
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14001af80
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push r12
push r13
sub rsp, 0x30
xor ebx, ebx
test r8, r8
mov rbp, r9
mov rsi, r8
mov r12d, edx
mov r13, rcx
jne 0x14001afcc
call fcn.14001abc0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
mov dword [rax], 0x16
call fcn.14001e370
xor eax, eax
jmp 0x14001b072
mov qword [rsp + 0x50], rdi
call fcn.14001d7b0
mov edx, 0x2d8
mov ecx, 1
call fcn.14001e100
test rax, rax
mov rdi, rax
je 0x14001b058
call fcn.14001d9f0
mov rcx, rdi
mov rdx, qword [rax + 0xc0]
call fcn.14001d7d0
mov rcx, qword [rsp + 0x78]
mov eax, dword [rsp + 0x70]
test rcx, rcx
lea r8, [rsp + 0x60]
mov rdx, r12
cmovne r8, rcx
mov r9, rdi
mov rcx, r13
mov qword [rsp + 0x28], r8
lea r8, [0x14001aee0]
mov qword [rdi + 0x90], rsi
mov qword [rdi + 0x98], rbp
mov qword [rdi + 8], 0xffffffffffffffff
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
jne 0x14001b06d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call fcn.140019770
test ebx, ebx
je 0x14001b06b
mov ecx, ebx
call fcn.14001ac20
xor eax, eax
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r13
pop r12
pop rsi
ret
Function at 0x14001c2f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x30
lea r12, [0x1400451e0]
xor esi, esi
mov edi, ecx
mov rax, r12
mov ebx, esi
nop
cmp ecx, dword [rax]
je 0x14001c32e
add ebx, 1
add rax, 0x10
cmp ebx, 0x17
jb 0x14001c310
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
cmp ebx, 0x17
jae 0x14001c515
mov ecx, 3
call fcn.140026dc0
cmp eax, 1
je 0x14001c4cc
mov ecx, 3
call fcn.140026dc0
test eax, eax
jne 0x14001c365
cmp dword [0x140045008], 1
je 0x14001c4cc
cmp edi, 0xfc
je 0x14001c515
mov qword [rsp + 0x50], rbp
lea rbp, [0x14004a580]
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rbp
mov edx, 0x314
call fcn.140026d10
test eax, eax
je 0x14001c3a9
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.14001e2d0
lea rdx, [0x14004a599]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x14004a69d], sil
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x14001c3f9
lea r8, str._program_name_unknown_
lea rcx, [0x14004a599]
mov edx, 0x2fb
call fcn.140026d10
test eax, eax
je 0x14001c3f9
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.14001e2d0
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x14004a599]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x14001c448
lea rcx, [rcx + rbp - 0x23]
lea rdx, [0x14004a894]
lea r9d, [rax + 3]
lea r8, [0x140038ea4]
sub rdx, rcx
call fcn.140026bf0
test eax, eax
je 0x14001c448
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.14001e2d0
lea r8, [0x140038ea0]
mov edx, 0x314
mov rcx, rbp
call fcn.140026b30
test eax, eax
je 0x14001c474
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.14001e2d0
movsxd r8, ebx
mov edx, 0x314
mov rcx, rbp
add r8, r8
mov r8, qword [r12 + r8*8 + 8]
call fcn.140026b30
test eax, eax
je 0x14001c4a4
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.14001e2d0
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.1400268d0
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x14001c515
cmp rax, 0xffffffffffffffff
je 0x14001c515
xor eax, eax
movsxd rcx, ebx
lea r9, [rsp + 0x58]
add rcx, rcx
mov qword [rsp + 0x20], rsi
mov rdx, qword [r12 + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x14001c530
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov ecx, 3
call fcn.140026dc0
cmp eax, 1
je 0x14001c562
mov ecx, 3
call fcn.140026dc0
test eax, eax
jne 0x14001c616
cmp dword [0x140045008], 1
jne 0x14001c616
mov qword [rsp + 0x48], rbx
lea rbx, [0x1400451e0]
mov qword [rsp + 0x30], rdi
mov rax, rbx
xor edi, edi
cmp dword [rax], 0xfc
je 0x14001c58e
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x14001c578
jmp 0x14001c602
cmp edi, 0x17
jae 0x14001c602
mov ecx, 3
call fcn.140026dc0
cmp eax, 1
je 0x14001c5b9
mov ecx, 3
call fcn.140026dc0
test eax, eax
jne 0x14001c602
cmp dword [0x140045008], 1
jne 0x14001c602
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x14001c602
cmp rax, 0xffffffffffffffff
je 0x14001c602
movsxd rcx, edi
xor eax, eax
lea r9, [rsp + 0x40]
add rcx, rcx
mov qword [rsp + 0x20], rax
mov rdx, qword [rbx + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0xff
call fcn.14001c2f0
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret