joyce8/EMBER2024-capa huggingface dataset:
Function at 0xf01d7c5
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 [0xf078d24]
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 0xf01d9ab
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0xf078d40]
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 0xf01d9ab
and dword [ebp - 0x414], 0
and dword [ebp - 0x420], 0
cmp dword [ebp + 0x10], 0
jne 0xf01d836
xor eax, eax
jmp 0xf01d9bf
test al, 0x20
je 0xf01d849
push 2
push 0
push 0
push ecx
call fcn.0f01deb6
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0xf01d909
and dword [ebp - 0x40c], 0
cmp dword [ebp + 0x10], 0
mov dword [ebp - 0x410], edi
jbe 0xf01d985
mov ecx, dword [ebp - 0x410]
xor edi, edi
sub ecx, dword [ebp - 0x41c]
lea eax, [ebp - 0x408]
cmp ecx, dword [ebp + 0x10]
jae 0xf01d8b8
mov edx, dword [ebp - 0x410]
inc dword [ebp - 0x410]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0xf01d8a6
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 0xf01d882
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 0xf01d937
mov eax, dword [ebp - 0x418]
add dword [ebp - 0x414], eax
cmp eax, edi
jl 0xf01d943
mov eax, dword [ebp - 0x410]
sub eax, dword [ebp - 0x41c]
cmp eax, dword [ebp + 0x10]
jb 0xf01d86e
jmp 0xf01d943
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 0xf01d937
mov eax, dword [ebp - 0x418]
and dword [ebp - 0x40c], 0
mov dword [ebp - 0x414], eax
jmp 0xf01d943
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp - 0x414]
test eax, eax
jne 0xf01d9a3
cmp dword [ebp - 0x40c], eax
je 0xf01d97f
push 5
pop eax
cmp dword [ebp - 0x40c], eax
jne 0xf01d971
mov dword [0xf065a7c], 9
mov dword [0xf065a80], eax
jmp 0xf01d9bc
push dword [ebp - 0x40c]
call fcn.0f01df5c
pop ecx
jmp 0xf01d9bc
mov edi, dword [ebp - 0x41c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0xf01d997
cmp byte [edi], 0x1a
je 0xf01d82f
mov dword [0xf065a7c], 0x1c
jmp 0xf01d9b5
sub eax, dword [ebp - 0x420]
jmp 0xf01d9bf
mov dword [0xf065a7c], 9
and dword [0xf065a80], 0
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0f01b780
leave
ret
Function at 0xf01de32
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.0f01c0d0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0xf01de98
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0xf065a88]
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 0xf01de9c
xor eax, eax
jmp 0xf01dea9
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 0xf02682f
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0x449
call fcn.0f00f639
cmp al, 0x11
jne 0xf026848
or dword [ebp + 0x10], 0xffffffff
jmp 0xf026858
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.0f00f639
mov ebx, dword [ebp + 0x14]
cmp ebx, 1
mov ecx, dword [ebp + 0xc]
mov edx, dword [0xf07a160]
movzx eax, al
lea esi, [edx + ecx*4]
jne 0xf0268b2
test eax, eax
jbe 0xf0268f5
mov ebx, dword [ebp + 0x18]
shl ebx, 2
mov dword [ebp + 0x18], eax
push edi
call fcn.0f00f639
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 0xf02688c
jmp 0xf0268f5
mov ecx, dword [ebp + 0x18]
sub ecx, ebx
test eax, eax
jbe 0xf0268f5
shl ecx, 2
mov dword [ebp + 8], ecx
mov dword [ebp + 0x18], eax
push edi
call fcn.0f00f639
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 0xf0268ed
mov ecx, ebx
xor dword [esi], eax
add esi, 4
dec ecx
jne 0xf0268e5
add esi, dword [ebp + 8]
dec dword [ebp + 0x18]
jne 0xf0268c4
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0xf0342a4
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 [0xf06b900], ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
je 0xf0342ce
push 4
pop eax
jmp 0xf034424
mov dword [0xf06b900], 1
call sym.ntvdm.exe_SuspendTimerThread
cmp dword [0xf06bb24], ebx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x110], eax
mov eax, dword [0xf09b0d4]
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x10c], esi
je 0xf034340
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call esi
mov dword [ebp - 0x120], eax
lea eax, [ebp - 0x120]
push eax
push 0xf0338c8
call dword [sym.imp.USER32.dll_EnumWindows]
call esi
cmp dword [ebp - 0x120], eax
jne 0xf034346
mov dword [ebp - 0x120], ebx
jmp 0xf034346
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], ebx
je 0xf03436c
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 0xf034372
mov byte [ebp - 0x108], bl
test byte [ebp + 0x10], 0x80
push edi
je 0xf0343b0
push 5
pop edi
lea eax, [ebp - 0x124]
push eax
push ebx
lea eax, [ebp - 0x11c]
push eax
push fcn.0f0341fc
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
cmp esi, ebx
jne 0xf0343ef
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, edi
dec edi
test eax, eax
jne 0xf03437c
lea eax, [ebp - 0x11c]
push eax
call fcn.0f0341fc
call sym.ntvdm.exe_ResumeTimerThread
cmp dword [ebp - 0x118], 1
pop edi
jne 0xf034418
cmp dword [0xf06bb24], ebx
je 0xf034413
mov eax, dword fs:[0x18]
cmp dword [eax + 0xc0], ebx
je 0xf034413
mov eax, dword [0xf0709c0]
cmp eax, ebx
je 0xf034413
push ebx
call eax
jmp 0xf034418
push 0x3e8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0xf03440a
cmp dword [ebp - 0x118], ebx
je 0xf0343ef
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0xf0343bc
call fcn.0f034c11
dec dword [0xf06b900]
mov eax, dword [ebp - 0x118]
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0f01b780
leave
ret 0xc
Function at 0xf034570
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 [0xf09b6a4]
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 0xf03463c
push ebx
push esi
push edi
or edx, eax
push edx
push dword [0xf09b6a4]
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 0xf034615
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 0xf034615
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0xc04]
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.0f01347c
add esp, 0xc
jmp 0xf034629
xor eax, eax
mov cl, byte [eax + 0xf06b660]
mov byte [ebp + eax - 0x404], cl
inc eax
test cl, cl
jne 0xf034617
push 0x25
push 0
lea eax, [ebp - 0x404]
push eax
call fcn.0f0342a4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
call fcn.0f01b780
leave
ret 4

Function at 0xf034a54
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 0xf034aa9
and dword [0xf063a18], 0
push 0x103
push 0xf06b908
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0xf034aa9
mov byte [0xf06b908], al
push esi
jmp 0xf034b71
cmp byte [0xf06b908], 0
je 0xf034b0e
xor eax, eax
mov cl, byte [eax + 0xf06b908]
mov byte [ebp + eax - 0x404], cl
inc eax
test cl, cl
jne 0xf034ab4
push edi
lea edi, [ebp - 0x404]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0xf034ace
mov eax, dword [ebp - 0x548]
mov esi, 0xf00218c
movsw word es:[edi], word [esi]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0xf034ae5
lea edi, [ebp - 0x404]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0xf034af5
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 0xf034b50
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 0xf034b3e
mov eax, dword [ebp - 0x54c]
jmp 0xf034b86
cmp dword [ebp + 0x10], 0x4d2
je 0xf034b75
cmp dword [ebp + 0x10], 0x929
je 0xf034b84
cmp dword [ebp + 0x10], 0xd80
je 0xf034b75
push dword [ebp - 0x548]
push 1
jmp 0xf034b7d
push dword [ebp - 0x548]
push 3
push 9
call fcn.0f0344d0
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
call fcn.0f01b780
leave
ret 0xc
Function at 0xf034ced
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 0xf034dad
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 0xf034d8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0xf034d79
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 0xf034d8b
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 0xf034dab
add dword [esi + 0x4c], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, ebx
jne 0xf034da8
and dword [esi + 0x44], 0
sub edi, dword [ebp + 8]
jmp 0xf034dad
add dword [esi + 0x44], eax
xor edi, edi
test edi, edi
je 0xf034e1e
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 0xf034e08
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0xf034df6
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 0xf034e08
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 0xf034e1e
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 0xf035257
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 + 0xf063a6c]
push edi
push dword [ebp + 0xc]
xor edi, edi
push esi
mov dword [ebp - 4], edi
call fcn.0f034e89
cmp dword [esi + 0x214], edi
je 0xf0352f2
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 0xf0352d3
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x3e5
mov dword [ebp - 4], eax
jne 0xf0352d1
push 1
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0xf0352cd
call edi
mov dword [ebp - 4], eax
jmp 0xf0352d1
and dword [ebp - 4], 0
xor edi, edi
cmp dword [ebp - 4], edi
je 0xf0352e5
push edi
lea eax, [ebp - 4]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ClearCommError]
push dword [ebp + 8]
call fcn.0f028959
jmp 0xf03539c
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 0xf035332
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 0xf03532b
mov dword [ebp - 4], edi
jmp 0xf03533b
call ebx
mov dword [ebp - 4], eax
jmp 0xf03533b
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 0xf035387
call ebx
cmp eax, 0x3e5
mov dword [ebp - 4], eax
jne 0xf035376
xor eax, eax
mov dword [ebp - 4], eax
cmp eax, edi
je 0xf035387
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 0xf03539c
mov dword [esi + 0x190], edi
mov dword [esi + 0x138], edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0xf03558f
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 + 0xf063a6c]
xor ebx, ebx
lea ecx, [esi + 0x13c]
mov dword [ebp - 4], ebx
cmp dword [ecx], ebx
je 0xf0355f5
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 0xf0355db
cmp dword [esi + 0x1d8], ebx
je 0xf03566f
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.0f035257
jmp 0xf03566f
push edi
xor eax, eax
lea edi, [ebp - 0x20]
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 - 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 0xf035666
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x3e5
mov dword [ebp - 4], eax
jne 0xf035655
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 0xf035650
mov dword [ebp - 4], ebx
jmp 0xf035666
call edi
mov dword [ebp - 4], eax
cmp eax, ebx
je 0xf035666
push ebx
lea eax, [ebp - 4]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ClearCommError]
push dword [ebp + 8]
call fcn.0f028959
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0xf035b28
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0xf002278
push 0x80000002
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], 4
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xf035b79
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0xf002268
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 4], esi
pop esi
je 0xf035b88
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
cmp dword [ebp - 8], eax
jne 0xf035b97
mov dword [0xf06c800], eax
leave
ret
xor eax, eax
leave
ret
Function at 0xf035ba0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0xf061038]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x6c]
push eax
push 1
push 0
push 0xf0022b4
push 0x80000002
mov dword [ebp - 0x70], 0x64
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0xf035bdf
mov eax, dword [ebp + 8]
mov eax, dword [eax*8 + 0xf063b38]
jmp 0xf035c25
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 + 0xf063b34]
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0xf035c0d
mov esi, dword [esi + 0xf063b38]
jmp 0xf035c19
lea eax, [ebp - 0x68]
push eax
call fcn.0f01e33c
pop ecx
mov esi, eax
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
call fcn.0f01b780
leave
ret 4

Function at 0xf035c85
Capabilities:
Manipulate console buffer

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push 0x462
call fcn.0f00f639
movzx eax, al
lea eax, [eax + eax + 0x450]
push eax
call fcn.0f00f64c
mov cl, al
movzx ax, ah
movsx edx, ax
and cx, 0xff
mov word [ebp - 4], cx
mov ecx, dword [0xf09b59c]
imul edx, ecx
mov word [ebp - 2], ax
mov eax, dword [0xf09b5ac]
cmp edx, eax
jle 0xf035cd5
cdq
idiv ecx
dec eax
mov word [ebp - 2], ax
cmp dword [0xf07096c], 0
jne 0xf035d17
push dword [ebp - 4]
push dword [0xf09b520]
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
test eax, eax
jne 0xf035d17
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 6
je 0xf035d16
push 0xc52
push 0xf0023fc
call esi
push eax
push 0x3e9
call fcn.0f034820
pop esi
leave
ret
Function at 0xf039175
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 + 0xf09b460]
jne 0xf039196
mov byte [esi + 0x25], bl
jmp 0xf03919f
cmp byte [esi + 0x25], bl
jne 0xf039243
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.0f010d6e
push 0x400
mov dword [ebp - 4], eax
call fcn.0f007089
cmp eax, ebx
pop ecx
mov dword [esi + 0x20], eax
je 0xf039243
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 0xf039226
push dword [esi + 0x20]
call fcn.0f0058a2
cmp byte [ebp + 0xc], bl
pop ecx
je 0xf039243
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0xf039243
mov byte [esi + 0x25], 1
jmp 0xf039243
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp byte [ebp + 0xc], bl
mov dword [esi + 0x18], eax
je 0xf039248
cmp eax, 2
je 0xf039248
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ax, ax
jmp 0xf039287
mov eax, dword [0xf09b4d8]
mov ecx, dword [ebp + 8]
push ebx
add eax, ecx
push eax
mov byte [esi + 0x1c], 1
call fcn.0f00f660
mov al, byte [ebp + 0xc]
cmp al, bl
mov byte [esi + 0x24], al
je 0xf03927b
push 1
push dword [esi + 4]
mov dword [esi + 0x14], 0x3fc
push dword [ebp + 8]
call fcn.0f043fab
push dword [ebp + 8]
call fcn.0f039126
mov ax, 1
pop esi
pop ebx
leave
ret 8

Function at 0xf0392b4
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 + 0xf09b460]
cmp byte [esi + 0x24], bl
lea eax, [ebp + 8]
push ebx
push eax
je 0xf0392f2
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 0xf039319
push dword [esi + 0x10]
push dword [esi + 0x20]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0xf0392ed
cmp dword [esi + 0x18], 3
mov dword [esi + 0x10], ebx
jne 0xf039316
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
inc eax
pop esi
pop ebx
pop ebp
ret 4
Function at 0xf039ec2
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 [0xf09b44c]
mov ebx, 0x200
push ebx
xor edi, edi
push edi
push dword [ebp + 8]
add esi, 0xf09b0e0
call fcn.0f039d81
cmp eax, ebx
je 0xf039f15
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xf002468
mov dword [0xf070808], eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x64
pop eax
mov word [esi + 0x12], ax
jmp 0xf039f65
mov eax, dword [0xf09b44c]
mov cl, byte [eax]
cmp cl, 0x69
je 0xf039f31
cmp cl, 0xe9
je 0xf039f31
cmp cl, 0xeb
jne 0xf039f4b
cmp byte [eax + 2], 0x90
jne 0xf039f4b
mov cl, byte [eax + 0x15]
and cl, 0xf0
cmp cl, 0xf0
jne 0xf039f4b
movzx edi, byte [eax + 0x14]
movzx eax, byte [eax + 0x13]
shl edi, 8
add edi, eax
jmp 0xf039f99
cmp dword [0xf0641a0], 0
mov dword [ebp - 4], 0xf0641a0
jne 0xf039f71
mov word [esi + 0x12], 0x64
mov ax, word [esi + 0x12]
pop edi
pop esi
pop ebx
leave
ret 4
mov eax, dword [0xf09b44c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push ebx
shl eax, 9
push eax
push dword [ebp + 8]
call fcn.0f039d81
cmp eax, ebx
jne 0xf039f99
mov eax, dword [ebp - 4]
mov edi, dword [eax]
add eax, 4
inc edi
cmp dword [eax], 0
mov dword [ebp - 4], eax
jne 0xf039f6c
test edi, edi
je 0xf039f5b
cmp edi, 0x2d0
je 0xf039fd5
cmp edi, 0x5a0
je 0xf039fd5
cmp edi, 0x960
je 0xf039fc5
cmp edi, 0xb40
je 0xf039fc5
cmp edi, 0x1680
je 0xf039fcd
mov word [esi + 0x12], 1
jmp 0xf039f61
mov word [esi + 0x12], 2
jmp 0xf039f61
and word [esi + 0x12], 0
jmp 0xf039f61