joyce8/EMBER2024-capa huggingface dataset:
Function at 0x54f360
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x8ab3ec]
xor edx, edx
cmp eax, edx
jne 0x54f386
xor eax, eax
mov byte [eax + 0x8ab2ec], al
inc eax
cmp eax, 0x100
jl 0x54f36e
mov dword [0x8ab3ec], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x8ab2ec
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x54f417
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x54f3ea
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x54f3b8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x54f490
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x54f4e3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x54f4ca
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x555e60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5b47fe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.00556780
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x82b33c
call fcn.005a29fa
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x555ef3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.005a29fa
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x555eec
push 0
mov ecx, eax
call fcn.0054cf90
mov dword [esi + 0xc], eax
jmp 0x555ef5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x555ef5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x57b870
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

Function at 0x57b9a0
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x8bd5f8]
sub esp, 0x138
test eax, eax
je 0x57b9cc
push 0x118
push eax
lea eax, [esp + 8]
push eax
call fcn.00564b30
add esp, 0xc
mov byte [esp + 0x118], 0
jmp 0x57b9dc
lea ecx, [esp]
push ecx
push 0x118
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push ebp
push esi
push edi
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x57ba01
lea eax, [esp + 0xc]
dec eax
cmp byte [eax + ecx], 0x5c
jne 0x57ba01
dec ecx
test ecx, ecx
jg 0x57b9f6
mov esi, dword [esp + 0x148]
mov byte [esp + ecx + 0xc], 0
lea edx, [esp + 0xc]
push edx
push str._s_sqlite_
push esi
call fcn.00565f4f
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
lea eax, [edi + esi]
push eax
push 0xf
call fcn.0058b2b0
add esp, 0x14
mov ecx, 0xf
xor eax, eax
xor edx, edx
mov al, byte [edi + esi]
mov ebp, 0x3e
div ebp
inc edi
dec ecx
mov dl, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [edi + esi - 1], dl
jne 0x57ba3e
push esi
mov byte [edi + esi], 0
call fcn.0057b870
add esp, 4
test eax, eax
jne 0x57ba0d
pop edi
pop esi
pop ebp
add esp, 0x138
ret

Function at 0x57bae0
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
test esi, esi
push edi
jle 0x57bb2b
mov ebx, dword [esp + 0x14]
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [esp + 0x18]
mov ecx, dword [ebx]
lea eax, [esp + 0x1c]
push 0
push eax
push esi
push edi
push ecx
call ebp
test eax, eax
je 0x57bb2b
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jbe 0x57bb1c
sub esi, ecx
add edi, ecx
test esi, esi
jg 0x57bafa
test eax, eax
je 0x57bb2b
cmp esi, ecx
jg 0x57bb2b
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 0xd
pop ebx
ret

Function at 0x57bbd0
Capabilities:
Get file size

Disassembly:
mov ecx, dword [esp + 4]
lea eax, [esp + 4]
push esi
push eax
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov eax, dword [esp + 8]
push 1
push 0
push 0
push eax
call fcn.005641c0
mov ecx, eax
xor eax, eax
add ecx, esi
pop esi
adc edx, eax
mov eax, dword [esp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
xor eax, eax
ret

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

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x57bc1d
xor eax, eax
pop esi
ret
call fcn.0057bc60
test eax, eax
jne 0x57bc3c
push edi
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
cmp ecx, 0x104
jbe 0x57bc3c
pop esi
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x57bc4c
xor eax, eax
pop esi
ret
and al, 0x10
xor ecx, ecx
cmp al, 0x10
pop esi
sete cl
mov eax, ecx
ret
Function at 0x581350
Capabilities:
Enumerate pe sections

Disassembly:
push esi
mov esi, dword [esp + 8]
mov cl, byte [esi + 0x41]
mov eax, dword [esi + 0x18]
test cl, cl
jne 0x58136d
mov eax, dword [esp + 0xc]
pop esi
mov dword [eax], 1
xor eax, eax
ret
mov ecx, dword [esi + 0x1c]
xor edx, edx
inc ecx
mov word [esi + 0x3a], 0
mov dword [esi + 0x1c], ecx
mov dx, word [eax + 0x14]
cmp ecx, edx
jl 0x58142a
mov cl, byte [eax + 4]
test cl, cl
jne 0x5813c8
mov edx, dword [eax + 0x44]
xor ecx, ecx
mov cl, byte [eax + 8]
lea eax, [ecx + edx + 8]
push eax
call fcn.0057fdf0
push eax
push esi
call fcn.00580f90
add esp, 0xc
test eax, eax
jne 0x581448
push esi
call fcn.00580ff0
mov ecx, dword [esp + 0x10]
add esp, 4
mov dword [ecx], 0
pop esi
ret
push eax
call fcn.00581450
add esp, 4
test eax, eax
jne 0x5813fb
push esi
call fcn.00581490
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
xor edx, edx
add esp, 4
mov dx, word [eax + 0x14]
cmp ecx, edx
jl 0x58140d
push eax
call fcn.00581450
add esp, 4
test eax, eax
je 0x5813d5
mov eax, dword [esp + 0xc]
mov dword [eax], 1
mov byte [esi + 0x41], 0
xor eax, eax
pop esi
ret
mov ecx, dword [esp + 0xc]
mov dword [ecx], 0
mov dl, byte [eax + 6]
test dl, dl
je 0x58143b
push ecx
push esi
call fcn.00581350
add esp, 8
pop esi
ret
mov ecx, dword [esp + 0xc]
mov dword [ecx], 0
mov cl, byte [eax + 4]
test cl, cl
je 0x58143f
xor eax, eax
pop esi
ret
push esi
call fcn.00580ff0
add esp, 4
pop esi
ret
Function at 0x588570
Capabilities:
Reference sql statements

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
cmp edi, 2
jl 0x5885f3
mov ebx, dword [esp + 0x10]
xor eax, eax
xor ecx, ecx
xor edx, edx
mov al, byte [ebx + edi - 1]
mov dl, byte [ebx]
mov cl, byte [eax + 0x82ed84]
mov eax, ecx
xor ecx, ecx
mov cl, byte [edx + 0x82ed84]
lea eax, [eax + eax*2]
shl ecx, 2
xor eax, ecx
mov ecx, 0x7f
xor eax, edi
cdq
idiv ecx
xor eax, eax
mov al, byte [edx + str._QhZ]
mov esi, eax
dec esi
js 0x5885f3
xor ecx, ecx
mov cl, byte [esi + 0x82f4e4]
cmp ecx, edi
jne 0x5885e6
xor edx, edx
push edi
mov dx, word [esi*2 + 0x82f558]
push ebx
add edx, 0x82f1e0
push edx
call fcn.00573ed0
add esp, 0xc
test eax, eax
je 0x5885fc
xor eax, eax
mov al, byte [esi + 0x82f470]
mov esi, eax
dec esi
jns 0x5885bb
pop edi
pop esi
mov eax, 0x1b
pop ebx
ret
xor eax, eax
pop edi
mov al, byte [esi + 0x82f63c]
pop esi
pop ebx
ret
Function at 0x5a509c
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x5a50d4
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.005a3114
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.005a30ec
jmp 0x5a50e0
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x5a6897
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x5a68d9
call fcn.005acbc4
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x5a68d9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x5a68d0
xor eax, eax
jmp 0x5a68e1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005a68e7
pop edi
pop esi
pop ebx
ret 4

Function at 0x5ad0f4
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x5ad122
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5ad140
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.005ad05a
jmp 0x5ad140
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5ad140
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.005ad05a
test edi, edi
mov eax, edi
jne 0x5ad12a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10002050
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push eax
push 0x40
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 8]
push edx
lea ecx, [ebp + 8]
call fcn.10001fa0
mov ecx, eax
call fcn.10002c90
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10002087
mov dword [ebp - 4], 1
jmp 0x1000208e
mov dword [ebp - 4], 0
movzx eax, byte [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x1001126a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100110e9

Function at 0x10017940
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001796d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001796d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x9efc50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
test edi, edi
je 0x9efc9c
mov cl, byte [ebx + esi]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
test dl, 2
movzx ecx, cl
cmove ecx, eax
mov byte [ebx + esi], cl
inc esi
cmp esi, edi
jb 0x9efc62
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x9efd00
Capabilities:
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf0000040
push 1
push 0
push 0
lea edi, [esi + 4]
mov dword [esi], 0
push esi
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x9efd52
push edi
push 0
push 0
push 0x8002
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x9efd58
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi], 0
pop edi
xor eax, eax
pop esi
pop ebp
ret
pop edi
mov eax, 1
pop esi
pop ebp
ret

Function at 0xa08245
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00a07f05

Function at 0xa0d03f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00a0cebe

Function at 0xa125f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0xa1261d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0xa1261d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401110
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401129
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401164
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401160
lea ebx, [ebx]
cmp esi, eax
jae 0x401164
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401150
cmp esi, eax
jb 0x40116a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x407710
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x642170
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x7808
call fcn.00621970
mov eax, dword [0x758898]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x7818], esi
mov dword [ebp - 4], 0
push 0x2800
push 0
lea eax, [ebp - 0x2814]
push eax
call fcn.00620920
add esp, 0xc
push 0x27ff
cmp dword [esi + 0x2b7c], 0
je 0x4077ae
lea ecx, [ebp - 0x7814]
push ecx
mov edx, dword [esi + 0x2b78]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x4077c2
push 0x2800
lea eax, [ebp - 0x2814]
push eax
lea ecx, [ebp - 0x7814]
push ecx
call fcn.004072a0
add esp, 0xc
jmp 0x4077c2
lea edx, [ebp - 0x2814]
push edx
mov eax, dword [esi + 0x2b78]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0x2800
lea ecx, [ebp - 0x2814]
push ecx
mov ecx, esi
call fcn.00407420
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0062023e
mov esp, ebp
pop ebp
ret

Function at 0x408b70
Capabilities:
Get graphical window text

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push ebx
xor ebp, ebp
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
test esi, esi
jle 0x408bd7
add esi, 3
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
push edi
neg ecx
or ecx, eax
push ecx
call fcn.005f4522
mov edi, eax
add esp, 4
test edi, edi
je 0x408bd0
push esi
push edi
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jle 0x408bc7
mov ecx, dword [esp + 0x18]
push edi
call fcn.00401800
mov ebp, 1
push edi
call fcn.005f4517
add esp, 4
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
Function at 0x408c90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x64dcc8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x758898]
xor eax, esp
mov dword [esp + 0xc], eax
push ebx
push esi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x30]
xor eax, eax
mov ebx, ecx
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 0
mov word [esp + 0x10], ax
mov dword [esp + 0x24], eax
push esi
call fcn.005b7fe0
movzx ecx, al
add esp, 4
neg ecx
sbb ecx, ecx
and ecx, 0xfde9
push ecx
push esi
lea ecx, [esp + 0x14]
call fcn.00401990
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x408d0e
lea eax, [esp + 0x10]
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [ebx + 0x20]
push edx
push eax
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.00401210
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.0062023e
add esp, 0x1c
ret 8

Function at 0x40c190
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x642c20
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x7804
call fcn.00621970
mov eax, dword [0x758898]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 4], 0
push 0x2800
push 0
lea eax, [ebp - 0x2814]
push eax
call fcn.00620920
add esp, 0xc
push 0x27ff
cmp dword [esi + 0x588], 0
je 0x40c228
lea ecx, [ebp - 0x7814]
push ecx
mov edx, dword [esi + 0x584]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x40c23c
push 0x2800
lea eax, [ebp - 0x2814]
push eax
lea ecx, [ebp - 0x7814]
push ecx
call fcn.004072a0
add esp, 0xc
jmp 0x40c23c
lea edx, [ebp - 0x2814]
push edx
mov eax, dword [esi + 0x584]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea ecx, [ebp - 0x2814]
push ecx
push 0x678ea8
lea edx, [esi + 0x50c]
push edx
call fcn.00402f80
add esp, 0xc
mov ecx, esi
call fcn.0040bc60
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0062023e
mov esp, ebp
pop ebp
ret
Function at 0x40d240
Capabilities:
Get file system object information

Disassembly:
push ebp
lea ebp, [esp - 0x2b8]
sub esp, 0x2b8
push 0xffffffffffffffff
push 0x642d78
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x758898]
xor eax, ebp
mov dword [ebp + 0x2b4], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor edi, edi
mov dword [ebp - 4], edi
lea ecx, [esi + 0x74]
call fcn.0040cf20
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
mov eax, dword [esi + 0xc8]
cmp edi, dword [eax + 0x1c]
jge 0x40d3d5
lea ecx, [ebp - 0x14]
call fcn.00402510
mov byte [ebp - 4], 1
push edi
mov ecx, dword [esi + 0xc8]
add ecx, 0x14
call fcn.0040d100
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [esi + 0xc8]
mov eax, dword [edx + 4]
push eax
push 0x67acc0
lea ecx, [ebp - 0x14]
push ecx
call fcn.00402f80
add esp, 0x10
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [esi + 0x74]
call fcn.0040cf00
mov ebx, eax
inc dword [ebp - 0x18]
push 0x2b4
push 0
lea ecx, [ebp]
push ecx
call fcn.00620920
add esp, 0xc
push edi
mov ecx, dword [esi + 0xc8]
add ecx, 0x14
call fcn.0040d100
mov eax, dword [eax]
push 0x4411
push 0x160
lea edx, [ebp]
push edx
push 0x80
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov dword [ebp - 0x50], 2
mov dword [ebp - 0x48], 0
mov eax, dword [ebp + 4]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x4c], ebx
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [esi + 0x74]
call fcn.0040cec0
push edi
mov ecx, dword [esi + 0xc8]
add ecx, 0x14
call fcn.0040d100
cmp dword [eax + 8], 0
mov eax, 0x75f32c
jne 0x40d36f
mov eax, 0x75f330
mov eax, dword [eax]
push eax
push ebx
push 1
mov edx, dword [esi + 0x94]
push edx
call fcn.0040cf60
add esp, 0x10
mov dword [ebp - 0x7c], 2
push edi
mov ecx, dword [esi + 0xc8]
add ecx, 0x14
call fcn.0040d100
mov eax, dword [eax]
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x84]
push eax
push ebx
push 0x1074
mov ecx, dword [esi + 0x94]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push edi
push ebx
lea ecx, [esi + 0x74]
call fcn.0040cee0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00402580
inc edi
jmp 0x40d28e
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2b4]
xor ecx, ebp
call fcn.0062023e
add ebp, 0x2b8
mov esp, ebp
pop ebp
ret
Function at 0x40d530
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x642df8
mov eax, dword fs:[0]
push eax
sub esp, 0x198
mov eax, dword [0x758898]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
call fcn.005f617e
xor ebx, ebx
mov dword [ebp - 4], ebx
push esi
call fcn.0045bb00
add esp, 4
cmp dword [0x75dd30], ebx
je 0x40d58e
push 0x129
push esi
mov ecx, 0x75dcf0
call fcn.004e6390
push 0x160
push ebx
lea eax, [ebp - 0x198]
push eax
call fcn.00620920
add esp, 0xc
push 0x4011
push 0x160
lea ecx, [ebp - 0x198]
push ecx
push 0x80
push 0x67ad18
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
lea edi, [esi + 0x74]
push eax
push 1
push 0x1003
mov ecx, edi
call fcn.004015c0
push 0x21
mov ecx, edi
call fcn.0040cf40
mov byte [ebp - 0x1a4], bl
mov eax, 0x60
mov dword [ebp - 0x1a0], eax
mov dword [ebp - 0x19c], eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
xor edx, edx
mov word [ebp - 0x1c], dx
mov byte [ebp - 4], 1
mov eax, dword [0x75dd28]
push eax
mov ecx, dword [0x75f320]
push ecx
lea ecx, [ebp - 0x20]
call fcn.00401990
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x40d625
lea eax, [ebp - 0x1c]
push eax
push 0xbe
lea ecx, [ebp - 0x1a4]
call fcn.0040d010
push eax
push ebx
mov edx, dword [esi + 0x94]
push edx
call fcn.0040cdc0
add esp, 0x10
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x30], ebx
xor eax, eax
mov word [ebp - 0x34], ax
mov byte [ebp - 4], 2
mov ecx, dword [0x75dd28]
push ecx
mov edx, dword [0x75f324]
push edx
lea ecx, [ebp - 0x38]
call fcn.00401990
mov eax, dword [ebp - 0x38]
cmp eax, ebx
jne 0x40d677
lea eax, [ebp - 0x34]
push eax
push 0x6e
lea ecx, [ebp - 0x1a4]
call fcn.0040d010
push eax
push 1
mov eax, dword [esi + 0x94]
push eax
call fcn.0040cdc0
add esp, 0x10
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
xor ecx, ecx
mov word [ebp - 0x28], cx
mov byte [ebp - 4], 3
mov edx, dword [0x75dd28]
push edx
mov eax, dword [0x75f328]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401990
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jne 0x40d6c6
lea eax, [ebp - 0x28]
push eax
push 0x12c
lea ecx, [ebp - 0x1a4]
call fcn.0040d010
push eax
push 2
mov ecx, dword [esi + 0x94]
push ecx
call fcn.0040cdc0
add esp, 0x10
mov ecx, esi
call fcn.0040d240
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.00401210
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.00401210
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x20]
call fcn.00401210
mov dword [ebp - 4], 0xffffffff
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0062023e
mov esp, ebp
pop ebp
ret