joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140012980
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x30], rcx
xor r14d, r14d
mov dword [rsp + 0x24], r14d
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], r14
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], r14b
mov dword [rsp + 0x24], 1
mov rax, qword [rdx + 0x10]
cmp rax, 0xf
jbe 0x1400129de
mov rdx, rax
call fcn.140062620
mov qword [rdi + 0x10], r14
mov rax, qword [rbx + 0x10]
mov r13d, 0xfffffffa
cmp qword [rbx + 0x18], 0xf
jbe 0x1400129f6
mov r15, qword [rbx]
mov rcx, r15
mov rbx, r15
jmp 0x1400129fc
mov r15, rbx
mov rcx, rbx
add rax, rcx
mov qword [rsp + 0x28], rax
cmp rbx, rax
je 0x140012b18
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
movzx ebx, byte [rsp + 0x20]
nop dword [rax]
shl r14d, 8
movzx eax, byte [r15]
add r14d, eax
add r13d, 8
js 0x140012aaf
movsxd r12, r14d
movsxd rsi, r13d
lea ecx, [r13 + 6]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 2
mov ebp, edx
imul eax, edx, 0xfffffffa
add r13d, eax
nop dword [rax]
mov rax, r12
mov rcx, rsi
sar rax, cl
and eax, 0x3f
movzx r9d, byte [rax + r8]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x140012a8d
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0xf
jbe 0x140012a82
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140012aa5
movzx r8d, bl
mov edx, 1
mov rcx, rdi
call fcn.140062770
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
sub rsi, 6
sub rbp, 1
jne 0x140012a50
inc r15
cmp r15, qword [rsp + 0x28]
jne 0x140012a20
cmp r13d, 0xfffffffa
jle 0x140012b18
lea ecx, [r13 + 8]
shl r14d, 8
movsxd rax, r14d
sar rax, cl
and eax, 0x3f
movzx r9d, byte [rax + r8]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x140012b05
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0xf
jbe 0x140012afa
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140012b18
movzx r8d, byte [rsp + 0x20]
mov edx, 1
mov rcx, rdi
call fcn.140062770
mov rcx, qword [rdi + 0x10]
test cl, 3
je 0x140012b68
movzx ebx, byte [rsp + 0x20]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x140012b4b
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0xf
jbe 0x140012b43
mov rax, qword [rdi]
mov word [rax + rcx], 0x3d
jmp 0x140012b5f
mov r9b, 0x3d
movzx r8d, bl
mov edx, 1
mov rcx, rdi
call fcn.140062770
mov rcx, qword [rdi + 0x10]
test cl, 3
jne 0x140012b26
mov rax, rdi
mov rbx, qword [rsp + 0x90]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140013860
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x140346fc0]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov qword [rsp + 0x48], rcx
lea edi, [rcx + 1]
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x34], r8d
nop dword [rax + rax]
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x40]
mov ecx, edi
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
jns 0x1400138ce
call fcn.14027e644
cmp dword [rax], 4
je 0x1400138a0
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140260e40
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret

Function at 0x140013900
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rdi
sub rsp, 0x30
mov rax, qword [0x140346fc0]
xor rax, rsp
mov qword [rsp + 0x28], rax
xor r8d, r8d
xor edx, edx
mov rdi, rcx
call fcn.140013860
test rax, rax
jne 0x14001393c
mov al, 1
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140260e40
add rsp, 0x30
pop rdi
ret
jns 0x14001395d
call fcn.14027e644
cmp dword [rax], 9
jne 0x14001395d
xor al, al
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140260e40
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
lea rsi, [rsp + 0x20]
nop dword [rax]
mov r9d, 2
mov rdx, rsi
mov rcx, rdi
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test eax, eax
jns 0x140013996
call fcn.14027e644
cmp dword [rax], 4
je 0x140013970
mov rsi, qword [rsp + 0x50]
test ebx, ebx
mov rbx, qword [rsp + 0x48]
setg al
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140260e40
add rsp, 0x30
pop rdi
ret
Function at 0x140013e80
Capabilities:
Resolve dns

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x478
mov rax, qword [0x140346fc0]
xor rax, rsp
mov qword [rsp + 0x460], rax
movzx eax, word [rcx]
mov rsi, r9
mov rdi, r8
mov ebp, edx
mov rbx, rcx
cmp ax, 2
je 0x140013ebc
cmp ax, 0x17
jne 0x140013f6a
movzx ecx, word [rcx + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
xor edx, edx
lea rcx, [rsp + 0x50]
mov dword [rsi], eax
mov r8d, 0x401
call fcn.1402a1980
xor eax, eax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], eax
lea r8, [rsp + 0x50]
mov r9d, 0x401
mov qword [rsp + 0x20], rax
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
jne 0x140013f6a
lea rax, [rsp + 0x50]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140013f16
mov rax, qword [rdi + 0x18]
cmp rbx, rax
ja 0x140013f50
mov rsi, rdi
cmp rax, 0xf
jbe 0x140013f34
mov rsi, qword [rdi]
mov r8, rbx
mov qword [rdi + 0x10], rbx
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.1402a12e0
mov al, 1
mov byte [rsi + rbx], 0
jmp 0x140013f6c
movzx r8d, byte [rsp + 0x40]
lea r9, [rsp + 0x50]
mov rdx, rbx
mov rcx, rdi
call fcn.1400628e0
mov al, 1
jmp 0x140013f6c
xor al, al
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140260e40
add rsp, 0x478
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140015bb0
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x140346fc0]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rax, qword [rcx + 8]
mov rdi, rcx
mov r8, qword [rcx + 0x28]
mov rdx, qword [rcx + 0x20]
mov qword [rsp + 0x48], rax
lea esi, [rax + 1]
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x34], r8d
nop dword [rax]
lea rax, [rsp + 0x30]
xor r9d, r9d
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, esi
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
test eax, eax
jns 0x140015c2c
call fcn.14027e644
cmp dword [rax], 4
je 0x140015c00
test ebx, ebx
jle 0x140015c41
mov rcx, qword [rdi + 8]
call fcn.140013900
test al, al
je 0x140015c41
mov al, 1
jmp 0x140015c43
xor al, al
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140260e40
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140015c70
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x28
mov rbx, rcx
mov eax, 0x7fffffff
mov rcx, qword [rcx + 0x48]
cmp r8, rax
mov rdi, r8
mov r14, rdx
cmova rdi, rax
mov rsi, qword [rbx + 0x50]
cmp rcx, rsi
jae 0x140015ce0
mov rdx, qword [rbx + 0x30]
sub rsi, rcx
add rdx, rcx
mov rcx, r14
cmp rdi, rsi
ja 0x140015cc7
mov r8, rdi
call fcn.1402a12e0
add qword [rbx + 0x48], rdi
mov rax, rdi
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
mov r8, rsi
call fcn.1402a12e0
add qword [rbx + 0x48], rsi
mov rax, rsi
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
mov r8, qword [rbx + 0x18]
mov rdx, qword [rbx + 0x10]
mov rcx, qword [rbx + 8]
call fcn.140013860
test rax, rax
jg 0x140015d07
mov rax, 0xffffffffffffffff
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
xor eax, eax
mov qword [rsp + 0x68], rbp
mov rbp, qword [rbx + 8]
mov qword [rbx + 0x48], rax
mov qword [rbx + 0x50], rax
cmp rdi, 0x1000
jae 0x140015db0
mov qword [rsp + 0x20], r15
mov r15, qword [rbx + 0x30]
xor r9d, r9d
mov r8d, 0x1000
mov rdx, r15
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rsi, eax
test eax, eax
jns 0x140015d56
call fcn.14027e644
cmp dword [rax], 4
je 0x140015d30
mov r15, qword [rsp + 0x20]
test rsi, rsi
jle 0x140015d74
mov rdx, qword [rbx + 0x30]
mov rcx, r14
cmp rsi, rdi
jg 0x140015d86
mov r8, rsi
call fcn.1402a12e0
mov rbp, qword [rsp + 0x68]
mov rax, rsi
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
mov r8, rdi
call fcn.1402a12e0
mov rbp, qword [rsp + 0x68]
mov rax, rdi
mov qword [rbx + 0x48], rdi
mov qword [rbx + 0x50], rsi
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
xor r9d, r9d
mov r8d, edi
mov rdx, r14
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbx, eax
test eax, eax
jns 0x140015dd3
call fcn.14027e644
cmp dword [rax], 4
je 0x140015db0
mov rbp, qword [rsp + 0x68]
mov rax, rbx
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x140015df0
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x260
mov rax, qword [0x140346fc0]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rax, qword [rcx + 8]
mov rbp, r8
mov r10, qword [rcx + 0x28]
mov r14, rdx
mov r9, qword [rcx + 0x20]
mov rdi, rcx
mov qword [rsp + 0x48], rax
lea esi, [rax + 1]
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x30], r9d
mov dword [rsp + 0x34], r10d
nop word [rax + rax]
lea rax, [rsp + 0x30]
xor r9d, r9d
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, esi
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
test eax, eax
jns 0x140015e7c
call fcn.14027e644
cmp dword [rax], 4
je 0x140015e50
test ebx, ebx
jle 0x140015eb9
mov rcx, qword [rdi + 8]
call fcn.140013900
test al, al
je 0x140015eb9
mov rdi, qword [rdi + 8]
xor r9d, r9d
mov r8d, ebp
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_send]
movsxd rbx, eax
test eax, eax
jns 0x140015eb4
call fcn.14027e644
cmp dword [rax], 4
je 0x140015e91
mov rax, rbx
jmp 0x140015ec0
mov rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140260e40
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x140015f70
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x140346fc0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rcx, qword [rcx + 8]
mov rdi, r8
mov rbx, rdx
mov dword [rsp + 0x20], 0x80
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x140015fc9
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov r9, rdi
mov r8, rbx
call fcn.140013e80
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140260e40
mov rbx, qword [rsp + 0xe8]
add rsp, 0xc0
pop rdi
ret
Function at 0x140024500
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x78
mov rax, qword [0x140346fc0]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r14, r9
mov rax, r8
mov rdi, rdx
mov rbx, rcx
mov qword [rbp - 0x48], rcx
xor r15d, r15d
cmp qword [r8 + 0x18], 7
jbe 0x14002453b
mov rax, qword [r8]
lea rcx, [rbp - 0x38]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002459a
mov dword [rbp - 0x3c], r15d
mov rdx, r14
cmp qword [r14 + 0x18], 7
jbe 0x14002456e
mov rdx, qword [r14]
lea rax, [rbp - 0x3c]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1400245bf
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], r15
xor r8d, r8d
lea rdx, [0x1402f64c8]
mov rcx, rbx
call fcn.140025e20
jmp 0x140024708
mov esi, dword [rbp - 0x3c]
shr rsi, 1
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x20], xmm1
cmp rsi, 7
ja 0x140024601
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], 7
test rsi, rsi
je 0x1400245f9
movzx eax, r15w
lea rdi, [rbp - 0x30]
mov rcx, rsi
rep stosw word [rdi], ax
mov word [rbp + rsi*2 - 0x30], r15w
jmp 0x14002464d
mov rdi, rsi
or rdi, 7
mov eax, 0xa
cmp rdi, rax
cmovb rdi, rax
inc rdi
mov qword [rbp - 0x48], rdi
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x30]
call fcn.140025ef0
mov rdx, rax
lea rcx, [rdi - 1]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], rcx
movzx eax, r15w
mov rdi, rdx
mov rcx, rsi
rep stosw word [rdi], ax
mov word [rdx + rsi*2], r15w
lea rax, [rbp - 0x30]
cmp qword [rbp - 0x18], 7
cmova rax, qword [rbp - 0x30]
cmp qword [r14 + 0x18], 7
jbe 0x140024665
mov r14, qword [r14]
lea rcx, [rbp - 0x3c]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, r14
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rbp - 0x38]
test eax, eax
je 0x1400246f3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], r15
xor r8d, r8d
lea rdx, [0x1402f64c8]
mov rcx, rbx
call fcn.140025e20
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 7
jbe 0x140024708
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400246ec
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140024724
call fcn.140260e60
jmp 0x140024708
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movups xmm0, xmmword [rbp - 0x30]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rbp - 0x20]
movups xmmword [rbx + 0x10], xmm1
mov rax, rbx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140260e40
add rsp, 0x78
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.14027d5c0
int3
Function at 0x140025c30
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
lea rdx, [0x1402f7850]
call fcn.14005cd40
mov rbp, rax
cmp qword [rdi + 0x18], 0xf
jbe 0x140025c6f
mov r8, qword [rdi]
add r8, qword [rdi + 0x10]
mov rdi, qword [rdi]
jmp 0x140025c76
mov r8, qword [rdi + 0x10]
add r8, rdi
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.14005d8e0
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 7
jbe 0x140025c92
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbp
call fcn.140074b50
mov rcx, rax
lea rdx, [0x1402f784c]
call fcn.14005cd40
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 7
jbe 0x140025cef
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140025cea
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140025dab
call fcn.140260e60
lea rdx, str.Country_Code:
mov rcx, rsi
call fcn.14005cd40
mov rdi, rax
cmp qword [rbx + 0x18], 0xf
jbe 0x140025d14
mov r8, qword [rbx]
add r8, qword [rbx + 0x10]
mov rbx, qword [rbx]
jmp 0x140025d1b
mov r8, qword [rbx + 0x10]
add r8, rbx
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.14005d8e0
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 7
jbe 0x140025d37
mov rax, qword [rax]
mov rdx, rax
mov rcx, rdi
call fcn.140074b50
mov rcx, rax
lea rdx, [0x1402f784c]
call fcn.14005cd40
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 7
jbe 0x140025d90
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140025d8b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140025da5
call fcn.140260e60
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
call fcn.14027d5c0
int3
call fcn.14027d5c0
int3
Function at 0x1400322e0
Capabilities:
Create process on windows
Query environment variable
Self delete

Disassembly:
sub rsp, 0x468
mov rax, qword [0x140346fc0]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov r8d, 0x104
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1400323cb
mov r8d, 0x104
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x1400323cb
lea rdx, str._c_del
lea rcx, [rsp + 0x240]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x240]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, str.____NUL
lea rcx, [rsp + 0x240]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov r8d, 0x104
lea rdx, [rsp + 0x30]
lea rcx, str.ComSpec
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x1400323cb
xor eax, eax
lea r9, [rsp + 0x240]
mov dword [rsp + 0x28], eax
lea r8, [rsp + 0x30]
xor edx, edx
mov qword [rsp + 0x20], rax
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
setg al
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140260e40
add rsp, 0x468
ret
xor al, al
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140260e40
add rsp, 0x468
ret

Function at 0x140032c40
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x2c0
mov rax, qword [0x140346fc0]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
lea rcx, str.USERNAME
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xorps xmm0, xmm0
test eax, eax
jne 0x140032cad
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0
lea r8d, [rax + 6]
lea rdx, str.UKNOWN
mov rcx, rbx
call fcn.140012310
jmp 0x140032d2b
xor eax, eax
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
mov qword [rsp + 0xa0], rax
lea rcx, [rsp + 0x30]
call fcn.140041800
nop
lea r9, [rsp + 0xb0]
cmp word [rsp + 0xb0], 0
je 0x140032d0b
nop
add r9, 2
cmp word [r9], 0
jne 0x140032d00
lea r8, [rsp + 0xb0]
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.14004d260
nop
lea rcx, [rsp + 0x30]
call fcn.140041710
mov rax, rbx
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.140260e40
add rsp, 0x2c0
pop rbx
ret
Function at 0x140033a50
Capabilities:
Enumerate process modules
Get file version info
Terminate process

Disassembly:
push r14
mov eax, 0x1480
call fcn.140261850
sub rsp, rax
mov rax, qword [0x140346fc0]
xor rax, rsp
mov qword [rsp + 0x1450], rax
mov r14, rcx
lea r8, [rsp + 0x34]
lea rcx, [rsp + 0x40]
mov edx, 0x1000
call qword [sym.imp.KERNEL32.dll_K32EnumProcesses]
test eax, eax
je 0x140033cc9
mov eax, dword [rsp + 0x34]
shr eax, 2
test eax, eax
je 0x140033cc9
mov qword [rsp + 0x1498], rbx
mov qword [rsp + 0x14a0], rbp
mov qword [rsp + 0x14a8], rsi
mov qword [rsp + 0x1478], rdi
mov qword [rsp + 0x1468], r13
mov qword [rsp + 0x1460], r15
lea r15, [rsp + 0x40]
mov qword [rsp + 0x1470], r12
mov r13d, eax
mov r8d, dword [r15]
test r8d, r8d
je 0x140033c83
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r12, rax
test rax, rax
je 0x140033c83
mov r9d, 0x104
lea r8, [rsp + 0x1040]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
test eax, eax
je 0x140033c7a
xor edx, edx
lea rcx, [rsp + 0x1040]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
movsxd rdi, eax
test eax, eax
jle 0x140033c7a
mov rcx, rdi
call fcn.1402612e4
mov r8, rdi
xor edx, edx
mov rcx, rax
mov rbp, rax
call fcn.1402a1980
mov r9, rbp
lea rcx, [rsp + 0x1040]
mov r8d, edi
xor edx, edx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x140033c72
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], 0
lea r8, [rsp + 0x28]
mov rcx, rbp
lea rdx, str.VarFileInfoTranslation
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x140033c72
xor esi, esi
test dword [rsp + 0x30], 0xfffffffc
jbe 0x140033c72
mov rax, qword [rsp + 0x28]
lea rdx, str.StringFileInfo_04x_04xFileDescription
lea rcx, [rsp + 0x1250]
movzx r9d, word [rax + rsi*4 + 2]
movzx r8d, word [rax + rsi*4]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r9, [rsp + 0x38]
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x20]
mov rcx, rbp
lea rdx, [rsp + 0x1250]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x140033c61
mov rbx, qword [r14]
mov rdi, qword [r14 + 8]
cmp rbx, rdi
je 0x140033c61
nop word [rax + rax]
cmp qword [rbx + 0x18], 7
mov rdx, rbx
jbe 0x140033c1d
mov rdx, qword [rbx]
mov rcx, qword [rsp + 0x20]
call fcn.140262e80
test rax, rax
jne 0x140033c37
add rbx, 0x20
cmp rbx, rdi
jne 0x140033c10
jmp 0x140033c61
mov r8d, dword [r15]
xor edx, edx
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140033c61
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x30]
inc esi
shr eax, 2
cmp esi, eax
jb 0x140033bb1
mov rcx, rbp
call fcn.140260e60
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add r15, 4
sub r13, 1
jne 0x140033ae0
mov r15, qword [rsp + 0x1460]
mov r13, qword [rsp + 0x1468]
mov r12, qword [rsp + 0x1470]
mov rdi, qword [rsp + 0x1478]
mov rsi, qword [rsp + 0x14a8]
mov rbp, qword [rsp + 0x14a0]
mov rbx, qword [rsp + 0x1498]
mov rcx, qword [rsp + 0x1450]
xor rcx, rsp
call fcn.140260e40
add rsp, 0x1480
pop r14
ret
Function at 0x14003e630
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rax, qword [0x140346fc0]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov rbx, rdx
lea r8, [0x1402fa7b8]
mov edx, 0xff
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x14003e7d9
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14003e7d9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x70]
call fcn.1402a1980
cmp qword [rbx + 0x18], 7
jbe 0x14003e6ca
mov rbx, qword [rbx]
mov r8d, 0x20
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.14004cff0
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea r14, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x70], r14
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x6c], edx
mov rcx, qword [rsp + 0x70]
movsxd rax, dword [rcx + 4]
test byte [rbp + rax - 0x80], 6
je 0x14003e719
xor bl, bl
jmp 0x14003e772
mov r8, rdi
mov rdx, rsi
lea rcx, [rsp + 0x70]
call fcn.140048220
lea rcx, [rsp + 0x78]
call fcn.14004e290
test rax, rax
jne 0x14003e76b
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov eax, 6
mov edx, 2
cmp qword [rbp + rcx - 0x48], 0
cmovne eax, edx
or eax, dword [rbp + rcx - 0x80]
and eax, 0x17
mov dword [rbp + rcx - 0x80], eax
mov edx, dword [rbp + rcx - 0x7c]
and edx, eax
jne 0x14003e802
mov bl, 1
mov rcx, qword [rsp + 0x70]
movsxd rax, dword [rcx + 4]
mov qword [rsp + rax + 0x70], r14
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x6c], edx
lea rcx, [rsp + 0x78]
call fcn.140043d30
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x70], rax
mov rcx, qword [rsp + 0x70]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0x10]
mov dword [rsp + rdx + 0x6c], r8d
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x18], rax
lea rcx, [rbp + 0x18]
call fcn.1402451c4
nop
movzx eax, bl
jmp 0x14003e7db
xor al, al
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.140260e40
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
test dl, 4
je 0x14003e810
lea rbx, str.ios_base::badbit_set
jmp 0x14003e825
test dl, 2
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.140003a00
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140005450
lea rdx, [0x14033e918]
lea rcx, [rsp + 0x40]
call fcn.140263268
int3