joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140027fb0
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [0x1400cc630]
cmp byte [rbx + 0x31f8], 0
jne 0x140028126
cmp dword [rbx + 0x3220], 0
je 0x140027fed
mov r8d, 0x2b0c
lea rdx, [0x14004fe40]
lea rcx, str.g.SettingsWindows.empty__
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14002811f
lea rdx, [0x140054588]
mov qword [rsp + 0x40], rdi
call fcn.140018db0
mov rdi, rax
test rax, rax
je 0x14002811a
mov qword [rsp + 0x30], rbp
mov rcx, rax
mov qword [rsp + 0x38], rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x140028107
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140028107
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x140028107
xor r8d, r8d
mov edx, ebp
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140028107
mov rbp, rsi
cmp rsi, 0xffffffffffffffff
je 0x140028107
mov rax, qword [0x1400cc630]
test rax, rax
je 0x140028096
inc dword [rax + 0x3b0]
mov rdx, qword [0x1400cc640]
mov rcx, rbp
call qword [section..data]
mov rsi, rax
test rax, rax
je 0x140028107
mov r9, rdi
mov r8, rbp
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rdi
cmp rax, rbp
je 0x1400280d2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x1400280e3
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rdx, rbp
mov rcx, rsi
call fcn.14001a6b0
mov rax, qword [0x1400cc630]
test rax, rax
je 0x1400280f5
dec dword [rax + 0x3b0]
mov rdx, qword [0x1400cc640]
mov rcx, rsi
call qword [0x1400cc008]
jmp 0x140028110
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
mov byte [rbx + 0x31f8], 1
movss xmm0, dword [rbx + 0x31fc]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x140028177
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x31fc], xmm0
jb 0x140028177
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140028166
call fcn.140023c10
mov dword [rbx + 0x31fc], 0
add rsp, 0x20
pop rbx
ret
mov byte [rbx + 0x398], 1
mov dword [rbx + 0x31fc], 0
add rsp, 0x20
pop rbx
ret
Function at 0x1400499a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rbp
push rdi
push r12
sub rsp, 0x78
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm7
mov rax, qword [0x1400cc548]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rax, qword [0x1400cc630]
lea rdx, [rsp + 0x30]
movss xmm1, dword [rcx + 0x2c]
mov rdi, rcx
movss xmm0, dword [rax + 0x1674]
mov r12, qword [rax + 0x1d18]
subss xmm1, xmm0
movaps xmm2, xmm0
movss xmm0, dword [rcx + 0x30]
addss xmm2, dword [rax + 0x1a80]
movss xmm6, dword [r12 + 0x118]
movss xmm7, dword [r12 + 0x11c]
movss dword [r12 + 0x11c], xmm0
movss dword [r12 + 0x118], xmm1
addss xmm2, dword [rcx + 0x2c]
movss dword [rcx + 0x2c], xmm2
xor ecx, ecx
movups xmm0, xmmword [rax + 0x16fc]
movups xmmword [rsp + 0x30], xmm0
shufps xmm0, xmm0, 0xff
mulss xmm0, dword [0x140056594]
movss dword [rsp + 0x3c], xmm0
call fcn.1400205b0
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov ecx, 0x15
movups xmmword [rsp + 0x20], xmm0
call fcn.1400205b0
xor edx, edx
lea rcx, [0x1400566c8]
lea r8d, [rdx + 0x50]
call fcn.1400447b0
mov ecx, 2
movzx ebx, al
call fcn.140020020
xor ebp, ebp
test bl, bl
je 0x140049b82
mov eax, dword [rdi]
mov qword [rsp + 0xa8], rsi
mov esi, ebp
test eax, eax
jle 0x140049b75
mov qword [rsp + 0xb0], r14
mov r14d, ebp
mov qword [rsp + 0x70], r15
mov r15d, ebp
test r14, r14
js 0x140049ac1
cmp esi, eax
jl 0x140049adb
mov r8d, 0x6c7
lea rdx, [0x14004fc00]
lea rcx, str.i___0__i___Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rbx, qword [rdi + 8]
add rbx, r15
test dword [rbx + 4], 0x200000
jne 0x140049b55
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140049af9
mov rcx, qword [rcx]
jmp 0x140049b31
movsx eax, word [rbx + 0x24]
cmp ax, 0xffff
je 0x140049b0b
cmp eax, dword [rdi + 0x88]
jl 0x140049b25
mov r8d, 0x89d
lea rdx, [0x14004fcf0]
lea rcx, str.tab__NameOffset____1___int_tab__NameOffset___TabsNames.Buf.Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
movsx rcx, word [rbx + 0x24]
add rcx, qword [rdi + 0x90]
mov eax, dword [rbx]
lea r9, [rsp + 0x20]
cmp dword [rdi + 0x18], eax
mov qword [rsp + 0x20], 0
sete dl
xor r8d, r8d
call fcn.140047730
test al, al
cmovne rbp, rbx
mov eax, dword [rdi]
inc esi
inc r14
add r15, 0x30
cmp esi, eax
jl 0x140049ab8
mov r15, qword [rsp + 0x70]
mov r14, qword [rsp + 0xb0]
call fcn.140015c50
mov rsi, qword [rsp + 0xa8]
movss dword [r12 + 0x118], xmm6
mov rax, rbp
movss dword [r12 + 0x11c], xmm7
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14004d200
movaps xmm6, xmmword [rsp + 0x60]
movaps xmm7, xmmword [rsp + 0x50]
add rsp, 0x78
pop r12
pop rdi
pop rbp
pop rbx
ret
Function at 0x14004d8b8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004d902
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004d902
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004d902
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004d902
cmp dword [rcx + 0x84], 0xe
jbe 0x14004d902
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14004d904
xor al, al
add rsp, 0x28
ret
Function at 0x6d8a8580
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d8c95e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d8a8708
mov rax, qword [0x6d8c95e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d8a85cc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d8a8655
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d8a85b0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d8a873d
mov rax, qword [0x6d8c95e8]
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 [0x6d8c95e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d8a8720
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d8a864e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d8a86b0
add dword [0x6d8c95e4], 1
cmp edi, 8
jae 0x6d8a8683
test dil, 4
jne 0x6d8a86f4
test edi, edi
je 0x6d8a8678
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d8a870f
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 0x6d8a8678
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 0x6d8a869c
jmp 0x6d8a8678
add rsi, qword [0x6d8c95e8]
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 0x6d8a864e
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 0x6d8a8678
xor esi, esi
jmp 0x6d8a85d7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d8a8678
mov rax, qword [0x6d8c95e8]
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 0x6d8a8e90
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d8c98c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d8c98a0]
test rbx, rbx
je 0x6d8a8ee4
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 0x6d8a8edb
test rsi, rsi
je 0x6d8a8edb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d8a8ec0
lea rcx, [0x6d8c98c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d8a9120
Capabilities:
Parse pe header

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

Function at 0x6d8a9140
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 0x6d8a9181
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 0x6d8a9178
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d8a9183
add rax, 0x28
cmp rax, r9
jne 0x6d8a9164
xor eax, eax
ret

Function at 0x6d8a9220
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8c61f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d8a928d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8a928d
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 0x6d8a928d
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 0x6d8a9284
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d8a928f
add rax, 0x28
cmp rax, r9
jne 0x6d8a9270
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d8a9390
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8c61f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d8a93b0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8a93a8
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 0x6d8a940d
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 0x6d8a9404
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d8a9414
add rax, 0x28
cmp rax, r9
jne 0x6d8a93f0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d8a9430
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d8c61f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d8a949e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8a949e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d8a949e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d8a949e
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 0x6d8a9495
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d8a94a5
add rcx, 0x28
cmp rcx, rax
jne 0x6d8a9480
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d8a94b8
jmp 0x6d8a949e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d8a94c6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d8a949e
test r9d, r9d
jg 0x6d8a94b0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d8a9830
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 0x4025d0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
test rdx, rdx
jle 0x402734
mov r12, qword [fcn.004154d0]
lea r14, [rcx + rdx*8]
mov rdi, rcx
lea r13, [0x00417138]
lea rbp, [0x00417139]
mov rbx, qword [rdi]
mov ecx, 1
call r12
mov rsi, rax
test rbx, rbx
je 0x4026d0
cmp qword [rbx], 0
lea r8, [rbx + 0x10]
mov rdx, rbp
mov rcx, rax
cmove r8, r13
call sub.msvcrt.dll_fprintf
mov r15d, eax
movsxd rax, r15d
cmp rax, qword [rbx]
jge 0x40265f
cmp byte [rbx + rax + 0x10], 0
jne 0x4026b0
xor ecx, ecx
mov rdx, rsi
call sub.msvcrt.dll_fputc
test eax, eax
jne 0x40265f
add r15d, 1
movsxd rax, r15d
cmp rax, qword [rbx]
jl 0x40263e
add rdi, 8
cmp rdi, r14
jne 0x402605
mov ecx, 1
call r12
mov r8d, 1
mov edx, 1
lea rcx, [0x0041713c]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call r12
mov rcx, rax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp sub.msvcrt.dll_fflush
lea r8, [rbx + rax + 0x10]
mov rdx, rbp
mov rcx, rsi
call sub.msvcrt.dll_fprintf
test eax, eax
jle 0x40265f
add r15d, eax
jmp 0x402636
mov r8, r13
mov rdx, rbp
mov rcx, rax
call sub.msvcrt.dll_fprintf
mov ebx, eax
test ebx, ebx
jns 0x40265f
movsxd r8, ebx
cmp byte [r8 + 0x10], 0
jne 0x402719
xor ecx, ecx
mov rdx, rsi
call sub.msvcrt.dll_fputc
test eax, eax
jne 0x40265f
add ebx, 1
test ebx, ebx
jns 0x40265f
movsxd r8, ebx
cmp byte [r8 + 0x10], 0
je 0x4026f2
add r8, 0x10
mov rdx, rbp
mov rcx, rsi
call sub.msvcrt.dll_fprintf
test eax, eax
jle 0x40265f
add ebx, eax
jmp 0x4026e0
mov r12, qword [fcn.004154d0]
jmp 0x402668

Function at 0x402840
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
test rdx, rdx
mov rsi, rcx
mov rbx, rdx
je 0x40285f
mov rcx, rdx
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, rbx
mov r9, rsi
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp sub.msvcrt.dll_fflush

Function at 0x402a70
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, 2
call qword [fcn.004154d0]
mov r8d, 0x4b
mov edx, 1
lea rcx, str._GC__cannot_register_thread_local_variable__too_many_thread_local_variables
mov rbx, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, rbx
call sub.msvcrt.dll_fflush
mov ecx, 1
call sub.msvcrt.dll_exit
nop
ret
Function at 0x40a470
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rbx
mov rbp, rsp
sub rsp, 0x150
cmp qword [0x004ff1c0], 0
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov byte [rbp - 0x111], 1
je 0x40a56f
mov rax, qword [0x004f53e0]
lea rcx, [rbp - 0x110]
mov rdx, rbp
mov qword [0x004f53e0], rcx
add rcx, 0x10
mov qword [rbp - 0x110], rax
call sub.msvcrt.dll__setjmp
cdqe
test rax, rax
mov qword [rbp - 0x108], rax
jne 0x40a590
xor ebx, ebx
cmp qword [rbp + 0x20], 0
je 0x40a540
mov rcx, qword [rbp + 0x20]
call sub.msvcrt.dll_strlen
mov edx, 0x18
mov qword [rbp - 0x128], 7
cmp rax, 6
mov rsi, rax
jbe 0x40a50a
lea rdx, [rax + 0x11]
mov qword [rbp - 0x128], rax
lea r8, [0x004fc2a0]
lea rcx, [0x00416020]
call fcn.004093f0
mov rdx, qword [rbp + 0x20]
movq xmm0, rsi
lea rcx, [rax + 0x10]
movhps xmm0, qword [rbp - 0x128]
mov rbx, rax
movups xmmword [rax], xmm0
lea r8, [rsi + 1]
call sub.msvcrt.dll_memcpy
mov rcx, rbx
call qword [0x004ff1c0]
mov rax, qword [0x004f53e0]
mov byte [rbp - 0x111], 0
cmp qword [rbp - 0x108], 0
mov rax, qword [rax]
mov qword [0x004f53e0], rax
jne 0x40a604
movzx eax, byte [rbp - 0x111]
test al, al
jne 0x40a610
add rsp, 0x150
pop rbx
pop rsi
pop rbp
ret
mov rax, qword [0x004f53e0]
mov rax, qword [rax]
mov qword [rbp - 0x108], 0
mov qword [0x004f53e0], rax
mov rax, qword [0x004ff0e8]
mov rbx, qword [rax + 0x28]
test rbx, rbx
je 0x40a5cd
add qword [rbx - 0x10], 8
mov rax, qword [0x004ff0e8]
test rax, rax
je 0x40a5ef
mov rsi, qword [rax - 0x10]
lea rdx, [rax - 0x10]
lea rcx, [rsi - 8]
cmp rcx, 7
mov qword [rax - 0x10], rcx
ja 0x40a5ef
lea rcx, [0x004fc2b8]
call fcn.00405ce0
cmp qword [rbp - 0x108], 0
mov qword [0x004ff0e8], rbx
je 0x40a56f
call fcn.0040ad90
jmp 0x40a56f
mov ecx, 2
call qword [fcn.004154d0]
mov rcx, qword [rbp + 0x20]
mov edx, 1
mov r8, qword [rbp + 0x28]
mov rbx, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, rbx
call sub.msvcrt.dll_fflush
jmp 0x40a57e

Function at 0x40dab0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
call fcn.0040b270
test rax, rax
je 0x40db0a
mov r9, qword [rax]
test r9, r9
jle 0x40db0a
mov r8, rax
add r9, rbx
sub r8, rbx
mov rcx, rbx
mov rdx, rbx
sar rcx, 8
sar rdx, 0x10
xor ecx, ebx
and edx, 0xffffffee
and ecx, 0xffffffee
xor cl, byte [r8 + rbx + 0x10]
xor ecx, edx
mov rdx, rbx
sar rdx, 0x18
and edx, 0xffffffee
xor ecx, edx
mov byte [r8 + rbx + 0x10], cl
add rbx, 1
cmp rbx, r9
jne 0x40dad3
add rsp, 0x20
pop rbx
ret
Function at 0x410ce0
Capabilities:
Parse pe header

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov r12, qword [0x004f1000]
mov rax, qword [rcx + 0x18]
mov rax, qword [rax + 0x20]
mov r13, rdx
mov rdi, qword [rax]
lea rbp, [rdi - 0x10]
mov rbx, rbp
mov rsi, qword [rbx + 0x50]
mov rcx, rsi
call qword [r12]
mov rcx, rsi
movsxd rdx, eax
call fcn.0040c250
test rax, rax
mov rsi, rax
je 0x410d85
cmp qword [rax], 0
je 0x410d85
xor ecx, ecx
call fcn.0040d3a0
mov rdx, rsi
mov rcx, rax
call fcn.0040bf70
test al, al
jne 0x410d85
mov rcx, qword [rbx + 0x30]
cmp word [rcx], 0x5a4d
je 0x410d60
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x410d4d
movsxd rdx, dword [rax + 0x88]
mov r8, r13
add rdx, rcx
call fcn.00410af0
test al, al
jne 0x410d4f
mov rdi, qword [rdi]
lea rbx, [rdi - 0x10]
cmp rbp, rbx
jne 0x410d08
jmp 0x410d4d
Function at 0x414430
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x004f4fa4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x4145b8
mov rax, qword [0x004f4fa8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x41447c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x414505
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x414460
mov rcx, rbx
call fcn.004150d0
test rax, rax
mov r12, rax
je 0x4145ed
mov rax, qword [0x004f4fa8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.00415200
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x004f4fa8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4145d0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x4144fe
sub eax, 0x40
and eax, 0xffffffbf
jne 0x414560
add dword [0x004f4fa4], 1
cmp edi, 8
jae 0x414533
test dil, 4
jne 0x4145a4
test edi, edi
je 0x414528
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x4145bf
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 0x414528
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 0x41454c
jmp 0x414528
add rsi, qword [0x004f4fa8]
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 0x4144fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00415660
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x414528
xor esi, esi
jmp 0x414487
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x414528
mov rax, qword [0x004f4fa8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.00415660
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.00415660
nop
nop dword [rax]

Function at 0x414d40
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x004f5280]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004f5260]
test rbx, rbx
je 0x414d94
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 0x414d8b
test rsi, rsi
je 0x414d8b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x414d70
lea rcx, [0x004f5280]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x4150d0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x004f1240]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x41513d
mov rcx, r8
call fcn.00414fb0
test eax, eax
je 0x41513d
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 0x41513d
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 0x415134
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x41513f
add rax, 0x28
cmp rax, r9
jne 0x415120
xor eax, eax
add rsp, 0x28
ret

Function at 0x415660
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp 0x401510
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 fcn.004154d0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.004154d0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530
Function at 0x180001460
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call fcn.18003b390
mov r11, rax
mov r9, qword [rax + 0x60]
test r9, r9
je 0x18000159d
xor edi, edi
lea rbp, str.win32u.dll
mov rsi, qword [r11 + 0x30]
xor r10b, r10b
mov r11, qword [r11]
test rsi, rsi
je 0x180001590
movzx ebx, word [r11 + 0x58]
mov ecx, edi
test ebx, ebx
je 0x180001590
mov rax, rbp
sub r9, rbp
nop word [rax + rax]
movzx edx, word [r9 + rax]
test dx, dx
je 0x180001587
movzx r8d, word [rax]
test r8w, r8w
je 0x180001587
cmp dx, r8w
jne 0x180001590
inc ecx
add rax, 2
mov r10b, 1
cmp ecx, ebx
jl 0x1800014c0
mov eax, 0x5a4d
cmp word [rsi], ax
jne 0x18000159d
movsxd rax, dword [rsi + 0x3c]
cmp dword [rax + rsi], 0x4550
jne 0x18000159d
mov ecx, dword [rax + rsi + 0x88]
test ecx, ecx
je 0x18000159d
mov r11d, dword [rsi + rcx + 0x1c]
lea rax, [rsi + rcx]
mov r9d, dword [rax + 0x20]
add r11, rsi
mov ebx, dword [rax + 0x24]
add r9, rsi
mov r10d, dword [rax + 0x18]
add rbx, rsi
test r10d, r10d
je 0x18000159d
mov eax, dword [r9]
xor dl, dl
add rax, rsi
cmp byte [rax], dl
je 0x1800015b8
lea r8, str.NtUserGetAsyncKeyState
sub r8, rax
nop dword [rax]
movzx ecx, byte [rax + r8]
test cl, cl
je 0x1800015b4
cmp byte [rax], cl
jne 0x1800015b8
inc rax
mov dl, 1
cmp byte [rax], 0
jne 0x180001560
movsxd rax, edi
movzx ecx, word [rbx + rax*2]
mov eax, dword [r11 + rcx*4]
add rax, rsi
jmp 0x18000159f
test r10b, r10b
jne 0x1800014f3
mov r9, qword [r11 + 0x60]
test r9, r9
jne 0x180001492
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
test dl, dl
jne 0x180001577
inc edi
add r9, 4
cmp edi, r10d
jb 0x180001543
jmp 0x18000159d