joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40be30
Capabilities:
Decompress data using quicklz

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x40bffe
sub esp, 0x38
mov eax, dword [esp + 0x3c]
cmp eax, 0x7000000
jle 0x40be5b
mov eax, 0x7000000
jmp 0x40be63
test eax, eax
je 0x40bfd9
mov dword [esp + 0x14], eax
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x18]
mov edx, dword [ecx + 0x94]
mov ebx, dword [ecx + 0x98]
mov dword [ecx + 0x94], ebx
mov ebp, edx
shl edx, 0x11
xor edx, ebp
mov ebp, ebx
xor ebx, edx
shr edx, 7
xor edx, ebx
mov ebx, ebp
shr ebp, 0x10
xor ebp, edx
mov dword [ecx + 0x98], ebp
lea ecx, [ebp + ebx]
shr ecx, 6
inc ecx
mov dword [esp], ecx
call fcn.00463ff0
movsd xmm0, qword [esp + 4]
movsd qword [esp + 0x28], xmm0
mov eax, dword [esp + 0x2c]
mov ecx, eax
shr eax, 0x14
and eax, 0x7ff
mov edx, eax
add eax, 0xfffffc01
mov ebx, ecx
shr ecx, 0xf
and ecx, 0x1f
mov ebp, ecx
add ecx, 1
mov esi, 0
adc esi, 0
shl ebx, 5
mov edi, dword [esp + 0x28]
shr edi, 0x1b
or edi, ebx
lea ebx, [0xdc4720]
movsd xmm0, qword [ebx + ebp*8]
test esi, esi
jne 0x40bff1
cmp ecx, 0x21
jae 0x40bfe5
movsd qword [esp + 0x18], xmm0
mov dword [esp + 0x10], edi
add edx, 0xfffffc01
mov edx, 0xffffffff
adc edx, 0
movsd xmm0, qword [ebx + ecx*8]
movsd qword [esp + 0x20], xmm0
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0045d150
movsd xmm0, qword [esp + 8]
movsd qword [esp + 0x30], xmm0
mov dword [esp + 4], 0
mov eax, dword [esp + 0x10]
and eax, 0xfffff
mov dword [esp], eax
call fcn.0045d220
movsd xmm0, qword [esp + 0x30]
movsd xmm1, qword [esp + 0x18]
addsd xmm0, xmm1
movsd xmm2, qword [esp + 0x20]
subsd xmm2, xmm1
movsd xmm1, qword [esp + 8]
mulsd xmm1, xmm2
movsd xmm2, qword [0x761e50]
mulsd xmm2, xmm1
addsd xmm0, xmm2
movsd xmm1, qword [0x761f20]
subsd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm0, xmm1
jbe 0x40bfb4
xorps xmm0, xmm0
mov eax, dword [esp + 0x14]
cvtsi2sd xmm1, eax
movsd xmm2, qword [0x761fc0]
mulsd xmm1, xmm2
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
inc eax
mov dword [esp + 0x40], eax
add esp, 0x38
ret
mov dword [esp + 0x40], 0
add esp, 0x38
ret
mov eax, ecx
mov ecx, 0x21
call fcn.004640d0
mov eax, ecx
mov ecx, 0x21
call fcn.004641a0
nop
call fcn.00462c30
jmp fcn.0040be30
Function at 0x414d20
Capabilities:
Check for software breakpoints

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x414f44
sub esp, 0x18
mov eax, dword [0xe20134]
test eax, eax
jne 0x414f2d
nop
lea eax, [0xe20120]
mov dword [esp], eax
call fcn.00409c20
mov eax, dword [0xe20124]
test eax, eax
je 0x414d69
cmp dword [eax + 8], 0xcc
jne 0x414ddf
mov edx, dword [0xe20118]
test edx, edx
jne 0x414dc1
mov dword [esp], 0x1000
mov dword [esp + 4], 0
lea eax, [0xe24c10]
mov dword [esp + 8], eax
call fcn.0040c010
mov eax, dword [esp + 0xc]
mov dword [0xe20118], eax
mov ecx, dword [0xe200dc]
mov dword [eax], ecx
mov eax, dword [0xe20118]
mov dword [0xe200dc], eax
movzx eax, byte [0xe20820]
test al, al
jne 0x414dc1
xor eax, eax
jmp 0x414ed9
mov edx, dword [0xe20118]
mov ebx, dword [edx + 4]
mov dword [0xe20118], ebx
mov ebx, dword [0xe20124]
mov dword [edx + 4], ebx
mov dword [0xe20124], edx
mov edx, dword [0xe20124]
mov eax, dword [edx + 8]
cmp eax, 0xcc
jae 0x414ec1
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
lea eax, [edx + 8]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00402140
mov eax, dword [esp + 0x10]
lea eax, [eax + eax*4]
mov ecx, dword [esp + 0x14]
lea edi, [ecx + eax*4 + 0x10]
mov edx, dword [0xe204a0]
lea ebx, [ecx + eax*4 + 0x1c]
lea ebp, [ecx + eax*4 + 0x20]
lea esi, [ecx + eax*4 + 0x14]
test edx, edx
jne 0x414e3d
mov edx, dword [esp + 0x20]
mov dword [ecx + eax*4 + 0x10], edx
jmp 0x414e4a
mov edx, eax
mov eax, dword [esp + 0x20]
call fcn.00464040
mov eax, edx
mov edx, dword [esp + 0x24]
mov dword [ecx + eax*4 + 0x18], edx
mov edx, dword [0xe204a0]
test edx, edx
jne 0x414e76
mov edx, dword [esp + 0x28]
mov dword [ecx + eax*4 + 0x1c], edx
mov edx, dword [esp + 0x2c]
mov dword [ecx + eax*4 + 0x20], edx
mov edx, dword [esp + 0x1c]
mov dword [ecx + eax*4 + 0x14], edx
jmp 0x414e97
mov edi, ebx
mov eax, dword [esp + 0x28]
call fcn.00464040
mov edi, ebp
mov eax, dword [esp + 0x2c]
call fcn.00464040
mov edi, esi
mov eax, dword [esp + 0x1c]
call fcn.00464040
nop
lea eax, [0xe20120]
mov dword [esp], eax
call fcn.00409e20
nop
lea eax, [0xe2011c]
mov dword [esp], eax
mov dword [esp + 4], 8
call fcn.004022c0
add esp, 0x18
ret
mov ecx, 0xcc
call fcn.004640d0
lea esi, [0xe20820]
xchg ebp, eax
mov byte [esi + ebx], al
xchg ebp, eax
lea eax, [ebx + 1]
cmp eax, 0x80
jge 0x414dc1
mov ecx, eax
mov eax, 0xcccccccd
imul ecx
add edx, ecx
sar edx, 2
mov eax, ecx
sar ecx, 0x1f
sub edx, ecx
lea edx, [edx + edx*4]
mov ebx, eax
sub eax, edx
cmp eax, 5
jae 0x414f23
lea edx, [0xdbccf8]
movzx ebp, byte [edx + eax]
cmp ebx, 0x80
jb 0x414ecb
mov eax, ebx
mov ecx, pe_nt_image_headers32
call fcn.004640c0
mov ecx, 5
call fcn.004640c0
lea eax, [0x6fb947]
mov dword [esp], eax
mov dword [esp + 4], 0x18
call fcn.00436590
nop
call fcn.00462c30
jmp fcn.00414d20
Function at 0x428930
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x428a4c
sub esp, 0x14
mov eax, dword [esp + 0x18]
movzx ecx, byte [eax + 6]
cmp cl, 1
je 0x4289c5
cmp cl, 2
je 0x42896d
cmp cl, 3
jne 0x428a35
mov byte [eax + 8], 1
jmp 0x428a31
mov ecx, dword [eax + 8]
mov dword [esp], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 4], ecx
call fcn.0042db60
nop
lea eax, [0xe046b8]
mov dword [esp], eax
call fcn.00409c20
nop
mov eax, dword [0xe04684]
sub eax, dword [0xe04668]
mov dword [0xe04684], eax
mov eax, dword [0xe04674]
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
mov dword [0xe04674], ecx
nop
lea eax, [0xe046b8]
mov dword [esp], eax
call fcn.00409e20
jmp 0x428a31
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov ebx, dword [eax + 0x10]
mov ebp, dword [eax + 0x14]
mov esi, dword [esp + 0x1c]
mov dword [esp], esi
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
call fcn.00414d20
nop
lea eax, [0xe046b8]
mov dword [esp], eax
call fcn.00409c20
nop
mov eax, dword [0xe0465c]
sub eax, dword [0xe04640]
mov dword [0xe0465c], eax
mov eax, dword [0xe0464c]
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
mov dword [0xe0464c], ecx
nop
nop
lea eax, [0xe046b8]
mov dword [esp], eax
call fcn.00409e20
add esp, 0x14
ret
lea eax, [0x6f6909]
mov dword [esp], eax
mov dword [esp + 4], 0x10
call fcn.00436590
nop
call fcn.00462c30
jmp fcn.00428930
Function at 0x452100
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x452287
sub esp, 0x10
mov ecx, dword [esp + 0x18]
test ecx, ecx
jbe 0x45227d
mov edx, dword [esp + 0x14]
movzx ebx, byte [edx]
test ebx, ebx
jne 0x45215c
movzx ebp, byte [esp + 0x28]
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x45215c
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov byte [esp + 0x38], 0
add esp, 0x10
ret
test ebx, 0x80
je 0x45216f
xor eax, eax
xor ebx, ebx
xor ebp, ebp
jmp 0x452252
mov eax, 1
mov ebp, ebx
and ebx, 1
neg ebx
shr ebp, 1
xor ebx, ebp
mov ebp, dword [esp + 0x24]
add dword [ebp], ebx
cmp ecx, eax
jb 0x452244
sub ecx, eax
mov ebx, dword [esp + 0x1c]
sub ebx, eax
mov ebp, ebx
neg ebx
sar ebx, 0x1f
and eax, ebx
lea ebx, [edx + eax]
test ecx, ecx
jbe 0x45223b
movzx edx, byte [edx + eax]
test edx, 0x80
je 0x4521c6
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebp
xor eax, eax
xor edx, edx
xor esi, esi
jmp 0x45220f
mov eax, 1
cmp eax, ecx
ja 0x4521fd
mov esi, dword [esp + 0x20]
add dword [esi], edx
sub ebp, eax
mov edx, ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, eax
add ebx, ebp
mov dword [esp + 0x2c], ebx
sub ecx, eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov byte [esp + 0x38], 1
add esp, 0x10
ret
call fcn.00464130
lea esi, [ecx + 7]
mov ecx, dword [esp + 8]
mov eax, ebp
mov ebp, dword [esp + 0xc]
cmp eax, ecx
jae 0x452236
movzx edi, byte [eax + ebx]
lea ebp, [eax + 1]
mov eax, edi
and edi, 0x7f
mov ecx, esi
shl edi, cl
or edx, edi
test al, 0x80
jne 0x452202
mov ecx, dword [esp + 8]
mov eax, ebp
mov ebp, dword [esp + 0xc]
jmp 0x4521cb
call fcn.004640d0
xor eax, eax
mov ecx, eax
call fcn.004640c0
call fcn.00464130
lea ebp, [ecx + 7]
mov ecx, dword [esp + 0x18]
mov eax, edi
cmp ecx, eax
jbe 0x452278
movzx esi, byte [eax + edx]
lea edi, [eax + 1]
mov eax, esi
and esi, 0x7f
mov ecx, ebp
shl esi, cl
or ebx, esi
test al, 0x80
jne 0x452249
mov ecx, dword [esp + 0x18]
mov eax, edi
jmp 0x452174
call fcn.004640d0
xor eax, eax
mov ecx, eax
call fcn.004640c0
nop
call fcn.00462c30
jmp fcn.00452100
Function at 0x459cc0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x459d5f
sub esp, 0x30
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
lea edi, [esp + 0xc]
xor eax, eax
call fcn.004642d7
lea ecx, [0x459d70]
mov dword [esp + 0xc], ecx
lea ecx, [esp + 4]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 8]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0xc]
mov dword [esp], ecx
call fcn.00462b20
mov ecx, dword [esp + 4]
mov dword [esp + 0x44], ecx
add esp, 0x30
ret
call fcn.00462c30
jmp fcn.00459cc0
Function at 0x463ef0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
movd xmm0, dword [esp + 8]
pinsrw xmm0, ebx, 4
pshufhw xmm0, xmm0, 0
movdqa xmm1, xmm0
pxor xmm0, xmmword [0xe20600]
aesenc xmm0, xmm0
cmp ebx, 0x10
jb 0x4626bb
je 0x46270e
cmp ebx, 0x20
jbe 0x462714
cmp ebx, 0x40
jbe 0x46275a
jmp 0x4627fb
test ebx, ebx
je 0x462704
add eax, 0x10
test ax, 0xff0
je 0x4626f0
movdqu xmm1, xmmword [eax - 0x10]
add ebx, ebx
pand xmm1, xmmword [ebx*8 + 0x7649e0]
pxor xmm1, xmm0
aesenc xmm1, xmm1
aesenc xmm1, xmm1
aesenc xmm1, xmm1
movd dword [edx], xmm1
ret
movdqu xmm1, xmmword [eax + ebx - 0x20]
add ebx, ebx
pshufb xmm1, xmmword [ebx*8 + 0x764be0]
jmp 0x4626d8
aesenc xmm0, xmm0
movd dword [edx], xmm0
ret
movdqu xmm1, xmmword [eax]
jmp 0x4626d8
pxor xmm1, xmmword [0xe20610]
aesenc xmm1, xmm1
movdqu xmm2, xmmword [eax]
movdqu xmm3, xmmword [eax + ebx - 0x10]
pxor xmm2, xmm0
pxor xmm3, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
aesenc xmm2, xmm2
aesenc xmm3, xmm3
aesenc xmm2, xmm2
aesenc xmm3, xmm3
pxor xmm2, xmm3
movd dword [edx], xmm2
ret
movdqa xmm2, xmm1
movdqa xmm3, xmm1
pxor xmm1, xmmword [0xe20610]
pxor xmm2, xmmword [0xe20620]
pxor xmm3, xmmword [0xe20630]
aesenc xmm1, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
movdqu xmm4, xmmword [eax]
movdqu xmm5, xmmword [eax + 0x10]
movdqu xmm6, xmmword [eax + ebx - 0x20]
movdqu xmm7, xmmword [eax + ebx - 0x10]
pxor xmm4, xmm0
pxor xmm5, xmm1
pxor xmm6, xmm2
pxor xmm7, xmm3
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
pxor xmm4, xmm6
pxor xmm5, xmm7
pxor xmm4, xmm5
movd dword [edx], xmm4
ret
movdqa xmm2, xmm1
movdqa xmm3, xmm1
pxor xmm1, xmmword [0xe20610]
pxor xmm2, xmmword [0xe20620]
pxor xmm3, xmmword [0xe20630]
aesenc xmm1, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
movdqu xmm4, xmmword [eax + ebx - 0x40]
movdqu xmm5, xmmword [eax + ebx - 0x30]
movdqu xmm6, xmmword [eax + ebx - 0x20]
movdqu xmm7, xmmword [eax + ebx - 0x10]
aesenc xmm4, xmm0
aesenc xmm5, xmm1
aesenc xmm6, xmm2
aesenc xmm7, xmm3
dec ebx
shr ebx, 6
movdqu xmm0, xmmword [eax]
movdqu xmm1, xmmword [eax + 0x10]
movdqu xmm2, xmmword [eax + 0x20]
movdqu xmm3, xmmword [eax + 0x30]
aesenc xmm4, xmm0
aesenc xmm5, xmm1
aesenc xmm6, xmm2
aesenc xmm7, xmm3
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
add eax, 0x40
dec ebx
jne 0x46285a
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
pxor xmm4, xmm6
pxor xmm5, xmm7
pxor xmm4, xmm5
movd dword [edx], xmm4
ret
cmp byte [0xe20078], 0
je 0x463f0a
mov eax, dword [esp + 4]
mov ebx, dword [esp + 0xc]
lea edx, [esp + 0x10]
jmp 0x462680
jmp fcn.00408560
Function at 0x10016976
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10080d10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x10016a08
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
push dword [eax]
mov eax, dword [ebp - 0x28]
push dword [eax]
lea eax, [ebp - 0x40]
push eax
call fcn.10014259
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
and dword [ebp - 4], 0
push dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
call fcn.10016ef9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.10016f2e
jmp 0x10016a12
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x10018910
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], 0xb02971c1
xor ecx, ecx
mov dword [ebp - 0xc], 5
mov eax, dword [ebp - 8]
cmp eax, 0xffffffff
push ebx
setge cl
xor ebx, ebx
cmp dword [ebp - 8], ecx
jl 0x1001895a
mov byte [ebp - 1], bl
cmp byte [ebp - 1], bl
je 0x10018944
call fcn.100189ba
mov byte [ebp - 1], bl
cmp byte [ebp - 1], bl
je 0x100189b5
push 0x2115
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x100189b5
mov dword [ebp - 0x10], 0x5cc25bfc
mov dword [ebp - 8], ebx
jmp 0x10018974
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0x18], 0x8dee
inc dword [ebp - 8]
cmp dword [ebp - 8], 2
jl 0x10018966
mov dword [ebp - 8], 0xfffffff8
jmp 0x100189af
push ecx
lea edx, [ebp - 0xc]
lea ecx, [ebp - 0x10]
call fcn.10018905
add esp, 4
mov dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], ebx
jl 0x100189ac
mov eax, dword [ebp - 0xc]
cmp dword [ebp + eax*4 - 0x18], ebx
jne 0x100189ac
dec dword [ebp - 0xc]
jns 0x1001899e
dec dword [ebp - 8]
cmp dword [ebp - 8], 0xffffffe5
jle 0x10018983
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001c7cf
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1001c7e7
push 0x131b
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0
push 0
push 0x19eb
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop ebp
ret
Function at 0x1002e7c4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x1002e7e8
xor eax, eax
jmp 0x1002e918
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x1002e806
xor eax, eax
jmp 0x1002e918
lea eax, [ebp - 0xc]
push eax
push 1
push dword [ebp - 8]
call fcn.1002df2e
add esp, 0xc
cmp dword [ebp - 0xc], 0
jne 0x1002e824
xor eax, eax
jmp 0x1002e918
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
push 1
call fcn.1002e372
add esp, 0x18
push 0x2a6f
lea eax, [ebp + 8]
push eax
push 0x1bae
push 1
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.1002e3f1
add esp, 0x18
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.1002e48d
add esp, 0x10
cmp dword [ebp - 0x14], 0
je 0x1002e88e
push dword [ebp - 4]
push dword [ebp - 0x14]
push 1
call fcn.10029265
add esp, 0xc
push dword [ebp - 4]
call fcn.1002dba7
pop ecx
test eax, eax
jne 0x1002e89f
xor eax, eax
jmp 0x1002e918
push 0
push dword [ebp - 4]
call fcn.10029d2b
pop ecx
pop ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0x1002e900
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x18], ecx
jne 0x1002e8ca
xor eax, eax
jmp 0x1002e918
push 0
push 1
push 0xdeadbeef
call dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x1002e8e3
xor eax, eax
jmp 0x1002e918
push 1
push 0x302e
push 0xa65
lea eax, [ebp - 4]
push eax
push 0x354f
call fcn.1002e4dd
add esp, 0x14
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x1002e911
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
jmp 0x1002e915
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x1004045b
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x1004048b
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x10040489
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
jmp 0x100404b4
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
test eax, eax
je 0x100404b4
push 0
push 0
push 0x19eb
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esp, ebp
pop ebp
ret

Function at 0x100407e7
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x1004082e
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
add eax, dword [ecx]
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx]
mov byte [ecx + eax], 0
jmp 0x1004084e
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
movzx eax, byte [eax]
test eax, eax
je 0x1004084e
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov esp, ebp
pop ebp
ret
Function at 0x10055fb0
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10085330]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x20], ax
xor ecx, ecx
mov word [ebp - 0x1e], cx
cmp dword [ebp + 8], 0xffffffff
jne 0x10055fd4
jmp 0x10056043
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x10055fe8
jmp 0x10056043
movsx ecx, word [ebp - 0x1c]
movsx edx, word [ebp - 0x1a]
imul ecx, edx
mov dword [ebp - 0x24], ecx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
push 0x20
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
test eax, eax
jne 0x10056014
jmp 0x10056043
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x24]
push eax
movzx ecx, word [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
test eax, eax
jne 0x10056035
jmp 0x10056043
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10069bdd
mov esp, ebp
pop ebp
ret

Function at 0x10059d60
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 5]
and ecx, 0xf
movzx edx, byte [0x10671086]
or ecx, edx
mov byte [ebp - 1], cl
movzx ax, byte [ebp - 1]
movzx ecx, ax
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 4]
push ecx
push 0x10671288
call fcn.10058320
add esp, 8
mov esp, ebp
pop ebp
ret 4
Function at 0x1007caa5
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10085330]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.1006d8ac
mov dword [ebp - 0x14], eax
cmp dword [0x10672274], esi
jne 0x1007cb98
push 0x800
push esi
push 0x10007bbc
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x1007cb25
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1007cc78
push esi
push esi
push 0x10007bbc
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x1007cc78
push 0x10007bd4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1007cc78
push eax
call ebx
push 0x10007be0
push edi
mov dword [0x10672274], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007bf0
push edi
mov dword [0x10672278], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007c04
push edi
mov dword [0x1067227c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10672284], eax
test eax, eax
je 0x1007cb95
push 0x10007c20
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10672280], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1007cbbd
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1007cbb0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x1007cbd2
push 4
pop eax
jmp 0x1007cc7a
cmp dword [ebp - 0x14], esi
je 0x1007cbd2
push dword [0x10672274]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1007cbb7
mov eax, dword [0x10672280]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x1007cc30
cmp dword [0x10672284], edi
je 0x1007cc30
push eax
call ebx
push dword [0x10672284]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1007cc30
test eax, eax
je 0x1007cc30
call ecx
test eax, eax
je 0x1007cc25
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x1007cc25
test byte [ebp - 8], 1
jne 0x1007cc30
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x1007cc60
mov eax, dword [0x10672278]
cmp eax, edi
je 0x1007cc5d
push eax
call ebx
test eax, eax
je 0x1007cc5d
call eax
mov esi, eax
test esi, esi
je 0x1007cc5d
mov eax, dword [0x1067227c]
cmp eax, edi
je 0x1007cc5d
push eax
call ebx
test eax, eax
je 0x1007cc5d
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x10672274]
call ebx
test eax, eax
je 0x1007cc78
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x1007cc7a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10069bdd
mov esp, ebp
pop ebp
ret