joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100013920
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x250
mov rax, qword [0x100019110]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov ebx, 0x104
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x30]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp eax, ebx
jae 0x100013aa6
xor r12d, r12d
cmp eax, r12d
jne 0x10001397e
call sub.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError
jmp 0x100013aab
mov rax, qword [rsp + 0x20]
cmp rax, r12
je 0x100013aa6
lea rcx, [rsp + 0x30]
cmp rax, rcx
je 0x100013aa6
mov word [rax], r12w
movzx ecx, word [rsp + 0x30]
mov r13d, 0x5c
cmp cx, 0x41
jb 0x1000139b5
cmp cx, 0x5a
jbe 0x1000139be
lea eax, [rcx - 0x61]
cmp ax, 0x19
ja 0x1000139d9
cmp word [rsp + 0x32], 0x3a
jne 0x1000139d9
cmp word [rsp + 0x34], r13w
jne 0x100013aa6
lea rsi, [rsp + 0x34]
jmp 0x1000139de
mov rsi, qword [rsp + 0x20]
cmp cx, r13w
jne 0x100013a1a
cmp word [rsp + 0x32], r13w
jne 0x100013a1a
lea rcx, [rsp + 0x34]
mov edx, r13d
call fcn.100014826
cmp rax, r12
je 0x100013aa6
lea rcx, [rax + 2]
mov edx, r13d
call fcn.100014826
mov rsi, rax
cmp rax, r12
je 0x100013aa6
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100013a39
and al, 0x10
neg al
sbb eax, eax
not eax
and eax, 0x10b
jmp 0x100013aab
mov rdi, qword [rsp + 0x20]
lea rax, [rsp + 0x30]
cmp rdi, rax
jne 0x100013a4f
lea rdi, [rsp + 0x30]
jmp 0x100013a53
add rdi, 0xfffffffffffffffe
cmp rdi, rsi
je 0x100013aa6
cmp word [rdi], r13w
jne 0x100013aa6
cmp rdi, rsi
jbe 0x100013aa6
lea rcx, [rsp + 0x30]
mov edx, r13d
mov word [rdi], r12w
call sub.msvcrt.dll_wcsrchr
mov rbp, rax
cmp rax, r12
je 0x100013aa6
movzx ebx, word [rax + 2]
lea rcx, [rsp + 0x30]
mov word [rax + 2], r12w
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov word [rbp + 2], bx
cmp eax, 0xffffffff
jne 0x100013ad8
mov rdi, rbp
cmp rbp, rsi
ja 0x100013a63
cmp rdi, rsi
ja 0x100013afe
mov eax, 0x7b
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.100014800
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
test al, 0x10
jne 0x100013aa1
mov eax, 0x10b
jmp 0x100013aab
cmp word [rdi + 2], r12w
je 0x100013b15
mov rcx, rdi
mov word [rdi], r13w
call qword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_lstrlenW]
movsxd rcx, eax
lea rdi, [rdi + rcx*2]
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, r12d
jne 0x100013ae3
jmp 0x100013974
xor eax, eax
jmp 0x100013aab
Function at 0x100013b20
Capabilities:
Get file attributes
Set file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x70
xor ebx, ebx
mov rsi, rcx
mov byte [rax + 8], 1
mov edi, ebx
cmp rcx, 0xffffffffffffffff
jne 0x100013b49
lea edi, [rcx + 0x58]
jmp 0x100013bdd
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x30]
mov r9d, 0x28
mov dword [rsp + 0x20], 4
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
cmp eax, ebx
jl 0x100013bab
test byte [rsp + 0x60], 1
je 0x100013bab
xor edx, edx
lea rcx, [rsp + 0x40]
lea r8d, [rdx + 0x28]
call sub.msvcrt.dll_memset
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x30]
mov r9d, 0x28
mov rcx, rsi
mov dword [rsp + 0x60], 0x80
mov dword [rsp + 0x20], 4
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
lea r8, [rsp + 0x80]
lea rdx, [rsp + 0x30]
mov r9d, 1
mov rcx, rsi
mov dword [rsp + 0x20], 0xd
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
cmp eax, ebx
jge 0x100013bdd
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edi, eax
mov ecx, edi
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_SetLastError]
cmp edi, ebx
lea r11, [rsp + 0x70]
mov rsi, qword [r11 + 0x20]
sete bl
mov eax, ebx
mov rbx, qword [r11 + 0x18]
mov rsp, r11
pop rdi
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 [0x140008680]
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 [0x140008690]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call sym._amsg_exit
jmp 0x14000123c
mov rax, qword [0x140008690]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x140008690]
mov dword [rax], 1
mov rax, qword [0x1400086d0]
mov rdx, rax
mov rax, qword [0x1400086c0]
mov rcx, rax
call sym._initterm
jmp 0x14000123c
mov dword [0x14000d024], 1
mov rax, qword [0x140008690]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x1400086b0]
mov rdx, rax
mov rax, qword [0x1400086a0]
mov rcx, rax
call sym._initterm
mov rax, qword [0x140008690]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x140008680]
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 [0x1400085d0]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x1400085d0]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call sym._pei386_runtime_relocator
mov rax, qword [sym._gnu_exception_handler]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x140008670]
mov qword [rdx], rax
lea rax, [sym.__mingw_invalidParameterHandler]
mov rcx, rax
call sym._set_invalid_parameter_handler
call sym._fpreset
mov eax, dword [0x14000d004]
lea rdx, [0x14000d008]
mov ecx, eax
call sym.duplicate_ppstrings
call sym.__main
mov rax, qword [0x140008600]
mov rax, qword [rax]
mov rdx, qword [0x14000d010]
mov qword [rax], rdx
mov rcx, qword [0x14000d010]
mov rdx, qword [0x14000d008]
mov eax, dword [0x14000d004]
mov r8, rcx
mov ecx, eax
call sym.main
mov dword [0x14000d01c], eax
mov eax, dword [0x14000d020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14000d01c]
mov ecx, eax
call sym.exit
mov eax, dword [0x14000d024]
test eax, eax
jne 0x14000136c
call sym._cexit
mov eax, dword [0x14000d01c]
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 [0x140008630]
mov dword [rax], 1
mov rax, qword [0x140008640]
mov dword [rax], 1
mov rax, qword [0x140008650]
mov dword [rax], 1
mov rax, qword [0x1400085f0]
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 0x14000179a
Capabilities:
Log keystrokes via application hook

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov r9d, 0
mov r8d, 0
lea rax, [sym.HookCallback_int__unsigned_long_long__long_long_]
mov rdx, rax
mov ecx, 0xd
mov rax, qword [sym.imp.USER32.dll_SetWindowsHookExW]
call rax
mov qword [0x14000d0a0], rax
mov rax, qword [0x14000d0a0]
test rax, rax
sete al
test al, al
je 0x140001816
lea rax, str.Failed_to_install_hook_
mov qword [rbp - 8], rax
lea rax, str.Error
mov qword [rbp - 0x10], rax
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
mov r9d, 0x10
mov r8, rdx
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_MessageBoxW]
call rax
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140001c15
Capabilities:
Hide graphical window

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov edx, 0
lea rax, str.ConsoleWindowClass
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_FindWindowA]
call rax
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_ShowWindow]
call rax
nop
add rsp, 0x20
pop rbp
ret

Function at 0x140002830
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x140003502
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14000d4c8]
test eax, eax
je 0x14000359a
lea rax, [0x14000d4a0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14000d4d0]
mov qword [rbp - 8], rax
jmp 0x14000357e
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 0x140003572
cmp qword [rbp - 0x10], 0
je 0x140003572
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 0x140003538
lea rax, [0x14000d4a0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000359b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400036a0
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 0x1400036c8
mov eax, 0
jmp 0x140003716
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 0x1400036f1
mov eax, 0
jmp 0x140003716
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 0x140003711
mov eax, 0
jmp 0x140003716
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14000371c
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 0x14000379a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140003791
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 0x140003791
mov rax, qword [rbp - 8]
jmp 0x1400037af
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 0x140003764
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001820
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call fcn.1400029f0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop word [rax + rax]
Function at 0x140001fb0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140007100]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x140002004
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x140001ffb
test r12, r12
je 0x140001ffb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001fe0
lea rcx, [0x140007100]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002340
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x140004410]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x1400023b9
mov rcx, r10
call fcn.140002210
test eax, eax
je 0x1400023b9
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x1400023b6
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x1400023ad
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x1400023b9
add r8, 0x28
cmp r8, r9
jne 0x140002398
xor r8d, r8d
mov rax, r8
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 [0x14002aba0]
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 [0x14002abb0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call fcn.14000ddc0
jmp 0x14000123c
mov rax, qword [0x14002abb0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x14002abb0]
mov dword [rax], 1
mov rax, qword [0x14002abf0]
mov rdx, rax
mov rax, qword [0x14002abe0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x14000123c
mov dword [0x140034024], 1
mov rax, qword [0x14002abb0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x14002abd0]
mov rdx, rax
mov rax, qword [0x14002abc0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov rax, qword [0x14002abb0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x14002aba0]
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 [0x14002aaf0]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x14002aaf0]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.14000c6d8
mov rax, qword [0x14002ac30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x14002ab90]
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.14000bed0
mov eax, dword [0x140034004]
lea rdx, [0x140034008]
mov ecx, eax
call fcn.14000147c
call fcn.14000bc67
mov rax, qword [0x14002ab20]
mov rax, qword [rax]
mov rdx, qword [0x140034010]
mov qword [rax], rdx
mov rcx, qword [0x140034010]
mov rdx, qword [0x140034008]
mov eax, dword [0x140034004]
mov r8, rcx
mov ecx, eax
call fcn.140001746
mov dword [0x14003401c], eax
mov eax, dword [0x140034020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14003401c]
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x140034024]
test eax, eax
jne 0x14000136c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14003401c]
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 [0x14002ab50]
mov dword [rax], 1
mov rax, qword [0x14002ab60]
mov dword [rax], 1
mov rax, qword [0x14002ab70]
mov dword [rax], 1
mov rax, qword [0x14002ab10]
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 0x14000bee0
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.14000db50
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x14000cbb2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140034168]
test eax, eax
je 0x14000cc4a
lea rax, [0x140034140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140034170]
mov qword [rbp - 8], rax
jmp 0x14000cc2e
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 0x14000cc22
cmp qword [rbp - 0x10], 0
je 0x14000cc22
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 0x14000cbe8
lea rax, [0x140034140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000cc4b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14000cd50
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 0x14000cd78
mov eax, 0
jmp 0x14000cdc6
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 0x14000cda1
mov eax, 0
jmp 0x14000cdc6
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 0x14000cdc1
mov eax, 0
jmp 0x14000cdc6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14000cdcc
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 0x14000ce4a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14000ce41
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 0x14000ce41
mov rax, qword [rbp - 8]
jmp 0x14000ce5f
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 0x14000ce14
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x14000f299
Capabilities:
Print debug messages

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
cmp qword [rbp + 0x10], 0
je 0x14000f3e4
mov rax, qword [rbp + 0x10]
mov rcx, rax
call fcn.1400138fd
cmp eax, 1
jne 0x14000f3d7
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rdx
movabs rax, 0x6b5f6e6970732070
movabs rdx, 0x20726f6620737965
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rdx
movabs rax, 0x20646165726874
mov edx, 0
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rdx
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x15], 0
mov qword [rbp - 0xd], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov ecx, eax
lea rax, [rbp - 0x70]
add rax, 0x27
mov r8d, 0xa
mov rdx, rax
mov rax, qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__ultoa]
call rax
mov dword [rbp - 4], 0x27
jmp 0x14000f38d
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cdqe
movzx eax, byte [rbp + rax - 0x70]
test al, al
je 0x14000f3a3
mov eax, dword [rbp - 4]
cmp eax, 0x69
jbe 0x14000f389
mov eax, dword [rbp - 4]
cmp eax, 0x69
ja 0x14000f3c2
mov eax, dword [rbp - 4]
cdqe
mov byte [rbp + rax - 0x70], 0xa
mov eax, dword [rbp - 4]
add eax, 1
cdqe
mov byte [rbp + rax - 0x70], 0
lea rax, [rbp - 0x70]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp + 0x18]
mov qword [rax], rdx
jmp 0x14000f3e5
nop
add rsp, 0x90
pop rbp
ret