joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47cfdd
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x599896
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc8
push ebx
push esi
xor esi, esi
push edi
mov ebx, ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], esi
call fcn.00482833
mov dword [esp + 0x1c], eax
call fcn.0048278a
mov dword [esp + 0x10], eax
lea eax, [esp + 0x30]
call fcn.004947bf
lea edi, [esp + 0x40]
mov dword [esp + 0xdc], esi
call fcn.00433869
mov byte [esp + 0xdc], 1
push dword [0x61d590]
mov esi, 0x5e6b00
push esi
lea eax, [esp + 0x98]
call fcn.0043221a
push dword [0x61d594]
lea eax, [esp + 0xa0]
push esi
call fcn.0043221a
add esp, 0x10
push dword [0x61d5b8]
lea eax, [esp + 0xa0]
push eax
call fcn.00432279
push dword [0x61d5bc]
lea eax, [esp + 0xa8]
push eax
call fcn.00432279
call fcn.004828dc
mov dword [esp + 0x58], eax
lea eax, [esp + 0x18]
push eax
call fcn.00484e12
pop ecx
mov byte [esp + 0xdc], 2
push dword [eax]
lea eax, [esp + 0xa4]
push eax
call fcn.00432279
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.004011c0
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x1c]
mov dword [esp + 0x60], 3
cdq
mov dword [esp + 0x20], vtable.cf::time::KTimeSpan.0
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov byte [esp + 0xdc], 3
mov ecx, dword [ebx + 0xc]
xor esi, esi
cmp ecx, esi
je 0x47d137
mov eax, dword [esp + 0x10]
xor edx, edx
div ecx
push esi
push 0x15180
push dword [esp + 0x34]
push dword [esp + 0x34]
mov edi, edx
imul edi, dword [ebx + 0x10]
add edi, dword [ebx + 8]
call fcn.004a8f30
cmp eax, edi
jge 0x47d12f
mov dword [esp + 0xc], 0x165
jmp 0x47d137
mov dword [esp + 0x14], 1
push esi
push dword [esp + 0x14]
lea ecx, [esp + 0x48]
push dword [esp + 0x14]
push 1
push 0x1e
call fcn.00433be1
cmp dword [esp + 0x14], esi
je 0x47d15b
cmp dword [ebx + 0x14], esi
je 0x47d15b
xor esi, esi
inc esi
lea ecx, [esp + 0x40]
call fcn.00433945
mov ecx, dword [esp + 0xd4]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47d67e
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x599896
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc8
and dword [esp], 0
push ebx
push esi
push edi
mov ebx, ecx
mov dword [esp + 0x14], 1
call fcn.00482833
mov dword [esp + 0x1c], eax
call fcn.0048278a
mov dword [esp + 0x10], eax
lea eax, [esp + 0x30]
call fcn.004947bf
and dword [esp + 0xdc], 0
lea edi, [esp + 0x40]
call fcn.00433869
mov byte [esp + 0xdc], 1
push dword [0x61d590]
mov esi, 0x5e6b00
push esi
lea eax, [esp + 0x98]
call fcn.0043221a
push dword [0x61d594]
lea eax, [esp + 0xa0]
push esi
call fcn.0043221a
add esp, 0x10
push dword [0x61d5b8]
lea eax, [esp + 0xa0]
push eax
call fcn.00432279
push dword [0x61d5bc]
lea eax, [esp + 0xa8]
push eax
call fcn.00432279
call fcn.004828dc
mov dword [esp + 0x58], eax
lea eax, [esp + 0x18]
push eax
call fcn.00484e12
pop ecx
mov byte [esp + 0xdc], 2
push dword [eax]
lea eax, [esp + 0xa4]
push eax
call fcn.00432279
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.004011c0
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x1c]
mov dword [esp + 0x60], 3
cdq
mov dword [esp + 0x20], vtable.cf::time::KTimeSpan.0
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
xor esi, esi
push esi
push 0x15180
push edx
push eax
mov byte [esp + 0xec], 3
call fcn.004a8f30
cmp eax, dword [ebx + 0xc]
jg 0x47d7bf
mov eax, dword [esp + 0x10]
cmp eax, dword [ebx + 8]
jb 0x47d7bf
mov dword [esp + 0xc], 0x167
jmp 0x47d7c3
mov dword [esp + 0x14], esi
push esi
push dword [esp + 0x14]
lea ecx, [esp + 0x48]
push dword [esp + 0x14]
push 1
push 0x1e
call fcn.00433be1
lea ecx, [esp + 0x40]
call fcn.00433945
mov ecx, dword [esp + 0xd4]
mov eax, dword [esp + 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x47f80c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ecx
je 0x47f8a7
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
push ecx
lea edx, [ebp - 8]
push edx
push ecx
mov ebx, str.ProgramPath
push ebx
push eax
call edi
cmp dword [ebp - 8], 1
je 0x47f84e
cmp dword [ebp - 8], 2
jne 0x47f8a5
push esi
mov esi, dword [ebp + 0xc]
call fcn.00401462
mov eax, dword [ebp - 4]
shr eax, 1
inc eax
push eax
call fcn.004011f9
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push 0
push ebx
push dword [eax]
call edi
test eax, eax
jne 0x47f88d
mov eax, dword [ebp - 4]
shr eax, 1
and word [esi + eax*2], 0
mov dword [ebp - 0xc], 1
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x47f89d
push eax
call fcn.0049a28b
pop ecx
mov edx, esi
call fcn.004011d8
pop esi
pop edi
pop ebx
mov eax, dword [ebp - 0xc]
leave
ret 8
Function at 0x47fd59
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x47fd70
test al, 0x10
jne 0x47fd70
xor eax, eax
inc eax
ret
xor eax, eax
ret

Function at 0x480154
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push str.DownloadControl____Start
mov esi, 0x61d618
mov edi, eax
call fcn.004867a7
pop ecx
mov eax, edi
call fcn.0047feda
test eax, eax
jne 0x48018f
push str.DownloadControl_curlExecuter_Invalid
call fcn.004867a7
pop ecx
mov eax, 0x100
jmp 0x4802d9
push dword [ebp + 8]
push edi
call fcn.0048001b
mov ebx, eax
test ebx, ebx
je 0x4801b0
push str.DownloadControl_GetDownloadFileLength_Failure
call fcn.004867a7
pop ecx
mov eax, ebx
jmp 0x4802d9
push dword [edi + 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x4801c7
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ebx, [edi + 0x10]
mov eax, dword [ebx]
test eax, eax
mov dword [ebp - 0x10], ebx
je 0x4801dd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebx], 0
push dword [edi + 4]
call fcn.0048116d
test eax, eax
pop ecx
je 0x4801f5
push dword [edi + 4]
push ebx
call fcn.0047fd73
jmp 0x4801fa
mov eax, 0x80004005
test eax, eax
jge 0x480213
push str.DownloadControl_CreateFile_Failure
call fcn.004867a7
pop ecx
mov eax, 0x102
jmp 0x4802d9
and dword [ebp - 4], 0
mov dword [ebp - 0xc], 0x103
mov dword [ebp - 8], 1
lea eax, [ebp - 4]
push eax
mov ebx, edi
call fcn.004802e0
push dword [ebp - 4]
mov ebx, eax
push dword [edi + 0xc]
push dword [ebp - 8]
push ebx
push str.DownloadControl____ExE_CurlCode___d__Count___d__CurrentSize___d__ResCode___d
call fcn.004867a7
add esp, 0x14
test ebx, ebx
jne 0x48025f
cmp dword [ebp - 4], 0xce
je 0x48027d
cmp dword [ebp - 4], 0xc8
je 0x48027d
cmp ebx, 0x1c
je 0x48026f
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x25d
jle 0x480225
jmp 0x480281
and dword [ebp - 0xc], 0
push dword [ebp - 0x10]
lea edi, [ebp - 0x18]
call fcn.0047fe08
push dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
push dword [ebp - 0x18]
call fcn.0047fe4b
mov eax, dword [esi]
test eax, eax
je 0x4802aa
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4802be
test ebx, ebx
je 0x4802b9
mov dword [eax], ebx
jmp 0x4802be
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
push dword [ebp - 8]
mov esi, 0x61d618
push dword [ebp - 0xc]
push str.DownloadControl____End_HRESULT___d__Count___d
call fcn.004867a7
mov eax, dword [ebp - 0xc]
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x480a6a
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
je 0x480aee
push edi
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x480aed
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
inc eax
push eax
call fcn.00498b00
mov esi, eax
cmp esi, ebx
pop ecx
je 0x480ae5
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x480ade
mov eax, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
mov byte [esi + eax], bl
call fcn.00430b43
push esi
call fcn.0049a3fa
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
mov eax, dword [ebp - 8]
pop ebx
leave
ret

Function at 0x480af4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
xor edi, edi
push edi
push edi
push 2
push edi
push 1
push 0x40000000
push dword [ebp + 8]
mov esi, eax
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x480b74
mov eax, dword [esi]
push ebx
mov dword [ebp - 4], edi
mov ebx, dword [eax - 0xc]
push edi
lea eax, [ebp - 4]
push eax
push ebx
call fcn.0043d0d9
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x10], eax
mov eax, dword [esi]
cmp eax, edi
jne 0x480b4b
xor eax, eax
jmp 0x480b52
push eax
call fcn.0049c030
pop ecx
mov edx, esi
call fcn.00418c35
cmp dword [ebp - 0x10], edi
je 0x480b6a
cmp dword [ebp - 4], ebx
jne 0x480b6a
mov dword [ebp - 0xc], 1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, dword [ebp - 0xc]
pop edi
pop esi
leave
ret
Function at 0x480b7b
Capabilities:
Get disk information

Disassembly:
mov eax, 0x5969fb
call fcn.00593620
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
xor ebx, ebx
push ebx
push ebx
call edi
mov esi, eax
cmp esi, ebx
jne 0x480ba4
xor eax, eax
jmp 0x480c51
xor ecx, ecx
push 2
pop edx
lea eax, [esi + 1]
mul edx
seto cl
mov dword [ebp - 0x18], ebx
neg ecx
or ecx, eax
push ecx
call fcn.00498b00
mov ebx, eax
test ebx, ebx
pop ecx
je 0x480c4e
lea eax, [esi + esi + 2]
push eax
push 0
push ebx
call fcn.0049a380
add esp, 0xc
push ebx
push esi
call edi
mov esi, eax
mov eax, dword [0x619864]
mov ecx, 0x619864
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
shr esi, 2
test esi, esi
mov dword [ebp - 0x14], ebx
jle 0x480c35
mov dword [ebp - 0x18], esi
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
call fcn.00432279
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x480c30
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.004322e2
add dword [ebp - 0x14], 8
lea esi, [ebp - 0x10]
call fcn.00401462
dec dword [ebp - 0x18]
jne 0x480c03
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 0x18], 1
call fcn.004011c0
push ebx
call fcn.0049a3fa
pop ecx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x480c60
Capabilities:
Get disk information
Get storage device properties

Disassembly:
mov eax, 0x595822
call fcn.00593620
sub esp, 0x40
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
xor esi, esi
cmp ecx, esi
jne 0x480c84
xor eax, eax
jmp 0x480d2c
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x480c7d
mov eax, dword [0x619864]
mov ecx, 0x619864
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], esi
push dword [edi]
lea eax, [ebp - 0x14]
push 0x5eea70
call fcn.0043221a
pop ecx
pop ecx
push esi
push esi
push 3
push esi
push 3
push SysReAllocStringLen
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x480d1f
push 9
pop ecx
push 0x28
xor eax, eax
mov dword [ebp - 0x4c], esi
lea edi, [ebp - 0x48]
rep stosd dword es:[edi], eax
pop eax
push esi
lea ecx, [ebp - 0x18]
push ecx
push eax
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x4c]
push eax
push 0xc
lea eax, [ebp - 0x24]
push eax
push 0x2d1400
push ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x480d18
cmp dword [ebp - 0x30], 7
je 0x480d18
xor esi, esi
inc esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004011c0
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x480e4d
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov eax, 0x5969fb
call fcn.00593620
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0043229f
push dword [ebp + 8]
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x480e98
xor esi, esi
inc esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004011c0
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x480e79
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ebx, 0xb7
cmp eax, ebx
je 0x480e79
lea ecx, [ebp - 0x10]
call fcn.00480d7f
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jne 0x480ecf
xor esi, esi
jmp 0x480e7c
push eax
call fcn.00480e4d
test eax, eax
pop ecx
je 0x480ecb
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x480e79
call edi
cmp eax, ebx
jne 0x480ecb
jmp 0x480e79

Function at 0x480eed
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x5969fb
call fcn.00593620
sub esp, 0x64
push ebx
push esi
push edi
xor ebx, ebx
push 0x40
lea eax, [ebp - 0x6c]
push ebx
push eax
mov esi, ecx
mov dword [ebp - 0x14], ebx
call fcn.0049a380
xor eax, eax
mov dword [ebp - 0x24], ebx
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x619864]
xor edi, edi
inc edi
add esp, 0xc
mov ecx, 0x619864
mov dword [ebp - 0x70], 0x44
mov dword [ebp - 0x44], edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push dword [ebp + 8]
mov dword [ebp - 4], ebx
push str.__s___s
call fcn.0043221a
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push ebx
push ebx
neg esi
push ebx
sbb esi, esi
push ebx
and esi, 0xa
mov word [ebp - 0x40], si
mov esi, dword [ebp - 0x10]
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x480f93
cmp dword [ebp + 0x10], ebx
je 0x480f90
push dword [ebp + 0x10]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x14], edi
cmp dword [ebp - 0x24], ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x480fa6
push dword [ebp - 0x24]
call edi
mov dword [ebp - 0x24], ebx
cmp dword [ebp - 0x20], ebx
je 0x480fb3
push dword [ebp - 0x20]
call edi
mov dword [ebp - 0x20], ebx
lea eax, [esi - 0x10]
call fcn.004011c0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x48116d
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov eax, 0x596233
call fcn.00593620
sub esp, 0xc
mov eax, dword [0x619864]
push ebx
push esi
push edi
mov ecx, 0x619864
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x14], edi
push dword [ebp + 8]
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
call fcn.0043229f
push 0x5c
push 3
pop ecx
lea esi, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004320b1
mov esi, eax
inc esi
je 0x48120d
mov ecx, esi
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x10]
call fcn.004320f9
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004013b4
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004011c0
mov edi, dword [ebp - 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4811fc
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
test ebx, ebx
je 0x481210
mov ecx, esi
push 0x5c
lea esi, [ebp - 0x10]
call fcn.004320b1
inc eax
mov esi, eax
jne 0x4811b6
xor ebx, ebx
inc ebx
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004011c0
lea eax, [edi - 0x10]
call fcn.004011c0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x48178e
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x595652
call fcn.00593620
sub esp, 0x68
push ebx
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov ebx, ecx
jne 0x4817ad
xor eax, eax
jmp 0x4818f0
mov eax, dword [0x619864]
push esi
mov ecx, 0x619864
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push str.__s___s
call fcn.0043221a
add esp, 0xc
lea esi, [ebp - 0x10]
mov dword [ebp - 0x10], edi
call fcn.0044edeb
test eax, eax
jne 0x4818d3
push 0x40
push eax
lea eax, [ebp - 0x70]
push eax
mov dword [ebp - 0x74], 0x44
call fcn.0049a380
and dword [ebp - 0x30], 0
xor eax, eax
add esp, 0xc
neg ebx
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
sbb ebx, ebx
and ebx, 5
stosd dword es:[edi], eax
mov word [ebp - 0x44], bx
xor ebx, ebx
push str.userenv.dll
stosd dword es:[edi], eax
mov dword [ebp - 0x6c], str.Winsta0Default
mov dword [ebp - 0x20], 0x30
mov dword [ebp + 8], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x48187d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateEnvironmentBlock
push eax
call edi
push str.DestroyEnvironmentBlock
push dword [ebp - 0x18]
mov esi, eax
call edi
cmp esi, ebx
mov dword [ebp - 0x14], eax
je 0x48187d
push ebx
push dword [ebp - 0x10]
lea eax, [ebp + 8]
push eax
call esi
test eax, eax
je 0x48187a
mov dword [ebp - 0x20], 0x430
jmp 0x48187d
mov dword [ebp + 8], ebx
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push dword [ebp + 8]
push dword [ebp - 0x20]
push ebx
push ebx
push ebx
push dword [ebp - 0x1c]
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
cmp dword [ebp - 0x30], ebx
mov edi, eax
je 0x4818ac
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c], ebx
je 0x4818ba
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], ebx
je 0x4818c5
push dword [ebp + 8]
call dword [ebp - 0x14]
cmp dword [ebp - 0x18], ebx
je 0x4818d3
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x10], 0
pop esi
je 0x4818e3
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004011c0
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4818fe
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x86c
push ebx
push esi
push edi
xor esi, esi
push 0x40
lea eax, [ebp - 0x64]
push esi
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x68], 0x44
call fcn.0049a380
xor eax, eax
mov dword [ebp - 0x1c], esi
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
xor ebx, ebx
mov dword [ebp - 0xc], esi
call fcn.0048262b
add esp, 0x10
test eax, eax
je 0x4819e8
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
call fcn.004826d9
push 0x7fe
lea eax, [ebp - 0x866]
push esi
push eax
mov word [ebp - 0x868], si
call fcn.0049a380
push dword [ebp + 0xc]
lea eax, [ebp - 0x868]
push dword [ebp + 8]
push str.__s___s
push 0x400
push eax
call fcn.0049a2a1
add esp, 0x28
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp ebx, esi
je 0x4819c9
push str.CreateProcessWithTokenW
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x4819c9
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x68]
push ecx
push esi
push esi
push esi
lea ecx, [ebp - 0x868]
push ecx
push esi
push esi
push dword [ebp - 4]
call eax
jmp 0x4819e5
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x868]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 8], eax
cmp dword [ebp - 4], esi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4819fb
push dword [ebp - 4]
call edi
mov dword [ebp - 4], esi
cmp dword [ebp - 0x1c], esi
je 0x481a08
push dword [ebp - 0x1c]
call edi
mov dword [ebp - 0x1c], esi
cmp dword [ebp - 0x18], esi
je 0x481a15
push dword [ebp - 0x18]
call edi
mov dword [ebp - 0x18], esi
cmp ebx, esi
je 0x481a20
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x481a28
Capabilities:
Check os version
Create process on windows

Disassembly:
mov eax, 0x596b69
call fcn.00593620
sub esp, 0x178
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
jne 0x481a47
xor eax, eax
jmp 0x481bfe
mov eax, dword [0x619864]
push esi
mov ecx, 0x619864
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push str.__s___s
call fcn.0043221a
push 0x110
lea eax, [ebp - 0x180]
push ebx
push eax
call fcn.0049a380
add esp, 0x18
lea eax, [ebp - 0x184]
push eax
mov dword [ebp - 0x184], 0x114
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x481aad
cmp dword [ebp - 0x180], 6
jne 0x481aad
inc esi
cmp esi, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
lea esi, [ebp - 0x10]
jne 0x481ac1
call fcn.0044edeb
jmp 0x481ac6
call fcn.0044ed9b
cmp eax, ebx
jne 0x481be1
push edi
push 0x40
lea eax, [ebp - 0x6c]
push ebx
push eax
mov dword [ebp - 0x70], 0x44
call fcn.0049a380
push dword [ebp - 0x10]
xor eax, eax
mov dword [ebp - 0x2c], ebx
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 0x10]
neg eax
sbb eax, eax
and eax, 5
mov dword [ebp - 0x44], 1
mov word [ebp - 0x40], ax
call fcn.0044ee56
add esp, 0x10
test al, al
jne 0x481b2c
cmp dword [ebp - 0x10], ebx
je 0x481b22
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x10]
push eax
call fcn.0044efd0
pop ecx
push str.userenv.dll
mov dword [ebp - 0x68], str.Winsta0Default
mov dword [ebp - 0x14], 0x30
mov dword [ebp + 8], ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x481b8b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateEnvironmentBlock
push eax
call edi
push str.DestroyEnvironmentBlock
push dword [ebp - 0x1c]
mov esi, eax
call edi
cmp esi, ebx
mov edi, eax
je 0x481b8b
push ebx
push dword [ebp - 0x10]
lea eax, [ebp + 8]
push eax
call esi
test eax, eax
je 0x481b88
mov dword [ebp - 0x14], 0x430
jmp 0x481b8b
mov dword [ebp + 8], ebx
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push dword [ebp + 8]
push dword [ebp - 0x14]
push ebx
push ebx
push ebx
push dword [ebp - 0x18]
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
cmp dword [ebp - 0x2c], ebx
mov dword [ebp - 0x14], eax
je 0x481bbb
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x28], ebx
je 0x481bc9
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0x481bd2
push dword [ebp + 8]
call edi
cmp dword [ebp - 0x1c], ebx
pop edi
je 0x481be1
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x10], ebx
pop esi
je 0x481bf0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004011c0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret