joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d593
Capabilities:
Get file system object information
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6b8
push esi
xor esi, esi
push 0x2b0
lea eax, [ebp - 0x2b4]
push esi
push eax
mov dword [ebp - 0x2b8], esi
call fcn.004237a0
add esp, 0xc
cmp dword [ebp + 8], esi
je 0x40d6fe
push ebx
mov ebx, dword [ebp + 0xc]
cmp ebx, esi
je 0x40d6fd
push edi
mov edi, dword [ebp + 0x10]
cmp edi, esi
je 0x40d6fc
push 0x1000
xor eax, eax
mov word [ebx], ax
or dword [edi], 0xffffffff
push 0x2b4
lea eax, [ebp - 0x2b8]
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov esi, dword [sym.imp.KERNEL32.DLL_lstrlenW]
lea eax, [ebp - 0x2ac]
push eax
call esi
test eax, eax
jle 0x40d630
lea eax, [ebp - 0x2ac]
push eax
push ebx
call esi
dec eax
mov edx, ebx
call fcn.0040da48
mov eax, dword [ebp - 0x2b4]
mov dword [edi], eax
jmp 0x40d6fc
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x6b8]
push eax
push dword [ebp + 8]
mov ebx, 0x200
mov dword [ebp - 4], ebx
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
push eax
push SysReAllocStringLen
call edi
mov eax, ebx
push str.DefaultIcon
lea ebx, [ebp - 0x6b8]
call fcn.0040d9a8
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x4b8]
push eax
mov eax, ebx
push eax
push SysReAllocStringLen
mov dword [ebp - 4], 0x104
call edi
lea eax, [ebp - 0x4b8]
push 0x437c4c
push eax
call fcn.0042189a
pop ecx
pop ecx
mov dword [ebp + 8], eax
test eax, eax
je 0x40d6fc
push eax
call esi
xor edi, edi
inc edi
sub edi, eax
lea eax, [ebp - 0x4b8]
push eax
call esi
mov ebx, eax
add ebx, edi
mov edi, dword [ebp + 0xc]
push edi
call esi
mov ecx, eax
shr ecx, 1
je 0x40d6ea
cmp ecx, 0x7fffffff
ja 0x40d6ea
shr ebx, 1
cmp ebx, 0x7ffffffe
jbe 0x40d6dc
xor eax, eax
mov word [edi], ax
jmp 0x40d6ea
push ebx
lea eax, [ebp - 0x4b8]
mov edx, edi
call fcn.0040da09
mov eax, dword [ebp + 8]
add eax, 2
push eax
call fcn.00421ada
pop ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
pop edi
pop ebx
pop esi
leave
ret 0xc
Function at 0x40d703
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x464
push ebx
push esi
push edi
xor eax, eax
xor esi, esi
push 0x206
mov word [esp + 0x1c], ax
lea eax, [esp + 0x1e]
push esi
push eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], esi
call fcn.004237a0
add esp, 0xc
cmp dword [ebp + 8], esi
je 0x40d8ea
cmp dword [ebp + 0xc], esi
je 0x40d8ea
push dword [ebp + 0xc]
mov ebx, str._s_s
push dword [ebp + 8]
mov ecx, 0x104
push ebx
lea edi, [esp + 0x24]
call fcn.0040c6d0
add esp, 0xc
lea eax, [esp + 0x220]
push eax
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x40d88e
test byte [esp + 0x220], 0x10
je 0x40d7ff
cmp byte [ebp + 0x10], 0
je 0x40d7ff
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcmpW]
push 0x437c58
lea eax, [esp + 0x250]
push eax
call esi
test eax, eax
je 0x40d86a
push 0x437c5c
lea eax, [esp + 0x250]
push eax
call esi
test eax, eax
je 0x40d86a
lea eax, [esp + 0x24c]
push eax
push dword [ebp + 8]
mov ecx, 0x104
push ebx
lea edi, [esp + 0x24]
call fcn.0040c6d0
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push dword [ebp + 0x10]
mov eax, edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.0040d703
add dword [esp + 0xc], eax
jmp 0x40d86a
lea eax, [esp + 0x24c]
push eax
push dword [ebp + 8]
mov ecx, 0x104
push ebx
lea edi, [esp + 0x24]
call fcn.0040c6d0
add esp, 0xc
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x40d866
mov eax, edi
call fcn.0040ae0d
cmp eax, dword [0x441418]
jae 0x40d866
mov esi, dword [0x441414]
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov ecx, eax
add ecx, ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40d866
push 4
push eax
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileExW]
mov eax, dword [esp + 0x10]
mov byte [eax], 1
inc dword [esp + 0xc]
lea eax, [esp + 0x220]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x40d783
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.DLL_FindClose]
cmp byte [ebp + 0x14], 0
je 0x40d8e4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
je 0x40d8a7
inc dword [esp + 0xc]
jmp 0x40d8e4
mov eax, dword [ebp + 8]
call fcn.0040ae0d
cmp eax, dword [0x441418]
jae 0x40d8e4
mov edi, dword [ebp + 8]
mov esi, dword [0x441414]
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov ecx, eax
add ecx, ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40d8e4
push 4
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_MoveFileExW]
mov eax, dword [esp + 0x10]
mov byte [eax], 1
mov eax, dword [esp + 0xc]
jmp 0x40d8ec
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40d8f5
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov esi, eax
push dword [esi + 4]
call edi
cmp eax, 0xffffffff
je 0x40d91c
shr al, 4
and al, 1
jmp 0x40d9a4
push ebx
push dword [esi + 4]
lea eax, [ebp - 0x208]
push 0x104
push eax
call fcn.0040a93d
mov ebx, dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
add esp, 0xc
cmp word [ebp - 0x208], 0
lea esi, [ebp - 0x208]
je 0x40d980
cmp word [esi], 0x5c
jne 0x40d978
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x208]
push eax
call edi
cmp eax, 0xffffffff
jne 0x40d972
push 0
lea eax, [ebp - 0x208]
push eax
call ebx
test eax, eax
je 0x40d99d
push 0x5c
pop eax
mov word [esi], ax
inc esi
inc esi
cmp word [esi], 0
jne 0x40d94a
lea eax, [ebp - 0x208]
push eax
call edi
cmp eax, 0xffffffff
jne 0x40d9a1
push 0
lea eax, [ebp - 0x208]
push eax
call ebx
test eax, eax
jne 0x40d9a1
xor al, al
jmp 0x40d9a3
mov al, 1
pop ebx
pop edi
pop esi
leave
ret

Function at 0x40e446
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 0xc], 0
xor eax, eax
push edi
lea edi, [ebp - 8]
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
jne 0x40e468
xor eax, eax
xor edx, edx
jmp 0x40e48b
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
jne 0x40e485
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x40e462
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
pop edi
leave
ret 4
Function at 0x412894
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
push ebx
push esi
push edi
lea eax, [ebp - 0x228]
call fcn.00406448
xor eax, eax
mov byte [ebp - 1], 0
cmp dword [ebp + 0xc], eax
je 0x4128f2
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x28], eax
je 0x4128f2
push eax
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 8], esi
cmp esi, 0xffffffff
je 0x4128f2
lea eax, [ebp - 0x458]
push eax
push esi
mov dword [ebp - 0x458], 0x22c
call sub.KERNEL32.DLL_Process32FirstW
test eax, eax
jne 0x4128fb
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8
mov ebx, dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp - 0x450]
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x412958
push dword [ebp - 0x21c]
push dword [ebp - 0x224]
push eax
mov eax, dword [ebp + 8]
call dword [eax + 0x28]
test eax, eax
je 0x41294d
lea esi, [ebp - 0x228]
call fcn.00406409
push dword [ebp + 0xc]
mov edi, esi
call fcn.00412abf
test eax, eax
setge byte [ebp - 1]
push dword [ebp - 0xc]
call ebx
cmp byte [ebp - 1], 0
jne 0x41296b
lea eax, [ebp - 0x458]
push eax
push dword [ebp - 8]
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x412901
push dword [ebp - 8]
call ebx
mov al, byte [ebp - 1]
jmp 0x4128f4
Function at 0x413a35
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
push esi
push edi
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x208], ax
xor edi, edi
lea eax, [ebp - 0x206]
push edi
push eax
call fcn.004237a0
xor eax, eax
push esi
mov word [ebp - 0x410], ax
lea eax, [ebp - 0x40e]
push edi
push eax
call fcn.004237a0
xor eax, eax
push esi
mov word [ebp - 0x618], ax
lea eax, [ebp - 0x616]
push edi
push eax
call fcn.004237a0
mov edi, dword [ebp + 8]
mov eax, dword [ebx + 0xcd8]
lea esi, [edi + 0xc]
add esp, 0x24
mov ecx, esi
call fcn.004014ea
test eax, eax
je 0x413aae
push edi
mov edi, ebx
call fcn.004139a0
mov edi, 0x103
push edi
push 0x35
lea eax, [ebp - 0x410]
call fcn.0040b351
push esi
lea eax, [ebp - 0x410]
push eax
push edi
lea esi, [ebp - 0x208]
call fcn.00416529
add esp, 0xc
push edi
lea eax, [ebp - 0x618]
push eax
push dword [ebx + 0xe78]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, esi
lea eax, [ebp - 0x618]
call fcn.004014ea
test eax, eax
je 0x413b0c
mov eax, esi
push eax
push dword [ebx + 0xe78]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
imul eax, eax, 0x65
xor edx, edx
div dword [esi + 8]
push 0
push eax
push 0x402
push dword [ebx + 0xe9c]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esi + 4]
shr eax, 0xa
push eax
push str._d_Kb
push edi
lea esi, [ebp - 0x208]
call fcn.00416529
add esp, 0xc
mov eax, esi
push eax
push dword [ebx + 0xec0]
call dword [sym.imp.USER32.dll_SetWindowTextW]
pop edi
pop esi
leave
ret 4

Function at 0x413fc6
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x90
push ebx
push edi
push 0x88
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.004237a0
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
and dword [ebp - 0x18], 0
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
push 1
mov ebx, 0x464
push ebx
push dword [esi + 4]
mov byte [ebp + 0x77], 1
mov dword [ebp - 0x14], 2
call edi
mov eax, dword [esi + 0x54]
add eax, 0x214
push eax
mov dword [ebp - 0x18], 1
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x414077
mov eax, dword [esi + 0x54]
add eax, 0x214
push eax
mov ecx, 0x441670
call fcn.0040d05d
test eax, eax
jne 0x414077
push eax
mov byte [ebp + 0x77], al
lea eax, [esi + 0xd6c]
push eax
call dword [sym.imp.KERNEL32.DLL_InterlockedExchangeAdd]
test eax, eax
jne 0x414070
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x414070
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
mov eax, dword [esi + 0x54]
add eax, 0xc
push eax
call fcn.0040d017
mov dword [ebp - 0x18], 2
lea eax, [ebp - 0x18]
push eax
push 1
push ebx
push dword [esi + 4]
call edi
mov al, byte [ebp + 0x77]
pop edi
pop ebx
add ebp, 0x78
leave
ret
Function at 0x414e2b
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
or dword [ebp - 0xc], 0xffffffff
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x240], ax
lea eax, [ebp - 0x23e]
push ebx
push eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], 0x208
mov dword [ebp - 0x24], 0x10
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x38], 0x4397e8
mov dword [ebp - 0x10], 0x437584
call fcn.004237a0
add esp, 0xc
xor eax, eax
push esi
mov word [ebp - 0x448], ax
lea eax, [ebp - 0x446]
push ebx
push eax
call fcn.004237a0
add esp, 0xc
lea eax, [ebp - 0x448]
push eax
push 0x104
mov dword [ebp - 0x18], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 1], 1
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
test eax, eax
jne 0x414ecb
xor al, al
jmp 0x41501e
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
call fcn.00416225
test al, al
je 0x41501b
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp byte [ebp - 1], bl
je 0x415002
inc dword [ebp - 0x14]
cmp dword [ebp - 0x1c], 5
jne 0x414fde
lea eax, [ebp - 0x240]
push eax
push ebx
push 0x4390f0
lea eax, [ebp - 0x448]
push eax
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameW]
test eax, eax
je 0x414fff
push 2
push 3
push 0x40000000
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x10]
call fcn.00401877
test al, al
je 0x414fff
push dword [ebp - 8]
lea eax, [ebp - 0x10]
push dword [ebp - 0x18]
call fcn.0040a8d5
cmp eax, dword [ebp - 8]
sete byte [ebp - 1]
cmp dword [ebp - 0xc], 0xffffffff
je 0x414f73
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_FlushFileBuffers]
push dword [ebp - 0xc]
call esi
or dword [ebp - 0xc], 0xffffffff
cmp byte [ebp - 1], bl
je 0x414fd1
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x38]
push eax
mov eax, dword [edi + 0x54]
add eax, 0x214
push eax
lea eax, [ebp - 0x240]
push eax
push edi
call fcn.00415025
mov byte [ebp - 1], al
cmp al, bl
je 0x414fd1
lea eax, [edi + 0x890]
lea ecx, [ebp - 0x38]
cmp eax, ecx
je 0x414fcc
cmp dword [ebp - 0x34], ebx
je 0x414fcc
mov edi, dword [ebp - 0x30]
cmp edi, 1
jb 0x414fcc
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [eax + 0x10]
je 0x414fc2
xor al, al
jmp 0x414fce
push dword [ebp - 0x34]
call fcn.0040ad5a
jmp 0x414fce
mov al, 1
mov byte [ebp - 1], al
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x14]
call fcn.00416225
test al, al
jne 0x414eee
jmp 0x415002
mov byte [ebp - 1], bl
cmp dword [ebp - 0xc], 0xffffffff
je 0x41500d
push dword [ebp - 0xc]
call esi
cmp dword [ebp - 0x34], ebx
je 0x41501b
push dword [ebp - 0x34]
call fcn.00421976
pop ecx
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x415421
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64c
push ebx
push esi
push edi
mov edi, eax
lea eax, [ebp - 0x430]
call fcn.00406448
lea eax, [ebp - 0x648]
call fcn.00406448
lea eax, [ebp - 0x218]
call fcn.00406448
mov eax, dword [edi + 0x54]
lea ecx, [eax + 0x41c]
push ecx
add eax, 0x214
push eax
push str._s_s
lea eax, [ebp - 0x648]
xor ebx, ebx
call fcn.0040179f
mov eax, dword [edi + 0x54]
mov ecx, dword [eax + 8]
add esp, 0xc
cmp ecx, 6
je 0x41548a
cmp ecx, 7
je 0x41548a
cmp ecx, 3
jne 0x4154c8
add eax, 0x214
push eax
push str._s_terminal.ico
lea eax, [ebp - 0x218]
call fcn.0040179f
pop ecx
pop ecx
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4154c8
mov eax, dword [ebp - 0x214]
mov dword [ebp - 0x210], ebx
cmp eax, ebx
je 0x4154c8
xor ecx, ecx
mov word [eax], cx
push dword [ebp - 0x214]
mov eax, dword [edi + 0x54]
push dword [ebp - 0x424]
lea ecx, [eax + 0xc]
push dword [ebp - 0x42c]
add eax, 0x214
push ecx
push dword [ebp - 0x644]
push eax
call fcn.0040d345
test eax, eax
je 0x415515
lea esi, [ebp - 0x430]
call fcn.00406409
push dword [ebp - 0x42c]
add edi, 0x890
push edi
call fcn.0040b942
mov bl, al
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x415e66
Capabilities:
Create process on windows
Delete file

Disassembly:
push ebx
push edi
mov edi, eax
xor ebx, ebx
cmp byte [edi + 0xd65], bl
jne 0x413861
cmp byte [edi + 0xd64], bl
je 0x413861
mov eax, dword [edi + 0x54]
test byte [eax], 2
je 0x4138a2
push 1
mov edi, eax
lea eax, [edi + 0x214]
push eax
push ebx
add edi, 0x41c
push edi
push 0x43793c
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x4138a2
push esi
cmp byte [edi + 0xd66], bl
je 0x413878
mov esi, dword [edi + 0x54]
add esi, 0x624
call fcn.0040d10b
xor esi, esi
cmp dword [edi + 0x898], ebx
jbe 0x4138a1
mov eax, dword [edi + 0x8a0]
imul eax, esi
add eax, dword [edi + 0x894]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
inc esi
cmp esi, dword [edi + 0x898]
jb 0x413882
pop esi
pop edi
xor eax, eax
pop ebx
ret
push esi
mov esi, eax
mov eax, dword [edi + 4]
cmp dword [esi], eax
je 0x415e83
push eax
call dword [sym.imp.USER32.dll_GetParent]
cmp dword [esi], eax
je 0x415e83
and dword [ebx], 0
xor eax, eax
inc eax
pop esi
ret
mov esi, dword [esi + 8]
lea ecx, [esi + 0xd5]
xor eax, eax
cmp ecx, 0xd
ja case.0x415e93.211
jmp dword [ecx*4 + 0x415eb6]
mov ecx, edi
pop esi
jmp fcn.00413702
mov eax, edi
pop esi
jmp fcn.0041376a
mov eax, edi
pop esi
jmp 0x413822
mov dword [ebx], eax
pop esi
ret

Function at 0x4163cb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
je 0x416431
cmp dword [ebp + 0x10], ebx
je 0x416431
cmp esi, ebx
je 0x416431
cmp dword [ebp + 0x14], ebx
je 0x416431
lea eax, [ebp - 4]
push eax
push 0x20119
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41642d
lea eax, [ebp + 0x14]
push eax
push esi
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x416424
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
jmp 0x416433
xor al, al
pop ebx
leave
ret

Function at 0x416436
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
je 0x416496
cmp dword [ebp + 0x10], ebx
je 0x416496
cmp dword [ebp + 0x14], ebx
je 0x416496
cmp dword [ebp + 0x18], ebx
je 0x416496
lea eax, [ebp - 4]
push eax
push 0x20106
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x416492
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 1
push ebx
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x416489
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
jmp 0x416498
xor al, al
pop ebx
leave
ret
Function at 0x4164b8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [ebp - 4], 0
test eax, eax
je 0x4164e9
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetExitCodeThread]
cmp dword [ebp - 4], 0x103
jne 0x4164de
xor al, al
jmp 0x41650e
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
and dword [esi], 0
lea eax, [ebp - 4]
push eax
push 0x10000
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x40000
push 0
call fcn.00422a39
add esp, 0x18
test eax, eax
mov dword [esi], eax
setne al
leave
ret 8

Function at 0x416b31
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push esi
lea eax, [ebp - 0x21c]
call fcn.00406448
push dword [ebp - 0x218]
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
lea esi, [ebp - 0x21c]
call fcn.00406409
push dword [ebp + 8]
mov eax, esi
push eax
push dword [edi + 0x58]
call fcn.0041b502
mov esi, eax
test esi, esi
jne 0x416b91
push eax
lea eax, [ebp - 0x21c]
push eax
push dword [edi + 0x58]
call fcn.0041b502
mov esi, eax
test esi, esi
jne 0x416b91
xor al, al
jmp 0x416ba7
lea eax, [esi + 2]
push eax
push dword [edi + 0x60]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push esi
call fcn.00421976
pop ecx
mov al, 1
pop esi
leave
ret 4

Function at 0x416bac
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, word [ebp + 0xc]
push ebx
push esi
push edi
push 0x439650
push eax
push dword [0x440728]
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov esi, eax
test esi, esi
je 0x416c77
push esi
push dword [0x440724]
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov edi, eax
mov dword [ebp - 4], edi
cmp edi, 0x32
jbe 0x416c77
push esi
push dword [0x440724]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x416c77
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ebx, eax
test ebx, ebx
je 0x416c77
push 0x4407c8
shr edi, 1
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00421e0b
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x416c44
xor bl, bl
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov al, bl
jmp 0x416c79
mov eax, dword [ebp - 4]
add eax, 0xfffffffe
push eax
add ebx, 2
push ebx
push esi
call fcn.00425610
xor eax, eax
add esp, 0xc
mov word [esi + edi*2 - 4], ax
mov eax, dword [ebp + 8]
push esi
push dword [eax + 0x60]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push esi
call fcn.00421976
pop ecx
mov bl, 1
jmp 0x416c37
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x417020
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
push ebx
push esi
push edi
mov edi, eax
lea eax, [ebp - 0x218]
call fcn.00406448
lea eax, [ebp - 0x430]
call fcn.00406448
call fcn.00416e61
push 7
push dword [edi + 4]
call fcn.0040b2ff
push dword [ebp - 0x20c]
push dword [ebp - 0x214]
push dword [edi + 0x538]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea esi, [ebp - 0x218]
call fcn.00406409
mov eax, dword [edi + 0x54]
add eax, 0xc
push eax
push dword [ebp - 0x214]
lea eax, [ebp - 0x430]
call fcn.0040179f
mov esi, dword [sym.imp.USER32.dll_SetWindowTextW]
pop ecx
pop ecx
push dword [ebp - 0x42c]
push dword [edi + 0x538]
call esi
mov eax, dword [edi + 0x54]
add eax, 0x214
push eax
push dword [edi + 0x60]
call esi
mov eax, dword [edi + 0x54]
add eax, 0x624
push eax
push dword [edi + 0x2a8]
call esi
mov eax, dword [edi + 0x54]
mov eax, dword [eax]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
and eax, 1
push eax
mov ebx, 0xf1
push ebx
push dword [edi + 0x514]
call esi
mov eax, dword [edi + 0x54]
mov eax, dword [eax]
push 0
shr eax, 1
and eax, 1
push eax
push ebx
push dword [edi + 0x4f0]
call esi
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret

Function at 0x417353
Capabilities:
Get common file path
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
push ebx
push edi
xor eax, eax
mov edi, 0x206
push edi
mov word [ebp - 0x230], ax
xor ebx, ebx
lea eax, [ebp - 0x22e]
push ebx
push eax
call fcn.004237a0
xor eax, eax
push edi
mov word [ebp - 0x438], ax
lea eax, [ebp - 0x436]
push ebx
push eax
call fcn.004237a0
add esp, 0x18
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jge 0x4173ad
xor eax, eax
pop edi
pop ebx
leave
ret
lea eax, [ebp - 8]
push eax
push 0x11
push dword [esi + 4]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jge 0x4173cd
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, ebx
jmp 0x4173a9
push 0x103
push 0x39
lea eax, [ebp - 0x438]
call fcn.0040b351
push 0x104
lea eax, [ebp - 0x230]
push eax
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_GetWindowTextW]
xor eax, eax
push 8
pop ecx
lea edi, [ebp - 0x28]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x438]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x230]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x14], 0x417710
mov dword [ebp - 0x18], 0x8047
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
mov edi, eax
cmp edi, ebx
je 0x417462
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea eax, [ebp - 0x230]
push eax
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
xor ebx, ebx
inc ebx
jmp 0x4173c0