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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5725ed
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x5dd024]
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 0x4f190c
mov edi, dword [eax]
xor ecx, ecx
mov edx, 0x811c9dc5
add esi, esi
je 0x4f192b
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x4f1917
mov eax, dword [ebp - 0x5c]
push edx
push eax
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebx + 0x64]
call fcn.0040ad70
mov eax, dword [eax + 4]
test eax, eax
jne 0x4f1943
mov eax, dword [ebx + 0x68]
cmp eax, dword [ebx + 0x68]
je 0x4f194d
mov esi, dword [eax + 0x20]
jmp 0x4f194f
xor esi, esi
mov ecx, ebx
call fcn.004f05f0
sub esp, 0x18
xor eax, eax
mov ecx, esp
mov dword [ebp - 0x5c], esp
push eax
push 0x589988
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
call fcn.00407c60
mov dword [ebp - 4], 0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x64], esp
xor eax, eax
push eax
push 0x589988
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
call fcn.00407c60
mov byte [ebp - 4], 1
push 0x139d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.004e0590
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.00407f30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.00407f30
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.005255bb
mov esp, ebp
pop ebp
ret
Function at 0x4f1fe0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x572764
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x5dd024]
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 0x4f2116
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 0x4f2046
mov ebx, dword [eax]
xor ecx, ecx
mov edx, 0x811c9dc5
add edi, edi
je 0x4f2068
movzx eax, byte [ecx + ebx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x4f2051
mov eax, dword [ebp - 0xa8]
push edx
push eax
lea eax, [ebp - 0xac]
push eax
lea ecx, [esi + 0x64]
call fcn.0040ad70
mov eax, dword [eax + 4]
test eax, eax
jne 0x4f2083
mov eax, dword [esi + 0x68]
cmp eax, dword [esi + 0x68]
je 0x4f208d
mov edi, dword [eax + 0x20]
jmp 0x4f208f
xor edi, edi
mov ecx, dword [esi + 0x24]
mov eax, dword [ecx]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x48], 0
mov edx, dword [eax + 8]
mov eax, dword [ebp + 8]
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 - 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.00407f30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
jmp 0x4f21be
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0xa4], 0x13a4
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 7
mov word [ebp - 0xa0], cx
mov dword [ebp - 4], 5
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.00407f30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa0]
call fcn.00407f30
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.005255bb
mov esp, ebp
pop ebp
ret 4
Function at 0x4f34c0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x572aad
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x5dd024]
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 0x4f350e
mov eax, dword [edi]
mov dword [ebp - 0x44], eax
lea eax, [ecx + ecx]
mov edx, 0x811c9dc5
xor ecx, ecx
test eax, eax
je 0x4f3538
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 0x4f3521
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.0040ad70
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4f3573
cmp ecx, dword [ebx + 4]
je 0x4f3573
add ecx, 0x20
cmp ecx, esi
je 0x4f3618
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x4f3567
mov esi, dword [esi]
push eax
push esi
call fcn.00407c60
jmp 0x4f3618
xor eax, eax
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 - 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 0x4f35cf
cmp dword [edi + 0x14], 8
mov eax, dword [edi + 0x10]
jb 0x4f35c5
mov edi, dword [edi]
push eax
push edi
lea ecx, [ebp - 0x40]
call fcn.00407c60
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x4f35eb
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x4f35e1
mov esi, dword [esi]
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00407c60
lea eax, [ebp - 0x40]
mov ecx, ebx
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.0046f5e0
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.00407f30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00407f30
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.005255bb
mov esp, ebp
pop ebp
ret 8
Function at 0x4f3640
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x572afe
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5dd024]
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 0x4f368c
mov edi, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
add ebx, ebx
je 0x4f36ab
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, ebx
jb 0x4f3697
mov eax, dword [ebp - 0x18]
push esi
push edx
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call fcn.0040ad70
mov ecx, dword [ebp - 0x10]
mov eax, dword [eax + 4]
test eax, eax
jne 0x4f36c8
mov eax, dword [ecx + 0x9c]
cmp eax, dword [ecx + 0x9c]
je 0x4f3701
mov ecx, dword [ebp + 8]
add eax, 0x20
push eax
call fcn.00406c50
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 + 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 0x4f3ee0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x572e11
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5dd024]
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], 0x59ec64
mov dword [edi + 4], 0x59ec98
mov dword [edi + 0x58], 0x59ec5c
mov dword [ebp - 4], 7
lea ecx, [edi + 0x13c]
call fcn.00407f30
mov byte [ebp - 4], 6
lea ecx, [edi + 0x124]
call fcn.00407f30
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 0x4f3f5c
call eax
cmp dword [esi + 0x24], 8
lea eax, [esi + 0x10]
jb 0x4f3f68
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.00407f30
mov byte [ebp - 4], 4
lea ecx, [edi + 0xd8]
call fcn.00407f30
mov byte [ebp - 4], 3
lea ecx, [edi + 0xcc]
call fcn.0042e0c0
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.0040a2b0
mov byte [ebp - 4], 2
mov edx, dword [esi + 4]
call fcn.00426ed0
push 0x38
push dword [esi + 4]
call fcn.005255cc
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.0040a2b0
mov byte [ebp - 4], 1
mov edx, dword [esi + 4]
call fcn.00426ed0
push 0x38
push dword [esi + 4]
call fcn.005255cc
add esp, 8
mov byte [ebp - 4], 0
mov eax, dword [edi + 0x5c]
test eax, eax
je 0x4f400c
push eax
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov dword [ebp - 4], 0xffffffff
lea ecx, [edi + 4]
call fcn.004f3e40
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 0x4f5850
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57337d
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x5dd024]
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 - 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.00407c60
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.004f3640
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.00407f30
cmp dword [ebp - 0x30], 0
je 0x4f59e6
cmp dword [edi + 0xc8], 0
je 0x4f59da
mov eax, dword [edi + 0x68]
add eax, 4
push eax
call fcn.004f9ea0
test al, al
jne 0x4f59ae
mov eax, dword [edi + 0x68]
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x4f590c
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x44]
call fcn.004154d0
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], 0x5895fc
mov dword [ebp - 0x48], esi
mov byte [ebp - 4], 4
cmp esi, 0xffffffff
jne 0x4f595f
mov byte [ebp - 4], 3
push eax
mov dword [ebp - 0x4c], 0x5895fc
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
jmp 0x4f5980
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x4c], 0x5895fc
test esi, esi
je 0x4f5987
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 0x4f59a6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp ebx, 0x3200000
jbe 0x4f59da
push ecx
mov ecx, dword [edi + 0xc8]
push 0
push 0xdc
call fcn.004b3010
lea eax, [edi + 0x58]
push eax
call fcn.004b3290
mov ecx, dword [edi + 0xc8]
lea ecx, [ecx + 0xc]
call fcn.004b2c20
jmp 0x4f59e6
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.00407f30
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.005255bb
mov esp, ebp
pop ebp
ret
Function at 0x4f5d60
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5734ed
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x5dd024]
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 0x4f5dbb
test dx, dx
je 0x4f5db7
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4f5dbb
add eax, 4
add ecx, 4
test dx, dx
jne 0x4f5d95
xor eax, eax
jmp 0x4f5dc0
sbb eax, eax
or eax, 1
test eax, eax
je 0x4f5dcb
xor al, al
jmp 0x4f5ecb
push 0
push 0
mov edx, str.prereq
lea ecx, [ebp - 0x44]
call fcn.00409a10
add esp, 8
mov dword [ebp - 4], 0
xor eax, eax
push 0x37
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x2c]
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.00407c60
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.004ddc10
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00407f30
cmp dword [ebp - 0x30], 8
lea esi, [ebp - 0x44]
push 0x5c
cmovae esi, dword [ebp - 0x44]
push esi
call fcn.00526ce7
add esp, 8
test eax, eax
je 0x4f5e66
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.004fc170
add esp, 4
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x4f5eac
push str.InstallPrereq
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4f5eac
push dword [ebp + 0xc]
call eax
mov dword [ebx], eax
mov bl, 1
jmp 0x4f5eae
xor bl, bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.004fba40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00407f30
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.005255bb
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4fa8d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5743ce
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x5dd024]
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 0x4faa81
xor ecx, ecx
mov word [ebp + eax - 0x21c], cx
xor eax, eax
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
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4fa970
sub eax, edx
lea ecx, [ebp - 0x234]
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00407c60
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.00406c50
mov byte [ebp - 4], 2
mov byte [ebp - 4], 1
mov ecx, esi
call fcn.00486fe0
add esp, 0x18
mov byte [ebp - 4], 3
mov byte [ebp - 4], 1
mov ecx, edi
call fcn.00487410
mov byte [ebp - 4], 1
mov dword [ebp - 0x250], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x234]
call fcn.00407f30
push 0xb
xor eax, eax
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 0
lea ecx, [ebp - 0x24c]
push str.msiexec.exe
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 7
mov word [ebp - 0x24c], ax
call fcn.00407c60
mov dword [ebp - 4], 5
lea eax, [ebp - 0x24c]
push eax
mov ecx, edi
call fcn.00447520
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24c]
call fcn.00407f30
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.005255bb
mov esp, ebp
pop ebp
ret 4
call fcn.00525ba9
int3
Function at 0x4faec0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5744fd
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x5dd024]
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 - 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 - 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.004eab80
test al, al
jne 0x4fb0fa
nop dword [eax]
mov ecx, esi
call fcn.004eaf90
lea eax, [ebp - 0xac]
mov ecx, esi
push eax
call fcn.004eab80
test al, al
jne 0x4fb0fa
cmp dword [ebp - 0xc8], 8
lea eax, [ebp - 0xdc]
cmovae eax, dword [ebp - 0xdc]
push eax
call fcn.0052e722
mov edi, eax
add esp, 4
and eax, 0xff000000
cmp eax, 0xd000000
je 0x4fb0b8
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.0052f4ae
add esp, 0x10
mov dword [ebp - 0xb4], 0
xor eax, eax
mov dword [ebp - 0xb0], 0
mov word [ebp - 0xc4], ax
lea eax, [ebp - 0x94]
mov dword [ebp - 0xb4], 0
lea edx, [eax + 2]
mov dword [ebp - 0xb0], 7
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4fb033
sub eax, edx
lea ecx, [ebp - 0xc4]
sar eax, 1
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.00407c60
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.00407f30
mov edi, dword [ebp - 0xe4]
jmp 0x4fb0e4
cmp dword [ebp - 0x98], 8
lea eax, [ebp - 0xac]
cmovae eax, dword [ebp - 0xac]
push eax
call fcn.0052e722
add esp, 4
mov edi, eax
mov ecx, esi
mov dword [ebp - 0xe4], edi
call fcn.004eaf90
lea eax, [ebp - 0xdc]
mov ecx, esi
push eax
call fcn.004eab80
test al, al
je 0x4faf70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xac]
call fcn.00407f30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xdc]
call fcn.00407f30
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.005255bb
mov esp, ebp
pop ebp
ret 4
Function at 0x4fba40
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x574720
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5dd024]
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 0x4fba9d
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 0x4fba8f
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 0x4fbad0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57479d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5dd024]
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], 0x59ec20
mov dword [edi + 0x10], 0x59ec10
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], 0x59ec0c
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.0048ca60
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], 0x59ec18
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], 0x59ec1c
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.005255fd
push 1
mov esi, eax
call fcn.00523add
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], 0x596c00
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