joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006d730
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
test dx, dx
mov eax, 2
mov edi, 0x17
cmove edi, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
mov ecx, edi
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call sub.WS2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x14006d77e
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x14006d7ee
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2726
je 0x14006d791
cmp eax, 0x2739
jne 0x14006d7db
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, edi
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call sub.WS2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x14006d7d6
mov rdi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call sub.KERNEL32.dll_SetHandleInformation
test eax, eax
je 0x14006d7f5
mov qword [rsi + 8], rdi
jmp 0x14006d775
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0x38
pop rdi
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rcx, rdi
add rsp, 0x38
pop rdi
pop rsi
jmp sub.WS2_32.dll_closesocket

Function at 0x14006d980
Capabilities:
Send data
Send data on socket

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
mov rcx, rdx
mov rdx, rax
xor r9d, r9d
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
je 0x14006d9b9
cdqe
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14006d9cf
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0x20
pop rsi
ret

Function at 0x14006d9e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
mov rcx, rdx
mov rdx, rax
xor r9d, r9d
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
je 0x14006da13
cdqe
jmp 0x14006da21
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x14006da29
xor eax, eax
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14006da3a
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0x20
pop rsi
ret
Function at 0x14006e260
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rdi, r8
mov rbx, rdx
mov r14, rcx
movzx eax, byte [0x1400951f8]
mov ecx, 0x10
mov edx, 8
call fcn.140006dd0
test rax, rax
je 0x14006e32b
mov rsi, rax
mov qword [rax], rbx
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x14006e380]
xor edi, edi
xor ecx, ecx
mov rdx, r14
mov r9, rax
call sub.KERNEL32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x14006e31e
mov rdi, qword [rsi]
mov rbx, qword [rsi + 8]
mov rcx, rdi
call qword [rbx]
cmp qword [rbx + 8], 0
je 0x14006e2f9
cmp qword [rbx + 0x10], 0x11
jb 0x14006e2e8
mov rdi, qword [rdi - 8]
mov rcx, qword [0x140095150]
xor edx, edx
mov r8, rdi
call fcn.1400798d4
mov rcx, qword [0x140095150]
xor edx, edx
mov r8, rsi
call fcn.1400798d4
call sub.KERNEL32.dll_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov ecx, 8
mov edx, 0x10
call fcn.1400072b0
ud2

Function at 0x14006e460
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
sub rsp, 0x80
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
mov edx, 0x10
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x14006e496
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
add rsp, 0x80
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x40], rax
lea rax, [fcn.140069670]
mov qword [rsp + 0x48], rax
lea rax, str.fallback_RNG_broken:
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 1
mov qword [rsp + 0x70], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rsp + 0x50]
call fcn.1400352b0
ud2
Function at 0x140073ae0
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x30
mov ecx, dword [0x14007c0d0]
test ecx, ecx
je 0x140073bd9
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x140073b10
cmp qword [rax + 8], 0
je 0x140073b10
add rax, 0x10
jmp 0x140073bd3
mov ecx, dword [0x14007c0d0]
test ecx, ecx
je 0x140073bec
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x140073bb3
mov rsi, rax
test rax, rax
jne 0x140073b83
movzx eax, byte [0x1400951f8]
mov ecx, 0x20
mov edx, 8
call fcn.140006dd0
test rax, rax
je 0x140073c12
mov rsi, rax
lea rax, [0x14007c0b8]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x14007c0d0]
test ecx, ecx
je 0x140073bff
dec ecx
mov rdx, rsi
call fcn.14007981c
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x140073bb7
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x140073bbf
xor eax, eax
jmp 0x140073bd3
call fcn.14006e460
mov rcx, rax
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], rcx
mov qword [rsi + 0x18], rdx
add rsp, 0x30
pop rsi
ret
lea rcx, [0x14007c0b8]
call fcn.14004a300
mov ecx, eax
jmp 0x140073af5
lea rcx, [0x14007c0b8]
call fcn.14004a300
mov ecx, eax
jmp 0x140073b20
lea rcx, [0x14007c0b8]
call fcn.14004a300
mov ecx, eax
jmp 0x140073b7b
mov ecx, 8
mov edx, 0x20
call fcn.1400072b0
ud2
Function at 0x140074aae
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov rax, rcx
add qword [rcx + 0x30], r8
mov r11, qword [rcx + 0x40]
test r11, r11
je 0x140074ae4
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 3
jbe 0x140074aec
mov esi, dword [rdx]
mov r9d, 4
jmp 0x140074af1
xor r10d, r10d
jmp 0x140074b9f
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x140074b14
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x140074b2b
movzx edi, byte [rdx + r9]
shl r9d, 3
mov ecx, r9d
shl rdi, cl
or rsi, rdi
lea ecx, [r11*8]
shl rsi, cl
or rsi, qword [rax + 0x38]
mov qword [rax + 0x38], rsi
cmp r10, r8
jbe 0x140074b4b
add r11, r8
jmp 0x140074c6f
mov r11, qword [rax + 0x18]
mov r9, qword [rax + 0x10]
mov rcx, qword [rax]
add rcx, r9
rol r9, 0xd
xor r11, rsi
xor r9, rcx
rol rcx, 0x20
mov rdi, qword [rax + 8]
add rdi, r11
rol r11, 0x10
xor r11, rdi
add rcx, r11
rol r11, 0x15
xor r11, rcx
add rdi, r9
rol r9, 0x11
mov qword [rax + 0x18], r11
xor r9, rdi
rol rdi, 0x20
mov qword [rax + 0x10], r9
mov qword [rax + 8], rdi
xor rcx, rsi
mov qword [rax], rcx
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x140074c13
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
add rcx, rsi
rol rsi, 0xd
mov rbx, qword [rdx + r10]
xor rsi, rcx
rol rcx, 0x20
xor rdi, rbx
add r9, rdi
rol rdi, 0x10
xor rdi, r9
add rcx, rdi
rol rdi, 0x15
add r9, rsi
rol rsi, 0x11
xor rsi, r9
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x140074bc1
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 3
jbe 0x140074c25
mov r9d, dword [rdx + r10]
mov r8d, 4
jmp 0x140074c2b
xor r9d, r9d
xor r8d, r8d
mov rcx, r8
or rcx, 1
cmp rcx, r11
jae 0x140074c51
lea rcx, [r8 + r10]
movzx esi, word [rdx + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8, r11
jae 0x140074c6b
add r10, r8
movzx edx, byte [rdx + r10]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r9, rdx
mov qword [rax + 0x38], r9
mov qword [rax + 0x40], r11
pop rbx
pop rdi
pop rsi
ret
Function at 0x140076799
Capabilities:
Create pipe

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rdi, r9
mov rbx, r8
mov ebp, edx
mov rsi, rcx
lea r8, [rsp + 0x30]
mov dword [r8], 0x18
xor eax, eax
mov qword [r8 + 8], rax
mov dword [r8 + 0x10], 1
lea rcx, [rsp + 0x20]
mov qword [rcx], rax
lea rdx, [rsp + 0x28]
mov qword [rdx], rax
xor r9d, r9d
call sub.KERNEL32.dll_CreatePipe
test eax, eax
je 0x140076832
mov rax, qword [rsp + 0x20]
mov r15, qword [rsp + 0x28]
test bpl, bpl
mov r14, rax
cmovne r14, r15
cmovne r15, rax
mov rcx, r14
xor edx, edx
call fcn.140078562
test rax, rax
je 0x140076854
mov qword [rsi + 8], 0
mov qword [rsi + 0x10], rax
mov qword [rsi], 1
mov rcx, r15
call sub.KERNEL32.dll_CloseHandle
mov rcx, r14
call sub.KERNEL32.dll_CloseHandle
jmp 0x140076890
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], 0
mov qword [rsi + 0x10], rax
mov qword [rsi], 1
jmp 0x140076890
cmp qword [rbx], 0
je 0x140076863
mov rcx, qword [rbx + 8]
call sub.KERNEL32.dll_CloseHandle
mov qword [rbx], 1
mov qword [rbx + 8], r14
mov rcx, r15
call fcn.1400763a0
mov rbx, rax
mov rcx, qword [rdi]
test rcx, rcx
je 0x140076886
call fcn.140074a39
mov qword [rdi], rbx
mov qword [rsi], 0
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140078162
Capabilities:
Create process on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x140
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov rax, qword [rsp + 0x1c0]
mov rdx, qword [rsp + 0x1b0]
xorps xmm0, xmm0
movaps xmmword [rsp + 0xb0], xmm0
movaps xmmword [rsp + 0xe0], xmm0
movaps xmmword [rsp + 0xf0], xmm0
movaps xmmword [rsp + 0xd0], xmm0
movaps xmmword [rsp + 0xc0], xmm0
mov dword [rsp + 0xb0], 0x68
test rdx, rdx
je 0x1400781cc
mov rdx, qword [rsp + 0x1b8]
mov rcx, qword [rsp + 0x1d0]
mov qword [rsp + 0x100], rdx
test rax, rax
je 0x1400781e9
mov rax, qword [rsp + 0x1c8]
mov qword [rsp + 0x108], rax
test rcx, rcx
je 0x1400781fe
mov rcx, qword [rsp + 0x1d8]
mov r14, qword [rsp + 0x1a0]
mov qword [rsp + 0x110], rcx
mov dword [rsp + 0xec], 0x100
movaps xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], 0
mov rax, qword [rsp + 0x190]
add rax, r9
lea rdx, [rsp + 0x120]
mov qword [rdx], r9
mov qword [rdx + 8], rax
mov word [rdx + 0x10], 0
mov dword [rdx + 0x18], 1
lea rcx, [rsp + 0x80]
call fcn.140074d31
test rbx, rbx
je 0x14007828b
add rdi, rbx
lea rdx, [rsp + 0x120]
mov qword [rdx], rbx
mov qword [rdx + 8], rdi
mov word [rdx + 0x10], 0
mov dword [rdx + 0x18], 1
lea rcx, [rsp + 0x68]
call fcn.140074d31
jmp 0x140078294
mov qword [rsp + 0x68], 0
mov r15, qword [rsp + 0x198]
test r14, r14
je 0x1400782dd
mov rax, qword [rsp + 0x1a8]
add rax, r14
lea rdx, [rsp + 0x120]
mov qword [rdx], r14
mov qword [rdx + 8], rax
mov word [rdx + 0x10], 0
mov dword [rdx + 0x18], 1
lea rdi, [rsp + 0x98]
mov rcx, rdi
call fcn.140074d31
mov r14, qword [rdi]
jmp 0x1400782e0
xor r14d, r14d
mov rbx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x80]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x400
mov dword [rsp + 0x20], 1
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
xor r9d, r9d
call sub.KERNEL32.dll_CreateProcessW
test eax, eax
je 0x140078357
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_CloseHandle
mov rax, qword [rsp + 0x50]
mov ecx, dword [rsp + 0x60]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rcx
mov qword [rsi], 0
jmp 0x14007836f
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
test r14, r14
je 0x140078390
cmp qword [rsp + 0xa0], 0
je 0x140078390
mov rcx, qword [0x140095150]
xor edx, edx
mov r8, r14
call fcn.1400798d4
test rbx, rbx
je 0x1400783ae
cmp qword [rsp + 0x70], 0
je 0x1400783ae
mov rcx, qword [0x140095150]
xor edx, edx
mov r8, rbx
call fcn.1400798d4
cmp qword [rsp + 0x88], 0
je 0x1400783ca
mov rcx, qword [0x140095150]
xor edx, edx
mov r8, rdi
call fcn.1400798d4
nop
add rsp, 0x140
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1400783da
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rdi, rcx
mov ecx, dword [0x14007c0f0]
test ecx, ecx
je 0x140078518
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14007840c
mov rsi, rax
cmp qword [rax + 8], 0
jne 0x140078506
mov ecx, dword [0x14007c0f0]
test ecx, ecx
je 0x14007852b
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14007850c
mov rsi, rax
test rax, rax
jne 0x14007847e
mov al, byte [0x1400951f8]
mov ecx, 0x30
mov edx, 8
call fcn.140006dd0
test rax, rax
je 0x140078551
mov rsi, rax
lea rax, [0x14007c0d8]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x14007c0f0]
test ecx, ecx
je 0x14007853e
dec ecx
mov rdx, rsi
call fcn.14007981c
lea rax, [rsi + 8]
test rdi, rdi
je 0x1400784a3
cmp qword [rdi], 0
mov qword [rdi], 0
je 0x1400784a3
movups xmm0, xmmword [rdi + 8]
movups xmm1, xmmword [rdi + 0x18]
movaps xmmword [rsp + 0x30], xmm1
jmp 0x1400784ab
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
mov rcx, qword [rax + 0x20]
mov qword [rsp + 0x60], rcx
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movaps xmmword [rsp + 0x50], xmm1
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsi + 8], 1
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi + 0x20], xmm1
movups xmmword [rsi + 0x10], xmm0
cmp qword [rsp + 0x40], 0
je 0x140078506
xor edi, edi
mov rcx, qword [rsp + rdi*8 + 0x50]
test rcx, rcx
je 0x1400784fd
call fcn.140074a39
inc rdi
cmp rdi, 3
jne 0x1400784ee
add rsi, 0x10
jmp 0x14007850e
xor esi, esi
mov rax, rsi
add rsp, 0x68
pop rdi
pop rsi
ret
lea rcx, [0x14007c0d8]
call fcn.14004a300
mov ecx, eax
jmp 0x1400783f3
lea rcx, [0x14007c0d8]
call fcn.14004a300
mov ecx, eax
jmp 0x14007841c
lea rcx, [0x14007c0d8]
call fcn.14004a300
mov ecx, eax
jmp 0x140078476
mov ecx, 8
mov edx, 0x30
call fcn.1400072b0
ud2

Function at 0x14007a460
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.14007b200
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.14007b200
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 0x14007a4d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140095284]
mov rbx, rcx
test esi, esi
jle 0x14007a600
mov rax, qword [0x140095288]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14007a51b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14007a5a5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14007a500
mov rcx, rbx
call fcn.14007af20
mov rdi, rax
test rax, rax
je 0x14007a622
mov rax, qword [0x140095288]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14007b060
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140095288]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14007a607
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14007a59e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14007a5b0
add dword [0x140095284], 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 [0x140095288]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14007a59e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14007a460
nop dword [rax]
xor esi, esi
jmp 0x14007a528
mov rax, qword [0x140095288]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14007a460
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14007a460
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14007ab90
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400952e0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400952c0]
test rbx, rbx
je 0x14007abec
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 0x14007abe3
test rsi, rsi
je 0x14007abe3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14007abc8
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 0x14007af20
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x14007afa0
Capabilities:
Parse pe header

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

Function at 0x14007b060
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14008c690]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14007b07f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14007b088
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140953058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1409531df
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 0x140953089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14095306f
add dl, dl
jne 0x140953096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409530f6
xor eax, eax
add dl, dl
jne 0x1409530a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409531ad
add dl, dl
jne 0x1409530b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409530c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409530d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409530dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1409530ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14095307e
mov eax, 1
add dl, dl
jne 0x140953106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140953113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409530fb
sub eax, ebx
mov ebx, 1
jne 0x14095314c
mov ecx, 1
add dl, dl
jne 0x14095312e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14095313b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140953123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14095307e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140953168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140953175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14095315d
cmp eax, 0x7d00
jae 0x14095319b
cmp eax, 0x500
jb 0x140953196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14095307e
cmp eax, 0x7f
ja 0x14095319e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14095307e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1409531d2
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 0x14095307e
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 [0x140079b70]
mov dword [rax], 1
mov rax, qword [0x140079b80]
mov dword [rax], 1
mov rax, qword [0x140079b90]
mov dword [rax], 1
mov rax, qword [0x140079b20]
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 0x140054c80
Capabilities:
Query environment variable

Disassembly:
push r14
mov eax, 0x10080
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14005d010
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 0x140054cee
nop word [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x140054ce0
test rax, rax
je 0x14006df36
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 0x140054cc8
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 0x140054d5a
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