joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44a700
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x482e63
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00475f92
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0047b631
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0047cb4d
test eax, eax
je 0x44a81c
mov ecx, dword [esp + 0x3c]
call fcn.0047b65e
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x44a7e0
push edi
mov ecx, esi
call fcn.00478cc0
mov ecx, esi
call fcn.0044a980
cmp dword [esp + 0x38], 1
jne 0x44a815
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00478dfb
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x44d250
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x44d283
push esi
call fcn.00450340
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44d27c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x44d309
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x44d2f2
mov eax, dword [esi + 8]
test eax, eax
je 0x44d2a7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44d2ee
cmp eax, 2
je 0x44d2f2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44d29a
cmp eax, 3
je 0x44d2cd
cmp eax, 1
jne 0x44d29a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44d29a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44d29a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0044d330
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x44d318
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0044d330
add esp, 4
pop esi
ret

Function at 0x4593d0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x459473
test eax, eax
jbe 0x459473
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x459473
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x45941e
xor esi, esi
jmp 0x459424
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x45944f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0045cd40
add esi, eax
push esi
mov ebx, esi
call fcn.0045cd40
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x459430
pop ebp
test edi, edi
pop edi
jne 0x459473
test ebx, ebx
je 0x459473
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00463d10
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x4595b5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4596cd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4596cd
mov eax, dword [esi + 0x3c]
push eax
call fcn.004763e4
mov esi, eax
test esi, esi
je 0x4596cd
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x4596cd
mov ecx, esi
call fcn.00459520
cmp edi, eax
jge 0x4596cd
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x459653
mov dword [esp + 0x34], 1
jmp 0x4596ae
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4596cd
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00458a90
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x45ed90
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x45edf6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x45edf6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x45edd7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x45f180
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x45f1b8
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x45fe30
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x45fe79
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x4602f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x483710
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0045fea0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0045ff20
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0045ff20
lea ecx, [esi + 0xc]
call fcn.0047496f
lea ecx, [esi + 0x10]
call fcn.0047496f
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004614b0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004614b0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004614b0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004749e4
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004749e4
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x476d88
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x476dc0
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00474e3f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00474e17
jmp 0x476dcc
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x47847d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4784bf
call fcn.0047e1f8
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4784bf
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4784b6
xor eax, eax
jmp 0x4784c7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004784cd
pop edi
pop esi
pop ebx
ret 4

Function at 0x47e728
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47e756
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47e774
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047e68e
jmp 0x47e774
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47e774
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047e68e
test edi, edi
mov eax, edi
jne 0x47e75e
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401070
Capabilities:
Create process on windows
Get common file path
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4089f6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_2
push str.Sentry_cb.exe
lea ecx, [esp + 8]
mov dword [esp + 0x120], 0
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 4]
push edx
push 0x8d
call fcn.004035d0
add esp, 8
test eax, eax
pop edi
je 0x401107
mov eax, dword [esp]
push 0
push 0
push 0
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 4]
mov dword [esp + 4], 0
push ecx
push str.SoftwareMicrosoftInternet_ExplorerMain
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov eax, dword [esp + 4]
test eax, eax
je 0x401187
push str.http:__www.baidu.com_index.php_tnsentry_2_pg
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_2
push 0xa
lea ecx, [esp + 0xc]
mov byte [esp + 0x11c], 1
call sub.MFC42.DLL_CString::GetBuffer
mov edx, dword [esp + 8]
mov ecx, dword [edx - 8]
inc ecx
push ecx
push eax
mov eax, dword [esp + 0xc]
push 1
push 0
push str.Start_Page
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 8]
mov byte [esp + 0x118], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp]
mov dword [esp + 0x118], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
add esp, 0x11c
ret
Function at 0x4014c0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x408a48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
lea eax, [esp + 8]
mov dword [esp + 8], 0
push eax
push 0x40e190
push 0x80000002
mov dword [esp + 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov eax, dword [esp + 8]
test eax, eax
je 0x40161b
lea ecx, [esp + 4]
push esi
push ecx
push 0x40e180
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
push str.C:OKGFileOKGCon.exe
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_2
push 1
lea ecx, [esp + 8]
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::GetBuffer
mov edx, dword [esp + 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [edx - 8]
inc ecx
push ecx
push eax
mov eax, dword [esp + 0x10]
push 1
push 0
push str.DisplayIcon
push eax
call esi
push 0x40e180
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::operator_1
push 1
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [ecx - 8]
inc ecx
push ecx
push eax
push 1
push 0
push str.DisplayName
push edx
call esi
push str.2.09
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::operator_1
push 1
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [ecx - 8]
inc ecx
push ecx
push eax
push 1
push 0
push str.DisplayVersion
push edx
call esi
push str.C:OKGFileUninst.exe
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::operator_1
push 0xa
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [ecx - 8]
inc ecx
push ecx
push eax
push 1
push 0
push str.UninstallString
push edx
call esi
mov eax, dword [esp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov ecx, dword [esp + 0xc]
push ecx
call esi
lea ecx, [esp + 4]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
mov eax, dword [0x40eb38]
push 0x40eb2c
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x401642
mov edx, dword [0x40eb38]
push edx
call fcn.004026f0
add esp, 4
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x401740
Capabilities:
Create shortcut via ishelllink
Get common file path

Disassembly:
sub esp, 0x210
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp]
push eax
push 0x40b678
push 1
push 0
push 0x40b668
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40186c
mov eax, dword [esp]
mov edx, dword [esp + 0x214]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [esp]
mov edx, dword [esp + 0x220]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [esp]
mov edx, dword [esp + 0x21c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov al, byte [esp + 0x224]
test al, al
je 0x401812
push ebx
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str.HH.exe
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x10]
mov ecx, ebx
and ecx, 3
lea edx, [esp + 0x18]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x44]
pop edi
pop esi
pop ebx
mov eax, dword [esp]
lea edx, [esp + 4]
push edx
push 0x40b688
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jl 0x401862
mov ecx, dword [esp + 0x218]
lea eax, [esp + 8]
push 0x104
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 4]
lea ecx, [esp + 8]
push 1
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x18]
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
add esp, 0x210
ret
Function at 0x401880
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x408a93
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
push ebx
push ebp
push esi
push edi
xor ebx, ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x228], ebx
call fcn.00408300
mov edx, dword [esp + 0x230]
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x18]
mov ebp, dword [edx - 8]
lea esi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x14], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x14]
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push edx
and ecx, 3
mov byte [esp + 0x230], 1
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
call esi
cmp eax, 1
jne 0x401937
lea ecx, [esp + 0x10]
mov byte [esp + 0x228], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x230]
mov dword [esp + 0x228], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
jmp 0x4019e3
sub ebp, 2
cmp ebp, ebx
jle 0x401950
cmp byte [esp + ebp + 0x18], 0x5c
je 0x40194e
mov byte [esp + ebp + 0x18], bl
dec ebp
cmp ebp, ebx
jg 0x40193e
cmp ebp, ebx
je 0x4019ba
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call sub.MFC42.DLL_CString::CString_1
call fcn.00401880
add esp, 4
cmp eax, ebx
je 0x4019ba
mov eax, dword [esp + 0x230]
push ebx
push eax
call esi
test eax, eax
mov byte [esp + 0x228], bl
lea ecx, [esp + 0x10]
je 0x4019c5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x230]
mov dword [esp + 0x228], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
jmp 0x4019e3
mov byte [esp + 0x228], bl
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x230]
mov dword [esp + 0x228], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x220]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x21c
ret
Function at 0x401dc0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x408b1b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x208
push esi
push edi
lea ecx, [esp + 8]
call fcn.00408300
mov ecx, 0x80
mov eax, 0x2020202
lea edi, [esp + 0x10]
push str..PhysicalDrive0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x21c], 0
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 8]
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401e99
lea ecx, [esp + 0xc]
push 0
push ecx
lea edx, [esp + 0x18]
push 0x200
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x1ce], 0x80
je 0x401e63
cmp byte [esp + 0x1de], 0x80
jne 0x401e63
mov edi, 1
jmp 0x401e65
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 8]
mov dword [esp + 0x218], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x208]
mov dword fs:[0], ecx
add esp, 0x214
ret
lea ecx, [esp + 8]
mov dword [esp + 0x218], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x210]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x214
ret

Function at 0x401ed0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x408b3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x208
push ebx
push esi
push edi
lea ecx, [esp + 0xc]
call fcn.00408300
mov ecx, 0x80
mov eax, 0x2020202
lea edi, [esp + 0x14]
push str..PhysicalDrive0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x220], 0
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 0xc]
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
or ebx, 0xffffffff
cmp esi, ebx
je 0x402020
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x1c]
push 0x200
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402020
mov eax, dword [esp + 0x1d2]
mov ecx, dword [esp + 0x1d6]
push ebp
mov ebp, dword [esp + 0x1e6]
mov edx, dword [esp + 0x1de]
mov edi, dword [esp + 0x1e2]
mov dword [esp + 0x1d6], ebp
mov ebp, dword [esp + 0x1ea]
mov dword [esp + 0x1da], ebp
mov ebp, dword [esp + 0x1ee]
push 0
mov dword [esp + 0x1e2], ebp
mov ebp, dword [esp + 0x1f6]
push 0
push 0
push esi
mov dword [esp + 0x1f2], ebp
mov dword [esp + 0x1f6], eax
mov dword [esp + 0x1fa], ecx
mov dword [esp + 0x1fe], edx
mov dword [esp + 0x202], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x20]
push 0x200
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
pop ebp
je 0x402020
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
mov dword [esp + 0x21c], ebx
call sub.MFC42.DLL_CString::CString
mov eax, 1
jmp 0x402032
lea ecx, [esp + 0xc]
mov dword [esp + 0x21c], ebx
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x214]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x214
ret
Function at 0x4020d0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x408b58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
lea ecx, [esp + 4]
call fcn.00408300
mov eax, dword [esp + 0x18]
lea ecx, [esp + 4]
push eax
push str..PhysicalDrive_d
push ecx
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x10]
add esp, 0xc
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402198
mov eax, dword [esp + 0x1c]
push edi
mov ecx, eax
push 0
shr eax, 0x17
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
shl ecx, 9
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x20]
push 0
shl edx, 9
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 8]
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x402440
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
sub esp, 0x1c
push ebp
push esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
je 0x4024e8
push 0xf01ff
push str.SIoctl
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x4024e1
push ebx
lea eax, [esp + 0xc]
push edi
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4024c2
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea ecx, [esp + 0x10]
push ecx
push esi
call ebx
test eax, eax
je 0x4024c2
cmp dword [esp + 0x14], 3
jne 0x4024c2
push 0x3e8
call edi
lea edx, [esp + 0x10]
push edx
push esi
call ebx
test eax, eax
jne 0x4024a8
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
call esi
push ebp
call esi
mov eax, edi
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x1c
ret
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
xor eax, eax
pop ebp
add esp, 0x1c
ret