joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402990
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x404201
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
push str.85251
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0
call dword [0x405078]
push 2
lea ecx, [esp + 0x14]
push ecx
mov ecx, eax
mov dword [esp + 0x34], 0
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Left]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
mov bl, 3
push str.DownloadTo
mov byte [esp + 0x34], bl
call dword [0x405078]
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.SoftwareMetalixVersLocations
mov byte [esp + 0x38], 4
call dword [0x405078]
push 0x80000002
lea edx, [esp + 0x20]
push edx
mov ecx, esi
mov byte [esp + 0x3c], bl
call fcn.00402620
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 5
call dword [0x405094]
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push 0x4055a7
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Compare]
test eax, eax
jne 0x402a79
mov esi, dword [esp + 0x34]
push 0x4055a7
mov ecx, esi
call dword [0x405078]
jmp 0x402b40
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
dec eax
push eax
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator]
cmp al, 0x5c
je 0x402aa2
push 0x405ec4
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_1]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
mov bl, 6
push str.cncKadSP
lea ecx, [esp + 0x24]
mov byte [esp + 0x30], bl
call dword [0x405078]
lea ecx, [esp + 0x10]
push ecx
push eax
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x38], 7
call fcn.00402820
push str..exe
push eax
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0x44], 8
call fcn.004028c0
add esp, 0x18
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 9
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x20]
mov byte [esp + 0x2c], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x28
ret 4
Function at 0x402b70
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x404225
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x400
mov eax, dword [0x408020]
push esi
mov dword [esp + 0x400], eax
push edi
mov dword [esp + 0xc], 0
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x420]
mov dword [esp + 0x414], 0
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
push esi
call dword [sym.imp.MSVCR71.dll_malloc]
mov ecx, dword [esp + 0x18]
add esp, 4
mov edi, eax
push edi
push esi
push ecx
lea ecx, [esp + 0x428]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x402ce8
lea edx, [esp + 0x10]
push edx
push 0x4080e8
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x402ce8
mov eax, dword [esp + 0x10]
shr eax, 2
xor esi, esi
test eax, eax
jle 0x402c75
mov edi, edi
mov eax, dword [0x4080e8]
movzx ecx, word [eax + esi*4 + 2]
movzx edx, word [eax + esi*4]
push ecx
push edx
push str.StringFileInfo_04x_04xFileVersion
lea eax, [esp + 0x28]
push 0x32
push eax
call fcn.00402960
add esp, 0x14
test eax, eax
jl 0x402ce8
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x24]
push eax
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x402ce8
mov ecx, dword [esp + 0x10]
inc esi
shr ecx, 2
cmp esi, ecx
jl 0x402c20
mov edx, dword [esp + 0xc]
push edx
lea ecx, [esp + 0xc]
call dword [0x405078]
push edi
mov byte [esp + 0x414], 1
call dword [sym.imp.MSVCR71.dll_free]
mov esi, dword [esp + 0x41c]
add esp, 4
lea eax, [esp + 8]
push eax
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x41c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x408]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x400]
mov eax, esi
pop esi
call fcn.0040396f
add esp, 0x40c
ret 8
mov esi, dword [esp + 0x418]
push 0x4055a7
mov ecx, esi
call dword [0x405078]
jmp 0x402cb4
Function at 0x402e20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x404281
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
mov esi, ecx
lea ecx, [esp + 0xc]
call sub.MFC71.DLL_CStdioFile::CStdioFile
lea eax, [esp + 8]
push eax
mov ecx, esi
mov dword [esp + 0x2c], 0
call fcn.00402730
push 0
push 0x5001
mov ecx, eax
mov byte [esp + 0x30], 1
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [esp + 0x18]
call sub.MFC71.DLL_CStdioFile::Open
mov ebx, eax
neg ebx
sbb bl, bl
lea ecx, [esp + 8]
inc bl
mov byte [esp + 0x28], 0
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
pop esi
test bl, bl
pop ebx
lea ecx, [esp + 4]
jne 0x402eaf
push str.text
call sub.MFC71.DLL_CStdioFile::WriteString
lea ecx, [esp + 4]
call sub.MFC71.DLL_CStdioFile::Close
lea ecx, [esp + 4]
mov dword [esp + 0x20], 0xffffffff
call fcn.004038b6
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x402ed0
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x4042b5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebp, ebp
mov dword [esp + 0x24], ebp
call fcn.00402e20
mov ecx, dword [0x4080f0]
cmp ecx, ebp
je 0x402f0a
mov eax, dword [ecx]
push 1
call dword [eax + 4]
push 0xe4
call sub.MFC71.DLL_operator_new
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, ebp
mov byte [esp + 0x24], 2
je 0x402f30
push ebp
mov ecx, eax
call fcn.004022c0
mov esi, eax
jmp 0x402f32
xor esi, esi
mov edx, dword [esi]
push ebp
push 0x82
mov ecx, esi
mov byte [esp + 0x2c], 0
call dword [edx + 0x138]
cmp eax, ebp
je 0x402f67
push 5
mov ecx, esi
call sub.MFC71.DLL_CWnd::ShowWindow
mov eax, dword [sym.imp.MFC71.DLL_CWnd::wndNoTopMost]
push 0x43
push ebp
push ebp
push ebp
push ebp
push eax
mov ecx, esi
call sub.MFC71.DLL_CWnd::SetWindowPos
push str.gkadw.exe
lea ecx, [esp + 0x14]
call dword [0x405078]
mov bl, 3
push 0x4055a7
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Compare]
test eax, eax
jne 0x402fb3
push ebp
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push 1
call dword [sym.imp.MSVCR71.dll__spawnl]
add esp, 0x10
jmp 0x403016
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
lea eax, [esp + 0x18]
push eax
mov ecx, edi
call fcn.00402d00
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 4
call dword [0x405094]
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x2c]
push ebp
push ecx
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push 1
call dword [sym.imp.MSVCR71.dll__spawnl]
add esp, 0x14
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0x14], ebp
mov ebp, dword [sym.imp.MSVCR71.dll__access]
push 0x3e8
call esi
call fcn.004025c0
lea edx, [esp + 0x18]
push edx
mov ecx, edi
call fcn.00402730
push 0
mov ecx, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call ebp
add esp, 8
mov ebx, eax
neg ebx
sbb bl, bl
lea ecx, [esp + 0x18]
inc bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
test bl, bl
je 0x403072
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 0xf
mov dword [esp + 0x14], eax
jl 0x403026
mov ecx, dword [0x4080f0]
test ecx, ecx
je 0x403083
mov eax, dword [ecx]
push 1
call dword [eax + 4]
push 0
call dword [sym.imp.MSVCR71.dll_exit]
int3
Function at 0x403220
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x40432d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
push edi
push str.metalix.ini
push 1
push str.CheckUpdates
push str.UpdateInfo
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
dec eax
neg eax
sbb al, al
inc al
mov byte [esp + 0x13], al
je 0x40337e
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.00402990
push str.85251
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], 0
call dword [0x405078]
push 2
lea ecx, [esp + 0x24]
push ecx
mov ecx, eax
mov byte [esp + 0x40], 1
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Left]
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], 3
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
mov ecx, esi
call fcn.00403150
cdq
mov ecx, 0x3e8
idiv ecx
push str.85251
lea ecx, [esp + 0x30]
mov ebp, edx
mov ebx, eax
call dword [0x405078]
push 2
lea edx, [esp + 0x2c]
push edx
mov ecx, eax
mov byte [esp + 0x40], 4
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Left]
mov ecx, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.MSVCR71.dll_atoi]
add esp, 4
lea ecx, [esp + 0x28]
mov edi, eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x2c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
push edi
lea eax, [esp + 0x18]
push 0x405f5c
push eax
mov byte [esp + 0x44], 5
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0xc
mov ecx, esi
call fcn.00403090
lea ecx, [esp + 0x1c]
mov esi, eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
cmp edi, ebx
je 0x403393
xor al, al
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov ecx, dword [esp + 0x30]
pop edi
cmp ebp, esi
pop esi
pop ebp
setg al
mov dword fs:[0], ecx
pop ebx
add esp, 0x2c
ret
Function at 0x401d90
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417958
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x42000c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 2
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401df9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateToolhelp32Snapshot_failed_w_err_0x_08lx_n
jmp 0x401e21
mov eax, dword [ecx]
push 1
push dword [esi - 0xc]
call dword [eax]
mov edi, eax
test edi, edi
je 0x401f0e
jmp 0x401e6b
lea eax, [ebp - 0x138]
mov dword [ebp - 0x138], 0x128
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x401e93
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Process32First_failed_w_err_0x_08lx_n
push 0x4215d4
call fcn.00404560
mov esi, dword [0x4215d4]
add esp, 8
mov ebx, esp
mov dword [ebp - 0x13c], ebx
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi - 4], 0
mov ecx, eax
lea eax, [esi - 4]
jl 0x401de4
cmp ecx, dword [esi - 0x10]
jne 0x401de4
lea edi, [esi - 0x10]
lock inc dword [eax]
lea eax, [edi + 0x10]
mov dword [ebx], eax
call fcn.00401710
add esp, 4
xor esi, esi
jmp 0x401ece
mov eax, dword [esi - 0xc]
lea ecx, [edi + 0x10]
mov dword [edi + 4], eax
mov edx, dword [esi - 0xc]
inc edx
push edx
push esi
call fcn.00404370
add esp, 8
lea eax, [edi + 0x10]
mov dword [ebx], eax
call fcn.00401710
add esp, 4
xor esi, esi
jmp 0x401ece
mov edi, dword [sym.imp.KERNEL32.dll_Process32Next]
nop dword [eax]
push dword [ebp + 8]
lea eax, [ebp - 0x114]
push eax
call fcn.0040a44b
add esp, 8
test eax, eax
je 0x401ec9
lea eax, [ebp - 0x138]
push eax
push esi
call edi
test eax, eax
jne 0x401ea0
lea esi, [eax + 2]
jmp 0x401ece
mov esi, 1
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edi, dword [ebp + 8]
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x401ef0
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
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 - 0x10]
xor ecx, ebp
call fcn.00404b3d
mov esp, ebp
pop ebp
ret
call fcn.00404160
int3
Function at 0x401f20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x42000c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0xc]
mov dword [ebp - 8], edx
push eax
push 0x20006
push 0
push dword [ebp + 8]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401f79
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push dword [ebp + 8]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
test esi, esi
jne 0x401f9c
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
mov edx, dword [ebp + 8]
sete bl
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x401fbc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x401fd4
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.00404b3d
mov esp, ebp
pop ebp
ret
Function at 0x401ff0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417998
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x42000c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 2
push eax
push 0x20006
push 0
push dword [ebp + 8]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x402065
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push dword [ebp + 8]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
test esi, esi
jne 0x4020c9
mov eax, dword [ebp + 0x10]
cmp dword [eax - 4], 1
mov esi, dword [eax - 0xc]
jle 0x40207d
push esi
lea ecx, [ebp + 0x10]
call fcn.004040d0
mov eax, dword [ebp + 0x10]
push esi
push eax
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [ebp + 0x10]
push dword [eax - 8]
push eax
call fcn.0040a85c
add esp, 8
test eax, eax
js 0x402147
mov ecx, dword [ebp + 0x10]
cmp eax, dword [ecx - 8]
jg 0x402147
mov dword [ecx - 0xc], eax
mov ecx, dword [ebp + 0x10]
mov byte [eax + ecx], 0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
sete bl
mov byte [ebp - 4], 1
mov edx, dword [ebp + 8]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4020ed
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40210b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x40212a
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00404b3d
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00404980
int3
Function at 0x4029c0
Capabilities:
Modify service
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x42000c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [0x4214a4], eax
test eax, eax
jne 0x402a50
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_failed_w_err_0x_08lx_n
push 0x4215d4
call fcn.00404560
mov esi, dword [0x4215d4]
add esp, 8
mov ebx, esp
mov dword [ebp - 0xc], ebx
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi - 4], 0
mov ecx, eax
lea eax, [esi - 4]
jl 0x402a32
cmp ecx, dword [esi - 0x10]
jne 0x402a32
lea edi, [esi - 0x10]
lock inc dword [eax]
jmp 0x402b22
mov eax, dword [ecx]
push 1
push dword [esi - 0xc]
call dword [eax]
mov edi, eax
test edi, edi
je 0x402b72
mov ecx, dword [esi - 0xc]
mov dword [edi + 4], ecx
jmp 0x402b11
push 0xf01ff
push 0x41dab0
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [0x4214a0], eax
test eax, eax
jne 0x402a7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenService_failed_w_err_0x_08lx_n
jmp 0x4029f7
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0x41db10
push ecx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
test eax, eax
jns 0x402aa4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ChangeServiceConfig2_failed_w_err_0x_08lx_n
jmp 0x4029f7
push 0
push 0
push dword [0x4214a0]
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jns 0x402b2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.StartService_failed_w_err_0x_08lx_n
push 0x4215d4
call fcn.00404560
mov esi, dword [0x4215d4]
add esp, 8
mov ebx, esp
mov dword [ebp - 0xc], ebx
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi - 4], 0
mov ecx, eax
lea eax, [esi - 4]
jl 0x402afc
cmp ecx, dword [esi - 0x10]
jne 0x402afc
lea edi, [esi - 0x10]
lock inc dword [eax]
jmp 0x402b22
mov eax, dword [ecx]
push 1
push dword [esi - 0xc]
call dword [eax]
mov edi, eax
test edi, edi
je 0x402b72
mov eax, dword [esi - 0xc]
mov dword [edi + 4], eax
mov edx, dword [esi - 0xc]
lea ecx, [edi + 0x10]
inc edx
push edx
push esi
call fcn.00404370
add esp, 8
lea eax, [edi + 0x10]
mov dword [ebx], eax
call fcn.00401710
add esp, 4
mov eax, dword [0x4214a4]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
je 0x402b4b
push eax
call esi
mov dword [0x4214a4], 0
mov eax, dword [0x4214a0]
test eax, eax
je 0x402b61
push eax
call esi
mov dword [0x4214a0], 0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404b3d
mov esp, ebp
pop ebp
ret
call fcn.00404160
int3
Function at 0x404610
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x404669
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404669
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x404658
cmp esi, edx
jae 0x404669
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x404646
cmp esi, edx
jae 0x404669
cmp word [esi], 0
je 0x404669
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x40fba0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
neg dl
mov byte [ebp - 9], 0xbf
call fcn.0040f80f
push eax
push esi
push dword [ebp + 8]
call fcn.0040f7c4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov esi, 0xc6975d88
inc ebp
cwde
pop ss

Function at 0x40fbc6
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov esi, 0xc6975d88
inc ebp
cwde
pop ss
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.0040f80f
push eax
push esi
push dword [ebp + 8]
call fcn.0040f7c4
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
fsub dword [edi - 0x3a]
inc ebp
fld dword [esi + eax*8 + 0x45]
fimul dword [edx - 0x3a]
inc ebp
fisttp dword [edi - 0x3a]
inc ebp
fsub qword [edi - 0x3a]
inc ebp
fld qword [edx - 0x3a]
inc ebp
fimul word [ecx - 0x3a]
inc ebp
fistp word [ecx - 0x3a]
inc ebp
loopne 0x40fc9a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
invalid
inc ebp
invalid
Function at 0x4063e0
Capabilities:
Accept command line arguments
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call sub.ucrtbase.dll___p___argc
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call 0x406450
mov dword [esp], eax
call sub.ucrtbase.dll_exit
nop
nop
nop
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x58
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x4064db
cmp ax, 9
je 0x4064c8
cmp ax, 0x20
je 0x4064c8
mov dword [ebp - 0x54], 0
xor esi, esi
nop
cmp ax, 0x5c
je 0x406530
cmp ax, 0x22
je 0x406540
mov dword [ebp - 0x54], 0
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x4064db
cmp ax, 9
sete dl
cmp ax, 0x20
sete cl
or dl, cl
je 0x406480
test esi, 1
jne 0x406480
lea esi, [esi]
movzx eax, word [ebx + 2]
add ebx, 2
cmp ax, 9
je 0x4064c8
cmp ax, 0x20
je 0x4064c8
lea eax, [ebp - 0x50]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x24], 1
je 0x406558
movzx esi, word [ebp - 0x20]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00404a10
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add dword [ebp - 0x54], 1
jmp 0x40649b
and dword [ebp - 0x54], 1
jne 0x406494
xor esi, 1
jmp 0x40649b
mov eax, 1
mov esi, 1
mov word [ebp - 0x20], ax
jmp 0x4064f4