joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401007
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [str.eGgc]
and dword [ebp - 8], 0
mov dword [ebp - 0x28], eax
mov eax, dword [0x4305ac]
push esi
mov esi, dword [ebx + 4]
push edi
mov edi, dword [ebx]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x30], 0x9e3779b9
call fcn.00401000
mov eax, dword [0x4305b0]
add dword [ebp - 8], 0x23f
mov dword [ebp - 0x20], eax
mov eax, dword [0x4305b4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], 0x20
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, edi
shl eax, 4
cmp dword [0x43f8ec], 0xc
mov dword [ebp - 4], eax
jne 0x401081
xor eax, eax
push eax
lea ecx, [ebp - 0x34]
push ecx
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov eax, dword [0x43f8ec]
cmp eax, 0xfa9
jne 0x40109d
mov dword [0x43f8e8], 0xedeb2e40
cmp eax, 0x3eb
jne 0x4010bf
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
and dword [0x43f840], 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
and dword [ebp - 0x14], 0
mov edx, edi
add eax, edi
shr edx, cl
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov dword [0x43f8e4], 0xf4ea3dee
add edx, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
xor dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
xor eax, edx
sub esi, eax
mov eax, esi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov edx, esi
shr edx, cl
add eax, esi
mov dword [ebp - 0x18], eax
add edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x18]
xor dword [ebp - 4], eax
xor dword [ebp - 4], edx
sub edi, dword [ebp - 4]
mov eax, dword [ebp - 0x30]
sub dword [ebp - 8], eax
dec dword [ebp - 0x1c]
jne 0x401055
mov dword [ebx], edi
pop edi
mov dword [ebx + 4], esi
pop esi
leave
ret
Function at 0x402120
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x470558], 0
je 0x402186
push esi
mov esi, dword [ebp + 8]
xor edx, edx
mov cl, byte [edx + esi]
movzx eax, cl
cmp cl, byte [eax + 0x461900]
jne 0x402180
inc edx
cmp edx, 8
jb 0x402132
mov ecx, 0x462240
nop dword [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x40215e
mov eax, dword [ecx + 4]
cmp eax, dword [esi + 4]
je 0x402178
add ecx, 8
cmp ecx, 0x4622c0
jl 0x402150
mov edx, dword [ebp + 0xc]
mov ecx, esi
call fcn.00401ee0
xor eax, eax
pop esi
pop ebp
ret
mov eax, 0xfffffffe
pop esi
pop ebp
ret
or eax, 0xffffffff
pop esi
pop ebp
ret
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.00401ee0
xor eax, eax
pop ebp
ret

Function at 0x4021a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x4021ae
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not eax
cmp esi, 8
jb 0x40226d
push edi
mov edi, esi
shr edi, 3
movzx ecx, byte [edx]
sub esi, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4622c0]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4622c0]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4622c0]
movzx ecx, byte [edx + 3]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4622c0]
movzx ecx, byte [edx + 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4622c0]
movzx ecx, byte [edx + 5]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4622c0]
movzx ecx, byte [edx + 6]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4622c0]
movzx ecx, byte [edx + 7]
add edx, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4622c0]
sub edi, 1
jne 0x4021c6
pop edi
test esi, esi
je 0x40228b
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4622c0]
sub esi, 1
jne 0x402271
not eax
pop esi
pop ebp
ret

Function at 0x4022c0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
pop ebp
ret
Function at 0x402c80
Capabilities:
Get disk information
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x46b880]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x10
lea eax, [ebp - 0x24]
mov dword [ebp - 0x42c], 0
push eax
push str.SystemDrive
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x430], 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x402d3d
lea edi, [ebp - 0x24]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x402cd0
mov eax, dword [0x4658d0]
mov dword [edi], eax
lea eax, [ebp - 0x224]
push 0xff
push eax
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x428]
push eax
push 0xff
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x402d3d
mov eax, dword [ebp - 0x428]
test eax, eax
js 0x402d3d
push eax
push 0x465900
push 0x470560
call fcn.00402bd0
add esp, 0xc
jmp 0x402d75
movups xmm0, xmmword [0x4658d4]
mov ax, word [0x4658fc]
mov word [0x470588], ax
movups xmmword [0x470560], xmm0
movups xmm0, xmmword [0x4658e4]
movups xmmword [0x470570], xmm0
movq xmm0, qword [0x4658f4]
movq qword [0x470580], xmm0
mov edi, 0x470560
add edi, 0xfffffffe
nop dword [eax]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x402d80
mov ecx, 0x13
mov esi, str.fc_1A2Brown3Fox4Jumped5Over6A7Lazy8Dog
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 4]
mov eax, 0x470560
xor ecx, ebp
movsw word es:[edi], word [esi]
pop edi
pop esi
call fcn.00423dc5
mov esp, ebp
pop ebp
ret

Function at 0x4032b0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 4], ecx
mov edx, dword [esi + 0x9c]
cmp edx, 0xffffffff
jne 0x4032d1
pop esi
or eax, edx
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [edx + ebx]
cmp eax, 0x40
jbe 0x403340
push edi
lea edi, [esi + 0x40]
cmp edx, 0x40
ja 0x403326
mov dword [edi + 4], 0
mov ecx, esi
mov dword [edi], 0
mov dword [edi + 8], 0x67452301
mov dword [edi + 0xc], 0xefcdab89
mov dword [edi + 0x10], 0x98badcfe
mov dword [edi + 0x14], 0x10325476
mov dword [edi + 0x18], 0xc3d2e1f0
mov edx, dword [esi + 0x9c]
push edi
call fcn.00405470
mov ecx, dword [ebp - 4]
add esp, 4
push edi
mov edx, ebx
call fcn.00405470
add dword [esi + 0x9c], ebx
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push ecx
lea eax, [edx + esi]
push eax
call fcn.00425130
add dword [esi + 0x9c], ebx
add esp, 0xc
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403360
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov ecx, dword [edi + 0x9c]
lea esi, [edi + 0x40]
cmp ecx, 0xffffffff
je 0x40343b
cmp ecx, 0x40
jbe 0x4033a0
mov edx, esi
mov ecx, edi
call fcn.00405690
mov dword [edi + 0x9c], 0x14
mov ecx, 0x14
mov eax, 0x40
sub eax, ecx
push eax
lea eax, [ecx + edi]
push 0
push eax
call fcn.00425c30
movups xmm0, xmmword [edi]
mov edx, 0x40
mov ecx, edi
movaps xmm2, xmmword [str.6666666666666666jjjjjjjjjjjjjjjj]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [edi], xmm1
push esi
movups xmm0, xmmword [edi + 0x10]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [edi + 0x10], xmm1
movups xmm0, xmmword [edi + 0x20]
pxor xmm0, xmm2
movups xmmword [edi + 0x20], xmm0
movups xmm0, xmmword [edi + 0x30]
pxor xmm2, xmm0
movups xmmword [edi + 0x30], xmm2
mov dword [esi + 4], 0
mov dword [esi], 0
mov dword [esi + 8], 0x67452301
mov dword [esi + 0xc], 0xefcdab89
mov dword [esi + 0x10], 0x98badcfe
mov dword [esi + 0x14], 0x10325476
mov dword [esi + 0x18], 0xc3d2e1f0
call fcn.00405470
mov eax, dword [ebp - 4]
add esp, 0x10
mov dword [edi + 0x9c], 0xffffffff
test ebx, ebx
je 0x40344c
push esi
mov edx, ebx
mov ecx, eax
call fcn.00405470
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403460
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x46b880]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 0x1c], ecx
cmp dword [edi + 0x9c], 0xffffffff
je 0x403490
push edi
xor edx, edx
xor ecx, ecx
call fcn.00403360
add esp, 4
push esi
lea esi, [edi + 0x40]
mov edx, esi
lea ecx, [ebp - 0x18]
call fcn.00405690
movups xmm0, xmmword [edi]
mov edx, 0x40
mov ecx, edi
movaps xmm2, xmmword [0x465b70]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [edi], xmm1
push esi
movups xmm0, xmmword [edi + 0x10]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [edi + 0x10], xmm1
movups xmm0, xmmword [edi + 0x20]
pxor xmm0, xmm2
movups xmmword [edi + 0x20], xmm0
movups xmm0, xmmword [edi + 0x30]
pxor xmm2, xmm0
movups xmmword [edi + 0x30], xmm2
mov dword [esi + 4], 0
mov dword [esi], 0
mov dword [esi + 8], 0x67452301
mov dword [esi + 0xc], 0xefcdab89
mov dword [esi + 0x10], 0x98badcfe
mov dword [esi + 0x14], 0x10325476
mov dword [esi + 0x18], 0xc3d2e1f0
call fcn.00405470
push esi
mov edx, 0x14
lea ecx, [ebp - 0x18]
call fcn.00405470
add esp, 8
lea ecx, [ebp - 0x18]
mov edx, esi
call fcn.00405690
pop esi
test ebx, ebx
je 0x403546
push ebx
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
call fcn.00425130
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00423dc5
mov esp, ebp
pop ebp
ret
Function at 0x403560
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x46b880]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0xa0
mov dword [ebp - 0x21c], eax
mov esi, edx
lea eax, [ebp - 0xcc]
mov edi, ecx
push 0
push eax
call fcn.00425c30
lea eax, [ebp - 0xcc]
mov edx, esi
push eax
mov ecx, edi
call fcn.004032b0
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xcc]
mov ecx, 0x28
lea edi, [ebp - 0x20c]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.00403360
mov ecx, dword [ebp + 0x18]
mov eax, 0xcccccccd
dec ecx
add esp, 0x14
mul ecx
mov eax, edx
shr eax, 4
add eax, 1
mov dword [ebp - 0x220], eax
je 0x403722
mov edx, 1
mov dword [ebp - 0x214], 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x210], edx
mov dword [ebp - 0x218], eax
nop dword [eax]
mov eax, edx
mov dword [ebp - 0x1c], 0
shr eax, 0x18
lea esi, [ebp - 0x20c]
mov byte [ebp - 0x18], al
lea edi, [ebp - 0x16c]
mov eax, edx
mov byte [ebp - 0x15], dl
shr eax, 0x10
mov ecx, 0x28
mov byte [ebp - 0x17], al
xorps xmm0, xmm0
mov eax, edx
mov ebx, 0x3e8
shr eax, 8
mov byte [ebp - 0x16], al
mov eax, 4
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x16c]
mov edx, eax
push ecx
lea ecx, [ebp - 0x18]
movups xmmword [ebp - 0x230], xmm0
call fcn.00403360
lea eax, [ebp - 0x16c]
mov edx, 0x14
push eax
lea ecx, [ebp - 0x18]
call fcn.00403460
movups xmm0, xmmword [ebp - 0x18]
add esp, 8
mov eax, 0x10
movups xmm1, xmmword [ebp - 0x230]
pxor xmm1, xmm0
movups xmmword [ebp - 0x2c], xmm1
nop dword [eax]
mov cl, byte [ebp + eax - 0x18]
xor byte [ebp + eax - 0x2c], cl
inc eax
cmp eax, 0x14
jb 0x4036a0
lea esi, [ebp - 0xcc]
mov ecx, 0x28
lea edi, [ebp - 0x16c]
rep movsd dword es:[edi], dword [esi]
sub ebx, 1
je 0x4036cc
movups xmm0, xmmword [ebp - 0x2c]
jmp 0x403652
mov edi, dword [ebp - 0x214]
xor edx, edx
mov ebx, dword [ebp - 0x218]
mov ecx, edi
mov esi, dword [ebp - 0x21c]
cmp ecx, dword [ebp + 0x18]
jae 0x4036f4
mov al, byte [ebx + ecx]
inc edx
mov byte [ecx + esi], al
inc ecx
cmp edx, 0x14
jb 0x4036e2
mov edx, dword [ebp - 0x210]
add edi, 0x14
inc edx
mov dword [ebp - 0x214], edi
sub ebx, 0x14
mov dword [ebp - 0x210], edx
mov dword [ebp - 0x218], ebx
lea eax, [edx - 1]
cmp eax, dword [ebp - 0x220]
jb 0x403610
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00423dc5
mov esp, ebp
pop ebp
ret
Function at 0x4052c0
Capabilities:
Encode data using xor
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
lea edi, [ecx + 0x1c]
xor esi, esi
mov edx, dword [edi]
lea edi, [edi + 4]
mov eax, edx
rol edx, 8
ror eax, 8
and edx, 0xff00ff
and eax, 0xff00ff00
or eax, edx
mov dword [ebp + esi*4 - 0x154], eax
inc esi
cmp esi, 0x10
jb 0x4052d4
lea eax, [ebp - 0x14c]
mov edx, 0x40
mov ecx, dword [eax + 0x2c]
lea eax, [eax + 4]
xor ecx, dword [eax + 0x14]
xor ecx, dword [eax - 0xc]
xor ecx, dword [eax - 4]
rol ecx, 1
mov dword [eax + 0x34], ecx
sub edx, 1
jne 0x405306
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 8], edx
mov eax, dword [ecx + 8]
mov esi, eax
mov ebx, dword [ecx + 0xc]
mov edi, dword [ecx + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ecx + 0x14]
mov ecx, dword [ecx + 0x18]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
nop
mov ecx, ebx
mov edx, esi
not ecx
rol esi, 5
and ecx, eax
mov eax, edi
and eax, ebx
xor ecx, eax
mov eax, dword [ebp - 0xc]
add esi, ecx
add eax, 0x5a827999
mov ecx, dword [ebp - 8]
add esi, dword [ebp + ecx*4 - 0x154]
inc ecx
add esi, eax
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov eax, edi
mov edi, ebx
mov dword [ebp - 4], eax
ror edi, 2
mov ebx, edx
cmp ecx, 0x14
jb 0x405340
mov edx, 0x14
xor eax, edi
mov ecx, esi
xor eax, ebx
rol esi, 5
add esi, eax
mov eax, dword [ebp - 0xc]
add esi, dword [ebp + edx*4 - 0x154]
add eax, 0x6ed9eba1
add esi, eax
inc edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov eax, edi
mov edi, ebx
mov dword [ebp - 4], eax
ror edi, 2
mov ebx, ecx
cmp edx, 0x28
jb 0x405387
mov dword [ebp - 8], 0x28
mov ecx, edi
mov edx, esi
xor ecx, ebx
rol esi, 5
add esi, dword [ebp - 0xc]
and ecx, eax
mov eax, edi
and eax, ebx
xor ecx, eax
mov eax, dword [ebp - 8]
add ecx, 0x8f1bbcdc
add ecx, dword [ebp + eax*4 - 0x154]
mov eax, edi
mov edi, ebx
add esi, ecx
mov ecx, dword [ebp - 4]
mov ebx, edx
mov edx, dword [ebp - 8]
inc edx
ror edi, 2
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
cmp edx, 0x3c
jb 0x4053c2
mov edx, 0x3c
nop dword [eax + eax]
xor eax, edi
mov dword [ebp - 8], esi
xor eax, ebx
rol esi, 5
add eax, 0xca62c1d6
add esi, ecx
add eax, dword [ebp + edx*4 - 0x154]
inc edx
mov ecx, dword [ebp - 4]
add esi, eax
mov eax, edi
mov edi, ebx
mov ebx, dword [ebp - 8]
ror edi, 2
mov dword [ebp - 4], eax
cmp edx, 0x50
jb 0x405410
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], ecx
add eax, esi
mov ecx, dword [ebp - 0x10]
add dword [ecx + 0x10], edi
mov dword [ecx + 8], eax
mov eax, ebx
add dword [ecx + 0xc], eax
mov eax, dword [ebp - 4]
add dword [ecx + 0x14], eax
mov eax, dword [ebp - 0xc]
add dword [ecx + 0x18], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408426
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x46b880]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x40856f
lea eax, [ebp - 0x41c]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
call fcn.00423ef0
mov eax, esp
mov dword [ebp - 0x418], eax
test eax, eax
je 0x40856f
push eax
push edi
xor ebx, ebx
push ebx
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40856f
mov esi, str.040904B0
lea edi, [ebp - 0x20c]
push 0x1f6
lea eax, [ebp - 0x1fa]
push ebx
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.00425c30
mov esi, dword [ebp - 0x418]
lea eax, [ebp - 0x414]
add esp, 0xc
push eax
lea eax, [ebp - 0x410]
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x408517
mov eax, dword [ebp - 0x414]
mov ecx, dword [ebp - 0x410]
shr eax, 2
test eax, eax
je 0x4084ec
mov edx, 0x409
cmp word [ecx], dx
je 0x4084ec
add ecx, 4
inc ebx
cmp ebx, eax
jb 0x4084da
cmp ebx, eax
cmovae ecx, dword [ebp - 0x410]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push str._04x_04x
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00408fc5
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
push str.StringFileInfo_sCompanyName
lea eax, [ebp - 0x40c]
push 0x100
push eax
call fcn.00408fc5
add esp, 0x10
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x40c]
push eax
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40856f
push 0x44dcb0
push dword [ebp - 0x410]
call fcn.0042d2c3
neg eax
pop ecx
sbb eax, eax
pop ecx
inc eax
jmp 0x408571
xor eax, eax
lea esp, [ebp - 0x428]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00423dc5
mov esp, ebp
pop ebp
ret

Function at 0x409203
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x46b880]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.00425c30
add esp, 0xc
lea eax, [ebp - 0x414]
mov esi, 0x104
push esi
push eax
push 0x46b028
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call fcn.004192eb
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 8]
call fcn.00417e53
add esp, 0xc
test al, al
je 0x40928f
push esi
lea eax, [ebp - 0x20c]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0042d3c8
pop ecx
pop ecx
test eax, eax
jne 0x409295
mov bl, 1
jmp 0x409295
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.00423dc5
mov esp, ebp
pop ebp
ret
Function at 0x409952
Capabilities:
Enumerate process modules
Enumerate processes on remote desktop session host
Find taskbar

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.00423f50
mov eax, dword [0x46b880]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x1018]
push esi
push eax
mov dword [ebp - 0x1010], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
xor esi, esi
test eax, eax
je 0x4099d7
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x1018], eax
jne 0x4099d7
push esi
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x4099d7
lea ecx, [ebp - 0x1014]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 0x1014]
call fcn.00409203
pop ecx
test al, al
je 0x4099d7
mov eax, dword [ebp - 0x1014]
mov dword [ebx], eax
xor eax, eax
inc eax
jmp 0x409afa
push edi
lea eax, [ebp - 0x1008]
mov dword [ebp - 0x1008], esi
push eax
lea eax, [ebp - 0x100c]
push eax
push 1
push esi
push esi
call sub.WTSAPI32.dll_WTSEnumerateProcessesW
test eax, eax
je 0x409a77
mov eax, dword [ebp - 0x1008]
mov edi, esi
test eax, eax
je 0x409a67
mov edx, dword [ebp + 8]
mov ebx, esi
mov ecx, dword [ebp - 0x100c]
cmp dword [ebx + ecx], edx
jne 0x409a46
push str.explorer.exe
push dword [ebx + ecx + 8]
call fcn.0042d3c8
pop ecx
pop ecx
test eax, eax
jne 0x409a3d
mov eax, dword [ebp - 0x100c]
push dword [ebx + eax + 4]
call fcn.00409203
pop ecx
test al, al
jne 0x409a50
mov eax, dword [ebp - 0x1008]
mov edx, dword [ebp + 8]
inc edi
add ebx, 0x10
cmp edi, eax
jb 0x409a0a
jmp 0x409a67
mov eax, dword [ebp - 0x100c]
add edi, edi
mov ecx, dword [ebp - 0x1010]
xor esi, esi
inc esi
mov eax, dword [eax + edi*8 + 4]
mov dword [ecx], eax
push dword [ebp - 0x100c]
call sub.WTSAPI32.dll_WTSFreeMemory
jmp 0x409af7
lea eax, [ebp - 0x1008]
mov dword [ebp - 0x1008], esi
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x409af9
test dword [ebp - 0x1008], 0xfffffffc
mov edi, esi
jbe 0x409af7
lea eax, [ebp - 0x1010]
push eax
push dword [ebp + edi*4 - 0x1004]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x409adb
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x1010], eax
jne 0x409adb
push dword [ebp + edi*4 - 0x1004]
call fcn.00409203
pop ecx
test al, al
jne 0x409aeb
mov eax, dword [ebp - 0x1008]
inc edi
shr eax, 2
cmp edi, eax
jb 0x409aa7
jmp 0x409af7
mov ecx, dword [ebp + edi*4 - 0x1004]
xor esi, esi
inc esi
mov dword [ebx], ecx
mov eax, esi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00423dc5
mov esp, ebp
pop ebp
ret
Function at 0x409bdf
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [ebp - 8]
xor ebx, ebx
push eax
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push 8
push dword [ebp + 8]
mov dword [ebp - 8], ebx
push ebx
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x409c69
mov eax, dword [ebp - 4]
test eax, eax
je 0x409c69
cmp dword [ebp - 8], ebx
je 0x409c69
mov edi, dword [eax]
push eax
call sub.WTSAPI32.dll_WTSFreeMemory
xor esi, esi
inc esi
cmp edi, esi
jbe 0x409c2b
cmp edi, 4
je 0x409c2b
xor eax, eax
jmp 0x409c7a
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 5
push dword [ebp + 8]
push ebx
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x409c27
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x409c27
cmp dword [ebp - 8], ebx
je 0x409c27
xor eax, eax
xor ebx, ebx
cmp word [ecx], ax
push ecx
setne bl
call sub.WTSAPI32.dll_WTSFreeMemory
test byte [ebp + 0xc], 1
cmovne esi, ebx
mov eax, esi
jmp 0x409c7a
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
push dword [ebp + 8]
call fcn.00409952
pop ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40c715
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x40c725
or eax, 0xffffffff
jmp 0x40c74a
push esi
push esi
push dword [ebp + 8]
push 0x40d050
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x40c740
mov dword [ecx], eax
push 0xfffffffffffffffa
test eax, eax
pop ecx
cmove esi, ecx
mov eax, esi
pop esi
pop ebp
ret