joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403de0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x44
push esi
push edi
mov dword [esp + 0x1c], edx
mov edi, ecx
call fcn.00403ae0
mov esi, eax
test esi, esi
jne 0x403dfe
pop edi
xor eax, eax
pop esi
add esp, 0x44
ret
lea edx, [esp + 0x38]
mov ecx, esi
mov dword [esp + 0x38], 0x64616f4c
mov dword [esp + 0x3c], 0x7262694c
mov dword [esp + 0x40], 0x41797261
mov byte [esp + 0x44], 0
call fcn.00403ba0
mov dword [esp + 0x18], eax
test eax, eax
je 0x403df6
lea edx, [esp + 0x38]
mov ecx, esi
mov dword [esp + 0x38], 0x65657246
mov dword [esp + 0x3c], 0x7262694c
mov dword [esp + 0x40], 0x797261
call fcn.00403ba0
mov dword [esp + 0x34], eax
test eax, eax
je 0x403df6
lea edx, [esp + 0x38]
mov ecx, esi
mov dword [esp + 0x38], 0x50746547
mov dword [esp + 0x3c], 0x41636f72
mov dword [esp + 0x40], 0x65726464
mov word [esp + 0x44], 0x7373
mov byte [esp + 0x46], 0
call fcn.00403ba0
mov dword [esp + 0x28], eax
test eax, eax
je 0x403df6
lea edx, [esp + 0x38]
mov ecx, esi
mov dword [esp + 0x38], 0x4d746547
mov dword [esp + 0x3c], 0x6c75646f
mov dword [esp + 0x40], 0x6e614865
mov dword [esp + 0x44], 0x41656c64
mov byte [esp + 0x48], 0
call fcn.00403ba0
mov dword [esp + 0x30], eax
test eax, eax
je 0x403df6
mov eax, dword [edi + 0x3c]
push ebx
cmp dword [eax + edi + 0x84], 0
push ebp
je 0x403fc5
mov ecx, dword [eax + edi + 0x80]
add ecx, edi
xor esi, esi
lea ebx, [ecx + 0xc]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x10], esi
cmp dword [ebx], esi
je 0x403fc5
mov eax, ebx
mov ebp, ecx
mov eax, dword [eax]
add eax, edi
push eax
mov dword [esp + 0x2c], eax
call dword [esp + 0x24]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x403f28
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x1c], eax
add eax, edi
mov dword [esp + 0x14], 0
cmp dword [eax], 0
je 0x403fa9
mov dword [esp + 0x18], 0
nop
mov eax, dword [eax]
test eax, eax
jns 0x403f4b
movzx esi, ax
jmp 0x403f50
lea esi, [edi + 2]
add esi, eax
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x403f6f
push dword [esp + 0x58]
and eax, 0x80000000
push eax
push esi
push dword [esp + 0x34]
call ecx
mov ecx, eax
test ecx, ecx
jne 0x403f7e
push esi
push dword [esp + 0x30]
call dword [esp + 0x38]
mov ecx, eax
test ecx, ecx
je 0x403fd2
mov eax, dword [ebp + 0x10]
add eax, dword [esp + 0x18]
mov dword [eax + edi], ecx
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0x14], ecx
shl ecx, 2
add eax, ecx
add eax, edi
mov dword [esp + 0x18], ecx
cmp dword [eax], 0
jne 0x403f40
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
inc esi
mov dword [esp + 0x10], esi
lea eax, [esi + esi*4]
lea ebp, [ecx + eax*4]
cmp dword [ebp + 0xc], 0
lea eax, [ebp + 0xc]
jne 0x403f05
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 0x44
ret
cmp dword [ebx], 0
je 0x403ffb
mov esi, dword [esp + 0x10]
xor ebp, ebp
lea ecx, [ecx]
cmp ebp, esi
ja 0x403ffb
mov eax, dword [ebx]
add eax, edi
push eax
call dword [esp + 0x3c]
push eax
call dword [esp + 0x40]
add ebx, 0x14
inc ebp
cmp dword [ebx], 0
jne 0x403fe0
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x44
ret
Function at 0x404010
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x18
push esi
push edi
mov edi, ecx
call fcn.00403ae0
mov esi, eax
test esi, esi
je 0x4040cc
push ebp
lea edx, [esp + 0x10]
mov ecx, esi
mov dword [esp + 0x10], 0x65657246
mov dword [esp + 0x14], 0x7262694c
mov dword [esp + 0x18], 0x797261
call fcn.00403ba0
mov ebp, eax
test ebp, ebp
je 0x4040cb
lea edx, [esp + 0x10]
mov ecx, esi
mov dword [esp + 0x10], 0x4d746547
mov dword [esp + 0x14], 0x6c75646f
mov dword [esp + 0x18], 0x6e614865
mov dword [esp + 0x1c], 0x41656c64
mov byte [esp + 0x20], 0
call fcn.00403ba0
mov edx, eax
mov dword [esp + 0xc], edx
test edx, edx
je 0x4040cb
mov ecx, dword [edi + 0x3c]
cmp dword [ecx + edi + 0x84], 0
je 0x4040cb
push ebx
mov ebx, dword [ecx + edi + 0x80]
add ebx, edi
xor esi, esi
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x4040ca
lea ebx, [ebx]
add eax, edi
push eax
call edx
push eax
call ebp
mov edx, dword [esp + 0x10]
lea esi, [esi + 1]
lea eax, [esi + esi*4]
mov eax, dword [ebx + eax*4 + 0xc]
test eax, eax
jne 0x4040b0
pop ebx
pop ebp
pop edi
pop esi
add esp, 0x18
ret

Function at 0x4043c2
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov eax, 0x6b
mov word [ebp - 0x24], ax
mov ecx, 0x65
mov word [ebp - 0x22], cx
mov edx, 0x72
mov word [ebp - 0x20], dx
mov eax, 0x6e
mov word [ebp - 0x1e], ax
mov ecx, 0x65
mov word [ebp - 0x1c], cx
mov edx, 0x6c
mov word [ebp - 0x1a], dx
mov eax, 0x33
mov word [ebp - 0x18], ax
mov ecx, 0x32
mov word [ebp - 0x16], cx
mov edx, 0x2e
mov word [ebp - 0x14], dx
mov eax, 0x64
mov word [ebp - 0x12], ax
mov ecx, 0x6c
mov word [ebp - 0x10], cx
mov edx, 0x6c
mov word [ebp - 0xe], dx
xor eax, eax
mov word [ebp - 0xc], ax
mov dword [ebp - 4], 0
mov ebx, dword fs:[0x30]
mov ebx, dword [ebx + 0xc]
mov ebx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x404476
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.00404352
add esp, 8
cmp eax, 0
mov eax, dword [ebx + 0x10]
mov ebx, dword [ebx]
jne 0x40444f
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404482
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x14
push ebp
push edi
mov edi, ecx
mov ebp, edx
test edi, edi
je 0x40449d
test ebp, ebp
je 0x40449d
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi + 0x7c], 0
jne 0x4044a5
pop edi
xor eax, eax
pop ebp
add esp, 0x14
ret
mov eax, dword [eax + edi + 0x78]
add eax, edi
push ebx
mov ecx, dword [eax + 0x20]
mov edx, dword [eax + 0x24]
mov ebx, dword [eax + 0x14]
add ecx, edi
mov dword [esp + 0x10], ecx
push esi
mov esi, dword [eax + 0x1c]
mov ecx, ebp
sub ecx, dword [eax + 0x10]
add esi, edi
add edx, edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], ebx
cmp ecx, ebx
ja 0x4044e5
mov eax, dword [esi + ecx*4]
pop esi
pop ebx
add eax, edi
pop edi
pop ebp
add esp, 0x14
ret
mov eax, dword [eax + 0x18]
xor esi, esi
mov dword [esp + 0x18], eax
test eax, eax
je 0x404541
mov ecx, ebx
movzx ebx, word [edx + esi*2]
cmp ebx, ecx
ja 0x40453c
mov eax, dword [esp + 0x14]
mov ecx, ebp
mov eax, dword [eax + esi*4]
add eax, edi
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x404527
test dl, dl
je 0x404523
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x404527
add ecx, 2
add eax, 2
test dl, dl
jne 0x404507
xor eax, eax
jmp 0x40452c
sbb eax, eax
or eax, 1
test eax, eax
je 0x40454b
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
inc esi
cmp esi, eax
jb 0x4044f4
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
add esp, 0x14
ret
mov eax, dword [esp + 0x20]
pop esi
mov eax, dword [eax + ebx*4]
pop ebx
add eax, edi
pop edi
pop ebp
add esp, 0x14
ret

Function at 0x404562
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x18
push esi
push edi
mov edi, ecx
call fcn.004043c2
mov esi, eax
test esi, esi
je 0x40461e
push ebp
lea edx, [esp + 0x10]
mov ecx, esi
mov dword [esp + 0x10], 0x65657246
mov dword [esp + 0x14], 0x7262694c
mov dword [esp + 0x18], 0x797261
call fcn.00404482
mov ebp, eax
test ebp, ebp
je 0x40461d
lea edx, [esp + 0x10]
mov ecx, esi
mov dword [esp + 0x10], 0x4d746547
mov dword [esp + 0x14], 0x6c75646f
mov dword [esp + 0x18], 0x6e614865
mov dword [esp + 0x1c], 0x41656c64
mov byte [esp + 0x20], 0
call fcn.00404482
mov edx, eax
mov dword [esp + 0xc], edx
test edx, edx
je 0x40461d
mov ecx, dword [edi + 0x3c]
cmp dword [ecx + edi + 0x84], 0
je 0x40461d
push ebx
mov ebx, dword [ecx + edi + 0x80]
add ebx, edi
xor esi, esi
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x40461c
lea ebx, [ebx]
add eax, edi
push eax
call edx
push eax
call ebp
mov edx, dword [esp + 0x10]
lea esi, [esi + 1]
lea eax, [esi + esi*4]
mov eax, dword [ebx + eax*4 + 0xc]
test eax, eax
jne 0x404602
pop ebx
pop ebp
pop edi
pop esi
add esp, 0x18
ret
Function at 0x409d50
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call fcn.0040b3da
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x409dba
push esi
lea edi, [eax + 0x400]
call fcn.0040b3cf
push edi
call fcn.0040b3da
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x409d8a
push esi
xor edi, edi
call dword [0x428f74]
add esp, 4
test eax, eax
je 0x409dd6
push eax
push esi
call fcn.0040ad60
add esp, 8
mov edi, eax
push esi
call fcn.0040b3cf
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x100010e0
Capabilities:
Persist via contextmenuhandlers registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x1001a00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x104
lea eax, [ebp - 0x414]
push eax
push dword [0x1001b424]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
lea eax, [ebp - 0x418]
push eax
push 0x100121d0
push 0x80000000
call esi
test eax, eax
je 0x1000113d
mov eax, 0x80040201
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10004811
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
push 0x4e
push 0x10012288
push 1
push 0
push 0x100122d8
push dword [ebp - 0x418]
call ebx
push dword [ebp - 0x418]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
lea eax, [ebp - 0x418]
push eax
push 0x100122e0
push 0x80000000
call esi
test eax, eax
jne 0x1000124e
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10001190
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x414]
push eax
push 1
push 0
push 0x100122dc
push dword [ebp - 0x418]
call ebx
push 0x14
push str.Apartment
push 1
push 0
push str.ThreadingModel
push dword [ebp - 0x418]
call ebx
push dword [ebp - 0x418]
call edi
lea eax, [ebp - 0x418]
push eax
push 0x100123a0
push 0x80000000
call esi
test eax, eax
jne 0x1000124e
push 0x4e
push 0x10012460
push 1
push eax
push 0x1001240c
push dword [ebp - 0x418]
call ebx
push dword [ebp - 0x418]
call edi
push 0x1001b428
mov dword [0x1001b428], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [0x1001b438], 2
jne 0x100012eb
lea eax, [ebp - 0x418]
push eax
push 0x100124b0
push 0x80000000
call esi
test eax, eax
je 0x10001264
pop edi
pop ebx
mov eax, 0x80040201
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10004811
mov esp, ebp
pop ebp
ret
xor ecx, ecx
movzx eax, word [ecx + str.Scan_with]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x20e], ax
test ax, ax
jne 0x10001266
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x10001286
mov ecx, 7
mov esi, str.Total_Security
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
movsw word es:[edi], word [esi]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100012b0
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push 0x10012570
push dword [ebp - 0x418]
call ebx
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.10004811
mov esp, ebp
pop ebp
ret
Function at 0x10001300
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push str._shellexContextMenuHandlersITL_Total_Security
push 0x80000000
call esi
test eax, eax
je 0x10001325
mov eax, 0x80040201
pop esi
mov esp, ebp
pop ebp
ret
push str.CLSIDEC6FBE09_5A2F_439F_89E5_F8356582FB3AInProcServer32
push 0x80000000
call esi
test eax, eax
jne 0x1000131b
push str.Folder_shellexContextMenuHandlersITL_Total_Security
push 0x80000000
call esi
test eax, eax
jne 0x1000131b
push 0x1001b428
mov dword [0x1001b428], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [0x1001b438], 2
jne 0x10001399
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionShell_ExtensionsApproved
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x10001399
push str.EC6FBE09_5A2F_439F_89E5_F8356582FB3A
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100013d0
Capabilities:
Check os version

Disassembly:
push esi
mov esi, ecx
mov dword [esi], vtable.CShellExt.0
mov dword [esi + 4], vtable.CShellExt.1.0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
push 0x1000
push 0
push 0
push 0
cmp al, 5
jbe 0x1000140e
push 0x66
jmp 0x10001410
push 0x65
push dword [0x1001b424]
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [esi + 0x14], eax
mov eax, esi
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
inc dword [0x1001b558]
pop esi
ret
Function at 0x10001680
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
movzx eax, word [ecx + 0xe]
test ax, ax
jne 0x1000169a
cmp word [ecx + 0xc], ax
jne 0x1000169a
test ax, ax
je 0x100016a3
mov eax, 0x80070057
pop ebp
ret 8
push edi
push 0x14
call fcn.1000479b
mov edi, eax
add esp, 4
test edi, edi
je 0x10001786
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi], 0
mov byte [edi + 4], 0
call fcn.10002530
test al, al
je 0x100016ed
mov byte [edi + 4], 1
jmp 0x10001755
add esi, 0x18
mov byte [edi + 4], 0
push esi
lea ecx, [edi + 8]
call fcn.10003270
mov ecx, dword [edi + 0xc]
mov eax, 0x2aaaaaab
sub ecx, dword [edi + 8]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x1000171e
mov dword [edi], 1
jmp 0x10001755
mov ecx, dword [esi + 4]
mov eax, 0x2aaaaaab
sub ecx, dword [esi]
imul ecx
mov ecx, dword [edi + 0xc]
mov eax, 0x2aaaaaab
sub ecx, dword [edi + 8]
sar edx, 2
mov esi, edx
shr esi, 0x1f
add esi, edx
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, esi
je 0x10001755
mov dword [edi], 2
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
push 0
push edi
push 0x10002620
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
pop ebx
test eax, eax
je 0x1000177f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop ebp
ret 8
mov eax, 0x8000ffff
pop edi
pop ebp
ret 8
Function at 0x10001960
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10011469
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x1001a00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [ebp - 0x2c]
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x2d]
push eax
push dword [ebx + 4]
push dword [ebx]
call fcn.10002e90
mov eax, dword [ebx]
add esp, 0x10
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebx + 4], eax
push 0
push 0
call edi
mov esi, eax
test esi, esi
je 0x10001a93
xor ecx, ecx
lea eax, [esi + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1000562a
add esp, 4
mov dword [ebp - 0x2c], eax
push eax
push esi
call edi
mov eax, dword [ebp - 0x2c]
mov esi, eax
cmp word [eax], 0
je 0x10001a8a
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push esi
call edi
cmp eax, 4
je 0x10001a73
push esi
call fcn.10005556
xor eax, eax
mov dword [ebp - 0x14], 7
add esp, 4
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [esi], ax
jne 0x10001a23
xor ecx, ecx
jmp 0x10001a3f
mov ecx, esi
lea edx, [ecx + 2]
jmp 0x10001a30
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10001a30
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.10003fd0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
mov ecx, ebx
call fcn.10004440
cmp dword [ebp - 0x14], 8
mov dword [ebp - 4], 0xffffffff
jb 0x10001a73
push dword [ebp - 0x28]
call fcn.10004820
add esp, 4
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10001a73
cmp word [esi], ax
jne 0x100019f5
mov eax, dword [ebp - 0x2c]
push eax
call fcn.10005633
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 - 0x10]
xor ecx, ebp
call fcn.10004811
mov esp, ebp
pop ebp
ret 4
Function at 0x10001d70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100114c7
mov eax, dword fs:[0]
push eax
sub esp, 0xc70
mov eax, dword [0x1001a00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc74], eax
test ebx, ebx
je 0x10001f72
push 0
push 0
push 0xffffffffffffffff
push ebx
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
xor esi, esi
mov dword [ebp - 0xc78], eax
test eax, eax
je 0x10001f72
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x10001de0
xor eax, eax
cmp dword [0x1001b438], 2
push 0x616
push eax
je 0x10001ea9
mov word [ebp - 0xc40], ax
lea eax, [ebp - 0xc3e]
push eax
call fcn.10006240
add esp, 0xc
lea eax, [ebp - 0xc40]
push 0x30c
push eax
push esi
push ebx
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
lea ecx, [ebp - 0xc40]
lea edx, [ecx + 2]
jmp 0x10001e30
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10001e30
sub ecx, edx
sar ecx, 1
je 0x10001f65
lea eax, [ebp - 0xc40]
push eax
call edi
cmp eax, 0xffffffff
je 0x10001f65
lea eax, [ebp - 0xc40]
push eax
lea ecx, [ebp - 0xc70]
call fcn.10003160
mov ecx, dword [ebp - 0xc74]
lea eax, [ebp - 0xc70]
push eax
mov dword [ebp - 4], 0
call fcn.10004440
cmp dword [ebp - 0xc5c], 8
mov dword [ebp - 4], 0xffffffff
jb 0x10001f65
push dword [ebp - 0xc70]
call fcn.10004820
add esp, 4
jmp 0x10001f65
mov word [ebp - 0x628], ax
lea eax, [ebp - 0x626]
push eax
call fcn.10006240
add esp, 0xc
lea eax, [ebp - 0x628]
push 0x30c
push eax
push esi
push ebx
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
lea eax, [ebp - 0x628]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10001ee0
sub eax, edx
sar eax, 1
je 0x10001f65
lea eax, [ebp - 0x628]
push eax
call edi
cmp eax, 0xffffffff
je 0x10001f65
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0xc58]
call fcn.10003160
mov ecx, dword [ebp - 0xc74]
lea eax, [ebp - 0xc58]
push eax
mov dword [ebp - 4], 1
call fcn.10004440
cmp dword [ebp - 0xc44], 8
mov dword [ebp - 4], 0xffffffff
jb 0x10001f48
push dword [ebp - 0xc58]
call fcn.10004820
add esp, 4
xor eax, eax
mov dword [ebp - 0xc44], 7
mov dword [ebp - 0xc48], 0
mov word [ebp - 0xc58], ax
inc esi
cmp esi, dword [ebp - 0xc78]
jb 0x10001de0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10004811
mov esp, ebp
pop ebp
ret 8
Function at 0x10002040
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1870
call fcn.10005bc0
mov eax, dword [0x1001a00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
cmp dword [0x1001b438], 2
push edi
mov edi, dword [ebp + 0xc]
push 0x616
mov dword [ebp - 0x1870], 0
push eax
je 0x10002130
mov word [ebp - 0x1864], ax
lea eax, [ebp - 0x1862]
push eax
call fcn.10006240
add esp, 0xc
lea eax, [ebp - 0x1864]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x100020b0
push 0x10013010
jmp 0x100021d2
xor eax, eax
push 0x616
push eax
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push eax
call fcn.10006240
add esp, 0xc
mov dword [ebp - 0x1868], 0
lea eax, [ebp - 0x1868]
push eax
lea eax, [ebp - 0x61c]
push eax
push 0x30c
lea eax, [ebp - 0x1864]
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x10002106
push 0x10013018
jmp 0x100021d2
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, esi
cmp eax, 0xffffffff
jne 0x10002124
push 0x1001303c
jmp 0x100021d4
lea eax, [ebp - 0x61c]
push eax
jmp 0x100021d4
mov word [ebp - 0x124c], ax
lea eax, [ebp - 0x124a]
push eax
call fcn.10006240
add esp, 0xc
lea eax, [ebp - 0x124c]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x1000215f
push 0x10013044
jmp 0x100021d2
xor eax, eax
push 0x616
push eax
mov word [ebp - 0xc34], ax
lea eax, [ebp - 0xc32]
push eax
call fcn.10006240
add esp, 0xc
mov dword [ebp - 0x186c], 0
lea eax, [ebp - 0x186c]
push eax
lea eax, [ebp - 0xc34]
push eax
push 0x30c
lea eax, [ebp - 0x124c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x100021b2
push 0x1001304c
jmp 0x100021d2
lea eax, [ebp - 0xc34]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100021cb
push 0x10013050
jmp 0x100021d2
lea eax, [ebp - 0xc34]
push eax
mov ecx, esi
call fcn.10003160
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.10004811
mov esp, ebp
pop ebp
ret 8