joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42b830
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x734
mov eax, dword [0x4429e8]
xor eax, esp
mov dword [esp + 0x730], eax
push esi
push edi
mov edi, dword [esp + 0x744]
mov esi, dword [esp + 0x740]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push eax
push 0
push 0
lea ecx, [esp + 0x34]
push ecx
push 0
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x660]
push eax
push edi
mov dword [esp + 0x4c], esi
mov byte [esp + 0x3b], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x42b8a6
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x730]
xor ecx, esp
call fcn.0040bb66
add esp, 0x734
ret
cmp dword [esp + 0xc], 0
je 0x42b8e8
cmp dword [0x443d9c], 0
jbe 0x42b8e8
push esi
push str._n_s_n
push 4
call fcn.00420740
add esp, 0xc
cmp dword [0x443d9c], 0
jbe 0x42b8e8
push str.DATA
push str.VALUE_NAME
push str.__27s__s
push 4
call fcn.00420740
add esp, 0x10
xor esi, esi
cmp dword [esp + 0xc], esi
push ebp
jbe 0x42b9b1
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
jmp 0x42b900
mov eax, 0x100
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x140]
push edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x30]
push eax
push 0
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x350]
push edx
push esi
push edi
call ebp
test eax, eax
jne 0x42b9a7
push 0x200
push eax
lea eax, [esp + 0x444]
push eax
call fcn.0040bf90
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x44c]
push edx
push eax
push ecx
lea edx, [esp + 0x158]
push edx
call fcn.0042ae40
add esp, 0x20
cmp dword [0x443d9c], 0
jbe 0x42b998
lea eax, [esp + 0x43c]
push eax
lea ecx, [esp + 0x340]
push ecx
push str.__27s__s
push 4
call fcn.00420740
add esp, 0x10
add esi, 1
cmp esi, dword [esp + 0x10]
jb 0x42b900
jmp 0x42b9b1
call fcn.00428490
mov byte [esp + 0xf], 0
xor esi, esi
cmp dword [esp + 0x1c], esi
jbe 0x42ba6b
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea ebx, [ebx]
push 0
push 0
push 0
push 0
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x54]
push eax
push esi
push edi
mov dword [esp + 0x48], 0x100
call ebp
test eax, eax
je 0x42b9fe
call fcn.00428490
mov byte [esp + 0x13], 0
jmp 0x42ba5d
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
push 0x2001f
push 0
push 0
push 0
lea eax, [esp + 0x5c]
push eax
push edi
call ebx
test eax, eax
jne 0x42ba5d
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x40]
push ecx
push edx
lea eax, [esp + 0x248]
push 0x43b044
push eax
call fcn.0040eee7
mov ecx, dword [esp + 0x2c]
push ecx
lea edx, [esp + 0x254]
push edx
call fcn.0042b830
mov eax, dword [esp + 0x34]
add esp, 0x18
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 1
cmp esi, dword [esp + 0x20]
jb 0x42b9d0
pop ebx
mov ecx, dword [esp + 0x73c]
mov al, byte [esp + 0xf]
pop ebp
pop edi
pop esi
xor ecx, esp
call fcn.0040bb66
add esp, 0x734
ret
Function at 0x42cd60
Capabilities:
Stop service

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
sub esp, 0x1c
push esi
push 0xf01ff
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x42cd86
pop esi
add esp, 0x1c
ret 8
push edi
lea edx, [esp + 8]
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x1c
ret 8

Function at 0x42cdf0
Capabilities:
Create service

Disassembly:
mov eax, dword [esp + 0xc]
push 0
mov ecx, dword [esp + 8]
push 0
push 0
push 0
push 0
push eax
mov eax, dword [esp + 0x20]
push 1
push 3
push 1
push 0xf01ff
push eax
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
jne 0x42ce22
ret 0xc
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
ret 0xc

Function at 0x42cfd0
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x194
mov eax, dword [0x4429e8]
xor eax, esp
mov dword [esp + 0x190], eax
push esi
mov esi, dword [esp + 0x19c]
lea eax, [esp + 4]
push eax
push 1
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x42d014
push 0x80
push esi
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x42d014
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, dword [esp + 0x194]
pop esi
xor ecx, esp
call fcn.0040bb66
add esp, 0x194
ret 4
Function at 0x42d1d0
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x433c7b
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x4429e8]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
push edi
mov eax, dword [0x4429e8]
xor eax, esp
push eax
lea eax, [esp + 0x9c]
mov dword fs:[0], eax
mov esi, ecx
call fcn.004045b7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42d226
push 0x80004005
call fcn.00402d29
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
mov dword [esp + 0xa8], 0
call fcn.0042cfd0
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push str._s_rootCIMV2
push eax
call fcn.00408c5f
mov edi, dword [esp + 0x1c]
add esp, 0xc
cmp dword [edi - 0xc], 0
jne 0x42d2a7
push str.ERROR:_Unable_to_acquire_host_name_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [edi - 0x10]
mov dword [esp + 0xa4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42d2a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x42d34d
mov ecx, esi
call fcn.0042d030
push ecx
add edi, 0xfffffff0
mov dword [esp + 0x18], esp
mov ebx, esp
push edi
call fcn.00403a04
add eax, 0x10
mov dword [ebx], eax
add esp, 4
lea ebx, [esi + 8]
add esi, 4
push ebx
push esi
call fcn.0042e1e0
add esp, 0xc
test eax, eax
jge 0x42d319
push str.ERROR:_connect_to_WMI_failed__n
mov dword [esi], 0
mov dword [ebx], 0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [esp + 0xa4], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42d315
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
xor eax, eax
jmp 0x42d34d
push str.Connected_to_WMI_successfully_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [esp + 0xa4], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42d348
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov eax, 1
mov ecx, dword [esp + 0x9c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.0040bb66
add esp, 0x98
ret
Function at 0x42e1e0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push 0xffffffffffffffff
push 0x433e20
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4429e8]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x28]
test ebp, ebp
mov dword [esp + 0x1c], 0
je 0x42e33b
mov esi, dword [esp + 0x24]
test esi, esi
je 0x42e33b
push esi
push 0x43bf7c
push 1
push 0
push 0x43c04c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
test edi, edi
jge 0x42e27d
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42e267
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov ecx, dword [esp + 0x2c]
push ecx
lea ecx, [esp + 0x2c]
call fcn.0042e0e0
mov eax, dword [esi]
mov ebx, dword [esp + 0x28]
mov edx, dword [eax]
push ebp
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push eax
mov eax, dword [edx + 0xc]
mov byte [esp + 0x40], 1
call eax
mov edi, eax
test edi, edi
jge 0x42e2e2
mov esi, dword [esi]
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
push esi
call edx
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [esp + 0x2c]
call fcn.004030a6
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [ebp]
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov edi, eax
test edi, edi
jge 0x42e2bc
mov esi, dword [esi]
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
push esi
call edx
mov eax, dword [ebp]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [esp + 0x2c]
call fcn.004030a6
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42e363
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x80070057
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x42f14a
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4429e8]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0042f0df
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0040bf90
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x42f199
cmp dword [ebp - 0x1c], 5
jb 0x42f1b1
jmp 0x42f1ad
cmp dword [ebp - 0x10], 1
jne 0x42f1b1
cmp dword [ebp - 0x1c], 4
ja 0x42f1ad
jne 0x42f1b1
cmp dword [ebp - 0x18], 0
jbe 0x42f1b1
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x43bf0c
call fcn.0042efd0
test eax, eax
jge 0x42f1d2
mov byte [0x449cc0], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040bb66
add ebp, 0x78
leave
ret
Function at 0x401000
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41518f
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x41c024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x84], ebx
mov dword [0x41df40], ebx
xor esi, esi
mov dword [ebp - 4], esi
lea edi, [ebx + 0x38]
lea eax, [edi + 4]
mov dword [ebx], str.fmyy4
mov dword [ebx + 4], 0x418308
mov dword [ebx + 8], str.YySRV.exe
mov dword [ebx + 0xc], 0x418320
mov dword [ebx + 0x10], str.PlayerUpdate.exe
mov byte [ebx + 0x14], 0
mov dword [ebx + 0x30], 0xa
mov word [ebx + 0x34], si
mov byte [ebx + 0x36], 0
mov dword [edi], eax
mov byte [eax], 0
lea ecx, [ebx + 0x80]
lea eax, [ecx + 4]
mov dword [ebx + 0x7c], esi
mov dword [ebp - 0x6c], ecx
mov dword [ecx], eax
mov byte [eax], 0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x20]
push eax
mov dword [ebx + 0xc4], 0x1010101
mov dword [ebx + 0xc8], esi
mov dword [ebx + 0xcc], esi
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x16]
movzx edx, word [ebp - 0x18]
movzx eax, word [ebp - 0x1a]
push ecx
movzx ecx, word [ebp - 0x1e]
push edx
movzx edx, word [ebp - 0x20]
push eax
push ecx
push edx
push str.__d_02d_02d_02d_02d
call fcn.00403380
add esp, 0x18
push ebx
call fcn.00401170
push 0xa0
call fcn.00408e3c
add esp, 4
mov dword [ebp - 0x80], eax
mov byte [ebp - 4], 3
cmp eax, esi
je 0x401102
push eax
call fcn.004036d0
jmp 0x401104
xor eax, eax
lea esi, [ebp - 0x68]
mov dword [ebx + 0x7c], eax
call fcn.00401600
mov esi, dword [ebp - 0x6c]
call fcn.00402f50
mov eax, dword [ebp - 0x68]
lea ecx, [ebp - 0x64]
cmp eax, ecx
je 0x40112a
push eax
call fcn.004093d1
add esp, 4
xor eax, eax
push eax
lea edx, [ebp - 0x7c]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
push edx
lea eax, [ebx + 0x18]
push eax
mov dword [ebp - 0x7c], 1
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00408bbe
mov esp, ebp
pop ebp
ret
Function at 0x401440
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4150eb
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x41c024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x15c], edi
lea eax, [ebp - 0x154]
mov esi, ecx
mov dword [ebp - 0x158], eax
mov byte [ebp - 0x154], 0
push 0x104
lea ecx, [ebp - 0x114]
push ecx
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x401568
lea edx, [ebp - 0x164]
push edx
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov dword [ebp - 0x160], eax
cmp eax, edi
jle 0x401568
push eax
call fcn.00408bb3
mov ecx, dword [ebp - 0x160]
mov edx, dword [ebp - 0x164]
add esp, 4
mov ebx, eax
push ebx
push ecx
push edx
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x40155f
lea ecx, [ebp - 0x160]
push ecx
lea edx, [ebp - 0x15c]
push edx
push 0x418384
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x40155f
mov eax, dword [ebp - 0x15c]
movzx ecx, word [eax + 0xc]
movzx edx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
push edx
movzx edx, word [eax + 0xa]
push ecx
push edx
push str._d._d._d._d
lea edi, [ebp - 0x158]
call fcn.00403380
push ebx
call fcn.00408de0
add esp, 0x18
mov eax, edi
push eax
call fcn.00402d20
mov eax, dword [ebp - 0x158]
lea ecx, [ebp - 0x154]
cmp eax, ecx
jmp 0x4015cd
push ebx
call fcn.00408de0
add esp, 4
lea eax, [esi + 4]
mov dword [esi], eax
mov byte [eax], 0
mov eax, dword [ebp - 0x158]
mov ebx, eax
cmp eax, edi
jne 0x401581
mov ebx, 0x418416
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401586
sub eax, edx
mov edi, eax
cmp edi, 0x3f
jl 0x4015ac
lea edx, [edi + 1]
push edx
push 0
mov dword [esi], 0
call fcn.004096a1
add esp, 8
mov dword [esi], eax
mov eax, dword [esi]
push edi
push ebx
push eax
call fcn.004093b7
mov ecx, dword [esi]
mov byte [edi + ecx], 0
mov eax, dword [ebp - 0x158]
lea edx, [ebp - 0x154]
add esp, 0xc
cmp eax, edx
je 0x4015d8
push eax
call fcn.004093d1
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00408bbe
mov esp, ebp
pop ebp
ret
Function at 0x401600
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x41c024]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.0040d570
add esp, 0xc
lea ecx, [ebp - 0x10c]
push ecx
push 0x26
push 0
mov dword [ebp - 0x10c], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x401670
mov eax, dword [ebp - 0x10c]
lea edx, [ebp - 0x108]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov ecx, dword [ebp - 0x10c]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [esi + 4]
mov dword [esi], eax
mov byte [eax], 0
lea eax, [ebp - 0x108]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401681
sub eax, edx
push edi
mov edi, eax
cmp edi, 0x3f
jl 0x4016a8
lea edx, [edi + 1]
push edx
push 0
mov dword [esi], 0
call fcn.004096a1
add esp, 8
mov dword [esi], eax
mov eax, dword [esi]
push edi
lea ecx, [ebp - 0x108]
push ecx
push eax
call fcn.004093b7
mov edx, dword [esi]
add esp, 0xc
push 0x418384
mov eax, esi
mov byte [edi + edx], 0
call fcn.00402db0
cmp byte [ebx + 0x14], 0
pop edi
mov eax, esi
je 0x4016e8
push str.fmyy4
call fcn.00402db0
mov eax, dword [ebx + 0x38]
push eax
mov eax, esi
jmp 0x4016ed
push str.YYFM
call fcn.00402db0
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.00408bbe
mov esp, ebp
pop ebp
ret
Function at 0x402220
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2114
call fcn.00410690
mov eax, dword [0x41c024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x110c]
push ecx
push 0x1000
lea edx, [ebp - 0x1108]
push edx
mov dword [ebp - 0x1110], eax
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
jne 0x40226d
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408bbe
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x110c]
push ebx
push esi
push edi
shr eax, 2
xor edi, edi
test eax, eax
jle 0x4022f4
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [ebp + edi*4 - 0x1108]
push ecx
push 0
push 0x410
call ebx
lea edx, [ebp - 0x1114]
push edx
mov esi, eax
push 0x1000
lea eax, [ebp - 0x2114]
push eax
push esi
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
mov edx, dword [ebp - 0x2114]
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push edx
push esi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
mov eax, dword [ebp - 0x1110]
push eax
lea ecx, [ebp - 0x108]
push ecx
call fcn.00408c40
add esp, 8
test eax, eax
jne 0x402309
mov edx, dword [ebp - 0x110c]
inc edi
shr edx, 2
cmp edi, edx
jl 0x402285
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408bbe
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + edi*4 - 0x1108]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408bbe
mov esp, ebp
pop ebp
ret 4

Function at 0x402330
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x41c024]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x402376
lea ecx, [ebp - 0x20]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x402386
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408bbe
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
push 0
push 0
push 0x10
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
push 0
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x4023d4
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408bbe
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.00408bbe
mov esp, ebp
pop ebp
ret
Function at 0x402af0
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x41c024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x424], edx
call fcn.00410c26
add esp, 8
lea ecx, [ebp - 0x418]
push ecx
push 0x4162fc
push 1
push 0
push 0x41630c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x402c59
mov eax, dword [ebp - 0x418]
mov edx, dword [eax]
mov edx, dword [edx]
lea ecx, [ebp - 0x41c]
push ecx
push 0x41631c
push eax
call edx
test eax, eax
js 0x402c4b
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
test ebx, ebx
jne 0x402b8f
mov edx, dword [0x41d1f0]
push edx
push eax
mov eax, dword [ecx + 0x50]
call eax
jmp 0x402b96
mov edx, dword [ecx + 0x50]
push ebx
push eax
call edx
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
test esi, esi
je 0x402bab
mov edx, dword [ecx + 0x24]
push esi
push eax
call edx
jmp 0x402bb8
lea edx, [ebp - 0x20c]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
test edi, edi
je 0x402bcd
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x44]
push 0
push edi
push eax
call edx
mov ecx, dword [ebp - 0x424]
test ecx, ecx
je 0x402be6
mov eax, dword [ebp - 0x418]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x1c]
call eax
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x3c]
push 1
push eax
call edx
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x402c21
push eax
mov eax, dword [ebp - 0x420]
push eax
lea ecx, [ebp - 0x108]
push str._s_s
push ecx
call fcn.00408ebc
add esp, 0x10
jmp 0x402cab
push 0x5c
test ebx, ebx
je 0x402c2a
push ebx
jmp 0x402c31
mov edx, dword [0x41d1f0]
push edx
call fcn.00409230
add esp, 8
test eax, eax
jne 0x402c6c
mov eax, dword [ebp - 0x41c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408bbe
mov esp, ebp
pop ebp
ret 8
push eax
mov eax, dword [ebp - 0x420]
push eax
lea ecx, [ebp - 0x108]
push str._s_s
push ecx
call fcn.00408ebc
lea eax, [ebp - 0x108]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402c91
sub eax, edx
lea eax, [ebp + eax - 0x108]
mov word [eax - 3], 0x6e6c
mov byte [eax - 1], 0x6b
push 0x104
lea edx, [ebp - 0x414]
push edx
push 0xffffffffffffffff
lea eax, [ebp - 0x108]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x41c]
mov ecx, dword [eax]
push 1
lea edx, [ebp - 0x414]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov esi, eax
mov eax, dword [ebp - 0x41c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [ebp - 4]
xor eax, eax
test esi, esi
setns al
xor ecx, ebp
pop esi
call fcn.00408bbe
mov esp, ebp
pop ebp
ret 8