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

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14001b010]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14001b020]
mov dword [rax], 1
mov rax, qword [0x14001b030]
mov dword [rax], 1
mov rax, qword [0x14001b000]
mov dword [rax], 1
mov rax, qword [0x14001aea0]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x14001aff0]
mov dword [0x14001e020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010c0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x14001afb0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14001af90]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14001ae30]
cmp dword [rax], 1
je 0x140001108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001120
cmp dx, 0x20b
jne 0x140001067
cmp dword [rax + 0x84], 0xe
jbe 0x140001067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x140001067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x140001067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x140001067

Function at 0x1400019a0
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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x1400022c0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
mov r8, rdx
lea rdx, [rax + rcx]
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x14000230c
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov ecx, dword [rax + 0xc]
mov rdx, rcx
cmp rcx, r8
ja 0x140002303
add edx, dword [rax + 8]
cmp rdx, r8
ja 0x14000230e
add rax, 0x28
cmp rax, r9
jne 0x1400022f0
xor eax, eax
ret

Function at 0x140002310
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x1400023a0
mov rdx, qword [0x14001aea0]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x14000238e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000238e
cmp word [rax + 0x18], 0x20b
jne 0x14000238e
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x1400023a0
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x140002379
add r12, 0x28
cmp r12, rsi
je 0x1400023a0
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x140002370
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

Function at 0x1400023b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14001aea0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400023d0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400023d8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400023d0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140002425
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 0x14000241c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400023d0
add rax, 0x28
cmp rax, r9
jne 0x140002408
xor eax, eax
ret

Function at 0x140002430
Capabilities:
Parse pe header

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

Function at 0x140002470
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14001aea0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002490
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002498
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002490
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x1400024d8
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400024cf
test rcx, rcx
je 0x140002490
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1400024c0
xor eax, eax
ret
Function at 0x1400024e0
Capabilities:
Parse pe header

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

Function at 0x140002520
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x14001aea0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002540
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140002548
mov eax, r8d
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002540
sub rcx, rax
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x140002540
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002584
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002598
add rax, 0x28
cmp r9, rax
jne 0x140002570
xor r8d, r8d
mov eax, r8d
ret
mov r8d, dword [rax + 0x24]
not r8d
shr r8d, 0x1f
mov eax, r8d
ret

Function at 0x1400025b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x14001aea0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400025d2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400025e0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400025d2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400025d2
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x1400025d2
sub r8d, 1
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop dword [rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x14000262d
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002640
add rdx, 0x28
cmp r10, rdx
jne 0x140002618
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x14000264f
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x14000265f
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002636
test ecx, ecx
jg 0x140002648
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret

Function at 0x140003cd0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x14001af20]
mov rax, qword [rsi]
test rax, rax
je 0x140003d60
cmp qword [rax + 0x30], 0
jne 0x140003d80
lea rbx, [0x140019078]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x140003d30
cmp qword [rax + 0x30], 0
jne 0x140003d50
lea rdx, [0x140019078]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je sym.pthread_tls_init.cold
add rsp, 0x28
pop rbx
pop rsi
ret
call sym.__shmem3_winpthreads_tdm_init_local_region
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140003d12
test rax, rax
jne 0x140003d50
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x140003d20
call sym.__shmem3_winpthreads_tdm_init_local_region
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140003cf0
test rax, rax
jne 0x140003d80
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x140003cfb
Function at 0x140007950
Capabilities:
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x14001af20]
mov rax, qword [rbx]
mov r12, rcx
mov esi, edx
test rax, rax
je 0x140007a20
cmp qword [rax + 0x60], 0
jne 0x140007a40
lea rcx, [0x140019068]
mov qword [rax + 0x60], rcx
call sym.pthread_mutex_lock
mov rcx, r12
call sym.__pthread_get_pointer
test rax, rax
je 0x140007a50
cmp qword [rax + 0x1d8], r12
jne 0x140007a50
test byte [rax + 0x40], 0xc
jne 0x140007a50
mov edx, dword [rax + 0xbc]
test edx, edx
jne 0x140007a50
mov rax, qword [rax + 0x28]
sub rax, 1
cmp rax, 0xfffffffffffffffd
ja 0x140007a50
mov rax, qword [rbx]
test rax, rax
je 0x140007ab0
cmp qword [rax + 0x60], 0
jne 0x140007ad0
lea rcx, [0x140019068]
mov qword [rax + 0x60], rcx
call sym.pthread_mutex_unlock
test esi, esi
je 0x140007ae0
lea edx, [rsi - 2]
cmp edx, 0x15
ja 0x140007ae8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
jmp sym.pthread_cancel
call sym.__shmem3_winpthreads_tdm_init_local_region
cmp qword [rax + 0x60], 0
mov rax, qword [rbx]
je 0x14000797b
test rax, rax
jne 0x140007a40
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rcx, qword [rax + 0x60]
jmp 0x140007986
mov rax, qword [rbx]
test rax, rax
je 0x140007a80
cmp qword [rax + 0x60], 0
jne 0x140007aa0
lea rcx, [0x140019068]
mov qword [rax + 0x60], rcx
call sym.pthread_mutex_unlock
mov eax, 3
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
call sym.__shmem3_winpthreads_tdm_init_local_region
mov r8, rax
mov rax, qword [rbx]
cmp qword [r8 + 0x60], 0
je 0x140007a5f
test rax, rax
jne 0x140007aa0
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rcx, qword [rax + 0x60]
jmp 0x140007a6a
call sym.__shmem3_winpthreads_tdm_init_local_region
cmp qword [rax + 0x60], 0
mov rax, qword [rbx]
je 0x1400079ea
test rax, rax
jne 0x140007ad0
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rcx, qword [rax + 0x60]
jmp 0x1400079f5
xor eax, eax
jmp 0x140007a74
mov eax, 0x16
jmp 0x140007a74
Function at 0x140005078
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call 0x14009b000
add rsp, 0x28
jmp 0x140005078
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push r14
sub rsp, 0xb0
and dword [rsp + 0x20], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor edi, edi
xor eax, eax
lock cmpxchg qword [0x14000a5f8], rbx
je 0x1400050c2
cmp rax, rbx
jne 0x1400050d7
mov edi, 1
mov eax, dword [0x14000a600]
cmp eax, 1
jne 0x1400050e4
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x140005151
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400050ab
mov eax, dword [0x14000a600]
test eax, eax
jne 0x140005147
mov dword [0x14000a600], 1
lea r14, [0x1400063e0]
lea rbx, [0x1400063c8]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x24], eax
cmp rbx, r14
jae 0x140005139
test eax, eax
jne 0x14000513d
cmp qword [rbx], 0
je 0x14000512e
mov rax, qword [rbx]
mov rcx, qword [0x1400063a8]
call rcx
mov dword [rsp + 0x24], eax
add rbx, 8
mov qword [rsp + 0x30], rbx
jmp 0x14000510f
test eax, eax
je 0x140005151
mov eax, 0xff
jmp 0x1400052a4
mov dword [0x140009fc4], 1
mov eax, dword [0x14000a600]
cmp eax, 1
jne 0x140005179
lea rdx, [0x1400063c0]
lea rcx, [0x1400063b0]
call sub.msvcrt.dll__initterm
mov dword [0x14000a600], 2
test edi, edi
jne 0x140005186
xor eax, eax
xchg qword [0x14000a5f8], rax
cmp qword [0x14000a608], 0
je 0x1400051ba
lea rcx, [0x14000a608]
call fcn.1400055a0
test eax, eax
je 0x1400051ba
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14000a608]
mov r9, qword [0x1400063a8]
call r9
mov rax, qword [sym.imp.msvcrt.dll__acmdln]
mov rbx, qword [rax]
mov qword [rsp + 0x28], rbx
mov edi, dword [rsp + 0x20]
movzx ecx, byte [rbx]
cmp cl, 0x20
ja 0x140005246
test cl, cl
je 0x1400051dd
test edi, edi
jne 0x140005246
dec cl
cmp cl, 0x1f
ja 0x1400051f0
inc rbx
mov qword [rsp + 0x28], rbx
mov cl, byte [rbx]
jmp 0x1400051dd
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rbx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140004c84
mov dword [0x140009fc0], eax
cmp dword [0x140009fe0], 0
jne 0x14000522f
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140009fc4], 0
jne 0x140005244
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140009fc0]
jmp 0x1400052a4
cmp cl, 0x22
jne 0x140005258
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.msvcrt.dll__ismbblead]
test eax, eax
je 0x14000526a
inc rbx
mov qword [rsp + 0x28], rbx
inc rbx
mov qword [rsp + 0x28], rbx
jmp 0x1400051cd
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop r14
ret
Function at 0x10007510
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xa0
mov dword [rsp + 0x20], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor edi, edi
xor eax, eax
lock cmpxchg qword [0x10015150], rbx
je 0x10007566
cmp rax, rbx
jne 0x10007559
mov edi, 1
jmp 0x10007566
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10007540
mov eax, dword [0x10015148]
cmp eax, 1
jne 0x1000757b
lea ecx, [rax + 0x1e]
call fcn.10166000
jmp 0x100075ba
mov eax, dword [0x10015148]
test eax, eax
jne 0x100075b0
mov dword [0x10015148], 1
lea rdx, [0x100014d0]
lea rcx, [0x100014b8]
call sub.MSVCR80.dll__initterm_e
test eax, eax
je 0x100075ba
mov eax, 0xff
jmp 0x10007714
mov dword [0x10014314], 1
mov eax, dword [0x10015148]
cmp eax, 1
jne 0x100075e2
lea rdx, [0x100014b0]
lea rcx, [0x10001470]
call sub.MSVCR80.dll__initterm
mov dword [0x10015148], 2
test edi, edi
jne 0x100075ef
xor eax, eax
xchg qword [0x10015150], rax
cmp qword [0x10015168], 0
je 0x10007618
lea rcx, [0x10015168]
call fcn.10007b90
test eax, eax
je 0x10007618
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x10015168]
mov rax, qword [sym.imp.MSVCR80.dll__acmdln]
mov rbx, qword [rax]
mov qword [rsp + 0x28], rbx
mov edi, dword [rsp + 0x20]
nop
nop
movzx ecx, byte [rbx]
cmp cl, 0x20
ja 0x100076aa
test cl, cl
je 0x10007640
test edi, edi
jne 0x100076aa
movzx eax, byte [rbx]
test al, al
je 0x10007656
cmp al, 0x20
ja 0x10007656
add rbx, 1
mov qword [rsp + 0x28], rbx
jmp 0x10007640
test byte [rsp + 0x6c], 1
je 0x10007665
movzx r9d, word [rsp + 0x70]
jmp 0x1000766b
mov r9d, 0xa
mov r8, rbx
xor edx, edx
lea rcx, [0x10000000]
call fcn.10005300
mov dword [0x10014310], eax
cmp dword [0x100142f4], 0
jne 0x10007693
mov ecx, eax
call qword [sym.imp.MSVCR80.dll_exit]
cmp dword [0x10014314], 0
jne 0x100076a8
call qword [sym.imp.MSVCR80.dll__cexit]
mov eax, dword [0x10014310]
jmp 0x1000770d
cmp cl, 0x22
jne 0x100076bc
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [rsp + 0x20], eax
movzx ecx, cl
call qword [sym.imp.MSVCR80.dll__ismbblead]
test eax, eax
je 0x100076d2
add rbx, 1
mov qword [rsp + 0x28], rbx
add rbx, 1
mov qword [rsp + 0x28], rbx
jmp 0x10007630
jmp 0x10007714
mov rbx, qword [rsp + 0xb0]
add rsp, 0xa0
pop rdi
ret
sub rsp, 0x28
call fcn.10007c10
add rsp, 0x28
jmp 0x10007510
Function at 0x140001ef0
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x160
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbx, rcx
mov r8d, edx
xor edx, edx
mov ecx, 0x43a
call qword [sym.imp.KERNEL32.dll_OpenProcess]
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x104
mov rdi, rax
call sub.VCRUNTIME140.dll_memset
mov r8, rbx
lea rcx, [rsp + 0x40]
mov edx, 0x104
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
xor edx, edx
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov r8d, 0x104
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r9d, 0x104
mov qword [rsp + 0x20], 0
mov rdx, rax
lea r8, [rsp + 0x40]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r9, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor r8d, r8d
mov qword [rsp + 0x30], 0
xor edx, edx
mov dword [rsp + 0x28], 0
mov rcx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rcx, rax
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r9d, 4
mov r8d, 0x3000
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140002610
mov rbx, qword [rsp + 0x180]
add rsp, 0x160
pop rdi
ret

Function at 0x140002f98
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002fe2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002fe2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002fe2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002fe2
cmp dword [rcx + 0x84], 0xe
jbe 0x140002fe2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002fe4
xor al, al
add rsp, 0x28
ret
Function at 0x2fc7cc680
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc7cd082
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc7ee108]
test eax, eax
je 0x2fc7cd11a
lea rax, [0x2fc7ee0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc7ee110]
mov qword [rbp - 8], rax
jmp 0x2fc7cd0fe
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 0x2fc7cd0f2
cmp qword [rbp - 0x10], 0
je 0x2fc7cd0f2
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 0x2fc7cd0b8
lea rax, [0x2fc7ee0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc7cd11b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc7cd220
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 0x2fc7cd248
mov eax, 0
jmp 0x2fc7cd296
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 0x2fc7cd271
mov eax, 0
jmp 0x2fc7cd296
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 0x2fc7cd291
mov eax, 0
jmp 0x2fc7cd296
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc7cd29c
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 0x2fc7cd31a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc7cd311
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 0x2fc7cd311
mov rax, qword [rbp - 8]
jmp 0x2fc7cd32f
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 0x2fc7cd2e4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140005078
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x80
cmp qword [rdx + 8], 0xffffffffffffffff
mov r14, r8
mov rbx, rdx
mov esi, ecx
je 0x1400051c8
cmp qword [rdx], 0xffffffffffffffff
je 0x1400051c8
mov rdx, qword [rdx + 0x10]
xor r8d, r8d
call fcn.1400160ec
test rax, rax
js 0x1400051c8
mov rcx, qword [rbx + 8]
inc rcx
call fcn.14000f2b4
mov rdi, rax
test rax, rax
je 0x1400051c8
mov r8d, dword [rbx + 8]
mov rdx, rax
mov ecx, esi
call fcn.1400197b4
movsxd rcx, eax
mov rax, qword [rbx + 8]
cmp rcx, rax
jne 0x1400051c0
cmp dword [rbx + 0x18], 0
jne 0x140005115
mov byte [rax + rdi], 0
test r14, r14
je 0x14000510d
mov eax, dword [rbx + 8]
mov dword [r14], eax
mov rax, rdi
jmp 0x1400051ca
cmp dword [rbx + 0x18], 8
jne 0x1400051c0
and qword [rsp + 0x50], 0
lea r8, str.1.2.11
and qword [rsp + 0x58], 0
lea rcx, [rsp + 0x20]
and qword [rsp + 0x60], 0
mov r9d, 0x58
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], eax
lea edx, [r9 - 0x67]
call fcn.140009454
test eax, eax
js 0x1400051c0
mov rcx, qword [rbx]
inc rcx
call fcn.14000f2b4
mov rsi, rax
test rax, rax
je 0x1400051c0
mov ecx, dword [rbx]
mov edx, 1
mov dword [rsp + 0x38], ecx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x30], rax
invalid
out dx, al
sub eax, dword [rax]
Function at 0x1401cad70
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10088
call fcn.1401f8260
sub rsp, rax
mov rax, qword [0x14023b488]
xor rax, rsp
mov qword [rsp + 0x10070], rax
xor eax, eax
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x70], ax
mov word [rsp + 0x20], ax
lea r8d, [rax + 0x28]
call fcn.1401f2fa0
mov r8d, 0x10000
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x1401caded
lea rcx, [rsp + 0x70]
call fcn.140203618
mov rcx, qword [rsp + 0x10070]
xor rcx, rsp
call fcn.1401f82c0
add rsp, 0x10088
ret
xor eax, eax
mov rcx, qword [rsp + 0x10070]
xor rcx, rsp
call fcn.1401f82c0
add rsp, 0x10088
ret

Function at 0x1401caea0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14023b488]
xor rax, rsp
mov qword [rsp + 0x70], rax
lea rcx, [0x140212f08]
call fcn.1401cad70
xor edi, edi
mov qword [0x1402493f0], rax
lea rdx, [0x140212f08]
mov word [rsp + 0x20], di
lea rcx, [rsp + 0x20]
lea r8d, [rdi + 0x28]
call fcn.1401f2fa0
lea rdx, [0x140212f10]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea rcx, str.PYTHONHOME
call fcn.1401cad70
mov cl, 1
mov qword [0x1402493f8], rax
call fcn.1401f40e0
lea r8d, [rdi + 0x28]
mov word [rsp + 0x20], di
lea rdx, str.PYTHONHOME
mov rbx, rax
lea rcx, [rsp + 0x20]
call fcn.1401f2fa0
mov rdx, rbx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov cl, 1
call fcn.1401f40e0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1401f82c0
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret