joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140055460
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
sub rsp, 0x20
cmp dword [rcx + 0xb78], 0x8000
jne 0x14005557c
mov rsi, rcx
cmp dword [rcx + 0x3f8], 0x200
jne 0x14005557f
lea rcx, [0x1401314f8]
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14005556b
cmp byte [0x140140e18], 0
je 0x1400554e1
lea rcx, [0x1401314f8]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
xor eax, eax
lock cmpxchg qword [0x140140e20], rsi
jne 0x140055582
lea rax, [0x140055590]
mov qword [0x1401444d0], rax
add rsi, 0x48
xor eax, eax
lea rcx, [0x140140dd0]
jmp 0x140055544
cmp qword [0x1401444c0], 0
jne 0x140055585
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140055588
mov dword [0x140140dc4], eax
mov dword [0x1401444c8], eax
lea rax, [0x140091be0]
mov qword [0x1401444c0], rax
mov byte [0x140140e18], 1
jmp 0x1400554a6
mov dl, 0x80
jmp 0x140055534
cmp edx, 0x201
setb dl
shl dl, 4
add dl, 0x10
mov byte [rax + rcx], dl
inc rax
add rsi, 0x28
cmp rax, 0x48
je 0x140055561
cmp qword [rsi], 0
je 0x140055567
mov edx, dword [rsi + 0x18]
cmp edx, 0x81
jb 0x140055521
cmp edx, 0x101
jae 0x140055525
mov dl, 0x40
jmp 0x140055534
add rsp, 0x20
pop rsi
ret
xor edx, edx
jmp 0x140055534
lea rcx, [0x1401314f8]
call fcn.1400669f0
jmp 0x14005549d
int3
int3
int3
int3
int3

Function at 0x140056470
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [rcx + 8]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x1400564a7
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400564a7
movzx edx, word [rax + rcx + 0x14]
cmp edx, 0xf0
jne 0x1400564a7
movzx eax, word [rax + rcx + 0x18]
cmp eax, 0x20b
sete al
ret
xor eax, eax
jmp 0x1400564a6
Function at 0x140061420
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
cmp qword [rcx], rdx
je 0x14006146c
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x140061477
lea rax, [rsi + 1]
cmp rax, 2
jb 0x14006145a
mov qword [rdi], rsi
call fcn.1400614f0
mov ecx, ebx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400614f0
mov r14, qword [rdi]
cmp qword [0x140140ea8], 0
je 0x1400614a8
mov rcx, qword [0x140140ea8]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, r14
call qword [case.0x1400e3c50.0]
mov qword [rdi], 0
jmp 0x140061448
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x14011df36]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400614e9
lea rcx, [sym.opera.exe_GetHandleVerifier]
cmp rax, rcx
je 0x1400614e3
call qword [case.0x1400e3c50.0]
mov rcx, rax
xor edx, edx
call fcn.140022bf0
jmp 0x140061489
xor ecx, ecx
mov dl, 1
jmp 0x1400614dc
xor ecx, ecx
jmp 0x1400614da
Function at 0x140084980
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
xor eax, eax
test r8d, r8d
sete al
xor r8d, r8d
test edx, edx
sete r8b
xor ecx, ecx
mov edx, r8d
mov r8d, eax
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi], 0
test rax, rax
je 0x140084a82
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140084a10
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1400849e7
mov qword [rsi], rdi
call fcn.1400614f0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsi]
mov byte [rsi + 8], 0
inc rax
cmp rax, 1
jbe 0x140084a86
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400614f0
mov r14, qword [rsi]
cmp qword [0x140140ea8], 0
je 0x140084a41
mov rcx, qword [0x140140ea8]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, r14
call qword [case.0x1400e3c50.0]
mov qword [rsi], 0
jmp 0x1400849d5
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x14011df36]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140084a89
lea rcx, [sym.opera.exe_GetHandleVerifier]
cmp rax, rcx
je 0x140084a7c
call qword [case.0x1400e3c50.0]
mov rcx, rax
xor edx, edx
call fcn.140022bf0
jmp 0x140084a22
xor ecx, ecx
mov dl, 1
jmp 0x140084a75
mov byte [rsi + 8], 0
int3
xor ecx, ecx
jmp 0x140084a73
Function at 0x1400873f0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rsi, rcx
mov rax, qword [0x14012e028]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov ecx, 1
xor eax, eax
lock cmpxchg qword [rsi], rcx
sete bl
jne 0x140087443
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140098480
mov eax, ebx
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rsi]
cmp rax, 1
jne 0x140087423
movabs r15, 0x8637bd05af7
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x20], rax
mov rax, qword [fcn.14005f770]
lea r12, [0x1400955b0]
cmp rax, r12
jne 0x14008754b
lea rdi, [rsp + 0x28]
mov qword [rdi], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rdi]
cmp rax, r15
jge 0x14008758e
imul rax, rax, 0xf4240
cqo
idiv qword [0x140140c98]
mov qword [rsp + 0x20], rax
lea rdi, [rsp + 0x28]
mov r13, qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
movabs rbp, 0x7fffffffffffffff
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword [fcn.14005f770]
cmp rax, r12
jne 0x140087536
mov qword [rsp + 0x28], 0
mov rcx, rdi
call r13
mov rax, qword [rsp + 0x28]
cmp rax, r15
jge 0x140087567
imul rax, rax, 0xf4240
cqo
idiv qword [0x140140c98]
mov rcx, qword [rsp + 0x20]
xor edx, edx
cmp rax, rcx
setns dl
add rdx, rbp
sub rax, rcx
cmovo rax, rdx
cmp rax, 0x3e7
jg 0x14008755b
xor ecx, ecx
call r14
mov rax, qword [rsi]
cmp rax, 1
je 0x1400874cf
jmp 0x140087423
lea rcx, [rsp + 0x28]
call qword [case.0x1400e3c50.0]
lea rax, [rsp + 0x28]
mov rax, qword [rax]
jmp 0x140087504
lea rcx, [rsp + 0x20]
call qword [case.0x1400e3c50.0]
jmp 0x1400874b2
mov ecx, 0x3e8
call fcn.1400e3d20
jmp 0x140087528
mov rcx, qword [0x140140c98]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x140087504
mov rcx, qword [0x140140c98]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x1400874ad
Function at 0x1400890d0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x14012e028]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x140140c08]
mov ecx, dword [0x14013da54]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140089130
mov rsi, qword [0x140140c00]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140098480
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x140140c08]
call fcn.140096228
cmp dword [0x140140c08], 0xffffffff
jne 0x14008910c
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.14009a5c0
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x34]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x30]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x80
call fcn.1400961cc
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x140140c50]
mov ecx, dword [0x14013da54]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400891f0
lea r8, [0x140140c20]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.140011930
mov qword [0x140140c00], rsi
lea rcx, [0x140140c08]
call fcn.140096508
jmp 0x14008910c
lea rcx, [0x140140c50]
call fcn.140096228
cmp dword [0x140140c50], 0xffffffff
jne 0x1400891c1
xorps xmm0, xmm0
movups xmmword [0x140140c40], xmm0
movups xmmword [0x140140c30], xmm0
movups xmmword [0x140140c20], xmm0
lea rcx, [0x140140c20]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140140c50]
call fcn.140096508
jmp 0x1400891c1
Function at 0x14008cd40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
test r8, r8
je 0x14008ce6d
mov rcx, qword [rcx + 8]
movsxd r9, dword [rcx + 0x3c]
cmp dword [rcx + r9 + 0x84], 0
je 0x14008ce6d
add r9, rcx
xor eax, eax
mov r10, r9
add r10, 0x88
je 0x14008ce66
cmp word [r9 + 0x14], 0x78
jb 0x14008ce66
mov eax, dword [r10]
test rax, rax
je 0x14008ce6d
add rax, rcx
je 0x14008ce6d
cmp rdx, 0xffff
jbe 0x14008ce60
mov r10d, dword [rax + 0x18]
mov r11d, dword [rax + 0x20]
lea r9, [rcx + r11]
test r11, r11
cmove r9, r11
test r10, r10
je 0x14008ce6d
lea r10, [r9 + r10*4]
mov r11b, byte [rdx]
inc rdx
mov rsi, r9
jmp 0x14008cdfb
xor ebp, ebp
lea rdi, [rsi + rdi*2]
movzx ebx, byte [rbx]
cmp bpl, bl
je 0x14008ce45
movzx ebp, bpl
sub ebp, ebx
cmovs r10, rdi
add rdi, 4
test ebp, ebp
cmovg rsi, rdi
cmp rsi, r10
je 0x14008ce6d
mov rdi, r10
sub rdi, rsi
mov rbx, rdi
sar rbx, 2
shr rdi, 0x3f
add rdi, rbx
and rdi, 0xfffffffffffffffe
mov r14d, dword [rsi + rdi*2]
lea rbx, [rcx + r14]
test r14, r14
cmove rbx, r14
test r11b, r11b
je 0x14008cdd4
mov r14, rdx
mov ebp, r11d
nop dword [rax]
cmp bpl, byte [rbx]
jne 0x14008cdd6
inc rbx
mov bpl, byte [r14]
inc r14
test bpl, bpl
jne 0x14008ce30
jmp 0x14008cdd4
mov edx, dword [rax + 0x24]
add rcx, rdx
test rdx, rdx
cmove rcx, rdx
sub rdi, r9
sar rdi, 1
movzx edx, word [rcx + rdi]
add dx, word [rax + 0x10]
mov word [r8], dx
mov al, 1
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
xor eax, eax
jmp 0x14008ce66
Function at 0x14008f5c0
Capabilities:
Hash data using sha256

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa0
mov rsi, r8
mov rax, qword [0x14012e028]
xor rax, rsp
mov qword [rsp + 0x98], rax
xorps xmm0, xmm0
lea rdi, [rsp + 0x48]
movups xmmword [rdi + 0x34], xmm0
movups xmmword [rdi + 0x28], xmm0
movups xmmword [rdi + 0x18], xmm0
movups xmmword [rdi + 8], xmm0
movups xmmword [rdi - 8], xmm0
movaps xmm0, xmmword [0x14011dfd0]
movups xmmword [rdi - 0x28], xmm0
movaps xmm0, xmmword [0x14011dfe0]
movups xmmword [rdi - 0x18], xmm0
mov dword [rdi + 0x44], 0x20
test rdx, rdx
je 0x14008f67c
mov r14, rdx
mov rbx, rcx
lea eax, [rdx*8]
mov rcx, rdx
shr rcx, 0x1d
mov dword [rsp + 0x44], ecx
mov dword [rsp + 0x40], eax
mov r8, rdx
cmp rdx, 0x40
jb 0x14008f669
shr r8, 6
lea rcx, [rsp + 0x20]
mov rdx, rbx
call fcn.140049a00
mov r8, r14
and r8, 0x3f
je 0x14008f67c
and r14, 0xffffffffffffffc0
add rbx, r14
mov r14d, r8d
mov dword [rsp + 0x88], r14d
mov rcx, rdi
mov rdx, rbx
call fcn.140099f10
mov eax, dword [rsp + 0x88]
lea rcx, [rax + 1]
mov ebx, dword [rsp + 0x8c]
mov ebp, dword [rsp + 0x40]
mov r14d, dword [rsp + 0x44]
mov byte [rsp + rax + 0x48], 0x80
cmp rax, 0x38
jae 0x14008f75d
cmp rcx, 0x38
je 0x14008f6bf
mov r8d, 0x38
sub r8, rcx
add rcx, rdi
xor edx, edx
call fcn.14009a5c0
bswap r14d
lea rcx, [rsp + 0x20]
mov dword [rcx + 0x60], r14d
bswap ebp
mov dword [rcx + 0x64], ebp
mov r8d, 1
mov rdx, rdi
call fcn.140049a00
xorps xmm0, xmm0
movups xmmword [rdi + 0x30], xmm0
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi], xmm0
mov dword [rdi + 0x40], 0
lea eax, [rbx - 0x21]
cmp eax, 0xffffffe3
jb 0x14008f716
shr rbx, 2
xor eax, eax
mov ecx, dword [rsp + rax*4 + 0x20]
bswap ecx
mov dword [rsi + rax*4], ecx
inc rax
cmp rbx, rax
jne 0x14008f705
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140098480
mov rax, rsi
add rsp, 0xa0
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
cmp eax, 0x3f
je 0x14008f775
mov r8d, 0x3f
sub r8, rax
add rcx, rdi
xor edx, edx
call fcn.14009a5c0
lea rcx, [rsp + 0x20]
mov r8d, 1
mov rdx, rdi
call fcn.140049a00
xor ecx, ecx
jmp 0x14008f6ac
Function at 0x1400904e0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x14012e028]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x140140c08]
mov ecx, dword [0x14013da54]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140090544
mov rax, qword [0x140140c00]
mov rsi, qword [rax + 0x58]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140098480
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x140140c08]
call fcn.140096228
cmp dword [0x140140c08], 0xffffffff
jne 0x14009051c
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.14009a5c0
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x34]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x30]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x80
call fcn.1400961cc
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x140140c50]
mov ecx, dword [0x14013da54]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140090604
lea r8, [0x140140c20]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.140011930
mov qword [0x140140c00], rsi
lea rcx, [0x140140c08]
call fcn.140096508
jmp 0x14009051c
lea rcx, [0x140140c50]
call fcn.140096228
cmp dword [0x140140c50], 0xffffffff
jne 0x1400905d5
xorps xmm0, xmm0
movups xmmword [0x140140c40], xmm0
movups xmmword [0x140140c30], xmm0
movups xmmword [0x140140c20], xmm0
lea rcx, [0x140140c20]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140140c50]
call fcn.140096508
jmp 0x1400905d5
Function at 0x140095b90
Capabilities:
Hash data with crc32

Disassembly:
push rsi
push rdi
mov rdx, qword [rcx]
mov r9, qword [rcx + 8]
mov r8, r9
sub r8, rdx
je 0x140095c27
mov rax, r8
shr rax, 2
mov r10, rdx
not r10
add r10, r9
je 0x140095bfe
mov r10, r8
and r10, 0xfffffffffffffffe
xor r9d, r9d
lea r11, [0x14011f080]
nop dword [rax + rax]
movzx esi, al
movzx edi, byte [rdx + r9]
xor edi, esi
shr eax, 8
xor eax, dword [r11 + rdi*4]
movzx esi, al
movzx edi, byte [rdx + r9 + 1]
xor edi, esi
shr eax, 8
xor eax, dword [r11 + rdi*4]
add r9, 2
cmp r10, r9
jne 0x140095bd0
jmp 0x140095c01
xor r9d, r9d
test r8b, 1
je 0x140095c21
movzx r8d, al
movzx edx, byte [rdx + r9]
xor edx, r8d
lea r8, [0x14011f080]
shr eax, 8
xor eax, dword [r8 + rdx*4]
mov dword [rcx + 0x18], eax
pop rdi
pop rsi
ret
xor eax, eax
jmp 0x140095c21
sub rsp, 0x28
movapd xmmword [rsp + 0x10], xmm7
movapd xmmword [rsp], xmm6
mov r11, qword [r8]
mov r10, qword [r8 + 8]
mov rax, r10
sub rax, r11
sar rax, 2
lea r9, [rax - 1]
cmp r9, 2
jb 0x1400c9438
cvtsi2sd xmm0, ecx
cvtsi2sd xmm1, edx
add rax, 0xfffffffffffffffd
movq xmm2, rax
punpckldq xmm2, xmmword [0x1401185e0]
subpd xmm2, xmmword [0x1401185f0]
haddpd xmm2, xmm2
mov ecx, 1
movdqa xmm3, xmmword [0x1401185e0]
movapd xmm4, xmmword [0x1401185f0]
movsd xmm5, qword [0x1401093d0]
mov rdx, qword [r8]
mov r10, qword [r8 + 8]
sub r10, rdx
sar r10, 2
cmp r10, rcx
jbe 0x1400c945a
movq xmm6, rax
punpckldq xmm6, xmm3
subpd xmm6, xmm4
haddpd xmm6, xmm6
lea r10, [rcx - 1]
movq xmm7, r10
punpckldq xmm7, xmm3
subpd xmm7, xmm4
haddpd xmm7, xmm7
mulsd xmm6, xmm0
mulsd xmm7, xmm1
addsd xmm7, xmm6
divsd xmm7, xmm2
addsd xmm7, xmm5
cvttsd2si r10d, xmm7
mov dword [rdx + rcx*4], r10d
dec rax
inc rcx
cmp rcx, r9
jne 0x1400c93d0
mov r11, qword [r8]
mov r10, qword [r8 + 8]
cmp r10, r11
je 0x1400c945d
mov dword [r10 - 4], 0x7fffffff
mov rcx, r8
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
add rsp, 0x28
jmp 0x140095b90
int3
int3

Function at 0x140097808
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140097852
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140097852
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140097852
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140097852
cmp dword [rcx + 0x84], 0xe
jbe 0x140097852
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140097854
xor al, al
add rsp, 0x28
ret
Function at 0x140097ca0
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x140097d18
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x140097d18
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x140097d18
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x140097d0c
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x140097d2a
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x140097cfa
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x140097d1a

Function at 0x1400a8578
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1400a85af
call fcn.140096208
mov dword [rax], 0x16
call fcn.1400b9a84
xor eax, eax
jmp 0x1400a863d
mov rdx, r9
mov rcx, r8
call fcn.1400a8660
mov rbx, rax
test rax, rax
je 0x1400a863a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400a86d0]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1400a8627
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400ab430
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400a860e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400a861d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1400956d0
jmp 0x1400a863a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400a8637
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1400b3b40
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400b3b68
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400b3b68
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x1400bdf58
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1400b76e4
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1400bdff9
cmp ebx, dword [rsp + 0x30]
je 0x1400bdff2
test esi, esi
je 0x1400bdff2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400bdfcd
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400bdfda
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400bdfb7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400bdfde
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400bdffb
mov eax, 1
jmp 0x1400bdffb
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400bed34
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400bed64
xor eax, eax
jmp 0x1400bee27
mov rbp, rbx
cmp word [rax], si
je 0x1400bed89
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400bed70
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400bed6c
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400bec54
movsxd r14, eax
test eax, eax
jne 0x1400bedc7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400bed5d
mov rcx, r14
call fcn.140054aa0
mov rdi, rax
test rax, rax
jne 0x1400bede0
xor ecx, ecx
call fcn.1400956d0
jmp 0x1400bedbc
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400bec54
test eax, eax
jne 0x1400bee11
mov rcx, rdi
call fcn.1400956d0
jmp 0x1400bee1b
xor ecx, ecx
call fcn.1400956d0
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1400bee44
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400beecb
mov rsi, rbx
cmp word [rax], bp
je 0x1400bee8a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400bee74
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400bee70
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140054aa0
mov rdi, rax
test rax, rax
je 0x1400beeb8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140099f10
mov rbp, rdi
xor ecx, ecx
call fcn.1400956d0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400c1c1c
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14012e028]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1400c1c66
call fcn.1400ab410
mov dword [rax], 0xf
call fcn.140096208
mov dword [rax], 0xd
call fcn.1400b9a84
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140098480
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1400c1c71
lea eax, [rbx + 1]
jmp 0x1400c1c53
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1400c1c51
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1400c1c53
Function at 0x1400c281c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400c2832
mov al, 1
jmp 0x1400c2892
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400c2843
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400c2890
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400ab53c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400c2890
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400c2890
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400c2890
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400c2892
xor al, al
add rsp, 0x20
pop rbx
ret