joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43ea28
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 0x43ebfe
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x6e3a20]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x43ebfe
test cl, 0x48
je 0x43ea93
cmp byte [eax + 5], 0xa
je 0x43ea93
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
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 0x43eae5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x43eacd
call fcn.00436ae3
mov dword [eax], 9
call fcn.00436aec
mov dword [eax], esi
jmp 0x43eadd
cmp eax, 0x6d
je 0x43ebfe
push eax
call fcn.00436af5
pop ecx
or eax, 0xffffffff
jmp 0x43ec00
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x43ebf9
test eax, eax
je 0x43eb0c
cmp byte [ebx], 0xa
jne 0x43eb0c
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x43eb15
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
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 0x43ebf3
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x43ebe3
cmp al, 0xd
je 0x43eb47
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x43ebd5
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x43eb61
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x43eb5c
add dword [ebp + 0x10], 2
jmp 0x43ebb5
mov dword [ebp + 0x10], eax
jmp 0x43ebd1
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 0x43eb89
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x43ebd1
cmp dword [ebp - 0xc], 0
je 0x43ebd1
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x43ebaa
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x43ebb5
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x43ebd4
cmp ebx, dword [ebp + 0xc]
jne 0x43ebba
cmp byte [ebp - 1], 0xa
jne 0x43ebba
mov byte [ebx], 0xa
jmp 0x43ebd4
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00442823
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x43ebd5
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x43eb2b
jmp 0x43ebf3
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x43ebf3
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x43ec00
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x442012
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x6e3564], ebx
push esi
push edi
jne 0x442092
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4420cd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x6e3564], eax
je 0x4420cd
push 0x466a04
push edi
call esi
push 0x4669f0
push edi
mov dword [0x6e3568], eax
call esi
cmp dword [0x6e3024], 2
mov dword [0x6e356c], eax
jne 0x442092
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x6e3574], eax
je 0x442092
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x6e3570], eax
mov eax, dword [0x6e3570]
test eax, eax
je 0x4420d7
call eax
test eax, eax
je 0x4420be
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x6e3574]
test eax, eax
je 0x4420be
test byte [ebp - 8], 1
jne 0x4420d7
cmp dword [0x6e3030], 4
jb 0x4420d1
or byte [ebp + 0x12], 0x20
jmp 0x4420f6
xor eax, eax
jmp 0x442106
or byte [ebp + 0x12], 4
jmp 0x4420f6
mov eax, dword [0x6e3568]
test eax, eax
je 0x4420f6
call eax
mov ebx, eax
test ebx, ebx
je 0x4420f6
mov eax, dword [0x6e356c]
test eax, eax
je 0x4420f6
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x6e3564]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x446586
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00437670
mov eax, dword [0x472340]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.0043d315
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x4466bb
push 2
push esi
push dword [ebp + 8]
call fcn.0043d315
add esp, 0xc
cmp eax, ebx
je 0x4466bb
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x44665b
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.004384c0
push 0x8000
push dword [ebp + 8]
call fcn.00446f61
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x446611
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.0043ccf1
add esp, 0xc
cmp eax, 0xffffffff
je 0x446631
sub edi, eax
test edi, edi
jg 0x446609
jmp 0x446649
call fcn.00436aec
cmp dword [eax], 5
jne 0x446646
call fcn.00436ae3
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.00446f61
pop ecx
pop ecx
jmp 0x4466a3
jge 0x4466a3
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0043d315
push dword [ebp + 8]
call fcn.0044009c
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x4466a3
call fcn.00436ae3
mov dword [eax], 0xd
call fcn.00436aec
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.0043d315
add esp, 0xc
mov eax, esi
pop edi
jmp 0x4466bd
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004351f1
leave
ret
Function at 0x446c81
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x467a60
call fcn.0043916c
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x6e3618], edi
jne 0x446cc5
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x446cb0
mov dword [0x6e3618], ebx
jmp 0x446cc5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x446cc5
mov dword [0x6e3618], 2
mov eax, dword [0x6e3618]
cmp eax, ebx
jne 0x446ce5
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x446da8
cmp eax, 2
je 0x446cee
cmp eax, edi
jne 0x446d16
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x446d01
mov eax, dword [0x6e35c8]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x446d1d
xor eax, eax
jmp 0x446da8
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.00437670
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x446d50
cmp esi, edi
jne 0x446d66
push dword [ebp - 0x20]
call fcn.00437381
pop ecx
mov esi, eax
cmp esi, edi
je 0x446d16
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x446d99
cmp dword [ebp + 0x14], edi
jne 0x446d83
push edi
push edi
jmp 0x446d89
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x446da5
push esi
call fcn.00435c9f
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.004391a7
ret
Function at 0x446db1
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x467a70
call fcn.0043916c
xor esi, esi
cmp dword [0x6e361c], esi
jne 0x446df5
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x446de0
mov dword [0x6e361c], edi
jmp 0x446df5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x446df5
mov dword [0x6e361c], 2
mov eax, dword [0x6e361c]
cmp eax, 2
je 0x446ed6
cmp eax, esi
je 0x446ed6
cmp eax, 1
jne 0x446e3a
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x446e23
mov eax, dword [0x6e35c8]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x446e41
xor eax, eax
jmp 0x446ee8
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.00437670
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x446e77
cmp edi, esi
jne 0x446e92
lea eax, [ebx + ebx]
push eax
call fcn.00437381
pop ecx
mov edi, eax
cmp edi, esi
je 0x446e3a
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x446ec5
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x446eaf
push esi
push esi
jmp 0x446eb5
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x446ed1
push edi
call fcn.00435c9f
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x446ee8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.004391a7
ret
Function at 0x447421
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x44743a
or eax, 0xffffffff
jmp 0x44749b
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x447497
push 0x3d
push esi
call fcn.00447622
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x447497
cmp esi, eax
je 0x447497
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x6e3044]
sete cl
cmp eax, dword [0x6e3048]
mov dword [ebp - 4], ecx
jne 0x44747d
mov edi, eax
call fcn.004473c0
mov dword [0x6e3044], eax
cmp eax, ebx
jne 0x4474d6
cmp dword [ebp + 0xc], ebx
je 0x44749f
cmp dword [0x6e304c], ebx
je 0x44749f
call fcn.00446719
test eax, eax
je 0x4474d6
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
je 0x4474a8
xor eax, eax
jmp 0x44749a
push 4
call fcn.00437381
cmp eax, ebx
pop ecx
mov dword [0x6e3044], eax
je 0x447497
mov dword [eax], ebx
cmp dword [0x6e304c], ebx
jne 0x4474d6
push 4
call fcn.00437381
cmp eax, ebx
pop ecx
mov dword [0x6e304c], eax
je 0x447497
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
mov ebx, dword [0x6e3044]
sub edi, esi
push esi
call fcn.00447373
mov edi, eax
test edi, edi
pop ecx
jl 0x44753d
cmp dword [ebx], 0
je 0x44753d
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.00435c9f
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x44751d
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x44757e
mov ecx, dword [esi + 4]
inc edi
mov dword [esi], ecx
lea esi, [ebx + edi*4]
cmp dword [esi], eax
jne 0x447514
mov eax, edi
shl eax, 2
push eax
push dword [0x6e3044]
call fcn.00438e09
test eax, eax
mov esi, dword [ebp - 8]
pop ecx
pop ecx
je 0x44757e
jmp 0x447579
cmp dword [ebp - 4], 0
jne 0x4475e5
test edi, edi
jge 0x44754d
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x6e3044]
call fcn.00438e09
test eax, eax
pop ecx
pop ecx
je 0x447497
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov ecx, dword [ebp + 8]
and dword [ecx], 0
mov dword [0x6e3044], eax
cmp dword [ebp + 0xc], 0
je 0x4475d0
push esi
call fcn.00438fc0
inc eax
inc eax
push eax
call fcn.00437381
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x4475d0
push esi
push edi
call fcn.0043cad0
mov eax, edi
sub eax, esi
add eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov byte [eax], 0
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x4475c9
or dword [ebp - 0x10], 0xffffffff
push edi
call fcn.00435c9f
pop ecx
cmp dword [ebp - 4], 0
je 0x4475dd
push esi
call fcn.00435c9f
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x44749a
push esi
call fcn.00435c9f
mov eax, dword [ebp + 8]
and dword [eax], 0
pop ecx
jmp 0x4474a4
Function at 0x44b920
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x44b959
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0042c0ee
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0042bfcf
pop esi
ret 4
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x44cb38
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 0x44cb7b
call fcn.00454199
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x44cb7b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x44cb96
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0044bcac
test ebx, ebx
mov esi, eax
je 0x44cb94
test edi, edi
je 0x44cb94
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x44d5a5
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x458711
call fcn.00438498
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x44d5bf
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x44d60b
call fcn.0044ef55
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_lstrcpynW]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401d90
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x44e92f
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 0x44e966
call fcn.00454199
mov ebx, dword [eax + 0xc]
push 5
push dword [edi + 0x54]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x44e977
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x44e9b0
cmp word [esi + 2], 0xffff
mov ecx, dword [esi]
jne 0x44e995
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x44e99d
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x44e9ae
test ax, ax
jne 0x44e9ae
test si, si
je 0x44e9b0
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x44e9bf
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x44ec1f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4588ed
call fcn.00438498
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.00454199
cmp dword [esi + 0x54], 0
mov edi, dword [eax + 0xc]
je 0x44ec5f
call fcn.00454199
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x54]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x44ec70
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x44ec7c
or eax, 0xffffffff
jmp 0x44ed7f
mov ecx, esi
call fcn.0044e753
mov dword [ebp - 0x14], eax
call fcn.0044aee0
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
je 0x44ecbf
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x44ecbf
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x44ecbf
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.0044c1cb
push dword [ebp - 0x14]
call fcn.0044ae38
push edi
push eax
push ebx
mov ecx, esi
call fcn.0044ea04
xor ebx, ebx
cmp eax, ebx
je 0x44ed33
test byte [esi + 0x38], 0x10
je 0x44ed01
push 4
pop edi
mov ecx, esi
call fcn.0044ce94
test ah, 1
je 0x44ecf9
push 5
pop edi
push edi
mov ecx, esi
call fcn.0044a8dc
cmp dword [esi + 0x1c], ebx
je 0x44ed33
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.0044d0fa
jmp 0x44ed33
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
je 0x44ed47
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], ebx
je 0x44ed60
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x44ed60
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.0044e78d
cmp dword [esi + 0x54], ebx
je 0x44ed7c
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 0x44f90a
Capabilities:
Get disk information

Disassembly:
mov eax, 0x458cdf
call fcn.00438498
sub esp, 0x264
mov eax, dword [0x472340]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor eax, ebp
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x268]
push eax
push edi
mov esi, 0x104
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x44f951
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
jmp 0x44f955
cmp eax, esi
jb 0x44f95c
xor eax, eax
jmp 0x44fa44
call fcn.0044ef55
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x264], eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x264]
push eax
push edi
call fcn.0044f8c8
push dword [ebp - 0x264]
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
jne 0x44fa31
push eax
push eax
lea ecx, [ebp - 0x26c]
push ecx
lea ecx, [ebp - 0x270]
push ecx
push eax
push eax
push eax
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x44f9bd
xor esi, esi
jmp 0x44fa34
test byte [ebp - 0x26c], 2
jne 0x44f9cd
push edi
call dword [sym.imp.USER32.dll_CharUpperW]
test byte [ebp - 0x26c], 4
jne 0x44fa31
lea eax, [ebp - 0x260]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x44fa31
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x268], 0
je 0x44f9b9
cmp dword [ebp - 0x268], edi
jbe 0x44f9b9
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x268]
sub ecx, edi
sar ecx, 1
add ecx, eax
cmp ecx, esi
jge 0x44f9b9
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x264]
add ecx, 0xfffffff0
call fcn.00401d90
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.004351f1
leave
ret 8
Function at 0x44ffd3
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 0x22c
xor ebx, ebx
push ebx
push esi
mov edi, ecx
call fcn.004384c0
add esp, 0xc
push 0x104
push dword [edi + 0xc]
lea eax, [esi + 0x22]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov eax, dword [edi + 4]
cmp eax, dword [0x4646f0]
je 0x450121
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 0x450043
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 0x45004a
cmp ebx, ebx
jne 0x45004a
xor eax, eax
jmp 0x450124
mov edi, dword [edi + 0xc]
cmp dword [edi - 0xc], ebx
jne 0x450057
mov byte [esi + 0x20], bl
jmp 0x45006b
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
sete cl
dec cl
and ecx, eax
mov byte [esi + 0x20], cl
lea eax, [ebp - 8]
push eax
call fcn.00434d9d
test eax, eax
je 0x450092
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.00434e84
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
jmp 0x450097
mov dword [esi], ebx
mov dword [esi + 4], ebx
lea eax, [ebp - 0x10]
push eax
call fcn.00434d9d
test eax, eax
je 0x4500bf
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.00434e84
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0x14], eax
jmp 0x4500c9
xor eax, eax
xor ecx, ecx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
lea eax, [ebp - 0x18]
push eax
call fcn.00434d9d
test eax, eax
je 0x4500f1
push 0xffffffffffffffff
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
call fcn.00434e84
mov ecx, dword [eax]
mov dword [esi + 8], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0xc], eax
jmp 0x4500fb
xor eax, eax
xor ecx, ecx
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x45010d
mov eax, dword [esi + 8]
mov dword [esi], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x450121
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