joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f1620
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x566c91
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x5d0074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
sub esp, 0x18
xor edi, edi
add esi, 4
mov dword [ebp - 0x5c], edi
mov ecx, esp
mov dword [ebp - 0x64], esp
push esi
mov dword [ebp - 0x60], esi
call fcn.00406ba0
mov dword [ebp - 4], edi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0048bb00
mov dword [ebp - 4], 1
cmp dword [ebp - 0x30], edi
je 0x4f1735
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x40]
call fcn.0048d0b0
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], 8
jb 0x4f16a0
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.00407b40
test esi, esi
jne 0x4f1775
mov byte [ebp - 4], 2
xor eax, eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x28]
or edi, 1
lea ecx, [ebp - 0x40]
push eax
mov dword [ebp - 0x5c], edi
call fcn.004842a0
lea ecx, [ebp - 0x40]
call fcn.00407b40
movups xmm0, xmmword [ebp - 0x28]
xor eax, eax
and edi, 0xfffffffe
mov word [ebp - 0x28], ax
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [ebp - 0x30], xmm0
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x5c], edi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00407b40
cmp dword [ebp - 0x30], esi
jne 0x4f1688
mov esi, dword [ebp - 0x60]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00407b40
cmp dword [esi + 0x14], 8
jb 0x4f174c
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005214e1
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00407b40
mov al, 1
jmp 0x4f1758
Function at 0x4f43d0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5675e1
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5d0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea ebx, [edi + 4]
mov dword [edi], 0x5928f4
mov dword [ebx], 0x592928
mov dword [edi + 0x58], 0x5928ec
mov dword [ebp - 4], 7
lea ecx, [edi + 0x13c]
call fcn.00407b40
mov byte [ebp - 4], 6
lea ecx, [edi + 0x124]
call fcn.00407b40
mov byte [ebp - 4], 5
lea esi, [edi + 0xf8]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 9
mov eax, dword [esi + 4]
test eax, eax
je 0x4f444e
call eax
cmp dword [esi + 0x24], 8
lea eax, [esi + 0x10]
jb 0x4f445a
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 5
lea ecx, [esi + 0x10]
call fcn.00407b40
mov byte [ebp - 4], 4
lea ecx, [edi + 0xd8]
call fcn.00407b40
mov byte [ebp - 4], 3
mov esi, dword [edi + 0xcc]
test esi, esi
je 0x4f4513
mov ebx, dword [edi + 0xd0]
cmp esi, ebx
je 0x4f44ac
mov ecx, esi
call fcn.00406550
add esi, 0xc
cmp esi, ebx
jne 0x4f4498
mov esi, dword [edi + 0xcc]
mov ecx, dword [edi + 0xd4]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
shl ecx, 2
cmp ecx, 0x1000
jb 0x4f44e8
mov edx, dword [esi - 4]
add ecx, 0x23
sub esi, edx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x4f45a2
mov esi, edx
push ecx
push esi
call fcn.005214f2
add esp, 8
mov dword [edi + 0xcc], 0
mov dword [edi + 0xd0], 0
lea ebx, [edi + 4]
mov dword [edi + 0xd4], 0
mov byte [ebp - 4], 2
lea ecx, [edi + 0x9c]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 2
call fcn.004210c0
mov byte [ebp - 4], 1
lea ecx, [edi + 0x7c]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 1
call fcn.004210c0
mov byte [ebp - 4], 0
mov eax, dword [edi + 0x5c]
test eax, eax
je 0x4f454e
push eax
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0xd
lea ecx, [ebx + 0x34]
mov dword [ebp - 0x10], ecx
mov byte [ebp - 4], 0xd
call fcn.004210c0
mov byte [ebp - 4], 0xc
lea ecx, [ebx + 0x14]
mov dword [ebp - 0x10], ecx
mov byte [ebp - 4], 0xc
call fcn.004e5ec0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebx + 8]
call fcn.00406550
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00526969
int3
Function at 0x4f6220
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x567b40
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x5d0074]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x10]
mov ecx, str.AI_InstallPrerequisite
mov eax, dword [ebp + 8]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4f627b
test dx, dx
je 0x4f6277
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4f627b
add eax, 4
add ecx, 4
test dx, dx
jne 0x4f6255
xor eax, eax
jmp 0x4f6280
sbb eax, eax
or eax, 1
test eax, eax
je 0x4f628b
xor al, al
jmp 0x4f63c3
push 6
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x2c]
push str.prereq
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
call fcn.00407880
mov dword [ebp - 4], 0
lea edx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x5c]
call fcn.00478670
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.00407b40
push 0x37
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x44]
push str.SELECT__Data__FROM__Binary__WHERE__Name___Prereq.dll
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
call fcn.00407880
mov byte [ebp - 4], 3
lea eax, [ebp - 0x5c]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.msi.dll_MsiGetFeatureCostA]
lea edx, [ebp - 0x44]
mov ecx, eax
call fcn.004deb10
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.00407b40
cmp dword [ebp - 0x48], 8
lea esi, [ebp - 0x5c]
push 0x5c
cmovae esi, dword [ebp - 0x5c]
push esi
call fcn.00522c09
add esp, 8
test eax, eax
je 0x4f635e
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x60], eax
lea edx, [ebp - 0x68]
push dword [ebp - 0x60]
lea eax, [ebp - 0x60]
mov dword [ebp - 0x68], eax
lea ecx, [ebp - 0x78]
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x64], eax
call fcn.004fb9f0
add esp, 4
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x4f63a4
push str.InstallPrereq
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4f63a4
push dword [ebp + 0xc]
call eax
mov dword [ebx], eax
mov bl, 1
jmp 0x4f63a6
xor bl, bl
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x78]
call fcn.004fb6e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.00407b40
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005214e1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4fa4d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x568778
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x5d0074]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x21c]
mov esi, dword [ebp + 8]
push 0x104
mov dword [ebp - 0x23c], esi
push eax
mov dword [ebp - 0x238], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
add eax, eax
cmp eax, 0x208
jae 0x4fa62a
sub esp, 0x18
xor ecx, ecx
mov edx, esp
mov word [ebp + eax - 0x21c], cx
xor eax, eax
mov dword [ebp - 0x240], esp
mov dword [edx + 0x10], ecx
mov dword [edx + 0x14], 7
mov word [edx], ax
lea eax, [ebp - 0x21c]
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4fa563
sub eax, edi
mov ecx, edx
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00407880
mov dword [ebp - 4], 1
mov byte [ebp - 4], 0
mov ecx, esi
call fcn.0048bb00
mov dword [ebp - 4], 0
xor eax, eax
push 0xb
mov dword [ebp - 0x224], 0
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x220], 0
push str.msiexec.exe
mov dword [ebp - 0x238], 1
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
call fcn.00407880
mov dword [ebp - 4], 2
lea eax, [ebp - 0x234]
push eax
mov ecx, esi
call fcn.00445380
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x234]
call fcn.00407b40
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005214e1
mov esp, ebp
pop ebp
ret 4
call fcn.00521d89
int3
Function at 0x4fadd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5688d8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x5d0074]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x60], ecx
mov esi, dword [ebp + 8]
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x44]
push eax
mov ecx, esi
call fcn.004eb6b0
test al, al
jne 0x4faf11
mov ecx, esi
call fcn.004ebb10
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call fcn.004eb6b0
test al, al
jne 0x4faf11
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
call fcn.0052ad59
mov edi, eax
add esp, 4
and eax, 0xff000000
cmp eax, 0xd000000
je 0x4faee1
mov eax, dword [ebp - 0x60]
cmp dword [ebp - 0x18], 8
mov ecx, dword [eax + 0x74]
mov eax, dword [ecx]
mov edx, dword [eax]
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
push edi
call edx
mov edx, eax
lea ecx, [ebp - 0x5c]
call fcn.00484850
mov ecx, eax
mov byte [ebp - 4], 2
mov eax, dword [ecx + 0x10]
add eax, eax
cmp dword [ecx + 0x14], 8
jb 0x4faeb9
mov ecx, dword [ecx]
push 0
lea edx, [ebp - 0x64]
push edx
push eax
push ecx
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c]
call fcn.00407b40
jmp 0x4faefe
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.0052ad59
add esp, 4
mov ecx, esi
mov ebx, eax
call fcn.004ebb10
lea eax, [ebp - 0x44]
mov ecx, esi
push eax
call fcn.004eb6b0
test al, al
je 0x4fae47
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00407b40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00407b40
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005214e1
mov esp, ebp
pop ebp
ret 4

Function at 0x4fb6e0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x568a90
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5d0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
cmp byte [esi + 8], 0
jne 0x4fb73d
mov dword [ebp - 4], 0
mov eax, dword [esi]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esi + 4]
cmp dword [eax + 0x14], 8
jb 0x4fb72f
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50f630
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov ecx, dword [esp + 4]
mov eax, 0x811c9dc5
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
sub edi, ecx
xor esi, esi
and edi, 0xfffffffe
lea edx, [edi + ecx]
cmp ecx, edx
cmova edi, ebx
test edi, edi
je 0x50f668
movzx edx, byte [ecx]
lea ecx, [ecx + 1]
xor edx, eax
inc esi
imul eax, edx, 0x1000193
cmp esi, edi
jne 0x50f655
pop edi
pop esi
pop ebx
ret 8

Function at 0x510310
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56d986
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5d0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov edi, dword [ebp + 8]
lea esi, [ebx + 0x10]
lea ecx, [esi + 8]
mov dword [ebp + 8], esi
mov eax, dword [edi]
mov dword [ebx], eax
mov eax, dword [edi + 4]
mov dword [ebx + 4], eax
mov eax, dword [edi + 8]
mov dword [ebx + 8], eax
mov eax, dword [edi + 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [esi], eax
mov al, byte [edi + 0x14]
mov byte [esi + 4], al
lea eax, [edi + 0x18]
push eax
call fcn.00510430
mov dword [ebp - 4], 0
movq xmm0, qword [edi + 0x24]
movq qword [esi + 0x14], xmm0
mov eax, dword [edi + 0x2c]
mov dword [esi + 0x1c], eax
movq xmm0, qword [edi + 0x30]
movq qword [esi + 0x20], xmm0
mov eax, dword [edi + 0x38]
mov dword [esi + 0x28], eax
movq xmm0, qword [edi + 0x3c]
movq qword [esi + 0x2c], xmm0
mov eax, dword [edi + 0x44]
mov dword [esi + 0x34], eax
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x513360
Capabilities:
Parse credit card information

Disassembly:
push ebx
push esi
mov esi, ecx
xor cl, cl
push edi
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x51357b
cmp eax, 0x7c
je 0x51357b
cmp eax, 0x29
jne 0x5133a1
cmp dword [esi + 0x10], 0
jne 0x51357b
cmp eax, eax
jne 0x5133a1
test dword [esi + 0x50], 0x10000000
je 0x513588
jmp 0x513534
cmp eax, 0x2e
jne 0x513400
push 5
lea ecx, [esi + 0x24]
call fcn.005135e0
mov eax, dword [esi]
mov edx, dword [esi + 8]
cmp eax, edx
je 0x5133f4
cmp word [eax], 0x5c
jne 0x5133ef
lea ecx, [eax + 2]
cmp ecx, edx
je 0x5133ef
mov edx, dword [esi + 0x50]
test dl, 8
jne 0x5133db
movzx edi, word [ecx]
cmp edi, 0x28
je 0x5133ed
cmp edi, 0x29
je 0x5133ed
test dl, 0x10
jne 0x5133ef
movzx edx, word [ecx]
cmp edx, 0x7b
je 0x5133ed
cmp edx, 0x7d
jne 0x5133ef
mov eax, ecx
add eax, 2
mov dword [esi], eax
mov ecx, esi
call fcn.00511540
jmp 0x513566
cmp eax, 0x5c
jne 0x51345f
mov ecx, esi
call fcn.00513310
test byte [esi + 0x50], 0x80
je 0x513453
movzx eax, word [esi + 0x48]
cmp eax, 0x62
jne 0x513431
push 4
lea ecx, [esi + 0x24]
call fcn.005135e0
mov ecx, esi
call fcn.00513310
jmp 0x51356d
cmp eax, 0x42
jne 0x513453
push 4
lea ecx, [esi + 0x24]
call fcn.005135e0
mov eax, dword [esi + 0x28]
mov ecx, esi
xor dword [eax + 8], 1
call fcn.00513310
jmp 0x51356d
mov ecx, esi
call fcn.005146d0
jmp 0x513566
cmp eax, 0x5b
jne 0x5134c0
mov ecx, esi
call fcn.00513310
lea ecx, [esi + 0x24]
call fcn.00515fd0
mov eax, dword [esi + 0x4c]
cmp eax, 0x5e
jne 0x51348c
mov eax, dword [esi + 0x28]
mov ecx, esi
xor dword [eax + 8], 1
call fcn.00513310
mov eax, dword [esi + 0x4c]
test dword [esi + 0x50], 0x20000000
je 0x5134aa
cmp eax, 0x5d
jne 0x5134aa
push eax
lea ecx, [esi + 0x24]
call fcn.005160a0
mov ecx, esi
call fcn.00513310
mov ecx, esi
call fcn.00515b60
cmp dword [esi + 0x4c], 0x5d
jne 0x51358f
jmp 0x51355f
cmp eax, 0x28
jne 0x5134f0
mov ecx, esi
call fcn.00513310
mov ecx, esi
call fcn.005148b0
cmp dword [esi + 0x4c], 0x29
mov bl, al
jne 0x513588
mov ecx, esi
call fcn.00513310
test bl, bl
je 0x51356d
jmp 0x513566
cmp eax, 0x5e
jne 0x513508
push 2
lea ecx, [esi + 0x24]
call fcn.005135e0
mov ecx, esi
call fcn.00513310
jmp 0x51356d
cmp eax, 0x24
jne 0x513520
push 3
lea ecx, [esi + 0x24]
call fcn.005135e0
mov ecx, esi
call fcn.00513310
jmp 0x51356d
cmp eax, 0x2a
je 0x513581
cmp eax, 0x2b
je 0x513581
cmp eax, 0x3f
je 0x513581
cmp eax, 0x7b
je 0x513581
cmp eax, 0x7d
jne 0x513544
test dword [esi + 0x50], 0x10000000
je 0x513596
jmp 0x513552
cmp eax, 0x5d
jne 0x513552
test dword [esi + 0x50], 0x10000000
je 0x51358f
movzx eax, word [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.00514b20
mov ecx, esi
call fcn.00513310
mov ecx, esi
call fcn.005149c0
mov eax, dword [esi + 0x4c]
mov cl, 1
cmp eax, 0xffffffff
jne 0x513373
pop edi
pop esi
mov al, cl
pop ebx
ret
push 0xa
call fcn.00511530
push 5
call fcn.00511530
push 4
call fcn.00511530
push 6
call fcn.00511530
int3
Function at 0x518e90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56e8f8
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x5d0074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 0x24c], eax
add eax, eax
cmp eax, 0x208
jae 0x5190f4
sub esp, 0x18
xor ecx, ecx
mov edx, esp
mov word [ebp + eax - 0x218], cx
xor eax, eax
mov dword [ebp - 0x25c], esp
mov dword [edx + 0x10], ecx
lea ecx, [ebp - 0x218]
mov dword [edx + 0x14], 7
lea esi, [ecx + 2]
mov word [edx], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x518f10
sub ecx, esi
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, edx
call fcn.00407880
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.0048bb00
mov dword [ebp - 4], 1
xor eax, eax
push 7
mov dword [ebp - 0x220], 0
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x21c], 0
push str.msi.dll
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
call fcn.00407880
mov byte [ebp - 4], 2
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x248]
call fcn.00445380
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x230]
call fcn.00407b40
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x248]
mov eax, dword [ebp - 0x254]
sub eax, dword [ebp - 0x258]
sar eax, 1
mov dword [ebp - 0x24c], eax
lea eax, [ebp - 0x230]
push eax
call fcn.0048d0b0
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 8
jb 0x51900a
mov eax, dword [eax]
mov esi, dword [sym.imp.msi.dll_MsiMessageBoxW]
lea ecx, [ebp - 0x24c]
push 0
push 0
push ecx
push 0
push eax
call esi
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x230]
call fcn.00407b40
mov eax, dword [ebp - 0x24c]
lea ecx, [ebp - 0x258]
inc eax
push ecx
push eax
call fcn.0048ddf0
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x248]
call fcn.0048d0b0
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 8
jb 0x519061
mov eax, dword [eax]
push 0
push 0
lea ecx, [ebp - 0x24c]
push ecx
push dword [ebp - 0x258]
push eax
call esi
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x230]
call fcn.00407b40
mov esi, dword [ebp - 0x24c]
xor edx, edx
mov edi, dword [ebp - 0x258]
xor eax, eax
cmp eax, esi
jae 0x5190b1
movzx ecx, word [edi + eax*2]
cmp ecx, 0x2e
je 0x5190ab
lea edx, [edx + edx*4]
add edx, edx
add edx, 0xffffffd0
add edx, ecx
inc eax
cmp eax, 3
jb 0x519094
lea esi, [edx + edx*4]
add esi, esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x258]
call fcn.0048d6e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.00407b40
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005214e1
mov esp, ebp
pop ebp
ret
call fcn.00521d89
int3
Function at 0x51b160
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56edc8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5d0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], edx
mov ebx, ecx
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x51b28b
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00411fd0
mov ecx, eax
test ecx, ecx
je 0x51b29d
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 1
push 0x5c
push dword [ebx]
call fcn.00522f4c
add esp, 8
or edi, 0xffffffff
test eax, eax
je 0x51b25e
sub eax, dword [ebx]
sar eax, 1
cmp eax, edi
je 0x51b25e
push eax
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.00409d90
mov byte [ebp - 4], 2
lea ebx, [esi - 0x10]
mov edx, dword [eax]
lea ecx, [edx - 0x10]
cmp ecx, ebx
je 0x51b240
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x51b231
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x51b231
call fcn.0040a1d0
mov dword [ebp - 0x14], eax
mov ecx, edi
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x51b229
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x14]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
jmp 0x51b240
push dword [edx - 0xc]
lea ecx, [ebp - 0x10]
push edx
call fcn.004126c0
mov esi, dword [ebp - 0x10]
mov byte [ebp - 4], 1
mov eax, edi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x51b25e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [esi - 0xc], 0
je 0x51b26f
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x10]
call fcn.0051af50
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x51b28b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004126a0
int3