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

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d3990
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d32b2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f5108]
test eax, eax
je 0x2fc4d334a
lea rax, [0x2fc4f50e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f5110]
mov qword [rbp - 8], rax
jmp 0x2fc4d332e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d3322
cmp qword [rbp - 0x10], 0
je 0x2fc4d3322
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d32e8
lea rax, [0x2fc4f50e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d334b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d3450
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d3478
mov eax, 0
jmp 0x2fc4d34c6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d34a1
mov eax, 0
jmp 0x2fc4d34c6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d34c1
mov eax, 0
jmp 0x2fc4d34c6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d34cc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d354a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d3541
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d3541
mov rax, qword [rbp - 8]
jmp 0x2fc4d355f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d3514
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14007ce28
Capabilities:
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 r14
sub rsp, 0xb0
mov rax, qword [0x14010a078]
xor rax, rsp
mov qword [rsp + 0xa0], rax
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x80
call sub.msvcrt.dll_memset
xor ebp, ebp
lea rdi, [0x1400eacd0]
mov r8, rdi
lea r10d, [rbp + 0x11]
mov r9, qword [r8]
jmp 0x14007ce9e
shr ax, 6
lea r9, [r9 + 2]
movzx edx, ax
shr rdx, 3
movzx eax, ax
and eax, 7
movzx ecx, byte [rsp + rdx + 0x20]
bts ecx, eax
mov byte [rsp + rdx + 0x20], cl
movzx eax, word [r9]
test ax, ax
jne 0x14007ce7d
add r8, 8
sub r10, 1
jne 0x14007ce78
lea edx, [r10 + 0x20]
mov r9d, ebp
lea r8, [rsp + 0x20]
mov ecx, dword [r8]
dec edx
lea r8, [r8 + 4]
jmp 0x14007cedb
mov eax, ecx
lea r10, [0x1400f3cc0]
and eax, 0xf
add r9d, dword [r10 + rax*4]
shr ecx, 4
test ecx, ecx
jne 0x14007cec8
test edx, edx
jne 0x14007cebd
lea esi, [rcx + 0x40]
lea ebx, [r9 + 1]
mov edx, esi
shl ebx, 6
mov ecx, ebx
call fcn.140080c90
mov edx, esi
mov qword [0x140111ea8], rax
mov ecx, 0x400
call fcn.140080c90
mov r14, qword [0x140111ea8]
mov rsi, rax
mov qword [0x140111eb0], rax
test r14, r14
je 0x14007cfb5
test rax, rax
je 0x14007cfb5
movsxd r8, ebx
or edx, 0xffffffff
mov rcx, r14
call sub.msvcrt.dll_memset
mov r8, rsi
mov r9d, 1
mov ecx, ebp
movsxd rax, ecx
mov dl, byte [rsp + rax + 0x20]
mov eax, 8
test dl, 1
je 0x14007cf5c
mov byte [r8], r9b
inc r9d
shr dl, 1
inc r8
sub rax, 1
jne 0x14007cf51
inc ecx
cmp ecx, 0x80
jb 0x14007cf45
mov r8d, ebp
mov r9, qword [rdi]
jmp 0x14007cf98
movzx edx, ax
lea r9, [r9 + 2]
mov eax, edx
and edx, 0x3f
shr rax, 6
movzx ecx, byte [rax + rsi]
shl rcx, 6
add rcx, r14
mov byte [rdx + rcx], r8b
movzx eax, word [r9]
test ax, ax
jne 0x14007cf79
inc r8d
add rdi, 8
cmp r8d, 0x11
jl 0x14007cf74
mov eax, 1
jmp 0x14007cfb7
xor eax, eax
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400e27e0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x1400a7ce0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1d0
mov rax, qword [0x14010a078]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov r8, qword [rcx + 8]
mov rsi, rcx
movzx ecx, word [rcx + 0xf0]
mov r13, rdx
mov rax, qword [rsi + 0x10]
movzx r12d, word [rsi + 0xf2]
mov rbx, qword [r8]
sub r12d, ecx
test dword [r8 + 0x10], 0x200000
lea rdx, [rax + rcx*2]
mov qword [rsp + 0xb0], rbx
mov qword [rsp + 0xa8], rdx
je 0x1400a7daf
mov r8d, dword [r13 + 0x34]
lea r10, [r13 + 0x28]
mov rax, qword [rbx]
mov r9, rdx
mov rdx, qword [r13 + 0x10]
mov rcx, qword [rbx + 8]
mov r11, qword [rax + 0x118]
mov rax, qword [r13 + 0x20]
mov qword [rsp + 0x58], rax
mov rax, r11
mov dword [rsp + 0x50], r8d
mov r8d, dword [r13 + 0x18]
mov qword [rsp + 0x48], r10
mov qword [rsp + 0x40], r13
mov dword [rsp + 0x38], r8d
mov r8d, dword [r13 + 0x1c]
mov dword [rsp + 0x30], r8d
xor r8d, r8d
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r8
mov r8, r13
call qword [case.0x1400739fa.0]
jmp 0x1400a7efd
movzx r10d, word [rsi + 0xf6]
xor r8d, r8d
test r10w, r10w
jne 0x1400a7dc6
mov rax, qword [rsi + 0x58]
jmp 0x1400a7e0c
cmp r12d, 0x7d
jl 0x1400a7dd6
mov eax, 0xfffffc18
jmp 0x1400a7efd
mov rdx, qword [rsi + 0x58]
movzx ecx, r10w
movsxd r9, r12d
movzx eax, word [rdx]
sub ecx, eax
test r12d, r12d
jle 0x1400a7e04
movzx eax, word [rdx + r8*2]
add ax, cx
mov word [rsp + r8*2 + 0xc0], ax
inc r8
cmp r8, r9
jl 0x1400a7deb
lea rax, [rsp + 0xc0]
mov rdx, qword [rbx]
lea r9, [r13 + 0x28]
movzx r15d, word [rsi + 0xf8]
mov r14, qword [rsi + 0x78]
mov qword [rsp + 0xa0], rax
movzx ecx, r10w
add r14, rcx
movzx eax, r10w
sub r15d, eax
mov rax, qword [rsi + 0x68]
lea rbp, [rax + rcx*4]
mov rax, qword [rsi + 0x48]
lea rdi, [rax + rcx*8]
mov rax, qword [rsi + 0x50]
lea rbx, [rax + rcx*4]
mov rax, qword [rsi + 0x40]
lea r11, [rax + rcx*4]
mov rax, qword [rsi + 0x38]
lea r10, [rax + rcx*2]
movzx ecx, word [rsi + 0xf0]
mov rax, qword [rsi + 0x60]
mov rsi, qword [rdx + 0x140]
mov rdx, qword [r13 + 0x10]
lea r8, [rax + rcx*2]
mov rax, qword [r13 + 0x20]
mov ecx, dword [r13 + 0x1c]
mov qword [rsp + 0x90], rax
mov eax, dword [r13 + 0x34]
mov dword [rsp + 0x88], eax
mov eax, dword [r13 + 0x18]
mov qword [rsp + 0x80], r9
mov r9, qword [rsp + 0xa0]
mov qword [rsp + 0x78], r13
mov dword [rsp + 0x70], eax
mov rax, rsi
mov dword [rsp + 0x68], ecx
mov rcx, qword [rsp + 0xb0]
mov dword [rsp + 0x60], r15d
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], rbp
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], r11
mov qword [rsp + 0x30], r10
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r8
mov r8, qword [rsp + 0xa8]
call qword [case.0x1400739fa.0]
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1400e27e0
mov rbx, qword [rsp + 0x220]
add rsp, 0x1d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400e27b0
Capabilities:
Access peb ldr_data

Disassembly:
push r12
push r14
push r15
sub r12, r12
add r12, 0x60
mov r14, qword gs:[r12]

Function at 0x1400e2eb0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400e2efc
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400e2ef4
cmp dword [rcx + 0x3c], edx
jl 0x1400e2ef4
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1400e2ef4
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x1400e2efc
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140001250
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x70], rax
xor ebx, ebx
call qword [sym.imp.MSVCP140.dll__Thrd_hardware_concurrency]
cmp eax, 4
ja 0x140001335
lea ecx, [rbx + 0x10]
call fcn.140001f30
lea rcx, [0x1400034e0]
mov qword [rax], rcx
lea rcx, [0x140001b10]
mov qword [rax + 8], rcx
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ebx
mov r9, rax
lea r8, [0x140001ed0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140001325
cmp dword [rsp + 0x48], ebx
jne 0x1400012db
lea ecx, [rbx + 1]
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rsp + 0x48], eax
jne 0x1400012f3
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x30], xmm0
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.MSVCP140.dll__Thrd_join]
test eax, eax
je 0x14000131b
mov ecx, 2
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov eax, 1
jmp 0x1400013f3
mov dword [rsp + 0x48], ebx
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
movsd xmm0, qword [str.192.168.0.100]
movsd qword [rsp + 0x60], xmm0
mov eax, dword [0x140003520]
mov dword [rsp + 0x68], eax
movzx eax, word [0x140003524]
mov word [rsp + 0x6c], ax
mov eax, dword [str.false]
mov dword [rsp + 0x30], eax
movzx eax, word [0x1400034d8]
mov word [rsp + 0x34], ax
xor eax, eax
mov dword [rsp + 0x36], eax
lea ecx, [rax + 0xa]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
movsd xmm0, qword [rsp + 0x30]
movsd qword [rax], xmm0
movzx eax, word [rsp + 0x38]
mov word [rdi + 8], ax
movsd xmm0, qword [str.shellcode.ini]
movsd qword [rsp + 0x50], xmm0
mov eax, dword [0x140003530]
mov dword [rsp + 0x58], eax
movzx eax, word [0x140003534]
mov word [rsp + 0x5c], ax
lea r8, [rsp + 0x50]
lea rcx, [rsp + 0x60]
call fcn.140001420
mov rbx, rax
mov rdx, rdi
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001c00
mov rcx, rax
lea rdx, [0x140001dd0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, rbx
call fcn.140001850
xor eax, eax
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140001f10
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret
Function at 0x140001e10
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
mov ecx, 0x10
call fcn.140001f30
lea rcx, [0x1400035c0]
mov qword [rax], rcx
lea rcx, [0x140001b10]
mov qword [rax + 8], rcx
mov qword [rsp + 0x30], rax
lea rdi, [rbx + 8]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x140001ed0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbx], rax
test rax, rax
je 0x140001e98
mov rax, rbx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140001f10
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov dword [rdi], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3

Function at 0x140002898
Capabilities:
Parse pe header

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x140045490]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x1400454a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call fcn.140024f40
jmp 0x14000123c
mov rax, qword [0x1400454a0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x1400454a0]
mov dword [rax], 1
mov rax, qword [0x1400454e0]
mov rdx, rax
mov rax, qword [0x1400454d0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x14000123c
mov dword [0x140049024], 1
mov rax, qword [0x1400454a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x1400454c0]
mov rdx, rax
mov rax, qword [0x1400454b0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov rax, qword [0x1400454a0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x140045490]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x1400453e0]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x1400453e0]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.1400241c8
mov rax, qword [0x140045520]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x140045480]
mov qword [rdx], rax
lea rax, section..text
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.1400239c0
mov eax, dword [0x140049004]
lea rdx, [0x140049008]
mov ecx, eax
call fcn.14000147c
call fcn.140023757
mov rax, qword [0x140045410]
mov rax, qword [rax]
mov rdx, qword [0x140049010]
mov qword [rax], rdx
mov rcx, qword [0x140049010]
mov rdx, qword [0x140049008]
mov eax, dword [0x140049004]
mov r8, rcx
mov ecx, eax
call fcn.1400016d0
mov dword [0x14004901c], eax
mov eax, dword [0x140049020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14004901c]
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x140049024]
test eax, eax
jne 0x14000136c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14004901c]
add rsp, 0x70
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140045440]
mov dword [rax], 1
mov rax, qword [0x140045450]
mov dword [rax], 1
mov rax, qword [0x140045460]
mov dword [rax], 1
mov rax, qword [0x140045400]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1400239d0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.140024d30
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x1400246a2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140049168]
test eax, eax
je 0x14002473a
lea rax, [0x140049140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140049170]
mov qword [rbp - 8], rax
jmp 0x14002471e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140024712
cmp qword [rbp - 0x10], 0
je 0x140024712
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400246d8
lea rax, [0x140049140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14002473b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140024840
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140024868
mov eax, 0
jmp 0x1400248b6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140024891
mov eax, 0
jmp 0x1400248b6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1400248b1
mov eax, 0
jmp 0x1400248b6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x1400248bc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14002493a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140024931
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140024931
mov rax, qword [rbp - 8]
jmp 0x14002494f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140024904
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400029d0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x140002a2d
lea rbx, [0x1400387c0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140002a14
cmp r10, 2
jb 0x140002a14
cmp byte [r9], r8b
jne 0x140002a14
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x1400029f0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x140002a6f
lea rbx, [0x1400387c0]
cmp r8b, 0x23
jne 0x140002a53
cmp byte [r9], r8b
jne 0x140002a53
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x140002a40
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x140002c30
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov rdi, r8
mov rbx, rcx
test rcx, rcx
jne 0x140002c5f
mov r8d, 0x600
lea rdx, str.D:lnwHigh864ShopExternalPunchimguiimgui.cpp
lea rcx, str.filename__mode
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
test rdi, rdi
je 0x140002c6b
mov qword [rdi], 0
lea rdx, [0x1400383d0]
mov rcx, rbx
call fcn.140002a80
mov rbx, rax
test rax, rax
jne 0x140002c8d
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x30], rbp
mov rcx, rbx
mov qword [rsp + 0x38], rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x140002d64
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140002d64
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x140002d64
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140002d64
cmp rsi, 0xffffffffffffffff
je 0x140002d64
mov rax, qword [0x14008b0a0]
test rax, rax
je 0x140002d01
inc dword [rax + 0x3b4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbp, rax
test rax, rax
je 0x140002d64
mov r9, rbx
mov r8, rsi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rsi
je 0x140002d51
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x14008b0a0]
test rax, rax
je 0x140002d46
dec dword [rax + 0x3b4]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140002d6d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rdi, rdi
je 0x140002d5f
mov qword [rdi], rsi
mov rax, rbp
jmp 0x140002d6f
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret