joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43808c
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x4380a8
cmp dword [esi + 4], 0
je 0x4380d5
test byte [ebx + 0x55], 1
jne 0x4380c7
mov eax, ebx
call fcn.00436c2c
test eax, eax
jne 0x4380c7
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x4381e5
mov edx, esi
mov eax, ebx
call fcn.00437bb0
jmp 0x4381e5
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4381de
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00439efc
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.004348c8
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0043808c
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00439efc
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4381e5
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43e7b4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x459234]
cmp byte [eax + 0xc], 0
je 0x43e921
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43e91a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x45ab98], 0
jne 0x43e808
push 0x43e928
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43e930
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45ab98], eax
cmp dword [0x458b58], 0
jne 0x43e903
push 0x43e940
call sub.kernel32.dll_LoadLibraryA
mov dword [0x458b58], eax
cmp dword [0x458b58], 0
je 0x43e903
push 0x43e94c
mov eax, dword [0x458b58]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45ab9c], eax
push 0x43e95c
mov eax, dword [0x458b58]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45aba0], eax
push 0x43e970
mov eax, dword [0x458b58]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45aba4], eax
push 0x43e988
mov eax, dword [0x458b58]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45aba8], eax
push 0x43e9a0
mov eax, dword [0x458b58]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45abac], eax
push 0x43e9b4
mov eax, dword [0x458b58]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45abb0], eax
push 0x43e9cc
mov eax, dword [0x458b58]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45abb4], eax
push 0x43e9e4
mov eax, dword [0x458b58]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45abb8], eax
push 0x43ea00
mov eax, dword [0x458b58]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45abbc], eax
push 0x43ea0c
mov eax, dword [0x458b58]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45abc0], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43e921
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x4427ac
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.004044e0
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x4427fb
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404750
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x449fa4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x449ff4]
test si, 4
je 0x449fb8
or bl, 1
test si, 8
je 0x449fc2
or bl, 4
test si, 1
je 0x449fcc
or bl, 8
test si, 2
je 0x449fd6
or bl, 0x10
test si, 0x10
je 0x449fe0
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x449fef
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x449ff8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44a030]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44a011
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44a020
or bl, 4
test esi, 0x20000000
je 0x44a02b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4506f4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x450706
add esp, 0xfffffff0
call fcn.00403a08
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041ae30
mov eax, dword [0x458ed8]
mov dword [eax + 4], ebx
mov dword [eax], 0x450a98
mov eax, dword [0x458ee4]
mov dword [eax + 4], ebx
mov dword [eax], 0x450aa4
mov eax, ebx
call fcn.00450ab0
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4120e8]
call fcn.004036a0
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4120e8]
call fcn.004036a0
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4120e8]
call fcn.004036a0
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4120e8]
call fcn.004036a0
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4120e8]
call fcn.004036a0
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x44cec8
push eax
push 0
push 0
mov eax, dword [0x45902c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41cf94]
call fcn.0041e72c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41cf94]
call fcn.0041e72c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41cf94]
call fcn.0041e72c
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00450f00
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x450dc8
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x450dc8
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x450dc8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x450843
call fcn.00403a60
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x450bac
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x450d57
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x450d38
mov dl, 1
mov eax, dword [0x412690]
call fcn.004036a0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004044e0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x450d27
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0043eb14
test al, al
je 0x450d1a
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x450d68
lea eax, [ebp - 0x254]
call fcn.004091c0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x450d1a
xor eax, eax
push ebp
push 0x450d13
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x450da0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x450cfc
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404750
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x450cfc
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404750
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x450d1a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x450c1d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00416aac
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x450d5e
lea eax, [ebp - 0x260]
call fcn.004044e0
ret

Function at 0x4516a0
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x45abe4]
cmp byte [eax + 0xa5], 0
jne 0x451711
cmp dword [0x45abfc], 0
jne 0x4516d2
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45165c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x45abfc], eax
cmp dword [0x45abf8], 0
jne 0x4516ed
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x45abf8], eax
cmp dword [0x45ac00], 0
jne 0x451711
push esp
push 0
push 0
push 0x451600
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x45ac00], eax
pop edx
ret
Function at 0x451da4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x45abe4]
cmp dword [eax + 0x30], 0
je 0x451e4e
cmp dword [ebx + 0x94], 0
jne 0x451e48
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x451d34
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x451e48
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x451e0e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x451e48
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00414774
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x451e1d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4529ac
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x4529e1
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004045d0
jmp 0x4529ee
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404534
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x453a14
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x453a55
mov eax, esi
call fcn.0043a1d4
test al, al
je 0x453a55
mov eax, dword [ebx + 0x84]
call fcn.00439efc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x453a55
push 0
mov eax, dword [ebx + 0x84]
call fcn.00439efc
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x454d64
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404990
xor eax, eax
push ebp
push 0x454de2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004049a0
mov dword [ebp - 8], eax
cmp dword [ebx + 8], 0
jne 0x454dad
mov eax, dword [ebx + 4]
call fcn.004049a0
push eax
push 0
call sub.advapi32.dll_RegisterEventSourceA
mov dword [ebx + 8], eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push 1
push 0
mov eax, dword [ebp + 8]
push eax
mov ax, word [ebp + 0xc]
push eax
push esi
mov eax, dword [ebx + 8]
push eax
call sub.advapi32.dll_ReportEventA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x454de9
lea eax, [ebp - 4]
call fcn.004044e0
ret
Function at 0x455df8
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x455f95
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x10]
xor eax, eax
call fcn.00402e64
cmp word [ebx + 0xa2], 0
je 0x455e41
mov edx, ebx
mov eax, dword [ebx + 0xa4]
call dword [ebx + 0xa0]
mov eax, dword [ebx + 0x90]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x455e55
lea esi, [ebp - 8]
jmp 0x455e57
xor esi, esi
cmp dword [ebx + 0x80], 0
jne 0x455e64
xor edi, edi
jmp 0x455e71
mov eax, dword [ebx + 0x80]
call fcn.004049a0
mov edi, eax
mov eax, dword [ebx + 0x7c]
call fcn.004049a0
push eax
push edi
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.00455530
mov eax, dword [ebp - 0x14]
call fcn.004049a0
push eax
push esi
mov eax, dword [ebx + 0x74]
call fcn.004049a0
push eax
mov eax, dword [ebp - 0x10]
call fcn.004049a0
push eax
mov eax, ebx
call fcn.00455664
push eax
mov eax, ebx
call fcn.00455638
push eax
mov eax, ebx
call fcn.004555ec
push eax
push 0xf01ff
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.004553e8
mov eax, dword [ebp - 0x18]
call fcn.004049a0
push eax
mov eax, dword [ebx + 8]
call fcn.004049a0
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_CreateServiceA
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 0x90], eax
cmp dword [ebp - 0xc], 0
jne 0x455efa
call fcn.0040d1ec
xor edx, edx
push ebp
push 0x455f73
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x455f38
push dword fs:[edx]
mov dword fs:[edx], esp
cmp word [ebx + 0xaa], 0
je 0x455f2e
mov edx, ebx
mov eax, dword [ebx + 0xac]
call dword [ebx + 0xa8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x455f5c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455f7a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret

Function at 0x455fa4
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp word [eax + 0xb2], 0
je 0x455fd0
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0xb4]
call dword [esi + 0xb0]
push 0xf01ff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.004049a0
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x455ff5
call fcn.0040d1ec
xor eax, eax
push ebp
push 0x45602c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_DeleteService
test eax, eax
jne 0x456015
call fcn.0040d1ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x456033
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
Function at 0x4567f0
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404990
mov eax, dword [ebp - 8]
call fcn.00404990
xor eax, eax
push ebp
push 0x4568cb
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x24], 0xffffffff
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.004049a0
push eax
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
test ebx, ebx
jbe 0x4568a9
push 0x14
mov eax, dword [ebp - 8]
call fcn.004049a0
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov esi, eax
test esi, esi
jbe 0x4568a3
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
push esi
call sub.advapi32.dll_StartServiceA
test eax, eax
je 0x45689d
lea eax, [ebp - 0x28]
push eax
push esi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x45689d
jmp 0x456897
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_Sleep_1
lea eax, [ebp - 0x28]
push eax
push esi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x45689d
cmp edi, dword [ebp - 0x14]
ja 0x45689d
cmp dword [ebp - 0x24], 4
jne 0x456878
push esi
call sub.advapi32.dll_CloseServiceHandle
push ebx
call sub.advapi32.dll_CloseServiceHandle
cmp dword [ebp - 0x24], 4
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4568d2
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404504
ret

Function at 0x4568dc
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404990
mov eax, dword [ebp - 8]
call fcn.00404990
xor eax, eax
push ebp
push 0x456975
push dword fs:[eax]
mov dword fs:[eax], esp
or esi, 0xffffffff
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.004049a0
push eax
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
test ebx, ebx
jbe 0x456958
push 4
mov eax, dword [ebp - 8]
call fcn.004049a0
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov edi, eax
test edi, edi
jbe 0x456952
lea eax, [ebp - 0x24]
push eax
push edi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x45694c
mov esi, dword [ebp - 0x20]
push edi
call sub.advapi32.dll_CloseServiceHandle
push ebx
call sub.advapi32.dll_CloseServiceHandle
mov ebx, esi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45697c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404504
ret
Function at 0x4021f0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub esp, 0x148
mov eax, dword [0x40e3e0]
xor eax, esp
mov dword [esp + 0x144], eax
push ebp
mov ebp, dword [esp + 0x154]
push esi
push edi
push 0x104
lea eax, [esp + 0x50]
push 0
push eax
call fcn.00404c50
mov eax, dword [esp + 0x164]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 0xc
sub eax, 1
je 0x4022b0
sub eax, 1
je 0x40229e
sub eax, 1
jne 0x402300
lea ecx, [esp + 0x4c]
push ecx
push eax
push eax
push 0x23
push eax
call fcn.00403140
add esp, 0x14
lea edx, [esp + 0x4c]
push edx
call edi
cmp byte [esp + eax + 0x4b], 0x5c
je 0x40226c
mov byte [esp + eax + 0x4c], 0x5c
mov byte [esp + eax + 0x4d], 0
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x402300
mov byte [ebp], 0
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.00404c23
add esp, 0x148
ret
lea ecx, [esp + 0x4c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x402254
push 0x104
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [esp + 0x4c]
push edx
call edi
cmp byte [esp + eax + 0x4b], 0x5c
je 0x4022d4
mov byte [esp + eax + 0x4c], 0x5c
inc eax
lea esi, [esp + eax + 0x4c]
push str.Temp
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402280
push 0x40b28c
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.240312065821759672035660
call edi
dec eax
cmp eax, 8
jl 0x402284
mov al, byte [eax + str.240312065821759672035660]
cmp al, 0x30
jl 0x402284
cmp al, 0x39
jg 0x402284
movsx esi, al
sub esi, 0x30
and esi, reloc.WS2_32.dll_closesocket
jns 0x40233a
dec esi
or esi, 0xfffffffc
inc esi
push str.240312065821759672035660
add esi, 4
call edi
sub eax, esi
dec eax
xor ecx, ecx
lea eax, [eax + str.240312065821759672035660]
nop
mov dl, byte [eax]
test dl, dl
je 0x4023b5
test esi, esi
jle 0x4023b5
add dl, dl
inc dl
inc eax
mov byte [esp + ecx + 0xc], dl
mov dl, byte [eax]
dec esi
test dl, dl
je 0x4023aa
test esi, esi
jle 0x4023aa
add dl, dl
inc dl
inc eax
mov byte [esp + ecx + 0xd], dl
mov dl, byte [eax]
dec esi
test dl, dl
je 0x4023ad
test esi, esi
jle 0x4023ad
add dl, dl
inc dl
inc eax
mov byte [esp + ecx + 0xe], dl
mov dl, byte [eax]
dec esi
test dl, dl
je 0x4023b2
test esi, esi
jle 0x4023b2
add dl, dl
inc dl
mov byte [esp + ecx + 0xf], dl
add ecx, 4
dec esi
inc eax
cmp ecx, 0x40
jb 0x402350
jmp 0x4023b5
inc ecx
jmp 0x4023b5
add ecx, 2
jmp 0x4023b5
add ecx, 3
mov byte [esp + ecx + 0xc], 0x2e
push 0x40b288
lea ecx, [esp + ecx + 0x11]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x4c]
push edx
call edi
mov ecx, 0x104
sub ecx, eax
push ecx
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x54]
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [esp + eax + 0x54]
push ecx
call esi
push 0x103
lea edx, [esp + 0x50]
push edx
push ebp
call esi
mov ecx, dword [esp + 0x150]
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 1
call fcn.00404c23
add esp, 0x148
ret