joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f270
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, edx
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x14], eax
cmp eax, 1
je 0x40f293
test eax, eax
je 0x40f293
mov eax, 0xffffffdc
mov esp, ebp
pop ebp
ret
test dl, 0xf
je 0x40f2a1
mov eax, 0xffffffda
mov esp, ebp
pop ebp
ret
test edx, edx
je 0x40f3d3
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
test eax, eax
jne 0x40f335
mov ebx, dword [ebp + 0xc]
lea ecx, [edx - 1]
mov eax, dword [ebp + 0x10]
mov edi, ebx
shr ecx, 4
sub edi, esi
inc ecx
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
nop
mov ecx, dword [ebp - 0xc]
xor edx, edx
movups xmm2, xmmword [eax]
push esi
push eax
call fcn.0040f110
lea eax, [ebx + 0xf]
add esp, 8
cmp esi, eax
ja 0x40f307
lea eax, [esi + 0xf]
cmp eax, ebx
jb 0x40f307
mov ecx, esi
mov edx, 0x10
mov al, byte [edi + ecx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edx, 1
jne 0x40f2f7
jmp 0x40f314
movups xmm0, xmmword [esi]
movups xmm1, xmmword [ebx]
pxor xmm1, xmm0
movups xmmword [esi], xmm1
mov eax, dword [ebp - 4]
add esi, 0x10
add eax, 0x10
sub edi, 0x10
sub dword [ebp - 8], 1
movups xmmword [ebx], xmm2
mov dword [ebp - 4], eax
jne 0x40f2d0
pop edi
pop esi
pop ebx
xor eax, eax
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
dec edx
mov edi, dword [ebp + 0x10]
mov eax, ecx
sub eax, edi
shr edx, 4
inc edx
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], esi
nop dword [eax]
lea eax, [edi + 0xf]
cmp esi, eax
ja 0x40f35e
lea eax, [esi + 0xf]
cmp eax, edi
jae 0x40f36c
lea eax, [ecx + 0xf]
cmp esi, eax
ja 0x40f397
lea eax, [esi + 0xf]
cmp eax, ecx
jb 0x40f397
mov ebx, esi
mov ecx, edi
mov esi, dword [ebp - 4]
sub ebx, edi
mov edx, 0x10
nop word [eax + eax]
mov al, byte [esi + ecx]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [ebx + ecx - 1], al
sub edx, 1
jne 0x40f380
mov esi, dword [ebp - 8]
jmp 0x40f3a4
movups xmm1, xmmword [ecx]
movups xmm0, xmmword [edi]
pxor xmm1, xmm0
movups xmmword [esi], xmm1
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
push esi
push esi
call fcn.0040f110
movups xmm0, xmmword [esi]
mov ecx, dword [ebp + 0xc]
add esi, 0x10
sub dword [ebp - 4], 0x10
add esp, 8
add edi, 0x10
mov dword [ebp - 8], esi
sub dword [ebp - 0x10], 1
movups xmmword [ecx], xmm0
jne 0x40f350
pop edi
pop esi
pop ebx
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40f640
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [edx]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x429b10
push 0x429d10
xor eax, dword [esi]
mov edi, ecx
mov dword [ebp + 8], eax
lea ecx, [ebp + 8]
mov eax, dword [edx + 4]
xor eax, dword [esi + 4]
mov dword [ebp - 4], eax
mov eax, dword [edx + 8]
xor eax, dword [esi + 8]
mov dword [ebp - 8], eax
mov eax, dword [edx + 0xc]
lea edx, [ebp - 4]
xor eax, dword [esi + 0xc]
push 0x429c10
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push 0x429a10
push eax
lea eax, [ebp - 8]
push eax
call fcn.0040f550
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 4]
lea ecx, [ebp + 8]
call fcn.0040f3e0
mov ecx, dword [ebp + 0xc]
add esp, 0x20
mov eax, dword [ecx]
xor eax, dword [ebp + 8]
mov dword [edi], eax
mov eax, dword [ecx + 4]
xor eax, dword [ebp - 4]
mov dword [edi + 4], eax
mov eax, dword [ecx + 8]
xor eax, dword [ebp - 8]
mov dword [edi + 8], eax
mov eax, dword [ecx + 0xc]
xor eax, dword [ebp - 0xc]
mov dword [edi + 0xc], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40f6e0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
movzx eax, byte [ebp + 0xc]
sub esp, 0x10
push ebx
mov bl, al
shr eax, 5
push esi
and bl, 0x1f
mov esi, edx
push edi
mov edi, ecx
and eax, 0x80000003
jns 0x40f705
dec eax
or eax, 0xfffffffc
inc eax
mov edx, dword [ebp + 8]
movzx ecx, al
mov dword [ebp + 0xc], 4
mov ecx, dword [edx + ecx*4]
mov dl, bl
bswap ecx
mov dword [ebp - 4], ecx
mov cl, 0x20
sub cl, bl
neg dl
sbb dl, dl
and dl, cl
sub esi, edi
movzx ecx, dl
mov dword [ebp - 8], ecx
movzx ecx, bl
mov ebx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], esi
nop word [eax + eax]
mov edx, dword [ebp + 8]
lea edi, [edi + 4]
inc al
and al, 3
movzx ecx, al
mov esi, dword [edx + ecx*4]
mov ecx, dword [ebp - 8]
bswap esi
mov edx, esi
shr edx, cl
mov ecx, dword [ebp - 0xc]
shl ebx, cl
mov ecx, dword [ebp - 0x10]
or edx, ebx
bswap edx
mov ebx, esi
xor edx, dword [ecx + edi - 4]
sub dword [ebp + 0xc], 1
mov dword [edi - 4], edx
jne 0x40f740
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40fa00
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [ebp - 4]
push 0x429b10
push 0x429d10
mov eax, dword [esi + 4]
xor eax, dword [edx]
mov dword [ebp - 4], eax
mov eax, dword [esi + 8]
xor eax, dword [edx + 4]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0xc]
xor eax, dword [edx + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x10]
xor eax, dword [edx + 0xc]
lea edx, [ebp - 8]
push 0x429c10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push 0x429a10
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040f550
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 8]
lea ecx, [ebp - 4]
call fcn.0040f3e0
mov eax, dword [esi + 0x14]
lea edx, [ebp - 8]
xor dword [ebp - 4], eax
lea ecx, [ebp - 4]
mov eax, dword [esi + 0x18]
mov ebx, 2
xor dword [ebp - 8], eax
mov eax, dword [esi + 0x1c]
xor dword [ebp - 0xc], eax
mov eax, dword [esi + 0x20]
xor dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push 0x429c10
push 0x429a10
push 0x429b10
push 0x429d10
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040f550
movzx edi, byte [esi]
add esp, 0x38
cmp edi, ebx
jbe 0x40fb77
add esi, 0x28
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 8]
lea ecx, [ebp - 4]
call fcn.0040f3e0
mov eax, dword [esi - 4]
lea edx, [ebp - 8]
xor dword [ebp - 4], eax
lea ecx, [ebp - 4]
mov eax, dword [esi]
xor dword [ebp - 8], eax
mov eax, dword [esi + 4]
xor dword [ebp - 0xc], eax
mov eax, dword [esi + 8]
xor dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push 0x429b10
push 0x429d10
push 0x429c10
push 0x429a10
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040f550
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 8]
lea ecx, [ebp - 4]
call fcn.0040f3e0
mov eax, dword [esi + 0xc]
lea edx, [ebp - 8]
xor dword [ebp - 4], eax
lea ecx, [ebp - 4]
mov eax, dword [esi + 0x10]
add ebx, 2
xor dword [ebp - 8], eax
mov eax, dword [esi + 0x14]
xor dword [ebp - 0xc], eax
mov eax, dword [esi + 0x18]
xor dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push 0x429c10
push 0x429a10
push 0x429b10
push 0x429d10
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040f550
add esp, 0x40
lea esi, [esi + 0x20]
cmp ebx, edi
jl 0x40fac0
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
add ebx, ebx
mov edi, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
xor edi, dword [esi + ebx*8 + 4]
xor edx, dword [eax + ebx*8 + 0xc]
xor ecx, dword [eax + ebx*8 + 0x10]
mov esi, dword [ebp - 8]
xor esi, dword [eax + ebx*8 + 8]
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
mov dword [eax + 4], esi
pop esi
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40fbb0
Capabilities:
Encode data using xor
Manually build aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x42e00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
mov edx, 1
nop dword [eax]
mov al, dl
mov dword [ebp + esi*4 - 0x804], edx
add al, al
mov dword [ebp + edx*4 - 0x404], esi
movzx ecx, al
movzx eax, dl
and dl, 0x80
xor ecx, eax
movzx eax, dl
neg eax
sbb eax, eax
inc esi
and eax, 0x1b
xor ecx, eax
mov edx, ecx
cmp esi, 0x100
jl 0x40fbd0
mov edx, 1
mov esi, 0x431150
nop
mov eax, edx
mov dword [esi], edx
and al, 0x80
movzx ecx, al
neg ecx
sbb ecx, ecx
add dl, dl
and ecx, 0x1b
movzx edx, dl
add esi, 4
xor edx, ecx
cmp esi, 0x431178
jl 0x40fc10
mov ecx, 1
mov byte [0x430b50], 0x63
mov byte [0x4310b3], 0
mov dword [ebp - 0x808], ecx
nop dword [eax + eax]
mov ecx, dword [ebp + ecx*4 - 0x404]
lea eax, [ebp - 0x408]
shl ecx, 2
sub eax, ecx
mov ebx, dword [eax]
mov ecx, ebx
sar ecx, 7
lea eax, [ebx + ebx]
or ecx, eax
movzx ecx, cl
mov al, cl
xor ebx, ecx
add al, al
shr ecx, 7
movzx edx, al
or edx, ecx
xor ebx, edx
mov al, dl
add al, al
mov dword [ebp - 0x80c], ebx
movzx ebx, al
shr edx, 7
or ebx, edx
mov al, bl
add al, al
movzx ecx, al
mov eax, ebx
shr eax, 7
or ecx, eax
mov eax, dword [ebp - 0x80c]
xor ecx, 0x63
xor ecx, ebx
xor eax, ecx
mov ecx, dword [ebp - 0x808]
mov byte [ecx + 0x430b50], al
mov byte [eax + 0x431050], cl
inc ecx
mov dword [ebp - 0x808], ecx
cmp ecx, 0x100
jl 0x40fc50
mov ebx, 0xff
xor edi, edi
mov dword [ebp - 0x80c], ebx
nop dword [eax]
mov cl, byte [edi + 0x430b50]
movzx esi, cl
mov eax, esi
and al, 0x80
movzx edx, al
neg edx
sbb edx, edx
add cl, cl
movzx eax, cl
and edx, 0x1b
xor edx, eax
movzx ecx, byte [edi + 0x431050]
mov eax, edx
xor eax, esi
shl eax, 8
xor eax, esi
shl eax, 8
xor eax, esi
shl eax, 8
xor eax, edx
mov dword [edi*4 + 0x432578], eax
rol eax, 8
mov dword [edi*4 + 0x432178], eax
rol eax, 8
mov dword [edi*4 + 0x431578], eax
rol eax, 8
mov dword [edi*4 + 0x431178], eax
test ecx, ecx
je 0x40fda1
mov ecx, dword [ebp + ecx*4 - 0x404]
mov eax, dword [ebp - 0x3cc]
add eax, ecx
cdq
idiv ebx
mov eax, dword [ebp - 0x3e0]
add eax, ecx
mov esi, dword [ebp + edx*4 - 0x804]
cdq
idiv ebx
mov eax, dword [ebp - 0x3d0]
add eax, ecx
mov ebx, dword [ebp + edx*4 - 0x804]
cdq
idiv dword [ebp - 0x80c]
mov eax, dword [ebp + edx*4 - 0x804]
mov dword [ebp - 0x808], eax
mov eax, dword [ebp - 0x3d8]
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
mov eax, dword [ebp + edx*4 - 0x804]
jmp 0x40fdad
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x808], ebx
xor eax, eax
shl eax, 8
xor eax, dword [ebp - 0x808]
shl eax, 8
xor eax, ebx
mov ebx, 0xff
shl eax, 8
xor eax, esi
mov dword [edi*4 + 0x431d78], eax
rol eax, 8
mov dword [edi*4 + 0x431978], eax
rol eax, 8
mov dword [edi*4 + 0x432978], eax
rol eax, 8
mov dword [edi*4 + 0x430c50], eax
inc edi
cmp edi, 0x100
jl 0x40fce0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412408
mov esp, ebp
pop ebp
ret
Function at 0x411d10
Capabilities:
Decrypt data using aes via x86 extensions
Encrypt data using aes via x86 extensions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
mov eax, edx
mov dword [esp + 0xc], eax
push esi
push edi
mov edi, ecx
cmp eax, 1
je 0x411d39
test eax, eax
je 0x411d39
mov eax, 0xffffffdf
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x430934], 0
jne 0x411d78
mov eax, 1
xor ecx, ecx
push ebx
cpuid
mov esi, ebx
pop ebx
mov dword [0x430b3c], eax
mov dword [0x430b40], esi
mov dword [0x430b44], ecx
mov dword [0x430b48], edx
mov dword [0x430b38], ecx
mov dword [0x430934], 1
jmp 0x411d7e
mov ecx, dword [0x430b38]
mov dword [esp + 0x10], ecx
test ecx, 0x2000000
je 0x411d9e
lea eax, [edi - 8]
shr eax, 2
and eax, 3
je 0x411d9e
mov esi, 4
sub esi, eax
jmp 0x411da0
xor esi, esi
mov edx, dword [edi + 4]
cmp esi, edx
je 0x411dcb
mov eax, dword [edi]
lea ecx, [edi + 8]
inc eax
lea ecx, [ecx + esi*4]
add edx, 2
shl eax, 4
push eax
lea eax, [edi + edx*4]
push eax
push ecx
call fcn.00415060
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov dword [edi + 4], esi
cmp dword [0x430934], 0
jne 0x411e08
mov eax, 1
xor ecx, ecx
push ebx
cpuid
mov esi, ebx
pop ebx
mov dword [0x430b3c], eax
mov dword [0x430b40], esi
mov dword [0x430b44], ecx
mov dword [0x430b48], edx
mov dword [0x430b38], ecx
mov dword [0x430934], 1
test ecx, 0x2000000
je 0x411e81
mov eax, dword [edi + 4]
lea ecx, [edi + eax*4]
mov eax, dword [ebp + 8]
movups xmm0, xmmword [eax]
mov eax, dword [edi]
dec eax
pxor xmm0, xmmword [ecx + 8]
add ecx, 0x18
cmp dword [esp + 0x14], 0
jne 0x411e53
test eax, eax
je 0x411e3f
aesdec xmm0, xmmword [ecx]
add ecx, 0x10
sub eax, 1
jne 0x411e32
mov eax, dword [ebp + 0xc]
aesdeclast xmm0, xmmword [ecx]
movups xmmword [eax], xmm0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x411e6d
nop word [eax + eax]
aesenc xmm0, xmmword [ecx]
add ecx, 0x10
sub eax, 1
jne 0x411e60
mov eax, dword [ebp + 0xc]
aesenclast xmm0, xmmword [ecx]
movups xmmword [eax], xmm0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x14], 1
mov ecx, edi
push dword [ebp + 0xc]
mov edx, dword [ebp + 8]
jne 0x411e9f
call fcn.00411280
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004117d0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411eb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, edx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], eax
cmp eax, 1
je 0x411ed0
test eax, eax
je 0x411ed0
mov eax, 0xffffffdf
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
test dl, 0xf
je 0x411ee1
mov eax, 0xffffffde
mov esp, ebp
pop ebp
ret
push ebx
push esi
push edi
test edx, edx
je 0x41201d
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x411f79
mov ebx, dword [ebp + 0xc]
mov edi, ebx
mov eax, dword [ebp + 0x10]
sub edi, esi
mov dword [ebp - 4], eax
movups xmm0, xmmword [eax]
push esi
push eax
xor edx, edx
movups xmmword [ebp - 0x20], xmm0
call fcn.00411d10
add esp, 8
test eax, eax
jne 0x41201f
lea eax, [ebx + 0xf]
cmp esi, eax
ja 0x411f44
lea eax, [esi + 0xf]
cmp eax, ebx
jb 0x411f44
mov eax, esi
mov edx, 0x10
mov cl, byte [edi + eax]
lea eax, [eax + 1]
xor byte [eax - 1], cl
sub edx, 1
jne 0x411f34
jmp 0x411f51
movups xmm0, xmmword [esi]
movups xmm1, xmmword [ebx]
pxor xmm1, xmm0
movups xmmword [esi], xmm1
mov eax, dword [ebp - 4]
add esi, 0x10
movups xmm0, xmmword [ebp - 0x20]
mov ecx, dword [ebp - 8]
add eax, 0x10
sub edi, 0x10
mov dword [ebp - 4], eax
sub dword [ebp + 8], 0x10
movups xmmword [ebx], xmm0
jne 0x411f04
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov ebx, ecx
mov edi, dword [ebp + 0x10]
sub ebx, edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], esi
nop dword [eax]
lea eax, [edi + 0xf]
cmp esi, eax
ja 0x411f9e
lea eax, [esi + 0xf]
cmp eax, edi
jae 0x411fac
lea eax, [ecx + 0xf]
cmp esi, eax
ja 0x411fda
lea eax, [esi + 0xf]
cmp eax, ecx
jb 0x411fda
mov ebx, esi
mov ecx, edi
mov esi, dword [ebp - 4]
sub ebx, edi
mov edx, 0x10
nop word [eax + eax]
mov al, byte [esi + ecx]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [ebx + ecx - 1], al
sub edx, 1
jne 0x411fc0
mov esi, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
jmp 0x411fe7
movups xmm1, xmmword [ecx]
movups xmm0, xmmword [edi]
pxor xmm1, xmm0
movups xmmword [esi], xmm1
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
push esi
push esi
call fcn.00411d10
add esp, 8
test eax, eax
jne 0x41201f
movups xmm0, xmmword [esi]
mov ecx, dword [ebp + 0xc]
sub ebx, 0x10
add esi, 0x10
mov dword [ebp - 4], ebx
add edi, 0x10
mov dword [ebp - 0xc], esi
sub dword [ebp + 8], 0x10
movups xmmword [ecx], xmm0
jne 0x411f90
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41dce2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041d993

Function at 0x41dced
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041db1d
Function at 0x401123
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [esp + 0x14]
lea eax, [esp + 0x18]
mov edi, ecx
push eax
call fcn.0040117e
xor ebp, ebp
pop ecx
pop ecx
mov ebx, dword [eax]
mov dword [eax], ebp
cmp dword [esp + 0x14], ebp
je 0x401152
push 4
push dword [esp + 0x18]
call fcn.004021ef
pop ecx
pop ecx
lea esi, [edi + 4]
push esi
push ebp
push ebx
push 0x401107
push ebp
push ebp
call fcn.004073c7
add esp, 0x18
mov dword [edi], eax
test eax, eax
je 0x401174
pop edi
pop esi
pop ebp
pop ebx
ret 4
push 6
mov dword [esi], ebp
call fcn.00401f1c
int3

Function at 0x40157f
Capabilities:
Encode data using xor

Disassembly:
push ebp
xor ebp, ebp
push esi
mov esi, ebp
cmp dword [esp + 0x10], esi
jbe 0x4016ad
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_InitializeAcl]
push edi
mov edi, dword [esp + 0x14]
push ebp
push ebp
push ebp
call ebx
xor byte [esi + edi], 0xc3
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x86
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x4f
push ebp
push ebp
push ebp
call ebx
xor byte [esi + edi], 0xa6
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0xb7
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0xa2
push ebp
push ebp
push ebp
call ebx
xor byte [esi + edi], 0x78
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x87
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0xb1
push ebp
push ebp
push ebp
call ebx
xor byte [esi + edi], 0xdd
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x6d
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0xa4
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0xa4
push ebp
push ebp
push ebp
call ebx
xor byte [esi + edi], 0x30
push ebp
push ebp
push ebp
call ebx
xor byte [esi + edi], 0x79
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0xf7
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x3d
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0xf5
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0xc9
push ebp
push ebp
push ebp
call ebx
xor byte [esi + edi], 0xf2
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0xaf
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0xde
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0xbd
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0xb8
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x95
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x1b
push ebp
push ebp
push ebp
call ebx
xor byte [esi + edi], 0x11
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0xbb
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x99
inc esi
cmp esi, dword [esp + 0x18]
jb 0x40159b
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x8d9370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x8d938e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x902074
push ecx
mov edi, eax
call fcn.008ed198
mov esi, eax
add esp, 8
test esi, esi
jne 0x8d93cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.008ed02e
push esi
call fcn.008ecfb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x8dc850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x8dc8ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x907720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x8dc8ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.008ed1e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x8dc8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x907720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x8dc92a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.008ee082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x8dc957
mov word [eax], si
add eax, 2
push eax
call fcn.008ee030
add esp, 4
jmp 0x8dc959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x8dc8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x8dc8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x8dcff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x8dd080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x8dd0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x902458
push ecx
call fcn.008ed1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.008ed1e1
add esp, 0x10
jmp 0x8dd0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.008ed20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.008ecdff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.008dd050
mov eax, dword [0x907728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0x8dd13b
push esi
call fcn.008dcfb0
add esp, 4
mov dword [0x907728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x8dd14c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.008dcff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0x8e0440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x8e04b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x8e048e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x8e0471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x8e047e
add edx, ecx
cmp ebx, edx
jb 0x8e048a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x8e0467
xor ecx, ecx
jmp 0x8e04a2
test eax, eax
jne 0x8e0492
xor ecx, ecx
jmp 0x8e04a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.008e03c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret