joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40fe60
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
push edi
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00403380
mov ecx, dword [eax + 4]
add esp, 4
lea edi, [eax + 0x10]
lea eax, [ecx - 1]
mov dword [ebp + 8], edi
test eax, eax
js 0x410040
cmp eax, ecx
jg 0x410040
cmp word [edi + eax*2], 0x5c
je 0x40fea8
push 0x5c
lea ecx, [ebp + 8]
call fcn.0040bdb0
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.00402250
mov ecx, eax
test ecx, ecx
je 0x410036
mov eax, dword [ecx]
push ebx
push esi
call dword [eax + 0xc]
mov ecx, dword [edi - 0xc]
mov byte [ebp + 0xb], 0
lea esi, [eax + 0x10]
xor eax, eax
mov dword [ebp - 4], esi
mov dword [ebp - 8], eax
test ecx, ecx
jle 0x40ffb0
nop dword [eax]
test eax, eax
js 0x410040
cmp eax, ecx
jg 0x410040
movzx eax, word [edi + eax*2]
cmp eax, 0x5c
je 0x40ff46
mov dword [ebp - 0x10], eax
mov eax, dword [esi - 0xc]
mov dword [ebp - 0xc], eax
lea ebx, [eax + 1]
test ebx, ebx
js 0x410040
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or ecx, eax
jge 0x40ff3a
push ebx
lea ecx, [ebp - 4]
call fcn.004024d0
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov word [esi + eax*2], cx
jmp 0x40ff8c
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040ac70
mov eax, dword [esi - 0xc]
mov dword [ebp - 0x10], eax
lea ebx, [eax + 1]
test ebx, ebx
js 0x410040
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or ecx, eax
jge 0x40ff80
push ebx
lea ecx, [ebp - 4]
call fcn.004024d0
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov edx, 0x5c
mov word [esi + eax*2], dx
cmp ebx, dword [esi - 8]
jg 0x410040
xor eax, eax
mov dword [esi - 0xc], ebx
mov word [esi + ebx*2], ax
mov eax, dword [ebp - 8]
mov ecx, dword [edi - 0xc]
inc eax
mov dword [ebp - 8], eax
cmp eax, ecx
jl 0x40fef0
mov eax, dword [ebp - 0x18]
xor ebx, ebx
test eax, eax
jle 0x40ffe4
nop dword [eax]
test ebx, ebx
js 0x410025
cmp ebx, eax
jge 0x410025
mov eax, dword [ebp - 0x1c]
push 0
push dword [eax + ebx*4]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
mov eax, dword [ebp - 0x18]
setne byte [ebp + 0xb]
inc ebx
cmp ebx, eax
jl 0x40ffc0
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40fffe
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x1c]
call fcn.0042d840
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], esi
dec esi
test esi, esi
pop esi
pop ebx
jg 0x41001d
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp + 0xb]
pop edi
mov esp, ebp
pop ebp
ret
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
push 0x80004005
call fcn.00402080
push 0x80070057
call fcn.00402080
int3
Function at 0x410250
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x4b93f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edx, dword [ebp + 8]
xorps xmm0, xmm0
movups xmmword [ebp - 0x1f], xmm0
inc ecx
mov byte [ebp - 0x20], 0
movq qword [ebp - 0xf], xmm0
mov eax, dword [edx + 0x18]
movups xmmword [ebp - 0x3b], xmm0
movq qword [ebp - 0x2b], xmm0
xor ebx, ebx
movups xmm0, xmmword [edx]
mov esi, dword [ebp + 0xc]
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x40], eax
movq xmm0, qword [edx + 0x10]
mov eax, dword [edx + 0x34]
movq qword [ebp - 0x48], xmm0
movups xmm0, xmmword [edx + 0x1c]
mov dword [ebp - 0x5c], eax
lea eax, [esi + esi*2]
shl eax, 8
movups xmmword [ebp - 0x74], xmm0
add eax, ecx
mov word [ebp - 7], 0
movq xmm0, qword [edx + 0x2c]
mov byte [ebp - 5], 0
mov byte [ebp - 0x3c], 0
mov word [ebp - 0x23], 0
mov byte [ebp - 0x21], 0
movq qword [ebp - 0x64], xmm0
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0xb4], eax
nop dword [eax]
nop word [eax + eax]
movsx ebx, byte [ebx + 0x4a4ba8]
lea eax, [ebp - 0x58]
mov esi, 0x1c
add eax, ebx
sub esi, ebx
push esi
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0044bc00
push ebx
lea eax, [ebp - 0x58]
mov edi, ebx
push eax
neg edi
lea eax, [ebp - 4]
add eax, edi
push eax
call fcn.0044bc00
lea eax, [ebp - 0x74]
add eax, ebx
push esi
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0044bc00
push ebx
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x20]
add eax, edi
push eax
call fcn.0044bc00
push 0x37
lea eax, [ebp - 0xab]
push 0
push eax
call fcn.0044c180
movups xmm0, xmmword [ebp - 0x20]
mov esi, dword [ebp - 8]
add esp, 0x3c
movups xmm2, xmmword [ebp - 0x3c]
xor eax, eax
mov edi, dword [ebp - 0x24]
movq xmm1, qword [ebp - 0x10]
movq xmm3, qword [ebp - 0x2c]
mov edx, dword [ebp - 0xb4]
movups xmmword [ebp - 0xac], xmm0
mov dword [ebp - 0x94], esi
movq qword [ebp - 0x9c], xmm1
movups xmmword [ebp - 0x90], xmm2
mov dword [ebp - 0x78], edi
movq qword [ebp - 0x80], xmm3
nop dword [eax]
movsx ecx, byte [eax + 0x4a4b78]
movzx ecx, byte [ebp + ecx - 0xad]
mov byte [edx + eax - 1], cl
movsx ecx, byte [eax + 0x4a4b79]
movzx ecx, byte [ebp + ecx - 0xad]
mov byte [edx + eax], cl
movsx ecx, byte [eax + 0x4a4b7a]
movzx ecx, byte [ebp + ecx - 0xad]
mov byte [edx + eax + 1], cl
movsx ecx, byte [eax + 0x4a4b7b]
movzx ecx, byte [ebp + ecx - 0xad]
mov byte [edx + eax + 2], cl
movsx ecx, byte [eax + 0x4a4b7c]
movzx ecx, byte [ebp + ecx - 0xad]
mov byte [edx + eax + 3], cl
movsx ecx, byte [eax + 0x4a4b7d]
movzx ecx, byte [ebp + ecx - 0xad]
mov byte [edx + eax + 4], cl
add eax, 6
cmp eax, 0x30
jl 0x4103a0
mov ebx, dword [ebp - 0xb0]
add edx, 0x30
inc ebx
movq qword [ebp - 0x48], xmm1
mov dword [ebp - 0x40], esi
movq qword [ebp - 0x64], xmm3
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0xb4], edx
movups xmmword [ebp - 0x58], xmm0
movups xmmword [ebp - 0x74], xmm2
cmp ebx, 0x10
jl 0x4102f0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004495f3
mov esp, ebp
pop ebp
ret 8
Function at 0x410780
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
lea ecx, [ebp - 4]
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
call fcn.00403710
mov eax, dword [ebp - 4]
push 0
push ecx
add eax, 0xfffffff0
mov dword [ebx + 0xc], SysReAllocString
mov esi, esp
push eax
call fcn.00403380
add esp, 4
lea ecx, [ebx + 4]
add eax, 0x10
mov dword [esi], eax
call fcn.00430ea0
mov edx, dword [ebp - 4]
or edi, 0xffffffff
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4107db
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov ecx, esp
push 0x4a1628
call fcn.00403710
mov eax, dword [ebp + 0xc]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
call fcn.00403380
add esp, 4
lea ecx, [ebx + 4]
add eax, 0x10
mov dword [esi], eax
mov esi, dword [ebp + 8]
push esi
call fcn.0042c9f0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x410823
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4109a0
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
mov eax, dword [0x4b93f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x40
lea eax, [ebp - 0xa4]
mov edi, ecx
push 0
push eax
call fcn.0044c180
push 0x40
lea eax, [ebp - 0xe4]
push 0
push eax
call fcn.0044c180
push 0x3f
lea eax, [ebp - 0x63]
push 0
push eax
call fcn.0044c180
mov esi, dword [ebp + 8]
add esp, 0x24
xor edx, edx
nop dword [eax]
mov eax, edx
mov ecx, edx
shr eax, 3
and ecx, 7
movsx eax, byte [eax + esi]
shl eax, cl
sar eax, 7
and al, 1
mov byte [ebp + edx - 0xa4], al
inc edx
cmp edx, 0x40
jb 0x4109f0
lea eax, [ebp - 0xe4]
mov ecx, edi
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.00423750
movups xmm0, xmmword [ebp - 0xe4]
mov ebx, dword [ebp + 0xc]
xor esi, esi
movups xmmword [ebp - 0x84], xmm0
movups xmm0, xmmword [ebp - 0xd4]
movups xmmword [ebp - 0x74], xmm0
movups xmm0, xmmword [ebp - 0xc4]
movups xmmword [ebp - 0x24], xmm0
movups xmm0, xmmword [ebp - 0xb4]
movups xmmword [ebp - 0x14], xmm0
nop dword [eax + eax]
push ebx
mov eax, 0xf
mov ecx, edi
sub eax, esi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.0041ade0
inc esi
cmp esi, 0x10
jl 0x410a60
movups xmm0, xmmword [ebp - 0x24]
xor eax, eax
movups xmmword [ebp - 0x64], xmm0
movups xmm0, xmmword [ebp - 0x14]
movups xmmword [ebp - 0x54], xmm0
movups xmm0, xmmword [ebp - 0x84]
movups xmmword [ebp - 0x44], xmm0
movups xmm0, xmmword [ebp - 0x74]
movups xmmword [ebp - 0x34], xmm0
nop word [eax + eax]
movsx ecx, byte [eax + 0x4a4e48]
movzx ecx, byte [ebp + ecx - 0x65]
mov byte [edi + eax + 0x640], cl
movsx ecx, byte [eax + 0x4a4e49]
movzx ecx, byte [ebp + ecx - 0x65]
mov byte [edi + eax + 0x641], cl
movsx ecx, byte [eax + 0x4a4e4a]
movzx ecx, byte [ebp + ecx - 0x65]
mov byte [edi + eax + 0x642], cl
movsx ecx, byte [eax + 0x4a4e4b]
movzx ecx, byte [ebp + ecx - 0x65]
mov byte [edi + eax + 0x643], cl
add eax, 4
cmp eax, 0x40
jl 0x410ab0
xorps xmm0, xmm0
mov ebx, 1
movq qword [edi + 0x688], xmm0
lea eax, [ebx - 1]
mov ecx, 7
and eax, 7
lea edx, [ebx - 1]
sub ecx, eax
shr edx, 3
movzx eax, byte [ebx + edi + 0x63f]
shl al, cl
mov ecx, 7
or byte [edx + edi + 0x688], al
mov eax, ebx
and eax, 7
mov edx, ebx
sub ecx, eax
shr edx, 3
movzx eax, byte [ebx + edi + 0x640]
shl al, cl
mov ecx, 7
or byte [edx + edi + 0x688], al
lea edx, [ebx + 1]
movzx eax, byte [ebx + edi + 0x641]
mov esi, edx
and edx, 7
shr esi, 3
sub ecx, edx
lea edx, [ebx + 2]
shl al, cl
mov ecx, 7
or byte [esi + edi + 0x688], al
mov esi, edx
movzx eax, byte [ebx + edi + 0x642]
and edx, 7
shr esi, 3
sub ecx, edx
add ebx, 4
shl al, cl
or byte [esi + edi + 0x688], al
lea eax, [ebx - 1]
cmp eax, 0x40
jb 0x410b14
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004495f3
mov esp, ebp
pop ebp
ret 8
Function at 0x410dd0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
mov eax, dword [ecx + 4]
or eax, 2
push eax
push 0
push dword [ecx + 0x10]
push dword [ecx + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x410e14
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x410e14
mov esi, 1
jmp 0x410e16
xor esi, esi
mov eax, dword [ebp + 8]
or ecx, 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x410e31
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x419bd0
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
mov eax, dword [0x4b93f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x40
lea eax, [ebp - 0xa4]
mov edi, ecx
push 0
push eax
call fcn.0044c180
push 0x40
lea eax, [ebp - 0xe4]
push 0
push eax
call fcn.0044c180
push 0x3f
lea eax, [ebp - 0x63]
push 0
push eax
call fcn.0044c180
mov esi, dword [ebp + 8]
add esp, 0x24
xor edx, edx
nop dword [eax]
mov eax, edx
mov ecx, edx
shr eax, 3
and ecx, 7
movsx eax, byte [eax + esi]
shl eax, cl
sar eax, 7
and al, 1
mov byte [ebp + edx - 0xa4], al
inc edx
cmp edx, 0x40
jb 0x419c20
lea eax, [ebp - 0xe4]
mov ecx, edi
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.00423750
movups xmm0, xmmword [ebp - 0xe4]
mov ebx, dword [ebp + 0xc]
xor esi, esi
movups xmmword [ebp - 0x84], xmm0
movups xmm0, xmmword [ebp - 0xd4]
movups xmmword [ebp - 0x74], xmm0
movups xmm0, xmmword [ebp - 0xc4]
movups xmmword [ebp - 0x24], xmm0
movups xmm0, xmmword [ebp - 0xb4]
movups xmmword [ebp - 0x14], xmm0
nop dword [eax + eax]
push ebx
push esi
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.0041ade0
inc esi
cmp esi, 0x10
jl 0x419c90
movups xmm0, xmmword [ebp - 0x24]
xor eax, eax
movups xmmword [ebp - 0x64], xmm0
movups xmm0, xmmword [ebp - 0x14]
movups xmmword [ebp - 0x54], xmm0
movups xmm0, xmmword [ebp - 0x84]
movups xmmword [ebp - 0x44], xmm0
movups xmm0, xmmword [ebp - 0x74]
movups xmmword [ebp - 0x34], xmm0
nop
movsx ecx, byte [eax + 0x4a4e48]
movzx ecx, byte [ebp + ecx - 0x65]
mov byte [edi + eax + 0x600], cl
movsx ecx, byte [eax + 0x4a4e49]
movzx ecx, byte [ebp + ecx - 0x65]
mov byte [edi + eax + 0x601], cl
movsx ecx, byte [eax + 0x4a4e4a]
movzx ecx, byte [ebp + ecx - 0x65]
mov byte [edi + eax + 0x602], cl
movsx ecx, byte [eax + 0x4a4e4b]
movzx ecx, byte [ebp + ecx - 0x65]
mov byte [edi + eax + 0x603], cl
add eax, 4
cmp eax, 0x40
jl 0x419cd0
xorps xmm0, xmm0
mov ebx, 1
movq qword [edi + 0x680], xmm0
lea eax, [ebx - 1]
mov ecx, 7
and eax, 7
lea edx, [ebx - 1]
sub ecx, eax
shr edx, 3
movzx eax, byte [ebx + edi + 0x5ff]
shl al, cl
mov ecx, 7
or byte [edx + edi + 0x680], al
mov eax, ebx
and eax, 7
mov edx, ebx
sub ecx, eax
shr edx, 3
movzx eax, byte [ebx + edi + 0x600]
shl al, cl
mov ecx, 7
or byte [edx + edi + 0x680], al
lea edx, [ebx + 1]
movzx eax, byte [ebx + edi + 0x601]
mov esi, edx
and edx, 7
shr esi, 3
sub ecx, edx
lea edx, [ebx + 2]
shl al, cl
mov ecx, 7
or byte [esi + edi + 0x680], al
mov esi, edx
movzx eax, byte [ebx + edi + 0x602]
and edx, 7
shr esi, 3
sub ecx, edx
add ebx, 4
shl al, cl
or byte [esi + edi + 0x680], al
lea eax, [ebx - 1]
cmp eax, 0x40
jb 0x419d34
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004495f3
mov esp, ebp
pop ebp
ret 8
Function at 0x419e90
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
mov ecx, 0x4a4bfb
mov edx, dword [ebp + 8]
sub ecx, eax
push ebx
mov dword [ebp - 4], ecx
mov ebx, 0x4a4bfa
push esi
mov ecx, 0x4a4bfc
mov dword [ebp + 0xc], 8
sub ecx, eax
mov esi, 0x4a4bf8
push edi
mov dword [ebp - 8], ecx
mov edi, 0x4a4bf9
mov ecx, 0x4a4bfd
sub esi, eax
sub edi, eax
sub ebx, eax
sub ecx, eax
mov dword [ebp - 0xc], ecx
nop dword [eax]
sub dword [ebp + 0xc], 1
lea eax, [eax + 6]
movsx ecx, byte [esi + eax - 6]
movzx ecx, byte [ecx + edx - 1]
mov byte [eax - 6], cl
movsx ecx, byte [edi + eax - 6]
movzx ecx, byte [ecx + edx - 1]
mov byte [eax - 5], cl
movsx ecx, byte [ebx + eax - 6]
movzx ecx, byte [ecx + edx - 1]
mov byte [eax - 4], cl
mov ecx, dword [ebp - 4]
movsx ecx, byte [ecx + eax - 6]
movzx ecx, byte [ecx + edx - 1]
mov byte [eax - 3], cl
mov ecx, dword [ebp - 8]
movsx ecx, byte [ecx + eax - 6]
movzx ecx, byte [ecx + edx - 1]
mov byte [eax - 2], cl
mov ecx, dword [ebp - 0xc]
movsx ecx, byte [ecx + eax - 6]
movzx ecx, byte [ecx + edx - 1]
mov byte [eax - 1], cl
jne 0x419ee0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41a2f0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x4b93f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0
push 2
mov dword [ebp - 0x238], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
mov edi, eax
call fcn.00402250
mov ecx, eax
test ecx, ecx
je 0x41a480
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x234], esi
test edi, edi
je 0x41a41e
nop dword [eax + eax]
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41a370
sub eax, edx
lea ecx, [ebp - 0x234]
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00402620
mov esi, dword [ebp - 0x234]
mov edi, dword [esi - 0xc]
test edi, edi
js 0x41a48a
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or ecx, eax
jge 0x41a3c6
push edi
lea ecx, [ebp - 0x234]
call fcn.004024d0
mov esi, dword [ebp - 0x234]
lea eax, [edi + 1]
push eax
push esi
call fcn.0046b5d9
add esp, 8
cmp edi, dword [esi - 8]
jg 0x41a48a
xor eax, eax
mov dword [esi - 0xc], edi
push str.winguard.exe
push esi
mov word [esi + edi*2], ax
call fcn.0046b1da
add esp, 8
test eax, eax
je 0x41a46a
push str.winguard_x64.exe
push esi
call fcn.0046b1da
add esp, 8
test eax, eax
je 0x41a454
lea eax, [ebp - 0x230]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x41a360
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41a43f
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004495f3
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0x238]
push 0xc
push str.winguard_x64
call fcn.00402620
mov bl, 1
jmp 0x41a427
mov ecx, dword [ebp - 0x238]
push 8
push str.winguard
call fcn.00402620
mov bl, 1
jmp 0x41a427
push 0x80004005
call fcn.00402080
push 0x80070057
call fcn.00402080
int3
Function at 0x41b4f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push esi
mov esi, ecx
push eax
mov eax, dword [esi + 4]
or eax, 1
push eax
push 0
push dword [esi + 0x10]
push dword [esi + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [esi], eax
test eax, eax
jne 0x41b54d
push eax
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [esi], eax
push dword [ebp - 4]
test eax, eax
jne 0x41b547
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 8]
jmp 0x41b54f
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov eax, dword [ebp + 8]
or ecx, 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x41b56a
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x41bb20
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0
push 1
push 3
push 0
push 0
push 1
push dword [ebp + 8]
xorps xmm0, xmm0
movlpd qword [ebp - 8], xmm0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41bb66
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
or ecx, 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x41bb8e
mov ecx, dword [eax]
push eax
mov esi, dword [ecx]
call dword [esi + 4]
mov eax, edi
mov edx, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41bdc0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2d10
call fcn.00449aa0
mov eax, dword [0x4b93f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
push esi
push edi
mov dword [ebp - 0x2d10], eax
call fcn.00402130
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
xor esi, esi
push esi
lea eax, [ebp - 0x204]
push str..PhysicalDrive_d
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x204]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41be3b
inc esi
cmp esi, 4
jl 0x41bdf2
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004495f3
mov esp, ebp
pop ebp
ret
push 0x2710
xorps xmm0, xmm0
mov dword [ebp - 0x2d0c], 0
lea eax, [ebp - 0x2cfc]
movq qword [ebp - 0x2d08], xmm0
push 0
push eax
mov dword [ebp - 0x2d00], 0
mov dword [ebp - 0x2d08], 0
mov dword [ebp - 0x2d04], 0
call fcn.0044c180
add esp, 0xc
lea eax, [ebp - 0x2d0c]
push 0
push eax
push 0x2710
lea eax, [ebp - 0x2cfc]
push eax
push 0xc
lea eax, [ebp - 0x2d08]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x41bee9
lea eax, [ebp - 0x5ec]
push eax
push 1
push dword [ebp - 0x2ce4]
lea eax, [ebp - 0x2cfc]
push eax
call fcn.00436150
mov ecx, dword [ebp - 0x2d10]
lea eax, [ebp - 0x5ec]
add esp, 0x10
push eax
call fcn.00409a90
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004495f3
mov esp, ebp
pop ebp
ret
Function at 0x41d210
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4b93f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
call fcn.00402250
mov ecx, eax
test ecx, ecx
je 0x41d336
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
lea eax, [ebp - 0x20c]
test esi, esi
jne 0x41d25d
push 0x208
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
jmp 0x41d265
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0
push eax
lea eax, [ebp - 0x20c]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x214], eax
test eax, eax
je 0x41d324
push edi
push eax
push 2
mov dword [ebp - 0x218], 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
lea eax, [ebp - 0x20c]
push esi
push dword [ebp - 0x214]
push dword [ebp - 0x210]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0x4a4054
push esi
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [ebp - 0x21c]
mov si, word [eax + 0x12]
mov dx, word [eax + 0x10]
mov cx, word [eax + 0x16]
mov ax, word [eax + 0x14]
movzx eax, ax
push eax
movzx eax, cx
push eax
movzx eax, dx
push eax
movzx eax, si
push eax
push str._d._d._d._d
push ebx
call fcn.0041ad10
add esp, 0x18
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.004495f3
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402080
int3
Function at 0x41d530
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x4b93f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
call fcn.00402250
mov ecx, eax
test ecx, ecx
je 0x41d67b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x228]
mov dword [ebx], eax
call fcn.00408110
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0044c180
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0x801c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [ebp - 0x210]
test eax, eax
js 0x41d5ae
lea eax, [ebp - 0x20c]
push eax
jmp 0x41d5b3
push 0x4a1628
call fcn.00403710
lea eax, [ebp - 0x210]
mov ecx, ebx
push eax
call fcn.00409a20
mov edx, dword [ebp - 0x210]
or edi, 0xffffffff
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41d5e6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov ecx, esp
push str.ruanmeiqiyuupgrade.exe
call fcn.00403710
mov eax, dword [ebx]
push ecx
sub eax, 0x10
mov esi, esp
push eax
call fcn.00403380
add eax, 0x10
lea ecx, [ebp - 0x22c]
add esp, 4
mov dword [esi], eax
lea eax, [ebp - 0x210]
push eax
call fcn.0042b620
push eax
mov ecx, ebx
call fcn.00409a20
mov edx, dword [ebp - 0x210]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41d640
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x218]
call fcn.00402130
mov eax, dword [ebp - 0x218]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x41d666
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004495f3
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00402080
int3