joyce8/EMBER2024-capa huggingface dataset:
Function at 0x453dd0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x586ec8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x6069b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x453f79
push edi
mov dword [ebp - 0x14], 0
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
lea ecx, [ebp - 0x14]
call fcn.00407780
mov dword [ebp - 4], 0
xor esi, esi
nop dword [eax + eax]
mov eax, dword [esi + 0x5dcb48]
test eax, eax
je 0x453ecf
push eax
push dword [ebp - 0x14]
call fcn.0055edc9
add esp, 8
test eax, eax
je 0x453efb
add esi, 4
cmp esi, 8
jb 0x453e30
xor esi, esi
nop dword [eax]
mov eax, dword [esi + 0x5dcb3c]
test eax, eax
je 0x453ecf
push eax
push dword [ebp - 0x14]
call fcn.0055edc9
add esp, 8
test eax, eax
je 0x453ed9
add esi, 4
cmp esi, 0xc
jb 0x453e60
xor esi, esi
mov eax, dword [esi + 0x5dcb34]
test eax, eax
je 0x453ecf
push eax
push dword [ebp - 0x14]
call fcn.0055edc9
add esp, 8
test eax, eax
je 0x453ead
add esi, 4
cmp esi, 8
jb 0x453e84
xor esi, esi
jmp 0x453f55
push 0x24
call fcn.005523d2
mov esi, eax
xorps xmm0, xmm0
movups xmmword [esi], xmm0
movups xmmword [esi + 0x10], xmm0
mov dword [esi + 0x20], 0
mov dword [esi], vtable.PowerPointConverter.0
jmp 0x453f1b
push 0x80004005
call fcn.00402a80
push 0x24
call fcn.005523d2
mov esi, eax
xorps xmm0, xmm0
movups xmmword [esi], xmm0
movups xmmword [esi + 0x10], xmm0
mov dword [esi + 0x20], 0
mov dword [esi], vtable.ExcelConverter.0
jmp 0x453f1b
push 0x24
call fcn.005523d2
mov esi, eax
xorps xmm0, xmm0
movups xmmword [esi], xmm0
movups xmmword [esi + 0x10], xmm0
mov dword [esi + 0x20], 0
mov dword [esi], vtable.WordConverter.0
mov dword [esi + 0x20], 0
add esp, 4
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
mov dword [ebp - 0x18], esi
mov dword [esi + 4], 0
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edi, dword [ebp - 0x14]
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x453f77
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00551ee1
mov esp, ebp
pop ebp
ret
Function at 0x454080
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0
mov esi, ecx
call dword [sym.imp.ole32.dll_CoInitialize]
mov edx, dword [esi]
lea eax, [esi + 8]
push eax
lea eax, [esi + 4]
mov ecx, esi
push eax
call dword [edx + 8]
mov edi, eax
test edi, edi
jne 0x4540c1
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
mov edi, eax
test edi, edi
jne 0x4540c1
mov eax, dword [esi]
mov ecx, esi
push dword [ebp + 8]
call dword [eax + 4]
mov edi, eax
test edi, edi
je 0x454104
mov eax, dword [esi + 0x18]
mov dword [esi + 0x1c], edi
push ebx
lea ebx, [esi + 0x18]
test eax, eax
je 0x4540dc
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebx], 0
push 0
push 0
push ebx
push 0x400
push dword [esi + 0x1c]
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov eax, dword [ebx]
pop ebx
test eax, eax
je 0x454104
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov eax, edi
pop edi
pop esi
pop ebp
ret 4

Function at 0x454d50
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
test ecx, ecx
jne 0x454d69
or eax, 0xffffffff
or edx, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x454db0
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x454db0
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov edx, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or edi, 0xffffffff
push esi
or ebx, edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov edx, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x454e50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push ecx
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x454e89
push esi
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x454eb7
cmp dword [ebp - 4], edi
jne 0x454eb7
pop edi
push esi
mov bl, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
push esi
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x454ed0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push ecx
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x454f09
push esi
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x454f37
cmp edi, dword [ebp - 4]
jne 0x454f37
pop edi
push esi
mov bl, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
push esi
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x457200
Capabilities:
Encode data using xor
Encrypt data using blowfish
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x60e14c], 0
jne 0x457443
push 0x48
call fcn.005607d3
add esp, 4
mov dword [0x60e140], eax
test eax, eax
je 0x457254
push 0x1000
call fcn.005607d3
add esp, 4
mov dword [0x60e144], eax
test eax, eax
jne 0x45725c
push dword [0x60e140]
call fcn.005585f7
add esp, 4
mov dword [0x60e140], 0
xor al, al
mov esp, ebp
pop ebp
ret 0xc
mov eax, 0xc
mov dword [0x60e148], 0
sub eax, 0x5ddec4
mov dword [ebp - 8], eax
mov eax, 0x10
push esi
sub eax, 0x5ddec4
xor esi, esi
push edi
mov dword [ebp - 4], eax
mov edi, 8
mov eax, 0x14
sub edi, 0x5ddec4
sub eax, 0x5ddec4
mov dword [ebp - 0xc], eax
nop dword [eax]
mov eax, dword [0x60e140]
lea edx, [edi + 0x5ddec4]
mov ecx, dword [esi + 0x5ddec0]
add edx, esi
mov dword [esi + eax], ecx
mov eax, dword [0x60e140]
mov ecx, dword [esi + 0x5ddec4]
mov dword [esi + eax + 4], ecx
mov eax, dword [0x60e140]
mov ecx, dword [esi + 0x5ddec8]
mov dword [edx + eax], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [esi + 0x5ddecc]
lea edx, [eax + 0x5ddec4]
mov eax, dword [0x60e140]
add edx, esi
mov dword [edx + eax], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [esi + 0x5dded0]
lea edx, [eax + 0x5ddec4]
mov eax, dword [0x60e140]
add edx, esi
mov dword [edx + eax], ecx
mov eax, dword [ebp - 0xc]
mov ecx, dword [esi + 0x5dded4]
lea edx, [eax + 0x5ddec4]
mov eax, dword [0x60e140]
add edx, esi
add esi, 0x18
mov dword [edx + eax], ecx
cmp esi, 0x48
jl 0x4572a0
xor eax, eax
nop dword [eax]
mov esi, 0x100
nop word [eax + eax]
mov ecx, dword [0x60e144]
mov edx, dword [eax + 0x5dccc0]
mov dword [eax + ecx], edx
add eax, 4
sub esi, 1
jne 0x457340
cmp eax, 0x1000
jl 0x457330
xor edi, edi
lea ecx, [esi + 0x24]
movzx eax, byte [esi + str.a7b863b0_61b0_4825_a7d4_d93c6a2fad6e]
mov byte [ebp - 1], al
lea eax, [esi + 1]
cdq
idiv ecx
movzx eax, byte [edx + str.a7b863b0_61b0_4825_a7d4_d93c6a2fad6e]
mov byte [ebp - 2], al
lea eax, [esi + 2]
cdq
idiv ecx
movzx eax, byte [edx + str.a7b863b0_61b0_4825_a7d4_d93c6a2fad6e]
mov byte [ebp - 3], al
lea eax, [esi + 3]
cdq
idiv ecx
mov ecx, dword [0x60e140]
movzx eax, byte [edx + str.a7b863b0_61b0_4825_a7d4_d93c6a2fad6e]
mov byte [ebp - 4], al
mov eax, dword [ebp - 4]
xor dword [ecx + edi], eax
lea eax, [esi + 4]
cdq
mov ecx, 0x24
idiv ecx
add edi, 4
mov esi, edx
cmp edi, 0x48
jl 0x457363
mov dword [ebp - 8], 0
xor esi, esi
mov dword [ebp - 4], 0
nop
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00456d20
mov ecx, dword [0x60e140]
mov eax, dword [ebp - 4]
mov dword [esi + ecx], eax
mov eax, dword [0x60e140]
mov ecx, dword [ebp - 8]
mov dword [esi + eax + 4], ecx
add esi, 8
cmp esi, 0x48
jl 0x4573d0
xor esi, esi
nop
mov edi, 0x80
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00456d20
mov ecx, dword [0x60e144]
mov eax, dword [ebp - 4]
mov dword [esi + ecx], eax
mov eax, dword [0x60e144]
mov ecx, dword [ebp - 8]
mov dword [esi + eax + 4], ecx
add esi, 8
sub edi, 1
jne 0x457405
cmp esi, 0x1000
jl 0x457400
pop edi
mov byte [0x60e14c], 1
pop esi
mov al, 1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4576f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x587341
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x6069b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], esi
mov dword [ebx], 0
call fcn.00402a00
mov ecx, eax
test ecx, ecx
jne 0x457752
push 0x80004005
call fcn.00402a80
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 1
call fcn.00437f40
cmp dword [0x60db24], 0
mov ecx, 0x100
mov eax, 0x200
cmovne eax, ecx
lea ecx, [ebp - 0x18]
push ecx
or eax, 0x20019
push eax
push 0
push str.SOFTWAREMutextPdfProtect
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x457864
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push esi
push dword [ebp - 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call esi
test eax, eax
jne 0x45785b
mov eax, dword [ebp - 0x14]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005525d1
mov ecx, dword [ebp - 0x14]
add esp, 4
mov edi, eax
mov dword [ebp - 0x1c], edi
add ecx, 1
je 0x4577fd
xor eax, eax
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push eax
push edi
push 0
push 0
push dword [ebp - 0x24]
push dword [ebp - 0x18]
call esi
mov esi, dword [ebp - 0x14]
call fcn.00402a00
push eax
push esi
push edi
lea ecx, [ebp - 0x1c]
call fcn.00413800
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 1
push eax
mov ecx, ebx
call fcn.00405c70
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x457852
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push edi
call fcn.005525cc
add esp, 4
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00551ee1
mov esp, ebp
pop ebp
ret
Function at 0x4585a0
Capabilities:
Print debug messages
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x587400
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x6069b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ecx + 8], 0
jne 0x4585e1
push 0x5ed2b4
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x4586e9
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
mov dword [ecx + 8], 0
or edi, 0xffffffff
push 0x3e8
call ebx
push str.ProtectMutex
push ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
call fcn.004576f0
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
jg 0x45864b
lea edx, [eax - 0x10]
mov dword [ebp - 4], 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x458640
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
inc esi
cmp esi, 0x1e
jl 0x4585f3
jmp 0x4586e9
xor esi, esi
mov dword [ebp - 0x18], 0
xorps xmm0, xmm0
mov dword [ebp - 0x18], esi
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 1
call fcn.00437f40
cmp dword [0x60db24], esi
mov ecx, 0x100
mov eax, 0x200
mov dword [ebp - 0x24], esi
cmovne eax, ecx
lea ecx, [ebp - 0x24]
push ecx
or eax, 0x20006
push eax
push esi
push str.SOFTWAREMutextPdfProtect
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov eax, dword [ebp - 0x14]
cmove esi, dword [ebp - 0x24]
mov ecx, dword [eax - 0xc]
add ecx, ecx
push ecx
push eax
push 1
push 0
push str.xdMutex
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test esi, esi
je 0x4586ca
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x4586e9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00551ee1
mov esp, ebp
pop ebp
ret
Function at 0x458710
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x587448
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x6069b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.004588b0
push str.ProtectMutex
push ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
call fcn.004576f0
add esp, 8
push str.xdMutex
push ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
call fcn.004576f0
add esp, 8
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x458844
mov ecx, dword [ebp - 0x18]
mov edx, eax
nop word [eax + eax]
mov si, word [ecx]
cmp si, word [edx]
jne 0x4587b6
test si, si
je 0x4587b2
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x4587b6
add ecx, 4
add edx, 4
test si, si
jne 0x458790
xor ecx, ecx
jmp 0x4587bb
sbb ecx, ecx
or ecx, 1
test ecx, ecx
setne cl
test cl, cl
je 0x45884b
cmp dword [eax - 0xc], 0
je 0x458844
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movq qword [ebp - 0x24], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 2
call fcn.00437f40
cmp dword [0x60db24], 0
mov ecx, 0x100
mov eax, 0x200
cmovne eax, ecx
lea ecx, [ebp - 0x24]
or eax, 0x2001f
push eax
push str.SOFTWAREMutextPdfProtect
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0040f800
mov esi, dword [ebp - 0x24]
push str.ProtectMutex
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test esi, esi
je 0x458841
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
mov dword [ebx + 8], 1
or esi, 0xffffffff
mov byte [ebp - 4], 0
lea edx, [eax - 0x10]
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x458869
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x458888
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00551ee1
mov esp, ebp
pop ebp
ret
Function at 0x458c30
Capabilities:
Get session user name
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x6069b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x100
lea eax, [ebp - 0x308]
mov esi, ecx
push 0
push eax
mov dword [ebp - 0x420], esi
call fcn.00555650
add esp, 0xc
lea eax, [ebp - 0x108]
push 0x100
push 0
push eax
call fcn.00555650
add esp, 0xc
mov dword [ebp - 0x40c], 0x100
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x308]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push 0x100
lea eax, [ebp - 0x208]
push 0
push eax
call fcn.00555650
add esp, 0xc
lea eax, [ebp - 0x408]
push 0x100
push 0
push eax
call fcn.00555650
add esp, 0xc
mov dword [ebp - 0x418], 0x100
lea eax, [ebp - 0x414]
mov dword [ebp - 0x410], 0x100
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x308]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.ADVAPI32.dll_GetSidIdentifierAuthority]
push 1
push str.S__lu_
mov edi, eax
lea eax, [ebp - 0x108]
push 0x100
push eax
call fcn.00458fd0
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x418], eax
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x458d43
movzx eax, byte [edi + 5]
sub ecx, edx
push eax
mov eax, 0x100
sub eax, ecx
push str.__lu
push eax
lea eax, [ebp - 0x108]
add eax, ecx
push eax
call fcn.00458fd0
add dword [ebp - 0x418], eax
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
xor edi, edi
movzx eax, byte [eax]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x458de3
mov ebx, dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
mov esi, eax
nop dword [eax]
push edi
lea eax, [ebp - 0x208]
push eax
call ebx
push dword [eax]
mov eax, 0x100
sub eax, dword [ebp - 0x418]
push 0x5ebba0
push eax
lea eax, [ebp - 0x108]
add eax, dword [ebp - 0x418]
push eax
call fcn.00458fd0
add dword [ebp - 0x418], eax
inc edi
add esp, 0x10
cmp edi, esi
jl 0x458da0
mov esi, dword [ebp - 0x420]
lea edx, [ebp - 0x108]
mov ecx, 0x100
sub edx, esi
lea eax, [ecx + 0x7ffffefe]
test eax, eax
je 0x458e09
mov al, byte [edx + esi]
test al, al
je 0x458e09
mov byte [esi], al
inc esi
sub ecx, 1
jne 0x458df0
test ecx, ecx
lea eax, [esi - 1]
mov ecx, dword [ebp - 4]
cmovne eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
mov byte [eax], 0
mov al, 1
call fcn.00551ee1
mov esp, ebp
pop ebp
ret
Function at 0x45b820
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push edi
mov edi, ecx
lea ebx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45b830
sub eax, ebx
sar eax, 1
add eax, eax
push eax
push dword [ebp + 8]
push 1
push 0
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
pop edi
sbb eax, eax
and eax, 0x80004005
pop ebx
pop ebp
ret
Function at 0x45bc10
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x6069b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x424]
mov ecx, dword [ebp + 8]
push edx
push 0xf003f
push 0
push eax
push ecx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x424], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x45bdba
push ebx
push esi
push edi
push eax
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x420]
push eax
push 0
push 0
push 0
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x45bcf1
push 0x20a
xor esi, esi
lea eax, [ebp - 0x41c]
push esi
push eax
call fcn.00555650
add esp, 0xc
cmp dword [ebp - 0x420], esi
jbe 0x45bcf1
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
nop word [eax + eax]
push 0x105
lea eax, [ebp - 0x41c]
push eax
push esi
push dword [ebp - 0x424]
call ebx
test eax, eax
jne 0x45bce8
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x424]
call edi
inc esi
cmp esi, dword [ebp - 0x420]
jb 0x45bcc0
push dword [ebp - 0x424]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
push 0x20a
lea eax, [ebp - 0x210]
mov dword [ebp - 0x424], 0
push 0
push eax
call fcn.00555650
push dword [ebp - 0x428]
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.005670d6
lea eax, [ebp - 0x210]
push 0x5c
push eax
call fcn.00555257
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x45bd61
lea eax, [ebp - 0x210]
push 0x2f
push eax
call fcn.00555257
mov esi, eax
add esp, 8
test esi, esi
je 0x45bdb7
mov eax, esi
lea ecx, [ebp - 0x210]
sub eax, ecx
and eax, 0xfffffffe
cmp eax, 0x20a
jae 0x45bdca
xor ecx, ecx
mov word [ebp + eax - 0x210], cx
lea eax, [ebp - 0x424]
push eax
push 0xf003f
push ecx
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x45bdaf
lea eax, [esi + 2]
push eax
push dword [ebp - 0x424]
call edi
push dword [ebp - 0x424]
call ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00551ee1
mov esp, ebp
pop ebp
ret 8
call fcn.005526fd
int3
Function at 0x45bdd0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5877d8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x6069b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x14], 0
call fcn.00420080
mov dword [ebp - 4], 0
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45be5f
push 0x5e1c54
mov ecx, edi
call fcn.00407780
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov esi, dword [ebp - 0x14]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x45bf34
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x45bf34
call fcn.00402a00
mov ecx, eax
test ecx, ecx
jne 0x45be74
push 0x80004005
call fcn.00402a80
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.InstallTime
call fcn.00407780
push ecx
mov byte [ebp - 4], 2
mov esi, esp
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], esi
lea ecx, [ecx - 0x10]
call fcn.00407ab0
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 1
call fcn.0045bf60
test eax, eax
je 0x45bee8
mov ebx, dword [ebp - 0x18]
add ebx, 0xfffffff0
mov ecx, ebx
call fcn.00407ab0
add eax, 0x10
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov dword [edi], eax
mov eax, esi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x45bf15
mov ecx, dword [ebx]
push ebx
jmp 0x45bf10
push 0x5e1c54
mov ecx, edi
call fcn.00407780
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov edx, dword [ebp - 0x18]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45bf15
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x45bf34
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00551ee1
mov esp, ebp
pop ebp
ret 4