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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x100d6ec]
push edi
jae 0x1008f97
mov eax, esi
sar eax, 5
lea ebx, [eax*4 + 0x100d700]
mov eax, dword [ebx]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x1008f97
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov edi, dword [ebp + 0xc]
mov ecx, edi
je 0x1008e76
test dl, 2
jne 0x1008e76
test dl, 0x48
je 0x1008e40
mov al, byte [eax + 5]
cmp al, 0xa
je 0x1008e40
dec dword [ebp + 0x10]
mov byte [edi], al
mov eax, dword [ebx]
lea ecx, [edi + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [ebx]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1008e89
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x1008e71
mov dword [0x100d1a8], ecx
jmp 0x1008f9e
cmp eax, 0x6d
jne 0x1008e7d
xor eax, eax
jmp 0x1008fab
push eax
call fcn.0100a412
pop ecx
jmp 0x1008fa8
mov eax, dword [ebx]
mov edx, dword [ebp - 0x10]
add dword [ebp - 0xc], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x1008f92
test edx, edx
je 0x1008eac
cmp byte [edi], 0xa
jne 0x1008eac
or al, 4
jmp 0x1008eae
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x1008f8c
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x1008f7c
cmp al, 0xd
je 0x1008ee2
mov byte [edi], al
inc edi
inc dword [ebp - 8]
jmp 0x1008f6e
dec ecx
cmp dword [ebp - 8], ecx
jae 0x1008efc
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x1008ef7
add dword [ebp - 8], 2
jmp 0x1008f50
mov dword [ebp - 8], eax
jmp 0x1008f6a
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1008f24
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1008f6a
cmp dword [ebp - 0x10], 0
je 0x1008f6a
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x48
je 0x1008f45
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x1008f50
mov byte [edi], 0xd
mov ecx, dword [ebx]
mov byte [ecx + esi + 5], al
jmp 0x1008f6d
cmp edi, dword [ebp + 0xc]
jne 0x1008f55
cmp byte [ebp - 1], 0xa
jne 0x1008f55
mov byte [edi], 0xa
jmp 0x1008f6d
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0100a386
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x1008f6e
mov byte [edi], 0xd
inc edi
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x1008ec6
jmp 0x1008f8c
mov eax, dword [ebx]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x1008f8c
or al, 2
mov byte [esi], al
sub edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], edi
mov eax, dword [ebp - 0xc]
jmp 0x1008fab
and dword [0x100d1a8], 0
mov dword [0x100d1a4], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1009065
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x100d6ec]
push ebx
push esi
push edi
jae 0x10091ea
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x100d700]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x14], ebx
je 0x10091ea
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
jne 0x10090b9
xor eax, eax
jmp 0x10091fe
test al, 0x20
je 0x10090ca
push 2
push edi
push edi
push ecx
call fcn.0100a54f
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x1009186
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp + 8], edi
jbe 0x10091be
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x418]
cmp ecx, dword [ebp + 0x10]
jae 0x1009120
mov edx, dword [ebp - 4]
inc dword [ebp - 4]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x1009111
inc dword [ebp - 0x10]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x14]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x10090f6
mov edi, eax
lea eax, [ebp - 0x418]
sub edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x418]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1009160
mov eax, dword [ebp - 0xc]
add dword [ebp - 8], eax
cmp eax, edi
jl 0x1009169
mov eax, dword [ebp - 4]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x10090ea
jmp 0x100916b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
xor edi, edi
mov eax, dword [ebp - 8]
cmp eax, edi
jne 0x10091e5
cmp dword [ebp + 8], edi
je 0x10091be
push 5
pop eax
cmp dword [ebp + 8], eax
jne 0x10091b3
mov dword [0x100d1a8], eax
jmp 0x10091f1
push edi
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10091a8
mov eax, dword [ebp - 0xc]
mov dword [ebp + 8], edi
mov dword [ebp - 8], eax
jmp 0x100916b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x100916b
push dword [ebp + 8]
call fcn.0100a412
pop ecx
jmp 0x10091fb
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x10091d3
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
je 0x10090b2
mov dword [0x100d1a4], 0x1c
mov dword [0x100d1a8], edi
jmp 0x10091fb
sub eax, dword [ebp - 0x10]
jmp 0x10091fe
and dword [0x100d1a8], 0
mov dword [0x100d1a4], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1009605
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.010054e0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100969a
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x100d1b0]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x100969a
cmp eax, 1
je 0x10096b2
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100969a
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x100966f
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x1009696
xor eax, eax
inc eax
jmp 0x10096ce
cmp esi, ebx
jae 0x100969e
xor eax, eax
jmp 0x10096ce
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x100d1b0]
jmp 0x10096b4
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100a9cc
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x1002df0
call fcn.01005494
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x100d3c0], edi
jne 0x100aa10
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100a9fb
mov dword [0x100d3c0], ebx
jmp 0x100aa10
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x100aa10
mov dword [0x100d3c0], 2
mov eax, dword [0x100d3c0]
cmp eax, ebx
jne 0x100aa30
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x100aaf3
cmp eax, 2
je 0x100aa39
cmp eax, edi
jne 0x100aa61
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
cmp dword [ebp + 0x18], edi
jne 0x100aa4c
mov eax, dword [0x100d324]
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 0x100aa68
xor eax, eax
jmp 0x100aaf3
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.010054e0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x100aa9b
cmp esi, edi
jne 0x100aab1
push dword [ebp - 0x24]
call fcn.010074a8
pop ecx
mov esi, eax
cmp esi, edi
je 0x100aa61
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 0x100aae4
cmp dword [ebp + 0x14], edi
jne 0x100aace
push edi
push edi
jmp 0x100aad4
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 0x100aaf0
push esi
call fcn.010073fe
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.010054cd
ret
Function at 0x100aafc
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x1002e00
call fcn.01005494
xor esi, esi
cmp dword [0x100d3c4], esi
jne 0x100ab40
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100ab2b
mov dword [0x100d3c4], edi
jmp 0x100ab40
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x100ab40
mov dword [0x100d3c4], 2
mov eax, dword [0x100d3c4]
cmp eax, 2
je 0x100ac21
cmp eax, esi
je 0x100ac21
cmp eax, 1
jne 0x100ab85
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x100ab6e
mov eax, dword [0x100d324]
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 0x100ab8c
xor eax, eax
jmp 0x100ac33
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.010054e0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x100abc2
cmp edi, esi
jne 0x100abdd
lea eax, [ebx + ebx]
push eax
call fcn.010074a8
pop ecx
mov edi, eax
cmp edi, esi
je 0x100ab85
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 0x100ac10
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x100abfa
push esi
push esi
jmp 0x100ac00
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 0x100ac1c
push edi
call fcn.010073fe
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x100ac33
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.010054cd
ret
Function at 0x410c70
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x4025e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x70
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x401f20
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov dword [ebp - 4], 2
push 0xffffffffffffffff
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov dword [ebp - 4], 3
call fcn.00404fd8
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
lea eax, [ebp - 0x64]
push eax
push 0x28
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.00405038
mov dword [ebp - 0x70], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor edx, edx
cmp dword [ebp - 0x70], 0
setne dl
neg edx
movsx eax, dx
test eax, eax
je 0x410e25
mov dword [ebp - 4], 4
xor ecx, ecx
test ecx, ecx
je 0x410d46
mov dword [ebp - 4], 6
mov dword [ebp - 0x6c], 0x1c
lea edx, [ebp - 0x6c]
push edx
lea eax, [ebp - 0x3c]
push eax
push 0x1c
lea ecx, [ebp - 0x60]
push ecx
push 0
mov edx, dword [ebp - 0x64]
push edx
call fcn.00405088
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
jmp 0x410e25
mov dword [ebp - 4], 9
lea eax, [ebp - 0x44]
push eax
push 0x404ae4
lea ecx, [ebp - 0x68]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
push 0
call fcn.004050e8
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor edx, edx
cmp dword [ebp - 0x6c], 0
setne dl
neg edx
mov word [ebp - 0x74], dx
lea ecx, [ebp - 0x68]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
movsx eax, word [ebp - 0x74]
test eax, eax
je 0x410e25
mov dword [ebp - 4], 0xa
mov dword [ebp - 0x60], 1
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x74], 2
jae 0x410dc3
mov dword [ebp - 0x8c], 0
jmp 0x410dcf
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x8c], eax
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x74]
imul edx, edx, 0xc
lea eax, [ebp + edx - 0x5c]
push eax
push 8
call dword [sym.imp.MSVBVM60.DLL___vbaCopyBytes]
mov dword [ebp - 4], 0xc
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x74], 2
jae 0x410e06
mov dword [ebp - 0x90], 0
jmp 0x410e12
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x74]
imul ecx, ecx, 0xc
mov dword [ebp + ecx - 0x54], 2
jmp 0x410d14
mov dword [ebp - 4], 0x11
mov edx, dword [ebp - 0x64]
push edx
call fcn.00404e50
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
push 0x410e4d
jmp 0x410e4c
ret

Function at 0x40750c
Capabilities:
Encode data using xor

Disassembly:
inc eax
pop esi
xor dword [esi + 0xe], 0x1383f902
sub esi, 0xfffffffc
loop 0x40750f
jmp 0xdddb4dfa
Function at 0x40182a
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetLocaleInfoA]
xor ebx, ebx
push edi
push ebx
push ebx
mov edi, 0x400
push 2
push edi
mov byte [esp + 0x23], 1
mov dword [esp + 0x24], ebx
call esi
push ebx
mov ebp, 0x1001
push ebx
push ebp
push edi
mov dword [esp + 0x28], eax
call esi
cmp dword [esp + 0x18], ebx
mov dword [esp + 0x1c], eax
je 0x401874
push dword [esp + 0x18]
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ebx, eax
cmp dword [esp + 0x1c], 0
je 0x40188b
push dword [esp + 0x1c]
push 0
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov dword [esp + 0x14], eax
push dword [esp + 0x18]
push ebx
push 2
push edi
call esi
push dword [esp + 0x1c]
push dword [esp + 0x18]
push ebp
push edi
call esi
mov esi, dword [sym.imp.KERNEL32.DLL_GlobalFree]
xor edi, edi
cmp ebx, edi
je 0x4018d9
cmp dword [esp + 0x14], edi
je 0x4018cc
push dword [esp + 0x14]
push ebx
push str._s___s_
push dword [esp + 0x30]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x4018f4
push ebx
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
jmp 0x4018f4
cmp dword [esp + 0x14], edi
je 0x4018ef
push dword [esp + 0x14]
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
jmp 0x4018fb
and byte [esp + 0x13], 0
cmp ebx, edi
je 0x4018fb
push ebx
call esi
cmp dword [esp + 0x14], edi
je 0x401907
push dword [esp + 0x14]
call esi
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4

Function at 0x401a31
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp byte [esi + 0x220], bl
jne 0x401b57
call fcn.00401d2d
push str.WSOCK32.DLL
mov byte [esi + 0x220], bl
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
cmp eax, ebx
mov dword [esi + 0x21c], eax
je 0x401b62
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.WSAStartup
push eax
call edi
push str.gethostname
mov dword [0x414430], eax
push dword [esi + 0x21c]
call edi
push str.gethostbyname
mov dword [0x414434], eax
push dword [esi + 0x21c]
call edi
push str.WSACleanup
mov dword [0x414438], eax
push dword [esi + 0x21c]
call edi
push str.inet_ntoa
mov dword [0x41443c], eax
push dword [esi + 0x21c]
call edi
mov ecx, dword [0x414430]
mov dword [0x414440], eax
cmp ecx, ebx
je 0x401b5b
cmp dword [0x414434], ebx
je 0x401b5b
cmp dword [0x414438], ebx
je 0x401b5b
cmp dword [0x41443c], ebx
je 0x401b5b
cmp eax, ebx
je 0x401b5b
lea eax, [ebp - 0x190]
push eax
push 0x101
call ecx
neg eax
sbb al, al
inc al
mov byte [esi + 0x220], al
je 0x401b5b
movzx eax, word [ebp - 0x18e]
shr eax, 8
push eax
movzx eax, byte [ebp - 0x18e]
push eax
push str._u._u
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
mov edi, dword [sym.imp.KERNEL32.DLL_lstrcpyA]
add esp, 0x10
lea eax, [ebp - 0x18c]
push eax
lea eax, [esi + 0x10]
push eax
call edi
lea eax, [ebp - 0x8b]
add esi, 0x111
push eax
push esi
call edi
mov al, 1
jmp 0x401b64
mov ecx, esi
call fcn.00401b69
xor al, al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401d68
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x9c
lea eax, [ebp - 0x9c]
push esi
and dword [edi], 0
push eax
call fcn.0040e664
pop ecx
lea eax, [ebp - 0x9c]
pop ecx
mov dword [ebp - 0x9c], esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetVersionExA]
push eax
call esi
test eax, eax
jne 0x401dc1
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x94
push eax
call esi
test eax, eax
je 0x401e75
mov eax, dword [ebp - 0x8c]
dec eax
je 0x401e25
dec eax
jne 0x401e71
cmp dword [ebp - 0x98], 3
jne 0x401de9
cmp dword [ebp - 0x94], 0x33
jne 0x401e71
jmp 0x401df2
cmp dword [ebp - 0x98], 4
jne 0x401dfa
mov dword [edi], 6
jmp 0x401e71
cmp dword [ebp - 0x98], 5
jne 0x401e71
cmp dword [ebp - 0x94], 0
jne 0x401e14
mov dword [edi], 7
jmp 0x401e71
cmp dword [ebp - 0x94], 1
jne 0x401e71
mov dword [edi], 8
jmp 0x401e71
cmp dword [ebp - 0x98], 4
jne 0x401e71
cmp dword [ebp - 0x94], 0
jne 0x401e48
xor eax, eax
cmp byte [ebp - 0x87], 0x43
sete al
inc eax
mov dword [edi], eax
jmp 0x401e71
cmp dword [ebp - 0x94], 0xa
jne 0x401e62
xor eax, eax
cmp byte [ebp - 0x87], 0x41
sete al
add eax, 3
jmp 0x401e44
cmp dword [ebp - 0x94], 0x5a
jne 0x401e71
mov dword [edi], 5
mov al, 1
jmp 0x401e77
xor al, al
pop edi
pop esi
leave
ret 4
Function at 0x4028c1
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
mov dword [ebp - 4], ecx
push esi
push edi
lea ecx, [ebp - 0x33c]
call fcn.00402a1f
mov esi, dword [sym.imp.KERNEL32.DLL_GetLogicalDriveStringsA]
push 0
push 0
call esi
mov edi, eax
test edi, edi
je 0x402a17
lea eax, [edi + 1]
push ebx
push eax
push 0x40
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ebx, eax
push ebx
push edi
mov dword [ebp - 0xc], ebx
call esi
test eax, eax
jne 0x402911
xor bl, bl
jmp 0x402a09
cmp byte [ebx], 0
mov esi, ebx
je 0x402a07
mov edi, dword [sym.imp.KERNEL32.DLL_SetErrorMode]
lea eax, [ebp - 8]
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
and byte [ebp - 6], 0
mov al, byte [esi]
mov ecx, dword [ebp - 4]
mov byte [ebp - 0x33c], al
lea eax, [ebp - 0x33b]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.00402a86
cmp dword [ebp - 0x10], 2
je 0x402996
push 1
call edi
mov ebx, eax
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
push esi
call fcn.00402aea
push ebx
call edi
lea eax, [ebp - 0x13b]
mov ecx, dword [ebp - 4]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x23b]
push eax
push esi
call fcn.00402bfc
jmp 0x4029da
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00402364
test al, al
je 0x4029da
lea eax, [ebp - 0x43c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
test eax, eax
je 0x4029da
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x33b]
push str.floppy___s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x33c]
push eax
mov eax, dword [ebp + 8]
push 0x7fffffff
push dword [eax]
call dword [0x416c04]
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
cmp byte [esi + eax + 1], 0
lea esi, [esi + eax + 1]
jne 0x402922
mov bl, 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov al, bl
pop ebx
jmp 0x402a19
xor al, al
pop edi
pop esi
leave
ret 4
Function at 0x402aea
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push str.GetDiskFreeSpaceExA
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
xor esi, esi
cmp eax, esi
je 0x402b53
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp + 8]
call eax
test eax, eax
je 0x402bdd
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x14]
mov dword [eax + 4], ecx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov ecx, dword [ebp - 4]
jmp 0x402bd6
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceA]
test eax, eax
je 0x402bdd
mov eax, dword [ebp + 8]
mul dword [ebp - 4]
test byte [0x413ab8], 1
mov esi, eax
mov dword [ebp - 4], edx
jne 0x402b96
or byte [0x413ab8], 1
mul dword [ebp - 0xc]
mov dword [0x413ac4], edx
jmp 0x402b9b
mov eax, dword [0x413ac0]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [0x413ac4]
mov dword [ecx + 4], eax
mov eax, esi
mul dword [ebp - 0x14]
mov ecx, dword [ebp + 0x10]
mov dword [0x413ac0], eax
mov dword [0x413ac4], edx
mov dword [ecx], eax
mov eax, dword [0x413ac4]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [0x413ac0]
mov dword [eax], ecx
mov ecx, dword [0x413ac4]
mov dword [eax + 4], ecx
mov al, 1
jmp 0x402bf7
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov dword [eax + 4], esi
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
mov dword [eax + 4], esi
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
mov dword [eax + 4], esi
xor al, al
pop esi
leave
ret 0x10