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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56d174
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 0x4f1ad6
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 0x4f1a06
mov ebx, dword [eax]
xor ecx, ecx
mov edx, 0x811c9dc5
add edi, edi
je 0x4f1a28
movzx eax, byte [ecx + ebx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x4f1a11
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 0x4f1a43
mov eax, dword [esi + 0x68]
cmp eax, dword [esi + 0x68]
je 0x4f1a4d
mov edi, dword [eax + 0x20]
jmp 0x4f1a4f
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 0x4f1b7e
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.0052223b
mov esp, ebp
pop ebp
ret 4
Function at 0x4f2e80
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56d4bd
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 0x4f2ece
mov eax, dword [edi]
mov dword [ebp - 0x44], eax
lea eax, [ecx + ecx]
mov edx, 0x811c9dc5
xor ecx, ecx
test eax, eax
je 0x4f2ef8
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 0x4f2ee1
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 0x4f2f33
cmp ecx, dword [ebx + 4]
je 0x4f2f33
add ecx, 0x20
cmp ecx, esi
je 0x4f2fd8
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x4f2f27
mov esi, dword [esi]
push eax
push esi
call fcn.00407c60
jmp 0x4f2fd8
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 0x4f2f8f
cmp dword [edi + 0x14], 8
mov eax, dword [edi + 0x10]
jb 0x4f2f85
mov edi, dword [edi]
push eax
push edi
lea ecx, [ebp - 0x40]
call fcn.00407c60
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x4f2fab
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x4f2fa1
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.0052223b
mov esp, ebp
pop ebp
ret 8
Function at 0x4f3000
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56d50e
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 0x4f304c
mov edi, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
add ebx, ebx
je 0x4f306b
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, ebx
jb 0x4f3057
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 0x4f3088
mov eax, dword [ecx + 0x9c]
cmp eax, dword [ecx + 0x9c]
je 0x4f30c1
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 0x4f38a0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56d821
mov eax, dword fs:[0]
push eax
sub esp, 0xc
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], 0x598bcc
mov dword [edi + 4], 0x598c00
mov dword [edi + 0x58], 0x598bc4
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 0x4f391c
call eax
cmp dword [esi + 0x24], 8
lea eax, [esi + 0x10]
jb 0x4f3928
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.0052224c
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.0052224c
add esp, 8
mov byte [ebp - 4], 0
mov eax, dword [edi + 0x5c]
test eax, eax
je 0x4f39cc
push eax
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov dword [ebp - 4], 0xffffffff
lea ecx, [edi + 4]
call fcn.004f3800
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 0x4f5210
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56dd8d
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.00407c60
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.004f3000
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.00407f30
cmp dword [ebp - 0x30], 0
je 0x4f53a6
cmp dword [edi + 0xc8], 0
je 0x4f539a
mov eax, dword [edi + 0x68]
add eax, 4
push eax
call fcn.004f9860
test al, al
jne 0x4f536e
mov eax, dword [edi + 0x68]
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x4f52cc
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], 0x583588
mov dword [ebp - 0x48], esi
mov byte [ebp - 4], 4
cmp esi, 0xffffffff
jne 0x4f531f
mov byte [ebp - 4], 3
push eax
mov dword [ebp - 0x4c], 0x583588
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
jmp 0x4f5340
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x4c], 0x583588
test esi, esi
je 0x4f5347
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 0x4f5366
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp ebx, 0x3200000
jbe 0x4f539a
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 0x4f53a6
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.0052223b
mov esp, ebp
pop ebp
ret
Function at 0x4f5720
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56defd
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 0x4f577b
test dx, dx
je 0x4f5777
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4f577b
add eax, 4
add ecx, 4
test dx, dx
jne 0x4f5755
xor eax, eax
jmp 0x4f5780
sbb eax, eax
or eax, 1
test eax, eax
je 0x4f578b
xor al, al
jmp 0x4f588b
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.004dd5b0
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.00523967
add esp, 8
test eax, eax
je 0x4f5826
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.004fbb30
add esp, 4
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x4f586c
push str.InstallPrereq
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4f586c
push dword [ebp + 0xc]
call eax
mov dword [ebx], eax
mov bl, 1
jmp 0x4f586e
xor bl, bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.004fb400
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.0052223b
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4fa290
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56edde
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 0x4fa441
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 0x4fa330
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.00486fd0
add esp, 0x18
mov byte [ebp - 4], 3
mov byte [ebp - 4], 1
mov ecx, edi
call fcn.00487400
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.0052223b
mov esp, ebp
pop ebp
ret 4
call fcn.00522829
int3
Function at 0x4fa880
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56ef0d
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.004ea540
test al, al
jne 0x4faaba
nop dword [eax]
mov ecx, esi
call fcn.004ea950
lea eax, [ebp - 0xac]
mov ecx, esi
push eax
call fcn.004ea540
test al, al
jne 0x4faaba
cmp dword [ebp - 0xc8], 8
lea eax, [ebp - 0xdc]
cmovae eax, dword [ebp - 0xdc]
push eax
call fcn.0052b3a2
mov edi, eax
add esp, 4
and eax, 0xff000000
cmp eax, 0xd000000
je 0x4faa78
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.0052c12e
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 0x4fa9f3
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 0x4faaa4
cmp dword [ebp - 0x98], 8
lea eax, [ebp - 0xac]
cmovae eax, dword [ebp - 0xac]
push eax
call fcn.0052b3a2
add esp, 4
mov edi, eax
mov ecx, esi
mov dword [ebp - 0xe4], edi
call fcn.004ea950
lea eax, [ebp - 0xdc]
mov ecx, esi
push eax
call fcn.004ea540
test al, al
je 0x4fa930
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.0052223b
mov esp, ebp
pop ebp
ret 4
Function at 0x4fb400
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56f130
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 0x4fb45d
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 0x4fb44f
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 0x4fb490
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56f1ad
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 edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], 0
lea eax, [edi + 0x68]
mov dword [edi], 0x598b88
mov dword [edi + 0x10], 0x598b78
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], 0x598b74
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.0048ca50
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], 0x598b80
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], 0x598b84
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.0052227d
push 1
mov esi, eax
call fcn.0052075d
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], 0x590b70
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