joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000ff60
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.14001a680
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.14001a680
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 0x14000ffd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400eb134]
mov rbx, rcx
test esi, esi
jle 0x140010100
mov rax, qword [0x1400eb138]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14001001b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400100a5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140010000
mov rcx, rbx
call fcn.140010a20
mov rdi, rax
test rax, rax
je 0x140010122
mov rax, qword [0x1400eb138]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140010b60
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400eb138]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140010107
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14001009e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400100b0
add dword [0x1400eb134], 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 [0x1400eb138]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001009e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000ff60
nop dword [rax]
xor esi, esi
jmp 0x140010028
mov rax, qword [0x1400eb138]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000ff60
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14000ff60
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140010690
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400eb1a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400eb180]
test rbx, rbx
je 0x1400106ec
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 0x1400106e3
test rsi, rsi
je 0x1400106e3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400106c8
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 0x140010a20
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400c36a0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140010a40
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140010a48
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140010a40
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140010a9d
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 0x140010a94
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140010a40
add rax, 0x28
cmp rax, r9
jne 0x140010a80
xor eax, eax
ret

Function at 0x140010aa0
Capabilities:
Parse pe header

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

Function at 0x140010b60
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400c36a0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140010b7f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140010b88
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140011920
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x138
mov rbx, rcx
call sub.msvcrt.dll__errno
mov dword [rax], 0
test rbx, rbx
je 0x140011ad0
cmp byte [rbx], 0
je 0x140011a98
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140011ae0
test al, 0x10
je 0x140011a98
lea rsi, [rsp + 0x20]
mov rdx, rbx
mov r8d, 0x104
mov rcx, rsi
call sub.msvcrt.dll__fullpath
mov rcx, rsi
call sub.msvcrt.dll_strlen
lea rcx, [rax + 0x24b]
mov rbx, rax
mov rbp, rax
call sub.msvcrt.dll_malloc
mov rdx, rax
test rax, rax
je 0x140011b08
lea r8, [rax + 0x244]
lea rax, [rbx + 1]
cmp eax, 8
jb 0x140011a60
mov rcx, qword [rsp + 0x20]
lea rdi, [rdx + 0x24c]
and rdi, 0xfffffffffffffff8
mov qword [rdx + 0x244], rcx
mov ecx, eax
mov r9, qword [rsi + rcx - 8]
mov qword [r8 + rcx - 8], r9
mov rcx, r8
sub rcx, rdi
sub rsi, rcx
add ecx, eax
shr ecx, 3
rep movsq qword [rdi], qword [rsi]
cmp byte [rdx + 0x244], 0
je 0x140011a08
movzx ecx, byte [rdx + rbx + 0x243]
cmp cl, 0x5c
je 0x140011a08
cmp cl, 0x2f
jne 0x140011ab8
mov eax, 0x2a
mov ecx, 0x20
mov word [r8 + rbp], ax
lea r8, [rdx + 0x130]
xor eax, eax
mov qword [rdx + 0x238], 0xffffffffffffffff
mov rdi, r8
mov dword [rdx + 0x240], 0
mov qword [rdx + 0x128], 0
rep stosq qword [rdi], rax
mov rax, rdx
mov dword [rdi], 0
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
ret
test al, 4
jne 0x140011af0
test eax, eax
je 0x1400119e9
movzx ecx, byte [rsp + 0x20]
mov byte [r8], cl
test al, 2
je 0x1400119e9
mov ecx, eax
movzx r9d, word [rsi + rcx - 2]
mov word [r8 + rcx - 2], r9w
jmp 0x1400119e9
call sub.msvcrt.dll__errno
xor edx, edx
mov dword [rax], 0x14
mov rax, rdx
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov ecx, 0x5c
mov rbp, rax
mov word [r8 + rbx], cx
jmp 0x140011a08
call sub.msvcrt.dll__errno
xor edx, edx
mov dword [rax], 0xe
jmp 0x140011aa5
call sub.msvcrt.dll__errno
xor edx, edx
mov dword [rax], 2
jmp 0x140011aa5
mov ecx, dword [rsp + 0x20]
mov dword [r8], ecx
mov ecx, eax
mov r9d, dword [rsi + rcx - 4]
mov dword [r8 + rcx - 4], r9d
jmp 0x1400119e9
call sub.msvcrt.dll__errno
xor edx, edx
mov dword [rax], 0xc
jmp 0x140011aa5
Function at 0x14001b8c0
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push rbp
push rbx
sub rsp, 0x1e8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x180], rcx
lea rax, [rbp - 0x50]
mov rdx, rax
mov ecx, 0x202
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
mov dword [rbp + 0x158], eax
cmp dword [rbp + 0x158], 0
je 0x14001b906
mov ecx, 0
call sub.msvcrt.dll_exit
mov dword [rbp + 0x15c], 0
mov rax, qword [rbp + 0x180]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_gethostbyname]
call rax
mov qword [rbp + 0x150], rax
cmp qword [rbp + 0x150], 0
jne 0x14001b9fc
mov rax, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rax
mov dword [rbp + 0x14c], eax
cmp dword [rbp + 0x14c], 0
je 0x14001ba23
cmp dword [rbp + 0x14c], 0x2af9
jne 0x14001b96a
mov ecx, 1
call sub.msvcrt.dll_exit
cmp dword [rbp + 0x14c], 0x2afc
jne 0x14001b980
mov ecx, 1
call sub.msvcrt.dll_exit
mov ecx, 1
call sub.msvcrt.dll_exit
mov rax, qword [rbp + 0x150]
mov rcx, qword [rax + 0x18]
mov eax, dword [rbp + 0x15c]
lea edx, [rax + 1]
mov dword [rbp + 0x15c], edx
cdqe
shl rax, 3
add rax, rcx
mov rax, qword [rax]
mov eax, dword [rax]
mov dword [rbp - 0x54], eax
lea rax, str._nIP_Address
mov rdx, rax
mov rax, qword [0x1400c30c0]
mov rcx, rax
call fcn.1400b42b0
mov rbx, rax
mov eax, dword [rbp - 0x54]
mov ecx, eax
mov rax, qword [sym.imp.WS2_32.dll_inet_ntoa]
call rax
mov rdx, rax
mov rcx, rbx
call fcn.1400b42b0
mov rcx, rax
mov rax, qword [0x1400c30d0]
mov rdx, rax
call fcn.140077550
mov rax, qword [rbp + 0x150]
mov rax, qword [rax + 0x18]
mov edx, dword [rbp + 0x15c]
movsxd rdx, edx
shl rdx, 3
add rax, rdx
mov rax, qword [rax]
test rax, rax
jne 0x14001b98a
mov eax, dword [rbp - 0x54]
mov ecx, eax
mov rax, qword [sym.imp.WS2_32.dll_inet_ntoa]
call rax
add rsp, 0x1e8
pop rbx
pop rbp
ret
Function at 0x14007db60
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.msvcrt.dll__fileno_1
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x14007dba8
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x14007db7a
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140001170
Capabilities:
Encode data using xor
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push rbp
push rdi
sub rsp, 0x38
mov rbp, rcx
test rcx, rcx
je 0x1400013a6
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x1400013a6
cmp qword [rbp + 0x10], 0
je 0x1400011a3
mov eax, 1
add rsp, 0x38
pop rdi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
test rax, rax
je 0x1400013a6
mov eax, 0x5a4d
cmp word [rdi], ax
jne 0x14000139d
movsxd rcx, dword [rdi + 0x3c]
add rcx, rdi
cmp dword [rcx], 0x4550
jne 0x14000139d
mov eax, 0x2000
test word [rcx + 0x16], ax
je 0x14000139d
mov eax, dword [rcx + 0x88]
test eax, eax
je 0x14000139d
cmp dword [rcx + 0x8c], 0
je 0x14000139d
mov qword [rsp + 0x60], rsi
xor esi, esi
mov qword [rsp + 0x68], r12
mov r12d, dword [rdi + rax + 0x20]
mov qword [rsp + 0x30], r13
add r12, rdi
mov r13d, dword [rdi + rax + 0x1c]
mov qword [rsp + 0x28], r14
add r13, rdi
lea r14, [rdi + rax]
mov qword [rsp + 0x58], rbx
mov eax, dword [r14 + 0x24]
add rax, rdi
mov qword [rsp + 0x20], r15
mov qword [rsp + 0x50], rax
cmp dword [r14 + 0x18], esi
jbe 0x140001348
nop word [rax + rax]
mov ebx, dword [r12 + rsi*4]
add rbx, rdi
jne 0x140001260
xor ecx, ecx
jmp 0x140001337
mov edx, 0x1000
mov rcx, rbx
call fcn.140006c44
mov r8, rax
test rax, rax
jne 0x14000127c
xor ecx, ecx
jmp 0x140001337
xor eax, eax
cmp r8, 4
jb 0x1400012b8
mov r9, r8
shr r9, 2
imul rcx, r9, 0xfffffffffffffffc
add r8, rcx
movzx ecx, word [rbx]
movzx edx, word [rbx + 2]
add eax, ecx
mov ecx, eax
shl edx, 0xb
shl ecx, 0x10
add rbx, 4
xor edx, ecx
xor eax, edx
mov ecx, eax
shr ecx, 0xb
add eax, ecx
sub r9, 1
jne 0x140001292
sub r8, 1
je 0x1400012f9
sub r8, 1
je 0x1400012e6
cmp r8, 1
jne 0x14000130b
movzx ecx, word [rbx]
movzx edx, byte [rbx + 2]
add eax, ecx
mov ecx, eax
shl edx, 0x12
shl ecx, 0x10
xor edx, ecx
xor eax, edx
mov ecx, eax
shr ecx, 0xb
jmp 0x140001309
movzx ecx, word [rbx]
add eax, ecx
mov ecx, eax
shl ecx, 0xb
xor eax, ecx
mov ecx, eax
shr ecx, 0x11
jmp 0x140001309
movzx ecx, byte [rbx]
add eax, ecx
mov ecx, eax
shl ecx, 0xa
xor eax, ecx
mov ecx, eax
shr ecx, 1
add eax, ecx
lea ecx, [rax*8]
xor eax, ecx
mov ecx, eax
shr ecx, 5
add eax, ecx
mov ecx, eax
shl ecx, 4
xor eax, ecx
mov ecx, eax
shr ecx, 0x11
add eax, ecx
mov ecx, eax
shl ecx, 0x19
xor eax, ecx
mov ecx, eax
shr ecx, 6
add ecx, eax
cmp ecx, dword [rbp]
je 0x140001378
inc esi
cmp esi, dword [r14 + 0x18]
jb 0x140001250
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov rbx, qword [rsp + 0x58]
mov r15, qword [rsp + 0x20]
mov r12, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
mov r13, qword [rsp + 0x30]
mov r14, qword [rsp + 0x28]
add rsp, 0x38
pop rdi
pop rbp
ret
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + rsi*2]
mov ecx, dword [r13 + rax*4]
add rcx, rdi
mov qword [rbp + 0x10], rcx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
jmp 0x140001353
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
add rsp, 0x38
pop rdi
pop rbp
ret
Function at 0x140001e24
Capabilities:
Parse pe header

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

Function at 0x140007a84
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 0x140007af3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140007af3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140007af3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140007af3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140007af3
cmp dword [rcx + 0x84], 0xe
jbe 0x140007af3
cmp dword [rcx + 0xf8], 0
je 0x140007af3
mov ecx, ebx
call fcn.140007ba4
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.140007980
nop
cmp dword [rbp + 0x20], 0
je 0x140007b41
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140007b4c
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140007a84

Function at 0x140007c88
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140007a84
Function at 0x14000cca0
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 0x14000ccd0
xor eax, eax
jmp 0x14000cd93
mov rbp, rbx
cmp word [rax], si
je 0x14000ccf5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000ccdc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000ccd8
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.14000cbc0
movsxd r14, eax
test eax, eax
jne 0x14000cd33
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000ccc9
mov rcx, r14
call fcn.14000977c
mov rdi, rax
test rax, rax
jne 0x14000cd4c
xor ecx, ecx
call fcn.140008b04
jmp 0x14000cd28
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.14000cbc0
test eax, eax
jne 0x14000cd7d
mov rcx, rdi
call fcn.140008b04
jmp 0x14000cd87
xor ecx, ecx
call fcn.140008b04
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 0x1400110bc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400110d2
mov al, 1
jmp 0x140011132
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400110e3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140011130
mov ecx, dword [rcx + 0x18]
nop
call fcn.14000d5c0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140011130
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140011130
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140011130
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140011132
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140012170
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000bc90
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400121fa
cmp byte [rbp - 0x21], r15b
je 0x1400121f5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140012230
call fcn.140008d54
test eax, eax
jne 0x14001221c
cmp byte [rbp - 0x21], r15b
je 0x140012214
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140012230
cmp byte [rbp - 0x21], r15b
je 0x14001222d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000b270
test eax, eax
jne 0x1400122d0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000bc90
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001226f
cmp byte [rbp - 0x21], r15b
je 0x1400122a4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400122a4
call fcn.140008d54
test eax, eax
jne 0x140012290
cmp byte [rbp - 0x21], r15b
je 0x140012289
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400122a4
cmp byte [rbp - 0x21], r15b
je 0x1400122a1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000b270
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400122d0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400122d3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400122e1
mov rcx, rdi
call fcn.140008b04
cmp byte [rbp + 0x3f], r15b
je 0x1400122f0
mov rcx, qword [rbp + 0x27]
call fcn.140008b04
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x140014860
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140014888
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140014888
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180003d50
Capabilities:
Create thread

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov rsi, rcx
mov qword [0x18014b910], rdx
mov qword [0x18014b900], r8
mov rax, qword [r9 + 0x60]
mov qword [rcx + 0x60], rax
lea rbx, [rcx + 0x50]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx], rax
mov qword [rsi + 0x58], rbx
cmp byte [rsp + 0x80], 0
jne 0x180003f43
mov rcx, qword [0x18014b908]
test rcx, rcx
je 0x180003db9
call fcn.180003fc0
mov ecx, 0xe8
call fcn.180034ad4
mov rdi, rax
mov qword [rsp + 0x60], rax
movaps xmm0, xmmword [0x180145ce0]
movups xmmword [rax], xmm0
movzx ecx, word [0x180145cf0]
mov word [rax + 0x10], cx
movaps xmm0, xmmword [0x180145ce0]
movups xmmword [rax + 0x12], xmm0
movzx ecx, word [0x180145cf0]
mov word [rax + 0x22], cx
mov ecx, 0x28
call fcn.180034ad4
mov qword [rsp + 0x68], rax
lea rcx, [0x180117b38]
mov qword [rax], rcx
xor ebp, ebp
mov qword [rax + 8], rbp
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rbp
lea rcx, [0x180117c60]
mov qword [rax], rcx
mov qword [rax + 8], rbp
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rbp
lea rbx, [rdi + 0x28]
mov qword [rsp + 0x68], rbx
mov r8, rax
lea rdx, [0x180145ce0]
mov rcx, rbx
call fcn.1800050a0
nop
lea rax, [0x1801176e8]
mov qword [rbx], rax
mov dword [rbx + 0x74], ebp
mov qword [rdi + 0xa0], rsi
mov byte [rdi + 0xa8], bpl
mov qword [rdi + 0xb0], rbp
xor r9d, r9d
xor r8d, r8d
lea edx, [rbp + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rdi + 0xb8], rax
lea r8, str.508F6AAB_F6BB_4A2F_B52E_3DD205C5B689
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [rdi + 0xc0], rax
mov byte [rdi + 0xc8], bpl
mov dword [rdi + 0xd0], ebp
movzx eax, word [rdi + 0x20]
movd xmm2, eax
cvtdq2pd xmm2, xmm2
mulsd xmm2, qword [0x18011b7c8]
movzx eax, word [rdi + 0x14]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm2, xmm0
mov eax, dword [rdi + 0x16]
xorps xmm1, xmm1
cvtsi2sd xmm1, rax
divsd xmm1, qword [0x18011b7e0]
mulsd xmm2, xmm1
cvttsd2si rax, xmm2
mov dword [rdi + 0xcc], eax
mov rax, qword [0x18014bd40]
add rax, 0x230
mov qword [rdi + 0xd8], rax
mov eax, dword [rax]
mov dword [rdi + 0xe0], eax
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], ebp
mov r9, rdi
lea r8, [0x18000dbe0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rdi + 0xb0], rax
mov qword [0x18014b908], rdi
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x180004c80
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov ecx, dword [rcx + 0x20]
test ecx, ecx
je 0x180004d1e
sub ecx, 1
je 0x180004d76
sub ecx, 1
je 0x180004cc1
cmp ecx, 1
jne 0x180004d6f
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
xor esi, esi
jmp 0x180004d4f
mov qword [rsp + 0x38], rbx
mov rbx, qword [rdi + 0x28]
mov rbx, qword [rbx + 0x10]
cmp rbx, qword [0x18011b420]
jne 0x180004cdb
mov rbx, qword [rdi + 0x18]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rsp + 0x30]
xor esi, esi
test eax, eax
cmove rcx, rsi
mov qword [rdi + 0x18], rcx
mov rax, qword [rdi + 0x28]
mov qword [rsp + 0x30], rcx
sub rcx, rbx
mov rbx, qword [rsp + 0x38]
add qword [rax + 0x18], rcx
mov dword [rdi + 0x20], 1
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rax, qword [rdi + 0x28]
xor esi, esi
mov rcx, rdi
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rsi
mov rax, qword [rdi]
mov rax, qword [rax + 8]
call qword [case.0x18001f0fa.0]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rdx, qword [rsp + 0x30]
test eax, eax
mov rcx, qword [rdi + 0x28]
cmove rdx, rsi
mov qword [rsp + 0x30], rdx
mov rax, qword [rcx]
mov rax, qword [rax]
call qword [case.0x18001f0fa.0]
mov dword [rdi + 0x20], 1
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x18000c160
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
movsxd rax, dword [rcx + 0x3c]
mov r9d, dword [rcx + rax + 0x88]
add r9, rcx
mov edi, dword [r9 + 0x20]
mov eax, dword [r9 + 0x1c]
mov dword [rsp + 0x2c], eax
mov r15d, dword [r9 + 0x24]
mov r13d, dword [r9 + 0x18]
test r13d, r13d
je 0x18000c1e5
mov r12d, r8d
mov ebp, edx
mov rsi, rcx
mov ebx, 0
add rdi, rcx
mov ecx, dword [rdi + rbx*4]
add rcx, rsi
mov edx, r12d
call fcn.18000c136
cmp eax, ebp
jne 0x18000c1d5
mov r15d, r15d
lea rax, [r15 + rbx*2]
movzx edx, word [rsi + rax]
mov eax, dword [rsp + 0x2c]
lea rax, [rax + rdx*4]
mov eax, dword [rsi + rax]
add rax, rsi
jmp 0x18000c1ea
add rbx, 1
cmp r13d, ebx
ja 0x18000c1a8
mov eax, 0
jmp 0x18000c1ea
mov eax, 0
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret