joyce8/EMBER2024-capa huggingface dataset:
Function at 0x458b30
Capabilities:
Encode data using base64
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5bb7c0
push 0x52a6a0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5ce104]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, edx
mov eax, ecx
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x3c], ebx
test eax, eax
je 0x458cc9
test ebx, ebx
je 0x458cc9
test edi, edi
je 0x458cc9
xor esi, esi
mov byte [ebp - 0x34], 0
xorps xmm0, xmm0
movq qword [ebp - 0x33], xmm0
mov dword [ebp - 0x2b], esi
mov word [ebp - 0x27], si
mov byte [ebp - 0x25], 0
mov byte [ebp - 0x24], 0
xor ecx, ecx
mov dword [ebp - 0x23], ecx
mov word [ebp - 0x1f], cx
mov byte [ebp - 0x1d], cl
mov dword [ebp - 4], ecx
push ecx
lea ecx, [ebp - 0x34]
push ecx
mov ecx, eax
call fcn.00458ac0
add esp, 8
test eax, eax
je 0x458cbe
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
mov edx, edi
mov ecx, dword [ebp - 0x40]
call fcn.00458a30
add esp, 8
test eax, eax
je 0x458cbe
xor eax, eax
mov dword [ebp - 0x38], eax
xor edi, edi
mov dword [ebp - 0x44], edi
mov cl, byte [ebp + eax - 0x24]
inc eax
mov dword [ebp - 0x38], eax
cmp eax, 8
jb 0x458c06
xor bh, bh
jmp 0x458c0e
mov bh, byte [ebp + eax - 0x24]
inc eax
mov dword [ebp - 0x38], eax
cmp eax, 8
jb 0x458c17
xor bl, bl
jmp 0x458c1f
mov bl, byte [ebp + eax - 0x24]
inc eax
mov dword [ebp - 0x38], eax
movzx edx, cl
mov ecx, edx
shr ecx, 2
movzx ecx, word [ecx*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov esi, dword [ebp - 0x3c]
mov word [esi + edi*2], cx
movzx esi, bh
mov ecx, esi
shr ecx, 4
and edx, 3
shl edx, 4
or ecx, edx
movzx ecx, word [ecx*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov edx, dword [ebp - 0x3c]
mov word [edx + edi*2 + 2], cx
movzx edx, bl
mov ecx, edx
shr ecx, 6
and esi, 0xf
shl esi, 2
or ecx, esi
movzx ecx, word [ecx*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov ebx, dword [ebp - 0x3c]
mov word [ebx + edi*2 + 4], cx
and edx, 0x3f
movzx ecx, word [edx*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov word [ebx + edi*2 + 6], cx
add edi, 4
mov dword [ebp - 0x44], edi
cmp eax, 8
jb 0x458bf5
mov dword [ebx + edi*2 - 2], 0x3d
mov esi, 1
mov dword [ebp - 0x48], esi
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x458ccb
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x458ccb
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00522a9a
mov esp, ebp
pop ebp
ret
Function at 0x459510
Capabilities:
Check os version
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x583128
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5ce104]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 0x10], 0
mov dword [ebp - 4], 0
je 0x459595
mov eax, dword [0x5cea80]
mov esi, dword [ebp + 8]
cmp eax, 0xffffffff
jne 0x459579
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x459564
mov dword [0x5cea80], 1
jmp 0x45957d
push esi
push dword [ebp + 0xc]
mov dword [0x5cea80], 0
call fcn.0045b5a0
jmp 0x4595c0
test eax, eax
je 0x45958a
push esi
push dword [ebp + 0xc]
call fcn.004597e0
test eax, eax
jne 0x4595c0
push esi
push dword [ebp + 0xc]
call fcn.0045b5a0
jmp 0x4595c0
push dword [ebp + 0xc]
call fcn.0045a8d0
mov edi, dword [ebp + 0xc]
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocStringLen
call esi
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x459609
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x459605
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x459605
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x459609
mov ecx, edx
call esi
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x459630
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x583158
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5ce104]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov eax, dword [0x5cea80]
cmp eax, 0xffffffff
jne 0x45968a
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x45967e
mov dword [0x5cea80], 1
jmp 0x45968e
mov dword [0x5cea80], 0
jmp 0x45969d
test eax, eax
je 0x45969d
push edi
push dword [ebp + 8]
call fcn.0045aba0
mov esi, eax
test esi, esi
jne 0x4596a8
push edi
push dword [ebp + 8]
call fcn.0045b7e0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4596f1
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4596ed
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x4596ed
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4596f1
mov ecx, edx
call edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x45b5a0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x583706
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x5ce104]
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, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push eax
push 0x2001f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x21c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x45b773
mov edi, dword [ebp - 0x21c]
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x228], eax
call fcn.00406e20
mov ecx, eax
test ecx, ecx
jne 0x45b650
push 0x80004005
call fcn.004071e0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x45b665
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x45b667
call edx
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x21c]
push dword [esi + 8]
push dword [esi]
push str.__s___s
push eax
call fcn.00420620
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00526bd0
add esp, 0x1c
mov dword [ebp - 0x220], 0x104
lea eax, [ebp - 0x220]
lea ecx, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
call fcn.0045c0a0
mov esi, dword [ebp - 0x21c]
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.00543b38
add esp, 8
test eax, eax
je 0x45b718
test esi, esi
jne 0x45b6ed
lea eax, [esi + 0xd]
jmp 0x45b71e
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45b6f2
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x45b71e
mov eax, dword [ebp - 0x220]
xor ebx, ebx
mov byte [ebp - 4], 0
test eax, eax
sete bl
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x45b766
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x45b764
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x45b764
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x45b766
call edx
test edi, edi
je 0x45b775
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x45b775
xor ebx, ebx
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.00522a9a
mov esp, ebp
pop ebp
ret 8
Function at 0x45b7e0
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x5ce104]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push edi
mov edi, dword [ebp + 8]
push 0x208
push 0
push eax
call fcn.00526bd0
add esp, 0xc
mov dword [ebp - 0x418], 0x104
lea eax, [ebp - 0x418]
mov dword [ebp - 0x41c], 1
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x41c]
push eax
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp word [ebp - 0x20c], 0
je 0x45b897
test esi, esi
je 0x45b880
lea edx, [ebp - 0x20c]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x45b862
sub edx, ecx
lea eax, [ebp - 0x20c]
sar edx, 1
mov ecx, esi
push edx
push eax
call fcn.00405730
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00522a9a
mov esp, ebp
pop ebp
ret 8
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00526bd0
add esp, 0xc
mov dword [ebp - 0x418], 0x104
lea eax, [ebp - 0x418]
mov dword [ebp - 0x41c], 1
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x41c]
push eax
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp word [ebp - 0x414], 0
je 0x45b935
test esi, esi
je 0x45b880
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45b900
sub ecx, edx
lea eax, [ebp - 0x414]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00405730
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00522a9a
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00522a9a
mov esp, ebp
pop ebp
ret 8

Function at 0x45b950
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp word [0x5d4230], 0
mov dword [ebp - 8], 0
jne 0x45b97d
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x100
push eax
push 0x5d4230
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov ecx, dword [ebp + 8]
push 0x5d4230
call fcn.00404e80
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 4

Function at 0x45b9a0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp word [0x5d4030], 0
mov dword [ebp - 8], 0
jne 0x45b9cf
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x100
push eax
push 0x5d4030
push 2
call dword [sym.imp.Secur32.dll_GetUserNameExW]
mov ecx, dword [ebp + 8]
push 0x5d4030
call fcn.00404e80
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x45c050
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x45c065
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45c070
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x45c0a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x45c111
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x45c0df
cmp eax, 2
jne 0x45c0fb
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x45c10b
test ecx, ecx
je 0x45c106
test cl, 1
jne 0x45c0fb
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x45c10b
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x45c3c0
Capabilities:
Delete file
Move file
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x583738
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5ce104]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x18], esi
mov ebx, ecx
test ebx, ebx
je 0x45c4bf
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x45c4bf
test esi, esi
je 0x45c4bf
lea ecx, [ebp - 0x10]
call fcn.00404f80
push ebx
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push str._s.write_cache
push eax
call fcn.00420620
mov esi, dword [ebp - 0x10]
add esp, 0xc
xor edi, edi
push edi
push 0x80
push 2
push edi
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
je 0x45c4a3
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], edi
mov edi, dword [ebp + 8]
push ecx
push edi
push dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x1c]
xor eax, eax
cmp dword [ebp - 0x14], edi
sete al
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x45c4a3
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x10]
call fcn.00404e00
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45c4e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x583768
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x5ce104]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
test esi, esi
je 0x45c58a
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45c58a
mov dword [ebp - 0x1c], vtable.CxAutoArray_unsigned_char_.0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
lea edx, [ebp - 0x18]
mov dword [ebp - 0x10], 0
mov ecx, esi
call fcn.0044f270
mov esi, dword [ebp - 0x18]
add esp, 4
test eax, eax
je 0x45c568
cmp dword [ebp - 0x10], 0
je 0x45c568
mov edx, edi
mov ecx, esi
call fcn.0045c770
mov edi, eax
jmp 0x45c56a
xor edi, edi
test esi, esi
je 0x45c577
push esi
call fcn.00522ad5
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x45c5a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5837a0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5ce104]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
push edi
lea ecx, [ebp - 0x10]
call fcn.00404e80
mov dword [ebp - 4], 0
mov edx, 1
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x104
or ecx, edx
jge 0x45c604
push 0x104
lea ecx, [ebp - 0x10]
call fcn.00405960
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [ebp - 0x10]
push dword [eax - 8]
push eax
call fcn.005434e1
mov edx, eax
add esp, 8
test edx, edx
js 0x45c75e
mov ecx, dword [ebp - 0x10]
cmp edx, dword [ecx - 8]
jg 0x45c75e
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov word [eax + edx*2], cx
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45c653
push dword [ebp - 0x10]
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
call fcn.00406e20
mov ecx, eax
test ecx, ecx
jne 0x45c668
push 0x80004005
call fcn.004071e0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x45c67d
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x45c67f
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x14]
mov byte [ebp - 4], 1
mov ecx, esi
call fcn.0045c9b0
mov esi, dword [ebp - 0x14]
test eax, eax
je 0x45c6ad
push dword [esi - 0xc]
mov edx, esi
mov ecx, edi
call fcn.0045c3c0
add esp, 4
mov ebx, eax
jmp 0x45c6af
xor ebx, ebx
or edi, 0xffffffff
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x45c6f2
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x45c6f0
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x45c6f0
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x45c6f2
call edx
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], edi
dec edi
test edi, edi
jg 0x45c74a
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x45c746
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x45c746
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edx
call esi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004071e0
int3
Function at 0x46d690
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5852e8
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x5ce104]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 0xc]
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00526bd0
add esp, 0xc
lea eax, [ebp - 0x218]
push dword [esi + 0x44]
push 0x104
push eax
push 0x5a8538
push dword [ebp + 8]
push str.dllrepair
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, 0x2a
cmp ax, word [ebp - 0x218]
je 0x46d745
lea edx, [ebp - 0x218]
lea esi, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x46d720
sub edx, esi
lea eax, [ebp - 0x218]
sar edx, 1
mov ecx, edi
push edx
push eax
call fcn.00405730
mov esi, 1
jmp 0x46d747
xor esi, esi
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46d791
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x46d78f
mov eax, dword [ecx + 4]
mov ecx, dword [eax]
mov edi, dword [ecx + 4]
cmp ecx, vtable.ATL::CWin32Heap.0
jne 0x46d78d
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x46d791
mov ecx, eax
call edi
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.00522a9a
mov esp, ebp
pop ebp
ret 8

Function at 0x471100
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push esi
mov esi, ecx
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x47119f
push 0x2c
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00526bd0
add esp, 0xc
mov dword [esp + 8], 0x30
lea eax, [esp + 8]
mov dword [esp + 0x1c], 0x400000
mov dword [esp + 0x30], str.Q360SoftMgrTimerWnd
mov dword [esp + 0x10], 0x471880
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push dword [esp + 0x20]
push 0
push 0xfffffffffffffffd
push 0
push 0
push 0
push 0
push 0
push 0
push dword [esp + 0x58]
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push eax
mov dword [esi + 0x10], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4711a9
push esi
push 0xffffffffffffffeb
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4755c0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push ecx
mov esi, ecx
call fcn.00475560
mov ecx, dword [ebp + 8]
test ecx, ecx
jne 0x4755df
mov dword [esi + 4], 0xffffffff
jmp 0x475610
cmp dword [esi], 0
mov edx, 0xc0000000
push 0
push 0x80
push 4
push 0
mov eax, SysReAllocStringLen
push 3
cmovne eax, edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x4756a2
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jne 0x475622
xorps xmm0, xmm0
movlpd qword [ebp - 8], xmm0
jmp 0x47562d
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov dword [esi + 0x10], eax
or eax, ecx
mov dword [esi + 0x14], ecx
jne 0x47564b
cmp dword [esi], eax
je 0x47564b
mov dword [esi + 0x10], 1
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x10]
mov cl, 0x20
mov edx, dword [esi + 0x14]
push ebx
xor ebx, ebx
cmp dword [esi], ebx
push 0
push dword [esi + 0x10]
setne bl
lea ebx, [ebx*2 + 2]
call fcn.0057b5f0
push eax
push ebx
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 8], eax
pop ebx
test eax, eax
je 0x4756a2
cmp dword [esi], 0
mov edx, 0xf001f
push 0
push 0
mov ecx, 4
push 0
cmovne ecx, edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0xc], eax
cmp dword [esi + 0xc], 0
jne 0x4756b0
push ecx
mov ecx, esi
call fcn.00475560
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x475760
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5be410
push 0x52a6a0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x5ce104]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x34], eax
mov ebx, ecx
mov dword [ebp - 0x30], ebx
xor edi, edi
mov dword [ebp - 0x28], edi
xor esi, esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], esi
mov ecx, eax
call fcn.004787d0
mov dword [ebp - 0x20], esi
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x475834
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
mov dword [ebp - 0x2c], esi
test esi, esi
je 0x475834
push esi
push ebx
push dword [ebp - 0x20]
push dword [ebp - 0x30]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x475834
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
push str.VarFileInfoTranslation
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x475834
push ecx
mov eax, dword [ebp - 0x1c]
shr eax, 2
push eax
mov ecx, dword [ebp - 0x34]
call fcn.00478770
push dword [ebp - 0x1c]
push dword [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 0x34]
call fcn.00478800
push eax
call fcn.00526650
add esp, 0xc
mov edi, 1
mov dword [ebp - 0x28], edi
mov dword [ebp - 4], 0xfffffffe
call fcn.0047585a
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret