joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ef118
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x14
mov eax, dword [0x10054d80]
push esi
test eax, eax
mov esi, 3
mov byte [esp + 4], 0x10
jne 0x4ef13b
mov eax, 0xc
pop esi
add esp, 0x14
ret 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push edi
test ebp, ebp
je 0x4ef1cd
mov ebx, dword [esp + 0x30]
test ebx, ebx
jle 0x4ef1cd
mov al, byte [esp + 0x2c]
lea edi, [esp + 0x14]
or al, 8
sub edi, ebp
mov byte [esp + 0x2c], al
jmp 0x4ef168
mov al, byte [esp + 0x2c]
mov byte [esp + 0x34], al
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x38]
push ecx
push edx
push 1
push 0x67
push eax
call fcn.004ee6f8
add esp, 0x18
mov esi, eax
push 0x32
call dword [0x10045080]
test esi, esi
jne 0x4ef1cd
cmp ebx, 0x10
jae 0x4ef1a3
mov byte [esp + 0x10], bl
mov al, byte [esp + 0x10]
test al, al
jbe 0x4ef1c0
mov ecx, dword [esp + 0x10]
mov eax, ebp
and ecx, 0xff
mov dl, byte [edi + eax]
xor byte [eax], dl
inc eax
dec ecx
jne 0x4ef1b7
sub ebx, 0x10
add ebp, 0x10
sub edi, 0x10
test ebx, ebx
jg 0x4ef164
pop edi
pop ebp
mov eax, esi
pop ebx
pop esi
add esp, 0x14
ret 0x10

Function at 0x4ef678
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push esi
mov esi, dword [esp + 8]
xor eax, eax
push edi
test esi, esi
jne 0x4ef68b
mov eax, 0x9b6d
jmp 0x4ef6af
xor edx, edx
mov ecx, 0x10054d50
cmp dword [ecx], esi
je 0x4ef6a4
add ecx, 0xb
inc edx
cmp ecx, 0x10054d7c
jl 0x4ef692
jmp 0x4ef6af
lea eax, [edx + edx*4]
mov ax, word [edx + eax*2 + 0x10054d54]
mov edi, dword [esp + 0x14]
xor edx, edx
and edi, 0xff
jle 0x4ef6fe
mov esi, dword [esp + 0x10]
test ah, 0x80
lea ecx, [eax + eax + 1]
jne 0x4ef6cd
lea ecx, [eax + eax]
xor eax, eax
mov al, ch
and ecx, 0xff
and eax, 0xff
movzx cx, byte [ecx + 0x1005213c]
movzx ax, byte [eax + 0x1005213c]
shl eax, 8
add eax, ecx
mov cl, byte [edx + esi]
xor cl, al
mov byte [edx + esi], cl
inc edx
cmp edx, edi
jl 0x4ef6c1
pop edi
pop esi
ret 0xc

Function at 0x4efe08
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
mov ecx, 0x1005213c
push esi
push edi
mov edi, dword [esp + 0x1c]
lea esi, [esp + 8]
mov eax, edi
sub esi, edi
mov dl, byte [ecx]
add ecx, 0x11
mov byte [esi + eax], dl
mov dl, byte [eax]
xor dl, 0xaa
mov byte [eax], dl
inc eax
cmp ecx, 0x1005224c
jl 0x4efe1e
lea eax, [esp + 8]
push edi
push eax
call fcn.004efe58
add esp, 8
pop edi
pop esi
add esp, 0x10
ret

Function at 0x4eff68
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov edx, dword [esp + 4]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
and edi, 0xff
mov ebp, edx
mov dword [esp + 0x1c], 4
test edi, edi
jle 0x4eff9b
mov ecx, dword [esp + 0x18]
mov eax, ebp
sub ecx, edx
mov esi, edi
mov bl, byte [ecx + eax]
xor byte [eax], bl
inc eax
dec esi
jne 0x4eff92
mov eax, dword [esp + 0x1c]
add ebp, 8
dec eax
mov dword [esp + 0x1c], eax
jne 0x4eff84
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4fd768
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap force flags

Disassembly:
mov eax, 0x1004389d
call 0x5053dc
push ecx
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], eax
mov eax, dword [ebp + 8]
mov byte [esi + 4], bl
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
push dword [ebp + 0xc]
lea ecx, [esi + 0x18]
mov dword [ebp - 4], ebx
call fcn.004fcadc
push dword [ebp + 0x10]
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 1
call fcn.004fcadc
push 0xffffffffffffffff
push 0x1005348c
lea ecx, [esi + 0x28]
mov byte [ebp - 4], 2
call fcn.004fcb15
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x30], ebx
mov dword [esi], 0x1004544c
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x4022c0
Capabilities:
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
push esi
push 8
xor eax, eax
shl ecx, 1
pop esi
sar ecx, 1
mov edx, eax
xor edx, ecx
test dl, 1
je 0x4022e0
shr eax, 1
xor eax, 0xedb88320
jmp 0x4022e2
shr eax, 1
dec esi
jne 0x4022cc
pop esi
ret 4

Function at 0x402309
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
mov eax, dword [0x4082a0]
mov edx, ecx
dec ecx
test edx, edx
je 0x40233c
push edi
lea edx, [ecx + 1]
mov ecx, dword [esp + 8]
push esi
movzx esi, byte [ecx]
movzx edi, al
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x407ea0]
xor eax, esi
inc ecx
dec edx
jne 0x402322
pop esi
pop edi
mov dword [0x4082a0], eax
ret

Function at 0x404779
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x40840e]
test eax, eax
jg 0x40478c
and dword [0x4083d4], 0
xor eax, eax
ret
push edi
push esi
mov esi, 0x800
cmp eax, esi
ja 0x404799
mov esi, eax
mov edi, dword [0x4060ac]
push esi
push dword [0x4083d0]
push dword [0x407e04]
call edi
cmp dword [0x407e14], 0
mov ecx, eax
mov dword [0x4083d4], ecx
je 0x404808
cmp ecx, 0xffffffff
je 0x404808
cmp ecx, esi
je 0x404819
test ecx, ecx
jl 0x404808
mov ax, word [0x4078d0]
push dword [0x407e18]
inc ax
push eax
call fcn.00401f2a
mov ecx, dword [0x4083d4]
test ecx, ecx
jne 0x404801
push esi
push dword [0x4083d0]
push dword [0x407e04]
call edi
mov ecx, eax
mov dword [0x4083d4], ecx
cmp ecx, 0xffffffff
je 0x404808
mov esi, ecx
cmp ecx, esi
je 0x404819
push 2
call fcn.00402971
mov ecx, dword [0x4083d4]
sub dword [0x40840e], ecx
mov esi, dword [0x4083d0]
cmp dword [0x407e08], 0
mov dword [0x40841c], esi
je 0x40485b
mov eax, ecx
mov edx, eax
dec eax
test edx, edx
je 0x40485b
lea edi, [eax + 1]
call 0x4060cc
xor byte [esi], al
movzx eax, byte [esi]
push eax
call 0x4060e2
inc esi
dec edi
pop ecx
jne 0x404840
mov ecx, dword [0x4083d4]
mov eax, ecx
dec ecx
pop esi
mov dword [0x4083d4], ecx
pop edi
ret
Function at 0x4015fd
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi]
test eax, eax
je 0x401644
push 0xbb8
push eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
test eax, eax
je 0x401639
lea eax, [ebp - 4]
push eax
push dword [esi]
call dword [sym.imp.kernel32.dll_GetExitCodeThread]
cmp dword [ebp - 4], 0x103
jne 0x401639
push 0
push dword [esi]
call dword [sym.imp.kernel32.dll_TerminateThread]
push dword [esi]
call dword [sym.imp.kernel32.dll_CloseHandle]
and dword [esi], 0
pop esi
leave
ret

Function at 0x401af9
Capabilities:
Create thread

Disassembly:
mov eax, 0x41f5b0
call fcn.0041ef20
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
sub eax, ebx
push esi
mov esi, ecx
je 0x401b9c
dec eax
je 0x401b7c
dec eax
je 0x401b57
dec eax
jne 0x401c60
call fcn.00403070
mov ecx, eax
call fcn.004043a5
test eax, eax
jne 0x401c60
call fcn.00404576
mov dword [eax + 0x29c], 3
call fcn.00404576
mov ecx, eax
call fcn.00404efd
jmp 0x401c60
call fcn.00403070
mov ecx, eax
call fcn.004043a5
test eax, eax
jne 0x401c60
call fcn.00404576
mov dword [eax + 0x29c], 2
jmp 0x401b46
add esi, 0x104
cmp dword [esi], ebx
je 0x401c60
call sub.dvdsys.dll_Ordinal_3
test eax, eax
jne 0x401c60
jmp 0x401c5e
cmp dword [esi + 0x104], ebx
jne 0x401c22
call fcn.00403070
cmp dword [eax + 0x10], ebx
je 0x401c22
call sub.dvdsys.dll_Ordinal_3
test eax, eax
je 0x401c22
call sub.dvdsys.dll_Ordinal_3
cmp dword [ebp + 0xc], eax
je 0x401c22
push edi
lea ecx, [ebp - 0x10]
call sub.mfc42.dll_CString::CString_2
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
call sub.mfc42.dll_CString::CString_2
push 0xcc
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call sub.mfc42.dll_CString::LoadStringA
mov edi, dword [ebp + 8]
call sub.dvdsys.dll_Ordinal_4
push eax
lea eax, [ebp - 0x10]
push edi
push eax
call sub.mfc42.dll_CString::Format_1
add esp, 0xc
push ebx
push 0x40040
push dword [ebp - 0x10]
call sub.mfc42.dll_AfxMessageBox_1
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call sub.mfc42.dll_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.mfc42.dll_CString::CString
pop edi
call sub.dvdsys.dll_Ordinal_3
cmp dword [ebp + 0xc], eax
jne 0x401c60
add esi, 0x100
mov ecx, esi
call fcn.004015fd
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp + 0xc]
push 0x401d50
push ebx
push ebx
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
cmp eax, ebx
mov dword [esi], eax
je 0x401c60
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [esi], ebx
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4023de
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
and dword [ebp - 0xc], 0
push ebx
push esi
push edi
lea eax, [ebp - 3]
push 0x42a52c
push eax
mov esi, ecx
call sub.msvcrt.dll__mbscpy
mov edi, dword [sym.imp.user32.dll_SendMessageA]
pop ecx
pop ecx
mov dword [ebp - 8], 2
mov al, byte [ebp - 8]
add al, 0x41
mov byte [ebp - 4], al
lea eax, [ebp - 4]
push eax
call dword [sym.imp.kernel32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x402530
push 0
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 4]
call fcn.0040ddb6
add esp, 0xc
test eax, eax
je 0x402530
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
shrd ebx, eax, 0x14
shr eax, 0x14
cmp ebx, 0x12c
jbe 0x402530
movsx eax, byte [ebp - 4]
push ebx
push eax
push str.__c:___5d_MB
lea eax, [ebp - 0x11c]
push 0x104
push eax
call dword [sym.imp.msvcrt.dll__snprintf]
and byte [ebp - 0x19], 0
add esp, 0x14
lea eax, [ebp - 0x11c]
push eax
push 0xffffffffffffffff
push 0x14a
push dword [esi + 0x23c]
call edi
movsx edx, byte [ebp - 4]
xor ecx, ecx
mov cx, bx
movzx edx, dx
mov dword [ebp - 0x10], eax
shl ecx, 0x10
or ecx, edx
push ecx
push eax
push 0x151
push dword [esi + 0x23c]
call edi
cmp dword [ebp - 0xc], 0
jne 0x402530
call fcn.00403070
mov dl, byte [ebp - 4]
cmp byte [eax + 0x2c], dl
jne 0x4024e5
push 0
push dword [ebp - 0x10]
push 0x14e
push dword [esi + 0x23c]
call edi
mov dword [ebp - 0xc], 1
jmp 0x402521
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [esi + 0x4e4]
jb 0x402530
mov eax, dword [ebp - 0x18]
ja 0x4024fd
cmp eax, dword [esi + 0x4e0]
jbe 0x402530
push 0
push dword [ebp - 0x10]
mov byte [esi + 0x4dc], dl
push 0x14e
push dword [esi + 0x23c]
mov dword [esi + 0x4e0], eax
mov dword [esi + 0x4e4], ecx
call edi
mov al, byte [ebp - 4]
mov byte [esi + 0x4ec], al
mov dword [esi + 0x4f0], ebx
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x1a
jl 0x40240d
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403a55
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
lea eax, [ebp - 3]
push 0x42a52c
push eax
call sub.msvcrt.dll__mbscpy
pop ecx
xor bl, bl
xor edi, edi
pop ecx
xor esi, esi
mov dword [ebp - 8], 2
mov al, byte [ebp - 8]
add al, 0x41
mov byte [ebp - 4], al
lea eax, [ebp - 4]
push eax
call dword [sym.imp.kernel32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x403abc
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
call fcn.0040ddb6
add esp, 0xc
test eax, eax
je 0x403abc
cmp dword [ebp - 0xc], esi
jb 0x403abc
ja 0x403ab3
cmp dword [ebp - 0x10], edi
jbe 0x403abc
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp - 0xc]
mov bl, byte [ebp - 4]
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x1a
jl 0x403a7b
shrd edi, esi, 0x14
mov eax, edi
shr esi, 0x14
cmp eax, 0x12c
jb 0x403af9
push 0x64
xor edx, edx
pop ecx
div ecx
mov ecx, 0x320
imul eax, eax, 0x64
cmp eax, ecx
jbe 0x403aea
mov eax, ecx
mov ecx, dword [ebp + 8]
mov byte [ecx], bl
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor eax, eax
inc eax
jmp 0x403b07
mov eax, dword [ebp + 8]
and byte [eax], 0
mov eax, dword [ebp + 0xc]
and dword [eax], 0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40427d
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, ecx
cmp dword [esi + 0x28], 0
jne 0x4042d2
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.kernel32.dll_GlobalMemoryStatus]
shr dword [ebp - 0x18], 0x14
call fcn.0040d0af
mov ecx, dword [ebp - 0x18]
neg eax
sbb eax, eax
and eax, 0x14
add eax, 0x50
lea edx, [eax + 0x20]
cmp ecx, edx
jae 0x4042b9
and dword [esi + 0x20], 0
jmp 0x4042be
sub ecx, eax
mov dword [esi + 0x20], ecx
mov eax, 0x320
cmp dword [esi + 0x20], eax
jbe 0x4042cb
mov dword [esi + 0x20], eax
mov dword [esi + 0x28], 1
mov eax, dword [esi + 0x20]
pop esi
leave
ret
Function at 0x404c19
Capabilities:
Shutdown system

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0xd4], 0
je 0x404c45
call fcn.00403070
cmp dword [eax + 0x244], 0
mov ecx, dword [esi + 0xd4]
je 0x404c40
call fcn.0041b480
jmp 0x404c45
call fcn.0041b440
call fcn.00403070
mov ecx, dword [0x42c798]
cmp ecx, dword [eax + 0x69c]
pop esi
je 0x404c76
push 0xffffffffffffffff
push 0x44
push 0xec
call sub.mfc42.dll_AfxMessageBox
cmp eax, 6
jne 0x404c76
push 0
push 2
call dword [sym.imp.user32.dll_ExitWindowsEx]
ret

Function at 0x405269
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423230
push 0x41ef40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov esi, ecx
mov dword [ebp - 0x1c], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.00403070
mov ecx, eax
call fcn.00405449
mov edi, eax
mov dword [ebp - 0x20], edi
cmp edi, ebx
je 0x405328
push 1
push edi
call fcn.0040e5b9
mov dword [esi + 0x2b4], eax
push 2
push edi
call fcn.0040e5b9
mov dword [esi + 0x2b8], eax
push 3
push edi
call fcn.0040e5b9
mov dword [esi + 0x2bc], eax
push 4
push edi
call fcn.0040e5b9
mov dword [esi + 0x2c0], eax
push 5
push edi
call fcn.0040e5b9
add esp, 0x28
mov dword [esi + 0x2c4], eax
cmp dword [esi + 0x2b4], ebx
je 0x405328
cmp dword [esi + 0x2b8], ebx
je 0x405328
cmp dword [esi + 0x2bc], ebx
je 0x405328
cmp dword [esi + 0x2c0], ebx
je 0x405328
cmp eax, ebx
je 0x405328
push ebx
call eax
pop ecx
or dword [ebp - 4], 0xffffffff
jmp 0x405441
or dword [ebp - 4], 0xffffffff
jmp 0x40533e
call fcn.0040e525
push str.DVDThunk.dll
call fcn.0040ec8c
pop ecx
mov dword [esi + 0x2b0], eax
cmp eax, 0x80000000
jae 0x405378
push eax
call fcn.0040ec9d
pop ecx
call fcn.0040e538
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
call fcn.0040e538
mov edi, dword [esi + 0x2b0]
call fcn.00403070
mov dword [eax + 0x6a0], edi
call fcn.00403070
mov ecx, eax
call fcn.00403668
push 1
push dword [esi + 0x2b0]
call fcn.0040e5b9
mov dword [esi + 0x2b4], eax
push 2
push dword [esi + 0x2b0]
call fcn.0040e5b9
mov dword [esi + 0x2b8], eax
push 3
push dword [esi + 0x2b0]
call fcn.0040e5b9
mov dword [esi + 0x2bc], eax
push 4
push dword [esi + 0x2b0]
call fcn.0040e5b9
mov dword [esi + 0x2c0], eax
push 5
push dword [esi + 0x2b0]
call fcn.0040e5b9
add esp, 0x28
mov dword [esi + 0x2c4], eax
cmp dword [esi + 0x2b4], ebx
je 0x405367
cmp dword [esi + 0x2b8], ebx
je 0x405367
cmp dword [esi + 0x2bc], ebx
je 0x405367
mov ecx, dword [esi + 0x2c0]
cmp ecx, ebx
je 0x405367
cmp eax, ebx
je 0x405367
push 1
call ecx
pop ecx
call dword [esi + 0x2b4]
xor eax, eax
inc eax
jmp 0x405369
Function at 0x405db6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423240
push 0x41ef40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x928
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 0x1c], 0
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x405df0
mov dword [edi], 1
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x405dfa
or byte [ebx], 0xff
mov eax, dword [ebp + 8]
mov byte [ebp - 0x1e], al
and byte [ebp - 0x1d], 0
and dword [ebp - 4], 0
push eax
call fcn.004060f5
pop ecx
test eax, eax
je 0x405ede
lea eax, [ebp - 0x1e]
push eax
call fcn.004099a0
pop ecx
mov esi, eax
mov dword [ebp - 0x24], esi
test esi, esi
je 0x405e66
lea eax, [ebp - 0x25]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0
push dword [esi + 4]
call fcn.00409bf0
add esp, 0x10
mov dword [ebp - 0x30], eax
test eax, eax
jl 0x405e5f
test edi, edi
je 0x405e4f
mov eax, dword [ebp - 0x2c]
mov dword [edi], eax
test ebx, ebx
je 0x405e58
mov al, byte [ebp - 0x25]
mov byte [ebx], al
mov dword [ebp - 0x1c], 1
push esi
call fcn.00409ba0
pop ecx
cmp dword [ebp - 0x1c], 0
jne 0x405ede
movsx eax, byte [ebp + 8]
push eax
push str._c:VIDEO_TSVIDEO_TS.IFO
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.msvcrt.dll_sprintf]
push 0x42acbc
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.msvcrt.dll_fopen]
add esp, 0x14
mov esi, eax
mov dword [ebp - 0x138], esi
test esi, esi
je 0x405ede
push esi
push 0x800
xor edi, edi
inc edi
push edi
lea eax, [ebp - 0x938]
push eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
test eax, eax
je 0x405ecd
mov al, byte [ebp - 0x915]
mov byte [ebx], al
mov dword [ebp - 0x1c], edi
push esi
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
jmp 0x405ede
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4061fa
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 3]
push 0x42a52c
push eax
xor bl, bl
call sub.msvcrt.dll__mbscpy
pop ecx
pop ecx
mov dword [ebp - 8], 2
mov al, byte [ebp - 8]
add al, 0x41
mov byte [ebp - 4], al
lea eax, [ebp - 4]
push eax
call dword [sym.imp.kernel32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x40624e
push 0
push 0
push dword [ebp - 4]
call fcn.00405d53
mov ecx, eax
call fcn.00405db6
test eax, eax
jne 0x40625c
test bl, bl
jne 0x40624e
mov bl, byte [ebp - 4]
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x1a
jl 0x406219
mov al, bl
pop ebx
leave
ret
mov al, byte [ebp - 4]
jmp 0x406259

Function at 0x406261
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
lea eax, [ebp - 3]
push 0x42a52c
push eax
xor esi, esi
call sub.msvcrt.dll__mbscpy
pop ecx
pop ecx
push 2
pop ebx
mov al, bl
add al, 0x41
mov byte [ebp - 4], al
lea eax, [ebp - 4]
push eax
call dword [sym.imp.kernel32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x406293
inc esi
inc ebx
cmp ebx, 0x1a
jl 0x40627c
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x406409
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
push esi
push 0x104
lea eax, [ebp - 0x30c]
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
mov esi, dword [sym.imp.msvcrt.dll_sprintf]
push str.WNASPI32.DLL
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x104]
push str._s_s
push eax
call esi
lea eax, [ebp - 0x104]
push eax
call fcn.0040dd34
add esp, 0x14
test eax, eax
jne 0x406496
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push 0x42ad30
push eax
call esi
lea eax, [ebp - 0x208]
push eax
call fcn.0040dd34
add esp, 0x10
test eax, eax
jbe 0x406496
push 0
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.kernel32.dll_CopyFileA]
pop esi
leave
ret

Function at 0x408f3e
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
and dword [ebp - 0xc], 0
push ebx
push esi
push edi
lea eax, [ebp - 3]
push 0x42a52c
push eax
mov edi, ecx
call sub.msvcrt.dll__mbscpy
mov esi, dword [sym.imp.user32.dll_SendMessageA]
pop ecx
pop ecx
mov dword [ebp - 8], 2
mov ebx, 0x14e
mov al, byte [ebp - 8]
add al, 0x41
mov byte [ebp - 4], al
lea eax, [ebp - 4]
push eax
call dword [sym.imp.kernel32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x40905b
push 0x104
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 4]
call fcn.0040dd71
add esp, 0xc
test eax, eax
je 0x408fd0
lea eax, [ebp - 0x218]
push eax
movsx eax, byte [ebp - 4]
push eax
push str.__c:___s
lea eax, [ebp - 0x114]
push 0x104
push eax
call dword [sym.imp.msvcrt.dll__snprintf]
add esp, 0x14
jmp 0x408fef
movsx eax, byte [ebp - 4]
push eax
push str.__c:_
lea eax, [ebp - 0x114]
push 0x104
push eax
call dword [sym.imp.msvcrt.dll__snprintf]
add esp, 0x10
and byte [ebp - 0x11], 0
lea eax, [ebp - 0x114]
push eax
push 0xffffffffffffffff
push 0x14a
push dword [edi + 0xc4]
call esi
movsx ecx, byte [ebp - 4]
push ecx
push eax
push 0x151
push dword [edi + 0xc4]
mov dword [ebp - 0x10], eax
call esi
call fcn.00403070
mov al, byte [eax]
cmp al, byte [ebp - 4]
jne 0x409039
push 0
push dword [ebp - 0x10]
push ebx
push dword [edi + 0xc4]
call esi
xor eax, eax
cmp dword [ebp - 0xc], eax
jne 0x40905b
push eax
push eax
push dword [ebp - 4]
call fcn.00405d53
mov ecx, eax
call fcn.00405db6
test eax, eax
je 0x40905b
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x1a
jl 0x408f72
push 0
push 0
push 0x147
push dword [edi + 0xc4]
call esi
cmp eax, 0xffffffff
jne 0x40908c
push 0
push dword [ebp - 0xc]
push ebx
push dword [edi + 0xc4]
call esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409160
Capabilities:
Resolve path using msvcrt

Disassembly:
mov eax, 0x42027c
call fcn.0041ef20
sub esp, 0x338
push ebx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
push 0x71
mov dword [ebp - 0x20], esi
call sub.mfc42.dll_CDialog::CDialog_1
and dword [ebp - 4], 0
lea ecx, [esi + 0x64]
call sub.mfc42.dll_CString::CString_2
lea ecx, [esi + 0x68]
mov byte [ebp - 4], 1
call sub.mfc42.dll_CString::CString_2
lea ecx, [esi + 0x6c]
mov byte [ebp - 4], 2
call sub.mfc42.dll_CString::CString_2
lea ecx, [esi + 0x74]
mov byte [ebp - 4], 3
call sub.mfc42.dll_CString::CString_2
mov byte [ebp - 4], 4
mov dword [esi], 0x423fc0
mov dword [esi + 0x60], 1
call sub.mfc42.dll_AfxGetModuleState
mov ebx, dword [eax + 4]
push 0
push str.StartUp
mov edi, 0x423f38
push edi
mov ecx, ebx
call sub.mfc42.dll_CWinApp::GetProfileIntA
neg eax
push 0
sbb eax, eax
push str.FilePos
inc eax
push edi
mov ecx, ebx
mov dword [esi + 0x60], eax
call sub.mfc42.dll_CWinApp::GetProfileIntA
mov dword [ebp - 0x1c], eax
mov dword [esi + 0x78], 1
call dword [sym.imp.msvcrt.dll___p__pgmptr]
mov eax, dword [eax]
lea ecx, [ebp - 0x244]
push ecx
lea ecx, [ebp - 0x344]
push ecx
lea ecx, [ebp - 0x144]
push ecx
lea ecx, [ebp + 8]
push ecx
push eax
call dword [sym.imp.msvcrt.dll__splitpath]
add esp, 0x14
lea ecx, [ebp - 0x10]
call sub.mfc42.dll_CString::CString_2
push str.Tips.txt
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push str._s_s_s
push eax
mov byte [ebp - 4], 5
call sub.mfc42.dll_CString::Format_1
push 0x42ae70
push dword [ebp - 0x10]
call dword [sym.imp.msvcrt.dll_fopen]
add esp, 0x1c
test eax, eax
mov dword [esi + 0x70], eax
jne 0x409275
and dword [esi + 0x78], eax
jmp 0x40931b
lea ecx, [ebp - 0x44]
push ecx
push dword [eax + 0x10]
call dword [sym.imp.msvcrt.dll__fstat]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.msvcrt.dll_ctime]
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
call sub.mfc42.dll_CString::CString_1
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call sub.mfc42.dll_CString::TrimRight
push 0
push str.TimeStamp
push edi
lea eax, [ebp - 0x18]
push eax
mov ecx, ebx
call sub.mfc42.dll_CWinApp::GetProfileStringA
push dword [ebp - 0x18]
mov byte [ebp - 4], 7
push dword [ebp - 0x14]
call dword [sym.imp.msvcrt.dll__mbscmp]
test eax, eax
pop ecx
pop ecx
je 0x4092e1
push dword [ebp - 0x14]
and dword [ebp - 0x1c], 0
push str.TimeStamp
push edi
mov ecx, ebx
call sub.mfc42.dll_CWinApp::WriteProfileStringA
push 0
push dword [ebp - 0x1c]
push dword [esi + 0x70]
call dword [sym.imp.msvcrt.dll_fseek]
add esp, 0xc
test eax, eax
je 0x4092fc
and dword [esi + 0x78], 0
jmp 0x409303
mov ecx, esi
call fcn.00409445
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call sub.mfc42.dll_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call sub.mfc42.dll_CString::CString
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call sub.mfc42.dll_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4