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

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0xa0
mov rax, qword [0x1000c2110]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov eax, 0x9a2a
mov dword [rsp + 0x30], 0xa1bbbc6c
mov byte [rsp + 0x38], 0xbf
mov word [rsp + 0x34], ax
mov eax, 0x46ba
mov byte [rsp + 0x39], 0xb4
mov byte [rsp + 0x3a], 0x8c
mov byte [rsp + 0x3b], 0xd4
mov byte [rsp + 0x3c], 0x78
mov word [rsp + 0x36], ax
mov byte [rsp + 0x3d], 0x86
mov byte [rsp + 0x3e], LoadRegTypeLib
mov byte [rsp + 0x3f], 0x99
mov rsi, rdx
mov rbp, rcx
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [r11 - 0x28], xmm0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
lea r8d, [rbx + 0x14]
lea rcx, [rsp + 0x58]
xor edx, edx
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x30], rbx
call sub.msvcrt.dll_memset
call sub.MpClient.dll_MpClientUtilExportFunctions
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x44]
lea rcx, [rsp + 0x80]
lea edx, [rbx + 4]
call qword [rax + 0x18]
mov rcx, qword [rsp + 0x30]
cmp eax, ebx
mov edi, eax
jl 0x100082da2
cmp rcx, rbx
je 0x100082d9d
cmp dword [rsp + 0x40], 0x14
jb 0x100082d9d
mov rdx, rcx
lea r8d, [rbx + 0x14]
lea rcx, [rsp + 0x58]
call sub.msvcrt.dll_memmove
mov rcx, qword [rsp + 0x30]
jmp 0x100082da2
mov edi, 0x8000ffff
cmp rcx, rbx
je 0x100082dac
call sub.MpClient.dll_MpFreeMemory
cmp edi, ebx
jge 0x100082de4
cmp edi, 0x800106b5
je 0x100082dd4
cmp edi, 0x800106ba
je 0x100082dd4
cmp edi, 0x800106bd
jle 0x100082dd0
cmp edi, 0x800106bf
jle 0x100082dd4
mov eax, edi
jmp 0x100082e42
lea rcx, [rsp + 0x48]
call fcn.100082bb8
cmp eax, ebx
jge 0x100082df0
jmp 0x100082e42
movdqu xmm0, xmmword [rsp + 0x58]
movdqu xmmword [rsp + 0x48], xmm0
lea rax, [rsp + 0x48]
sub rsi, rax
lea rax, [rsi + rbx*8]
inc rbx
mov rdx, qword [rsp + rax + 0x48]
xor qword [rsp + rbx*8 + 0x40], rdx
cmp rbx, 2
jb 0x100082df8
mov edx, SafeArrayGetElemsize
lea rax, [rsp + 0x70]
lea r9, [rsp + 0x30]
lea ecx, [rdx - 0xe]
lea r8, [rsp + 0x48]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x20], rax
call fcn.10001aa04
xor eax, eax
movdqu xmm5, xmmword [rsp + 0x70]
movdqu xmmword [rbp], xmm5
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.10009d3a0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x10009cc68
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov eax, dword [rcx + 0x28]
xor edi, edi
mov rbx, rcx
test eax, eax
jne 0x10009cde8
lea rdx, [0x1000c6b58]
lea ecx, [rdi + 0x18]
call fcn.10001a99c
test rax, rax
je 0x10009cc9b
and qword [rax], rdi
jmp 0x10009cc9d
xor eax, eax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x10009cd82
mov rdx, rbx
xchg qword [rax], rdx
test rdx, rdx
je 0x10009ccc6
mov rax, qword [rdx]
movsxd rcx, dword [rax + 4]
add rcx, rdx
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov rax, qword [rcx]
call qword [rax]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x70]
lea r11, [0x10008e1ec]
mov qword [rax + 8], r11
mov rax, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
lock add dword [rbx + 0x10], 1
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov r9, qword [rsp + 0x30]
and qword [rsp + 0x28], rdi
and dword [rsp + 0x20], edi
lea r8, [0x10009cdfc]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
jne 0x10009cd79
or ecx, 0xffffffff
lock xadd dword [rbx + 0x10], ecx
add ecx, 0xffffffff
jne 0x10009cd40
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_SetEvent]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1000c3470]
lea rdx, [0x1000c3470]
cmp rcx, rdx
je 0x10009cdbb
test byte [rcx + 0x1c], 1
je 0x10009cdbb
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000022b0]
mov edx, SafeArrayDestroy
mov r9d, eax
call fcn.100040094
jmp 0x10009cdbb
xor eax, eax
xchg qword [rsp + 0x30], rax
jmp 0x10009cdbb
mov rcx, qword [0x1000c3470]
lea rdx, [0x1000c3470]
cmp rcx, rdx
je 0x10009cdb0
test byte [rcx + 0x1c], 1
je 0x10009cdb0
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000022b0]
mov edx, SafeArrayDestroy
call fcn.10001ea00
mov ecx, SafeArrayDestroy
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
xchg qword [rsp + 0x30], rbx
test rbx, rbx
je 0x10009cde8
mov rcx, qword [rbx]
test rcx, rcx
je 0x10009cddf
mov rax, qword [rcx]
movsxd rdx, dword [rax + 4]
add rcx, rdx
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_free]
mov rax, rdi
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x10009d3a0
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1000c2110]
jne 0x10009d3bb
rol rcx, 0x10
test cx, 0xffff
jne 0x10009d3b7
ret 0
ror rcx, 0x10
jmp 0x10009d7bc
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1000c6500]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x1000c65f8]
mov qword [rsp + 0x58], r11
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 0x10009d841
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, [0x1000c6500]
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 0x10009d863
mov rax, qword [rsp + 0x88]
mov qword [0x1000c65f8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1000c6598], rax
mov rax, qword [0x1000c65f8]
mov qword [0x1000c6470], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1000c6580], rax
mov dword [0x1000c6460], 0xc0000409
mov dword [0x1000c6464], 1
mov rax, qword [0x1000c2110]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1000c2118]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x100001fd8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
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 0x10009d658
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x10009d6a5
cmp rcx, 0xffffffffffffffff
je 0x10009d6a5
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x10009d69d
cmp dword [rcx + 0x3c], edx
jl 0x10009d69d
cmp dword [rcx + 0x3c], 0x10000000
jae 0x10009d69d
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 0x10009d6a5
mov rax, rdx
add rsp, 0x18
ret
Function at 0x10009dcec
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x1000c2110]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call sub.msvcrt.dll_memset
and qword [rbx + 0x50], 0
and dword [rbx + 0x58], 0
and dword [rbx + 0x5c], 0
lea rax, [0x100000000]
mov esi, 0x94
lea rcx, [rsp + 0x20]
mov r8, rsi
xor edx, edx
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rax
mov dword [rbx], 0x60
mov byte [rbx + 0x18], 0
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x30], 2
mov esi, 1
jne 0x10009dd7f
cmp dword [rsp + 0x24], 5
jb 0x10009dd99
jmp 0x10009dd95
cmp dword [rsp + 0x30], esi
jne 0x10009dd99
cmp dword [rsp + 0x24], 4
ja 0x10009dd95
jne 0x10009dd99
cmp dword [rsp + 0x28], 0
jbe 0x10009dd99
mov byte [rbx + 0x18], sil
lea rax, [0x100002050]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.10001d4f4
movzx ecx, byte [0x1000c6d28]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x1000c6d28], cl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.10009d3a0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x10009e25c
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x530
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x10009e2c7
and qword [rsp + 0x38], 0
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov r8, rbx
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
jmp 0x10009e2e7
mov rax, qword [rsp + 0x538]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x538]
mov qword [rsp + 0xf8], rax
lea rcx, [0x100002158]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add rsp, 0x530
pop rbx
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 [0x14003d490]
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 [0x14003d4a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call fcn.14001d220
jmp 0x14000123c
mov rax, qword [0x14003d4a0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x14003d4a0]
mov dword [rax], 1
mov rax, qword [0x14003d4e0]
mov rdx, rax
mov rax, qword [0x14003d4d0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x14000123c
mov dword [0x140041024], 1
mov rax, qword [0x14003d4a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x14003d4c0]
mov rdx, rax
mov rax, qword [0x14003d4b0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov rax, qword [0x14003d4a0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x14003d490]
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 [0x14003d3e0]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x14003d3e0]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.14001c4a8
mov rax, qword [0x14003d520]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x14003d480]
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.14001bca0
mov eax, dword [0x140041004]
lea rdx, [0x140041008]
mov ecx, eax
call fcn.14000147c
call fcn.14001ba37
mov rax, qword [0x14003d410]
mov rax, qword [rax]
mov rdx, qword [0x140041010]
mov qword [rax], rdx
mov rcx, qword [0x140041010]
mov rdx, qword [0x140041008]
mov eax, dword [0x140041004]
mov r8, rcx
mov ecx, eax
call fcn.1400016d0
mov dword [0x14004101c], eax
mov eax, dword [0x140041020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14004101c]
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x140041024]
test eax, eax
jne 0x14000136c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14004101c]
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 [0x14003d440]
mov dword [rax], 1
mov rax, qword [0x14003d450]
mov dword [rax], 1
mov rax, qword [0x14003d460]
mov dword [rax], 1
mov rax, qword [0x14003d400]
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 0x14001bcb0
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.14001d010
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x14001c982
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140041168]
test eax, eax
je 0x14001ca1a
lea rax, [0x140041140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140041170]
mov qword [rbp - 8], rax
jmp 0x14001c9fe
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 0x14001c9f2
cmp qword [rbp - 0x10], 0
je 0x14001c9f2
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 0x14001c9b8
lea rax, [0x140041140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14001ca1b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x14001cb20
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 0x14001cb48
mov eax, 0
jmp 0x14001cb96
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 0x14001cb71
mov eax, 0
jmp 0x14001cb96
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 0x14001cb91
mov eax, 0
jmp 0x14001cb96
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14001cb9c
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 0x14001cc1a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14001cc11
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 0x14001cc11
mov rax, qword [rbp - 8]
jmp 0x14001cc2f
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 0x14001cbe4
mov eax, 0
add rsp, 0x20
pop rbp
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 [0x140041490]
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 [0x1400414a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call fcn.140021ba0
jmp 0x14000123c
mov rax, qword [0x1400414a0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x1400414a0]
mov dword [rax], 1
mov rax, qword [0x1400414e0]
mov rdx, rax
mov rax, qword [0x1400414d0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x14000123c
mov dword [0x140045024], 1
mov rax, qword [0x1400414a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x1400414c0]
mov rdx, rax
mov rax, qword [0x1400414b0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov rax, qword [0x1400414a0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x140041490]
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 [0x1400413e0]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x1400413e0]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.140020e28
mov rax, qword [0x140041520]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x140041480]
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.140020620
mov eax, dword [0x140045004]
lea rdx, [0x140045008]
mov ecx, eax
call fcn.14000147c
call fcn.1400203b7
mov rax, qword [0x140041410]
mov rax, qword [rax]
mov rdx, qword [0x140045010]
mov qword [rax], rdx
mov rcx, qword [0x140045010]
mov rdx, qword [0x140045008]
mov eax, dword [0x140045004]
mov r8, rcx
mov ecx, eax
call fcn.1400016d0
mov dword [0x14004501c], eax
mov eax, dword [0x140045020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14004501c]
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x140045024]
test eax, eax
jne 0x14000136c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14004501c]
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 [0x140041440]
mov dword [rax], 1
mov rax, qword [0x140041450]
mov dword [rax], 1
mov rax, qword [0x140041460]
mov dword [rax], 1
mov rax, qword [0x140041400]
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 0x140020630
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.140021990
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x140021302
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140045168]
test eax, eax
je 0x14002139a
lea rax, [0x140045140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140045170]
mov qword [rbp - 8], rax
jmp 0x14002137e
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 0x140021372
cmp qword [rbp - 0x10], 0
je 0x140021372
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 0x140021338
lea rax, [0x140045140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14002139b
nop
add rsp, 0x30
pop rbp
ret