joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bc280
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push rbp
mov rbp, rsp
mov rcx, qword [rsp + 0x10]
mov rax, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
movups xmm0, xmmword [rax]
movups xmmword [rbx], xmm0
add rbx, 0x10
pxor xmm4, xmm4
cmp ecx, 0xc
je 0x4bc354
jb 0x4bc3b3
movups xmm2, xmmword [rax + 0x10]
movups xmmword [rbx], xmm2
add rbx, 0x10
aeskeygenassist xmm1, xmm2, 1
call fcn.004bc160
aeskeygenassist xmm1, xmm0, 1
call fcn.004bc180
aeskeygenassist xmm1, xmm2, 2
call fcn.004bc160
aeskeygenassist xmm1, xmm0, 2
call fcn.004bc180
aeskeygenassist xmm1, xmm2, 4
call fcn.004bc160
aeskeygenassist xmm1, xmm0, 4
call fcn.004bc180
aeskeygenassist xmm1, xmm2, 8
call fcn.004bc160
aeskeygenassist xmm1, xmm0, 8
call fcn.004bc180
aeskeygenassist xmm1, xmm2, 0x10
call fcn.004bc160
aeskeygenassist xmm1, xmm0, 0x10
call fcn.004bc180
aeskeygenassist xmm1, xmm2, 0x20
call fcn.004bc160
aeskeygenassist xmm1, xmm0, 0x20
call fcn.004bc180
aeskeygenassist xmm1, xmm2, 0x40
call fcn.004bc160
jmp 0x4bc421
movq xmm2, qword [rax + 0x10]
aeskeygenassist xmm1, xmm2, 1
call fcn.004bc0c0
aeskeygenassist xmm1, xmm2, 2
call fcn.004bc120
aeskeygenassist xmm1, xmm2, 4
call fcn.004bc0c0
aeskeygenassist xmm1, xmm2, 8
call fcn.004bc120
aeskeygenassist xmm1, xmm2, 0x10
call fcn.004bc0c0
aeskeygenassist xmm1, xmm2, 0x20
call fcn.004bc120
aeskeygenassist xmm1, xmm2, 0x40
call fcn.004bc0c0
aeskeygenassist xmm1, xmm2, 0x80
call fcn.004bc120
jmp 0x4bc421
aeskeygenassist xmm1, xmm0, 1
call fcn.004bc080
aeskeygenassist xmm1, xmm0, 2
call fcn.004bc080
aeskeygenassist xmm1, xmm0, 4
call fcn.004bc080
aeskeygenassist xmm1, xmm0, 8
call fcn.004bc080
aeskeygenassist xmm1, xmm0, 0x10
call fcn.004bc080
aeskeygenassist xmm1, xmm0, 0x20
call fcn.004bc080
aeskeygenassist xmm1, xmm0, 0x40
call fcn.004bc080
aeskeygenassist xmm1, xmm0, 0x80
call fcn.004bc080
aeskeygenassist xmm1, xmm0, 0x1b
call fcn.004bc080
aeskeygenassist xmm1, xmm0, 0x36
call fcn.004bc080
sub rbx, 0x10
movups xmm1, xmmword [rbx]
movups xmmword [rdx], xmm1
dec rcx
movups xmm1, xmmword [rbx - 0x10]
aesimc xmm0, xmm1
movups xmmword [rdx + 0x10], xmm0
sub rbx, 0x10
add rdx, 0x10
dec rcx
jne 0x4bc42e
movups xmm0, xmmword [rbx - 0x10]
movups xmmword [rdx + 0x10], xmm0
pop rbp
ret

Function at 0x4bca20
Capabilities:
Execute syscall

Disassembly:
xor rax, rax
mov ax, word [rsp + 8]
push rcx
mov rcx, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x18]
mov rdi, qword gs:[0x30]
mov dword [rdi + 0x68], 0
sub rsp, 0x80
cmp ecx, 4
jle 0x4bca60
cmp ecx, 0x10
jle 0x4bca56
int 3
mov rdi, rsp
cld
rep movsq qword [rdi], qword [rsi]
mov rsi, rsp
sub rsp, 8
mov rcx, qword [rsi]
mov rdx, qword [rsi + 8]
mov r8, qword [rsi + 0x10]
mov r9, qword [rsi + 0x18]
movq xmm0, rcx
movq xmm1, rdx
movq xmm2, r8
movq xmm3, r9
mov r10, rcx
syscall
add rsp, 0x88
pop rcx
mov dword [rsp + 0x28], eax
ret
Function at 0x4c97e0
Capabilities:
Access peb ldr_data

Disassembly:
lea r12, [rsp - 0x20]
cmp r12, qword [r14 + 0x10]
jbe 0x4c9a79
push rbp
mov rbp, rsp
sub rsp, 0x98
mov qword [rsp + 0xb0], rbx
mov qword [rsp + 0xa8], rax
nop
lea rax, [0x004ec3c0]
call fcn.0040ce80
mov qword [rsp + 0x70], rax
mov qword [rax + 8], 9
lea rcx, [0x004f9a0d]
mov qword [rax], rcx
mov byte [rax + 0x10], 1
nop
lea rax, [0x004ec3c0]
call fcn.0040ce80
mov qword [rsp + 0x68], rax
mov qword [rax + 8], 8
lea rcx, [0x004f9765]
mov qword [rax], rcx
mov byte [rax + 0x10], 1
nop
lea rax, [0x004ec300]
call fcn.0040ce80
cmp dword [0x0061e610], 0
jne 0x4c9877
mov rcx, qword [rsp + 0x70]
jmp 0x4c9884
call fcn.0046d2a0
mov rcx, qword [rsp + 0x70]
mov qword [r11], rcx
mov qword [rsp + 0x60], rax
mov qword [rax + 0x18], rcx
mov qword [rax + 8], 0xd
lea rcx, [0x004fa8a1]
mov qword [rax], rcx
nop
lea rax, [0x004ec300]
call fcn.0040ce80
cmp dword [0x0061e610], 0
jne 0x4c98c0
mov rcx, qword [rsp + 0x68]
jmp 0x4c98cd
call fcn.0046d2a0
mov rcx, qword [rsp + 0x68]
mov qword [r11], rcx
mov qword [rsp + 0x58], rax
mov qword [rax + 0x18], rcx
mov qword [rax + 8], 0xc
lea rcx, [0x004fa3f1]
mov qword [rax], rcx
mov qword [rsp + 0x40], 0
mov rcx, qword [rsp + 0xb0]
mov qword [rsp + 0x48], rcx
lea rax, [0x004d8900]
call fcn.0040ce80
mov rcx, qword [rsp + 0xb0]
mov qword [rax + 8], rcx
mov qword [rax + 0x10], 0x3000
mov qword [rax + 0x18], 0x40
mov rbx, rax
mov edi, 4
mov rax, qword [rsp + 0x58]
mov rcx, rdi
call fcn.004c6d60
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0xb0]
test rcx, rcx
jbe 0x4c9a6e
mov rcx, qword [rsp + 0xa8]
mov qword [rsp + 0x90], rcx
lea rax, [0x004d88a0]
call fcn.0040ce80
mov rcx, qword [rsp + 0x50]
mov qword [rax], rcx
mov rcx, qword [rsp + 0x90]
mov qword [rax + 8], rcx
mov rcx, qword [rsp + 0xb0]
mov qword [rax + 0x10], rcx
mov rbx, rax
mov ecx, 3
mov rdi, rcx
mov rax, qword [rsp + 0x60]
nop dword [rax]
call fcn.004c6d60
movzx ecx, word [0x0061e36a]
mov word [rsp + 0x3e], cx
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x88], rdx
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x80], rdx
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x78], rdx
lea rax, [0x004d8960]
nop dword [rax]
call fcn.0040ce80
mov qword [rax], 0xffffffffffffffff
mov rcx, qword [rsp + 0x88]
mov qword [rax + 8], rcx
mov rcx, qword [rsp + 0x80]
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], 0x20
mov rcx, qword [rsp + 0x78]
mov qword [rax + 0x20], rcx
movzx ecx, word [rsp + 0x3e]
mov word [rsp], cx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], 5
mov qword [rsp + 0x18], 5
call fcn.004bca20
xorps xmm15, xmm15
mov r14, qword [0x0061e5a8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x50]
xor ebx, ebx
mov rcx, rbx
mov rdi, rcx
mov rsi, rcx
nop dword [rax]
call fcn.00468f20
add rsp, 0x98
pop rbp
ret
xor eax, eax
mov rcx, rax
call fcn.0046d660
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
call fcn.0046b380
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
nop dword [rax]
jmp fcn.004c97e0
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400bc0c0]
mov dword [rax], 1
mov rax, qword [0x1400bc0d0]
mov dword [rax], 1
mov rax, qword [0x1400bc0e0]
mov dword [rax], 1
mov rax, qword [0x1400bc040]
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 0x1400343c0
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.1400975c0
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 0x140034485
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 0x1400a84d8
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x140034466
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x140034458
test rsi, rsi
je 0x1400a84d8
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x140034418
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 0x1400344b4
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 0x1400344d0
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 0x14003458d
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 0x1400a84de
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x14003456e
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x140034560
test rsi, rsi
je 0x1400a84de
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x140034520
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 0x14004b290
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 [0x1400cd4d0]
mov rsi, rcx
test rbx, rbx
je 0x14004b310
mov rax, qword [0x1400bc200]
mov rcx, qword [rax + 0x48]
cmp rbx, rcx
je 0x14004b300
mov rdx, qword [0x1400cd708]
test rdx, rdx
je 0x14004b408
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 0x14004b2e1
lea r15, str.NUITKA_ONEFILE_BINARY
mov rcx, r15
call fcn.1400343c0
test rax, rax
je 0x14004b428
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 0x1400a8590
cmp word [r13], 0
movzx edx, word [rsp + 0x3c]
mov rax, r13
je 0x14004b3ae
nop word [rax + rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x14004b3a0
test rbx, rbx
je 0x1400a8590
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 0x14004b360
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.14004b1d0
mov rbx, rax
mov qword [0x1400cd4d0], rbx
jmp 0x14004b2b2
lea rcx, [0x1400b8810]
call qword [sym.imp.python310.dll_PyUnicode_FromString]
mov qword [0x1400cd708], rax
mov rdx, rax
jmp 0x14004b2d2
mov rbx, qword [0x1400cd4e8]
test rbx, rbx
jne 0x14004b3f6
cmp byte [0x1400cd702], 0
je 0x14004b466
mov rdx, 0xffffffffffffffff
lea rcx, [0x1400cd500]
call qword [sym.imp.python310.dll_PyUnicode_FromWideChar]
mov qword [0x1400cd4e8], rax
mov rbx, rax
test rax, rax
je 0x14004b472
add qword [rax], 1
jmp 0x14004b3f6
mov ecx, 1
call fcn.140034fe0
jmp 0x14004b43d
call qword [sym.imp.python310.dll_PyErr_Print]
call sub.msvcrt.dll_abort
nop
nop
Function at 0x14004cdb0
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.1400343c0
test rax, rax
je 0x14004cf10
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 0x1400a85ae
cmp word [r15], 0
movzx edx, word [rsp + 0x3c]
mov rax, r15
je 0x14004ce66
nop dword [rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x14004ce58
test rbx, rbx
je 0x1400a85ae
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 0x14004ce18
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rax, qword [sym.imp.python310.dll__PyRuntime]
mov rdx, qword [0x1400cde40]
mov rsi, qword [rax + 0x1f0]
mov rax, qword [0x1400bc200]
mov rbx, qword [rax + 0x1c0]
test rdx, rdx
je 0x14004cf60
mov r8, rbx
mov rcx, rsi
call fcn.140037440
mov r8, r13
mov rcx, rsi
mov rbx, rax
mov rdx, rax
call fcn.140048ac0
sub qword [rbx], 1
jne 0x14004cef4
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 [0x1400cd4e0]
lea rsi, [0x1400cd4e0]
test bl, bl
je 0x14004cf30
mov rax, qword [0x1400cd4e8]
lea rsi, [0x1400cd4e8]
test rax, rax
jne 0x14004cef4
cmp byte [0x1400cd702], 0
je 0x14004cf8d
mov rdx, 0xffffffffffffffff
lea rcx, [0x1400cd500]
call qword [sym.imp.python310.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x14004cf97
add qword [rax], 1
jmp 0x14004cef4
mov rdx, qword [0x1400cddb8]
mov rdi, qword [rax + 0x1b0]
test rdx, rdx
je 0x14004cfa2
mov r8, rdi
mov rcx, rsi
call fcn.140037440
mov qword [0x1400cde40], rax
mov rdx, rax
jmp 0x14004cebe
movzx ecx, bl
call fcn.140034fe0
jmp 0x14004cf3e
call qword [sym.imp.python310.dll_PyErr_Print]
call sub.msvcrt.dll_abort
lea rcx, [0x1400b421e]
call qword [sym.imp.python310.dll_PyImport_ImportModule]
mov qword [0x1400cddb8], rax
mov rdx, rax
test rax, rax
je 0x1400a85ae
jmp 0x14004cf73
Function at 0x14008d830
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1400cd4c9], 0
mov rbp, rcx
mov rdi, rdx
mov r12, r8
je 0x14008d8d8
lea rdx, [0x1400b7f9a]
mov rcx, r12
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x14008d940
mov rbx, qword [0x1400cd368]
jmp 0x14008d875
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 0x14008d870
movzx eax, word [rdx + 4]
lea r8, [rdx + 6]
test ax, ax
je 0x14008d8c7
lea rbx, [rdi + rax*8]
nop word cs:[rax + rax]
mov rdx, rdi
mov rcx, rbp
add rdi, 8
call fcn.14007cc60
mov r8, rax
cmp rdi, rbx
jne 0x14008d8b0
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 [0x1400cd368], rax
mov ebx, dword [rax]
mov qword [0x1400cd368], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x1400cd368], rdx
call fcn.14008c960
cmp eax, ebx
jne 0x14008d9c7
mov byte [0x1400cd4c9], 1
jmp 0x14008d850
cmp byte [0x1400cd4c8], 0
jne 0x14008d867
mov rbx, qword [sym.imp.python310.dll_PyDict_New]
call rbx
mov qword [0x1400ce048], rax
call rbx
mov qword [0x1400ce040], rax
call rbx
mov qword [0x1400ce038], rax
call rbx
mov qword [0x1400ce030], rax
call rbx
mov qword [0x1400ce028], rax
call rbx
mov qword [0x1400ce020], rax
call rbx
mov qword [0x1400ce018], rax
call rbx
mov byte [0x1400cd4c8], 1
mov qword [0x1400ce010], rax
mov rax, qword [sym.imp.python310.dll__PyRuntime]
mov rax, qword [rax + 0x1f0]
mov rax, qword [rax + 0x10]
add rax, 0xda0
mov qword [0x1400cd360], rax
jmp 0x14008d867
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x1400962a0
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.1400a7a30
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.1400a7a30
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 0x140096f72
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400ce508]
test eax, eax
je 0x14009700a
lea rax, [0x1400ce4e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400ce510]
mov qword [rbp - 8], rax
jmp 0x140096fee
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 0x140096fe2
cmp qword [rbp - 0x10], 0
je 0x140096fe2
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 0x140096fa8
lea rax, [0x1400ce4e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14009700b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140097110
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 0x140097138
mov eax, 0
jmp 0x140097186
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 0x140097161
mov eax, 0
jmp 0x140097186
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 0x140097181
mov eax, 0
jmp 0x140097186
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14009718c
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 0x14009720a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140097201
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 0x140097201
mov rax, qword [rbp - 8]
jmp 0x14009721f
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 0x1400971d4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001070
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
push r15
sub rsp, 0x28
mov qword [rsp + 0x60], r13
xor r15d, r15d
mov qword [rsp + 0x20], r14
mov r13d, r9d
mov edi, r8d
mov r14, rdx
mov rbx, rcx
cmp qword [rcx + 8], r15
jne 0x14000109e
mov eax, r15d
jmp 0x1400010a4
mov eax, dword [rcx + 0x10]
sub eax, dword [rcx + 8]
lea ecx, [rax + rdi]
mov qword [rsp + 0x50], rbp
cmp ecx, dword [rbx + 0x18]
jb 0x14000113d
pxor xmm0, xmm0
mov eax, ecx
mov qword [rsp + 0x58], r12
cvtsi2sd xmm0, rax
mulsd xmm0, qword [0x140022d80]
call fcn.14001cd4c
xor ecx, ecx
mov r8d, 0x1000
lea r9d, [rcx + 4]
cvttsd2si rbp, xmm0
shl ebp, 0xa
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdx, qword [rbx + 8]
mov rsi, rax
test rdx, rdx
jne 0x1400010ff
mov ecx, r15d
jmp 0x140001104
mov ecx, dword [rbx + 0x10]
sub ecx, edx
mov r12d, ecx
mov r8d, ecx
mov rcx, rax
call fcn.14000bf60
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140001129
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
lea rax, [r12 + rsi]
mov r12, qword [rsp + 0x58]
mov qword [rbx + 8], rsi
mov qword [rbx + 0x10], rax
mov dword [rbx + 0x18], ebp
mov rcx, qword [rbx + 0x10]
mov r8, rdi
mov rdx, r14
call fcn.14000bf60
mov r14, qword [rsp + 0x20]
test r13d, r13d
mov r13, qword [rsp + 0x60]
je 0x1400011c8
mov r9, qword [rsp + 0x70]
mov r11d, r15d
mov r10, r15
mov rbp, r15
test edi, edi
jle 0x1400011c0
nop dword [rax]
movzx ecx, byte [r10 + r9]
mov r8, qword [rbx + 0x10]
inc r10
mov eax, 0x20f30021
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 0xcccccccd
imul edx, edx, 0x7c5
sub ecx, edx
mul r11d
add cl, 0x36
xor byte [r8 + rbp], cl
shr edx, 3
lea r8d, [rdx + rdx*4]
add r8d, r8d
cmp r11d, r8d
cmove r10, r15
inc r11d
inc rbp
cmp r11d, edi
jl 0x140001170
mov rcx, r9
call fcn.140001000
add qword [rbx + 0x10], rdi
mov rbp, qword [rsp + 0x50]
mov eax, edi
add rsp, 0x28
pop r15
pop rdi
pop rsi
pop rbx
ret

Function at 0x1400013b0
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x1d0
mov rax, qword [0x140028198]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
xor edi, edi
lea rax, vtable.CBuffer.0
mov rbx, rcx
mov qword [rcx + 8], rax
mov dword [rcx + 0x20], edi
mov qword [rcx + 0x10], rdi
mov qword [rcx + 0x18], rdi
mov qword [rcx + 0x28], rax
mov dword [rcx + 0x40], edi
mov qword [rcx + 0x30], rdi
mov qword [rcx + 0x38], rdi
mov qword [rcx + 0x48], rax
mov dword [rcx + 0x60], edi
mov qword [rcx + 0x50], rdi
mov qword [rcx + 0x58], rdi
lea rax, vtable.CTcpSocket.0
lea rdx, [rsp + 0x20]
mov qword [rcx], rax
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea edx, [rdi + 1]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, edi
mov qword [rbx + 0x68], rax
xchg dword [rbx + 0x74], ecx
mov qword [rbx + 0x98], 0xffffffffffffffff
mov dword [rbx + 0x70], edi
mov rax, rbx
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.14000bf30
mov rbx, qword [rsp + 0x1e8]
add rsp, 0x1d0
pop rdi
ret
Function at 0x140001470
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rcx, qword [rcx + 0x98]
lea r9, [rsp + 0x40]
mov edx, 0xffff
mov r8d, 0x80
xor ebx, ebx
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi + 0x98]
call qword [sym.imp.KERNEL32.dll_CancelIo]
xchg dword [rdi + 0x74], ebx
mov rcx, qword [rdi + 0x98]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rdi + 0x68]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rbx, qword [rsp + 0x48]
mov qword [rdi + 0x98], 0xffffffffffffffff
add rsp, 0x30
pop rdi
ret