joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10010e80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10010ead
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10010ead
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x404600
Capabilities:
Create thread

Disassembly:
sub esp, 0x2c
mov eax, dword [0x478900]
xor eax, esp
mov dword [esp + 0x28], eax
push 4
call fcn.00407e7a
add esp, 4
test eax, eax
je 0x404624
mov dword [eax], 0x404360
jmp 0x404626
xor eax, eax
lea ecx, [esp + 4]
push ecx
push 0
push eax
push 0x401c30
push 0
push 0
call fcn.0040d545
add esp, 0x18
mov dword [esp], eax
test eax, eax
je 0x4047a8
call dword [sym.imp.KERNEL32.dll_FreeConsole]
cmp dword [esp + 4], 0
je 0x4047b7
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, dword [esp + 4]
cmp ecx, eax
je 0x4047be
push 0
push ecx
push dword [esp + 8]
call fcn.00404997
add esp, 0xc
test eax, eax
jne 0x4047c5
xorps xmm0, xmm0
mov dword [esp + 0x20], eax
push str.Enter_filename:__n
movups xmmword [esp + 0x14], xmm0
push 0x479d68
movlpd qword [esp + 8], xmm0
mov dword [esp + 0x2c], 0xf
mov byte [esp + 0x18], al
call fcn.00401420
lea eax, [esp + 0x18]
push eax
push 0x479c40
call fcn.00401200
mov ecx, dword [esp + 0x30]
add esp, 0x10
test ecx, ecx
je 0x404749
cmp dword [esp + 0x24], 0xf
lea eax, [esp + 0x10]
push esi
cmova eax, dword [esp + 0x14]
push edi
push ecx
push eax
push 0x479cb8
call fcn.00401a40
mov edi, eax
add esp, 0xc
mov ecx, dword [edi]
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx + edi + 0x30]
mov esi, dword [ecx + 4]
mov ecx, esi
mov dword [esp + 0x14], esi
mov edx, dword [esi]
call dword [edx + 4]
lea eax, [esp + 0x10]
push eax
call fcn.00401c50
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0xa
mov eax, dword [edx + 0x20]
call eax
mov byte [esp + 0x10], al
test esi, esi
je 0x404735
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
test eax, eax
je 0x404735
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push dword [esp + 0x10]
mov ecx, edi
call fcn.004040b0
mov ecx, edi
call fcn.00403c10
pop edi
pop esi
mov ecx, dword [esp + 0x24]
cmp ecx, 0xf
jbe 0x40477b
mov edx, dword [esp + 0x10]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x404771
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4047cc
push ecx
push edx
call fcn.00407eaa
add esp, 8
cmp dword [esp + 4], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0xf
mov byte [esp + 0x10], 0
jne 0x4047d1
mov ecx, dword [esp + 0x28]
xor eax, eax
xor ecx, esp
call fcn.00407ebd
add esp, 0x2c
ret
push 6
mov dword [esp + 8], 0
call fcn.00404b4d
push 1
call fcn.00404b4d
push 5
call fcn.00404b4d
push 2
call fcn.00404b4d
call fcn.0040c8ef
call fcn.0040d3ad
int3
Function at 0x41625a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00415efc

Function at 0x416265
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041608b

Function at 0x41665f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00408c20
mov eax, dword [0x478900]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004150f1
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4166a1
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4167fd
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041f830
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x47a718]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041782f
mov ecx, dword [esi*4 + 0x47a718]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4167f6
cmp eax, dword [edi + ecx + 0x24]
jne 0x4167f6
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4167f6
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041782f
add esp, 0x14
test edx, edx
jl 0x4167f6
jg 0x41676c
test eax, eax
jb 0x4167f6
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4167f6
jl 0x416786
cmp dword [ebp - 0x1008], eax
ja 0x4167f6
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4167a4
test ebx, ebx
je 0x4167dd
cmp ecx, edi
jae 0x4167dd
mov al, byte [ecx]
cmp al, 0xd
jne 0x4167be
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4167ca
cmp byte [ecx + 1], 0xa
jne 0x4167ca
inc ecx
jmp 0x4167ca
movzx eax, al
movsx eax, byte [eax + 0x478bd0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4167a4
cmp edx, ebx
jne 0x4167a4
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4167fb
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00407ebd
leave
ret
Function at 0x416ccd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x47a718]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x416d0d
cmp byte [ebx], 0xa
jne 0x416d0d
or byte [eax + edi + 0x28], 4
jmp 0x416d12
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x416e10
mov al, byte [edx]
cmp al, 0x1a
je 0x416df2
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x416d41
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x416d66
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x416d70
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x416d23
jmp 0x416e10
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x416ded
cmp dword [ebp - 0xc], 0
je 0x416ded
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x47a718]
test byte [eax + edi + 0x28], 0x48
je 0x416dc7
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x416db2
mov byte [esi], dl
jmp 0x416dc3
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47a718]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x416e10
cmp byte [ebp - 1], 0xa
jne 0x416dd6
cmp esi, ebx
jne 0x416dd6
mov byte [esi], 0xa
jmp 0x416e0f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041784d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x416e10
mov byte [esi], 0xd
jmp 0x416e0f
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x47a718]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x416e0c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x416e10
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x416e19
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x47a718]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x416e5c
cmp word [esi], dx
jne 0x416e5c
or byte [edi + eax + 0x28], 4
jmp 0x416e61
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x416fb4
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x416f94
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x416ea3
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x416ed9
cmp eax, edx
jae 0x416ee5
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x416e7b
jmp 0x416fb4
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x416f90
cmp dword [ebp - 0x14], 0
je 0x416f90
mov eax, dword [ebx*4 + 0x47a718]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x416f68
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x416f31
mov word [esi], cx
jmp 0x416f64
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x47a718]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x47a718]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x47a718]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x416fb4
pop ebx
cmp word [ebp - 4], bx
jne 0x416f79
cmp esi, dword [ebp + 0xc]
jne 0x416f79
mov word [esi], bx
jmp 0x416fb1
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041784d
add esp, 0x10
cmp word [ebp - 4], bx
je 0x416fb4
push 0xd
jmp 0x416fad
mov ecx, dword [ebx*4 + 0x47a718]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x416fab
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x416fb4
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1000e6d5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x1000e6e4
pop dword [ebp - 0x24]
mov eax, 0x1000e6e4
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0xb8b11586
add dword [ebp - 0x34], 0x95a12fc5
mov dword [ebp - 0x30], 0xd16fc77
sub dword [ebp - 0x30], 0xdae3b032
mov dword [ebp - 0x2c], 0x74f50177
add dword [ebp - 0x2c], 0xd75742b7
mov dword [ebp - 0x28], 0xfc056700
sub dword [ebp - 0x28], 0xfc056700
lea eax, [ebp - 0x34]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0x8c35adcc
sub dword [ebp - 0x34], 0x17c34476
mov dword [ebp - 0x30], 0x87ce4239
add dword [ebp - 0x30], 0xb99e1f3c
mov dword [ebp - 0x2c], 0xb1b1da7e
sub dword [ebp - 0x2c], 0x4e426e12
mov dword [ebp - 0x28], 0x952d69ff
sub dword [ebp - 0x28], 0x952d69ff
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0x23926731
add eax, 0xec7398e3
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x52cba
push 0
call eax
mov ecx, 0xdf007fc1
sub ecx, 0xdf004466
mov edi, eax
mov ebx, 0xecc0196a
sub ebx, 0xdcb75d6a
add ebx, dword [ebp - 0x24]
mov esi, 0xd409ea5e
sub dword [ebp - 0x20], 0x541610f5
mov edx, dword [ebx]
xor edx, esi
mov dword [ebp - 8], 0x39c0fb3e
mov dword [edi], edx
xor dword [ebp - 0x14], eax
add edi, 0x854e7c86
sub edi, 0x854e7c82
add ebx, 4
loop 0x1000e7f6
add eax, 0xcc3c8279
add eax, 0x33c45dc6
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x74515ddc
Capabilities:
Encode data using xor

Disassembly:
push esp
xor dl, byte [eax - 0x76]
add byte [eax], al
add byte [eax], al
add byte [eax], dl
and dword [eax + eax + 0x52000008], eax
add byte [eax], al
add byte [eax], ch
add eax, 0x15d0933b
cmp dl, byte [ebx + 0xc]
add byte [ebx], dh
push eax
mov bh, byte [ebx + esi + 0x50]
mov cl, byte [0x2000a28c]
xor dl, byte [eax - 0x76]
mov al, 0xf4
movsb byte es:[edi], byte [esi]
add byte [ebx], 0
add byte [eax], al
pushfd
push eax
mov al, byte [eax - 0x6375afca]
push eax
mov dh, byte [eax + 0x32]
push eax
mov dh, byte [ecx + 0x4882a268]
sub eax, 0x3be885a6
and eax, dword [ecx + eax + 0x8a5036]
add byte [eax], al
add byte [esi + esi + 0x18a50], bl
add byte [eax], al
pushfd
push eax
mov al, byte [eax - 0x1775afca]
cmp esp, dword [ebx]
test byte [eax - 0x6375afca], al
push eax
mov dh, byte [eax + eax]
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax - 0x5bffffce], ah
Function at 0x415334
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x426788
call fcn.004155f8
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x415394
cmp eax, 0xffffffff
je 0x415394
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x41538d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x41538d
cmp edx, 0x10000000
jae 0x41538d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x41538a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x415400
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x41543e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x415436
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x415440
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x415426
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x415510
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x415541
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x415541
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x415541
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x415db0
Capabilities:
Migrate process to active window station

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4285f0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
je 0x415dee
xor eax, eax
inc eax
jmp 0x415e55
push ebx
push esi
mov ebx, 0x2000000
push ebx
push edi
push 0x402fa0
call dword [sym.imp.USER32.dll_OpenWindowStationW]
test eax, eax
je 0x415e51
push eax
call dword [sym.imp.USER32.dll_SetProcessWindowStation]
push ebx
push edi
push 0
call dword [sym.imp.USER32.dll_OpenInputDesktop]
mov esi, eax
test esi, esi
jne 0x415e31
push ebx
push edi
push eax
push 0x402fb0
call dword [sym.imp.USER32.dll_OpenDesktopW]
mov esi, eax
test esi, esi
je 0x415e51
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetThreadDesktop]
push eax
call dword [sym.imp.USER32.dll_CloseDesktop]
push esi
call dword [sym.imp.USER32.dll_SetThreadDesktop]
xor eax, eax
inc eax
jmp 0x415e53
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004151b0
leave
ret 4
Function at 0x4160f4
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x41611b
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x416160
mov ecx, dword [ebp - 4]
jmp 0x416121
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 0x18]
push edi
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test esi, esi
je 0x41614e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x416160
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x1c]
jne 0x416160
xor eax, eax
inc eax
jmp 0x416162
xor eax, eax
pop esi
leave
ret 0x18

Function at 0x416167
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x41618c
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x4161bc
mov eax, dword [ebp - 4]
jmp 0x416192
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
push edi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x1c]
push 0
push dword [ebp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test esi, esi
je 0x4161b7
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
je 0x4161c0
xor eax, eax
jmp 0x4161c3
xor eax, eax
inc eax
pop esi
leave
ret 0x18
Function at 0x178c058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x178c1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x178c07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x178c06a
add dl, dl
jne 0x178c089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x178c0dc
xor eax, eax
add dl, dl
jne 0x178c096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x178c17d
add dl, dl
jne 0x178c0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x178c0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x178c0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x178c0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x178c0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x178c075
mov eax, 1
add dl, dl
jne 0x178c0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x178c0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x178c0e1
sub eax, ebx
mov ebx, 1
jne 0x178c128
mov ecx, 1
add dl, dl
jne 0x178c10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x178c119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x178c105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x178c075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x178c13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x178c14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x178c136
cmp eax, 0x7d00
jae 0x178c16d
cmp eax, 0x500
jb 0x178c168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x178c075
cmp eax, 0x7f
ja 0x178c170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x178c075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x178c19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x178c075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x801420
Capabilities:
Connect pipe
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
xor eax, eax
push edi
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
push 1
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0xc], 0
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
or dword [esi + 0x2c], 0x100
or eax, 0xffffffff
mov dword [esi + 0x3c], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x40], eax
mov eax, dword [edi + 0x1108]
push eax
lea ebx, [edi + 0x110c]
push ebx
push str.RemCom_stdout
lea edx, [ebp - 0x20]
push str..pipe_s_s_d
push 0x80ef30
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 8], edx
mov dword [ebp - 4], 1
call fcn.00801af8
mov ecx, dword [edi + 0x1108]
push ecx
push ebx
push str.RemCom_stdin
push str..pipe_s_s_d
push 0x80f038
call fcn.00801af8
mov edx, dword [edi + 0x1108]
push edx
push ebx
push str.RemCom_stderr
push str..pipe_s_s_d
push 0x80f140
call fcn.00801af8
mov edi, dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
add esp, 0x3c
lea eax, [ebp - 0xc]
push eax
push 0xffffffffffffffff
push 0
push 0
push 0xff
push 4
push 2
push 0x80ef30
call edi
lea ecx, [ebp - 0xc]
push ecx
push 0xffffffffffffffff
push 0
push 0
push 0xff
push 4
push 2
push 0x80f140
mov dword [esi + 0x3c], eax
call edi
lea edx, [ebp - 0xc]
push edx
push 0xffffffffffffffff
push 0
push 0
push 0xff
mov dword [esi + 0x40], eax
push 4
push 1
push 0x80f038
call edi
mov ecx, dword [esi + 0x3c]
mov dword [esi + 0x38], eax
cmp ecx, 0xffffffff
je 0x801575
cmp dword [esi + 0x40], 0xffffffff
je 0x801575
cmp eax, 0xffffffff
je 0x801575
mov edi, dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
push 0
push ecx
call edi
mov eax, dword [esi + 0x38]
push 0
push eax
call edi
mov ecx, dword [esi + 0x40]
push 0
push ecx
call edi
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
mov edx, dword [esi + 0x40]
push edx
call edi
mov eax, dword [esi + 0x38]
push eax
call edi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x8015a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0x44
lea eax, [ebp - 0x160]
push 0
push eax
call fcn.00801b80
lea ecx, [ebp - 0x160]
push ecx
push esi
mov dword [ebp - 0x160], 0x44
call fcn.00801420
add esp, 0x14
test eax, eax
jne 0x8015fe
pop edi
mov eax, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0080186a
mov esp, ebp
pop ebp
ret
push ebx
push esi
lea edx, [ebp - 0x108]
push 0x80b244
push edx
mov dword [edi], 0
mov dword [ebp - 0x10c], 0
call fcn.00801af8
movsx eax, byte [esi + 0x1000]
add esp, 0xc
lea ecx, [esi + 0x1000]
neg eax
sbb eax, eax
and eax, ecx
lea ecx, [ebp - 0x11c]
push ecx
lea edx, [ebp - 0x160]
push edx
push eax
mov eax, dword [esi + 0x1104]
push 0
or eax, 0x8000000
push eax
push 1
push 0
push 0
lea ecx, [ebp - 0x108]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x8016ac
mov eax, dword [ebp - 0x11c]
mov dword [edi], 0
cmp dword [esi + 0x1210], 0
mov ebx, eax
jne 0x8016b6
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x10c]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0080186a
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x10c], 1
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10c]
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.0080186a
mov esp, ebp
pop ebp
ret

Function at 0x80186a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x801874
repz ret
jmp fcn.00801db0