joyce8/EMBER2024-capa huggingface dataset:
Function at 0x524e50
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x524e67
add esp, 0xfffffff0
call fcn.004049a0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004a00e8
mov eax, dword [0x7216b0]
cmp byte [eax], 0
jne 0x524e94
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x17c], al
mov eax, dword [0x721d80]
cmp word [eax + 2], 0
jne 0x524eae
mov eax, dword [0x721d80]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00526e0c
mov eax, dword [0x721ffc]
cmp word [eax + 2], 0
jne 0x524ec8
mov eax, dword [0x721ffc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0052701c
mov byte [ebx + 0x31], 0
mov dl, 1
mov eax, dword [0x4a8be8]
call fcn.004aaa94
mov esi, eax
mov dword [ebx + 0x38], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x5274b0
mov dl, 1
mov eax, dword [0x490338]
call fcn.0040448c
mov dword [ebx + 0x8c], eax
mov dl, 1
mov eax, dword [0x490338]
call fcn.0040448c
mov dword [ebx + 0xac], eax
xor eax, eax
mov dword [ebx + 0x5c], eax
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x58], 0xff000018
mov dword [ebx + 0x74], 0x1f4
mov byte [ebx + 0x78], 1
xor eax, eax
mov dword [ebx + 0x7c], eax
mov dword [ebx + 0x70], 0x9c4
mov byte [ebx + 0x84], 0
mov byte [ebx + 0xa1], 1
mov byte [ebx + 0xb8], 1
mov dl, 1
mov eax, dword [0x4a9848]
call fcn.004b3180
mov esi, eax
mov dword [ebx + 0x9c], esi
push 0x5250a4
mov eax, dword [0x721a78]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.004b3584
mov eax, dword [ebx + 0x9c]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x527760
mov dl, 1
mov eax, dword [0x490338]
call fcn.0040448c
mov dword [ebx + 0x94], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x721a78]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.0047b67c
test eax, eax
je 0x524fd6
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.0047b32c
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.0047b664
test eax, eax
je 0x524fee
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW_1
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0x88]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.00406f90
push ebx
push 0x5267dc
call fcn.0051b484
mov dword [ebx + 0x178], eax
mov byte [ebx + 0xcc], 0
mov eax, dword [0x7216b0]
cmp byte [eax], 0
jne 0x52503f
mov eax, ebx
call fcn.00525218
mov byte [ebx + 0x55], 1
mov byte [ebx + 0x56], 1
mov byte [ebx + 0x57], 1
mov byte [ebx + 0xa2], 1
mov byte [ebx + 0xcd], 0
mov byte [ebx + 0xd8], 0
xor eax, eax
mov dword [ebx + 0xd0], eax
mov byte [ebx + 0xcf], 0
xor eax, eax
mov dword [ebx + 0xa4], eax
mov eax, ebx
call fcn.00527988
mov eax, ebx
call fcn.0052854c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x52509c
call fcn.004049f8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5254ec
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x52558e
cmp dword [ebx + 0x90], 0
jne 0x525588
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x525438
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x8c]
cmp dword [eax + 8], 0
je 0x525588
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_GetWindowLongW
test al, 8
je 0x52554e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x8c]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x525588
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x8c]
call fcn.00493458
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x52555d
inc dword [ebx + 0x90]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x5257ac
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x72943c]
cmp dword [eax + 0x170], 0
je 0x525911
test bl, bl
jne 0x52585f
cmp dword [esi + 0x98], 0
jne 0x525854
mov eax, esi
call fcn.0052839c
push eax
push 0x5256b8
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x40], 0
je 0x525825
mov eax, dword [0x72943c]
cmp byte [eax + 0xcf], 0
je 0x525825
mov eax, dword [esi + 0xd4]
call fcn.004087a4
mov edi, eax
cmp edi, 0
jl 0x525825
push 0
mov eax, dword [esi + 0xd4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x52580e
mov eax, dword [esi + 0x94]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x525854
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x94]
call fcn.00493458
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x525834
inc dword [esi + 0x98]
jmp 0x525911
cmp dword [esi + 0x98], 0
jle 0x525911
dec dword [esi + 0x98]
cmp dword [esi + 0x98], 0
jne 0x525911
cmp dword [esi + 0x40], 0
je 0x5258bc
mov eax, dword [0x72943c]
cmp byte [eax + 0xcf], 0
je 0x5258bc
mov eax, dword [esi + 0xd4]
call fcn.004087a4
mov edi, eax
cmp edi, 0
jl 0x5258bc
push 5
mov eax, dword [esi + 0xd4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x5258a5
mov eax, dword [esi + 0x94]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x5258eb
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x94]
call fcn.00493458
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x5258cb
mov eax, dword [esi + 0x94]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd4]
mov ecx, 1
mov edx, dword [0x51ae8c]
call fcn.00408964
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x5264cc
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa8], 0
je 0x526537
cmp byte [ebx + 0xcf], 0
jne 0x526537
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00406ebc
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x526524
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x526544
mov eax, esi
mov edx, dword [ebx + 0x88]
call fcn.00406d80
jmp 0x526544
mov eax, esi
mov edx, dword [ebx + 0x88]
call fcn.00406d80
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x527b5c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x80]
test esi, esi
je 0x527bca
mov eax, esi
call fcn.0050db54
test al, al
je 0x527bca
mov eax, dword [ebx + 0x80]
call fcn.0050d7a8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x527bca
mov eax, dword [ebx + 0x80]
mov edx, dword [eax]
call dword [edx + 0xec]
test al, al
je 0x527bbe
push 0
mov eax, dword [ebx + 0x80]
call fcn.0050d7a8
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x80]
call fcn.00504be0
jmp 0x527bca
mov cl, 1
mov edx, dword [ebx + 0x70]
mov eax, ebx
call fcn.005279a8
pop esi
pop ebx
ret
Function at 0x52909c
Capabilities:
Get session information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb4
xor eax, eax
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x24c], eax
xor eax, eax
push ebp
push 0x529228
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
xor edx, edx
mov eax, 2
call fcn.00528f04
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x52920a
xor eax, eax
push ebp
push 0x529203
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x244]
xor ecx, ecx
mov edx, 0x22c
call fcn.00403b8c
mov dword [ebp - 0x244], 0x22c
lea edx, [ebp - 0x244]
mov eax, dword [ebp - 8]
call fcn.00528f38
mov dword [ebp - 0xc], eax
jmp 0x5291e2
lea eax, [ebp - 0x24c]
lea edx, [ebp - 0x220]
mov ecx, 0x104
call fcn.00406f90
mov eax, dword [ebp - 0x24c]
lea edx, [ebp - 0x248]
call fcn.0047ad0c
mov edx, dword [ebp - 0x248]
mov eax, 0x529244
call fcn.004790b8
test al, al
je 0x5291d1
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x23c]
push eax
call sub.Kernel32.dll_ProcessIdToSessionId
test eax, eax
je 0x5291d1
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 8
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [0x7071f4]
push eax
call sub.wtsapi32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x5291d1
xor eax, eax
push ebp
push 0x5291ca
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
cmp byte [eax], 0
jne 0x5291b3
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
call fcn.00405448
call fcn.00405448
jmp 0x52920a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5291d1
mov eax, dword [ebp - 0x14]
push eax
call sub.wtsapi32.dll_WTSFreeMemory
ret
lea edx, [ebp - 0x244]
mov eax, dword [ebp - 8]
call fcn.00528f6c
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x52911f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52920a
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52922f
lea eax, [ebp - 0x24c]
mov edx, 2
call fcn.00406d78
ret
Function at 0x529260
Capabilities:
Get session information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
cmp dword [0x7071f8], 0
je 0x52927a
call dword [0x7071f8]
mov dword [ebp - 4], eax
jmp 0x52927f
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x5292ed
cmp dword [ebp - 4], 0xffffffff
je 0x5292ed
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 8
mov eax, dword [ebp - 4]
push eax
mov eax, dword [0x7071f4]
push eax
call sub.wtsapi32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x5292e8
xor eax, eax
push ebp
push 0x5292e1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
cmp byte [eax], 0
jne 0x5292c5
call fcn.00405448
jmp 0x529301
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5292ed
mov eax, dword [ebp - 8]
push eax
call sub.wtsapi32.dll_WTSFreeMemory
ret
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x5292f9
cmp dword [ebp - 4], 0xffffffff
jne 0x529301
call fcn.0052909c
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x529708
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7dc
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406d68
xor eax, eax
push ebp
push 0x5298aa
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406d80
mov edx, dword [ebp - 4]
mov eax, 0x5298c4
call fcn.00529494
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x52979c
xor eax, eax
push ebp
push 0x529795
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x20]
call fcn.005298e0
test al, al
je 0x529774
call fcn.00405448
jmp 0x529894
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406d80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52979c
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
mov dword [ebp - 0x10], 0x802
lea eax, [ebp - 0x822]
xor ecx, ecx
mov edx, dword [ebp - 0x10]
call fcn.00403b8c
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x822]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.00406e0c
push eax
push 0
call sub.advapi32.dll_LookupAccountNameW
cmp dword [ebp - 0x14], 0
jbe 0x529894
mov eax, dword [ebp - 0x14]
call fcn.004030fc
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x52988d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov edx, dword [ebp - 0x14]
call fcn.00403b8c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x822]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
call fcn.00406e0c
push eax
push 0
call sub.advapi32.dll_LookupAccountNameW
test eax, eax
jne 0x52984f
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
call fcn.00403118
xor eax, eax
mov dword [ebp - 0x1c], eax
call fcn.00405448
jmp 0x529894
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_ConvertSidToStringSidW
test eax, eax
je 0x529874
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
call fcn.00406f3c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_LocalFree
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x529894
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
call fcn.00403118
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5298b1
lea eax, [ebp - 4]
call fcn.00406d70
ret
Function at 0x529bf4
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
xor edx, edx
call fcn.00406d80
cmp byte [0x7294bc], 0
je 0x529c31
xor eax, eax
call fcn.0052968c
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x529ca4
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.00529cc4
jmp 0x529ca4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 5
call fcn.00529260
push eax
mov eax, dword [0x7071f4]
push eax
call sub.wtsapi32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x529c81
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00406f3c
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, 0x529cb4
call fcn.004790b8
test al, al
je 0x529c78
mov eax, dword [ebp - 4]
xor edx, edx
call fcn.00406d80
mov eax, dword [ebp - 8]
push eax
call sub.wtsapi32.dll_WTSFreeMemory
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x529ca4
xor eax, eax
call fcn.0052968c
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x529ca4
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.00529cc4
mov esp, ebp
pop ebp
ret

Function at 0x52a260
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x52a366
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.0047aa74
cmp dword [ebp - 0x10], 0
je 0x52a2a4
mov eax, dword [ebp - 0x10]
mov edx, 0x52a380
call fcn.00407534
jne 0x52a2b8
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov eax, dword [ebp - 8]
mov edx, 0x52a390
call fcn.00407264
jmp 0x52a322
xor eax, eax
push ebp
push 0x52a2f2
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
call fcn.0047a4bc
test al, al
jne 0x52a2e8
mov eax, dword [ebp - 0x10]
call fcn.0047a4e0
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x65
jne 0x52a2cb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52a322
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
call fcn.00406e0c
push eax
call sub.kernel32.dll_GetFileAttributesW
test al, 1
setne byte [ebp - 0x19]
cmp byte [ebp - 0x19], 0
je 0x52a350
mov eax, dword [ebp - 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0047a6b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52a36d
lea eax, [ebp - 0x10]
call fcn.00406d70
ret
Function at 0x52becc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
mov dword [ebp - 4], eax
push 0xff
lea eax, [ebp - 0x204]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x204]
mov ecx, pe_nt_image_headers32
call fcn.00406f90
mov esp, ebp
pop ebp
ret

Function at 0x52bfd0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x52bfd8
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406d68
mov eax, dword [ebp - 8]
call fcn.00406d68
xor eax, eax
push ebp
push 0x52c182
push dword fs:[eax]
mov dword fs:[eax], esp
mov al, byte [0x52c190]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
call fcn.0052becc
mov ecx, dword [ebp - 0x14]
mov edx, 0x52c1a0
mov eax, dword [ebp - 4]
call fcn.004838d0
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 4]
call fcn.00406dd4
mov al, byte [0x52c190]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
call fcn.0052ca88
mov ecx, dword [ebp - 0x1c]
mov edx, 0x52c1c0
mov eax, dword [ebp - 4]
call fcn.004838d0
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 4]
call fcn.00406dd4
mov al, byte [0x52c190]
push eax
lea eax, [ebp - 0x20]
push eax
lea edx, [ebp - 0x28]
xor eax, eax
call fcn.00403538
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
call fcn.0047aa38
mov ecx, dword [ebp - 0x24]
mov edx, 0x52c1e0
mov eax, dword [ebp - 4]
call fcn.004838d0
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 4]
call fcn.00406dd4
mov al, byte [0x52c190]
push eax
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x34]
xor eax, eax
call fcn.00403538
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
call fcn.0047aa38
mov ecx, dword [ebp - 0x30]
mov edx, 0x52c1fc
mov eax, dword [ebp - 4]
call fcn.004838d0
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 4]
call fcn.00406dd4
lea eax, [ebp - 0x3c]
push eax
mov ecx, 0xc
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0040753c
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x38]
call fcn.00478d14
mov eax, dword [ebp - 0x38]
mov edx, 0x52c218
call fcn.00407534
je 0x52c125
push 1
push 0
mov eax, dword [ebp - 8]
call fcn.00406e0c
push eax
mov eax, dword [ebp - 4]
call fcn.00406e0c
push eax
push 0x52c234
push 0
call sub.shell32.dll_ShellExecuteW
jmp 0x52c167
lea eax, [ebp - 0x40]
push eax
mov ecx, 0xff
mov edx, 0xe
mov eax, dword [ebp - 4]
call fcn.0040753c
mov edx, dword [ebp - 0x40]
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 8]
call fcn.00407264
push 1
push 0
mov eax, dword [ebp - 0xc]
call fcn.00406e0c
push eax
push 0x52c240
push 0x52c234
push 0
call sub.shell32.dll_ShellExecuteW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52c189
lea eax, [ebp - 0x40]
mov edx, 0x10
call fcn.00406d78
ret
Function at 0x52c35c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff998
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406d68
xor eax, eax
push ebp
push 0x52c480
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x412]
mov ecx, 0x1ff
mov edx, dword [ebp - 4]
call fcn.0047b4f0
lea edx, [ebp - 0x10]
xor eax, eax
call fcn.004078f8
lea eax, [ebp - 0x612]
mov ecx, 0xfe
mov edx, dword [ebp - 0x10]
call fcn.0047b4f0
lea eax, [ebp - 0x658]
xor ecx, ecx
mov edx, 0x44
call fcn.00403b8c
mov dword [ebp - 0x658], 0x44
mov dword [ebp - 0x62c], 1
mov ax, word [ebp - 8]
mov word [ebp - 0x628], ax
xor eax, eax
mov dword [ebp - 0x668], eax
xor eax, eax
mov dword [ebp - 0x664], eax
lea eax, [ebp - 0x668]
push eax
lea eax, [ebp - 0x658]
push eax
push 0
push 0
push 0x30
push 0
push 0
push 0
lea eax, [ebp - 0x412]
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x52c42c
mov dword [ebp - 0xc], 0xffffffff
jmp 0x52c462
push 0xffffffffffffffff
mov eax, dword [ebp - 0x668]
push eax
call sub.kernel32.dll_WaitForSingleObject
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x668]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x668]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x664]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52c487
lea eax, [ebp - 0x10]
call fcn.00406d70
lea eax, [ebp - 4]
call fcn.00406d70
ret

Function at 0x52c490
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x52c50e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 0xff
mov edx, dword [ebp - 0xc]
inc edx
lea eax, [ebp - 8]
call fcn.00406ccc
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004068c4
push eax
call sub.advapi32.dll_GetUserNameW
test eax, eax
je 0x52c4ee
mov edx, dword [ebp - 0xc]
dec edx
lea eax, [ebp - 8]
call fcn.00406ccc
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00406ff8
jmp 0x52c4f8
mov eax, dword [ebp - 4]
xor edx, edx
call fcn.00406d80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52c515
lea eax, [ebp - 8]
call fcn.004066c4
ret
Function at 0x52c51c
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeac
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x52c79a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.00406dd4
lea eax, [ebp - 0x130]
xor ecx, ecx
mov edx, 0x11c
call fcn.00403b8c
mov dword [ebp - 0x130], 0x11c
lea eax, [ebp - 0x130]
push eax
call sub.kernel32.dll_GetVersionExW
lea eax, [ebp - 0x154]
xor ecx, ecx
mov edx, 0x24
call fcn.00403b8c
push 0x52c7a8
push 0x52c7d0
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.0040a5cc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x52c5ac
lea eax, [ebp - 0x154]
push eax
call dword [ebp - 0x10]
jmp 0x52c5b8
lea eax, [ebp - 0x154]
push eax
call sub.kernel32.dll_GetSystemInfo_1
cmp dword [ebp - 0x120], 2
jne 0x52c779
cmp byte [ebp - 1], 0
je 0x52c5f6
call fcn.0052c948
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 4]
mov dword [ebp - 0x128], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x12c]
add eax, 0xfffffffd
sub eax, 2
jae 0x52c611
lea eax, [ebp - 0xc]
mov edx, 0x52c7f8
call fcn.00406dd4
cmp dword [ebp - 0x12c], 5
jne 0x52c635
cmp dword [ebp - 0x128], 0
jne 0x52c635
lea eax, [ebp - 0xc]
mov edx, 0x52c81c
call fcn.00406dd4
jmp 0x52c779
cmp dword [ebp - 0x12c], 5
jne 0x52c659
cmp dword [ebp - 0x128], 1
jne 0x52c659
lea eax, [ebp - 0xc]
mov edx, 0x52c844
call fcn.00406dd4
jmp 0x52c779
cmp dword [ebp - 0x12c], 5
jne 0x52c69f
cmp dword [ebp - 0x128], 2
jne 0x52c69f
cmp byte [ebp - 0x16], 1
jne 0x52c68d
cmp word [ebp - 0x154], 9
jne 0x52c68d
lea eax, [ebp - 0xc]
mov edx, 0x52c844
call fcn.00406dd4
jmp 0x52c779
lea eax, [ebp - 0xc]
mov edx, 0x52c868
call fcn.00406dd4
jmp 0x52c779
cmp dword [ebp - 0x12c], 6
jne 0x52c6c3
cmp dword [ebp - 0x128], 0
jne 0x52c6c3
lea eax, [ebp - 0xc]
mov edx, 0x52c89c
call fcn.00406dd4
jmp 0x52c779
cmp dword [ebp - 0x12c], 6
jne 0x52c6e7
cmp dword [ebp - 0x128], 1
jne 0x52c6e7
lea eax, [ebp - 0xc]
mov edx, 0x52c8c4
call fcn.00406dd4
jmp 0x52c779
cmp dword [ebp - 0x12c], 6
jne 0x52c70d
mov eax, dword [ebp - 0x128]
add eax, 0xfffffffe
sub eax, 2
jae 0x52c70d
lea eax, [ebp - 0xc]
mov edx, 0x52c8e4
call fcn.00406dd4
jmp 0x52c779
cmp dword [ebp - 0x12c], 6
jne 0x52c730
mov eax, dword [ebp - 0x128]
sub eax, 4
jne 0x52c730
lea eax, [ebp - 0xc]
mov edx, 0x52c904
call fcn.00406dd4
jmp 0x52c779
cmp dword [ebp - 0x12c], 0xa
jne 0x52c763
cmp dword [ebp - 0x124], 0x55f0
jae 0x52c754
lea eax, [ebp - 0xc]
mov edx, 0x52c904
call fcn.00406dd4
jmp 0x52c779
lea eax, [ebp - 0xc]
mov edx, 0x52c928
call fcn.00406dd4
jmp 0x52c779
cmp dword [ebp - 0x12c], 0xb
jb 0x52c779
lea eax, [ebp - 0xc]
mov edx, 0x52c928
call fcn.00406dd4
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
call fcn.00406d80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52c7a1
lea eax, [ebp - 0xc]
call fcn.00406d70
ret
Function at 0x52ca88
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
mov dword [ebp - 4], eax
push 0xff
lea eax, [ebp - 0x204]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x204]
mov ecx, pe_nt_image_headers32
call fcn.00406f90
mov esp, ebp
pop ebp
ret