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

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0xc
push ebx
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, 0xffffffff
jne 0x417ef4
xor eax, eax
pop ebx
add esp, 0xc
ret 0x20
push ebp
push esi
mov esi, dword [esp + 0x2c]
push edi
push esi
call fcn.00468872
add esp, 4
cmp dword [esp + 0x3c], 0
mov edi, eax
mov dword [esp + 0x30], 0
jbe 0x418011
mov ecx, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
mov eax, esi
neg eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], eax
lea ecx, [ecx]
mov edx, dword [esp + 0x30]
xor ecx, ecx
add edx, dword [esp + 0x34]
adc ecx, dword [esp + 0x38]
xor eax, eax
push eax
push esi
push ecx
push edx
call fcn.00468940
push 0
mov dword [esp + 0x1c], edx
lea edx, [esp + 0x1c]
push edx
push eax
push ebx
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
movzx eax, word [esp + 0x20]
sub eax, 3
je 0x417fc6
sub eax, 1
jne 0x417ff6
cmp ebp, esi
jle 0x417f7f
mov eax, dword [esp + 0x24]
push esi
push eax
jmp 0x417f8d
test ebp, ebp
jle 0x418030
mov ecx, dword [esp + 0x24]
push ebp
push ecx
push edi
call fcn.00468430
add esp, 0xc
push 0
lea edx, [esp + 0x14]
push edx
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x417ff6
push edi
call fcn.00468795
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 0x20
push 0
lea eax, [esp + 0x14]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp ebp, esi
jle 0x417fe3
mov ecx, dword [esp + 0x24]
push esi
push edi
push ecx
jmp 0x417fee
test ebp, ebp
jle 0x418030
mov edx, dword [esp + 0x24]
push ebp
push edi
push edx
call fcn.00468430
add esp, 0xc
mov eax, dword [esp + 0x30]
add ebp, dword [esp + 0x28]
add dword [esp + 0x24], esi
inc eax
mov dword [esp + 0x30], eax
cmp eax, dword [esp + 0x3c]
jb 0x417f30
push edi
call fcn.00468795
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret 0x20
push esi
push 0
push edi
call fcn.004683b0
push edi
call fcn.00468795
add esp, 0x10
jmp 0x41801a

Function at 0x4180e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp]
push eax
push 0x20019
push 0
push ecx
push edx
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41813a
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push esi
push eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x20]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 4]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret 0x18
Function at 0x4184a4
Capabilities:
Get common file path

Disassembly:
sub esp, 0x804
mov eax, dword [0x4bcb20]
xor eax, esp
mov dword [esp + 0x800], eax
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0
je 0x4184c8
mov eax, 1
pop esi
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.00469030
add esp, 0x804
ret
push edi
xor eax, eax
push 0x3fe
push eax
lea ecx, [esp + 0x412]
push ecx
mov word [esp + 0x414], ax
call fcn.004683b0
add esp, 0xc
push 0x200
call fcn.00436280
push eax
lea edx, [esp + 0x410]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push str.NTUSER.DAT
lea eax, [esp + 0x40c]
push eax
call edi
xor ecx, ecx
push 0x3fe
push ecx
lea edx, [esp + 0x12]
push edx
mov word [esp + 0x14], cx
call fcn.004683b0
add esp, 0xc
push 1
push 0x1a
lea eax, [esp + 0x10]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x4a1380
lea ecx, [esp + 0xc]
push ecx
call edi
push str.NTUSER.DAT
lea edx, [esp + 0xc]
push edx
call edi
lea eax, [esp + 0x408]
push eax
mov ecx, esi
call fcn.00418310
mov dword [esi + 0xc], eax
pop edi
test eax, eax
jne 0x418580
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.00418310
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x804]
pop esi
xor ecx, esp
call fcn.00469030
add esp, 0x804
ret

Function at 0x4189c0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x9c
mov eax, dword [0x4bcb20]
xor eax, esp
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0xa8]
mov ecx, 0x200
mul ecx
push ebx
push ebp
mov ebp, dword [esp + 0xb8]
mov ebx, edx
movzx edx, word [esp + 0xac]
push esi
push edi
add edx, 0xffffff80
push edx
mov edi, eax
lea eax, [esp + 0x2c]
push str..PHYSICALDRIVE_d
push eax
mov edx, 0x80
call fcn.00418050
add esp, 0xc
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x418a9e
movzx eax, word [esp + 0xb0]
sub eax, 3
mov dword [esp + 0x24], 0
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], ebx
je 0x418a76
sub eax, 1
jne 0x418a97
mov ecx, dword [esp + 0xbc]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
shl ecx, 9
push ecx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x418a93
mov ecx, dword [esp + 0xbc]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
shl ecx, 9
push ecx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x418aa2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x418aae
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [esp + 0xa8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00469030
add esp, 0x9c
ret 0x14
Function at 0x418ad0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4bcb20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 8], 0
test ebx, ebx
je 0x418b2c
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
cmp edi, 0x3fffffff
jg 0x418b2c
lea eax, [edi + edi]
call fcn.00469040
mov esi, esp
test esi, esi
je 0x418b2c
push edi
push esi
push 0xffffffffffffffff
xor eax, eax
push ebx
push eax
push 3
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, esi
jmp 0x418b2e
xor eax, eax
push 0
push 0
push 3
push 0
push 7
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x418c39
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
xor edx, edx
mov dword [ecx], eax
div ebx
mov esi, eax
add esi, 2
shl esi, 4
push esi
call fcn.00468872
mov ecx, dword [ebp - 0x10]
add esp, 4
mov edi, eax
xor eax, eax
push eax
lea edx, [ebp - 0x28]
push edx
push esi
push edi
push 8
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push eax
push 0x90073
push ecx
mov dword [ebp - 0x1c], edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x418c26
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
xor edx, edx
lea eax, [eax + ebx - 1]
div ebx
mov ecx, dword [ebp + 0x10]
lea edx, [eax*8]
push edx
mov dword [ecx], eax
call fcn.00468872
mov ebx, dword [edi + 8]
mov dword [ebp - 8], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [edi]
add esp, 4
xor ecx, ecx
test eax, eax
jbe 0x418c26
add edi, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [edi]
sub eax, ebx
mov edx, dword [edi + 8]
mov esi, dword [edi + 0xc]
je 0x418c12
mov ebx, dword [ebp + 0x10]
mov ebx, dword [ebx]
mov dword [ebp - 0x14], ebx
cmp ecx, dword [ebp - 0x14]
jae 0x418c06
mov ebx, dword [ebp - 8]
mov dword [ebx + ecx*8], edx
mov dword [ebx + ecx*8 + 4], esi
dec eax
inc ecx
add edx, 1
adc esi, 0
test eax, eax
jne 0x418bf7
mov edx, dword [edi + 4]
mov ebx, dword [edi]
add edi, 0x10
sub dword [ebp - 0xc], 1
mov dword [ebp - 0x14], edx
jne 0x418be3
mov edi, dword [ebp - 0x1c]
push edi
call fcn.00468795
mov eax, dword [ebp - 0x10]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
lea esp, [ebp - 0x34]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00469030
mov esp, ebp
pop ebp
ret 0x10
Function at 0x419280
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x4bcb20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 8]
inc eax
lea ebx, [eax + eax*2]
add ebx, ebx
add ebx, ebx
push ebx
mov dword [ebp - 0x410], ebx
call fcn.00445789
mov esi, eax
add esp, 4
test esi, esi
je 0x4193ae
mov dword [esi], 0
mov dword [esi], 0x34532008
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 8]
mov edx, dword [edi + 4]
lea ecx, [eax + eax*2]
add ecx, ecx
add ecx, ecx
push ecx
push edx
lea eax, [esi + 0xc]
push eax
call fcn.00468430
add ebx, 0xfffffff8
lea eax, [esi + 8]
push ebx
push eax
call fcn.00435e60
xor ecx, ecx
push 0x3fe
push ecx
lea edx, [ebp - 0x40a]
mov dword [esi + 4], eax
push edx
mov word [ebp - 0x40c], cx
call fcn.004683b0
add esp, 0x20
push 0x200
lea eax, [ebp - 0x40c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov cl, byte [ebp - 0x40c]
xor eax, eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov al, 0x5c
lea edx, [ebp - 0xc]
push edx
mov byte [ebp - 0xc], al
mov byte [ebp - 0xb], al
mov byte [ebp - 0xa], 0x2e
mov byte [ebp - 9], al
mov byte [ebp - 8], cl
mov byte [ebp - 7], 0x3a
mov byte [ebp - 6], 0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
inc ebx
cmp ebx, 0x3fffffff
jle 0x419368
xor eax, eax
jmp 0x41937f
lea eax, [ebx + ebx]
call fcn.00469040
mov eax, esp
push 3
push ebx
lea ecx, [ebp - 0xc]
push ecx
push eax
call fcn.004185a0
mov edx, dword [edi + 0x20]
mov ecx, dword [edi + 0x1c]
push edx
mov edx, dword [edi + 0x18]
push ecx
mov ecx, dword [edi + 0x10]
push edx
mov edx, dword [ebp - 0x410]
push ecx
push edx
push esi
push eax
push 4
mov ecx, edi
call fcn.00417ec0
push esi
mov edi, eax
call fcn.0044577e
add esp, 4
mov eax, edi
lea esp, [ebp - 0x41c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00469030
mov esp, ebp
pop ebp
ret
Function at 0x4195a0
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x230]
sub esp, 0x230
push 0xffffffffffffffff
push 0x48a198
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4bcb20]
xor eax, ebp
mov dword [ebp + 0x22c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x238]
mov edi, ecx
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 8]
inc eax
lea ebx, [eax + eax*2]
add ebx, ebx
add ebx, ebx
push ebx
call fcn.00445789
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
test esi, esi
je 0x419706
mov dword [esi], 0
mov dword [esi], 0x34532008
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov eax, dword [edi + 8]
lea edx, [eax + eax*2]
mov eax, dword [edi + 4]
add edx, edx
add edx, edx
push edx
push eax
lea ecx, [esi + 0xc]
push ecx
call fcn.00468430
lea edx, [ebx - 8]
push edx
lea eax, [esi + 8]
push eax
call fcn.00435e60
mov edi, dword [ebp - 0x14]
add esp, 0x14
push edi
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], eax
call fcn.00445c2e
push 0
push 0x9002
push edi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0044603c
test eax, eax
je 0x419690
push ebx
push esi
lea ecx, [ebp - 0x28]
call fcn.00445964
lea ecx, [ebp - 0x28]
call fcn.00445bc8
mov dword [ebp - 0x14], 1
push 0x22c
lea eax, [ebp]
push 0
push eax
call fcn.004683b0
add esp, 0xc
lea ecx, [ebp]
push ecx
push edi
call fcn.004464dc
test eax, eax
je 0x4196bf
or byte [ebp + 0x20], 6
lea edx, [ebp]
push edx
push edi
call fcn.004466b3
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00445d1a
jmp 0x4196fa
push esi
call fcn.0044577e
mov eax, dword [ebp - 0x14]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x22c]
xor ecx, ebp
call fcn.00469030
add ebp, 0x230
mov esp, ebp
pop ebp
ret 4

Function at 0x419930
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x419949
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x419984
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x419980
lea ebx, [ebx]
cmp esi, eax
jae 0x419984
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x419970
cmp esi, eax
jb 0x41998a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x41ae70
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x48a26e
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bcb20]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
call fcn.004480e8
xor ebx, ebx
mov dword [esp + 0x20], ebx
mov dword [esi], vtable.CBroListCtrl.0
lea ebp, [esi + 0x54]
call fcn.0044e2fa
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41aec9
push 0x80004005
call fcn.00419910
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp], eax
mov byte [esp + 0x20], 1
lea edi, [esi + 0x58]
call fcn.0044e2fa
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41aefa
push 0x80004005
call fcn.00419910
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
push ebx
push 0x4a19f8
mov ecx, edi
mov byte [esp + 0x28], 2
call fcn.0041a4f0
mov ecx, dword [edi]
push ebx
push ebx
push ecx
push ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push edi
mov ecx, ebp
call fcn.0041a970
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x41b3b0
Capabilities:
Get file system object information

Disassembly:
push 0xffffffffffffffff
push 0x48a328
mov eax, dword fs:[0]
push eax
sub esp, 0xaf8
mov eax, dword [0x4bcb20]
xor eax, esp
mov dword [esp + 0xaf4], eax
push esi
push edi
mov eax, dword [0x4bcb20]
xor eax, esp
push eax
lea eax, [esp + 0xb04]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0xb14]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push eax
lea ecx, [esp + 0x304]
push ecx
mov dword [esp + 0xb14], 0
call edi
push 0x4a19f8
lea ecx, [esp + 0x10]
call fcn.0041afa0
push 0x701
push 4
lea edx, [esp + 0x54]
push edx
push 0
lea eax, [esp + 0x310]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x304]
push edx
call edi
lea eax, [esp + 0x260]
push eax
lea ecx, [esp + 0x704]
push ecx
call edi
mov ecx, dword [esi + 0x20]
mov edx, dword [esp + 0x50]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esp + 0x10]
push eax
push 0
push 0x104d
push ecx
mov dword [esp + 0x20], 7
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x34], 0x48fc78
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], 1
call edi
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
push 0
push 0x104c
lea edx, [esp + 0x70c]
push ecx
mov dword [esp + 0x20], 1
mov dword [esp + 0x28], 2
mov dword [esp + 0x34], edx
call edi
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41b4f2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xb14]
add eax, 0xfffffff0
mov dword [esp + 0xb0c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b520
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xb04]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0xaf4]
xor ecx, esp
call fcn.00469030
add esp, 0xb04
ret 4
Function at 0x41e800
Capabilities:
Get common file path

Disassembly:
sub esp, 0x408
mov eax, dword [0x4bcb20]
xor eax, esp
mov dword [esp + 0x404], eax
push esi
mov esi, ecx
xor eax, eax
push 0x400
push eax
lea ecx, [esp + 0xe]
push ecx
mov dword [esi], vtable.COpenAsDialog.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov word [esp + 0x10], ax
call fcn.004683b0
add esp, 0xc
push 0x200
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str._shell32.dll
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 4], eax
test eax, eax
je 0x41e88d
push str.OpenAs_RunDLLW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x408]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00469030
add esp, 0x408
ret
Function at 0x41eb60
Capabilities:
Check os version

Disassembly:
sub esp, 0x234
mov eax, dword [0x4bcb20]
xor eax, esp
mov dword [esp + 0x230], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0x114
call esi
test eax, eax
je 0x41eda0
mov eax, dword [esp + 0x14]
cmp eax, 2
jne 0x41ed0e
mov eax, dword [esp + 8]
cmp eax, 5
jne 0x41ec52
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x41ebcf
mov eax, 7
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00469030
add esp, 0x234
ret
cmp eax, 1
jne 0x41ebef
mov eax, 8
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00469030
add esp, 0x234
ret
cmp eax, 2
jne 0x41eda0
lea ecx, [esp + 0x118]
push ecx
mov dword [esp + 0x11c], 0x11c
call esi
mov al, byte [esp + 0x232]
cmp al, 3
je 0x41ec37
cmp al, 2
je 0x41ec37
mov eax, 9
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00469030
add esp, 0x234
ret
mov eax, 0xa
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00469030
add esp, 0x234
ret
cmp eax, 6
jne 0x41ecea
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x41ecbd
lea edx, [esp + 0x118]
push edx
mov dword [esp + 0x11c], 0x11c
call esi
mov al, byte [esp + 0x232]
cmp al, 3
je 0x41eca2
cmp al, 2
je 0x41eca2
mov eax, 0xb
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00469030
add esp, 0x234
ret
mov eax, 0xc
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00469030
add esp, 0x234
ret
cmp eax, 1
jne 0x41eda0
call fcn.0041eaf0
neg eax
sbb eax, eax
neg eax
add eax, 0xd
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00469030
add esp, 0x234
ret
cmp eax, 4
jne 0x41eda0
mov eax, 6
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00469030
add esp, 0x234
ret
cmp eax, 1
jne 0x41ed81
cmp dword [esp + 8], 4
jne 0x41eda0
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x41ed41
mov eax, 2
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00469030
add esp, 0x234
ret
cmp eax, 0xa
jne 0x41ed61
mov eax, 3
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00469030
add esp, 0x234
ret
cmp eax, 0x5a
jne 0x41eda0
mov eax, 4
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00469030
add esp, 0x234
ret
test eax, eax
jne 0x41eda0
mov eax, 1
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00469030
add esp, 0x234
ret
mov ecx, dword [esp + 0x234]
pop esi
xor ecx, esp
xor eax, eax
call fcn.00469030
add esp, 0x234
ret

Function at 0x41efb0
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0
add ecx, 0x428
push ecx
push 0x41edc0
push 0
push 0
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor eax, eax
cmp dword [esp], eax
setne al
pop ecx
ret

Function at 0x41f2c0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push eax
xor edi, edi
push edi
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, 0xffffffff
je 0x41f2ef
test esi, esi
je 0x41f2ef
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret
Function at 0x41f4f0
Capabilities:
Get file attributes

Disassembly:
mov eax, 0x1260
call fcn.0046a1a0
mov eax, dword [0x4bcb20]
xor eax, esp
mov dword [esp + 0x125c], eax
mov eax, dword [esp + 0x1268]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1270]
push edi
mov dword [esp + 0x18], ecx
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [esp + 0x276]
push edx
mov dword [esp + 0x20], eax
mov word [esp + 0x278], cx
call fcn.004683b0
xor eax, eax
push 0x7fe
push eax
lea ecx, [esp + 0xa82]
push ecx
mov word [esp + 0xa84], ax
call fcn.004683b0
mov eax, esi
add esp, 0x18
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41f564
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 - 2], 0x5c
je 0x41f589
push 0x4a1380
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea edx, [esp + 0xa70]
push edx
call ebx
push 0x48fc94
lea eax, [esp + 0xa70]
push eax
call edi
push 0x250
lea ecx, [esp + 0x20]
push 0
push ecx
call fcn.004683b0
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0xa70]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
mov dword [esp + 0x10], ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebp, 0xffffffff
je 0x41f70b
test ebp, ebp
je 0x41f70b
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, 0x4907a8
lea eax, [esp + 0x48]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41f626
test dx, dx
je 0x41f622
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41f626
add eax, 4
add ecx, 4
test dx, dx
jne 0x41f600
xor eax, eax
jmp 0x41f62b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41f6e1
mov ecx, 0x48fc78
lea eax, [esp + 0x48]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41f666
test dx, dx
je 0x41f662
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41f666
add eax, 4
add ecx, 4
test dx, dx
jne 0x41f640
xor eax, eax
jmp 0x41f66b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41f6e1
push esi
lea ecx, [esp + 0x270]
push ecx
call ebx
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x270]
push eax
call edi
lea ecx, [esp + 0x26c]
push ecx
call ebp
test al, 0x10
je 0x41f6af
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x270]
push eax
call fcn.0041f4f0
jmp 0x41f6e1
test al, 1
je 0x41f6c5
and eax, 0xfffffffe
push eax
lea ecx, [esp + 0x270]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, dword [esp + 0x18]
push 2
add edx, 0xabd
push edx
lea eax, [esp + 0x274]
push eax
call dword [esp + 0x20]
add esp, 0xc
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41f5f3
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
jmp 0x41f70d
xor eax, eax
mov ecx, dword [esp + 0x126c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00469030
add esp, 0x1260
ret 8