joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4019a6
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x404004]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x420], 0x208
push esi
lea edx, [ebp - 0x41c]
mov dword [ebp - 0x418], eax
lea ecx, [ebp - 0x418]
mov dword [ebp - 0x41c], eax
call fcn.00401887
mov esi, eax
test esi, esi
jne 0x401af6
mov edx, dword [ebp - 0x41c]
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x414]
push eax
push ecx
push ecx
mov ecx, dword [ebp - 0x418]
call fcn.0040192b
mov esi, eax
test esi, esi
jne 0x401acc
mov esi, 0x104
lea eax, [ebp - 0x20c]
push esi
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x401a45
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x401acc
cmp eax, esi
jbe 0x401a4e
push 0x7a
pop esi
jmp 0x401acc
push edi
lea edi, [ebp - 0x20c]
xor edx, edx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
cmp ax, dx
jne 0x401a5a
push ecx
sub edi, ecx
mov edx, 0x4011d4
push esi
lea ecx, [ebp - 0x20c]
sar edi, 1
call fcn.004021f4
test eax, eax
je 0x401ac3
lea ecx, [ebp - 0x20c]
call fcn.00402417
mov esi, eax
test esi, esi
jne 0x401acb
add edi, edi
cmp edi, 0x208
jae 0x401b13
xor edx, edx
mov word [ebp + edi - 0x20c], ax
inc edx
lea ecx, [ebp - 0x20c]
call fcn.0040261b
test eax, eax
je 0x401ac3
lea ecx, [ebp - 0x20c]
call fcn.004026e8
test eax, eax
jne 0x401acb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
pop edi
cmp dword [ebp - 0x418], 0
je 0x401ae1
push dword [ebp - 0x418]
call dword [sym.imp.ntdll.dll_NtClose]
cmp dword [ebp - 0x41c], 0
je 0x401af6
push dword [ebp - 0x41c]
call dword [sym.imp.ntdll.dll_NtClose]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
xor eax, eax
test esi, esi
pop esi
sete al
xor ecx, ebp
call fcn.00402b40
mov esp, ebp
pop ebp
ret
call fcn.00403016
int3

Function at 0x401e61
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x404004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov word [ebp - 8], 0x500
push ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x401ed2
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x401ed2
cmp dword [ebp - 0x14], ebx
jne 0x401ee3
mov ebx, 0x529
jmp 0x401ee3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jne 0x401ee3
mov ebx, 0x507
cmp dword [ebp - 0x10], 0
je 0x401ef2
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
xor eax, eax
test ebx, ebx
pop ebx
sete al
xor ecx, ebp
call fcn.00402b40
mov esp, ebp
pop ebp
ret
Function at 0x4020ac
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x404004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x20], ecx
xor edi, edi
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4020f9
mov ebx, dword [eax]
add ebx, 0xf
mov ecx, ebx
call fcn.0040277f
mov esi, eax
test esi, esi
jne 0x4020ff
push 0xe
pop edi
jmp 0x40217e
push 0x10
lea esi, [ebp - 0x14]
pop ebx
push dword [ebp - 0x1c]
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [ebp - 0x2c]
push eax
push ebx
push esi
push 2
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
test eax, eax
jns 0x402137
cmp eax, 0x80000005
je 0x402137
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edi, eax
jmp 0x40216c
mov ecx, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x18]
test ecx, ecx
je 0x40215b
mov eax, dword [esi + 8]
cmp dword [ebx], eax
jb 0x402158
push eax
lea eax, [esi + 0xc]
push eax
push ecx
call sub.msvcrt.dll_memcpy
add esp, 0xc
jmp 0x40215b
push 0x7a
pop edi
mov ecx, dword [ebp - 0x28]
mov eax, dword [esi + 8]
mov dword [ebx], eax
test ecx, ecx
je 0x40216c
mov eax, dword [esi + 4]
mov dword [ecx], eax
test esi, esi
je 0x40217e
lea eax, [ebp - 0x14]
cmp esi, eax
je 0x40217e
mov ecx, esi
call fcn.00402791
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402b40
mov esp, ebp
pop ebp
ret 0xc
Function at 0x402417
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x404004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x214]
mov esi, 0x104
push eax
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp eax, esi
jae 0x402607
test eax, eax
jne 0x402463
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40260a
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x402607
lea ecx, [ebp - 0x210]
cmp eax, ecx
je 0x402607
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [ebp - 0x210]
push 0x5c
pop esi
cmp cx, 0x41
jb 0x402499
cmp cx, 0x5a
jbe 0x4024a2
lea eax, [ecx - 0x61]
cmp ax, 0x19
ja 0x4024bf
cmp word [ebp - 0x20e], 0x3a
jne 0x4024bf
cmp word [ebp - 0x20c], si
jne 0x402607
lea ebx, [ebp - 0x20c]
cmp cx, si
jne 0x4024fc
cmp word [ebp - 0x20e], si
jne 0x4024fc
lea eax, [ebp - 0x20c]
push esi
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
je 0x402607
add eax, 2
push esi
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x402607
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40251d
test al, 0x10
je 0x402600
xor eax, eax
jmp 0x40260a
mov edi, dword [ebp - 0x214]
lea eax, [ebp - 0x210]
cmp edi, eax
jne 0x402531
mov edi, eax
jmp 0x402534
add edi, 0xfffffffe
cmp edi, ebx
je 0x402607
cmp word [edi], si
jne 0x402607
cmp edi, ebx
jbe 0x402607
xor eax, eax
mov word [edi], ax
lea eax, [ebp - 0x210]
push esi
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
mov dword [ebp - 0x218], eax
pop ecx
pop ecx
test eax, eax
je 0x402607
movzx esi, word [eax + 2]
xor ecx, ecx
mov word [eax + 2], cx
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
mov eax, dword [ebp - 0x218]
mov word [eax + 2], si
cmp ecx, 0xffffffff
jne 0x4025fb
mov edi, eax
push 0x5c
pop esi
cmp eax, ebx
ja 0x40254d
cmp edi, ebx
jbe 0x402607
xor ebx, ebx
lea eax, [ebp - 0x210]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x402458
push 0x5c
pop esi
cmp word [edi + 2], bx
je 0x402516
mov ecx, edi
mov word [edi], si
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4025d2
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ebx
push eax
lea edi, [edi + ecx*2]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4025c0
jmp 0x402458
test cl, 0x10
jne 0x4025a1
mov eax, 0x10b
jmp 0x40260a
push 0x7b
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402b40
mov esp, ebp
pop ebp
ret
Function at 0x402bb4
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x403138
call fcn.00402e68
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x402c14
cmp eax, 0xffffffff
je 0x402c14
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x402c0d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x402c0d
cmp edx, 0x10000000
jae 0x402c0d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x402c0a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.00402ead
ret 4

Function at 0x402c70
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x402cae
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x402ca6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x402cb0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x402c96
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x402d80
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x402db1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x402db1
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x402db1
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x100712a
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c8
push 0x200
push 0x2b4
lea eax, [ebp - 0x2b8]
push eax
push 0
push dword [ebp + 0xc]
mov dword [ebp - 4], ecx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x10071d4
push ebx
push esi
lea esi, [ebp - 0x2ac]
push 0x26
mov eax, esi
push eax
lea ebx, [ebp - 0x6c8]
call dword [sym.imp.SHLWAPI.dll_StrChrW]
test eax, eax
mov dword [ebp + 0xc], eax
je 0x10071b4
push edi
mov edx, eax
sub edx, esi
mov ecx, edx
mov eax, ecx
shr ecx, 2
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp + 0xc]
add ebx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [ebx], 0x26
inc ebx
inc ebx
mov word [ebx], 0x26
lea esi, [eax + 2]
push 0x26
inc ebx
push esi
inc ebx
call dword [sym.imp.SHLWAPI.dll_StrChrW]
test eax, eax
mov dword [ebp + 0xc], eax
jne 0x1007177
pop edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x6c8]
push eax
push dword [ebp + 8]
mov eax, dword [ebp - 4]
push dword [eax + 0x30]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
pop esi
pop ebx
leave
ret 8

Function at 0x1007771
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
mov esi, ecx
push dword [esi + 4]
call fcn.010118d7
test eax, eax
je 0x10077cc
mov eax, dword [esi + 4]
push dword [eax + 8]
lea eax, [ebp - 0x100]
push 0x1001e7c
push 0x80
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x100]
push eax
push 0x1001604
push dword [0x1019c48]
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
neg eax
sbb eax, eax
neg eax
pop esi
leave
ret

Function at 0x1008854
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
push edi
push 4
pop edi
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0xc]
push ecx
xor eax, eax
lea ecx, [ebp - 0x10]
push ecx
push eax
push eax
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x21c]
push ecx
mov dword [ebp - 4], eax
push eax
jmp 0x10088c6
mov eax, dword [ebp - 0x10]
and eax, 0xffff0000
cmp eax, 0x10000
jne 0x10088a9
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x21c]
push eax
add ecx, 0x48
call fcn.0101352d
inc dword [ebp - 4]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 4]
push dword [ebp + 8]
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], 0x208
call esi
test eax, eax
je 0x1008888
pop edi
pop esi
leave
ret 4
Function at 0x10089fa
Capabilities:
List groups for user account

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov ecx, dword [eax + 8]
test cl, 2
jne 0x1008a13
test cl, 0x10
je 0x1008a1a
xor eax, eax
jmp 0x1008aa2
mov eax, dword [eax]
push ebx
xor ebx, ebx
cmp dword [esi + 0x48], ebx
push edi
mov dword [ebp + 8], eax
jle 0x1008a4a
mov eax, dword [esi + 0x50]
mov edi, dword [eax + ebx*4]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push dword [ebp + 8]
push edi
call dword [sym.imp.SHLWAPI.dll_StrCmpNW]
test eax, eax
je 0x1008a99
inc ebx
cmp ebx, dword [esi + 0x48]
jl 0x1008a28
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
push 1
xor edi, edi
push edi
push dword [ebp + 8]
push edi
call sub.NETAPI32.dll_NetUserGetLocalGroups
test eax, eax
jne 0x1008a9d
xor ebx, ebx
cmp dword [ebp - 4], ebx
jbe 0x1008a8d
test ebx, ebx
jne 0x1008a8d
mov eax, dword [ebp - 8]
lea eax, [eax + edi*4]
push dword [eax]
lea ecx, [esi + 0x54]
call fcn.01013881
inc edi
cmp edi, dword [ebp - 4]
mov ebx, eax
jb 0x1008a71
push dword [ebp - 8]
call sub.NETAPI32.dll_NetApiBufferFree
test ebx, ebx
jne 0x1008a9d
xor eax, eax
jmp 0x1008aa0
xor eax, eax
inc eax
pop edi
pop ebx
pop esi
leave
ret 4

Function at 0x10090f9
Capabilities:
Accept command line arguments
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx eax, word [ebp - 0xe]
movzx ecx, word [ebp - 0x10]
shl eax, 0x10
push 0x1003140
or eax, ecx
push eax
call fcn.010090c5
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHLWAPI.dll_PathGetArgsW]
push eax
call dword [sym.imp.SHLWAPI.dll_StrToIntW]
cmp esi, eax
pop esi
je 0x1009185
test byte [0x1019770], 2
jne 0x1009151
push 0
push 0x1019ba8
push 3
jmp 0x1009178
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [ebp - 0x34]
cmp ax, word [ebp - 0x58]
je 0x1009185
push 0
push 0x1019ba8
push 4
push dword [ebp + 8]
call fcn.01015722
xor eax, eax
inc eax
jmp 0x1009187
xor eax, eax
leave
ret 4
Function at 0x10097cc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
push edi
push 0x10
mov ebx, ecx
pop ecx
xor eax, eax
lea edi, [ebp - 0x6c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1003798
push reloc.ACLUI.dll_CreateSecurityPage
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1009829
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push esi
push 0x100377c
push dword [ebp - 4]
mov dword [ebp - 8], 0x40
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebx + 0x30]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [esi]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x1c], eax
xor edi, edi
lea eax, [ebp - 0x2c]
inc edi
push eax
mov dword [ebp - 0x2c], 0x24
mov dword [ebp - 0x18], edi
call dword [sym.imp.comdlg32.dll_ChooseColorW]
test eax, eax
je 0x100986f
mov eax, dword [ebp - 0x20]
cmp dword [esi], eax
je 0x100986f
push eax
mov ecx, esi
call fcn.01009210
push dword [ebx + 0x30]
call fcn.01006f30
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x10099f0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x1c], edi
je 0x1009a5d
push 0x104
lea eax, [ebp - 0x208]
push eax
call fcn.010099d4
cmp dword [esi + 0x14], edi
je 0x1009a3c
cmp dword [esi + 0x18], edi
jne 0x1009a3c
lea eax, [esi + 0x20]
push eax
push 0x10037f4
lea eax, [ebp - 0x208]
push eax
push dword [0x1019c48]
call fcn.01011abf
jmp 0x1009a5a
lea eax, [ebp - 0x208]
push eax
push dword [0x1019c48]
call sub.SHLWAPI.dll_SHDeleteKeyW
cmp dword [esi + 0x18], edi
je 0x1009a5a
mov word [esi + 0x20], di
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
pop edi
pop esi
leave
ret

Function at 0x1009c63
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push ebx
mov ebx, dword [ebp + 8]
cmp word [ebx], 0x22
je 0x1009c90
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1009c90
push ebx
call dword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
xor eax, eax
inc eax
jmp 0x1009d1a
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov esi, 0x104
push esi
push ebx
lea eax, [ebp - 0x208]
push eax
call edi
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveArgsW]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
push 0
lea eax, [ebp - 0x410]
push eax
push esi
push 0x1003810
lea eax, [ebp - 0x208]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
je 0x1009d16
cmp eax, esi
jae 0x1009d16
push esi
push ebx
call dword [sym.imp.SHLWAPI.dll_PathGetArgsW]
push eax
lea eax, [ebp - 0x208]
push eax
call edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x208]
push ebx
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.0100ee67
xor eax, eax
inc eax
jmp 0x1009d18
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x100b327
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 0xb4]
push 0
lea edi, [esi + 0xb8]
push edi
push dword [eax + 0x10]
mov ebp, 0x1003550
push ebp
push dword [0x1019784]
call dword [sym.imp.SHLWAPI.dll_SHRegGetPathW]
test eax, eax
push 0x23
pop ebx
jne 0x100b37c
push edi
lea eax, [esi + 0x4c8]
push eax
call fcn.01015c6b
test eax, eax
jne 0x100b377
mov word [edi], 2
mov dword [esi + 0x74], 0x22
jmp 0x100b388
mov dword [esi + 0x74], ebx
jmp 0x100b388
mov word [edi], 1
mov dword [esi + 0x74], 0x21
cmp dword [esi + 0x74], ebx
jne 0x100b3f5
mov eax, dword [esi + 0xb4]
push 0
lea ebx, [esi + 0x2c0]
push ebx
push dword [eax + 0x14]
push ebp
push dword [0x1019784]
call dword [sym.imp.SHLWAPI.dll_SHRegGetPathW]
cmp word [ebx], 0
jne 0x100b3bf
push 0x104
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov eax, dword [esi + 0xb4]
push 4
push dword [eax + 0x1c]
push ebp
push dword [0x1019784]
call fcn.010119f7
mov dword [esi + 0x6c], eax
mov eax, dword [esi + 0xb4]
push 0
push dword [eax + 0x18]
push ebp
push dword [0x1019784]
call fcn.010119f7
mov dword [esi + 0x64], eax
jmp 0x100b3fd
and dword [esi + 0x6c], 0
and dword [esi + 0x64], 0
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x100ba17
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x530
push ebx
push esi
push edi
mov esi, ecx
lea edi, [esi + 0x14]
push edi
push 0x18
lea eax, [ebp - 0x328]
push eax
push dword [esi + 8]
call fcn.010155fa
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov ebx, 0x104
jne 0x100ba82
lea eax, [ebp - 0x530]
push eax
push 0
push 0
push 0x27
push dword [esi + 8]
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x100ba76
push ebx
lea eax, [ebp - 0x530]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x100ba82
lea eax, [ebp - 0x530]
mov dword [ebp - 0x2fc], eax
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.comdlg32.dll_GetOpenFileNameW]
test eax, eax
je 0x100bade
lea eax, [ebp - 0x2d0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x100bade
push dword [esi + 8]
call fcn.01006f30
push ebx
lea eax, [ebp - 0x2d0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x100baca
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, esi
call fcn.0100b8fb
push 1
push 0
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100dfe5
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
push edi
push dword [ebp + 0xc]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push dword [ebp + 8]
mov esi, ecx
push 0x1a
push dword [esi + 0x40]
call edi
cmp dword [ebp + 8], 0x2a
jne 0x100e079
mov eax, dword [esi + 0x44]
test byte [eax + 8], 1
je 0x100e05e
push ebx
xor ebx, ebx
push ebx
push ebx
push 0x1004
push dword [esi + 0x40]
call edi
test eax, eax
mov dword [ebp + 8], eax
jle 0x100e05d
push 4
push ebx
lea eax, [ebp - 0x34]
push eax
push dword [esi + 0x40]
call fcn.0100ec5a
push dword [ebp - 0x14]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x40]
or dword [ebp - 0x34], 2
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x34]
push eax
push 0
push 0x104c
push dword [esi + 0x40]
call edi
inc ebx
cmp ebx, dword [ebp + 8]
jl 0x100e027
pop ebx
mov ecx, esi
call fcn.0100dc1b
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [esi + 0x40]
call edi
push 5
push dword [esi + 0x40]
call edi
pop edi
pop esi
leave
ret 8

Function at 0x100e759
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b4
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push edi
mov edi, ecx
mov ecx, esi
call dword [eax + 4]
cmp eax, 0x10196be
jne 0x100e7b8
push dword [esi + 0x1c]
or dword [ebp - 0x2b0], 0xffffffff
push dword [edi + 0x50]
call fcn.0101179d
mov esi, eax
test esi, esi
je 0x100e7b0
push 0x4009
push 0x2b4
lea eax, [ebp - 0x2b4]
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 0x2b0]
jmp 0x100e7bb
or eax, 0xffffffff
pop edi
pop esi
leave
ret 4