joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002038
Capabilities:
Parse pe header

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

Function at 0x141b4b058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.141b4b1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x141b4b089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141b4b06f
add dl, dl
jne 0x141b4b096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141b4b0f6
xor eax, eax
add dl, dl
jne 0x141b4b0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141b4b1ad
add dl, dl
jne 0x141b4b0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141b4b0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141b4b0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141b4b0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141b4b0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x141b4b07e
mov eax, 1
add dl, dl
jne 0x141b4b106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141b4b113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141b4b0fb
sub eax, ebx
mov ebx, 1
jne 0x141b4b14c
mov ecx, 1
add dl, dl
jne 0x141b4b12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141b4b13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141b4b123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141b4b07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141b4b168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141b4b175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141b4b15d
cmp eax, 0x7d00
jae 0x141b4b19b
cmp eax, 0x500
jb 0x141b4b196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141b4b07e
cmp eax, 0x7f
ja 0x141b4b19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141b4b07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141b4b1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x141b4b07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400b6240]
mov dword [rax], 1
mov rax, qword [0x1400b6250]
mov dword [rax], 1
mov rax, qword [0x1400b6260]
mov dword [rax], 1
mov rax, qword [0x1400b61c0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400282b0
Capabilities:
Query environment variable

Disassembly:
push r14
mov eax, 0x10080
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.140092b70
sub rsp, rax
xor eax, eax
xor edx, edx
xor esi, esi
mov r14d, 0x28
movzx edi, byte [rcx]
mov word [rsp + 0x80], ax
mov r12, rcx
lea rbp, [rsp + 0x30]
lea r13, [rsp + 0x2e]
mov word [rsp + 0x30], dx
test dil, dil
je 0x140028359
nop dword [rax]
mov rax, r14
lea rbx, [rbp + rsi*2]
sub rax, rsi
cmp word [rbp + rsi*2], 0
je 0x14002831e
nop dword [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x140028310
test rax, rax
je 0x1400a3a90
mov rcx, rbx
add rsi, 1
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, r13
mov byte [rsp + 0x2e], dil
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x2f], 0
call sub.msvcrt.dll_mbstowcs
movzx edi, byte [r12 + rsi]
test dil, dil
jne 0x1400282f8
lea rbx, [rsp + 0x80]
mov r8d, 0x10000
mov rcx, rbp
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x140028388
mov rcx, rbx
call sub.msvcrt.dll__wcsdup
add rsp, 0x10080
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret

Function at 0x1400283a0
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
xor eax, eax
xor esi, esi
mov r13d, 0x28
movzx edi, byte [rcx]
mov word [rsp + 0x30], ax
mov rbp, rcx
mov r14, rdx
lea r15, [rsp + 0x30]
lea r12, [rsp + 0x2e]
test dil, dil
je 0x140028441
nop word [rax + rax]
mov rax, r13
lea rbx, [r15 + rsi*2]
sub rax, rsi
cmp word [r15 + rsi*2], 0
je 0x140028406
nop word [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x1400283f8
test rax, rax
je 0x1400a3a96
mov rcx, rbx
add rsi, 1
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, r12
mov byte [rsp + 0x2e], dil
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x2f], 0
call sub.msvcrt.dll_mbstowcs
movzx edi, byte [rbp + rsi]
test dil, dil
jne 0x1400283e0
mov rdx, r14
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400885a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1400c7649], 0
mov rbp, rcx
mov r12, rdx
mov rdi, r8
je 0x140088628
lea rdx, [0x1400b2112]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140088690
mov rbx, qword [0x1400c7500]
jmp 0x1400885e5
lea rbx, [rdx + rax + 4]
mov rdx, rbx
mov rcx, rdi
call sub.msvcrt.dll_strcmp
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_strlen
lea rdx, [rbx + rax + 1]
mov eax, dword [rdx]
test esi, esi
jne 0x1400885e0
movzx r9d, word [rdx + 4]
lea r8, [rdx + 6]
mov rcx, rbp
mov rdx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.140076bc0
mov r8d, 0xa
xor ecx, ecx
mov edx, 3
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
lea rdx, [rax + 4]
mov qword [0x1400c7500], rax
mov ebx, dword [rax]
mov qword [0x1400c7500], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x1400c7500], rdx
call fcn.1400876d0
cmp eax, ebx
jne 0x1400886f8
mov byte [0x1400c7649], 1
jmp 0x1400885bc
cmp byte [0x1400c7648], 0
jne 0x1400885d3
mov rbx, qword [sym.imp.python311.dll_PyDict_New]
call rbx
mov qword [0x1400c7fa8], rax
call rbx
mov qword [0x1400c7fa0], rax
call rbx
mov qword [0x1400c7f98], rax
call rbx
mov qword [0x1400c7f90], rax
call rbx
mov qword [0x1400c7f88], rax
call rbx
mov qword [0x1400c7f80], rax
call rbx
mov qword [0x1400c7f78], rax
call rbx
mov byte [0x1400c7648], 1
mov qword [0x1400c7f70], rax
jmp 0x1400885d3
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x140091850
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.1400a2fe0
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.1400a2fe0
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
Function at 0x140092522
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400c8468]
test eax, eax
je 0x1400925ba
lea rax, [0x1400c8440]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400c8470]
mov qword [rbp - 8], rax
jmp 0x14009259e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140092592
cmp qword [rbp - 0x10], 0
je 0x140092592
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140092558
lea rax, [0x1400c8440]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400925bb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400926c0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400926e8
mov eax, 0
jmp 0x140092736
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140092711
mov eax, 0
jmp 0x140092736
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140092731
mov eax, 0
jmp 0x140092736
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14009273c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x1400927ba
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400927b1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x1400927b1
mov rax, qword [rbp - 8]
jmp 0x1400927cf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140092784
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14001305c
Capabilities:
Create thread

Disassembly:
mov rax, rsp
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rax - 0x57]
sub rsp, 0xd0
mov qword [rbp - 0x61], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x14009a008]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r13, rcx
mov rax, qword [rbp + 0x7f]
mov ecx, 1
mov dword [r13 + 0x440], ecx
mov dword [rax], ecx
mov rcx, qword [r13 + 0x458]
mov ebx, 3
test rcx, rcx
je 0x14001311e
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x220]
mov rcx, qword [r13 + 0x458]
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x188]
mov rcx, qword [r13 + 0x458]
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x158]
mov word [rbp - 0x41], bx
mov dword [rbp - 0x39], 0xe
mov word [rbp - 0x59], bx
mov dword [rbp - 0x51], ebx
mov rcx, qword [r13 + 0x458]
mov rax, qword [rcx]
lea rdx, [rbp - 0x59]
call qword [rax + 0x68]
nop
lea rcx, [rbp - 0x59]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
nop
lea rcx, [rbp - 0x41]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rdi, rax
lea rdx, [rbp + 0x17]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowRect]
mov ebx, 0x20
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov r15d, eax
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov esi, eax
lea ecx, [rbx - 0x1e]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov r14d, eax
lea ecx, [rbx - 0x1d]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, eax
mov dword [rbp - 0x29], 0x3c
lea rdx, [rbp - 0x29]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowInfo]
mov ecx, dword [r13 + 0x480]
mov edx, dword [r13 + 0x47c]
mov r9d, dword [rbp - 9]
sub r9d, ecx
sub r9d, ebx
sub r9d, esi
mov r8d, dword [rbp - 0xd]
sub r8d, edx
sub r8d, r14d
sub r8d, r15d
mov dword [rsp + 0x30], 0x40
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], edx
or rdx, 0xffffffffffffffff
mov rcx, qword [r13 + 8]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rcx, qword [r13 + 8]
call qword [sym.imp.USER32.dll_UpdateWindow]
cmp qword [r13 + 0x488], 0
jne 0x1400131db
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov r9, r13
lea r8, [0x140012f28]
xor edx, edx
xor ecx, ecx
call fcn.14005078c
mov qword [r13 + 0x488], rax
xor eax, eax
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140041c20
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
Function at 0x14002805c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x680
mov rax, qword [0x14009a008]
xor rax, rsp
mov qword [rsp + 0x670], rax
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x638
call fcn.1400463f0
lea rcx, [rsp + 0x30]
call fcn.14000d828
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov r15, rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rcx, [0x14009d3d8]
mov dword [rsp + 0x48], eax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rdx, qword [0x14009d400]
lea rax, [rsp + 0x40]
lea rcx, [0x14009d3d8]
mov qword [rsp + 0x50], rdx
mov qword [0x14009d400], rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
and dword [rsp + 0x74], 0
mov rbp, qword [0x14009b520]
mov byte [rsp + 0x70], 1
call fcn.140039814
or r14, 0xffffffffffffffff
mov rcx, rbp
lea ebx, [r14 + 0x6b]
mov edx, ebx
lea r8d, [r14 + 6]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x1400281e9
mov r8d, 0xf0
mov edx, ebx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140028158
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rdi
mov rcx, rbp
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400281d5
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
je 0x1400281d5
mov rcx, rax
call fcn.1400399f8
and qword [rsp + 0x20], rbx
lea r9, [0x1400306dc]
mov r8, r15
mov rdx, rax
mov rcx, rbp
mov rdi, rax
call qword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
mov r14, rax
lea rcx, [rax + 1]
cmp rcx, 1
ja 0x1400281b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp rdi, rsi
je 0x1400281dd
test rdi, rdi
je 0x1400281dd
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalHandle]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x1400281dd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
je 0x1400281e9
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [rsp + 0x74]
test ecx, ecx
jns 0x1400281fd
cmp r14, 0xffffffffffffffff
jne 0x1400281fd
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsp + 0x30]
call fcn.14000e168
mov rcx, qword [rsp + 0x670]
xor rcx, rsp
call fcn.140041c20
lea r11, [rsp + 0x680]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140029cb4
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x14009a008]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x14009d430]
mov ebx, 1
mov rax, qword [0x14009d438]
jmp 0x140029d65
test ebx, ebx
js 0x140029e83
mov rsi, qword [rdi]
test rsi, rsi
je 0x140029d61
and qword [rsp + 0x30], 0
mov r9, qword [rsi + 0x10]
test r9, r9
jne 0x140029d0a
xor ebx, ebx
jmp 0x140029d61
mov rcx, qword [rsi + 0x18]
lea r8, [rsp + 0x30]
lea rdx, [0x14007d5e8]
call r9
mov ebx, eax
test eax, eax
js 0x140029d4a
mov rax, qword [rsi + 0x20]
mov r9d, 5
mov rdx, qword [rsp + 0x30]
add rax, 8
mov rcx, qword [rsi]
mov qword [rsp + 0x20], rax
lea r8d, [r9 - 1]
call qword [sym.imp.ole32.dll_CoRegisterClassObject]
mov ebx, eax
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140029d5a
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rax, qword [0x14009d438]
add rdi, 8
cmp rdi, rax
jb 0x140029ce7
test ebx, ebx
js 0x140029e83
jne 0x140029e7c
cmp byte [0x14009d080], 0
je 0x140029e29
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x14009d070], rax
test rax, rax
je 0x140029e22
lea rax, [rsp + 0x30]
xor edx, edx
mov qword [rsp + 0x28], rax
lea r9, [0x14009d020]
and dword [rsp + 0x20], 0
lea r8, [0x14002f3ec]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
jne 0x140029de8
mov rcx, qword [0x14009d070]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [0x14009d070], rdi
test rdi, rdi
je 0x140029e22
call qword [sym.imp.ole32.dll_CoResumeClassObjects]
mov ebx, eax
test eax, eax
jns 0x140029e17
mov rcx, qword [0x14009d070]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [0x14009d078]
mov rcx, rdi
add edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140029e31
mov ebx, 0x80004005
jmp 0x140029e35
call qword [sym.imp.ole32.dll_CoResumeClassObjects]
mov ebx, eax
test ebx, ebx
jns 0x140029e83
mov rdi, qword [0x14009d430]
xor eax, eax
mov rcx, qword [0x14009d438]
jmp 0x140029e75
test eax, eax
jne 0x140029e83
mov rdx, qword [rdi]
test rdx, rdx
je 0x140029e71
mov rax, qword [rdx + 0x20]
mov edx, dword [rax + 8]
test edx, edx
jne 0x140029e62
xor eax, eax
jmp 0x140029e71
mov ecx, edx
call qword [sym.imp.ole32.dll_CoRevokeClassObject]
mov rcx, qword [0x14009d438]
add rdi, 8
cmp rdi, rcx
jb 0x140029e47
jmp 0x140029e83
mov byte [0x14009d080], 0
mov eax, ebx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140041c20
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x14002cbac
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov qword [rbp - 0x19], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14009a008]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r14d, edx
mov rdi, rcx
or ebx, 0xffffffff
xor esi, esi
cmp edx, ebx
jne 0x14002cbf9
cmovne esi, edx
mov eax, esi
jmp 0x14002cdc2
mov rax, qword [rcx + 0x40]
cmp qword [rax], rsi
je 0x14002cc33
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
mov rcx, r8
add rcx, qword [rax]
cmp qword [rax], rcx
jae 0x14002cc33
lea ecx, [r8 - 1]
mov dword [rdx], ecx
mov rdx, qword [rdi + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], r14b
mov eax, r14d
jmp 0x14002cdc2
cmp qword [rdi + 0x80], rsi
je 0x14002cdc0
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14002cc6d
mov rdx, qword [rdi + 0x90]
mov rcx, qword [rdi + 0x88]
mov qword [r8], rcx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
cmp qword [rdi + 0x68], rsi
jne 0x14002cc8e
movsx ecx, r14b
mov rdx, qword [rdi + 0x80]
call fcn.140050378
cmp eax, ebx
cmovne ebx, r14d
jmp 0x14002cdc0
mov byte [rbp - 1], r14b
mov qword [rbp + 0x1f], 0xf
mov qword [rbp + 0x17], rsi
mov byte [rbp + 7], sil
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rbp + 7]
call fcn.14000cf50
nop
lea rdx, [rbp + 7]
cmp qword [rbp + 0x1f], 0x10
cmovae rdx, qword [rbp + 7]
lea r8, [rbp + 7]
cmovae r8, qword [rbp + 7]
mov rcx, qword [rdi + 0x68]
mov r10, qword [rcx]
add rdx, qword [rbp + 0x17]
lea rax, [rbp - 0x11]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], r8
lea rax, [rbp - 9]
mov qword [rsp + 0x20], rax
lea r9, [rbp]
lea r8, [rbp - 1]
lea rdx, [rdi + 0x74]
call qword [r10 + 0x38]
test eax, eax
js 0x14002cda3
cmp eax, 1
jg 0x14002cd88
lea rax, [rbp + 7]
mov r10, qword [rbp + 7]
mov r9, qword [rbp + 0x1f]
cmp r9, 0x10
cmovae rax, r10
mov r15, qword [rbp - 0x11]
sub r15, rax
je 0x14002cd50
lea rcx, [rbp + 7]
cmp r9, 0x10
cmovae rcx, r10
mov r9, qword [rdi + 0x80]
mov r8, r15
mov edx, 1
call fcn.1400520b4
cmp r15, rax
jne 0x14002cda3
mov byte [rdi + 0x71], 1
lea rax, [rbp - 1]
cmp qword [rbp - 9], rax
jne 0x14002cd83
test r15, r15
jne 0x14002ccb3
cmp qword [rbp + 0x17], 0x20
jae 0x14002cda3
xor r8d, r8d
lea edx, [r15 + 8]
lea rcx, [rbp + 7]
call fcn.140009d18
jmp 0x14002ccb3
mov ebx, r14d
jmp 0x14002cda3
cmp eax, 3
jne 0x14002cda3
movsx ecx, byte [rbp - 1]
mov rdx, qword [rdi + 0x80]
call fcn.140050378
cmp eax, ebx
cmovne ebx, r14d
mov r9, qword [rbp + 0x1f]
cmp r9, 0x10
jb 0x14002cdc0
lea rdx, [r9 + 1]
mov r8d, 1
mov rcx, qword [rbp + 7]
call fcn.1400068e4
mov eax, ebx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140041c20
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x14002eb88
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x14009a008]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rcx
xor ebx, ebx
cmp qword [rcx + 0x68], rbx
je 0x14002ecd2
cmp byte [rcx + 0x71], bl
je 0x14002ecd2
or edx, 0xffffffff
call fcn.14002cbac
cmp eax, 0xffffffff
jne 0x14002ebe0
xor al, al
jmp 0x14002ecd4
mov qword [rbp - 0x18], 0xf
mov qword [rbp - 0x20], rbx
mov byte [rbp - 0x30], bl
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rbp - 0x30]
call fcn.14000cf50
nop
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rdx, qword [rbp - 0x30]
lea r8, [rbp - 0x30]
cmovae r8, qword [rbp - 0x30]
mov rcx, qword [rdi + 0x68]
mov r10, qword [rcx]
mov r9, qword [rbp - 0x20]
add r9, rdx
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
lea rdx, [rdi + 0x74]
call qword [r10 + 0x40]
mov ecx, eax
test eax, eax
je 0x14002ec43
sub ecx, 1
jne 0x14002ecaa
jmp 0x14002ec46
mov byte [rdi + 0x71], bl
lea rax, [rbp - 0x30]
mov r10, qword [rbp - 0x30]
mov r9, qword [rbp - 0x18]
cmp r9, 0x10
cmovae rax, r10
mov rsi, qword [rbp - 0x38]
sub rsi, rax
je 0x14002ec88
lea rcx, [rbp - 0x30]
cmp r9, 0x10
cmovae rcx, r10
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
call fcn.1400520b4
cmp rsi, rax
jne 0x14002ecb1
cmp byte [rdi + 0x71], bl
je 0x14002ecaf
test rsi, rsi
jne 0x14002ec00
xor r8d, r8d
lea edx, [rsi + 8]
lea rcx, [rbp - 0x30]
call fcn.140009d18
jmp 0x14002ec00
cmp ecx, 2
jne 0x14002ecb1
mov bl, 1
mov r9, qword [rbp - 0x18]
cmp r9, 0x10
jb 0x14002ecce
lea rdx, [r9 + 1]
mov r8d, 1
mov rcx, qword [rbp - 0x30]
call fcn.1400068e4
mov al, bl
jmp 0x14002ecd4
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140041c20
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret