joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41bf10
Capabilities:
Create directory
Get common file path

Disassembly:
sub esp, 0x218
mov eax, dword [0x44f3d8]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
xor bl, bl
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x41bf4a
mov al, 1
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00426d9a
add esp, 0x218
ret
push 0
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
jne 0x41bfa4
lea eax, [esp + 8]
push eax
push 0
push 0x44673c
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jbe 0x41bf9b
push 0
push 0x4000000
push 2
push 0
push 5
push 0xc0000000
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x41bf9b
push eax
mov bl, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.0041b7e0
add esp, 4
mov ecx, dword [esp + 0x214]
mov al, bl
pop ebx
xor ecx, esp
call fcn.00426d9a
add esp, 0x218
ret

Function at 0x41c5c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x440fee
mov eax, dword fs:[0]
push eax
push ebx
push edi
mov eax, dword [0x44f3d8]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
lea eax, [edi + 0x40]
mov dword [esp + 0x14], 2
call fcn.00415c90
cmp dword [edi + 0x30], 8
jb 0x41c608
mov eax, dword [edi + 0x1c]
push eax
call fcn.004286d5
add esp, 4
xor ebx, ebx
mov dword [edi + 0x30], 7
mov dword [edi + 0x2c], ebx
lea eax, [edi + 0xc]
mov word [edi + 0x1c], bx
mov byte [esp + 0x14], bl
call fcn.00403040
mov dword [esp + 0x14], 0xffffffff
call fcn.00414880
mov eax, dword [edi + 4]
push eax
call fcn.004286d5
add esp, 4
mov dword [edi + 4], ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0xc
ret 4
Function at 0x41d0d0
Capabilities:
Create thread

Disassembly:
push edi
xor edi, edi
push edi
push edi
push esi
push 0x41d100
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi], eax
jne 0x41d0f0
pop edi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, edi
pop edi
ret
Function at 0x41e0a0
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push 0x425410
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, dword [0x451b98]
push 0
push 0x425350
push 0
push 0x9b
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
mov edx, dword [esi]
mov eax, dword [edx + 0x20]
mov ecx, esi
jmp eax

Function at 0x41e690
Capabilities:
Delete file
Move file

Disassembly:
sub esp, 0x20c
mov eax, dword [0x44f3d8]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push esi
push str.Cleanup
push str.__s_
push 0x450638
xor eax, eax
mov esi, ecx
call fcn.0041ee40
mov ebx, 1
add dword [0x450658], ebx
add esp, 0xc
cmp byte [esi + 0xaf0], 0
je 0x41e7d0
cmp dword [esi + 0xa34], 8
jb 0x41e6ea
mov esi, dword [esi + 0xa20]
jmp 0x41e6f0
add esi, 0xa20
push edi
push esi
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.004299fa
add esp, 0xc
push str.UninstallSetup.exe
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 4
push 0
lea edx, [esp + 0x14]
push edx
call esi
lea eax, [esp + 0xc]
push eax
push str.Marking___s__for_deletion_on_reboot
push 0x450638
xor eax, eax
call fcn.0041ee40
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
call edi
test eax, eax
je 0x41e801
mov ebx, dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
push ebp
mov ebp, dword [sym.imp.SHLWAPI.dll_PathIsSystemFolderW]
push 0
lea edx, [esp + 0x14]
push edx
call ebp
test eax, eax
jne 0x41e7b0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
jne 0x41e7b0
lea ecx, [esp + 0x10]
push ecx
push str.Marking___s__for_deletion_on_reboot
push 0x450638
call fcn.0041ee40
add esp, 0xc
push 4
push 0
lea edx, [esp + 0x18]
push edx
call esi
lea eax, [esp + 0x10]
push eax
call ebx
lea ecx, [esp + 0x10]
push ecx
call edi
test eax, eax
jne 0x41e760
sub dword [0x450658], 1
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00426d9a
add esp, 0x20c
ret
push str.Cleanup_is_being_skipped
push 0x450638
xor eax, eax
call fcn.0041ee40
add esp, 8
sub dword [0x450658], ebx
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00426d9a
add esp, 0x20c
ret
sub dword [0x450658], ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00426d9a
add esp, 0x20c
ret
Function at 0x41ee40
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
cmp dword [edi + 0x1c], 8
mov esi, eax
jb 0x41ee55
mov eax, dword [edi + 8]
jmp 0x41ee58
lea eax, [edi + 8]
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x41efbe
push 2
push 0
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp esi, 1
jne 0x41ee95
mov esi, 0x44829c
jmp 0x41eea4
cmp esi, 2
mov esi, str._
je 0x41eea4
mov esi, 0x4448b0
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41eeb0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
sub eax, edx
push 0
sar eax, 1
lea ecx, [esp + 0x14]
push ecx
lea edx, [eax + eax]
push edx
push esi
push ebp
call ebx
mov eax, esi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41eee0
sub eax, edx
mov edx, dword [edi + 0x20]
sar eax, 1
add edx, edx
test edx, edx
mov esi, eax
mov eax, 0x452260
jle 0x41ef1f
mov ecx, edx
shr ecx, 1
mov eax, 0x200020
mov edi, 0x452260
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [esp + 0x18]
lea eax, [edx*2 + 0x452260]
mov word [eax], 0
mov ecx, dword [edi + 0x20]
push 0
add ecx, ecx
lea eax, [esp + 0x14]
push eax
sub ecx, esi
add ecx, ecx
push ecx
push 0x452260
push ebp
call ebx
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push edx
push eax
call fcn.0042a215
mov esi, eax
add esi, 3
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00426d0b
mov ecx, dword [esp + 0x28]
mov edi, eax
lea eax, [esp + 0x2c]
push eax
push ecx
push esi
push edi
call fcn.0042a3aa
push 0x4482b0
push esi
push edi
call fcn.0042a146
mov eax, edi
add esp, 0x28
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41ef90
sub eax, edx
push 0
sar eax, 1
lea edx, [esp + 0x14]
push edx
add eax, eax
push eax
push edi
push ebp
call ebx
push edi
call fcn.004286d5
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
pop esi
pop ebp
pop ecx
ret

Function at 0x41f0d0
Capabilities:
Set registry value

Disassembly:
mov eax, edx
push esi
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41f0d6
mov ecx, dword [esp + 0xc]
sub eax, esi
sar eax, 1
add eax, eax
push eax
push edx
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
push 1
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
add eax, 1
pop esi
ret 8

Function at 0x41f110
Capabilities:
Set registry value

Disassembly:
mov eax, edx
push esi
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41f116
mov ecx, dword [esp + 0xc]
sub eax, esi
sar eax, 1
add eax, eax
push eax
push edx
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
push 2
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
add eax, 1
pop esi
ret 8
Function at 0x41f150
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
push edi
mov esi, eax
xor edi, edi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41f160
sub eax, edx
sar eax, 1
add eax, 1
push eax
call fcn.00426d0b
mov ebx, eax
movzx eax, word [esi]
add esp, 4
test ax, ax
je 0x41f1f7
cmp ax, 0x61
jb 0x41f197
cmp ax, 0x66
ja 0x41f197
mov al, byte [esi]
sub al, 0x57
jmp 0x41f1ad
cmp ax, 0x41
jb 0x41f1a9
cmp ax, 0x46
ja 0x41f1a9
mov al, byte [esi]
sub al, 0x37
jmp 0x41f1ad
mov al, byte [esi]
sub al, 0x30
movzx ecx, word [esi + 2]
add esi, 2
shl al, 4
cmp cx, 0x61
jb 0x41f1ca
cmp cx, 0x66
ja 0x41f1ca
mov cl, byte [esi]
sub cl, 0x57
jmp 0x41f1e4
cmp cx, 0x41
jb 0x41f1df
cmp cx, 0x46
ja 0x41f1df
mov dl, byte [esi]
sub dl, 0x37
or al, dl
jmp 0x41f1e6
mov cl, byte [esi]
sub cl, 0x30
or al, cl
add esi, 2
mov byte [ebx + edi], al
movzx eax, word [esi]
add edi, 1
test ax, ax
jne 0x41f185
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push edi
push ebx
push 3
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ebx
mov esi, eax
call fcn.004286d5
add esp, 4
xor eax, eax
pop edi
test esi, esi
pop esi
sete al
pop ebx
ret 8

Function at 0x41f230
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ebp
mov ebp, dword [esp + 0xc]
mov ecx, dword [ebp]
push esi
mov esi, eax
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0
push esi
push ecx
mov dword [esp + 0x28], 0
call ebx
test eax, eax
je 0x41f265
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
mov eax, dword [esp + 0x10]
xor ecx, ecx
add eax, 1
mov edx, 2
mul edx
seto cl
push edi
neg ecx
or ecx, eax
push ecx
call fcn.00426d0b
mov ecx, dword [ebp]
add esp, 4
mov edi, eax
lea eax, [esp + 0x14]
push eax
push edi
push 0
push 0
push esi
push ecx
call ebx
mov ebx, eax
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41f2a0
mov esi, dword [esp + 0x18]
sub eax, edx
sar eax, 1
push eax
push edi
call fcn.00404120
push edi
call fcn.004286d5
add esp, 4
pop edi
pop esi
xor eax, eax
test ebx, ebx
pop ebp
sete al
pop ebx
ret 8

Function at 0x41f2e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
push edi
mov edi, eax
mov ecx, dword [edi]
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0
push str.InstallConfig
push ecx
mov dword [esp + 0x24], 0
call ebp
test eax, eax
je 0x41f316
xor eax, eax
pop edi
pop esi
pop ebp
pop ecx
ret 4
mov eax, dword [esp + 0xc]
xor ecx, ecx
add eax, 1
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00426d0b
mov ecx, dword [edi]
add esp, 4
mov esi, eax
lea eax, [esp + 0xc]
push eax
push esi
push 0
push 0
push str.InstallConfig
push ecx
call ebp
mov edx, dword [esp + 0x14]
push edx
mov ecx, esi
mov edi, eax
call fcn.00425690
add esp, 4
push esi
call fcn.004286d5
add esp, 4
xor eax, eax
test edi, edi
pop edi
pop esi
sete al
pop ebp
pop ecx
ret 4
Function at 0x41f460
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x214
mov eax, dword [0x44f3d8]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
mov esi, dword [esp + 0x224]
push edi
mov edi, dword [esp + 0x230]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0
push esi
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x41f54f
lea edx, [esp + 0x10]
push edx
mov eax, edi
or eax, 0xf003f
push eax
push 0
lea ecx, [esp + 0x24]
push ecx
push esi
call ebx
test eax, eax
jne 0x41f54f
mov eax, dword [esp + 0x10]
push edi
lea edx, [esp + 0x1c]
push edx
push eax
call fcn.0041f460
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, 0x100
jne 0x41f53b
mov eax, dword [0x451c3c]
test eax, eax
jne 0x41f523
push str.RegDeleteKeyExW
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call ebp
test eax, eax
mov dword [0x451c3c], eax
je 0x41f534
push 0
push 0x100
lea edx, [esp + 0x20]
push edx
push esi
call eax
jmp 0x41f547
mov eax, 0x32
jmp 0x41f547
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x41f492
cmp eax, 0x103
pop edi
pop esi
pop ebp
pop ebx
jne 0x41f55c
xor eax, eax
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00426d9a
add esp, 0x214
ret
Function at 0x4225f0
Capabilities:
Check for peb beingdebugged flag
Create service
Modify service
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x43f828
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44f3d8]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov edi, ecx
xor ebp, ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov eax, edi
xor ebx, ebx
mov dword [esp + 0x44], ebp
xor esi, esi
lea edx, [eax + 2]
jmp 0x422640
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x422640
sub eax, edx
sar eax, 1
je 0x4226f3
push 0x2c
lea ecx, [esp + 0x2c]
call fcn.00425e40
add esp, 4
lea ecx, [esp + 0x28]
xor esi, esi
call fcn.00414a00
test eax, eax
jbe 0x4226bd
mov edi, dword [esp + 0x2c]
test edi, edi
je 0x422697
mov ecx, dword [esp + 0x30]
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x4226a0
call fcn.004281b2
mov edi, dword [esp + 0x2c]
mov eax, dword [edi + ebp + 0x14]
lea ecx, [esp + 0x28]
lea ebx, [ebx + eax + 1]
add esi, 1
add ebp, 0x1c
call fcn.00414a00
cmp esi, eax
jb 0x422676
xor ebp, ebp
add ebx, 1
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
seto cl
mov dword [esp + 0x1c], ebx
neg ecx
or ecx, eax
push ecx
call fcn.00426d0b
mov esi, eax
add esp, 4
lea eax, [esp + 0x1c]
push eax
push esi
lea eax, [esp + 0x30]
call fcn.00425760
add esp, 8
mov edi, dword [esp + 0x4c]
mov eax, dword [edi + 4]
cmp eax, ebp
je 0x422705
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0x5c]
push ebp
push ebp
push esi
push ebp
mov ecx, eax
push ebp
and ecx, 0x10000000
xor edx, edx
cmp edx, ecx
mov edx, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x68]
push 1
sbb ecx, ecx
and eax, 0xefffffff
push eax
mov eax, dword [esp + 0x78]
push eax
mov eax, dword [edi]
neg ecx
push 0xf003f
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x7c]
push ecx
push edx
push eax
mov dword [edi + 4], ebp
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
cmp eax, ebp
mov dword [edi + 4], eax
je 0x4227a2
mov ecx, dword [esp + 0x64]
mov ebx, dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
lea edx, [esp + 0x20]
push edx
push 1
push eax
mov dword [esp + 0x2c], ecx
call ebx
test eax, eax
jne 0x422780
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebp
mov dword [esp + 0x18], eax
jne 0x4227ac
call fcn.00422db0
cmp eax, 0x6000100
jb 0x4227ac
cmp eax, 0xffffffff
ja 0x4227ac
mov ecx, dword [edi + 4]
lea eax, [esp + 0x24]
push eax
push 3
push ecx
call ebx
test eax, eax
jne 0x4227ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
cmp esi, ebp
je 0x4227b9
push esi
call fcn.004286d5
add esp, 4
mov eax, dword [esp + 0x2c]
cmp eax, ebp
je 0x4227df
mov edx, dword [esp + 0x4c]
mov edi, dword [esp + 0x30]
push edx
call fcn.0041a700
mov eax, dword [esp + 0x30]
add esp, 4
push eax
call fcn.004286d5
add esp, 4
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 0x1c
Function at 0x422800
Capabilities:
Modify service

Disassembly:
push ecx
push esi
mov ecx, eax
and ecx, 0x10000000
xor esi, esi
xor edx, edx
cmp edx, ecx
mov edx, dword [esp + 0xc]
push edx
mov edx, dword [esp + 0x18]
push esi
sbb ecx, ecx
push esi
neg ecx
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, dword [edi + 4]
push esi
push esi
push edx
push 0xffffffffffffffff
and eax, 0xefffffff
push eax
mov eax, dword [esp + 0x34]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
je 0x4228a0
mov ecx, dword [edi + 4]
mov edx, dword [esp + 0x1c]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push ebp
lea eax, [esp + 0x14]
push eax
push 1
push ecx
mov dword [esp + 0x20], edx
call ebx
test eax, eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x422875
call ebp
mov esi, eax
test esi, esi
jne 0x4228ad
call fcn.00422db0
cmp eax, 0x6000100
jb 0x4228ab
cmp eax, 0xffffffff
ja 0x4228ab
mov eax, dword [edi + 4]
lea edx, [esp + 0xc]
push edx
push 3
push eax
call ebx
test eax, eax
jne 0x4228ab
call ebp
pop ebp
pop ebx
pop esi
pop ecx
ret 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ecx
ret 0x14
mov eax, esi
pop ebp
pop ebx
pop esi
pop ecx
ret 0x14

Function at 0x4228e0
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
mov eax, dword [ebx + 4]
sub esp, 0x1c
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov edx, dword [ebx + 4]
lea ecx, [esp]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4229b7
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
cmp dword [esp + 0x10], 4
mov ebp, dword [esp + 0x20]
mov esi, eax
je 0x422993
nop
mov eax, 0xcccccccd
mul dword [esp + 0x24]
shr edx, 3
cmp edx, 0x3e8
jae 0x42293b
mov edx, 0x3e8
jmp 0x422948
cmp edx, 0x2710
jbe 0x422948
mov edx, 0x2710
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebx + 4]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x42298c
cmp dword [esp + 0x20], ebp
jbe 0x422972
call edi
mov ebp, dword [esp + 0x20]
mov esi, eax
jmp 0x42297c
call edi
sub eax, esi
cmp eax, dword [esp + 0x24]
ja 0x42298c
cmp dword [esp + 0x10], 4
jne 0x422920
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x1c
ret
cmp dword [esp + 0x10], 4
jne 0x42299c
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x1c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], ecx
pop ebp
add esp, 0x1c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x1c
ret
Function at 0x4229d0
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
mov ecx, dword [ebx + 4]
sub esp, 0x1c
lea eax, [esp]
push eax
push 1
push ecx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x4229ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebx + 4]
lea edx, [esp]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x422ab7
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
cmp dword [esp + 0x10], 1
mov ebp, dword [esp + 0x20]
mov esi, eax
je 0x422a93
jmp 0x422a20
mov eax, 0xcccccccd
mul dword [esp + 0x24]
shr edx, 3
cmp edx, 0x3e8
jae 0x422a3b
mov edx, 0x3e8
jmp 0x422a48
cmp edx, 0x2710
jbe 0x422a48
mov edx, 0x2710
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebx + 4]
lea ecx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x422a8c
cmp dword [esp + 0x20], ebp
jbe 0x422a72
call edi
mov ebp, dword [esp + 0x20]
mov esi, eax
jmp 0x422a7c
call edi
sub eax, esi
cmp eax, dword [esp + 0x24]
ja 0x422a8c
cmp dword [esp + 0x10], 1
jne 0x422a20
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x1c
ret
cmp dword [esp + 0x10], 1
jne 0x422a9c
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x1c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
pop edi
pop esi
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
pop ebp
add esp, 0x1c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x1c
ret

Function at 0x423080
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4230b2
lea ecx, [esp]
push ecx
call eax
xor eax, eax
cmp word [esp], 6
sete al
add esp, 0x24
ret
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor eax, eax
cmp word [esp], 6
sete al
add esp, 0x24
ret

Function at 0x4231d0
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 0x10
xor eax, eax
lea ecx, [esp]
mov dword [esp + 8], eax
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
push ecx
push 0x4230f0
mov dword [esp + 8], 0x12
mov dword [esp + 0x14], eax
call dword [sym.imp.USER32.dll_EnumWindows]
xor eax, eax
add esp, 0x10
ret
Function at 0x423210
Capabilities:
Enumerate processes

Disassembly:
push ebp
push esi
xor ebp, ebp
push ebp
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x42323b
push edi
push esi
mov dword [edi], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x423243
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, 2
pop ebp
ret
push ebx
lea ebx, [edi + 0x24]
mov eax, dword [esp + 0x10]
push ebx
push eax
call fcn.00428644
add esp, 8
test eax, eax
je 0x423271
push edi
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x423247
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
mov eax, ebp
pop ebp
ret
push esi
mov ebp, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
mov eax, ebp
pop ebp
ret

Function at 0x4232d0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x230
mov eax, dword [0x44f3d8]
xor eax, esp
mov dword [esp + 0x22c], eax
mov eax, dword [esp + 0x234]
push edi
push eax
lea edi, [esp + 8]
call fcn.00423210
add esp, 4
cmp eax, 2
jne 0x423316
xor eax, eax
pop edi
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.00426d9a
add esp, 0x230
ret
mov eax, dword [esp + 0xc]
push esi
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x423345
pop esi
xor eax, eax
pop edi
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.00426d9a
add esp, 0x230
ret
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x42332c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x234]
pop esi
pop edi
xor ecx, esp
call fcn.00426d9a
add esp, 0x230
ret