joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f95a0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57bffd
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x5e8024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push dword [ebx + 0x4c]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [ebx + 0x60]
add eax, dword [ebx + 0x5c]
mov ecx, dword [ebx + 0x58]
mov dword [ebp - 0x64], eax
dec ecx
dec eax
and ecx, eax
mov eax, dword [ebx + 0x54]
mov eax, dword [eax + ecx*4]
mov edi, eax
mov dword [ebp - 0x5c], eax
cmp dword [eax + 0x14], 8
mov esi, dword [eax + 0x10]
jb 0x4f95fc
mov edi, dword [eax]
xor ecx, ecx
mov edx, 0x811c9dc5
add esi, esi
je 0x4f961b
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x4f9607
mov eax, dword [ebp - 0x5c]
push edx
push eax
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebx + 0x64]
call fcn.0040b800
mov eax, dword [eax + 4]
test eax, eax
jne 0x4f9633
mov eax, dword [ebx + 0x68]
cmp eax, dword [ebx + 0x68]
je 0x4f963d
mov esi, dword [eax + 0x20]
jmp 0x4f963f
xor esi, esi
mov ecx, ebx
call fcn.004f8290
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x5c], esp
push 0
push 0x593988
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
call fcn.004082a0
mov dword [ebp - 4], 0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x64], esp
push 0
push 0x593988
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
call fcn.004082a0
mov byte [ebp - 4], 1
push 0x139d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.004e7d90
mov dword [ebp - 4], 2
lea edx, [ebp - 0x58]
mov ecx, dword [ebx + 0x24]
mov dword [ebp - 0x24], esi
push edx
mov eax, dword [ecx]
call dword [eax + 8]
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x3c]
call fcn.00408570
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.00408570
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052df57
mov esp, ebp
pop ebp
ret
Function at 0x4f9d00
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57c174
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x5e8024]
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 esi, ecx
cmp dword [esi + 0x60], 0
je 0x4f9e40
mov eax, dword [esi + 0x60]
add eax, dword [esi + 0x5c]
mov ecx, dword [esi + 0x58]
mov dword [ebp - 0xa8], eax
dec ecx
dec eax
and ecx, eax
mov eax, dword [esi + 0x54]
mov eax, dword [eax + ecx*4]
mov ebx, eax
mov dword [ebp - 0xa8], eax
cmp dword [eax + 0x14], 8
mov edi, dword [eax + 0x10]
jb 0x4f9d66
mov ebx, dword [eax]
xor ecx, ecx
mov edx, 0x811c9dc5
add edi, edi
je 0x4f9d88
movzx eax, byte [ecx + ebx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x4f9d71
mov eax, dword [ebp - 0xa8]
push edx
push eax
lea eax, [ebp - 0xac]
push eax
lea ecx, [esi + 0x64]
call fcn.0040b800
mov eax, dword [eax + 4]
test eax, eax
jne 0x4f9da3
mov eax, dword [esi + 0x68]
cmp eax, dword [esi + 0x68]
je 0x4f9dad
mov edi, dword [eax + 0x20]
jmp 0x4f9daf
xor edi, edi
mov ecx, dword [esi + 0x24]
mov eax, dword [ecx]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov edx, dword [eax + 8]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x5c], eax
xor eax, eax
mov word [ebp - 0x58], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 1
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 2
lea eax, [ebp - 0x5c]
push eax
call edx
mov bl, al
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x40]
call fcn.00408570
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
jmp 0x4f9ef8
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
mov eax, dword [eax + 0x34]
mov dword [ebp - 0xa4], 0x13a4
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 7
mov word [ebp - 0xa0], cx
mov dword [ebp - 4], 5
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], cx
mov byte [ebp - 4], 6
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x64], ecx
mov dword [ebp - 4], 7
lea edx, [ebp - 0xa4]
mov ecx, dword [esi + 0x24]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
mov bl, al
mov dword [ebp - 4], 8
lea ecx, [ebp - 0x88]
call fcn.00408570
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa0]
call fcn.00408570
mov al, bl
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.0052df57
mov esp, ebp
pop ebp
ret 4
Function at 0x4fb260
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57c4bd
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x5e8024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea ebx, [ecx + 0x98]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x50], ebx
cmp dword [edi + 0x14], 8
mov ecx, dword [edi + 0x10]
mov dword [ebp - 0x44], edi
jb 0x4fb2ae
mov eax, dword [edi]
mov dword [ebp - 0x44], eax
lea eax, [ecx + ecx]
mov edx, 0x811c9dc5
xor ecx, ecx
test eax, eax
je 0x4fb2d8
mov esi, dword [ebp - 0x44]
mov ebx, eax
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x4fb2c1
mov esi, dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x50]
push edx
push edi
lea eax, [ebp - 0x54]
mov ecx, ebx
push eax
call fcn.0040b800
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4fb313
cmp ecx, dword [ebx + 4]
je 0x4fb313
add ecx, 0x20
cmp ecx, esi
je 0x4fb3c2
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x4fb307
mov esi, dword [esi]
push eax
push esi
call fcn.004082a0
jmp 0x4fb3c2
xor eax, eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 2
lea eax, [ebp - 0x40]
cmp eax, edi
je 0x4fb379
cmp dword [edi + 0x14], 8
mov eax, dword [edi + 0x10]
jb 0x4fb36f
mov edi, dword [edi]
push eax
push edi
lea ecx, [ebp - 0x40]
call fcn.004082a0
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x4fb395
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x4fb38b
mov esi, dword [esi]
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.004082a0
lea eax, [ebp - 0x40]
mov ecx, ebx
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.00475000
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.00408570
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00408570
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052df57
mov esp, ebp
pop ebp
ret 8
Function at 0x4fb3e0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57c50e
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5e8024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
mov edx, dword [ebp + 0xc]
add eax, 0x98
mov dword [ebp - 0x14], 0
mov edi, edx
mov dword [ebp - 0x18], eax
cmp dword [edx + 0x14], 8
mov ebx, dword [edx + 0x10]
jb 0x4fb42c
mov edi, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
add ebx, ebx
je 0x4fb44b
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, ebx
jb 0x4fb437
mov eax, dword [ebp - 0x18]
push esi
push edx
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call fcn.0040b800
mov ecx, dword [ebp - 0x10]
mov eax, dword [eax + 4]
test eax, eax
jne 0x4fb468
mov eax, dword [ecx + 0x9c]
cmp eax, dword [ecx + 0x9c]
je 0x4fb4a1
mov ecx, dword [ebp + 8]
add eax, 0x20
push eax
call fcn.00407250
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 1
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4fbce0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57c821
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5e8024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0x5a8d00
mov dword [edi + 4], 0x5a8d34
mov dword [edi + 0x58], 0x5a8cf8
mov dword [ebp - 4], 7
lea ecx, [edi + 0x13c]
call fcn.00408570
mov byte [ebp - 4], 6
lea ecx, [edi + 0x124]
call fcn.00408570
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 0x4fbd5c
call eax
cmp dword [esi + 0x24], 8
lea eax, [esi + 0x10]
jb 0x4fbd68
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.00408570
mov byte [ebp - 4], 4
lea ecx, [edi + 0xd8]
call fcn.00408570
mov byte [ebp - 4], 3
lea ecx, [edi + 0xcc]
call fcn.0042fa50
mov byte [ebp - 4], 2
lea esi, [edi + 0x9c]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 0xb
lea ecx, [esi + 0xc]
call fcn.0040ad40
mov byte [ebp - 4], 2
mov edx, dword [esi + 4]
call fcn.00428350
push 0x38
push dword [esi + 4]
call fcn.0052df65
add esp, 8
mov byte [ebp - 4], 1
lea esi, [edi + 0x7c]
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 0xe
lea ecx, [esi + 0xc]
call fcn.0040ad40
mov byte [ebp - 4], 1
mov edx, dword [esi + 4]
call fcn.00428350
push 0x38
push dword [esi + 4]
call fcn.0052df65
add esp, 8
mov byte [ebp - 4], 0
mov eax, dword [edi + 0x5c]
test eax, eax
je 0x4fbe0c
push eax
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov dword [ebp - 4], 0xffffffff
lea ecx, [edi + 4]
call fcn.004fbc40
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 0x4fd690
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57cd8d
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x5e8024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [edi + 0x68]
lea ecx, [ebp - 0x28]
push 0xa
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push str.TRANSFORMS
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.004082a0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.004fb3e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.00408570
cmp dword [ebp - 0x30], 0
je 0x4fd82d
cmp dword [edi + 0xc8], 0
je 0x4fd821
mov eax, dword [edi + 0x68]
add eax, 4
push eax
call fcn.00501a70
test al, al
jne 0x4fd7f5
mov eax, dword [edi + 0x68]
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x4fd753
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x44]
call fcn.00416070
mov byte [ebp - 4], 3
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x4c], 0x5935fc
mov dword [ebp - 0x48], esi
mov byte [ebp - 4], 4
cmp esi, 0xffffffff
jne 0x4fd7a6
mov byte [ebp - 4], 3
push eax
mov dword [ebp - 0x4c], 0x5935fc
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
jmp 0x4fd7c7
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x4c], 0x5935fc
test esi, esi
je 0x4fd7ce
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x48], 0
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov edx, dword [ebp - 0x44]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4fd7ed
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp ebx, 0x3200000
jbe 0x4fd821
push ecx
mov ecx, dword [edi + 0xc8]
push 0
push 0xdc
call fcn.004ba650
lea eax, [edi + 0x58]
push eax
call fcn.004ba8d0
mov ecx, dword [edi + 0xc8]
lea ecx, [ecx + 0xc]
call fcn.004ba260
jmp 0x4fd82d
mov eax, dword [edi + 0x58]
lea ecx, [edi + 0x58]
push 0
push 0
call dword [eax]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00408570
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052df57
mov esp, ebp
pop ebp
ret
Function at 0x4fdcc0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57cf2d
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x5e8024]
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 0x4fdd1b
test dx, dx
je 0x4fdd17
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4fdd1b
add eax, 4
add ecx, 4
test dx, dx
jne 0x4fdcf5
xor eax, eax
jmp 0x4fdd20
sbb eax, eax
or eax, 1
test eax, eax
je 0x4fdd2b
xor al, al
jmp 0x4fde32
push 0
push 0
mov edx, str.prereq
lea ecx, [ebp - 0x44]
call fcn.0040a470
add esp, 8
mov dword [ebp - 4], 0
xor eax, eax
push 0x37
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push str.SELECT__Data__FROM__Binary__WHERE__Name___Prereq.dll
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
call fcn.004082a0
mov byte [ebp - 4], 1
push dword [ebp + 0xc]
call dword [sym.imp.msi.dll_MsiGetFeatureCostA]
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x2c]
mov ecx, eax
call fcn.004e52d0
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00408570
cmp dword [ebp - 0x30], 8
lea esi, [ebp - 0x44]
push 0x5c
cmovae esi, dword [ebp - 0x44]
push esi
call fcn.0052f665
add esp, 8
test eax, eax
je 0x4fddcd
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x48], eax
lea edx, [ebp - 0x50]
push dword [ebp - 0x48]
lea eax, [ebp - 0x48]
mov dword [ebp - 0x50], eax
lea ecx, [ebp - 0x60]
lea eax, [ebp - 0x44]
mov dword [ebp - 0x4c], eax
call fcn.00503ef0
add esp, 4
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x4fde13
push str.InstallPrereq
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4fde13
push dword [ebp + 0xc]
call eax
mov dword [ebx], eax
mov bl, 1
jmp 0x4fde15
xor bl, bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.005037c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00408570
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.0052df57
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5025b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57dcae
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x5e8024]
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 edi, dword [ebp + 8]
push 0x104
mov dword [ebp - 0x254], edi
push eax
mov dword [ebp - 0x250], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
add eax, eax
cmp eax, 0x208
jae 0x50276f
xor ecx, ecx
mov word [ebp + eax - 0x21c], cx
xor eax, eax
mov dword [ebp - 0x234], ecx
mov word [ebp - 0x234], ax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x224], ecx
lea edx, [eax + 2]
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x220], 7
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x502654
sub eax, edx
lea ecx, [ebp - 0x234]
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.004082a0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x234]
push 1
sub esp, 0x18
mov dword [ebp - 0x258], esp
mov esi, esp
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x25c], esp
push eax
call fcn.00407250
mov byte [ebp - 4], 2
mov byte [ebp - 4], 1
mov ecx, esi
call fcn.0048de20
add esp, 0x18
mov byte [ebp - 4], 3
mov byte [ebp - 4], 1
mov ecx, edi
call fcn.0048e260
mov byte [ebp - 4], 1
mov dword [ebp - 0x250], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x234]
call fcn.00408570
push 0xb
xor eax, eax
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x23c], 0
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x238], 0
push str.msiexec.exe
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 7
mov word [ebp - 0x24c], ax
call fcn.004082a0
mov dword [ebp - 4], 5
lea eax, [ebp - 0x24c]
push eax
mov ecx, edi
call fcn.0044a1a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24c]
call fcn.00408570
mov eax, edi
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.0052df57
mov esp, ebp
pop ebp
ret 4
call fcn.0052e542
int3
Function at 0x502bf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57dddd
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x5e8024]
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 - 0xe8], ecx
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0xe0], ebx
xor edi, edi
xor eax, eax
mov dword [ebp - 0xdc], ebx
mov dword [ebp - 0xcc], ebx
mov dword [ebp - 0xc8], ebx
mov dword [ebp - 0xe4], edi
mov dword [ebp - 0xcc], ebx
mov dword [ebp - 0xc8], 7
mov word [ebp - 0xdc], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0xac], eax
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], 7
mov word [ebp - 0xac], ax
mov byte [ebp - 4], 1
lea eax, [ebp - 0xdc]
push eax
mov ecx, esi
call fcn.004f26a0
test al, al
jne 0x502e3c
mov ecx, esi
call fcn.004f2b10
lea eax, [ebp - 0xac]
mov ecx, esi
push eax
call fcn.004f26a0
test al, al
jne 0x502e3c
cmp dword [ebp - 0xc8], 8
lea eax, [ebp - 0xdc]
cmovae eax, dword [ebp - 0xdc]
push eax
call fcn.005370a2
mov edi, eax
add esp, 4
and eax, 0xff000000
cmp eax, 0xd000000
je 0x502dfa
mov eax, dword [ebp - 0xe8]
cmp dword [ebp - 0x98], 8
mov ecx, dword [eax + 0x74]
mov eax, dword [ecx]
mov edx, dword [eax]
lea eax, [ebp - 0xac]
cmovae eax, dword [ebp - 0xac]
push eax
push edi
call edx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x94]
push 0xa
push 0x40
push ecx
push eax
call fcn.00537e2e
add esp, 0x10
mov dword [ebp - 0xc4], 0
xor eax, eax
mov dword [ebp - 0xb4], 0
mov word [ebp - 0xc4], ax
lea eax, [ebp - 0x94]
mov dword [ebp - 0xb0], 0
lea edx, [eax + 2]
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 7
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x502d75
sub eax, edx
lea ecx, [ebp - 0xc4]
sar eax, 1
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.004082a0
or ebx, 1
lea edx, [ebp - 0xec]
mov dword [ebp - 0xe0], ebx
mov eax, dword [ebp - 0xb4]
cmp dword [ebp - 0xb0], 8
push 0
push edx
lea ecx, [eax + eax]
lea eax, [ebp - 0xc4]
cmovae eax, dword [ebp - 0xc4]
push ecx
push eax
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
and ebx, 0xfffffffe
mov dword [ebp - 0xe0], ebx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xc4]
call fcn.00408570
mov edi, dword [ebp - 0xe4]
jmp 0x502e26
cmp dword [ebp - 0x98], 8
lea eax, [ebp - 0xac]
cmovae eax, dword [ebp - 0xac]
push eax
call fcn.005370a2
add esp, 4
mov edi, eax
mov ecx, esi
mov dword [ebp - 0xe4], edi
call fcn.004f2b10
lea eax, [ebp - 0xdc]
mov ecx, esi
push eax
call fcn.004f26a0
test al, al
je 0x502ca8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xac]
call fcn.00408570
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xdc]
call fcn.00408570
mov eax, edi
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.0052df57
mov esp, ebp
pop ebp
ret 4
Function at 0x5037c0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57e000
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5e8024]
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 0x50381d
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 0x50380f
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 0x503850
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57e07d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5e8024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], 0
lea eax, [edi + 0x68]
mov dword [edi], 0x5a8cbc
mov dword [edi + 0x10], 0x5a8cac
mov dword [ebp - 0x18], eax
mov dword [eax], vtable.std::ios_base.0
mov dword [eax + 8], 0
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
mov dword [eax + 0x30], 0
mov dword [ebp - 4], 0
mov dword [eax], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 4], 1
lea ebx, [edi + 0x18]
mov eax, dword [edi]
push 0
push ebx
mov dword [ebp - 0x14], 1
mov eax, dword [eax + 4]
mov dword [edi + eax], 0x5a8ca8
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.00493990
mov dword [ebp - 4], 6
mov eax, dword [edi + 0x10]
mov eax, dword [eax + 4]
mov dword [edi + eax + 0x10], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [edi + 0x10]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edi + 0xc], eax
mov dword [ebp - 4], 9
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], 0x5a8cb4
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ecx + edi - 4], eax
mov dword [ebp - 4], 0xa
mov eax, dword [edi]
push 8
mov eax, dword [eax + 4]
mov dword [edi + eax], 0x5a8cb8
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
lea eax, [ecx - 0x68]
mov dword [ecx + edi - 4], eax
mov dword [ebx], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0052df96
push 1
mov esi, eax
call fcn.0052c45d
mov dword [esi + 4], eax
add esp, 8
lea eax, [edi + 0x18]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
lea esi, [eax + 8]
mov dword [ebp - 0x18], ebx
lea edi, [eax + 0x14]
mov dword [eax + 0xc], ebx
lea ecx, [eax + 0x18]
mov dword [eax + 0x10], esi
lea edx, [eax + 0x24]
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
mov ebx, dword [ebp - 0x10]
add eax, 0x28
mov dword [ebx + 0x48], eax
mov ebx, dword [ebp - 0x18]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x18], 0x5a0bbc
mov dword [eax + 0x50], 0
mov dword [eax + 0x54], 0
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 4