joyce8/EMBER2024-capa huggingface dataset:
Function at 0x54caf5
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x7813f8], 0
jne 0x54cb75
cmp dword [0x7813f0], 0
jle 0x54cb4c
mov dword [ebp - 4], esp
push 2
push dword [0x7813f0]
call dword [sym.imp.user32.dll_GetAncestor]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x54cb42
push 6
call fcn.0062ca6d
add esp, 4
mov dword [0x7813f8], eax
jmp 0x54cb75
mov dword [ebp - 4], esp
push 0x7813f8
push 0x54ccad
call dword [sym.imp.user32.dll_EnumWindows]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x54cb75
push 6
call fcn.0062ca6d
add esp, 4
mov eax, dword [0x7813f8]
jmp 0x54cb7f
mov esp, ebp
pop ebp
ret

Function at 0x555f5c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push reloc.WS2_32.dll_getpeername
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x555f88
mov eax, 0x707528
push eax
push 1
mov ebx, 0x194
call fcn.0062dae0
add esp, 0x10
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], esp
push 0x40
push 0x1000
push dword [ebp - 4]
push 0
call dword [sym.imp.kernel32.dll_VirtualAlloc]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x555fcf
push 6
call fcn.0062ca6d
add esp, 4
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 4]
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x555fe4
add eax, 8
push eax
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_RtlMoveMemory]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x556004
push 6
call fcn.0062ca6d
add esp, 4
mov eax, dword [ebp - 8]
jmp 0x55600c
mov esp, ebp
pop ebp
ret 4

Function at 0x62e410
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x62e42e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x62e423
pop esi
ret

Function at 0x62ebd0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x62ec39
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.kernel32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.0062d860
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.kernel32.dll_ReadFile]
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret
Function at 0x62ec60
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call fcn.006305a2
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.kernel32.dll_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x62ecca
push esi
lea edi, [eax + 0x400]
call fcn.00630507
push edi
call fcn.006305a2
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.kernel32.dll_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x62ec9a
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x62ece6
push ecx
push esi
call fcn.0062f680
add esp, 8
mov ebx, eax
push esi
call fcn.00630507
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x62ed20
Capabilities:
Check if file exists
Get common file path

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x208
test eax, eax
push ebx
push esi
push edi
jne 0x62ed4b
lea eax, [esp + 0xc]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
jne 0x62ed73
mov byte [esp + 0xc], al
jmp 0x62ed73
mov edi, dword [esp + 0x21c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + ecx + 0xc]
mov cl, byte [esp + ecx + 0xb]
cmp cl, 0x5c
je 0x62ed91
mov byte [eax], 0x5c
mov esi, dword [sym.imp.user32.dll_wsprintfA]
mov edi, dword [sym.imp.kernel32.dll_GetTickCount]
mov ebx, dword [sym.imp.shlwapi.dll_PathFileExistsA]
call edi
lea ecx, [esp + 0xc]
push eax
push ecx
lea edx, [esp + 0x118]
push str._s_x.tmp
push edx
call esi
add esp, 0x10
lea eax, [esp + 0x110]
push eax
call ebx
test eax, eax
jne 0x62eda3
lea edi, [esp + 0x110]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.0062d860
mov edx, eax
lea edi, [esp + 0x114]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 0x208
ret
Function at 0x62ee20
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x62eeb2
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x62eea4
mov ebp, dword [sym.imp.kernel32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x62ee9c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x62ee65
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x62efb0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push edi
xor edi, edi
push edi
call dword [sym.imp.user32.dll_OpenClipboard]
test eax, eax
je 0x62f000
push esi
push 1
call dword [sym.imp.user32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x62eff5
push esi
call dword [sym.imp.kernel32.dll_GlobalLock]
mov edx, eax
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
call fcn.0062f680
add esp, 8
mov edi, eax
push esi
call dword [sym.imp.kernel32.dll_GlobalUnlock]
call dword [sym.imp.user32.dll_CloseClipboard]
mov eax, edi
pop esi
pop edi
ret
mov eax, edi
pop edi
ret

Function at 0x62f010
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0x10]
xor ebp, ebp
test esi, esi
je 0x62f093
push ebp
call dword [sym.imp.user32.dll_OpenClipboard]
test eax, eax
je 0x62f093
push ebx
push edi
call dword [sym.imp.user32.dll_EmptyClipboard]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push 0x42
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x62f086
push ebx
call dword [sym.imp.kernel32.dll_GlobalLock]
mov edx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.kernel32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.user32.dll_SetClipboardData]
mov ebp, 1
call dword [sym.imp.user32.dll_CloseClipboard]
pop edi
pop ebx
mov eax, ebp
pop esi
pop ebp
ret
mov eax, ebp
pop esi
pop ebp
ret
Function at 0x641cd0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x666003
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
call fcn.0065db8f
xor eax, eax
mov dword [esi + 0x10], 0x6ef294
mov dword [esp + 0x10], eax
mov dword [esi + 0x14], eax
mov ecx, 1
mov dword [esi], method.CDC.virtual_0
mov byte [esp + 0x10], cl
mov dword [esi + 0x30], ecx
lea ecx, [esi + 0x20]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [ecx], eax
mov edx, dword [esp + 0x24]
mov dword [ecx + 4], eax
push edx
mov edx, dword [esp + 0x1c]
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push eax
push ecx
push edx
mov ecx, esi
call fcn.00641dd0
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x10

Function at 0x641d60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x66602b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], method.CDC.virtual_0
mov eax, dword [esi + 0x30]
mov dword [esp + 0x14], 1
push eax
call fcn.00642a10
lea ecx, [esi + 0x10]
mov dword [esp + 8], ecx
mov dword [ecx], method.CGdiObject.virtual_0
mov byte [esp + 0x14], 2
call fcn.0065e7dd
mov ecx, esi
mov dword [esp + 0x14], 0xffffffff
call fcn.0065dcc4
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x659edd
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x659f15
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00657f6a
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00657f42
jmp 0x659f21
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x65b5ce
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x65b610
call fcn.00661159
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x65b610
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x65b607
xor eax, eax
jmp 0x65b618
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0065b61e
pop edi
pop esi
pop ebx
ret 4
Function at 0x661689
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection_1]
cmp dword [esp + 0x10], 0
jne 0x6616b7
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue_1]
test eax, eax
je 0x6616d5
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.006615ef
jmp 0x6616d5
mov eax, dword [esi + 0x14]
test eax, eax
je 0x6616d5
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.006615ef
test edi, edi
mov eax, edi
jne 0x6616bf
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection_1]
pop esi
pop ebx
ret 8

Function at 0x430004
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x19177d70
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x56c368d1
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x401000
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x60
push 0x1164620
call fcn.0040121c
mov edi, 0x94
mov eax, edi
call fcn.004011dc
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x1164620], ecx
mov eax, dword [esi + 4]
mov dword [0x1164624], eax
mov edx, dword [esi + 8]
mov dword [0x1164628], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x116462c], esi
cmp ecx, 2
je 0x401060
or esi, 0x8000
mov dword [0x1164630], esi
shl eax, 8
add eax, edx
mov dword [0x1164620], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40109b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40109b
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4010b3
cmp eax, 0x20b
je 0x4010a0
mov dword [ebp - 0x1c], esi
jmp 0x4010c7
cmp dword [ecx + 0x84], 0xe
jbe 0x40109b
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4010c1
cmp dword [ecx + 0x74], 0xe
jbe 0x40109b
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00401224
pop ecx
test eax, eax
jne 0x4010f3
cmp dword [0x1164620], 1
jne 0x4010e0
call fcn.00401224
push 0x1c
call fcn.00401224
push 0xff
call fcn.00401224
pop ecx
pop ecx
call fcn.00401224
mov dword [ebp - 4], esi
call fcn.00401224
test eax, eax
jge 0x40110c
push 0x1b
call fcn.00401224
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1164620], eax
call fcn.00401224
mov dword [0x1164624], eax
call fcn.00401224
test eax, eax
jge 0x401132
push 8
call fcn.00401224
pop ecx
call fcn.00401224
test eax, eax
jge 0x401143
push 9
call fcn.00401224
pop ecx
push 1
call fcn.00401224
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x401159
push eax
call fcn.00401224
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00401224
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40117a
movzx eax, word [ebp - 0x40]
jmp 0x40117d
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00401228
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40119b
push edi
call fcn.00401220
call fcn.00401224
jmp 0x4011cd
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00401224
ret

Function at 0x401228
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push esi
push edi
push ebx
lea eax, [ebp - 4]
push eax
push 0x40
push 0x19a000
push section..rdata
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x401252
push 0xfcb37c
jmp 0x40125e
pop ebx
pop edi
pop esi
leave
ret 0x14
ret
Function at 0x402f89
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
push esi
push edi
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x100], 0
mov dword [ebp - 0xfc], 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x198], 0
mov dword [ebp - 0xc], 0
mov ecx, 5
mov esi, 0x456098
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x94
push 0
lea eax, [ebp - 0x194]
push eax
call fcn.00429b30
add esp, 0xc
mov word [ebp - 0x46], 0x67
mov word [ebp - 0x3e], 0x37
mov word [ebp - 0x3c], 0x32
push 0xa8
push 0
lea ecx, [ebp - 0xf4]
push ecx
call fcn.00429b30
add esp, 0xc
push 0
mov edx, dword [ebp - 0x100]
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [ebp - 0x30]
push eax
push 0x65
call fcn.00401467
add esp, 8
mov dword [ebp - 4], eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x100], eax
mov dword [ebp - 0x100], 0
cmp dword [ebp - 0x198], 0
jne 0x4030ab
mov ecx, dword [ebp - 0x2c]
movsx edx, byte [ecx]
cmp edx, 0x41
je 0x4030ab
mov eax, dword [ebp - 0x2c]
movsx ecx, byte [eax + 1]
cmp ecx, 0x42
je 0x4030ab
push 4
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 4]
push eax
call fcn.00429b90
add esp, 0xc
push 0
push 0x402f64
push 0
mov ecx, dword [ebp - 0x100]
push ecx
call dword [sym.imp.GDI32.dll_EnumObjects]
mov edx, dword [ebp - 0x30]
mov eax, dword [0x452a30]
mov dword [edx + 0x1a0], eax
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x160], 0xb1aa8a5f
mov edx, dword [ebp - 0x30]
push edx
call fcn.0040150e
add esp, 4
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x12c]
mov dword [ebp - 0x198], ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0x1a4], 1
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1a4], 0
je 0x40311a
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xfc], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x12c]
mov dword [0x4565a0], eax
mov eax, dword [ebp - 4]
jmp 0x403136
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push 0xa
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x408ed0
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push 4
push 0
xor bl, bl
call dword [sym.imp.ole32.dll_CoInitializeEx]
cmp eax, 0x80010106
je 0x408f02
test eax, eax
jns 0x408f02
mov eax, dword [ebp + 0xc]
pop ebx
mov dword [eax + 0x2022], 1
xor al, al
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x4838b8
push 1
push 0
push 0x4838a8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x408f3f
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x2022], 2
call dword [sym.imp.ole32.dll_CoUninitialize]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 0x1012]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x1016]
mov dword [ebp - 8], eax
lea eax, [esi + 0x10]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
xor edi, edi
mov dword [ebp - 0x10], eax
cmp word [esi + 0x101e], di
lea ecx, [esi + 0x101e]
je 0x408f7d
push ecx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x30]
push edx
lea edx, [ebp - 0x20]
push edx
push dword [ebp - 8]
mov ecx, dword [eax]
push edi
push dword [esi + 0x101a]
mov esi, dword [ebp - 0x10]
push dword [ebp - 0xc]
push esi
push eax
call dword [ecx + 0x28]
test eax, eax
jns 0x408fb2
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x2022], 3
jmp 0x408fd3
cmp word [ebp - 0x18], 0xffff
mov bl, 1
mov ecx, dword [ebp + 0xc]
sete al
cmp word [ebp - 0x28], 0xffff
mov byte [ecx + 0x2020], al
sete al
mov byte [ecx + 0x2021], al
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push edi
call esi
mov edx, dword [ebp - 4]
pop edi
pop esi
test edx, edx
je 0x408fee
mov ecx, dword [edx]
push edx
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b5b0
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x49b138]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push edi
push 0xf01ff
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x40b5eb
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00430365
mov esp, ebp
pop ebp
ret
push ebx
push esi
lea eax, [ebp - 0x30]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x40b701
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ecx, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
cmp ecx, 3
jne 0x40b68b
nop
mov eax, 0xcccccccd
mov ecx, 0x2710
mul dword [ebp - 0x10]
shr edx, 3
cmp edx, 0x3e8
jae 0x40b63f
mov edx, 0x3e8
jmp 0x40b648
cmp edx, 0x2710
cmova edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x30]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x40b701
cmp dword [ebp - 0x14], ebx
jbe 0x40b679
call esi
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
jmp 0x40b683
call esi
sub eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x10]
ja 0x40b701
mov ecx, dword [ebp - 0x24]
cmp ecx, 3
je 0x40b620
cmp ecx, 1
je 0x40b6ee
lea eax, [ebp - 0x28]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x40b701
call esi
cmp dword [ebp - 0x24], 1
mov ebx, eax
je 0x40b6e7
nop dword [eax + eax]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x30]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x40b701
cmp dword [ebp - 0x24], 1
je 0x40b6e7
call esi
sub eax, ebx
cmp eax, 0x7530
ja 0x40b701
cmp dword [ebp - 0x24], 1
jne 0x40b6b0
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebx
mov al, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00430365
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
xor al, al
pop esi
pop ebx
xor ecx, ebp
pop edi
call fcn.00430365
mov esp, ebp
pop ebp
ret
Function at 0x40b720
Capabilities:
Continue service
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x49b138]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x40b855
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x40b774
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00430365
mov esp, ebp
pop ebp
ret
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 0
push esi
mov dword [ebp - 0x24], 0x24
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x40b7bc
push esi
call edi
pop ebx
pop edi
mov eax, 0xfffffffe
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00430365
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x24]
call fcn.0043039d
add esp, 4
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x24]
push ecx
push dword [ebp - 0x24]
push eax
push 0
push esi
call ebx
mov ebx, eax
test ebx, ebx
jne 0x40b7f4
push esi
call edi
lea eax, [ebx - 3]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00430365
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 4]
dec eax
cmp eax, 6
ja case.0x40b807.2
movzx eax, byte [eax + 0x40b874]
jmp dword [eax*4 + 0x40b868]
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
jmp 0x40b828
lea eax, [ebp - 0x20]
push eax
push 3
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov ebx, eax
push dword [ebp - 0x28]
call fcn.004303a6
add esp, 4
push esi
call edi
xor eax, eax
mov ecx, 0xfffffffc
test ebx, ebx
pop ebx
pop edi
cmove eax, ecx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00430365
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00430365
mov esp, ebp
pop ebp
ret