joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45dc88
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 0x45de33
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45de14
mov dl, 1
mov eax, dword [0x41492c]
call fcn.00403b24
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004048c0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45de03
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.0044b214
test al, al
je 0x45ddf6
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, 0x45de44
lea eax, [ebp - 0x254]
call fcn.00409e10
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45ddf6
xor eax, eax
push ebp
push 0x45ddef
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 0x45de7c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45ddd8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404b28
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 0x45ddd8
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404b28
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ddf6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45dcf9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00418c48
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 0x45de3a
lea eax, [ebp - 0x260]
call fcn.004048c0
ret

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

Disassembly:
push ecx
mov eax, dword [0x4aac2c]
cmp byte [eax + 0xa5], 0
jne 0x45e821
cmp dword [0x4aac44], 0
jne 0x45e7e2
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45e76c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4aac44], eax
cmp dword [0x4aac40], 0
jne 0x45e7fd
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4aac40], eax
cmp dword [0x4aac48], 0
jne 0x45e821
push esp
push 0
push 0
push 0x45e710
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4aac48], eax
pop edx
ret
Function at 0x45e918
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45e92f
add esp, 0xfffffff0
call fcn.00403eb8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041e644
mov eax, dword [0x4a99b8]
cmp word [eax + 2], 0
jne 0x45e957
mov eax, dword [0x4a99b8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045ff64
mov eax, dword [0x4a9a54]
cmp word [eax + 2], 0
jne 0x45e971
mov eax, dword [0x4a9a54]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046015c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41443c]
call fcn.00403b24
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41443c]
call fcn.00403b24
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0x80000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x420b0c]
call fcn.004282ac
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x45eaf8
mov eax, dword [0x4a98c0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042867c
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4606dc
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4a98c0]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040d5c8
test eax, eax
je 0x45ea66
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409730
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d5f0
test eax, eax
je 0x45ea7a
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404b28
mov eax, dword [0x4a977c]
cmp byte [eax], 0
jne 0x45eaae
mov eax, ebx
call fcn.0045ec20
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.004608b8
mov eax, ebx
call fcn.004611f8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45eaee
call fcn.00403f10
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45ee94
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4aac2c]
cmp dword [eax + 0x30], 0
je 0x45ef3e
cmp dword [ebx + 0x94], 0
jne 0x45ef38
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45ee24
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45ef38
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 0x45eefe
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45ef38
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.00416b60
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45ef0d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45fa1c
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 0x45fa51
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.004049b0
jmp 0x45fa5e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404914
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x460a94
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x460ad5
mov eax, esi
call fcn.00446908
test al, al
je 0x460ad5
mov eax, dword [ebx + 0x84]
call fcn.00446604
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x460ad5
push 0
mov eax, dword [ebx + 0x84]
call fcn.00446604
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x462340
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
je 0x46235c
push esi
mov esi, edx
mov edx, eax
lodsb al, byte [esi]
xor edx, eax
shr eax, 8
shl edx, 2
xor eax, dword [edx + 0x4a6e90]
dec ecx
jne 0x462347
pop esi
ret

Function at 0x462a94
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404d70
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x462aec
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4a9be4]
mov dl, 1
mov eax, dword [0x4625a0]
call fcn.0040c968
call fcn.00404320
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00462714
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x465c1c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x465c4a
mov eax, ebx
call fcn.004666d4
cmp dword [ebx + 0x3c], 0
je 0x465c43
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x465cbb
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x465cad
cmp dword [ebx + 8], 0
je 0x465c6c
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x465c7e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x465cad
cmp dword [ebx + 8], 0
je 0x465c5f
cmp eax, 3
je 0x465c91
dec eax
jne 0x465c5f
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x465c5f
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x465c5f
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x465cd9
cmp dword [ebx + 0x10], 0xcc
je 0x465cd9
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00465ce4
pop ebx
ret

Function at 0x484b68
Capabilities:
Connect network resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 0x228], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404d60
xor eax, eax
push ebp
push 0x484c93
push dword fs:[eax]
mov dword fs:[eax], esp
or esi, 0xffffffff
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00484a50
test al, al
je 0x484c6d
lea eax, [ebp - 0x24]
xor ecx, ecx
mov edx, 0x20
call fcn.00403254
xor eax, eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x124]
xor edx, edx
call fcn.0040978c
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x228]
mov ecx, 0x484cac
mov edx, dword [ebp - 4]
call fcn.00404bc4
mov edx, dword [ebp - 0x228]
lea eax, [ebp - 0x224]
call fcn.0040978c
mov dword [ebp - 0x10], eax
push 0
mov esi, dword [ebx + 0x44]
mov eax, dword [esi + 4]
call fcn.00404d70
push eax
mov eax, dword [esi + 8]
call fcn.00404d70
push eax
lea eax, [ebp - 0x24]
push eax
call sub.mpr.dll_WNetAddConnection2A
cmp eax, 0x4c3
jne 0x484c6b
push 0
push 0
lea eax, [ebp - 0x22c]
mov ecx, 0x484cac
mov edx, dword [ebp - 4]
call fcn.00404bc4
mov eax, dword [ebp - 0x22c]
call fcn.00404d70
push eax
call sub.mpr.dll_WNetCancelConnection2A
push 0
mov esi, dword [ebx + 0x44]
mov eax, dword [esi + 4]
call fcn.00404d70
push eax
mov eax, dword [esi + 8]
call fcn.00404d70
push eax
lea eax, [ebp - 0x24]
push eax
call sub.mpr.dll_WNetAddConnection2A
mov esi, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x484c9a
lea eax, [ebp - 0x22c]
mov edx, 2
call fcn.004048e4
lea eax, [ebp - 4]
call fcn.004048c0
ret
Function at 0x484e3c
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, edx
mov dword [esp], pe_nt_image_headers32
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
jne 0x484e60
call fcn.0047b8b4
mov eax, ebx
lea edx, [esp + 4]
mov ecx, pe_nt_image_headers32
call fcn.00404b28
add esp, 0x104
pop ebx
ret

Function at 0x485520
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d60
xor eax, eax
push ebp
push 0x48565a
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
call sub.kernel32.dll_GetCurrentProcess
mov ebx, eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 4]
call fcn.00484548
push eax
push 0
call fcn.00481b90
test eax, eax
je 0x485644
lea eax, [ebp - 0xc]
push eax
push 0x20008
push ebx
call sub.advapi32.dll_OpenProcessToken_1
test eax, eax
jne 0x485581
call fcn.0047b8b4
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 0x14]
push eax
push 3
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_GetTokenInformation
mov eax, dword [ebp - 0x10]
call fcn.00402744
mov dword [ebp - 0x14], eax
xor edx, edx
push ebp
push 0x48563d
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 3
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
jne 0x4855db
call fcn.004043cc
jmp 0x485644
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
test eax, eax
jbe 0x48561e
mov esi, eax
dec esi
test esi, esi
jb 0x48561e
inc esi
xor ebx, ebx
lea edi, [ebx + ebx*2]
mov eax, dword [ebp - 0x14]
lea edx, [eax + edi*4 + 4]
lea eax, [ebp - 0x20]
mov ecx, 8
call fcn.00409834
test eax, eax
jne 0x48561a
mov eax, dword [ebp - 0x14]
test dword [eax + edi*4 + 0xc], 2
seta byte [ebp - 5]
jmp 0x48561e
inc ebx
dec esi
jne 0x4855ee
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x485644
mov eax, dword [ebp - 0x14]
call fcn.00402764
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x485661
lea eax, [ebp - 4]
call fcn.004048c0
ret
Function at 0x48566c
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d60
xor eax, eax
push ebp
push 0x485851
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 6], 0
mov byte [ebp - 0x21], 0
call sub.kernel32.dll_GetCurrentProcess
mov ebx, eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 4]
call fcn.00484548
push eax
push 0
call fcn.00481b90
test eax, eax
je 0x48583b
lea eax, [ebp - 0xc]
push eax
push 0x400e8
push ebx
call sub.advapi32.dll_OpenProcessToken_1
test eax, eax
jne 0x4856d4
call fcn.0047b8b4
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 0x18]
push eax
push 3
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_GetTokenInformation
mov edi, dword [ebp - 0x10]
add edi, 0xc
mov eax, edi
call fcn.00402744
mov dword [ebp - 0x18], eax
mov eax, edi
call fcn.00402744
mov dword [ebp - 0x14], eax
xor edx, edx
push ebp
push 0x485834
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 3
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
jne 0x485740
call fcn.004043cc
jmp 0x48583b
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
test eax, eax
jbe 0x48579a
mov esi, eax
dec esi
test esi, esi
jb 0x48579a
inc esi
xor ebx, ebx
lea eax, [ebx + ebx*2]
mov edx, dword [ebp - 0x18]
lea edx, [edx + eax*4 + 4]
lea eax, [ebp - 0x20]
mov ecx, 8
call fcn.00409834
test eax, eax
jne 0x485796
cmp byte [ebp - 5], 0
je 0x485784
lea eax, [ebx + ebx*2]
mov edx, dword [ebp - 0x18]
mov dword [edx + eax*4 + 0xc], 2
jmp 0x485790
lea eax, [ebx + ebx*2]
mov edx, dword [ebp - 0x18]
xor ecx, ecx
mov dword [edx + eax*4 + 0xc], ecx
mov byte [ebp - 0x21], 1
jmp 0x48579a
inc ebx
dec esi
jne 0x485753
mov al, byte [ebp - 0x21]
xor al, 1
and al, byte [ebp - 5]
je 0x4857e6
mov eax, dword [ebp - 0x18]
inc dword [eax]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
lea eax, [eax + eax*2]
mov edx, dword [ebp - 0x18]
lea eax, [edx + eax*4 - 8]
push eax
lea eax, [ebp - 4]
call fcn.00484548
push eax
push 0
call fcn.00481b90
test eax, eax
jne 0x4857d4
call fcn.004043cc
jmp 0x48583b
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
lea eax, [eax + eax*2]
mov edx, dword [ebp - 0x18]
mov dword [edx + eax*4], 2
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
push edi
mov eax, dword [ebp - 0x18]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
call fcn.0047af9c
test eax, eax
jne 0x485809
call fcn.004043cc
jmp 0x48583b
mov byte [ebp - 6], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48583b
mov eax, dword [ebp - 0x14]
call fcn.00402764
mov eax, dword [ebp - 0x18]
call fcn.00402764
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x485858
lea eax, [ebp - 4]
call fcn.004048c0
ret
Function at 0x48599c
Capabilities:
Get session user name

Disassembly:
push ebx
add esp, 0xffffff7c
mov ebx, eax
mov dword [esp], 0x80
push esp
lea eax, [esp + 8]
push eax
call sub.advapi32.dll_GetUserNameA
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x80
call fcn.00404b28
add esp, 0x84
pop ebx
ret

Function at 0x486a3c
Capabilities:
Stop service

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe4
mov esi, eax
push 1
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
test ebx, ebx
jne 0x486a5e
call sub.kernel32.dll_GetLastError_1
mov edi, eax
jmp 0x486a98
push 0x20
push esi
push ebx
call sub.advapi32.dll_OpenServiceA
mov esi, eax
test esi, esi
je 0x486a8b
xor edi, edi
push esp
push 1
push esi
call sub.advapi32.dll_ControlService
test eax, eax
jne 0x486a83
call sub.kernel32.dll_GetLastError_1
mov edi, eax
push esi
call sub.advapi32.dll_CloseServiceHandle
jmp 0x486a92
call sub.kernel32.dll_GetLastError_1
mov edi, eax
push ebx
call sub.advapi32.dll_CloseServiceHandle
mov eax, edi
add esp, 0x1c
pop edi
pop esi
pop ebx
ret
Function at 0x48d3a4
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x48d5ca
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.00489a24
test al, al
jne 0x48d5af
xor eax, eax
push ebp
push 0x48d58b
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 3
mov eax, dword [ebp - 4]
call fcn.0048d0f8
mov edx, dword [ebp - 4]
mov byte [edx + 9], al
mov edx, 0xc
mov eax, dword [ebp - 4]
call fcn.0048d0cc
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], eax
lea ecx, [ebp - 8]
mov edx, 0xd
mov eax, dword [ebp - 4]
call fcn.0048d094
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
add eax, 0x10
call fcn.00404914
lea ecx, [ebp - 0xc]
mov edx, 0x10
mov eax, dword [ebp - 4]
call fcn.0048d094
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
add eax, 0x14
call fcn.00404914
lea ecx, [ebp - 0x10]
mov edx, 0x11
mov eax, dword [ebp - 4]
call fcn.0048d094
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
add eax, 0x18
call fcn.00404914
mov edx, 2
mov eax, dword [ebp - 4]
call fcn.0048d0f8
mov edx, dword [ebp - 4]
mov byte [edx + 0x1c], al
lea ecx, [ebp - 0x14]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0048d094
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
add eax, 0x20
call fcn.00404914
mov edx, 9
mov eax, dword [ebp - 4]
call fcn.0048d0f8
mov edx, dword [ebp - 4]
mov byte [edx + 0x24], al
mov edx, 7
mov eax, dword [ebp - 4]
call fcn.0048d0f8
mov edx, dword [ebp - 4]
mov byte [edx + 0x25], al
mov edx, 8
mov eax, dword [ebp - 4]
call fcn.0048d0f8
mov edx, dword [ebp - 4]
mov byte [edx + 0x26], al
lea ecx, [ebp - 0x18]
mov edx, 0xf
mov eax, dword [ebp - 4]
call fcn.0048d094
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
add eax, 0x28
call fcn.00404914
mov edx, 0xb
mov eax, dword [ebp - 4]
call fcn.0048d0cc
mov edx, dword [ebp - 4]
mov dword [edx + 0x2c], eax
mov edx, 0xe
mov eax, dword [ebp - 4]
call fcn.0048d0cc
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
mov edx, 0xa
mov eax, dword [ebp - 4]
call fcn.0048d0cc
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov edx, 4
mov eax, dword [ebp - 4]
call fcn.0048d0cc
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], eax
mov edx, 5
mov eax, dword [ebp - 4]
call fcn.0048d0cc
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov edx, 6
mov eax, dword [ebp - 4]
call fcn.0048d0cc
mov edx, dword [ebp - 4]
mov dword [edx + 0x40], eax
lea ecx, [ebp - 0x1c]
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0048d094
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
add eax, 0x44
call fcn.00404914
mov eax, dword [ebp - 4]
mov byte [eax + 8], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x48d5af
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48d5d1
lea eax, [ebp - 0x1c]
mov edx, 6
call fcn.004048e4
ret
Function at 0x48e750
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x40]
xor ecx, ecx
mov edx, 0x3c
call fcn.00403254
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x40
mov eax, dword [0x4a9a40]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x38], eax
mov eax, ebx
call fcn.00404d70
mov dword [ebp - 0x30], eax
mov eax, esi
call fcn.00404d70
mov dword [ebp - 0x2c], eax
mov eax, edi
call fcn.00404d70
mov dword [ebp - 0x28], eax
xor eax, eax
mov al, byte [ebp + 8]
mov eax, dword [eax*4 + 0x4a7c7c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x40]
push eax
call sub.shell32.dll_ShellExecuteExA
test eax, eax
je 0x48e7fa
mov eax, dword [0x4a9a40]
mov eax, dword [eax]
call fcn.0045fcb8
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetExitCodeProcess
cmp dword [ebp - 4], 0x103
jne 0x48e7f5
mov eax, dword [0x4a9a40]
mov eax, dword [eax]
cmp byte [eax + 0x9c], 0
je 0x48e7c3
mov eax, dword [ebp - 4]
jmp 0x48e7fd
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4