joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140133fb0
Capabilities:
Initialize winhttp library

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x400
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rax, qword [0x140198858]
xor rax, rsp
mov qword [rsp + 0x3f0], rax
mov r14, r9
mov rbp, r8
mov rsi, rdx
mov rbx, rcx
mov qword [rsp + 0x30], rcx
lea rax, vtable.RefCounted.0
mov qword [rcx], rax
xor r15d, r15d
mov dword [rcx + 8], r15d
lea rax, [0x1401db078]
mov qword [rcx], rax
mov word [rcx + 0x10], r15w
add rcx, 0x18
xor r8d, r8d
xor edx, edx
call fcn.140027be0
nop
mov qword [rbx + 0x60], r15
lea rax, [rbx + 0x68]
lea edx, [r15 + 7]
mov qword [rax + 0x18], rdx
mov qword [rax + 0x10], r15
cmp rdx, 8
jb 0x14013403d
mov rax, qword [rax]
mov word [rax], r15w
lea rdi, [rbx + 0x88]
mov qword [rdi + 0x18], rdx
mov qword [rdi + 0x10], r15
cmp rdx, 8
jb 0x14013405b
mov rax, qword [rdi]
jmp 0x14013405e
mov rax, rdi
mov word [rax], r15w
lea rcx, [rbx + 0xa8]
mov qword [rcx + 0x18], rdx
mov qword [rcx + 0x10], r15
cmp rdx, 8
jb 0x14013407c
mov rax, qword [rcx]
jmp 0x14013407f
mov rax, rcx
mov word [rax], r15w
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rbp
call fcn.1400082c0
nop
lea rcx, [rbx + 0xc8]
call fcn.14013c68c
nop
mov qword [rbx + 0x100], r15
mov qword [rbx + 0x108], r15
mov rax, qword [rsp + 0x458]
mov qword [rbx + 0x118], rax
mov rax, qword [rsp + 0x450]
mov qword [rbx + 0x120], rax
mov dword [rbx + 0x128], 0x57
mov qword [rbx + 0x110], r14
cmp qword [rsi + 0x18], 8
jb 0x1401340e7
mov rsi, qword [rsi]
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rbx + 0x100], rax
test rax, rax
jne 0x14013413a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea r9, str.Failed_to_Open_Win_Http_session
mov edx, 0x79
lea rcx, [rsp + 0x60]
call fcn.140018d38
lea rdx, [0x1401e5908]
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
mov r8, rbp
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.1401342b0
mov rsi, rax
cmp rdi, rax
je 0x14013416b
xor r8d, r8d
mov dl, 1
mov rcx, rdi
call fcn.140007eb8
mov rdx, rsi
mov rcx, rdi
call fcn.140007c60
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x40]
call fcn.140007eb8
nop
mov rax, rbx
mov rcx, qword [rsp + 0x3f0]
xor rcx, rsp
call fcn.140022430
mov rbx, qword [rsp + 0x448]
add rsp, 0x400
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401345e4
Capabilities:
Prepare http request

Disassembly:
push rbx
sub rsp, 0x3f0
mov rax, qword [0x140198858]
xor rax, rsp
mov qword [rsp + 0x3e0], rax
cmp qword [r8 + 0x10], 0
mov rax, r8
mov rbx, rdx
jne 0x14013460f
xor eax, eax
jmp 0x140134619
cmp qword [r8 + 0x18], 8
jb 0x140134619
mov rax, qword [r8]
lea r8, [rcx + 0x88]
cmp qword [r8 + 0x18], 8
jb 0x14013462a
mov r8, qword [r8]
and dword [rsp + 0x30], 0
xor r9d, r9d
and qword [rsp + 0x28], 0
mov rdx, rax
mov rcx, qword [rcx + 0x108]
and qword [rsp + 0x20], 0
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
cmp qword [rbx], 0
jne 0x1401346a9
mov rcx, rbx
mov qword [rbx], rax
call fcn.140135648
test rax, rax
je 0x1401346d1
mov rcx, rbx
mov dword [rsp + 0x40], 1
call fcn.140135648
mov r9d, 4
lea r8, [rsp + 0x40]
mov rcx, rax
lea edx, [r9 + 0x49]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x140134702
mov rcx, qword [rsp + 0x3e0]
xor rcx, rsp
call fcn.140022430
add rsp, 0x3f0
pop rbx
ret
lea r8, str.OHINTERNET_handle_already_set
mov edx, 0x26
lea rcx, [rsp + 0x50]
call fcn.14007140c
lea rdx, [0x1401e5908]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.Failed_to_open_get_request_for_given_file
mov edx, 0x7c
mov r8d, eax
lea rcx, [rsp + 0x50]
call fcn.140023db0
lea rdx, [0x1401e5908]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.Failed_to_set_the_auto_logon_option
mov edx, 0x8b
mov r8d, eax
lea rcx, [rsp + 0x50]
call fcn.140013ff4
lea rdx, [0x1401e5908]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x140134b0c
Capabilities:
Read http header

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x358]
sub rsp, 0x430
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rax, qword [0x140198858]
xor rax, rsp
mov qword [rbp + 0x320], rax
mov edi, r9d
mov r14, r8
mov rbx, rdx
mov dword [rsp + 0x38], r9d
xor r15d, r15d
mov dword [rsp + 0x40], r15d
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x28], r15
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, edi
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x140134bf7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x140134bf7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rbp + 0x380], r15b
je 0x140134bce
mov dword [rsp + 0x34], eax
lea r9, [rsp + 0x34]
lea r8, [rsp + 0x38]
lea rdx, str.Header__d_not_available_in_the_request:_LastError:_0x_x
lea ecx, [r15 + 2]
call fcn.140133ea8
lea edi, [r15 + 7]
mov qword [rbx + 0x18], rdi
mov qword [rbx + 0x10], r15
mov word [rbx], r15w
jmp 0x140134cfe
mov r8d, eax
lea r9, str.Failed_to_read_the_header_buf_size_from_request_headers
mov edx, 0x83
lea rcx, [rbp - 0x70]
call fcn.14002ce00
lea rdx, [0x1401e5908]
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
mov word [rsp + 0x34], r15w
mov edx, dword [rsp + 0x30]
shr rdx, 1
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], r15
lea r8, [rsp + 0x34]
lea rcx, [rsp + 0x48]
call fcn.1401355e4
nop
mov qword [rsp + 0x28], r15
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rsi, qword [rsp + 0x48]
mov r9, rsi
xor r8d, r8d
mov edx, edi
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x140134c7a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea r9, str.Failed_to_read_the_header_id_from_request_headers
mov edx, 0x83
lea rcx, [rbp - 0x70]
call fcn.140024200
lea rdx, [0x1401e5908]
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
mov edi, 7
mov qword [rbp - 0x80], rdi
mov qword [rsp + 0x78], r15
mov word [rsp + 0x68], r15w
cmp word [rsi], r15w
jne 0x140134c99
mov r8, r15
jmp 0x140134ca7
or r8, 0xffffffffffffffff
inc r8
cmp word [rsi + r8*2], r15w
jne 0x140134c9d
mov rdx, rsi
lea rcx, [rsp + 0x68]
call fcn.1400083f8
mov qword [rbx + 0x18], rdi
mov qword [rbx + 0x10], r15
cmp rdi, 8
jb 0x140134cc7
mov rax, qword [rbx]
jmp 0x140134cca
mov rax, rbx
mov word [rax], r15w
lea rdx, [rsp + 0x68]
mov rcx, rbx
call fcn.140007c60
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x68]
call fcn.140007eb8
nop
mov rdx, qword [rsp + 0x58]
sub rdx, rsi
sar rdx, 1
mov rcx, rsi
call fcn.1400066bc
mov rax, rbx
mov rcx, qword [rbp + 0x320]
xor rcx, rsp
call fcn.140022430
mov rbx, qword [rsp + 0x460]
add rsp, 0x430
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140135ab0
Capabilities:
Check mutex on windows

Disassembly:
jmp 0x140135ab0
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea r8, str._MSIExecute
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
mov rdi, rax
test rax, rax
jne 0x140135ae5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x140135ae5
xor bl, bl
jmp 0x140135af5
mov bl, 1
test rdi, rdi
je 0x140135af5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140001830
Capabilities:
Encode data using xor
Execute command
Set console window title

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
movzx eax, word [0x1400036a0]
xor ecx, ecx
cmp dword [0x140005050], 2
movups xmm0, xmmword [str.fEWVD]
mov word [rbp - 0x20], ax
movups xmm1, xmmword [0x140003690]
movzx eax, byte [0x1400036a2]
mov byte [rbp - 0x1e], al
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm1
jl 0x1400019b9
movdqa xmm0, xmmword [str.6666666666666666O]
lea rdx, [rbp - 0x3c]
movdqa xmm5, xmmword [0x1400036d0]
movdqa xmm4, xmmword [0x140003710]
movdqa xmmword [rbp - 0x50], xmm0
mov r8d, dword [rbp - 0x50]
movaps xmmword [rsp + 0x60], xmm6
movdqa xmm6, xmmword [str.4444]
nop word [rax + rax]
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add ecx, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1400036f0]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rdx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, r8d
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400036f0]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x20
jl 0x1400018b0
movaps xmm6, xmmword [rsp + 0x60]
cmp ecx, 0x23
jge 0x1400019fd
movsxd rax, ecx
lea r8, [rbp - 0x40]
add r8, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0x4ec4ec4f
lea r8, [r8 + 1]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x34
movzx eax, cl
inc ecx
sub al, dl
add al, 0x36
xor byte [r8 - 1], al
cmp ecx, 0x23
jl 0x1400019d0
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
movzx eax, word [0x140003678]
lea rdx, [rbp - 0x50]
movsd xmm0, qword [str.zXY_SU_]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
movsd qword [rbp - 0x50], xmm0
xor byte [rbp - 0x4f], 0x37
xor byte [rbp - 0x4e], 0x38
xor byte [rbp - 0x4d], 0x39
xor byte [rbp - 0x4c], 0x3a
xor byte [rbp - 0x4b], 0x3b
xor byte [rbp - 0x4a], 0x3c
xor byte [rbp - 0x49], 0x3d
mov word [rbp - 0x48], ax
movzx eax, byte [0x14000367a]
xor byte [rbp - 0x48], 0x3e
xor al, 0x40
xor byte [rbp - 0x47], 0x3f
mov byte [rbp - 0x46], al
mov byte [rbp - 0x50], 0x4c
call fcn.140001b70
mov ecx, 0x9c4
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1400011c0
lea rcx, str.pause___nul
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor eax, eax
add rsp, 0x70
pop rbp
ret
Function at 0x140002910
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000295a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000295a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000295a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000295a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000295a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000295c
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 [0x140042490]
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 [0x1400424a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call fcn.140022c50
jmp 0x14000123c
mov rax, qword [0x1400424a0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x1400424a0]
mov dword [rax], 1
mov rax, qword [0x1400424e0]
mov rdx, rax
mov rax, qword [0x1400424d0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x14000123c
mov dword [0x140046024], 1
mov rax, qword [0x1400424a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x1400424c0]
mov rdx, rax
mov rax, qword [0x1400424b0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov rax, qword [0x1400424a0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x140042490]
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 [0x1400423e0]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x1400423e0]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.140021ed8
mov rax, qword [0x140042520]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x140042480]
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.1400216d0
mov eax, dword [0x140046004]
lea rdx, [0x140046008]
mov ecx, eax
call fcn.14000147c
call fcn.140021467
mov rax, qword [0x140042410]
mov rax, qword [rax]
mov rdx, qword [0x140046010]
mov qword [rax], rdx
mov rcx, qword [0x140046010]
mov rdx, qword [0x140046008]
mov eax, dword [0x140046004]
mov r8, rcx
mov ecx, eax
call fcn.1400016d0
mov dword [0x14004601c], eax
mov eax, dword [0x140046020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14004601c]
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x140046024]
test eax, eax
jne 0x14000136c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14004601c]
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 [0x140042440]
mov dword [rax], 1
mov rax, qword [0x140042450]
mov dword [rax], 1
mov rax, qword [0x140042460]
mov dword [rax], 1
mov rax, qword [0x140042400]
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 0x1400216e0
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.140022a40
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x1400223b2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140046168]
test eax, eax
je 0x14002244a
lea rax, [0x140046140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140046170]
mov qword [rbp - 8], rax
jmp 0x14002242e
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 0x140022422
cmp qword [rbp - 0x10], 0
je 0x140022422
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 0x1400223e8
lea rax, [0x140046140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14002244b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140022550
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 0x140022578
mov eax, 0
jmp 0x1400225c6
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 0x1400225a1
mov eax, 0
jmp 0x1400225c6
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 0x1400225c1
mov eax, 0
jmp 0x1400225c6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x1400225cc
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 0x14002264a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140022641
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 0x140022641
mov rax, qword [rbp - 8]
jmp 0x14002265f
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 0x140022614
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4cdf20
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.2fc4cf000
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4ce922
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f1108]
test eax, eax
je 0x2fc4ce9ba
lea rax, [0x2fc4f10e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f1110]
mov qword [rbp - 8], rax
jmp 0x2fc4ce99e
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 0x2fc4ce992
cmp qword [rbp - 0x10], 0
je 0x2fc4ce992
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 0x2fc4ce958
lea rax, [0x2fc4f10e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4ce9bb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4ceac0
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 0x2fc4ceae8
mov eax, 0
jmp 0x2fc4ceb36
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 0x2fc4ceb11
mov eax, 0
jmp 0x2fc4ceb36
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 0x2fc4ceb31
mov eax, 0
jmp 0x2fc4ceb36
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4ceb3c
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 0x2fc4cebba
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4cebb1
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 0x2fc4cebb1
mov rax, qword [rbp - 8]
jmp 0x2fc4cebcf
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 0x2fc4ceb84
mov eax, 0
add rsp, 0x20
pop rbp
ret