joyce8/EMBER2024-capa huggingface dataset:
Function at 0x461d10
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x14
cmp dword [ebp + 0xc], 0
mov eax, dword [ebp + 8]
push ebx
mov edx, ecx
mov ecx, dword [ebp + 0x10]
movdqu xmm0, xmmword [edx + 8]
push esi
lea esi, [edx + 8]
push edi
mov dword [esp + 0x1c], esi
mov edi, eax
mov ebx, ecx
lea esi, [edx + 0x18]
jbe 0x461da6
lea ecx, [ecx]
mov eax, edi
movdqu xmm1, xmmword [eax]
add edi, 0x10
cmp byte [edx + 1], 0
mov dword [esp + 0x18], edi
je 0x461d59
pxor xmm0, xmm1
jmp 0x461d5d
movdqa xmm0, xmm1
mov eax, dword [edx + 4]
cmp eax, 1
movdqu xmm1, xmmword [esi]
pxor xmm0, xmm1
jle 0x461d88
lea ecx, [esi + 0x10]
lea edi, [eax - 1]
movdqu xmm1, xmmword [ecx]
add ecx, 0x10
sub edi, 1
aesenc xmm0, xmm1
jne 0x461d73
mov edi, dword [esp + 0x18]
shl eax, 4
movdqu xmm1, xmmword [eax + esi]
add eax, esi
mov eax, ebx
add ebx, 0x10
sub dword [ebp + 0xc], 1
aesenclast xmm0, xmm1
movdqu xmmword [eax], xmm0
jne 0x461d40
mov eax, dword [esp + 0x1c]
pop edi
pop esi
movdqu xmmword [eax], xmm0
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x461dc0
Capabilities:
Decrypt data using aes via x86 extensions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push ecx
cmp dword [ebp + 0xc], 0
mov eax, dword [ebp + 0x10]
push ebx
mov edx, ecx
movdqu xmm2, xmmword [edx + 8]
push esi
lea ecx, [edx + 8]
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], ecx
mov ebx, eax
lea esi, [edx + 0x18]
jbe 0x461e53
lea esp, [esp]
mov eax, edi
movdqu xmm1, xmmword [eax]
mov eax, dword [edx + 4]
mov ecx, eax
shl ecx, 4
movdqu xmm0, xmmword [ecx + esi]
add ecx, esi
dec eax
add edi, 0x10
pxor xmm0, xmm1
test eax, eax
jle 0x461e29
mov ecx, eax
shl ecx, 4
add ecx, esi
movdqu xmm3, xmmword [ecx]
dec eax
sub ecx, 0x10
aesdec xmm0, xmm3
test eax, eax
jg 0x461e18
cmp byte [edx + 1], 0
movdqu xmm3, xmmword [esi]
aesdeclast xmm0, xmm3
je 0x461e3c
pxor xmm0, xmm2
mov eax, ebx
add ebx, 0x10
sub dword [ebp + 0xc], 1
movdqa xmm2, xmm1
movdqu xmmword [eax], xmm0
jne 0x461df0
mov ecx, dword [esp + 0xc]
pop edi
pop esi
movdqu xmmword [ecx], xmm2
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4620b0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
mov eax, dword [0x514bc0]
xor eax, esp
mov dword [esp + 0x10], eax
push ebp
push edi
mov ebp, ecx
mov edi, 1
cmp dword [ebp + 4], edi
jle 0x4621ea
push ebx
push esi
lea esi, [ebp + 0x28]
lea ecx, [ebp + 0x2c]
jmp 0x4620e0
xor eax, eax
jmp 0x4620f0
movzx edx, byte [ecx - 1]
movzx edx, byte [eax + edx*4 + 0x52f1a0]
movzx ebx, byte [ecx - 2]
xor dl, byte [eax + ebx*4 + 0x52f5a0]
movzx ebx, byte [ecx - 3]
xor dl, byte [eax + ebx*4 + 0x52f9a0]
movzx ebx, byte [ecx - 4]
xor dl, byte [eax + ebx*4 + 0x52fda0]
movzx ebx, byte [ecx + 2]
mov byte [esp + eax + 0x10], dl
movzx edx, byte [ecx + 3]
movzx edx, byte [eax + edx*4 + 0x52f1a0]
xor dl, byte [eax + ebx*4 + 0x52f5a0]
movzx ebx, byte [ecx + 1]
xor dl, byte [eax + ebx*4 + 0x52f9a0]
movzx ebx, byte [ecx]
xor dl, byte [eax + ebx*4 + 0x52fda0]
movzx ebx, byte [ecx + 6]
mov byte [esp + eax + 0x14], dl
movzx edx, byte [ecx + 7]
movzx edx, byte [eax + edx*4 + 0x52f1a0]
xor dl, byte [eax + ebx*4 + 0x52f5a0]
movzx ebx, byte [ecx + 5]
xor dl, byte [eax + ebx*4 + 0x52f9a0]
movzx ebx, byte [ecx + 4]
xor dl, byte [eax + ebx*4 + 0x52fda0]
movzx ebx, byte [ecx + 0xa]
mov byte [esp + eax + 0x18], dl
movzx edx, byte [ecx + 0xb]
movzx edx, byte [eax + edx*4 + 0x52f1a0]
xor dl, byte [eax + ebx*4 + 0x52f5a0]
movzx ebx, byte [ecx + 9]
xor dl, byte [eax + ebx*4 + 0x52f9a0]
movzx ebx, byte [ecx + 8]
xor dl, byte [eax + ebx*4 + 0x52fda0]
inc eax
cmp eax, 4
mov byte [esp + eax + 0x1b], dl
jl 0x4620f0
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esi], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 4], edx
mov edx, dword [esp + 0x1c]
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
inc edi
add ecx, 0x10
add esi, 0x10
cmp edi, dword [ebp + 4]
jl 0x4620e0
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
pop edi
pop ebp
xor ecx, esp
call fcn.004e34f4
add esp, 0x14
ret
Function at 0x463ec0
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 4], 0
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
mov edi, dword [esp + 0x24]
mov esi, ecx
jne 0x463ee1
push edi
push 0
push ebp
call fcn.004e4400
add esp, 0xc
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push edi
push ebp
push eax
push ebx
push ecx
mov ecx, esi
call fcn.00463a60
test al, al
jne 0x463fa0
test ebx, ebx
jne 0x463f60
cmp dword [esi + 0x24], edi
je 0x463f34
mov edx, dword [esi + 0x20]
push edx
call fcn.004e44b4
xor ecx, ecx
mov eax, edi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004e330d
add esp, 8
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], edi
xor eax, eax
test edi, edi
jbe 0x463f60
lea ebx, [ebx]
mov ecx, dword [esp + 0x1c]
movzx edx, word [eax + ecx]
mov ecx, dword [esi + 4]
mov ebx, dword [esi + 0x20]
mov edx, dword [ecx + edx*4]
mov dword [ebx + eax*4], edx
add eax, 2
cmp eax, edi
jb 0x463f40
mov ebx, dword [esp + 0x18]
nop
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x1c]
imul eax, ebx
add eax, dword [esp + 0x14]
mov edx, dword [ecx + eax*4]
mov eax, dword [esi + 4]
mov ecx, dword [eax + edx*4]
xor eax, eax
test edi, edi
jbe 0x463fa0
lea esp, [esp]
mov edx, dword [esi + 0x20]
mov edx, dword [edx + eax*4]
mov ebx, dword [esi]
add edx, ecx
mov dx, word [ebx + edx*4]
xor word [eax + ebp], dx
add eax, 2
cmp eax, edi
jb 0x463f80
lea esp, [esp]
pop edi
pop esi
pop ebp
pop ebx
ret 0x14

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

Disassembly:
mov eax, 0x1050
call fcn.004e3510
mov eax, dword [0x514bc0]
xor eax, esp
mov dword [esp + 0x104c], eax
push ebx
mov ebx, dword [esp + 0x1058]
cmp byte [ebx], 0
push ebp
mov ebp, ecx
je 0x464283
push esi
push edi
lea esi, [ebp + 0x101e]
push esi
call fcn.00451a10
mov edi, eax
cmp edi, esi
jbe 0x464205
xor eax, eax
push esi
mov word [edi - 2], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, 0x5c
mov word [edi - 2], cx
cmp eax, 0xffffffff
je 0x464205
test eax, 0x400
je 0x464205
mov byte [ebx], 0
push str.System_Volume_Information_
push esi
call fcn.004e79e5
add esp, 8
test eax, eax
jne 0x464234
cmp byte [ebx], al
je 0x464281
mov ecx, dword [ebp + 0x4024]
test ecx, ecx
je 0x464239
push 1
push 1
push eax
push esi
call fcn.00437230
test al, al
je 0x464239
mov byte [ebx], 0
jmp 0x464281
cmp byte [ebx], 0
je 0x464281
push 0x800
lea edx, [esp + 0x60]
push edx
push esi
call fcn.004526f0
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x10]
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0x54
mov dword [esp + 0x10], eax
mov dword [esp + 0x50], 1
call fcn.004693c0
mov ecx, 0x52c138
call fcn.0043dd70
pop edi
pop esi
mov ecx, dword [esp + 0x1054]
pop ebp
pop ebx
xor ecx, esp
call fcn.004e34f4
add esp, 0x1050
ret 4
Function at 0x464950
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [0x5323c8]
push esi
test edx, edx
jne 0x4649a9
cmp byte [0x5323c4], dl
jne 0x4649a9
push str.Crypt32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x5323c0], eax
test eax, eax
je 0x46499c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptProtectMemory
push eax
call esi
mov dword [0x5323c8], eax
mov eax, dword [0x5323c0]
push str.CryptUnprotectMemory
push eax
call esi
mov dword [0x5323cc], eax
mov edx, dword [0x5323c8]
mov byte [0x5323c4], 1
mov esi, dword [esp + 0xc]
mov ecx, esi
and ecx, 0xf
mov eax, esi
sub eax, ecx
xor ecx, ecx
cmp byte [esp + 0x14], cl
setne cl
cmp byte [esp + 0x10], 0
je 0x464a03
test edx, edx
je 0x464a21
push ecx
push eax
mov eax, dword [esp + 0x10]
push eax
call edx
test eax, eax
jne 0x464a44
push str.CryptProtectMemory_failed
push 0x52c138
call fcn.0043df90
add esp, 8
mov ecx, 0x52c138
call fcn.0043dd70
push 2
mov ecx, 0x52c138
call fcn.0043dc00
pop esi
ret 0x10
mov edx, dword [0x5323cc]
test edx, edx
je 0x464a21
push ecx
mov ecx, dword [esp + 0xc]
push eax
push ecx
call edx
test eax, eax
jne 0x464a44
push str.CryptUnprotectMemory_failed
jmp 0x4649dc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor ecx, ecx
test esi, esi
jbe 0x464a44
mov dl, al
mov eax, dword [esp + 8]
add dl, 0x4b
push ebx
mov bl, dl
add bl, cl
xor byte [ecx + eax], bl
inc ecx
cmp ecx, esi
jb 0x464a37
pop ebx
pop esi
ret 0x10

Function at 0x466600
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], ecx
ret 4

Function at 0x466830
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 4
Function at 0x466d90
Capabilities:
Hash data using sha256

Disassembly:
sub esp, 0x12c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x13c]
mov ecx, dword [esi + 0x20]
push edi
lea eax, [esi + 0x2c]
push 0
mov dword [esp + 0x14], eax
mov dword [esi + 0x28], eax
mov eax, dword [esi + 0x24]
push 8
push eax
push ecx
call fcn.004e4480
mov edi, dword [esi + 0x20]
and edi, 0x3f
mov byte [edi + esi + 0x2c], 0x80
inc edi
mov ebp, eax
mov ebx, edx
cmp edi, 0x38
je 0x466dea
and edi, 0x3f
jne 0x466ddc
push esi
call fcn.00466880
mov edx, dword [esp + 0x10]
mov byte [edx + edi], 0
inc edi
cmp edi, 0x38
jne 0x466dd1
mov eax, ebx
shr eax, 0x18
mov byte [edi + esi + 0x2c], al
shld ebx, ebp, 8
shl ebp, 8
mov ecx, ebx
mov edx, ecx
shr edx, 0x18
mov byte [edi + esi + 0x2d], dl
mov eax, ebp
shld ecx, eax, 8
shl eax, 8
mov edx, ecx
shld ecx, eax, 8
shr edx, 0x18
mov byte [edi + esi + 0x2e], dl
shl eax, 8
mov edx, ecx
shld ecx, eax, 8
shr edx, 0x18
shl eax, 8
mov byte [edi + esi + 0x2f], dl
mov edx, ecx
shld ecx, eax, 8
shr edx, 0x18
shl eax, 8
mov byte [edi + esi + 0x30], dl
mov edx, ecx
shld ecx, eax, 8
shl eax, 8
mov dword [esp + 0x14], eax
mov eax, ecx
shr edx, 0x18
shr eax, 0x18
shr ecx, 0x10
push esi
mov byte [edi + esi + 0x31], dl
mov byte [edi + esi + 0x32], al
mov byte [edi + esi + 0x33], cl
call fcn.00466880
mov edi, dword [esp + 0x144]
xor ebp, ebp
xor eax, eax
mov edx, eax
and edx, 3
mov ecx, 3
sub ecx, edx
add ecx, ecx
mov edx, eax
shr edx, 2
mov edx, dword [esi + edx*4]
add ecx, ecx
add ecx, ecx
shr edx, cl
inc eax
mov byte [eax + edi - 1], dl
cmp eax, 0x20
jb 0x466e73
push 0x20
lea eax, [esp + 0x20]
push eax
mov dword [esi], 0x6a09e667
mov dword [esi + 4], 0xbb67ae85
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
mov dword [esi + 0x20], ebp
mov dword [esi + 0x24], ebp
call fcn.00464a50
push 0x100
lea ecx, [esp + 0x40]
push ecx
call fcn.00464a50
mov edx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x12c
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
jmp fcn.00464a50

Function at 0x467d00
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x467d53
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [esp]
push 0
push 0
push 0
lea edx, [esp + 0x10]
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push SysReAllocString
push 0xd
call dword [sym.imp.USER32.dll_ExitWindowsEx]
add esp, 0x14
ret
Function at 0x468800
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
cmp dword [esi], ebp
jbe 0x46887d
push ebx
push edi
lea ebx, [esi + 4]
lea eax, [esp + 0x10]
push eax
push 0
push esi
push 0x468790
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x468858
push str.CreateThread_failed
push 0x52c138
call fcn.0043df90
add esp, 8
mov ecx, 0x52c138
call fcn.0043dd70
push 2
mov ecx, 0x52c138
call fcn.0043dc00
mov dword [ebx], edi
inc dword [esi + 0x84]
mov eax, dword [0x5363ec]
test eax, eax
je 0x468873
mov ecx, dword [ebx]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
inc ebp
add ebx, 4
cmp ebp, dword [esi]
jb 0x468810
pop edi
pop ebx
pop esi
pop ebp
pop ecx
ret
Function at 0x46d560
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x408
push ebx
push ebp
push esi
mov esi, dword [esp + 0x418]
push edi
mov ebx, ecx
movzx edi, word [ebx]
sub edi, dword [esi + 0x654]
mov dword [esp + 0x14], ebx
push edi
push esi
call fcn.0046d350
mov dl, byte [esi + 0xa6c]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 4]
sub eax, 6
lea ebp, [esp + 0x18]
xor ecx, ecx
lea ecx, [ecx]
movzx ebx, byte [eax + 6]
add eax, 6
cmp byte [ebx + esi + 0x66c], dl
je 0x46d5a0
movzx ebx, byte [eax + 1]
mov dword [ebp], eax
add ecx, ebx
add ebp, 4
sub edi, 1
jne 0x46d5a0
add dword [esi + 0x4a84], ecx
mov eax, dword [esi + 0x4a78]
xor edx, edx
div dword [esi + 0x4a84]
xor edx, edx
mov edi, eax
mov eax, dword [esi + 0x4a74]
sub eax, dword [esi + 0x4a70]
mov dword [esi + 0x4a78], edi
div edi
mov ebx, dword [esi + 0x4a84]
cmp eax, ebx
jl 0x46d606
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x408
ret 4
cmp eax, ecx
mov edx, dword [esp + 0x18]
lea edi, [esp + 0x18]
jge 0x46d683
movzx ecx, byte [edx + 1]
cmp ecx, eax
jg 0x46d630
lea ebx, [ebx]
mov edx, dword [edi + 4]
movzx ebx, byte [edx + 1]
add edi, 4
add ecx, ebx
cmp ecx, eax
jle 0x46d620
mov edi, dword [esp + 0x10]
mov dword [esi + 0x4a80], ecx
movzx eax, byte [edx + 1]
sub ecx, eax
mov dword [esi + 0x4a7c], ecx
mov cl, byte [edi + 2]
cmp cl, 7
jae 0x46d669
add byte [edi + 3], 0xff
jne 0x46d669
mov ax, word [edi]
add ax, ax
mov word [edi], ax
mov al, 3
shl al, cl
inc cl
mov byte [edi + 2], cl
mov byte [edi + 3], al
mov ecx, dword [esp + 0x14]
push edx
push esi
call fcn.0046d310
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x408
ret 4
mov edi, dword [esp + 0x14]
mov dword [esi + 0x4a7c], ecx
mov dword [esi + 0x4a80], ebx
movzx ecx, word [edi]
sub ecx, dword [esi + 0x654]
lea eax, [esp + 0x18]
sub eax, 4
mov edx, dword [eax + 4]
movzx edx, byte [edx]
mov bl, byte [esi + 0xa6c]
add eax, 4
sub ecx, 1
mov byte [edx + esi + 0x66c], bl
jne 0x46d6a3
mov cx, word [esi + 0x4a84]
mov eax, dword [esp + 0x10]
add word [eax], cx
movzx edx, word [edi]
pop edi
mov dword [esi + 0x654], edx
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x408
ret 4

Function at 0x470ed0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4fa54e
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x514bc0]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov eax, ecx
mov dword [esp + 4], eax
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [esp + 0x10], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov byte [esp + 0x10], 1
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x34], ecx
mov byte [esp + 0x10], 2
mov dword [eax + 0x10], ecx
mov dword [eax + 0x58], ecx
mov dword [eax + 0x14], ecx
mov dword [esp + 0x10], 0xffffffff
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
add esp, 0x10
ret
Function at 0x476500
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2e0
mov eax, dword [0x514bc0]
xor eax, esp
mov dword [esp + 0x2dc], eax
push ebx
push ebp
mov ebp, dword [esp + 0x2fc]
push esi
push edi
mov edi, dword [esp + 0x2f4]
mov ebx, ecx
push 0x1008
mov dword [esp + 0x38], ebx
call fcn.004e4838
mov ecx, dword [esp + 0x300]
mov esi, eax
mov eax, dword [esp + 0x2fc]
add esp, 4
push edi
mov dword [esi], eax
mov dword [esi + 4], ecx
call fcn.00467110
lea edx, [esi + 8]
movzx ecx, word [eax]
mov word [edx], cx
add eax, 2
add edx, 2
test cx, cx
jne 0x476557
cmp dword [ebx + 4], 0x50000
jb 0x476587
call fcn.00446760
cmp eax, 0x400
je 0x476587
cmp byte [esp + 0x310], 0
jne 0x4765d2
mov ebx, dword [esp + 0x300]
cmp ebx, 0xffffffff
je 0x476597
test ebp, ebp
jne 0x4765d9
cmp dword [esp + 0x2f8], 2
mov eax, 0x4201
jne 0x4765ab
mov eax, 0x4203
push eax
push 0x2b4
lea edx, [esp + 0x40]
push edx
push 0
push edi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
cmp ebx, 0xffffffff
jne 0x4765c8
mov ebx, dword [esp + 0x3c]
test ebp, ebp
jne 0x4765d9
lea ebp, [esp + 0x44]
jmp 0x4765d9
mov ebx, dword [esp + 0x300]
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x10], 0x37
mov dword [esp + 0x18], ebp
test ebp, ebp
jne 0x476617
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0x30c]
mov ecx, dword [esp + 0x308]
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x38]
push 0
mov dword [esp + 0x34], ecx
mov ecx, dword [eax]
push 0x40b
push ecx
mov dword [esp + 0x40], esi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x2ec]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004e34f4
add esp, 0x2e0
ret 0x20
Function at 0x477170
Capabilities:
Get common file path
Get file system object information

Disassembly:
sub esp, 0x2d4
mov eax, dword [0x514bc0]
xor eax, esp
mov dword [esp + 0x2d0], eax
push edi
mov edi, ecx
mov eax, dword [edi]
test eax, eax
je 0x477299
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x14b
push eax
call esi
lea eax, [esp + 0xc]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x47720f
mov edx, dword [esp + 0xc]
push 0x4209
push 0x2b4
lea ecx, [esp + 0x18]
push ecx
push eax
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push eax
mov eax, dword [edi]
push 0
push 0x402
push eax
call esi
mov eax, dword [0x56dadc]
mov edx, dword [esp + 0xc]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov edx, dword [esp + 0x14]
push 0
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x28]
push ecx
push edx
push 0
mov eax, ecx
push 1
push eax
mov ecx, edi
call fcn.00476500
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
jne 0x477238
mov edx, dword [esp + 8]
push eax
push eax
push edx
mov ecx, edi
call fcn.004769b0
test al, al
jne 0x477291
push ebx
push ebp
call fcn.004b0d20
mov ebp, eax
xor esi, esi
mov ebx, 1
test ebp, ebx
je 0x477287
lea eax, [esi + 0x41]
push eax
lea ecx, [esp + 0x2d0]
push str._c:_
push ecx
mov edx, 0xa
call fcn.00458640
add esp, 0xc
push 1
push 0xffffffffffffffff
push 2
push 0
push 0xffffffffffffffff
push 0
push 0
lea edx, [esp + 0x2e8]
push edx
mov ecx, edi
call fcn.00476500
inc esi
rol ebx, 1
cmp esi, 0x20
jl 0x477248
pop ebp
pop ebx
mov ecx, edi
call fcn.00476ec0
pop esi
mov ecx, dword [esp + 0x2d4]
pop edi
xor ecx, esp
call fcn.004e34f4
add esp, 0x2d4
ret
Function at 0x4772b0
Capabilities:
Check if file exists
Get file attributes
Get graphical window text

Disassembly:
mov eax, 0x1004
call fcn.004e3510
mov eax, dword [0x514bc0]
xor eax, esp
mov dword [esp + 0x1000], eax
push esi
push edi
push 0x800
mov esi, ecx
mov ecx, dword [esi]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea edx, [esp + 8]
push edx
call fcn.004949f0
mov ecx, dword [esi]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esp + 8]
push eax
push 0xffffffffffffffff
push 0x158
push ecx
call edi
cmp eax, 0xffffffff
je 0x47735c
mov edx, dword [esi]
push 0
push eax
push 0x14e
push edx
call edi
mov ecx, esi
call fcn.00477040
cmp byte [0x538309], 0
mov ecx, esi
je 0x477340
call fcn.00476d00
pop edi
pop esi
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.004e34f4
add esp, 0x1004
ret
call fcn.00476910
pop edi
pop esi
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.004e34f4
add esp, 0x1004
ret
cmp byte [0x538309], 0
je 0x477373
lea eax, [esp + 8]
push eax
call fcn.004522a0
test al, al
je 0x4773ad
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4773ad
test al, 0x10
jne 0x4773ad
lea eax, [esp + 8]
push eax
mov ecx, 0x544c98
call fcn.00492e20
pop edi
pop esi
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.004e34f4
add esp, 0x1004
ret
lea ecx, [esp + 8]
push ecx
mov ecx, 0x544c98
call fcn.00492f40
mov ecx, dword [esp + 0x1008]
pop edi
pop esi
xor ecx, esp
call fcn.004e34f4
add esp, 0x1004
ret
Function at 0x4773e0
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2bc
mov eax, dword [0x514bc0]
xor eax, esp
mov dword [esp + 0x2b8], eax
mov ecx, dword [esp + 0x2c4]
mov eax, dword [esp + 0x2c0]
push edi
mov edi, dword [esp + 0x2d0]
cmp ecx, 0x4e
jne 0x4774f4
mov eax, dword [edi + 8]
cmp eax, 0xfffffcd9
je 0x477451
cmp eax, 0xfffffcda
jne 0x477437
cmp dword [edi + 0x21c], 2
jne 0x477437
mov ecx, 0x544c88
call fcn.004772b0
xor eax, eax
pop edi
mov ecx, dword [esp + 0x2b8]
xor ecx, esp
call fcn.004e34f4
add esp, 0x2bc
ret 0x10
mov ecx, dword [edi + 0x2c]
mov eax, dword [ecx]
mov edx, dword [edi + 0xc]
push ebx
push ebp
push esi
mov dword [esp + 0x10], edx
cmp eax, 4
jne 0x47746a
mov ebp, dword [ecx + 4]
jmp 0x47746d
lea ebp, [ecx + 8]
mov ebx, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
xor ecx, ecx
cmp eax, 4
setne cl
dec ecx
and ecx, 8
mov esi, ecx
test dl, 1
je 0x4774a9
mov edx, esi
or edx, 0x200
push edx
push 0x2b4
lea eax, [esp + 0x1c]
push eax
push 0
push ebp
call ebx
test eax, eax
je 0x4774a9
lea ecx, [esp + 0x20]
mov dword [edi + 0x14], ecx
test byte [esp + 0x10], 6
je 0x4774d0
or esi, 0x4001
push esi
push 0x2b4
lea edx, [esp + 0x1c]
push edx
push 0
push ebp
call ebx
mov eax, dword [esp + 0x18]
mov dword [edi + 0x20], eax
mov dword [edi + 0x1c], eax
or dword [edi + 0xc], 0x10000000
pop esi
pop ebp
pop ebx
xor eax, eax
pop edi
mov ecx, dword [esp + 0x2b8]
xor ecx, esp
call fcn.004e34f4
add esp, 0x2bc
ret 0x10
mov edx, dword [esp + 0x2cc]
push edi
push edx
push ecx
push eax
call dword [sym.imp.USER32.dll_DefWindowProcW]
mov ecx, dword [esp + 0x2bc]
pop edi
xor ecx, esp
call fcn.004e34f4
add esp, 0x2bc
ret 0x10

Function at 0x47c8d0
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x804
mov eax, dword [0x514bc0]
xor eax, esp
mov dword [esp + 0x800], eax
push ebx
mov ebx, dword [esp + 0x80c]
push esi
xor eax, eax
push edi
mov word [ebx], ax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0x400
lea ecx, [esp + 0x10]
push ecx
push eax
xor edi, edi
call fcn.00467720
mov esi, eax
test esi, esi
je 0x47c965
test edi, edi
jne 0x47c91c
mov edi, 1
jmp 0x47c947
movzx edx, word [esp + 0xc]
push edx
mov ecx, 0x54a798
call fcn.00436ee0
test al, al
jne 0x47c947
cmp edi, 1
jne 0x47c946
mov ax, word [esp + 0xc]
mov cx, word [esp + 0xe]
mov word [ebx], ax
mov word [ebx + 2], cx
inc edi
push 0x400
lea edx, [esp + 0x10]
push edx
push esi
call fcn.00467720
mov esi, eax
test esi, esi
jne 0x47c911
cmp edi, 2
jne 0x47c965
mov word [ebx], ax
mov ecx, dword [esp + 0x80c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004e34f4
add esp, 0x804
ret 4