joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140099250
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov rsi, rcx
mov r14, qword [rdx]
add dword [rcx], 2
mov rbx, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 2
call rbx
lea rdx, [0x1400c9d1f]
lea r8, str.InitListExpr
mov rcx, rax
call fcn.1400838a0
mov rdi, qword [r14 + 0x18]
movups xmm0, xmmword [r14 + 0x20]
movaps xmmword [rsp + 0x20], xmm0
mov ecx, 2
call rbx
mov ecx, 0xa
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
cmp dword [rsi], 0
je 0x1400992ca
xor ebp, ebp
mov ecx, 2
call rbx
mov ecx, 0x20
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
inc ebp
cmp ebp, dword [rsi]
jne 0x1400992b0
mov byte [rsi + 4], 0
test rdi, rdi
je 0x1400992e0
mov rcx, rdi
mov rdx, rsi
call fcn.1400933d0
jmp 0x140099305
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rcx, str._null_
mov edx, 6
mov r8d, 1
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov byte [rsi + 4], 1
movaps xmm0, xmmword [rsp + 0x20]
movaps xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140095d90
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 0x29
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
add dword [rsi], 0xfffffffe
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

Function at 0x140099460
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rdi, qword [rdx]
add dword [rcx], 2
mov rbx, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 2
call rbx
lea rdx, [0x1400c9d1f]
lea r8, str.ThrowExpr
mov rcx, rax
call fcn.1400838a0
mov rdi, qword [rdi + 0x18]
mov ecx, 2
call rbx
mov ecx, 0xa
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
cmp dword [rsi], 0
je 0x1400994da
xor ebp, ebp
nop word cs:[rax + rax]
mov ecx, 2
call rbx
mov ecx, 0x20
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
inc ebp
cmp ebp, dword [rsi]
jne 0x1400994c0
mov byte [rsi + 4], 0
test rdi, rdi
je 0x1400994f0
mov rcx, rdi
mov rdx, rsi
call fcn.1400933d0
jmp 0x140099515
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rcx, str._null_
mov edx, 6
mov r8d, 1
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov byte [rsi + 4], 1
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 0x29
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
add dword [rsi], 0xfffffffe
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
Function at 0x140099540
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rdi, qword [rdx]
add dword [rcx], 2
mov rbx, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 2
call rbx
lea rdx, [0x1400c9d1f]
lea r8, str.StringLiteral
mov rcx, rax
call fcn.1400838a0
mov rdi, qword [rdi + 0x18]
mov ecx, 2
call rbx
mov ecx, 0xa
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
cmp dword [rsi], 0
je 0x1400995ba
xor ebp, ebp
nop word cs:[rax + rax]
mov ecx, 2
call rbx
mov ecx, 0x20
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
inc ebp
cmp ebp, dword [rsi]
jne 0x1400995a0
mov byte [rsi + 4], 0
test rdi, rdi
je 0x1400995d0
mov rcx, rdi
mov rdx, rsi
call fcn.1400933d0
jmp 0x1400995f5
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rcx, str._null_
mov edx, 6
mov r8d, 1
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov byte [rsi + 4], 1
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 0x29
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
add dword [rsi], 0xfffffffe
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret

Function at 0x140099620
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rdi, qword [rdx]
add dword [rcx], 2
mov rbx, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 2
call rbx
lea rdx, [0x1400c9d1f]
lea r8, str.LambdaExpr
mov rcx, rax
call fcn.1400838a0
mov rdi, qword [rdi + 0x18]
mov ecx, 2
call rbx
mov ecx, 0xa
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
cmp dword [rsi], 0
je 0x14009969a
xor ebp, ebp
nop word cs:[rax + rax]
mov ecx, 2
call rbx
mov ecx, 0x20
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
inc ebp
cmp ebp, dword [rsi]
jne 0x140099680
mov byte [rsi + 4], 0
test rdi, rdi
je 0x1400996b0
mov rcx, rdi
mov rdx, rsi
call fcn.1400933d0
jmp 0x1400996d5
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rcx, str._null_
mov edx, 6
mov r8d, 1
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov byte [rsi + 4], 1
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 0x29
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
add dword [rsi], 0xfffffffe
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
Function at 0x140099700
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov rsi, rcx
mov r14, qword [rdx]
add dword [rcx], 2
mov rbx, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 2
call rbx
lea rdx, [0x1400c9d1f]
lea r8, str.EnumLiteral
mov rcx, rax
call fcn.1400838a0
mov rdi, qword [r14 + 0x18]
movups xmm0, xmmword [r14 + 0x20]
movaps xmmword [rsp + 0x20], xmm0
mov ecx, 2
call rbx
mov ecx, 0xa
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
cmp dword [rsi], 0
je 0x14009977a
xor ebp, ebp
mov ecx, 2
call rbx
mov ecx, 0x20
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
inc ebp
cmp ebp, dword [rsi]
jne 0x140099760
mov byte [rsi + 4], 0
test rdi, rdi
je 0x140099790
mov rcx, rdi
mov rdx, rsi
call fcn.1400933d0
jmp 0x1400997b5
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rcx, str._null_
mov edx, 6
mov r8d, 1
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov byte [rsi + 4], 1
movaps xmm0, xmmword [rsp + 0x20]
movaps xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140094d10
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 0x29
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
add dword [rsi], 0xfffffffe
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

Function at 0x140099800
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rbx, qword [rdx]
add dword [rcx], 2
mov r15, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 2
call r15
lea rdx, [0x1400c9d1f]
lea r8, str.BracedExpr
mov rcx, rax
call fcn.1400838a0
mov r14, qword [rbx + 0x18]
mov rdi, qword [rbx + 0x20]
movzx ebx, byte [rbx + 0x28]
mov ecx, 2
call r15
mov ecx, 0xa
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
cmp dword [rsi], 0
je 0x14009988b
xor ebp, ebp
nop word cs:[rax + rax]
mov ecx, 2
call r15
mov ecx, 0x20
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
inc ebp
cmp ebp, dword [rsi]
jne 0x140099870
mov byte [rsi + 4], 0
test r14, r14
je 0x1400998a1
mov rcx, r14
mov rdx, rsi
call fcn.1400933d0
jmp 0x1400998c6
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rcx, str._null_
mov edx, 6
mov r8d, 1
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov byte [rsi + 4], 1
mov rcx, rsi
mov rdx, rdi
call fcn.140094b50
mov rcx, rsi
mov edx, ebx
call fcn.140096a70
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 0x29
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
add dword [rsi], 0xfffffffe
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140099910
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rdi, qword [rdx]
add dword [rcx], 2
mov r15, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 2
call r15
lea rdx, [0x1400c9d1f]
lea r8, str.BracedRangeExpr
mov rcx, rax
call fcn.1400838a0
mov r14, qword [rdi + 0x18]
mov rbx, qword [rdi + 0x20]
mov rdi, qword [rdi + 0x28]
mov ecx, 2
call r15
mov ecx, 0xa
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
cmp dword [rsi], 0
je 0x14009999b
xor ebp, ebp
nop word cs:[rax + rax]
mov ecx, 2
call r15
mov ecx, 0x20
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
inc ebp
cmp ebp, dword [rsi]
jne 0x140099980
mov byte [rsi + 4], 0
test r14, r14
je 0x1400999b1
mov rcx, r14
mov rdx, rsi
call fcn.1400933d0
jmp 0x1400999d6
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rcx, str._null_
mov edx, 6
mov r8d, 1
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov byte [rsi + 4], 1
mov rcx, rsi
mov rdx, rbx
call fcn.140094b50
mov rcx, rsi
mov rdx, rdi
call fcn.140094b50
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 0x29
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
add dword [rsi], 0xfffffffe
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1400b3cf0
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov al, byte [0x1400ecf78]
test al, al
je 0x1400b3def
cmp qword [0x142253870], 0
je 0x1400b3d60
mov rax, qword [str.H0_B]
mov rcx, qword [rax]
mov rdx, qword [rcx - 0x18]
lea rcx, [rax + rdx]
mov r8, qword [0x1422539c8]
mov qword [rax + rdx + 0x28], r8
xor edx, edx
call fcn.1400251c0
mov rax, qword [0x1400d4370]
mov rcx, qword [rax]
mov rdx, qword [rcx - 0x18]
lea rcx, [rax + rdx]
mov r8, qword [0x142253978]
mov qword [rax + rdx + 0x28], r8
xor edx, edx
call fcn.1400251c0
call fcn.1400b3f00
movzx eax, byte [rsi]
test al, 1
je 0x1400b3d6d
mov rax, qword [rsi + 8]
jmp 0x1400b3d6f
shr eax, 1
test rax, rax
je 0x1400b3de7
lea rcx, [0x1422537f0]
mov rdx, rsi
mov r8d, 0x10
call fcn.1400b3f40
cmp qword [0x142253870], 0
je 0x1400b3e25
mov rax, qword [0x1400d4370]
mov rcx, qword [rax]
mov rdx, qword [rcx - 0x18]
lea rcx, [rax + rdx]
lea r8, [0x142253938]
mov qword [rax + rdx + 0x28], r8
xor edx, edx
call fcn.1400251c0
mov rax, qword [str.H0_B]
mov rcx, qword [rax]
mov rdx, qword [rcx - 0x18]
lea rcx, [rax + rdx]
lea r8, [0x142253988]
mov qword [rax + rdx + 0x28], r8
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.1400251c0
nop
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x1400ecf78]
call fcn.140033890
test eax, eax
je 0x1400b3d07
call fcn.1400b3e60
lea rcx, [0x1400b3ef0]
call fcn.140030520
lea rcx, [0x1400ecf78]
call fcn.14003396b
jmp 0x1400b3d07
mov rdi, qword [str._b__B]
lea rdx, str.Unable_to_open_debug_log_file
mov rcx, rdi
call fcn.140018620
mov rcx, rdi
mov rdx, rsi
call fcn.140017e00
mov rcx, rdi
call fcn.140018240
mov ecx, 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
int3

Function at 0x1400b98a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9d, 0xffffffff
lea r8, [0x1400d34d0]
cmp rdx, 4
jb 0x1400b9906
mov eax, r9d
xor r9b, byte [rcx]
shr eax, 8
movzx r9d, r9b
xor eax, dword [r8 + r9*4]
mov r9d, eax
xor al, byte [rcx + 1]
shr r9d, 8
movzx eax, al
xor r9d, dword [r8 + rax*4]
mov eax, r9d
xor r9b, byte [rcx + 2]
shr eax, 8
movzx r9d, r9b
xor eax, dword [r8 + r9*4]
mov r9d, eax
xor al, byte [rcx + 3]
shr r9d, 8
movzx eax, al
xor r9d, dword [r8 + rax*4]
add rcx, 4
add rdx, 0xfffffffffffffffc
cmp rdx, 3
ja 0x1400b98b3
test rdx, rdx
je 0x1400b992d
xor r10d, r10d
mov eax, r9d
xor r9b, byte [rcx + r10]
shr eax, 8
movzx r9d, r9b
xor eax, dword [r8 + r9*4]
inc r10
mov r9d, eax
cmp rdx, r10
jne 0x1400b9911
jmp 0x1400b9930
mov eax, r9d
not eax
ret
Function at 0x401d08
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbp, qword [fcn.00417160]
xor ebx, ebx
mov rdi, rcx
mov rsi, rdx
lea r12, [rdx - 1]
cmp rbx, rsi
jl 0x401d68
mov ecx, 1
call rbp
mov r8d, 1
mov edx, 1
lea rcx, [0x0041a15c]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rbp
mov rcx, rax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp 0x416b88
test rbx, rbx
jns 0x401d78
mov rdx, r12
mov rcx, rbx
call fcn.00404b7b
mov r13, qword [rdi + rbx*8]
mov ecx, 1
call rbp
xor r8d, r8d
mov rcx, rax
mov rdx, r13
call fcn.00401bf0
add rbx, 1
jno 0x401d27
call fcn.00403865
jmp 0x401d27

Function at 0x401f34
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x28
xor r8d, r8d
mov r13, rcx
mov r12, rdx
test rdx, rdx
je 0x401f55
mov rcx, rdx
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, r12
mov r9, r13
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, r13
add rsp, 0x28
pop r12
pop r13
jmp 0x416b88
jmp qword [sym.imp.msvcrt.dll_fflush]

Function at 0x403822
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x38
mov qword [rsp + 0x28], rdx
mov r13, rcx
mov ecx, 2
call qword [fcn.00417160]
mov r8, qword [rsp + 0x28]
mov rcx, r13
mov edx, 1
mov r12, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, r12
add rsp, 0x38
pop r12
pop r13
jmp 0x416b88
Function at 0x40f652
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x004180a0], 0
je 0x40f672
mov r8d, 1
jmp 0x40f7b3
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
xor edx, edx
mov rcx, qword [rax + 0x10]
xor eax, eax
mov r11, qword [rcx + 0x30]
test r11, r11
je 0x40f6d7
movsxd rdx, dword [r11 + 0x3c]
mov edx, dword [r11 + rdx + 0x88]
test edx, edx
je 0x40f6cf
mov eax, edx
add rax, r11
mov edx, dword [rax + 0xc]
add rdx, r11
mov r8d, dword [rdx]
or r8d, 0x20202020
cmp r8d, 0x6c64746e
jne 0x40f6cf
mov edx, dword [rdx + 4]
or edx, 0x20202020
cmp edx, 0x6c642e6c
je 0x40f6e6
mov rcx, qword [rcx]
mov rdx, r11
jmp 0x40f687
xor r8d, r8d
test rax, rax
je 0x40f7b3
mov r11, rdx
mov ebp, dword [rax + 0x1c]
mov esi, dword [rax + 0x24]
xor r10d, r10d
lea r13, [0x004180a4]
mov edx, dword [rax + 0x18]
mov eax, dword [rax + 0x20]
add rsi, r11
add rbp, r11
lea ebx, [rdx - 1]
add rax, r11
lea rdi, [rax + rbx*4]
add rbx, rbx
add rbx, rsi
mov ecx, dword [rdi]
add rcx, r11
cmp word [rcx], 0x775a
jne 0x40f747
mov eax, r10d
inc r10d
lea r12, [r13 + rax*8]
call fcn.0040f62a
mov dword [r12], eax
movzx eax, word [rbx]
mov eax, dword [rbp + rax*4]
mov dword [r12 + 4], eax
cmp r10d, 0x1f4
je 0x40f759
sub rdi, 4
lea rax, [rbx - 2]
cmp rsi, rbx
je 0x40f759
mov rbx, rax
jmp 0x40f712
mov dword [0x004180a0], r10d
lea r11, [0x004180a4]
dec r10d
test r10d, r10d
je 0x40f667
lea rax, [0x004180a0]
xor edx, edx
lea ecx, [rdx + 1]
mov r8d, dword [rax + 8]
mov rdx, rcx
lea rcx, [r11 + rcx*8]
mov r9d, dword [rcx + 4]
cmp r8d, r9d
jbe 0x40f7a5
mov ebx, dword [rax + 4]
mov esi, dword [rcx]
mov dword [rax + 8], r9d
mov dword [rax + 4], esi
mov dword [rcx], ebx
mov dword [rcx + 4], r8d
add rax, 8
cmp edx, r10d
jb 0x40f77c
dec r10d
jmp 0x40f76a
mov eax, r8d
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret

Function at 0x40f934
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x3950907
call fcn.0040f7c3
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
nop
syscall
ret

Function at 0x40f977
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x8b19978d
call fcn.0040f7c3
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
nop
syscall
ret

Function at 0x40fbb0
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x88a6285
call fcn.0040f7c3
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
nop
syscall
ret
Function at 0x40fbf3
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x40fc1c
cmp word [rcx], 0x5a4d
jne 0x40fc1c
movsxd rdx, dword [rcx + 0x3c]
cmp edx, 0x400
jg 0x40fc1c
call fcn.00407fc0
cmp dword [rax], 0x4550
je 0x40fc1e
xor eax, eax
add rsp, 0x28
ret

Function at 0x40fc5c
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x19991f17
call fcn.0040f7c3
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
nop
syscall
ret

Function at 0x410162
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0xc85e88a6
call fcn.0040f7c3
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
nop
syscall
ret

Function at 0x4101a5
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x8a92015
call fcn.0040f7c3
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
nop
syscall
ret

Function at 0x410fb0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
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.00417160
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.00417160
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x411020
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x004609c4]
mov r12, rcx
test ebx, ebx
jle 0x411150
mov rax, qword [0x004609c8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x41106c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x4110f3
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x411050
mov rcx, r12
call fcn.004119d0
mov rsi, rax
test rax, rax
je 0x411172
mov rax, qword [0x004609c8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.00411b00
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x004609c8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x411157
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x4110ec
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x411100
add dword [0x004609c4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x004609c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4110ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00410fb0
nop dword [rax]
xor ebx, ebx
jmp 0x411077
mov rax, qword [0x004609c8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.00410fb0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.00410fb0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x411640
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00460a20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00460a00]
test rbx, rbx
je 0x411694
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x41168b
test r12, r12
je 0x41168b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x411670
lea rcx, [0x00460a20]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x4119d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x00448a90]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x4119f0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x4119f8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x4119f0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x411a45
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x411a3c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4119f0
add rax, 0x28
cmp rax, r9
jne 0x411a28
xor eax, eax
ret
Function at 0x411a50
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x00448a90]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x411a70
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x411a78
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x411a70
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x411b00
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x00448a90]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x411b20
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x411b28
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret
Function at 0x140004774
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400045a0
Function at 0x140029320
Capabilities:
Get file version info

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb8
mov rbx, rdx
mov r14, rcx
mov rax, qword [0x14010c038]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movaps xmm0, xmmword [0x1400ec9c0]
lea rsi, [rsp + 0x50]
movaps xmmword [rsi + 0x40], xmm0
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, str.CreateFileVersionInfoWin
lea r8, str..._.._base_file_version_info_win.cc
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r9d, 0x4d
call fcn.140065cb0
mov rcx, rsi
mov rdx, rdi
xor r8d, r8d
call fcn.140065ce0
mov dword [rsp + 0x2c], 0xaaaaaaaa
cmp byte [rbx + 0x17], 0
jns 0x1400293a6
mov rbx, qword [rbx]
lea rdx, [rsp + 0x2c]
mov rcx, rbx
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x1400294ca
mov ebp, eax
mov esi, eax
mov rcx, rsi
call fcn.140078938
mov r15, rax
mov rcx, rax
xor edx, edx
mov r8, rsi
call fcn.14007c0b0
mov edx, dword [rsp + 0x2c]
mov rcx, rbx
mov r8d, ebp
mov r9, r15
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1400294d3
lea r8, [rsp + 0x30]
mov qword [r8], 0
lea r9, [rsp + 0xac]
mov dword [r9], 0xaaaaaaaa
lea rdx, str.VarFileInfoTranslation
mov rcx, r15
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1400294d3
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x1400294d3
mov rdi, r15
add rdi, rsi
mov ecx, 0x38
call fcn.140078938
mov rsi, rax
mov eax, dword [rbx]
lea rcx, fcn.1400298b0
mov qword [rsi], rcx
mov qword [rsi + 8], r15
mov qword [rsi + 0x10], rdi
mov qword [rsi + 0x18], rdi
mov qword [rsi + 0x20], r15
mov dword [rsi + 0x28], eax
lea r8, [rsp + 0x30]
mov qword [r8], 0
lea r9, [rsp + 0xac]
mov dword [r9], 0xaaaaaaaa
lea rdx, [0x1400f2e72]
mov rcx, r15
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1400294e9
mov rax, qword [rsp + 0x30]
mov qword [rsi + 0x30], rax
mov qword [r14], rsi
lea rcx, [rsp + 0x50]
call fcn.140065e70
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400797f0
mov rax, r14
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov qword [r14], 0
jmp 0x14002949d
mov qword [r14], 0
test r15, r15
je 0x14002949d
mov rcx, r15
call fcn.140078974
jmp 0x14002949d
int3