joyce8/EMBER2024-capa huggingface dataset:
Function at 0x458570
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x19c
mov eax, dword [0x589758]
xor eax, esp
mov dword [esp + 0x198], eax
push ebx
push esi
mov esi, dword [esp + 0x1a8]
push edi
mov edi, dword [esp + 0x1b0]
push 0x40
lea eax, [esp + 0x64]
push 0
push eax
mov ebx, ecx
mov dword [esp + 0x68], 0x44
call fcn.004f67e0
push 0x38
lea ecx, [esp + 0x34]
push 0
push ecx
mov dword [esp + 0x24], 0
mov dword [esp + 0x38], 0x3c
call fcn.004f67e0
mov eax, dword [esp + 0x1cc]
add esp, 0x18
cmp eax, 3
ja case.default.0x4585de
jmp dword [eax*4 + 0x45875c]
push edi
push esi
lea edx, [esp + 0xa8]
push str._s__s
push edx
call fcn.004f726c
mov eax, dword [esp + 0x1c8]
add esp, 0x10
push eax
lea ecx, [esp + 0xa4]
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
jmp case.default.0x4585de
mov edx, dword [esp + 0x1b8]
push edx
push 0
push edi
push esi
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp case.default.0x4585de
push edi
push esi
lea eax, [esp + 0xa8]
push str._s__s
push eax
call fcn.004f726c
mov cx, word [esp + 0x1c8]
add esp, 0x10
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x60]
push eax
push 0
push 0
push 0x10
push 0
push 0
mov word [esp + 0xa8], cx
push 0
lea ecx, [esp + 0xc0]
push ecx
push 0
mov dword [esp + 0xb0], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x458741
mov edx, dword [esp + 0x10]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x14]
push eax
call esi
jmp case.default.0x4585de
mov ecx, ebx
call fcn.00458040
test eax, eax
jne 0x4586e5
mov ecx, dword [esp + 0x1b8]
push ecx
push eax
push edi
push esi
push eax
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp case.default.0x4585de
mov eax, dword [esp + 0x1b8]
lea ecx, [esp + 0x20]
lea edx, [esp + 0xa0]
push ecx
mov dword [esp + 0x24], 0x3c
mov dword [esp + 0x28], 0x40
mov dword [esp + 0x30], str.runas
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne case.default.0x4585de
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 1
mov ecx, dword [esp + 0x1a4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004f6592
add esp, 0x19c
ret 0x10
Function at 0x458770
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x198
mov eax, dword [0x589758]
xor eax, esp
mov dword [esp + 0x194], eax
push ebx
push esi
mov esi, dword [esp + 0x1a4]
push edi
push 0x40
lea eax, [esp + 0x60]
push 0
push eax
mov edi, ecx
mov dword [esp + 0x64], 0x44
call fcn.004f67e0
push 0x38
lea ecx, [esp + 0x30]
push 0
mov ebx, 0x3c
push ecx
mov dword [esp + 0x34], ebx
call fcn.004f67e0
mov eax, dword [esp + 0x1c4]
add esp, 0x18
cmp eax, 3
ja case.default.0x4587d0
jmp dword [eax*4 + 0x45890c]
mov edx, dword [esp + 0x1b0]
push edx
jmp 0x458886
push esi
lea eax, [esp + 0xa0]
push str.explorer.exe__s
push eax
call fcn.004f726c
mov cx, word [esp + 0x1bc]
add esp, 0xc
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x5c]
push eax
push 0
push 0
push 0x10
push 0
push 0
mov word [esp + 0xa4], cx
push 0
lea ecx, [esp + 0xbc]
push ecx
push 0
mov dword [esp + 0xac], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je case.default.0x4587d0
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
jmp case.default.0x4587d0
mov ebx, dword [esp + 0x1b0]
push ebx
push esi
mov ecx, edi
call fcn.004580c0
test eax, eax
jne case.default.0x4587d0
push ebx
jmp 0x458886
mov ecx, edi
call fcn.00458040
test eax, eax
jne 0x45889a
mov ecx, dword [esp + 0x1b0]
push ecx
push 0
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp case.default.0x4587d0
mov edx, dword [esp + 0x1b0]
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], 0x40
mov dword [esp + 0x2c], str.runas
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne case.default.0x4587d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x1a0]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.004f6592
add esp, 0x198
ret 0xc
Function at 0x458940
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
mov eax, dword [0x589758]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push esi
lea eax, [esp + 0x14]
push edi
push eax
mov esi, ecx
call fcn.00469cc0
add esp, 4
mov ebx, 0x3e8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 4
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x18], eax
call fcn.0046a870
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 0xc], eax
push 4
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.0046a870
add esp, 0xc
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x458a01
push str.SystemFunction036
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4589fa
push 0x20
lea edx, [esp + 0x88]
push edx
call eax
test al, al
je 0x4589fa
push 0x20
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ebx, 0x64
call fcn.0046a870
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x458a24
push 8
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.0046a870
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 4
lea edx, [esp + 0x10]
mov dword [esp + 0x10], eax
push edx
lea eax, [esp + 0x20]
push eax
call fcn.0046a870
add esp, 0xc
mov edi, 0x64
lea ecx, [esp + 0x18]
push esi
push ecx
call fcn.0046a930
lea edx, [esp + 0x20]
push edx
call fcn.00469cc0
push 0x20
lea eax, [esp + 0x28]
push esi
push eax
call fcn.0046a870
add esp, 0x18
sub edi, 1
jne 0x458a47
sub ebx, 1
jne 0x458a01
lea ecx, [esp + 0x18]
push esi
push ecx
call fcn.0046a930
mov ecx, dword [esp + 0xac]
add esp, 8
pop edi
mov byte [esi + 0x20], bl
pop esi
pop ebx
xor ecx, esp
call fcn.004f6592
mov esp, ebp
pop ebp
ret

Function at 0x4599f0
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 8]
push edi
xor edi, edi
cmp dword [ecx + 0x1794], edi
jne 0x459a1a
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push edi
push eax
mov eax, dword [esp + 0x10]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
ret 0x18
push esi
mov esi, dword [esp + 0x14]
push esi
push edx
call fcn.004599c0
mov eax, dword [esp + 0x18]
mov dword [eax], esi
pop esi
mov eax, edi
pop edi
ret 0x18
Function at 0x45ae90
Capabilities:
Delete file

Disassembly:
sub esp, 0x128
mov eax, dword [0x589758]
xor eax, esp
mov dword [esp + 0x124], eax
mov eax, dword [esp + 0x12c]
push ebx
push esi
lea esi, [esp + 0x28]
sub esi, eax
mov ecx, eax
xor ebx, ebx
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
cmp dl, bl
jne 0x45aeb7
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x45aec6
sub ecx, esi
mov byte [esp + ecx + 0x29], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x45aed6
sub eax, edx
mov byte [esp + eax + 0x2a], bl
mov ecx, 0x1e
lea eax, [esp + 8]
lea esp, [esp]
mov byte [eax], bl
inc eax
sub ecx, 1
jne 0x45aef0
cmp dword [esp + 0x138], ebx
je 0x45af0d
mov eax, 0x654
mov word [esp + 0x18], ax
jmp 0x45af17
mov ecx, 0x614
mov word [esp + 0x18], cx
lea eax, [esp + 8]
lea edx, [esp + 0x28]
push eax
mov dword [esp + 0x22], ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x26], ebx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov ecx, dword [esp + 0x12c]
neg eax
pop esi
sbb eax, eax
pop ebx
xor ecx, esp
inc eax
call fcn.004f6592
add esp, 0x128
ret 8
Function at 0x4601c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x52e3b8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x589758]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], 0
call fcn.004a5d9f
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
push eax
mov byte [esp + 0x3c], 1
call fcn.00402350
add eax, 0x10
add esp, 4
mov dword [esp + 0x10], eax
push 1
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 2
call fcn.0040ee60
mov eax, dword [eax]
push 0x539558
push eax
call fcn.004f6762
add esp, 8
test eax, eax
mov eax, dword [esp + 0x14]
setne bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46025f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x460273
push 1
push 0x539558
lea ecx, [esp + 0x18]
call fcn.004028b0
push 3
push 0x539568
lea ecx, [esp + 0x18]
call fcn.004028b0
mov ecx, dword [esp + 0x10]
push 0
push ecx
lea ecx, [esp + 0x20]
call fcn.004a5e34
test eax, eax
je 0x46033f
mov esi, dword [esp + 0x44]
nop
lea ecx, [esp + 0x18]
call fcn.004a5a02
mov edx, dword [esp + 0x18]
mov ebx, eax
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [esp + 0x1c]
call eax
test eax, eax
je 0x4602f2
lea ecx, [esp + 0x18]
call fcn.004a5d64
test eax, eax
jne 0x4602f2
inc dword [esi]
push esi
push ecx
mov ecx, esp
mov dword [esp + 0x4c], esp
push ecx
lea ecx, [esp + 0x24]
call fcn.004a5fe2
mov ecx, edi
call fcn.004601c0
push 1
push esi
mov ecx, edi
call fcn.0045b9f0
jmp 0x46032e
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [esp + 0x1c]
call eax
test eax, eax
jne 0x46032e
lea ecx, [esp + 0x18]
call fcn.004a5d64
test eax, eax
jne 0x46032e
lea ecx, [esp + 0x18]
call fcn.004a5a3e
add dword [esi + 8], eax
push 0
push esi
adc dword [esi + 0xc], edx
mov ecx, edi
call fcn.0045b9f0
inc dword [esi + 4]
cmp dword [0x7c8f8c], 0
jne 0x46033f
test ebx, ebx
jne 0x4602a0
lea ecx, [esp + 0x18]
call fcn.004a591c
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x38], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46036d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 0
call fcn.004a5dc5
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
mov dword [esp + 0x38], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4603a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x2c
ret 8
Function at 0x461610
Capabilities:
Create directory
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x52e47b
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x589758]
xor eax, esp
mov dword [esp + 0x414], eax
push esi
push edi
mov eax, dword [0x589758]
xor eax, esp
push eax
lea eax, [esp + 0x424]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0xc]
call fcn.004ad3e4
lea eax, [esp + 0x20]
push eax
push 0x400
mov dword [esp + 0x434], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x20]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x461674
mov ecx, dword [str.nstar]
mov dx, word [0x543ca0]
mov dword [eax], ecx
mov word [eax + 4], dx
push 0
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea edi, [esp + 0x20]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4616a1
mov cx, word [0x539558]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x24]
mov word [edi], cx
mov ecx, dword [0x7c72f4]
push eax
call fcn.00461270
cmp dword [0x7c8f8c], 0
je 0x4616f6
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esi + 0x38]
call fcn.0045ab00
lea ecx, [esp + 0xc]
mov dword [esp + 0x42c], 0xffffffff
call fcn.004ad74d
xor eax, eax
jmp 0x46171a
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.0045b510
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x42c], 0xffffffff
call fcn.004ad74d
mov eax, esi
mov ecx, dword [esp + 0x424]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.004f6592
add esp, 0x424
ret
Function at 0x465e00
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ecx
push ebp
push str.Preferred_DropEffect
mov ebp, ecx
call dword [sym.imp.USER32.dll_RegisterClipboardFormatA]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x20]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x465ed6
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetClipboardData]
push 0xf
call edi
mov esi, eax
test esi, esi
je 0x465ec8
cmp dword [esi + 0x14], 0x72617473
jne 0x465e50
pop edi
pop esi
pop ebp
add esp, 4
jmp dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0xc]
push ecx
call edi
cmp dword [0x7c108c], 0
jne 0x465ed4
mov edx, dword [0x7bf858]
mov ecx, dword [0x7c8f6c]
push 0
push 0
push 0
push 0
mov eax, 1
push 0x7c7700
push 0x464b40
mov dword [0x7c8f84], eax
mov dword [0x7c8f60], 0
mov dword [0x7c8f64], 0
mov dword [0x7c8f8c], 0
mov dword [0x7c7704], ebp
mov dword [0x7c7710], esi
mov dword [0x7c7708], edx
mov dword [0x7c770c], ecx
mov dword [0x7c7700], eax
call fcn.004b2e1e
pop edi
pop esi
pop ebp
add esp, 4
jmp dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ecx
ret
Function at 0x469cc0
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
ret
Function at 0x46ae60
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x164
mov eax, dword [0x589758]
xor eax, esp
mov dword [esp + 0x160], eax
mov ecx, dword [esp + 0x16c]
mov eax, dword [esp + 0x168]
push ecx
push 0x160
lea edx, [esp + 8]
push edx
push 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov ecx, dword [esp + 0x160]
mov eax, dword [esp + 4]
xor ecx, esp
call fcn.004f6592
add esp, 0x164
ret 8

Function at 0x46b770
Capabilities:
Get common file path
Get file system object information
Inspect load icon resource

Disassembly:
sub esp, 0x26c
mov eax, dword [0x589758]
xor eax, esp
mov dword [esp + 0x268], eax
push ebp
push esi
push edi
push 0x103
lea eax, [esp + 0x175]
push 0
push eax
mov ebp, ecx
mov byte [esp + 0x17c], 0
call fcn.004f67e0
add esp, 0xc
call fcn.00497c4f
call fcn.00497c4f
mov eax, dword [eax + 0xc]
push 0xe5
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0x11
push 0
mov esi, eax
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
jne 0x46b83b
push 0x4009
push 0x160
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x46b822
push eax
call fcn.004a4385
mov edi, eax
test edi, edi
je 0x46b808
mov eax, dword [edi + 4]
mov ecx, dword [ebp + 0x20]
push eax
push 0
push 0x1109
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
call fcn.004a4385
jmp 0x46b826
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [esp + 0xc], 0
jmp 0x46b83f
mov edi, dword [esp + 0xc]
push 0x104
lea eax, [esp + 0x174]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x4001
push 0x160
lea ecx, [esp + 0x18]
push ecx
push 0
lea edx, [esp + 0x180]
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov ecx, dword [esp + 0x14]
mov eax, dword [edi + 4]
push esi
push ecx
push eax
call fcn.00497c4f
mov edx, dword [eax + 0x78]
mov ecx, dword [edx]
call fcn.00410260
push esi
call dword [sym.imp.USER32.dll_DestroyIcon]
mov ecx, dword [esp + 0x274]
pop edi
pop esi
mov dword [ebp + 0x54], 0
pop ebp
xor ecx, esp
call fcn.004f6592
add esp, 0x26c
ret
Function at 0x46d700
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 8
push ebp
xor ebp, ebp
cmp edi, ebp
jne 0x46d711
xor al, al
pop ebp
add esp, 8
ret
mov eax, dword [edi + 4]
cmp eax, ebp
je 0x46d740
push eax
mov dword [edi + 4], ebp
mov dword [edi + 8], ebp
mov dword [edi + 0xc], ebp
mov dword [edi + 0x10], ebp
mov dword [edi + 0x18], ebp
mov dword [edi + 0x14], ebp
mov dword [edi + 0x20], 0xffffffff
mov byte [edi + 0x1d], 0
mov byte [edi + 0x1c], 0
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call fcn.00497c4f
mov ecx, dword [esp + 0x18]
movzx edx, word [esp + 0x14]
mov eax, dword [eax + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebp
je 0x46d775
call fcn.00497c4f
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
jne 0x46d77d
pop esi
xor al, al
pop ebp
add esp, 8
ret
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [esp + 0x10], ebp
call fcn.00497c4f
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
push ebp
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebp
push ebx
push eax
call fcn.004f7b80
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [esp + 0x10]
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x46d7df
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, edi
call fcn.0046d670
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [edi + 4], 0
jne 0x46d803
push 0
push 0
push 0x545374
call fcn.004a859d
pop ebx
pop esi
xor al, al
pop ebp
add esp, 8
ret
cmp dword [edi + 0x18], 0x20
jne 0x46d8b6
cmp dword [edi + 0xc], 0
mov dword [esp + 0xc], 0
jle 0x46d8b6
nop
xor ebx, ebx
cmp dword [edi + 0x10], ebx
jle 0x46d8a4
mov eax, dword [edi + 0x18]
imul eax, dword [esp + 0xc]
cdq
and edx, 7
add eax, edx
mov edx, dword [edi + 0x14]
imul edx, ebx
mov ecx, eax
sar ecx, 3
add ecx, edx
add ecx, dword [edi + 8]
mov eax, 0x80808081
movzx ebp, byte [ecx + 3]
movzx esi, byte [ecx]
imul esi, ebp
imul esi
add edx, esi
movzx esi, byte [ecx + 1]
sar edx, 7
imul esi, ebp
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [ecx], al
mov eax, 0x80808081
imul esi
add edx, esi
movzx esi, byte [ecx + 2]
sar edx, 7
imul esi, ebp
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [ecx + 1], al
mov eax, 0x80808081
imul esi
add edx, esi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
inc ebx
mov byte [ecx + 2], al
cmp ebx, dword [edi + 0x10]
jl 0x46d827
mov eax, dword [esp + 0xc]
inc eax
cmp eax, dword [edi + 0xc]
mov dword [esp + 0xc], eax
jl 0x46d820
pop ebx
pop esi
mov al, 1
pop ebp
add esp, 8
ret
Function at 0x470bb0
Capabilities:
Get common file path
Get file system object information
Inspect load icon resource

Disassembly:
sub esp, 0x26c
mov eax, dword [0x589758]
xor eax, esp
mov dword [esp + 0x268], eax
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push esi
push edi
push 0
push 0
mov esi, ecx
mov eax, dword [esi + 0x20]
push 0x1003
push eax
call ebp
push eax
call fcn.004a4385
call fcn.00497c4f
mov ecx, dword [0x7c5140]
mov eax, 0x66666667
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*4]
mov edi, dword [ecx*4 + 0x581b50]
call fcn.00497c4f
mov eax, dword [eax + 0xc]
movzx edx, di
push edx
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov edi, eax
push 0x104
lea eax, [esp + 0x178]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ebx, dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push 0x4001
push 0x160
lea ecx, [esp + 0x1c]
push ecx
push 0
lea edx, [esp + 0x184]
push edx
call ebx
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 0x11
push 0
mov dword [esi + 0x2a0], eax
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
jne 0x470d3c
push 0x4008
push 0x160
lea edx, [esp + 0x1c]
push edx
push eax
mov eax, dword [esp + 0x20]
push eax
call ebx
test eax, eax
je 0x470cd3
push eax
call fcn.004a4385
mov ebx, eax
mov eax, dword [esi + 0x2a0]
mov ecx, dword [ebx + 4]
push edi
push eax
push ecx
call fcn.00497c4f
mov ecx, dword [eax + 0x78]
mov ecx, dword [ecx]
call fcn.00410260
mov ebx, dword [ebx + 4]
mov edx, dword [esi + 0x20]
push ebx
push 0
push 0x1003
push edx
call ebp
push eax
call fcn.004a4385
mov ebx, dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov ecx, dword [esp + 0x10]
push 0x4009
push 0x160
lea eax, [esp + 0x1c]
push eax
push 0
push ecx
call ebx
test eax, eax
je 0x470d29
push eax
call fcn.004a4385
mov ebx, eax
mov eax, dword [esi + 0x2a0]
mov ecx, dword [ebx + 4]
push edi
push eax
push ecx
call fcn.00497c4f
mov edx, dword [eax + 0x78]
mov ecx, dword [edx]
call fcn.00410260
mov ebx, dword [ebx + 4]
mov eax, dword [esi + 0x20]
push ebx
push 1
push 0x1003
push eax
call ebp
push eax
call fcn.004a4385
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.USER32.dll_DestroyIcon]
mov ecx, dword [esp + 0x278]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.004f6592
add esp, 0x26c
ret
Function at 0x471b20
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x278
mov eax, dword [0x589758]
xor eax, esp
mov dword [esp + 0x274], eax
mov eax, dword [esp + 0x288]
mov edx, dword [esp + 0x290]
push ebx
mov ebx, dword [esp + 0x288]
push ebp
push esi
push edi
mov edi, dword [esp + 0x290]
mov ebp, ecx
mov ecx, dword [esp + 0x29c]
xor esi, esi
push 0x15c
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2a8]
lea ecx, [esp + 0x28]
push esi
push ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], esi
call fcn.004f67e0
mov edx, dword [0x53fa2c]
mov al, byte [0x53fa30]
push 0xff
lea ecx, [esp + 0x195]
push esi
push ecx
mov dword [esp + 0x198], edx
mov byte [esp + 0x19c], al
call fcn.004f67e0
add esp, 0x18
cmp dword [esp + 0x28c], 1
je 0x471c3f
push 0xd01
push 0x160
lea edx, [esp + 0x28]
push edx
push esi
push edi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x471c0a
xor eax, eax
mov cl, byte [esp + eax + 0x130]
mov byte [esp + eax + 0x180], cl
inc eax
test cl, cl
jne 0x471be0
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
mov dword [esp + 0x20], 0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
push ecx
push edx
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x298]
lea ecx, [esp + 0x18c]
push ecx
push edx
push ebx
push eax
push esi
add ebp, 0x670
push ebp
call fcn.004706c0
add esp, 0x24
mov ecx, dword [esp + 0x284]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004f6592
add esp, 0x278
ret 0x1c

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

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 4