joyce8/EMBER2024-capa huggingface dataset:
Function at 0x441a38
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x441bfe
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x492c40]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x441bfe
test cl, 0x48
je 0x441a9e
mov al, byte [eax + 5]
cmp al, 0xa
je 0x441a9e
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x441af0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x441ad8
call fcn.004395e5
mov dword [eax], 9
call fcn.004395ee
mov dword [eax], esi
jmp 0x441ae8
cmp eax, 0x6d
je 0x441bfe
push eax
call fcn.004395f7
pop ecx
or eax, 0xffffffff
jmp 0x441c00
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x441bf9
test edx, edx
je 0x441b13
cmp byte [ebx], 0xa
jne 0x441b13
or al, 4
jmp 0x441b15
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x441bf3
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x441be3
cmp al, 0xd
je 0x441b49
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x441bd5
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x441b63
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x441b5e
add dword [ebp + 0x10], 2
jmp 0x441bb7
mov dword [ebp + 0x10], eax
jmp 0x441bd1
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x441b8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x441bd1
cmp dword [ebp - 0xc], 0
je 0x441bd1
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x441bac
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x441bb7
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x441bd4
cmp ebx, dword [ebp + 0xc]
jne 0x441bbc
cmp byte [ebp - 1], 0xa
jne 0x441bbc
mov byte [ebx], 0xa
jmp 0x441bd4
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0043f300
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x441bd5
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x441b2d
jmp 0x441bf3
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x441bf3
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x441c00
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4425da
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ebx
je 0x442645
push 0x3d
push dword [ebp + 8]
call fcn.004379d4
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x442645
cmp dword [ebp + 8], esi
je 0x442645
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x491778]
cmp eax, dword [0x49177c]
jne 0x44262b
mov edi, eax
call fcn.00442579
mov dword [0x491778], eax
cmp eax, ebx
jne 0x442684
cmp dword [ebp + 0xc], ebx
je 0x44264d
cmp dword [0x491780], ebx
je 0x44264d
call fcn.00441cfe
test eax, eax
je 0x442684
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x442788
push 4
call fcn.00437629
cmp eax, ebx
pop ecx
mov dword [0x491778], eax
je 0x442645
mov dword [eax], ebx
cmp dword [0x491780], ebx
jne 0x442684
push 4
call fcn.00437629
cmp eax, ebx
pop ecx
mov dword [0x491780], eax
je 0x442645
mov dword [eax], ebx
mov ebx, dword [0x491778]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.0044252c
mov edi, eax
test edi, edi
pop ecx
jl 0x4426dd
cmp dword [ebx], 0
je 0x4426dd
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.0043763b
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x4426c5
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x442713
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x4426bc
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.00438d3f
test eax, eax
pop ecx
pop ecx
je 0x442713
jmp 0x44270e
cmp dword [ebp - 4], 0
jne 0x442781
test edi, edi
jge 0x4426ed
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.00438d3f
test eax, eax
pop ecx
pop ecx
je 0x442645
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x491778], eax
cmp dword [ebp + 0xc], 0
je 0x44276a
push dword [ebp + 8]
call fcn.00438b60
inc eax
inc eax
push eax
call fcn.00437629
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x44276a
push dword [ebp + 8]
push esi
call fcn.0043dae0
mov eax, esi
sub eax, dword [ebp + 8]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
and byte [eax], 0
mov ecx, dword [ebp - 4]
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x442763
or dword [ebp - 8], 0xffffffff
push esi
call fcn.0043763b
pop ecx
cmp dword [ebp - 4], 0
je 0x442779
push dword [ebp + 8]
call fcn.0043763b
pop ecx
mov eax, dword [ebp - 8]
jmp 0x442648
push esi
call fcn.0043763b
pop ecx
xor eax, eax
jmp 0x442648
Function at 0x442d7a
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x46e089
call fcn.004387c0
sub esp, 0x9c
mov eax, dword [0x48e4f8]
xor eax, dword [ebp + 4]
push ebx
push esi
push edi
push dword [ebp + 0x1c]
mov esi, ecx
xor ebx, ebx
push ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esi
call fcn.00444b7c
lea ecx, [esi + 0x78]
mov dword [ebp - 4], ebx
mov dword [esi], vtable.CFileDialog.0
call fcn.00401520
cmp dword [ebp + 0x20], ebx
mov byte [ebp - 4], 1
jne 0x442e0b
mov edi, 0x94
push edi
lea eax, [ebp - 0xa8]
push ebx
push eax
call fcn.00438760
add esp, 0xc
lea eax, [ebp - 0xa8]
push eax
mov dword [ebp - 0xa8], edi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x98], 2
jne 0x442e04
cmp dword [ebp - 0xa4], 5
mov dword [ebp + 0x20], 0x58
jae 0x442e0b
mov dword [ebp + 0x20], 0x4c
push dword [ebp + 0x20]
call fcn.00437629
cmp eax, ebx
pop ecx
mov dword [esi + 0x70], eax
jne 0x442e20
call fcn.00442b18
push dword [ebp + 0x20]
push ebx
push dword [esi + 0x70]
call fcn.00438760
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x20]
mov dword [esi + 0x74], eax
add esp, 0xc
neg eax
sbb eax, eax
add eax, 0x7005
mov dword [esi + 0x50], eax
mov eax, dword [esi + 0x70]
mov dword [esi + 0x1c0], ebx
lea ecx, [esi + 0x7c]
mov byte [ecx], bl
lea edi, [esi + 0xbc]
mov byte [edi], bl
mov dword [eax], edx
mov eax, dword [esi + 0x70]
mov edx, dword [ebp + 0xc]
mov dword [eax + 0x1c], edi
mov eax, dword [esi + 0x70]
mov dword [eax + 0x20], 0x104
mov eax, dword [esi + 0x70]
mov dword [eax + 0x3c], edx
mov eax, dword [esi + 0x70]
mov edx, dword [ebp + 0x14]
mov dword [eax + 0x24], ecx
mov eax, dword [esi + 0x70]
push 0x40
pop ecx
mov dword [eax + 0x28], ecx
mov eax, dword [esi + 0x70]
or edx, 0x80020
or dword [eax + 0x34], edx
test byte [ebp + 0x14], cl
je 0x442e9f
mov eax, dword [esi + 0x70]
and byte [eax + 0x36], 0x7f
call fcn.004618f9
cmp dword [ebp + 0x10], ebx
mov eax, dword [eax + 0xc]
mov ecx, dword [esi + 0x70]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0x70]
mov dword [eax + 0x44], 0x4431b8
je 0x442ecb
push 0x104
push dword [ebp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp dword [ebp + 0x18], ebx
je 0x442f01
push dword [ebp + 0x18]
lea edi, [esi + 0x78]
mov ecx, edi
call fcn.00401610
push ebx
mov ecx, edi
call fcn.00401540
jmp 0x442eea
mov byte [eax], bl
inc eax
push 0x7c
push eax
call fcn.004379d4
cmp eax, ebx
pop ecx
pop ecx
jne 0x442ee7
mov eax, dword [esi + 0x70]
mov ecx, dword [esi + 0x78]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.00438749
leave
ret 0x1c
Function at 0x444f1e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x54], 0
mov eax, dword [edi + 0x58]
mov esi, dword [edi + 0x5c]
mov dword [ebp - 4], eax
je 0x444f55
call fcn.004618f9
mov ebx, dword [eax + 0xc]
push 5
push dword [edi + 0x54]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x444f66
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x444f9f
cmp word [esi + 2], 0xffff
mov ecx, dword [esi]
jne 0x444f84
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x444f8c
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x444f9d
test ax, ax
jne 0x444f9d
test si, si
je 0x444f9f
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x444fae
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x445200
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x46df00
call fcn.004387c0
sub esp, 0x18
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x58]
mov ebx, dword [esi + 0x5c]
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
call fcn.004618f9
cmp dword [esi + 0x54], 0
mov edi, dword [eax + 0xc]
je 0x44524e
call fcn.004618f9
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x54]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x44525f
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x44526b
or eax, 0xffffffff
jmp 0x44536e
mov ecx, esi
call fcn.00444d48
mov dword [ebp - 0x14], eax
call fcn.00446ee2
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
je 0x4452ae
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x4452ae
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4452ae
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
and dword [ebp - 4], 0
push esi
call fcn.004484ef
push dword [ebp - 0x14]
call fcn.00446e3a
push edi
push eax
push ebx
mov ecx, esi
call fcn.00444ff3
xor ebx, ebx
cmp eax, ebx
je 0x445322
test byte [esi + 0x38], 0x10
je 0x4452f0
push 4
pop edi
mov ecx, esi
call fcn.0044917f
test ah, 1
je 0x4452e8
push 5
pop edi
push edi
mov ecx, esi
call fcn.004468de
cmp dword [esi + 0x1c], ebx
je 0x445322
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.00449307
jmp 0x445322
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
je 0x445336
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], ebx
je 0x44534f
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x44534f
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.00444d82
cmp dword [esi + 0x54], ebx
je 0x44536b
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x40]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x4453a8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.004618f9
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4453df
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00444ff3
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x445437
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x54], ebx
jne 0x445457
cmp dword [edi + 0x50], 0
jne 0x445457
movzx eax, bx
mov dword [edi + 0x50], eax
call fcn.004618f9
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004453fe
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x447b0e
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x4c]
test ecx, ecx
jne 0x447b48
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.00431bf9
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00431bba
pop esi
ret 4
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x448e5c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x448e9f
call fcn.004618f9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x448e9f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x448eba
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00447fc3
test ebx, ebx
mov esi, eax
je 0x448eb8
test edi, edi
je 0x448eb8
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x449380
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x46e01d
call fcn.004387c0
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x4493a5
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x4493f1
call fcn.00449a21
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push dword [ebp + 0xc]
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401360
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x44a375
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea eax, [ebp - 8]
push eax
push str.CLSID
xor ebx, ebx
push SysReAllocString
mov dword [ebp - 8], ebx
call esi
test eax, eax
jne 0x44a419
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], ebx
push dword [ebp - 8]
call esi
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x44a413
lea eax, [ebp + 8]
push eax
push str.InProcServer32
push dword [ebp - 4]
mov dword [ebp + 8], ebx
call esi
test eax, eax
jne 0x44a40e
mov ecx, dword [ebp + 0xc]
mov esi, 0x104
push esi
call fcn.00401540
lea ecx, [ebp - 0xc]
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x4709dc
push dword [ebp + 8]
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
mov esi, eax
call fcn.00431bba
push dword [ebp + 8]
xor eax, eax
cmp esi, ebx
sete al
mov ebx, eax
call edi
push dword [ebp - 4]
call edi
push dword [ebp - 8]
call edi
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8

Function at 0x44a463
Capabilities:
Get disk information

Disassembly:
mov eax, 0x46e88b
call fcn.004387c0
sub esp, 0x14c
mov eax, dword [0x48e4f8]
xor eax, dword [ebp + 4]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push edi
mov esi, 0x104
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x44a4ad
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
xor eax, eax
jmp 0x44a542
push ebx
call fcn.00449a21
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
xor esi, esi
push edi
mov dword [ebp - 4], esi
call fcn.0044a421
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsUNCA]
test eax, eax
jne 0x44a534
push esi
push esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x44a537
test byte [ebp + 8], 2
jne 0x44a502
push edi
call dword [sym.imp.USER32.dll_CharUpperA]
test byte [ebp + 8], 4
jne 0x44a534
lea eax, [ebp - 0x158]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x44a534
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x12c]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor esi, esi
inc esi
lea ecx, [ebx - 0x10]
call fcn.00401360
mov eax, esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
pop edi
pop esi
call fcn.00438749
leave
ret 8
Function at 0x44a8a2
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x170
mov eax, dword [0x48e4f8]
xor eax, dword [ebp + 4]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
call dword [0x48d0fc]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
push 0x800
xor ebx, ebx
push 0x160
mov byte [eax], bl
lea eax, [ebp - 0x170]
push eax
push ebx
push edi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x44a9c1
test byte [ebp - 0x166], 1
je 0x44a9c1
lea eax, [ebp - 8]
push eax
push 0x47c5b4
push ebx
push 0x47c5c4
lea ecx, [ebp + 0x10]
call fcn.0044a860
test eax, eax
jl 0x44a9c1
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
lea edx, [ebp - 0xc]
push edx
push 0x480fc4
push eax
call dword [ecx]
test eax, eax
jl 0x44a9b4
cmp edi, ebx
jne 0x44a93a
xor eax, eax
jmp 0x44a95f
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and eax, 0xfffffffc
call fcn.004384c0
mov eax, esp
push dword [ebp - 0x10]
push esi
push edi
push eax
call fcn.00431c54
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
push ebx
push eax
push ecx
call dword [edx + 0x14]
test eax, eax
jl 0x44a9ab
mov eax, dword [ebp + 8]
cmp eax, ebx
jne 0x44a979
xor eax, eax
jmp 0x44a97c
mov eax, dword [eax + 0x1c]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
push 2
push eax
push ecx
call dword [edx + 0x4c]
test eax, eax
jl 0x44a9ab
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ebx
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor ebx, ebx
inc ebx
jmp 0x44a9b4
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, ebx
jmp 0x44a9c3
xor eax, eax
lea esp, [ebp - 0x17c]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.00438749
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x44c3d6
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x128
xor ebx, ebx
push ebx
push esi
mov edi, ecx
call fcn.00438760
add esp, 0xc
push 0x104
push dword [edi + 0xc]
lea eax, [esi + 0x22]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [edi + 4]
cmp eax, dword [0x47c5b0]
je 0x44c4dd
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x44c446
push ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebx
jne 0x44c44d
cmp ebx, ebx
jne 0x44c44d
xor eax, eax
jmp 0x44c4e0
mov edi, dword [edi + 0xc]
cmp dword [edi - 0xc], ebx
jne 0x44c45a
mov byte [esi + 0x20], bl
jmp 0x44c46e
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
sete cl
dec cl
and ecx, eax
mov byte [esi + 0x20], cl
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.004365b2
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.004365b2
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0x14], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
call fcn.004365b2
mov ecx, dword [eax]
mov dword [esi + 8], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 0xc], ecx
mov ecx, dword [esi]
or ecx, dword [esi + 4]
jne 0x44c4c9
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x44c4dd
mov eax, dword [esi + 8]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x14], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4