joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4122d0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44328b
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x455028]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x455028]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [edi + 0x18]
push eax
mov dword [esp + 0x20], eax
call fcn.00412080
push edi
call fcn.00412440
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ecx, dword [0x4451ac]
mov dword [esp + 0x20], eax
mov eax, dword [0x4451a8]
mov dword [esp + 0x28], eax
xor eax, eax
xor edx, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], ecx
mov word [esp + 0x10], dx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 1
xor ebx, ebx
mov ecx, ebx
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x20]
test ecx, eax
je 0x4123f4
lea eax, [esp + 0x28]
lea edx, [ebx + 0x41]
push eax
mov word [esp + 0x2c], dx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x4123f4
push 0x1e0
call sub.mfc90u.dll_new
add esp, 4
mov dword [esp + 0x24], eax
xor esi, esi
mov dword [esp + 0x40], esi
cmp eax, esi
je 0x4123a9
lea ecx, [esp + 0x28]
push ecx
push eax
call fcn.00433870
mov esi, eax
push esi
mov dword [esp + 0x44], 0xffffffff
call fcn.00412080
mov edx, dword [esi]
mov eax, dword [edx + 0x1c]
mov ecx, esi
mov dword [esi + 0x2c], 0x413ad0
mov dword [esi + 0x30], edi
call eax
mov ecx, dword [esp + 0x28]
call fcn.004249b0
mov cx, word [esp + 0x28]
neg eax
sbb eax, eax
lea edx, [esp + 0x10]
inc eax
push edx
mov dword [esp + 0x1c], eax
mov word [esp + 0x14], cx
mov dword [esp + 0x18], esi
call fcn.00415a30
inc ebx
cmp ebx, 0x20
jl 0x412354
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
mov eax, 0x2aaaaaab
imul ecx
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
sar edx, 1
mov esi, edx
shr esi, 0x1f
add esi, edx
mov edx, dword [eax + 0x1c]
call edx
mov eax, esi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0043ec6a
mov esp, ebp
pop ebp
ret
Function at 0x4153b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x442639
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x455028]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x30], 0
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::MakeLower]
mov edi, dword [esp + 0x38]
mov eax, dword [edi + 0xb4]
mov ebp, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
add edi, 0xa4
mov dword [esp + 0x38], eax
cmp dword [edi + 0xc], eax
jbe 0x41540a
call ebp
mov ebx, dword [edi + 0x10]
mov eax, dword [edi]
mov dword [esp + 0x18], eax
cmp dword [edi + 0xc], ebx
jbe 0x41541a
call ebp
mov esi, dword [edi + 0xc]
cmp esi, dword [edi + 0x10]
jbe 0x415424
call ebp
mov ebp, dword [edi]
mov dword [esp + 0x24], esi
cmp esi, ebx
je 0x415448
mov edi, edi
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, esi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Compare]
test eax, eax
je 0x415448
add esi, 4
cmp esi, ebx
jne 0x415430
test ebp, ebp
je 0x415452
cmp ebp, dword [esp + 0x18]
je 0x415458
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp esi, dword [esp + 0x38]
je 0x41546c
lea ecx, [esp + 0x3c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
xor eax, eax
jmp 0x415482
lea ebx, [esp + 0x3c]
call fcn.0040ab00
mov ecx, ebx
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8
Function at 0x41b4c0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x442510
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push esi
push edi
mov eax, dword [0x455028]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
lea ecx, [esp + 0x24]
call sub.mfc90u.dll_CDC::CDC
xor edi, edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], vtable.CBitmap.0
mov byte [esp + 0x50], 1
cmp ebx, edi
jne 0x41b524
xor eax, eax
jmp 0x41b527
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x28]
call sub.mfc90u.dll_CDC::Attach
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
sub ecx, dword [esp + 0x14]
mov edx, dword [ebx + 4]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x10]
call sub.mfc90u.dll_CGdiObject::Attach
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x41b572
push eax
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esi + 0x20]
push edi
push edi
push 0x31
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
call sub.mfc90u.dll_CGdiObject::FromHandle
push eax
lea ecx, [esp + 0x28]
call sub.mfc90u.dll_CDC::SelectObject
push 0xffffff
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x2c]
call sub.mfc90u.dll_CDC::FillSolidRect
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
mov dword [esp + 0x34], eax
add eax, 2
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x54]
add ecx, 2
push eax
mov dword [esp + 0x3c], ecx
mov ecx, dword [esi + 0x58]
sub edx, 2
push ecx
mov dword [esp + 0x44], edx
add esi, 0x60
push esi
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x34]
sub edi, 2
push eax
mov dword [esp + 0x54], edi
call fcn.0041b050
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x28]
add esp, 0x14
push 0xcc0020
push 0
push 0
push edx
push eax
mov eax, dword [ebx + 4]
push ecx
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov byte [esp + 0x50], 0
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], vtable.CBitmap.0
call fcn.00402460
lea ecx, [esp + 0x24]
mov dword [esp + 0x50], 0xffffffff
call fcn.0043e4d6
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x424430
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2e0
mov eax, dword [0x455028]
xor eax, esp
mov dword [esp + 0x2d8], eax
push ebp
push esi
push edi
call fcn.00424920
mov dword [esp + 0x14], eax
call fcn.0040a5f0
mov ecx, dword [0x4451ac]
xor ebp, ebp
push 0x2b0
mov dword [esp + 0x20], eax
mov eax, dword [0x4451a8]
lea edx, [esp + 0x28]
push ebp
push edx
mov dword [esp + 0x2e8], eax
mov dword [esp + 0x2ec], ecx
mov dword [esp + 0x2c], ebp
call sub.MSVCR90.dll_memset
add esp, 0xc
call fcn.00409330
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ebp
mov ecx, ebp
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x1c]
test ecx, eax
je 0x424567
mov edx, dword [esp + 0x14]
test edx, eax
jne 0x424563
push 0x200
push 0x2b4
lea ecx, [esp + 0x28]
push ecx
push 0
lea edx, [esp + 0x2ec]
lea eax, [ebp + 0x41]
push edx
mov word [esp + 0x2f0], ax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x424563
mov eax, dword [ebx + 0x190]
push 0
push 0
push 0x1004
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [esp + 0x2dc]
push ecx
mov edi, eax
call fcn.00407fc0
add esp, 4
push 0
push eax
push 0
push 0
lea edx, [esp + 0x3c]
push edx
push edi
lea esi, [ebx + 0x170]
push 3
mov ecx, esi
call sub.mfc90u.dll_CListCtrl::InsertItem
mov edi, eax
cmp edi, 0xffffffff
je 0x424563
mov eax, dword [esp + 0x10]
push eax
push 0
push 0
push 0
push 0
push 4
push 0
push edi
mov ecx, esi
call sub.mfc90u.dll_CListCtrl::SetItem
mov ecx, dword [esp + 0x10]
mov edx, 1
shl edx, cl
mov ecx, esi
and edx, dword [esp + 0x18]
push edx
push edi
call sub.mfc90u.dll_CListCtrl::SetCheck
inc dword [esp + 0x10]
inc ebp
cmp ebp, 0x20
jl 0x424498
lea ecx, [ebx + 0x170]
call sub.mfc90u.dll_CListCtrl::GetHeaderCtrl
cmp dword [0x45647c], 6
push 0
jae 0x424594
mov eax, dword [eax + 0x20]
push 0
push 0x1214
push eax
jmp 0x42459f
mov ecx, dword [eax + 0x20]
push 4
push 0x1214
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x2e4]
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 1
call fcn.0043ec6a
add esp, 0x2e0
ret

Function at 0x424920
Capabilities:
Get disk information

Disassembly:
sub esp, 0x14
mov eax, dword [0x455028]
xor eax, esp
mov dword [esp + 0xc], eax
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ecx, dword [0x4451ac]
mov ebp, dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ebx, eax
mov eax, dword [0x4451a8]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
xor edi, edi
mov esi, 1
mov ecx, edi
shl esi, cl
test ebx, esi
je 0x424994
lea eax, [esp + 0x14]
lea edx, [edi + 0x41]
push eax
mov word [esp + 0x18], dx
call ebp
cmp eax, 3
jne 0x424994
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00424b90
mov ecx, dword [esp + 0x18]
add esp, 4
call fcn.004249b0
test eax, eax
jne 0x424994
not esi
and ebx, esi
inc edi
cmp edi, 0x20
jl 0x424955
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0043ec6a
add esp, 0x14
ret
Function at 0x424b90
Capabilities:
Get disk information via ioctl

Disassembly:
sub esp, 0x4c
mov eax, dword [0x455028]
xor eax, esp
mov dword [esp + 0x48], eax
mov edx, dword [0x44ace4]
mov eax, dword [str..C:]
mov ecx, dword [0x44ace0]
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 3
mov dword [esp + 0x60], edx
mov dword [esp + 0x58], eax
mov ax, word [0x44ace8]
mov dword [esp + 0x5c], ecx
mov cx, word [esp + 0x70]
push 0
lea edx, [esp + 0x5c]
push edx
mov word [esp + 0x6c], ax
mov word [esp + 0x68], cx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x424c80
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 0
lea eax, [esp + 0x14]
push eax
push 0x20
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0
push 0x560000
push esi
call ebx
test eax, eax
je 0x424c25
mov edi, dword [esp + 0x28]
cmp edi, 0xffffffff
jne 0x424c65
push 0
lea edx, [esp + 0x14]
push edx
push 0xc
lea eax, [esp + 0x20]
push eax
push 0
push 0
push 0x2d1080
push esi
call ebx
test eax, eax
je 0x424c62
mov edi, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0043ec6a
add esp, 0x4c
ret
or edi, 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0043ec6a
add esp, 0x4c
ret
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebx
xor ecx, esp
or eax, 0xffffffff
call fcn.0043ec6a
add esp, 0x4c
ret

Function at 0x424d60
Capabilities:
Get storage device properties

Disassembly:
sub esp, 0x14
mov eax, dword [0x455028]
xor eax, esp
mov dword [esp + 0x10], eax
push esi
push edi
push 0x70
mov edi, ecx
mov dword [esp + 0x10], 7
mov dword [esp + 0x14], 0
mov byte [esp + 0x18], 0
call sub.mfc90u.dll_new__
push 0x70
mov esi, eax
push 0
push esi
call sub.MSVCR90.dll_memset
add esp, 0x10
push 0
lea eax, [esp + 0xc]
push eax
push 0x70
push esi
push 0xc
lea ecx, [esp + 0x20]
push ecx
push 0x2d1400
push edi
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x424df2
cmp dword [esp + 8], 0xc
jb 0x424df2
movzx edi, byte [esi + 8]
push esi
call sub.mfc90u.dll_delete__
add esp, 4
xor eax, eax
test edi, edi
pop edi
sete al
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0043ec6a
add esp, 0x14
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call sub.mfc90u.dll_delete__
mov ecx, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
xor ecx, esp
or eax, 0xffffffff
call fcn.0043ec6a
add esp, 0x14
ret
Function at 0x429070
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x441998
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push edi
mov eax, dword [0x455028]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov edi, dword [ecx]
mov eax, dword [ecx + 8]
sub eax, edi
cdq
sub eax, edx
mov edx, dword [esi + 4]
mov ebx, eax
mov eax, dword [ecx + 4]
sar ebx, 1
add ebx, edi
mov edi, dword [ecx + 0xc]
sub edi, eax
add edi, 3
shr edi, 1
add edi, eax
lea eax, [ebx - 3]
lea ecx, [ebx + 3]
push edx
mov dword [esp + 0x1c], eax
lea ebp, [edi - 3]
mov dword [esp + 0x24], ecx
call dword [sym.imp.GDI32.dll_BeginPath]
push edi
push ebx
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call sub.mfc90u.dll_CDC::MoveTo
mov ecx, dword [esp + 0x18]
push ebp
push ecx
mov ecx, esi
call sub.mfc90u.dll_CDC::LineTo
mov edx, dword [esp + 0x20]
push ebp
push edx
mov ecx, esi
call sub.mfc90u.dll_CDC::LineTo
push edi
push ebx
mov ecx, esi
call sub.mfc90u.dll_CDC::LineTo
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.GDI32.dll_EndPath]
xor eax, eax
mov ebx, vtable.CBrush.0
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x44]
push ecx
mov dword [esp + 0x40], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x14]
call sub.mfc90u.dll_CGdiObject::Attach
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call sub.mfc90u.dll_CDC::SelectObject_1
mov edi, eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.GDI32.dll_FillPath]
push edi
mov ecx, esi
call sub.mfc90u.dll_CDC::SelectObject_1
mov dword [esp + 0x3c], 0xffffffff
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], ebx
call fcn.00402460
mov eax, 1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x30
ret

Function at 0x4298b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44190e
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x455028]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
mov dword [edi], vtable.CGUMenu.0
push edi
mov dword [esp + 0x1c], 2
call fcn.0042a360
lea esi, [edi + 0x9c]
call fcn.0042cea0
mov esi, dword [esi]
push esi
call sub.mfc90u.dll_delete
add esp, 4
lea ecx, [edi + 0x60]
call fcn.00424f80
lea ecx, [edi + 0x30]
call fcn.00424f80
lea ecx, [edi + 0x24]
call fcn.0043e2de
lea ecx, [edi + 0x1c]
mov byte [esp + 0x18], 1
call fcn.0043e2de
lea ecx, [edi + 8]
mov byte [esp + 0x18], 0
call fcn.0043e7ca
mov dword [esp + 0x18], 0xffffffff
mov ecx, edi
mov dword [edi], vtable.CMenu.0
call sub.mfc90u.dll_CMenu::DestroyMenu
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x42b820
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x442901
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
mov eax, dword [0x455028]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
lea ecx, [esp + 0xc]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
xor ebx, ebx
push 0x447e8c
lea esi, [esp + 0x10]
mov dword [esp + 0x4c], ebx
call fcn.00426220
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
add esp, 4
mov dword [edi + 0x224], ebx
mov dword [edi + 0xbc], 0x10
cmp dword [edi + 0x1c8], ebx
je 0x42b8cb
mov eax, dword [edi + 0x1c8]
cmp eax, ebx
je 0x42b8cb
push eax
mov dword [edi + 0x1c8], ebx
mov dword [edi + 0x1cc], ebx
mov dword [edi + 0x1d0], ebx
mov dword [edi + 0x1d4], ebx
mov dword [edi + 0x1dc], ebx
mov dword [edi + 0x1d8], ebx
mov dword [edi + 0x1e4], 0xffffffff
mov byte [edi + 0x1e1], bl
mov byte [edi + 0x1e0], bl
call esi
cmp dword [edi + 0x1f8], ebx
je 0x42b91a
mov eax, dword [edi + 0x1c8]
cmp eax, ebx
je 0x42b91a
push eax
mov dword [edi + 0x1c8], ebx
mov dword [edi + 0x1cc], ebx
mov dword [edi + 0x1d0], ebx
mov dword [edi + 0x1d4], ebx
mov dword [edi + 0x1dc], ebx
mov dword [edi + 0x1d8], ebx
mov dword [edi + 0x1e4], 0xffffffff
mov byte [edi + 0x1e1], bl
mov byte [edi + 0x1e0], bl
call esi
mov eax, dword [esp + 0xc]
push eax
lea ebx, [edi + 0x1c4]
push ebx
call fcn.004252e0
test eax, eax
jne 0x42b9f1
call fcn.00426020
mov ecx, dword [esp + 0xc]
push ecx
lea esi, [edi + 0x1f4]
push esi
call fcn.004252e0
test eax, eax
jne 0x42b9f1
mov eax, esi
call fcn.00425e10
lea esi, [esp + 0x10]
call fcn.00424f10
mov ebx, 1
mov byte [esp + 0x48], bl
mov edx, dword [esp + 0xc]
push edx
mov eax, esi
push eax
call fcn.004252e0
test eax, eax
jne 0x42b9e8
mov esi, dword [esp + 0x14]
push esi
push edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], 0xffffffff
mov byte [esp + 0x35], al
mov byte [esp + 0x34], al
call fcn.0042ba10
mov dword [esp + 0x14], esi
xor eax, eax
lea esi, [esp + 0x10]
call fcn.00425750
mov ecx, esi
mov dword [edi + 0x224], ebx
call fcn.00424f80
lea ecx, [esp + 0xc]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, ebx
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x40
ret
lea ecx, [esp + 0x10]
call fcn.00424f80
lea ecx, [esp + 0xc]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
xor eax, eax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x40
ret
Function at 0x42ff10
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push esi
xor esi, esi
mov dword [esp + 8], esi
cmp dword [0x4563b8], esi
je 0x42ff52
lea eax, [esp + 8]
push eax
call ebx
push eax
call dword [0x4563b8]
cmp dword [esp + 8], esi
je 0x42ff52
mov eax, dword [0x4563ac]
test eax, eax
je 0x42ff4d
push reloc.OLEAUT32.dll_SysReAllocString
call eax
mov esi, pe_nt_image_headers32
lea ecx, [esp + 0xc]
push ecx
or esi, 0x2001f
push esi
push 0
push 0x44bdc0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x42ffd8
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x1c]
push ecx
push esi
push str.Start
push edx
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42ffcd
mov eax, 2
cmp dword [esp + 8], eax
je 0x42ffcd
mov ecx, dword [esp + 0xc]
push 4
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 4
push esi
push str.Start
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00430030
test eax, eax
jne 0x42ffe6
mov esi, 0x80041315
cmp dword [0x4563b8], 0
mov dword [esp + 8], 0
je 0x43001c
lea eax, [esp + 8]
push eax
call ebx
push eax
call dword [0x4563b8]
cmp dword [esp + 8], 0
je 0x43001c
mov eax, dword [0x4563a8]
test eax, eax
je 0x43001c
push reloc.OLEAUT32.dll_SysReAllocString
call eax
xor eax, eax
test esi, esi
pop esi
sete al
pop ebx
add esp, 0x10
ret

Function at 0x430030
Capabilities:
Query service status
Start service

Disassembly:
sub esp, 0x1c
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x43004e
pop edi
add esp, 0x1c
ret
push esi
push 0x14
push 0x44be24
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x430078
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
xor eax, eax
pop edi
add esp, 0x1c
ret
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x4300aa
push str._nGet_Service_state_error._n
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 4
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop esi
xor eax, eax
pop edi
add esp, 0x1c
ret
cmp dword [esp + 0xc], 1
jne 0x4300c0
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x430096
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop esi
mov eax, 1
pop edi
add esp, 0x1c
ret
Function at 0x4300e0
Capabilities:
Get hostname
Get session user name

Disassembly:
sub esp, 0x408
mov eax, dword [0x455028]
xor eax, esp
mov dword [esp + 0x404], eax
xor eax, eax
push 0x3fe
push eax
lea ecx, [esp + 0xe]
push ecx
mov dword [esp + 0xc], 0x200
mov word [esp + 0x10], ax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea edx, [esp]
push edx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x430185
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
lea edx, [esp]
push edx
lea eax, [esp + 8]
push eax
mov dword [esp + 8], 0x200
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x430185
push 0x445b18
mov ecx, esi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
mov eax, 1
mov ecx, dword [esp + 0x404]
xor ecx, esp
call fcn.0043ec6a
add esp, 0x408
ret
mov ecx, dword [esp + 0x404]
xor ecx, esp
xor eax, eax
call fcn.0043ec6a
add esp, 0x408
ret

Function at 0x4301a0
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x440446
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x455028]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xf
cmp al, 6
jb 0x430226
push 0x10
call sub.mfc90u.dll_new
mov esi, eax
add esp, 4
mov dword [esp + 8], esi
mov dword [esp + 0x14], 0
test esi, esi
je 0x430272
push ebx
lea ecx, [esi + 4]
mov dword [esi], vtable.CWinTask.0
call dword [0x4446ac]
mov dword [esi], vtable.CWinTask2.0
mov dword [esi + 0xc], 0
mov eax, esi
mov dword [esi + 8], 0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
push 0xc
call sub.mfc90u.dll_new
mov esi, eax
add esp, 4
mov dword [esp + 8], esi
mov dword [esp + 0x14], 1
test esi, esi
je 0x430272
push ebx
lea ecx, [esi + 4]
mov dword [esi], vtable.CWinTask.0
call dword [0x4446ac]
mov dword [esi], vtable.CWinTask1.0
mov eax, esi
mov dword [esi + 8], 0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret