joyce8/EMBER2024-capa huggingface dataset:
Function at 0xf013b4d
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x112
call fcn.0f0070c9
test eax, eax
pop ecx
mov dword [0xf09cda0], eax
je 0xf013bde
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0xf013bde
cmp eax, esi
jae 0xf013bde
call fcn.0f046876
cmp dword [0xf06cb24], 0
je 0xf013b9a
xor eax, eax
inc eax
jmp 0xf013be0
push edi
mov edi, dword [ebp + 8]
dec edi
test edi, edi
jle 0xf013bd8
mov esi, dword [ebp + 0xc]
add esi, 4
mov eax, dword [esi]
mov cl, byte [eax]
cmp cl, 0x2d
je 0xf013bb7
cmp cl, 0x2f
jne 0xf013bc7
movsx eax, byte [eax + 1]
push eax
call fcn.0f0133e2
cmp eax, 0x64
pop ecx
je 0xf013bce
dec edi
test edi, edi
jg 0xf013ba6
jmp 0xf013bd8
mov dword [0xf078340], 0x60000000
xor eax, eax
inc eax
pop edi
jmp 0xf013be0
xor eax, eax
pop esi
pop ebp
ret 8

Function at 0xf014171
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
call fcn.0f00cf7e
call fcn.0f0116be
call sym.ntvdm.exe_getDS
movzx esi, ax
shl esi, 4
call sym.ntvdm.exe_getDX
movzx eax, ax
add esi, eax
mov ax, word [0xf078338]
mov word [esi + 6], ax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, eax
test edi, edi
je 0xf014216
jmp 0xf0141c0
movsx eax, al
push eax
call fcn.0f00a17d
test eax, eax
pop ecx
jne 0xf0141c6
inc edi
mov al, byte [edi]
test al, al
jne 0xf0141b1
mov al, byte [edi]
cmp al, 0x22
jne 0xf0141da
inc edi
mov al, byte [edi]
test al, al
je 0xf0141ee
inc edi
cmp al, 0x22
jne 0xf0141cd
jmp 0xf0141ee
movsx eax, al
jmp 0xf0141e3
inc edi
movsx eax, byte [edi]
push eax
call fcn.0f00a17d
test eax, eax
pop ecx
jne 0xf0141df
push 0xf0037bc
push edi
call fcn.0f056f70
add eax, 4
mov edi, eax
mov al, byte [edi]
test al, al
pop ecx
pop ecx
je 0xf014216
cmp al, 0x20
jne 0xf014211
inc edi
mov al, byte [edi]
test al, al
jne 0xf014206
cmp byte [edi], 0
jne 0xf014226
push 0
push 0
push 0x17
call fcn.0f034840
call fcn.0f034e04
movzx eax, word [esi + 0x1e]
push ebx
movzx ebx, word [esi + 0x1c]
shl ebx, 4
add ebx, eax
movzx eax, word [esi + 0x20]
dec eax
mov dword [ebp - 8], edi
mov dword [ebp - 4], eax
je 0xf014267
movsx eax, byte [edi]
push eax
call fcn.0f00a17d
test eax, eax
pop ecx
je 0xf014264
mov al, byte [edi]
cmp al, 0x5c
jne 0xf01425b
lea ecx, [edi + 1]
mov dword [ebp - 8], ecx
mov byte [ebx], al
inc ebx
inc edi
dec dword [ebp - 4]
jne 0xf014241
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov byte [ebx], 0
sub word [esi + 0x20], ax
movzx edi, word [esi + 8]
movzx eax, word [esi + 0xa]
shl edi, 4
add edi, eax
movzx eax, word [esi + 0xc]
mov word [esi + 0x22], 4
pop ebx
jmp 0xf014295
mov cl, byte [edx]
test cl, cl
je 0xf014298
mov byte [edi], cl
inc edi
inc edx
dec eax
jne 0xf01428b
mov esi, 0xf001690
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [0xf09cf90]
mov byte [eax], 1
mov ecx, dword [0xf09cf20]
xor eax, eax
mov dword [0xf0784a0], eax
mov dword [0xf0660c4], eax
push eax
mov byte [ecx], 0xff
call sym.ntvdm.exe_setCF
pop edi
pop esi
leave
ret
Function at 0xf014f57
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x454
mov eax, dword [0xf062038]
push esi
xor esi, esi
mov dword [ebp - 4], eax
mov dword [ebp - 0x430], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
shl ecx, 0x10
or ecx, 0x800006cc
mov eax, dword fs:[0x18]
mov dword [eax + 0xf18], ecx
push 0xf0015c0
lea eax, [ebp - 0x43c]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [ebp - 0x43c]
mov dword [ebp - 0x44c], eax
lea eax, [ebp - 0x454]
push eax
push 0x20019
lea eax, [ebp - 0x430]
push eax
mov dword [ebp - 0x454], 0x18
mov dword [ebp - 0x450], esi
mov dword [ebp - 0x448], 0x40
mov dword [ebp - 0x444], esi
mov dword [ebp - 0x440], esi
call dword [sym.imp.ntdll.dll_NtOpenKey]
test eax, eax
jl 0xf015051
push ebx
push edi
lea eax, [ebp - 0x434]
push eax
mov edi, 0x428
push edi
lea eax, [ebp - 0x42c]
push eax
push 1
push esi
mov esi, dword [sym.imp.ntdll.dll_NtEnumerateValueKey]
xor ebx, ebx
jmp 0xf015037
lea eax, [ebp - 0x42c]
push eax
call fcn.0f01b7e8
test al, al
je 0xf015043
lea eax, [ebp - 0x434]
push eax
push edi
lea eax, [ebp - 0x42c]
push eax
inc ebx
push 1
push ebx
push dword [ebp - 0x430]
call esi
test eax, eax
jge 0xf015014
push dword [ebp - 0x430]
call dword [sym.imp.ntdll.dll_NtClose]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.0f01b9b9
leave
ret
Function at 0xf015061
Capabilities:
Manipulate console buffer

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
cmp al, 4
jne 0xf0150e5
xor edi, edi
cmp dword [0xf06cb24], edi
jne 0xf0150e5
call dword [sym.imp.KERNEL32.dll_GetConsoleCP]
mov esi, 0x1b5
cmp eax, esi
je 0xf0150e5
lea eax, [ebp - 0x20]
push eax
push dword [0xf09c560]
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
mov word [ebp - 2], di
mov word [ebp - 4], di
push dword [ebp - 4]
push dword [0xf09c560]
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
movsx ecx, word [ebp - 0x20]
lea eax, [ebp - 8]
push eax
movsx eax, word [ebp - 0x1a]
push dword [ebp - 4]
imul eax, ecx
push eax
push 0x20
push dword [0xf09c560]
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleCP]
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
push 0xf09c580
push dword [0xf09c564]
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0xf002a08
mov edi, 0x3e9
jne 0xf015119
push 0xec
push ebx
call esi
push eax
push edi
call fcn.0f034a13
mov eax, dword [0xf09c580]
and eax, 0xfffffff8
cmp dword [0xf071748], 0
jne 0xf01512d
or eax, 0x18
push eax
push dword [0xf09c564]
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
test eax, eax
jne 0xf01514d
push 0xf9
push ebx
call esi
push eax
push edi
call fcn.0f034a13
push 0xf09c584
push dword [0xf09c560]
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
jne 0xf015171
push 0xfd
push ebx
call esi
push eax
push edi
call fcn.0f034a13
cmp dword [0xf07196c], 0
jne 0xf0151ab
cmp dword [0xf071748], 0
jne 0xf0151ab
mov eax, dword [0xf09c584]
and eax, 0xfffffffc
push eax
push dword [0xf09c560]
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
test eax, eax
jne 0xf0151ab
push 0x10c
push ebx
call esi
push eax
push edi
call fcn.0f034a13
push 0xf09bde0
push dword [0xf09c560]
call dword [sym.imp.KERNEL32.dll_GetConsoleCursorInfo]
test eax, eax
jne 0xf0151d4
mov dword [0xf09bde0], 0x14
mov dword [0xf09bde4], 1
push 0xf09c60c
push dword [0xf09c560]
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0xf0151f8
push 0x117
push ebx
call esi
push eax
push edi
call fcn.0f034a13
pop edi
pop esi
pop ebx
leave
ret
Function at 0xf016618
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0xf066be0]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push edi
xor ebx, ebx
xor edi, edi
cmp eax, ebx
jne 0xf016664
call esi
mov edi, eax
cmp edi, ebx
je 0xf01664a
mov dword [0xf066be0], 1
jmp 0xf016669
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0xf01665f
push 2
pop eax
mov dword [0xf066be0], eax
jmp 0xf016664
mov eax, dword [0xf066be0]
cmp eax, 1
jne 0xf0166e1
cmp edi, ebx
jne 0xf016675
call esi
mov edi, eax
cmp edi, ebx
je 0xf0166ea
cmp word [edi], bx
mov eax, edi
je 0xf01668a
inc eax
inc eax
cmp word [eax], bx
jne 0xf01667c
inc eax
inc eax
cmp word [eax], bx
jne 0xf01667c
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, edi
push ebx
sar eax, 1
inc eax
push eax
push edi
push ebx
push ebx
mov dword [ebp - 0xc], eax
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
je 0xf0166d8
push eax
call fcn.0f0070c9
cmp eax, ebx
pop ecx
mov dword [ebp - 4], eax
je 0xf0166d8
push ebx
push ebx
push dword [ebp - 8]
push eax
push dword [ebp - 0xc]
push edi
push ebx
push ebx
call esi
test eax, eax
jne 0xf0166d5
push dword [ebp - 4]
call fcn.0f0058e2
pop ecx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0xf016739
cmp eax, 2
je 0xf0166ee
cmp eax, ebx
je 0xf0166ee
xor eax, eax
jmp 0xf01673b
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 4], esi
je 0xf0166ea
cmp byte [esi], bl
je 0xf01670b
inc eax
cmp byte [eax], bl
jne 0xf016701
inc eax
cmp byte [eax], bl
jne 0xf016701
sub eax, esi
inc eax
mov edi, eax
push edi
call fcn.0f0070c9
cmp eax, ebx
pop ecx
je 0xf016732
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 4]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0xf019ce4
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0xf062038]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
xor eax, eax
inc eax
lea ecx, [ebp - 0x20]
push ecx
push eax
xor ebx, ebx
push ebx
push 0xf003ae0
push 0x80000002
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], 0xc
mov dword [ebp - 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xf019dcf
push edi
push 0x5c
push esi
call fcn.0f056f40
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
jne 0xf019d44
mov edi, esi
jmp 0xf019d45
inc edi
push 0x2e
push edi
call fcn.0f056ca0
cmp eax, ebx
pop ecx
pop ecx
jne 0xf019d61
push 9
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.0f01ccb0
jmp 0xf019d7b
sub eax, edi
cmp ax, 8
jg 0xf019dce
movsx esi, ax
push esi
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.0f01ccb0
mov byte [ebp + esi - 0x10], bl
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xf019dce
cmp dword [ebp - 0x2c], 1
jne 0xf019dce
lea eax, [ebp - 0x1c]
push eax
call fcn.0f0573cc
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1c]
push 0xf003ad8
push eax
call fcn.0f056ff5
add esp, 0x10
cmp eax, 1
jne 0xf019dce
test byte [ebp - 0x25], 8
je 0xf019dce
mov dword [ebp - 0x24], ebx
pop edi
cmp dword [ebp - 0x20], ebx
pop esi
pop ebx
je 0xf019ddf
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x24]
call fcn.0f01b9b9
leave
ret 4
Function at 0xf01a569
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
and dword [ebp - 8], 0
mov eax, dword [ebp + 8]
push esi
dec eax
test eax, eax
push edi
mov edi, dword [ebp + 0xc]
mov dword [0xf07afcc], 0xf064df0
mov dword [0xf07afd0], 0xf065284
mov dword [0xf07afc8], 0xf064ea4
jle 0xf01a645
push ebx
xor ebx, ebx
mov dword [ebp + 0xc], eax
inc ebx
add edi, 4
mov esi, dword [edi]
mov al, byte [esi]
cmp al, 0x2d
je 0xf01a5bd
cmp al, 0x2f
jne 0xf01a635
inc esi
mov al, byte [esi]
cmp al, 0x66
jne 0xf01a5c9
mov dword [ebp - 4], ebx
jmp 0xf01a635
movsx eax, al
push eax
call fcn.0f0133e2
cmp eax, 0x77
pop ecx
jne 0xf01a60c
mov dword [0xf06cb24], ebx
inc esi
movsx eax, byte [esi]
push eax
call fcn.0f0133e2
cmp eax, 0x73
pop ecx
jne 0xf01a5f4
mov dword [sym.ntvdm.exe_fSeparateWow], ebx
movsx eax, byte [esi + 1]
push eax
call fcn.0f0133e2
cmp eax, 0x6d
pop ecx
jne 0xf01a635
mov dword [0xf06cb2c], ebx
jmp 0xf01a635
mov al, byte [esi]
cmp al, 0x6f
jne 0xf01a61b
and dword [0xf064a70], 0
jmp 0xf01a635
inc esi
cmp al, 0x69
jne 0xf01a635
cmp byte [esi], 0
je 0xf01a635
push 0x10
push 0
push esi
call fcn.0f00b957
add esp, 0xc
mov dword [ebp - 8], eax
dec dword [ebp + 0xc]
jne 0xf01a5ae
cmp dword [ebp - 4], 0
pop ebx
jne 0xf01a64d
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 8]
mov eax, dword [0xf06cb24]
xor esi, esi
cmp ecx, esi
je 0xf01a675
cmp eax, esi
je 0xf01a66f
cmp dword [sym.ntvdm.exe_fSeparateWow], esi
jne 0xf01a66f
mov dword [0xf06cb34], ecx
jmp 0xf01a675
mov dword [0xf06cb30], ecx
cmp eax, esi
je 0xf01a68b
push 0x4e20
call sub.USER32.dll_ShowStartGlass
mov dword [0xf064a70], esi
jmp 0xf01a698
cmp dword [0xf064a70], esi
je 0xf01a698
call fcn.0f01fc63
push 2
push esi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0xf09c6e0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
call fcn.0f00dffa
call fcn.0f0041b6
call fcn.0f00b4d3
call fcn.0f00e04d
pop edi
pop esi
leave
ret 8
Function at 0xf01b6e4
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov edi, 0xf071990
jne 0xf01b6fc
mov edi, 0xf071994
mov eax, dword [edi]
test eax, eax
mov ebx, dword [ebp + 0xc]
jne 0xf01b784
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0xf01b721
mov al, byte [eax + ebx - 1]
cmp al, byte [0xf06522c]
je 0xf01b74c
mov eax, 0xf06522c
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0xf01b728
mov edi, ebx
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0xf01b734
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]
cmp dword [ebp + 8], 0
mov eax, str.config.nt
jne 0xf01b75c
mov eax, str.autoexec.nt
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0xf01b75e
sub eax, edx
dec ebx
mov edi, ebx
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0xf01b76a
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]
jmp 0xf01b7ad
mov esi, 0x110
push esi
push ebx
push eax
call fcn.0f00e340
test eax, eax
je 0xf01b799
cmp eax, esi
jbe 0xf01b79c
mov byte [ebx], 0
cmp dword [ebp + 0x10], 0
jne 0xf01b7ad
push dword [edi]
call fcn.0f0058e2
and dword [edi], 0
pop ecx
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0xf01b7b9
Capabilities:
Check processdebugport

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push 0
push 4
lea eax, [ebp - 4]
push eax
push 7
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
jl 0xf01b7e1
cmp dword [ebp - 4], 0
je 0xf01b7e1
call dword [sym.imp.KERNEL32.dll_DebugBreak]
leave
ret
Function at 0xf01bdc4
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0xf062038]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0xf0622c8]
je 0xf01bdee
inc eax
cmp eax, 0x12
jb 0xf01bddf
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0xf0622c8]
mov dword [ebp - 0x110], esi
jne 0xf01bf99
mov eax, dword [0xf066a74]
cmp eax, 1
je 0xf01bf67
test eax, eax
jne 0xf01be24
cmp dword [0xf062040], 1
je 0xf01bf67
cmp ecx, 0xfc
je 0xf01bf99
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
mov byte [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0xf01be5f
push 5
pop ecx
mov esi, 0xf0019cc
lea edi, [ebp - 0x10c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebx, [ebp - 0x10c]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0xf01be6a
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0xf01bea2
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0xf01be82
sub eax, edx
push 3
lea ebx, [ebp + eax - 0x147]
push 0xf0019c8
push ebx
call fcn.0f01ccb0
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0xf01bea7
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x110]
mov eax, dword [eax + 0xf0622cc]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0xf01bec1
sub eax, esi
lea eax, [eax + ecx + 0x1c]
add eax, 3
and eax, 0xfffffffc
call fcn.0f01c300
mov edx, esp
push 6
pop ecx
mov esi, 0xf0019ac
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov eax, ebx
movsw word es:[edi], word [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0xf01beed
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0xf01bef9
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0xf01bf12
mov eax, dword [ebp - 0x110]
mov esi, 0xf0019a8
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0xf0622cc]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0xf01bf30
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0xf01bf3c
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0xf001980
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.0f01cba1
add esp, 0xc
jmp 0xf01bf99
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0xf01bf99
mov esi, dword [esi + 0xf0622cc]
mov ecx, esi
lea edx, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0xf01bf7e
push 0
sub ecx, edx
lea edx, [ebp - 0x114]
push edx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x120]
mov ecx, dword [ebp - 4]
call fcn.0f01b9b9
pop edi
pop esi
pop ebx
leave
ret
Function at 0xf01c6fa
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0xf01c72b
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0xf01c732
cmp ebx, dword [ebp + 8]
jae 0xf01c732
xor eax, eax
jmp 0xf01c922
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0xf01c743
xor eax, eax
inc eax
jmp 0xf01c921
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0xf01c759
cmp ecx, edx
jae 0xf01c89e
cmp dword [eax + 4], 0
je 0xf01c762
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0xf01c74a
cmp dword [ebp + 8], 0
je 0xf01c784
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0xf01c89e
cmp eax, esi
jae 0xf01c89e
mov eax, dword [0xf066c10]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0xf01c7a9
cmp dword [esi*4 + 0xf066c18], edi
je 0xf01c8a2
inc esi
cmp esi, eax
jl 0xf01c797
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0xf01c91e
cmp dword [ebp - 8], 0x1000000
jne 0xf01c91e
test byte [ebp - 0xc], 0xcc
je 0xf01c827
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0xf01c91e
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0xf01c91e
cmp word [eax + 0x18], 0x10b
jne 0xf01c91e
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0xf01c91e
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0xf01c827
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0xf01c827
test byte [ecx + 0x27], 0x80
jne 0xf01c89e
push 1
push 0xf066c58
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0xf01c73b
mov ecx, dword [0xf066c10]
test ecx, ecx
mov edx, ecx
jle 0xf01c85b
lea eax, [ecx*4 + 0xf066c14]
cmp dword [eax], edi
je 0xf01c85b
dec edx
sub eax, 4
test edx, edx
jg 0xf01c84f
test edx, edx
jne 0xf01c88c
push 0xf
pop ebx
cmp ecx, ebx
jg 0xf01c868
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0xf01c880
lea eax, [edx*4 + 0xf066c18]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0xf01c86e
cmp ecx, 0x10
jge 0xf01c88c
inc ecx
mov dword [0xf066c10], ecx
push 0
push 0xf066c58
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0xf01c73b
xor eax, eax
jmp 0xf01c921
test esi, esi
jle 0xf01c73b
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0xf066c58
call ebx
test eax, eax
jne 0xf01c73b
cmp dword [esi*4 + 0xf066c18], edi
je 0xf01c8f8
mov eax, dword [0xf066c10]
lea esi, [eax - 1]
test esi, esi
jl 0xf01c8e6
cmp dword [esi*4 + 0xf066c18], edi
je 0xf01c8e2
dec esi
jns 0xf01c8d6
test esi, esi
jge 0xf01c8f6
cmp eax, 0x10
jge 0xf01c8f1
inc eax
mov dword [0xf066c10], eax
lea esi, [eax - 1]
jmp 0xf01c8f8
je 0xf01c910
xor ecx, ecx
test esi, esi
jl 0xf01c910
lea eax, [ecx*4 + 0xf066c18]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0xf01c8fe
push 0
push 0xf066c58
call ebx
jmp 0xf01c73b
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0xf01cba1
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0xf066c5c], ebx
push esi
push edi
jne 0xf01cc23
push 0xf001a48
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0xf01cc5e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0xf001a3c
push edi
call esi
test eax, eax
mov dword [0xf066c5c], eax
je 0xf01cc5e
push 0xf001a2c
push edi
call esi
push 0xf001a18
push edi
mov dword [0xf066c60], eax
call esi
cmp dword [0xf066a88], 2
mov dword [0xf066c64], eax
jne 0xf01cc23
push 0xf0019fc
push edi
call esi
test eax, eax
mov dword [0xf066c6c], eax
je 0xf01cc23
push 0xf0019e4
push edi
call esi
mov dword [0xf066c68], eax
mov eax, dword [0xf066c68]
test eax, eax
je 0xf01cc68
call eax
test eax, eax
je 0xf01cc4f
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0xf066c6c]
test eax, eax
je 0xf01cc4f
test byte [ebp - 8], 1
jne 0xf01cc68
cmp dword [0xf066a94], 4
jb 0xf01cc62
or byte [ebp + 0x12], 0x20
jmp 0xf01cc87
xor eax, eax
jmp 0xf01cc97
or byte [ebp + 0x12], 4
jmp 0xf01cc87
mov eax, dword [0xf066c60]
test eax, eax
je 0xf01cc87
call eax
mov ebx, eax
test ebx, ebx
je 0xf01cc87
mov eax, dword [0xf066c64]
test eax, eax
je 0xf01cc87
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0xf066c5c]
pop edi
pop esi
pop ebx
leave
ret