joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45f214
Capabilities:
Read .ini file

Disassembly:
push 0x10
mov eax, 0x4a4c01
call fcn.004878f8
call fcn.00423650
mov eax, dword [eax]
cmp eax, 2
je 0x45f2cc
cmp eax, 3
je 0x45f2cc
cmp eax, 8
jne 0x45f27c
call fcn.004292b2
lea esi, [ebp - 0x18]
call fcn.0045ec72
lea ecx, [ebp - 0x10]
push str.ressrcchsuplive.svr
push ecx
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.0040548e
mov eax, dword [ebp - 0x18]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.004012f9
push dword [ebp - 0x10]
push 0x1f41
jmp 0x45f302
call fcn.004292b2
lea esi, [ebp - 0x1c]
call fcn.0045ec72
lea ecx, [ebp - 0x14]
push str.ressrcchsuplive.svr
push ecx
mov ecx, eax
mov dword [ebp - 4], 2
call fcn.0040548e
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.004012f9
push dword [ebp - 0x14]
push 0x537
push str.TryNo
push str.Common
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
mov eax, dword [ebp - 0x14]
jmp 0x45f317
call fcn.004292b2
lea esi, [ebp - 0x18]
call fcn.0045ec72
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
push str.uplive.svr
push ecx
mov ecx, eax
call fcn.0040548e
mov eax, dword [ebp - 0x18]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.004012f9
push dword [ebp - 0x10]
push 0x64b
push str.TryNo
push str.Common
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004012f9
mov eax, esi
call fcn.004879d0
ret

Function at 0x45f327
Capabilities:
Create thread

Disassembly:
push ecx
mov eax, dword [0x4dc0a8]
xor eax, esp
mov dword [esp], eax
push edi
xor edi, edi
cmp dword [esi + 0x24], edi
jne 0x45f3a4
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push edi
push edi
push 1
push edi
call ebx
cmp eax, edi
mov dword [esi + 0x1c], eax
je 0x45f377
push edi
push edi
push 1
push edi
call ebx
cmp eax, edi
mov dword [esi + 0x20], eax
je 0x45f377
push edi
push edi
push esi
push 0x45f50f
push edi
push edi
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x18
cmp eax, edi
mov dword [esi + 0x18], eax
jne 0x45f39c
mov eax, dword [esi + 0x1c]
cmp eax, edi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x45f38a
push eax
call ebx
mov dword [esi + 0x1c], edi
mov eax, dword [esi + 0x20]
cmp eax, edi
je 0x45f397
push eax
call ebx
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
jmp 0x45f3a3
mov dword [esi + 0x24], 1
pop ebx
mov ecx, dword [esp + 4]
pop edi
xor ecx, esp
call fcn.00486d86
pop ecx
ret
Function at 0x4618db
Capabilities:
Read file on windows

Disassembly:
push ebp
push esi
push edi
mov esi, eax
call fcn.00461876
mov ebp, dword [sym.imp.MSVCR80.dll_fseek]
xor edi, edi
push edi
push edi
push ebx
call ebp
push ebx
call dword [sym.imp.MSVCR80.dll_fgetc]
add esp, 0x10
cmp eax, 0xffffffff
jne 0x46191b
push ebx
call dword [sym.imp.MSVCR80.dll_ferror]
test eax, eax
pop ecx
je 0x46191b
push 5
pop eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
jmp 0x46197e
push 2
push edi
push ebx
call ebp
push ebx
call dword [sym.imp.MSVCR80.dll_ftell]
push 0
push 0
push ebx
mov edi, eax
call ebp
add esp, 0x1c
cmp edi, 0xffffffff
jne 0x461949
push 5
and dword [esi + 0x38], 0
and dword [esi + 0x3c], 0
pop eax
mov dword [esi + 0x30], eax
jmp 0x46197e
test edi, edi
jne 0x461951
push 0xf
jmp 0x46193b
lea eax, [edi + 1]
push eax
call fcn.004863d6
push ebx
push edi
push 1
push eax
mov dword [esi + 0x40], eax
call dword [sym.imp.MSVCR80.dll_fread]
add esp, 0x14
cmp eax, edi
jne 0x461939
mov eax, dword [esi + 0x40]
mov byte [edi + eax], 0
call fcn.00461982
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
ret

Function at 0x461e9e
Capabilities:
Check if file exists

Disassembly:
push 8
mov eax, 0x4a100d
call fcn.004878f8
lea esi, [ebp - 0x10]
call fcn.00461f68
and dword [ebp - 4], 0
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x461f0f
lea esi, [ebp - 0x14]
call fcn.00461fec
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00404347
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004012f9
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x461f0f
lea esi, [ebp - 0x14]
call fcn.00461f68
mov byte [ebp - 4], 2
call fcn.00404347
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004012f9
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetInterface
push eax
mov dword [ebx + 0xc], eax
call esi
push str.WebUiInitialize
push dword [ebx + 0xc]
mov dword [ebx], eax
call esi
push str.WebUiUninitialize
push dword [ebx + 0xc]
mov dword [ebx + 4], eax
call esi
xor esi, esi
cmp dword [ebx], esi
mov dword [ebx + 8], eax
je 0x461f55
cmp dword [ebx + 4], esi
je 0x461f55
cmp eax, esi
je 0x461f55
inc esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004012f9
mov eax, esi
call fcn.004879d0
ret

Function at 0x462cc1
Capabilities:
Hash data with md5

Disassembly:
push esi
xor ecx, ecx
push 0x40
lea esi, [eax + 0x58]
push ecx
push esi
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
call sub.MSVCR80.dll_memset
add esp, 0xc
mov byte [esi], 0x80
pop esi
ret
Function at 0x46378b
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4dc0a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
xor ebx, ebx
push 0x206
lea eax, [ebp - 0x20a]
push ebx
push eax
mov word [ebp - 0x20c], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov edi, 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.winhttp.dll
lea eax, [ebp - 0x20c]
push edi
push eax
call dword [sym.imp.MSVCR80.dll_wcscat_s]
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [esi + 0x68], eax
je 0x4638ef
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WinHttpOpen
push eax
call edi
push str.WinHttpConnect
push dword [esi + 0x68]
mov dword [esi + 4], eax
call edi
push str.WinHttpOpenRequest
push dword [esi + 0x68]
mov dword [esi + 8], eax
call edi
push str.WinHttpAddRequestHeaders
push dword [esi + 0x68]
mov dword [esi + 0xc], eax
call edi
push str.WinHttpSendRequest
push dword [esi + 0x68]
mov dword [esi + 0x10], eax
call edi
push str.WinHttpReceiveResponse
push dword [esi + 0x68]
mov dword [esi + 0x14], eax
call edi
push str.WinHttpQueryHeaders
push dword [esi + 0x68]
mov dword [esi + 0x18], eax
call edi
push str.WinHttpReadData
push dword [esi + 0x68]
mov dword [esi + 0x1c], eax
call edi
push str.WinHttpCloseHandle
push dword [esi + 0x68]
mov dword [esi + 0x20], eax
call edi
push str.WinHttpCrackUrl
push dword [esi + 0x68]
mov dword [esi + 0x24], eax
call edi
push str.WinHttpSetOption
push dword [esi + 0x68]
mov dword [esi + 0x28], eax
call edi
push str.WinHttpSetTimeouts
push dword [esi + 0x68]
mov dword [esi + 0x2c], eax
call edi
push str.WinHttpQueryOption
push dword [esi + 0x68]
mov dword [esi + 0x30], eax
call edi
cmp dword [esi + 4], ebx
mov dword [esi + 0x34], eax
je 0x4638ed
cmp dword [esi + 0x10], ebx
je 0x4638ed
cmp dword [esi + 0x24], ebx
je 0x4638ed
cmp dword [esi + 8], ebx
je 0x4638ed
cmp dword [esi + 0xc], ebx
je 0x4638ed
cmp dword [esi + 0x1c], ebx
je 0x4638ed
cmp dword [esi + 0x20], ebx
je 0x4638ed
cmp dword [esi + 0x18], ebx
je 0x4638ed
cmp dword [esi + 0x14], ebx
je 0x4638ed
cmp dword [esi + 0x28], ebx
je 0x4638ed
cmp dword [esi + 0x2c], ebx
je 0x4638ed
cmp dword [esi + 0x30], ebx
je 0x4638ed
cmp eax, ebx
je 0x4638ed
inc ebx
mov dword [esi], ebx
mov ecx, dword [ebp - 4]
mov eax, dword [esi]
pop edi
xor ecx, ebp
pop ebx
call fcn.00486d86
leave
ret
Function at 0x4638ff
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4dc0a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
xor ebx, ebx
push 0x206
lea eax, [ebp - 0x20a]
push ebx
push eax
mov word [ebp - 0x20c], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov edi, 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.wininet.dll
lea eax, [ebp - 0x20c]
push edi
push eax
call dword [sym.imp.MSVCR80.dll_wcscat_s]
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [esi + 0x6c], eax
je 0x463a40
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.InternetOpenW
push eax
call edi
push str.InternetConnectW
push dword [esi + 0x6c]
mov dword [esi + 0x3c], eax
call edi
push str.HttpOpenRequestW
push dword [esi + 0x6c]
mov dword [esi + 0x40], eax
call edi
push str.HttpAddRequestHeadersW
push dword [esi + 0x6c]
mov dword [esi + 0x44], eax
call edi
push str.HttpSendRequestW
push dword [esi + 0x6c]
mov dword [esi + 0x48], eax
call edi
push str.HttpQueryInfoW
push dword [esi + 0x6c]
mov dword [esi + 0x4c], eax
call edi
push str.InternetReadFile
push dword [esi + 0x6c]
mov dword [esi + 0x50], eax
call edi
push str.InternetCloseHandle
push dword [esi + 0x6c]
mov dword [esi + 0x54], eax
call edi
push str.InternetCrackUrlW
push dword [esi + 0x6c]
mov dword [esi + 0x58], eax
call edi
push str.InternetSetOptionW
push dword [esi + 0x6c]
mov dword [esi + 0x5c], eax
call edi
push str.InternetQueryOptionW
push dword [esi + 0x6c]
mov dword [esi + 0x60], eax
call edi
cmp dword [esi + 0x3c], ebx
mov dword [esi + 0x64], eax
je 0x463a3d
cmp dword [esi + 0x40], ebx
je 0x463a3d
cmp dword [esi + 0x44], ebx
je 0x463a3d
cmp dword [esi + 0x48], ebx
je 0x463a3d
cmp dword [esi + 0x4c], ebx
je 0x463a3d
cmp dword [esi + 0x50], ebx
je 0x463a3d
cmp dword [esi + 0x54], ebx
je 0x463a3d
cmp dword [esi + 0x58], ebx
je 0x463a3d
cmp dword [esi + 0x5c], ebx
je 0x463a3d
cmp dword [esi + 0x60], ebx
je 0x463a3d
cmp eax, ebx
je 0x463a3d
inc ebx
mov dword [esi + 0x38], ebx
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 0x38]
pop edi
xor ecx, ebp
pop ebx
call fcn.00486d86
leave
ret
Function at 0x466b6b
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x1d0]
sub esp, 0x250
mov eax, dword [0x4dc0a8]
xor eax, ebp
mov dword [ebp + 0x1cc], eax
mov eax, dword [ebp + 0x1d8]
push edi
xor edi, edi
push 0x228
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x5c]
push edi
push eax
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x60], edi
call sub.MSVCR80.dll_memset
add esp, 0xc
push edi
push 2
mov dword [ebp - 0x78], edi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
mov dword [ebp - 0x6c], eax
jne 0x466bca
xor eax, eax
jmp 0x466cde
push esi
lea ecx, [ebp - 0x60]
push ecx
push eax
mov dword [ebp - 0x60], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x466cc8
push ebx
cmp dword [ebp - 0x68], edi
je 0x466bf8
push dword [ebp - 0x68]
call esi
mov dword [ebp - 0x68], edi
cmp dword [ebp - 0x64], edi
je 0x466c05
push dword [ebp - 0x64]
call esi
mov dword [ebp - 0x64], edi
lea eax, [ebp - 0x3c]
push str.explorer.exe
push eax
call dword [sym.imp.MSVCR80.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x466c91
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x466c91
mov eax, dword [ebp - 0x78]
cmp eax, dword [ebp + 0x1dc]
jne 0x466c91
push dword [ebp - 0x58]
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, edi
mov dword [ebp - 0x68], eax
je 0x466c91
lea eax, [ebp - 0x64]
push eax
push 0xf01ff
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x466c91
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x64]
lea ebx, [ebp - 0x74]
mov dword [ebp - 0x74], edi
call fcn.00466a49
test eax, eax
pop ecx
pop ecx
je 0x466c91
mov ebx, dword [ebp - 0x74]
push dword [ebx]
call fcn.004669b8
test eax, eax
pop ecx
push ebx
je 0x466ca7
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x6c]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x466beb
jmp 0x466cbd
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x7c]
mov dword [ecx], eax
mov dword [ebp - 0x70], 1
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
cmp dword [ebp - 0x68], edi
pop ebx
je 0x466cc8
push dword [ebp - 0x68]
call esi
cmp dword [ebp - 0x64], edi
je 0x466cd5
push dword [ebp - 0x64]
call esi
mov dword [ebp - 0x64], edi
push dword [ebp - 0x6c]
call esi
mov eax, dword [ebp - 0x70]
pop esi
mov ecx, dword [ebp + 0x1cc]
xor ecx, ebp
pop edi
call fcn.00486d86
add ebp, 0x1d0
leave
ret
Function at 0x466cf4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ecx, ecx
cmp dword [ebp + 8], ecx
push esi
push edi
je 0x466d49
cmp dword [ebp + 0xc], ecx
je 0x466d49
mov eax, dword [ebp + 0x10]
xor esi, esi
cmp dword [ebp + 0xc], ecx
jbe 0x466d49
push 0x5851f42d
push 0x4c957f2d
push ecx
push eax
call fcn.0049a290
add eax, 1
adc edx, 0
mov ecx, edx
mov ebx, eax
mov edi, ecx
shrd ebx, edi, 0x13
mov edx, esi
and edx, 3
xor bl, byte [ebp + edx + 0x10]
shr edi, 0x13
mov edi, dword [ebp + 8]
xor byte [esi + edi], bl
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x466d10
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4671fa
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 4
mov eax, 0x4a0ee5
call fcn.004878f8
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00405f0e
push dword [ebp + 8]
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x46723a
xor esi, esi
inc esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004012f9
mov eax, esi
call fcn.004879d0
ret
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x467224
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ebx, 0xb7
cmp eax, ebx
je 0x467224
lea ecx, [ebp - 0x10]
call fcn.004671b1
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jne 0x467271
xor esi, esi
jmp 0x467227
push eax
call fcn.004671fa
test eax, eax
pop ecx
je 0x46726d
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x467224
call edi
cmp eax, ebx
jne 0x46726d
jmp 0x467224

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocStringLen
push dword [ebp + 8]
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x4674b7
push edi
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp - 4], ebx
mov edi, eax
jne 0x4674ad
cmp edi, 0x200000
ja 0x4674ad
lea eax, [edi + 2]
push esi
push eax
call fcn.004863d6
pop ecx
push ebx
mov esi, eax
lea eax, [ebp + 8]
push eax
push edi
push esi
push dword [ebp - 8]
mov dword [ebp + 8], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4674ac
mov eax, dword [ebp + 8]
cmp eax, edi
jne 0x4674ac
mov byte [eax + esi], bl
mov eax, dword [ebp + 8]
mov byte [eax + esi + 1], bl
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
mov dword [ebp - 0xc], 1
pop esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, dword [ebp - 0xc]
pop ebx
leave
ret 0xc
Function at 0x4675cc
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a43a4
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4dc0a8]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov dword [esp + 0x20], ecx
mov eax, dword [0x4e0530]
and dword [esp + 0x1c], 0
mov ecx, 0x4e0530
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
and dword [esp + 0x30], 0
mov edi, dword [sym.imp.MSVCR80.dll_wcschr]
push 0x5b
push dword [ebp + 8]
call edi
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
je 0x467695
and dword [esp + 0x18], 0
lea esi, [esp + 0x14]
call fcn.004043f6
push 0xa
push ebx
call edi
test eax, eax
pop ecx
pop ecx
jne 0x46765b
push ebx
mov eax, esi
push eax
call fcn.00405fe7
mov dword [esp + 0x18], 1
jmp 0x46766b
sub eax, ebx
sar eax, 1
inc eax
push eax
push ebx
lea eax, [esp + 0x1c]
call fcn.0040600b
mov eax, dword [esp + 0x14]
mov eax, dword [eax - 0xc]
push dword [esp + 0x20]
lea ecx, [esp + 0x18]
lea ebx, [ebx + eax*2]
call fcn.004676ba
test eax, eax
je 0x467695
cmp dword [esp + 0x18], 0
je 0x46762f
mov dword [esp + 0x1c], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.004012f9
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x468c2d
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
xor esi, esi
push 0xf003f
push esi
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, esi
mov dword [ebp - 0xc], eax
je 0x468ca8
push ebx
push edi
push 2
push str.seclogon
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
cmp edi, esi
je 0x468ca1
lea eax, [ebp - 8]
push eax
push 0x24
lea eax, [ebp - 0x30]
push eax
push edi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x468c87
cmp dword [ebp - 0x2c], 3
je 0x468c9e
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push 3
push 0xffffffffffffffff
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
mov dword [ebp - 4], eax
push edi
call ebx
push dword [ebp - 0xc]
call ebx
pop edi
pop ebx
mov eax, dword [ebp - 4]
pop esi
leave
ret

Function at 0x469f94
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x20c
lea ebp, [esp - 4]
mov eax, dword [0x4dc0a8]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push 8
mov eax, 0x49f295
call fcn.004878f8
xor edi, edi
mov esi, ecx
mov dword [ebp - 4], edi
mov ecx, 0x4e0530
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], edi
call fcn.00401a8a
push 0x208
lea eax, [ebp + 2]
mov dword [ebp - 4], edi
push edi
push eax
mov dword [ebp - 0x10], 1
mov word [ebp], di
call sub.MSVCR80.dll_memset
add esp, 0xc
push edi
push 0x19
lea eax, [ebp]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp eax, edi
je 0x46a016
push edi
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp]
push eax
push esi
call fcn.00405140
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 + 0x20c]
xor ecx, ebp
call fcn.00486d86
add ebp, 0x210
leave
ret

Function at 0x46a03b
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x20c
lea ebp, [esp - 4]
mov eax, dword [0x4dc0a8]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push 8
mov eax, 0x49f254
call fcn.004878f8
xor edi, edi
mov esi, ecx
mov dword [ebp - 4], edi
mov ecx, 0x4e0530
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], edi
call fcn.00401a8a
push 0x208
lea eax, [ebp + 2]
mov dword [ebp - 4], edi
push edi
push eax
mov dword [ebp - 0x10], 1
mov word [ebp], di
call sub.MSVCR80.dll_memset
add esp, 0xc
push edi
push 0x10
lea eax, [ebp]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp eax, edi
je 0x46a0bd
push edi
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp]
push eax
push esi
call fcn.00405140
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 + 0x20c]
xor ecx, ebp
call fcn.00486d86
add ebp, 0x210
leave
ret

Function at 0x46a10c
Capabilities:
Read .ini file

Disassembly:
push dword [eax]
push 0
push dword [esp + 0xc]
push str.taguser
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
ret 4
Function at 0x46a122
Capabilities:
Read .ini file

Disassembly:
push 4
mov eax, 0x49f220
call fcn.004878f8
mov esi, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 4], edi
mov ecx, 0x4e0530
mov dword [ebp - 0x10], edi
call fcn.00401a8a
xor ecx, ecx
push 2
pop edx
mov eax, ebx
mul edx
seto cl
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], 1
neg ecx
or ecx, eax
push ecx
call fcn.004863d6
mov edi, eax
test edi, edi
pop ecx
je 0x46a1a1
lea eax, [ebx + ebx]
push eax
push 0
push edi
call sub.MSVCR80.dll_memset
mov eax, dword [ebp + 8]
add esp, 0xc
push dword [eax]
push ebx
push edi
push 0x4ae5c8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push edi
push esi
call fcn.00405140
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
pop ecx
jmp 0x46a1ac
push 0x4ae5c8
push esi
call fcn.00405140
mov eax, esi
call fcn.004879d0
ret 0x10

Function at 0x46a28d
Capabilities:
Get disk information

Disassembly:
push 0x2f8
mov eax, 0x4a0e3c
call fcn.00487961
mov eax, dword [ebp + 8]
xor ebx, ebx
push 0xd2
mov dword [ebp - 0x2fc], eax
lea eax, [ebp - 0xe6]
push ebx
push eax
mov word [ebp - 0xe8], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0xe8]
push eax
push 0x69
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp eax, ebx
jne 0x46a2dd
xor eax, eax
jmp 0x46a3c4
cdq
and edx, 3
add eax, edx
mov edi, eax
push 0x208
lea eax, [ebp - 0x2f6]
push ebx
push eax
sar edi, 2
mov word [ebp - 0x2f8], bx
call sub.MSVCR80.dll_memset
mov word [ebp - 0xf0], bx
mov ebx, dword [ebp - 0x2fc]
add esp, 0xc
add ebx, 4
lea esi, [ebp - 0xe8]
call fcn.004408ff
test edi, edi
jle 0x46a3c1
mov dword [ebp - 0x2fc], edi
and word [esi + 4], 0
push 0x104
lea eax, [ebp - 0x2f8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x46a3b2
lea eax, [ebp - 0x2f8]
push eax
lea eax, [ebp - 0x304]
push eax
call fcn.00405f0e
and dword [ebp - 4], 0
lea eax, [ebp - 0x304]
push eax
mov edi, ebx
call fcn.00440563
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x304]
add eax, 0xfffffff0
call fcn.004012f9
push esi
lea eax, [ebp - 0x300]
push eax
call fcn.00405f0e
lea eax, [ebp - 0x300]
push eax
mov dword [ebp - 4], 1
call fcn.00440563
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x300]
add eax, 0xfffffff0
call fcn.004012f9
add esi, 8
dec dword [ebp - 0x2fc]
jne 0x46a32d
xor eax, eax
inc eax
call fcn.004879e4
ret 4