joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10010bf0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x10042028
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10054020]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
mov edi, edx
xor ebx, ebx
xor ebp, ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebx
push str.FD754044_E61E_4927_845F_4FA56EBF2843
push ebx
push 7
mov dword [esp + 0x4c], ebx
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
cmp eax, ebx
mov dword [esp + 0x2c], eax
je 0x10010c64
push ebx
push ebx
push ebx
push 7
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebp, eax
cmp ebp, ebx
mov dword [esp + 0x30], ebp
je 0x10010c64
lea ecx, [esi + 0xa]
mov eax, 1
shl eax, cl
or dword [ebp], eax
cmp esi, ebx
jne 0x10010d66
cmp dword [edi + 0xe4], ebx
je 0x10010d66
add edi, 0xd0
push edi
call fcn.10023c50
push 4
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 8
cmp eax, ebx
je 0x10010c9c
mov dword [eax], 0xffffffff
mov esi, eax
jmp 0x10010c9e
xor esi, esi
cmp esi, ebx
je 0x10010d66
cmp dword [edi + 0x18], 8
jb 0x10010cb1
mov edi, dword [edi + 4]
jmp 0x10010cb4
add edi, 4
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x10010d49
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
lea ecx, [esp + 0x18]
push ecx
push 4
lea edx, [esp + 0x24]
push edx
push eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], 0x21c0
call edi
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.MSVCR80.dll__time64]
mov eax, dword [esi]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
add esp, 4
cmp eax, 0xffffffff
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
je 0x10010d49
push ebx
lea ecx, [esp + 0x18]
push ecx
push 8
lea edx, [esp + 0x30]
push edx
push eax
call edi
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x10010d49
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x10010d49
mov dword [esi], 0xffffffff
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x10010d5d
cmp eax, ebx
je 0x10010d5d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], ebx
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp ebp, ebx
je 0x10010d71
push ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x10010d80
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
Function at 0x10014cf0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10041131
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
mov eax, dword [0x10054020]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [esp + 0x40]
xor ebx, ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0xc], ebx
push 0xffffffffffffffff
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebx
add eax, 0x60
push ebx
mov ecx, edi
mov dword [esp + 0x18], edi
mov word [edi + 4], bx
call fcn.100020a0
mov dword [esp + 0x38], ebx
mov eax, dword [edi + 0x14]
cmp eax, 0xe
mov dword [esp + 0xc], 1
jae 0x10014d6a
push 1
push 0x100480d8
mov ecx, edi
call fcn.100024e0
cmp dword [edi + 0x14], 0xe
jb 0x10014d56
cmp dword [edi + 0x14], 0xe
jbe 0x10014da4
push 0xe
push edi
xor ecx, ecx
lea esi, [esp + 0x1c]
call fcn.10002070
push 0xffffffffffffffff
push ebx
mov ecx, edi
mov dword [esp + 0x40], 1
call fcn.100020a0
cmp dword [esp + 0x2c], 8
jb 0x10014da4
mov eax, dword [esp + 0x18]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x30
ret 4

Function at 0x10014dc0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10041131
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
mov eax, dword [0x10054020]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [esp + 0x40]
xor ebx, ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0xc], ebx
push 0xffffffffffffffff
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebx
add eax, 0x7c
push ebx
mov ecx, edi
mov dword [esp + 0x18], edi
mov word [edi + 4], bx
call fcn.100020a0
mov dword [esp + 0x38], ebx
mov eax, dword [edi + 0x14]
cmp eax, 0xe
mov dword [esp + 0xc], 1
jae 0x10014e3a
push 1
push 0x100480d8
mov ecx, edi
call fcn.100024e0
cmp dword [edi + 0x14], 0xe
jb 0x10014e26
cmp dword [edi + 0x14], 0xe
jbe 0x10014e74
push 0xe
push edi
xor ecx, ecx
lea esi, [esp + 0x1c]
call fcn.10002070
push 0xffffffffffffffff
push ebx
mov ecx, edi
mov dword [esp + 0x40], 1
call fcn.100020a0
cmp dword [esp + 0x2c], 8
jb 0x10014e74
mov eax, dword [esp + 0x18]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x30
ret 4
Function at 0x10014e90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10041131
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
mov eax, dword [0x10054020]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [esp + 0x40]
xor ebx, ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0xc], ebx
push 0xffffffffffffffff
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebx
add eax, 0x98
push ebx
mov ecx, edi
mov dword [esp + 0x18], edi
mov word [edi + 4], bx
call fcn.100020a0
mov dword [esp + 0x38], ebx
mov eax, dword [edi + 0x14]
cmp eax, 0x20
mov dword [esp + 0xc], 1
jae 0x10014f14
jmp 0x10014f00
push 1
push 0x100480e4
mov ecx, edi
call fcn.100024e0
cmp dword [edi + 0x14], 0x20
jb 0x10014f00
cmp dword [edi + 0x14], 0x20
jbe 0x10014f4e
push 0x20
push edi
xor ecx, ecx
lea esi, [esp + 0x1c]
call fcn.10002070
push 0xffffffffffffffff
push ebx
mov ecx, edi
mov dword [esp + 0x40], 1
call fcn.100020a0
cmp dword [esp + 0x2c], 8
jb 0x10014f4e
mov eax, dword [esp + 0x18]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x30
ret 4

Function at 0x10016240
Capabilities:
Access peb ldr_data
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x10044978
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10054020]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov eax, dword [0x10054020]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov al, 1
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], 0
call fcn.1002c2a0
mov dword [esp + 0x38], 0
cmp dword [esp + 0x24], 0
je 0x100162bd
lea eax, [esp + 0x10]
push eax
call fcn.10024720
add esp, 4
test al, al
jne 0x100162bd
cmp dword [esp + 0x28], 8
mov eax, dword [esp + 0x14]
jae 0x100162b4
lea eax, [esp + 0x14]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [esp + 0x10]
push ecx
mov ebx, 0x1004881c
call fcn.1000a380
add esp, 4
cmp dword [esp + 0x28], 8
jb 0x100162e3
mov edx, dword [esp + 0x14]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.1003ec9d
add esp, 0x30
ret
Function at 0x10018060
Capabilities:
Hide graphical window

Disassembly:
cmp dword [esp + 0x18], 0
push esi
mov esi, ecx
jne 0x100181bb
mov eax, dword [esp + 0xc]
cmp eax, 0x110
jne 0x1001808d
call fcn.10018720
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
mov eax, 1
pop esi
ret 0x18
cmp eax, 2
jne 0x100180a8
mov eax, esi
call fcn.100190a0
mov edx, dword [esp + 0x18]
mov dword [edx], eax
mov eax, 1
pop esi
ret 0x18
cmp eax, 0x111
jne 0x10018115
mov eax, dword [esp + 0x10]
cmp ax, 2
jne 0x100180d2
push esi
call fcn.10019110
mov eax, dword [esp + 0x18]
mov dword [eax], 0
mov eax, 1
pop esi
ret 0x18
cmp ax, 4
jne 0x100180f7
mov ecx, dword [esi + 4]
push 6
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esp + 0x18]
mov dword [edx], 0
mov eax, 1
pop esi
ret 0x18
cmp ax, 5
jne 0x1001815b
push ebx
mov ebx, esi
call fcn.10019260
mov ecx, dword [esp + 0x1c]
pop ebx
mov dword [ecx], eax
mov eax, 1
pop esi
ret 0x18
cmp eax, 0x464
jne 0x100181a2
mov edx, dword [esi + 0x18]
mov dword [edx + 0x20], 1
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x64]
mov eax, dword [eax + 0x10]
lea ecx, [esi + 0x64]
push edx
mov edx, dword [esp + 0x14]
push edx
call eax
mov ecx, dword [esp + 0x18]
mov dword [ecx], 0
mov edx, dword [esi + 0x18]
cmp dword [edx + 0x20], 0
je 0x100181bb
mov eax, 1
pop esi
ret 0x18
cmp ax, 0xe141
jne 0x10018173
mov eax, dword [esi + 0x18]
push esi
mov dword [eax + 0x20], 1
call fcn.10019110
jmp 0x1001813f
cmp ax, 0x800a
jne 0x100181bb
mov eax, dword [esi + 0x18]
mov dword [eax + 0x20], 1
mov ecx, dword [esi + 4]
push 1
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esp + 0x18]
mov dword [edx], 0
mov eax, dword [esi + 0x18]
cmp dword [eax + 0x20], 0
jmp 0x10018150
cmp eax, 5
jne 0x100181bb
call fcn.10019030
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
mov eax, 1
pop esi
ret 0x18
xor eax, eax
pop esi
ret 0x18

Function at 0x10019030
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x1001908e
mov ecx, dword [esi + 4]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esi + 0x448], 0
je 0x1001908e
lea edx, [esi + 0x88]
push edx
push 1
mov dword [esi + 0x94], 8
mov dword [esi + 0x1a0], 0
mov dword [esi + 0x1a4], 1
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
test eax, eax
je 0x1001908e
mov dword [esi + 0x448], 0
xor eax, eax
ret
Function at 0x10019110
Capabilities:
Hide graphical window

Disassembly:
push 0xffffffffffffffff
push 0x10041070
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10054020]
xor eax, esp
mov dword [esp + 0x20], eax
push ebp
push esi
push edi
mov eax, dword [0x10054020]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x44]
lea edi, [ebp + 0x4d0]
test edi, edi
mov dword [esp + 0x10], edi
je 0x10019160
mov eax, dword [edi]
test eax, eax
je 0x10019160
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x222
lea esi, [esp + 0x18]
mov ecx, ebp
mov dword [esp + 0x40], 0
call fcn.10019220
mov byte [esp + 0x3c], 1
cmp byte [ebp + 0x54c], 0
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
je 0x100191a1
mov eax, dword [ebp + 4]
push eax
lea eax, [esp + 0x18]
call fcn.1003a8e0
add esp, 4
cmp eax, 6
jne 0x100191c3
test edi, edi
mov byte [ebp + 0x4cc], 1
je 0x100191b7
mov edi, dword [edi]
test edi, edi
je 0x100191b5
push edi
call esi
xor edi, edi
mov ecx, dword [ebp + 4]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esp + 0x2c], 8
jb 0x100191d7
mov edx, dword [esp + 0x18]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
cmp edi, eax
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], eax
mov word [esp + 0x18], ax
je 0x100191f7
mov edi, dword [edi]
cmp edi, eax
je 0x100191f7
push edi
call esi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.1003ec9d
add esp, 0x30
ret 4

Function at 0x100193d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10041b08
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x10054020]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
lea esi, [edi + 0x4cc]
lea eax, [esp + 0x38]
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0
call fcn.1000e3c0
mov esi, eax
mov eax, dword [edi - 0x24]
push 0x3fd
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, 8
cmp dword [esi + 0x18], edi
jb 0x10019432
mov esi, dword [esi + 4]
jmp 0x10019435
add esi, 4
push esi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp dword [esp + 0x24], edi
jb 0x10019450
mov ecx, dword [esp + 0x10]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [esp + 0x50], edi
jb 0x10019463
mov edx, dword [esp + 0x3c]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x28
ret 0x1c
Function at 0x10019db0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10042d30
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x10054020]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x10054020]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov ebx, ecx
mov ecx, dword [ebx + 0x30]
test ecx, ecx
jbe 0x10019e04
mov eax, dword [ebp + 8]
imul eax, eax, 0x64
xor edx, edx
div ecx
lea edi, [ebx - 0x28]
mov ecx, eax
call fcn.1001a9f0
mov eax, dword [ebp + 8]
push 0
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.1003a940
add esp, 0xc
mov dword [esp + 0x58], 0
cmp dword [esp + 0x40], 0
mov edi, 8
jne 0x10019e7d
push 0x29e
lea ecx, [ebx - 0x28]
lea esi, [esp + 0x14]
call fcn.10019220
mov byte [esp + 0x58], 1
cmp dword [esp + 0x28], edi
mov eax, dword [esp + 0x14]
jae 0x10019e4f
lea eax, [esp + 0x14]
mov edx, dword [ebp + 8]
push eax
push edx
push str._u__s
lea ecx, [esp + 0x38]
call fcn.10022b50
add esp, 0xc
mov byte [esp + 0x58], 0
cmp dword [esp + 0x28], edi
jb 0x10019e7d
mov eax, dword [esp + 0x14]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [ebx + 0x4b0]
lea edx, [esp + 0x14]
call fcn.1000e0e0
mov edx, dword [ebx - 0x24]
push 0x3ef
push edx
mov esi, eax
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [esi + 0x18], edi
jb 0x10019eac
mov esi, dword [esi + 4]
jmp 0x10019eaf
add esi, 4
push esi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp dword [esp + 0x28], edi
jb 0x10019eca
mov eax, dword [esp + 0x14]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [esp + 0x44], edi
jb 0x10019edd
mov ecx, dword [esp + 0x30]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.1003ec9d
mov esp, ebp
pop ebp
ret 4
Function at 0x1001e1b0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x10044f5e
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x10054020]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
mov eax, dword [0x10054020]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
lea ebx, [edi + 4]
mov dword [edi], vtable.RC::RCVersionUpdateTask.0
xor ebp, ebp
mov dword [ebx + 0x18], 7
mov dword [ebx + 0x14], ebp
mov dword [esp + 0x14], edi
mov word [ebx + 4], bp
mov dword [esp + 0x40], ebp
mov dword [edi + 0x20], ebp
mov dword [edi + 0x24], ebp
mov al, 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], al
call fcn.1002c2a0
mov byte [esp + 0x40], 2
cmp dword [esp + 0x2c], ebp
je 0x1001e265
lea eax, [esp + 0x18]
push eax
call fcn.10024720
add esp, 4
test al, al
jne 0x1001e24a
cmp dword [esp + 0x30], 8
mov eax, dword [esp + 0x1c]
jae 0x1001e242
lea eax, [esp + 0x1c]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 4
push str.temp
lea ecx, [esp + 0x20]
call fcn.100024e0
push 0x5c
lea esi, [esp + 0x1c]
call fcn.10021f90
push 0xffffffffffffffff
push ebp
lea eax, [esp + 0x20]
mov ecx, ebx
call fcn.100020a0
cmp dword [esp + 0x30], 8
jb 0x1001e287
mov ecx, dword [esp + 0x1c]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.1003ec9d
add esp, 0x34
ret
Function at 0x1001e350
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x10043650
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x10054020]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10054020]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov esi, dword [esp + 0x64]
mov edi, edx
push edi
mov ebx, ecx
call fcn.10024720
add esp, 4
test al, al
je 0x1001e3ec
lea ebp, [ebx + 4]
push ebp
call fcn.10024720
add esp, 4
test al, al
jne 0x1001e3b2
mov ebx, ebp
call fcn.10024ed0
test al, al
je 0x1001e3ec
xor eax, eax
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], eax
mov word [esp + 0x38], ax
lea ecx, [esp + 0x34]
mov ebx, edi
mov dword [esp + 0x5c], eax
call fcn.10025530
test al, al
jne 0x1001e3f0
cmp dword [esp + 0x4c], 8
jb 0x1001e3ec
mov eax, dword [esp + 0x38]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
xor al, al
jmp 0x1001e468
lea ecx, [esp + 0x34]
push ecx
push ebp
lea ecx, [esp + 0x20]
call fcn.10024290
add esp, 8
push 0xffffffffffffffff
push 0
mov ecx, esi
mov byte [esp + 0x64], 1
call fcn.100020a0
mov ebp, 8
cmp dword [esp + 0x30], ebp
jb 0x1001e42a
mov edx, dword [esp + 0x1c]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [esi + 0x18], ebp
jb 0x1001e434
mov esi, dword [esi + 4]
jmp 0x1001e437
add esi, 4
cmp dword [edi + 0x18], ebp
jb 0x1001e441
mov edi, dword [edi + 4]
jmp 0x1001e444
add edi, 4
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
setne bl
cmp dword [esp + 0x4c], ebp
jb 0x1001e466
mov eax, dword [esp + 0x38]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.1003ec9d
add esp, 0x4c
ret 4
Function at 0x1001ff70
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x10042bc8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push ebp
push esi
mov eax, dword [0x10054020]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x78]
mov ebx, ecx
push ebx
mov dword [esp + 0x58], 0
call fcn.10024720
add esp, 4
test al, al
jne 0x1001ffdc
cmp dword [esp + 0x74], 8
jb 0x1001ffc5
mov eax, dword [esp + 0x60]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
xor al, al
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0x24
cmp dword [esp + 0x70], 0
jne 0x1001ffec
lea esi, [esp + 0x5c]
call fcn.100255d0
push 0x3c
lea ecx, [esp + 0x14]
push 0
push ecx
call sub.MSVCR80.dll_memset
mov edx, dword [edi + 0x20]
add esp, 0xc
mov dword [esp + 0x10], 0x3c
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], 0x540
call fcn.1003a7f0
test al, al
je 0x10020025
mov dword [esp + 0x1c], str.runas
mov esi, 8
cmp dword [ebx + 0x18], esi
jb 0x10020038
mov eax, dword [ebx + 4]
mov dword [esp + 0x20], eax
jmp 0x1002003f
add ebx, 4
mov dword [esp + 0x20], ebx
cmp dword [esp + 0x74], esi
jb 0x1002004f
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x28], ecx
jmp 0x10020057
lea edx, [esp + 0x60]
mov dword [esp + 0x28], edx
cmp dword [ebp + 0x18], esi
jb 0x10020065
mov eax, dword [ebp + 4]
mov dword [esp + 0x24], eax
jmp 0x1002006c
add ebp, 4
mov dword [esp + 0x24], ebp
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x30], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x100200b1
cmp dword [esp + 0x74], esi
jb 0x1001ffc5
mov edx, dword [esp + 0x60]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
xor al, al
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0x24
mov eax, dword [esp + 0x48]
test eax, eax
je 0x100200d4
cmp byte [esp + 0x7c], 0
je 0x100200cd
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x74], esi
jb 0x100200e7
mov eax, dword [esp + 0x60]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0x24
Function at 0x10023b70
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x10054020]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
push 0x20a
lea eax, [esp + 0xa]
push 0
push eax
mov esi, ecx
mov word [esp + 0x10], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x105
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
add eax, 0xffffffff
cmp eax, 0x103
ja 0x10023c02
lea eax, [esp + 4]
mov word [esp + 0x20e], 0
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10023bd0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 8]
push edx
call fcn.100025e0
mov al, 1
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.1003ec9d
add esp, 0x210
ret
mov ecx, dword [esp + 0x210]
pop esi
xor ecx, esp
xor al, al
call fcn.1003ec9d
add esp, 0x210
ret

Function at 0x10023c20
Capabilities:
Set file attributes

Disassembly:
and ecx, 0xffffb1af
cmp dword [eax + 0x18], 8
jb 0x10023c3d
mov eax, dword [eax + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
ret
add eax, 4
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
ret

Function at 0x10023c50
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x1c
push ebp
mov ebp, dword [esp + 0x24]
push esi
mov esi, 8
cmp dword [ebp + 0x18], esi
push edi
lea edi, [ebp + 4]
jb 0x10023c6b
mov eax, dword [edi]
jmp 0x10023c6d
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x10023c81
pop edi
pop esi
mov al, 1
pop ebp
add esp, 0x1c
ret
cmp dword [ebp + 0x18], esi
jb 0x10023c8a
mov eax, dword [edi]
jmp 0x10023c8c
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov dword [esp + 0x2c], eax
je 0x10023d5f
cmp dword [ebp + 0x18], esi
jb 0x10023ca9
mov edx, dword [edi]
jmp 0x10023cab
mov edx, edi
push ebx
xor ebx, ebx
mov eax, edx
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], bx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10023cc4
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [esp + 0x18]
call fcn.100025e0
mov eax, dword [esp + 0x14]
mov esi, 8
cmp dword [esp + 0x28], esi
jae 0x10023cf1
lea eax, [esp + 0x14]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
test al, al
sete bl
cmp dword [esp + 0x28], esi
jb 0x10023d16
mov eax, dword [esp + 0x14]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
test bl, bl
pop ebx
jne 0x10023d5f
cmp dword [ebp + 0x18], esi
jb 0x10023d24
mov eax, dword [edi]
jmp 0x10023d26
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10023c78
cmp dword [ebp + 0x18], esi
jb 0x10023d3e
mov edx, dword [edi]
jmp 0x10023d40
mov edx, edi
lea eax, [esp + 0xc]
call fcn.10001ec0
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0xc]
call fcn.10023c20
lea ecx, [esp + 0xc]
call fcn.10001f30
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x1c
ret