joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101bad3
Capabilities:
Query or enumerate registry value

Disassembly:
xor eax, eax
inc eax
jmp 0x101bb3a
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov dword [ebp + 8], eax
mov eax, dword [esi + 0xec]
xor edi, edi
xor ebx, ebx
cmp dword [eax], edi
jle 0x101bb1d
push ebx
push eax
call dword [fcn.01006830]
push eax
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x100d91f
mov eax, dword [esi + 0xec]
inc ebx
cmp ebx, dword [eax]
jl 0x101baf8
mov eax, dword [esi + 0xe4]
mov ecx, dword [eax]
push edi
push edi
push dword [ebp + 8]
push 2
push eax
call dword [ecx + 0xc]
test eax, eax
jge 0x101c19b
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
mov esi, dword [esi + 0xe4]
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push edi
push 2
push edi
push esi
call dword [eax + 0x14]
test eax, eax
jl 0x101bb38
push edi
push edi
push edi
push edi
push 0x101c1e0
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
push dword [ebp - 4]
mov edi, eax
neg edi
sbb edi, edi
inc edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x101bb38

Function at 0x101e327
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test eax, eax
push esi
push edi
mov esi, ecx
jne 0x101e350
mov eax, dword [esi + 0x2bc]
mov eax, dword [eax + 0x28c]
and eax, 0xf
mov ecx, dword [esi + 0x2bc]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
add ecx, 8
push ecx
push eax
push 0x421
push dword [esi + 0x20]
call ebx
mov eax, dword [esi + 0x2bc]
test byte [eax + 0x28c], 0x10
jne 0x101e39b
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
sub eax, dword [ebp + 0xc]
cmp eax, 0x1388
jb 0x101e39b
call edi
push 0x101e43c
mov dword [ebp - 4], eax
call fcn.01006fac
mov ecx, esi
call fcn.0101df48
mov ecx, 0x1046180
call fcn.01006a2b
push 0xb
pop ecx
xor eax, eax
mov dword [0x10461a0], 1
lea edi, [ebp - 0x30]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0x2bc]
add eax, 0x88
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x34]
push eax
push 0
push 0x439
push dword [esi + 0x20]
mov dword [ebp - 0x34], 0x30
call ebx
xor edi, edi
inc edi
push 0
mov ecx, esi
mov dword [esi + 0x2c4], edi
call fcn.0101e010
lea eax, [ebp - 0x34]
push eax
push edi
push 0x411
push dword [esi + 0x20]
call ebx
lea eax, [esi + 0x2b8]
push eax
mov eax, dword [esi + 0x2bc]
push dword [eax + 0x288]
mov ecx, esi
push 0x43e
push 2
call fcn.0101e467
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x101ebb4
Capabilities:
Capture webcam image

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0
push dword [ebp + 8]
push 0x419
push dword [ecx]
call dword [sym.imp.USER32.dll_SendMessageW]
pop ebp
ret 4
Function at 0x1020a78
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp word [eax + 0xc], 0x71
push edi
mov edi, ecx
je 0x102a004
xor eax, eax
pop edi
pop ebp
ret 4
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call esi
test ax, ax
jl 0x102a03f
push 0x11
call esi
test ax, ax
jl 0x102a03f
push 0x12
call esi
test ax, ax
jl 0x102a03f
test byte [edi + 0x48], 8
je 0x102a03f
mov ecx, edi
call fcn.0101937a
test eax, eax
jl 0x102a03f
push eax
mov ecx, edi
call fcn.010410d5
pop esi
jmp 0x1020a8e

Function at 0x1020d3a
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
push edi
push 0xe
pop ecx
push 0x10
push dword [ebp + 8]
xor eax, eax
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0xc
mov dword [ebp - 0x20], 1
call fcn.01020ba5
test eax, eax
pop edi
jne 0x1020da5
test byte [ebp + 0x10], 8
je 0x1020d7e
mov dword [ebp - 0x30], 0x1020dac
push 0
push dword [ebp + 0xc]
push 0
call dword [sym.imp.SHELL32.dll_SHCloneSpecialIDList]
test eax, eax
mov dword [ebp - 0x18], eax
je 0x1020da5
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push dword [ebp - 0x18]
call dword [sym.imp.SHELL32.dll_ILFree]
leave
ret 0xc
Function at 0x1021511
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push 0
push dword [ebp - 4]
mov ebx, eax
call fcn.01021628
test eax, eax
jl 0x102160b
push dword [ebx + 4]
push dword [esi + 8]
call fcn.010213db
push eax
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_IStream_WritePidl]
test eax, eax
jge 0x10215ba
jmp 0x102160b
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push 1
push 0x100ae6c
push 0x100cd68
mov esi, ecx
xor ebx, ebx
push 0x80000001
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], ebx
call dword [sym.imp.SHLWAPI.dll_SHOpenRegStream2W]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x102161f
push 4
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x14], 9
call dword [sym.imp.SHLWAPI.dll_IStream_Write]
test eax, eax
jl 0x102160c
mov dword [ebp - 8], ebx
add esi, 0x38
push edi
push dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
call fcn.010165fc
test eax, eax
je 0x10215f4
mov eax, dword [ebp - 8]
movzx eax, byte [eax*8 + 0x101662c]
push eax
push dword [ebp - 4]
call fcn.01021628
test eax, eax
jl 0x102160b
mov eax, dword [esi]
cmp eax, ebx
je 0x10215e4
cmp dword [esi + 8], ebx
je 0x10215e4
cmp dword [eax], ebx
mov dword [ebp - 0xc], ebx
jle 0x10215e4
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov edi, dword [eax + ecx*4]
mov eax, dword [edi]
cmp ebx, eax
jne 0x10214d6
push 1
push dword [ebp - 4]
call fcn.01021628
test eax, eax
jl 0x102160b
push dword [edi + 4]
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_IStream_WritePidl]
test eax, eax
jl 0x102160b
inc dword [ebp - 0xc]
mov eax, dword [esi]
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [eax]
jl 0x10215a5
push 2
push dword [ebp - 4]
call fcn.01021628
test eax, eax
jl 0x102160b
xor ebx, ebx
inc dword [ebp - 8]
add esi, 0x1c
cmp dword [ebp - 8], 6
jb 0x102156c
mov dword [ebp - 0x10], 1
pop edi
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x10], 0
je 0x10298fc
pop esi
pop ebx
leave
ret
push 0x100ae6c
push 0x100cd68
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
jmp 0x102161f

Function at 0x1022c62
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x450
mov eax, dword [0x1046080]
push 0x208
mov dword [ebp - 4], eax
lea eax, [ebp - 0x414]
push eax
push dword [ebp + 8]
push dword [0x10466f0]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x1022cf6
and dword [ebp - 0x450], 0
push edi
push 0xe
pop ecx
xor eax, eax
lea edi, [ebp - 0x44c]
rep stosd dword es:[edi], eax
push 0x3e
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_StrChrW]
test eax, eax
pop edi
je 0x1022cc3
and word [eax], 0
inc eax
inc eax
mov dword [ebp - 0x43c], eax
lea eax, [ebp - 0x450]
lea ecx, [ebp - 0x414]
push eax
mov dword [ebp - 0x450], 0x3c
mov dword [ebp - 0x434], 1
mov dword [ebp - 0x440], ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [ebp - 4]
call fcn.010019ca
leave
ret 4
Function at 0x102c8a7
Capabilities:
Create process on windows
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb00
mov eax, dword [0x1046080]
push ebx
push esi
push edi
push 0x1d
mov dword [ebp - 4], eax
mov edi, 0x1030
mov ebx, 0x21a
call dword [sym.imp.SHLWAPI.dll_IsOS]
test eax, eax
jne 0x102c8d7
add edi, 4
inc ebx
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x50
lea eax, [ebp - 0xa4]
push eax
push 0x20c
push dword [0x10466f0]
call esi
push 0x400
lea eax, [ebp - 0xaac]
push eax
push ebx
push dword [0x10466f0]
call esi
push edi
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0xaac]
push eax
xor esi, esi
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 7
jne 0x102c98b
push 0x104
lea eax, [ebp - 0x2ac]
push eax
push 0x102c998
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0x10
pop ecx
xor eax, eax
mov dword [ebp - 0xb00], esi
lea edi, [ebp - 0xafc]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xabc]
push eax
lea eax, [ebp - 0xb00]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x2ac]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x102c98b
push dword [ebp - 0xab8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xabc]
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.010019ca
leave
ret

Function at 0x102ca99
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push esi
xor esi, esi
push esi
push 0x200
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSetSettings]
test byte [ebp - 0x28], 0x40
je 0x102cb01
call fcn.0102ca08
cmp eax, 2
jb 0x102cb07
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x102af10
push dword [0x10477e8]
mov dword [ebp - 4], esi
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
cmp eax, 0x493e0
sbb esi, esi
neg esi
jne 0x102cb07
push 1
jmp 0x102cb02
push esi
call fcn.0102ca40
mov eax, esi
pop esi
leave
ret

Function at 0x102cb76
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x1046080]
push 7
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
push eax
push 0x1004
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x102cbba
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_StrToIntW]
push 2
lea ecx, [ebp - 0x34]
push ecx
push eax
call dword [sym.imp.GDI32.dll_TranslateCharsetInfo]
mov eax, dword [ebp - 0x34]
jmp 0x102cbbd
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
call fcn.010019ca
leave
ret 4
Function at 0x102cbce
Capabilities:
Create process on windows
Create process suspended
Create thread
Get common file path
Resume thread
Terminate process
Terminate thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x688
mov eax, dword [0x1046080]
push esi
xor esi, esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push esi
mov dword [ebp - 0x640], eax
mov dword [ebp - 0x624], esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
cmp eax, esi
mov dword [ebp - 0x628], eax
je 0x102cda3
push ebx
push eax
call fcn.0102c63f
cmp eax, esi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x62c], eax
je 0x102cd9a
lea ecx, [ebp - 0x644]
push ecx
push 4
push eax
push 0x102c690
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
mov dword [ebp - 0x620], eax
je 0x102cd92
push edi
xor eax, eax
mov dword [ebp - 0x63c], esi
lea edi, [ebp - 0x638]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x10
pop ecx
xor eax, eax
mov dword [ebp - 0x688], esi
lea edi, [ebp - 0x684]
rep stosd dword es:[edi], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x102cd7b
push 0x102ce20
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x102cd7b
push dword [ebp - 0x640]
lea eax, [ebp - 0x61c]
push 0x400
push 0x102cdb8
push 0x208
push eax
call fcn.010032fd
add esp, 0x14
test eax, eax
jl 0x102cd7b
lea eax, [ebp - 0x63c]
push eax
lea eax, [ebp - 0x688]
push eax
push esi
push esi
push 4
push esi
push esi
push esi
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x688], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x102cd7b
push dword [ebp - 0x63c]
push dword [ebp - 0x628]
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
je 0x102cd55
push dword [ebp - 0x638]
mov edi, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [ebp - 0x624], 1
call edi
push dword [ebp - 0x620]
call edi
cmp dword [ebp + 0xc], esi
je 0x102cd63
push 0x4ff
push 0xffffffffffffffff
push dword [ebp - 0x620]
push esi
call fcn.0103d8b9
jmp 0x102cd63
push 5
push dword [ebp - 0x63c]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 0x63c]
call ebx
push dword [ebp - 0x638]
call ebx
cmp dword [ebp - 0x624], esi
jne 0x102cd89
push 5
push dword [ebp - 0x620]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [ebp - 0x620]
call ebx
pop edi
push dword [ebp - 0x62c]
call ebx
push dword [ebp - 0x628]
call ebx
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x624]
pop esi
call fcn.010019ca
leave
ret 8
Function at 0x102ceab
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x102cec4
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esi]
and dword [esi + 8], 0
test eax, eax
je 0x102cfca
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 4
pop ebx
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 8]
push ecx
push 0
push 0x102d000
push eax
mov dword [ebp - 4], ebx
call edi
test eax, eax
jne 0x102cfc8
cmp dword [ebp - 8], ebx
jne 0x102cfc8
cmp dword [ebp - 4], ebx
jne 0x102cfc8
cmp dword [ebp - 0xc], eax
je 0x102cfc8
lea eax, [ebp - 4]
push eax
push 0
lea eax, [ebp - 8]
push eax
push 0
mov ebx, 0x102cfe8
push ebx
push dword [esi]
call edi
test eax, eax
jne 0x102cfc8
cmp dword [ebp - 8], 3
jne 0x102cfc8
test dword [ebp - 4], 3
jne 0x102cfc8
push dword [ebp - 4]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [esi + 8], eax
je 0x102cfc8
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 8]
push eax
push 0
push ebx
push dword [esi]
call edi
test eax, eax
jne 0x102cfbb
cmp dword [ebp - 8], 3
jne 0x102cfbb
mov eax, dword [ebp - 4]
test al, 3
jne 0x102cfbb
shr eax, 2
mov edi, eax
cmp edi, 0xa
jle 0x102cfbb
cmp edi, 0xca
jge 0x102cfbb
xor ecx, ecx
inc ecx
cmp ecx, edi
mov dword [esi + 0x10], edi
jge 0x102cfb9
mov eax, dword [esi + 8]
add eax, 4
mov edx, dword [eax]
cmp edx, dword [eax - 4]
jbe 0x102cfb7
cmp edx, 0xffff
ja 0x102cfb7
inc ecx
add eax, 4
cmp ecx, dword [esi + 0x10]
jl 0x102cf9f
cmp ecx, edi
je 0x102cfc8
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
and dword [esi + 8], 0
pop edi
pop ebx
mov eax, dword [esi + 8]
test eax, eax
je 0x102cfd6
mov dword [esi + 0xc], eax
jmp 0x102cfe4
mov dword [esi + 0xc], 0x102d028
mov dword [esi + 0x10], 0x1a
pop esi
leave
ret

Function at 0x102d095
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x102d0d0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x102d0d0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 1
push dword [esi + 4]
push 4
push 0
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegNotifyChangeKeyValue]
mov ecx, esi
pop esi
jmp fcn.0102ceab
pop esi
ret
Function at 0x102dfce
Capabilities:
Get session user name
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 1
xor edi, edi
push edi
push 0x101c820
push 0x80000001
xor ebx, ebx
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov esi, dword [ebp + 8]
jne 0x102e044
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
lea eax, [eax + eax - 2]
mov dword [ebp + 8], eax
shr eax, 1
mov word [esi + eax*2], di
lea eax, [ebp + 8]
push eax
push esi
lea eax, [ebp - 8]
push eax
push edi
push 0x102e068
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x102e037
cmp dword [ebp - 8], 1
jne 0x102e037
cmp word [esi], di
je 0x102e037
inc ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, edi
jne 0x102e05d
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov ebx, eax
cmp ebx, edi
je 0x102e05d
push 1
push esi
call dword [sym.imp.USER32.dll_CharUpperBuffW]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8

Function at 0x1030ea7
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0x100ebb4
push 0x101c6d8
push 0x80000001
mov dword [ebp - 4], 2
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
leave
ret
Function at 0x10327a5
Capabilities:
Check if file exists
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x614
mov eax, dword [0x1046080]
or dword [ebp + 0x1c], 4
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 0x614], edi
mov word [ebp - 0x20c], bx
je 0x10327f2
movzx eax, word [ebp + 0xc]
push eax
push dword [0x10466f0]
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [ebp - 0x610], eax
jmp 0x10327f8
mov dword [ebp - 0x610], ebx
cmp esi, ebx
je 0x103285c
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x103285c
cmp word [ebp - 0x20c], bx
je 0x103284b
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathGetDriveNumberW]
cmp eax, 0xffffffff
je 0x103284b
push eax
call dword [sym.imp.SHELL32.dll_DriveType]
cmp eax, 2
je 0x103283a
cmp eax, 5
jne 0x103284b
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x103285c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x103286d
push ebx
push 0x10
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp dword [ebp + 0x14], ebx
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
mov edi, 0x100
je 0x1032896
push edi
lea eax, [ebp - 0x40c]
push eax
push dword [ebp + 0x14]
push dword [0x10466f0]
call esi
lea ebx, [ebp - 0x40c]
xor eax, eax
cmp dword [ebp + 0x18], eax
je 0x10328b6
push edi
lea eax, [ebp - 0x60c]
push eax
push dword [ebp + 0x18]
push dword [0x10466f0]
call esi
lea eax, [ebp - 0x60c]
push dword [ebp + 0x1c]
push eax
push ebx
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x610]
push dword [ebp - 0x614]
call dword [sym.imp.SHELL32.dll_Ordinal_61]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.010019ca
leave
ret 0x18
Function at 0x1032ed6
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x1046080]
push ebx
push edi
mov dword [ebp - 4], eax
mov edi, ecx
call fcn.01032e21
xor ebx, ebx
cmp dword [ebp + 8], ebx
mov dword [ebp - 0x220], eax
setne al
cmp dword [ebp + 8], 0xffffffff
je 0x10330b0
cmp dword [ebp - 0x220], 0xffffffff
setne cl
cmp al, cl
je 0x10330b0
cmp al, bl
je 0x10330c4
lea eax, [ebp - 0x210]
push eax
push 0x1a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x10330b0
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push 0x10330e0
lea eax, [ebp - 0x20c]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push dword [ebp - 0x210]
call dword [sym.imp.SHELL32.dll_ILFree]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHELL32.dll_ILCreateFromPathW]
cmp eax, ebx
mov dword [ebp - 0x210], eax
je 0x10330b0
push esi
lea eax, [ebp - 0x218]
push eax
push 0x1033134
push 3
push ebx
mov esi, 0x102b550
push esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x10330a3
mov eax, dword [ebp - 0x218]
mov ecx, dword [eax]
lea edx, [ebp - 0x214]
push edx
push 0x100f9ec
push eax
call dword [ecx]
test eax, eax
jl 0x1033097
push dword [ebp - 0x210]
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x103308b
mov eax, dword [ebp - 0x218]
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0x18]
push ebx
lea eax, [ebp - 0x230]
push eax
push ebx
push 1
push esi
push dword [ebp - 0x214]
mov esi, dword [sym.imp.SHLWAPI.dll_IUnknown_Exec]
mov word [ebp - 0x230], 3
mov dword [ebp - 0x228], 0x1a
call esi
push ebx
lea eax, [ebp - 0x230]
push eax
push ebx
push 0x2f
push 0x1033144
push dword [ebp - 0x214]
mov dword [ebp - 0x228], ebx
call esi
mov eax, dword [ebp - 0x218]
mov ecx, dword [eax]
lea edx, [ebp - 0x21c]
push edx
push 0x1006d08
push eax
call dword [ecx]
test eax, eax
jl 0x103308b
mov eax, dword [edi + 0x3c]
push dword [ebp - 0x21c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp eax, ebx
jl 0x103307f
mov ecx, dword [edi + 0x3c]
mov edx, dword [ecx]
push 2
movsx eax, ax
push 2
push eax
push ecx
call dword [edx + 0x18]
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x218]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0x210]
call dword [sym.imp.SHELL32.dll_ILFree]
pop esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x220]
pop edi
pop ebx
call fcn.010019ca
leave
ret 4
mov ecx, edi
call fcn.01032e21
cmp eax, 0xffffffff
je 0x10330b0
mov ecx, dword [edi + 0x3c]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x1c]
jmp 0x10330c4
Function at 0x1033e24
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x1046080]
push ebx
mov ebx, dword [ebp + 8]
push ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0x418], 1
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x1033e9a
push dword [ebp - 0x418]
lea eax, [ebp - 0x20c]
push ebx
push 0x1033f2c
push 0x104
push eax
call fcn.010032fd
add esp, 0x14
inc dword [ebp - 0x418]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1033e50
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0xc]
push ebx
call fcn.01005da7
jmp 0x1033f0e
push edi
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov edi, eax
test edi, edi
je 0x1033f0d
push edi
push 0x104
lea eax, [ebp - 0x414]
push eax
call fcn.01002ca8
and word [edi], 0
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x418]
lea eax, [ebp - 0x20c]
push ebx
push 0x1033f1c
push 0x104
push eax
call fcn.010032fd
add esp, 0x18
inc dword [ebp - 0x418]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1033ebe
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0xc]
push ebx
call fcn.01005da7
pop edi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.010019ca
leave
ret 8