joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f3068
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405184
xor eax, eax
push ebp
push 0x4f31b6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x6c]
call fcn.004f2ecc
push 0
push 0x8000080
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00405194
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x4f3195
xor eax, eax
push ebp
push 0x4f318e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4f3177
xor eax, eax
push ebp
push 0x4f3170
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4f3159
xor eax, eax
push ebp
push 0x4f3152
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetFileSize
mov ecx, eax
lea eax, [ebp - 0x6c]
mov edx, dword [ebp - 0x14]
call fcn.004f2f00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f3159
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_UnmapViewOfFile
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f3177
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f3195
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
ret
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x6c]
call fcn.004f2f80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f31bd
lea eax, [ebp - 4]
call fcn.00404cd4
ret
Function at 0x50a5f0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x50a641
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x50a628
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x50a618
jmp 0x50a641
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x50a629
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x51fbb8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffec
mov dword [esp], ecx
mov ebx, edx
mov edi, eax
lea edx, [esp + 4]
mov eax, ebx
mov ecx, 4
call fcn.004030ec
lea edx, [esp + 8]
mov esi, ebx
mov eax, esi
add eax, 4
mov ecx, 4
call fcn.004030ec
lea edx, [esp + 0xc]
mov eax, esi
add eax, 8
mov ecx, 4
call fcn.004030ec
lea edx, [esp + 0x10]
mov eax, esi
add eax, 0xc
mov ecx, 4
call fcn.004030ec
mov eax, dword [edi + 0x20]
add dword [esp + 8], eax
mov eax, dword [edi + 0x24]
add dword [esp + 0x10], eax
mov esi, 1
mov eax, dword [esp + 8]
add eax, eax
inc eax
imul dword [esp + 8]
mov edx, 5
call fcn.0051f994
mov ebx, eax
mov eax, dword [esp + 0x10]
add eax, eax
inc eax
imul dword [esp + 0x10]
mov edx, 5
call fcn.0051f994
mov ebp, eax
mov eax, dword [esp + 4]
xor eax, ebx
mov edx, ebp
call fcn.0051f994
mov edx, esi
add edx, edx
add eax, dword [edi + edx*4 + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xc]
xor eax, ebp
mov edx, ebx
call fcn.0051f994
mov edx, esi
add edx, edx
add eax, dword [edi + edx*4 + 0x24]
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 4]
mov eax, dword [esp + 8]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebx
inc esi
cmp esi, 0x15
jne 0x51fc24
mov eax, dword [edi + 0xc8]
add dword [esp + 4], eax
mov eax, dword [edi + 0xcc]
add dword [esp + 0xc], eax
mov edx, dword [esp]
lea eax, [esp + 4]
mov ecx, 4
call fcn.004030ec
mov ebx, dword [esp]
mov edx, ebx
add edx, 4
lea eax, [esp + 8]
mov ecx, 4
call fcn.004030ec
mov edx, ebx
add edx, 8
lea eax, [esp + 0xc]
mov ecx, 4
call fcn.004030ec
mov edx, ebx
add edx, 0xc
lea eax, [esp + 0x10]
mov ecx, 4
call fcn.004030ec
add esp, 0x14
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x51fd18
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffec
mov dword [esp], ecx
mov ebx, edx
mov edi, eax
lea edx, [esp + 4]
mov eax, ebx
mov ecx, 4
call fcn.004030ec
lea edx, [esp + 8]
mov esi, ebx
mov eax, esi
add eax, 4
mov ecx, 4
call fcn.004030ec
lea edx, [esp + 0xc]
mov eax, esi
add eax, 8
mov ecx, 4
call fcn.004030ec
lea edx, [esp + 0x10]
mov eax, esi
add eax, 0xc
mov ecx, 4
call fcn.004030ec
mov eax, dword [edi + 0xcc]
sub dword [esp + 0xc], eax
mov eax, dword [edi + 0xc8]
sub dword [esp + 4], eax
mov esi, 0x14
mov ebx, dword [esp + 4]
mov eax, dword [esp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 8]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov eax, dword [esp + 0x10]
add eax, eax
inc eax
imul dword [esp + 0x10]
mov edx, 5
call fcn.0051f994
mov ebp, eax
mov eax, dword [esp + 8]
add eax, eax
inc eax
imul dword [esp + 8]
mov edx, 5
call fcn.0051f994
mov ebx, eax
mov eax, esi
add eax, eax
push dword [edi + eax*4 + 0x24]
mov eax, dword [esp + 0x10]
pop edx
sub eax, edx
mov edx, ebx
call fcn.0051f9a8
xor eax, ebp
mov dword [esp + 0xc], eax
mov eax, esi
add eax, eax
push dword [edi + eax*4 + 0x20]
mov eax, dword [esp + 8]
pop edx
sub eax, edx
mov edx, ebp
call fcn.0051f9a8
xor ebx, eax
mov dword [esp + 4], ebx
dec esi
test esi, esi
jne 0x51fd8a
mov eax, dword [edi + 0x24]
sub dword [esp + 0x10], eax
mov eax, dword [edi + 0x20]
sub dword [esp + 8], eax
mov edx, dword [esp]
lea eax, [esp + 4]
mov ecx, 4
call fcn.004030ec
mov ebx, dword [esp]
mov edx, ebx
add edx, 4
lea eax, [esp + 8]
mov ecx, 4
call fcn.004030ec
mov edx, ebx
add edx, 8
lea eax, [esp + 0xc]
mov ecx, 4
call fcn.004030ec
mov edx, ebx
add edx, 0xc
lea eax, [esp + 0x10]
mov ecx, 4
call fcn.004030ec
add esp, 0x14
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x520164
Capabilities:
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
push esi
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
lea esi, [ebp - 4]
xor eax, eax
push ebp
push 0x520220
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x1000
call fcn.00406d4c
pop ecx
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [esi], eax
push 0
push 0
push esi
push 0x1000
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_PeekNamedPipe
cmp dword [esi], 0
jbe 0x520200
xor eax, eax
mov dword [esi], eax
push 0
push esi
push 0x1000
lea eax, [ebp - 0x100d]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ReadFile
mov eax, dword [esi]
mov byte [ebp + eax - 0x100d], 0
lea eax, [ebp - 8]
mov edx, dword [esi]
call fcn.00405320
mov eax, dword [ebp - 8]
call fcn.00405194
lea edx, [ebp - 0x100d]
mov ecx, dword [esi]
call fcn.00408404
jmp 0x520199
mov eax, dword [ebp - 0xc]
push eax
call fcn.00406d64
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x520227
lea eax, [ebp - 8]
call fcn.00404cd4
ret
Function at 0x52049c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x520507
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x3c]
mov edx, 0x3c
call fcn.0040840c
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x40
mov eax, 0x52051c
mov dword [ebp - 0x30], eax
mov eax, ebx
call fcn.00405194
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, esi
call fcn.00405194
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
push eax
call sub.shell32.dll_ShellExecuteExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x520511
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x520524
Capabilities:
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x52052d
mov eax, dword [ebp - 4]
add esp, 0xffffffe0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x2024], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x520709
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404cd4
call fcn.0040e378
fstp qword [ebp - 0x18]
wait
xor ebx, ebx
xor eax, eax
mov dword [ebp - 8], eax
push 0
push 0
lea eax, [ebp - 8]
push eax
push 0x1000
lea eax, [ebp - 0x201d]
push eax
mov eax, dword [esi + 4]
push eax
call sub.kernel32.dll_PeekNamedPipe
cmp dword [ebp - 8], 0
jbe 0x520674
push 0
lea eax, [ebp - 8]
push eax
push 0x1000
lea eax, [ebp - 0x101d]
push eax
mov eax, dword [esi + 4]
push eax
call sub.kernel32.dll_ReadFile
call fcn.0040e378
fstp qword [ebp - 0x18]
wait
mov eax, dword [ebp - 8]
mov byte [ebp + eax - 0x101d], 0
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00405320
mov eax, dword [ebp - 0xc]
call fcn.00405194
lea edx, [ebp - 0x101d]
mov ecx, dword [ebp - 8]
call fcn.00408404
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0040c14c
mov eax, dword [ebp - 0x1c]
call fcn.00404f94
mov edx, dword [ebp - 0x1c]
cmp byte [edx + eax - 1], 0x3e
je 0x520630
mov eax, dword [ebp - 0x1c]
call fcn.00404f94
mov edx, dword [ebp - 0x1c]
cmp byte [edx + eax - 1], 0x23
je 0x520630
mov eax, dword [ebp - 0x1c]
call fcn.00404f94
mov edx, dword [ebp - 0x1c]
cmp byte [edx + eax - 1], 0x24
jne 0x520632
mov bl, 1
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
call fcn.00404f9c
mov eax, dword [ebp - 4]
cmp word [esi + 0x82], 0
je 0x520674
lea eax, [ebp - 0x2024]
lea edx, [ebp - 0x101d]
mov ecx, 0x1001
call fcn.00404f44
mov ecx, dword [ebp - 0x2024]
mov edx, esi
mov eax, dword [esi + 0x84]
call dword [esi + 0x80]
test bl, bl
je 0x5206aa
push 0x1f4
call sub.kernel32.dll_Sleep_1
xor eax, eax
mov dword [ebp - 8], eax
push 0
push 0
lea eax, [ebp - 8]
push eax
push 0x1000
lea eax, [ebp - 0x201d]
push eax
mov eax, dword [esi + 4]
push eax
call sub.kernel32.dll_PeekNamedPipe
cmp dword [ebp - 8], 0
jbe 0x5206e0
call fcn.0040e378
add esp, 0xfffffff8
fstp qword [esp]
wait
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.004e9a24
cmp edx, 0
jne 0x5206cf
cmp eax, 0x7530
jbe 0x5206d1
jmp 0x5206e0
jg 0x5206e0
push 0x1f4
call sub.kernel32.dll_Sleep_1
jmp 0x520571
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x520710
lea eax, [ebp - 0x2024]
call fcn.00404cd4
lea eax, [ebp - 0x1c]
call fcn.00404cd4
lea eax, [ebp - 0xc]
call fcn.00404cd4
ret
Function at 0x520718
Capabilities:
Create pipe
Create process on windows
Create process suspended
Create two anonymous pipes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00405184
xor eax, eax
push ebp
push 0x520804
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebx + 0x7c], 0
push 0
lea eax, [ebx + 0x1c]
push eax
lea eax, [ebx + 8]
push eax
lea eax, [ebx + 4]
push eax
call sub.kernel32.dll_CreatePipe
push 0
lea eax, [ebx + 0x1c]
push eax
lea eax, [ebx + 0x14]
push eax
lea eax, [ebx + 0x10]
push eax
call sub.kernel32.dll_CreatePipe
mov eax, dword [ebx + 0x10]
mov dword [ebx + 0x60], eax
mov eax, dword [ebx + 8]
mov dword [ebx + 0x64], eax
mov eax, dword [ebx + 8]
mov dword [ebx + 0x68], eax
lea eax, [ebx + 0x6c]
push eax
lea eax, [ebx + 0x28]
push eax
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xc], 0xb
lea edx, [ebp - 0x10]
xor ecx, ecx
mov eax, 0x520818
call fcn.0040d608
mov eax, dword [ebp - 8]
call fcn.00405194
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebx + 0x7c], al
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x5207d7
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
mov dword [ebx + 0x10], eax
mov eax, dword [ebx + 8]
test eax, eax
je 0x5207e9
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
mov dword [ebx + 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52080b
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404cf8
ret

Function at 0x520820
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00405184
xor eax, eax
push ebp
push 0x52089b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
mov ecx, 0x5208b0
mov edx, dword [ebp - 4]
call fcn.00404fe0
xor eax, eax
mov dword [ebp - 8], eax
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404f94
push eax
mov eax, dword [ebp - 0xc]
call fcn.00405194
push eax
mov eax, dword [ebx + 0x14]
push eax
call sub.kernel32.dll_WriteFile_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5208a2
lea eax, [ebp - 0xc]
call fcn.00404cd4
lea eax, [ebp - 4]
call fcn.00404cd4
ret

Function at 0x52181c
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
push edi
push esi
mov eax, dword [ebx + 0x40]
push eax
call sub.wsock32.dll_recv
mov edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
pop edi
pop esi
pop ebx
ret
Function at 0x521994
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
lea ecx, [ebp - 4]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x34]
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
mov eax, dword [ebx + 0x40]
push eax
call sub.wsock32.dll_send
mov edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
cmp eax, 0xffffffff
je 0x5219d1
add dword [ebx + 0x38], eax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4

Function at 0x521c64
Capabilities:
Resolve dns

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe0
mov esi, ecx
mov ebx, edx
mov eax, esi
call fcn.00404cd4
test ebx, ebx
je 0x521d05
mov al, byte [ebx]
add al, 0xd0
sub al, 0xa
jae 0x521ca0
mov eax, ebx
call fcn.00405194
push eax
call sub.wsock32.dll_inet_addr
inc eax
je 0x521d11
mov eax, esi
mov edx, ebx
call fcn.00404d28
jmp 0x521d11
mov eax, ebx
call fcn.00405194
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x521d11
mov ebx, eax
push esi
mov eax, dword [ebx + 0xc]
mov edi, dword [eax]
xor eax, eax
mov al, byte [edi]
mov dword [esp + 4], eax
mov byte [esp + 8], 0
xor eax, eax
mov al, byte [edi + 1]
mov dword [esp + 0xc], eax
mov byte [esp + 0x10], 0
xor eax, eax
mov al, byte [edi + 2]
mov dword [esp + 0x14], eax
mov byte [esp + 0x18], 0
xor eax, eax
mov al, byte [edi + 3]
mov dword [esp + 0x1c], eax
mov byte [esp + 0x20], 0
lea edx, [esp + 4]
mov ecx, 3
mov eax, 0x521d20
call fcn.0040d608
jmp 0x521d11
mov eax, esi
mov edx, 0x521d34
call fcn.00404d28
add esp, 0x20
pop edi
pop esi
pop ebx
ret

Function at 0x52226c
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00405184
xor eax, eax
push ebp
push 0x522356
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404cd4
mov eax, ebx
call fcn.005220a0
mov eax, dword [ebx + 4]
cmp byte [eax + 0x80], 0
je 0x522330
mov dword [ebp - 8], 0x3e8
push 4
lea eax, [ebp - 8]
push eax
push 0x1006
push 0xffff
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x40]
push eax
call sub.wsock32.dll_setsockopt
push 4
lea eax, [ebp - 8]
push eax
push 0x1005
push 0xffff
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x40]
push eax
call sub.wsock32.dll_setsockopt
mov ecx, 0x52236c
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 4]
call fcn.005219dc
mov edi, dword [ebx + 4]
cmp byte [edi + 0x80], 0
je 0x522330
mov ecx, esi
mov edx, 0x52236c
mov eax, edi
call fcn.00521888
lea ecx, [ebp - 0xc]
mov edx, dword [esi]
mov eax, ebx
call fcn.00522370
mov edx, dword [ebp - 0xc]
mov eax, esi
call fcn.00404d28
mov eax, dword [ebx + 4]
call fcn.00521f40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52235d
lea eax, [ebp - 0xc]
call fcn.00404cd4
lea eax, [ebp - 4]
call fcn.00404cd4
ret
Function at 0x522770
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor ecx, ecx
mov dword [ebp - 0x10c], ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x5227e8
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x105
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov edx, ebx
lea eax, [ebp - 0x105]
call fcn.0040d0f0
cmp dword [ebx], 0
je 0x5227cf
lea edx, [ebp - 0x10c]
mov eax, dword [ebx]
call fcn.00410f5c
mov edx, dword [ebp - 0x10c]
mov eax, ebx
call fcn.00404d28
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5227ef
lea eax, [ebp - 0x10c]
call fcn.00404cd4
ret
Function at 0x5338c8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405184
xor eax, eax
push ebp
push 0x533a88
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x64]
xor ecx, ecx
mov edx, 0x44
call fcn.0040362c
mov dword [ebp - 0x64], 0x44
mov dword [ebp - 0x38], 1
mov word [ebp - 0x34], 1
xor ebx, ebx
mov eax, 0x25
call fcn.00533868
test eax, eax
je 0x533a4a
push 0x533a98
call sub.kernel32.dll_LoadLibraryA
mov esi, eax
test esi, esi
je 0x533960
push 0x533aa8
push esi
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x1c], eax
push 0x533abc
push esi
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
je 0x533a72
cmp dword [ebp - 0x20], 0
je 0x533a72
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push 0x8b
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x533a72
lea eax, [ebp - 0xc]
push eax
push 1
push 2
push 0
push 0x2000000
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_DuplicateTokenEx
test eax, eax
jne 0x5339ab
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle
jmp 0x533a72
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0x533ad4
call dword [ebp - 0x20]
test eax, eax
jne 0x5339d2
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0x20
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_GetLengthSid
add eax, 8
push eax
lea eax, [ebp - 0x18]
push eax
push 0x19
mov eax, dword [ebp - 0xc]
push eax
call dword [ebp - 0x1c]
test eax, eax
jne 0x533a1a
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_LocalFree_1
jmp 0x533a72
cmp dword [ebp - 0xc], 0
je 0x533a4a
mov bl, 1
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x64]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00405194
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CreateProcessAsUserA
test bl, bl
jne 0x533a72
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x64]
push eax
push 0
push 0
push 0x30
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00405194
push eax
push 0
call sub.kernel32.dll_CreateProcessA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x533a8f
lea eax, [ebp - 4]
call fcn.00404cd4
ret
Function at 0x533b18
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
xor edx, edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405184
xor eax, eax
push ebp
push 0x533d2c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x533d40
call fcn.005aea34
cmp dword [ebp - 4], 0
je 0x533d09
xor eax, eax
cmp eax, 0x20
jae 0x533cff
lea eax, [ebp - 8]
call fcn.00404cd4
lea eax, [ebp - 0xc]
call fcn.00404cd4
mov dl, 1
mov eax, dword [0x522534]
call fcn.00403d78
mov ebx, eax
lea edx, [ebp - 8]
mov eax, ebx
call fcn.005226b8
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
lea edx, [ebp - 0x18]
xor ecx, ecx
mov eax, 0x533d64
call fcn.005aea90
cmp dword [ebp - 8], 0
je 0x533c41
mov eax, dword [ebp - 8]
call fcn.0040ca7c
test al, al
je 0x533c41
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.00522950
mov edx, dword [ebp - 0x10]
mov eax, 0x533d88
call fcn.004052d8
test eax, eax
jle 0x533c02
mov al, byte [0x533d8c]
push eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x533d88
mov eax, dword [ebp - 0x10]
call fcn.004117c8
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
call fcn.00404d6c
jmp 0x533c2c
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x2c]
mov ecx, 1
mov eax, 0x533d98
call fcn.0040d608
mov eax, dword [ebp - 0x10]
call fcn.005aea34
mov eax, dword [ebp - 0x10]
call fcn.005338c8
jmp 0x533cff
lea edx, [ebp - 8]
mov eax, ebx
call fcn.00522858
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
lea edx, [ebp - 0x18]
xor ecx, ecx
mov eax, 0x533da8
call fcn.005aea90
cmp dword [ebp - 8], 0
je 0x533ccb
mov eax, dword [ebp - 8]
call fcn.0040ca7c
test al, al
je 0x533ccb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
lea edx, [ebp - 0x18]
xor ecx, ecx
mov eax, 0x533da8
call fcn.005aea90
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x2c]
mov ecx, 1
mov eax, 0x533d98
call fcn.0040d608
mov eax, dword [ebp - 0x10]
call fcn.005aea34
mov eax, dword [ebp - 0x10]
call fcn.005338c8
jmp 0x533cff
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
lea edx, [ebp - 0x18]
xor ecx, ecx
mov eax, 0x533dcc
call fcn.005aea90
push 1
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00405194
push eax
push 0x533de8
push 0
call sub.shell32.dll_ShellExecuteA
mov eax, 0x533df8
call fcn.005aea34
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x533d33
lea eax, [ebp - 0x1c]
call fcn.00404cd4
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00404cf8
ret