joyce8/EMBER2024-capa huggingface dataset:
Function at 0x456428
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 0x4565d3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4565b4
mov dl, 1
mov eax, dword [0x415748]
call fcn.004034cc
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404288
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4565a3
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.00444324
test al, al
je 0x456596
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, 0x4565e4
lea eax, [ebp - 0x254]
call fcn.0040932c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x456596
xor eax, eax
push ebp
push 0x45658f
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 0x45661c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x456578
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004044f8
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 0x456578
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004044f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x456596
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x456499
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.004192ac
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 0x4565da
lea eax, [ebp - 0x260]
call fcn.00404288
ret

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

Disassembly:
push ecx
mov eax, dword [0x45fb48]
cmp byte [eax + 0xa5], 0
jne 0x456f8d
cmp dword [0x45fb60], 0
jne 0x456f4e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x456ed8
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x45fb60], eax
cmp dword [0x45fb5c], 0
jne 0x456f69
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x45fb5c], eax
cmp dword [0x45fb64], 0
jne 0x456f8d
push esp
push 0
push 0
push 0x456e7c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x45fb64], eax
pop edx
ret
Function at 0x457620
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x45fb48]
cmp dword [eax + 0x30], 0
je 0x4576ca
cmp dword [ebx + 0x94], 0
jne 0x4576c4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4575b0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4576c4
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 0x45768a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4576c4
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.004176a8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x457699
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x458228
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 0x45825d
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.00404378
jmp 0x45826a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004042dc
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45937c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4593bd
mov eax, esi
call fcn.0043f900
test al, al
je 0x4593bd
mov eax, dword [ebx + 0x84]
call fcn.0043f5fc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4593bd
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043f5fc
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x45ba2c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
mov eax, 0x45ba70
call fcn.004086f8
push eax
call sub.kernel32.dll_Sleep_1
call sub.kernel32.dll_GetTickCount_1
sub eax, ebx
cmp eax, 0x1f4
jae 0x45ba63
mov al, 1
pop ebx
ret
xor eax, eax
pop ebx
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401450
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov esi, eax
test esi, esi
je 0x40147a
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov ecx, dword [esp + 0x14]
test eax, eax
mov dword [ecx], eax
jne 0x40147e
xor eax, eax
pop esi
ret
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_LoadResource]
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ecx, dword [esp + 0x10]
push 1
mov dword [ecx], eax
pop eax
pop esi
ret

Function at 0x401499
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push edi
xor edi, edi
push edi
push 1
push edi
lea eax, [ebp - 4]
push edi
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call esi
test eax, eax
jne 0x4014da
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x80090016
jne 0x4014ed
push 8
push 1
push edi
lea eax, [ebp - 4]
push edi
push eax
call esi
test eax, eax
je 0x4014ed
lea eax, [ebp - 8]
push eax
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x4014f1
xor eax, eax
jmp 0x401503
cmp dword [ebp - 4], edi
je 0x401500
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret
Function at 0x401cd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3a9c0
call fcn.00402f10
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x3a9a0], 0
push eax
push eax
push eax
mov word [ebp - 0x3a98c], ax
lea eax, [ebp - 0x3a99c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x3a9a0]
mov dword [ebp - 0x3a99c], 0x10001
push eax
mov dword [ebp - 0x3a998], 0x1f40
mov dword [ebp - 0x3a994], 0x1f40
mov dword [ebp - 0x3a990], 0x80001
call dword [sym.imp.WINMM.dll_waveOutOpen]
push 0x3a980
lea eax, [ebp - 0x3a988]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
mov cl, al
mov edx, eax
xor cl, 0x3f
shr edx, 5
or dl, cl
mov cl, al
shl cl, 2
or dl, cl
mov ecx, eax
shr ecx, 0xb
and dl, cl
movsx ecx, dl
imul ecx, ecx, 0x64
mov byte [ebp + eax - 0x3a988], cl
inc eax
cmp eax, 0x3a980
jb 0x401d53
lea eax, [ebp - 0x3a988]
mov dword [ebp - 0x3a9bc], 0x3a980
mov dword [ebp - 0x3a9c0], eax
lea eax, [ebp - 0x3a9c0]
push 0x20
push eax
push dword [ebp - 0x3a9a0]
mov dword [ebp - 0x3a9b8], 0
mov dword [ebp - 0x3a9b4], 0
mov dword [ebp - 0x3a9b0], 0
mov dword [ebp - 0x3a9ac], 0
mov dword [ebp - 0x3a9a8], 0
mov dword [ebp - 0x3a9a4], 0
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
push 0x20
lea eax, [ebp - 0x3a9c0]
push eax
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutWrite]
push 0x20
lea eax, [ebp - 0x3a9c0]
push eax
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402278
mov esp, ebp
pop ebp
ret
Function at 0x4020c0
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push esi
lea eax, [esp + 0xc]
push edi
push eax
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
add esp, 4
push dword [esp + 0x10]
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
add esp, 4
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 0
push 0
push 0
push section..text
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
call fcn.00401920
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7530
call ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.USER32.dll_InvalidateRect]
push 0
push 0
push 0
call edi
push 0x64
call ebx
mov ebx, dword [sym.imp.USER32.dll_MessageBoxW]
push 0x10
push 0x403188
push str._D_Sa_yk_tp_oj_e_a_
push 0
call ebx
push 0
push 0
push 0
push 0x4010f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
call fcn.00401b70
push 0x7530
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 0
call edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x10
push 0x403188
push str.AIOIOo_U_KH__kjlYKLKH
push 0
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x401370
push 0
push 0
call esi
push 0
push 0
push 0
mov edi, eax
push 0x401470
push 0
push 0
call esi
mov esi, eax
call fcn.00401cd0
push 0x7530
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
call edi
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_InvalidateRect]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x64
call esi
push 0x10
push 0x403188
push str.4p3_INUUI9u89ny98OIKLPOL
push 0
call ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x401590
push 0
push 0
call ebx
push 0
push 0
push 0
push 0x4017c0
push 0
push 0
call ebx
call fcn.00401e30
push 0x7530
call esi
mov ecx, dword [esp + 0x1c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00402278
mov esp, ebp
pop ebp
ret

Function at 0x402a7d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402abc
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402abc
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402abc
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402abc
cmp dword [ecx + 0x74], 0xe
jbe 0x402abc
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40766e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00406fdc

Function at 0x407679
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00407217
Function at 0x4017f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0xffffffffffffffff
push 0x419bb8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x422380]
xor eax, esp
mov dword [esp + 0x30], eax
push ebp
push esi
push edi
mov eax, dword [0x422380]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x54]
lea esi, [esp + 0x14]
mov dword [esp + 0x10], 0
call fcn.00406c80
mov dword [esp + 0x4c], 0
mov al, 0x74
mov byte [esp + 0x32], al
mov byte [esp + 0x36], al
mov eax, esi
push eax
lea edi, [esp + 0x34]
mov esi, ebp
mov byte [esp + 0x34], 0x53
mov byte [esp + 0x35], 0x65
mov byte [esp + 0x37], 0x75
mov byte [esp + 0x38], 0x70
mov byte [esp + 0x39], 0x73
mov byte [esp + 0x3b], 0x69
mov byte [esp + 0x3c], 0x2e
mov byte [esp + 0x3d], 0x6c
mov byte [esp + 0x3e], 0x6f
mov byte [esp + 0x3f], 0x67
mov byte [esp + 0x40], 0
call fcn.004021e0
add esp, 4
cmp dword [esp + 0x2c], 0x10
jb 0x4018a4
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0040bd0f
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0040bd00
add esp, 0x40
ret
Function at 0x402c30
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x419adb
mov eax, dword fs:[0]
push eax
sub esp, 0x19c
mov eax, dword [0x422380]
xor eax, esp
mov dword [esp + 0x198], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x422380]
xor eax, esp
push eax
lea eax, [esp + 0x1b0]
mov dword fs:[0], eax
xor ebx, ebx
mov eax, ecx
mov dword [esp + 0x68], 0xf
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x402c82
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x58]
call fcn.00401210
mov dword [esp + 0x1b8], ebx
mov eax, dword [esp + 0x54]
mov ebp, 0x10
cmp dword [esp + 0x68], ebp
jae 0x402cb0
lea eax, [esp + 0x54]
mov ecx, dword [esp + 0x64]
cmp byte [eax + ecx - 1], 0x5c
je 0x402ccb
push 1
push 0x41f2bc
lea eax, [esp + 0x58]
call fcn.00402290
lea edx, [esp + 0x50]
push edx
mov edi, 0x41f2c0
lea esi, [esp + 0x1c]
call fcn.004021e0
add esp, 4
cmp dword [eax + 0x18], ebp
jb 0x402ceb
mov eax, dword [eax + 4]
jmp 0x402cee
add eax, 4
lea ecx, [esp + 0x6c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp dword [esp + 0x30], 0x10
mov ebp, eax
jb 0x402d10
mov edx, dword [esp + 0x1c]
push edx
call fcn.0040bd0f
add esp, 4
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
cmp ebp, ebx
je 0x402dcd
cmp ebp, 0xffffffff
je 0x402dcd
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x402d40
lea eax, [esp + 0x98]
push 0x41f2c4
push eax
call fcn.004141af
add esp, 8
test eax, eax
je 0x402db2
lea ecx, [esp + 0x98]
push 0x41f2c8
push ecx
call fcn.004141af
add esp, 8
test eax, eax
je 0x402db2
lea edx, [esp + 0x50]
push edx
lea edi, [esp + 0x9c]
lea esi, [esp + 0x38]
call fcn.004021e0
mov esi, 0x10
add esp, 4
cmp dword [eax + 0x18], esi
jb 0x402d99
mov eax, dword [eax + 4]
jmp 0x402d9c
add eax, 4
push eax
call ebx
cmp dword [esp + 0x4c], esi
jb 0x402db2
mov eax, dword [esp + 0x38]
push eax
call fcn.0040bd0f
add esp, 4
lea ecx, [esp + 0x6c]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402d40
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x68], 0x10
jb 0x402de1
mov edx, dword [esp + 0x54]
push edx
call fcn.0040bd0f
add esp, 4
mov ecx, dword [esp + 0x1b0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x198]
xor ecx, esp
call fcn.0040bd00
add esp, 0x1a8
ret
Function at 0x4038c0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x419d08
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x422380]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebp
push esi
push edi
mov eax, dword [0x422380]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
lea eax, [esp + 0x30]
push eax
mov esi, ecx
call fcn.004017f0
add esp, 4
mov dword [esp + 0x58], 0
mov eax, dword [esp + 0x34]
mov ebp, 0x10
cmp dword [esp + 0x48], ebp
jae 0x40391b
lea eax, [esp + 0x34]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40398d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x41f410
lea esi, [esp + 0x1c]
call fcn.004068d0
add esp, 8
push edi
push 0
push eax
mov ecx, ebx
mov byte [esp + 0x64], 1
call fcn.004015d0
cmp dword [esp + 0x2c], ebp
jb 0x403973
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0040bd0f
add esp, 4
cmp dword [esp + 0x48], ebp
jb 0x403986
mov edx, dword [esp + 0x34]
push edx
call fcn.0040bd0f
add esp, 4
xor eax, eax
jmp 0x403a15
mov ecx, dword [esi]
mov edx, dword [ecx + 0x14]
push 0
lea eax, [esp + 0x14]
push eax
push esi
call edx
push eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x10]
push esi
call ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebp, eax
test ebp, ebp
jne 0x4039f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x41f428
lea esi, [esp + 0x1c]
call fcn.004068d0
add esp, 8
push 0xffffffffffffffff
push ebp
push eax
mov ecx, ebx
mov byte [esp + 0x64], 2
call fcn.004015d0
cmp dword [esp + 0x2c], 0x10
jb 0x4039f8
mov edx, dword [esp + 0x18]
push edx
call fcn.0040bd0f
add esp, 4
jmp 0x4039f8
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x48], 0x10
jb 0x403a13
mov eax, dword [esp + 0x34]
push eax
call fcn.0040bd0f
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.0040bd00
add esp, 0x4c
ret
Function at 0x404320
Capabilities:
Query service status

Disassembly:
push 0xffffffffffffffff
push 0x419c28
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push esi
push edi
mov eax, dword [0x422380]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
push ebx
xor ecx, ecx
mov dword [esp + 0x14], 0
call fcn.00402a80
mov edi, eax
test edi, edi
je 0x4043b2
lea eax, [esp + 0xc]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x4043ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x41f54c
lea esi, [esp + 0x30]
call fcn.004068d0
add esp, 8
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
mov dword [esp + 0x58], 0
call fcn.004015d0
cmp dword [esp + 0x40], 0x10
jb 0x4043ab
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0040bd0f
add esp, 4
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x44
ret
Function at 0x4044e0
Capabilities:
Query service status
Start service

Disassembly:
push 0xffffffffffffffff
push 0x419dc8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push ebp
push esi
push edi
mov eax, dword [0x422380]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x7c]
mov al, byte [esp + 0x80]
cmp al, 1
jne 0x404520
mov dword [esp + 0x7c], 1
jmp 0x404530
cmp al, 0xfe
jne 0x40467b
mov dword [esp + 0x7c], 4
xor esi, esi
push ebp
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], esi
call fcn.00402a80
cmp eax, esi
je 0x40454d
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x404557
cmp dword [esp + 0x14], esi
je 0x4046b7
mov ebx, ebp
call fcn.00404320
cmp eax, esi
je 0x4046b7
cmp eax, dword [esp + 0x7c]
jne 0x404576
mov eax, 1
jmp 0x4046b9
push ebp
xor ecx, ecx
call fcn.00402a80
mov edi, eax
mov al, byte [esp + 0x80]
xor ebx, ebx
cmp al, 0xfe
jne 0x404598
push esi
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
jmp 0x4045a8
lea ecx, [esp + 0x18]
movzx edx, al
push ecx
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
cmp eax, esi
je 0x40463a
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x20], esi
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push edi
call esi
test eax, eax
je 0x4045ed
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea esp, [esp]
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [esp + 0x7c]
je 0x4045ed
mov edx, dword [esp + 0x30]
push edx
call ebx
lea eax, [esp + 0x18]
push eax
push edi
call esi
test eax, eax
jne 0x4045d0
mov ecx, dword [esp + 0x7c]
xor ebx, ebx
cmp dword [esp + 0x1c], ecx
sete bl
test ebx, ebx
jne 0x404670
push 0x41f58c
lea esi, [esp + 0x38]
call fcn.004068d0
add esp, 4
push 0xffffffffffffffff
push ebx
push eax
mov ecx, ebp
mov dword [esp + 0x80], 1
call fcn.004015d0
mov ecx, esi
call fcn.00402630
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
jmp 0x4046b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x41f59c
lea esi, [esp + 0x58]
call fcn.004068d0
add esp, 8
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebp
mov dword [esp + 0x80], 2
call fcn.004015d0
mov ecx, esi
call fcn.00402630
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
jmp 0x4046b9
push 0x41f570
lea esi, [esp + 0x38]
call fcn.004068d0
add esp, 4
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebp
mov dword [esp + 0x80], 0
call fcn.004015d0
cmp dword [esp + 0x4c], 0x10
jb 0x4046b7
mov edx, dword [esp + 0x38]
push edx
call fcn.0040bd0f
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 8