joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4aaa27
Capabilities:
Query service status
Start service

Disassembly:
sub esp, 0x20
mov eax, dword [0x57c080]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebp
push edi
push 1
xor ebp, ebp
push ebp
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x4aaa51
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4aaab1
push ebx
push esi
push 0x14
push 0x5451b8
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
push edi
call ebx
test esi, esi
je 0x4aaaa2
push 7
pop ecx
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4aaa9f
cmp dword [esp + 0x14], 4
je 0x4aaaaa
push ebp
push ebp
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x4aaaaa
push esi
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4aaaaf
push esi
call ebx
xor eax, eax
pop esi
pop ebx
mov ecx, dword [esp + 0x24]
pop edi
pop ebp
xor ecx, esp
call fcn.004da8b4
add esp, 0x20
ret

Function at 0x4ab44a
Capabilities:
Shutdown system

Disassembly:
push 0x1c
mov eax, 0x51b370
call fcn.004db4f7
and dword [ebp - 0x24], 0
mov esi, 0x533e68
mov dword [ebp - 0x28], esi
and dword [ebp - 4], 0
lea eax, [ebp - 0x24]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4ab4c9
lea eax, [ebp - 0x1c]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
xor ecx, ecx
mov dword [ebp - 0x14], 2
push ecx
push ecx
push ecx
lea eax, [ebp - 0x20]
xor ebx, ebx
push eax
push ecx
push dword [ebp - 0x24]
inc ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4ab4c9
push 0x80040002
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x4ab4cb
xor bl, bl
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x24], 0
mov dword [ebp - 0x28], esi
je 0x4ab4e5
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x24], 0
mov al, bl
call fcn.004db4a1
ret

Function at 0x4ab912
Capabilities:
Copy file

Disassembly:
mov eax, dword [esp + 8]
push esi
push edi
mov edi, ecx
mov esi, dword [eax]
mov eax, dword [esp + 0xc]
push 2
pop ecx
mov edx, dword [eax]
xor eax, eax
cmp byte [edi + 0x24], al
cmovne eax, ecx
push eax
push 0
push edi
push 0x4ab97c
push esi
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
jne 0x4ab95e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [edi + 0x1e], 0
mov esi, eax
je 0x4ab95a
push ecx
push esi
push ecx
mov ecx, edi
call fcn.004aba7d
mov eax, esi
jmp 0x4ab977
cmp byte [edi + 0x1c], 0
je 0x4ab975
cmp byte [edi + 0x1d], 0
je 0x4ab975
push ecx
push dword [edi + 0x20]
mov ecx, edi
call fcn.004aba5c
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x4aca6a
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x51b74d
call fcn.004db4c3
mov ebx, edx
mov esi, ecx
mov dword [ebp - 0x18], esi
xor ecx, ecx
mov dword [ebp - 0x20], 0x533e68
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x4aca97
mov eax, dword [eax]
push ecx
push 0x80
push 2
push ecx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040e086
push ebx
push esi
call dword [sym.imp.msi.dll_MsiRecordGetStringW]
push ecx
push 0xc800
lea ecx, [ebp - 0x2c]
mov dword [ebp + 8], eax
xor edi, edi
call fcn.004779d0
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0xc800
push eax
push dword [ebp - 0x2c]
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.msi.dll_MsiRecordSetStringA]
test eax, eax
jne 0x4acb10
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
add edi, dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0
jne 0x4acad9
cmp dword [ebp + 8], edi
sete bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00477a70
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x20], 0x533e68
test esi, esi
je 0x4acb3c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x1c], 0
mov al, bl
call fcn.004db48c
ret

Function at 0x4b57ea
Capabilities:
Create pipe

Disassembly:
push 0x24
mov eax, 0x51d4c0
call fcn.004db4f7
mov esi, ecx
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
cmp byte [esi + 0x1c], bl
je 0x4b5809
mov al, 1
jmp 0x4b5898
mov al, byte [ebp + 8]
push ecx
lea ecx, [esi + 0x20]
mov byte [esi + 0x1d], al
call fcn.00405726
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call fcn.004b5cca
mov dword [ebp - 4], ebx
mov al, byte [esi + 0x1d]
test al, al
je 0x4b585f
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push ebx
cmovae eax, dword [ebp - 0x2c]
mov ecx, 0x400
push 0x1388
push ecx
push ecx
push 0xff
push 6
push 3
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 0x38], eax
mov al, byte [esi + 0x1d]
test al, al
jne 0x4b5884
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push ebx
cmovae eax, dword [ebp - 0x2c]
push ebx
push 3
push ebx
push ebx
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x38], eax
cmp eax, 0xffffffff
je 0x4b588a
mov byte [esi + 0x1c], 1
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040569b
mov al, bl
call fcn.004db4a1
ret 8
Function at 0x4b5a4c
Capabilities:
Connect pipe
Read file on windows
Read pipe

Disassembly:
push 0x38
mov eax, 0x51d5cb
call fcn.004db4f7
mov edi, ecx
mov bl, byte [ebp + 0x10]
xor eax, eax
and dword [ebp - 0x30], 0
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x2c], ecx
test bl, bl
jne 0x4b5a97
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x4b5a84
xor eax, eax
inc eax
jmp 0x4b5a94
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x217
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp - 0x2c]
and dword [ebp - 0x18], 0
xor edx, edx
and dword [ebp - 0x14], 0
and dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], dx
inc edx
mov dword [ebp - 4], edx
test eax, eax
jne 0x4b5ad4
test bl, bl
jne 0x4b5ad4
and dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 0x30], edx
mov byte [ebp - 4], al
jmp 0x4b5bb4
xor ebx, ebx
mov dword [ebp - 0x3c], edx
add edi, 0x3c
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4b5ae6
mov eax, dword [edi]
push 0
lea edx, [ebp - 0x40]
push edx
push 0x400
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x34], eax
test eax, eax
jne 0x4b5b11
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x4b5b9a
mov ecx, dword [ebp - 0x40]
mov eax, edi
add ebx, ecx
cmp dword [edi + 0x14], 8
jb 0x4b5b20
mov eax, dword [edi]
shr ecx, 1
xor edx, edx
mov dword [ebp - 0x38], edi
mov word [eax + ecx*2], dx
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x4b5b38
mov eax, dword [edi]
mov dword [ebp - 0x38], eax
push eax
call fcn.004e09b6
pop ecx
push eax
push dword [ebp - 0x38]
lea ecx, [ebp - 0x28]
call fcn.00412210
lea eax, [ebp - 0x3c]
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
cmp dword [ebp - 0x3c], 0
mov ecx, dword [ebp - 0x2c]
ja 0x4b5adc
cmp dword [ebp - 0x34], 0
je 0x4b5b9a
test ebx, ebx
je 0x4b5b9a
xor ebx, ebx
lea eax, [ebp - 0x28]
mov byte [ebp - 0x34], bl
mov ecx, esi
push dword [ebp - 0x34]
mov dword [esi + 0x10], ebx
push eax
mov dword [esi + 0x14], ebx
call fcn.00405342
mov dword [ebp - 0x30], 1
mov byte [ebp - 4], bl
jmp 0x4b5bb4
and dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 0x30], 1
mov byte [ebp - 4], al
lea ecx, [ebp - 0x28]
call fcn.0040569b
mov eax, esi
call fcn.004db4a1
ret 0xc
Function at 0x4b5bc6
Capabilities:
Write file on windows

Disassembly:
push 8
mov eax, 0x51d609
call fcn.004db4c3
mov esi, ecx
xor ebx, ebx
cmp dword [ebp + 0xc], 0xffffffff
mov dword [ebp - 0x10], ebx
jne 0x4b5bfd
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], 7
mov word [eax], cx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], 1
jmp 0x4b5c51
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 0x10]
add eax, eax
cmp dword [ecx + 0x14], 8
jb 0x4b5c0d
mov ecx, dword [ecx]
push ebx
lea edx, [ebp + 0x10]
push edx
push eax
push ecx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4b5c35
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], 7
mov word [eax], cx
jmp 0x4b5bf1
push 1
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call fcn.004b5a4c
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], 1
mov eax, dword [ebp + 8]
call fcn.004db48c
ret 0xc

Function at 0x4b5c59
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov edx, dword [eax + 0x10]
add edx, edx
cmp dword [eax + 0x14], 8
jb 0x4b5c6f
mov eax, dword [eax]
push 0
lea ecx, [ebp + 8]
push ecx
push edx
push eax
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
pop esi
pop ebp
ret 4
Function at 0x4b6c69
Capabilities:
Parse credit card information

Disassembly:
push 0x4c
mov eax, 0x51d9e0
call fcn.004db4f7
mov esi, ecx
push str.PIDTemplate
lea ecx, [ebp - 0x58]
call fcn.00404285
and dword [ebp - 4], 0
lea edx, [ebp - 0x58]
mov ecx, dword [esi + 4]
push edx
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ecx]
call dword [eax]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.0040569b
mov ecx, dword [ebp - 0x18]
cmp ecx, 3
jb 0x4b6de7
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp word [eax], 0x3c
jne 0x4b6de7
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 2], 0x3e
jne 0x4b6de7
lea eax, [ecx - 2]
xor ebx, ebx
push eax
inc ebx
lea eax, [ebp - 0x58]
push ebx
push eax
lea ecx, [ebp - 0x28]
call fcn.0041cbfd
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
push eax
call fcn.00404232
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.0040569b
push str.PIDKEY
lea ecx, [ebp - 0x58]
call fcn.00404285
mov byte [ebp - 4], 4
lea edx, [ebp - 0x58]
mov ecx, dword [esi + 4]
push edx
lea edx, [ebp - 0x40]
push edx
mov eax, dword [ecx]
call dword [eax]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x58]
call fcn.0040569b
mov edx, dword [ebp - 0x30]
cmp edx, dword [ebp - 0x18]
jne 0x4b6dd7
xor esi, esi
test edx, edx
je 0x4b6dd9
mov edi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
movzx eax, word [eax + esi*2]
cmp eax, 0x3d
ja 0x4b6d96
je 0x4b6dcc
sub eax, 0x23
je 0x4b6d75
dec eax
sub eax, 1
je 0x4b6d75
sub eax, 1
jmp 0x4b6da8
cmp edi, 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
movzx eax, word [eax + esi*2]
push eax
call fcn.004e3a4f
pop ecx
test eax, eax
je 0x4b6dd7
mov edi, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x30]
jmp 0x4b6dc9
cmp eax, 0x3f
jb 0x4b6daa
cmp eax, 0x40
jbe 0x4b6dcc
cmp eax, 0x5e
je 0x4b6dcc
cmp eax, 0x60
je 0x4b6dcc
cmp edi, 8
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x28]
cmovae eax, dword [ebp - 0x40]
cmp dword [ebp - 0x14], 8
cmovae ecx, dword [ebp - 0x28]
mov ax, word [eax + esi*2]
cmp ax, word [ecx + esi*2]
jne 0x4b6dd7
mov ecx, dword [ebp - 0x14]
inc esi
cmp esi, edx
jb 0x4b6d50
jmp 0x4b6dd9
xor bl, bl
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.0040569b
jmp 0x4b6de9
xor bl, bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040569b
mov al, bl
call fcn.004db4a1
ret
Function at 0x4b9790
Capabilities:
Check if file exists

Disassembly:
push 0x50
mov eax, 0x51e27c
call fcn.004db4f7
mov edi, dword [ebp + 8]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x5c], esp
xor esi, esi
add edi, 4
push edi
mov dword [ecx + 0x10], esi
mov dword [ecx + 0x14], esi
call fcn.00404b8e
mov dword [ebp - 4], esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0046aac0
mov dword [ebp - 4], 1
jmp 0x4b9826
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.0046d460
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 8
jb 0x4b97e8
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.0040569b
test esi, esi
jne 0x4b9854
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x28]
call fcn.0046dda0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
push eax
call fcn.00404232
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.0040569b
cmp dword [ebp - 0x18], 0
jne 0x4b97d0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040569b
cmp dword [edi + 0x14], 8
jb 0x4b9840
mov edi, dword [edi]
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
setne al
call fcn.004db4a1
ret 4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040569b
mov al, 1
jmp 0x4b984c
Function at 0x4bc77b
Capabilities:
Reference sql statements

Disassembly:
push 0x58
mov eax, 0x51ee34
call fcn.004db4f7
mov edi, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x44]
push str.prereq
mov dword [ebp - 0x4c], eax
xor ebx, ebx
call fcn.00404285
mov dword [ebp - 4], ebx
lea edx, [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00453155
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.0040569b
push str.SELECT__Data__FROM__Binary__WHERE__Name___Prereq.dll
lea ecx, [ebp - 0x44]
call fcn.00404285
mov byte [ebp - 4], 3
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.msi.dll_MsiGetFeatureCostA]
lea edx, [ebp - 0x44]
mov ecx, eax
call fcn.004ac9c4
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.0040569b
cmp dword [ebp - 0x18], 8
lea esi, [ebp - 0x2c]
push 0x5c
cmovae esi, dword [ebp - 0x2c]
push esi
call fcn.004de86a
pop ecx
pop ecx
test eax, eax
jne 0x4bc80a
mov eax, ebx
jmp 0x4bc813
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push dword [ebp - 0x4c]
mov dword [ebp - 0x48], eax
lea edx, [ebp - 0x54]
lea eax, [ebp - 0x48]
mov dword [ebp - 0x54], eax
lea ecx, [ebp - 0x64]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x50], eax
call fcn.004c00fa
pop ecx
mov byte [ebp - 4], 4
cmp dword [ebp - 0x48], 0
je 0x4bc857
push str.InstallPrereq
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4bc857
push edi
call eax
mov ecx, dword [ebp - 0x4c]
mov bl, 1
mov dword [ecx], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x64]
call fcn.004bfdd7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040569b
mov al, bl
call fcn.004db4a1
ret 4
Function at 0x4bf237
Capabilities:
Get common file path

Disassembly:
push 0x230
mov eax, 0x51f8ed
call fcn.004db4f7
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x218]
mov esi, dword [ebp + 8]
push 0x104
push eax
mov dword [ebp - 0x238], esi
mov dword [ebp - 0x234], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
add eax, eax
cmp eax, 0x208
jae 0x4bf2ec
sub esp, 0x18
xor ecx, ecx
mov word [ebp + eax - 0x218], cx
mov ecx, esp
lea eax, [ebp - 0x218]
mov dword [ebp - 0x23c], esp
push eax
call fcn.00404285
xor edi, edi
inc edi
mov dword [ebp - 4], edi
mov byte [ebp - 4], bl
mov ecx, esi
call fcn.0046aac0
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x230]
push str.msiexec.exe
mov dword [ebp - 0x234], edi
call fcn.00404285
mov dword [ebp - 4], 2
lea eax, [ebp - 0x230]
push eax
mov ecx, esi
call fcn.00430479
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x230]
call fcn.0040569b
mov eax, esi
call fcn.004db4a1
ret 4
call fcn.004db13d
int3

Function at 0x4c089d
Capabilities:
Get disk information
Get disk size

Disassembly:
push 0x78
mov eax, 0x51fead
call fcn.004db4f7
mov ebx, dword [ebp + 8]
sub esp, 0x18
mov edi, dword [ebp + 0x10]
mov ecx, esp
mov dword [ebp - 0x84], esp
push ebx
call fcn.00404285
and dword [ebp - 4], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0046aac0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.0046b320
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 8
jb 0x4c08ef
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov esi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.0040569b
mov ecx, dword [ebp + 0xc]
cmp esi, 3
jne 0x4c0914
test ecx, 0x20000
jne 0x4c095d
cmp esi, 2
jne 0x4c0921
test ecx, 0x10000
jne 0x4c095d
cmp esi, 4
jne 0x4c092e
test ecx, 0x40000
jne 0x4c095d
cmp esi, 5
jne 0x4c093b
test ecx, 0x80000
jne 0x4c095d
cmp esi, 6
jne 0x4c0948
test ecx, 0x100000
jne 0x4c095d
cmp esi, 2
jne 0x4c0a02
test ecx, 0x200000
je 0x4c0a02
xor eax, eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x40]
push eax
call fcn.0046b320
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x4c0983
mov eax, dword [eax]
push 0
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x78]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.0040569b
push esi
push dword [ebp + 0x18]
push dword [ebp - 0x74]
push dword [ebp - 0x78]
push dword [ebp - 0x7c]
push dword [ebp - 0x80]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x84], esp
push ebx
call fcn.00404285
mov byte [ebp - 4], 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.004b05cd
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x70]
mov eax, dword [edi + 4]
push ecx
cmp dword [edi + 8], eax
je 0x4c09ee
mov ecx, eax
call fcn.0044d23c
add dword [edi + 4], 0x30
jmp 0x4c09f6
push eax
mov ecx, edi
call fcn.004c1c5f
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.0040569b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040569b
call fcn.004db4a1
ret 0x18
Function at 0x4cf7d6
Capabilities:
Parse credit card information

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
xor dl, dl
mov ecx, dword [esi + 0x4c]
cmp ecx, 0xffffffff
je 0x4cf933
push 0x29
mov eax, ecx
pop ebp
mov ebx, 0x10000000
cmp eax, 0x7c
je 0x4cf933
cmp eax, ebp
jne 0x4cf819
cmp dword [esi + 0x10], 0
mov eax, ebp
jne 0x4cf933
cmp eax, ebp
jne 0x4cf819
test dword [esi + 0x50], ebx
je 0x4cf941
cmp eax, 0x2e
jne 0x4cf834
push 5
lea ecx, [esi + 0x24]
call fcn.004cfa3c
mov ecx, esi
call fcn.004cf7ab
jmp 0x4cf91c
cmp eax, 0x5c
jne 0x4cf889
mov ecx, esi
call fcn.004cf7ab
test byte [esi + 0x50], 0x80
je 0x4cf87d
movzx eax, word [esi + 0x48]
cmp eax, 0x62
jne 0x4cf865
push 4
lea ecx, [esi + 0x24]
call fcn.004cfa3c
mov ecx, esi
call fcn.004cf7ab
jmp 0x4cf923
cmp eax, 0x42
jne 0x4cf87d
push 4
lea ecx, [esi + 0x24]
call fcn.004cfa3c
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
jmp 0x4cf859
mov ecx, esi
call fcn.004d0788
jmp 0x4cf91c
cmp eax, 0x5b
jne 0x4cf8a9
mov ecx, esi
call fcn.004cf7ab
mov ecx, esi
call fcn.004d073c
cmp dword [esi + 0x4c], 0x5d
je 0x4cf828
push 4
jmp 0x4cf943
cmp eax, 0x28
jne 0x4cf8c5
mov ecx, esi
call fcn.004cf7ab
mov ecx, esi
call fcn.004d0834
mov bl, al
cmp dword [esi + 0x4c], ebp
jne 0x4cf941
jmp 0x4cf911
cmp eax, 0x5e
jne 0x4cf8ce
push 2
jmp 0x4cf851
cmp eax, 0x24
jne 0x4cf8da
push 3
jmp 0x4cf851
cmp eax, 0x2a
je 0x4cf93d
cmp eax, 0x2b
je 0x4cf93d
cmp eax, 0x3f
je 0x4cf93d
cmp eax, 0x7b
je 0x4cf93d
cmp ecx, 0x7d
jne 0x4cf8f8
test dword [esi + 0x50], ebx
je 0x4cf939
cmp ecx, 0x5d
jne 0x4cf902
test dword [esi + 0x50], ebx
je 0x4cf8a2
movzx eax, word [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.004d09ec
mov bl, 1
mov ecx, esi
call fcn.004cf7ab
test bl, bl
je 0x4cf923
mov ecx, esi
call fcn.004d0923
mov ecx, dword [esi + 0x4c]
mov dl, 1
mov eax, ecx
cmp ecx, 0xffffffff
jne 0x4cf7ee
pop esi
pop ebp
mov al, dl
pop ebx
ret
push 6
jmp 0x4cf943
push 0xa
jmp 0x4cf943
push 5
call fcn.004ce7a2
int3
Function at 0x4d3725
Capabilities:
Get common file path

Disassembly:
push 0x254
mov eax, 0x524653
call fcn.004db4f7
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 0x250], eax
add eax, eax
cmp eax, 0x208
jae 0x4d38d7
sub esp, 0x18
xor ecx, ecx
mov word [ebp + eax - 0x21c], cx
mov ecx, esp
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x260], esp
push eax
call fcn.00404285
xor esi, esi
mov dword [ebp - 4], esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24c]
call fcn.0046aac0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x234]
push str.msi.dll
call fcn.00404285
mov byte [ebp - 4], 2
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x24c]
call fcn.00430479
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x234]
call fcn.0040569b
mov dword [ebp - 0x25c], esi
mov dword [ebp - 0x258], esi
mov dword [ebp - 0x254], esi
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24c]
mov eax, dword [ebp - 0x258]
sub eax, dword [ebp - 0x25c]
sar eax, 1
mov dword [ebp - 0x250], eax
lea eax, [ebp - 0x234]
push eax
call fcn.0046d460
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 8
jb 0x4d3812
mov eax, dword [eax]
mov edi, dword [sym.imp.msi.dll_MsiMessageBoxW]
lea ecx, [ebp - 0x250]
push esi
push esi
push ecx
push esi
push eax
call edi
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x234]
call fcn.0040569b
mov eax, dword [ebp - 0x250]
lea ecx, [ebp - 0x25c]
inc eax
push ecx
push eax
call fcn.0046e2d0
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x24c]
call fcn.0046d460
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 8
jb 0x4d3866
mov eax, dword [eax]
push esi
push esi
lea ecx, [ebp - 0x250]
push ecx
push dword [ebp - 0x25c]
push eax
call edi
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x234]
call fcn.0040569b
mov edi, dword [ebp - 0x25c]
mov edx, esi
cmp edx, dword [ebp - 0x250]
jae 0x4d38ae
movzx eax, word [edi + edx*2]
cmp eax, 0x2e
je 0x4d38a8
imul esi, esi, 0xa
add esi, 0xffffffd0
add esi, eax
inc edx
cmp edx, 3
jb 0x4d388f
imul esi, esi, 0xa
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x25c]
call fcn.0046df70
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24c]
call fcn.0040569b
mov eax, esi
call fcn.004db4a1
ret
call fcn.004db13d
int3
Function at 0x4d4aba
Capabilities:
Delete directory

Disassembly:
push 0xc
mov eax, 0x524b06
call fcn.004db4c3
mov esi, edx
mov ebx, ecx
call fcn.0040d33d
push eax
lea ecx, [ebp - 0x10]
call fcn.0040d16b
mov dword [ebp - 4], 1
mov eax, dword [esi]
push 0x5c
pop edi
mov eax, dword [eax - 0xc]
test eax, eax
je 0x4d4b5d
dec eax
mov ecx, esi
push eax
call fcn.00473c30
cmp ax, di
jne 0x4d4b5d
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax - 0xc]
dec eax
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00406d83
mov byte [ebp - 4], 2
mov edx, dword [eax]
mov edi, dword [ebp - 0x10]
add edi, 0xfffffff0
lea ecx, [edx - 0x10]
cmp ecx, edi
je 0x4d4b4c
cmp dword [edi + 0xc], 0
jl 0x4d4b40
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x4d4b40
call fcn.004070e1
mov ecx, edi
mov esi, eax
call fcn.0040d645
lea eax, [esi + 0x10]
mov dword [ebp - 0x10], eax
jmp 0x4d4b4c
push dword [edx - 0xc]
lea ecx, [ebp - 0x10]
push edx
call fcn.0040d8ae
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.0040d645
jmp 0x4d4b9a
mov edx, dword [esi]
mov edi, dword [ebp - 0x10]
add edi, 0xfffffff0
lea ecx, [edx - 0x10]
cmp ecx, edi
je 0x4d4b9a
cmp dword [edi + 0xc], 0
jl 0x4d4b8e
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x4d4b8e
call fcn.004070e1
mov ecx, edi
mov esi, eax
call fcn.0040d645
lea eax, [esi + 0x10]
mov dword [ebp - 0x10], eax
jmp 0x4d4b9a
push dword [edx - 0xc]
lea ecx, [ebp - 0x10]
push edx
call fcn.0040d8ae
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebx]
mov eax, dword [eax - 0xc]
cmp eax, dword [ecx - 0xc]
jge 0x4d4bf9
push 0x5c
push ecx
call fcn.004debb7
pop ecx
pop ecx
test eax, eax
jne 0x4d4bba
or eax, 0xffffffff
jmp 0x4d4bbe
sub eax, dword [ebx]
sar eax, 1
push eax
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
call fcn.00406d83
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x4d4bea
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x14]
call fcn.004d4aba
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.0040d645
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.0040d645
call fcn.004db48c
ret