joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408700
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x415f59
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
push edi
xor edi, edi
mov ecx, esi
mov dword [esp + 8], edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetManager]
push eax
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x24]
push edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::StringLength]
add esp, 4
push eax
push edi
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
push eax
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::Concatenate]
mov esi, dword [esp + 0x30]
add esp, 0x14
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call dword [0x4171ac]
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x408840
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x110
push ebx
xor ebx, ebx
mov byte [esi], bl
mov ecx, dword [0x4182b0]
mov eax, dword [str.SOFTWARERising_]
mov edx, dword [0x4182b4]
mov dword [esp + 0xc], eax
mov eax, dword [0x4182b8]
mov dword [esp + 0x10], ecx
mov cl, byte [0x4182bc]
push edi
mov dword [esp + 0x1c], eax
mov byte [esp + 0x20], cl
mov dword [esp + 0x18], edx
xor eax, eax
mov ecx, 0x3d
lea edi, [esp + 0x21]
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
mov edi, dword [0x417050]
push edx
mov dword [esp + 0xc], ebx
call edi
mov edx, dword [ebp + 0xc]
mov ecx, 0x105
sub ecx, eax
push ecx
push edx
lea eax, [esp + 0x18]
push eax
call edi
lea ecx, [esp + eax + 0x18]
push ecx
call dword [0x41704c]
lea edx, [esp + 8]
push edx
push 1
push ebx
lea eax, [esp + 0x1c]
push eax
push 0x80000002
call dword [0x417008]
test eax, eax
jne 0x40892a
lea ecx, [ebp + 8]
push ecx
push esi
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [esp + 0x18]
push str.installpath
push eax
mov dword [esp + 0x24], 1
call dword [section..rdata]
test eax, eax
jne 0x40891f
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll__mbsrchr]
add esp, 8
test eax, eax
je 0x40891a
mov cl, byte [eax + 1]
test cl, cl
jne 0x40891a
mov byte [eax], bl
mov ebx, 1
mov ecx, dword [esp + 8]
push ecx
call dword [0x417004]
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c150
Capabilities:
Read file on windows

Disassembly:
mov edx, dword [esp + 4]
push ebp
mov ebp, dword [esp + 0xc]
xor eax, eax
mov ecx, ebp
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
push esi
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
push 0x4190b0
push edx
mov word [ecx + 0x14], ax
call dword [sym.imp.MSVCR71.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c18d
pop esi
or eax, 0xffffffff
pop ebp
ret 8
push ebx
mov ebx, dword [sym.imp.MSVCR71.dll_fseek]
push edi
push 2
push 0
push esi
call ebx
push esi
call dword [sym.imp.MSVCR71.dll_ftell]
mov edi, eax
push 0
lea eax, [edi - 0x16]
push eax
push esi
call ebx
push esi
push 1
push 0x16
push ebp
call dword [sym.imp.MSVCR71.dll_fread]
mov eax, dword [ebp]
add esp, 0x2c
cmp eax, 0x6054b50
jne 0x40c1da
push esi
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 4
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
ret 8
cmp edi, 0x10015
jbe 0x40c1e7
mov edi, 0x10015
push edi
call sub.MFC71.DLL_operator_new
mov ecx, edi
push 2
neg ecx
push ecx
push esi
mov ebx, eax
call dword [sym.imp.MSVCR71.dll_fseek]
push esi
push 1
push edi
push ebx
call dword [sym.imp.MSVCR71.dll_fread]
lea edi, [ebx + edi - 0x16]
add esp, 0x20
cmp ebx, edi
mov eax, ebx
mov dword [esp + 0x18], edi
ja 0x40c268
lea esp, [esp]
mov edx, eax
mov edi, dword [edx]
mov ecx, ebp
mov dword [ecx], edi
mov edi, dword [edx + 4]
mov dword [ecx + 4], edi
mov edi, dword [edx + 8]
mov dword [ecx + 8], edi
mov edi, dword [edx + 0xc]
mov dword [ecx + 0xc], edi
mov edi, dword [edx + 0x10]
mov dword [ecx + 0x10], edi
mov dx, word [edx + 0x14]
mov word [ecx + 0x14], dx
cmp byte [eax], 0x50
jne 0x40c25f
cmp byte [eax + 1], 0x4b
jne 0x40c25f
cmp byte [eax + 2], 5
jne 0x40c25f
cmp byte [eax + 3], 6
je 0x40c282
mov ecx, dword [esp + 0x18]
inc eax
cmp eax, ecx
jbe 0x40c220
push ebx
call sub.MSVCR71.dll_free
push esi
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 8
pop edi
pop ebx
pop esi
or eax, 0xffffffff
pop ebp
ret 8
mov ecx, dword [eax]
mov dword [ebp], ecx
mov edx, dword [eax + 4]
mov dword [ebp + 4], edx
mov ecx, dword [eax + 8]
mov dword [ebp + 8], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp + 0xc], edx
mov ecx, dword [eax + 0x10]
mov dword [ebp + 0x10], ecx
mov dx, word [eax + 0x14]
push ebx
mov word [ebp + 0x14], dx
call sub.MSVCR71.dll_free
push esi
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 8
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
ret 8
Function at 0x40c2d0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push 0x4190b0
push eax
mov esi, ecx
call dword [sym.imp.MSVCR71.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x40c38e
mov ecx, dword [esi + 0x2c0]
push 0
push ecx
push edi
call dword [sym.imp.MSVCR71.dll_fseek]
mov eax, dword [esi + 0x2d4]
add esp, 0xc
test eax, eax
je 0x40c321
push eax
call sub.MSVCR71.dll_free
add esp, 4
mov dword [esi + 0x2d4], 0
mov eax, dword [esi + 0x2bc]
test eax, eax
ja 0x40c33d
push edi
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 4
pop edi
or eax, 0xffffffff
pop esi
ret 4
push eax
call sub.MFC71.DLL_operator_new
mov edx, dword [esi + 0x2bc]
push edi
push 1
push edx
push eax
mov dword [esi + 0x2d4], eax
call dword [sym.imp.MSVCR71.dll_fread]
push edi
call dword [sym.imp.MSVCR71.dll_fclose]
mov eax, dword [esi + 0x2d4]
mov ecx, dword [eax]
add esp, 0x18
cmp ecx, 0x2014b50
jne 0x40c37b
pop edi
xor eax, eax
pop esi
ret 4
push eax
call sub.MSVCR71.dll_free
mov dword [esi + 0x2d4], 0
add esp, 4
pop edi
or eax, 0xffffffff
pop esi
ret 4
Function at 0x40cdf0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0xa010
call fcn.004148b0
push ebx
mov ebx, dword [sym.imp.MSVCR71.dll_ftell]
push ebp
push esi
mov esi, dword [esp + 0xa020]
push edi
push esi
call ebx
mov eax, dword [esp + 0xa030]
mov edi, dword [esp + 0xa02c]
mov ebp, dword [sym.imp.MSVCR71.dll_fseek]
push 2
push 0
push esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], edi
call ebp
push esi
call ebx
push 0
push edi
push esi
mov dword [esp + 0x34], eax
call ebp
mov eax, dword [esp + 0x34]
add esp, 0x20
cmp edi, eax
jae 0x40ceb6
lea esp, [esp]
push esi
push 0xa000
lea ecx, [esp + 0x28]
push 1
push ecx
call dword [sym.imp.MSVCR71.dll_fread]
mov edi, eax
add esp, 0x10
test edi, edi
je 0x40ceb6
mov eax, dword [esp + 0x10]
add eax, edi
push esi
mov dword [esp + 0x14], eax
call ebx
mov edx, dword [esp + 0x1c]
push 0
push edx
push esi
mov dword [esp + 0x2c], eax
call ebp
push esi
push 1
lea eax, [esp + 0x38]
push edi
push eax
call dword [sym.imp.MSVCR71.dll_fwrite]
push esi
call ebx
mov ecx, dword [esp + 0x40]
push 0
push ecx
push esi
mov dword [esp + 0x48], eax
call ebp
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
add esp, 0x30
cmp eax, edx
jb 0x40ce50
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa010
ret 0xc
Function at 0x40d400
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x14038
call fcn.004148b0
mov eax, dword [esp + 0x14040]
push ebp
mov ebp, dword [esp + 0x14040]
push esi
push 0
push eax
push ebp
call dword [sym.imp.MSVCR71.dll_fseek]
mov ecx, dword [esp + 0x1405c]
push 0x4190c8
push ecx
call dword [sym.imp.MSVCR71.dll_fopen]
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x40d44d
pop esi
xor al, al
pop ebp
add esp, 0x14038
ret 0x10
push ebx
push edi
push 0x38
push 0x4190b4
xor eax, eax
lea edx, [esp + 0x18]
mov ecx, 0xe
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
push 0xfffffffffffffff1
push edx
mov dword [esp + 0x44], 0x40c3c0
mov dword [esp + 0x40], 0x40c3a0
call fcn.0040f480
mov edi, dword [esp + 0x14064]
mov ebx, dword [sym.imp.MSVCR71.dll_fwrite]
add esp, 0x10
test edi, edi
jbe 0x40d571
cmp edi, 0xa000
push ebp
jbe 0x40d4b1
push 0xa000
push 1
lea eax, [esp + 0xa054]
push eax
jmp 0x40d4bc
push edi
push 1
lea ecx, [esp + 0xa054]
push ecx
call dword [sym.imp.MSVCR71.dll_fread]
xor ecx, ecx
add esp, 0x10
cmp eax, ecx
je 0x40d5f2
lea edx, [esp + 0xa048]
mov dword [esp + 0x10], edx
sub edi, eax
cmp eax, ecx
lea edx, [esp + 0x48]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], 0xa000
mov dword [esp + 0x40], ecx
mov dword [esp + 0x24], ecx
jbe 0x40d54e
lea esp, [esp]
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x40d52a
push esi
push 0xa000
lea eax, [esp + 0x50]
push 1
push eax
call ebx
lea ecx, [esp + 0x58]
add esp, 0x10
mov dword [esp + 0x20], 0xa000
mov dword [esp + 0x1c], ecx
lea edx, [esp + 0x10]
push 0
push edx
call fcn.0040f5b0
add esp, 8
test eax, eax
jl 0x40d619
cmp eax, 1
je 0x40d54e
mov eax, dword [esp + 0x14]
test eax, eax
ja 0x40d500
mov ecx, dword [esp + 0x20]
mov eax, 0xa000
sub eax, ecx
je 0x40d569
push esi
push 1
push eax
lea eax, [esp + 0x54]
push eax
call ebx
add esp, 0x10
test edi, edi
ja 0x40d497
mov edi, 0xa000
lea ecx, [esp + 0x48]
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x40d5a4
push esi
push edi
lea edx, [esp + 0x50]
push 1
push edx
call ebx
lea eax, [esp + 0x58]
add esp, 0x10
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x10]
push 4
push ecx
call fcn.0040f5b0
add esp, 8
test eax, eax
je 0x40d582
mov ecx, dword [esp + 0x20]
mov eax, edi
sub eax, ecx
je 0x40d5cf
push esi
push 1
push eax
lea edx, [esp + 0x54]
push edx
call ebx
add esp, 0x10
lea eax, [esp + 0x10]
push eax
call fcn.0040f430
push esi
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 8
pop edi
pop ebx
pop esi
mov al, 1
pop ebp
add esp, 0x14038
ret 0x10
push esi
call dword [sym.imp.MSVCR71.dll_fclose]
mov ecx, dword [esp + 0x1405c]
add esp, 4
push ecx
call dword [0x417104]
pop edi
pop ebx
pop esi
xor al, al
pop ebp
add esp, 0x14038
ret 0x10
lea edx, [esp + 0x10]
push edx
call fcn.0040f430
push esi
call dword [sym.imp.MSVCR71.dll_fclose]
mov eax, dword [esp + 0x14060]
add esp, 8
push eax
call dword [0x417104]
pop edi
pop ebx
pop esi
xor al, al
pop ebp
add esp, 0x14038
ret 0x10
Function at 0x40f2a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x40f2ab
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x40f3ae
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x419188]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x419188]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x419188]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x419188]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x419188]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x419188]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x419188]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x419188]
xor eax, edx
inc ecx
dec edi
jne 0x40f2c6
pop edi
test esi, esi
je 0x40f3d0
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x419188]
xor eax, edx
inc ecx
dec esi
jne 0x40f3b2
pop esi
pop ebx
not eax
ret
Function at 0x4749b0
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x4746cc
add ebx, ecx
call fcn.004749e3
add ecx, ebx
xor dword [eax], edi
add ebx, 0x9e4da815
add eax, 2
push ecx
pop ebx
inc ebx
cmp eax, edx
jl fcn.004749b0
sub ebx, ebx
ret
Function at 0x430003
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x401050
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
mov byte [ebp - 0x10], 0x65
mov byte [ebp - 0xf], 0x76
mov byte [ebp - 0xe], 0x69
mov byte [ebp - 0xd], 0x6c
mov byte [ebp - 0xc], 0x2e
mov byte [ebp - 0xb], 0x6d
mov byte [ebp - 0xa], 0x74
mov byte [ebp - 9], 0x78
mov byte [ebp - 8], 0x2e
mov byte [ebp - 7], 0x63
mov byte [ebp - 6], 0x6f
mov byte [ebp - 5], 0x6d
mov byte [ebp - 4], 0
mov byte [ebp - 0x34], 0x38
mov byte [ebp - 0x33], 0x30
mov byte [ebp - 0x32], 0x38
mov byte [ebp - 0x31], 0x30
mov byte [ebp - 0x30], 0
cmp dword [ebp + 8], 3
je 0x4010ac
xor eax, eax
jmp 0x401226
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edi, dword [ecx + eax*4 - 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xffffffff
cmp ecx, 5
je 0x4010ce
xor eax, eax
jmp 0x401226
mov dword [ebp - 0x2c], 0
jmp 0x4010e0
mov edx, dword [ebp - 0x2c]
add edx, 1
mov dword [ebp - 0x2c], edx
cmp dword [ebp - 0x2c], 5
jge 0x4010fd
mov eax, dword [ebp - 0x2c]
mov cl, byte [eax + str.lnn33]
sub cl, 1
mov edx, dword [ebp - 0x2c]
mov byte [edx + str.lnn33], cl
jmp 0x4010d7
push 5
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax*4 - 8]
push edx
push str.lnn33
call fcn.00401260
add esp, 0xc
test eax, eax
je 0x40112f
push str.Fail_n
call fcn.0040122b
add esp, 4
xor eax, eax
jmp 0x401226
mov al, byte [str.lnn33]
mov byte [ebp - 9], al
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov edi, dword [edx + ecx*4 - 4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xffffffff
cmp ecx, 4
je 0x401159
xor eax, eax
jmp 0x401226
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax*4 - 4]
movsx eax, byte [edx]
add eax, 0x14
mov byte [ebp - 0x14], al
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx*4 - 4]
movsx ecx, byte [eax + 1]
sub ecx, 0xa
mov byte [ebp - 0x18], cl
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4 - 4]
movsx edx, byte [ecx + 2]
add edx, 0x14
mov byte [ebp - 0x20], dl
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax*4 - 4]
mov al, byte [edx + 3]
mov byte [ebp - 0x24], al
movsx ecx, byte [ebp - 0x14]
cmp ecx, 0x55
jne 0x4011c8
movsx edx, byte [ebp - 0x18]
cmp edx, 0x59
jne 0x4011c8
movsx eax, byte [ebp - 0x20]
cmp eax, 0x79
jne 0x4011c8
movsx ecx, byte [ebp - 0x24]
cmp ecx, 0x21
je 0x4011d9
push str.Fail_n
call fcn.0040122b
add esp, 4
xor eax, eax
jmp 0x401226
call section..text
push str.sracs.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
jne 0x4011f7
or eax, 0xffffffff
jmp 0x401226
mov edx, dword [str.89_8_]
push edx
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x401216
or eax, 0xffffffff
jmp 0x401226
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x10]
push edx
call dword [ebp - 0x1c]
add esp, 8
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x405510
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x90c
push ebx
push esi
mov edx, ecx
push edi
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x114]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov al, byte [edx + 0x941]
cmp al, 0x3a
je 0x405570
cmp byte [edx + 0x940], 0x5c
je 0x405570
cmp al, 0x5c
je 0x405570
mov edi, dword [esp + 0x91c]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [edx + 0x940]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push eax
push 3
mov ecx, ebx
push eax
push eax
and ecx, 3
lea eax, [esp + 0x24]
push 0x80000000
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4055de
lea ecx, [esp + 0x10]
push ecx
push 0x21
push 0x428400
call fcn.004097d0
add esp, 0xc
or eax, esi
pop edi
pop esi
pop ebx
add esp, 0x90c
ret 4
lea edx, [esp + 0xc]
push 0
push edx
lea eax, [esp + 0x11c]
push 0x800
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
push esi
jne 0x405627
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
push ecx
push 0x21
push 0x428400
call fcn.004097d0
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
add esp, 0x90c
ret 4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x114]
push edx
call fcn.00413b30
mov al, byte [esp + 0x118]
add esp, 4
test al, al
lea esi, [esp + 0x114]
je 0x405696
mov bl, 0x6d
cmp byte [esi], 0x69
jne 0x40566f
cmp byte [esi + 4], bl
jne 0x40566f
push 8
push str.inf_mode
push esi
call fcn.00413af0
add esp, 0xc
test eax, eax
je 0x405685
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x405651
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x90c
ret 4
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x90c
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x90c
ret 4
Function at 0x4067d0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x28
push ebx
push esi
mov esi, dword [esp + 0x34]
xor al, al
mov byte [esp + 8], al
mov cl, byte [esi]
test cl, cl
je 0x406802
mov bl, byte [esi + 1]
mov dl, 0x3a
cmp bl, dl
jne 0x406802
mov al, cl
mov byte [esp + 9], dl
mov byte [esp + 8], al
mov byte [esp + 0xa], 0x5c
mov byte [esp + 0xb], 0
lea ecx, [esp + 0x10]
push 0x20
push ecx
lea edx, [esp + 0x14]
lea ecx, [esp + 0x3c]
push edx
neg al
push ecx
lea edx, [esp + 0x18]
sbb eax, eax
push 0
push 0
and eax, edx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x406834
pop esi
pop ebx
add esp, 0x28
ret
lea eax, [esp + 0x10]
push 0x422414
push eax
call fcn.004135f0
add esp, 8
test eax, eax
jne 0x406876
mov eax, dword [esp + 0x34]
cmp eax, 0xc
jne 0x406866
push 3
push 8
push esi
call fcn.00406940
add esp, 0xc
pop esi
pop ebx
add esp, 0x28
ret
push eax
push esi
call fcn.004068f0
add esp, 8
pop esi
pop ebx
add esp, 0x28
ret
lea ecx, [esp + 0x10]
push str.HPFS
push ecx
call fcn.004135f0
add esp, 8
test eax, eax
je 0x4068d7
lea edx, [esp + 0x10]
push str.HPFS386
push edx
call fcn.004135f0
add esp, 8
test eax, eax
je 0x4068d7
lea eax, [esp + 0x10]
push str.NTFS
push eax
call fcn.004135f0
add esp, 8
test eax, eax
jne 0x4068cc
mov ecx, dword [esp + 0x34]
push ecx
push esi
call fcn.004068f0
add esp, 8
pop esi
pop ebx
add esp, 0x28
ret
mov eax, 1
pop esi
pop ebx
add esp, 0x28
ret
mov edx, dword [esp + 0x34]
push edx
push esi
call fcn.004068f0
add esp, 8
pop esi
pop ebx
add esp, 0x28
ret
Function at 0x406d60
Capabilities:
Get disk size

Disassembly:
sub esp, 0x34
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push edi
xor ebx, ebx
push 1
xor ebp, ebp
mov dword [esp + 0x2c], ebx
call esi
push str.Kernel32.dll
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push str.GetDiskFreeSpaceExA
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x406ddb
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x34]
push ecx
push edx
mov edx, dword [esp + 0x50]
lea ecx, [esp + 0x34]
push ecx
push edx
call eax
test eax, eax
je 0x406ddb
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x406dca
mov eax, dword [esp + 0x30]
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x28], eax
jmp 0x406dd6
mov ecx, dword [esp + 0x38]
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x28], ecx
mov ebx, 1
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [esp + 0x14]
push edx
call esi
test ebx, ebx
je 0x406dfb
mov eax, ebp
mov edx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
push 1
call esi
mov edi, eax
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x50]
lea eax, [esp + 0x18]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
push edi
mov ebx, eax
call esi
test ebx, ebx
jne 0x406e35
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x4c]
mov eax, ebx
mov esi, dword [esp + 0x1c]
cdq
and edx, 0x7f
add eax, edx
sar eax, 7
test ecx, ecx
je 0x406e57
imul eax, dword [esp + 0x20]
jmp 0x406e5a
imul eax, esi
mov edi, dword [esp + 0x10]
imul eax, edi
cdq
test edx, edx
jl 0x406e6f
jg 0x406ea0
cmp eax, 0x7a11f8
ja 0x406ea0
push 0
push 0x80
push edx
push eax
call fcn.00414190
test esi, esi
je 0x406ea0
test edi, edi
je 0x406ea0
test ebx, ebx
je 0x406ea0
test edx, edx
jl 0x406ea0
jg 0x406e93
test eax, eax
jb 0x406ea0
test edx, edx
jg 0x406ea0
jl 0x406ea7
cmp eax, 0x3d08fc00
jbe 0x406ea7
mov eax, 0x3d08fc00
xor edx, edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret

Function at 0x406f20
Capabilities:
Get disk information

Disassembly:
sub esp, 8
push ebx
push esi
push edi
mov ecx, 0x4e
xor eax, eax
mov edi, 0x426cc8
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov byte [esp + 0xd], 0x3a
mov byte [esp + 0xe], 0x5c
mov byte [esp + 0xf], al
mov dword [esp + 0x10], eax
mov esi, 0x426cca
mov bl, byte [esp + 0x10]
lea eax, [esp + 0xc]
add bl, 0x61
push eax
mov byte [esp + 0x10], bl
call edi
cmp eax, 3
mov dword [esi + 2], eax
jne 0x406f79
lea ecx, [esi - 2]
push esi
push ecx
push ebx
call fcn.00406eb0
add esp, 0xc
mov edx, dword [esp + 0x10]
add esi, 0xc
inc edx
cmp esi, 0x426e02
mov dword [esp + 0x10], edx
jl 0x406f51
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x406fa0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x10c
push ebx
push esi
mov esi, dword [esp + 0x118]
push edi
push esi
lea eax, [esp + 0x14]
push 0x4221dc
push eax
call fcn.00413130
mov cl, byte [esi]
mov dl, byte [esi + 1]
mov al, byte [esi + 2]
add esp, 0xc
mov byte [esp + 0xc], cl
lea ecx, [esp + 0xc]
push ecx
mov byte [esp + 0x11], dl
mov byte [esp + 0x12], al
mov byte [esp + 0x13], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
je 0x406ffd
cmp eax, 2
je 0x406ffd
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edi, dword [sym.imp.USER32.dll_CharPrevA]
not ecx
dec ecx
add ecx, esi
push ecx
push esi
call edi
mov cl, byte [eax]
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
cmp cl, 0x20
jne 0x407031
push eax
push esi
call edi
cmp byte [eax], 0x20
je 0x407022
push eax
call ebx
mov byte [eax], 0
mov cl, byte [esi]
mov eax, esi
test cl, cl
je 0x407071
mov edi, dword [esp + 0xc]
cmp cl, 0x5c
jne 0x407047
cmp byte [edi], 0x20
je 0x407065
push eax
mov edi, eax
call ebx
mov cl, byte [eax]
test cl, cl
jne 0x40703d
push esi
call fcn.004067d0
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
push esi
call fcn.004067d0
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x10c
ret