joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44df20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50a516
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x569080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea eax, [edi + 8]
mov dword [edi + 4], 0
mov dword [ebp - 0x14], eax
mov dword [eax + 0xc], 0
mov dword [ebp - 4], 1
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [ebp - 4], 4
lea esi, [edi + 0x30]
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x20], 0x5322c8
mov dword [edi + 0x24], 0x536164
mov dword [edi], 0x5369c0
mov dword [edi + 0x20], 0x536994
mov dword [edi + 0x24], 0x536990
mov dword [edi + 0x2c], 0
mov dword [ebp - 0x18], esi
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.00402800
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 6
mov eax, dword [ebp + 8]
mov dword [edi + 0x34], eax
mov eax, dword [ebp + 0x10]
mov byte [edi + 0x38], 0
mov dword [edi + 0x40], eax
mov al, byte [ebp + 0x14]
mov dword [edi + 0x44], 2
mov byte [edi + 0x48], al
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
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 0x10

Function at 0x44e030
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50a586
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x569080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
lea eax, [ebx + 0x30]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0
mov ecx, dword [eax]
or eax, 0xffffffff
sub ecx, 0x10
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x44e094
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
mov dword [ebp - 4], 0xffffffff
lea eax, [ebx + 8]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [eax + 0xc]
test eax, eax
je 0x44e0b5
push eax
call fcn.004bc8fb
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 0x44fd50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50ab0d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x569080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x18], 0x5305e4
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
cmp edi, 0xffffffff
jne 0x44fdb4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x44fdd6
push 0
lea eax, [ebp - 0x10]
push eax
push 4
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x44fdd4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x44fdd6
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], 0x5305e4
test edi, edi
je 0x44fdf6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x44fe10
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50ab55
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x569080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
call fcn.004047f0
mov edi, eax
test edi, edi
je 0x44ff6c
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 1
mov ebx, 0x100
push 0x200
call fcn.004d4097
mov edi, eax
add esp, 4
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
push dword [eax + 4]
mov eax, dword [ebp + 0xc]
push ebx
push edi
push esi
push dword [eax]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, 0xff
jne 0x44fef9
add ebx, ebx
mov byte [ebp - 4], 1
push edi
call fcn.004d4092
mov ecx, 2
mov dword [ebp - 0x10], 0
mov eax, ebx
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.004d4097
mov edi, eax
add esp, 8
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
push dword [eax + 4]
mov eax, dword [ebp + 0xc]
push ebx
push edi
push esi
push dword [eax]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebx - 1]
cmp eax, ecx
je 0x44fea3
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x44ff00
mov ecx, dword [ebp + 0x10]
sub eax, edx
sar eax, 1
push eax
push edi
call fcn.00403870
mov byte [ebp - 4], 1
push edi
call fcn.004d4092
add esp, 4
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x44ff58
mov edi, dword [esi]
push esi
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call 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 0xc
push 0x80004005
call fcn.004027d0
int3
Function at 0x459ec0
Capabilities:
Hide graphical window

Disassembly:
push ecx
cmp dword [esp + 0x1c], 0
push ebx
push ebp
push esi
push edi
mov esi, ecx
jne 0x45a0bb
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
cmp ebp, 0x110
jne 0x459f87
sub esp, 8
mov dword [esi + 0x120], 1
call fcn.0045ae70
mov ecx, dword [esp + 0x28]
mov dword [ecx], eax
cmp dword [esi + 0x120], 0
jne 0x45a0ab
cmp byte [esi + 0x75], 0
mov edi, dword [esi + 0x70]
mov dword [esi + 0x70], 1
je 0x459f2f
push 1
push str.IsExterior
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetPropW]
cmp byte [esi + 0x74], 0
je 0x459f51
push 0xffffffffffffffec
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
or eax, 0x2000000
push eax
push 0xffffffffffffffec
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
sub esp, 0xc
lea ecx, [esi + 0x50]
call fcn.0045b800
mov eax, dword [esp + 0x28]
mov dword [esi + 0x70], 0
mov dword [eax], 0
cmp dword [esi + 0x70], 0
je 0x45a01c
mov dword [esi + 0x70], edi
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x18
mov edi, dword [esi + 0x70]
cmp ebp, 2
jne 0x459fc9
push str.IsExterior
push dword [esi + 4]
mov dword [esi + 0x70], 1
call dword [sym.imp.USER32.dll_RemovePropW]
mov eax, dword [esp + 0x28]
mov dword [esi + 0x70], 0
mov dword [eax], 0
cmp dword [esi + 0x70], 0
je 0x45a01c
mov dword [esi + 0x70], edi
lea eax, [ebp - 1]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x18
cmp ebp, 0x4e
jne 0x45a020
cmp dword [ebx + 8], 0xffffff38
jne 0x459ff3
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetParent]
push ebx
push dword [esp + 0x24]
push ebp
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 1
push eax
push ebx
sub esp, 8
mov ecx, esi
call fcn.0045b680
cmp dword [esp + 0x10], 0
mov ecx, dword [esp + 0x28]
mov dword [ecx], eax
jne 0x45a0a8
mov edx, dword [esp + 0x20]
lea ecx, [esi + 0x50]
cmp ebp, 5
jne 0x45a081
xor eax, eax
mov ebp, esi
test ecx, ecx
cmove ebp, eax
cmp byte [ecx + 0x1c], al
je 0x45a067
push 0xe801
push dword [ebp + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edx, dword [esp + 0x20]
cmp edx, 2
jne 0x45a058
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x45a06c
test edx, edx
jne 0x45a067
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x45a06c
cmp edx, 1
je 0x45a09e
mov eax, ebx
lea ecx, [ebp + 0x50]
shr eax, 0x10
cwde
push eax
movsx eax, bx
push eax
call fcn.00457f30
jmp 0x45a09e
cmp ebp, 0x24
jne 0x45a0b8
cmp dword [ecx + 0x14], 0xffffffff
je 0x45a09e
cmp dword [ecx + 0x18], 0xffffffff
je 0x45a09e
mov eax, dword [ecx + 0x14]
mov ecx, dword [ecx + 0x18]
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], ecx
mov eax, dword [esp + 0x28]
mov dword [eax], 0
mov dword [esi + 0x70], edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 0x18
mov dword [esi + 0x70], edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 0x18
Function at 0x45caf0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
push 1
push dword [edi + 0xdc]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x8040
push 0
mov edx, 0x7f01
xor ecx, ecx
call fcn.0040e630
add esp, 8
push 0
push eax
push 0x170
push dword [edi + 0xdc]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [edi + 0xa8]
push dword [edi + 0xd8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [edi + 0xc0]
mov ebx, dword [eax + 4]
test ebx, ebx
je 0x45cb65
mov eax, dword [ebx]
push dword [edi + 0xa8]
mov esi, dword [eax]
mov ecx, esi
call dword [0x525578]
mov ecx, ebx
call esi
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x45cbb9
mov eax, dword [edi + 0xc0]
mov ebx, dword [eax + 4]
test ebx, ebx
je 0x45cbb9
mov eax, dword [edi + 0xd0]
mov esi, dword [ebx]
push 0x4e20
push dword [eax + 0x34]
mov esi, dword [esi + 0xc]
mov ecx, esi
push dword [edi + 0xa8]
call dword [0x525578]
mov ecx, ebx
call esi
call fcn.00422460
test al, al
je 0x45cc4e
push ebp
push 0x8040
push 0
mov edx, 0x7f01
lea ebx, [edi + 0x88]
xor ecx, ecx
call fcn.0040e630
mov ebp, dword [ebx + 8]
add esp, 8
mov dword [esp + 0x10], eax
test ebp, ebp
je 0x45cc1d
mov ecx, dword [ebp]
lea eax, [esp + 0x14]
push eax
xor eax, eax
test ebx, ebx
mov esi, dword [ecx + 0x48]
mov ecx, edi
cmove ecx, eax
add ecx, 4
call fcn.0045bba0
push 0
push dword [esp + 0x14]
mov ecx, esi
push dword [eax]
push ebp
call dword [0x525578]
call esi
mov ebp, dword [ebx + 8]
test ebp, ebp
je 0x45cc4d
mov eax, dword [ebp]
mov esi, dword [eax + 0x28]
lea eax, [esp + 0x14]
push eax
xor eax, eax
test ebx, ebx
cmove edi, eax
lea ecx, [edi + 4]
call fcn.0045bba0
push 0
mov ecx, esi
push dword [eax]
push ebp
call dword [0x525578]
call esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x45cfd7
Capabilities:
Hide graphical window

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, ecx
mov eax, dword [edi + 4]
cmp dword [esi], eax
je 0x45cf10
push eax
call dword [sym.imp.USER32.dll_GetParent]
cmp dword [esi], eax
je 0x45cf10
mov eax, dword [esp + 0x1c]
pop edi
pop esi
mov dword [eax], 0
mov eax, 1
pop ecx
ret 0x10
mov eax, dword [esi + 8]
xor edx, edx
add eax, 0xd5
push ebx
cmp eax, 0xd
ja case.0x45cf24.211
jmp dword [eax*4 + 0x45d080]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetParent]
push dword [edi + 0xb8]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [edi + 0x78]
push 0x16
push 4
mov esi, dword [eax]
mov ecx, esi
call dword [0x525578]
lea ecx, [edi + 0x78]
call esi
mov eax, dword [edi + 0x78]
push 4
push 4
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x525578]
lea ecx, [edi + 0x78]
call esi
mov ecx, edi
call fcn.0045c8d0
mov eax, dword [edi + 0xc8]
mov eax, dword [eax + 0x10]
cmp eax, 0xc4
je 0x45cf8a
cmp eax, 0x6a
jne 0x45cf9a
cmp byte [edi + 0xe0], 0
je 0x45cf9a
mov ecx, 1
jmp 0x45cf9c
xor ecx, ecx
mov eax, dword [edi + 0x78]
push 1
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x525578]
lea ecx, [edi + 0x78]
call esi
mov ecx, dword [edi + 0xc8]
lea eax, [edi + 0x80]
mov dword [ecx], eax
pop ebx
xor edx, edx
pop edi
mov eax, edx
pop esi
pop ecx
ret 0x10
pop ebx
or edx, 0xffffffff
pop edi
mov eax, edx
pop esi
pop ecx
ret 0x10
cmp byte [edi + 0xe0], dl
je case.0x45cf24.207
push 0
push dword [edi + 0xdc]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x530654
push dword [edi + 0xd8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
call fcn.00422460
test al, al
je 0x45d047
mov ebx, dword [edi + 0x90]
lea edx, [edi + 0x88]
test ebx, ebx
je 0x45d047
mov eax, dword [ebx]
lea ecx, [edx - 0x84]
test edx, edx
mov esi, dword [eax + 0x48]
lea eax, [esp + 0xc]
push eax
mov eax, 4
cmove ecx, eax
call fcn.0045bba0
push 0
push 0
mov ecx, esi
push dword [eax]
push ebx
call dword [0x525578]
call esi
mov ecx, dword [edi + 0xcc]
call fcn.0048d090
pop ebx
mov edx, 0xc4
pop edi
mov eax, edx
pop esi
pop ecx
ret 0x10
mov eax, dword [esp + 0x20]
pop ebx
pop edi
pop esi
mov dword [eax], edx
mov eax, edx
pop ecx
ret 0x10
mov ecx, dword [esp + 0x20]
mov dword [ecx], edx
pop ebx
pop edi
mov eax, edx
pop esi
pop ecx
ret 0x10
Function at 0x45f1c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50cd86
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x569080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea eax, [edi + 0xc]
mov byte [edi], 1
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [ebp - 0x14], eax
call fcn.004047f0
mov ebx, eax
test ebx, ebx
je 0x45f2b0
mov eax, dword [ebx]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x525578]
mov ecx, ebx
call esi
add eax, 0x10
mov dword [edi + 0xc], eax
mov dword [ebp - 4], 1
lea eax, [edi + 0x18]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [ebp - 0x14], eax
call fcn.004047f0
mov ebx, eax
test ebx, ebx
je 0x45f2b0
mov eax, dword [ebx]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x525578]
mov ecx, ebx
call esi
add eax, 0x10
mov dword [edi + 0x18], eax
mov byte [ebp - 4], 3
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
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 0x80004005
call fcn.004027d0
int3

Function at 0x45f430
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x14]
add eax, 4
push eax
push 0
push esi
push 0x45faa0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x20], eax
mov ecx, dword [ecx + 4]
mov dword [esi + 0x24], ecx
test eax, eax
je 0x45f490
nop dword [eax]
mov esi, dword [esi + 4]
test esi, esi
je 0x45f497
mov eax, dword [esi + 0x14]
add eax, 4
push eax
push 0
push esi
push 0x45faa0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x20], eax
mov ecx, dword [esi + 0x14]
mov ecx, dword [ecx + 4]
mov dword [esi + 0x24], ecx
test eax, eax
jne 0x45f460
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop esi
ret
Function at 0x4663a0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50e55d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x569080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
push SysReAllocString
call fcn.00409000
mov dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push 0
push 0
push 0
push 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x18]
mov dword [ebp - 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x466428
cmp dword [ebp - 0x10], eax
jne 0x466424
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
sete bl
jmp 0x46642a
mov bl, 1
jmp 0x46642a
xor bl, bl
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x46643f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x46647a
mov edi, dword [ecx]
push ecx
mov edx, dword [edi]
mov esi, dword [edx + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4689d0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50eecd
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x569080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [edi + 0x160]
sub ecx, 0x10
call fcn.00402800
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x10]
push 5
push str..part
call fcn.00402660
lea ecx, [ebp - 0x10]
call fcn.0040f3f0
test al, al
je 0x468af8
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x18], 0x5305e4
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 2
cmp esi, 0xffffffff
jne 0x468a7a
mov byte [ebp - 4], 1
push eax
mov dword [ebp - 0x18], 0x5305e4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
jmp 0x468a9b
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], 0x5305e4
test esi, esi
je 0x468aa2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], 0
cmp ebx, dword [edi + 0x80]
jb 0x468ab1
mov ecx, edi
call fcn.0046d4d0
mov ebx, 1
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x468ae4
mov edi, dword [ecx]
push ecx
mov edx, dword [edi]
mov esi, dword [edx + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0x160]
call fcn.0040f3f0
test al, al
je 0x468ab1
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [edi + 0x160]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x18], 0x5305e4
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 3
cmp esi, 0xffffffff
jne 0x468b50
mov byte [ebp - 4], 1
push eax
mov dword [ebp - 0x18], 0x5305e4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
jmp 0x468b71
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], 0x5305e4
test esi, esi
je 0x468b78
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], 0
cmp ebx, dword [edi + 0x80]
jne 0x468aaa
mov ebx, 2
jmp 0x468ab6
Function at 0x46c4b0
Capabilities:
Check if file exists
Create process on windows
Get file size

Disassembly:
sub esp, 0x44
push esi
mov esi, ecx
xor cl, cl
push edi
mov eax, dword [esi + 0xec]
cmp eax, 1
jne 0x46c4d0
mov ecx, esi
pop edi
pop esi
add esp, 0x44
jmp fcn.0046ec10
test eax, eax
jne 0x46c4e0
mov ecx, esi
pop edi
pop esi
add esp, 0x44
jmp fcn.0046ed80
cmp eax, 3
jne 0x46c5db
cmp dword [esi + 0x10c], 0
jne 0x46c5d3
mov eax, dword [esi + 0xf4]
xorps xmm0, xmm0
mov dword [esp + 0x14], 0
movlpd qword [esp + 0x20], xmm0
movlpd qword [esp + 0x2c], xmm0
movlpd qword [esp + 0x34], xmm0
movlpd qword [esp + 0x3c], xmm0
mov dword [esp + 0x44], 0
mov dword [esp + 0xc], 0x3c
mov dword [esp + 0x10], 0x40
cmp dword [eax - 4], 1
jle 0x46c54b
push dword [eax - 0xc]
lea ecx, [esi + 0xf4]
call fcn.004024c0
mov ecx, dword [esi + 0xf8]
mov eax, dword [esi + 0xf4]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x18], str.open
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x46c58e
cmp dword [ecx - 4], 1
jle 0x46c584
push eax
lea ecx, [esi + 0xf8]
call fcn.004024c0
mov eax, dword [esi + 0xf8]
mov dword [esp + 0x20], eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x46c5d3
mov eax, dword [esp + 0x44]
test eax, eax
je 0x46c5d3
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp + 8]
mov dword [esp + 8], 0
push eax
push dword [esp + 0x48]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [esp + 8], 0
setne al
pop edi
pop esi
add esp, 0x44
ret
xor al, al
pop edi
pop esi
add esp, 0x44
ret
cmp eax, 4
jne 0x46c5ec
mov ecx, esi
pop edi
pop esi
add esp, 0x44
jmp fcn.0046f2e0
pop edi
mov al, cl
pop esi
add esp, 0x44
ret
Function at 0x46d4d0
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50f88d
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x569080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea esi, [ecx + 0x160]
mov ecx, dword [esi]
sub ecx, 0x10
call fcn.00402800
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x10]
push 5
push str..part
call fcn.00402660
lea ecx, [ebp - 0x10]
call fcn.0040f3f0
test al, al
je 0x46d539
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, esi
call fcn.0040f3f0
test al, al
je 0x46d54c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x5c
push dword [esi]
call fcn.004d5420
add esp, 8
or ebx, 0xffffffff
test eax, eax
je 0x46d5aa
sub eax, dword [esi]
sar eax, 1
cmp eax, ebx
je 0x46d5aa
push eax
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.0040b420
mov byte [ebp - 4], 2
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov byte [ebp - 4], 1
mov eax, ebx
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x46d5aa
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x46d5d5
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
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