joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4dcc00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54b3e8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x592174]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov esi, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x3c]
push eax
push 2
push 0xffffffffffffffff
push 0xffff8000
movlpd qword [ebp - 0x3c], xmm0
call fcn.00435250
test al, al
jne 0x4dcc60
mov eax, 1
jmp 0x4dcddd
push 0x10000
call fcn.0050b71f
mov ebx, eax
mov dword [ebp - 0x18], 0
add esp, 4
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0
push 0x10000
push 0
push ebx
call fcn.0050d5d0
mov eax, dword [esi]
add esp, 0xc
mov dword [ebp - 0x1c], 0
test eax, eax
je 0x4dcdb6
test ebx, ebx
je 0x4dcdb6
cmp dword [eax], 0xffffffff
je 0x4dcdb6
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0x8000
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4dcdb6
mov esi, dword [ebp - 0x20]
mov ecx, 0x8000
xor ebx, ebx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], ecx
add esi, ecx
nop word [eax + eax]
cmp byte [edi + 0x9c], 0
jne 0x4dcdac
lea edx, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push edx
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push edx
push ecx
mov ecx, dword [ebp - 0x34]
lea eax, [esi + ebx]
push eax
call fcn.004eb8b0
test al, al
je 0x4dcd9f
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x4dcd52
mov eax, dword [edi + 0xc0]
test eax, eax
je 0x4dcd41
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [edi + 0x9c], 0
jne 0x4dcdac
inc dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
jmp 0x4dcd5c
add ebx, eax
cmp ebx, 0x8000
je 0x4dcd6c
cmp dword [ebp - 0x28], 0xf
ja 0x4dcd95
mov ecx, dword [ebp - 0x2c]
sub ecx, eax
mov dword [ebp - 0x2c], ecx
jne 0x4dccf0
mov ebx, dword [ebp - 0x20]
mov edx, 0x7ffc
mov ecx, ebx
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x4dcd8e
add ecx, 4
add esi, 4
sub edx, 4
jae 0x4dcd76
mov esi, 4
jmp 0x4dcdc7
mov esi, 5
jmp 0x4dcdc7
mov ebx, dword [ebp - 0x20]
mov esi, 3
jmp 0x4dcdc7
mov eax, dword [ebp - 0x30]
mov esi, 3
mov ebx, dword [ebp - 0x20]
jmp 0x4dcdc1
mov ebx, dword [ebp - 0x20]
mov esi, 2
jmp 0x4dcdc7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 1
mov dword [edi + 0xb0], eax
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x4dcddb
push ebx
call fcn.0050b728
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0050b0b7
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4ec9c0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x592174]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
mov dword [esp + 4], 0x114
push 0
push eax
call fcn.0050d5d0
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4eca27
mov eax, dword [esp + 4]
cmp eax, 5
ja 0x4eca10
jne 0x4eca27
cmp dword [esp + 8], 0
jbe 0x4eca27
mov al, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0050b0b7
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor al, al
xor ecx, esp
call fcn.0050b0b7
add esp, 0x118
ret

Function at 0x4eca40
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x592174]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
mov dword [esp + 4], 0x114
push 0
push eax
call fcn.0050d5d0
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4eca95
xor al, al
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0050b0b7
add esp, 0x118
ret
cmp dword [esp + 4], 6
mov ecx, dword [esp + 0x114]
setae al
xor ecx, esp
call fcn.0050b0b7
add esp, 0x118
ret
Function at 0x4ed790
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54d15c
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x592174]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [ebp - 4], 0
mov dword [edi + 8], 0
mov byte [ebp - 4], 1
lea esi, [edi + 0x10]
mov byte [edi + 0xc], 0
mov ecx, esi
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004f4f40
mov dword [esi], eax
mov byte [ebp - 4], 4
xor eax, eax
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 7
mov word [edi + 0x18], ax
mov byte [ebp - 4], 5
mov dword [edi + 0x30], eax
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4efa20
Capabilities:
Delete registry key

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 8]
test edi, edi
je 0x4efa85
cmp dword [edi], 0
mov esi, dword [esi]
je 0x4efa65
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4efa7b
push str.RegDeleteKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4efa7b
push 0
push dword [edi]
push 0
push 0
push dword [esp + 0x1c]
push esi
call eax
pop edi
pop esi
ret 4
cmp dword [edi + 4], 0
je 0x4efa7b
push dword [esp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
pop esi
ret 4
pop edi
mov eax, 1
pop esi
ret 4
cmp byte [0x5948f4], 0
jne 0x4efac5
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4efab7
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5948f0], eax
mov byte [0x5948f4], 1
jmp 0x4efaca
mov eax, dword [0x5948f0]
mov byte [0x5948f4], 1
jmp 0x4efaca
mov eax, dword [0x5948f0]
test eax, eax
je 0x4efae0
push 0
push dword [esi + 4]
push dword [esp + 0x14]
push dword [esi]
call eax
pop edi
pop esi
ret 4
push dword [esp + 0xc]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
pop esi
ret 4
Function at 0x4f0d50
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54dc13
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x592174]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x234]
mov dword [ebp - 0x254], esi
push eax
mov dword [ebp - 0x250], 0
call fcn.0052ca70
mov dword [ebp - 4], 1
push str.config.ini
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.0041eae0
add esp, 0x10
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x234]
call fcn.004184d0
lea eax, [ebp - 0x24c]
push eax
call fcn.0041eef0
add esp, 4
test al, al
jne 0x4f0dfb
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 0x250], 1
jmp 0x4f0f31
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.0050d5d0
add esp, 0xc
lea eax, [ebp - 0x24c]
cmp dword [ebp - 0x238], 8
cmovae eax, dword [ebp - 0x24c]
push eax
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0x565cb0
push str.FailedIncrementVersion
push str.Upgrade
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
cmp word [ebp - 0x21c], ax
jne 0x4f0e71
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 0x250], 1
mov byte [ebp - 4], al
jmp 0x4f0f35
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4f0eb0
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x234]
call fcn.00418830
mov byte [ebp - 4], 4
xor eax, eax
movups xmm0, xmmword [ebp - 0x234]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
mov word [ebp - 0x234], ax
movq xmm0, qword [ebp - 0x224]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x250], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x234]
call fcn.004184d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24c]
call fcn.004184d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050b0b7
mov esp, ebp
pop ebp
ret 4
Function at 0x4f2530
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x54df00
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x592174]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 0x410]
mov eax, dword [ebp + 0x414]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x418]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], 0
mov dword [ebp], 0
mov byte [ebp - 4], 1
push 0x60
push 0
push esi
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
call ebx
mov edi, eax
mov dword [ebp - 0x1c], edi
test edi, edi
jne 0x4f25d8
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x1c], eax
test edi, edi
jne 0x4f25d8
call fcn.004ef060
mov esi, eax
jmp 0x4f26a7
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4f25f5
call fcn.004ef060
jmp 0x4f269a
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x18], ebx
test ebx, ebx
jne 0x4f2610
call fcn.004ef060
jmp 0x4f269a
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x14], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x4f262b
mov esi, 0x8007000e
jmp 0x4f269c
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp]
call fcn.004eee90
mov dword [ebp - 4], 1
jmp 0x4f2657
mov eax, dword [ebp]
test eax, eax
jne 0x4f2665
mov esi, 0x8007000e
jmp 0x4f269c
push esi
push eax
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x4f2680
call fcn.004ef060
jmp 0x4f269a
xor edx, edx
mov eax, dword [ebp]
mov word [eax + ecx*2], dx
push dword [ebp + 0x41c]
push dword [ebp]
lea ecx, [ebp - 0x24]
call fcn.004f23a0
mov esi, eax
test edi, edi
je 0x4f26a7
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], 0
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x4f26bb
lea ecx, [ebp]
call fcn.004f0d40
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.0050b0b7
lea esp, [ebp + 0x408]
pop ebp
ret 0x10
Function at 0x4fad00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54f583
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x592174]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx eax, word [ebp + 0xc]
mov esi, dword [ebp + 8]
push 0x554338
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4fae6b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x4fae6b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4fae6b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4fae6b
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x4fae6b
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4fae64
push ebx
push esi
push eax
call fcn.0050cad0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
push 0
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x4fae64
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x4fae64
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x4fae1b
mov dword [esi], vtable.Gdiplus::Image.0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x10]
push eax
push ebx
mov dword [esi], vtable.Gdiplus::Bitmap.0
mov dword [ebp - 0x10], 0
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
mov byte [ebp - 4], 0
jmp 0x4fae1d
xor esi, esi
mov dword [ebp - 4], 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test esi, esi
je 0x4fae50
mov eax, dword [esi + 8]
mov dword [esi + 8], 0
test eax, eax
je 0x4fae50
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
xor esi, esi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4fd970
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x94
push 0xffffffffffffffff
push 0x54fd08
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x592174]
xor eax, ebp
mov dword [ebp + 0x90], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0xb
xor eax, eax
mov dword [ebp + 0x88], 0
mov dword [ebp + 0x8c], 0
lea ecx, [ebp + 0x78]
push str.restart.hzt
mov dword [ebp + 0x88], 0
mov dword [ebp + 0x8c], 7
mov word [ebp + 0x78], ax
call fcn.00418830
mov dword [ebp - 4], 0
lea eax, [ebp + 0x78]
push eax
lea eax, [edi + 4]
push eax
lea eax, [ebp + 0x18]
push eax
call fcn.0041e580
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x78]
call fcn.004184d0
lea eax, [ebp + 0x18]
push eax
call fcn.0041edc0
add esp, 4
test al, al
je 0x4fdb72
lea eax, [ebp + 0x18]
mov ecx, edi
push eax
lea eax, [ebp]
push eax
call fcn.004fd1a0
mov byte [ebp - 4], 3
lea eax, [ebp + 0x18]
push eax
call fcn.0041f1e0
add esp, 4
cmp dword [ebp + 0x10], 0
je 0x4fdb66
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp]
push 0x3b
push eax
call fcn.0042c3a0
mov esi, dword [ebp - 0x18]
add esp, 0xc
cmp esi, dword [ebp - 0x14]
je 0x4fdb5a
push str.EXIT
push esi
call fcn.0041c710
add esp, 8
test al, al
jne 0x4fdb5a
push 0x555074
push esi
call fcn.0041c710
add esp, 8
test al, al
je 0x4fdb5a
push esi
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
call fcn.004d1c80
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
sub eax, ecx
sub eax, 0x48
cmp eax, 0x18
jae 0x4fdb5a
push ecx
lea ecx, [ebp + 0x30]
call fcn.0041c4f0
mov byte [ebp - 4], 5
lea ecx, [ebp + 0x48]
mov eax, dword [ebp - 0x18]
add eax, 0x18
push eax
call fcn.0041c4f0
mov byte [ebp - 4], 6
lea ecx, [ebp + 0x60]
mov eax, dword [ebp - 0x18]
add eax, 0x30
push eax
call fcn.0041c4f0
mov byte [ebp - 4], 7
lea edx, [ebp + 0x48]
cmp dword [ebp + 0x5c], 8
lea ecx, [ebp + 0x60]
push 1
cmovae edx, dword [ebp + 0x48]
lea eax, [ebp + 0x30]
cmp dword [ebp + 0x74], 8
push edx
cmovae ecx, dword [ebp + 0x60]
cmp dword [ebp + 0x44], 8
push ecx
cmovae eax, dword [ebp + 0x30]
push eax
push str.open
push dword [edi + 0x1c]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov byte [ebp - 4], 6
lea ecx, [ebp + 0x60]
call fcn.004184d0
mov byte [ebp - 4], 5
lea ecx, [ebp + 0x48]
call fcn.004184d0
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x30]
call fcn.004184d0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
call fcn.00419ae0
mov byte [ebp - 4], 2
lea ecx, [ebp]
call fcn.004184d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x18]
call fcn.004184d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x90]
xor ecx, ebp
call fcn.0050b0b7
lea esp, [ebp + 0x94]
pop ebp
ret
Function at 0x4fdbb0
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x4c]
sub esp, 0x4c
push 0xffffffffffffffff
push 0x54fd50
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x592174]
xor eax, ebp
mov dword [ebp + 0x48], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 0x54]
push esi
call fcn.0041edc0
add esp, 4
test al, al
jne 0x4fdbf9
xor al, al
jmp 0x4fddc0
call fcn.004ecba0
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x4fdc08
mov ecx, dword [esi]
push ecx
mov ecx, eax
call fcn.004ecb90
test al, al
je 0x4fdbf2
push 0
lea ecx, [ebp - 0xf]
call fcn.00504c40
mov dword [ebp - 4], 0
lea eax, [ebp - 0xe]
push eax
lea eax, [ebp - 0xd]
mov byte [ebp - 0xd], 0
push eax
push esi
lea eax, [ebp]
mov byte [ebp - 0xe], 0
push eax
mov ecx, edi
call fcn.004fcb60
mov byte [ebp - 4], 1
xor eax, eax
mov dword [ebp + 0x28], 0
mov dword [ebp + 0x2c], 0
mov dword [ebp + 0x28], 0
mov dword [ebp + 0x2c], 7
mov word [ebp + 0x18], ax
mov byte [ebp - 4], 2
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp]
push eax
call fcn.00420a40
xor eax, eax
mov dword [ebp + 0x40], 0
mov dword [ebp + 0x44], 0
add esp, 8
mov dword [ebp + 0x40], 0
mov dword [ebp + 0x44], 7
mov word [ebp + 0x30], ax
mov byte [ebp - 4], 3
cmp byte [ebp - 0xd], al
je 0x4fdcb5
push 3
push 0x555094
lea ecx, [ebp + 0x30]
call fcn.00418830
cmp byte [ebp - 0xe], 0
je 0x4fdcdf
cmp dword [ebp + 0x40], 0
je 0x4fdcd0
push 1
push 0x567fa8
lea ecx, [ebp + 0x30]
call fcn.0041c6a0
push 5
push str._NCRC
lea ecx, [ebp + 0x30]
call fcn.0041c6a0
mov eax, dword [edi + 0x1c]
xorps xmm0, xmm0
mov dword [ebp - 0x40], 0
movlpd qword [ebp - 0x2c], xmm0
movlpd qword [ebp - 0x24], xmm0
movlpd qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x4c], 0x3c
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], 0x540
call fcn.004eca40
test al, al
mov dword [ebp - 0x30], 1
mov ecx, str.runas
lea eax, [ebp]
cmove ecx, dword [ebp - 0x40]
cmp dword [ebp + 0x14], 8
mov dword [ebp - 0x40], ecx
cmovae eax, dword [ebp]
cmp dword [ebp + 0x2c], 8
mov dword [ebp - 0x3c], eax
lea eax, [ebp + 0x18]
cmovae eax, dword [ebp + 0x18]
cmp dword [ebp + 0x44], 8
mov dword [ebp - 0x34], eax
lea eax, [ebp + 0x30]
cmovae eax, dword [ebp + 0x30]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x4fdd69
xor bl, bl
jmp 0x4fdd8b
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4fdd89
cmp byte [ebp + 0x58], 0
je 0x4fdd82
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x30]
call fcn.004184d0
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x18]
call fcn.004184d0
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.004184d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf]
call fcn.00504c60
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x48]
xor ecx, ebp
call fcn.0050b0b7
lea esp, [ebp + 0x4c]
pop ebp
ret 8
Function at 0x501d40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x592174]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x214], ecx
push 0x208
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.0050d5d0
add esp, 0xc
lea ecx, [ebp - 0x20c]
push ecx
push 0
push 0
mov edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x501dbf
mov eax, 2
imul ecx, eax, 0
mov dword [ebp - 0x210], ecx
cmp dword [ebp - 0x210], 0x208
jae 0x501da6
jmp 0x501dab
call fcn.0050b84e
xor edx, edx
mov eax, dword [ebp - 0x210]
mov word [ebp + eax - 0x20c], dx
xor al, al
jmp 0x501dd0
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00418470
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050b0b7
mov esp, ebp
pop ebp
ret 8

Function at 0x5024b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5506c8
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x592174]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x70], ecx
lea ecx, [ebp - 0x34]
call fcn.004185a0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x34]
push eax
push 0
mov ecx, dword [ebp - 0x70]
call fcn.00501d40
movzx ecx, al
test ecx, ecx
jne 0x50251a
mov byte [ebp - 0x65], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004184d0
mov al, byte [ebp - 0x65]
jmp 0x50261e
mov edx, 0x7f51
mov word [ebp - 0x1c], dx
mov eax, 0x5740
mov word [ebp - 0x1a], ax
mov ecx, 0x5bfc
mov word [ebp - 0x18], cx
mov edx, 0x822a
mov word [ebp - 0x16], dx
xor eax, eax
mov word [ebp - 0x14], ax
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.00418560
mov byte [ebp - 4], 1
lea edx, [ebp - 0x4c]
push edx
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x64]
push ecx
call fcn.0041e580
add esp, 0xc
mov dword [ebp - 0x74], eax
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x78], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x78]
push eax
lea ecx, [ebp - 0x34]
call fcn.004184e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
call fcn.004184d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.004184d0
push 0x568688
lea ecx, [ebp - 0x34]
call fcn.0041c4c0
lea ecx, [ebp - 0x34]
push ecx
call fcn.0041eef0
add esp, 4
movzx edx, al
test edx, edx
jne 0x5025d1
mov byte [ebp - 0x66], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004184d0
mov al, byte [ebp - 0x66]
jmp 0x50261e
push 0
push 0
push 0
lea ecx, [ebp - 0x34]
call fcn.004183d0
push eax
push 0x568df0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0x20
jle 0x5025ff
mov dword [ebp - 0x6c], 1
jmp 0x502606
mov dword [ebp - 0x6c], 0
mov al, byte [ebp - 0x6c]
mov byte [ebp - 0x67], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004184d0
mov al, byte [ebp - 0x67]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050b0b7
mov esp, ebp
pop ebp
ret 4