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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov edi, dword [esp + 0x4c]
mov ebp, dword [esp + 0x3c]
mov esi, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebp + esi + 2], 0
lea esi, [esi + 2]
jne 0x4416a0
sar esi, 1
lea ebx, [esi + 4]
mov ecx, esi
and ecx, 1
mov eax, ebx
or eax, 1
add eax, ecx
jns 0x4416c5
mov eax, 0xffffffff
jmp 0x4416c7
add eax, eax
push eax
call fcn.004087e0
add esp, 4
mov dword [eax], 0x3f005c
mov dword [eax + 4], 0x5c003f
mov word [eax + 8], 0
mov ecx, eax
add ecx, 8
movzx edx, word [ebp]
test dx, dx
je 0x441712
add ebp, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [ecx], dx
add ecx, 2
movzx edx, word [ebp]
add ebp, 2
test dx, dx
jne 0x441700
mov word [ecx], 0
mov ecx, ebx
and ecx, 0xfffd
and esi, 2
mov edx, esi
xor edx, 2
imul edx, ecx
or ebx, 2
imul ebx, esi
lea ecx, [ebx + edx]
mov word [esp + 8], cx
lea ecx, [ebx + edx]
add ecx, 2
mov word [esp + 0xa], cx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0x18
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], 0x40
lea ecx, [esp + 8]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp], 0x989b9a9d
mov ecx, 0x4247dbdb
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + ecx - 0x4247dbdb]
xor edx, ecx
mov esi, edx
and esi, 1
or edx, 1
add edx, esi
add dl, 0xb8
mov byte [esp + ecx - 0x4247dbdb], dl
inc ecx
cmp ecx, 0x4247dbdf
jne 0x441790
mov esi, dword [esp]
mov ecx, dword [0x44de2c]
test ecx, ecx
je 0x441814
xor edx, edx
mov ebx, dword [0x44de30]
nop
nop
nop
nop
cmp dword [ebx + edx*8], 0x3174e150
je 0x4417e0
inc edx
cmp ecx, edx
jne 0x4417d0
jmp 0x441814
mov ecx, dword [ebx + edx*8 + 4]
cmp ecx, esi
je 0x441814
mov edx, esp
lea esi, [esp + 0x10]
push edi
push dword [esp + 0x4c]
push edx
push esi
push dword [esp + 0x54]
push dword [esp + 0x54]
push 0x18
push ecx
push dword [0x44de34]
mov edi, eax
call fcn.0043f290
add esp, 0x24
mov esi, eax
mov eax, edi
push eax
call fcn.004087f0
add esp, 4
mov eax, esi
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x441830
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x50
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [esi + eax + 2], 0
lea eax, [eax + 2]
jne 0x441850
mov ebx, eax
sar ebx, 1
cmp ebx, 0xfffffffb
jge 0x44186b
mov eax, 0xffffffff
jmp 0x44186e
add eax, 0xa
push eax
call fcn.004087e0
add esp, 4
mov dword [eax], 0x3f005c
mov dword [eax + 4], 0x5c003f
mov word [eax + 8], 0
mov ecx, eax
add ecx, 8
movzx edx, word [esi]
test dx, dx
je 0x4418b1
add esi, 2
nop
nop
nop
nop
nop
nop
mov word [ecx], dx
add ecx, 2
movzx edx, word [esi]
add esi, 2
test dx, dx
jne 0x4418a0
mov word [ecx], 0
lea ecx, [ebx*2 + 8]
mov word [esp], cx
lea ecx, [ebx*2 + 0xa]
mov word [esp + 2], cx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 0x40
mov ecx, esp
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0x989b9a9d
mov ecx, 0x4247dbdb
nop
nop
nop
nop
movzx edx, byte [esp + ecx - 0x4247dbbb]
xor edx, ecx
mov esi, edx
and esi, 1
or edx, 1
add edx, esi
add dl, 0xb8
mov byte [esp + ecx - 0x4247dbbb], dl
inc ecx
cmp ecx, 0x4247dbdf
jne 0x441910
mov esi, dword [esp + 0x20]
mov ecx, dword [0x44de2c]
test ecx, ecx
je 0x441989
xor edx, edx
mov ebx, dword [0x44de30]
nop
nop
nop
cmp dword [ebx + edx*8], 0x1ce638e1
je 0x441960
inc edx
cmp ecx, edx
jne 0x441950
jmp 0x441989
mov ecx, dword [ebx + edx*8 + 4]
cmp ecx, esi
je 0x441989
lea edx, [esp + 0x20]
lea esi, [esp + 8]
push edx
push esi
push 8
push ecx
push dword [0x44de34]
mov ebx, eax
call fcn.0043f290
add esp, 0x14
mov esi, eax
mov eax, ebx
push eax
call fcn.004087f0
add esp, 4
test edi, edi
je 0x44199c
mov eax, dword [esp + 0x40]
mov dword [edi], eax
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4419b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov dword [esp], 0x989b9a9d
mov eax, 0x4247dbdb
nop
nop
movzx ecx, byte [esp + eax - 0x4247dbdb]
xor ecx, eax
mov edx, ecx
and edx, 1
or ecx, 1
add ecx, edx
add cl, 0xb8
mov byte [esp + eax - 0x4247dbdb], cl
inc eax
cmp eax, 0x4247dbdf
jne 0x4419d0
mov eax, dword [esp]
mov edx, dword [0x44de2c]
test edx, edx
je 0x441a48
xor ebx, ebx
mov ecx, dword [0x44de30]
nop
nop
nop
nop
nop
cmp dword [ecx + ebx*8], 0x9c142cda
je 0x441a20
inc ebx
cmp edx, ebx
jne 0x441a10
jmp 0x441a48
mov edx, dword [ecx + ebx*8 + 4]
cmp edx, eax
je 0x441a48
mov eax, esp
lea ecx, [esp + 0x1c]
push 5
push 0x18
push eax
push ecx
push dword [ebp + 8]
push 0x14
push edx
push dword [0x44de34]
call fcn.0043f290
add esp, 0x20
test edi, edi
je 0x441a52
mov ecx, dword [esp + 8]
mov dword [edi], ecx
test esi, esi
je 0x441a5e
cmp byte [esp + 0x15], 0
setne byte [esi]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x441a70
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov dword [esp + 4], 0x989b9a9d
mov eax, 0x4247dbdb
movzx ebx, byte [esp + eax - 0x4247dbd7]
xor ebx, eax
mov edi, ebx
and edi, 1
or ebx, 1
add ebx, edi
add bl, 0xb8
mov byte [esp + eax - 0x4247dbd7], bl
inc eax
cmp eax, 0x4247dbdf
jne 0x441a90
mov eax, dword [esp + 4]
mov ebx, dword [0x44de2c]
test ebx, ebx
je 0x441b0e
xor ebp, ebp
mov edi, dword [0x44de30]
nop
nop
nop
nop
cmp dword [edi + ebp*8], 0x5b126fe8
je 0x441ae0
inc ebp
cmp ebx, ebp
jne 0x441ad0
jmp 0x441b0e
mov ebx, dword [edi + ebp*8 + 4]
cmp ebx, eax
je 0x441b0e
lea eax, [esp + 4]
push 0
push 0
push edx
push ecx
push eax
push 0
push 0
push 0
push dword [esp + 0x40]
push 0x24
push ebx
push dword [0x44de34]
call fcn.0043f290
add esp, 0x30
cmp eax, 0x103
jne 0x441ba9
mov dword [esp], 0x989b9a9d
mov eax, 0x4247dbdb
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax - 0x4247dbdb]
xor ecx, eax
mov edx, ecx
and edx, 1
or ecx, 1
add ecx, edx
add cl, 0xb8
mov byte [esp + eax - 0x4247dbdb], cl
inc eax
cmp eax, 0x4247dbdf
jne 0x441b30
mov eax, dword [esp]
mov ecx, dword [0x44de2c]
test ecx, ecx
je 0x441ba1
xor edx, edx
mov edi, dword [0x44de30]
nop
nop
nop
nop
nop
cmp dword [edi + edx*8], 0x4c697c35
je 0x441b80
inc edx
cmp ecx, edx
jne 0x441b70
jmp 0x441ba1
mov ecx, dword [edi + edx*8 + 4]
cmp ecx, eax
je 0x441ba1
push 0
push 0
push dword [esp + 0x28]
push 0xc
push ecx
push dword [0x44de34]
call fcn.0043f290
add esp, 0x18
test eax, eax
js 0x441ba9
mov eax, dword [esp + 4]
test esi, esi
je 0x441bbc
xor ecx, ecx
cmp eax, 0xc0000011
je 0x441bba
mov ecx, dword [esp + 8]
mov dword [esi], ecx
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x441bd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov dword [esp + 4], 0x989b9a9d
mov eax, 0x4247dbdb
movzx ebx, byte [esp + eax - 0x4247dbd7]
xor ebx, eax
mov edi, ebx
and edi, 1
or ebx, 1
add ebx, edi
add bl, 0xb8
mov byte [esp + eax - 0x4247dbd7], bl
inc eax
cmp eax, 0x4247dbdf
jne 0x441bf0
mov eax, dword [esp + 4]
mov ebx, dword [0x44de2c]
test ebx, ebx
je 0x441c6e
xor ebp, ebp
mov edi, dword [0x44de30]
nop
nop
nop
nop
cmp dword [edi + ebp*8], 0xa2545bf7
je 0x441c40
inc ebp
cmp ebx, ebp
jne 0x441c30
jmp 0x441c6e
mov ebx, dword [edi + ebp*8 + 4]
cmp ebx, eax
je 0x441c6e
lea eax, [esp + 4]
push 0
push 0
push edx
push ecx
push eax
push 0
push 0
push 0
push dword [esp + 0x40]
push 0x24
push ebx
push dword [0x44de34]
call fcn.0043f290
add esp, 0x30
cmp eax, 0x103
jne 0x441d09
mov dword [esp], 0x989b9a9d
mov eax, 0x4247dbdb
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax - 0x4247dbdb]
xor ecx, eax
mov edx, ecx
and edx, 1
or ecx, 1
add ecx, edx
add cl, 0xb8
mov byte [esp + eax - 0x4247dbdb], cl
inc eax
cmp eax, 0x4247dbdf
jne 0x441c90
mov eax, dword [esp]
mov ecx, dword [0x44de2c]
test ecx, ecx
je 0x441d01
xor edx, edx
mov edi, dword [0x44de30]
nop
nop
nop
nop
nop
cmp dword [edi + edx*8], 0x4c697c35
je 0x441ce0
inc edx
cmp ecx, edx
jne 0x441cd0
jmp 0x441d01
mov ecx, dword [edi + edx*8 + 4]
cmp ecx, eax
je 0x441d01
push 0
push 0
push dword [esp + 0x28]
push 0xc
push ecx
push dword [0x44de34]
call fcn.0043f290
add esp, 0x18
test eax, eax
js 0x441d09
mov eax, dword [esp + 4]
test esi, esi
je 0x441d13
mov ecx, dword [esp + 8]
mov dword [esi], ecx
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x441d20
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov edi, dword [esp + 0x38]
mov ebx, 0xfffffffe
nop
nop
nop
nop
cmp word [edi + ebx + 2], 0
lea ebx, [ebx + 2]
jne 0x441d40
sar ebx, 1
mov ebp, ebx
and ebp, 0xfffd
mov ecx, ebx
and ecx, 2
or ebx, 2
imul ebx, ecx
xor ecx, 2
imul ecx, ebp
lea ebp, [ecx + ebx]
mov word [esp + 4], bp
add ecx, ebx
add ecx, 2
mov word [esp + 6], cx
mov dword [esp + 8], edi
mov dword [esp + 0xc], 0x18
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], 0x40
lea eax, [esp + 4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp], 0x989b9a9d
mov eax, 0x4247dbdb
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [esp + eax - 0x4247dbdb]
xor ebx, eax
mov ecx, ebx
and ecx, 1
or ebx, 1
add ebx, ecx
add bl, 0xb8
mov byte [esp + eax - 0x4247dbdb], bl
inc eax
cmp eax, 0x4247dbdf
jne 0x441dc0
mov eax, dword [esp]
mov edi, dword [0x44de2c]
test edi, edi
je 0x441e35
xor ebx, ebx
mov ebp, dword [0x44de30]
nop
nop
nop
nop
nop
cmp dword [ebp + ebx*8], 0x40915fe0
je 0x441e11
inc ebx
cmp edi, ebx
jne 0x441e00
jmp 0x441e35
mov edi, dword [ebp + ebx*8 + 4]
cmp edi, eax
je 0x441e35
lea eax, [esp + 0xc]
push esi
push eax
push edx
push dword [esp + 0x48]
push 0x10
push edi
push dword [0x44de34]
call fcn.0043f290
add esp, 0x1c
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401000
Capabilities:
Enumerate processes
Terminate process

Disassembly:
sub esp, 0x22c
push ebx
push esi
push edi
mov ecx, 0xd
mov esi, str.LSASS.EXE_SMSS.EXE_WINLOGON.EXE_CSRSS.EXE_SVCHOST.EXE
lea edi, [esp + 0x74]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, 0x49
xor eax, eax
lea edi, [esp + 0xb0]
mov dword [esp + 0xac], 0
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x23c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
call fcn.004012d0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x401114
lea edx, [esp + 0x10]
mov edi, 1
push edx
call fcn.004122f8
lea eax, [esp + 0x14]
lea ecx, [esp + 0x78]
push eax
push ecx
call fcn.00409f40
add esp, 0xc
test eax, eax
jne 0x4011f4
call fcn.00401200
push 0
push 2
mov dword [esp + 0xb4], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea edx, [esp + 0xac]
mov ebx, eax
push edx
push ebx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4011f4
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0xb4]
lea ecx, [esp + 0x1d4]
push eax
push 0x41e3e4
push ecx
call fcn.00409ee7
add esp, 0xc
test edi, edi
jne 0x401118
lea edx, [esp + 0xd0]
push 0x5c
push edx
call fcn.00409ec0
mov esi, eax
add esp, 8
test esi, esi
je 0x40116e
inc esi
jmp 0x40116e
xor edi, edi
jmp 0x4010a8
cmp edi, 1
jne 0x40116e
lea eax, [esp + 0xd0]
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.00411510
add esp, 8
test eax, eax
je 0x4011c2
lea edx, [esp + 0x1d4]
lea eax, [esp + 0x10]
push edx
push eax
call fcn.00411510
add esp, 8
test eax, eax
je 0x4011c2
lea ecx, [esp + 0x10]
lea edx, [esp + 0xd0]
push ecx
push edx
call fcn.00409f40
add esp, 8
test eax, eax
jne 0x4011c2
jmp 0x4011ab
lea eax, [esp + 0x10]
push esi
push eax
call fcn.00411510
add esp, 8
test eax, eax
je 0x4011c2
lea ecx, [esp + 0x1d4]
lea edx, [esp + 0x10]
push ecx
push edx
call fcn.00411510
add esp, 8
test eax, eax
je 0x4011c2
lea eax, [esp + 0x10]
push eax
push esi
call fcn.00409f40
add esp, 8
test eax, eax
jne 0x4011c2
lea ecx, [esp + 0xac]
push ecx
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x4011ed
jmp 0x4010d8
mov edx, dword [esp + 0xb4]
push edx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4011ed
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
add esp, 0x22c
ret
Function at 0x401200
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x1c
lea eax, [esp]
push esi
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x401237
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenProcessToken_failed_with__d_n
call fcn.00409fc0
add esp, 8
xor eax, eax
pop esi
add esp, 0x1c
ret
lea ecx, [esp + 8]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x401268
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LookupPrivilegeValue_failed_with__d_n
call fcn.00409fc0
add esp, 8
xor eax, eax
pop esi
add esp, 0x1c
ret
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
push 0
push 0
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0xc]
push 0x10
push ecx
push 0
push edx
mov dword [esp + 0x28], 1
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x4012c3
call esi
push eax
push str.AdjustTokenPrivileges_failed_with__d_n
call fcn.00409fc0
add esp, 8
xor eax, eax
pop esi
add esp, 0x1c
ret
mov eax, 1
pop esi
add esp, 0x1c
ret

Function at 0x401350
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417f00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov edx, dword [ebp + 0xc]
push ebx
push esi
xor esi, esi
push edi
cmp edx, esi
mov dword [ebp - 0x10], esp
je 0x401434
mov ecx, 0x10
xor eax, eax
mov edi, 0x43f910
push edx
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 8]
mov dword [0x43f90c], esi
push ecx
mov dword [0x43f908], esi
mov dword [0x43f8f8], 0x67452301
mov dword [0x43f8fc], 0xefcdab89
mov dword [0x43f900], 0x98badcfe
mov dword [0x43f904], 0x10325476
mov dword [ebp - 4], esi
call fcn.00401470
add esp, 8
call fcn.00402170
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, 1
mov edx, ecx
mov esi, edi
mov edi, dword [ebp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, 0x41e4e8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [ebp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404bb0
Capabilities:
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x8000000
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x404ccf
push 0
push 0
push 0
push 2
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebp, eax
test ebp, ebp
jne 0x404c06
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x404c3d
push eax
push eax
call dword [sym.imp.KERNEL32.dll_FlushViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push 0x40
call fcn.0040a8a6
mov edi, eax
xor eax, eax
mov ecx, 0x10
add esp, 4
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x404caa
add eax, esi
push 0x3c
push ebx
mov dword [0x4218d4], eax
call fcn.00404d30
lea ecx, [esp + 0x1c]
push 4
push ecx
push ebx
call fcn.00404d50
add esp, 0x14
test eax, eax
push 0
je 0x404cac
mov edx, dword [esp + 0x18]
push 0
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x14]
push 4
push eax
push ebx
call fcn.00404d50
add esp, 0xc
test eax, eax
je 0x404caa
cmp dword [esp + 0x14], 0x4550
je 0x404cd6
push 0
push esi
call dword [sym.imp.KERNEL32.dll_FlushViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call edi
push ebp
call edi
push esi
call fcn.0040ab82
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, dword [esp + 0x18]
test eax, eax
jl 0x404cf0
mov edx, dword [0x4218d4]
lea ecx, [eax + eax*4]
mov edi, dword [edx + ecx*8 + 0x10c]
jmp 0x404cf8
mov eax, dword [0x4218d4]
mov edi, dword [eax + 0x28]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_FlushViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push ebp
call ebx
push esi
call fcn.0040ab82
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x405590
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4055cd
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x408000
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x408029
xor eax, eax
pop esi
ret
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret
Function at 0x408690
Capabilities:
Delete registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
push str..DEFAULTSoftwareVB_and_VBA_Program_SettingsSPYWAREPROTECTIONEXECDB
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4086c5
mov ecx, dword [esp + 8]
mov edx, dword [esp]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
ret

Function at 0x4086d0
Capabilities:
Delete registry key

Disassembly:
push ecx
lea eax, [esp]
push eax
push str..DEFAULTSoftwareVB_and_VBA_Program_SettingsSPYWAREPROTECTION
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x408705
mov ecx, dword [esp]
push str.EXECDB
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
ret
Function at 0x408710
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x20c
xor eax, eax
push ebx
mov dword [0x4217b0], eax
push ebp
mov dword [0x4217b4], eax
push esi
mov dword [0x4217b8], eax
push edi
lea ecx, [esp + 0x14]
xor ebp, ebp
mov dword [0x4217bc], eax
push 0x104
push ecx
mov dword [0x4217c0], eax
push ebp
mov dword [esp + 0x1c], 0xffffffff
mov dword [0x4217b4], 0x3e8
mov dword [0x4217c0], 0xa00000
mov dword [0x4217b0], 5
mov dword [0x4217b8], 0xc8
mov word [0x4217bc], bp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x14]
push 0x5c
push edx
call fcn.00409ec0
add esp, 8
cmp eax, ebp
je 0x4088aa
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x14]
sub edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, str.zvscan
mov byte [edx + ecx - 0xa], al
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, ebp
lea ecx, [esp + 0x118]
push eax
lea eax, [esp + 0x18]
push eax
push str._s_virsgx_.2d.db
push ecx
inc ebp
call fcn.00409ee7
mov edi, 0x43fc1c
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x4217c4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x4217c4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x118]
push ecx
call ebx
test eax, eax
je 0x408884
push 0x43fbf4
lea edx, [esp + 0x11c]
push 0x43fbec
push edx
call fcn.00403db0
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4088aa
jmp 0x4087ea
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4088aa
mov eax, dword [0x43fbec]
push eax
call fcn.00404350
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20c
ret