joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41df30
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [ebp + 8]
call fcn.0041e060
add esp, 8
test al, al
jne 0x41df46
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
pop ebp
ret

Function at 0x41e060
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop ebp
ret

Function at 0x41e810
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41e83b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x41e83b
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
pop esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x41eb10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x58ab78]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [edi]
mov dword [edi + 4], 0
mov word [eax], cx
xor eax, eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x210]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
mov ecx, edi
lea eax, [ebp - 0x210]
push eax
call fcn.00404a10
lea eax, [esi - 1]
mov ecx, 0x103
cmp ecx, eax
mov ecx, dword [ebp - 4]
pop edi
sbb eax, eax
xor ecx, ebp
inc eax
pop esi
call fcn.0049f3ce
mov esp, ebp
pop ebp
ret

Function at 0x41fd40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x41fd51
mov dword [esi], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x41fdac
mov ecx, 0x8000
cmp eax, ecx
jae 0x41fd63
mov ecx, eax
push 0
lea eax, [ebp + 0x14]
push eax
push ecx
push dword [ebp + 0xc]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test esi, esi
je 0x41fd85
mov ecx, dword [ebp + 0x14]
add dword [esi], ecx
test eax, eax
jne 0x41fdac
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41fd9d
mov eax, 0x80004005
pop esi
pop ebp
ret 0x10
jle 0x41fdae
movzx eax, ax
or eax, 0x80070000
pop esi
pop ebp
ret 0x10
xor eax, eax
pop esi
pop ebp
ret 0x10
Function at 0x41fdc0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5339e2
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x58ab78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [esi + 4], vtable.ICompressSetInStream.0
mov dword [esi + 8], vtable.ISequentialInStream.0
mov dword [esi + 0xc], vtable.ICompressSetOutStream.0
mov dword [esi + 0x10], vtable.ISequentialOutStream.0
mov dword [esi + 0x14], vtable.IOutStreamFlush.0
mov dword [esi + 0x18], vtable.ICryptoSetPassword.0
mov dword [esi + 0x1c], vtable.ICryptoProperties.0
mov dword [esi + 0x20], vtable.ICompressSetDecoderProperties2.0
mov dword [esi + 0x24], 0
mov dword [esi], vtable.CFilterCoder.0
mov dword [esi + 4], vtable.CFilterCoder.1.0
mov dword [esi + 8], vtable.CFilterCoder.2.0
mov dword [esi + 0xc], vtable.CFilterCoder.3.0
mov dword [esi + 0x10], vtable.CFilterCoder.4.0
mov dword [esi + 0x14], vtable.CFilterCoder.5.0
mov dword [esi + 0x18], vtable.CFilterCoder.6.0
mov dword [esi + 0x1c], vtable.CFilterCoder.7.0
mov dword [esi + 0x20], vtable.CFilterCoder.8.0
mov dword [esi + 0x2c], 0
mov dword [ebp - 4], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
push 0x20000
mov byte [ebp - 4], 5
call fcn.00408210
add esp, 4
mov dword [esi + 0x28], eax
test eax, eax
jne 0x41fec6
push 0x570b04
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 1
push eax
call fcn.004a06b8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4235b0
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x533e40
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x58ab78]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0x44], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ebx, ax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx esi, ax
mov eax, esi
xor eax, ebx
test al, al
je 0x423601
mov esi, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor eax, eax
push 9
mov word [ebp - 0x24], ax
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
mov word [ebp - 0x38], ax
mov dword [ebp - 0x36], eax
mov dword [ebp - 0x32], eax
mov dword [ebp - 0x2e], eax
mov dword [ebp - 0x2a], eax
lea eax, [ebp - 0x24]
push eax
push 0x59
push esi
call ebx
test eax, eax
je 0x4236c5
push 9
lea eax, [ebp - 0x38]
push eax
push 0x5a
push esi
call ebx
test eax, eax
je 0x4236c5
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00422310
push 0x5470a4
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push eax
call fcn.00422960
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
push ecx
push eax
push edi
call fcn.00422960
mov edx, dword [ebp - 0x40]
or ebx, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 0
add esp, 0x18
mov eax, ebx
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4236a2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x3c]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x4236e4
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x4236e4
call fcn.0047db23
mov ecx, eax
test ecx, ecx
jne 0x4236da
push 0x80004005
call fcn.00422c50
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049f3ce
mov esp, ebp
pop ebp
ret

Function at 0x424180
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x424195
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4241d4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4241d0
lea ebx, [ebx]
cmp esi, edx
jae 0x4241d4
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x4241c0
cmp esi, edx
jb 0x4241d9
xor eax, eax
pop esi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret
Function at 0x425650
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x534090
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x58ab78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x18], ebx
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], 0
cmp dword [edi + 0x14], 8
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x14], eax
jb 0x42569a
mov esi, dword [edi]
jmp 0x42569c
mov esi, edi
xor ecx, ecx
mov edx, 0x811c9dc5
add eax, eax
je 0x4256c1
movzx eax, byte [ecx + esi]
inc ecx
mov edi, dword [ebp - 0x14]
xor eax, edx
imul edx, eax, 0x1000193
lea eax, [edi + edi]
mov edi, dword [ebp + 0xc]
cmp ecx, eax
jb 0x4256a7
mov ecx, dword [ebx + 0x14]
and edx, ecx
cmp dword [ebx + 0x18], edx
ja 0x4256d4
shr ecx, 1
or eax, 0xffffffff
sub eax, ecx
add edx, eax
mov eax, dword [ebx + 8]
lea ecx, [edx*8]
mov esi, dword [ebx]
mov dword [ebp + 0xc], ecx
cmp dword [eax + ecx], esi
je 0x4256f0
mov esi, dword [eax + ecx + 4]
mov esi, dword [esi]
mov edi, edi
mov eax, dword [ebx + 8]
cmp esi, dword [ecx + eax]
je 0x42573e
mov esi, dword [esi + 4]
cmp dword [esi + 0x1c], 8
lea eax, [esi + 8]
mov ecx, dword [eax + 0x10]
jb 0x425709
mov eax, dword [eax]
push ecx
push eax
push dword [edi + 0x10]
mov ecx, edi
push 0
call fcn.004322f0
mov ecx, dword [ebp + 0xc]
test eax, eax
jne 0x4256f0
cmp dword [edi + 0x14], 8
lea ecx, [esi + 8]
mov eax, dword [edi + 0x10]
jb 0x42572c
mov edi, dword [edi]
push eax
push edi
push dword [ecx + 0x10]
push 0
call fcn.004322f0
test eax, eax
je 0x425788
mov esi, dword [esi]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [edi]
cmp esi, eax
je 0x42576f
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov ecx, dword [eax + 4]
mov edx, dword [esi + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
mov ecx, dword [ebx + 8]
mov edx, dword [ebp + 0xc]
add ecx, edx
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x4257d6
mov dword [ecx], edi
mov eax, dword [ebx + 8]
mov dword [eax + edx + 4], edi
jmp 0x4257f8
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [edx + 4]
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov ecx, ebx
dec dword [ebx + 4]
call fcn.00430890
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp eax, esi
jne 0x4257de
mov dword [ecx], edi
jmp 0x4257f8
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x4257f8
mov ecx, dword [ebx + 8]
mov eax, dword [ecx + edx + 4]
mov eax, dword [eax + 4]
mov dword [ecx + edx + 4], eax
mov ecx, ebx
call fcn.00430270
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov byte [eax + 4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x425a10
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5340d0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x58ab78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x18], ebx
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], 0
cmp dword [edi + 0x14], 8
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x14], eax
jb 0x425a5a
mov esi, dword [edi]
jmp 0x425a5c
mov esi, edi
xor ecx, ecx
mov edx, 0x811c9dc5
add eax, eax
je 0x425a81
movzx eax, byte [esi + ecx]
inc ecx
mov edi, dword [ebp - 0x14]
xor eax, edx
imul edx, eax, 0x1000193
lea eax, [edi + edi]
mov edi, dword [ebp + 0xc]
cmp ecx, eax
jb 0x425a67
mov esi, dword [ebx + 0x14]
mov ecx, esi
and ecx, edx
cmp dword [ebx + 0x18], ecx
ja 0x425a96
shr esi, 1
or eax, 0xffffffff
sub eax, esi
add ecx, eax
mov eax, dword [ebx + 8]
mov esi, dword [ebx]
shl ecx, 3
mov dword [ebp + 0xc], ecx
cmp dword [ecx + eax], esi
je 0x425ab0
mov esi, dword [ecx + eax + 4]
mov esi, dword [esi]
lea esp, [esp]
mov eax, dword [ebx + 8]
cmp esi, dword [ecx + eax]
je 0x425afe
mov esi, dword [esi + 4]
cmp dword [esi + 0x1c], 8
lea eax, [esi + 8]
mov ecx, dword [eax + 0x10]
jb 0x425ac9
mov eax, dword [eax]
push ecx
push eax
push dword [edi + 0x10]
mov ecx, edi
push 0
call fcn.004322f0
mov ecx, dword [ebp + 0xc]
test eax, eax
jne 0x425ab0
cmp dword [edi + 0x14], 8
lea ecx, [esi + 8]
mov eax, dword [edi + 0x10]
jb 0x425aec
mov edi, dword [edi]
push eax
push edi
push dword [ecx + 0x10]
push 0
call fcn.004322f0
test eax, eax
je 0x425b48
mov esi, dword [esi]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [edi]
cmp esi, eax
je 0x425b2f
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov ecx, dword [eax + 4]
mov edx, dword [esi + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
mov ecx, dword [ebx + 8]
mov edx, dword [ebp + 0xc]
add ecx, edx
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x425b83
mov dword [ecx], edi
mov eax, dword [ebx + 8]
mov dword [edx + eax + 4], edi
jmp 0x425ba5
push dword [ebp + 0x10]
mov ecx, ebx
call fcn.00430730
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp eax, esi
jne 0x425b8b
mov dword [ecx], edi
jmp 0x425ba5
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x425ba5
mov ecx, dword [ebx + 8]
mov eax, dword [ecx + edx + 4]
mov eax, dword [eax + 4]
mov dword [ecx + edx + 4], eax
mov ecx, ebx
call fcn.00430330
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov byte [eax + 4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4285a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x534676
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x58ab78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [edi], vtable.cptlib::MemStringResources.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
lea eax, [ebp - 0xd]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0xd]
lea ecx, [edi + 0x10]
push eax
call fcn.00427670
xor eax, eax
mov dword [edi + 0x44], 7
mov dword [edi + 0x40], 0
mov word [edi + 0x30], ax
mov dword [edi], vtable.mxmsi::InstallStringResources.0
lea ecx, [edi + 0x48]
mov dword [ebp - 4], 1
mov dword [edi + 0x48], eax
mov dword [edi + 0x4c], eax
call fcn.004f4b70
mov dword [edi + 0x48], eax
lea ecx, [edi + 0x50]
mov dword [ecx], 0
mov dword [ebp - 0x18], ecx
mov dword [ecx + 4], 0
push 0
push 0x547116
push 0x5470d8
mov byte [ebp - 4], 3
call fcn.004e2290
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x433780
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
cmp dword [edi + 0x14], 8
mov eax, dword [edi + 0x10]
jb 0x433799
mov esi, dword [edi]
jmp 0x43379b
mov esi, edi
xor ecx, ecx
mov edx, 0x811c9dc5
add eax, eax
je 0x4337bc
mov edi, eax
movzx eax, byte [esi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x4337a8
mov edi, dword [ebp + 0xc]
mov esi, dword [ebx + 0x14]
mov ecx, esi
and ecx, edx
cmp dword [ebx + 0x18], ecx
ja 0x4337d1
shr esi, 1
or eax, 0xffffffff
sub eax, esi
add ecx, eax
mov esi, dword [ebx + 8]
shl ecx, 3
mov dword [ebp + 0xc], ecx
mov esi, dword [ecx + esi]
lea ecx, [ecx]
add ecx, dword [ebx + 8]
mov eax, dword [ebx]
cmp dword [ecx], eax
je 0x4337ee
mov eax, dword [ecx + 4]
mov eax, dword [eax]
cmp esi, eax
je 0x433865
cmp dword [edi + 0x14], 8
lea ecx, [esi + 8]
jb 0x4337ff
mov eax, dword [edi]
jmp 0x433801
mov eax, edi
push dword [edi + 0x10]
push eax
push dword [ecx + 0x10]
push 0
call fcn.004322f0
test eax, eax
je 0x43381a
mov esi, dword [esi]
mov ecx, dword [ebp + 0xc]
jmp 0x4337e0
cmp dword [esi + 0x1c], 8
lea eax, [esi + 8]
mov ecx, dword [eax + 0x10]
jb 0x433828
mov eax, dword [eax]
push ecx
push eax
push dword [edi + 0x10]
mov ecx, edi
push 0
call fcn.004322f0
lea ecx, [ebp + 0xc]
test eax, eax
je 0x433852
mov eax, dword [ebx]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ecx]
pop edi
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
pop edi
mov dword [ebp + 0xc], esi
mov ecx, dword [ecx]
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
mov ecx, dword [ebx]
pop edi
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x434d70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
movzx eax, ax
mov dword [ebp + 8], eax
pop ebp
jmp fcn.0047fa92
Function at 0x435cf0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea ecx, [ebp - 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov eax, dword [ebx + 0xc]
mov edi, dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x18]
mov dword [eax + 0x28], esi
mov dword [eax + 0x2c], edi
mov eax, dword [ebx + 0xc]
push ecx
lea ecx, [ebp - 8]
push ecx
push dword [eax + 0x18]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x435d42
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x435d7b
pop edi
movzx eax, ax
pop esi
or eax, 0x80070000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
add esi, 0x100000
adc edi, 0
cmp edi, dword [ebp - 4]
jb 0x435d65
ja 0x435d57
cmp esi, dword [ebp - 8]
jbe 0x435d65
pop edi
pop esi
mov eax, 0x80070070
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x80004004
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x43f300
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push edi
mov edi, ecx
cmp dword [edi + 0x180], 1
lea eax, [edi + 0x180]
jg 0x43f361
push esi
push dword [edi + 0x17c]
mov esi, dword [edi]
push eax
call fcn.0043f2a0
add esp, 4
mov ecx, edi
push eax
call dword [esi + 0x160]
pop esi
test eax, eax
jne 0x43f334
pop edi
ret
cmp byte [edi + 0x330], 0
jne 0x43f356
push 0
push 0
push 0x8001
push dword [edi + 0x20]
mov byte [edi + 0x330], 1
call dword [sym.imp.USER32.dll_PostMessageW]
push 0
mov ecx, edi
call fcn.00488e60
pop edi
ret
pop edi
jmp fcn.0047fda5
Function at 0x44ee40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x537eb8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x58ab78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0
call fcn.0047db23
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x44ee8a
push 0x80004005
call fcn.00422c50
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0x104
jge 0x44eec9
push 0x104
lea ecx, [ebp - 0x10]
call fcn.00423ab0
mov esi, dword [ebp - 0x10]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
cmp edi, 0x104
jbe 0x44ef17
mov dword [ebp - 0x14], edi
test edi, edi
jns 0x44eef0
push 0x80070057
call fcn.00422c50
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x44ef0d
push edi
lea ecx, [ebp - 0x10]
call fcn.00423ab0
mov esi, dword [ebp - 0x10]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test edi, edi
je 0x44ef4b
cmp edi, dword [ebp - 0x14]
ja 0x44ef4b
push edi
lea ecx, [ebp - 0x10]
call fcn.0044a960
push ecx
add esi, 0xfffffff0
mov edi, esp
push esi
call fcn.00422cb0
add esp, 4
add eax, 0x10
mov dword [edi], eax
mov edi, dword [ebp + 8]
push edi
call fcn.0042ad70
add esp, 8
jmp 0x44ef79
call fcn.0047db23
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x44ef67
push 0x80004005
call fcn.00422c50
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
mov edi, dword [ebp + 8]
add eax, 0x10
add esi, 0xfffffff0
mov dword [edi], eax
or ecx, 0xffffffff
lea eax, [esi + 0xc]
mov dword [ebp - 4], ecx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x44ef93
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x44efb0
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x58ab78]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe8], 0
push esi
push edi
mov edi, dword [ebp + 0xc]
test ebx, ebx
je 0x44eff2
push 0
push 0x5466b8
mov ecx, ebx
call fcn.004240c0
test edi, edi
je 0x44f003
mov dword [edi], 0
mov dword [edi + 4], 0
push 0xda
lea eax, [ebp - 0xe0]
push 0
push eax
call fcn.004a0810
add esp, 0xc
lea eax, [ebp - 0xe0]
push eax
push 0x6d
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x44f14d
cmp eax, 0x6d
ja 0x44f14d
cmp word [ebp - 0xe0], 0
lea esi, [ebp - 0xe0]
je 0x44f14d
lea ecx, [ecx]
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
je 0x44f0fb
cmp eax, 5
je 0x44f0fb
cmp eax, 2
je 0x44f0fb
xor eax, eax
mov dword [ebp - 0xf0], eax
mov dword [ebp - 0xec], eax
mov dword [ebp - 0xfc], eax
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0x104], eax
mov dword [ebp - 0x100], eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0xfc]
push eax
lea eax, [ebp - 0xf0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x44f0fb
mov ecx, dword [ebp - 0xec]
cmp dword [ebp - 0xe8], ecx
ja 0x44f0fb
mov eax, dword [ebp - 0xf0]
jb 0x44f0d8
mov edx, dword [ebp - 0xe4]
cmp edx, eax
jae 0x44f101
mov dword [ebp - 0xe8], ecx
mov edx, eax
mov dword [ebp - 0xe4], edx
test edi, edi
je 0x44f0ef
mov dword [edi], eax
mov dword [edi + 4], ecx
test ebx, ebx
je 0x44f101
push esi
mov ecx, ebx
call fcn.00422870
mov edx, dword [ebp - 0xe4]
mov eax, esi
lea ecx, [eax + 2]
mov dword [ebp - 0xf4], ecx
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x44f110
sub eax, dword [ebp - 0xf4]
sar eax, 1
lea esi, [esi + eax*2]
add esi, 2
cmp word [esi], cx
jne 0x44f050
or edx, dword [ebp - 0xe8]
je 0x44f14d
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049f3ce
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049f3ce
mov esp, ebp
pop ebp
ret