joyce8/EMBER2024-capa huggingface dataset:
Function at 0x453d23
Capabilities:
Delete file
Get file size
Move file
Set file attributes

Disassembly:
mov eax, 0x4a8f4a
call fcn.004a6844
push ecx
push ebx
push esi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 3
push SysReAllocString
push dword [0x4da2a4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x453dc5
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x453d67
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0x80000
jb 0x453dc4
mov eax, dword [0x4da2a4]
add eax, 0xfffffff0
call fcn.00401543
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], esi
call fcn.00453e3d
mov edi, dword [ebp - 0x10]
mov ebx, dword [0x4da2a4]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push ebx
call esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [edi - 0x10]
call fcn.00401018
pop edi
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop esi
inc eax
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x454140
Capabilities:
Get disk information

Disassembly:
mov eax, 0x4a94f2
call fcn.004a6844
sub esp, 0x2f4
push ebx
push esi
push edi
xor esi, esi
push 0xd2
lea eax, [ebp - 0xee]
push esi
push eax
mov word [ebp - 0xf0], si
call fcn.00476790
add esp, 0xc
lea eax, [ebp - 0xf0]
push eax
push 0x69
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp eax, esi
jne 0x45418b
xor eax, eax
jmp 0x45424f
cdq
and edx, 3
add eax, edx
mov edi, eax
push 0x208
lea eax, [ebp - 0x2fe]
push esi
push eax
sar edi, 2
mov word [ebp - 0x300], si
call fcn.00476790
mov word [ebp - 0xf8], si
mov esi, dword [ebp + 8]
add esp, 0xc
add esi, 4
lea ebx, [ebp - 0xf0]
call fcn.0045486e
test edi, edi
jle 0x45424c
mov dword [ebp - 0x10], edi
and word [ebx + 4], 0
push 0x104
lea eax, [ebp - 0x300]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x454244
lea eax, [ebp - 0x300]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00406140
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
mov edi, esi
call fcn.0044fe39
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00401018
push ebx
lea eax, [ebp - 0x14]
push eax
call fcn.00406140
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], 1
call fcn.0044fe39
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00401018
add ebx, 8
dec dword [ebp - 0x10]
jne 0x4541d1
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x454286
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
xor ebx, ebx
cmp dword [esi + 0x14], ebx
jne 0x454307
push str.PSAPI.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [esi + 0x18], eax
je 0x454307
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumProcessModules
push eax
call edi
push str.EnumProcesses
push dword [esi + 0x18]
mov dword [esi + 8], eax
call edi
push str.GetModuleBaseNameW
push dword [esi + 0x18]
mov dword [esi], eax
call edi
push str.GetModuleFileNameExW
push dword [esi + 0x18]
mov dword [esi + 4], eax
call edi
push str.GetProcessImageFileNameW
push dword [esi + 0x18]
mov dword [esi + 0xc], eax
call edi
cmp dword [esi], ebx
mov dword [esi + 0x10], eax
pop edi
je 0x454302
cmp dword [esi + 4], ebx
je 0x454302
cmp dword [esi + 8], ebx
je 0x454302
cmp dword [esi + 0xc], ebx
je 0x454302
cmp eax, ebx
je 0x454302
xor eax, eax
inc eax
jmp 0x454304
xor eax, eax
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x14]
pop ebx
ret
Function at 0x4544dc
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x4a8a67
call fcn.004a6844
sub esp, 0x224
push ebx
push esi
push edi
xor esi, esi
push 0x206
lea eax, [ebp - 0x22e]
push esi
push eax
mov edi, ecx
mov dword [ebp - 0x18], esi
mov word [ebp - 0x230], si
call fcn.00476790
xor ecx, ecx
add esp, 0xc
inc ecx
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.00401143
push 0x4b3724
push eax
mov dword [ebp - 4], esi
call fcn.004012ab
mov ebx, eax
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
inc bl
call fcn.00401018
test bl, bl
je 0x4546b2
mov ebx, str.___
push ebx
call fcn.00476b5e
mov esi, str.SystemRoot_
push esi
mov dword [ebp - 0x1c], eax
call fcn.00476b5e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x10]
mov eax, edi
call fcn.00401143
push ebx
push eax
mov dword [ebp - 4], 1
call fcn.004012ab
mov ebx, eax
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
inc bl
call fcn.00401018
test bl, bl
je 0x4545cb
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
sub ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
push eax
mov eax, edi
call fcn.004010f3
mov dword [ebp - 4], 2
call fcn.0040103a
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
jmp 0x454681
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
mov eax, edi
call fcn.00401143
push esi
push eax
mov dword [ebp - 4], 3
call fcn.004012ab
mov ebx, eax
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
inc bl
call fcn.00401018
test bl, bl
je 0x454689
push 0x104
lea eax, [ebp - 0x230]
push eax
push str._SystemRoot_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
sub ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x24]
push eax
inc ecx
mov eax, edi
call fcn.004010f3
mov esi, eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 4], 4
call fcn.00406140
lea ecx, [ebp - 0x20]
push esi
push ecx
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.00406880
pop ecx
pop ecx
mov byte [ebp - 4], 6
call fcn.0040103a
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.00401018
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.00401018
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.00401018
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
cmp ecx, 3
jg 0x45469c
mov esi, edi
call fcn.00401208
jmp 0x4546b9
cmp ecx, 1
jge 0x4546ab
push 0x80070057
call fcn.00401000
cmp word [eax + 2], 0x3a
jne 0x454693
mov dword [ebp - 0x18], 1
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4546cb
Capabilities:
Terminate process

Disassembly:
push esi
push dword [esp + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4546f5
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x455322
Capabilities:
Encode data using xor

Disassembly:
xor ecx, ecx
cmp dword [esp + 8], ecx
jle 0x45533a
mov eax, dword [esp + 4]
add eax, ecx
xor byte [eax], 0x88
inc ecx
cmp ecx, dword [esp + 8]
jl 0x45532a
ret 8

Function at 0x455427
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x4a8f4a
call fcn.004a6844
sub esp, 0x10
mov eax, dword [0x4d906c]
or dword [ebp - 0x18], 0xffffffff
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 0x4d906c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x14]
push eax
push ecx
push edi
call fcn.004535f6
push edi
mov ebx, eax
call fcn.0047dce4
add esp, 0x10
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x3e8
div ecx
movzx eax, word [esi + 0x34]
push edx
push dword [ebp - 0x14]
push ebx
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push str._s_d__x__x__x.ich
call fcn.00406b30
mov ebx, dword [esi + 0x1c]
mov esi, dword [esi + 0x14]
add esp, 0x18
push edi
push edi
push 2
push edi
push 1
push 0x40000000
push dword [ebp - 0x10]
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
je 0x4554f5
push edi
lea ecx, [ebp + 8]
push ecx
push ebx
push esi
push eax
mov dword [ebp + 8], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4554e4
cmp dword [ebp + 8], ebx
jne 0x4554e4
mov dword [ebp - 0x14], 1
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], edi
je 0x4554f5
mov dword [ebp - 0x18], edi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00401018
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4559e4
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4a9448
call fcn.004a6844
sub esp, 0x214
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
push 0x206
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x21e]
push ebx
mov dword [ebp - 0x18], ebx
push eax
mov word [ebp - 0x220], bx
call fcn.00476790
add esp, 0xc
mov ecx, 0x4d906c
call fcn.0040134f
xor edi, edi
inc edi
push edi
push 0x23
lea eax, [ebp - 0x220]
push eax
mov dword [ebp - 4], ebx
push ebx
mov dword [ebp - 0x18], edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp eax, ebx
lea eax, [ebp - 0x220]
jne 0x455ab0
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp eax, ebx
je 0x455b0a
lea eax, [ebp - 0x220]
push eax
push esi
call fcn.0040107b
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
mov eax, esi
call fcn.004010f3
mov dword [ebp - 4], edi
mov edi, 0x4b3724
push edi
push eax
call fcn.004012ab
test eax, eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
setne byte [ebp - 0xd]
add eax, 0xfffffff0
call fcn.00401018
cmp byte [ebp - 0xd], bl
je 0x455aa9
push edi
push esi
call fcn.004011e5
push str.All_UsersApplication_Data_
jmp 0x455af1
push eax
push esi
call fcn.0040107b
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
mov eax, esi
call fcn.004010f3
mov edi, 0x4b3724
push edi
push eax
mov dword [ebp - 4], 2
call fcn.004012ab
test eax, eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
setne byte [ebp - 0xd]
add eax, 0xfffffff0
call fcn.00401018
cmp byte [ebp - 0xd], bl
je 0x455af7
push edi
push esi
call fcn.004011e5
push str.wincleaner_askich_
push esi
call fcn.004011e5
push dword [esi]
call fcn.00457b02
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x455e4e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ecx
je 0x455ee9
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
push ecx
lea edx, [ebp - 8]
push edx
push ecx
mov ebx, str.svrid
push ebx
push eax
call edi
cmp dword [ebp - 8], 1
je 0x455e90
cmp dword [ebp - 8], 2
jne 0x455ee7
push esi
mov esi, dword [ebp + 0xc]
call fcn.00401208
mov eax, dword [ebp - 4]
shr eax, 1
inc eax
push eax
call fcn.00401248
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push 0
push ebx
push dword [eax]
call edi
test eax, eax
jne 0x455ee6
mov eax, dword [ebp - 4]
shr eax, 1
and word [esi + eax*2], 0
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x455ed8
push eax
call fcn.00476b5e
pop ecx
mov edx, esi
call fcn.004013fd
mov dword [ebp - 0xc], 1
pop esi
pop edi
pop ebx
mov eax, dword [ebp - 0xc]
leave
ret 8
Function at 0x455ef0
Capabilities:
Set registry value

Disassembly:
push edi
xor edi, edi
cmp dword [esi], edi
je 0x455f1f
push dword [esp + 8]
call fcn.00476b5e
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0xc]
push 1
push edi
push str.svrid
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x455f1f
inc edi
mov eax, edi
pop edi
ret 4
Function at 0x45656b
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4a93ea
call fcn.004a6844
sub esp, 0xe0
mov eax, dword [0x4d906c]
push ebx
push esi
push edi
mov esi, 0x4d906c
xor edi, edi
mov ecx, esi
mov dword [ebp - 0x24], edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], edi
mov eax, dword [0x4d906c]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
push 0xc6
lea eax, [ebp - 0xea]
push edi
mov byte [ebp - 4], 1
push eax
mov word [ebp - 0xec], di
call fcn.00476790
mov eax, dword [0x4d906c]
add esp, 0xc
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 2
mov eax, dword [0x4d906c]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 3
call fcn.00456c44
lea edi, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.0040103a
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00401018
mov eax, edi
call fcn.0040581a
lea eax, [ebp - 0x14]
push eax
call fcn.00456ccf
lea edi, [ebp - 0x20]
mov byte [ebp - 4], 5
call fcn.0040103a
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00401018
push dword [ebp - 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x64
lea eax, [ebp - 0xec]
push eax
mov esi, 0x4b878c
push esi
push str.Version
push str.Common
call ebx
test eax, eax
je 0x456736
lea eax, [ebp - 0xec]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040107b
lea eax, [ebp - 0x10]
call fcn.0040581a
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 0xc]
lea eax, [ebp - 0x14]
push eax
push 2
pop edx
lea eax, [ebp - 0x10]
call fcn.004012d1
lea edi, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.0040103a
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00401018
push esi
push 0x4b3804
mov eax, edi
push eax
call fcn.004546f9
push esi
push 0x4bd650
mov eax, edi
push eax
call fcn.004546f9
push dword [ebp - 0x20]
lea eax, [ebp - 0xec]
push 0x64
push eax
push esi
push str.version
push str.infos
call ebx
test eax, eax
je 0x456736
lea eax, [ebp - 0xec]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040107b
lea eax, [ebp - 0x14]
push eax
push 6
pop ecx
lea eax, [ebp - 0x10]
call fcn.004010f3
mov byte [ebp - 4], 7
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
mov eax, edi
call fcn.0040136a
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00401018
push dword [ebp - 0x18]
call fcn.0047a5ea
pop ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00401018
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00401018
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00401018
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.00401018
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x24]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x456774
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4a93ea
call fcn.004a6844
sub esp, 0xe0
call fcn.00456994
test eax, eax
mov dword [ebp - 0x24], eax
jne 0x456988
mov eax, dword [0x4d906c]
push esi
mov esi, 0x4d906c
push edi
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
and dword [ebp - 4], 0
mov eax, dword [0x4d906c]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
push 0xc6
lea eax, [ebp - 0xea]
push 0
mov byte [ebp - 4], 1
and word [ebp - 0xec], 0
push eax
call fcn.00476790
mov eax, dword [0x4d906c]
add esp, 0xc
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 2
mov eax, dword [0x4d906c]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 3
call fcn.004067a5
pop ecx
lea edi, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.0040103a
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00401018
mov eax, edi
call fcn.0040581a
mov eax, edi
lea edi, [ebp - 0x20]
call fcn.0040103a
push str.updatewmindexwincleaner.txt.old.txt
mov eax, edi
push eax
call fcn.004011e5
push 0
push dword [ebp - 0x20]
call fcn.0047dbd6
test eax, eax
pop ecx
pop ecx
je 0x456887
lea eax, [ebp - 0x14]
push str.datamainver.ini
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040117f
pop ecx
pop ecx
mov byte [ebp - 4], 5
call fcn.0040103a
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00401018
lea eax, [ebp - 0xec]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040107b
lea eax, [ebp - 0x10]
call fcn.0040581a
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 0xc]
lea eax, [ebp - 0x14]
push eax
push 2
pop edx
lea eax, [ebp - 0x10]
call fcn.004012d1
lea edi, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.0040103a
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00401018
mov esi, 0x4b878c
push esi
push 0x4b3804
mov eax, edi
push eax
call fcn.004546f9
push esi
push 0x4bd650
mov eax, edi
push eax
call fcn.004546f9
mov edi, dword [ebp - 0x20]
push edi
push 0x64
lea eax, [ebp - 0xec]
push eax
push esi
push 0x4bd6c8
push 0x4bd6cc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x45695a
lea eax, [ebp - 0xec]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040107b
lea eax, [ebp - 0x14]
push eax
push 6
pop ecx
lea eax, [ebp - 0x10]
call fcn.004010f3
mov byte [ebp - 4], 7
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x18]
call fcn.0040136a
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00401018
push dword [ebp - 0x18]
call fcn.0047a5ea
pop ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00401018
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00401018
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00401018
lea eax, [edi - 0x10]
call fcn.00401018
mov eax, dword [ebp - 0x24]
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x456c44
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4a9346
call fcn.004a6844
push ecx
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
and dword [ebp - 4], 0
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x10]
push eax
call fcn.004067a5
pop ecx
xor esi, esi
inc esi
lea eax, [ebp - 0x10]
mov dword [ebp - 4], esi
call fcn.0040581a
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00401543
add eax, 0x10
mov dword [edi], eax
push 0x4bd488
push edi
mov dword [ebp - 0x14], esi
call fcn.004011e5
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x456cb2
lea eax, [ebp - 0x10]
call fcn.0040103a
push str.ressrcchsuplive.svr
push edi
call fcn.004011e5
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00401018
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x456d64
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push 4
push 0
push dword [esp + 0x18]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 0xc

Function at 0x456e02
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor ebx, ebx
push edi
xor eax, eax
cmp ecx, ebx
lea edi, [ebp - 0x13]
mov byte [ebp - 0x14], bl
mov dword [ebp - 4], ebx
stosd dword es:[edi], eax
mov dword [ebp - 0xc], ebx
je 0x456ede
cmp word [ecx], bx
je 0x456ede
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 8], edi
je 0x456ede
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
jbe 0x456ed4
push ebx
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
call edi
test eax, eax
je 0x456ed4
lea ecx, [ebp - 0x14]
call fcn.00456f1a
test eax, eax
je 0x456ed4
add esi, 0xfffffffc
lea eax, [esi + 1]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x456ed4
mov eax, dword [ebp + 8]
push ebx
push ebx
push 4
push dword [ebp - 8]
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp - 4]
push dword [ebp - 8]
call edi
test eax, eax
je 0x456ed4
mov edx, dword [ebp - 4]
call fcn.00456ee5
test eax, eax
jge 0x456ed4
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 4], ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret

Function at 0x456ee5
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
je 0x456f14
test esi, esi
jbe 0x456f14
mov ecx, esi
shr ecx, 2
push 0
pop eax
je 0x456f03
xor dword [edx + eax*4], 0xd8d8d8d8
inc eax
cmp eax, ecx
jb 0x456ef7
shl eax, 2
jmp 0x456f0d
xor byte [eax + edx], 0xd8
inc eax
cmp eax, esi
jb 0x456f08
xor eax, eax
ret
mov eax, 0x80004005
ret
Function at 0x456f3e
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [esi]
test eax, eax
je 0x456f5c
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi], 0
or dword [esi + 0xc], 0xffffffff
ret

Function at 0x456fb7
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
push esi
push esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
xor ebx, ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jge 0x456fd9
xor eax, eax
inc eax
jmp 0x457043
cmp dword [edi], esi
je 0x456fe2
xor ebx, ebx
inc ebx
jmp 0x457027
lea eax, [ebp - 8]
push eax
push 0x4bd748
push 1
push esi
push 0x4bd738
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x457001
push 2
jmp 0x457026
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push eax
call dword [ecx + 0x1c]
test eax, eax
jge 0x457016
push 3
jmp 0x457026
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x1c]
test eax, eax
jge 0x457027
push 4
pop ebx
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x457034
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
cmp eax, esi
je 0x457041
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, ebx
pop esi
pop ebx
leave
ret