joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140141270
Capabilities:
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x988
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x8f0], xmm10
movdqa xmmword [rbp + 0x8e0], xmm9
movdqa xmmword [rbp + 0x8d0], xmm8
movaps xmmword [rbp + 0x8c0], xmm7
movdqa xmmword [rbp + 0x8b0], xmm6
mov qword [rbp + 0x8a8], 0xfffffffffffffffe
mov r13, rdx
mov qword [rbp + 0x748], rcx
mov rcx, qword [rdx + 0x130]
test rcx, rcx
mov qword [rbp + 0x598], r8
je 0x1401412f3
mov rdx, qword [r8]
call fcn.1401621f0
mov r8, qword [rbp + 0x598]
test al, al
je 0x140143e06
lea rax, [r13 + 0x20]
mov qword [rbp + 0x5a0], rax
lea rax, [r13 + 0x88]
mov qword [rbp + 0x4e0], rax
lea rax, [r13 + 0xe0]
mov qword [rbp + 0x710], rax
lea rax, [r13 + 0xe3]
mov qword [rbp + 0x4f8], rax
lea rbx, [rbp + 0x830]
lea rax, [r13 + 0x28]
mov qword [rbp + 0x718], rax
pxor xmm6, xmm6
movaps xmm7, xmmword [0x14018c5c0]
movdqa xmm8, xmmword [str.uespemosarenegylmodnarodsetybdettttttttttttttttt]
movdqa xmm9, xmmword [0x14018c720]
lea rax, [r13 + 0xc8]
mov qword [rbp + 0x740], rax
lea rax, [r13 + 0xf8]
mov qword [rbp + 0x300], rax
lea rax, [r13 + 0x58]
mov qword [rbp + 0x2f0], rax
lea rax, [r13 + 0x70]
mov qword [rbp + 0x2f8], rax
lea r14, [rbp + 0x760]
mov qword [rbp + 0x878], r13
mov word [rbp + 0x7c8], 1
mov qword [rbp + 0x7b8], 1
lea rax, [0x1401badf0]
mov qword [rbp + 0x7c0], rax
mov dword [rbp + 0x760], 2
movzx eax, byte [0x14023c318]
mov rcx, qword [0x14023c280]
test rcx, rcx
jne 0x140143e5e
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x140144dd2
mov rcx, rax
mov qword [0x14023c280], rax
mov r8d, WSACleanup
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x140144dd2
movups xmm0, xmmword [rbp + 0x7c0]
movups xmmword [rax + 0x60], xmm0
movups xmm0, xmmword [rbp + 0x7b0]
movups xmmword [rax + 0x50], xmm0
movups xmm0, xmmword [rbp + 0x7a0]
movups xmmword [rax + 0x40], xmm0
movups xmm0, xmmword [rbp + 0x760]
movdqu xmm1, xmmword [rbp + 0x770]
movups xmm2, xmmword [rbp + 0x780]
movups xmm3, xmmword [rbp + 0x790]
movups xmmword [rax + 0x30], xmm3
movups xmmword [rax + 0x20], xmm2
movdqu xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
mov rdi, qword [r13 + 0x98]
mov rsi, qword [r13 + 0xa8]
test rsi, rsi
mov qword [rbp + 0x898], rax
je 0x140143f2e
js 0x140144e86
movzx eax, byte [0x14023c318]
mov rcx, qword [0x14023c280]
test rcx, rcx
jne 0x140143f0a
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x140143f1c
mov rcx, rax
mov qword [0x14023c280], rax
xor edx, edx
mov r8, rsi
call sub.KERNEL32.dll_HeapAlloc
mov rbx, rax
test rax, rax
jne 0x140143f33
mov ecx, 1
mov rdx, rsi
call fcn.1401846a0
jmp 0x140144fa6
mov ebx, 1
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
movdqu xmm6, xmmword [r13 + 0xb4]
movups xmm0, xmmword [r13 + 0xc8]
movzx eax, byte [r13 + 0xd8]
mov byte [rbp + 0x770], al
jmp 0x140144531
mov ecx, 8
mov edx, WSACleanup
call fcn.1401846a0
jmp 0x140144fa6
call fcn.140005200
jmp 0x140144fa6
Function at 0x14014c660
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.140017c10
cmp rax, rcx
je 0x14014c685
cmp rdx, 4
jae 0x14014c688
xor eax, eax
xor r8d, r8d
jmp 0x14014c720
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x14018c660]
movdqa xmm3, xmmword [0x14018c670]
pxor xmm1, xmm1
nop dword [rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x14014c6b0
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x14014c737
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x14014c720
ret
Function at 0x14014d610
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r9, qword [rcx]
test r9, r9
je 0x14014d66b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x14014d66b
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x14014d686
cmp eax, 0x42
jne 0x14014d66b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x14014d736
cmp byte [r9 + r11], 0x5f
jne 0x14014d736
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x14014d79e
mov rcx, rsi
xor edx, edx
call fcn.140148e10
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc rcx
mov qword [rsi + 0x10], rcx
mov rcx, rsi
xor edx, edx
call fcn.140148e10
test al, al
jne 0x14014d831
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14014d6c2
lea rdx, [0x1401bd003]
mov r8d, 1
call fcn.140018080
test al, al
jne 0x14014d831
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x14014d67a
xor r14d, r14d
lea rbx, [0x1401bd3b8]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x14014d6f4
cmp byte [rax + rcx], 0x45
je 0x14014d85a
sub r14, 1
jb 0x14014d719
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14014d719
mov r8d, 2
mov rdx, rbx
call fcn.140018080
test al, al
jne 0x14014d831
mov rcx, rsi
call fcn.14014a670
test al, al
jne 0x14014d831
mov rax, qword [rsi]
test rax, rax
jne 0x14014d6e0
jmp 0x14014d67a
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x14014d7f8
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x14014d792
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x14014d77c
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x14014d76b
add dl, 0xa9
jmp 0x14014d77a
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x14014d7f8
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x14014d7f8
movzx edx, bl
add rax, rdx
jae 0x14014d740
jmp 0x14014d7f8
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x14014d7f8
cmp rax, rcx
jae 0x14014d7f5
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x14014d839
cmp qword [rsi + 0x20], 0
je 0x14014d853
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call fcn.14014d610
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x14014d67c
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14014d848
lea rax, str.invalid_syntaxrecursion_limit_reached
lea rdx, [0x1401bd378]
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
add r8, 0x10
call fcn.140018080
test al, al
je 0x14014d848
mov dil, 2
jmp 0x14014d67a
mov dil, 1
xor r8d, r8d
mov rcx, qword [rsi + 0x20]
test rcx, rcx
jne 0x14014d803
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x14014d67a
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x14014d67a
Function at 0x140152f00
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8

Function at 0x140157610
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rax, rdx
movzx r9d, byte [rdx + 0x38]
movzx r8d, byte [rdx + 0x3a]
xor edx, edx
cmp r9b, 1
ja 0x140157677
movzx r11d, byte [rax + 0x10]
test r8b, r8b
jne 0x1401577d8
cmp r11b, 5
jb 0x1401577d8
mov r10, qword [rax]
mov rdx, qword [rax + 8]
xor esi, esi
test r9b, r9b
jne 0x140157667
cmp r11b, 6
je 0x140157667
mov esi, 2
cmp rdx, 2
jb 0x140157886
cmp rsi, rdx
jne case.0x1401565a4.31
xor edx, edx
jmp 0x1401577d8
xor r10d, r10d
lea r8, str.library_std_srcpath.rs
mov ecx, 2
call fcn.140184b70
ud2

Function at 0x140157d40
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4a8
lea rbp, [rsp + 0x80]
lodsb al, byte [rsi]
and al, 0x80
add byte [rax], 0
add byte [rdi], cl
sub dword [rbp + 0x410], esi
mov qword [rbp + 0x3f8], rsi
lea rcx, [rbp - 0x60]
call fcn.140153b30
mov byte [rsi + 0x18], 2
jmp 0x140157fea
adc eax, dword [rcx]
add byte [rax], al

Function at 0x140159b40
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1401bf780]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x140159bac
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x140159bbb
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x140159bf3
cmp eax, 0x103
je 0x140159bfd
test eax, eax
js 0x140159bd8
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x140159bf3
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, [0x1401bf7e8]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140151940
mov rcx, rax
call fcn.140151a80
mov ecx, 7
int 0x29
ud2
Function at 0x14015cb50
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x14023c318]
mov rcx, qword [0x14023c280]
test rcx, rcx
jne 0x14015cb9c
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x14015cc68
mov rcx, rax
mov qword [0x14023c280], rax
mov r8d, reloc.WS2_32.dll_recv
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x14015cc68
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x14015cd00]
xor edi, edi
xor ecx, ecx
mov rdx, rsi
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14015cc5a
mov rcx, qword [rbx]
mov qword [rbp - 0x18], rbx
mov rax, qword [rbx + 8]
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x10], rax
call qword [rax]
mov rax, qword [rbp - 0x10]
cmp qword [rax + 8], 0
mov rsi, qword [rbp - 0x18]
je 0x14015cc34
cmp qword [rax + 0x10], 0x11
jae 0x14015cc1d
mov r8, qword [rbp - 0x20]
jmp 0x14015cc25
mov r8, qword [rbp - 0x20]
mov r8, qword [r8 - 8]
mov rcx, qword [0x14023c280]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x14023c280]
xor edx, edx
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_HeapFree]
call sub.KERNEL32.dll_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp - 0x10], r14
mov qword [rbp - 0x18], rdi
mov ecx, 8
mov edx, reloc.WS2_32.dll_recv
call fcn.1401846a0
ud2

Function at 0x14015ce30
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, reloc.WS2_32.dll_recv
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x14015ce73
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [fcn.140158a70]
mov qword [rbp - 0x28], rax
lea rax, str.fallback_RNG_broken:
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.140184b30
ud2
Function at 0x140165000
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbp
push r15
push r14
push r13
push rbp
push r12
push rsi
push rdi
push rbx
sub rsp, 0xa8
sub esp, 0xa8
add byte [rax], al
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x20], 0xfffffffffffffffe
invalid
invalid
invalid
dec dword [rax - 0x77]
push rbp
fmul dword [rcx - 0x75]
or byte [rcx - 0x75], cl
pop rax
adc byte [rbx + rcx*4 + 0x61], cl
mov esp, dword [rcx + 0x10]
mov r13, qword [rcx + 0x18]
mov ebp, dword [rcx + 0x18]
mov qword [rbp - 8], r8
mov rdx, qword [r8]
add rdx, rbx
mov qword [rbp - 0x20], rdx
mov dword [rbp - 0x20], edx
mov qword [rbp], rax
sub rax, rbx
cmp rax, 0x7fffffff
invalid
jg case.0x140157508.234
invalid
invalid
invalid
invalid
cmovb rdx, rax
mov qword [rbp - 0x18], rdx
call 0x16087dbaf
mov qword [rbp - 0x10], r14
nop word [rax + rax]
Function at 0x140184290
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401842da
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401842da
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401842da
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401842da
cmp dword [rcx + 0x84], 0xe
jbe 0x1401842da
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1401842dc
xor al, al
add rsp, 0x28
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400b4ff0]
mov dword [rax], 1
mov rax, qword [0x1400b5000]
mov dword [rax], 1
mov rax, qword [0x1400b5010]
mov dword [rax], 1
mov rax, qword [0x1400b4fa0]
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 0x1400273b0
Capabilities:
Query environment variable

Disassembly:
push r14
mov eax, 0x10080
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.140091af0
sub rsp, rax
xor eax, eax
xor edx, edx
xor esi, esi
mov r14d, 0x28
movzx edi, byte [rcx]
mov word [rsp + 0x80], ax
mov r12, rcx
lea rbp, [rsp + 0x30]
lea r13, [rsp + 0x2e]
mov word [rsp + 0x30], dx
test dil, dil
je 0x140027459
nop dword [rax]
mov rax, r14
lea rbx, [rbp + rsi*2]
sub rax, rsi
cmp word [rbp + rsi*2], 0
je 0x14002741e
nop dword [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x140027410
test rax, rax
je 0x1400a29d0
mov rcx, rbx
add rsi, 1
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, r13
mov byte [rsp + 0x2e], dil
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x2f], 0
call sub.msvcrt.dll_mbstowcs
movzx edi, byte [r12 + rsi]
test dil, dil
jne 0x1400273f8
lea rbx, [rsp + 0x80]
mov r8d, 0x10000
mov rcx, rbp
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x140027488
mov rcx, rbx
call sub.msvcrt.dll__wcsdup
add rsp, 0x10080
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret

Function at 0x1400274a0
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
xor eax, eax
xor esi, esi
mov r13d, 0x28
movzx edi, byte [rcx]
mov word [rsp + 0x30], ax
mov rbp, rcx
mov r14, rdx
lea r15, [rsp + 0x30]
lea r12, [rsp + 0x2e]
test dil, dil
je 0x140027541
nop word [rax + rax]
mov rax, r13
lea rbx, [r15 + rsi*2]
sub rax, rsi
cmp word [r15 + rsi*2], 0
je 0x140027506
nop word [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x1400274f8
test rax, rax
je 0x1400a29d6
mov rcx, rbx
add rsi, 1
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, r12
mov byte [rsp + 0x2e], dil
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x2f], 0
call sub.msvcrt.dll_mbstowcs
movzx edi, byte [rbp + rsi]
test dil, dil
jne 0x1400274e0
mov rdx, r14
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 0x1400875d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1400c6629], 0
mov rbp, rcx
mov r12, rdx
mov rdi, r8
je 0x140087658
lea rdx, [0x1400b0f2a]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1400876c0
mov rbx, qword [0x1400c64e0]
jmp 0x140087615
lea rbx, [rdx + rax + 4]
mov rdx, rbx
mov rcx, rdi
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 0x140087610
movzx r9d, word [rdx + 4]
lea r8, [rdx + 6]
mov rcx, rbp
mov rdx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.140075bf0
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 [0x1400c64e0], rax
mov ebx, dword [rax]
mov qword [0x1400c64e0], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x1400c64e0], rdx
call fcn.140086700
cmp eax, ebx
jne 0x140087728
mov byte [0x1400c6629], 1
jmp 0x1400875ec
cmp byte [0x1400c6628], 0
jne 0x140087603
mov rbx, qword [sym.imp.python311.dll_PyDict_New]
call rbx
mov qword [0x1400c6f88], rax
call rbx
mov qword [0x1400c6f80], rax
call rbx
mov qword [0x1400c6f78], rax
call rbx
mov qword [0x1400c6f70], rax
call rbx
mov qword [0x1400c6f68], rax
call rbx
mov qword [0x1400c6f60], rax
call rbx
mov qword [0x1400c6f58], rax
call rbx
mov byte [0x1400c6628], 1
mov qword [0x1400c6f50], rax
jmp 0x140087603
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x1400907d0
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.1400a1f50
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.1400a1f50
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 0x1400914a2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400c7448]
test eax, eax
je 0x14009153a
lea rax, [0x1400c7420]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400c7450]
mov qword [rbp - 8], rax
jmp 0x14009151e
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 0x140091512
cmp qword [rbp - 0x10], 0
je 0x140091512
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 0x1400914d8
lea rax, [0x1400c7420]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14009153b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140091640
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 0x140091668
mov eax, 0
jmp 0x1400916b6
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 0x140091691
mov eax, 0
jmp 0x1400916b6
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 0x1400916b1
mov eax, 0
jmp 0x1400916b6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x1400916bc
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 0x14009173a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140091731
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 0x140091731
mov rax, qword [rbp - 8]
jmp 0x14009174f
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 0x140091704
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001000
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
mov eax, 0x13c0
call fcn.140002140
sub rsp, rax
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x13b0], rax
mov ebx, edx
mov esi, ecx
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rsp + 0x13a4], 0xffffffff
mov r9d, 1
mov dword [rsp + 0x24], eax
mov r10d, 0x270
nop word [rax + rax]
mov r8d, eax
shr r8d, 0x1e
xor r8d, eax
imul eax, r8d, 0x6c078965
add eax, r9d
mov dword [rsp + r9*4 + 0x24], eax
inc r9
cmp r9, r10
jb 0x140001050
sub ebx, esi
mov dword [rsp + 0x20], r10d
cmp ebx, 0xffffffff
jne 0x140001102
lea r8, [rsp + 0x28]
nop word [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x140001090
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + rax*4 + 0x24]
mov eax, ecx
shr eax, 0xb
and eax, dword [rsp + 0x13a4]
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
add eax, esi
jmp 0x140001153
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x13d0], rdi
inc ebx
call fcn.1400012a0
mov ecx, eax
mov edi, ebx
imul rcx, rdi
cmp ecx, ebx
jae 0x140001144
mov eax, ebx
xor edx, edx
neg eax
div ebx
mov ebx, edx
cmp ecx, edx
jae 0x140001144
lea rcx, [rsp + 0x20]
call fcn.1400012a0
mov ecx, eax
imul rcx, rdi
cmp ecx, ebx
jb 0x140001130
mov rdi, qword [rsp + 0x13d0]
shr rcx, 0x20
lea eax, [rcx + rsi]
mov rcx, qword [rsp + 0x13b0]
xor rcx, rsp
call fcn.140001440
mov rbx, qword [rsp + 0x13d8]
add rsp, 0x13c0
pop rsi
ret