joyce8/EMBER2024-capa huggingface dataset:
Function at 0x458760
Capabilities:
Initialize iwebbrowser2

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x505fb0
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x5522c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x51d6f8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor esi, esi
mov dword [0x55ad70], eax
cmp eax, esi
je 0x4587c8
push 0x51d724
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x4587c8
push 5
push esi
push esi
push str.http:__www.baofeng.com_permit.html
push 0x51d0ac
push esi
call eax
cmp eax, 0x20
jge 0x4588fa
cmp byte [ebp + 8], 0
je 0x458926
mov dword [ebp - 0x14], esi
lea eax, [ebp - 0x14]
push eax
push 0x51d0ec
push 0x17
push esi
push 0x51d098
mov dword [ebp - 4], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, esi
jl 0x458910
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xa4]
push 0xffffffffffffffff
push eax
call edx
cmp eax, esi
jl 0x458910
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], esi
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x94]
call eax
mov eax, dword [ebp - 0x18]
cmp eax, esi
je 0x458832
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push str.http:__www.baofeng.com_permit.html
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
mov dword [ebp - 0x1c], edi
cmp edi, esi
jne 0x458850
push 0x8007000e
call fcn.0045a490
lea edx, [ebp - 0x5c]
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x14]
xor ecx, ecx
push edx
mov word [ebp - 0x5c], cx
call fcn.0045a330
lea ecx, [ebp - 0x4c]
xor eax, eax
mov byte [ebp - 4], 2
push ecx
mov word [ebp - 0x4c], ax
call fcn.0045a330
lea eax, [ebp - 0x3c]
xor edx, edx
mov byte [ebp - 4], 3
push eax
mov word [ebp - 0x3c], dx
call fcn.0045a330
mov ecx, 3
mov word [ebp - 0x2c], cx
mov dword [ebp - 0x24], 0xe
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x4c]
push ecx
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov byte [ebp - 4], 5
mov edx, dword [esi]
mov edx, dword [edx + 0x2c]
push edi
push esi
call edx
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ebx, eax
lea eax, [ebp - 0x2c]
push eax
call esi
lea ecx, [ebp - 0x3c]
push ecx
call esi
lea edx, [ebp - 0x4c]
push edx
call esi
lea eax, [ebp - 0x5c]
push eax
call esi
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test ebx, ebx
js 0x45890e
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4588fa
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov al, 1
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 esi, esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, esi
je 0x458926
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor al, al
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 0x458940
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
push 0x40
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.004e95e0
add esp, 0xc
xor eax, eax
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x58]
push edx
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push eax
push ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x58], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4589a9
mov edx, dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [ebp - 0xc]
push eax
call esi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x458be0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x5522c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
mov edi, ecx
lea ecx, [ebp - 0x14]
push ecx
mov word [ebp - 0x14], ax
mov dword [ebp - 0x12], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
xor ecx, ecx
lea eax, [ebp - 0x28]
mov dword [ebp - 8], ecx
push eax
lea ecx, [ebp - 0x14]
xor edx, edx
push ecx
mov dword [ebp - 0xc], edx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
push 8
push 0x61c46800
push edx
push eax
call fcn.004ea5b0
mov esi, eax
mov eax, 4
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x18]
push edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push 0x51cf6c
push str.SoftwareBaofengStormPlayerConfigInstall
push SysReAllocString
mov dword [ebp - 0x18], esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov ecx, dword [ebp - 0x18]
cmp esi, ecx
jb 0x458c87
sub esi, ecx
add esi, 0x17
mov eax, 0xaaaaaaab
mul esi
shr edx, 4
push edx
jmp 0x458c9d
sub ecx, esi
add ecx, 0x17
mov eax, 0x19
mul ecx
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 0x1f
push ecx
push 0x51cfe0
call fcn.00459840
mov ecx, dword [ebp - 4]
add esp, 8
pop edi
xor ecx, ebp
pop esi
call fcn.004e4900
mov esp, ebp
pop ebp
ret
Function at 0x458cc0
Capabilities:
Check if file exists
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x278
mov eax, dword [0x5522c0]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x212]
push ecx
mov word [ebp - 0x214], ax
call fcn.004e95e0
add esp, 0xc
lea edx, [ebp - 0x22c]
push edx
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x228]
push ecx
push str.InstallPath
push str.SoftwareBaofengPhoneAssistant
push SysReAllocString
mov dword [ebp - 0x22c], 0x102
mov dword [ebp - 0x228], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x458e1e
push str..BFAssistantSvc.exe
lea edx, [ebp - 0x214]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x458e1e
cmp byte [ebp + 8], 0
mov esi, str.__install
jne 0x458d6f
mov esi, str.__uninstall
push 0x40
lea ecx, [ebp - 0x270]
push 0
push ecx
call fcn.004e95e0
add esp, 0xc
xor eax, eax
xor edx, edx
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x274]
push ecx
push edx
push edx
push edx
push edx
push edx
push edx
mov word [ebp - 0x244], dx
push esi
lea edx, [ebp - 0x214]
push edx
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x274], 0x44
mov dword [ebp - 0x248], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x458e1e
mov eax, dword [ebp - 0x224]
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x224]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [ebp - 0x220]
push edx
call esi
mov al, 1
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004e4900
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
xor ecx, ebp
xor al, al
pop esi
call fcn.004e4900
mov esp, ebp
pop ebp
ret
Function at 0x4592e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4592f8
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x45932a
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x459326
cmp esi, eax
jae 0x45932a
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x459318
cmp esi, eax
jb 0x459330
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x45bca0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x502b8b
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x5522c0]
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 [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0
push 2
push 0
push 0
mov esi, ecx
push 0x40000000
push esi
call ebx
mov edi, eax
cmp edi, 0xffffffff
jne 0x45bd1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x45bd52
push esi
call fcn.0045bf10
add esp, 4
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push esi
call ebx
mov edi, eax
cmp edi, 0xffffffff
je 0x45bd54
lea eax, [ebp - 0x128]
push eax
mov dword [ebp - 0x128], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x124], 6
jb 0x45bd52
mov dword [ebp - method.CAccessRight.virtual_0], vtable.CAccessRight.0
mov dword [ebp - 4], 0
call fcn.0045b520
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.004e4900
mov esp, ebp
pop ebp
ret

Function at 0x45bd70
Capabilities:
Check os version
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ff85b
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [0x5522c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, eax
test edi, edi
je 0x45be18
lea eax, [ebp - 0x168]
push eax
mov dword [ebp - 0x168], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x164], 6
jb 0x45be18
mov dword [ebp - method.CAccessRight.virtual_0], vtable.CAccessRight.0
xor ecx, ecx
push 0x3e
push ecx
lea edx, [ebp - 0x4e]
mov dword [ebp - 4], 0
push edx
mov word [ebp - 0x50], cx
call fcn.004e95e0
add esp, 0xc
push 0x20
push 0x51d5f4
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0
lea ecx, [ebp - 0x50]
push ecx
push esi
call fcn.0045b580
add esp, 0xc
mov eax, 1
jmp 0x45be1a
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e4900
mov esp, ebp
pop ebp
ret
Function at 0x45bf90
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5372b8
push 0x4eadd0
mov eax, dword fs:[0]
push eax
sub esp, 0x87c
mov eax, dword [0x5522c0]
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 esi, dword [ebp + 8]
test esi, esi
je 0x45c028
mov bl, 1
mov dword [ebp - 0x88c], 0xffffffff
push 0x51d674
push esi
push 0x51d648
push 0x104
lea eax, [ebp - 0x634]
push eax
call fcn.004e7763
add esp, 0x14
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x884]
push ecx
lea edx, [ebp - 0x634]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x88c], eax
cmp eax, 0xffffffff
jne 0x45c02f
mov dword [ebp - 4], 0xfffffffe
xor al, al
jmp 0x45c178
mov edi, dword [ebp + 0xc]
cmp word [ebp - 0x858], 0x2e
je 0x45c0ea
test byte [ebp - 0x884], 0x10
je 0x45c084
lea eax, [ebp - 0x858]
push eax
push esi
push str._s_s_
push 0x104
lea ecx, [ebp - 0x42c]
push ecx
call fcn.004e7763
xor edx, edx
mov word [ebp - 0x226], dx
push edi
lea eax, [ebp - 0x42c]
push eax
call fcn.0045bf90
add esp, 0x1c
mov bl, al
jmp 0x45c0e4
lea ecx, [ebp - 0x858]
push ecx
push esi
push 0x51d648
push 0x104
lea edx, [ebp - 0x224]
push edx
call fcn.004e7763
add esp, 0x14
xor eax, eax
mov word [ebp - 0x1e], ax
test edi, edi
je 0x45c0b4
cmp edi, 1
jne 0x45c0ea
lea ecx, [ebp - 0x224]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
lea edx, [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
mov byte [ebp - 0x885], bl
lea ecx, [ebp - 0x884]
push ecx
mov edx, dword [ebp - 0x88c]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x45c032
mov eax, dword [ebp - 0x88c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x88c], 0xffffffff
test edi, edi
je 0x45c126
cmp edi, 2
jne 0x45c16f
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
mov byte [ebp - 0x885], bl
jmp 0x45c16f
mov dword [ebp - 4], 0xfffffffe
mov al, bl
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.004e4900
mov esp, ebp
pop ebp
ret
Function at 0x45c3d0
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x507d08
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5522c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45c44d
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, dword [ebp + 8]
and eax, 0xfffffffe
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x45c44d
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x10], esp
mov esi, esp
call fcn.0045d020
add eax, 0x10
mov dword [esi], eax
call fcn.0045c1a0
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45c473
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x45c7c0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b3d0
mov eax, dword fs:[0]
push eax
sub esp, 0x878
mov eax, dword [0x5522c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
test edi, edi
jne 0x45c7ff
xor eax, eax
jmp 0x45c8f5
push 0x51d674
push edi
push 0x51d648
lea eax, [ebp - 0x62c]
push 0x104
push eax
mov esi, 1
call fcn.004e7763
add esp, 0x14
lea ecx, [ebp - 0x87c]
push ecx
lea edx, [ebp - 0x62c]
push edx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x880], eax
cmp eax, 0xffffffff
je 0x45c7f8
mov ebx, dword [ebp + 0xc]
cmp word [ebp - 0x850], 0x2e
je 0x45c89c
test byte [ebp - 0x87c], 0x10
je 0x45c911
lea eax, [ebp - 0x850]
push eax
push edi
push str._s_s_
lea ecx, [ebp - 0x424]
push 0x104
push ecx
call fcn.004e7763
lea eax, [ebp - 0x424]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x21e], dx
call fcn.0045c7c0
add esp, 0x1c
mov esi, eax
mov eax, dword [ebp - 0x880]
lea edx, [ebp - 0x87c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x45c84c
mov ecx, dword [ebp - 0x880]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
je 0x45c8ca
cmp ebx, 2
jne 0x45c8f3
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
test esi, esi
jne 0x45c8f3
push 4
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004e4900
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x850]
push ecx
push edi
push 0x51d648
lea edx, [ebp - 0x21c]
push 0x104
push edx
call fcn.004e7763
xor eax, eax
add esp, 0x14
mov word [ebp - 0x16], ax
test ebx, ebx
je 0x45c945
cmp ebx, 1
jne 0x45c89c
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
test esi, esi
jne 0x45c89c
push ecx
mov ecx, esp
mov dword [ebp - 0x884], esp
push ecx
lea ecx, [ebp - 0x21c]
call fcn.00459600
call fcn.0045c1a0
add esp, 4
jmp 0x45c89c
Function at 0x45d130
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push 4
lea eax, [ebp + 8]
push eax
push 4
push ebx
push esi
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov edi, eax
cmp edi, 5
jne 0x45d18d
push SysReAllocString
mov ecx, esi
mov dword [ebp - 4], vtable.CAccessPermission.0
call fcn.0045d500
test eax, eax
je 0x45d18d
push 4
lea ecx, [ebp + 8]
push ecx
push 4
push ebx
push esi
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push SysReAllocString
mov ecx, esi
mov edi, eax
call fcn.0045d5e0
test edi, edi
sete al
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x45d1a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45d1b0
mov ecx, dword [ebp + 8]
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push ecx
push edi
push ebx
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov esi, eax
cmp esi, 5
jne 0x45d222
push ebx
mov ecx, edi
mov dword [ebp - 4], vtable.CAccessPermission.0
call fcn.0045d500
test eax, eax
je 0x45d222
mov esi, dword [ebp + 0xc]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45d1f5
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
mov eax, dword [ebp + 8]
push edx
push esi
push 1
push eax
push edi
push ebx
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push ebx
mov ecx, edi
mov esi, eax
call fcn.0045d5e0
test esi, esi
sete al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x45d2b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x5522c0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 6
jne 0x45d2f0
mov eax, 1
cmp dword [ebp - 0x110], eax
je 0x45d2f2
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e4900
mov esp, ebp
pop ebp
ret

Function at 0x45d500
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa1c
mov eax, dword [0x5522c0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
add eax, 0x80000000
push edi
mov edi, ecx
cmp eax, 3
ja case.default.0x45d528
jmp dword [eax*4 + 0x45d5c4]
mov esi, str.CLASSES_ROOT
jmp 0x45d549
mov esi, str.CURRENT_USER
jmp 0x45d549
mov esi, str.MACHINE
jmp 0x45d549
mov esi, str.USERS
lea eax, [ebp - 0xa18]
push eax
lea ecx, [ebp - 0x214]
push ecx
mov dword [ebp - 0xa18], 0x202
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push edi
push esi
push str._s_s
lea edx, [ebp - 0xa14]
push 0x800
push edx
call fcn.004e7763
add esp, 0x14
push 0xf003f
lea eax, [ebp - 0x214]
push eax
push 2
lea edi, [ebp - 0xa14]
call fcn.0045d400
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004e4900
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.004e4900
mov esp, ebp
pop ebp
ret 4
Function at 0x45d5e0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa1c
mov eax, dword [0x5522c0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
add eax, 0x80000000
push edi
mov edi, ecx
cmp eax, 3
ja case.default.0x45d608
jmp dword [eax*4 + 0x45d6a0]
mov esi, str.CLASSES_ROOT
jmp 0x45d629
mov esi, str.CURRENT_USER
jmp 0x45d629
mov esi, str.MACHINE
jmp 0x45d629
mov esi, str.USERS
lea eax, [ebp - 0xa18]
push eax
lea ecx, [ebp - 0x214]
push ecx
mov dword [ebp - 0xa18], 0x202
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push edi
push esi
push str._s_s
lea edx, [ebp - 0xa14]
push 0x800
push edx
call fcn.004e7763
add esp, 0x14
push 2
lea eax, [ebp - 0x214]
push eax
push 3
lea edi, [ebp - 0xa14]
call fcn.0045d400
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004e4900
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.004e4900
mov esp, ebp
pop ebp
ret 4

Function at 0x45d6b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x507cdc
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5522c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 4], eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov byte [ebp - 4], 4
mov eax, dword [0x551f18]
mov edx, dword [eax + 0xc]
mov ecx, 0x551f18
lea edi, [esi + 0x44]
call edx
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 5
call fcn.0045cf30
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45d74c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 0x45d830
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b3a0
mov eax, dword fs:[0]
push eax
sub esp, 0x208
mov eax, dword [0x5522c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x214], 0
mov dword [ebp - 4], 1
mov eax, dword [esi + 0x44]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push eax
push 0xff
lea eax, [ebp - 0x210]
push eax
push 0x51d754
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push edi
lea ecx, [ebp - 0x210]
mov dword [esi + 0x40], eax
call fcn.00459600
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45d8c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45d8e7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e4900
mov esp, ebp
pop ebp
ret 8