joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140041280
Capabilities:
Get geographical location

Disassembly:
cmp rsp, qword [r14 + 0x18]
jbe 0x1400414ec
sub rsp, 0x40
mov qword [rsp + 0x38], rbp
lea rbp, [rsp + 0x38]
mov qword [rsp + 0x48], rax
cmp byte [0x140a92db0], 0
je 0x1400412b7
mov eax, 0x14
xor ebx, ebx
call fcn.140057d20
mov rax, qword [rsp + 0x48]
nop
mov edx, dword [rax + 0x90]
btr edx, 0xc
cmp edx, 2
jne 0x1400413c5
cmp byte [rax + 0xb4], 0
je 0x1400412fc
mov rcx, qword [rax + 0x40]
mov rax, rcx
nop dword [rax + rax]
call fcn.1400525a0
test rax, rax
je 0x1400413af
movzx edx, byte [rax + 0x29]
test dl, 2
jne 0x140041354
mov rax, qword [rsp + 0x48]
mov ebx, 2
mov ecx, 0x1009
call fcn.14003c3c0
mov rdx, qword [r14 + 0x30]
mov rdx, qword [rdx + 0x90]
nop
nop
xor esi, esi
mov qword [rdx + 0x30], rsi
mov rdx, qword [r14 + 0x30]
nop
xor esi, esi
mov qword [rdx + 0x90], rsi
mov rax, qword [rsp + 0x48]
mov ebx, 0x1009
mov ecx, 9
nop dword [rax + rax]
call fcn.14003bae0
call fcn.1400408a0
mov rbp, qword [rsp + 0x38]
add rsp, 0x40
ret
call fcn.140052d40
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x20], rbx
call fcn.1400393e0
lea rax, [0x1405d962a]
mov ebx, 0x25
call fcn.140039ce0
mov rax, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x20]
call fcn.140039ce0
lea rax, [0x1405c9962]
mov ebx, 0x12
call fcn.140039ce0
call fcn.140039460
lea rax, [0x1405c8462]
mov ebx, 0xf
call fcn.140037aa0
lea rax, [0x1405cc4c5]
mov ebx, 0x15
nop dword [rax + rax]
call fcn.140037aa0
nop
mov qword [rsp + 0x28], r14
nop
mov ecx, dword [rax + 0x90]
mov dword [rsp + 0x14], ecx
mov rdx, qword [rax + 0x98]
mov qword [rsp + 0x18], rdx
call fcn.1400393e0
lea rax, [0x1405ca1f6]
mov ebx, 0x12
call fcn.140039ce0
mov rax, qword [rsp + 0x48]
nop dword [rax]
call fcn.140039c60
lea rax, [0x1405c3aef]
mov ebx, 7
call fcn.140039ce0
mov rax, qword [rsp + 0x18]
nop dword [rax + rax]
call fcn.1400399e0
lea rax, [0x1405ca45f]
mov ebx, 0x13
call fcn.140039ce0
mov eax, dword [rsp + 0x14]
mov eax, eax
nop dword [rax]
call fcn.1400399e0
call fcn.140039640
call fcn.140039460
mov rax, qword [rsp + 0x28]
mov ecx, dword [rax + 0x90]
mov dword [rsp + 0x10], ecx
mov rdx, qword [rax + 0x98]
mov qword [rsp + 0x18], rdx
call fcn.1400393e0
lea rax, [0x1405ca208]
mov ebx, 0x12
nop dword [rax + rax]
call fcn.140039ce0
mov rax, qword [rsp + 0x28]
call fcn.140039c60
lea rax, [0x1405c3aef]
mov ebx, 7
nop dword [rax + rax]
call fcn.140039ce0
mov rax, qword [rsp + 0x18]
call fcn.1400399e0
lea rax, [0x1405ca44c]
mov ebx, 0x13
nop dword [rax + rax]
call fcn.140039ce0
mov eax, dword [rsp + 0x10]
mov eax, eax
call fcn.1400399e0
call fcn.140039640
call fcn.140039460
lea rax, [0x1405c6842]
mov ebx, 0xc
call fcn.140037aa0
nop
mov qword [rsp + 8], rax
call fcn.140069e40
mov rax, qword [rsp + 8]
nop dword [rax + rax]
jmp fcn.140041280
Function at 0x1400446e0
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x30
mov qword [rsp + 0x28], rbp
lea rbp, [rsp + 0x28]
mov rcx, qword [r14 + 0x30]
cmp qword [rcx + 0xa0], 0
nop word [rax + rax]
jne 0x1400447ec
mov rdx, qword [rax + 0x38]
mov qword [rsp + 0x20], rdx
test rdx, rdx
jne 0x140044749
cmp dword [rax + 4], 0
jne 0x140044740
nop
mov rdx, rax
mov qword [rcx + 0xa0], rax
mov rax, qword [r14 + 0x30]
mov qword [rdx + 0x38], rax
mov dword [rdx + 4], 1
mov rbp, qword [rsp + 0x28]
add rsp, 0x30
ret
test rdx, rdx
je 0x1400447e5
mov rdx, qword [rdx + 0xb8]
mov qword [rsp + 0x10], rdx
mov eax, dword [rax + 4]
mov qword [rsp + 0x18], rax
nop dword [rax]
call fcn.1400393e0
lea rax, [0x1405c6c02]
mov ebx, 0xc
call fcn.140039ce0
mov rax, qword [rsp + 0x20]
nop dword [rax + rax]
call fcn.1400399e0
lea rax, [0x14068ec78]
mov ebx, 1
call fcn.140039ce0
mov rax, qword [rsp + 0x10]
nop dword [rax + rax]
call fcn.140039ae0
lea rax, [0x1405c640a]
mov ebx, 0xc
call fcn.140039ce0
mov rax, qword [rsp + 0x18]
nop dword [rax + rax]
call fcn.1400399e0
call fcn.140039640
call fcn.140039460
lea rax, [0x1405cd4c5]
mov ebx, 0x16
nop dword [rax + rax]
call fcn.140037aa0
xor edx, edx
jmp 0x140044750
lea rax, [0x1405cbc1a]
mov ebx, 0x14
call fcn.140037aa0
nop
int3
Function at 0x1400462e0
Capabilities:
Encode data using base64

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x14004644a
sub rsp, 0x20
mov qword [rsp + 0x18], rbp
lea rbp, [rsp + 0x18]
mov ecx, dword [rax + 0x190]
mov edx, dword [rax + 0x194]
mov rsi, qword [rax + 0x998]
mov edi, dword [rax + 0x194]
cmp edi, edx
jne 0x1400462f8
cmp edx, ecx
jne 0x140046438
nop dword [rax]
test rsi, rsi
jne 0x140046438
mov qword [rsp + 0x28], rax
test rbx, rbx
jne 0x140046354
nop
call fcn.1400693e0
xorps xmm15, xmm15
mov r14, qword [0x140ae0ef8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rbx, qword [rsp]
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x10], rbx
call fcn.1400461e0
mov rcx, qword [0x140a8bf68]
mov rdx, qword [0x140a8bf60]
mov rbx, qword [rsp + 0x28]
mov esi, dword [rbx]
mov edi, esi
sar esi, 0x1f
shr esi, 0x1b
add esi, edi
mov r8d, esi
and esi, 0xffffffe0
sub edi, esi
test edi, edi
jl 0x140046433
cmp edi, 0x20
sbb esi, esi
sar r8d, 5
mov rax, rcx
mov ecx, edi
mov r9d, 1
shl r9d, cl
and r9d, esi
movsxd rsi, r8d
cmp rax, rsi
jbe 0x140046428
lea rcx, [rdx + rsi*4]
lock or dword [rcx], r9d
mov rcx, qword [0x140a8d7b0]
mov qword [rbx + 8], rcx
nop
mov rcx, rbx
mov qword [0x140a8d7b0], rbx
nop
mov edx, 1
lea rsi, [0x140a8d7b8]
lock xadd dword [rsi], edx
mov rdx, qword [rcx + 0x1220]
shr rdx, 0x3d
test dl, dl
jne 0x140046417
nop
nop
mov rax, qword [rsp + 0x10]
movabs rdx, 0x1fffffffffffffff
and rdx, rax
bts rdx, 0x3f
xchg qword [rcx + 0x1220], rdx
mov rbp, qword [rsp + 0x18]
add rsp, 0x20
ret
lea rax, [0x1405db59c]
mov ebx, 0x28
call fcn.140037aa0
mov rcx, rax
mov rax, rsi
call fcn.140067a20
call fcn.140035f60
lea rax, [0x1405d7d8d]
mov ebx, 0x23
call fcn.140037aa0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.1400653a0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.1400462e0
Function at 0x1400474e0
Capabilities:
Get geographical location

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x1400476ca
sub rsp, 0x18
mov qword [rsp + 0x10], rbp
lea rbp, [rsp + 0x10]
mov qword [0x140ae0ef0], 0x2a
mov qword [0x140ae0ee8], 0
xor eax, eax
lea rcx, [0x140ae0ef0]
mov edx, 1
lock cmpxchg qword [rcx], rdx
sete sil
test sil, sil
jne 0x1400476b8
cmp qword [0x140ae0ee8], 0
jne 0x1400476a7
mov qword [0x140ae0ee8], 0x2a
mov eax, 0x2a
lock cmpxchg qword [rcx], rdx
sete dl
test dl, dl
je 0x140047696
cmp qword [0x140ae0ee8], 0x2a
jne 0x140047685
cmp qword [0x140ae0ef0], 1
jne 0x140047685
mov rdx, qword [0x140ae0ef0]
nop
cmp rdx, 1
jne 0x14004766f
movabs rdx, 0x10000000001
xchg qword [rcx], rdx
mov rdx, qword [0x140ae0ef0]
movabs rsi, 0x10000000001
cmp rdx, rsi
jne 0x14004765e
movabs rdx, 0x10000000001
lock xadd qword [rcx], rdx
movabs rsi, 0x10000000001
add rdx, rsi
movabs rsi, 0x20000000002
cmp rsi, rdx
jne 0x14004764d
mov rdx, qword [0x140ae0ef0]
cmp rdx, rsi
jne 0x14004763c
movabs rdx, 0x30000000003
xchg qword [rcx], rdx
cmp rdx, rsi
jne 0x14004762b
mov rcx, qword [0x140ae0ef0]
movabs rdx, 0x30000000003
cmp rcx, rdx
jne 0x14004761a
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
lea rax, [0x1405c74b9]
mov ebx, 0xd
call fcn.140037aa0
lea rax, [0x1405c74b9]
mov ebx, 0xd
call fcn.140037aa0
lea rax, [0x1405c74ac]
mov ebx, 0xd
call fcn.140037aa0
lea rax, [0x1405c74ac]
mov ebx, 0xd
call fcn.140037aa0
lea rax, [0x1405c7c7b]
mov ebx, 0xe
call fcn.140037aa0
lea rax, [0x1405c72b1]
mov ebx, 0xd
nop dword [rax + rax]
call fcn.140037aa0
lea rax, [0x1405c68a2]
mov ebx, 0xc
call fcn.140037aa0
lea rax, [0x1405c68a2]
mov ebx, 0xc
call fcn.140037aa0
lea rax, [0x1405c68a2]
mov ebx, 0xc
call fcn.140037aa0
lea rax, [0x1405c68a2]
mov ebx, 0xc
call fcn.140037aa0
nop
call fcn.1400653a0
jmp fcn.1400474e0
Function at 0x140053560
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x18
mov qword [rsp + 0x10], rbp
lea rbp, [rsp + 0x10]
mov qword [rsp + 0x20], rax
test rbx, rbx
jbe 0x1400536d8
movzx edx, byte [rax]
nop
test edx, edx
jne 0x14005359c
test r8b, r8b
jne 0x14005359c
xor eax, eax
xor ebx, ebx
mov rcx, rbx
xor edi, edi
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
bt edx, 7
jae 0x1400535af
xor edx, edx
xor r8d, r8d
xor r9d, r9d
jmp 0x140053698
mov r8d, 1
mov r9d, edx
and edx, 1
neg edx
shr r9d, 1
xor edx, r9d
add dword [rsi], edx
cmp rbx, r8
jb 0x140053686
sub rbx, r8
sub rcx, r8
mov rdx, rcx
neg rcx
sar rcx, 0x3f
and r8, rcx
lea rsi, [rax + r8]
test rbx, rbx
jbe 0x14005367c
movzx r8d, byte [rax + r8]
bt r8d, 7
jae 0x140053603
xor eax, eax
xor ecx, ecx
xor r8d, r8d
jmp 0x140053646
mov eax, 1
cmp rax, rbx
ja 0x140053635
add qword [rdi], r8
sub rdx, rax
sub rbx, rax
mov rcx, rdx
neg rdx
sar rdx, 0x3f
and rax, rdx
add rax, rsi
mov edi, 1
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
mov rcx, rbx
call fcn.140067ae0
lea r8d, [rcx + 7]
mov ecx, eax
mov eax, r10d
cmp rax, rbx
jae 0x140053674
movzx r9d, byte [rax + rsi]
lea r10d, [rax + 1]
mov r11d, r9d
and r9d, 0x7f
mov eax, ecx
mov ecx, r8d
shl r9d, cl
or eax, r9d
test r11b, 0x80
jne 0x14005363d
mov r8d, eax
mov eax, r10d
jmp 0x140053608
mov rcx, rbx
call fcn.140067a20
xor eax, eax
mov rcx, rax
call fcn.140067a20
mov eax, r8d
mov rcx, rbx
call fcn.140067ae0
lea r9d, [rcx + 7]
mov rcx, r12
cmp rbx, rdx
jbe 0x1400536ce
movzx r10d, byte [rdx + rax]
inc edx
mov r11d, r10d
and r10d, 0x7f
mov r12, rcx
mov ecx, r9d
shl r10d, cl
or r8d, r10d
test r11b, 0x80
jne 0x140053691
mov rcx, r12
mov r9d, edx
mov edx, r8d
mov r8d, r9d
jmp 0x1400535b5
mov eax, edx
mov rcx, rbx
call fcn.140067a20
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.140067a20
nop
int3
Function at 0x14005b280
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x14005b339
sub rsp, 0x60
mov qword [rsp + 0x58], rbp
lea rbp, [rsp + 0x58]
mov qword [rsp + 0x70], rbx
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rdx, [0x14005b380]
mov qword [rsp + 0x10], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x18], rdx
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x28], rdx
mov rdx, r14
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.140065260
xorps xmm15, xmm15
mov r14, qword [0x140ae0ef8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
mov rbp, qword [rsp + 0x58]
add rsp, 0x60
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.1400653a0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.14005b280
Function at 0x1400674a0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x140ae1400]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
nop
nop
xor rax, rdx
ret
cmp byte [0x140ae0bef], 0
je 0x1400674d6
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x140ae1880]
aesenc xmm0, xmmword [0x140ae1890]
aesenc xmm0, xmmword [0x140ae18a0]
movq rax, xmm0
ret
jmp 0x14000a6a0
Function at 0x140091b60
Capabilities:
Hash data using fnv

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x140091dac
add rsp, 0xffffffffffffff80
mov qword [rsp + 0x78], rbp
lea rbp, [rsp + 0x78]
mov ebx, dword [rax + 0x2c]
nop dword [rax + rax]
test ebx, ebx
jne 0x140091c0c
mov qword [rsp + 0x88], rax
lea rbx, [0x1405abb60]
mov rcx, rax
lea rax, [0x140a8c300]
call fcn.1400718c0
test cl, cl
jne 0x140091bf1
mov rax, qword [rsp + 0x88]
call fcn.14008f780
mov ecx, 1
mov rdi, rax
mov rsi, rbx
lea rax, [rsp + 0x30]
lea rbx, [0x14068ecb8]
call fcn.14004f680
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x28], rbx
nop dword [rax]
call fcn.140093160
mov rcx, qword [rsp + 0x88]
xor edx, edx
jmp 0x140091c2e
lea rdx, [0x1405ac0e0]
cmp rax, rdx
jne 0x140091c1c
test byte [rbx], al
mov rax, rbx
mov rbp, qword [rsp + 0x78]
sub rsp, 0xffffffffffffff80
ret
nop
call fcn.140062340
mov rbp, qword [rsp + 0x78]
sub rsp, 0xffffffffffffff80
ret
mov rbx, rdx
lea rcx, [0x14052ae40]
call fcn.14000b1e0
inc rdx
cmp rbx, rdx
jle 0x140091c78
mov rsi, qword [rax + rdx*8]
cmp qword [rsi + 0x30], rcx
jne 0x140091c2b
lea rax, [0x140a8c300]
lea rbx, [0x1405abb60]
lea rdi, [0x1405ac0e0]
call fcn.140071a80
lea rdx, [0x1405ac0e0]
nop
cmp rax, rdx
jne 0x140091d9c
test byte [rbx], al
mov rax, rbx
mov rbp, qword [rsp + 0x78]
sub rsp, 0xffffffffffffff80
ret
lea rcx, [0x1405105a0]
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], 0
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x50], rcx
lea rax, [0x14055d1e0]
nop
call fcn.14000dfc0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x50]
test byte [rcx], al
cmp dword [0x140ae11c0], 0
jne 0x140091cda
mov rdx, qword [rcx]
mov qword [rax], rdx
movups xmm0, xmmword [rcx + 8]
movups xmmword [rax + 8], xmm0
movups xmm0, xmmword [rcx + 0x18]
movups xmmword [rax + 0x18], xmm0
movups xmm0, xmmword [rcx + 0x28]
movups xmmword [rax + 0x28], xmm0
jmp 0x140091ce9
mov rbx, rax
lea rax, [0x14055d1e0]
call fcn.1400149c0
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x28]
xor ecx, ecx
xor edi, edi
xor esi, esi
mov r8d, esi
nop dword [rax]
call fcn.14008f240
nop
call fcn.140062440
mov rsi, qword [rsp + 0x60]
mov dword [rsi + 0x28], eax
mov dword [rsi + 0x2c], 0
mov rcx, qword [rsp + 0x88]
mov edx, dword [rcx + 0x10]
xor eax, eax
jmp 0x140091d37
imul edx, edx, 0x1000193
xor edx, 0x2a
mov eax, 1
cmp rax, 1
jl 0x140091d29
mov dword [rsi + 0x10], edx
cmp dword [0x140ae11c0], 0
jne 0x140091d4f
mov qword [rsi + 0x30], rcx
jmp 0x140091d58
lea rdi, [rsi + 0x30]
call fcn.140067680
lea rax, [0x140a8c300]
lea rbx, [0x1405abb60]
lea rdi, [0x1405ac0e0]
call fcn.140071a80
lea rdx, [0x1405ac0e0]
cmp rax, rdx
jne 0x140091d8d
test byte [rbx], al
mov rax, rbx
mov rbp, qword [rsp + 0x78]
sub rsp, 0xffffffffffffff80
ret
mov rbx, rdx
lea rcx, [0x14052ae40]
call fcn.14000b1e0
mov rbx, rdx
lea rcx, [0x14052ae40]
call fcn.14000b1e0
nop
mov qword [rsp + 8], rax
call fcn.1400653a0
mov rax, qword [rsp + 8]
nop dword [rax + rax]
jmp fcn.140091b60
Function at 0x140478fe0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140a83ea0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140479000
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140479008
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140479000
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140479055
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14047904c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140479000
add rax, 0x28
cmp rax, r9
jne 0x140479038
xor eax, eax
ret

Function at 0x140479060
Capabilities:
Parse pe header

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

Function at 0x140479110
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140a83ea0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140479130
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140479138
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret
Function at 0x140172660
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14017266d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14017267d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140172665
lea eax, [rcx + 1]
jmp 0x14017268b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14017269e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140172684
sub eax, 3
jb 0x1401726be
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14017270d
sar eax, 1
movsxd rbp, eax
jb 0x1401726f4
jmp 0x1401726cc
add ebx, ebx
jne 0x1401726ca
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1401726f4
inc ecx
add ebx, ebx
jne 0x1401726da
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1401726f4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1401726ed
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1401726dc
add ecx, 2
jmp 0x1401726f9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140172622
jmp 0x14017266d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x117000
mov dl, 0x22
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140172759
cmp rsi, rcx
jae 0x140172761
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140172740
cmp al, 0x8f
ja 0x140172740
cmp byte [rsi - 2], 0xf
je 0x140172746
sub al, 0xe8
cmp al, 1
ja 0x14017272a
cmp rsi, rcx
jae 0x140172761
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140172730
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140172761
lodsb al, byte [rsi]
jmp 0x140172740
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x16f000]
mov eax, dword [rdi]
or eax, eax
je 0x1401727ca
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x172000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14017276e
jns 0x1401727a3
movzx rdx, word [rdi]
add rdi, 2
jmp 0x1401727ad
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1401727c4
mov qword [rbx], rax
add rbx, 8
jmp 0x14017278e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x237]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140172822
sub rsp, 0xffffffffffffff80
jmp 0x140063ec4
Function at 0x1402f11d0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10088
call fcn.1403256e0
sub rsp, rax
mov rax, qword [0x14036b928]
xor rax, rsp
mov qword [rsp + 0x10070], rax
xor eax, eax
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x70], ax
mov word [rsp + 0x20], ax
lea r8d, [rax + 0x28]
call fcn.140320150
mov r8d, 0x10000
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x1402f124d
lea rcx, [rsp + 0x70]
call fcn.1403378d4
mov rcx, qword [rsp + 0x10070]
xor rcx, rsp
call fcn.1403256b0
add rsp, 0x10088
ret
xor eax, eax
mov rcx, qword [rsp + 0x10070]
xor rcx, rsp
call fcn.1403256b0
add rsp, 0x10088
ret

Function at 0x1402f1300
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14036b928]
xor rax, rsp
mov qword [rsp + 0x70], rax
lea rcx, [0x1403478e0]
call fcn.1402f11d0
xor edi, edi
mov qword [0x140384558], rax
lea rdx, [0x1403478e0]
mov word [rsp + 0x20], di
lea rcx, [rsp + 0x20]
lea r8d, [rdi + 0x28]
call fcn.140320150
lea rdx, [0x1403478e8]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea rcx, str.PYTHONHOME
call fcn.1402f11d0
mov cl, 1
mov qword [0x140384560], rax
call fcn.140321300
lea r8d, [rdi + 0x28]
mov word [rsp + 0x20], di
lea rdx, str.PYTHONHOME
mov rbx, rax
lea rcx, [rsp + 0x20]
call fcn.140320150
mov rdx, rbx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov cl, 1
call fcn.140321300
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1403256b0
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret
Function at 0x1402f1890
Capabilities:
Set environment variable

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x80
mov rax, qword [0x14036b928]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r14, r8
mov rsi, rdx
mov rbp, rcx
call fcn.140307ea0
lea rdx, str.environ
mov rcx, rax
call qword [sym.imp.python311.dll_PyObject_GetAttrString]
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.python311.dll_PyUnicode_FromString]
mov rdx, rsi
lea rcx, [rsp + 0x20]
mov rdi, rax
xor eax, eax
mov word [rsp + 0x20], ax
lea r8d, [rax + 0x28]
call fcn.140320150
lea rcx, [rsp + 0x20]
test r14, r14
je 0x1402f1953
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, 0xffffffffffffffff
mov rcx, r14
call sub.python311.dll_PyUnicode_FromWideChar
mov r8, rax
mov rdx, rdi
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.python311.dll_PyObject_SetItem]
test eax, eax
je 0x1402f1941
mov ecx, 1
call qword [sym.imp.python311.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python311.dll_Py_Exit]
int3
sub qword [rsi], 1
jne 0x1402f1973
mov rax, qword [rsi + 8]
mov rcx, rsi
call qword [rax + 0x30]
jmp 0x1402f1973
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.python311.dll_PyObject_DelItem]
test eax, eax
je 0x1402f1973
mov rcx, rbp
call fcn.14000da20
sub qword [rdi], 1
jne 0x1402f1983
mov rax, qword [rdi + 8]
mov rcx, rdi
call qword [rax + 0x30]
sub qword [rbx], 1
jne 0x1402f1993
mov rax, qword [rbx + 8]
mov rcx, rbx
call qword [rax + 0x30]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1403256b0
add rsp, 0x80
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140320200
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r8, rcx
mov eax, 0xffffffff
test edx, edx
je 0x1403202c4
mov r9d, edx
nop dword [rax]
nop word [rax + rax]
movzx edx, byte [r8]
lea r8, [r8 + 1]
xor eax, edx
mov edx, eax
and dl, 1
neg dl
sbb ecx, ecx
shr eax, 1
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb eax, eax
shr ecx, 1
and eax, 0xedb88320
xor eax, ecx
sub r9, 1
jne 0x140320220
not eax
ret