joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140130de8
Capabilities:
Enumerate disk volumes

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x260
mov rax, qword [0x140178010]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor ebx, ebx
or rbp, 0xffffffffffffffff
and qword [rsp + 0x30], rbx
xor sil, sil
mov byte [r8], bl
mov r14, r8
mov r15, rcx
test dl, 1
je 0x140130f09
lea rcx, [rsp + 0x30]
call fcn.14008e33c
mov ebx, eax
test eax, eax
jns 0x140130e6f
mov ecx, 0xc0000452
call fcn.14003b824
cmp ebx, eax
je 0x140130e67
mov ecx, 0xc0000451
call fcn.14003b824
cmp ebx, eax
je 0x140130e67
mov ecx, 0xc000003a
call fcn.14003b824
cmp ebx, eax
jne 0x140130e87
mov byte [r14], 0
xor ebx, ebx
jmp 0x140130e87
mov rdx, qword [rsp + 0x30]
mov rcx, r15
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x140130e84
mov sil, 1
mov byte [r14], sil
lea rsi, [0x1401782b0]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
cmp rbp, 0xffffffffffffffff
je 0x140130ea8
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
test ebx, ebx
jns 0x140130ee0
mov rcx, qword [0x1401782b0]
cmp rcx, rsi
je 0x140130ee0
test byte [rcx + 0x1c], 1
je 0x140130ee0
cmp byte [rcx + 0x19], 2
jb 0x140130ee0
mov rcx, qword [rcx + 0x10]
lea r8, [0x140161888]
mov edx, 0x17
mov dword [rsp + 0x20], ebx
mov r9, r15
call fcn.140005ce8
mov eax, ebx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1401474d0
mov rbx, qword [rsp + 0x298]
add rsp, 0x260
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov edi, 0x104
lea rcx, [rsp + 0x40]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x140130f89
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x1401782b0]
lea rsi, [0x1401782b0]
cmp rcx, rsi
je 0x140130f61
test byte [rcx + 0x1c], 1
je 0x140130f61
cmp byte [rcx + 0x19], 2
jb 0x140130f61
lea edx, [rbp + 0x16]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140161888]
mov r9d, eax
call fcn.140004c90
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x140130e8e
mov r8d, edi
lea rdx, [rsp + 0x40]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
je 0x140130fa0
mov rdx, r15
lea rcx, [rsp + 0x40]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x140130f74
jmp 0x140130e81
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 0x12
je 0x140130e84
mov rcx, qword [0x1401782b0]
lea rsi, [0x1401782b0]
cmp rcx, rsi
je 0x140130f61
test byte [rcx + 0x1c], 1
je 0x140130f61
cmp byte [rcx + 0x19], 2
jb 0x140130f61
mov edx, 0x16
jmp 0x140130f4e
Function at 0x140130fe0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
xor ebp, ebp
mov r14, r8
mov byte [rsp + 0x70], bpl
mov esi, edx
mov byte [r8], bpl
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
movzx r9d, bpl
lea r15d, [rbp + 1]
cmp eax, 3
cmove r9d, r15d
mov ebx, ebp
test r9b, r9b
je 0x1401310e2
lea r12, [0x1401782b0]
test r15b, sil
jne 0x140131082
lea rdx, [rsp + 0x78]
mov rcx, rdi
call fcn.140131254
mov ebx, eax
test eax, eax
jns 0x14013107b
mov rcx, qword [0x1401782b0]
cmp rcx, r12
je 0x1401310b1
test byte [rcx + 0x1c], r15b
je 0x1401310b1
cmp byte [rcx + 0x19], 2
jb 0x1401310b1
mov rcx, qword [rcx + 0x10]
lea edx, [rbp + 0x18]
mov r9, rdi
mov dword [rsp + 0x20], eax
lea r8, [0x140161888]
call fcn.140005ce8
jmp 0x1401310aa
cmp byte [rsp + 0x78], bpl
je 0x1401310aa
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.140131380
mov ebx, eax
test eax, eax
jns 0x1401310a0
cmp eax, 0x80780076
jne 0x1401310aa
mov ebx, ebp
jmp 0x1401310aa
cmp byte [rsp + 0x70], bpl
jne 0x1401310aa
mov byte [r14], r15b
mov rcx, qword [0x1401782b0]
test ebx, ebx
jns 0x1401310e2
cmp rcx, r12
je 0x1401310e2
test byte [rcx + 0x1c], r15b
je 0x1401310e2
cmp byte [rcx + 0x19], 2
jb 0x1401310e2
mov rcx, qword [rcx + 0x10]
lea r8, [0x140161888]
mov edx, 0x19
mov dword [rsp + 0x20], ebx
mov r9, rdi
call fcn.140005ce8
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140131640
Capabilities:
Get disk size

Disassembly:
mov rax, rsp
push rbx
push rbp
push rsi
push r13
push r14
sub rsp, 0x40
and qword [rdx], 0
mov rsi, rdx
and qword [rax + 0x18], 0
lea rdx, [rax + 0x18]
mov r14, rcx
call fcn.140086ee4
lea r13, [0x1401782b0]
mov ebx, eax
test eax, eax
js 0x1401317b0
and qword [rsp + 0x30], 0
mov r8d, 3
and dword [rsp + 0x28], 0
xor r9d, r9d
mov rcx, qword [rsp + 0x80]
mov edx, 0x80000000
mov dword [rsp + 0x20], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x140131705
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x1401782b0]
cmp rcx, r13
je 0x1401316f2
test byte [rcx + 0x1c], 1
je 0x1401316f2
cmp byte [rcx + 0x19], 2
jb 0x1401316f2
mov r9, qword [rsp + 0x80]
lea edx, [rbp + 0x26]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140161888]
mov dword [rsp + 0x20], eax
call fcn.140005ce8
mov rcx, qword [0x1401782b0]
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
jmp 0x1401317b7
xor eax, eax
xor r9d, r9d
and qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x88], rax
mov edx, 0x7405c
lea rax, [rsp + 0x78]
mov rcx, rbp
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x88]
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x14013179c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x1401782b0]
cmp rcx, r13
je 0x14013178c
test byte [rcx + 0x1c], 1
je 0x14013178c
cmp byte [rcx + 0x19], 2
jb 0x14013178c
mov r9, qword [rsp + 0x80]
lea r8, [0x140161888]
mov rcx, qword [rcx + 0x10]
mov edx, 0x26
mov dword [rsp + 0x20], eax
call fcn.140005ce8
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
jmp 0x1401317a7
mov rax, qword [rsp + 0x88]
mov qword [rsi], rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1401782b0]
cmp qword [rsp + 0x80], 0
je 0x1401317d7
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1401782b0]
test ebx, ebx
jns 0x14013180b
cmp rcx, r13
je 0x14013180b
test dword [rcx + 0x1c], 0x200
je 0x14013180b
cmp byte [rcx + 0x19], 2
jb 0x14013180b
mov rcx, qword [rcx + 0x10]
lea r8, [0x140161888]
mov edx, 0x27
mov dword [rsp + 0x20], ebx
mov r9, r14
call fcn.140005ce8
mov eax, ebx
add rsp, 0x40
pop r14
pop r13
pop rsi
pop rbp
pop rbx
ret
Function at 0x140132538
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x40
mov rbp, rcx
xor ebx, ebx
and dword [rsp + 0x78], ebx
mov esi, 0x208
and qword [rdx], rbx
mov ecx, esi
mov r14, rdx
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov qword [rsp + 0x80], rax
mov rdi, rax
lea r13, [0x1401782b0]
test rax, rax
jne 0x14013258c
mov rcx, qword [0x1401782b0]
mov ebx, 0x8007000e
jmp 0x1401326d1
mov r8, rsi
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
and dword [rsp + 0x38], ebx
xor r9d, r9d
and qword [rsp + 0x30], rbx
mov r8d, 0x104
and qword [rsp + 0x28], rbx
mov rdx, rdi
and qword [rsp + 0x20], rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x14013268f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [rsp + 0x78]
mov dl, 1
mov rcx, rbp
mov esi, eax
call fcn.140132780
test eax, eax
jns 0x140132632
mov rcx, qword [0x1401782b0]
cmp rcx, r13
je 0x14013261f
test byte [rcx + 0x1c], 1
je 0x14013261f
cmp byte [rcx + 0x19], 3
jb 0x14013261f
mov rcx, qword [rcx + 0x10]
lea r8, [0x140161888]
mov edx, 0x40
mov dword [rsp + 0x20], eax
mov r9, rbp
call fcn.140005ce8
mov rcx, qword [0x1401782b0]
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
jmp 0x1401326b8
mov eax, dword [rsp + 0x78]
shr eax, 0xb
test al, 1
je 0x140132711
mov rcx, qword [0x1401782b0]
cmp rcx, r13
je 0x140132671
test byte [rcx + 0x1c], 1
je 0x140132671
cmp byte [rcx + 0x19], 4
jb 0x140132671
mov rcx, qword [rcx + 0x10]
lea r8, [0x140161888]
mov edx, 0x41
mov r9, rbp
call fcn.140005c6c
lea rdx, [rsp + 0x80]
mov rcx, rbp
call fcn.140132a90
mov rdi, qword [rsp + 0x80]
mov ebx, eax
test eax, eax
js 0x1401326b1
test rdi, rdi
jne 0x1401326ac
lea r8, str.wszLabel
mov edx, 0x5ba
lea rcx, str.base_stor_blbwsbutilwsbvolumeutils.cpp
call fcn.14008624c
mov qword [r14], rdi
xor edi, edi
mov rcx, qword [0x1401782b0]
test rdi, rdi
je 0x1401326cd
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1401782b0]
test ebx, ebx
jns 0x1401326fe
cmp rcx, r13
je 0x1401326fe
test byte [rcx + 0x1c], 1
je 0x1401326fe
cmp byte [rcx + 0x19], 3
jb 0x1401326fe
mov rcx, qword [rcx + 0x10]
lea r8, [0x140161888]
mov edx, 0x44
mov dword [rsp + 0x20], ebx
mov r9, rbp
call fcn.140005ce8
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
cmp esi, 0x3ed
je 0x140132736
cmp esi, 1
je 0x140132736
cmp esi, 0x57
je 0x140132736
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
jmp 0x1401326b1
mov rcx, qword [0x1401782b0]
cmp rcx, r13
je 0x1401326b8
test byte [rcx + 0x1c], 1
je 0x1401326b8
cmp byte [rcx + 0x19], 5
jb 0x1401326b8
mov rcx, qword [rcx + 0x10]
lea r8, [0x140161888]
mov edx, 0x43
mov r9, rbp
call fcn.140005c6c
jmp 0x1401326b1
Function at 0x140144920
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [0x14017a3b0], 0
mov rbx, rcx
movups xmm0, xmmword [0x140161c08]
movdqu xmmword [rcx], xmm0
je 0x140144955
mov ecx, dword [0x14017a3b4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140144955
movups xmm0, xmmword [rax]
movdqu xmmword [rbx], xmm0
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x140146e9c
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rax, qword [0x140178010]
xor rax, rsp
mov qword [rbp + 0x140], rax
mov ebx, 0x104
lea r9, [rsp + 0x20]
xor r15d, r15d
lea r8, [rsp + 0x30]
mov edx, ebx
mov esi, r15d
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp eax, ebx
jae 0x140147022
test eax, eax
jne 0x140146f02
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140147027
mov rax, qword [rsp + 0x20]
test rax, rax
je 0x140147022
lea rcx, [rsp + 0x30]
cmp rax, rcx
je 0x140147022
mov word [rax], r15w
mov r12d, 0x5c
movzx ecx, word [rsp + 0x30]
lea eax, [rcx - 0x41]
cmp ax, 0x19
jbe 0x140146f3f
lea eax, [rcx - 0x61]
cmp ax, 0x19
ja 0x140146f58
cmp word [rsp + 0x32], 0x3a
jne 0x140146f58
cmp word [rsp + 0x34], r12w
jne 0x140147022
lea rsi, [rsp + 0x34]
cmp cx, r12w
jne 0x140146f94
cmp word [rsp + 0x32], r12w
jne 0x140146f94
mov edx, r12d
lea rcx, [rsp + 0x34]
call sub.msvcrt.dll_wcschr
test rax, rax
je 0x140147022
mov edx, r12d
lea rcx, [rax + 2]
call sub.msvcrt.dll_wcschr
mov rsi, rax
test rax, rax
je 0x140147022
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140146fb3
and al, 0x10
neg al
sbb eax, eax
not eax
and eax, 0x10b
jmp 0x140147027
mov rdi, qword [rsp + 0x20]
lea rax, [rsp + 0x30]
cmp rdi, rax
jne 0x140146fc9
lea rdi, [rsp + 0x30]
jmp 0x140146fcd
add rdi, 0xfffffffffffffffe
cmp rdi, rsi
je 0x140147022
cmp word [rdi], r12w
jne 0x140147022
cmp rdi, rsi
jbe 0x140147022
mov edx, r12d
mov word [rdi], r15w
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcrt.dll_wcsrchr]
mov r14, rax
test rax, rax
je 0x140147022
movzx ebx, word [rax + 2]
lea rcx, [rsp + 0x30]
mov word [rax + 2], r15w
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov word [r14 + 2], bx
cmp eax, 0xffffffff
jne 0x140147052
mov rdi, r14
cmp r14, rsi
ja 0x140146fdd
cmp rdi, rsi
ja 0x14014707a
mov eax, 0x7b
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.1401474d0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
test al, 0x10
jne 0x14014701d
mov eax, 0x10b
jmp 0x140147027
cmp word [rdi + 2], r15w
je 0x140147090
mov word [rdi], r12w
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], r15w
jne 0x14014706c
lea rdi, [rdi + rax*2]
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14014705d
jmp 0x140146ef7
xor eax, eax
jmp 0x140147027
Function at 0x140147220
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r12
push r14
push r15
sub rsp, 0xb0
xor r15d, r15d
mov dword [rsp + 0x20], r15d
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov r14d, r15d
xor eax, eax
lock cmpxchg qword [0x14017a4d8], rbx
je 0x140147289
cmp rax, rbx
jne 0x14014727c
mov edi, 1
mov r14d, edi
jmp 0x14014728e
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140147260
mov edi, 1
mov eax, dword [0x14017a4e0]
cmp eax, edi
jne 0x1401472a6
mov esi, 0x1f
mov ecx, esi
call sub.msvcrt.dll__amsg_exit
jmp 0x140147317
mov eax, dword [0x14017a4e0]
test eax, eax
jne 0x14014730c
mov dword [0x14017a4e0], edi
lea r12, [0x14014cda0]
lea rbx, [0x14014cd88]
mov qword [rsp + 0x30], rbx
mov eax, r15d
mov dword [rsp + 0x24], eax
cmp rbx, r12
jae 0x1401472fe
test eax, eax
jne 0x140147302
mov rsi, qword [rbx]
test rsi, rsi
je 0x1401472f3
mov rcx, rsi
mov rax, qword [0x14014cce0]
call rax
call rsi
mov dword [rsp + 0x24], eax
add rbx, 8
mov qword [rsp + 0x30], rbx
jmp 0x1401472d0
test eax, eax
je 0x140147312
mov eax, 0xff
jmp 0x140147473
mov dword [0x140178b14], edi
mov esi, 0x1f
mov eax, dword [0x14017a4e0]
cmp eax, edi
jne 0x14014733e
lea rdx, [0x14014cd80]
lea rcx, [0x14014ccf0]
call sub.msvcrt.dll__initterm
mov dword [0x14017a4e0], 2
test r14d, r14d
jne 0x14014734d
mov rax, r15
xchg qword [0x14017a4d8], rax
cmp qword [0x14017a4f8], r15
je 0x140147384
lea rcx, [0x14017a4f8]
call fcn.140147c30
test eax, eax
je 0x140147384
mov rbx, qword [0x14017a4f8]
mov rcx, rbx
mov rax, qword [0x14014cce0]
call rax
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call rbx
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rdx, qword [rax]
test rdx, rdx
jne 0x14014739d
mov eax, 0xff
jmp 0x140147473
mov qword [rsp + 0x28], rdx
mov ecx, dword [rsp + 0x20]
cmp word [rdx], 0x20
ja 0x140147424
cmp word [rdx], r15w
je 0x1401473b6
test ecx, ecx
jne 0x140147424
movzx eax, word [rdx]
sub ax, di
cmp ax, si
ja 0x1401473cc
add rdx, 2
mov qword [rsp + 0x28], rdx
jmp 0x1401473b6
mov ecx, dword [rsp + 0x7c]
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
and cl, dil
cmovne r9d, eax
mov r8, rdx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140060794
mov dword [0x140178b10], eax
cmp dword [0x140178b30], r15d
jne 0x14014740d
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140178b14], r15d
jne 0x140147422
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140178b10]
jmp 0x140147473
cmp word [rdx], 0x22
jne 0x140147438
mov eax, r15d
test ecx, ecx
sete al
mov ecx, eax
mov dword [rsp + 0x20], eax
add rdx, 2
mov qword [rsp + 0x28], rdx
jmp 0x1401473a6
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop r12
ret
sub rsp, 0x28
call fcn.140211000
add rsp, 0x28
jmp 0x140147220
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 [0x1400e2490]
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 [0x1400e24a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call fcn.1400c4430
jmp 0x14000123c
mov rax, qword [0x1400e24a0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x1400e24a0]
mov dword [rax], 1
mov rax, qword [0x1400e24e0]
mov rdx, rax
mov rax, qword [0x1400e24d0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x14000123c
mov dword [0x1400e6024], 1
mov rax, qword [0x1400e24a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x1400e24c0]
mov rdx, rax
mov rax, qword [0x1400e24b0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov rax, qword [0x1400e24a0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x1400e2490]
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 [0x1400e23e0]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x1400e23e0]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.1400c36b8
mov rax, qword [0x1400e2520]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x1400e2480]
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.1400c2eb0
mov eax, dword [0x1400e6004]
lea rdx, [0x1400e6008]
mov ecx, eax
call fcn.14000147c
call fcn.1400c2c47
mov rax, qword [0x1400e2410]
mov rax, qword [rax]
mov rdx, qword [0x1400e6010]
mov qword [rax], rdx
mov rcx, qword [0x1400e6010]
mov rdx, qword [0x1400e6008]
mov eax, dword [0x1400e6004]
mov r8, rcx
mov ecx, eax
call fcn.1400016d0
mov dword [0x1400e601c], eax
mov eax, dword [0x1400e6020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x1400e601c]
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x1400e6024]
test eax, eax
jne 0x14000136c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x1400e601c]
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 [0x1400e2440]
mov dword [rax], 1
mov rax, qword [0x1400e2450]
mov dword [rax], 1
mov rax, qword [0x1400e2460]
mov dword [rax], 1
mov rax, qword [0x1400e2400]
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 0x1400c2ec0
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.1400c4220
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x1400c3b92
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400e6168]
test eax, eax
je 0x1400c3c2a
lea rax, [0x1400e6140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400e6170]
mov qword [rbp - 8], rax
jmp 0x1400c3c0e
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 0x1400c3c02
cmp qword [rbp - 0x10], 0
je 0x1400c3c02
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 0x1400c3bc8
lea rax, [0x1400e6140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400c3c2b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400c3d30
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 0x1400c3d58
mov eax, 0
jmp 0x1400c3da6
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 0x1400c3d81
mov eax, 0
jmp 0x1400c3da6
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 0x1400c3da1
mov eax, 0
jmp 0x1400c3da6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x1400c3dac
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 0x1400c3e2a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400c3e21
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 0x1400c3e21
mov rax, qword [rbp - 8]
jmp 0x1400c3e3f
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 0x1400c3df4
mov eax, 0
add rsp, 0x20
pop rbp
ret