joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140065e10
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1400838c0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, r8
mov dword [rsp + 0x20], 0xf0000040
mov rdi, rdx
mov rbx, rcx
xor ebp, ebp
lea rcx, [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x38], rbp
xor edx, edx
mov qword [rsp + 0x40], rbp
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x140065e93
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x8002
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x140065eb5
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140065f60
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
mov rcx, rsi
call fcn.140020860
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
mov r8d, eax
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x30], ebp
mov edx, 2
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [rsp + 0x30], 0x10
jne 0x140065f14
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
mov r8, rbx
mov dword [rsp + 0x20], ebp
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140065f24
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140065f36
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
jmp 0x140065e98

Function at 0x140066ad8
Capabilities:
Parse pe header

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

Disassembly:
cld
pop r11
jmp 0x14007405d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14007406d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140074055
lea eax, [rcx + 1]
jmp 0x14007407b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14007408e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140074074
sub eax, 3
jb 0x1400740ae
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400740fd
sar eax, 1
movsxd rbp, eax
jb 0x1400740e4
jmp 0x1400740bc
add ebx, ebx
jne 0x1400740ba
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400740e4
inc ecx
add ebx, ebx
jne 0x1400740ca
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400740e4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1400740dd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1400740cc
add ecx, 2
jmp 0x1400740e9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140074012
jmp 0x14007405d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x2a000
mov dl, 0x12
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140074149
cmp rsi, rcx
jae 0x140074151
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140074130
cmp al, 0x8f
ja 0x140074130
cmp byte [rsi - 2], 0xf
je 0x140074136
sub al, 0xe8
cmp al, 1
ja 0x14007411a
cmp rsi, rcx
jae 0x140074151
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140074120
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140074151
lodsb al, byte [rsi]
jmp 0x140074130
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x71000]
mov eax, dword [rdi]
or eax, eax
je 0x1400741ae
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x9b2a8]
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 0x14007415e
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 0x1400741a8
mov qword [rbx], rax
add rbx, 8
jmp 0x14007417e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1400741e8
cmp al, 0xef
ja 0x1400741da
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1400741ba
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1400741c9
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 + 0x227]
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 0x14007423c
sub rsp, 0xffffffffffffff80
jmp 0x14000b220
Function at 0x14000b340
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140015340
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.140015340
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x14000b3b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1400e20b4]
mov r12, rcx
test ebx, ebx
jle 0x14000b4e0
mov rax, qword [0x1400e20b8]
xor r9d, r9d
add rax, 0x18
nop dword [rax + rax]
mov r8, qword [rax]
cmp r8, r12
ja 0x14000b3fb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp r12, r8
jb 0x14000b485
add r9d, 1
add rax, 0x28
cmp r9d, ebx
jne 0x14000b3e0
mov rcx, r12
call fcn.14000be30
mov rsi, rax
test rax, rax
je 0x14000b502
mov rax, qword [0x1400e20b8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.14000bf60
mov edx, dword [rsi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400e20b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000b4e7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000b47e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000b490
add dword [0x1400e20b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x1400e20b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000b47e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000b340
nop dword [rax]
xor ebx, ebx
jmp 0x14000b408
mov rax, qword [0x1400e20b8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000b340
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.14000b340
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000ba80
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r13, [0x1400e2120]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400e2100]
test rbx, rbx
je 0x14000badc
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14000bad3
test r12, r12
je 0x14000bad3
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000bab8
mov rcx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14000be30
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400ba5b0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000be50
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000be58
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000be50
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x14000bea5
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000be9c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000be50
add rax, 0x28
cmp rax, r9
jne 0x14000be88
xor eax, eax
ret

Function at 0x14000beb0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400ba5b0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x14000bed0
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000bed8
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000bed0
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x14000bf60
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400ba5b0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x14000bf80
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x14000bf88
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x140017a40
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov word [rsp + 0x88], ax
mov byte [rsp + 0x8a], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x140017b52
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x140017b2a
add rax, 1
cmp rax, 0x6b
je 0x140017b47
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x140017b20
cmp edx, 0x6a
je 0x140017b47
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x140017b3b
Function at 0x140017ef0
Capabilities:
Allocate thread local storage

Disassembly:
push r13
push r12
push rsi
push rbx
sub rsp, 0x28
lea rsi, [0x1400e2d40]
mov rcx, rsi
call fcn.1400177b0
lea r13, [rax + 8]
mov r12, rax
mov rcx, r13
call fcn.140017040
mov ebx, dword [0x1400e2d40]
test ebx, ebx
jne 0x140017f60
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400b2188], eax
cmp eax, 0xffffffff
je 0x1400b1af6
mov dword [0x1400e2d40], 1
mov rcx, r13
call fcn.140017360
test r12, r12
je 0x140017f92
mov rcx, r12
add rsp, 0x28
pop rbx
pop rsi
pop r12
pop r13
jmp fcn.140017b70
cmp ebx, 1
je 0x140017f41
mov ecx, 2
call qword [fcn.140015340]
mov r9d, ebx
mov r8, rsi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
mov rcx, r13
call fcn.140017360
test r12, r12
jne 0x140017f4e
add rsp, 0x28
pop rbx
pop rsi
pop r12
pop r13
ret
call sub.msvcrt.dll_abort
nop
Function at 0x1400774f0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
jmp 0x140077517
call rbp
cmp dword [rax], 4
jne 0x140077534
mov rcx, rdi
call fcn.140077320
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call sub.msvcrt.dll__read
movsxd r12, eax
cmp eax, 0xffffffff
je 0x140077510
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x1400018c8
Capabilities:
Parse pe header

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

Function at 0x140007218
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140007287
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140007287
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140007287
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140007287
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140007287
cmp dword [rcx + 0x84], 0xe
jbe 0x140007287
cmp dword [rcx + 0xf8], 0
je 0x140007287
mov ecx, ebx
call fcn.140007338
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140007114
nop
cmp dword [rbp + 0x20], 0
je 0x1400072d5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400072e0
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140007218

Function at 0x14000741c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140007218
Function at 0x14000c644
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 0x14000c674
xor eax, eax
jmp 0x14000c737
mov rbp, rbx
cmp word [rax], si
je 0x14000c699
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000c680
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000c67c
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.14000c564
movsxd r14, eax
test eax, eax
jne 0x14000c6d7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000c66d
mov rcx, r14
call fcn.140007d28
mov rdi, rax
test rax, rax
jne 0x14000c6f0
xor ecx, ecx
call fcn.140007cec
jmp 0x14000c6cc
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.14000c564
test eax, eax
jne 0x14000c721
mov rcx, rdi
call fcn.140007cec
jmp 0x14000c72b
xor ecx, ecx
call fcn.140007cec
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 0x14001060c
Capabilities:
Get file size

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

Function at 0x1400135a0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400135c8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400135c8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140015380
Capabilities:
Check for windows sandbox via process name
Enumerate processes

Disassembly:
push rdi
sub rsp, 0x270
mov dword [rsp + 0x20], 1
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x238
rep stosb byte [rdi], al
xor edx, edx
mov ecx, 2
call qword [0x1400220a0]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
jne 0x1400153c0
xor eax, eax
jmp 0x140015432
mov dword [rsp + 0x30], 0x238
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x1400153df
xor eax, eax
jmp 0x140015432
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
lea rdx, str.CExecSvc.exe
lea rcx, [rsp + 0x5c]
call fcn.140004470
test eax, eax
jne 0x140015402
xor eax, eax
jmp 0x140015432
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1400153df
cmp dword [rsp + 0x20], 0x55
jbe 0x140015426
mov dword [rsp + 0x24], 1
jmp 0x14001542e
mov dword [rsp + 0x24], 0
mov eax, dword [rsp + 0x24]
add rsp, 0x270
pop rdi
ret

Function at 0x140015440
Capabilities:
Contain obfuscated stackstrings
Link many functions at runtime

Disassembly:
sub rsp, 0x38
mov byte [rsp + 0x20], 0x6b
mov byte [rsp + 0x21], 0x65
mov byte [rsp + 0x22], 0x72
mov byte [rsp + 0x23], 0x6e
mov byte [rsp + 0x24], 0x65
mov byte [rsp + 0x25], 0x6c
mov byte [rsp + 0x26], 0x33
mov byte [rsp + 0x27], 0x32
mov byte [rsp + 0x28], 0x2e
mov byte [rsp + 0x29], 0x64
mov byte [rsp + 0x2a], 0x6c
mov byte [rsp + 0x2b], 0x6c
mov byte [rsp + 0x2c], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.VirtualProtect
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140022098], rax
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.CreateToolhelp32Snapshot
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400220a0], rax
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.ConvertThreadToFiber
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400220a8], rax
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.CreateFiber
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400220b0], rax
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.SwitchToFiber
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400220b8], rax
cmp qword [0x140022098], 0
je 0x14001556a
cmp qword [0x1400220a0], 0
je 0x14001556a
cmp qword [0x1400220a8], 0
je 0x14001556a
cmp qword [0x1400220b0], 0
je 0x14001556a
cmp qword [0x1400220b8], 0
je 0x14001556a
mov eax, 1
jmp 0x14001556c
xor eax, eax
add rsp, 0x38
ret
Function at 0x140015670
Capabilities:
Get file size
Read file on windows

Disassembly:
sub rsp, 0x58
mov qword [rsp + 0x40], 0xffffffffffffffff
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
lea rcx, str.CrowdStrike.xml
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0xffffffffffffffff
jne 0x1400156cd
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140015760
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [0x140022088], eax
cmp dword [0x140022088], 0
jne 0x1400156f8
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140015760
mov eax, dword [0x140022088]
mov ecx, eax
call fcn.1400044bc
mov qword [0x140022090], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [0x140022088]
mov rdx, qword [0x140022090]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140015750
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140022090]
call fcn.1400044a8
xor eax, eax
jmp 0x140015760
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x58
ret

Function at 0x140015950
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub rsp, 0x68
movsd xmm0, qword [0x140016368]
movsd qword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
cvtsi2sd xmm0, qword [rsp + 0x40]
movsd xmm1, qword [rsp + 0x48]
mulsd xmm1, xmm0
movaps xmm0, xmm1
movsd qword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
cvtsi2sd xmm0, rax
movsd qword [rsp + 0x28], xmm0
movsd xmm0, qword [rsp + 0x50]
comisd xmm0, xmmword [rsp + 0x28]
ja 0x140015992
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
cvtsi2sd xmm0, rax
cvtsi2sd xmm1, qword [rsp + 0x40]
divsd xmm0, xmm1
movsd qword [rsp + 0x28], xmm0
movsd xmm0, qword [rsp + 0x48]
comisd xmm0, xmmword [rsp + 0x28]
jbe 0x140015a04
mov dword [rsp + 0x20], 0
jmp 0x140015a0c
mov dword [rsp + 0x20], 1
mov eax, dword [rsp + 0x20]
add rsp, 0x68
ret