joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4254c5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0041e50f
and dword [ebp - 4], 0
cmp dword [0x44f1f0], 0
mov ebx, eax
jne 0x425576
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x425627
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x425627
push eax
call fcn.0041e49d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x44f1f0], eax
call esi
push eax
call fcn.0041e49d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x44f1f4], eax
call esi
push eax
call fcn.0041e49d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44f1f8], eax
call esi
push eax
call fcn.0041e49d
pop ecx
mov dword [0x44f200], eax
test eax, eax
je 0x425576
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041e49d
pop ecx
mov dword [0x44f1fc], eax
mov eax, dword [0x44f1fc]
cmp eax, ebx
je 0x4255ce
cmp dword [0x44f200], ebx
je 0x4255ce
push eax
call fcn.0041e518
push dword [0x44f200]
mov esi, eax
call fcn.0041e518
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4255ce
test edi, edi
je 0x4255ce
call esi
test eax, eax
je 0x4255c5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4255c5
test byte [ebp - 0xc], 1
jne 0x4255ce
or dword [ebp + 0x10], 0x200000
jmp 0x425607
mov eax, dword [0x44f1f4]
cmp eax, ebx
je 0x425607
push eax
call fcn.0041e518
pop ecx
test eax, eax
je 0x425607
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x425607
mov eax, dword [0x44f1f8]
cmp eax, ebx
je 0x425607
push eax
call fcn.0041e518
pop ecx
test eax, eax
je 0x425607
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44f1f0]
call fcn.0041e518
pop ecx
test eax, eax
je 0x425627
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x425629
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x431002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
nop
je 0x431072
nop
nop
nop
nop
mov ebx, 0x40915c
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x2f827f79
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x431060
nop
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
je 0x4310d2
nop
nop
nop
nop
mov ebx, 0x42f3f8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x4d85337
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4310c0
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x124c058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x124c1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x124c07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x124c06a
add dl, dl
jne 0x124c089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x124c0dc
xor eax, eax
add dl, dl
jne 0x124c096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x124c17d
add dl, dl
jne 0x124c0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x124c0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x124c0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x124c0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x124c0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x124c075
mov eax, 1
add dl, dl
jne 0x124c0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x124c0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x124c0e1
sub eax, ebx
mov ebx, 1
jne 0x124c128
mov ecx, 1
add dl, dl
jne 0x124c10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x124c119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x124c105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x124c075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x124c13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x124c14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x124c136
cmp eax, 0x7d00
jae 0x124c16d
cmp eax, 0x500
jb 0x124c168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x124c075
cmp eax, 0x7f
ja 0x124c170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x124c075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x124c19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x124c075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401409
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a1fa8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::CString_5
mov eax, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
push eax
mov ecx, ebx
mov dword [esp + 0x2c], 0
call sub.MFC42u.DLL_CWnd::GetDlgItem
mov edi, eax
lea ecx, [esp + 0x10]
push ecx
mov edx, dword [edi + 0x20]
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call sub.MFC42u.DLL_CWnd::ScreenToClient
lea ecx, [esp + 0xc]
push ecx
mov ecx, edi
call sub.MFC42u.DLL_CWnd::GetWindowTextW
push 0
mov ecx, edi
call sub.MFC42u.DLL_CWnd::ShowWindow
mov eax, dword [esp + 0xc]
push 0
push 0
lea edx, [esp + 0x18]
push ebx
push edx
push 0x50000000
push eax
push 0
mov ecx, esi
call sub.MFC42u.DLL_CWnd::Create
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
sub ecx, eax
push 1
push ecx
mov ecx, dword [esp + 0x18]
sub edx, ecx
push edx
push eax
push ecx
mov ecx, esi
call sub.MFC42u.DLL_CWnd::MoveWindow
lea eax, [esp + 0xc]
lea ecx, [esi + 0x40]
push eax
call sub.MFC42u.DLL_CString::operator_1
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [esi + 0x5c], ecx
lea ecx, [esp + 0xc]
mov dword [esi + 0x58], edx
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x10
Function at 0x402710
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4a21e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::CString_5
mov edi, dword [esp + 0x20]
push 0x4c6204
mov ecx, edi
mov dword [esp + 0x1c], 0
call sub.MFC42u.DLL_CString::TrimLeft_1
push 0x4c6200
mov ecx, edi
call sub.MFC42u.DLL_CString::TrimLeft_1
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4027c3
mov esi, dword [0x53ffec]
mov eax, dword [0x53fff0]
cmp eax, esi
je 0x4027c3
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [esi]
mov edx, dword [edi]
push edx
mov eax, dword [ecx - 8]
mov ecx, esi
push eax
call sub.MFC42u.DLL_CString::GetBuffer
push eax
lea eax, [esp + 0x14]
push 0x4c621c
push eax
call sub.MFC42u.DLL_CString::Format
mov ecx, dword [esp + 0x1c]
add esp, 0x10
push ecx
call ebx
test eax, eax
jne 0x4027b0
mov eax, dword [0x53fff0]
add esi, 4
cmp eax, esi
jne 0x402774
jmp 0x4027c3
mov edx, dword [esp + 0xc]
push edx
push 0x4c61d8
push edi
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x402980
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4a223e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x20], edi
call fcn.004a0f00
mov dword [edi], 0x4adf94
mov cl, byte [esp + 0x13]
mov al, byte [esp + 0x13]
lea ebp, [edi + 0x40]
xor ebx, ebx
mov dword [esp + 0x30], ebx
mov byte [ebp + 1], cl
mov ecx, ebp
mov byte [ebp], al
mov byte [ebp + 8], bl
call fcn.00405c60
mov dl, byte [esp + 0x13]
mov al, byte [esp + 0x13]
lea esi, [edi + 0x50]
push 1
push ebx
mov ecx, esi
mov byte [esp + 0x38], 1
mov byte [esi], dl
mov byte [esi + 1], al
mov byte [esi + 8], bl
call fcn.00407b90
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], eax
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::_Lockit::constructor_void_]
cmp dword [0x540000], ebx
jne 0x402a1e
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], ebx
mov dword [0x540000], eax
mov dword [eax], ebx
mov ecx, dword [0x540000]
mov dword [ecx + 8], ebx
mov edx, dword [0x53fffc]
lea ecx, [esp + 0x18]
inc edx
mov dword [0x53fffc], edx
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::_Lockit::destructor_void_]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x402a46
push eax
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov edx, dword [0x540000]
push ebx
push edx
mov ecx, esi
call fcn.00407b90
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
mov dword [eax], eax
mov eax, dword [esi + 4]
mov dword [eax + 8], eax
lea eax, [edi + 0x68]
mov byte [esp + 0x30], 2
push eax
mov dword [edi], 0x4aded0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [ebp + 4]
push eax
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x24]
push ecx
mov ecx, ebp
call fcn.00404ec0
mov ebp, dword [esi + 4]
mov ecx, dword [esi + 0xc]
cmp ecx, ebx
mov eax, dword [ebp]
mov dword [esp + 0x14], eax
je 0x402ac9
mov ecx, eax
cmp eax, ecx
jne 0x402ac9
mov edx, dword [ebp + 4]
mov ecx, esi
push edx
call fcn.00406980
mov eax, dword [esi + 4]
mov ecx, dword [0x540000]
mov dword [eax + 4], ecx
mov eax, dword [esi + 4]
mov dword [esi + 0xc], ebx
mov dword [eax], eax
mov esi, dword [esi + 4]
mov dword [esi + 8], esi
jmp 0x402af3
cmp eax, ebp
je 0x402af3
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], eax
call fcn.00407f30
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x24]
push edx
push eax
mov ecx, esi
call fcn.00406540
mov eax, dword [esp + 0x14]
cmp eax, ebp
jne 0x402acd
mov ecx, dword [esp + 0x28]
mov dword [edi + 0x60], ebx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x4085f0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ae068
push 0x4a15bc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov dword [ebp - 0x40], ebx
mov ecx, 9
xor eax, eax
lea edi, [ebp - 0x3c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x4c], ebx
mov esi, dword [ebp + 8]
mov eax, esi
mov ecx, dword [ebp + 0x14]
mov edx, dword [eax]
mov dword [ecx], edx
mov al, byte [eax + 4]
mov byte [ecx + 4], al
lea edi, [ebp - 0x40]
lea ecx, [ebx + esi]
push ecx
call fcn.00408120
add esp, 4
test eax, eax
je 0x40871e
mov dword [edi], ebx
add ebx, dword [0x540064]
add edi, 4
cmp ebx, 5
jl 0x40863f
mov dword [ebp - 0x50], ebx
mov ecx, ebx
mov ebx, dword [ebp + 0x10]
mov edi, ebx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x40]
cmp ecx, 5
jg 0x4086ac
lea edx, [ebp - 0x40]
mov al, byte [ecx + ebx]
cmp al, 0xe8
je 0x408691
cmp al, 0xe9
jne 0x40869e
mov eax, dword [ecx + ebx + 1]
sub eax, ebx
add eax, dword [ebp + 8]
mov dword [ecx + ebx + 1], eax
add edx, 4
mov ecx, dword [edx]
test ecx, ecx
jle 0x4086ac
cmp ecx, 5
jle 0x408686
mov dword [ebp - 4], 0
lea eax, [ebp - 0x4c]
push eax
push 0x40
mov edi, dword [ebp - 0x50]
lea ecx, [edi + 5]
push ecx
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call esi
lea edx, [ebp - 0x4c]
push edx
push 0x40
push 5
mov eax, dword [ebp + 8]
push eax
call esi
mov ecx, dword [ebp + 8]
mov eax, ecx
sub eax, ebx
sub eax, 5
mov dword [ebp - 0x48], eax
add ebx, edi
mov dword [ebp - 0x54], ebx
mov byte [ebx], 0xe9
mov dword [ebx + 1], eax
mov edx, dword [ebp + 0xc]
sub edx, ecx
sub edx, 5
mov dword [ebp - 0x64], edx
mov edi, dword [ebp + 8]
mov al, 0xe9
stosb byte es:[edi], al
mov eax, dword [ebp - 0x64]
stosd dword es:[edi], eax
mov dword [ebp - 4], 0xffffffff
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x50], ebx
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408760
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ae078
push 0x4a15bc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1c]
push eax
push 0x40
push 5
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov dword [esi], edx
mov al, byte [ecx + 4]
mov byte [esi + 4], al
jmp 0x4087b6
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a340
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x5c
mov eax, dword [eax]
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40a431
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40a3ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40a3ac
push edi
mov dword [esp + 0x74], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x5c
ret
mov eax, dword [esp + 0x10]
mov dword [esp + 0x70], ebx
cmp eax, ebx
jne 0x40a41e
push ebx
push esi
push ebx
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
cmp ebp, ebx
je 0x40a41e
push esi
push ebx
push ebx
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x40a417
lea edx, [esp + 0x14]
push edx
call fcn.00498ae0
push esi
lea eax, [esp + 0x1c]
push ebx
push eax
call fcn.00498b30
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x24]
push ecx
push edx
call fcn.00498c10
add esp, 0x18
mov dword [esp + 0x70], 1
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x70]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x5c
ret
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x5c
ret
Function at 0x40e260
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4a2706
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::CString_5
xor ebx, ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x228], ebx
call sub.MFC42u.DLL_CString::Empty
mov esi, dword [esp + 0x230]
mov ebp, dword [sym.imp.MSVCRT.dll__wcsnicmp]
mov eax, dword [esi]
mov edi, dword [eax - 8]
cmp edi, 9
jbe 0x40e306
push 9
push str.system32_
push edi
mov ecx, esi
call sub.MFC42u.DLL_CString::GetBuffer
push eax
call ebp
add esp, 0xc
test eax, eax
jne 0x40e306
lea ecx, [esp + 0x18]
push 0x104
push ecx
mov word [esp + 0x20], bx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov edx, dword [esi]
lea eax, [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x18]
push 0x4c621c
push ecx
mov word [esp + 0x22e], bx
call sub.MFC42u.DLL_CString::Format
add esp, 0x10
jmp 0x40e3c7
cmp edi, 0xc
jbe 0x40e370
mov edx, dword [esi]
push 0xc
push str.SystemRoot_
mov ecx, esi
mov eax, dword [edx - 8]
push eax
call sub.MFC42u.DLL_CString::GetBuffer
push eax
call ebp
add esp, 0xc
test eax, eax
jne 0x40e370
lea eax, [esp + 0x18]
push 0x104
push eax
mov word [esp + 0x20], bx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ecx, dword [esi]
mov word [esp + 0x21e], bx
mov eax, dword [ecx - 8]
mov ecx, esi
push eax
call sub.MFC42u.DLL_CString::GetBuffer
add eax, 0x18
lea edx, [esp + 0x18]
push eax
push edx
lea eax, [esp + 0x18]
push 0x4c621c
push eax
call sub.MFC42u.DLL_CString::Format
add esp, 0x10
jmp 0x40e3c7
cmp edi, 4
jbe 0x40e3c7
mov ecx, dword [esi]
push 4
push 0x4c7c98
mov eax, dword [ecx - 8]
mov ecx, esi
push eax
call sub.MFC42u.DLL_CString::GetBuffer
push eax
call dword [sym.imp.MSVCRT.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x40e3c7
lea edx, [esp + 0x14]
push 4
push edx
mov ecx, esi
call sub.MFC42u.DLL_CString::Mid
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x22c], 1
call sub.MFC42u.DLL_CString::operator_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x228], bl
call sub.MFC42u.DLL_CString::CString
mov eax, dword [esp + 0x10]
push eax
push 0x4c61d8
push esi
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x228], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x220]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x21c
ret 4
Function at 0x414d20
Capabilities:
Query environment variable

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a2f9b
push eax
mov dword fs:[0], esp
sub esp, 0x210
push esi
mov esi, dword [esp + 0x224]
push edi
mov edi, ecx
mov eax, dword [esi]
mov eax, dword [eax - 8]
test eax, eax
je 0x414e3c
cmp eax, 4
jle 0x414daa
push 4
push 0x4c7c98
push eax
mov ecx, esi
call sub.MFC42u.DLL_CString::GetBuffer
push eax
call dword [sym.imp.MSVCRT.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x414daa
lea ecx, [esp + 8]
push 4
push ecx
mov ecx, esi
call sub.MFC42u.DLL_CString::Mid
push eax
mov ecx, esi
mov dword [esp + 0x224], 0
call sub.MFC42u.DLL_CString::operator_1
lea ecx, [esp + 8]
mov dword [esp + 0x220], 0xffffffff
call sub.MFC42u.DLL_CString::CString
push 0x25
mov ecx, esi
call sub.MFC42u.DLL_CString::Find
test eax, eax
jl 0x414e01
mov edx, dword [edi]
push esi
mov ecx, edi
call dword [edx + 0xf8]
test al, al
jne 0x414e01
mov eax, dword [esi]
lea ecx, [esp + 0xc]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jbe 0x414e01
cmp eax, 0x103
jae 0x414e01
lea edx, [esp + 0xc]
mov word [esp + 0x214], 0
push edx
push 0x4c61d8
push esi
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
mov eax, dword [esi]
lea ecx, [esp + 0xc]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
jbe 0x414e3c
cmp eax, 0x103
jae 0x414e3c
lea edx, [esp + 0xc]
mov word [esp + 0x214], 0
push edx
push 0x4c61d8
push esi
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
mov ecx, dword [esp + 0x218]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x21c
ret 4
Function at 0x4166b0
Capabilities:
Delete service

Disassembly:
push 0xffffffffffffffff
push 0x4a3100
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], ebp
call sub.MFC42u.DLL_CString::CString_5
lea ecx, [esp + 0x18]
mov dword [esp + 0x34], ebp
call fcn.0043c730
push 0xf003f
push ebp
push ebp
mov byte [esp + 0x40], 1
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, dword [esp + 0x3c]
mov edi, eax
cmp edi, ebp
je 0x416738
mov eax, dword [ebx]
push 0xf01ff
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebp, eax
test ebp, ebp
je 0x41672d
push ebp
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push ebp
mov dword [esp + 0x18], eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebp, dword [esp + 0x14]
mov eax, dword [ebx]
lea ecx, [esp + 0x10]
push eax
push str.RegistryMachineSYSTEMCurrentControlSetServices_s
push ecx
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x18]
call fcn.0043c860
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
mov eax, dword [edx - 8]
push eax
push eax
call sub.MFC42u.DLL_CString::GetBuffer
push eax
lea ecx, [esp + 0x20]
call fcn.0043c970
mov eax, dword [esi]
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call dword [eax + 0x108]
or ebp, eax
cmp ebp, 1
jne 0x416836
mov ebx, dword [esp + 0x40]
lea edi, [esi + 0xa0]
push ebx
mov ecx, edi
call fcn.004042f0
cmp eax, ebp
jne 0x4167a8
dec dword [esi + 0x12c]
push ebx
mov ecx, edi
call fcn.00403590
mov eax, dword [0x5401c4]
cmp eax, 1
jne 0x4167df
mov edx, dword [esi + 0xc0]
push 0
push 0
push 0x1004
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 0x12c]
push ecx
push eax
push 0x4c9c54
jmp 0x41681c
cmp eax, 2
mov eax, dword [esi + 0xc0]
push 0
push 0
push 0x1004
push eax
jne 0x416809
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 0x12c]
push ecx
push eax
push 0x4c9c30
jmp 0x41681c
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 0x12c]
push ecx
push eax
push str.Services:__d__Hidden_Services:__d
lea edx, [esp + 0x1c]
push edx
call sub.MFC42u.DLL_CString::Format
mov eax, dword [esp + 0x20]
add esp, 0x10
lea ecx, [esi + 0x60]
push eax
call sub.MFC42u.DLL_CWnd::SetWindowTextW
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 0
call fcn.0043c7e0
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x2c]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 8