joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4743c0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00474374
test al, al
jne 0x4743e1
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x47442f
xor eax, eax
push ebp
push 0x47441f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, esi
call fcn.00403efc
push eax
call sub.kernel32.dll_CreateDirectoryA
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x474426
lea eax, [ebp - 0xc]
call fcn.004743b0
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x474438
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00474374
test al, al
jne 0x47445c
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4744c2
xor eax, eax
push ebp
push 0x4744b2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp + 0x20]
push eax
mov eax, dword [ebp + 0x24]
push eax
push edi
push esi
call sub.kernel32.dll_CreateProcessA
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4744b9
lea eax, [ebp - 0xc]
call fcn.004743b0
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20

Function at 0x4744d0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00474374
test al, al
jne 0x4744f4
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x47454c
xor eax, eax
push ebp
push 0x47453c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
push eax
mov eax, edi
call fcn.00403efc
push eax
mov eax, esi
call fcn.00403efc
push eax
call sub.kernel32.dll_CopyFileA
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x474543
lea eax, [ebp - 0xc]
call fcn.004743b0
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x474558
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00474374
test al, al
jne 0x474579
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4745c5
xor eax, eax
push ebp
push 0x4745b5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00403efc
push eax
call sub.kernel32.dll_DeleteFileA
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4745bc
lea eax, [ebp - 0xc]
call fcn.004743b0
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x474730
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00474374
test al, al
jne 0x474753
mov dword [ebp - 4], 0xffffffff
jmp 0x47479f
xor eax, eax
push ebp
push 0x47478f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00403efc
push eax
call sub.kernel32.dll_GetFileAttributesA
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x474796
lea eax, [ebp - 0xc]
call fcn.004743b0
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4748d0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00474374
test al, al
jne 0x4748f4
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x474948
xor eax, eax
push ebp
push 0x474938
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.00403efc
push eax
mov eax, esi
call fcn.00403efc
push eax
call sub.kernel32.dll_MoveFileA
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47493f
lea eax, [ebp - 0xc]
call fcn.004743b0
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x474954
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, dword [ebp + 8]
test edi, edi
jne 0x474977
test esi, 4
je 0x474977
xor edi, edi
jmp 0x474980
mov eax, edi
call fcn.00403efc
mov edi, eax
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.00474374
test al, al
jne 0x474995
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x4749e4
xor eax, eax
push ebp
push 0x4749d4
push dword fs:[eax]
mov dword fs:[eax], esp
push esi
push edi
mov eax, dword [ebp - 4]
call fcn.00403efc
push eax
call sub.kernel32.dll_MoveFileExA
mov dword [ebp - 8], eax
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x14], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4749db
lea eax, [ebp - 0x10]
call fcn.004743b0
ret
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x474a60
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00474374
test al, al
jne 0x474a81
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x474acd
xor eax, eax
push ebp
push 0x474abd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00403efc
push eax
call sub.kernel32.dll_RemoveDirectoryA
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x474ac4
lea eax, [ebp - 0xc]
call fcn.004743b0
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x474ad8
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00474374
test al, al
jne 0x474afc
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x474b49
xor eax, eax
push ebp
push 0x474b39
push dword fs:[eax]
mov dword fs:[eax], esp
push edi
mov eax, esi
call fcn.00403efc
push eax
call sub.kernel32.dll_SetFileAttributesA
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x474b40
lea eax, [ebp - 0xc]
call fcn.004743b0
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4756d4
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x4756dc
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x4757c9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.0044e91c
mov edx, dword [ebp - 8]
mov ecx, 0x4757e0
xor eax, eax
call fcn.00475460
push 0
mov eax, dword [ebp - 4]
call fcn.00403efc
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x475797
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 0xb7
je 0x4756f6
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov al, 0x2f
call fcn.004737e0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.00409be8
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x24]
mov eax, ebx
call fcn.0044f67c
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x18]
mov ecx, 2
mov al, 0x60
call fcn.004737b0
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x408920]
call fcn.0040c440
call fcn.00403588
jmp 0x4756f6
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00403b0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4757d0
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00403adc
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403adc
ret
Function at 0x476e88
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x18]
call fcn.00403eec
xor eax, eax
push ebp
push 0x476f63
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp + 0x18], 0
jne 0x476ec1
lea edx, [ebp + 0x18]
mov eax, edi
call fcn.0044c468
lea eax, [ebp - 0x40]
xor ecx, ecx
mov edx, 0x3c
call fcn.00402acc
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x540
test ebx, ebx
je 0x476eec
mov eax, ebx
call fcn.00403efc
mov dword [ebp - 0x34], eax
mov eax, edi
call fcn.00403efc
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 4]
call fcn.00403efc
mov dword [ebp - 0x2c], eax
cmp dword [ebp + 0x18], 0
je 0x476f12
mov eax, dword [ebp + 0x18]
call fcn.00403efc
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x40]
push eax
call sub.shell32.dll_ShellExecuteExA
neg eax
sbb ebx, ebx
neg ebx
test bl, bl
jne 0x476f34
call sub.kernel32.dll_GetLastError_1
mov dword [esi], eax
jmp 0x476f4d
mov dword [esi], 0x103
mov eax, dword [ebp - 8]
test eax, eax
je 0x476f4d
push esi
mov ecx, dword [ebp + 0xc]
mov dl, byte [ebp + 0x14]
call fcn.00476b68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x476f6a
lea eax, [ebp + 0x18]
call fcn.00403ab8
ret

Function at 0x477104
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xffffffec
mov ebx, eax
mov dword [esp], 0x10
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x477132
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x10
call fcn.00403ce8
jmp 0x477139
mov eax, ebx
call fcn.00403ab8
add esp, 0x14
pop ebx
ret

Function at 0x477140
Capabilities:
Get session user name

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
mov dword [esp], pe_nt_image_headers32
push esp
lea eax, [esp + 8]
push eax
call sub.advapi32.dll_GetUserNameA
test eax, eax
je 0x477171
mov eax, ebx
lea edx, [esp + 4]
mov ecx, pe_nt_image_headers32
call fcn.00403ce8
jmp 0x477178
mov eax, ebx
call fcn.00403ab8
add esp, 0x104
pop ebx
ret

Function at 0x477188
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffec
mov eax, dword [0x4b9ae0]
cmp dword [eax], 2
jne 0x4771f0
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x4771ab
xor eax, eax
jmp 0x4771ff
lea eax, [esp + 8]
push eax
push 0x477204
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
mov dword [esp + 4], 1
mov dword [esp + 0x10], 2
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError_1
test eax, eax
je 0x4771f0
xor eax, eax
jmp 0x4771ff
push 0
push 2
call sub.user32.dll_ExitWindowsEx
neg eax
sbb eax, eax
neg eax
add esp, 0x14
ret
Function at 0x477218
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x477272
inc esi
xor edi, edi
cmp edi, 1
jne 0x47723e
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep
jmp 0x47724c
cmp edi, 1
jle 0x47724c
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00474558
test eax, eax
jne 0x477272
call sub.kernel32.dll_GetLastError_1
cmp eax, 2
je 0x477272
call sub.kernel32.dll_GetLastError_1
cmp eax, 3
je 0x477272
inc edi
dec esi
jne 0x47722e
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x477940
Capabilities:
Delete registry value

Disassembly:
push ebx
push esi
push ecx
mov ebx, edx
mov esi, eax
push 0
push 2
lea eax, [esp + 8]
push eax
call fcn.0044eaf4
and eax, 0x7f
mov ecx, dword [eax*4 + 0x4b9048]
mov edx, 0x80000002
xor eax, eax
call fcn.0044ed04
test eax, eax
jne 0x47798a
mov eax, esi
call fcn.00403efc
push eax
mov eax, dword [esp + 4]
push eax
call sub.advapi32.dll_RegDeleteValueA
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, ebx
call fcn.00403efc
push eax
call sub.gdi32.dll_RemoveFontResourceA
test eax, eax
je 0x4779ab
push 0
push 0
push 0x1d
push 0xffff
call sub.user32.dll_SendNotifyMessageA
pop edx
pop esi
pop ebx
ret
Function at 0x4779b0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x20], ebx
mov edi, ecx
mov esi, edx
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x477aea
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x477b00
push 0x477b14
call sub.kernel32.dll_GetModuleHandleA_2
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
lea edx, [ebp - 0xc]
mov al, byte [ebp - 1]
call fcn.00474374
test al, al
jne 0x477a0b
mov byte [ebp - 2], 0
jmp 0x477acf
xor eax, eax
push ebp
push 0x477ac8
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
je 0x477a44
push 0
mov eax, dword [ebp + 8]
push eax
push edi
lea edx, [ebp - 0x20]
mov eax, esi
call fcn.0044c074
mov eax, dword [ebp - 0x20]
call fcn.00403efc
push eax
call ebx
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 2], al
jmp 0x477ab2
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x2c]
mov eax, esi
call fcn.0044c3c8
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
call fcn.0044c490
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
call fcn.0044c074
mov eax, dword [ebp - 0x24]
call fcn.00403efc
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 2], al
cmp byte [ebp - 2], 0
je 0x477ab2
mov ecx, edi
mov eax, dword [ebp - 0x14]
imul dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
call fcn.00452088
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
imul dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
call fcn.00452088
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x477acf
lea eax, [ebp - 0xc]
call fcn.004743b0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x477af1
lea eax, [ebp - 0x2c]
mov edx, 4
call fcn.00403adc
ret
Function at 0x47a28c
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
add esp, 0xfffffff4
mov ebx, edx
mov esi, eax
cmp byte [esi + 4], 0
je 0x47a366
mov byte [esi + 5], 1
mov eax, dword [esi + 0x10]
mov dword [esp + 4], eax
mov byte [esp + 8], 0
lea edx, [esp + 4]
xor ecx, ecx
mov eax, 0x47a374
call fcn.004791f0
mov eax, dword [esi + 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x47a2e4
mov eax, 0x47a3a8
call fcn.00478ff0
push 1
mov eax, dword [esi + 8]
push eax
call sub.kernel32.dll_TerminateProcess
push 0x2710
mov eax, dword [esi + 8]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
je 0x47a2cf
push esp
mov eax, dword [esi + 8]
push eax
call sub.kernel32.dll_GetExitCodeProcess
test eax, eax
je 0x47a337
cmp dword [esp], 0
jne 0x47a319
mov eax, 0x47a3d8
call fcn.00478ff0
jmp 0x47a341
mov eax, dword [esp]
mov dword [esp + 4], eax
mov byte [esp + 8], 0
lea edx, [esp + 4]
xor ecx, ecx
mov eax, 0x47a3f8
call fcn.004791f0
jmp 0x47a341
mov eax, 0x47a430
call fcn.00478ff0
mov eax, dword [esi + 8]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
mov dword [esi + 8], eax
xor eax, eax
mov dword [esi + 0x10], eax
mov byte [esi + 4], 0
test bl, bl
je 0x47a366
push 0xfa
call sub.kernel32.dll_Sleep
add esp, 0xc
pop esi
pop ebx
ret
Function at 0x47a464
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47a6a2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
inc dword [eax + 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov ebx, dword [ebp - 4]
mov dword [ebx + 0x20], eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x24], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x28], ecx
xor eax, eax
lea ebx, [eax + 0xc]
add ebx, ecx
xor edx, edx
push ebp
push 0x47a647
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0
push 0xffffffffffffffff
push 0
call sub.kernel32.dll_CreateEventA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x47a4d9
mov eax, 0x47a6bc
call fcn.00475154
xor edx, edx
push ebp
push 0x47a5dc
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x14
call fcn.00402acc
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 8]
push eax
push 0x14
mov eax, dword [ebp - 4]
add eax, 0x2034
push eax
push ebx
mov eax, dword [ebp - 4]
add eax, 0x20
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
call sub.kernel32.dll_TransactNamedPipe
test eax, eax
jne 0x47a5c5
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x3e5
je 0x47a541
mov eax, 0x47a6d0
call fcn.00475154
xor edx, edx
push ebp
push 0x47a5ae
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [ebp + 8], 0
je 0x47a581
mov eax, dword [ebp - 4]
cmp word [eax + 0x1a], 0
je 0x47a581
mov ebx, dword [ebp - 4]
mov eax, dword [ebx + 0x1c]
call dword [ebx + 0x18]
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0xc]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x47a55f
pop dword fs:[0]
add esp, 8
push 0x47a5b5
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
call sub.kernel32.dll_GetOverlappedResult
mov ebx, eax
call sub.kernel32.dll_GetLastError_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47a5e3
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
Function at 0x47d54c
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffe18
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x11e8], ebx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x11cc], edx
mov dword [ebp - 0x11d0], eax
lea esi, [ebp - 0x11de]
lea edi, [ebp - 0x11d0]
xor eax, eax
push ebp
push 0x47d6de
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x11d4], eax
xor eax, eax
mov dword [ebp - 0x11c8], eax
mov eax, dword [edi]
add eax, 0x10
push eax
lea ecx, [ebp - 0x11c4]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x11cc]
call fcn.0047ac84
cmp dword [ebp - 0x1084], 0x30
jle 0x47d5ea
lea ecx, [ebp - 0x11e8]
mov edx, dword [ebp - 4]
mov al, 0xb7
call fcn.004737e0
mov ecx, dword [ebp - 0x11e8]
mov dl, 1
mov eax, dword [0x408920]
call fcn.0040c440
call fcn.00403588
mov eax, dword [edi]
add eax, 0x14
lea edx, [ebp - 0x1184]
mov ecx, 0x80
call fcn.00403ce8
mov eax, dword [edi]
add eax, 0x18
lea edx, [ebp - 0x1104]
mov ecx, 0x80
call fcn.00403ce8
lea eax, [ebp - 0x1078]
mov al, byte [eax]
mov edx, dword [edi]
mov byte [edx + 0x1d], al
mov ebx, dword [ebp - 0x1080]
test ebx, ebx
jle 0x47d6c5
push ebp
mov eax, esi
mov edx, 0xa
call fcn.0047d4d4
pop ecx
mov eax, dword [esi + 6]
push eax
mov eax, dword [edi]
mov eax, dword [eax]
mov ecx, dword [esi + 2]
mov dx, word [esi]
call fcn.0047b294
mov dword [ebp - 0x11e4], eax
cmp dword [ebp - 0x11e4], 0
jne 0x47d666
push ebp
call fcn.0047d330
pop ecx
xor eax, eax
push ebp
push 0x47d697
push dword fs:[eax]
mov dword fs:[eax], esp
push ebp
mov eax, dword [ebp - 0x11e4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0x11e4]
add eax, 0x12
call fcn.0047d4d4
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47d6b1
mov edx, dword [ebp - 0x11e4]
mov eax, dword [edi]
call fcn.0047b2d0
dec ebx
jne 0x47d62f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47d6e5
lea eax, [ebp - 0x11e8]
call fcn.00403ab8
ret
Function at 0x47d890
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [0x4b9ae0]
cmp dword [eax], 2
jne 0x47d8bb
call sub.kernel32.dll_GetVersion
and eax, 0xff
cmp ax, 5
jae 0x47d8c7
mov dword [ebp - 0xc], 1
jmp 0x47dacf
push 0x47dadc
call sub.kernel32.dll_GetModuleHandleA_2
mov esi, eax
push 0x47daec
push esi
call sub.kernel32.dll_GetProcAddress_1
mov edi, eax
push 0x47db04
push esi
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x10], eax
push 0x47db1c
push esi
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x14], eax
test edi, edi
je 0x47d90c
cmp dword [ebp - 0x10], 0
je 0x47d90c
cmp dword [ebp - 0x14], 0
jne 0x47d918
mov dword [ebp - 0xc], 0x7f
jmp 0x47dacf
xor eax, eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 4
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
call fcn.00403efc
push eax
call edi
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x47dacf
xor edx, edx
push ebp
push 0x47dac8
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp + 0xc]
shl eax, 5
call fcn.004094b4
mov dword [ebp - 0x24], eax
mov esi, ebx
mov edi, dword [ebp + 0xc]
dec edi
test edi, edi
jl 0x47da05
inc edi
xor ebx, ebx
lea eax, [ebp - 0x28]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi + 8]
push eax
mov al, byte [esi + 6]
push eax
push esi
call sub.advapi32.dll_AllocateAndInitializeSid
test eax, eax
jne 0x47d9bb
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x47d9b1
mov dword [ebp - 0xc], 0x57
call fcn.00403628
jmp 0x47dacf
mov eax, ebx
shl eax, 2
mov edx, dword [ebp - 0x24]
mov ecx, dword [esi + 0x10]
mov dword [edx + eax*8], ecx
mov edx, dword [ebp - 0x24]
mov dword [edx + eax*8 + 4], 1
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
mov dword [edx + eax*8 + 8], ecx
mov edx, dword [ebp - 0x24]
xor ecx, ecx
mov dword [edx + eax*8 + 0x14], ecx
mov edx, dword [ebp - 0x24]
xor ecx, ecx
mov dword [edx + eax*8 + 0x18], ecx
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
mov dword [edx + eax*8 + 0x1c], ecx
add esi, 0x14
inc ebx
dec edi
jne 0x47d976
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp + 0xc]
push eax
call dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x47da2b
call fcn.00403628
jmp 0x47dacf
xor eax, eax
push ebp
push 0x47da6f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 0x20]
push eax
push 0
push 0
push 4
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
call fcn.00403efc
push eax
call dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47da76
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_LocalFree_1
ret
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8