joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000593c
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov eax, dword [rcx + 4]
lea rbx, [rcx + 8]
mov r9d, dword [rcx]
mov rdi, rcx
mov rcx, rbx
mov dword [rsp + 0x20], eax
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x180005999
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x180005993
mov r9d, dword [rdi]
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 8
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x180005999
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rax, qword [rbx]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1800059a8
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov dword [rax + 0x20], r9d
push rdi
sub rsp, 0x40
and qword [rax - 0x10], 0
mov rbx, rcx
lea rcx, [rax - 0x18]
mov dword [rax - 0x18], 0x18
mov rdi, rdx
mov dword [rax - 0x14], 0xf0000000
call fcn.18000593c
test rax, rax
je 0x180005a2d
mov rax, qword [rsp + 0x38]
test rax, rax
jne 0x1800059f3
lea rcx, [rsp + 0x30]
call fcn.18000593c
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
mov edx, 0x800c
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x180005a27
mov rcx, qword [rbx]
xor r9d, r9d
mov rdx, rdi
lea r8d, [r9 + 0x10]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x180005a4f
call qword [sym.imp.KERNEL32.dll_GetLastError]
or ebx, 0xffffffff
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x180005a42
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov rcx, qword [rsp + 0x70]
mov r8d, 0x20
xor edx, edx
mov dword [rsp + 0x68], r8d
call sub.msvcrt.dll_memset
mov r8, qword [rsp + 0x70]
lea r9, [rsp + 0x68]
mov rcx, qword [rbx]
mov edx, 2
and dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x180005a27
xor ebx, ebx
jmp 0x180005a30

Function at 0x180005a8c
Capabilities:
Encrypt data using aes via winapi

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x180011008]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rax, r8
mov dword [rsp + 0x30], 0x208
mov rbx, rdx
mov r8d, r9d
mov rdi, rcx
mov dword [rsp + 0x34], 0x660e
xorps xmm0, xmm0
mov dword [rsp + 0x38], r9d
xorps xmm1, xmm1
lea rcx, [rsp + 0x3c]
mov rdx, rax
xor esi, esi
movdqu xmmword [rsp + 0x3c], xmm0
movdqu xmmword [rsp + 0x4c], xmm1
call sub.msvcrt.dll_memcpy
mov rax, qword [rbx + 8]
test rax, rax
jne 0x180005af6
mov rcx, rbx
call fcn.18000593c
xor r9d, r9d
mov qword [rsp + 0x28], rdi
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x20], esi
mov rcx, rax
lea r8d, [r9 + 0x2c]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x180005b23
call qword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0xffffffff
jmp 0x180005b25
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.18000bbb0
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret
Function at 0x180005d70
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
and dword [rbp - 0x14], 0
mov rsi, rcx
and qword [rbp - 0x10], 0
lea rcx, [rbp - 0x18]
mov ebx, 1
mov r15, r9
mov dword [rbp - 0x18], ebx
mov r12, r8
mov rdi, rdx
call fcn.18000593c
test rax, rax
jne 0x180005dc7
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
jmp 0x180005eec
and qword [rbp - 0x28], 0
mov rax, qword [rbp - 0x10]
mov r14d, dword [rsi + 8]
mov rsi, qword [rsi]
test rax, rax
jne 0x180005dea
lea rcx, [rbp - 0x18]
call fcn.18000593c
test rax, rax
je 0x180005e69
lea rax, [rbp - 0x2c]
mov dword [rbp - 0x2c], 0x30
mov qword [rsp + 0x38], rax
mov r9d, r14d
lea rax, [rbp - 0x20]
mov r8, rsi
mov qword [rsp + 0x30], rax
mov edx, 8
and qword [rsp + 0x28], 0
mov ecx, ebx
mov dword [rsp + 0x20], 0x8000
call qword [sym.imp.CRYPT32.dll_CryptDecodeObjectEx]
test eax, eax
jne 0x180005e30
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180005e69
mov rax, qword [rbp - 0x10]
test rax, rax
jne 0x180005e42
lea rcx, [rbp - 0x18]
call fcn.18000593c
mov r8, qword [rbp - 0x20]
lea r9, [rbp - 0x28]
mov edx, ebx
mov rcx, rax
call qword [sym.imp.CRYPT32.dll_CryptImportPublicKeyInfo]
test eax, eax
jne 0x180005e5f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x180005ed0
lea rax, [rbp - 0x30]
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov r8d, ebx
mov qword [rsp + 0x20], rdi
xor edx, edx
mov dword [rbp - 0x30], r15d
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x180005ed0
mov eax, dword [rbp - 0x30]
mov rcx, qword [rbp + 0x40]
mov qword [rcx], rax
sub eax, ebx
movsxd rdx, eax
test eax, eax
jle 0x180005ed8
mov r8, rdi
mov al, byte [rdx + rdi]
mov cl, byte [r8]
mov byte [r8], al
add r8, rbx
mov rax, r8
mov byte [rdx + rdi], cl
sub rax, rdi
sub rdx, rbx
cmp rax, rdx
jl 0x180005eb1
jmp 0x180005ed8
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x180005eec
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
and qword [rbp - 0x28], 0
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x180005efd
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea r11, [rsp + 0x70]
mov al, bl
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x180005f20
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x68
mov r13, qword [rbp + 0x68]
mov rdi, rcx
and qword [rbp - 0x10], 0
lea rcx, [rbp - 0x18]
mov r12, r9
mov dword [rbp - 0x18], 0x18
mov r15, r8
mov dword [rbp - 0x14], 0xf0000000
mov r14, rdx
call fcn.18000593c
test rax, rax
jne 0x180005f72
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180006057
and qword [rbp - 0x28], 0
mov rax, qword [rbp - 0x10]
mov ebx, dword [rdi + 8]
mov rsi, qword [rdi]
test rax, rax
jne 0x180005f98
lea rcx, [rbp - 0x18]
call fcn.18000593c
test rax, rax
je 0x18000603b
mov r9d, ebx
lea rdx, [rbp - 0x18]
mov r8, rsi
lea rcx, [rbp - 0x28]
call fcn.180005a8c
test eax, eax
jne 0x18000603b
mov rcx, qword [rbp - 0x28]
lea esi, [rax + 1]
xor ebx, ebx
mov dword [rbp - 0x1c], esi
test rcx, rcx
je 0x180005fd6
xor r9d, r9d
lea r8, [rbp - 0x1c]
lea edx, [rax + 4]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, esi
jne 0x18000603b
mov rcx, qword [rbp - 0x28]
xor ebx, ebx
test rcx, rcx
je 0x180005ffc
mov r8, qword [rdi + 0x10]
xor r9d, r9d
mov edx, esi
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, esi
jne 0x18000603b
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x18000603b
lea rax, [rbp - 0x20]
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r14
xor edx, edx
mov dword [rbp - 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov eax, dword [rbp - 0x20]
mov qword [r13], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp - 0x28]
mov ebx, eax
test rcx, rcx
je 0x180006057
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
and qword [rbp - 0x28], 0
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x180006068
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, ebx
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x18000607c
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
and qword [rbp - 8], 0
mov rdi, rcx
lea rcx, [rbp - 0x10]
mov dword [rbp - 0x10], 0x18
mov r15, r9
mov dword [rbp - 0xc], 0xf0000000
mov r14, rdx
call fcn.18000593c
test rax, rax
jne 0x1800060c6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x18000619b
and qword [rbp - 0x20], 0
mov rax, qword [rbp - 8]
mov ebx, dword [rdi + 8]
mov rsi, qword [rdi]
test rax, rax
jne 0x1800060ec
lea rcx, [rbp - 0x10]
call fcn.18000593c
test rax, rax
je 0x18000617f
mov r9d, ebx
lea rdx, [rbp - 0x10]
mov r8, rsi
lea rcx, [rbp - 0x20]
call fcn.180005a8c
test eax, eax
jne 0x18000617f
mov rcx, qword [rbp - 0x20]
lea esi, [rax + 1]
xor ebx, ebx
mov dword [rbp - 0x18], esi
test rcx, rcx
je 0x180006126
xor r9d, r9d
lea r8, [rbp - 0x18]
lea edx, [rax + 4]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, esi
jne 0x18000617f
mov rcx, qword [rbp - 0x20]
xor ebx, ebx
test rcx, rcx
je 0x18000614c
mov r8, qword [rdi + 0x10]
xor r9d, r9d
mov edx, esi
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, esi
jne 0x18000617f
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x18000617f
lea rax, [rbp - 0x14]
mov dword [rbp - 0x14], r15d
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r14
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp - 0x20]
mov ebx, eax
test rcx, rcx
je 0x18000619b
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
and qword [rbp - 0x20], 0
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x1800061ac
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, ebx
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x1800061fc
Capabilities:
Generate random numbers via winapi

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x30
and dword [rax - 0x14], 0
mov rdi, rcx
and qword [rax - 0x10], 0
lea rcx, [rax - 0x18]
mov ebx, edx
mov dword [rax - 0x18], 1
call fcn.18000593c
test rax, rax
je 0x180006241
mov r8, rdi
mov edx, ebx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x180006241
xor ebx, ebx
jmp 0x180006244
or ebx, 0xffffffff
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x180006256
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x180007bb0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
xor eax, eax
mov ebx, ecx
xor ecx, ecx
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x68], eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180007c0c
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180007c0c
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180007c0c
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180007c0c
cmp dword [rcx + 0x84], 0xe
jbe 0x180007c0c
cmp dword [rcx + 0xf8], 0
je 0x180007c0c
mov ecx, ebx
call fcn.180007b40
lea rax, [rsp + 0x68]
mov byte [rsp + 0x58], 0
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rcx, [0x180013150]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.1800079c0
cmp dword [rsp + 0x60], 0
jne 0x180007c4f
mov ecx, ebx
call fcn.180007af0
int3
add rsp, 0x40
pop rbx
ret

Function at 0x180007dc0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x4f0]
sub rsp, 0x5f0
mov rax, qword [0x180011008]
xor rax, rsp
mov qword [rbp + 0x4e0], rax
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x180007dfc
mov ecx, 5
int 0x29
mov ecx, 2
call fcn.18000be3c
xorps xmm0, xmm0
lea rcx, [rbp + 0x10]
xor eax, eax
xor edx, edx
mov r8d, 0x4d0
mov qword [rbp], rax
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rcx, [rbp + 0x10]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rbp + 0x108]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x180007eb8
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x38], 0
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x10]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
mov rax, qword [rbp + 0x4f8]
mov qword [rbp + 0x108], rax
lea rax, [rbp + 0x4f8]
add rax, 8
mov dword [rsp + 0x70], 0xc0000417
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0x4f8]
mov qword [rbp - 0x80], rax
mov dword [rsp + 0x74], 1
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x180007f1e
test ebx, ebx
jne 0x180007f1e
lea ecx, [rax + 2]
call fcn.18000be3c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbp + 0x4e0]
xor rcx, rsp
call fcn.18000bbb0
mov rbx, qword [rsp + 0x600]
add rsp, 0x5f0
pop rbp
ret
Function at 0x18000ba40
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
cmp dword [rcx], 0xe06d7363
mov rdi, r9
mov rbp, r8
mov r14, rdx
mov rsi, rcx
jne 0x18000bafc
mov rax, qword [r9 + 0x38]
mov qword [rsp + 0x48], rbx
mov ebx, dword [rax]
add rbx, qword [r9 + 8]
mov eax, dword [rbx]
and eax, 0x1fffffff
sub eax, 0x19930521
cmp eax, 1
ja 0x18000baf7
mov eax, 1
xchg dword [0x1817731c0], eax
cmp eax, 1
jne 0x18000bab0
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
xchg dword [0x1817731c0], eax
cmp eax, 1
je 0x18000ba95
mov edx, 4
lea r9, [rsp + 0x40]
mov rcx, rbx
lea r8d, [rdx + 0x3c]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x18000baef
and dword [rbx], 0xf9930520
lea r9, [rsp + 0x40]
or dword [rbx], 0x19930520
mov edx, 4
mov r8d, dword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
xor eax, eax
xchg dword [0x1817731c0], eax
mov rbx, qword [rsp + 0x48]
mov r9, rdi
mov r8, rbp
mov rdx, r14
mov rcx, rsi
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
jmp qword [sym.imp.msvcrt.dll___CxxFrameHandler]
Function at 0x14001943c
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x1400306f8], rbx
je 0x1400194a3
cmp rax, rbx
jne 0x140019496
mov ebx, 1
mov esi, ebx
jmp 0x1400194a8
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14001947b
mov ebx, 1
mov eax, dword [0x140030700]
cmp eax, ebx
jne 0x1400194c0
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x14001952c
mov eax, dword [0x140030700]
test eax, eax
jne 0x140019521
mov dword [0x140030700], ebx
lea r15, [0x14001dcb8]
lea rdi, [0x14001dca0]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x140019513
test eax, eax
jne 0x140019517
cmp qword [rdi], r14
je 0x140019508
mov rax, qword [rdi]
mov rcx, qword [0x14001dc18]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x1400194ea
test eax, eax
je 0x140019527
mov eax, 0xff
jmp 0x140019682
mov dword [0x14002ffb4], ebx
mov edi, 0x1f
mov eax, dword [0x140030700]
cmp eax, ebx
jne 0x140019553
lea rdx, [0x14001dc98]
lea rcx, [0x14001dc20]
call sub.msvcrt.dll__initterm
mov dword [0x140030700], 2
test esi, esi
jne 0x140019561
mov rax, r14
xchg qword [0x1400306f8], rax
cmp qword [0x140030718], r14
je 0x140019594
lea rcx, [0x140030718]
call fcn.140019a50
test eax, eax
je 0x140019594
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140030718]
mov r9, qword [0x14001dc18]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x1400195ad
mov eax, 0xff
jmp 0x140019682
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x140019633
test ax, ax
je 0x1400195c8
test edx, edx
jne 0x140019633
sub ax, bx
cmp ax, di
ja 0x1400195de
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x1400195c8
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140003e4c
mov dword [0x14002ffb0], eax
cmp dword [0x14002ffd0], r14d
jne 0x14001961c
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14002ffb4], r14d
jne 0x140019631
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14002ffb0]
jmp 0x140019682
cmp ax, 0x22
jne 0x140019647
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400195b6
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.140146000
add rsp, 0x28
jmp 0x14001943c
Function at 0x180002d40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x68
mov eax, dword [rsp + 0x90]
add eax, 0x183d
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x80]
add eax, 0x60
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x80]
xor eax, 0x3ac4
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x98]
add eax, 0x101
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x98]
add eax, 0x1829
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x70]
xor eax, 0x354
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x90]
add eax, 0x5d8
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x88]
sub eax, 0xda5
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x88]
xor eax, 0x393
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x80]
add eax, 0x60
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x2c]
xor eax, 0x8af
cmp dword [rsp + 0x28], eax
je 0x180002e35
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x9c]
sub eax, 0x962ff
mov rcx, qword [rsp + 0x78]
mov ecx, dword [rcx + 0x28]
sub ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x78]
mov dword [rcx + 0x28], eax
mov eax, dword [rsp + 0x24]
sub eax, 0x509
mov dword [rsp + 0x24], eax
jmp 0x180002ed4
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x90]
mov dword [rsp + 0x20], eax
jmp 0x180002e51
mov eax, dword [rsp + 0x20]
add eax, 3
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x34]
sub ecx, eax
mov eax, ecx
cmp dword [rsp + 0x20], eax
jge 0x180002ed4
mov eax, dword [rsp + 0x38]
sub eax, 0x19a5
sub eax, dword [rsp + 0x28]
mov dword [rsp + 0x44], eax
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x78]
mov eax, dword [rdx + rax + 0x3c]
mov ecx, dword [rcx + 0x38]
sub ecx, eax
mov eax, ecx
mov ecx, 4
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x78]
and eax, dword [rdx + rcx + 0xa4]
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x48]
sub eax, 0x28d2
mov dword [rsp + 0x3c], eax
mov r8d, dword [rsp + 0x3c]
mov edx, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x44]
call qword [sym.imp.KERNEL32.dll_OpenThread]
jmp 0x180002e46
mov eax, dword [rsp + 0x2c]
add eax, 0xc9
add rsp, 0x68
ret
Function at 0x180004680
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x68
mov eax, dword [rsp + 0x98]
sub eax, 0x119d
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0xa0]
sub eax, 0x21d2
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x70]
sub eax, 0x2286
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x70]
sub eax, 0x2286
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x80]
xor eax, 0x2d13
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0xa0]
xor eax, 0x3863
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x98]
sub eax, 0x2d13
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x88]
sub eax, 0x26d3
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x98]
xor eax, 0xf88
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x24]
add eax, 0x2540
cmp dword [rsp + 0x2c], eax
je 0x180004817
mov eax, dword [rsp + 0x24]
add eax, 0x19b1
cmp dword [rsp + 0x2c], eax
jge 0x180004765
mov rax, qword [rsp + 0x78]
lea rcx, [0x1800b0080]
mov qword [rax + 0x70], rcx
mov eax, dword [rsp + 0x20]
add eax, 0x1265
mov dword [rsp + 0x20], eax
jmp 0x180004817
mov eax, dword [rsp + 0x30]
or eax, 0x1c5f
mov rcx, qword [rsp + 0x78]
sub eax, dword [rcx + 0x2c]
cmp dword [rsp + 0x20], eax
jb 0x180004817
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x28], eax
jmp 0x180004795
mov eax, dword [rsp + 0x28]
add eax, 3
mov dword [rsp + 0x28], eax
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 0x78]
mov eax, dword [rcx + rax + 0xa4]
add eax, dword [rsp + 0x34]
and eax, dword [rsp + 0x24]
cmp dword [rsp + 0x28], eax
jbe 0x180004817
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x78]
mov eax, dword [rdx + rax + 0xa4]
mov ecx, dword [rcx + 0x98]
xor ecx, eax
mov eax, ecx
mov eax, eax
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x98]
mov ecx, dword [rsp + 0x38]
or ecx, eax
mov eax, ecx
sub eax, 0x2ddb
mov eax, eax
mov qword [rsp + 0x48], rax
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
jmp 0x18000478a
mov eax, dword [rsp + 0x3c]
add eax, 0x16b3
add rsp, 0x68
ret
Function at 0x180008250
Capabilities:
Get file attributes
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov eax, dword [rsp + 0x68]
add eax, 0xcd4
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x78]
xor eax, 0x3d60
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x80]
sub eax, 0x627
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x88]
sub eax, 0x192e
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x68]
sub eax, 0x15b2
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x68]
sub eax, 0x15b2
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x78]
add eax, 0x3f3
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x68]
add eax, 0x13cb
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x2c]
xor eax, 0x28d2
cmp dword [rsp + 0x20], eax
jg 0x1800082f2
mov eax, dword [rsp + 0x20]
xor eax, 0x509
mov dword [rsp + 0x20], eax
jmp 0x180008345
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x24], eax
jmp 0x180008307
mov eax, dword [rsp + 0x24]
add eax, 2
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x34]
and eax, 0x21d2
mov rcx, qword [rsp + 0x70]
or eax, dword [rcx + 0x90]
cmp dword [rsp + 0x24], eax
jb 0x180008345
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x2c]
mov ecx, dword [rsp + 0x28]
sub ecx, eax
mov eax, ecx
mov eax, eax
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
jmp 0x1800082fc
mov eax, dword [rsp + 0x28]
sub eax, 0xfd8
add rsp, 0x58
ret