joyce8/EMBER2024-capa huggingface dataset:
Function at 0xf01d750
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0xf079d64]
push edi
jae 0xf01d929
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0xf079d80]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0xf01d929
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0xf01d7fd
test dl, 2
jne 0xf01d7fd
test dl, 0x48
je 0xf01d7c7
cmp byte [eax + 5], 0xa
je 0xf01d7c7
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0xf01d810
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0xf01d7f8
mov dword [0xf066a80], ecx
jmp 0xf01d930
cmp eax, 0x6d
jne 0xf01d804
xor eax, eax
jmp 0xf01d93d
push eax
call fcn.0f01e18c
pop ecx
jmp 0xf01d93a
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0xf01d924
test eax, eax
je 0xf01d837
cmp byte [ebx], 0xa
jne 0xf01d837
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0xf01d840
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0xf01d91e
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0xf01d90e
cmp al, 0xd
je 0xf01d872
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0xf01d900
dec ecx
cmp dword [ebp - 8], ecx
jae 0xf01d88c
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0xf01d887
add dword [ebp - 8], 2
jmp 0xf01d8e0
mov dword [ebp - 8], eax
jmp 0xf01d8fc
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0xf01d8b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0xf01d8fc
cmp dword [ebp - 0x10], 0
je 0xf01d8fc
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0xf01d8d5
mov al, byte [ebp - 1]
cmp al, 0xa
je 0xf01d8e0
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0xf01d8ff
cmp ebx, dword [ebp + 0xc]
jne 0xf01d8e5
cmp byte [ebp - 1], 0xa
jne 0xf01d8e5
mov byte [ebx], 0xa
jmp 0xf01d8ff
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0f01e0e6
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0xf01d900
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0xf01d856
jmp 0xf01d91e
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0xf01d91e
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0xf01d93d
and dword [0xf066a80], 0
mov dword [0xf066a7c], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0xf01d9f5
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 [0xf079d64]
mov eax, dword [0xf062038]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0x41c], edi
jae 0xf01dbdb
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0xf079d80]
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 0xf01dbdb
and dword [ebp - 0x414], 0
and dword [ebp - 0x420], 0
cmp dword [ebp + 0x10], 0
jne 0xf01da66
xor eax, eax
jmp 0xf01dbef
test al, 0x20
je 0xf01da79
push 2
push 0
push 0
push ecx
call fcn.0f01e0e6
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0xf01db39
and dword [ebp - 0x40c], 0
cmp dword [ebp + 0x10], 0
mov dword [ebp - 0x410], edi
jbe 0xf01dbb5
mov ecx, dword [ebp - 0x410]
xor edi, edi
sub ecx, dword [ebp - 0x41c]
lea eax, [ebp - 0x408]
cmp ecx, dword [ebp + 0x10]
jae 0xf01dae8
mov edx, dword [ebp - 0x410]
inc dword [ebp - 0x410]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0xf01dad6
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 0xf01dab2
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 0xf01db67
mov eax, dword [ebp - 0x418]
add dword [ebp - 0x414], eax
cmp eax, edi
jl 0xf01db73
mov eax, dword [ebp - 0x410]
sub eax, dword [ebp - 0x41c]
cmp eax, dword [ebp + 0x10]
jb 0xf01da9e
jmp 0xf01db73
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 0xf01db67
mov eax, dword [ebp - 0x418]
and dword [ebp - 0x40c], 0
mov dword [ebp - 0x414], eax
jmp 0xf01db73
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp - 0x414]
test eax, eax
jne 0xf01dbd3
cmp dword [ebp - 0x40c], eax
je 0xf01dbaf
push 5
pop eax
cmp dword [ebp - 0x40c], eax
jne 0xf01dba1
mov dword [0xf066a7c], 9
mov dword [0xf066a80], eax
jmp 0xf01dbec
push dword [ebp - 0x40c]
call fcn.0f01e18c
pop ecx
jmp 0xf01dbec
mov edi, dword [ebp - 0x41c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0xf01dbc7
cmp byte [edi], 0x1a
je 0xf01da5f
mov dword [0xf066a7c], 0x1c
jmp 0xf01dbe5
sub eax, dword [ebp - 0x420]
jmp 0xf01dbef
mov dword [0xf066a7c], 9
and dword [0xf066a80], 0
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0f01b9b9
leave
ret
Function at 0xf01e062
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.0f01c300
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0xf01e0c8
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0xf066a88]
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 0xf01e0cc
xor eax, eax
jmp 0xf01e0d9
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 0xf026a51
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0x449
call fcn.0f00f6f0
cmp al, 0x11
jne 0xf026a6a
or dword [ebp + 0x10], 0xffffffff
jmp 0xf026a7a
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov eax, dword [eax*4 + 0xf064ad0]
mov dword [ebp + 0x10], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x485
call fcn.0f00f6f0
mov ebx, dword [ebp + 0x14]
cmp ebx, 1
mov ecx, dword [ebp + 0xc]
mov edx, dword [0xf07b1a0]
movzx eax, al
lea esi, [edx + ecx*4]
jne 0xf026ad4
test eax, eax
jbe 0xf026b17
mov ebx, dword [ebp + 0x18]
shl ebx, 2
mov dword [ebp + 0x18], eax
push edi
call fcn.0f00f6f0
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 0xf026aae
jmp 0xf026b17
mov ecx, dword [ebp + 0x18]
sub ecx, ebx
test eax, eax
jbe 0xf026b17
shl ecx, 2
mov dword [ebp + 8], ecx
mov dword [ebp + 0x18], eax
push edi
call fcn.0f00f6f0
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 0xf026b0f
mov ecx, ebx
xor dword [esi], eax
add esi, 4
dec ecx
jne 0xf026b07
add esi, dword [ebp + 8]
dec dword [ebp + 0x18]
jne 0xf026ae6
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0xf034497
Capabilities:
Create thread
Enumerate gui resources

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0xf062038]
push ebx
xor ebx, ebx
cmp dword [0xf06c900], ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
je 0xf0344c1
push 4
pop eax
jmp 0xf034617
mov dword [0xf06c900], 1
call sym.ntvdm.exe_SuspendTimerThread
cmp dword [0xf06cb24], ebx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x110], eax
mov eax, dword [0xf09c114]
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x10c], esi
je 0xf034533
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call esi
mov dword [ebp - 0x120], eax
lea eax, [ebp - 0x120]
push eax
push 0xf033aec
call dword [sym.imp.USER32.dll_EnumWindows]
call esi
cmp dword [ebp - 0x120], eax
jne 0xf034539
mov dword [ebp - 0x120], ebx
jmp 0xf034539
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], ebx
je 0xf03455f
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 0xf034565
mov byte [ebp - 0x108], bl
test byte [ebp + 0x10], 0x80
push edi
je 0xf0345a3
push 5
pop edi
lea eax, [ebp - 0x124]
push eax
push ebx
lea eax, [ebp - 0x11c]
push eax
push fcn.0f034420
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
cmp esi, ebx
jne 0xf0345e2
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, edi
dec edi
test eax, eax
jne 0xf03456f
lea eax, [ebp - 0x11c]
push eax
call fcn.0f034420
call sym.ntvdm.exe_ResumeTimerThread
cmp dword [ebp - 0x118], 1
pop edi
jne 0xf03460b
cmp dword [0xf06cb24], ebx
je 0xf034606
mov eax, dword fs:[0x18]
cmp dword [eax + 0xc0], ebx
je 0xf034606
mov eax, dword [0xf0719c0]
cmp eax, ebx
je 0xf034606
push ebx
call eax
jmp 0xf03460b
push 0x3e8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0xf0345fd
cmp dword [ebp - 0x118], ebx
je 0xf0345e2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0xf0345af
call fcn.0f034e04
dec dword [0xf06c900]
mov eax, dword [ebp - 0x118]
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0f01b9b9
leave
ret 0xc
Function at 0xf034763
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 [0xf062038]
push dword [0xf09c6e4]
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 0xf03482f
push ebx
push esi
push edi
or edx, eax
push edx
push dword [0xf09c6e4]
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 0xf034808
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 0xf034808
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0xc04]
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.0f013533
add esp, 0xc
jmp 0xf03481c
xor eax, eax
mov cl, byte [eax + 0xf06c660]
mov byte [ebp + eax - 0x404], cl
inc eax
test cl, cl
jne 0xf03480a
push 0x25
push 0
lea eax, [ebp - 0x404]
push eax
call fcn.0f034497
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
call fcn.0f01b9b9
leave
ret 4

Function at 0xf034c47
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x54c
cmp dword [0xf064a20], 0
mov eax, dword [0xf062038]
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 0xf034c9c
and dword [0xf064a20], 0
push 0x103
push 0xf06c908
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0xf034c9c
mov byte [0xf06c908], al
push esi
jmp 0xf034d64
cmp byte [0xf06c908], 0
je 0xf034d01
xor eax, eax
mov cl, byte [eax + 0xf06c908]
mov byte [ebp + eax - 0x404], cl
inc eax
test cl, cl
jne 0xf034ca7
push edi
lea edi, [ebp - 0x404]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0xf034cc1
mov eax, dword [ebp - 0x548]
mov esi, 0xf0021a8
movsw word es:[edi], word [esi]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0xf034cd8
lea edi, [ebp - 0x404]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0xf034ce8
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 0xf034d43
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 0xf034d31
mov eax, dword [ebp - 0x54c]
jmp 0xf034d79
cmp dword [ebp + 0x10], 0x4d2
je 0xf034d68
cmp dword [ebp + 0x10], 0x929
je 0xf034d77
cmp dword [ebp + 0x10], 0xd80
je 0xf034d68
push dword [ebp - 0x548]
push 1
jmp 0xf034d70
push dword [ebp - 0x548]
push 3
push 9
call fcn.0f0346c3
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
call fcn.0f01b9b9
leave
ret 0xc
Function at 0xf034ee0
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 + 0xf064a74]
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 0xf034fa0
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 0xf034f7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0xf034f6c
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 0xf034f7e
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 0xf034f9e
add dword [esi + 0x4c], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, ebx
jne 0xf034f9b
and dword [esi + 0x44], 0
sub edi, dword [ebp + 8]
jmp 0xf034fa0
add dword [esi + 0x44], eax
xor edi, edi
test edi, edi
je 0xf035011
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 0xf034ffb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0xf034fe9
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 0xf034ffb
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 0xf035011
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 0xf03544a
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 + 0xf064a74]
push edi
push dword [ebp + 0xc]
xor edi, edi
push esi
mov dword [ebp - 4], edi
call fcn.0f03507c
cmp dword [esi + 0x214], edi
je 0xf0354e5
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 0xf0354c6
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x3e5
mov dword [ebp - 4], eax
jne 0xf0354c4
push 1
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0xf0354c0
call edi
mov dword [ebp - 4], eax
jmp 0xf0354c4
and dword [ebp - 4], 0
xor edi, edi
cmp dword [ebp - 4], edi
je 0xf0354d8
push edi
lea eax, [ebp - 4]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ClearCommError]
push dword [ebp + 8]
call fcn.0f028b7b
jmp 0xf03558f
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 0xf035525
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 0xf03551e
mov dword [ebp - 4], edi
jmp 0xf03552e
call ebx
mov dword [ebp - 4], eax
jmp 0xf03552e
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 0xf03557a
call ebx
cmp eax, 0x3e5
mov dword [ebp - 4], eax
jne 0xf035569
xor eax, eax
mov dword [ebp - 4], eax
cmp eax, edi
je 0xf03557a
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 0xf03558f
mov dword [esi + 0x190], edi
mov dword [esi + 0x138], edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0xf035782
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 + 0xf064a74]
xor ebx, ebx
lea ecx, [esi + 0x13c]
mov dword [ebp - 4], ebx
cmp dword [ecx], ebx
je 0xf0357e8
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 0xf0357ce
cmp dword [esi + 0x1d8], ebx
je 0xf035862
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.0f03544a
jmp 0xf035862
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 0xf035859
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x3e5
mov dword [ebp - 4], eax
jne 0xf035848
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 0xf035843
mov dword [ebp - 4], ebx
jmp 0xf035859
call edi
mov dword [ebp - 4], eax
cmp eax, ebx
je 0xf035859
push ebx
lea eax, [ebp - 4]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ClearCommError]
push dword [ebp + 8]
call fcn.0f028b7b
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0xf035d25
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 0xf002298
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 0xf035d76
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0xf002288
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 4], esi
pop esi
je 0xf035d85
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
cmp dword [ebp - 8], eax
jne 0xf035d94
mov dword [0xf06d800], eax
leave
ret
xor eax, eax
leave
ret
Function at 0xf035d9d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0xf062038]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x6c]
push eax
push 1
push 0
push 0xf0022d4
push 0x80000002
mov dword [ebp - 0x70], 0x64
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0xf035ddc
mov eax, dword [ebp + 8]
mov eax, dword [eax*8 + 0xf064b40]
jmp 0xf035e22
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 + 0xf064b3c]
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0xf035e0a
mov esi, dword [esi + 0xf064b40]
jmp 0xf035e16
lea eax, [ebp - 0x68]
push eax
call fcn.0f01e56c
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.0f01b9b9
leave
ret 4

Function at 0xf035e82
Capabilities:
Manipulate console buffer

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push 0x462
call fcn.0f00f6f0
movzx eax, al
lea eax, [eax + eax + 0x450]
push eax
call fcn.0f00f703
mov cl, al
movzx ax, ah
movsx edx, ax
and cx, 0xff
mov word [ebp - 4], cx
mov ecx, dword [0xf09c5dc]
imul edx, ecx
mov word [ebp - 2], ax
mov eax, dword [0xf09c5ec]
cmp edx, eax
jle 0xf035ed2
cdq
idiv ecx
dec eax
mov word [ebp - 2], ax
cmp dword [0xf07196c], 0
jne 0xf035f14
push dword [ebp - 4]
push dword [0xf09c560]
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
test eax, eax
jne 0xf035f14
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 6
je 0xf035f13
push 0xc52
push 0xf00241c
call esi
push eax
push 0x3e9
call fcn.0f034a13
pop esi
leave
ret