joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400033f0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov eax, dword [rsp + 0x70]
lea r8d, [rcx + 0xdc]
mov esi, edx
mov ecx, 0x3c56
mov edx, eax
mov r10d, esi
xor edx, 0x383d
xor r10d, 0x37a
lea ebp, [rax + 0x1c3]
xor esi, 0x75b2
add eax, 0xffffc7c3
xor eax, ecx
cmp r10d, eax
je 0x140003576
mov rbx, qword [rsp + 0x78]
xor r11d, r11d
mov ecx, dword [0x140015024]
mov eax, dword [rbx + 0x48]
sub eax, 0x17c86d
imul ecx, eax
mov dword [0x140015024], ecx
mov ecx, dword [rbx + 0x3c]
mov edx, dword [rbx + 0x60]
add ecx, 0x5a31
mov eax, dword [rbx + 0x100]
add edx, ecx
imul eax, edx
mov dword [rbx + 0x100], eax
mov ecx, dword [0x140015068]
mov rax, qword [rbx + 0xa0]
mov r8d, dword [rax + r11]
add r11, 4
mov eax, dword [rbx + 0x18]
imul r8d, dword [rbx + 0x6c]
add eax, 0xffe3d90f
add eax, ecx
xor ecx, eax
mov dword [0x140015068], ecx
mov ecx, dword [rbx + 0xd4]
mov eax, dword [rbx + 0x58]
mov edx, r8d
add eax, 0xffe34f13
shr edx, 8
add ecx, eax
add dword [rbx + 0x60], ecx
movsxd rcx, dword [rbx + 0x70]
mov rax, qword [0x1400150b8]
mov byte [rcx + rax], dl
inc dword [rbx + 0x70]
movsxd rcx, dword [rbx + 0x70]
mov rax, qword [rbx + 0xa8]
mov byte [rcx + rax], r8b
mov eax, 1
inc dword [rbx + 0x70]
sub eax, dword [rbx + 0x14]
mov rcx, qword [section..data]
add dword [rcx + 0x24], eax
mov ecx, dword [rbx + 0xc4]
mov eax, dword [0x140015120]
add eax, 0xfffffff8
imul ecx, eax
mov dword [rbx + 0xc4], ecx
mov eax, dword [0x140015070]
xor eax, 0xfffd4b85
sub dword [0x140015028], eax
cmp r11, 0x1680
jl 0x14000344c
mov r8d, r10d
lea eax, [rbp + 0x30]
xor r8d, 0x7617
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r8d
lea edx, [rbp - 0x328]
mov r8, qword [section..data]
lea ecx, [r10 + 0x8d1]
xor r9d, 0xba
call fcn.140001a4c
mov eax, dword [rbx + 0x58]
add eax, 0x3df14761
xor dword [rbx + 0x6c], eax
jmp 0x140003604
mov rdi, qword [rsp + 0x78]
or r8d, ebp
mov r9d, dword [0x140015084]
add r9d, 0xffffc89f
or r9, 0x420c
mov r11d, dword [rdi + 0xe4]
imul r11d, dword [0x1400150dc]
mov r10d, dword [rdi + 0x88]
mov ebx, dword [rdi + 0x24]
and r10d, edx
sub ebx, dword [0x1400150ac]
and r10d, ecx
mov edx, dword [rdi + 0xcc]
xor ebx, 0x46ae
mov ecx, dword [rdi + 0x8c]
add r11d, 0x350e
and edx, dword [rdi + 0x94]
or ecx, dword [rdi + 0x38]
add edx, esi
sub ecx, dword [rdi + 0x48]
mov qword [rsp + 0x30], r11
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], r10d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov eax, 0x43dc
sub eax, dword [rdi + 0x100]
add dword [0x140015034], eax
mov rbx, qword [rsp + 0x50]
lea eax, [rsi - 0x8a3]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x402a00
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
lea rsi, [0x0052d480]
mov edx, 0x8d20d48
mov r13, rcx
lea rcx, [0x0052d2c0]
call fcn.0040cb90
lea rdi, [r13 + 2]
mov edx, 0x7c597448
mov rcx, rax
call fcn.0040cde0
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov r12, qword [rax + 0x20]
lea rbp, [rax + 0x20]
nop
movzx eax, word [r13]
mov rdx, r13
test ax, ax
je 0x402a80
nop dword [rax]
lea ecx, [rax - 0x41]
cmp cx, 0x19
ja 0x402c00
add eax, 0x20
add rdx, 2
mov word [rdx - 2], ax
movzx eax, word [rdx]
test ax, ax
jne 0x402a60
mov rcx, qword [r12 + 0x50]
movzx ebx, word [rcx]
test bx, bx
je 0x402c21
mov rax, rcx
nop
nop word cs:[rax + rax]
lea edx, [rbx - 0x41]
cmp dx, 0x19
ja 0x402c30
add ebx, 0x20
add rax, 2
mov word [rax - 2], bx
movzx ebx, word [rax]
test bx, bx
jne 0x402aa0
movzx r14d, word [r13]
movzx ebx, word [rcx]
test r14w, r14w
je 0x402b35
test bx, bx
je 0x402c50
mov r10, rdi
mov eax, r14d
sub r10, rcx
jmp 0x402af6
cmp word [rcx], 0
je 0x402b35
movzx edx, word [rcx]
lea r9d, [rax - 0x41]
lea r8d, [rax + 0x20]
cmp r9w, 0x1a
cmovb eax, r8d
lea r9d, [rdx - 0x41]
lea r8d, [rdx + 0x20]
cmp r9w, 0x1a
cmovb edx, r8d
cmp ax, dx
jne 0x402c50
mov rax, rcx
add rcx, 2
movzx eax, word [r10 + rax]
test ax, ax
jne 0x402af0
mov edx, 0x6fc8bd48
mov rcx, rsi
call fcn.0040cb90
mov edx, 0x1a760448
mov rcx, rax
call fcn.0040cde0
cmp r14w, bx
je 0x402c6f
mov r12, qword [r12]
cmp rbp, r12
jne 0x402a50
lea rcx, [0x0052d3c0]
mov edx, 0x1e19d948
call fcn.0040cb90
lea rbx, [rsp + 0x30]
mov edx, 0x4101f848
mov rcx, rax
call fcn.0040cde0
mov rcx, rbx
mov rdx, r13
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x28], 0
call qword [0x005333a0]
mov r8, rbx
xor edx, edx
xor ecx, ecx
lea r9, [rsp + 0x28]
call qword [0x00533398]
mov edx, 0x2ab10c48
lea rcx, [0x0052d380]
mov ebx, eax
call fcn.0040cb90
mov edx, 0x1e19d948
mov rcx, rax
call fcn.0040cde0
xor eax, eax
test ebx, ebx
jne 0x402c74
mov rax, qword [rsp + 0x28]
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
add rdx, 2
movzx eax, word [rdx]
test ax, ax
jne 0x402a60
mov rcx, qword [r12 + 0x50]
movzx ebx, word [rcx]
test bx, bx
jne 0x402a91
movzx r14d, word [r13]
jmp 0x402b35
add rax, 2
movzx ebx, word [rax]
test bx, bx
jne 0x402aa0
jmp 0x402ac0
mov rcx, rsi
mov edx, 0x6fc8bd48
call fcn.0040cb90
mov edx, 0x1a760448
mov rcx, rax
call fcn.0040cde0
jmp 0x402b59
mov rax, qword [r12 + 0x20]
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x407680
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [fcn.004146a0]
mov rsi, qword [rcx]
mov ecx, 1
call rbp
mov rdi, rax
test rsi, rsi
je 0x407760
cmp qword [rsi], 0
lea r8, [rsi + 0x10]
mov rcx, rdi
lea rax, section..rdata
lea rdx, [0x0041b01b]
cmove r8, rax
call sub.msvcrt.dll_fprintf
lea r12, [0x0041b01b]
mov ebx, eax
movsxd rax, ebx
cmp rax, qword [rsi]
jge 0x4076fa
cmp byte [rsi + rax + 0x10], 0
jne 0x407740
xor ecx, ecx
mov rdx, rdi
call sub.msvcrt.dll_fputc
test eax, eax
jne 0x4076fa
add ebx, 1
movsxd rax, ebx
cmp rax, qword [rsi]
jl 0x4076da
mov ecx, 1
call rbp
mov r8d, 1
mov edx, 1
lea rcx, [0x0041b001]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rbp
mov rcx, rax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.00414618
lea r8, [rsi + rax + 0x10]
mov rdx, r12
mov rcx, rdi
call sub.msvcrt.dll_fprintf
test eax, eax
jle 0x4076fa
add ebx, eax
jmp 0x4076d2
lea r8, section..rdata
mov rcx, rax
lea rdx, [0x0041b01b]
call sub.msvcrt.dll_fprintf
lea rsi, [0x0041b01b]
mov ebx, eax
nop
test ebx, ebx
jns 0x4076fa
movsxd r8, ebx
cmp byte [r8 + 0x10], 0
jne 0x4077b9
xor ecx, ecx
mov rdx, rdi
call sub.msvcrt.dll_fputc
test eax, eax
jne 0x4076fa
add ebx, 1
test ebx, ebx
jns 0x4076fa
movsxd r8, ebx
cmp byte [r8 + 0x10], 0
je 0x407792
add r8, 0x10
mov rdx, rsi
mov rcx, rdi
call sub.msvcrt.dll_fprintf
test eax, eax
jle 0x4076fa
add ebx, eax
jmp 0x407780
Function at 0x40af30
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, 2
call qword [fcn.004146a0]
mov r8d, 0x3f
mov edx, 1
lea rcx, str._GC__cannot_register_global_variable__too_many_global_variables
mov rbx, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, rbx
call fcn.00414618
mov ecx, 1
call sub.msvcrt.dll_exit
nop

Function at 0x40af70
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 0x40af8f
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 fcn.00414618

Function at 0x40afb0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, 2
call qword [fcn.004146a0]
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 fcn.00414618
mov ecx, 1
call sub.msvcrt.dll_exit
nop

Function at 0x40cb90
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
test rcx, rcx
mov rbx, rdx
je 0x40cc01
cmp qword [rcx + 8], 0
js 0x40cc10
call fcn.0040c9a0
test rax, rax
je 0x40cc01
mov r10, qword [rax]
test r10, r10
jle 0x40cbfb
mov r9, rax
add r10, rbx
sub r9, rbx
nop
mov r8, rbx
mov rdx, rbx
sar r8, 8
sar rdx, 0x10
xor r8d, ebx
and edx, 0xffffffee
and r8d, 0xffffffee
xor r8b, byte [r9 + rbx + 0x10]
xor r8d, edx
mov rdx, rbx
sar rdx, 0x18
and edx, 0xffffffee
xor r8d, edx
mov byte [r9 + rbx + 0x10], r8b
add rbx, 1
cmp rbx, r10
jne 0x40cbc0
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rax, rcx
jmp 0x40cbae
Function at 0x40d000
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov r14, rcx
mov rcx, qword [0x0052fc00]
mov ebp, edx
mov edx, 0x8d20d48
lea rbx, [r14 + 2]
call fcn.0040cb90
mov edx, 0x7c597448
mov rcx, rax
call fcn.0040cde0
mov rdi, qword [0x0052fc10]
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov r13, qword [rax + 0x20]
lea rsi, [rax + 0x20]
nop dword [rax]
nop word cs:[rax + rax]
movzx eax, word [r14]
mov rdx, r14
test ax, ax
je 0x40d090
nop dword [rax]
lea ecx, [rax - 0x41]
cmp cx, 0x19
ja 0x40d210
add eax, 0x20
add rdx, 2
mov word [rdx - 2], ax
movzx eax, word [rdx]
test ax, ax
jne 0x40d070
mov rcx, qword [r13 + 0x50]
movzx r12d, word [rcx]
test r12w, r12w
je 0x40d232
mov rax, rcx
nop
nop word cs:[rax + rax]
lea edx, [r12 - 0x41]
cmp dx, 0x19
ja 0x40d240
add r12d, 0x20
add rax, 2
mov word [rax - 2], r12w
movzx r12d, word [rax]
test r12w, r12w
jne 0x40d0b0
movzx r15d, word [r14]
movzx r12d, word [rcx]
test r15w, r15w
je 0x40d145
test r12w, r12w
je 0x40d260
mov r10, rbx
mov eax, r15d
sub r10, rcx
jmp 0x40d106
cmp word [rcx], 0
je 0x40d145
movzx edx, word [rcx]
lea r9d, [rax - 0x41]
lea r8d, [rax + 0x20]
cmp r9w, 0x1a
cmovb eax, r8d
lea r9d, [rdx - 0x41]
lea r8d, [rdx + 0x20]
cmp r9w, 0x1a
cmovb edx, r8d
cmp ax, dx
jne 0x40d260
mov rax, rcx
add rcx, 2
movzx eax, word [r10 + rax]
test ax, ax
jne 0x40d100
mov edx, 0x6fc8bd48
mov rcx, rdi
call fcn.0040cb90
mov edx, 0x1a760448
mov rcx, rax
call fcn.0040cde0
cmp r15w, r12w
je 0x40d283
mov r13, qword [r13]
cmp rsi, r13
jne 0x40d060
test ebp, ebp
je 0x40d298
mov rcx, qword [0x0052fc30]
lea rbx, [rsp + 0x30]
mov edx, 0x1e19d948
call fcn.0040cb90
mov edx, 0x4101f848
mov rcx, rax
call fcn.0040cde0
mov rax, qword [0x0052fa00]
mov rcx, rbx
mov rdx, r14
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x28], 0
call qword [rax]
mov rax, qword [0x0052f9f0]
mov r8, rbx
xor edx, edx
lea r9, [rsp + 0x28]
xor ecx, ecx
call qword [rax]
mov rcx, qword [0x0052fc40]
mov edx, 0x2ab10c48
mov ebx, eax
call fcn.0040cb90
mov edx, 0x1e19d948
mov rcx, rax
call fcn.0040cde0
test ebx, ebx
jne 0x40d2b6
mov rax, qword [rsp + 0x28]
jmp 0x40d287
add rdx, 2
movzx eax, word [rdx]
test ax, ax
jne 0x40d070
mov rcx, qword [r13 + 0x50]
movzx r12d, word [rcx]
test r12w, r12w
jne 0x40d0a2
movzx r15d, word [r14]
jmp 0x40d145
add rax, 2
movzx r12d, word [rax]
test r12w, r12w
jne 0x40d0b0
jmp 0x40d0d6
mov rcx, qword [0x0052fc10]
mov edx, 0x6fc8bd48
call fcn.0040cb90
mov edx, 0x1a760448
mov rcx, rax
call fcn.0040cde0
jmp 0x40d169
mov rax, qword [r13 + 0x20]
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [0x0052fc20]
mov edx, 0x4101f848
call fcn.0040cb90
mov edx, 0x6fc8bd48
mov rcx, rax
call fcn.0040cde0
xor eax, eax
jmp 0x40d287
Function at 0x413020
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x148
mov byte [rsp + 0x2f], 1
movzx eax, byte [rsp + 0x2f]
mov rbx, rcx
mov qword [rsp + 0x168], rdx
test al, al
jne 0x413050
add rsp, 0x148
pop rbx
pop rsi
ret
mov ecx, 2
call qword [fcn.004146a0]
mov rdx, qword [rsp + 0x168]
mov rcx, rbx
mov rsi, rax
mov r9, rax
mov r8, rdx
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, rsi
call fcn.00414618
jmp 0x413042

Function at 0x413620
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00548744]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x4137a8
mov rax, qword [0x00548748]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x41366c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x4136f5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x413650
mov rcx, rbx
call fcn.004142c0
test rax, rax
mov r12, rax
je 0x4137dd
mov rax, qword [0x00548748]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.004143f0
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00548748]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4137c0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x4136ee
sub eax, 0x40
and eax, 0xffffffbf
jne 0x413750
add dword [0x00548744], 1
cmp edi, 8
jae 0x413723
test dil, 4
jne 0x413794
test edi, edi
je 0x413718
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x4137af
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 0x413718
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 0x41373c
jmp 0x413718
add rsi, qword [0x00548748]
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 0x4136ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00418f80
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x413718
xor esi, esi
jmp 0x413677
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x413718
mov rax, qword [0x00548748]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.00418f80
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.00418f80
nop
nop dword [rax]
Function at 0x413f30
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00548a20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00548a00]
test rbx, rbx
je 0x413f84
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 0x413f7b
test rsi, rsi
je 0x413f7b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x413f60
lea rcx, [0x00548a20]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x4142c0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x0052fda0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x41432d
mov rcx, r8
call fcn.004141a0
test eax, eax
je 0x41432d
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 0x41432d
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 0x414324
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x41432f
add rax, 0x28
cmp rax, r9
jne 0x414310
xor eax, eax
add rsp, 0x28
ret

Function at 0x418f80
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
call sub.msvcrt.dll__onexit
test rax, rax
sete al
movzx eax, al
neg eax
add rsp, 0x28
ret
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.004146a0
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.004146a0
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 0x59bcc0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x59bccd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x59bcdd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x59bcc5
lea eax, [rcx + 1]
jmp 0x59bceb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x59bcfe
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x59bce4
sub eax, 3
jb 0x59bd1e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x59bd6d
sar eax, 1
movsxd rbp, eax
jb 0x59bd54
jmp 0x59bd2c
add ebx, ebx
jne 0x59bd2a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x59bd54
inc ecx
add ebx, ebx
jne 0x59bd3a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x59bd54
call r11
adc ecx, ecx
add ebx, ebx
jne 0x59bd4d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x59bd3c
add ecx, 2
jmp 0x59bd59
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.0059bc82
jmp 0x59bccd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xb1600
mov dl, 0x17
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x59bdb9
cmp rsi, rcx
jae 0x59bdc1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x59bda0
cmp al, 0x8f
ja 0x59bda0
cmp byte [rsi - 2], 0xf
je 0x59bda6
sub al, 0xe8
cmp al, 1
ja 0x59bd8a
cmp rsi, rcx
jae 0x59bdc1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x59bd90
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x59bdc1
lodsb al, byte [rsi]
jmp 0x59bda0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x199000]
mov eax, dword [rdi]
or eax, eax
je 0x59be1e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x19b000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x59bdce
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x59be18
mov qword [rbx], rax
add rbx, 8
jmp 0x59bdee
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.0059bea1], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.0059bea1
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x59be91
sub rsp, 0xffffffffffffff80
jmp 0x401500
Function at 0x180002a00
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x180002a36
xor eax, eax
lea r8, [0x1800029d0]
mov r9, rcx
mov qword [rsp + 0x28], rax
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x180002a36
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x38
ret
Function at 0x18000b0d0
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 0x18000b0f8
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 0x18000b11e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x18000b120
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x18000b179
test ecx, ecx
jle 0x18000b159
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 0x18000b179
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x18000b179
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

Function at 0x18000b1a0
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 0x18000b1c2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x18000b1d8
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 0x18000b1f4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x18000b1f6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x18000b232
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 0x18000b2ce
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x18000b26d
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 0x18000b2ae
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 0x18000b2ce
cmp rbx, rax
ja 0x18000b280
test rbx, rbx
je 0x18000b2ce
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