joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14012ce48
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 [0x14016a508]
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 0x14012cf78
lea rcx, [rsp + 0x30]
call fcn.140091b14
mov ebx, eax
test eax, eax
jns 0x14012cecb
mov ecx, 0xc0000452
call fcn.14002a600
cmp ebx, eax
je 0x14012cec7
mov ecx, 0xc0000451
call fcn.14002a600
cmp ebx, eax
je 0x14012cec7
mov ecx, 0xc000003a
call fcn.14002a600
cmp ebx, eax
jne 0x14012cee9
xor ebx, ebx
jmp 0x14012cee6
mov rdx, qword [rsp + 0x30]
mov rcx, r15
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
jne 0x14012cee6
mov sil, 1
mov byte [r14], sil
lea rsi, [0x14016a048]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
cmp rbp, 0xffffffffffffffff
je 0x14012cf16
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
nop dword [rax + rax]
test ebx, ebx
jns 0x14012cf4e
mov rcx, qword [0x14016a048]
cmp rcx, rsi
je 0x14012cf4e
test byte [rcx + 0x1c], 1
je 0x14012cf4e
cmp byte [rcx + 0x19], 2
jb 0x14012cf4e
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015a048]
mov edx, 0x17
mov dword [rsp + 0x20], ebx
mov r9, r15
call fcn.140014f78
mov eax, ebx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400071e0
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]
nop dword [rax + rax]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x14012cff2
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14016a048]
lea rsi, [0x14016a048]
cmp rcx, rsi
je 0x14012cfdc
test byte [rcx + 0x1c], 1
je 0x14012cfdc
cmp byte [rcx + 0x19], 2
jb 0x14012cfdc
mov rcx, qword [rcx + 0x10]
lea edx, [rbp + 0x16]
mov r9d, eax
lea r8, [0x14015a048]
call fcn.14000c23c
test ebx, ebx
jle 0x14012cef0
movzx ebx, bx
or ebx, 0x80070000
jmp 0x14012cef0
mov rdx, r15
lea rcx, [rsp + 0x40]
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x14012cee3
mov r8d, edi
lea rdx, [rsp + 0x40]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextVolumeW]
nop dword [rax + rax]
test eax, eax
jne 0x14012cff2
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
cmp eax, 0x12
je 0x14012cee6
mov rcx, qword [0x14016a048]
lea rsi, [0x14016a048]
cmp rcx, rsi
je 0x14012d077
test byte [rcx + 0x1c], 1
je 0x14012d077
cmp byte [rcx + 0x19], 2
jb 0x14012d077
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015a048]
mov edx, 0x16
mov r9d, eax
call fcn.14000c23c
test edi, edi
jg 0x14012d082
mov ebx, edi
jmp 0x14012cef0
movzx ebx, di
jmp 0x14012cfe7
Function at 0x14012dcfc
Capabilities:
Get common file path
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x680
mov rax, qword [0x14016a508]
xor rax, rsp
mov qword [rsp + 0x670], rax
mov rdi, rcx
mov rcx, qword [0x14016a048]
lea r14, [0x14016a048]
lea r15, [0x14015a048]
cmp rcx, r14
je 0x14012dd5e
test byte [rcx + 0x1c], 1
je 0x14012dd5e
cmp byte [rcx + 0x19], 4
jb 0x14012dd5e
mov rcx, qword [rcx + 0x10]
mov edx, 0xb
mov r8, r15
call fcn.14000c0e8
movups xmm0, xmmword [0x140147ba0]
mov ebx, 0x104
lea rcx, [rsp + 0x40]
mov edx, ebx
movdqu xmmword [rdi], xmm0
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
nop dword [rax + rax]
xor esi, esi
test eax, eax
jne 0x14012dddc
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14016a048]
cmp rcx, r14
je 0x14012ddc6
test byte [rcx + 0x1c], 1
je 0x14012ddc6
cmp byte [rcx + 0x19], 2
jb 0x14012ddc6
mov rcx, qword [rcx + 0x10]
lea edx, [rsi + 0xc]
mov r9d, eax
mov r8, r15
call fcn.14000c23c
mov rcx, qword [0x14016a048]
test ebx, ebx
jle 0x14012dedf
movzx ebx, bx
or ebx, 0x80070000
jmp 0x14012dedf
mov r8d, ebx
lea rdx, [rsp + 0x250]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
nop dword [rax + rax]
test eax, eax
jne 0x14012de3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14016a048]
cmp rcx, r14
je 0x14012ddc6
test byte [rcx + 0x1c], 1
je 0x14012ddc6
cmp byte [rcx + 0x19], 2
jb 0x14012ddc6
mov edx, 0xd
lea r9, [rsp + 0x40]
mov rcx, qword [rcx + 0x10]
mov r8, r15
mov dword [rsp + 0x20], ebx
call fcn.14003fbc0
jmp 0x14012ddbf
mov r8d, ebx
lea rdx, [rsp + 0x460]
lea rcx, [rsp + 0x250]
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
nop dword [rax + rax]
test eax, eax
jne 0x14012dea2
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14016a048]
cmp rcx, r14
je 0x14012ddc6
test byte [rcx + 0x1c], 1
je 0x14012ddc6
cmp byte [rcx + 0x19], 2
jb 0x14012ddc6
mov edx, 0xe
lea r9, [rsp + 0x250]
jmp 0x14012de2c
lea rax, [rsp + 0x460]
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rax + rdx*2], si
jne 0x14012deae
lea r8, [rsp + 0x30]
lea rcx, [rsp + 0x460]
call fcn.14008d6c4
mov ebx, eax
test eax, eax
js 0x14012ded8
movups xmm0, xmmword [rsp + 0x30]
movdqu xmmword [rdi], xmm0
mov rcx, qword [0x14016a048]
cmp rcx, r14
je 0x14012df01
test byte [rcx + 0x1c], 1
je 0x14012df01
cmp byte [rcx + 0x19], 4
jb 0x14012df01
mov rcx, qword [rcx + 0x10]
mov edx, 0xf
mov r8, r15
call fcn.14000c0e8
mov eax, ebx
mov rcx, qword [rsp + 0x670]
xor rcx, rsp
call fcn.1400071e0
lea r11, [rsp + 0x680]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x14012e9ac
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor r15d, r15d
lea r9, [rsp + 0x68]
mov qword [rdx], r15
mov r14, rdx
xor edx, edx
mov dword [rsp + 0x70], r15d
xor r8d, r8d
mov rbp, rcx
mov ebx, r15d
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
nop dword [rax + rax]
test eax, eax
jne 0x14012ea16
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0xea
je 0x14012ea16
test eax, eax
jg 0x14012ea08
mov ebx, eax
jmp 0x14012eaed
movzx ebx, ax
or ebx, 0x80070000
jmp 0x14012eaed
mov ecx, dword [rsp + 0x68]
add rcx, rcx
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
jne 0x14012ea3b
mov ebx, 0x8007000e
jmp 0x14012eaf1
mov r8d, dword [rsp + 0x68]
lea r9, [rsp + 0x70]
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
nop dword [rax + rax]
test eax, eax
jne 0x14012ea78
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14012eade
movzx ebx, ax
or ebx, 0x80070000
jmp 0x14012eade
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rsi + rdi*2], r15w
jne 0x14012ea7c
test edi, edi
je 0x14012eade
lea eax, [rdi + 1]
lea rcx, [rax + rax]
mov ebx, eax
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov r11, rax
test rax, rax
jne 0x14012eaae
mov ebx, 0x8007000e
jmp 0x14012eade
mov r8, rsi
mov rdx, rbx
mov rcx, r11
call fcn.140006300
mov ebx, eax
test eax, eax
js 0x14012eacf
lea ecx, [rdi - 1]
mov word [r11 + rcx*2], r15w
mov qword [r14], r11
jmp 0x14012eade
mov rcx, r11
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
test ebx, ebx
jns 0x14012eb2c
mov rcx, qword [0x14016a048]
lea rax, [0x14016a048]
cmp rcx, rax
je 0x14012eb2c
test byte [rcx + 0x1c], 1
je 0x14012eb2c
cmp byte [rcx + 0x19], 3
jb 0x14012eb2c
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015a048]
mov edx, 0xa
mov dword [rsp + 0x20], ebx
mov r9, rbp
call fcn.140014f78
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14012f770
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.14008a658
lea r13, [0x14016a048]
mov ebx, eax
test eax, eax
js 0x14012f900
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]
nop dword [rax + rax]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x14012f844
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14016a048]
cmp rcx, r13
je 0x14012f82e
test byte [rcx + 0x1c], 1
je 0x14012f82e
cmp byte [rcx + 0x19], 2
jb 0x14012f82e
mov r9, qword [rsp + 0x80]
lea edx, [rbp + 0x26]
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015a048]
mov dword [rsp + 0x20], eax
call fcn.14003fbc0
mov rcx, qword [0x14016a048]
test ebx, ebx
jle 0x14012f907
movzx ebx, bx
or ebx, 0x80070000
jmp 0x14012f907
and qword [rsp + 0x38], 0
lea rax, [rsp + 0x78]
and qword [rsp + 0x88], 0
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
lea rax, [rsp + 0x88]
mov dword [rsp + 0x28], 8
mov edx, 0x7405c
mov qword [rsp + 0x20], rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
nop dword [rax + rax]
test eax, eax
jne 0x14012f8e6
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14016a048]
cmp rcx, r13
je 0x14012f8d7
test byte [rcx + 0x1c], 1
je 0x14012f8d7
cmp byte [rcx + 0x19], 2
jb 0x14012f8d7
mov r9, qword [rsp + 0x80]
lea r8, [0x14015a048]
mov rcx, qword [rcx + 0x10]
mov edx, 0x26
mov dword [rsp + 0x20], eax
call fcn.14003fbc0
test ebx, ebx
jle 0x14012f8f1
movzx ebx, bx
or ebx, 0x80070000
jmp 0x14012f8f1
mov rax, qword [rsp + 0x88]
mov qword [rsi], rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [0x14016a048]
cmp qword [rsp + 0x80], 0
je 0x14012f92d
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x14016a048]
test ebx, ebx
jns 0x14012f961
cmp rcx, r13
je 0x14012f961
test dword [rcx + 0x1c], 0x200
je 0x14012f961
cmp byte [rcx + 0x19], 2
jb 0x14012f961
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015a048]
mov edx, 0x27
mov dword [rsp + 0x20], ebx
mov r9, r14
call fcn.140014f78
mov eax, ebx
add rsp, 0x40
pop r14
pop r13
pop rsi
pop rbp
pop rbx
ret
Function at 0x14012fc70
Capabilities:
Get disk size

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
lea r9, [rax + 0x20]
mov qword [rdx], rbx
mov rdi, r8
mov qword [r8], rbx
mov rsi, rdx
lea r8, [rax + 0x10]
mov rbp, rcx
lea rdx, [rax + 0x18]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
nop dword [rax + rax]
test eax, eax
jne 0x14012fd05
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov rcx, qword [0x14016a048]
lea rax, [0x14016a048]
cmp rcx, rax
je 0x14012fcf2
test byte [rcx + 0x1c], 1
je 0x14012fcf2
cmp byte [rcx + 0x19], 2
jb 0x14012fcf2
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0xf]
mov r9, rbp
mov dword [rsp + 0x20], edi
lea r8, [0x14015a108]
call fcn.14003fbc0
test edi, edi
jg 0x14012fcfa
mov ebx, edi
jmp 0x14012fd15
movzx ebx, di
or ebx, 0x80070000
jmp 0x14012fd15
mov rcx, qword [rsp + 0x58]
mov qword [rsi], rcx
mov rcx, qword [rsp + 0x60]
mov qword [rdi], rcx
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x14013d264
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rsi
sub rsp, 0x240
mov rax, qword [0x14016a508]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor ebx, ebx
mov dword [0x14016c3f0], ebx
mov dword [0x14016c3f4], ebx
mov rcx, qword [0x14016a048]
lea rsi, [0x14016a048]
cmp rcx, rsi
je 0x14013d2c3
test byte [rcx + 0x1c], 0x20
je 0x14013d2c3
cmp byte [rcx + 0x19], 4
jb 0x14013d2c3
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0xa]
lea r8, [0x14015ae58]
call fcn.14000c0e8
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x105
call sub.msvcrt.dll_memset
mov r8d, 0x105
lea rdx, [rsp + 0x20]
lea rcx, [0x14015ad78]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
cmp eax, 0x105
jbe 0x14013d301
mov ebx, 0x8007000e
jmp 0x14013d37f
lea rdx, [0x14015ad70]
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x14013d31f
mov word [0x14016ab60], bx
jmp 0x14013d378
lea rdx, str.amd64
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x14013d33b
mov eax, 9
jmp 0x14013d371
lea rdx, str.ia64
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x14013d357
mov eax, 6
jmp 0x14013d371
lea rdx, str.ARM64
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x14013d378
mov eax, 0xc
mov word [0x14016ab60], ax
or dword [0x14016c3f0], 1
mov rcx, qword [0x14016a048]
cmp rcx, rsi
je 0x14013d3ac
test byte [rcx + 0x1c], 0x20
je 0x14013d3ac
cmp byte [rcx + 0x19], 4
jb 0x14013d3ac
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015ae58]
mov edx, 0xb
call fcn.14000c0e8
mov eax, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400071e0
mov rbx, qword [rsp + 0x250]
add rsp, 0x240
pop rsi
ret
Function at 0x14013fea0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [0x14016c414], 0
mov rbx, rcx
movups xmm0, xmmword [0x140147ba0]
movdqu xmmword [rcx], xmm0
je 0x14013fedb
mov ecx, dword [0x14016c410]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
nop dword [rax + rax]
test rax, rax
je 0x14013fedb
movups xmm0, xmmword [rax]
movdqu xmmword [rbx], xmm0
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x1400111ef
Capabilities:
Terminate process

Disassembly:
jmp 0x1400131c0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
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, 0x28
ret

Function at 0x140011276
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014510
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014530
xor al, al
jmp 0x1400145b1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014543
xor al, al
jmp 0x1400145b1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001456d
xor al, al
jmp 0x1400145b1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014581
xor al, al
jmp 0x1400145b1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014593
xor al, al
jmp 0x1400145b1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400145af
xor al, al
jmp 0x1400145b1
mov al, 1
add rsp, 0x38
ret
Function at 0x1408c4000
Capabilities:
Decompress data using aplib

Disassembly:
jmp 0x1408c400a
jmp 0x1408c600f
jmp fcn.14058e058

Function at 0x1400a6dd0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1400a6ddd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1400a6ded
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1400a6dd5
lea eax, [rcx + 1]
jmp 0x1400a6dfb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1400a6e0e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1400a6df4
sub eax, 3
jb 0x1400a6e2e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400a6e7d
sar eax, 1
movsxd rbp, eax
jb 0x1400a6e64
jmp 0x1400a6e3c
add ebx, ebx
jne 0x1400a6e3a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400a6e64
inc ecx
add ebx, ebx
jne 0x1400a6e4a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400a6e64
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1400a6e5d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1400a6e4c
add ecx, 2
jmp 0x1400a6e69
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1400a6d92
jmp 0x1400a6ddd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xa200
mov dl, 5
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1400a6ec9
cmp rsi, rcx
jae 0x1400a6ed1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400a6eb0
cmp al, 0x8f
ja 0x1400a6eb0
cmp byte [rsi - 2], 0xf
je 0x1400a6eb6
sub al, 0xe8
cmp al, 1
ja 0x1400a6e9a
cmp rsi, rcx
jae 0x1400a6ed1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400a6ea0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1400a6ed1
lodsb al, byte [rsi]
jmp 0x1400a6eb0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xa4000]
mov eax, dword [rdi]
or eax, eax
je 0x1400a6f2e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1311c0]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1400a6ede
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1400a6f28
mov qword [rbx], rax
add rbx, 8
jmp 0x1400a6efe
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x247]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1400a6f86
sub rsp, 0xffffffffffffff80
jmp 0x140001260
Function at 0x140002c70
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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 fcn.140004770
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140004770
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140002ce0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000a0a4]
mov rbx, rcx
test esi, esi
jle 0x140002e10
mov rax, qword [0x14000a0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002d2b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002db5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002d10
mov rcx, rbx
call fcn.140003730
mov rdi, rax
test rax, rax
je 0x140002e32
mov rax, qword [0x14000a0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003870
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000a0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002e17
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002dae
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002dc0
add dword [0x14000a0a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000a0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002dae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002c70
nop dword [rax]
xor esi, esi
jmp 0x140002d38
mov rax, qword [0x14000a0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002c70
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002c70
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400033a0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000a100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000a0e0]
test rbx, rbx
je 0x1400033fc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400033f3
test rsi, rsi
je 0x1400033f3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400033d8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140003730
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140006b30]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003750
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003758
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003750
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400037ad
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400037a4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003750
add rax, 0x28
cmp rax, r9
jne 0x140003790
xor eax, eax
ret

Function at 0x1400037b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006b30]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400037cf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400037d8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400037cf
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140003870
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006b30]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000388f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003898
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret