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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x47e1b8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41a1d0
cmp byte [ebx], 0xa
jne 0x41a1d0
or byte [eax + edi + 0x28], 4
jmp 0x41a1d5
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41a2d3
mov al, byte [edx]
cmp al, 0x1a
je 0x41a2b5
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41a204
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41a229
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41a233
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41a1e6
jmp 0x41a2d3
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41a2b0
cmp dword [ebp - 0xc], 0
je 0x41a2b0
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x47e1b8]
test byte [eax + edi + 0x28], 0x48
je 0x41a28a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41a275
mov byte [esi], dl
jmp 0x41a286
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47e1b8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41a2d3
cmp byte [ebp - 1], 0xa
jne 0x41a299
cmp esi, ebx
jne 0x41a299
mov byte [esi], 0xa
jmp 0x41a2d2
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041ad10
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41a2d3
mov byte [esi], 0xd
jmp 0x41a2d2
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x47e1b8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41a2cf
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41a2d3
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41a2dc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x47e1b8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41a31f
cmp word [esi], dx
jne 0x41a31f
or byte [edi + eax + 0x28], 4
jmp 0x41a324
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41a477
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41a457
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41a366
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41a39c
cmp eax, edx
jae 0x41a3a8
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41a33e
jmp 0x41a477
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41a453
cmp dword [ebp - 0x14], 0
je 0x41a453
mov eax, dword [ebx*4 + 0x47e1b8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41a42b
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41a3f4
mov word [esi], cx
jmp 0x41a427
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x47e1b8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x47e1b8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x47e1b8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41a477
pop ebx
cmp word [ebp - 4], bx
jne 0x41a43c
cmp esi, dword [ebp + 0xc]
jne 0x41a43c
mov word [esi], bx
jmp 0x41a474
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041ad10
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41a477
push 0xd
jmp 0x41a470
mov ecx, dword [ebx*4 + 0x47e1b8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41a46e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41a477
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41c26e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41c30b
push ebx
push esi
call fcn.0041c237
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041aebc
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41c2b8
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41c30a
push edi
push eax
call fcn.00416756
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41c2d8
call fcn.00415a1c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41c309
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041aebc
add esp, 0x20
test eax, eax
jne 0x41c2f7
push edi
call fcn.00415a1c
jmp 0x41c2ff
push ebx
call fcn.00415a1c
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x423e00
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x423e2d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x423e2d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x425000
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
push str.Success_created.
push 0x4263fc
mov ebx, ecx
call fcn.00404e70
push str.Success_created.
push 0x47d838
call fcn.00401160
push eax
call fcn.00401e70
push 8
call fcn.004071c7
mov esi, eax
add esp, 0x18
test esi, esi
je 0x425071
push 4
call fcn.004071c7
add esp, 4
test eax, eax
je 0x42504f
mov dword [eax], 0x425bd0
jmp 0x425051
xor eax, eax
lea edi, [esi + 4]
push edi
push 0
push eax
push 0x401e50
push 0
push 0
call fcn.0040f1c6
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x4250ac
jmp 0x425073
xor esi, esi
cmp dword [esi + 4], 0
je 0x4250b9
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [esi + 4], eax
je 0x4250c0
push 0
push dword [esi + 4]
push dword [esi]
call fcn.00405105
add esp, 0xc
test eax, eax
jne 0x4250c7
push 8
push esi
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.004071f7
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
ret
push 6
mov dword [edi], 0
call fcn.004052bb
push 1
call fcn.004052bb
push 5
call fcn.004052bb
push 2
call fcn.004052bb
int3
Function at 0x401a00
Capabilities:
Get file size
Read .ini file

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401a2f
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x10
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x14]
lea edx, [ecx + ecx]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x401a69
pop edi
pop esi
pop ebx
ret 0x10
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push ebx
push eax
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x401a91
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x10
xor esi, esi
cmp word [edi], si
je 0x401acb
push ebp
mov ebp, dword [esp + 0x20]
lea ebx, [edi + esi*2]
push ebp
push ebx
call dword [esp + 0x24]
add esp, 8
test eax, eax
je 0x401aca
inc esi
cmp word [ebx], 0
je 0x401ac3
lea eax, [edi + esi*2]
mov dx, word [eax]
inc esi
add eax, 2
test dx, dx
jne 0x401ab7
cmp word [edi + esi*2], 0
jne 0x401a9d
pop ebp
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
mov eax, 1
pop ebx
ret 0x10

Function at 0x401d70
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x404de0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push 0
push 0x401af0
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0
call sub.MFC42u.DLL_CString::LockBuffer
push eax
push str.Files
mov ecx, esi
call fcn.00401a00
test eax, eax
jne 0x401dd7
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.00404554
xor eax, eax
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 4
push 0xffffffffffffffff
lea ecx, [esp + 0x1c]
call sub.MFC42u.DLL_CString::ReleaseBuffer
lea ecx, [esp + 4]
call sub.MFC42u.DLL_CString::CString_3
mov eax, dword [esp + 0x18]
lea ecx, [esp + 4]
push eax
push 0x32
push 0x32
mov byte [esp + 0x1c], 1
call sub.MFC42u.DLL_CString::GetBuffer
push eax
push 0x40820c
push str.SizeInBytes
push str.Summary
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
lea ecx, [esp + 8]
call sub.MFC42u.DLL_CString::ReleaseBuffer
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.MSVCRT.dll__wtol]
mov dword [esi + 0xc4], eax
mov ecx, dword [0x408518]
mov esi, 1
add esp, 4
cmp ecx, esi
jle 0x401e4a
test eax, eax
jne 0x401e4c
xor esi, esi
lea ecx, [esp + 4]
mov byte [esp + 0x10], 0
call fcn.00404554
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.00404554
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x402770
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x404ec8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebx
push ebp
push esi
push edi
mov esi, ecx
push ecx
lea eax, [esp + 0x88]
xor ebx, ebx
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
mov dword [esp + 0x84], ebx
call sub.MFC42u.DLL_CString::CString_1
mov ecx, esi
call fcn.00401d70
cmp eax, ebx
jne 0x4027d2
lea ecx, [esp + 0x84]
mov dword [esp + 0x7c], 0xffffffff
call fcn.00404554
or eax, 0xffffffff
jmp 0x402892
mov esi, dword [esi + 0xc8]
cmp esi, ebx
je 0x40287c
cmp esi, 0xffffffff
jne 0x402818
push ebx
lea ecx, [esp + 0x18]
call fcn.00403860
lea ecx, [esp + 0x14]
mov byte [esp + 0x7c], 1
call sub.MFC42u.DLL_CDialog::DoModal
cmp eax, 0x3ee
mov byte [esp + 0x7c], bl
lea ecx, [esp + 0x14]
jne 0x402813
call fcn.0040466e
jmp 0x40287c
call fcn.0040466e
mov edi, dword [0x408518]
xor esi, esi
cmp edi, ebx
jle 0x40287c
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [0x408514]
mov edx, dword [ecx + esi*4]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x7c], 2
call sub.MFC42u.DLL_CString::MakeLower
push 0x408220
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::Find_1
test eax, eax
jge 0x40286a
mov eax, dword [0x408514]
mov ecx, dword [eax + esi*4]
mov eax, dword [ecx]
push eax
call ebp
lea ecx, [esp + 0x10]
mov byte [esp + 0x7c], bl
call fcn.00404554
inc esi
cmp esi, edi
jl 0x40282a
lea ecx, [esp + 0x84]
mov dword [esp + 0x7c], 0xffffffff
call fcn.00404554
xor eax, eax
mov ecx, dword [esp + 0x74]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x70
ret 4
Function at 0x402de0
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x404fb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push 1
push 0x22
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
call sub.MFC42u.DLL_CString::CString_4
lea eax, [esp + 0xc]
push 1
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 2
call sub.MFC42u.DLL_CString::Right
mov eax, dword [eax]
mov ecx, dword [esp + 8]
mov esi, dword [sym.imp.MSVCRT.dll_wcscmp]
push eax
push ecx
call esi
add esp, 8
lea ecx, [esp + 0xc]
test eax, eax
setne bl
call fcn.00404554
lea ecx, [esp + 8]
mov byte [esp + 0x18], 1
call fcn.00404554
test bl, bl
je 0x402e6b
mov edx, dword [esp + 0x24]
push 0x5c
lea ecx, [esp + 0x28]
mov eax, dword [edx - 8]
dec eax
push eax
call sub.MFC42u.DLL_CString::SetAt
push 1
push 0x5c
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::CString_4
lea eax, [esp + 0xc]
push 1
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 3
call sub.MFC42u.DLL_CString::Right
mov eax, dword [eax]
mov ecx, dword [esp + 8]
push eax
push ecx
call esi
add esp, 8
lea ecx, [esp + 0xc]
test eax, eax
setne bl
call fcn.00404554
lea ecx, [esp + 8]
mov byte [esp + 0x18], 1
call fcn.00404554
pop esi
test bl, bl
pop ebx
je 0x402eca
push 0x40821c
lea ecx, [esp + 0x20]
call sub.MFC42u.DLL_CString::operator
push 0x5c
lea ecx, [esp + 0x1c]
call sub.MFC42u.DLL_CString::ReverseFind
inc eax
lea edx, [esp + 4]
push eax
push edx
lea ecx, [esp + 0x20]
call sub.MFC42u.DLL_CString::Mid
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x14], 4
call sub.MFC42u.DLL_CString::operator_1
lea ecx, [esp + 4]
mov byte [esp + 0x10], 1
call fcn.00404554
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x402f72
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x402f72
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
call fcn.00402d40
add esp, 8
lea ecx, [esp + 0x18]
mov byte [esp + 0x10], 0
call fcn.00404554
lea ecx, [esp + 0x1c]
mov dword [esp + 0x10], 0xffffffff
call fcn.00404554
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 8
lea ecx, [esp + 0x18]
mov byte [esp + 0x10], 0
call fcn.00404554
lea ecx, [esp + 0x1c]
mov dword [esp + 0x10], 0xffffffff
call fcn.00404554
mov ecx, dword [esp + 8]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x14
ret 8
Function at 0x402fb0
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x404ff0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push esi
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x74], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or esi, 0xffffffff
cmp eax, esi
je 0x403056
mov eax, dword [0x408020]
cmp eax, 0x3e9
je 0x403096
cmp eax, 0x3ea
je 0x403056
push 0
push ecx
lea edx, [esp + 0x84]
mov ecx, esp
mov dword [esp + 0xc], esp
push edx
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [esp + 0x10]
call fcn.00403910
lea ecx, [esp + 8]
mov byte [esp + 0x74], 1
call sub.MFC42u.DLL_CDialog::DoModal
cmp eax, 0x3ea
mov dword [0x408020], eax
jl 0x40307a
cmp eax, 0x3eb
jg 0x40307a
lea ecx, [esp + 0x68]
mov byte [esp + 0x74], 2
call fcn.00404554
lea ecx, [esp + 8]
mov byte [esp + 0x74], 0
call fcn.0040466e
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], esi
call fcn.00404554
mov eax, 1
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop esi
add esp, 0x74
ret 4
lea ecx, [esp + 0x68]
mov byte [esp + 0x74], 3
call fcn.00404554
lea ecx, [esp + 8]
mov byte [esp + 0x74], 0
call fcn.0040466e
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], esi
call fcn.00404554
mov ecx, dword [esp + 0x6c]
xor eax, eax
mov dword fs:[0], ecx
pop esi
add esp, 0x74
ret 4

Function at 0x403110
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x405030
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push ecx
lea eax, [esp + 0x20]
mov ecx, esp
mov dword [esp + 8], esp
push eax
mov dword [esp + 0x18], 1
call sub.MFC42u.DLL_CString::CString_1
mov ecx, esi
call fcn.00402fb0
test eax, eax
je 0x4031a7
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4031a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
call fcn.00402d40
add esp, 8
lea ecx, [esp + 0x18]
mov byte [esp + 0x10], 0
call fcn.00404554
lea ecx, [esp + 0x1c]
mov dword [esp + 0x10], 0xffffffff
call fcn.00404554
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop esi
add esp, 0x10
ret 8
lea ecx, [esp + 0x18]
mov byte [esp + 0x10], 0
call fcn.00404554
lea ecx, [esp + 0x1c]
mov dword [esp + 0x10], 0xffffffff
call fcn.00404554
mov ecx, dword [esp + 8]
mov eax, 1
mov dword fs:[0], ecx
pop esi
add esp, 0x10
ret 8
Function at 0x404370
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x405257
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov dword [esp + 0x10], 0
lea ecx, [esp + 4]
mov dword [esp + 0x1c], 1
call sub.MFC42u.DLL_CString::CString_3
mov eax, 2
lea ecx, [esp + 4]
mov byte [esp + 0x1c], al
mov dword [esp + 0xc], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x104
push eax
push 0x104
call sub.MFC42u.DLL_CString::GetBuffer
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
lea ecx, [esp + 0x38]
call sub.MFC42u.DLL_CString::LockBuffer
mov edx, dword [esp + 0x3c]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0xffffffffffffffff
lea ecx, [esp + 0x2c]
call sub.MFC42u.DLL_CString::ReleaseBuffer
push 0xffffffffffffffff
lea ecx, [esp + 8]
call sub.MFC42u.DLL_CString::ReleaseBuffer
mov esi, dword [esp + 0x24]
lea eax, [esp + 4]
push eax
mov ecx, esi
call sub.MFC42u.DLL_CString::CString_1
mov dword [esp + 0x10], 1
lea ecx, [esp + 4]
mov byte [esp + 0x1c], 1
call fcn.00404554
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c], 0
call fcn.00404554
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
test esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
xor eax, eax
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
mov eax, edx
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
mov eax, esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
mov eax, esi
sub eax, edi
mov esi, eax
test eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
nop
mov ecx, 0x415e52f0
nop
nop
nop
test eax, eax
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x66d76696
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x59a41938
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x19a07e2c
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219