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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, eax
mov esi, ecx
mov eax, edx
xor eax, dword [ebp + 0x10]
xor ecx, ecx
inc ecx
test cl, al
push edi
je 0xf02e7a1
inc esi
inc dword [ebp + 0xc]
inc edx
dec ebx
mov edi, dword [ebp + 0x14]
mov eax, edx
and edx, ecx
and eax, 0xfffffffe
shl eax, 1
or eax, edx
mov edx, esi
and edx, 0xfffffffe
shl edx, 1
and esi, ecx
or edx, esi
mov esi, dword [ebp + 8]
add edx, esi
lea edi, [edx + edi*4]
mov edx, ecx
mov ecx, dword [ebp + 0x10]
shl edx, cl
test dword [0xf208ba0], edx
je 0xf02e827
test ebx, ebx
mov cl, byte [ecx + 0xf208ba4]
mov byte [ebp + 8], cl
jle 0xf02e896
add eax, esi
lea esi, [ebx - 1]
shr esi, 1
mov dword [ebp + 0xc], eax
inc esi
mov al, byte [edi]
mov byte [ebp + 0x13], al
add edi, 4
call dword [0xf0b3f28]
mov ebx, eax
and bl, byte [ebp + 8]
call dword [0xf0b3f2c]
xor bl, al
and bl, byte [ebp + 0x13]
call dword [0xf0b3f30]
xor al, byte [ebp + 0x13]
and al, byte [ebp + 8]
or bl, al
mov eax, dword [ebp + 0xc]
add dword [ebp + 0xc], 4
dec esi
mov byte [eax], bl
jne 0xf02e7ed
jmp 0xf02e896
test ebx, ebx
jle 0xf02e896
add eax, esi
lea esi, [ebx - 1]
shr esi, 1
mov dword [ebp + 0x14], eax
inc esi
mov eax, dword [ebp + 0xc]
mov al, byte [eax]
add dword [ebp + 0xc], 2
mov byte [ebp + 8], al
mov al, byte [edi]
mov byte [ebp + 0x13], al
add edi, 4
call dword [0xf0b3f80]
test eax, eax
jbe 0xf02e866
call dword [0xf0b3f80]
push eax
push dword [ebp + 8]
call fcn.0f02d6ff
mov byte [ebp + 8], al
call dword [0xf0b3f28]
mov ebx, eax
and bl, byte [ebp + 8]
call dword [0xf0b3f2c]
xor bl, al
and bl, byte [ebp + 0x13]
call dword [0xf0b3f30]
xor al, byte [ebp + 0x13]
and al, byte [ebp + 8]
or bl, al
mov eax, dword [ebp + 0x14]
add dword [ebp + 0x14], 4
dec esi
mov byte [eax], bl
jne 0xf02e836
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0xf03a6d8
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0xf0ad034]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x124], eax
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x120], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x128], eax
push esi
mov esi, dword [ebp + 0xc]
mov eax, ebx
shl eax, 2
push eax
push 0x40
mov dword [ebp - 0x10c], esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [ebp - 0x114], eax
jne 0xf03a742
push esi
push ebx
push eax
call sym.ntvdm.exe_FreeTaskDpmSupport
jmp 0xf03a8ce
push 0x103
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov dword [ebp - 0x118], eax
mov eax, str.AppPatch_
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0xf03a761
push edi
lea edi, [ebp - 0x108]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0xf03a772
add dword [ebp - 0x118], 0xa
and dword [ebp - 0x110], 0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
test ebx, ebx
rep movsb byte es:[edi], byte [esi]
jle 0xf03a8b5
mov esi, dword [ebp - 0x10c]
mov ebx, dword [ebp - 0x114]
sub esi, ebx
mov dword [ebp - 0x10c], esi
mov eax, dword [0xf0b01e8]
mov ecx, dword [ebp - 0x110]
push dword [ebp - 0x11c]
mov eax, dword [eax + ecx*4]
push dword [eax]
call fcn.0f03a44a
mov ecx, eax
test ecx, ecx
mov dword [ebp - 0x12c], ecx
je 0xf03a898
mov edi, dword [ebp - 0x118]
mov byte [ebp + edi - 0x108], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0xf03a7ee
sub ecx, edx
lea eax, [ecx + edi + 1]
cmp eax, 0x104
jg 0xf03a898
mov eax, dword [ebp - 0x12c]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0xf03a80e
lea edi, [ebp - 0x108]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0xf03a81e
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x108]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0xf03a892
push 0xf002254
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0xf03a892
mov ecx, dword [0xf0b01e8]
mov edx, dword [ebp - 0x110]
push dword [ecx + edx*4]
mov ecx, dword [ebp - 0x10c]
push dword [ebp - 0x128]
push dword [ebp - 0x120]
push dword [ebp - 0x124]
push esi
push dword [ecx + ebx]
call eax
test eax, eax
je 0xf03a892
mov esi, dword [ebp - 0x10c]
jmp 0xf03a89b
mov esi, dword [ebp - 0x10c]
mov eax, dword [esi + ebx]
inc dword [ebp - 0x110]
mov dword [ebx], eax
mov eax, dword [ebp - 0x110]
add ebx, 4
cmp eax, dword [ebp + 8]
jl 0xf03a7b2
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf18]
mov ecx, dword [ebp - 0x114]
mov dword [eax + 0x670], ecx
pop edi
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0f01dda0
leave
ret 0x20
Function at 0xf03b28b
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push edi
push 0xf002294
call fcn.0f01dc27
xor edi, edi
cmp eax, edi
pop ecx
je 0xf03b2b8
push 0x10
push edi
push eax
call fcn.0f09a8d0
add esp, 0xc
mov dword [0xf0bd6b0], eax
jmp 0xf03b2c2
mov dword [0xf0bd6b0], 0xf4
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x20]
mov ecx, eax
neg ecx
and ecx, eax
cmp ecx, eax
je 0xf03b2e0
xor eax, eax
jmp 0xf03b3b0
mov dword [0xf0bd6a4], edi
jmp 0xf03b2f0
inc dword [0xf0bd6a4]
shr eax, 1
cmp eax, 1
ja 0xf03b2e8
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
mov ebx, 0x2000
push ebx
push dword [ebp + 8]
push edi
call esi
cmp eax, edi
mov dword [0xf0bd6a0], eax
je 0xf03b363
push 4
push 0x1000
push 0x110000
push eax
call esi
test eax, eax
je 0xf03b351
push edi
push 0x10ffff
push edi
call fcn.0f05b3c2
push 4
push ebx
mov ebx, dword [ebp + 8]
mov eax, ebx
shr eax, 0xc
lea eax, [eax + eax*4]
shl eax, 2
push eax
push edi
call esi
cmp eax, edi
mov dword [0xf0bd6ac], eax
jne 0xf03b367
push 0x8000
push edi
push dword [0xf0bd6a0]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0xf03b3ae
push 0x110000
push dword [0xf0bd6a0]
push edi
push edi
push edi
call fcn.0f03b156
or byte [eax + 4], 4
lea ecx, [ebx - 0x110000]
push ecx
mov dword [0xf0bd6a8], ecx
mov ecx, dword [0xf0bd6a0]
add ecx, 0x110000
push ecx
xor esi, esi
inc esi
push esi
push edi
push eax
call fcn.0f03b156
mov eax, dword [0xf0bd6a0]
mov dword [0xf0bd6b4], esi
pop esi
pop ebx
pop edi
leave
ret 4
Function at 0xf03d66a
Capabilities:
Create thread
Enumerate gui resources

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0xf0ad034]
push ebx
xor ebx, ebx
cmp dword [0xf0bd6fc], ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
je 0xf03d694
push 4
pop eax
jmp 0xf03d7ea
mov dword [0xf0bd6fc], 1
call sym.ntvdm.exe_SuspendTimerThread
cmp dword [0xf0bd814], ebx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x110], eax
mov eax, dword [0xf229d7c]
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x10c], esi
je 0xf03d706
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call esi
mov dword [ebp - 0x120], eax
lea eax, [ebp - 0x120]
push eax
push 0xf03ccaf
call dword [sym.imp.USER32.dll_EnumWindows]
call esi
cmp dword [ebp - 0x120], eax
jne 0xf03d70c
mov dword [ebp - 0x120], ebx
jmp 0xf03d70c
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], ebx
je 0xf03d732
lea eax, [ebp - 0x108]
push eax
push 0x103
push 0xd
push dword [ebp - 0x120]
call dword [sym.imp.USER32.dll_DefWindowProcA]
test eax, eax
jne 0xf03d738
mov byte [ebp - 0x108], bl
test byte [ebp + 0x10], 0x80
push edi
je 0xf03d776
push 5
pop edi
lea eax, [ebp - 0x124]
push eax
push ebx
lea eax, [ebp - 0x11c]
push eax
push fcn.0f03d5c2
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
cmp esi, ebx
jne 0xf03d7b5
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, edi
dec edi
test eax, eax
jne 0xf03d742
lea eax, [ebp - 0x11c]
push eax
call fcn.0f03d5c2
call sym.ntvdm.exe_ResumeTimerThread
cmp dword [ebp - 0x118], 1
pop edi
jne 0xf03d7de
cmp dword [0xf0bd814], ebx
je 0xf03d7d9
mov eax, dword fs:[0x18]
cmp dword [eax + 0xc0], ebx
je 0xf03d7d9
mov eax, dword [0xf0c2660]
cmp eax, ebx
je 0xf03d7d9
push ebx
call eax
jmp 0xf03d7de
push 0x3e8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0xf03d7d0
cmp dword [ebp - 0x118], ebx
je 0xf03d7b5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0xf03d782
call fcn.0f03e381
dec dword [0xf0bd6fc]
mov eax, dword [ebp - 0x118]
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0f01dda0
leave
ret 0xc
Function at 0xf03d953
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc04
mov eax, dword [0xf0ad034]
push dword [0xf22a724]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [ebp + 8]
xor edx, edx
inc edx
shl edx, cl
test eax, edx
jne 0xf03da24
push ebx
push esi
push edi
or edx, eax
push edx
push dword [0xf22a724]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, 0x400
push esi
lea eax, [ebp - 0xc04]
push eax
push 0x12c
push 0
call edi
mov ebx, dword [sym.imp.USER32.dll_LoadStringA]
push eax
call ebx
test eax, eax
je 0xf03d9fd
push esi
lea eax, [ebp - 0x804]
push eax
mov eax, dword [ebp + 8]
add eax, 0x12d
push eax
push 0
call edi
push eax
call ebx
test eax, eax
je 0xf03d9fd
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0xc04]
push eax
lea eax, [ebp - 0x404]
push esi
push eax
call fcn.0f09ae20
add esp, 0x10
mov byte [ebp - 5], 0
jmp 0xf03da11
xor eax, eax
mov cl, byte [eax + 0xf0bd428]
mov byte [ebp + eax - 0x404], cl
inc eax
test cl, cl
jne 0xf03d9ff
push 0x25
push 0
lea eax, [ebp - 0x404]
push eax
call fcn.0f03d66a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
call fcn.0f01dda0
leave
ret 4
Function at 0xf03e45d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
and dword [ebp + 8], 0
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [eax*4 + 0xf0b030c]
mov eax, dword [esi + 0x1e4]
mov dword [ebp - 0x10], eax
lea eax, [esi + 0x194]
push edi
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, 0x4000
mov edi, ebx
sub edi, dword [esi + 0x4c]
sub ebx, dword [esi + 0x44]
cmp ebx, edi
jae 0xf03e51d
and dword [ebp - 0x18], 0
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 8]
push eax
mov eax, dword [esi + 0x40]
add eax, dword [esi + 0x44]
push ebx
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0xf03e4fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0xf03e4e9
push 1
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
jmp 0xf03e4fb
push 0
lea eax, [ebp - 8]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ClearCommError]
and dword [ebp + 8], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0xf03e51b
add dword [esi + 0x4c], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, ebx
jne 0xf03e518
and dword [esi + 0x44], 0
sub edi, dword [ebp + 8]
jmp 0xf03e51d
add dword [esi + 0x44], eax
xor edi, edi
test edi, edi
je 0xf03e58e
and dword [ebp - 0x18], 0
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 8]
push eax
mov eax, dword [esi + 0x40]
add eax, dword [esi + 0x44]
push edi
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0xf03e578
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0xf03e566
push 1
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
jmp 0xf03e578
push 0
lea eax, [ebp - 8]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ClearCommError]
and dword [ebp + 8], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0xf03e58e
add dword [esi + 0x4c], eax
mov eax, dword [ebp + 8]
add dword [esi + 0x44], eax
mov eax, dword [ebp + 8]
add dword [ebp - 4], eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0xf03e9c7
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax*4 + 0xf0b030c]
push edi
push dword [ebp + 0xc]
xor edi, edi
push esi
mov dword [ebp - 4], edi
call fcn.0f03e5f9
cmp dword [esi + 0x214], edi
je 0xf03ea62
lea ebx, [esi + 0x154]
push ebx
lea eax, [ebp + 0xc]
push eax
push dword [esi + 0x138]
lea eax, [esi + 0x70]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0xf03ea43
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x3e5
mov dword [ebp - 4], eax
jne 0xf03ea41
push 1
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0xf03ea3d
call edi
mov dword [ebp - 4], eax
jmp 0xf03ea41
and dword [ebp - 4], 0
xor edi, edi
cmp dword [ebp - 4], edi
je 0xf03ea55
push edi
lea eax, [ebp - 4]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ClearCommError]
push dword [ebp + 8]
call fcn.0f0307f6
jmp 0xf03eb0c
mov eax, dword [esi + 0x190]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax + eax*4]
lea ecx, [esi + ecx*4 + 0x164]
cmp dword [ecx], edi
je 0xf03eaa2
push 1
lea ecx, [ebp + 0xc]
lea eax, [eax + eax*4 + 0x55]
push ecx
lea eax, [esi + eax*4]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0xf03ea9b
mov dword [ebp - 4], edi
jmp 0xf03eaab
call ebx
mov dword [ebp - 4], eax
jmp 0xf03eaab
mov eax, dword [esi + eax*4 + 0x1e8]
mov dword [ecx], eax
mov eax, dword [esi + 0x190]
add eax, 0x11
lea eax, [eax + eax*4]
lea eax, [esi + eax*4]
push eax
lea eax, [ebp + 0xc]
push eax
push dword [esi + 0x138]
lea eax, [esi + 0x70]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0xf03eaf7
call ebx
cmp eax, 0x3e5
mov dword [ebp - 4], eax
jne 0xf03eae6
xor eax, eax
mov dword [ebp - 4], eax
cmp eax, edi
je 0xf03eaf7
push edi
lea eax, [ebp - 4]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ClearCommError]
inc dword [esi + 0x190]
cmp dword [esi + 0x190], 3
jne 0xf03eb0c
mov dword [esi + 0x190], edi
mov dword [esi + 0x138], edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0xf03ecf3
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax*4 + 0xf0b030c]
xor ebx, ebx
lea ecx, [esi + 0x13c]
mov dword [ebp - 4], ebx
cmp dword [ecx], ebx
je 0xf03ed59
lea eax, [esi + 0x138]
mov edx, dword [eax]
mov dword [ebp - 8], ebx
mov bl, byte [ebp + 0xc]
mov byte [esi + edx + 0x70], bl
inc dword [eax]
mov eax, dword [eax]
cmp dword [ecx], eax
mov ebx, dword [ebp - 8]
jle 0xf03ed3f
cmp dword [esi + 0x1d8], ebx
je 0xf03edc9
mov eax, dword [esi + 0x1d8]
neg eax
sbb eax, eax
and eax, 0xfffffffe
inc eax
inc eax
push eax
push dword [ebp + 8]
call fcn.0f03e9c7
jmp 0xf03edc9
mov eax, dword [esi + 0x1e8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp + 0xc]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0xf03edc1
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x3e5
mov dword [ebp - 4], eax
jne 0xf03edaf
push 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0xf03edaa
mov dword [ebp - 4], ebx
jmp 0xf03edc0
call edi
mov dword [ebp - 4], eax
cmp eax, ebx
je 0xf03edc0
push ebx
lea eax, [ebp - 4]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ClearCommError]
pop edi
push dword [ebp + 8]
call fcn.0f0307f6
pop esi
pop ebx
leave
ret 8

Function at 0xf03f254
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0xf0ad034]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x6c]
push eax
push 1
push 0
push 0xf0024c8
push 0x80000002
mov dword [ebp - 0x70], 0x64
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0xf03f293
mov eax, dword [ebp + 8]
mov eax, dword [eax*8 + 0xf0b0340]
jmp 0xf03f2db
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x68]
push eax
push 0
push 0
shl esi, 3
push dword [esi + 0xf0b033c]
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push dword [ebp - 0x6c]
je 0xf03f2ca
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi + 0xf0b0340]
jmp 0xf03f2da
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x68]
push eax
call fcn.0f09b010
pop ecx
pop esi
mov ecx, dword [ebp - 4]
call fcn.0f01dda0
leave
ret 4
Function at 0xf03f2ec
Capabilities:
Manipulate console buffer

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push 0x462
call fcn.0f05c1a9
movzx eax, al
lea eax, [eax + eax + 0x450]
push eax
call fcn.0f05c1c1
mov cl, al
movzx ax, ah
movsx edx, ax
and cx, 0xff
mov word [ebp - 4], cx
mov ecx, dword [0xf22a67c]
imul edx, ecx
mov word [ebp - 2], ax
mov eax, dword [0xf22a68c]
cmp edx, eax
jl 0xf03f33c
cdq
idiv ecx
dec eax
mov word [ebp - 2], ax
movsx edx, word [ebp - 4]
mov ecx, dword [0xf22a678]
mov eax, dword [0xf22a690]
imul edx, ecx
cmp edx, eax
jl 0xf03f35a
cdq
idiv ecx
dec eax
mov word [ebp - 4], ax
cmp dword [0xf0c2628], 0
jne 0xf03f39c
push dword [ebp - 4]
push dword [0xf22a600]
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
test eax, eax
jne 0xf03f39c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 6
je 0xf03f39b
push 0xaed
push 0xf0025b4
call esi
push eax
push 0x3e9
call fcn.0f03dc3f
pop esi
leave
ret

Function at 0xf03f46b
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xf
cmp al, 5
mov eax, sub.KERNEL32.dll_RegisterConsoleVDM
jbe 0xf03f48a
mov eax, 0xf045be2
push ebx
push esi
push edi
push 0xf229a58
push dword [0xf229a50]
xor esi, esi
push esi
push esi
lea ecx, [ebp - 0xc]
push ecx
xor ecx, ecx
cmp dword [0xf0bd814], esi
push 0xf229a5c
push esi
setne cl
push esi
push esi
push esi
inc ecx
push ecx
call eax
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0x3e9
jne 0xf03f4da
push 0x808
push 0xf0025b4
call edi
push eax
push ebx
call fcn.0f03dc3f
cmp dword [0xf22a634], 1
jne 0xf03f4e8
call fcn.0f04035a
cmp dword [0xf22a630], esi
je 0xf03f53b
push 0xf0be4f0
push dword [0xf22a600]
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0xf03f518
push 0x87b
push 0xf0025b4
call edi
push eax
push ebx
call fcn.0f03dc3f
push 8
pop eax
push 0xf0be4f4
push eax
mov dword [ebp - 4], eax
call fcn.0f0149ce
xor eax, eax
mov ax, word [0xf0c2394]
push eax
push 0x50
push esi
push esi
call fcn.0f014907
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.0f01b7cb
mov ebx, dword [ebp - 8]
movzx edi, bx
push edi
push 0x50
call fcn.0f03feef
push ebx
push 0x50
push esi
push esi
call fcn.0f014907
movsx eax, word [0xf0be4f6]
cmp eax, edi
jl 0xf03f573
dec ebx
mov word [0xf0be4f6], bx
push 0xf0be4f4
push dword [ebp - 4]
call fcn.0f0149ce
pop edi
pop esi
pop ebx
leave
ret
Function at 0xf041687
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
cmp byte [ebp + 0xc], bl
lea esi, [eax + eax*4]
lea esi, [esi*8 + 0xf22a120]
jne 0xf0416a8
mov byte [esi + 0x25], bl
jmp 0xf0416b1
cmp byte [esi + 0x25], bl
jne 0xf041757
cmp byte [ebp + 0xc], bl
push ebx
sete cl
dec cl
and cl, 0x4c
add cl, 0x40
add cl, al
mov dword [esi + 0x10], ebx
push ecx
call fcn.0f0135ac
push 0x400
mov dword [ebp - 4], eax
call fcn.0f009d40
cmp eax, ebx
pop ecx
mov dword [esi + 0x20], eax
je 0xf041757
mov al, byte [ebp + 0xc]
neg al
push ebx
push 0x80
push 3
push ebx
mov dword [esi + 0x14], 0x3fc
mov byte [esi + 0x24], bl
sbb eax, eax
and eax, 0xfffffffe
inc eax
inc eax
push eax
push 0x40000000
push dword [ebp - 4]
mov byte [esi + 0x1c], bl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0xf041738
push dword [esi + 0x20]
call fcn.0f008a60
cmp byte [ebp + 0xc], bl
pop ecx
je 0xf041757
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0xf041757
mov byte [esi + 0x25], 1
jmp 0xf041757
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
mov cl, byte [ebp + 0xc]
cmp cl, bl
mov dword [esi + 0x18], eax
je 0xf04175c
cmp eax, 2
je 0xf04175c
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ax, ax
jmp 0xf04177c
cmp cl, bl
mov byte [esi + 0x1c], 1
mov dword [esi], ebx
mov byte [esi + 0x24], cl
je 0xf041770
mov dword [esi + 0x14], 0x3fc
push dword [ebp + 8]
call fcn.0f041638
mov ax, 1
pop esi
pop ebx
leave
ret 8

Function at 0xf0417a2
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
lea esi, [eax + eax*4]
xor ebx, ebx
lea esi, [esi*8 + 0xf22a120]
cmp byte [esi + 0x24], bl
lea eax, [ebp + 8]
push ebx
push eax
je 0xf0417e0
push ebx
push ebx
push dword [esi + 0x10]
push dword [esi + 0x20]
push 0x2c0004
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
xor eax, eax
inc eax
mov dword [esi + 0x10], ebx
jmp 0xf041807
push dword [esi + 0x10]
push dword [esi + 0x20]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0xf0417db
cmp dword [esi + 0x18], 3
mov dword [esi + 0x10], ebx
jne 0xf041804
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
inc eax
pop esi
pop ebx
pop ebp
ret 4
Function at 0xf0422a6
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
movzx esi, byte [ebp + 8]
push edi
imul esi, esi, 0x12c
push dword [0xf22a10c]
mov ebx, 0x200
push ebx
xor edi, edi
push edi
push dword [ebp + 8]
add esi, 0xf229da0
call fcn.0f042165
cmp eax, ebx
je 0xf0422f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xf002628
mov dword [0xf0c24c0], eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x64
pop eax
mov word [esi + 0x12], ax
jmp 0xf042349
mov eax, dword [0xf22a10c]
mov cl, byte [eax]
cmp cl, 0x69
je 0xf042315
cmp cl, 0xe9
je 0xf042315
cmp cl, 0xeb
jne 0xf04232f
cmp byte [eax + 2], 0x90
jne 0xf04232f
mov cl, byte [eax + 0x15]
and cl, 0xf0
cmp cl, 0xf0
jne 0xf04232f
movzx edi, byte [eax + 0x14]
movzx eax, byte [eax + 0x13]
shl edi, 8
add edi, eax
jmp 0xf04237d
cmp dword [0xf0b0af8], 0
mov dword [ebp - 4], 0xf0b0af8
jne 0xf042355
mov word [esi + 0x12], 0x64
mov ax, word [esi + 0x12]
pop edi
pop esi
pop ebx
leave
ret 4
mov eax, dword [0xf22a10c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push ebx
shl eax, 9
push eax
push dword [ebp + 8]
call fcn.0f042165
cmp eax, ebx
jne 0xf04237d
mov eax, dword [ebp - 4]
mov edi, dword [eax]
add eax, 4
inc edi
cmp dword [eax], 0
mov dword [ebp - 4], eax
jne 0xf042350
test edi, edi
je 0xf04233f
cmp edi, 0x2d0
je 0xf0423b9
cmp edi, 0x5a0
je 0xf0423b9
cmp edi, 0x960
je 0xf0423a9
cmp edi, 0xb40
je 0xf0423a9
cmp edi, 0x1680
je 0xf0423b1
mov word [esi + 0x12], 1
jmp 0xf042345
mov word [esi + 0x12], 2
jmp 0xf042345
and word [esi + 0x12], 0
jmp 0xf042345