joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001fb80
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov edx, 0xf
mov r8d, 0xa86f8bb2
mov rbx, rcx
lea r9d, [rdx - 1]
call fcn.140004640
xor edx, edx
lea ecx, [rdx + 2]
call rax
mov rdi, rax
test rax, rax
je 0x14001fd70
mov dword [rsp + 0x40], 0x238
mov r9d, 0xd
mov r8d, 0x5e57b014
jmp 0x14001fd3a
mov byte [rsp + 0x20], 0
mov byte [rsp + 0x21], 9
mov byte [rsp + 0x22], 0x40
mov byte [rsp + 0x23], 0xf
mov byte [rsp + 0x24], 0x40
mov byte [rsp + 0x25], 0x56
mov byte [rsp + 0x26], 0x40
mov byte [rsp + 0x27], 0x3a
mov byte [rsp + 0x28], 0x40
mov byte [rsp + 0x29], 0x4f
mov byte [rsp + 0x2a], 0x40
mov byte [rsp + 0x2b], 0x64
mov byte [rsp + 0x2c], 0x40
mov byte [rsp + 0x2d], 9
mov byte [rsp + 0x2e], 0x40
mov byte [rsp + 0x2f], 0x64
mov byte [rsp + 0x30], 0x40
mov byte [rsp + 0x31], 5
mov byte [rsp + 0x32], 0x40
mov byte [rsp + 0x33], 9
mov byte [rsp + 0x34], 0x40
mov byte [rsp + 0x35], 0xf
mov byte [rsp + 0x36], 0x40
mov byte [rsp + 0x37], 9
mov byte [rsp + 0x38], 0x40
mov byte [rsp + 0x39], 0x40
mov byte [rsp + 0x3a], 0x40
movzx eax, byte [rsp + 0x21]
movzx eax, byte [rsp + 0x20]
test al, al
jne 0x14001fcd3
xor r8d, r8d
nop dword [rax + rax]
movzx ecx, byte [rsp + r8 + 0x21]
mov eax, 0x40
sub eax, ecx
lea ecx, [rax + rax*8]
mov eax, 0x81020409
add ecx, ecx
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x7f
sub ecx, eax
mov eax, 0x81020409
add ecx, 0x7f
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x7f
sub ecx, eax
mov byte [rsp + r8 + 0x21], cl
inc r8
cmp r8, 0x1a
jb 0x14001fc80
mov edx, 0xf
mov r8d, 0xcd7328ca
lea r9d, [rdx + 0x42]
call fcn.140004640
lea rdx, [rsp + 0x21]
lea rcx, [rsp + 0x6c]
call rax
test eax, eax
jne 0x14001fd2e
lea ecx, [rax + 0x18]
call fcn.1400247f8
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rcx
test rax, rax
je 0x14001fd56
mov ecx, dword [rsp + 0x48]
mov dword [rax], ecx
mov rcx, qword [rbx + 8]
mov qword [rax + 0x10], rcx
mov rcx, qword [rbx + 8]
mov qword [rcx], rax
add rax, 8
mov qword [rbx + 8], rax
mov r9d, 0xc
mov r8d, 0xc9a81ce0
mov edx, 0xf
call fcn.140004640
lea rdx, [rsp + 0x40]
mov rcx, rdi
call rax
test eax, eax
jne 0x14001fbe0
mov r9d, 0x5b
mov r8d, 0xca528872
lea edx, [r9 - 0x4c]
call fcn.140004640
mov rcx, rdi
call rax
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x1400256f8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14002545c
Function at 0x140001134
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000117f
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x14000117f
mov edx, 0x8664
cmp word [rax + 4], dx
jne 0x14000117f
mov edx, 0x20b
cmp word [rax + 0x18], dx
jne 0x14000117f
cmp dword [rax + 0x84], 0
jbe 0x14000117f
cmp dword [rax + 0x8c], 0
je 0x14000117f
mov eax, dword [rax + 0x88]
add rax, rcx
ret
xor eax, eax
ret

Function at 0x1400011f4
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov r10, rdx
mov r9d, ecx
xor edx, edx
mov ecx, edx
mov eax, ecx
inc ecx
cmp word [r10 + rax*2], dx
jne 0x1400011fe
cmp ecx, r8d
cmovb r8d, ecx
add r8d, r8d
je 0x140001258
mov r11d, r8d
mov al, byte [r10]
movzx edx, byte [r10]
sub al, 0x20
sub edx, 0x61
movzx ecx, al
movzx eax, byte [r10]
cmp edx, 0x19
cmova ecx, eax
inc r10
movzx edx, cl
imul eax, edx, 0x6db6abcf
mov ecx, edx
or ecx, 1
imul ecx, edx
add r9d, eax
rol r9d, 5
lea ecx, [rcx + rcx*2]
xor r9d, ecx
sub r11, 1
jne 0x140001218
mov eax, r9d
ret

Function at 0x140001298
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

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 r14
push r15
mov r10d, dword [rdx + 0x20]
mov r12d, r8d
mov edi, dword [rdx + 0x24]
add r10, rcx
mov esi, dword [rdx + 0x1c]
add rdi, rcx
mov ebp, dword [rdx + 0x18]
add rsi, rcx
xor r8d, r8d
mov r15d, r9d
mov r11, rcx
test ebp, ebp
je 0x14000134a
mov r9d, dword [r10]
add r9, r11
xor ecx, ecx
mov eax, ecx
inc ecx
cmp byte [rax + r9], 0
jne 0x1400012df
or eax, 0xffffffff
mov ebx, r12d
cmp ecx, eax
cmovb eax, ecx
test eax, eax
je 0x140001339
mov r14d, eax
mov al, byte [r9]
movzx edx, byte [r9]
sub al, 0x20
movzx ecx, al
sub edx, 0x61
movzx eax, byte [r9]
cmp edx, 0x19
cmova ecx, eax
inc r9
movzx edx, cl
imul eax, edx, 0x6db6abcf
add ebx, eax
mov eax, edx
or eax, 1
rol ebx, 5
imul eax, edx
lea eax, [rax + rax*2]
xor ebx, eax
sub r14, 1
jne 0x1400012fc
cmp ebx, r15d
je 0x140001367
inc r8d
add r10, 4
cmp r8d, ebp
jb 0x1400012d7
xor eax, eax
mov rbx, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
pop r15
pop r14
pop r12
ret
movzx ecx, word [rdi + r8*2]
mov eax, dword [rsi + rcx*4]
add rax, r11
jmp 0x14000134c
Function at 0x140001374
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x150
mov rbx, r8
mov dword [r11 + 0x10], 0x104
lea rax, [r11 + 0x28]
mov dword [r11 + 0x28], 0x104
mov qword [rsp + 0x38], rax
lea r8, [rsp + 0x40]
xor edi, edi
mov qword [rsp + 0x30], rbx
and qword [rsp + 0x28], rdi
mov r15d, r9d
and qword [rsp + 0x20], rdi
lea r9, [r11 + 0x10]
mov rsi, rdx
mov rbp, rcx
xor edx, edx
call rsi
test eax, eax
jne 0x1400014a6
mov r14, qword [rsp + 0x198]
xor ecx, ecx
mov eax, ecx
inc ecx
cmp byte [rax + rbx], 0
jne 0x1400013e4
or eax, 0xffffffff
mov r8d, r15d
cmp ecx, eax
cmovb eax, ecx
test eax, eax
je 0x140001443
mov r9, rbx
mov r10d, eax
mov al, byte [r9]
movzx edx, byte [r9]
sub al, 0x20
movzx ecx, al
sub edx, 0x61
movzx eax, byte [r9]
cmp edx, 0x19
cmova ecx, eax
inc r9
movzx edx, cl
imul eax, edx, 0x6db6abcf
add r8d, eax
mov eax, edx
or eax, 1
rol r8d, 5
imul eax, edx
lea eax, [rax + rax*2]
xor r8d, eax
sub r10, 1
jne 0x140001403
xor ecx, ecx
cmp r8d, dword [r14 + rcx*4]
je 0x1400014c5
inc rcx
cmp rcx, 6
jl 0x140001445
lea rax, [rsp + 0x190]
mov dword [rsp + 0x178], 0x104
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x178]
mov qword [rsp + 0x30], rbx
lea r8, [rsp + 0x40]
and qword [rsp + 0x28], 0
inc edi
and qword [rsp + 0x20], 0
mov edx, edi
mov rcx, rbp
mov dword [rsp + 0x190], 0x104
call rsi
test eax, eax
je 0x1400013e2
xor eax, eax
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
mov rax, qword [rsp + 0x1a0]
mov eax, dword [rax + rcx*4]
jmp 0x1400014a8

Function at 0x140001588
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov r10, rdx
mov r9d, ecx
test r8d, r8d
je 0x1400015d8
mov r11d, r8d
mov al, byte [r10]
movzx r8d, byte [r10]
sub al, 0x20
movzx ecx, al
sub r8d, 0x61
movzx eax, byte [r10]
cmp r8d, 0x19
cmova ecx, eax
inc r10
movzx edx, cl
imul eax, edx, 0x6db6abcf
mov ecx, edx
or ecx, 1
imul ecx, edx
add r9d, eax
rol r9d, 5
lea ecx, [rcx + rcx*2]
xor r9d, ecx
sub r11, 1
jne 0x140001596
mov eax, r9d
ret

Function at 0x1400015dc
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [rcx + 0x28]
mov rbx, rdx
add rax, rdx
mov edx, 0x2000
test word [rcx + 0x16], dx
je 0x140001669
xor r8d, r8d
mov rcx, rbx
lea edx, [r8 + 1]
call rax
mov eax, 0x5a4d
cmp word [rbx], ax
je 0x140001610
xor edx, edx
jmp 0x140001650
movsxd rax, dword [rbx + 0x3c]
add rax, rbx
cmp dword [rax], 0x4550
jne 0x14000160c
mov ecx, 0x8664
cmp word [rax + 4], cx
jne 0x14000160c
mov ecx, 0x20b
cmp word [rax + 0x18], cx
jne 0x14000160c
cmp dword [rax + 0x84], 0
jbe 0x14000160c
cmp dword [rax + 0x8c], 0
je 0x14000160c
mov edx, dword [rax + 0x88]
add rdx, rbx
mov r9d, 0x11c32dc6
mov r8d, 0xd26bd465
mov rcx, rbx
call fcn.140001298
test rax, rax
je 0x14000166b
call rax
add rsp, 0x20
pop rbx
ret
Function at 0x140002830
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov r9, qword [rcx]
mov edi, r8d
mov esi, edx
mov r10, rcx
cmp r9, rcx
je 0x1400028c6
xor ebp, ebp
mov rbx, qword [r9 + 0x50]
mov r8d, ebp
mov eax, r8d
inc r8d
cmp word [rbx + rax*2], bp
jne 0x14000285c
or eax, 0xffffffff
mov r11d, esi
cmp r8d, eax
cmovb eax, r8d
add eax, eax
je 0x1400028b9
mov r8d, eax
mov al, byte [rbx]
movzx edx, byte [rbx]
sub al, 0x20
movzx ecx, al
sub edx, 0x61
movzx eax, byte [rbx]
cmp edx, 0x19
cmova ecx, eax
inc rbx
movzx edx, cl
imul eax, edx, 0x6db6abcf
add r11d, eax
mov eax, edx
or eax, 1
rol r11d, 5
imul eax, edx
lea eax, [rax + rax*2]
xor r11d, eax
sub r8, 1
jne 0x14000287c
cmp edi, r11d
je 0x1400028dd
mov r9, qword [r9]
cmp r9, r10
jne 0x140002855
xor eax, eax
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret
mov rax, qword [r9 + 0x20]
jmp 0x1400028c8
Function at 0x140001290
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rax, qword gs:[0x60]
mov esi, ecx
mov rdx, qword [rax + 0x18]
mov rdi, qword [rdx + 0x10]
mov rbx, rdi
nop dword [rax]
nop dword [rax + rax]
mov rbx, qword [rbx]
cmp qword [rbx + 0x30], 0
je 0x14000136c
mov rdx, qword [rbx + 0x60]
xor eax, eax
cmp word [rdx], ax
je 0x140001312
nop dword [rax]
cmp rax, 0x3f
jae 0x140001308
movzx ecx, byte [rdx + rax*2]
mov byte [rsp + rax + 0x20], cl
inc rax
cmp word [rdx + rax*2], 0
jne 0x1400012f0
cmp rax, 0x40
jae 0x140001398
lea rcx, [rsp + 0x20]
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.USER32.dll_CharLowerA]
mov edx, 0x99
mov rcx, 0xffffffffffffffff
mov r8, rax
inc rcx
cmp byte [rax + rcx], 0
jne 0x140001331
xor r9d, r9d
test rcx, rcx
je 0x140001368
nop dword [rax]
nop word [rax + rax]
movsx eax, byte [r8]
lea edx, [rdx + rdx*2]
inc r9d
lea r8, [r8 + 1]
add edx, eax
movsxd rax, r9d
cmp rax, rcx
jb 0x140001350
cmp edx, esi
je 0x140001375
cmp rdi, rbx
jne 0x1400012d0
mov rax, qword [rbx + 0x30]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140003930
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
call fcn.140003a58
int3

Function at 0x1400013a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
movsxd rax, dword [rcx + 0x3c]
xor r10d, r10d
mov esi, edx
mov rbx, rcx
mov r8d, dword [rax + rcx + 0x88]
mov edi, dword [r8 + rcx + 0x1c]
mov r11d, dword [r8 + rcx + 0x20]
mov r14d, dword [r8 + rcx + 0x24]
add r11, rcx
add r14, rcx
lea rbp, [rcx + rdi]
test edi, edi
je 0x14000144a
nop word [rax + rax]
mov edx, dword [r11]
mov rax, 0xffffffffffffffff
add rdx, rbx
mov r8d, 0x99
inc rax
cmp byte [rdx + rax], 0
jne 0x140001403
xor r9d, r9d
test rax, rax
je 0x140001439
nop dword [rax]
nop dword [rax + rax]
movsx ecx, byte [rdx]
lea r8d, [r8 + r8*2]
inc r9d
lea rdx, [rdx + 1]
add r8d, ecx
movsxd rcx, r9d
cmp rcx, rax
jb 0x140001420
cmp r8d, esi
je 0x140001463
inc r10d
add r11, 4
cmp r10d, edi
jb 0x1400013f0
xor eax, eax
mov rbx, qword [rsp + 0x10]
mov rbp, qword [rsp + 0x18]
mov rsi, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x28]
pop r14
ret
movzx ecx, word [r14 + r10*2]
mov eax, dword [rbp + rcx*4]
add rax, rbx
jmp 0x14000144c
Function at 0x140002440
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x140002461
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14000248e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140002490
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400024e9
test ecx, ecx
jle 0x1400024c9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x1400024e9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400024e9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
out dx, eax
out dx, eax
invalid
Function at 0x140002510
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140002532
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140002541
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140002564
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140002566
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400025a2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14000263e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400025dd
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14000261e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14000263e
cmp rbx, rax
ja 0x1400025f0
test rbx, rbx
je 0x14000263e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
xor dword [rdi + 0x7c7ccbbf], edi
mov esi, 0
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
invalid
invalid
Function at 0x140002aa0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140002acd
xor eax, eax
jmp 0x140002c39
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140002b07
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140002b07
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140002c39
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140002c2c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140002b4a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140002b75
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002c31
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140002be4
sub eax, 1
je 0x140002be4
cmp eax, 2
jne 0x140002c2c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002c31
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140002c12
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x140002c2c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140002c31
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140003930
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140002f00
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140002fd3
cmp byte [rcx + 0x71], 0
je 0x140002fd3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140002fcf
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140002f94
sub eax, 1
je 0x140002f98
cmp eax, 2
jne 0x140002fcf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003930
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140002fc6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140002fcf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140002f7c
xor al, al
jmp 0x140002f7c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003930
add rsp, 0x60
pop rbx
ret

Function at 0x1400043d8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140004422
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140004422
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140004422
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140004422
cmp dword [rcx + 0x84], 0xe
jbe 0x140004422
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140004424
xor al, al
add rsp, 0x28
ret
Function at 0x40c230
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.00418ea0
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.00418ea0
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 0x40c2a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x0054c614]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x40c448
mov rax, qword [0x0054c618]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x40c2ec
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x40c377
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x40c2d0
mov rcx, r12
call fcn.0040d000
mov rbp, rax
test rax, rax
je 0x40c482
mov rax, qword [0x0054c618]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.0040d130
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x0054c618]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x40c491
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x40c370
sub eax, 4
and eax, 0xfffffffb
jne 0x40c400
add dword [0x0054c614], 1
cmp ebx, 8
jae 0x40c3a8
test bl, 4
jne 0x40c450
test ebx, ebx
je 0x40c399
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x40c470
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x40c399
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x40c3da
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x0054c618]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x40c370
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.0040c230
nop dword [rax]
xor edi, edi
jmp 0x40c2f7
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x40c399
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x40c399
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.0040c230
mov rax, qword [0x0054c618]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.0040c230
nop
nop dword [rax]