joyce8/EMBER2024-capa huggingface dataset:
Function at 0xf01d495
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov ecx, dword [ebp + 8]
cmp ecx, dword [0xf078c64]
mov eax, dword [0xf061038]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0x41c], edi
jae 0xf01d67b
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0xf078c80]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x424], ebx
je 0xf01d67b
and dword [ebp - 0x414], 0
and dword [ebp - 0x420], 0
cmp dword [ebp + 0x10], 0
jne 0xf01d506
xor eax, eax
jmp 0xf01d68f
test al, 0x20
je 0xf01d519
push 2
push 0
push 0
push ecx
call fcn.0f01db86
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0xf01d5d9
and dword [ebp - 0x40c], 0
cmp dword [ebp + 0x10], 0
mov dword [ebp - 0x410], edi
jbe 0xf01d655
mov ecx, dword [ebp - 0x410]
xor edi, edi
sub ecx, dword [ebp - 0x41c]
lea eax, [ebp - 0x408]
cmp ecx, dword [ebp + 0x10]
jae 0xf01d588
mov edx, dword [ebp - 0x410]
inc dword [ebp - 0x410]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0xf01d576
inc dword [ebp - 0x420]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x424]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0xf01d552
mov edi, eax
lea eax, [ebp - 0x408]
sub edi, eax
push 0
lea eax, [ebp - 0x418]
push eax
push edi
lea eax, [ebp - 0x408]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0xf01d607
mov eax, dword [ebp - 0x418]
add dword [ebp - 0x414], eax
cmp eax, edi
jl 0xf01d613
mov eax, dword [ebp - 0x410]
sub eax, dword [ebp - 0x41c]
cmp eax, dword [ebp + 0x10]
jb 0xf01d53e
jmp 0xf01d613
push 0
lea ecx, [ebp - 0x418]
push ecx
push dword [ebp + 0x10]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0xf01d607
mov eax, dword [ebp - 0x418]
and dword [ebp - 0x40c], 0
mov dword [ebp - 0x414], eax
jmp 0xf01d613
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp - 0x414]
test eax, eax
jne 0xf01d673
cmp dword [ebp - 0x40c], eax
je 0xf01d64f
push 5
pop eax
cmp dword [ebp - 0x40c], eax
jne 0xf01d641
mov dword [0xf065a5c], 9
mov dword [0xf065a60], eax
jmp 0xf01d68c
push dword [ebp - 0x40c]
call fcn.0f01dc2c
pop ecx
jmp 0xf01d68c
mov edi, dword [ebp - 0x41c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0xf01d667
cmp byte [edi], 0x1a
je 0xf01d4ff
mov dword [0xf065a5c], 0x1c
jmp 0xf01d685
sub eax, dword [ebp - 0x420]
jmp 0xf01d68f
mov dword [0xf065a5c], 9
and dword [0xf065a60], 0
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0f01b45c
leave
ret
Function at 0xf01db02
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 4
pop eax
call fcn.0f01bda0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0xf01db68
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0xf065a68]
mov esi, dword [ebp - 0x40]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
lea edx, [esi - 1]
and ecx, 0x103
not edx
and edx, ebx
inc ecx
sub edx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0xfffffff1
add eax, 0x11
imul eax, esi
add eax, edi
cmp edx, eax
jae 0xf01db6c
xor eax, eax
jmp 0xf01db79
lea eax, [ebp - 4]
push eax
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x50]
pop edi
pop esi
pop ebx
leave
ret

Function at 0xf0264cd
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0x449
call fcn.0f00f53c
cmp al, 0x11
jne 0xf0264e6
or dword [ebp + 0x10], 0xffffffff
jmp 0xf0264f6
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov eax, dword [eax*4 + 0xf063ac8]
mov dword [ebp + 0x10], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x485
call fcn.0f00f53c
mov ebx, dword [ebp + 0x14]
cmp ebx, 1
mov ecx, dword [ebp + 0xc]
mov edx, dword [0xf07a0a0]
movzx eax, al
lea esi, [edx + ecx*4]
jne 0xf026550
test eax, eax
jbe 0xf026593
mov ebx, dword [ebp + 0x18]
shl ebx, 2
mov dword [ebp + 0x18], eax
push edi
call fcn.0f00f53c
movzx eax, al
mov ecx, eax
shl ecx, 8
or eax, ecx
mov ecx, eax
shl ecx, 0x10
or ecx, eax
and ecx, dword [ebp + 0x10]
inc edi
xor dword [esi], ecx
add esi, ebx
dec dword [ebp + 0x18]
jne 0xf02652a
jmp 0xf026593
mov ecx, dword [ebp + 0x18]
sub ecx, ebx
test eax, eax
jbe 0xf026593
shl ecx, 2
mov dword [ebp + 8], ecx
mov dword [ebp + 0x18], eax
push edi
call fcn.0f00f53c
movzx ecx, al
mov eax, ecx
shl eax, 8
or ecx, eax
mov eax, ecx
shl eax, 0x10
or eax, ecx
and eax, dword [ebp + 0x10]
inc edi
test ebx, ebx
jbe 0xf02658b
mov ecx, ebx
xor dword [esi], eax
add esi, 4
dec ecx
jne 0xf026583
add esi, dword [ebp + 8]
dec dword [ebp + 0x18]
jne 0xf026562
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0xf033ef3
Capabilities:
Create thread
Enumerate gui resources

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0xf061038]
push ebx
xor ebx, ebx
cmp dword [0xf06b8e0], ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
je 0xf033f1d
push 4
pop eax
jmp 0xf034073
mov dword [0xf06b8e0], 1
call sym.ntvdm.exe_SuspendTimerThread
cmp dword [0xf06bb04], ebx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x110], eax
mov eax, dword [0xf09b014]
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x10c], esi
je 0xf033f8f
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call esi
mov dword [ebp - 0x120], eax
lea eax, [ebp - 0x120]
push eax
push 0xf033517
call dword [sym.imp.USER32.dll_EnumWindows]
call esi
cmp dword [ebp - 0x120], eax
jne 0xf033f95
mov dword [ebp - 0x120], ebx
jmp 0xf033f95
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], ebx
je 0xf033fbb
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 0xf033fc1
mov byte [ebp - 0x108], bl
test byte [ebp + 0x10], 0x80
push edi
je 0xf033fff
push 5
pop edi
lea eax, [ebp - 0x124]
push eax
push ebx
lea eax, [ebp - 0x11c]
push eax
push fcn.0f033e4b
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
cmp esi, ebx
jne 0xf03403e
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, edi
dec edi
test eax, eax
jne 0xf033fcb
lea eax, [ebp - 0x11c]
push eax
call fcn.0f033e4b
call sym.ntvdm.exe_ResumeTimerThread
cmp dword [ebp - 0x118], 1
pop edi
jne 0xf034067
cmp dword [0xf06bb04], ebx
je 0xf034062
mov eax, dword fs:[0x18]
cmp dword [eax + 0xc0], ebx
je 0xf034062
mov eax, dword [0xf070910]
cmp eax, ebx
je 0xf034062
push ebx
call eax
jmp 0xf034067
push 0x3e8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0xf034059
cmp dword [ebp - 0x118], ebx
je 0xf03403e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0xf03400b
call fcn.0f034856
dec dword [0xf06b8e0]
mov eax, dword [ebp - 0x118]
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0f01b45c
leave
ret 0xc
Function at 0xf0341bf
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 [0xf061038]
push dword [0xf09b5e4]
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 0xf03428b
push ebx
push esi
push edi
or edx, eax
push edx
push dword [0xf09b5e4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, 0x400
push ebx
lea eax, [ebp - 0xc04]
push eax
push 0x12c
push 0
call esi
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
push eax
call edi
test eax, eax
je 0xf034264
push ebx
lea eax, [ebp - 0x804]
push eax
mov eax, dword [ebp + 8]
add eax, 0x12d
push eax
push 0
call esi
push eax
call edi
test eax, eax
je 0xf034264
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0xc04]
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.0f01336d
add esp, 0xc
jmp 0xf034278
xor eax, eax
mov cl, byte [eax + 0xf06b640]
mov byte [ebp + eax - 0x404], cl
inc eax
test cl, cl
jne 0xf034266
push 0x25
push 0
lea eax, [ebp - 0x404]
push eax
call fcn.0f033ef3
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
call fcn.0f01b45c
leave
ret 4

Function at 0xf0346a3
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x54c
cmp dword [0xf063a18], 0
mov eax, dword [0xf061038]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x548], esi
mov dword [ebp - 0x54c], eax
je 0xf0346f8
and dword [0xf063a18], 0
push 0x103
push 0xf06b8e8
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0xf0346f8
mov byte [0xf06b8e8], al
push esi
jmp 0xf0347c0
cmp byte [0xf06b8e8], 0
je 0xf03475d
xor eax, eax
mov cl, byte [eax + 0xf06b8e8]
mov byte [ebp + eax - 0x404], cl
inc eax
test cl, cl
jne 0xf034703
push edi
lea edi, [ebp - 0x404]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0xf03471d
mov eax, dword [ebp - 0x548]
mov esi, 0xf002194
movsw word es:[edi], word [esi]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0xf034734
lea edi, [ebp - 0x404]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0xf034744
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
lea eax, [ebp - 0x544]
push eax
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0xf03479f
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp - 0x54c]
lea eax, [ebp - 0x404]
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0xf03478d
mov eax, dword [ebp - 0x54c]
jmp 0xf0347d5
cmp dword [ebp + 0x10], 0x4d2
je 0xf0347c4
cmp dword [ebp + 0x10], 0x929
je 0xf0347d3
cmp dword [ebp + 0x10], 0xd80
je 0xf0347c4
push dword [ebp - 0x548]
push 1
jmp 0xf0347cc
push dword [ebp - 0x548]
push 3
push 9
call fcn.0f03411f
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
call fcn.0f01b45c
leave
ret 0xc
Function at 0xf034932
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 + 0xf063a6c]
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 0xf0349f2
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 0xf0349d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0xf0349be
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 0xf0349d0
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 0xf0349f0
add dword [esi + 0x4c], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, ebx
jne 0xf0349ed
and dword [esi + 0x44], 0
sub edi, dword [ebp + 8]
jmp 0xf0349f2
add dword [esi + 0x44], eax
xor edi, edi
test edi, edi
je 0xf034a63
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 0xf034a4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0xf034a3b
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 0xf034a4d
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 0xf034a63
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 0xf034e9b
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax*4 + 0xf063a6c]
push edi
push dword [ebp + 0xc]
xor edi, edi
push esi
mov dword [ebp + 8], edi
call fcn.0f034ace
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 0xf034efb
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 0xf034ef4
mov dword [ebp + 8], edi
jmp 0xf034f04
call ebx
mov dword [ebp + 8], eax
jmp 0xf034f04
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 0xf034f50
call ebx
cmp eax, 0x3e5
mov dword [ebp + 8], eax
jne 0xf034f3f
xor eax, eax
mov dword [ebp + 8], eax
cmp eax, edi
je 0xf034f50
push edi
lea eax, [ebp + 8]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ClearCommError]
inc dword [esi + 0x190]
cmp dword [esi + 0x190], 3
jne 0xf034f65
mov dword [esi + 0x190], edi
mov dword [esi + 0x138], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0xf035114
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi*4 + 0xf063a6c]
xor ebx, ebx
lea ecx, [esi + 0x13c]
mov dword [ebp - 4], ebx
cmp dword [ecx], ebx
je 0xf035174
mov bl, byte [ebp + 0xc]
lea eax, [esi + 0x138]
mov edx, dword [eax]
mov byte [esi + edx + 0x70], bl
inc dword [eax]
mov eax, dword [eax]
cmp dword [ecx], eax
jle 0xf03515c
cmp dword [esi + 0x1d8], 0
je 0xf0351df
mov eax, dword [esi + 0x1d8]
neg eax
sbb eax, eax
and eax, 0xfffffffe
inc eax
inc eax
push eax
push edi
call fcn.0f034e9b
jmp 0xf0351df
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [esi + 0x1e8]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 8]
push eax
push 1
lea eax, [ebp + 0xc]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0xf0351df
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x3e5
mov dword [ebp - 4], eax
jne 0xf0351ce
push 1
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0xf0351df
call edi
mov dword [ebp - 4], eax
cmp eax, ebx
je 0xf0351df
push ebx
lea eax, [ebp - 4]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ClearCommError]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0xf035677
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x70
cmp dword [ebp + 8], 1
mov eax, dword [0xf061038]
mov dword [ebp - 4], eax
mov dword [ebp - 0x70], 0x64
jne 0xf03569b
mov eax, dword [0xf063b40]
jmp 0xf0356f5
lea eax, [ebp - 0x6c]
push eax
push 1
push 0
push 0xf00225c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xf0356de
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x68]
push eax
push 0
push 0
push 0xf002250
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push dword [ebp - 0x6c]
je 0xf0356e5
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0xf063b38]
jmp 0xf0356f5
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x68]
push eax
call fcn.0f01e00c
pop ecx
mov ecx, dword [ebp - 4]
call fcn.0f01b45c
leave
ret 4

Function at 0xf035755
Capabilities:
Manipulate console buffer

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push 0x462
call fcn.0f00f53c
movzx eax, al
lea eax, [eax + eax + 0x450]
push eax
call fcn.0f00f54f
mov cl, al
movzx ax, ah
movsx edx, ax
and cx, 0xff
mov word [ebp - 4], cx
mov ecx, dword [0xf09b4dc]
imul edx, ecx
mov word [ebp - 2], ax
mov eax, dword [0xf09b4ec]
cmp edx, eax
jle 0xf0357a5
cdq
idiv ecx
dec eax
mov word [ebp - 2], ax
cmp dword [0xf0708bc], 0
jne 0xf0357e7
push dword [ebp - 4]
push dword [0xf09b460]
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
test eax, eax
jne 0xf0357e7
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 6
je 0xf0357e6
push 0xc52
push 0xf0023a4
call esi
push eax
push 0x3e9
call fcn.0f03446f
pop esi
leave
ret
Function at 0xf038c4f
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 + 0xf09b3a0]
jne 0xf038c70
mov byte [esi + 0x25], bl
jmp 0xf038c79
cmp byte [esi + 0x25], bl
jne 0xf038d1d
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.0f010c71
push 0x400
mov dword [ebp - 4], eax
call fcn.0f006f83
cmp eax, ebx
pop ecx
mov dword [esi + 0x20], eax
je 0xf038d1d
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 0xf038d00
push dword [esi + 0x20]
call fcn.0f00579c
cmp byte [ebp + 0xc], bl
pop ecx
je 0xf038d1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0xf038d1d
mov byte [esi + 0x25], 1
jmp 0xf038d1d
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp byte [ebp + 0xc], bl
mov dword [esi + 0x18], eax
je 0xf038d22
cmp eax, 2
je 0xf038d22
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ax, ax
jmp 0xf038d61
mov eax, dword [0xf09b418]
mov ecx, dword [ebp + 8]
push ebx
add eax, ecx
push eax
mov byte [esi + 0x1c], 1
call fcn.0f00f563
mov al, byte [ebp + 0xc]
cmp al, bl
mov byte [esi + 0x24], al
je 0xf038d55
push 1
push dword [esi + 4]
mov dword [esi + 0x14], 0x3fc
push dword [ebp + 8]
call fcn.0f043a5d
push dword [ebp + 8]
call fcn.0f038c00
mov ax, 1
pop esi
pop ebx
leave
ret 8

Function at 0xf038d8e
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 + 0xf09b3a0]
cmp byte [esi + 0x24], bl
lea eax, [ebp + 8]
push ebx
push eax
je 0xf038dcc
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 0xf038df3
push dword [esi + 0x10]
push dword [esi + 0x20]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0xf038dc7
cmp dword [esi + 0x18], 3
mov dword [esi + 0x10], ebx
jne 0xf038df0
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
inc eax
pop esi
pop ebx
pop ebp
ret 4
Function at 0xf03999c
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 [0xf09b38c]
mov ebx, 0x200
push ebx
xor edi, edi
push edi
push dword [ebp + 8]
add esi, 0xf09b020
call fcn.0f03985b
cmp eax, ebx
je 0xf0399ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xf002410
mov dword [0xf070758], eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x64
pop eax
mov word [esi + 0x12], ax
jmp 0xf039a3f
mov eax, dword [0xf09b38c]
mov cl, byte [eax]
cmp cl, 0x69
je 0xf039a0b
cmp cl, 0xe9
je 0xf039a0b
cmp cl, 0xeb
jne 0xf039a25
cmp byte [eax + 2], 0x90
jne 0xf039a25
mov cl, byte [eax + 0x15]
and cl, 0xf0
cmp cl, 0xf0
jne 0xf039a25
movzx edi, byte [eax + 0x14]
movzx eax, byte [eax + 0x13]
shl edi, 8
add edi, eax
jmp 0xf039a73
cmp dword [0xf064188], 0
mov dword [ebp - 4], 0xf064188
jne 0xf039a4b
mov word [esi + 0x12], 0x64
mov ax, word [esi + 0x12]
pop edi
pop esi
pop ebx
leave
ret 4
mov eax, dword [0xf09b38c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push ebx
shl eax, 9
push eax
push dword [ebp + 8]
call fcn.0f03985b
cmp eax, ebx
jne 0xf039a73
mov eax, dword [ebp - 4]
mov edi, dword [eax]
add eax, 4
inc edi
cmp dword [eax], 0
mov dword [ebp - 4], eax
jne 0xf039a46
test edi, edi
je 0xf039a35
cmp edi, 0x2d0
je 0xf039aaf
cmp edi, 0x5a0
je 0xf039aaf
cmp edi, 0x960
je 0xf039a9f
cmp edi, 0xb40
je 0xf039a9f
cmp edi, 0x1680
je 0xf039aa7
mov word [esi + 0x12], 1
jmp 0xf039a3b
mov word [esi + 0x12], 2
jmp 0xf039a3b
and word [esi + 0x12], 0
jmp 0xf039a3b