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

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x490d48]
cmp dword [eax + 0x30], 0
je 0x45afd2
cmp dword [ebx + 0x94], 0
jne 0x45afcc
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45aeb8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45afcc
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 0x45af92
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45afcc
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.00418114
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45afa1
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45bb34
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 0x45bb69
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.00404884
jmp 0x45bb76
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004047e8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45ca6c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45caad
mov eax, esi
call fcn.00443278
test al, al
je 0x45caad
mov eax, dword [ebx + 0x84]
call fcn.00442f74
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45caad
push 0
mov eax, dword [ebx + 0x84]
call fcn.00442f74
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x465ec0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x465eee
mov eax, ebx
call fcn.00466974
cmp dword [ebx + 0x40], 0
je 0x465ee7
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x465f5f
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x465f51
cmp dword [ebx + 8], 0
je 0x465f10
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x465f22
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x465f51
cmp dword [ebx + 8], 0
je 0x465f03
cmp eax, 3
je 0x465f35
dec eax
jne 0x465f03
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 0x465f03
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x465f03
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x465f7d
cmp dword [ebx + 0x14], 0xcc
je 0x465f7d
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00465f88
pop ebx
ret
Function at 0x4857dc
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
mov esi, eax
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
jmp 0x4857fc
mov eax, dword [0x48cf88]
mov eax, dword [eax]
call fcn.0045bde4
push 1
call sub.kernel32.dll_Sleep_2
call sub.kernel32.dll_GetTickCount_1
sub eax, ebx
cmp esi, eax
ja 0x4857e9
pop esi
pop ebx
ret

Function at 0x48580c
Capabilities:
Get disk information

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov edi, eax
xor esi, esi
mov eax, 4
call fcn.00402c90
mov ebx, eax
push 0
push 0
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
push ebx
push pe_nt_image_headers32
lea eax, [esp + 0x20]
push eax
push edi
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x48584a
mov esi, dword [ebx]
mov edx, 4
mov eax, ebx
call fcn.00402cac
mov eax, esi
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x48597c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x485a7f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404794
xor edx, edx
push ebp
push 0x485a47
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x24]
push eax
call sub.kernel32.dll_GetSystemInfo
test ebx, ebx
jne 0x485a0a
mov eax, dword [ebp - 0xc]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x28]
call fcn.00408c74
push dword [ebp - 0x28]
push 0x485a98
lea edx, [ebp - 0x2c]
movzx eax, word [ebp - 4]
call fcn.00408b88
push dword [ebp - 0x2c]
push 0x485a98
lea edx, [ebp - 0x30]
movzx eax, word [ebp - 2]
call fcn.00408b88
push dword [ebp - 0x30]
mov eax, esi
mov edx, 5
call fcn.00404b14
cmp ebx, 1
jne 0x485a1d
mov eax, dword [ebp - 0xc]
xor edx, edx
push edx
push eax
mov eax, esi
call fcn.00408c74
cmp ebx, 2
jne 0x485a2d
mov edx, esi
movzx eax, word [ebp - 4]
call fcn.00408b88
cmp ebx, 3
jne 0x485a3d
mov edx, esi
movzx eax, word [ebp - 2]
call fcn.00408b88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x485a64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x485a86
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.004047b8
ret
Function at 0x485e60
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov byte [ebp - 2], cl
mov byte [ebp - 1], dl
mov ebx, eax
mov eax, 0x40
call fcn.00402c90
mov dword [ebp - 8], eax
mov edx, 0x40
mov eax, dword [ebp - 8]
call fcn.00407460
xor eax, eax
push ebp
push 0x485ee5
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebp - 8]
mov byte [esi + 0x30], bl
mov al, byte [ebp + 8]
mov byte [esi + 2], al
mov al, byte [ebp - 1]
mov byte [esi + 0xa], al
mov byte [esi + 0xb], 0
mov al, byte [ebp - 2]
mov byte [esi + 0xc], al
mov byte [esi + 0xd], 0
mov byte [esi], 0x32
mov eax, dword [ebp - 8]
push eax
call sub.netapi32.dll_Netbios
mov al, byte [esi + 0x31]
mov byte [ebp - 3], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x485eec
mov edx, 0x40
mov eax, dword [ebp - 8]
call fcn.00402cac
ret
Function at 0x4a14f4
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a15cd
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4a15e8
push ebx
push 0x4a15f8
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.0040a768
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.004077c0
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040a494
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x4a1576
mov ax, 0x83
call fcn.004a1118
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle
call fcn.004a14c8
push 0x1cff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x4a157f
call fcn.004a14c8
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a15d4
lea eax, [ebp - 4]
call fcn.00409a3c
pop eax
jmp eax

Function at 0x4a16e8
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4a17b1
jmp 0x4a17a5
cmp dword [esi + 0x10], 0x1000
jne 0x4a1793
test byte [esi + 0x15], 1
jne 0x4a1793
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4a1744
cmp ebp, 2
je 0x4a1744
cmp ebp, 0x10
je 0x4a1744
cmp ebp, 0x20
jne 0x4a1760
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4a1760
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4a1771
mov eax, dword [esi]
add eax, ebx
call fcn.004a16e0
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4a1764
cmp byte [esp + 4], 0
je 0x4a1793
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov edi, dword [esi]
add edi, dword [esi + 0xc]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4a17b1
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4a1719
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x1179f1
Capabilities:
Parse pe header

Disassembly:
mov al, 0x2e
cmp eax, 0xfb7cf4ec
jmp 0xd2a9a
Function at 0x401000
Capabilities:
Shutdown system

Disassembly:
push esi
push 0x40d050
call fcn.00401c60
add esp, 4
test al, al
jne 0x401014
pop esi
ret
mov eax, dword [esp + 8]
test al, 2
je 0x401032
mov ecx, dword [esp + 0xc]
and eax, 0x40
or al, 0x20
push ecx
shr eax, 4
push eax
call dword [sym.imp.USER32.dll_ExitWindowsEx]
pop esi
ret
test al, 0x10
je 0x40104c
mov edx, dword [esp + 0xc]
and eax, 0x40
or al, 0x80
push edx
shr eax, 4
push eax
call dword [sym.imp.USER32.dll_ExitWindowsEx]
pop esi
ret
mov esi, eax
and esi, 0x80
jne 0x401071
test ah, 1
jne 0x401071
mov ecx, dword [esp + 0xc]
and eax, 0x40
or al, 0x10
push ecx
shr eax, 4
push eax
call dword [sym.imp.USER32.dll_ExitWindowsEx]
pop esi
ret
push 0x40d040
push 0x40d030
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x4106a8], eax
jne 0x401095
xor al, al
pop esi
ret
push 0
push 1
push esi
call eax
pop esi
ret

Function at 0x4010a0
Capabilities:
Create service

Disassembly:
mov cl, byte [esp + 0x14]
mov eax, 0x10
test cl, cl
je 0x4010b2
mov eax, 0x110
mov ecx, dword [esp + 0x10]
push 0
mov edx, dword [esp + 0xc]
push 0
push 0
push 0
push 0
push ecx
mov ecx, dword [esp + 0x1c]
push 0
push 3
push eax
mov eax, dword [esp + 0x30]
push 0xf01ff
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
jne 0x4010f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
cmp eax, 0x431
sete dl
mov eax, edx
ret
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
ret

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

Disassembly:
sub esp, 0x1c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebp
call ebx
mov ebp, eax
mov eax, dword [0x40f7f4]
test eax, eax
je 0x40112f
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push 0xf01ff
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
test eax, eax
mov dword [0x40f7f4], eax
jne 0x401153
pop ebp
pop ebx
add esp, 0x1c
ret
push esi
push edi
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x401171
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x4011bb
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, 1
mov eax, dword [0x40f7f4]
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4011bb
mov eax, dword [esp + 0x14]
cmp eax, 4
je 0x4011bd
cmp eax, 1
je 0x4011bb
call ebx
sub eax, ebp
cmp eax, 0xea60
ja 0x4011b0
push 0x64
call esi
jmp 0x40117c
push 0x41d
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x40f7f4]
mov esi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
mov dword [0x40f7f4], 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x4011f0
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
sub esp, 0x1c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebp
push esi
call ebx
mov ecx, dword [esp + 0x2c]
mov ebp, eax
mov eax, dword [esp + 0x30]
push 0xf01ff
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x401222
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
lea edx, [esp + 0xc]
push edi
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, eax
test edi, edi
je 0x401266
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x401264
cmp dword [esp + 0x14], 1
je 0x401266
call ebx
sub eax, ebp
cmp eax, 0xea60
jbe 0x401237
push 0x41d
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret

Function at 0x4013b0
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
xor esi, esi
push edi
cmp ebx, 0x834
mov edi, 0x1300
jb 0x4013e8
cmp ebx, 0xbb7
ja 0x4013e8
push 2
push esi
push str.netmsg.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov esi, eax
test esi, esi
je 0x4013e8
mov edi, 0x1b00
push 0
lea eax, [esp + 0x18]
push 0
push eax
push 0x400
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
je 0x40142a
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0xc]
push 0
push ecx
push eax
push edx
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
je 0x401435
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x401460
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push str.BINRES
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x401481
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x40d0c4
push ecx
mov edi, eax
call fcn.00403827
mov esi, eax
add esp, 8
test esi, esi
jne 0x4014be
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.004036bd
push esi
call fcn.00403640
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x401520
Capabilities:
Connect network resource

Disassembly:
sub esp, 0x128
push esi
mov esi, dword [esp + 0x134]
mov byte [esp + 7], 0
cmp byte [esi], 0
jne 0x401542
xor al, al
pop esi
add esp, 0x128
ret
mov eax, dword [esp + 0x130]
push edi
push eax
lea ecx, [esp + 0x30]
push str._sIPC_
push ecx
call fcn.00403452
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x18]
add esp, 0xc
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x13c]
lea edx, [esp + 0xb]
mov dword [esp + 0x1c], edx
push 0
mov dword [esp + 0x14], eax
push esi
lea edx, [esp + 0x14]
lea eax, [esp + 0x34]
push ecx
push edx
mov dword [esp + 0x28], 3
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], 0
call sub.MPR.dll_WNetAddConnection2A
test eax, eax
pop edi
jne 0x4015af
mov byte [0x40f7f0], 1
xor ecx, ecx
pop esi
test eax, eax
sete cl
mov al, cl
add esp, 0x128
ret

Function at 0x4015c0
Capabilities:
Delete file
Get common file path
Get hostname

Disassembly:
mov al, byte [esp + 4]
sub esp, 0x310
push ebx
push ebp
push esi
xor esi, esi
test al, al
push edi
je 0x401698
mov eax, dword [esp + 0x32c]
mov edi, dword [esp + 0x328]
push eax
push edi
call fcn.00401370
add esp, 8
lea ecx, [esp + 0x10]
lea edx, [esp + 0x118]
mov dword [esp + 0x10], 0x104
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [esp + 0x118]
push edi
push eax
call fcn.0040383a
add esp, 8
test eax, eax
jne 0x40164f
lea ecx, [esp + 0x21c]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, dword [esp + 0x330]
lea eax, [esp + 0x21c]
push edx
push eax
lea ecx, [esp + 0x1c]
push str._s_s
push ecx
jmp 0x401662
mov edx, dword [esp + 0x330]
lea eax, [esp + 0x14]
push edx
push edi
push str._sADMIN__s
push eax
call fcn.00403452
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
call ebp
test eax, eax
jne 0x401698
call ebx
cmp eax, 5
jne 0x401698
push 0x64
call edi
inc esi
cmp esi, 0xa
jb 0x40167c
mov edx, dword [esp + 0x328]
push edx
call fcn.004014e0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x310
ret
Function at 0x4016c0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push ebx
mov bl, byte [esp + 0x21c]
push ebp
mov ebp, dword [esp + 0x21c]
push esi
mov esi, dword [esp + 0x238]
test bl, bl
push edi
je 0x401731
cmp byte [esi], 0
jne 0x401731
lea eax, [esp + 0x114]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x114]
push 0x5c
push ecx
call fcn.004039cf
mov edx, dword [esp + 0x23c]
mov byte [eax], 0
lea eax, [esp + 0x11c]
push edx
push eax
lea ecx, [esp + 0x20]
push str._s_s
push ecx
call fcn.00403452
add esp, 0x18
jmp 0x40175b
mov edx, dword [esp + 0x234]
lea eax, [esp + 0x10]
push edx
push ebp
push str._sADMIN__s
push eax
call fcn.00403452
mov ecx, dword [esp + 0x250]
push ecx
push esi
push ebp
call fcn.00401520
add esp, 0x1c
mov edi, dword [esp + 0x238]
lea edx, [esp + 0x10]
push edx
push edi
call fcn.00401460
add esp, 8
test al, al
jne 0x4018a6
mov al, byte [esp + 0x21c]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test al, al
jne 0x401794
call esi
cmp eax, 0x20
je 0x4018a6
call esi
cmp eax, 5
je 0x4017ae
cmp eax, 0x52e
je 0x4017ae
cmp eax, 0x3e7
je 0x4017ae
cmp eax, 0x35
jne 0x4017c4
lea eax, [esp + 0x10]
push eax
push edi
call fcn.00401460
add esp, 8
test al, al
jne 0x4018a6
call fcn.00401440
mov edi, dword [esp + 0x220]
test bl, bl
je 0x4017e3
mov ecx, dword [esp + 0x22c]
push ecx
push str._rCouldnt_install__s_service:_n
jmp 0x4017e9
push edi
push str._rCouldnt_access__s:_n
push 0x40e858
call fcn.004034a4
add esp, 0xc
call esi
mov esi, eax
push esi
call fcn.004013b0
add esp, 4
cmp esi, 0x43
je 0x401851
cmp esi, 0x35
je 0x401851
cmp esi, 0x4d0
je 0x40181d
cmp esi, 0x4cf
jne 0x401890
test bl, bl
je 0x401849
push str._nMake_sure_that_file_and_print_sharing_services_are_enabled._n
push 0x40e858
call fcn.004034a4
add esp, 8
push ebp
call fcn.004014e0
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
push edi
push str._nMake_sure_that_file_and_print_sharing_services_are_enabled_on__s._n
jmp 0x401883
test bl, bl
je 0x40187d
push str._nMake_sure_that_the_admin__share_is_enabled._n
push 0x40e858
call fcn.004034a4
add esp, 8
push ebp
call fcn.004014e0
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
push edi
push str._nMake_sure_that_the_default_admin__share_is_enabled_on__s._n
push 0x40e858
call fcn.004034a4
add esp, 0xc
push ebp
call fcn.004014e0
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x208
ret
Function at 0x401d00
Capabilities:
List domain servers

Disassembly:
sub esp, 0x11c
push ebx
push ebp
push esi
push edi
xor ebp, ebp
mov edi, 1
push str.Enumerating_domain..._n
push 0x40e858
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x18], edi
call fcn.004034a4
add esp, 8
lea eax, [esp + 0x24]
lea ecx, [esp + 0x20]
lea edx, [esp + 0x14]
push eax
push ebp
push 3
push ecx
push edx
lea eax, [esp + 0x2c]
push 0xffffffffffffffff
push eax
push 0x65
push ebp
call sub.NETAPI32.dll_NetServerEnum
cmp eax, ebp
je 0x401d7b
cmp eax, 0xea
je 0x401d7b
push eax
push str.A_system_error_has_occurred:__d_n
push 0x40e858
call fcn.004034a4
add esp, 0xc
jmp 0x401dff
mov esi, dword [esp + 0x18]
cmp esi, ebp
je 0x401e0d
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], ebp
cmp eax, ebp
jbe 0x401dff
mov bl, byte [esp + 0x130]
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp esi, ebp
je 0x401dfb
mov edx, dword [esi + 4]
push ebp
push ebp
lea ecx, [esp + 0x30]
push 0x104
push ecx
push 0xffffffffffffffff
push edx
push ebp
push ebp
call edi
test bl, bl
je 0x401dd0
lea eax, [esp + 0x28]
push eax
push str._s:_n
call fcn.00403e8d
add esp, 8
lea ecx, [esp + 0x28]
push ecx
call dword [esp + 0x138]
add esp, 4
test eax, eax
jne 0x401de7
mov dword [esp + 0x10], ebp
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
add esi, 0x18
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jb 0x401da0
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x401e0d
push eax
call sub.NETAPI32.dll_NetApiBufferFree
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11c
ret

Function at 0x402110
Capabilities:
Get file version info
Terminate process

Disassembly:
sub esp, 0x108
lea eax, [esp + 4]
push esi
push edi
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
push edi
call fcn.004043b6
add esp, 4
mov esi, eax
lea eax, [esp + 0xc]
push esi
push edi
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoA
push 0x40d3e4
push esi
call fcn.004020c0
push 0x40e858
push 0x40d2d0
mov edi, eax
call fcn.00404368
push 0x40e858
push edi
call fcn.00404368
push 0x40e858
push 0x40d3e0
call fcn.00404368
push 0x40d3d4
push esi
call fcn.004020c0
push 0x40e858
push eax
call fcn.00404368
push 0x40e858
push 0x40d3d0
call fcn.00404368
push 0x40d3c0
push esi
call fcn.004020c0
add esp, 0x40
push 0x40e858
push eax
call fcn.00404368
push 0x40e858
push 0x40d2d0
call fcn.00404368
push 0x40d3b0
push esi
call fcn.004020c0
push 0x40e858
push eax
call fcn.00404368
push 0x40e858
push 0x40d2d0
call fcn.00404368
push 0x40d3a4
push esi
call fcn.004020c0
push 0x40e858
push eax
call fcn.00404368
push 0x40e858
push 0x40d3a0
call fcn.00404368
add esp, 0x40
push 0x40e858
call fcn.00403d27
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jb 0x402258
push edi
push str._s_requires_Windows_NT_2000_XP_2003._n_n
push 0x40e858
call fcn.004034a4
add esp, 0xc
push 1
call fcn.00404275
pop edi
pop esi
add esp, 0x108
ret