joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140006a60
Capabilities:
Create thread

Disassembly:
mov eax, 0x38
call fcn.140008650
sub rsp, rax
cmp dword [0x140031910], 0
jne 0x140006a7d
xor eax, eax
add rsp, 0x38
ret
mov rcx, qword [0x140031918]
mov edx, 0xffffffff
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x30], rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x140006ab7
mov r8d, 1
lea rdx, str.WaitForSingleObject:_ss_ts_sema
lea rcx, str.ss_ts_sema_inc
call fcn.140002950
call fcn.140006c70
xor edi, edi
nop
mov ecx, dword [0x140031914]
xor ebx, ebx
test ecx, ecx
jle 0x140006ae6
mov rdx, qword [0x140032b80]
lea rax, [rdx + 0x14]
cmp dword [rax], 0
jne 0x140006b38
inc ebx
add rax, 0x28
cmp ebx, ecx
jl 0x140006ad7
xor r8d, r8d
lea rdx, str.Wait_for_free_id_is_suspect_
lea rcx, str.ss_ts_free_id
call fcn.140002950
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x1e
jl 0x140006ac0
mov r8d, 1
lea rdx, str.Wait_for_free_id_failed_
lea rcx, str.ss_ts_free_id
call fcn.140002950
mov rbx, qword [rsp + 0x40]
xor eax, eax
mov rdi, qword [rsp + 0x30]
add rsp, 0x38
ret
movsxd rax, ebx
lea rcx, [rax + rax*4]
lea rdi, [rcx*8]
mov dword [rdi + rdx + 0x14], 0
mov rax, qword [0x140032b80]
inc dword [rdi + rax + 0x18]
mov rax, qword [0x140032b80]
cmp qword [rdi + rax], 0
jne 0x140006c2e
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rcx, qword [0x140032b80]
mov qword [rdi + rcx + 8], rax
test rax, rax
jne 0x140006ba4
lea r8d, [rax + 1]
lea rdx, str.CreateEvent:_ss_ts_job_n_.start
lea rcx, str.ss_ts_init
call fcn.140002950
mov r9, qword [0x140032b80]
lea r8, [0x140006f50]
add r9, 0x10
mov qword [rsp + 0x28], 0
add r9, rdi
mov dword [rsp + 0x20], 0
mov edx, 0x80000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, qword [0x140032b80]
mov qword [rdi + rcx], rax
test rax, rax
jne 0x140006bfe
lea r8d, [rax + 1]
lea rdx, str.CreateThread:_ss_ts_job_n_.work
lea rcx, str.ss_ts_init
call fcn.140002950
mov rcx, qword [0x140031928]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x140006c2e
mov r8d, 1
lea rdx, str.WaitForSingleObject:__ss_TS_init
lea rcx, str.ss_ts_init
call fcn.140002950
mov rcx, qword [0x140031920]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
test eax, eax
jne 0x140006c56
lea r8d, [rax + 1]
lea rdx, str.ReleaseMutex:_ss_ts_lock
lea rcx, str.ss_ts_unlock
call fcn.140002950
mov rdi, qword [rsp + 0x30]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x38
ret
Function at 0x140006c70
Capabilities:
Check mutex on windows

Disassembly:
mov eax, 0x28
call fcn.140008650
sub rsp, rax
mov rax, qword [0x140031920]
test rax, rax
jne 0x140006cc0
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [0x140031920], rax
test rax, rax
jne 0x140006cc0
lea r8d, [rax + 1]
lea rdx, str.CreateMutex:_ss_ts_lock
lea rcx, str.ss_ts_lock
call fcn.140002950
mov rax, qword [0x140031920]
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x140006cec
mov r8d, 1
lea rdx, str.WaitForSingleObject:_ss_ts_lock
lea rcx, str.ss_ts_lock
call fcn.140002950
xor eax, eax
add rsp, 0x28
ret

Function at 0x140007170
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x20], r9d
push rdi
mov eax, 0x60
call fcn.140008650
sub rsp, rax
mov rsi, r8
mov rbx, rdx
call fcn.1400070d0
lea rcx, [rsp + 0x50]
xor edi, edi
mov qword [rsp + 0x40], rcx
lea r9, str.REG_DWORD
lea rcx, [rsp + 0x58]
xor r8d, r8d
mov qword [rsp + 0x38], rcx
mov rdx, rbx
mov qword [rsp + 0x30], rdi
mov rcx, rax
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x140007228
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x88]
mov dword [rsp + 0x28], 4
lea r9d, [rdi + 4]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x58]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
setne dil
mov eax, edi
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov rbx, qword [rsp + 0x70]
mov eax, 1
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret

Function at 0x140007240
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x60
call fcn.140008650
sub rsp, rax
mov rsi, r9
mov rbp, r8
mov rbx, rdx
call fcn.1400070d0
lea rcx, [rsp + 0x50]
xor edi, edi
mov qword [rsp + 0x40], rcx
lea r9, str.REG_SZ
lea rcx, [rsp + 0x58]
xor r8d, r8d
mov qword [rsp + 0x38], rcx
mov rdx, rbx
mov qword [rsp + 0x30], rdi
mov rcx, rax
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1400072e9
mov rcx, rsi
call fcn.140005340
mov rcx, qword [rsp + 0x58]
lea r9d, [rdi + 1]
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x58]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
setne dil
mov eax, edi
jmp 0x1400072ee
mov eax, 1
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x140007cd0
Capabilities:
Hash data via bcrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x40
call fcn.140008650
sub rsp, rax
cmp qword [rcx + 0x10], 0
lea rbx, [rcx + 0x10]
mov edi, r8d
mov rsi, rdx
jne 0x140007d37
mov rcx, qword [rcx + 8]
xor eax, eax
mov dword [rsp + 0x30], eax
xor r9d, r9d
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rax
call sub.bcrypt.dll_BCryptCreateHash
test eax, eax
je 0x140007d37
mov r8d, 1
lea rdx, str.ss_hash_data
lea rcx, [0x140023dc0]
call fcn.140002950
mov rcx, qword [rbx]
xor r9d, r9d
mov r8d, edi
mov rdx, rsi
call sub.bcrypt.dll_BCryptHashData
test eax, eax
je 0x140007d65
mov r8d, 1
lea rdx, str.ss_hash_data
lea rcx, [0x140023de8]
call fcn.140002950
mov rbx, qword [rsp + 0x50]
xor eax, eax
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x140008430
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
xor r8d, r8d
movsxd rbx, edx
mov rdi, rcx
test edx, edx
jle 0x1400084b0
mov r10d, r8d
nop word [rax + rax]
movzx r9d, byte [r10 + rdi]
mov r11d, 4
nop dword [rax + rax]
movzx eax, r8b
shr r8d, 1
xor al, r9b
mov edx, r8d
xor edx, 0x88118811
shr r9b, 1
test al, 1
cmove edx, r8d
movzx ecx, dl
shr edx, 1
xor cl, r9b
mov eax, edx
xor eax, 0x88118811
shr r9b, 1
test cl, 1
cmove eax, edx
mov r8d, eax
sub r11, 1
jne 0x140008460
inc r10
cmp r10, rbx
jl 0x140008450
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret
mov rbx, qword [rsp + 8]
mov eax, r8d
mov rdi, qword [rsp + 0x10]
ret

Function at 0x1400084c0
Capabilities:
Check mutex on windows

Disassembly:
mov eax, 0x78
call fcn.140008650
sub rsp, rax
mov rax, qword [0x140030d00]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rax, qword [0x1400319b8]
test rax, rax
jne 0x14000853f
call fcn.1400074f0
mov r9d, eax
lea r8, str._8.8x_ss_lock
mov edx, 0x40
lea rcx, [rsp + 0x20]
call fcn.140002c00
lea r8, [rsp + 0x20]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [0x1400319b8], rax
test rax, rax
jne 0x14000853f
lea r8d, [rax + 1]
lea rdx, str.CreateMutex
lea rcx, str.ss_lock
call fcn.140002950
mov rax, qword [0x1400319b8]
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x14000856b
mov r8d, 1
lea rdx, [0x140022a48]
lea rcx, str.ss_lock
call fcn.140002950
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400086b0
add rsp, 0x78
ret

Function at 0x14000923c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140009286
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140009286
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140009286
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140009286
cmp dword [rcx + 0x84], 0xe
jbe 0x140009286
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140009288
xor al, al
add rsp, 0x28
ret
Function at 0x140012ccc
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 0x140012b37
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140012b37
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140012b37
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140012b37
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140012b37
cmp dword [rcx + 0x84], 0xe
jbe 0x140012b37
cmp dword [rcx + 0xf8], 0
je 0x140012b37
mov ecx, ebx
call fcn.140012be8
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.1400129c4
nop
cmp dword [rbp + 0x20], 0
je 0x140012b85
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140012b90
int3
xor r8d, r8d
xor edx, edx
jmp 0x140012ac8
Function at 0x140019308
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 0x140019338
xor eax, eax
jmp 0x1400193fb
mov rbp, rbx
cmp word [rax], si
je 0x14001935d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140019344
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140019340
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.140017954
movsxd r14, eax
test eax, eax
jne 0x14001939b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140019331
mov rcx, r14
call fcn.14001562c
mov rdi, rax
test rax, rax
jne 0x1400193b4
xor ecx, ecx
call fcn.1400149b4
jmp 0x140019390
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.140017954
test eax, eax
jne 0x1400193e5
mov rcx, rdi
call fcn.1400149b4
jmp 0x1400193ef
xor ecx, ecx
call fcn.1400149b4
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 0x14001d510
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001d526
mov al, 1
jmp 0x14001d586
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001d537
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001d584
mov ecx, dword [rcx + 0x18]
nop
call fcn.140019b0c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001d584
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001d584
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001d584
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001d586
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14001e860
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.140018468
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001e8ea
cmp byte [rbp - 0x21], r15b
je 0x14001e8e5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14001e920
call fcn.140014c04
test eax, eax
jne 0x14001e90c
cmp byte [rbp - 0x21], r15b
je 0x14001e904
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14001e920
cmp byte [rbp - 0x21], r15b
je 0x14001e91d
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.140017a48
test eax, eax
jne 0x14001e9c0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140018468
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001e95f
cmp byte [rbp - 0x21], r15b
je 0x14001e994
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14001e994
call fcn.140014c04
test eax, eax
jne 0x14001e980
cmp byte [rbp - 0x21], r15b
je 0x14001e979
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14001e994
cmp byte [rbp - 0x21], r15b
je 0x14001e991
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.140017a48
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14001e9c0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001e9c3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14001e9d1
mov rcx, rdi
call fcn.1400149b4
cmp byte [rbp + 0x3f], r15b
je 0x14001e9e0
mov rcx, qword [rbp + 0x27]
call fcn.1400149b4
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 0x140020d80
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140020da8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140020da8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140061210]
mov dword [rax], 1
mov rax, qword [0x140061220]
mov dword [rax], 1
mov rax, qword [0x140061230]
mov dword [rax], 1
mov rax, qword [0x1400611c0]
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 0x14003ba40
Capabilities:
Query environment variable

Disassembly:
push r14
mov eax, 0x10080
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.1400449c0
sub rsp, rax
xor eax, eax
xor edx, edx
lea rdi, str.PYTHON_FROZEN_MODULES
mov ebp, 0x50
lea r13, [rdi + 0x28]
mov word [rsp + 0x30], dx
lea r14, [rsp + 0x30]
lea r12, [rsp + 0x2e]
mov word [rsp + 0x80], ax
mov rsi, r14
nop dword [rax]
mov rax, r13
mov rbx, rsi
sub rax, rdi
cmp word [rsi], 0
je 0x14003baae
nop word [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x14003baa0
test rax, rax
je 0x14005589a
mov rcx, rbx
add rdi, 1
add rsi, 2
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, r12
mov byte [rsp + 0x2e], bpl
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x2f], 0
call sub.msvcrt.dll_mbstowcs
movzx ebp, byte [rdi]
test bpl, bpl
jne 0x14003ba88
lea rbx, [rsp + 0x80]
mov r8d, 0x10000
mov rcx, r14
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x14003bb1a
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 0x1400436a0
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.140054e20
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.140054e20
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 0x140044372
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14006b828]
test eax, eax
je 0x14004440a
lea rax, [0x14006b800]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14006b830]
mov qword [rbp - 8], rax
jmp 0x1400443ee
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 0x1400443e2
cmp qword [rbp - 0x10], 0
je 0x1400443e2
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 0x1400443a8
lea rax, [0x14006b800]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14004440b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140044510
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 0x140044538
mov eax, 0
jmp 0x140044586
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 0x140044561
mov eax, 0
jmp 0x140044586
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 0x140044581
mov eax, 0
jmp 0x140044586
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14004458c
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 0x14004460a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140044601
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 0x140044601
mov rax, qword [rbp - 8]
jmp 0x14004461f
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 0x1400445d4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x141097058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1410971df
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 0x141097089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14109706f
add dl, dl
jne 0x141097096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1410970f6
xor eax, eax
add dl, dl
jne 0x1410970a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1410971ad
add dl, dl
jne 0x1410970b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410970c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410970d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410970dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1410970ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14109707e
mov eax, 1
add dl, dl
jne 0x141097106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141097113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1410970fb
sub eax, ebx
mov ebx, 1
jne 0x14109714c
mov ecx, 1
add dl, dl
jne 0x14109712e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14109713b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141097123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14109707e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141097168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141097175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14109715d
cmp eax, 0x7d00
jae 0x14109719b
cmp eax, 0x500
jb 0x141097196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14109707e
cmp eax, 0x7f
ja 0x14109719e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14109707e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1410971d2
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 0x14109707e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20