joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4119d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x446440]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x4119f9
xor eax, eax
jmp 0x411b67
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x44a660]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x411a2c
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.00412f36
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x411afe
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x411b39
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x411a87
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x411a78
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x411a5b
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x411ac7
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x411ad0
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x411a4c
jmp 0x411ad2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x411b62
cmp dword [ebp - 8], edi
je 0x411b39
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x411b2b
call fcn.0040a111
mov dword [eax], 9
call fcn.0040a11a
mov dword [eax], esi
jmp 0x411b34
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x411b20
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x411ad2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x411ad2
push dword [ebp - 8]
call fcn.0040a123
pop ecx
or eax, 0xffffffff
jmp 0x411b65
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x411b4e
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x411b4e
xor eax, eax
jmp 0x411b65
call fcn.0040a111
mov dword [eax], 0x1c
call fcn.0040a11a
mov dword [eax], edi
jmp 0x411b34
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.00408568
leave
ret
Function at 0x411f15
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4494b8], ebx
push esi
push edi
jne 0x411f95
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x411fd0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x43c85c
push edi
call esi
test eax, eax
mov dword [0x4494b8], eax
je 0x411fd0
push 0x43c84c
push edi
call esi
push 0x43c838
push edi
mov dword [0x4494bc], eax
call esi
cmp dword [0x449090], 2
mov dword [0x4494c0], eax
jne 0x411f95
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4494c8], eax
je 0x411f95
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4494c4], eax
mov eax, dword [0x4494c4]
test eax, eax
je 0x411fda
call eax
test eax, eax
je 0x411fc1
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4494c8]
test eax, eax
je 0x411fc1
test byte [ebp - 8], 1
jne 0x411fda
cmp dword [0x44909c], 4
jb 0x411fd4
or byte [ebp + 0x12], 0x20
jmp 0x411ff9
xor eax, eax
jmp 0x412009
or byte [ebp + 0x12], 4
jmp 0x411ff9
mov eax, dword [0x4494bc]
test eax, eax
je 0x411ff9
call eax
mov ebx, eax
test ebx, ebx
je 0x411ff9
mov eax, dword [0x4494c0]
test eax, eax
je 0x411ff9
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4494b8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x412b0b
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x43c868
call fcn.0040a254
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x4494cc], edi
jne 0x412b4f
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x412b3a
mov dword [0x4494cc], ebx
jmp 0x412b4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x412b4f
mov dword [0x4494cc], 2
mov eax, dword [0x4494cc]
cmp eax, ebx
jne 0x412b6f
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x412c32
cmp eax, 2
je 0x412b78
cmp eax, edi
jne 0x412ba0
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
cmp dword [ebp + 0x18], edi
jne 0x412b8b
mov eax, dword [0x44927c]
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 - 0x24], eax
cmp eax, edi
jne 0x412ba7
xor eax, eax
jmp 0x412c32
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.004085e0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x412bda
cmp esi, edi
jne 0x412bf0
push dword [ebp - 0x24]
call fcn.00407dd5
pop ecx
mov esi, eax
cmp esi, edi
je 0x412ba0
mov dword [ebp - 0x20], ebx
push dword [ebp - 0x24]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x412c23
cmp dword [ebp + 0x14], edi
jne 0x412c0d
push edi
push edi
jmp 0x412c13
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 - 0x20], edi
je 0x412c2f
push esi
call fcn.00407cbd
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.0040a28f
ret
Function at 0x412c3b
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x43c878
call fcn.0040a254
xor esi, esi
cmp dword [0x4494d0], esi
jne 0x412c7f
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x412c6a
mov dword [0x4494d0], edi
jmp 0x412c7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x412c7f
mov dword [0x4494d0], 2
mov eax, dword [0x4494d0]
cmp eax, 2
je 0x412d60
cmp eax, esi
je 0x412d60
cmp eax, 1
jne 0x412cc4
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x412cad
mov eax, dword [0x44927c]
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 0x412ccb
xor eax, eax
jmp 0x412d72
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.004085e0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x412d01
cmp edi, esi
jne 0x412d1c
lea eax, [ebx + ebx]
push eax
call fcn.00407dd5
pop ecx
mov edi, eax
cmp edi, esi
je 0x412cc4
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 0x412d4f
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x412d39
push esi
push esi
jmp 0x412d3f
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 0x412d5b
push edi
call fcn.00407cbd
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x412d72
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.0040a28f
ret
Function at 0x413364
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 0x41352a
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x44a660]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x41352a
test cl, 0x48
je 0x4133ca
mov al, byte [eax + 5]
cmp al, 0xa
je 0x4133ca
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 0x41341c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x413404
call fcn.0040a111
mov dword [eax], 9
call fcn.0040a11a
mov dword [eax], esi
jmp 0x413414
cmp eax, 0x6d
je 0x41352a
push eax
call fcn.0040a123
pop ecx
or eax, 0xffffffff
jmp 0x41352c
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 0x413525
test edx, edx
je 0x41343f
cmp byte [ebx], 0xa
jne 0x41343f
or al, 4
jmp 0x413441
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 0x41351f
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x41350f
cmp al, 0xd
je 0x413475
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x413501
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x41348f
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x41348a
add dword [ebp + 0x10], 2
jmp 0x4134e3
mov dword [ebp + 0x10], eax
jmp 0x4134fd
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 0x4134b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4134fd
cmp dword [ebp - 0xc], 0
je 0x4134fd
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4134d8
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4134e3
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x413500
cmp ebx, dword [ebp + 0xc]
jne 0x4134e8
cmp byte [ebp - 1], 0xa
jne 0x4134e8
mov byte [ebx], 0xa
jmp 0x413500
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004118b1
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x413501
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x413459
jmp 0x41351f
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x41351f
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x41352c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4148ba
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 0x414925
push 0x3d
push dword [ebp + 8]
call fcn.00407de7
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x414925
cmp dword [ebp + 8], esi
je 0x414925
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x4490b0]
cmp eax, dword [0x4490b4]
jne 0x41490b
mov edi, eax
call fcn.00414859
mov dword [0x4490b0], eax
cmp eax, ebx
jne 0x414964
cmp dword [ebp + 0xc], ebx
je 0x41492d
cmp dword [0x4490b8], ebx
je 0x41492d
call fcn.00413fde
test eax, eax
je 0x414964
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x414a68
push 4
call fcn.00407dd5
cmp eax, ebx
pop ecx
mov dword [0x4490b0], eax
je 0x414925
mov dword [eax], ebx
cmp dword [0x4490b8], ebx
jne 0x414964
push 4
call fcn.00407dd5
cmp eax, ebx
pop ecx
mov dword [0x4490b8], eax
je 0x414925
mov dword [eax], ebx
mov ebx, dword [0x4490b0]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.0041480c
mov edi, eax
test edi, edi
pop ecx
jl 0x4149bd
cmp dword [ebx], 0
je 0x4149bd
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.00407cbd
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x4149a5
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x4149f3
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x41499c
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.00408df1
test eax, eax
pop ecx
pop ecx
je 0x4149f3
jmp 0x4149ee
cmp dword [ebp - 4], 0
jne 0x414a61
test edi, edi
jge 0x4149cd
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.00408df1
test eax, eax
pop ecx
pop ecx
je 0x414925
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x4490b0], eax
cmp dword [ebp + 0xc], 0
je 0x414a4a
push dword [ebp + 8]
call fcn.00408a00
inc eax
inc eax
push eax
call fcn.00407dd5
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x414a4a
push dword [ebp + 8]
push esi
call fcn.0040b420
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 0x414a43
or dword [ebp - 8], 0xffffffff
push esi
call fcn.00407cbd
pop ecx
cmp dword [ebp - 4], 0
je 0x414a59
push dword [ebp + 8]
call fcn.00407cbd
pop ecx
mov eax, dword [ebp - 8]
jmp 0x414928
push esi
call fcn.00407cbd
pop ecx
xor eax, eax
jmp 0x414928
Function at 0x418fe7
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 0x41902a
call fcn.00427354
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41902a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x419045
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0041814e
test ebx, ebx
mov esi, eax
je 0x419043
test edi, edi
je 0x419043
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x41a15f
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 0x41a196
call fcn.00427354
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 0x41a1a7
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x41a1e0
cmp word [esi + 2], 0xffff
mov ecx, dword [esi]
jne 0x41a1c5
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x41a1cd
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x41a1de
test ax, ax
jne 0x41a1de
test si, si
je 0x41a1e0
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x41a1ef
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x41a44f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4344ed
call fcn.00408518
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.00427354
cmp dword [esi + 0x54], 0
mov edi, dword [eax + 0xc]
je 0x41a48f
call fcn.00427354
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 0x41a4a0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x41a4ac
or eax, 0xffffffff
jmp 0x41a5af
mov ecx, esi
call fcn.00419f89
mov dword [ebp - 0x14], eax
call fcn.00417304
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
je 0x41a4ef
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x41a4ef
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41a4ef
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.0041867a
push dword [ebp - 0x14]
call fcn.0041725c
push edi
push eax
push ebx
mov ecx, esi
call fcn.0041a234
xor ebx, ebx
cmp eax, ebx
je 0x41a563
test byte [esi + 0x38], 0x10
je 0x41a531
push 4
pop edi
mov ecx, esi
call fcn.004197a4
test ah, 1
je 0x41a529
push 5
pop edi
push edi
mov ecx, esi
call fcn.00416d00
cmp dword [esi + 0x1c], ebx
je 0x41a563
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.004198a1
jmp 0x41a563
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
je 0x41a577
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], ebx
je 0x41a590
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x41a590
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.00419fc3
cmp dword [esi + 0x54], ebx
je 0x41a5ac
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 0x41c5b0
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 SysReAllocStringLen
mov dword [ebp - 8], ebx
call esi
test eax, eax
jne 0x41c654
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 0x41c64e
lea eax, [ebp + 8]
push eax
push str.InProcServer32
push dword [ebp - 4]
mov dword [ebp + 8], ebx
call esi
test eax, eax
jne 0x41c649
mov ecx, dword [ebp + 0xc]
mov esi, 0x104
push esi
call fcn.00401890
lea ecx, [ebp - 0xc]
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x439f48
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.00404df0
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 0x41c69e
Capabilities:
Get disk information

Disassembly:
mov eax, 0x434dfa
call fcn.00408518
sub esp, 0x14c
mov eax, dword [0x446440]
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 0x41c6e8
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
xor eax, eax
jmp 0x41c77d
push ebx
call fcn.00419c22
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.0041c65c
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsUNCA]
test eax, eax
jne 0x41c76f
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 0x41c772
test byte [ebp + 8], 2
jne 0x41c73d
push edi
call dword [sym.imp.USER32.dll_CharUpperA]
test byte [ebp + 8], 4
jne 0x41c76f
lea eax, [ebp - 0x158]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x41c76f
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.004019d0
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.00408568
leave
ret 8
Function at 0x41d1a5
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.00408580
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 [0x439e14]
je 0x41d2ac
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 0x41d215
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 0x41d21c
cmp ebx, ebx
jne 0x41d21c
xor eax, eax
jmp 0x41d2af
mov edi, dword [edi + 0xc]
cmp dword [edi - 0xc], ebx
jne 0x41d229
mov byte [esi + 0x20], bl
jmp 0x41d23d
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.00406806
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.00406806
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.00406806
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 0x41d298
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 0x41d2ac
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

Function at 0x41faab
Capabilities:
Get file attributes

Disassembly:
push esi
mov esi, ecx
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
mov ecx, esi
push 1
je 0x41facb
mov eax, dword [esi]
push 0
call dword [eax + 0x98]
jmp 0x41fad7
mov eax, dword [esi + 0x20]
mov edx, dword [esi]
push eax
call dword [edx + 0x98]
test eax, eax
jne 0x41fadd
pop esi
ret
xor eax, eax
inc eax
pop esi
ret