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

Disassembly:
push 0x18
mov eax, 0x51a66d
call fcn.004da767
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push 0xc
push 0
push eax
call fcn.004dd970
add esp, 0xc
lea eax, [ebp - 0x24]
push 0
push eax
push 0xa
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4a8724
xor al, al
jmp 0x4a8759
cmp dword [ebp - 0x24], 0xa
jne 0x4a8720
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040da2c
and dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
push str._aiu_
call fcn.004070b8
mov ebx, eax
lea ecx, [ebp - 0x20]
neg ebx
sbb bl, bl
inc bl
call fcn.0040d22d
mov al, bl
call fcn.004da711
ret 8

Function at 0x4a8761
Capabilities:
Read file on windows

Disassembly:
push 0x14
mov eax, 0x51a69a
call fcn.004da767
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
push 6
push 0
push eax
call fcn.004dd970
add esp, 0xc
lea eax, [ebp - 0x20]
push 0
push eax
push 5
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4a879b
xor al, al
jmp 0x4a87d0
cmp dword [ebp - 0x20], 5
jne 0x4a8797
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004887cf
and dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
push str._aiu_
call fcn.004070b8
mov ebx, eax
lea ecx, [ebp - 0x1c]
neg ebx
sbb bl, bl
inc bl
call fcn.0040d22d
mov al, bl
call fcn.004da711
ret 8

Function at 0x4a8adf
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x517440
call fcn.004da733
mov ebx, ecx
mov edx, dword [0x57e2d8]
lea edi, [ebx + 4]
push ecx
mov ecx, dword [edi]
call fcn.00475860
mov ecx, edi
call fcn.0042dd4f
mov eax, dword [ebx + 0x28]
push dword [eax]
push dword [edi]
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea ecx, [ebp - 0x10]
call fcn.0040cf67
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
push 0xdc
call fcn.0040d69b
push 0x40a
push dword [edi]
call dword [sym.imp.USER32.dll_GetDlgItem]
push dword [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push dword [edi]
lea ecx, [ebx + 0x40]
call fcn.004aac74
push dword [edi]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
lea eax, [ebp - 0x14]
push eax
xor eax, eax
push eax
push ebx
push 0x4a8b82
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
mov dword [ebx + 0x30], eax
call fcn.0040d22d
xor eax, eax
call fcn.004da6fc
ret 0x10

Function at 0x4a9541
Capabilities:
Hide graphical window

Disassembly:
push edi
mov edi, ecx
cmp byte [edi + 0x1c], 0
je 0x4a957a
push 0xe801
push dword [edi - 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [esp + 0xc], 2
jne 0x4a956a
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4a9581
cmp dword [esp + 0xc], 0
jne 0x4a957a
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esp + 0xc], 1
je 0x4a9597
mov ecx, dword [esp + 0x10]
mov eax, ecx
shr eax, 0x10
cwde
push eax
movsx eax, cx
mov ecx, edi
push eax
call fcn.004a959d
xor eax, eax
pop edi
ret 0x10
Function at 0x4a9fb5
Capabilities:
Query service status
Start service

Disassembly:
sub esp, 0x20
mov eax, dword [0x57c074]
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 0x4a9fdf
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4aa03f
push ebx
push esi
push 0x14
push 0x544158
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 0x4aa030
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 0x4aa02d
cmp dword [esp + 0x14], 4
je 0x4aa038
push ebp
push ebp
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x4aa038
push esi
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4aa03d
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.004d9b30
add esp, 0x20
ret

Function at 0x4aa9c3
Capabilities:
Shutdown system

Disassembly:
push 0x1c
mov eax, 0x51a9d0
call fcn.004da767
and dword [ebp - 0x24], 0
mov esi, 0x532e68
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 0x4aaa42
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 0x4aaa42
push 0x80040002
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x4aaa44
xor bl, bl
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x24], 0
mov dword [ebp - 0x28], esi
je 0x4aaa5e
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x24], 0
mov al, bl
call fcn.004da711
ret

Function at 0x4aae8b
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 0x4aaef5
push esi
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
jne 0x4aaed7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [edi + 0x1e], 0
mov esi, eax
je 0x4aaed3
push ecx
push esi
push ecx
mov ecx, edi
call fcn.004aafd1
mov eax, esi
jmp 0x4aaef0
cmp byte [edi + 0x1c], 0
je 0x4aaeee
cmp byte [edi + 0x1d], 0
je 0x4aaeee
push ecx
push dword [edi + 0x20]
mov ecx, edi
call fcn.004aafb6
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x4abfd7
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x51adad
call fcn.004da733
mov ebx, edx
mov esi, ecx
mov dword [ebp - 0x18], esi
xor ecx, ecx
mov dword [ebp - 0x20], 0x532e68
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x4ac004
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.0040e16d
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.00477660
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 0x4ac07d
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 0x4ac046
cmp dword [ebp + 8], edi
sete bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00477700
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x20], 0x532e68
test esi, esi
je 0x4ac0a9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x1c], 0
mov al, bl
call fcn.004da6fc
ret

Function at 0x4b4829
Capabilities:
Create pipe

Disassembly:
push 0x24
mov eax, 0x51cac6
call fcn.004da767
mov esi, ecx
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
cmp byte [esi + 0x1c], bl
je 0x4b4848
mov al, 1
jmp 0x4b48d7
mov al, byte [ebp + 8]
push ecx
lea ecx, [esi + 0x20]
mov byte [esi + 0x1d], al
call fcn.00405784
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call fcn.004b4d0b
mov dword [ebp - 4], ebx
mov al, byte [esi + 0x1d]
test al, al
je 0x4b489e
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 0x4b48c3
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 0x4b48c9
mov byte [esi + 0x1c], 1
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004056f5
mov al, bl
call fcn.004da711
ret 8
Function at 0x4b4a8d
Capabilities:
Connect pipe
Read file on windows
Read pipe

Disassembly:
push 0x38
mov eax, 0x51cbd1
call fcn.004da767
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 0x4b4ad8
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x4b4ac5
xor eax, eax
inc eax
jmp 0x4b4ad5
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 0x4b4b15
test bl, bl
jne 0x4b4b15
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 0x4b4bf5
xor ebx, ebx
mov dword [ebp - 0x3c], edx
add edi, 0x3c
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4b4b27
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 0x4b4b52
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x4b4bdb
mov ecx, dword [ebp - 0x40]
mov eax, edi
add ebx, ecx
cmp dword [edi + 0x14], 8
jb 0x4b4b61
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 0x4b4b79
mov eax, dword [edi]
mov dword [ebp - 0x38], eax
push eax
call fcn.004dfc45
pop ecx
push eax
push dword [ebp - 0x38]
lea ecx, [ebp - 0x28]
call fcn.00412363
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 0x4b4b1d
cmp dword [ebp - 0x34], 0
je 0x4b4bdb
test ebx, ebx
je 0x4b4bdb
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.00405395
mov dword [ebp - 0x30], 1
mov byte [ebp - 4], bl
jmp 0x4b4bf5
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.004056f5
mov eax, esi
call fcn.004da711
ret 0xc
Function at 0x4b4c07
Capabilities:
Write file on windows

Disassembly:
push 8
mov eax, 0x51cc0f
call fcn.004da733
mov esi, ecx
xor ebx, ebx
cmp dword [ebp + 0xc], 0xffffffff
mov dword [ebp - 0x10], ebx
jne 0x4b4c3e
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 0x4b4c92
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 0x10]
add eax, eax
cmp dword [ecx + 0x14], 8
jb 0x4b4c4e
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 0x4b4c76
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], 7
mov word [eax], cx
jmp 0x4b4c32
push 1
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call fcn.004b4a8d
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], 1
mov eax, dword [ebp + 8]
call fcn.004da6fc
ret 0xc

Function at 0x4b4c9a
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 0x4b4cb0
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 0x4b5c95
Capabilities:
Parse credit card information

Disassembly:
push 0x4c
mov eax, 0x51cfe6
call fcn.004da767
mov esi, ecx
push str.PIDTemplate
lea ecx, [ebp - 0x58]
call fcn.00404362
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.004056f5
mov ecx, dword [ebp - 0x18]
cmp ecx, 3
jb 0x4b5e13
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp word [eax], 0x3c
jne 0x4b5e13
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 2], 0x3e
jne 0x4b5e13
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.0041cd29
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
push eax
call fcn.0040430d
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.004056f5
push str.PIDKEY
lea ecx, [ebp - 0x58]
call fcn.00404362
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.004056f5
mov edx, dword [ebp - 0x30]
cmp edx, dword [ebp - 0x18]
jne 0x4b5e03
xor esi, esi
test edx, edx
je 0x4b5e05
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 0x4b5dc2
je 0x4b5df8
sub eax, 0x23
je 0x4b5da1
dec eax
sub eax, 1
je 0x4b5da1
sub eax, 1
jmp 0x4b5dd4
cmp edi, 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
movzx eax, word [eax + esi*2]
push eax
call fcn.004e2ccf
pop ecx
test eax, eax
je 0x4b5e03
mov edi, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x30]
jmp 0x4b5df5
cmp eax, 0x3f
jb 0x4b5dd6
cmp eax, 0x40
jbe 0x4b5df8
cmp eax, 0x5e
je 0x4b5df8
cmp eax, 0x60
je 0x4b5df8
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 0x4b5e03
mov ecx, dword [ebp - 0x14]
inc esi
cmp esi, edx
jb 0x4b5d7c
jmp 0x4b5e05
xor bl, bl
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.004056f5
jmp 0x4b5e15
xor bl, bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004056f5
mov al, bl
call fcn.004da711
ret
Function at 0x4b8786
Capabilities:
Check if file exists

Disassembly:
push 0x50
mov eax, 0x51d882
call fcn.004da767
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.00404c12
mov dword [ebp - 4], esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0046a810
mov dword [ebp - 4], 1
jmp 0x4b881c
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.0046d200
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 8
jb 0x4b87de
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.004056f5
test esi, esi
jne 0x4b884a
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x28]
call fcn.0046db60
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
push eax
call fcn.0040430d
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.004056f5
cmp dword [ebp - 0x18], 0
jne 0x4b87c6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004056f5
cmp dword [edi + 0x14], 8
jb 0x4b8836
mov edi, dword [edi]
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
setne al
call fcn.004da711
ret 4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004056f5
mov al, 1
jmp 0x4b8842
Function at 0x4bb776
Capabilities:
Reference sql statements

Disassembly:
push 0x58
mov eax, 0x51e460
call fcn.004da767
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.00404362
mov dword [ebp - 4], ebx
lea edx, [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00452db1
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.004056f5
push str.SELECT__Data__FROM__Binary__WHERE__Name___Prereq.dll
lea ecx, [ebp - 0x44]
call fcn.00404362
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.004abf31
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.004056f5
cmp dword [ebp - 0x18], 8
lea esi, [ebp - 0x2c]
push 0x5c
cmovae esi, dword [ebp - 0x2c]
push esi
call fcn.004ddaca
pop ecx
pop ecx
test eax, eax
jne 0x4bb805
mov eax, ebx
jmp 0x4bb80e
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.004bf133
pop ecx
mov byte [ebp - 4], 4
cmp dword [ebp - 0x48], 0
je 0x4bb852
push str.InstallPrereq
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4bb852
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.004bee06
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004056f5
mov al, bl
call fcn.004da711
ret 4
Function at 0x4be266
Capabilities:
Get common file path

Disassembly:
push 0x230
mov eax, 0x51ef50
call fcn.004da767
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 0x4be31b
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.00404362
xor edi, edi
inc edi
mov dword [ebp - 4], edi
mov byte [ebp - 4], bl
mov ecx, esi
call fcn.0046a810
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x230]
push str.msiexec.exe
mov dword [ebp - 0x234], edi
call fcn.00404362
mov dword [ebp - 4], 2
lea eax, [ebp - 0x230]
push eax
mov ecx, esi
call fcn.004301f4
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x230]
call fcn.004056f5
mov eax, esi
call fcn.004da711
ret 4
call fcn.004da3a6
int3

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

Disassembly:
push 0x78
mov eax, 0x51f551
call fcn.004da767
mov edi, dword [ebp + 8]
sub esp, 0x18
mov ebx, dword [ebp + 0x10]
mov ecx, esp
mov dword [ebp - 0x84], esp
push edi
call fcn.00404362
and dword [ebp - 4], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0046a810
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.0046b080
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 8
jb 0x4bfa7c
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.004056f5
mov ecx, dword [ebp + 0xc]
cmp esi, 3
jne 0x4bfaa1
test ecx, 0x20000
jne 0x4bfaea
cmp esi, 2
jne 0x4bfaae
test ecx, 0x10000
jne 0x4bfaea
cmp esi, 4
jne 0x4bfabb
test ecx, 0x40000
jne 0x4bfaea
cmp esi, 5
jne 0x4bfac8
test ecx, 0x80000
jne 0x4bfaea
cmp esi, 6
jne 0x4bfad5
test ecx, 0x100000
jne 0x4bfaea
cmp esi, 2
jne 0x4bfb79
test ecx, 0x200000
je 0x4bfb79
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.0046b080
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x4bfb10
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.004056f5
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 edi
call fcn.00404362
mov byte [ebp - 4], 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.004afa2e
mov byte [ebp - 4], 5
lea eax, [ebp - 0x70]
push eax
mov ecx, ebx
call fcn.004c0c8b
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.004056f5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004056f5
call fcn.004da711
ret 0x18
Function at 0x4c517d
Capabilities:
Create process on windows

Disassembly:
push ebp
sub esp, 0x64
lea ebp, [esp - 4]
mov eax, dword [0x57c074]
xor eax, ebp
mov dword [ebp + 0x64], eax
push 0x44
mov eax, 0x5207cb
call fcn.004da733
mov esi, dword [ebp + 0x70]
lea eax, [ebp + 0x1c]
push eax
call fcn.004be266
xor ebx, ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp + 0x4c]
push 0x53511c
call fcn.00404362
mov byte [ebp - 4], 1
lea eax, [ebp + 0x34]
push eax
lea ecx, [ebp + 0x1c]
call fcn.0046d200
mov byte [ebp - 4], 2
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x4c51d7
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp + 0x4c]
call fcn.00412363
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x34]
call fcn.004056f5
mov edi, 0x5460e8
push edi
call fcn.004dfc45
pop ecx
push eax
push edi
lea ecx, [ebp + 0x4c]
call fcn.00412363
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x14], ebx
mov dword [ebp + 0x18], ebx
mov byte [ebp - 4], 3
push ecx
lea ecx, [ebp + 0x10]
call fcn.004c531e
push esi
lea ecx, [ebp + 0x10]
call fcn.00404151
push ecx
lea ecx, [ebp + 0x10]
call fcn.004c5419
push ecx
lea ecx, [ebp + 0x10]
call fcn.004c5514
lea edx, [ebp + 0x10]
lea ecx, [ebp + 0x34]
call fcn.0047e280
mov byte [ebp - 4], 4
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x4c524f
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp + 0x4c]
call fcn.00412363
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x34]
call fcn.004056f5
push 0x40
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x50], 0x44
push ebx
push eax
call fcn.004dd970
xor eax, eax
lea edi, [ebp]
stosd dword es:[edi], eax
lea ecx, [ebp + 0x1c]
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp + 0x34]
push eax
call fcn.0046d200
mov byte [ebp - 4], 5
lea ecx, [ebp + 0x4c]
cmp dword [ebp + 0x60], 8
cmovae ecx, dword [ebp + 0x4c]
cmp dword [eax + 0x14], 8
jb 0x4c52a9
mov eax, dword [eax]
lea edx, [ebp]
push edx
lea edx, [ebp - 0x50]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x34]
call fcn.004056f5
test esi, esi
je 0x4c52dc
push 0xffffffffffffffff
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x10]
call fcn.004043bb
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x4c]
call fcn.004056f5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x1c]
call fcn.004056f5
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x64]
xor ecx, ebp
call fcn.004d9b30
lea esp, [ebp + 0x68]
pop ebp
ret 4