joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406b2c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00409cd4
test esi, esi
jne 0x406b62
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00409e5c
jmp 0x406b80
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00406a10
mov edi, eax
test esi, esi
je 0x406b80
cmp dword [ebx], 0
je 0x406b80
dec esi
jmp 0x406b69
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x408984
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00408d5c
mov byte [esp], al
cmp byte [esp], 0
jne 0x408b04
test edi, edi
je 0x408b04
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408a44
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x408a1f
cmp edi, 0xffffffff
je 0x4089e3
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4089e3
mov byte [esp], 0
jmp 0x408b04
mov ebx, dword [esi]
cmp ebx, 1
jg 0x408a1f
test ebx, ebx
jne 0x408a15
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408a15
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408b04
call 0x408e7c
dec ebp
test ebp, ebp
jg 0x4089c8
cmp edi, 0xffffffff
je 0x408a44
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408a42
mov byte [esp], 0
jmp 0x408b04
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408992
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408a44
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408b70
mov edx, eax
mov ebx, dword [reloc.kernel32.dll_GetDiskFreeSpaceW]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408aa8
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408aa6
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408aa8
xor edi, edi
cmp byte [esp], 0
je 0x408ace
mov ebx, dword [esi]
test bl, 1
jne 0x408ae4
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408aae
mov byte [esp + 1], 1
jmp 0x408ae4
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408ace
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408a5b
cmp byte [esp], 0
je 0x408b04
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x409970
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x748058], 0
je 0x4099d7
cmp word [0x748344], 0xd7b2
jne 0x409999
cmp dword [reloc.user32.dll_SetScrollRange], 0
jbe 0x409999
mov eax, 0x748340
call dword [0x74835c]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x409a04
call fcn.0040a638
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x742032], 0
jne 0x4099f3
push 0
push 0x7429ca
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x409b94
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x742034], 0
je 0x409bbf
mov edx, edi
mov eax, esi
call dword [0x742034]
mov ebx, eax
jmp 0x409bd0
mov eax, 8
call fcn.0040674c
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x748059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409b5c
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x409c00
mov eax, ebx
call fcn.00406768
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40c604
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40c769
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409cd4
cmp si, word [0x742a08]
jb 0x40c69c
cmp si, word [0x742c08]
ja 0x40c69c
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40c69c
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x742a08]
jae 0x40c676
mov edi, ebx
dec edi
jmp 0x40c697
cmp si, word [ebx*8 + 0x742a08]
jbe 0x40c686
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40c697
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x742a0c]
call fcn.0040c524
jmp 0x40c69c
cmp edi, dword [ebp - 8]
jae 0x40c660
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40c74b
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c74b
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040aa88
push dword [ebp - 0x160]
push 0x40c784
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040aa88
push dword [ebp - 0x164]
push 0x40c794
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040aa88
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040acc0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c770
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409d34
ret
Function at 0x40c91c
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40ca20
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x74ab88
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x74aba0]
jne 0x40c968
mov eax, esi
mov edx, 0x74aba2
mov ecx, 0x55
call fcn.0040aa88
push 0x74ab88
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40ca0a
push 0x74ab88
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00409cd4
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c9d7
cmp byte [0x74ab84], 0
je 0x40c99c
mov edx, esi
mov eax, ebx
call fcn.0040c800
jmp 0x40c9d7
mov edx, esi
mov eax, ebx
call fcn.0040c604
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40c9d7
cmp dword [esi], 0
je 0x40c9c0
mov eax, esi
mov edx, 0x40ca38
call fcn.0040abe0
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040c604
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040abe0
push 0x74ab88
call sub.kernel32.dll_EnterCriticalSection
mov word [0x74aba0], bx
mov eax, dword [esi]
call fcn.0040a9e4
mov ecx, eax
mov eax, 0x74aba2
mov edx, 0xaa
call fcn.0040c484
push 0x74ab88
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ca27
lea eax, [ebp - 4]
call fcn.00409cd4
ret
Function at 0x40cc50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00409db8
xor eax, eax
push ebp
push 0x40ce75
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40cc90
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40ccaa
mov eax, dword [ebp - 4]
call fcn.0040a9e4
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040c484
cmp word [ebp - 0x21a], 0
je 0x40ce5f
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40ce84
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cd79
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40ce84
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cd79
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cec0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cd79
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cec0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cd79
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cef4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cd79
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cf28
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40ce5f
xor eax, eax
push ebp
push 0x40ce58
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040ca60
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40cde8
mov eax, dword [ebp - 0x10]
call fcn.0040674c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040aa4c
jmp 0x40ce33
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40cf68
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40ce33
mov eax, dword [ebp - 0x10]
call fcn.0040674c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40cf68
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040aa4c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ce5f
cmp dword [ebp - 8], 0
je 0x40ce4e
mov eax, dword [ebp - 8]
call fcn.00406768
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ce7c
lea eax, [ebp - 4]
call fcn.00409cd4
ret
Function at 0x40d164
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00409db8
xor eax, eax
push ebp
push 0x40d224
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040aa88
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040ac38
mov eax, dword [ebx]
call fcn.0040d02c
test al, al
jne 0x40d201
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040aa88
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040ac38
mov eax, dword [ebx]
call fcn.0040d02c
test al, al
jne 0x40d201
mov eax, ebx
call fcn.00409cd4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d22b
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409d34
lea eax, [ebp - 4]
call fcn.00409cd4
ret

Function at 0x4221a4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
Function at 0x4223c4
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc4
push ebx
xor ebx, ebx
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x422601
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, dword [ebp - 8]
call fcn.00409cd4
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetFileSize_1
mov ebx, eax
test ebx, ebx
jne 0x42249b
cmp dword [ebp - 0x14], 0
jne 0x42249b
xor edx, edx
mov eax, 6
call fcn.0042a85c
test al, al
je 0x42249b
push 2
push 0x104
lea eax, [ebp - 0x224]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetFinalPathNameByHandleW
test eax, eax
jbe 0x42249b
lea eax, [ebp - 0x22c]
lea edx, [ebp - 0x224]
mov ecx, 0x106
call fcn.0040aa88
mov eax, dword [ebp - 0x22c]
lea edx, [ebp - 0x228]
call fcn.004221a4
mov edx, dword [ebp - 0x228]
mov eax, dword [ebp - 8]
call fcn.0040a0b4
mov byte [ebp - 9], 1
jmp 0x4225e3
test ebx, ebx
jne 0x4224a9
cmp dword [ebp - 0x14], 0
je 0x422597
push 0
push 1
push 0
push 2
push 0
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateFileMappingW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x3ee
je 0x422597
xor eax, eax
push ebp
push 0x422590
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
push 0
push 0
push 4
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x422579
xor eax, eax
push ebp
push 0x422572
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
call sub.kernel32.dll_GetCurrentProcess
lea ecx, [ebp - 0x224]
mov edx, dword [ebp - 0x18]
call fcn.00414218
test eax, eax
jbe 0x42255b
lea eax, [ebp - 0x234]
lea edx, [ebp - 0x224]
mov ecx, 0x106
call fcn.0040aa88
mov eax, dword [ebp - 0x234]
lea edx, [ebp - 0x230]
call fcn.004221a4
mov edx, dword [ebp - 0x230]
mov eax, dword [ebp - 8]
call fcn.0040a0b4
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422579
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_UnmapViewOfFile
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422597
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
cmp byte [ebp - 9], 0
jne 0x4225e3
lea edx, [ebp - 0x238]
mov eax, dword [ebp - 4]
call fcn.004222e0
mov edx, dword [ebp - 0x238]
mov eax, dword [ebp - 8]
call fcn.0040a0b4
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x4225e3
lea edx, [ebp - 0x23c]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.004221a4
mov edx, dword [ebp - 0x23c]
mov eax, dword [ebp - 8]
call fcn.0040a0b4
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422608
lea eax, [ebp - 0x23c]
mov edx, 6
call fcn.00409d34
ret
Function at 0x422614
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov byte [ebp - 1], 0
xor edx, edx
mov eax, 6
call fcn.0042a85c
test al, al
je 0x4226dc
xor edx, edx
mov eax, ebx
call fcn.00424450
test al, al
je 0x4226dc
mov eax, ebx
call fcn.00423fa4
test al, 0x20
je 0x4226dc
mov eax, ebx
call fcn.0040a9e4
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4226dc
test ah, 4
je 0x4226dc
test al, 0x10
je 0x42267b
mov edi, 0x2000000
jmp 0x42267d
xor edi, edi
push 0
push edi
push 3
push 0
push 1
push 0x80000000
mov eax, ebx
call fcn.0040a9e4
push eax
call sub.kernel32.dll_CreateFileW_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x4226dc
xor eax, eax
push ebp
push 0x4226d5
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, esi
mov ecx, edi
mov eax, dword [ebp - 8]
call fcn.004223c4
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4226dc
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4229e4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x422a3d
test eax, edx
je 0x422a40
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x4229fb
movzx eax, word [eax]
sub eax, ecx
jmp 0x422a22
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x422a23
add ecx, 4
js 0x422a13
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x422a20
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x422a22
xor eax, eax
ret
test eax, eax
je 0x422a4c
test edx, edx
jne 0x4229ec
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x423fa4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x424108
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x423f44]
call fcn.0040bf10
add esp, 4
push 0x104
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x423f74]
call fcn.0040bf10
add esp, 4
movzx ebx, byte [0x424118]
mov dl, 1
mov eax, esi
call fcn.004244e8
test al, al
jne 0x42401e
mov dl, 1
mov eax, esi
call fcn.00424450
test al, al
je 0x4240a8
lea edx, [ebp - 0x1c]
mov eax, esi
call fcn.0042492c
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 4]
call fcn.0042ad8c
push 0x104
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x104
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a9e4
mov esi, eax
push esi
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x4240a3
test byte [ebp - 0x14], 1
je 0x42406e
or bl, 1
test byte [ebp - 0x14], 2
je 0x424077
or bl, 2
test byte [ebp - 0x14], 0x80
je 0x424080
or bl, 0x20
push esi
call sub.kernel32.dll_GetDriveTypeW
sub eax, 2
je 0x424094
dec eax
je 0x424099
dec eax
je 0x42409e
dec eax
jne 0x4240c9
or bl, 0x10
jmp 0x4240c9
or bl, 4
jmp 0x4240c9
or bl, 8
jmp 0x4240c9
call fcn.0042b4dc
lea edx, [ebp - 0x20]
mov eax, dword [0x74786c]
call fcn.0040daf4
mov ecx, dword [ebp - 0x20]
mov dl, 1
mov eax, dword [0x41c72c]
call fcn.0042989c
call fcn.004093dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42410f
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00409d34
lea eax, [ebp - 0xc]
mov edx, dword [0x423f74]
call fcn.0040c034
lea eax, [ebp - 8]
mov edx, dword [0x423f44]
call fcn.0040c034
lea eax, [ebp - 4]
call fcn.00409cd4
ret

Function at 0x424174
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [esi]
add eax, edi
push eax
push ebx
call sub.kernel32.dll_ReadFile_1
test eax, eax
jne 0x4241a1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x424450
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.0040a9e4
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4244ba
test ah, 4
je 0x4244b3
test bl, bl
jne 0x424478
mov al, 1
jmp 0x4244e1
test al, 0x10
je 0x424480
xor eax, eax
jmp 0x4244e1
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x4244a4
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x4244e1
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x4244e1
test al, 0x10
sete al
jmp 0x4244e1
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x4244db
cmp ebx, 3
je 0x4244db
cmp ebx, 0x7b
je 0x4244db
mov eax, esi
call fcn.00424410
test al, al
jne 0x4244df
xor eax, eax
jmp 0x4244e1
mov al, 1
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov byte [esp], dl
mov edi, eax
xor ebx, ebx
mov eax, edi
call fcn.0040a9e4
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x42458f
test esi, 0x400
jne 0x424524
test esi, 0x10
setne bl
jmp 0x4245bf
cmp byte [esp], 0
je 0x424558
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x4245bf
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x4245bf
test esi, 0x10
je 0x424564
mov bl, 1
jmp 0x4245bf
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x42458b
push eax
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x4245bf
mov bl, 1
jmp 0x4245bf
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x4245b9
cmp eax, 3
je 0x4245b9
cmp eax, 0xa1
je 0x4245b9
cmp eax, 0x7b
je 0x4245b9
cmp eax, 0x35
je 0x4245b9
cmp eax, 0x15
je 0x4245b9
cmp eax, 0x43
jne 0x4245bd
xor ebx, ebx
jmp 0x4245bf
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4246f4
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, eax
mov eax, esi
call fcn.0040a9e4
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x424749
call sub.kernel32.dll_GetLastError_2
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x424743
test ah, 4
je 0x424743
test al, 0x10
je 0x424743
mov eax, esi
call fcn.0040a9e4
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x424749
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret