joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406c40
Capabilities:
Encode data using xor
Hash data with crc32
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push esi
or esi, 0xffffffff
test eax, eax
je 0x406df5
push ebx
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 8], ebx
je 0x406df4
mov eax, dword [0x40b004]
push ebp
push 0x1000
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x10], ebp
je 0x406dec
push edi
nop
push 0
lea ecx, [esp + 0x20]
push ecx
push 0x1000
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 0x1c]
cmp edx, 8
mov eax, ebp
mov edi, edx
jb 0x406dae
mov ebp, edx
shr ebp, 3
lea ebx, [ebx]
movzx ebx, byte [eax]
xor ebx, esi
and ebx, 0xff
add eax, 1
mov ecx, esi
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090f0]
movzx ebx, byte [eax]
xor ebx, ecx
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090f0]
movzx ebx, byte [eax + 1]
xor ebx, ecx
and ebx, 0xff
add eax, 1
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090f0]
movzx ebx, byte [eax + 1]
xor ebx, ecx
add eax, 1
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090f0]
movzx ebx, byte [eax + 1]
xor ebx, ecx
add eax, 1
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090f0]
movzx ebx, byte [eax + 1]
xor ebx, ecx
add eax, 1
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090f0]
movzx ebx, byte [eax + 1]
add eax, 1
xor ebx, ecx
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090f0]
movzx ebx, byte [eax + 1]
add eax, 1
xor ebx, ecx
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090f0]
add eax, 1
sub edi, 8
sub ebp, 1
mov esi, ecx
jne 0x406cd0
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
test edi, edi
je 0x406dcf
movzx ecx, byte [eax]
xor ecx, esi
and ecx, 0xff
shr esi, 8
xor esi, dword [ecx*4 + 0x4090f0]
add eax, 1
sub edi, 1
jne 0x406db2
cmp edx, 0x1000
je 0x406ca0
mov edx, dword [0x40b004]
push ebp
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop ebx
mov eax, esi
not eax
pop esi
add esp, 8
ret 4

Function at 0x406e00
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x408953
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x4085d8
call fcn.0040897b
sub esi, 0x95d58ccf
or eax, eax
xor dword [ecx], edi
inc ecx
cmp ecx, edx
jne main
sub esi, 0xac8b5e71
ret
Function at 0x610f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x6259fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0x611002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00614dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x611002
lea edx, [esp + 0x14]
push edx
push 0x62b140
call fcn.0060c6e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.0061520b
push 0x10
call fcn.006151d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x610fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.006011c0
jmp 0x610fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00610b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x610ff0
mov ecx, edi
call fcn.006012c0
push edi
call fcn.006151c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x611021
inc ebx
cmp ebx, 0x20
jb 0x610f3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x6141b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00614140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00614140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00614140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00614140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x614230
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x20c
lea eax, [esp]
push ebx
mov ebx, dword [esp + 0x218]
push ebp
mov ebp, dword [esp + 0x218]
push esi
push eax
push 0xf003f
push 0
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x6142d6
mov edx, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
lea ecx, [esp + 0x14]
push 0x104
push ecx
push eax
push edx
call edi
mov esi, eax
test esi, esi
jne 0x6142ae
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.00614230
mov esi, eax
add esp, 8
test esi, esi
jne 0x6142ae
lea edx, [esp + 0x14]
push 0x104
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
call edi
mov esi, eax
test esi, esi
je 0x61427e
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0x103
pop edi
je 0x6142ce
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret

Function at 0x614bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x614c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x62687c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x614c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x614c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x401160
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_InitializeAcl]
xor esi, esi
nop word [eax + eax]
push 0
push 0
push 0
call edi
xor byte [esi + section..BsS], 0x39
push 0
push 0
push 0
call edi
add byte [esi + section..BsS], 0x54
push 0
push 0
push 0
call edi
add byte [esi + section..BsS], 0x91
push 0
push 0
push 0
call edi
xor byte [esi + section..BsS], 0x37
push 0
push 0
push 0
call edi
add byte [esi + section..BsS], 0xdf
push 0
push 0
push 0
call edi
add byte [esi + section..BsS], 0x6f
push 0
push 0
push 0
call edi
xor byte [esi + section..BsS], 0xe1
push 0
push 0
push 0
call edi
add byte [esi + section..BsS], 0x2c
push 0
push 0
push 0
call edi
add byte [esi + section..BsS], 0xc7
push 0
push 0
push 0
call edi
xor byte [esi + section..BsS], 0x8e
push 0
push 0
push 0
call edi
add byte [esi + section..BsS], 0x85
push 0
push 0
push 0
call edi
add byte [esi + section..BsS], 0x99
push 0
push 0
push 0
call edi
add byte [esi + section..BsS], 0xa8
push 0
push 0
push 0
call edi
xor byte [esi + section..BsS], 0xb6
push 0
push 0
push 0
call edi
xor byte [esi + section..BsS], 0x2d
push 0
push 0
push 0
call edi
add byte [esi + section..BsS], 0x71
push 0
push 0
push 0
call edi
add byte [esi + section..BsS], 0x8f
push 0
push 0
push 0
call edi
add byte [esi + section..BsS], 0xd7
push 0
push 0
push 0
call edi
add byte [esi + section..BsS], 0xe
push 0
push 0
push 0
call edi
xor byte [esi + section..BsS], 0xf7
push 0
push 0
push 0
call edi
add byte [esi + section..BsS], 0x59
push 0
push 0
push 0
call edi
add byte [esi + section..BsS], 0x62
push 0
push 0
push 0
call edi
add byte [esi + section..BsS], 0x53
push 0
push 0
push 0
call edi
add byte [esi + section..BsS], 0x54
push 0
push 0
push 0
call edi
add byte [esi + section..BsS], 0x51
push 0
push 0
push 0
call edi
add byte [esi + section..BsS], 0x19
push 0
push 0
push 0
call edi
xor byte [esi + section..BsS], 0x91
push 0
push 0
push 0
call edi
add byte [esi + section..BsS], 0xf5
push 0
push 0
push 0
call edi
add byte [esi + section..BsS], 0x17
inc esi
cmp esi, 0x2d200
jb 0x401170
pop edi
pop esi
ret
Function at 0x401610
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
movss xmm0, dword [0x45612c]
mov ecx, 0xbf576cc3
movsx eax, word [0x456318]
sub esp, 8
movss xmm1, dword [0x44b978]
subss xmm1, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
cvttss2si eax, xmm0
mov word [0x456318], ax
movsx eax, word [0x456300]
movss xmm1, dword [0x45600c]
sub ecx, eax
movsx eax, word [0x456430]
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
addss xmm1, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
ucomiss xmm1, xmm0
movss xmm0, dword [0x45600c]
addss xmm0, dword [0x44b330]
lahf
movss dword [0x45600c], xmm0
test ah, 0x44
jp 0x4016c6
movss xmm0, dword [0x456364]
cvtps2pd xmm1, xmm0
movsd xmm0, qword [0x456228]
ucomisd xmm1, xmm0
lahf
test ah, 0x44
jp 0x4016c6
inc dword [0x456454]
mov eax, dword [0x456454]
movsd xmm0, qword [0x456080]
mov eax, dword [ebp + 0xc]
push ebx
push esi
add eax, 4
push edi
push eax
call fcn.0041b1cd
mov edi, dword [ebp + 8]
mov esi, eax
add esp, 4
mov dword [ebp - 8], esi
mov cl, byte [edi + 0x4472f0]
mov byte [esi], cl
mov eax, dword [0x458274]
mov al, byte [eax + edi]
xor al, cl
mov byte [esi], al
mov cl, byte [edi + 0x4472f1]
mov byte [esi + 1], cl
mov eax, dword [0x458274]
mov al, byte [eax + edi + 1]
add edi, 2
xor al, cl
mov byte [esi + 1], al
movzx ebx, word [esi]
mov dword [ebp - 4], ebx
lea eax, [ebx + 3]
push eax
lea eax, [edi + 0x4472f0]
push eax
push esi
call fcn.0041c120
mov ecx, dword [0x458274]
add ebx, 3
add ebx, esi
add ecx, edi
mov edi, ebx
mov dword [ebp + 8], ebx
sub edi, esi
xor eax, eax
add esp, 0xc
xor edx, edx
cmp esi, ebx
cmova edi, eax
test edi, edi
je 0x4017be
cmp edi, 0x20
jb 0x4017a3
lea eax, [ecx - 1]
add eax, edi
cmp esi, eax
ja 0x401760
lea eax, [esi - 1]
add eax, edi
cmp eax, ecx
jae 0x4017a3
mov eax, edi
mov ebx, edi
and eax, 0x1f
sub ebx, eax
lea esp, [esp]
movdqu xmm0, xmmword [esi]
add edx, 0x20
movdqu xmm1, xmmword [ecx]
pxor xmm1, xmm0
movdqu xmmword [esi], xmm1
movdqu xmm1, xmmword [ecx + 0x10]
add ecx, 0x20
movdqu xmm0, xmmword [esi + 0x10]
pxor xmm1, xmm0
movdqu xmmword [esi + 0x10], xmm1
add esi, 0x20
cmp edx, ebx
jne 0x401770
mov ebx, dword [ebp + 8]
cmp edx, edi
je 0x4017be
sub ecx, esi
lea esp, [esp]
mov al, byte [ecx + esi]
lea esi, [esi + 1]
xor byte [esi - 1], al
inc edx
cmp edx, edi
jne 0x4017b0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
cmp eax, ecx
je 0x4017ff
movss xmm1, dword [0x456020]
lea esi, [ebx - 3]
subss xmm1, dword [0x44b948]
movss xmm0, dword [0x456348]
sub eax, ecx
mov dword [ebp + 0xc], eax
subss xmm1, xmm0
movss dword [0x456284], xmm1
mov byte [ebx], 0
mov edi, dword [ebx - 3]
jmp 0x4016e0
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406f60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ax, word [0x45620c]
sub esp, 0x42c
movsd xmm1, qword [0x4560d8]
movsx ecx, ax
mov eax, dword [0x456178]
add eax, 0x6fbcc0a2
add eax, ecx
push ebx
mov ebx, dword [ebp + 8]
mov ecx, ebx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
subsd xmm1, xmm0
movsd qword [0x4560d8], xmm1
call fcn.004058e0
cmp eax, 0x8000
jbe 0x40719a
push esi
lea eax, [ebp - 0x11c]
push edi
push eax
call fcn.0040f940
mov esi, eax
call fcn.004046b0
movzx ecx, al
and ecx, 0x80000003
jns 0x406fd5
dec ecx
or ecx, 0xfffffffc
inc ecx
add ecx, 7
lea eax, [ebp - 0x11c]
push ecx
add eax, esi
push eax
call fcn.004127c0
push 5
push 0x397e
call fcn.00401610
mov edx, eax
mov dword [ebp - 4], eax
add esp, 0x14
mov esi, edx
lea ecx, [ecx]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x407000
lea edi, [ebp - 0x11c]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x407010
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push 3
rep movsb byte es:[edi], byte [esi]
push 0x2b0c
call fcn.00401610
push dword [ebp - 4]
mov esi, eax
push 5
call fcn.0040df90
lea eax, [ebp - 0x11c]
push esi
push eax
call fcn.0041b917
push esi
push 3
mov edi, eax
call fcn.0040df90
add esp, 0x20
test edi, edi
je 0x407147
push edi
push 1
mov ecx, ebx
call fcn.004058e0
push eax
mov ecx, ebx
call fcn.00412560
push eax
call fcn.0041baca
push edi
call fcn.0041b5ec
add esp, 0x14
mov ecx, ebx
call fcn.00405ce0
push 0x104
lea eax, [ebp - 0x224]
mov byte [ebp - 0x120], 0
push eax
push 0
call dword [0x457cec]
push 0x15
push 0x3cc2
mov byte [ebp - 0x225], 0
call fcn.00401610
push dword [0x457be0]
mov esi, eax
lea eax, [ebp - 0x224]
push dword [0x4588c4]
push eax
push esi
lea eax, [ebp - 0x42c]
push 0x207
push eax
call fcn.0041be35
push esi
push 0x15
call fcn.0040df90
push dword [0x457be0]
call fcn.004043b0
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.004100b0
push 0x208
lea eax, [ebp - 0x42c]
push 0
push eax
call fcn.0041c770
add esp, 0x40
lea eax, [ebp - 0x224]
push 0x105
push 0
push eax
call fcn.0041c770
add esp, 0xc
push 0x15f90
call dword [0x457d48]
lea eax, [ebp - 0x11c]
push eax
call dword [0x457c98]
movss xmm1, dword [0x4563cc]
mov eax, dword [0x45618c]
pop edi
pop esi
movd xmm0, eax
mov eax, dword [0x456428]
cvtdq2ps xmm0, xmm0
subss xmm1, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
subss xmm1, dword [0x44befc]
mulss xmm0, xmm1
cvttss2si eax, xmm0
mov dword [0x456428], eax
movss xmm0, dword [0x4563cc]
subss xmm0, dword [0x44b330]
movss dword [0x4563cc], xmm0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a670
Capabilities:
Terminate process

Disassembly:
push dword [0x458420]
mov dword [0x456078], 0xa1c41c41
call fcn.004135f0
add esp, 4
push 1
call fcn.0041b080
int3

Function at 0x40e1b0
Capabilities:
Hash data with md5

Disassembly:
mov dword [0x456348], 0x4df801b0
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0x67452301
mov dword [ecx + 0xc], 0xefcdab89
mov dword [0x4560d0], 0xcde3c403
mov dword [ecx + 0x10], 0x98badcfe
mov dword [ecx + 0x14], 0x10325476
ret
Function at 0x417d50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add dword [0x45618c], 0xceffd9f0
cmp dword [0x458904], 0
jne 0x417d70
call fcn.0040d7b0
mov dword [0x458904], eax
push esi
push edi
push 3
push 0x2b0c
call fcn.00401610
mov esi, eax
push esi
push dword [ebp + 8]
call fcn.0041b917
push esi
push 3
mov edi, eax
call fcn.0040df90
add esp, 0x18
test edi, edi
jne 0x417dd1
push 0x3e8
call dword [0x457d48]
push 3
push 0x2b0c
call fcn.00401610
mov esi, eax
push esi
push dword [ebp + 8]
call fcn.0041b917
push esi
push 3
mov edi, eax
call fcn.0040df90
add esp, 0x18
test edi, edi
je 0x417e94
push edi
push 1
push 4
push 0x458904
call fcn.0041baca
movsd xmm0, qword [0x4560c8]
add esp, 0x10
movsd xmm2, qword [0x44be20]
movss xmm1, dword [0x44bad0]
subsd xmm2, xmm0
movss xmm0, dword [0x4563a0]
movsx eax, word [0x4563ac]
subss xmm1, xmm0
movss xmm3, dword [0x44b330]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
subss xmm1, xmm0
movss xmm0, dword [0x4563a0]
subss xmm0, xmm3
cvtps2pd xmm1, xmm1
movss dword [0x4563a0], xmm0
comisd xmm2, xmm1
jb 0x417e8b
inc dword [0x456278]
movss xmm0, dword [0x456200]
addss xmm0, xmm3
movss dword [0x456200], xmm0
mov eax, dword [0x456278]
movss xmm0, dword [0x456200]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
subss xmm1, xmm0
movsd xmm0, qword [0x456228]
cvtps2pd xmm1, xmm1
addsd xmm0, xmm1
movsd qword [0x456228], xmm0
push edi
call fcn.0041b5ec
add esp, 4
pop edi
pop esi
pop ebp
ret

Function at 0x4184d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
mov eax, 0xffffb1cf
mov word [0x456404], ax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
lea edx, [ecx + eax*4]
xor ebx, ebx
mov eax, dword [ebp + 0x10]
mov edi, edx
sub edi, ecx
xor esi, esi
add edi, 3
shr edi, 2
cmp ecx, edx
cmova edi, ebx
test edi, edi
je 0x418527
xor dword [ecx], eax
lea ecx, [ecx + 4]
ror eax, 1
inc esi
mov dword [ebp - 4], eax
mov dl, byte [ebp - 4]
shr eax, 8
add al, dl
add dl, al
mov byte [ebp - 3], al
mov byte [ebp - 4], dl
mov eax, dword [ebp - 4]
cmp esi, edi
jne 0x418505
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42bee2
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x457070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0041e40c
mov dword [ebp - 0x14], eax
cmp dword [0x4597e8], esi
jne 0x42bfd5
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x42bf62
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x42c0b5
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x42c0b5
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42c0b5
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4597e8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4597ec], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4597f0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4597f8], eax
test eax, eax
je 0x42bfd2
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4597f4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x42bffa
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x42bfed
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x42c00f
push 4
pop eax
jmp 0x42c0b7
cmp dword [ebp - 0x14], esi
je 0x42c00f
push dword [0x4597e8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x42bff4
mov eax, dword [0x4597f4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x42c06d
cmp dword [0x4597f8], edi
je 0x42c06d
push eax
call ebx
push dword [0x4597f8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x42c06d
test eax, eax
je 0x42c06d
call ecx
test eax, eax
je 0x42c062
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x42c062
test byte [ebp - 8], 1
jne 0x42c06d
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x42c09d
mov eax, dword [0x4597ec]
cmp eax, edi
je 0x42c09a
push eax
call ebx
test eax, eax
je 0x42c09a
call eax
mov esi, eax
test esi, esi
je 0x42c09a
mov eax, dword [0x4597f0]
cmp eax, edi
je 0x42c09a
push eax
call ebx
test eax, eax
je 0x42c09a
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4597e8]
call ebx
test eax, eax
je 0x42c0b5
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x42c0b7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ce1d
mov esp, ebp
pop ebp
ret
Function at 0x4010c0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x461264]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 1
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x40114f
push ebx
push 4
push str.TurboVPNService
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
je 0x40113a
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x40112f
mov eax, dword [ebp - 0x1c]
cmp eax, 4
jne 0x401124
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call ebx
jmp 0x40114b
cmp eax, 1
mov ecx, 2
cmove esi, ecx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call ebx
jmp 0x40114b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, 1
push edi
call ebx
pop ebx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004299e7
mov esp, ebp
pop ebp
ret

Function at 0x401170
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444be3
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x461264]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x44]
call fcn.0040a630
lea eax, [ebp - 0x44]
mov dword [ebp - 4], 0
push eax
push 2
call fcn.0040b7d0
add esp, 8
mov dword [ebp - 0x88], 0
xor eax, eax
mov dword [ebp - 0x84], 7
lea ecx, [ebp - 0x98]
mov word [ebp - 0x98], ax
push 0x15
push str.turbo_vpn_service.exe
call fcn.00401400
lea eax, [ebp - 0x98]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x44]
call fcn.0040a680
mov edx, dword [ebp - 0x84]
cmp edx, 8
jb 0x40123e
mov ecx, dword [ebp - 0x98]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401234
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4012ca
push edx
push ecx
call fcn.00429a28
add esp, 8
push 0x38
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x80], 0x3c
push 0
push eax
call fcn.0042c090
add esp, 0xc
mov dword [ebp - 0x74], str.runas
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
mov ecx, str._start
mov dword [ebp - 0x78], 0
cmovae eax, dword [ebp - 0x2c]
cmp byte [ebp + 8], 0
mov dword [ebp - 0x70], eax
mov eax, str._install_start
cmove eax, ecx
mov dword [ebp - 0x64], 1
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x7c], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea ecx, [ebp - 0x2c]
call fcn.004012d0
lea ecx, [ebp - 0x44]
call fcn.004012d0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004299e7
mov esp, ebp
pop ebp
ret 4
call fcn.0042ecaa
int3