joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b0bf0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1400f2080]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x1400b0c85
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x1400b0ce6
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.14008ffc0
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400c3740
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x1400b0da1
sub ecx, 1
je 0x1400b0e14
sub ecx, 1
je 0x1400b0d50
cmp ecx, 1
je 0x1400b0d33
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1400d4d08]
call fcn.14008ffc0
jmp 0x1400b0e14
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.1400b0920
test eax, eax
je 0x1400b0e14
jmp 0x1400b0cba
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x1400b0e14
sub rax, rsi
cmp rax, rbp
jae 0x1400b0e14
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.140090140
jmp 0x1400b0e14
cmp r8d, 4
jle 0x1400b0e14
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x1400b0e14
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.14008fee0
mov esi, eax
test eax, eax
je 0x1400b0df3
mov edx, 5
mov rcx, rbx
call fcn.1400b18e0
mov eax, esi
jmp 0x1400b0cba
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.14009a390
mov rcx, r14
call fcn.14009a670
test eax, eax
je 0x1400b0cb8
mov edx, 5
mov rcx, rbx
call fcn.1400b18e0
mov eax, Ordinal_45
jmp 0x1400b0cba
Function at 0x1400c3570
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1400c35b2
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400c35f9
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400c3652
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1400c3610
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400c3693
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400d3c52]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400d3c53]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400c3660
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x1400c476c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400c47b6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400c47b6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400c47b6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400c47b6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400c47b6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400c47b8
xor al, al
add rsp, 0x28
ret
Function at 0x140daaf25
Capabilities:
Check for software breakpoints

Disassembly:
lea rsp, [rsp + 0x38]
jbe fcn.140d7d843
jb 0x140da832b
add byte [rax], al
add byte [rax], al
add byte [rdi + 0x51], ah
fiadd dword [rax + 1]
add byte [rax], al
add dl, dh
paddusb mm0, qword [rax + 1]
add byte [rax], al
add byte [0x1421b8a0b], bh
add byte [rax], al
add byte [0x1421b8a77], bl
add byte [rax], al
add byte [rsi], dl
mov dl, 0xd8
add dword [rax], eax
add byte [rax], al
fistp dword [rdx]
fld dword [rax + 1]
add byte [rax], al
add byte [rdi + 0x140d748], ch
add byte [rax], al
add byte [rsi], cl
cmp ebx, eax
add dword [rax], eax
add byte [rax], al
shl byte [rsi], cl
fild dword [rax + 1]
add byte [rax], al
add byte [rcx], dh
xchg esi, eax
xlatb
add dword [rax], eax
add byte [rax], al
or esp, dword [rax + 0x140da]
add byte [rax], al
cmp al, 0xcc
fadd dword [rax + 1]
add byte [rax], al
add byte [rax], al
cmp bl, dl
add dword [rax], eax
add byte [rax], al
xchg edi, eax
stc
fiadd dword [rax + 1]
add byte [rax], al
add byte [rsp + rsi - 0x27], dh
add dword [rax], eax
add byte [rax], al
jl 0x140daafe9
fild dword [rax + 1]
add byte [rax], al
add ch, bl
imul ebx, ecx, 0x140
add byte [rdi - 0x49], cl
fld dword [rax + 1]
add byte [rax], al
add byte [rbx + 0xe], bl
fadd qword [rax + 1]
add byte [rax], al
add bh, dh
push rbx
fild dword [rax + 1]
add byte [rax], al
add byte [rdi + 0x140dac3], cl
add byte [rax], al
add ah, ch
in al, 0xd9
add dword [rax], eax
add byte [rax], al
jmp 0x1421b8a14
sbb eax, 0x140d9
add byte [rax], al
cmp byte [rdi + rdx*8 + 0x40], dh
add dword [rax], eax
add byte [rax], al
mov bl, 0xf2
fild dword [rax + 1]
add byte [rax], al
add byte [rcx - 0x5d], dh
fadd dword [rax + 1]
add byte [rax], al
add byte [rdx - 0x5e], cl
fadd dword [rax + 1]
add byte [rax], al
add byte [rbx], cl
test eax, 0x140da
add byte [rax], al
call 0x1421b8a6e
add byte [rax], al
add bh, cl
fadd dword [rax + 1]
add byte [rax], al
add byte [rbx - 0x2a], dh
fiadd dword [rax + 1]
add byte [rax], al
add byte [rsi], al
in eax, 0xd7
add dword [rax], eax
add byte [rax], al
mov word [0x140dbf115], fs
add byte [rax], al
xor bh, byte [rbx - 0x28]
add dword [rax], eax
add byte [rax], al
mov ebp, 0x140dbb2
add byte [rax], al
add byte [rcx + 1], cl
fiadd dword [rax + 1]
add byte [rax], al
add byte [rcx + 0x140d7f3], al
add byte [rax], al
add byte [rdi], bl
mov cl, 0xdb
add dword [rax], eax
add byte [rax], al
adc eax, 0x140dadf
add byte [rax], al
add byte [rdx - 0xe], al
xlatb
add dword [rax], eax
add byte [rax], al
fst dword [0x140dbf157]
add byte [rax], al
frstor dword [rdx + rbx*8 + 0x140]
add byte [rbp - 0x5e], cl
fld dword [rax + 1]
add byte [rax], al
add byte [rsp + rax*4], al
fiadd dword [rax + 1]
add byte [rax], al
add dl, dl
fild dword [r8 + 1]
add byte [rax], al
add cl, dh
fld dword [rax + 1]
add byte [rax], al
add byte [rbx + 0x40], ah
xlatb
add dword [rax], eax
add byte [rax], al
invalid
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140430c40]
mov dword [rax], 1
mov rax, qword [0x140430c50]
mov dword [rax], 1
mov rax, qword [0x140430c60]
mov dword [rax], 1
mov rax, qword [0x140430be0]
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 0x1403a4290
Capabilities:
Query environment variable

Disassembly:
push r15
mov eax, 0x10088
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.1404073a0
sub rsp, rax
xor edx, edx
mov rbp, rcx
xor ecx, ecx
mov word [rsp + 0x80], dx
lea r15, [rsp + 0x30]
movzx eax, byte [rbp]
mov word [rsp + 0x30], cx
test al, al
je 0x1403a4355
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop dword [rax]
mov rsi, r12
mov r8d, 2
mov rdx, r14
mov rcx, r13
sub rsi, rdi
mov byte [rsp + 0x2a], al
lea rbx, [r15 + rdi*2]
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1404182a8
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x1403a4336
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x1403a4328
test rsi, rsi
je 0x1404182a8
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x1403a42e8
lea rbx, [rsp + 0x80]
mov r8d, 0x10000
mov rcx, r15
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x1403a4384
mov rcx, rbx
call sub.msvcrt.dll__wcsdup
add rsp, 0x10088
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x1403a43a0
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
movzx eax, byte [rcx]
mov qword [rsp + 0xd8], rdx
xor edx, edx
mov rbp, rcx
lea r15, [rsp + 0x30]
mov word [rsp + 0x30], dx
test al, al
je 0x1403a445d
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop dword [rax]
mov rsi, r12
mov r8d, 2
mov rdx, r14
mov rcx, r13
sub rsi, rdi
mov byte [rsp + 0x2a], al
lea rbx, [r15 + rdi*2]
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1404182ae
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x1403a443e
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x1403a4430
test rsi, rsi
je 0x1404182ae
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x1403a43f0
mov rdx, qword [rsp + 0xd8]
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 0x1403bb160
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
mov rbx, qword [0x140460a90]
mov rsi, rcx
test rbx, rbx
je 0x1403bb1e0
mov rax, qword [0x140430d90]
mov rcx, qword [rax + 0x48]
cmp rbx, rcx
je 0x1403bb1d0
mov rdx, qword [0x140460cc8]
test rdx, rdx
je 0x1403bb2d8
mov rcx, rbx
mov rbx, qword [sym.imp.python310.dll_PyNumber_InPlaceAdd]
call rbx
mov rcx, rax
mov rdx, rsi
mov rax, rbx
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp rax
mov rbx, qword [sym.imp.python310.dll_PyNumber_InPlaceAdd]
jmp 0x1403bb1b1
lea r15, str.NUITKA_ONEFILE_BINARY
mov rcx, r15
call fcn.1403a4290
test rax, rax
je 0x1403bb2f8
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python310.dll_PyUnicode_FromWideChar]
xor ecx, ecx
mov r13, r14
lea r12, [r15 + 0x28]
mov word [rsp + 0x40], cx
lea rbp, [rsp + 0x3a]
lea rdi, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov eax, 0x4e
nop
mov rbx, r12
mov r8d, 2
mov rdx, rbp
mov rcx, rdi
sub rbx, r15
mov byte [rsp + 0x3a], al
mov byte [rsp + 0x3b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x140418360
cmp word [r13], 0
movzx edx, word [rsp + 0x3c]
mov rax, r13
je 0x1403bb27e
nop word [rax + rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x1403bb270
test rbx, rbx
je 0x140418360
mov word [rax], dx
add r15, 1
xor edx, edx
add r13, 2
mov word [rax + 2], dx
movzx eax, byte [r15]
test al, al
jne 0x1403bb230
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rax, qword [sym.imp.python310.dll__PyRuntime]
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rax + 0x1f0]
call fcn.1403bb0a0
mov rbx, rax
mov qword [0x140460a90], rbx
jmp 0x1403bb182
lea rcx, [0x14042d3d0]
call qword [sym.imp.python310.dll_PyUnicode_FromString]
mov qword [0x140460cc8], rax
mov rdx, rax
jmp 0x1403bb1a2
mov rbx, qword [0x140460aa8]
test rbx, rbx
jne 0x1403bb2c6
cmp byte [0x140460cc2], 0
je 0x1403bb336
mov rdx, 0xffffffffffffffff
lea rcx, [0x140460ac0]
call qword [sym.imp.python310.dll_PyUnicode_FromWideChar]
mov qword [0x140460aa8], rax
mov rbx, rax
test rax, rax
je 0x1403bb342
add qword [rax], 1
jmp 0x1403bb2c6
mov ecx, 1
call fcn.1403a4eb0
jmp 0x1403bb30d
call qword [sym.imp.python310.dll_PyErr_Print]
call sub.msvcrt.dll_abort
nop
nop
Function at 0x1403bcc80
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rsi, str.NUITKA_ONEFILE_BINARY
mov ebx, ecx
mov rcx, rsi
call fcn.1403a4290
test rax, rax
je 0x1403bcde0
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python310.dll_PyUnicode_FromWideChar]
xor ecx, ecx
mov r15, r14
lea r12, [rsi + 0x28]
mov word [rsp + 0x40], cx
mov r13, rax
lea rbp, [rsp + 0x3a]
mov eax, 0x4e
lea rdi, [rsp + 0x3c]
nop word [rax + rax]
mov rbx, r12
mov r8d, 2
mov rdx, rbp
mov rcx, rdi
sub rbx, rsi
mov byte [rsp + 0x3a], al
mov byte [rsp + 0x3b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x14041837e
cmp word [r15], 0
movzx edx, word [rsp + 0x3c]
mov rax, r15
je 0x1403bcd36
nop dword [rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x1403bcd28
test rbx, rbx
je 0x14041837e
mov word [rax], dx
add rsi, 1
xor edx, edx
add r15, 2
mov word [rax + 2], dx
movzx eax, byte [rsi]
test al, al
jne 0x1403bcce8
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rax, qword [sym.imp.python310.dll__PyRuntime]
mov rdx, qword [0x140461400]
mov rsi, qword [rax + 0x1f0]
mov rax, qword [0x140430d90]
mov rbx, qword [rax + 0x1c0]
test rdx, rdx
je 0x1403bce30
mov r8, rbx
mov rcx, rsi
call fcn.1403a7310
mov r8, r13
mov rcx, rsi
mov rbx, rax
mov rdx, rax
call fcn.1403b8990
sub qword [rbx], 1
jne 0x1403bcdc4
mov rdx, qword [rbx + 8]
mov qword [rsp + 0x28], rax
mov rcx, rbx
call qword [rdx + 0x30]
mov rax, qword [rsp + 0x28]
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [0x140460aa0]
lea rsi, [0x140460aa0]
test bl, bl
je 0x1403bce00
mov rax, qword [0x140460aa8]
lea rsi, [0x140460aa8]
test rax, rax
jne 0x1403bcdc4
cmp byte [0x140460cc2], 0
je 0x1403bce5d
mov rdx, 0xffffffffffffffff
lea rcx, [0x140460ac0]
call qword [sym.imp.python310.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x1403bce67
add qword [rax], 1
jmp 0x1403bcdc4
mov rdx, qword [0x140461378]
mov rdi, qword [rax + 0x1b0]
test rdx, rdx
je 0x1403bce72
mov r8, rdi
mov rcx, rsi
call fcn.1403a7310
mov qword [0x140461400], rax
mov rdx, rax
jmp 0x1403bcd8e
movzx ecx, bl
call fcn.1403a4eb0
jmp 0x1403bce0e
call qword [sym.imp.python310.dll_PyErr_Print]
call sub.msvcrt.dll_abort
lea rcx, [0x140428dde]
call qword [sym.imp.python310.dll_PyImport_ImportModule]
mov qword [0x140461378], rax
mov rdx, rax
test rax, rax
je 0x14041837e
jmp 0x1403bce43
Function at 0x1403fd700
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x140460a89], 0
mov rbp, rcx
mov rdi, rdx
mov r12, r8
je 0x1403fd7a8
lea rdx, [0x14042cb5a]
mov rcx, r12
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1403fd810
mov rbx, qword [0x140460928]
jmp 0x1403fd745
lea rbx, [rdx + rax + 4]
mov rdx, rbx
mov rcx, r12
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 0x1403fd740
movzx eax, word [rdx + 4]
lea r8, [rdx + 6]
test ax, ax
je 0x1403fd797
lea rbx, [rdi + rax*8]
nop word cs:[rax + rax]
mov rdx, rdi
mov rcx, rbp
add rdi, 8
call fcn.1403ecb30
mov r8, rax
cmp rdi, rbx
jne 0x1403fd780
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
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 [0x140460928], rax
mov ebx, dword [rax]
mov qword [0x140460928], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x140460928], rdx
call fcn.1403fc830
cmp eax, ebx
jne 0x1403fd897
mov byte [0x140460a89], 1
jmp 0x1403fd720
cmp byte [0x140460a88], 0
jne 0x1403fd737
mov rbx, qword [sym.imp.python310.dll_PyDict_New]
call rbx
mov qword [0x140461608], rax
call rbx
mov qword [0x140461600], rax
call rbx
mov qword [0x1404615f8], rax
call rbx
mov qword [0x1404615f0], rax
call rbx
mov qword [0x1404615e8], rax
call rbx
mov qword [0x1404615e0], rax
call rbx
mov qword [0x1404615d8], rax
call rbx
mov byte [0x140460a88], 1
mov qword [0x1404615d0], rax
mov rax, qword [sym.imp.python310.dll__PyRuntime]
mov rax, qword [rax + 0x1f0]
mov rax, qword [rax + 0x10]
add rax, 0xda0
mov qword [0x140460920], rax
jmp 0x1403fd737
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140406080
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.140417800
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.140417800
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 0x140406d52
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140461ac8]
test eax, eax
je 0x140406dea
lea rax, [0x140461aa0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140461ad0]
mov qword [rbp - 8], rax
jmp 0x140406dce
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 0x140406dc2
cmp qword [rbp - 0x10], 0
je 0x140406dc2
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 0x140406d88
lea rax, [0x140461aa0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140406deb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140406ef0
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 0x140406f18
mov eax, 0
jmp 0x140406f66
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 0x140406f41
mov eax, 0
jmp 0x140406f66
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 0x140406f61
mov eax, 0
jmp 0x140406f66
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x140406f6c
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 0x140406fea
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140406fe1
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 0x140406fe1
mov rax, qword [rbp - 8]
jmp 0x140406fff
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 0x140406fb4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14002ac30
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x10090
call fcn.14002f520
sub rsp, rax
mov rax, qword [0x14006d380]
xor rax, rsp
mov qword [rsp + 0x10080], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor ebp, ebp
mov rsi, rcx
mov word [rsp + 0x80], bp
mov edi, 0x28
mov word [rsp + 0x30], bp
test al, al
je 0x14002acf2
nop dword [rax]
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], bpl
lea rcx, [rsp + 0x24]
call fcn.14003e4f4
cmp rax, 1
jne 0x14002ad4e
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x14002accf
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x14002acc3
cmp rcx, 1
jb 0x14002ad4e
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], bp
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x14002ac90
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x14002ad23
lea rcx, [rsp + 0x80]
call fcn.140040f70
jmp 0x14002ad25
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.14002f250
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.140032a10
int3