joyce8/EMBER2024-capa huggingface dataset:
Function at 0x496943
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x4ea4ec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov edx, ecx
push esi
xor esi, esi
mov dword [ebp - 0x408], edx
push edi
cmp byte [edx + 5], 0
mov edi, dword [ebp + 0xc]
jne 0x49697c
push dword [edx]
push edi
push 1
push ebx
jmp 0x496a63
cmp edi, 0x200
jb 0x4969f3
mov ecx, esi
movzx eax, byte [ecx + ebx]
mov word [ebp + ecx*2 - 0x404], ax
movzx eax, byte [ecx + ebx + 1]
mov word [ebp + ecx*2 - 0x402], ax
movzx eax, byte [ecx + ebx + 2]
mov word [ebp + ecx*2 - 0x400], ax
movzx eax, byte [ecx + ebx + 3]
mov word [ebp + ecx*2 - 0x3fe], ax
add ecx, 4
mov eax, 0x200
cmp ecx, eax
jne 0x496986
push dword [edx]
push eax
lea eax, [ebp - 0x404]
push 2
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
cmp eax, 0x200
jne 0x496a70
mov edx, dword [ebp - 0x408]
sub edi, eax
add ebx, eax
cmp edi, eax
jae 0x496984
test edi, edi
je 0x496a7f
mov edx, edi
mov ecx, esi
and edx, 0xfffffffc
je 0x496a4d
movzx eax, byte [ecx + ebx]
mov word [ebp + ecx*2 - 0x404], ax
movzx eax, byte [ecx + ebx + 1]
mov word [ebp + ecx*2 - 0x402], ax
movzx eax, byte [ecx + ebx + 2]
mov word [ebp + ecx*2 - 0x400], ax
movzx eax, byte [ecx + ebx + 3]
mov word [ebp + ecx*2 - 0x3fe], ax
add ecx, 4
cmp ecx, edx
jne 0x496a04
jmp 0x496a4d
movzx eax, byte [ecx + ebx]
mov word [ebp + ecx*2 - 0x404], ax
inc ecx
cmp ecx, edi
jne 0x496a40
mov eax, dword [ebp - 0x408]
push dword [eax]
lea eax, [ebp - 0x404]
push edi
push 2
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
cmp eax, edi
je 0x496a7f
call dword [sym.imp.msvcrt.dll__errno]
mov esi, dword [eax]
test esi, esi
jne 0x496a7f
or esi, 0xffffffff
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c4ec0
leave
ret 8
Function at 0x49c048
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x4cd678
call fcn.004c58b8
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x49c0a8
cmp eax, 0xffffffff
je 0x49c0a8
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x49c0a1
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x49c0a1
cmp edx, 0x10000000
jae 0x49c0a1
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x49c09e
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x49c7b9
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], edx
push ebx
push 0x80
push 3
push ebx
push 1
mov eax, ecx
push SysReAllocString
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
lea eax, [esi + 1]
cmp eax, 1
jbe 0x49c84e
lea eax, [ebp - 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x49c84e
push ebx
push eax
push dword [ebp - 0xc]
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
lea eax, [edi + 1]
cmp eax, 1
jbe 0x49c83f
push ebx
push dword [ebp - 0x10]
push ebx
push ebx
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
test eax, eax
je 0x49c83f
push dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov edx, eax
push dword [ebp - 0x10]
call fcn.0049c6e5
mov bl, al
lea eax, [edi + 1]
cmp eax, 1
jbe 0x49c84e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi + 1]
cmp eax, 1
jbe 0x49c85d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x49c93b
Capabilities:
Delete file

Disassembly:
push 0x28
mov eax, 0x4c8ce3
call fcn.004c5434
mov esi, ecx
lea ecx, [ebp - 0x14]
call dword [sym.imp.MFC42u.dll_CString::CString]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call dword [sym.imp.MFC42u.dll_CString::CString]
xor ebx, ebx
lea ecx, [ebp - 0x34]
inc ebx
mov byte [ebp - 4], bl
call dword [sym.imp.MFC42u.dll_CFileFind::CFileFind]
push esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call dword [0x4f63d8]
push esi
lea ecx, [ebp - 0x10]
call dword [0x4f63d8]
push 0x413400
lea ecx, [ebp - 0x14]
call dword [0x4f6630]
push 0
push dword [ebp - 0x14]
lea ecx, [ebp - 0x34]
call dword [sym.imp.MFC42u.dll_CFileFind::FindFile]
test eax, eax
je 0x49ca67
push dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
call dword [0x4f63d8]
lea ecx, [ebp - 0x34]
call dword [sym.imp.MFC42u.dll_CFileFind::FindNextFileW]
mov esi, 0x40af9c
jmp 0x49ca16
call dword [0x4f63d8]
push esi
lea ecx, [ebp - 0x10]
call dword [0x4f6630]
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x34]
call dword [sym.imp.MFC42u.dll_CFileFind::GetFileName]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call dword [0x4f63d0]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call dword [0x4f63ac]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
lea ecx, [ebp - 0x34]
sbb eax, eax
and ebx, eax
call dword [sym.imp.MFC42u.dll_CFileFind::FindNextFileW]
lea ecx, [ebp - 0x10]
push dword [ebp - 0x14]
test eax, eax
jne 0x49c9c6
call dword [0x4f63d8]
push esi
lea ecx, [ebp - 0x10]
call dword [0x4f6630]
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x34]
call dword [sym.imp.MFC42u.dll_CFileFind::GetFileName]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call dword [0x4f63d0]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call dword [0x4f63ac]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
and ebx, eax
lea ecx, [ebp - 0x34]
call dword [sym.imp.MFC42u.dll_CFileFind::Close]
lea ecx, [ebp - 0x34]
call dword [0x4f67b8]
lea ecx, [ebp - 0x10]
call dword [0x4f63ac]
lea ecx, [ebp - 0x14]
call dword [0x4f63ac]
mov eax, ebx
call fcn.004c5402
ret
Function at 0x49e948
Capabilities:
Read .ini file

Disassembly:
push 0xfb8
mov eax, 0x4c8f45
call fcn.004c5467
mov esi, ecx
xor edi, edi
mov dword [ebp - 0xfc4], edi
mov ecx, dword [esi + 8]
call dword [sym.imp.MFC42u.dll_CStringList::RemoveAll]
push dword [esi + 0x14]
lea eax, [ebp - 0xfb0]
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
lea ecx, [ebp - 0xfb8]
mov dword [esi + 0x10], eax
call dword [sym.imp.MFC42u.dll_CString::CString]
and dword [ebp - 4], edi
xor ebx, ebx
cmp dword [esi + 0x10], ebx
jle 0x49ea82
movzx eax, word [ebp + ebx*2 - 0xfb0]
test ax, ax
je 0x49e9e4
push eax
lea eax, [ebp - 0xfb8]
push eax
lea eax, [ebp - 0xfc0]
push eax
call dword [sym.imp.MFC42u.dll_operator_2]
push eax
lea ecx, [ebp - 0xfb8]
mov byte [ebp - 4], 1
call dword [sym.imp.MFC42u.dll_CString::operator]
lea ecx, [ebp - 0xfc0]
mov byte [ebp - 4], 0
call dword [0x4f63ac]
jmp 0x49ea78
push 0x40c306
lea ecx, [ebp - 0xfbc]
call dword [sym.imp.MFC42u.dll_CString::CString_3]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xfb8]
push dword [ebp - 0xfbc]
or edi, 1
mov dword [ebp - 0xfc4], edi
call fcn.004757e3
test eax, eax
je 0x49ea31
push 0x24
lea ecx, [ebp - 0xfb8]
call dword [sym.imp.MFC42u.dll_CString::Find_1]
mov byte [ebp - 0xfb1], 1
cmp eax, 0xffffffff
je 0x49ea38
mov byte [ebp - 0xfb1], 0
and dword [ebp - 4], 0
lea ecx, [ebp - 0xfbc]
and edi, 0xfffffffe
call dword [0x4f63ac]
cmp byte [ebp - 0xfb1], 0
je 0x49ea67
mov ecx, dword [esi + 8]
lea eax, [ebp - 0xfb8]
push eax
push dword [ecx + 8]
call dword [sym.imp.MFC42u.dll_CStringList::InsertAfter]
push 0x40c306
lea ecx, [ebp - 0xfb8]
call dword [sym.imp.MFC42u.dll_CString::operator_2]
inc ebx
cmp ebx, dword [esi + 0x10]
jl 0x49e99c
mov esi, dword [esi + 8]
lea ecx, [ebp - 0xfb8]
call dword [0x4f63ac]
mov eax, esi
call fcn.004c5416
ret 4
Function at 0x4a7b16
Capabilities:
Parse credit card information

Disassembly:
mov edi, edi
push ecx
push ebx
push esi
mov esi, ecx
xor cl, cl
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x4a7c6b
mov edx, 0x10000000
cmp eax, 0x7c
je 0x4a7c6b
cmp eax, 0x29
jne 0x4a7b51
cmp dword [esi + 0x10], 0
jne 0x4a7c6b
test dword [esi + 0x50], edx
je 0x4a7c71
cmp eax, 0x2e
jne 0x4a7b6c
push 5
lea ecx, [esi + 0x24]
call fcn.004a7d77
mov ecx, esi
call fcn.004a7aeb
jmp 0x4a7c55
cmp eax, 0x5c
jne 0x4a7bc1
mov ecx, esi
call fcn.004a7aeb
test byte [esi + 0x50], 0x80
je 0x4a7bb5
movzx eax, word [esi + 0x48]
cmp eax, 0x62
jne 0x4a7b9d
push 4
lea ecx, [esi + 0x24]
call fcn.004a7d77
mov ecx, esi
call fcn.004a7aeb
jmp 0x4a7c5c
cmp eax, 0x42
jne 0x4a7bb5
push 4
lea ecx, [esi + 0x24]
call fcn.004a7d77
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
jmp 0x4a7b91
mov ecx, esi
call fcn.004a87fc
jmp 0x4a7c55
cmp eax, 0x5b
jne 0x4a7be1
mov ecx, esi
call fcn.004a7aeb
mov ecx, esi
call fcn.004a87ae
cmp dword [esi + 0x4c], 0x5d
je 0x4a7b60
push 4
jmp 0x4a7c73
cmp eax, 0x28
jne 0x4a7bfe
mov ecx, esi
call fcn.004a7aeb
mov ecx, esi
call fcn.004a88ea
cmp dword [esi + 0x4c], 0x29
mov bl, al
jne 0x4a7c71
jmp 0x4a7c4a
cmp eax, 0x5e
jne 0x4a7c07
push 2
jmp 0x4a7b89
cmp eax, 0x24
jne 0x4a7c13
push 3
jmp 0x4a7b89
cmp eax, 0x2a
je 0x4a7c67
cmp eax, 0x2b
je 0x4a7c67
cmp eax, 0x3f
je 0x4a7c67
cmp eax, 0x7b
je 0x4a7c67
cmp eax, 0x7d
jne 0x4a7c31
test dword [esi + 0x50], edx
je 0x4a7c63
cmp eax, 0x5d
jne 0x4a7c3b
test dword [esi + 0x50], edx
je 0x4a7bda
movzx eax, word [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.004a8ab9
mov bl, 1
mov ecx, esi
call fcn.004a7aeb
test bl, bl
je 0x4a7c5c
mov ecx, esi
call fcn.004a89ed
mov cl, 1
jmp 0x4a7b1f
push 6
jmp 0x4a7c73
push 0xa
jmp 0x4a7c73
pop esi
mov al, cl
pop ebx
pop ecx
ret
push 5
call fcn.004a6705
int3

Function at 0x4aa92b
Capabilities:
Delete file

Disassembly:
mov edi, edi
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x34], 0
je 0x4aa940
push dword [edi + 0x34]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
or dword [edi], 0xffffffff
lea ecx, [edi + 0xc]
or dword [edi + 4], 0xffffffff
pop edi
pop esi
jmp dword [0x4f63ac]
Function at 0x4aa96c
Capabilities:
Delete file
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov al, byte [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0xc]
mov byte [esi + 0x38], al
lea eax, [ebp - 0x24]
push eax
mov dword [esi + 0x40], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
mov cl, byte [esi + 0x38]
shr eax, 0xb
test cl, cl
je 0x4aa9a7
shr edi, 0xb
imul edi, eax
shl edi, 6
jmp 0x4aa9ac
mov edi, eax
shl edi, 0xc
mov dword [esi + 0x30], edi
mov dword [esi + 0x1c], edi
test cl, cl
jne 0x4aaa47
call dword [sym.imp.MFC42u.dll_AfxGetModuleState]
push 0x4141f0
mov eax, dword [eax + 4]
push dword [eax + 0xc4]
call dword [sym.imp.msvcrt.dll__wtempnam]
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x4aaa3b
lea edi, [esi + 0xc]
push ebx
mov ecx, edi
call dword [0x4f63d8]
push ebx
call dword [sym.imp.msvcrt.dll_free]
pop ecx
xor eax, eax
push eax
push 0x10000100
push 2
push eax
push eax
push 0xc0000000
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
or ebx, 0xffffffff
mov dword [esi], eax
cmp eax, ebx
je 0x4aaa3b
mov ecx, dword [esi + 0x1c]
shl ecx, 0xb
push 0
push ecx
mov ecx, eax
call fcn.004ab06b
pop ecx
pop ecx
mov ecx, dword [esi]
test eax, eax
je 0x4aaa42
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esi], ebx
xor eax, eax
jmp 0x4aab11
mov edi, dword [esi + 0x1c]
jmp 0x4aaa4e
or ebx, 0xffffffff
mov dword [esi], ebx
mov ecx, ebx
mov eax, edi
mov dword [esi + 0x18], edi
mov edx, 0x800
xor edi, edi
mul edx
push edi
push eax
push edx
push 0x8000004
push edi
push ecx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ecx, eax
mov dword [esi + 4], ecx
test ecx, ecx
jne 0x4aaa8d
cmp byte [esi + 0x38], al
jne 0x4aaa39
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi + 0xc]
jmp 0x4aaa33
mov eax, dword [esi + 0x1c]
shl eax, 0xb
push eax
push edi
push edi
push 0xf001f
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x34], eax
test eax, eax
jne 0x4aaaba
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esi + 0x38], 0
jne 0x4aaa3b
jmp 0x4aaa80
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 8], eax
test eax, eax
jne 0x4aab04
cmp dword [esi + 0x34], edi
je 0x4aaadc
push dword [esi + 0x34]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 0x34], edi
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esi + 0x38], 0
jne 0x4aaafc
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esi + 4], ebx
jmp 0x4aaa39
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor eax, eax
inc eax
mov dword [esi + 0x10], eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4aab18
Capabilities:
Delete file
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x814
push ebx
push esi
push edi
push dword [ebp + 8]
mov ebx, ecx
lea ecx, [esp + 0x24]
call fcn.004aa71b
push 0xffffffffffffffff
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [ebx + 0x38], 0
je 0x4aab80
mov edi, dword [ebx + 0x3c]
lea esi, [esp + 0x20]
and dword [0x4eb314], 0
mov ecx, 0x200
shl edi, 0xb
add edi, dword [ebx + 0x34]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x14]
cmp eax, dword [ebx + 0x1c]
jae 0x4aab6f
inc eax
mov dword [ebx + 0x14], eax
mov eax, dword [ebx + 0x3c]
xor edx, edx
inc eax
div dword [ebx + 0x1c]
mov dword [ebx + 0x3c], edx
jmp 0x4aac81
xor esi, esi
cmp dword [ebx + 0x18], esi
je 0x4aabed
mov edi, dword [ebx + 0x14]
lea ecx, [edi + 1]
cmp ecx, dword [ebx + 0x20]
jb 0x4aabb9
mov eax, dword [ebx + 0x1c]
add eax, dword [ebx + 0x20]
cmp ecx, eax
jae 0x4aabb9
sub edi, dword [ebx + 0x20]
lea esi, [esp + 0x20]
shl edi, 0xb
mov ecx, 0x200
add edi, dword [ebx + 0x34]
and dword [0x4eb314], 0
rep movsd dword es:[edi], dword [esi]
jmp 0x4aabe5
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x1c]
push ecx
push ecx
mov ecx, dword [ebx]
lea edx, [esp + 0x28]
dec eax
shl eax, 0xb
inc dword [0x4eb314]
push esi
push eax
call fcn.004ab0a3
add esp, 0x10
test eax, eax
jne 0x4aac81
dec dword [ebx + 0x18]
jmp 0x4aac7e
inc dword [0x4eb314]
lea eax, [esp + 0x10]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, dword [ebx + 0x1c]
mov ecx, dword [esp + 0x10]
shl eax, 0xb
add ecx, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], ecx
adc eax, esi
push eax
push ecx
mov ecx, dword [ebx]
mov dword [esp + 0x1c], eax
call fcn.004ab06b
pop ecx
pop ecx
test eax, eax
je 0x4aac3f
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
or dword [ebx], 0xffffffff
jmp 0x4aac81
mov eax, dword [ebx + 0x14]
lea ecx, [esp + 0x1c]
push ecx
push ecx
mov ecx, dword [ebx]
lea edx, [esp + 0x28]
shl eax, 0xb
push esi
push eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], esi
call fcn.004ab0a3
add esp, 0x10
test eax, eax
je 0x4aac77
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
jmp 0x4aac81
mov eax, dword [ebx + 0x1c]
dec eax
mov dword [ebx + 0x18], eax
inc dword [ebx + 0x14]
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4aad2b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
cmp byte [ecx + 0x38], 0
push esi
push edi
je 0x4aad53
mov esi, dword [ebp + 8]
sub esi, dword [ecx + 0x20]
shl esi, 0xb
add esi, dword [ecx + 0x34]
mov edi, dword [ebp + 0xc]
mov ecx, 0x200
rep movsd dword es:[edi], dword [esi]
jmp 0x4aadad
mov edx, dword [ebp + 8]
cmp edx, dword [ecx + 0x20]
jb 0x4aad72
mov eax, dword [ecx + 0x1c]
add eax, dword [ecx + 0x20]
cmp edx, eax
jae 0x4aad72
sub edx, dword [ecx + 0x20]
shl edx, 0xb
add edx, dword [ecx + 0x34]
mov esi, edx
jmp 0x4aad47
cmp edx, dword [ecx + 0x14]
jae 0x4aadb2
shl edx, 0xb
lea eax, [ebp - 8]
mov dword [ebp - 8], edx
xor edx, edx
push edx
push eax
push 0x800
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
mov dword [ebp - 4], edx
push eax
push edx
push edx
push edx
push dword [ecx]
call dword [sym.imp.ntdll.dll_NtReadFile]
test eax, eax
jns 0x4aadad
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
test eax, eax
jne 0x4aadb2
xor eax, eax
inc eax
jmp 0x4aadb4
xor eax, eax
pop edi
pop esi
leave
ret 8
Function at 0x4aadba
Capabilities:
Get file size

Disassembly:
push 8
mov eax, 0x4c6137
call fcn.004c5434
mov esi, ecx
mov ebx, dword [esi + 0x20]
mov edi, dword [ebp + 8]
cmp edi, ebx
jb 0x4aade8
mov ecx, dword [esi + 0x1c]
add ecx, ebx
cmp edi, ecx
ja 0x4aade8
mov eax, dword [ebp + 0xc]
add eax, edi
cmp eax, ecx
jbe 0x4aaef0
mov eax, edi
mov ecx, dword [esi + 0x18]
xor edx, edx
add ecx, dword [esi + 0x14]
div dword [esi + 0x30]
mov eax, dword [esi + 0x1c]
sub edi, edx
add eax, edi
cmp eax, ecx
jbe 0x4aae0e
xor edx, edx
mov eax, ecx
div dword [esi + 0x1c]
mov edi, ecx
sub edi, edx
sub edi, dword [esi + 0x1c]
cmp edi, ebx
je 0x4aaef0
cmp byte [esi + 0x38], 0
jne 0x4aaeec
push dword [esi + 0x34]
mov dword [esi + 0x20], edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi + 4], 0xffffffff
lea edi, [esi + 0x28]
push edi
push dword [esi]
xor ebx, ebx
mov dword [esi + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4aaeec
push ebx
push dword [edi]
push dword [esi + 0x2c]
push 0x8000004
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edx, eax
mov dword [esi + 4], edx
test edx, edx
jne 0x4aae97
lea ecx, [ebp - 0x10]
call dword [sym.imp.MFC42u.dll_CString::CString]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push eax
lea eax, [ebp - 0x10]
push 0x4141f8
push eax
call dword [sym.imp.MFC42u.dll_CString::Format]
lea ecx, [ebp - 0x10]
jmp 0x4aaee3
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
shl eax, 0xb
push eax
shl ecx, 0xb
push ecx
push ebx
push 0xf001f
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x34], eax
test eax, eax
jne 0x4aaef0
lea ecx, [ebp - 0x14]
call dword [sym.imp.MFC42u.dll_CString::CString]
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push eax
lea eax, [ebp - 0x14]
push 0x414234
push eax
call dword [sym.imp.MFC42u.dll_CString::Format]
lea ecx, [ebp - 0x14]
add esp, 0x10
call dword [0x4f63ac]
xor eax, eax
jmp 0x4aaef3
xor eax, eax
inc eax
call fcn.004c5402
ret 8
Function at 0x4aaefb
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
push 0xffffffffffffffff
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor edi, edi
cmp dword [esi + 0x34], edi
je 0x4aaf24
push dword [esi + 0x34]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 0x34], edi
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ebx, [esi + 0xc]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
or dword [esi], 0xffffffff
or dword [esi + 4], 0xffffffff
cmp byte [esi + 0x38], 0
jne 0x4aafe0
call dword [sym.imp.MFC42u.dll_AfxGetModuleState]
push 0x4141f0
mov eax, dword [eax + 4]
push dword [eax + 0xc4]
call dword [sym.imp.msvcrt.dll__wtempnam]
mov dword [ebp - 4], eax
pop ecx
pop ecx
test eax, eax
jne 0x4aaf84
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor eax, eax
jmp 0x4ab066
push eax
mov ecx, ebx
call dword [0x4f63d8]
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push edi
push 0x10000100
push 2
push edi
push edi
push 0xc0000000
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, eax
mov dword [esi], ecx
cmp ecx, 0xffffffff
je 0x4aaf74
mov eax, dword [esi + 0x1c]
shl eax, 0xb
push edi
push eax
call fcn.004ab06b
pop ecx
pop ecx
mov ecx, dword [esi]
test eax, eax
je 0x4aafe3
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
or dword [esi], 0xffffffff
jmp 0x4aaf74
or ecx, 0xffffffff
mov eax, dword [esi + 0x1c]
push edi
push dword [esi + 0x28]
mov dword [esi + 0x18], eax
push dword [esi + 0x2c]
mov dword [esi + 0x14], edi
push 0x8000004
push edi
push ecx
mov dword [esi + 0x20], edi
mov dword [esi + 0x3c], edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ecx, eax
mov dword [esi + 4], ecx
test ecx, ecx
jne 0x4ab018
cmp byte [esi + 0x38], al
jne 0x4aafdb
push dword [esi]
jmp 0x4aafcd
mov eax, dword [esi + 0x1c]
shl eax, 0xb
push eax
push edi
push edi
push 0xf001f
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x34], eax
test eax, eax
jne 0x4ab058
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esi + 0x38], 0
jne 0x4ab05b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
or dword [esi], 0xffffffff
jmp 0x4ab05b
xor edi, edi
inc edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4ab06b
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push 0x14
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push 8
push eax
lea eax, [ebp - 0x10]
push eax
push ecx
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
test eax, eax
js 0x4ab09a
xor eax, eax
leave
ret
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
leave
ret
Function at 0x4ab44f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], ebx
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 4]
push eax
push ebx
push 0x41435c
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4ab4bc
cmp dword [ebp - 4], 1
je 0x4ab491
cmp dword [ebp - 4], 2
jne 0x4ab4ac
mov ecx, dword [ebp - 8]
test esi, esi
je 0x4ab4b6
test ecx, ecx
je 0x4ab4b1
test cl, 1
jne 0x4ab4ac
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], bx
je 0x4ab4b6
push 0xd
pop eax
jmp 0x4ab4bc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4abc81
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push edi
push 0x1c
lea eax, [ebp - 0x20]
mov dword [ebp - 4], edx
mov edi, ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x4abca5
push 0x19
pop ecx
int 0x29
test byte [ebp - 0xc], 0x44
je 0x4abcee
push ebx
push esi
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebx, dword [ebp - 0x40]
xor edx, edx
mov esi, ebx
neg esi
and esi, edi
lea ecx, [ebx - 1]
mov eax, ecx
and ecx, dword [ebp - 4]
and eax, edi
dec ecx
add eax, ebx
add eax, ecx
div ebx
xor edx, edx
mov ecx, eax
mov eax, dword [ebp - 4]
div ebx
add ecx, eax
je 0x4abcec
xor eax, eax
lock or dword [esi], eax
add esi, ebx
sub ecx, 1
jne 0x4abce0
pop esi
pop ebx
pop edi
leave
ret