joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4183a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eef9b
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x51d584]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x30
call fcn.00480dc0
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x4183eb
mov ecx, dword [ebp + 8]
push ecx
push eax
call fcn.00436590
mov edi, eax
jmp 0x4183ed
xor edi, edi
push edi
mov dword [ebp - 4], 0xffffffff
call fcn.004425d0
push 0
push 0
push eax
push 0x4166d0
push 0
push 0
call fcn.0048373b
mov edi, dword [edi + 0x20]
add esp, 0x18
mov esi, eax
test edi, edi
jne 0x418452
test esi, esi
je 0x418439
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x418489
lea edx, [ebp + 8]
push edx
push esi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x5b4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4184b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eef9b
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x51d584]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x30
call fcn.00480dc0
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x4184fb
mov ecx, dword [ebp + 8]
push ecx
push eax
call fcn.00437670
mov esi, eax
jmp 0x4184fd
xor esi, esi
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004425d0
push 0
push 0
push eax
push 0x417270
push 0
push 0
call fcn.0048373b
mov edi, eax
mov eax, dword [esi + 0x18]
add esp, 0x18
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [esi + 0x18], 0
jne 0x41856c
test edi, edi
je 0x418553
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
test eax, eax
jne 0x41859b
lea edx, [ebp + 8]
push edx
push edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x5b4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4185c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ef69e
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x51d584]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x28
call fcn.00480dc0
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x418645
mov byte [ebp - 4], 1
lea ecx, [esi + 4]
mov dword [esi], vtable.tpsp::OPDELETE.0
call fcn.004bccf0
mov edx, dword [ebp + 8]
mov byte [ebp - 4], 2
mov eax, 0x51e6e0
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov eax, dword [0x5252a4]
mov dword [esi + 0x20], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], 0x3e8
mov dword [esi + 0x18], eax
mov byte [esi + 0x1c], bl
mov ecx, esi
mov dword [esi + 0x24], ebx
call fcn.0043a8c0
jmp 0x418647
xor esi, esi
push ebx
push ebx
push esi
push 0x417520
push ebx
push ebx
call fcn.0048373b
add esp, 0x18
cmp eax, ebx
je 0x418679
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41a850
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4eda35
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x51d584]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push esi
mov eax, dword [0x51d584]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0xa0], ebx
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], vtable.tpsp::TASKINDEX.0
call fcn.004bccf0
mov eax, dword [0x525210]
mov ecx, dword [0x525214]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], 0x51e6e0
mov dword [esp + 0x28], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x30], 0xe10
mov dword [esp + 0x5c], ebx
xor esi, esi
mov dword [esp + 0xa0], 1
mov dword [esp + 0x18], esi
cmp dword [edi + 0xc], ebx
jg 0x41a954
lea ecx, [esp + 0x1c]
mov dword [esp + 0xa0], 0xffffffff
call fcn.0042b180
xor eax, eax
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.004809b9
mov esp, ebp
pop ebp
ret 4
mov esi, dword [esp + 0x18]
cmp esi, dword [edi + 0xc]
jl 0x41a995
push 0x338
push str.D:WorkCodeTPSPTpsp
push 3
lea ecx, [esp + 0x74]
mov byte [esp + 0x1f], bl
call fcn.00499b70
mov byte [esp + 0xa0], 2
or dword [esp + 0x14], 1
push str.CHECK_failed:__index_____size___:
mov ecx, eax
call fcn.00499e60
push eax
lea ecx, [esp + 0x17]
call fcn.0049a0b0
mov dword [esp + 0xa0], 1
test byte [esp + 0x14], 1
je 0x41a9b5
and dword [esp + 0x14], 0xfffffffe
lea ecx, [esp + 0x68]
call fcn.00499ba0
mov edx, dword [edi + 8]
mov esi, dword [edx + esi*4]
lea eax, [esp + 0x1c]
cmp esi, eax
je 0x41a9d9
mov edx, dword [esp + 0x1c]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov edx, esi
lea ecx, [esp + 0x1c]
call fcn.0042c7e0
mov ecx, dword [esp + 0x2c]
cmp dword [ebp + 8], ecx
je 0x41a9f9
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [edi + 0xc]
jl 0x41a950
jmp 0x41a912
lea ecx, [esp + 0x1c]
mov dword [esp + 0xa0], 0xffffffff
call fcn.0042b180
mov eax, 1
jmp 0x41a928
Function at 0x41cd80
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ee0e5
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x51d584]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [0x51d584]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], eax
mov eax, dword [eax + 0x30]
mov esi, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x68]
xor edi, edi
test eax, eax
jle 0x41ce49
cmp edi, eax
jl 0x41ce18
push 0x338
push str.D:WorkCodeTPSPTpsp
push 3
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1f], 0
call fcn.00499b70
mov dword [esp + 0x80], edi
or ebx, 1
push str.CHECK_failed:__index_____size___:
mov ecx, eax
mov dword [esp + 0x1c], ebx
call fcn.00499e60
push eax
lea ecx, [esp + 0x17]
call fcn.0049a0b0
mov dword [esp + 0x80], 0xffffffff
test bl, 1
je 0x41ce34
lea ecx, [esp + 0x20]
and ebx, 0xfffffffe
call fcn.00499ba0
mov ecx, dword [esi + 0x64]
mov eax, dword [ecx + edi*4]
mov edx, dword [esp + 0x1c]
cmp dword [eax + 0x30], edx
je 0x41ce64
inc edi
cmp edi, dword [esi + 0x68]
jl 0x41ce18
mov eax, dword [esi + 0x68]
mov ecx, dword [esi + 0x6c]
lea edi, [esi + 0x64]
cmp eax, ecx
jge 0x41cecf
mov ecx, dword [edi]
mov esi, dword [ecx + eax*4]
inc eax
mov dword [edi + 4], eax
jmp 0x41cf5a
cmp edi, dword [esi + 0x68]
jl 0x41ceab
push 0x340
push str.D:WorkCodeTPSPTpsp
push 3
lea ecx, [esp + 0x54]
mov byte [esp + 0x1e], 0
call fcn.00499b70
mov dword [esp + 0x80], 1
or ebx, 2
push str.CHECK_failed:__index_____size___:
mov ecx, eax
mov dword [esp + 0x1c], ebx
call fcn.00499e60
push eax
lea ecx, [esp + 0x16]
call fcn.0049a0b0
mov dword [esp + 0x80], 0xffffffff
test bl, 2
je 0x41cec4
lea ecx, [esp + 0x48]
call fcn.00499ba0
mov eax, dword [esi + 0x64]
mov esi, dword [eax + edi*4]
jmp 0x41cf5a
mov eax, dword [edi + 0xc]
cmp ecx, eax
jne 0x41cedf
inc eax
push eax
mov ecx, edi
call fcn.0049a3f0
inc dword [edi + 8]
push 0x40
call fcn.00480dc0
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
xor ebx, ebx
mov dword [esp + 0x80], 2
cmp esi, ebx
je 0x41cf42
mov byte [esp + 0x80], 3
lea ecx, [esi + 4]
mov dword [esi], vtable.tpsp::TASKITEM.0
call fcn.004bccf0
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x38], ebx
jmp 0x41cf44
xor esi, esi
mov dword [esp + 0x80], 0xffffffff
mov edx, dword [edi + 4]
mov eax, dword [edi]
mov dword [eax + edx*4], esi
inc dword [edi + 4]
cmp dword [esp + 0x14], esi
je 0x41cf72
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x14]
call fcn.0042d450
xor eax, eax
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.004809b9
mov esp, ebp
pop ebp
ret 4
Function at 0x41e7b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eafb0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x51d584]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
movzx ecx, cl
push ebx
neg ecx
sbb ecx, ecx
lea eax, [ebp - 0x10]
push eax
push ebx
and ecx, 0x100
add ecx, 0xf003f
push ecx
push ebx
push ebx
push ebx
push str.SOFTWARETpspCln
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea esi, [ebx + 0x10]
cmp eax, ebx
je 0x41e85c
mov byte [ebp - 4], bl
cmp dword [ebp + 0x1c], esi
jb 0x41e822
mov edx, dword [ebp + 8]
push edx
call fcn.00480d64
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], ebx
mov byte [ebp + 8], bl
cmp dword [ebp + 0x38], esi
jb 0x41e847
mov eax, dword [ebp + 0x24]
push eax
call fcn.00480d64
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x38
mov ecx, dword [ebp + 0x24]
cmp dword [ebp + 0x38], esi
jae 0x41e867
lea ecx, [ebp + 0x24]
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x1c], esi
jae 0x41e872
lea eax, [ebp + 8]
mov edx, dword [ebp + 0x34]
push edx
push ecx
push 1
push ebx
push eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp eax, ebx
je 0x41e8d7
mov byte [ebp - 4], bl
cmp dword [ebp + 0x1c], esi
jb 0x41e89d
mov ecx, dword [ebp + 8]
push ecx
call fcn.00480d64
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], ebx
mov byte [ebp + 8], bl
cmp dword [ebp + 0x38], esi
jb 0x41e847
mov edx, dword [ebp + 0x24]
push edx
call fcn.00480d64
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x38
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], bl
cmp dword [ebp + 0x1c], esi
jb 0x41e8f5
mov ecx, dword [ebp + 8]
push ecx
call fcn.00480d64
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], ebx
mov byte [ebp + 8], bl
cmp dword [ebp + 0x38], esi
jb 0x41e91a
mov edx, dword [ebp + 0x24]
push edx
call fcn.00480d64
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x38
Function at 0x421220
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eb213
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x51d584]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x40
call fcn.00480dc0
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
xor edi, edi
mov dword [ebp - 4], edi
cmp esi, edi
je 0x4212a9
mov byte [ebp - 4], 1
lea ecx, [esi + 4]
mov dword [esi], vtable.tpsp::TASKITEM.0
call fcn.004bccf0
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x30], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x38], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x421b40
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x60
mov eax, dword [0x51d584]
xor eax, esp
mov dword [esp + 0x5c], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
xor ecx, ecx
push esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
push eax
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.004212c0
add esp, 4
lea esi, [esp + 8]
call fcn.00421380
mov ecx, dword [esp + 0x64]
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.004809b9
mov esp, ebp
pop ebp
ret 8
Function at 0x421f00
Capabilities:
Parse pe header
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x421f22
push str.Not_a_valid_executable_file._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [eax + 0x3c]
add edi, eax
cmp dword [edi], 0x4550
je 0x421f42
push str.No_PE_header_found._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x50]
mov eax, dword [edi + 0x34]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x2000
push edx
push eax
call esi
mov ebx, eax
test ebx, ebx
jne 0x421f89
mov ecx, dword [edi + 0x50]
push 4
push 0x2000
push ecx
push eax
call esi
mov ebx, eax
test ebx, ebx
jne 0x421f89
push str.Cant_reserve_memory
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push 0x828
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
xor eax, eax
mov dword [esi + 4], ebx
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
mov edx, dword [edi + 0x50]
push 4
mov dword [esi + 0x18], edx
mov eax, dword [edi + 0x50]
push 0x1000
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [edi + 0x54]
push 4
push 0x1000
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebp + 8]
mov edx, dword [edi + 0x54]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 4], eax
push edx
push ecx
push eax
call fcn.00484d50
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
add eax, dword [ebp - 4]
push esi
push edi
mov dword [esi], eax
push ecx
mov dword [eax + 0x34], ebx
call fcn.00421bc0
mov eax, ebx
add esp, 0x18
sub eax, dword [edi + 0x34]
je 0x422016
push eax
mov eax, esi
call fcn.00421d50
add esp, 4
push esi
call fcn.00421de0
add esp, 4
test eax, eax
jne 0x42203c
push str.Cant_BuildImportTable
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call fcn.00422160
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push esi
call fcn.00421c80
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
add esp, 4
test eax, eax
je 0x422099
add eax, ebx
jne 0x42206b
push str.Library_has_no_entry_point._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call fcn.00422160
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push 0
push 1
push ebx
mov dword [esi + 0x14], eax
call eax
test eax, eax
jne 0x422092
push str.Cant_attach_library._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call fcn.00422160
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x10], 1
mov eax, esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x422600
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x51d584]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push 0x25
push eax
mov dword [ebp - 0x210], ecx
call fcn.00483c48
mov esi, eax
add esp, 8
test esi, esi
je 0x4226f6
push edi
lea edx, [esi + 1]
push 0x25
push edx
call fcn.00483c48
mov edi, eax
add esp, 8
test edi, edi
jne 0x422659
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004809b9
mov esp, ebp
pop ebp
ret 4
push 0x103
lea eax, [ebp - 0x20b]
push 0
push eax
mov byte [ebp - 0x20c], 0
call fcn.00484cd0
push 0x103
lea ecx, [ebp - 0x107]
push 0
push ecx
mov byte [ebp - 0x108], 0
call fcn.00484cd0
mov edx, edi
sub edx, esi
inc edx
push edx
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00483b7e
add esp, 0x24
push 0x104
lea ecx, [ebp - 0x108]
push ecx
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [ebp - 0x108]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4226c5
mov ecx, dword [ebp - 0x210]
sub eax, edx
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.004040c0
lea eax, [edi + 1]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004809b9
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.004809b9
mov esp, ebp
pop ebp
ret 4
Function at 0x423100
Capabilities:
Check for time delay via gettickcount
Enumerate services
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x515f50
push 0x48a250
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x51d584]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x54], eax
mov edi, ecx
test eax, eax
je 0x4232d8
test edi, edi
je 0x4232d8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x60], 0x7530
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x44]
push ecx
push 0
push 0
push 1
push edi
mov ebx, dword [sym.imp.ADVAPI32.dll_EnumDependentServicesA]
call ebx
test eax, eax
jne 0x4232d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x4231d3
mov edx, dword [ebp - 0x44]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x4c], esi
test esi, esi
je 0x4231d3
mov dword [ebp - 4], 0
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x44]
push edx
push esi
push 1
push edi
call ebx
test eax, eax
jne 0x4231da
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x51d584
call fcn.0048e1f0
add esp, 0xc
xor eax, eax
jmp 0x4232dd
xor ebx, ebx
mov dword [ebp - 0x48], ebx
nop
cmp ebx, dword [ebp - 0x50]
jae 0x4232cc
lea ecx, [ebx + ebx*8]
lea esi, [esi + ecx*4]
mov ecx, 9
lea edi, [ebp - 0x84]
rep movsd dword es:[edi], dword [esi]
push 0x24
mov edx, dword [ebp - 0x84]
push edx
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
mov dword [ebp - 0x58], esi
test esi, esi
jne 0x423232
push 0xfffffffffffffffe
lea ecx, [ebp - 0x10]
push ecx
push 0x51d584
call fcn.0048e1f0
add esp, 0xc
xor eax, eax
jmp 0x4232dd
mov edi, 1
mov dword [ebp - 4], edi
lea edx, [ebp - 0x40]
push edx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4231c0
mov edi, edi
cmp dword [ebp - 0x3c], edi
je 0x4232a0
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [ebp - 0x44]
push edx
push 0x24
lea eax, [ebp - 0x40]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x423218
cmp dword [ebp - 0x3c], edi
je 0x4232a0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x5c]
cmp eax, dword [ebp - 0x60]
jbe 0x423250
push 0xfffffffffffffffe
lea edx, [ebp - 0x10]
push edx
push 0x51d584
call fcn.0048e1f0
add esp, 0xc
xor eax, eax
jmp 0x4232dd
mov dword [ebp - 4], 0
call fcn.004232c4
add ebx, edi
mov dword [ebp - 0x48], ebx
mov esi, dword [ebp - 0x4c]
jmp 0x4231e0
mov dword [ebp - 4], 0xfffffffe
call fcn.004232fc
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004809b9
mov esp, ebp
pop ebp
ret
Function at 0x423580
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x51d584]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0xf003f
push 0
push 0
mov dword [ebp - 0x2c], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
mov dword [ebp - 0x30], ebx
test ebx, ebx
je 0x4235cc
push 0x2c
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x4235e2
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004809b9
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
lea eax, [ebp - 0x34]
push eax
push 0x24
lea ecx, [ebp - 0x28]
push ecx
push 0
push esi
call edi
test eax, eax
je 0x4236a9
mov eax, dword [ebp - 0x24]
cmp eax, 1
je 0x4236a9
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
cmp eax, 3
jne 0x42364c
mov edx, dword [ebp - 0x10]
push edx
call ebx
lea eax, [ebp - 0x34]
push eax
push 0x24
lea ecx, [ebp - 0x28]
push ecx
push 0
push esi
call edi
test eax, eax
je 0x4236a6
cmp dword [ebp - 0x24], 1
je 0x4236a6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x2c]
cmp eax, 0x7530
ja 0x4236a6
cmp dword [ebp - 0x24], 3
je 0x423617
mov edx, dword [ebp - 0x30]
push edx
mov ecx, esi
call fcn.00423100
add esp, 4
lea eax, [ebp - 0x28]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4236a6
cmp dword [ebp - 0x24], 1
je 0x4236a6
mov ecx, dword [ebp - 0x10]
push ecx
call ebx
lea edx, [ebp - 0x34]
push edx
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push esi
call edi
test eax, eax
je 0x4236a6
cmp dword [ebp - 0x24], 1
je 0x4236a6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x2c]
cmp eax, 0x7530
ja 0x4236a6
cmp dword [ebp - 0x24], 1
jne 0x423671
mov ebx, dword [ebp - 0x30]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004809b9
mov esp, ebp
pop ebp
ret