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

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14000f010]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebp, ebp
mov rdi, rcx
cmp qword [rcx + 0x18], 8
mov dword [rsp + 0x40], ebp
jb 0x140003511
mov rcx, qword [rcx]
mov qword [rsp + 0x30], rbp
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x10000000
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x1400035b2
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x140003584
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x14000357f
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000365b
mov rcx, r8
call fcn.140008c80
mov al, 1
mov word [rdi], bp
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rbp
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400088f0
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
cmp rsi, 0xffffffffffffffff
jne 0x1400035f7
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x1400035f3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x1400035ee
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000365b
mov rcx, r8
call fcn.140008c80
xor al, al
jmp 0x140003586
lea r9, [rsp + 0x40]
mov qword [rsp + 0x68], rbx
mov r8d, 0x2400
mov qword [rsp + 0x20], rbp
lea rdx, [0x14000f0b0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rdi + 0x18]
test bl, bl
mov rbx, qword [rsp + 0x68]
jne 0x140003644
cmp rax, 8
jb 0x1400035f3
lea rdx, [rax*2 + 2]
jmp 0x1400035ca
cmp rax, 8
jb 0x140003584
lea rdx, [rax*2 + 2]
jmp 0x140003557
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x1400042e0
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
push rsi
mov rbp, rcx
mov rsi, r8
sub rbp, qword [r8 + 0x30]
je 0x140004467
test byte [r8 + 0x5e], 0x40
jne 0x1400042ff
xor eax, eax
pop rsi
pop rbp
ret
movzx edx, word [rsi + 0x14]
movzx eax, word [rsi + 6]
add rdx, 0x18
mov r8d, dword [r8 + 0xb0]
add rdx, rsi
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
cmp rdx, r9
jae 0x140004467
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140004338
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140004349
add rdx, 0x28
cmp rdx, r9
jb 0x140004326
mov eax, 1
pop rsi
pop rbp
ret
mov qword [rsp + 0x18], rbx
mov ebx, dword [rdx + 0x14]
sub rbx, rcx
mov qword [rsp + 0x28], r14
mov r14d, dword [rsi + 0xb4]
add rbx, r8
mov qword [rsp + 0x30], r15
lea r15, [0x140052710]
add rbx, r15
add r14, rbx
test rbx, rbx
je 0x140004458
cmp rbx, r14
jae 0x140004458
mov qword [rsp + 0x20], rdi
nop dword [rax]
mov eax, dword [rbx + 4]
test eax, eax
je 0x140004453
add eax, 0xfffffff8
shr eax, 1
je 0x140004444
lea r11, [rbx + 8]
mov edi, eax
nop dword [rax]
movzx r8d, word [r11]
movzx eax, r8w
shr ax, 0xc
and r8d, 0x80000fff
jge 0x1400043d2
dec r8d
or r8d, 0xfffff000
inc r8d
cmp ax, 3
je 0x1400043de
cmp ax, 0xa
jne 0x140004436
movzx eax, word [rsi + 0x14]
movzx ecx, word [rsi + 6]
add rax, 0x18
mov r9d, dword [rbx]
add rax, rsi
lea rdx, [rcx + rcx*4]
lea r10, [rax + rdx*8]
cmp rax, r10
jae 0x14000442b
nop dword [rax]
mov edx, dword [rax + 0xc]
cmp r9, rdx
jb 0x140004412
mov ecx, dword [rax + 8]
add ecx, edx
cmp r9, rcx
jb 0x14000441d
add rax, 0x28
cmp rax, r10
jb 0x140004400
jmp 0x14000442b
mov ecx, dword [rax + 0x14]
sub rcx, rdx
add rcx, r9
add rcx, r15
jne 0x14000442e
mov rcx, r15
movzx eax, r8w
add qword [rax + rcx], rbp
add r11, 2
sub rdi, 1
jne 0x1400043b0
mov eax, dword [rbx + 4]
add rbx, rax
cmp rbx, r14
jb 0x140004390
mov rdi, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x18]
mov r15, qword [rsp + 0x30]
mov eax, 1
pop rsi
pop rbp
ret
Function at 0x140005780
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.0x1400057a1
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 0x1400057ce
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400057d0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140005829
test ecx, ecx
jle 0x140005809
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 0x140005829
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140005829
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
mov ah, 0xe8
add dword [rax], eax
call 0x14001da38
cmp qword [0x140036938], rbx
jne 0x140018097
or eax, 0xffffffff
jmp 0x14001810c
mov rbp, rbx
lea rsi, [0x140035908]
lea r14, [0x1400358f0]
Function at 0x140005850
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 0x140005872
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140005881
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 0x1400058a4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400058a6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400058e2
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 0x14000597e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000591d
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 0x14000595e
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 0x14000597e
cmp rbx, rax
ja 0x140005930
test rbx, rbx
je 0x14000597e
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
jne 0x140018039
mov eax, 0x200
jmp 0x14001803e
cmp eax, edi
cmovl eax, edi
movsxd rcx, eax
mov edx, 8
mov dword [0x140036930], eax
call 0x14001d9c0
xor ecx, ecx
mov qword [0x140036938], rax
call 0x14001da38
cmp qword [0x140036938], rbx
jne 0x140018097
mov edx, 8
mov dword [0x140036930], edi
mov rcx, rdi
call 0x14001d9c0
xor ecx, ecx
mov qword [0x140036938], rax
mov ah, 0xe8
add dword [rax], eax
Function at 0x140005db0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000f010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140005ddd
xor eax, eax
jmp 0x140005f49
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140005e17
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140005e17
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 0x140005f49
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140005f3c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140005e5a
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 0x140005e85
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 0x140005f41
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 0x140005ef4
sub eax, 1
je 0x140005ef4
cmp eax, 2
jne 0x140005f3c
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 0x140005f41
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140005f22
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 0x140005f3c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140005f41
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400088f0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400066c0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000f010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140006793
cmp byte [rcx + 0x71], 0
je 0x140006793
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000678f
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 0x140006754
sub eax, 1
je 0x140006758
cmp eax, 2
jne 0x14000678f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400088f0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140006786
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 0x14000678f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000673c
xor al, al
jmp 0x14000673c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400088f0
add rsp, 0x60
pop rbx
ret

Function at 0x1400082bc
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140008340
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14000a620]
cmp byte [rcx + rax], 0
je 0x140008340
dec r8
sub rdx, 1
jne 0x140008326
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140009444
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000948e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000948e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000948e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000948e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000948e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140009490
xor al, al
add rsp, 0x28
ret
Function at 0x140007140
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push r14
push r15
push rbp
sub rsp, 0x20
mov r14, r9
mov rbp, rdx
xor r15d, r15d
test rcx, rcx
je 0x14000733f
test r14, r14
je 0x14000733f
test rbp, rbp
je 0x14000733f
test byte [rcx], 1
je 0x140007223
test byte [r14], 2
je 0x140007283
mov rcx, qword [r14 + 0x18]
cmp rcx, 0xffffffffffffffff
je 0x14000720e
test rcx, rcx
je 0x14000720e
mov edx, 0xffffffff
call qword [sym.imp.orauts.dll_WaitForSingleObject]
cmp eax, 0x80
jne 0x14000720a
mov dword [rbp], 0xed
call qword [sym.imp.orauts.dll_GetLastError]
mov dword [rbp + 0xd4], eax
mov byte [rbp + 0x18], 0
mov dword [rbp + 0x14], 0x6e696f6a
mov dword [rbp + 0x10], 0x5f737365
mov dword [rbp + 0xc], 0x636f7270
mov dword [rbp + 8], 0x5f73706d
mov dword [rbp + 4], 0x76727073
mov dword [rbp + 0x35], 0x746365
mov dword [rbp + 0x31], 0x6a624f65
mov dword [rbp + 0x2d], 0x6c676e69
mov dword [rbp + 0x29], 0x53726f46
mov dword [rbp + 0x25], 0x74696157
mov r15d, 0xed
jmp 0x140007283
mov rcx, qword [r14 + 0x18]
mov rdx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x1400072ca
jmp 0x140007283
mov dword [rbp], 0xeb
mov r15d, 6
mov dword [rbp + 0xd4], 0
mov byte [rbp + 0x18], 0
mov dword [rbp + 0x14], 0x6e696f6a
mov dword [rbp + 0x10], 0x5f737365
mov dword [rbp + 0xc], 0x636f7270
mov dword [rbp + 8], 0x5f73706d
mov dword [rbp + 4], 0x76727073
mov word [rbp + 0x35], 0x64
mov dword [rbp + 0x31], 0x657a696c
mov dword [rbp + 0x2d], 0x61697469
mov dword [rbp + 0x29], 0x6e696e75
mov dword [rbp + 0x25], 0x20787463
mov rcx, qword [r14 + 0x20]
test rcx, rcx
je 0x1400072a0
cmp rcx, 0xffffffffffffffff
je 0x1400072a0
call qword [sym.imp.orauts.dll_CloseHandle]
mov qword [r14 + 0x20], 0xffffffffffffffff
mov rcx, qword [r14 + 0x18]
cmp rcx, 0xffffffffffffffff
je 0x1400072bd
test rcx, rcx
je 0x1400072bd
call qword [sym.imp.orauts.dll_CloseHandle]
mov qword [r14 + 0x18], 0xffffffffffffffff
mov eax, r15d
add rsp, 0x20
pop rbp
pop r15
pop r14
ret
mov dword [rbp], 0xed
call qword [sym.imp.orauts.dll_GetLastError]
mov dword [rbp + 0xd4], eax
mov byte [rbp + 0x18], 0
mov dword [rbp + 0x14], 0x6e696f6a
mov dword [rbp + 0x10], 0x5f737365
mov dword [rbp + 0xc], 0x636f7270
mov dword [rbp + 8], 0x5f73706d
mov dword [rbp + 4], 0x76727073
mov word [rbp + 0x3d], 0x64
mov dword [rbp + 0x39], 0x656c6961
mov dword [rbp + 0x35], 0x66207373
mov dword [rbp + 0x31], 0x65636f72
mov dword [rbp + 0x2d], 0x5065646f
mov dword [rbp + 0x29], 0x43746978
mov dword [rbp + 0x25], 0x45746547
mov r15d, 0xed
jmp 0x140007283
mov r15d, 5
jmp 0x140007283
Function at 0x14001c5ef
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140024c20]
jne 0x14001c16a
rol rcx, 0x10
test cx, 0xffff
jne 0x14001c166
repz ret
ror rcx, 0x10
jmp 0x14001c548
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1400253b0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1400254a8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14001c5cd
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1400253b0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14001c5ef
mov rax, qword [rsp + 0x88]
mov qword [0x1400254a8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140025448], rax
mov rax, qword [0x1400254a8]
mov qword [0x140025320], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140025430], rax
mov dword [0x140025310], 0xc0000409
mov dword [0x140025314], 1
mov rax, qword [0x140024c20]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140024c28]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1400253a8], eax
mov ecx, 1
call sub.MSVCR100.dll___crt_debugger_hook
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140021960]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400253a8], 0
jne 0x14001c676
mov ecx, 1
call sub.MSVCR100.dll___crt_debugger_hook
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140001090
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x460
mov rax, qword [0x140056010]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rdi, rcx
lea r8, str.FileRead_0_
lea rcx, [0x140090f60]
mov edx, 0x80
call fcn.14001b57c
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, rdi
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000114a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [0x140039a60]
lea rdx, [0x140090f60]
test rdi, rdi
je 0x140001134
mov r9, rdi
mov dword [rsp + 0x20], eax
lea rcx, str.error______s___s___s__failed._ErrorCode__d__n
call fcn.140001030
mov eax, 0x65b
jmp 0x14000117c
mov r9d, eax
lea rcx, str.error______s___s_failed._ErrorCode__d__n
call fcn.140001030
mov eax, 0x65b
jmp 0x14000117c
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov r8d, 0x200
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test rbx, rbx
je 0x14000117a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140011970
mov rbx, qword [rsp + 0x478]
add rsp, 0x460
pop rdi
ret

Function at 0x1400011a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, str.FileWrite_0_
mov rbx, rcx
mov edx, 0x80
lea rcx, [0x140090f60]
xor esi, esi
call fcn.14001b57c
mov qword [rsp + 0x30], rsi
lea r8d, [rsi + 2]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0x40000000
mov dword [rsp + 0x20], 4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x140001256
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [0x140039a98]
lea rdx, [0x140090f60]
test rbx, rbx
je 0x14000123d
mov r9, rbx
mov dword [rsp + 0x20], eax
lea rcx, str.error______s___s___s__failed._ErrorCode__d__n
call fcn.140001030
mov eax, 0x65b
jmp 0x1400012e0
mov r9d, eax
lea rcx, str.error______s___s_failed._ErrorCode__d__n
call fcn.140001030
mov eax, 0x65b
jmp 0x1400012e0
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rdi + r8], sil
jne 0x140001260
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], rsi
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400012cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [0x140039ab0]
lea rdx, [0x140090f60]
test rbx, rbx
je 0x1400012b6
mov r9, rbx
mov dword [rsp + 0x20], eax
lea rcx, str.error______s___s___s__failed._ErrorCode__d__n
call fcn.140001030
mov esi, 0x65b
jmp 0x1400012d5
mov r9d, eax
lea rcx, str.error______s___s_failed._ErrorCode__d__n
call fcn.140001030
mov esi, 0x65b
jmp 0x1400012d5
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x140001300
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rsi, rdx
lea r8, str.FileAppend_0_
mov rdi, rcx
mov edx, 0x80
lea rcx, [0x140090f60]
call fcn.14001b57c
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov edx, 0x40000000
mov rcx, rdi
mov dword [rsp + 0x20], 4
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x1400013b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [0x140039b20]
lea rdx, [0x140090f60]
test rdi, rdi
je 0x14000139f
mov r9, rdi
mov dword [rsp + 0x20], eax
lea rcx, str.error______s___s___s__failed._ErrorCode__d__n
call fcn.140001030
mov eax, 0x65b
jmp 0x1400014a7
mov r9d, eax
lea rcx, str.error______s___s_failed._ErrorCode__d__n
call fcn.140001030
mov eax, 0x65b
jmp 0x1400014a7
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
jne 0x140001422
lea r8, [0x140039b38]
lea rdx, [0x140090f60]
test rdi, rdi
je 0x140001409
mov r9, rdi
mov dword [rsp + 0x20], eax
lea rcx, str.error______s___s___s__failed._ErrorCode__d__n
call fcn.140001030
mov ebx, 0x65b
jmp 0x14000149c
mov r9d, 0xffffffff
lea rcx, str.error______s___s_failed._ErrorCode__d__n
call fcn.140001030
mov ebx, 0x65b
jmp 0x14000149c
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rsi + r8], 0
jne 0x140001430
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], 0
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140001493
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [0x140039b58]
lea rdx, [0x140090f60]
test rdi, rdi
je 0x14000148b
mov r9, rdi
mov dword [rsp + 0x20], eax
lea rcx, str.error______s___s___s__failed._ErrorCode__d__n
call fcn.140001030
mov ebx, 0x65b
jmp 0x14000149c
mov r9d, eax
jmp 0x14000140f
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

Function at 0x1400014c0
Capabilities:
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov edx, WSAStartup
jmp fcn.1400014f0

Function at 0x1400014d0
Capabilities:
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
cmp dword [0x140056a60], 0
mov edx, WSAGetLastError
jne 0x1400014e3
mov edx, WSAGetLastError
jmp fcn.1400014f0