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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56d43d
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x5d6024]
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 - 0x60], 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 0x4f091c
mov edi, dword [eax]
xor ecx, ecx
mov edx, 0x811c9dc5
add esi, esi
je 0x4f093b
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x4f0927
mov eax, dword [ebp - 0x5c]
push edx
push eax
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebx + 0x64]
call fcn.0040add0
mov eax, dword [eax + 4]
test eax, eax
jne 0x4f0953
mov eax, dword [ebx + 0x68]
cmp eax, dword [ebx + 0x68]
je 0x4f095d
mov esi, dword [eax + 0x20]
jmp 0x4f095f
xor esi, esi
mov ecx, ebx
call fcn.004ef600
sub esp, 0x18
xor eax, eax
mov ecx, esp
mov dword [ebp - 0x5c], esp
push eax
push 0x584008
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
call fcn.00407c80
mov dword [ebp - 4], 0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x60], esp
xor eax, eax
push eax
push 0x584008
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
call fcn.00407c80
mov byte [ebp - 4], 1
push 0x139d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.004df570
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.00407f50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.00407f50
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.00521461
mov esp, ebp
pop ebp
ret
Function at 0x4f0ff0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56d614
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x5d6024]
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 0x4f1126
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 0x4f1056
mov ebx, dword [eax]
xor ecx, ecx
mov edx, 0x811c9dc5
add edi, edi
je 0x4f1078
movzx eax, byte [ecx + ebx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x4f1061
mov eax, dword [ebp - 0xa8]
push edx
push eax
lea eax, [ebp - 0xac]
push eax
lea ecx, [esi + 0x64]
call fcn.0040add0
mov eax, dword [eax + 4]
test eax, eax
jne 0x4f1093
mov eax, dword [esi + 0x68]
cmp eax, dword [esi + 0x68]
je 0x4f109d
mov edi, dword [eax + 0x20]
jmp 0x4f109f
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.00407f50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
jmp 0x4f11ce
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.00407f50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa0]
call fcn.00407f50
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.00521461
mov esp, ebp
pop ebp
ret 4
Function at 0x4f24e0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56d95d
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x5d6024]
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 0x4f252e
mov eax, dword [edi]
mov dword [ebp - 0x44], eax
lea eax, [ecx + ecx]
mov edx, 0x811c9dc5
xor ecx, ecx
test eax, eax
je 0x4f2558
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 0x4f2541
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.0040add0
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4f2593
cmp ecx, dword [ebx + 4]
je 0x4f2593
add ecx, 0x20
cmp ecx, esi
je 0x4f2638
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x4f2587
mov esi, dword [esi]
push eax
push esi
call fcn.00407c80
jmp 0x4f2638
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 0x4f25ef
cmp dword [edi + 0x14], 8
mov eax, dword [edi + 0x10]
jb 0x4f25e5
mov edi, dword [edi]
push eax
push edi
lea ecx, [ebp - 0x40]
call fcn.00407c80
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x4f260b
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x4f2601
mov esi, dword [esi]
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00407c80
lea eax, [ebp - 0x40]
mov ecx, ebx
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.0046ecb0
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.00407f50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00407f50
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.00521461
mov esp, ebp
pop ebp
ret 8
Function at 0x4f2660
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56d9ae
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5d6024]
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 0x4f26ac
mov edi, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
add ebx, ebx
je 0x4f26cb
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, ebx
jb 0x4f26b7
mov eax, dword [ebp - 0x18]
push esi
push edx
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call fcn.0040add0
mov ecx, dword [ebp - 0x10]
mov eax, dword [eax + 4]
test eax, eax
jne 0x4f26e8
mov eax, dword [ecx + 0x9c]
cmp eax, dword [ecx + 0x9c]
je 0x4f2721
mov ecx, dword [ebp + 8]
add eax, 0x20
push eax
call fcn.00406c70
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 0x4f2f00
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56dcc1
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5d6024]
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], 0x5990a4
mov dword [edi + 4], 0x599098
mov dword [edi + 0x58], 0x59909c
mov dword [ebp - 4], 7
lea ecx, [edi + 0x13c]
call fcn.00407f50
mov byte [ebp - 4], 6
lea ecx, [edi + 0x124]
call fcn.00407f50
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 0x4f2f7c
call eax
cmp dword [esi + 0x24], 8
lea eax, [esi + 0x10]
jb 0x4f2f88
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.00407f50
mov byte [ebp - 4], 4
lea ecx, [edi + 0xd8]
call fcn.00407f50
mov byte [ebp - 4], 3
lea ecx, [edi + 0xcc]
call fcn.0042dcc0
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.0040a260
mov byte [ebp - 4], 2
mov edx, dword [esi + 4]
call fcn.00426ad0
push 0x38
push dword [esi + 4]
call fcn.00521472
add esp, 8
mov byte [ebp - 4], 1
lea esi, [edi + 0x7c]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 0xe
lea ecx, [esi + 0xc]
call fcn.0040a260
mov byte [ebp - 4], 1
mov edx, dword [esi + 4]
call fcn.00426ad0
push 0x38
push dword [esi + 4]
call fcn.00521472
add esp, 8
mov byte [ebp - 4], 0
mov eax, dword [edi + 0x5c]
test eax, eax
je 0x4f302c
push eax
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov dword [ebp - 4], 0xffffffff
lea ecx, [edi + 4]
call fcn.004f2e60
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 0x4f48e0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56e23d
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x5d6024]
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.00407c80
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.004f2660
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.00407f50
cmp dword [ebp - 0x30], 0
je 0x4f4a76
cmp dword [edi + 0xc8], 0
je 0x4f4a6a
mov eax, dword [edi + 0x68]
add eax, 4
push eax
call fcn.004f8fa0
test al, al
jne 0x4f4a3e
mov eax, dword [edi + 0x68]
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x4f499c
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x44]
call fcn.00415360
mov byte [ebp - 4], 3
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x4c], 0x583c78
mov dword [ebp - 0x48], esi
mov byte [ebp - 4], 4
cmp esi, 0xffffffff
jne 0x4f49ef
mov byte [ebp - 4], 3
push eax
mov dword [ebp - 0x4c], 0x583c78
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
jmp 0x4f4a10
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x4c], 0x583c78
test esi, esi
je 0x4f4a17
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 0x4f4a36
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp ebx, 0x3200000
jbe 0x4f4a6a
push ecx
mov ecx, dword [edi + 0xc8]
push 0
push 0xdc
call fcn.004b2b50
lea eax, [edi + 0x58]
push eax
call fcn.004b2dd0
mov ecx, dword [edi + 0xc8]
lea ecx, [ecx + 0xc]
call fcn.004b2770
jmp 0x4f4a76
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.00407f50
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.00521461
mov esp, ebp
pop ebp
ret
Function at 0x4f4df0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56e3ad
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x5d6024]
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 0x4f4e4b
test dx, dx
je 0x4f4e47
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4f4e4b
add eax, 4
add ecx, 4
test dx, dx
jne 0x4f4e25
xor eax, eax
jmp 0x4f4e50
sbb eax, eax
or eax, 1
test eax, eax
je 0x4f4e5b
xor al, al
jmp 0x4f4f5b
push 0
push 0
mov edx, str.prereq
lea ecx, [ebp - 0x44]
call fcn.00409a30
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.00407c80
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.004dccd0
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00407f50
cmp dword [ebp - 0x30], 8
lea esi, [ebp - 0x44]
push 0x5c
cmovae esi, dword [ebp - 0x44]
push esi
call fcn.00522bf8
add esp, 8
test eax, eax
je 0x4f4ef6
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.004fae60
add esp, 4
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x4f4f3c
push str.InstallPrereq
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4f4f3c
push dword [ebp + 0xc]
call eax
mov dword [ebx], eax
mov bl, 1
jmp 0x4f4f3e
xor bl, bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.004fab40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00407f50
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.00521461
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4f99d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56f27e
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x5d6024]
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 0x4f9b81
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 0x4f9a70
sub eax, edx
lea ecx, [ebp - 0x234]
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00407c80
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.00406c70
mov byte [ebp - 4], 2
mov byte [ebp - 4], 1
mov ecx, esi
call fcn.00486890
add esp, 0x18
mov byte [ebp - 4], 3
mov byte [ebp - 4], 1
mov ecx, edi
call fcn.00486cc0
mov byte [ebp - 4], 1
mov dword [ebp - 0x250], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x234]
call fcn.00407f50
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.00407c80
mov dword [ebp - 4], 5
lea eax, [ebp - 0x24c]
push eax
mov ecx, edi
call fcn.00446f60
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24c]
call fcn.00407f50
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.00521461
mov esp, ebp
pop ebp
ret 4
call fcn.00521a4e
int3
Function at 0x4f9fc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56f3ad
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x5d6024]
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.004e9b10
test al, al
jne 0x4fa1fa
nop dword [eax]
mov ecx, esi
call fcn.004e9f20
lea eax, [ebp - 0xac]
mov ecx, esi
push eax
call fcn.004e9b10
test al, al
jne 0x4fa1fa
cmp dword [ebp - 0xc8], 8
lea eax, [ebp - 0xdc]
cmovae eax, dword [ebp - 0xdc]
push eax
call fcn.0052ad66
mov edi, eax
add esp, 4
and eax, 0xff000000
cmp eax, 0xd000000
je 0x4fa1b8
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.0052b5ca
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 0x4fa133
sub eax, edx
lea ecx, [ebp - 0xc4]
sar eax, 1
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.00407c80
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.00407f50
mov edi, dword [ebp - 0xe4]
jmp 0x4fa1e4
cmp dword [ebp - 0x98], 8
lea eax, [ebp - 0xac]
cmovae eax, dword [ebp - 0xac]
push eax
call fcn.0052ad66
add esp, 4
mov edi, eax
mov ecx, esi
mov dword [ebp - 0xe4], edi
call fcn.004e9f20
lea eax, [ebp - 0xdc]
mov ecx, esi
push eax
call fcn.004e9b10
test al, al
je 0x4fa070
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xac]
call fcn.00407f50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xdc]
call fcn.00407f50
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.00521461
mov esp, ebp
pop ebp
ret 4
Function at 0x4fab40
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56f5d0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5d6024]
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 0x4fab9d
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 0x4fab8f
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 0x50a8b0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ecx
push ebx
push ebp
mov ebx, ecx
xor al, al
push esi
push edi
mov edi, dword [esp + 0x18]
cmp dword [ebx + 0xfc], 0
mov byte [esp + 0x13], al
je 0x50a97e
cmp dword [edi + 0x14], 8
lea eax, [ebx + 0xf4]
mov ebp, dword [edi + 0x10]
mov esi, edi
jb 0x50a8e1
mov esi, dword [edi]
xor edx, edx
mov ecx, 0x811c9dc5
add ebp, ebp
je 0x50a907
nop dword [eax]
movzx eax, byte [edx + esi]
inc edx
xor eax, ecx
imul ecx, eax, 0x1000193
cmp edx, ebp
jb 0x50a8f0
lea eax, [ebx + 0xf4]
push ecx
push edi
mov ecx, eax
call fcn.0050bf60
mov esi, eax
cmp esi, dword [ebx + 0xf8]
je 0x50a97e
mov ebp, dword [esp + 0x24]
nop
cmp dword [edi + 0x14], 8
lea ecx, [esi + 8]
mov edx, edi
jb 0x50a92d
mov edx, dword [edi]
cmp dword [ecx + 0x14], 8
mov eax, dword [ecx + 0x10]
jb 0x50a938
mov ecx, dword [ecx]
cmp eax, dword [edi + 0x10]
jne 0x50a973
push eax
call fcn.00407350
add esp, 4
test eax, eax
jne 0x50a973
push ebp
push dword [esp + 0x24]
lea eax, [esi + 0x20]
push ecx
push eax
push edi
mov ecx, ebx
call fcn.00509130
mov esi, dword [esi]
mov byte [esp + 0x13], 1
cmp esi, dword [ebx + 0xf8]
jne 0x50a920
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
cmp byte [esp + 0x13], 0
jne 0x50aa81
cmp dword [ebx + 0x11c], 0
je 0x50aa3d
cmp dword [edi + 0x14], 8
lea eax, [ebx + 0x114]
mov ebp, dword [edi + 0x10]
mov esi, edi
jb 0x50a99e
mov esi, dword [edi]
xor edx, edx
mov ecx, 0x811c9dc5
add ebp, ebp
je 0x50a9c7
nop dword [eax]
movzx eax, byte [edx + esi]
inc edx
xor eax, ecx
imul ecx, eax, 0x1000193
cmp edx, ebp
jb 0x50a9b0
lea eax, [ebx + 0x114]
push ecx
push edi
mov ecx, eax
call fcn.0050bf60
mov esi, eax
cmp esi, dword [ebx + 0x118]
je 0x50aa3d
nop word [eax + eax]
cmp dword [edi + 0x14], 8
lea ecx, [esi + 8]
mov edx, edi
jb 0x50a9ed
mov edx, dword [edi]
cmp dword [ecx + 0x14], 8
mov eax, dword [ecx + 0x10]
jb 0x50a9f8
mov ecx, dword [ecx]
cmp eax, dword [edi + 0x10]
jne 0x50aa36
push eax
call fcn.00407350
add esp, 4
test eax, eax
jne 0x50aa36
push dword [esp + 0x24]
lea eax, [esi + 0x20]
push dword [esp + 0x24]
push ecx
push eax
push edi
mov ecx, ebx
call fcn.00509130
mov esi, dword [esi]
mov byte [esp + 0x13], 1
cmp esi, dword [ebx + 0x118]
jne 0x50a9e0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
cmp byte [esp + 0x13], 0
jne 0x50aa81
cmp byte [esp + 0x24], 0
jne 0x50aa81
mov eax, dword [edi + 0x10]
test eax, eax
je 0x50aa81
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x50aa55
mov ecx, dword [edi]
cmp eax, 0xd
jne 0x50aa6c
push eax
mov edx, str.ExecuteAction
call fcn.00407350
add esp, 4
test eax, eax
je 0x50aa81
push 1
push dword [ebx + 0xc4]
mov ecx, edi
push dword [ebx + 0xc0]
call fcn.005075c0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10