joyce8/EMBER2024-capa huggingface dataset:
Function at 0xf012997
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1f4
mov eax, dword [0xf061038]
push ebx
push esi
push edi
mov esi, 0xf0024fc
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov dword [ebp - 4], eax
mov al, byte [ebp + 8]
add byte [ebp - 8], al
movzx edi, al
mov esi, edi
imul esi, esi, 0x12c
add esi, 0xf09b0e0
or dword [esi], 0xffffffff
lea eax, [ebp - 0xc]
lea ecx, [esi + 0x25]
mov edx, eax
sub ecx, edx
xor ebx, ebx
mov dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
cmp dl, bl
jne 0xf0129df
push dword [ebp + 8]
mov word [esi + 4], bx
call fcn.0f012585
cmp eax, ebx
mov dword [esi], eax
je 0xf012ada
push 0x11
push 4
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
jge 0xf012a21
push esi
call fcn.0f01262a
jmp 0xf012ada
mov eax, dword [ebp - 0xc]
cmp eax, dword [0xf070874]
mov dword [esi + 0x1c], eax
jbe 0xf012a34
mov dword [0xf070874], eax
push 0x1e0
lea eax, [ebp - 0x1f4]
push eax
push ebx
push ebx
push 0x70c00
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push dword [esi]
call dword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
test eax, eax
push esi
jl 0xf012a17
call fcn.0f01262a
mov eax, dword [ebp - 0x10]
push 0x18
xor edx, edx
pop ecx
div ecx
cmp eax, ebx
je 0xf012ad4
lea edx, [eax + eax*2]
lea edx, [ebp + edx*8 - 0x204]
mov ecx, dword [edx]
dec ecx
je 0xf012ac8
dec ecx
je 0xf012ab9
dec ecx
je 0xf012ab1
dec ecx
dec ecx
je 0xf012a99
dec ecx
jne 0xf012ace
cmp word [esi + 4], 2
je 0xf012ace
mov word [esi + 4], 1
jmp 0xf012ace
mov cx, word [esi + 4]
cmp cx, 4
je 0xf012ace
cmp cx, 5
je 0xf012ace
mov word [esi + 4], 3
jmp 0xf012ace
mov word [esi + 4], 5
jmp 0xf012ace
cmp word [esi + 4], 5
je 0xf012ace
mov word [esi + 4], 4
jmp 0xf012ace
mov word [esi + 4], 2
sub edx, 0x18
dec eax
jne 0xf012a78
cmp word [esi + 4], bx
jne 0xf012ade
xor eax, eax
jmp 0xf012b41
mov eax, edi
imul eax, eax, 0x1c
mov dword [eax + 0xf09a8c0], 0xf00cf5b
mov dword [eax + 0xf09a8c4], 0xf039b00
mov dword [eax + 0xf09a8c8], 0xf039b34
mov dword [eax + 0xf09a8cc], 0xf018480
mov dword [eax + 0xf09a8d0], 0xf012b55
mov dword [eax + 0xf09a8d4], 0xf00dd3a
mov dword [eax + 0xf09a8d8], 0xf039d1d
xor eax, eax
mov byte [esi + 0x22], bl
mov byte [esi + 0x21], bl
mov byte [esi + 0x23], 1
mov byte [esi + 0x24], 2
mov byte [esi + 0xd], bl
mov word [esi + 0xe], bx
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0f01b780
leave
ret 4
Function at 0xf013a96
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.0f007089
test eax, eax
pop ecx
mov dword [0xf09bd60], eax
je 0xf013b27
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0xf013b27
cmp eax, esi
jae 0xf013b27
call fcn.0f046746
cmp dword [0xf06bb24], 0
je 0xf013ae3
xor eax, eax
inc eax
jmp 0xf013b29
push edi
mov edi, dword [ebp + 8]
dec edi
test edi, edi
jle 0xf013b21
mov esi, dword [ebp + 0xc]
add esi, 4
mov eax, dword [esi]
mov cl, byte [eax]
cmp cl, 0x2d
je 0xf013b00
cmp cl, 0x2f
jne 0xf013b10
movsx eax, byte [eax + 1]
push eax
call fcn.0f01332b
cmp eax, 0x64
pop ecx
je 0xf013b17
dec edi
test edi, edi
jg 0xf013aef
jmp 0xf013b21
mov dword [0xf077340], 0x60000000
xor eax, eax
inc eax
pop edi
jmp 0xf013b29
xor eax, eax
pop esi
pop ebp
ret 8

Function at 0xf0140ba
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
call fcn.0f00ced6
call fcn.0f011607
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 [0xf077338]
mov word [esi + 6], ax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, eax
test edi, edi
je 0xf01415f
jmp 0xf014109
movsx eax, al
push eax
call fcn.0f00a0d5
test eax, eax
pop ecx
jne 0xf01410f
inc edi
mov al, byte [edi]
test al, al
jne 0xf0140fa
mov al, byte [edi]
cmp al, 0x22
jne 0xf014123
inc edi
mov al, byte [edi]
test al, al
je 0xf014137
inc edi
cmp al, 0x22
jne 0xf014116
jmp 0xf014137
movsx eax, al
jmp 0xf01412c
inc edi
movsx eax, byte [edi]
push eax
call fcn.0f00a0d5
test eax, eax
pop ecx
jne 0xf014128
push 0xf00379c
push edi
call fcn.0f056c70
add eax, 4
mov edi, eax
mov al, byte [edi]
test al, al
pop ecx
pop ecx
je 0xf01415f
cmp al, 0x20
jne 0xf01415a
inc edi
mov al, byte [edi]
test al, al
jne 0xf01414f
cmp byte [edi], 0
jne 0xf01416f
push 0
push 0
push 0x17
call fcn.0f03464d
call fcn.0f034c11
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 0xf0141b0
movsx eax, byte [edi]
push eax
call fcn.0f00a0d5
test eax, eax
pop ecx
je 0xf0141ad
mov al, byte [edi]
cmp al, 0x5c
jne 0xf0141a4
lea ecx, [edi + 1]
mov dword [ebp - 8], ecx
mov byte [ebx], al
inc ebx
inc edi
dec dword [ebp - 4]
jne 0xf01418a
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 0xf0141de
mov cl, byte [edx]
test cl, cl
je 0xf0141e1
mov byte [edi], cl
inc edi
inc edx
dec eax
jne 0xf0141d4
mov esi, 0xf001680
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [0xf09bf50]
mov byte [eax], 1
mov ecx, dword [0xf09bee0]
xor eax, eax
mov dword [0xf077460], eax
mov dword [0xf0650bc], eax
push eax
mov byte [ecx], 0xff
call sym.ntvdm.exe_setCF
pop edi
pop esi
leave
ret
Function at 0xf014ea0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x454
mov eax, dword [0xf061038]
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 0xf0015b0
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 0xf014f9a
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 0xf014f80
lea eax, [ebp - 0x42c]
push eax
call fcn.0f01b5af
test al, al
je 0xf014f8c
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 0xf014f5d
push dword [ebp - 0x430]
call dword [sym.imp.ntdll.dll_NtClose]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.0f01b780
leave
ret
Function at 0xf0164e1
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0xf065be0]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push edi
xor ebx, ebx
xor edi, edi
cmp eax, ebx
jne 0xf01652d
call esi
mov edi, eax
cmp edi, ebx
je 0xf016513
mov dword [0xf065be0], 1
jmp 0xf016532
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0xf016528
push 2
pop eax
mov dword [0xf065be0], eax
jmp 0xf01652d
mov eax, dword [0xf065be0]
cmp eax, 1
jne 0xf0165aa
cmp edi, ebx
jne 0xf01653e
call esi
mov edi, eax
cmp edi, ebx
je 0xf0165b3
cmp word [edi], bx
mov eax, edi
je 0xf016553
inc eax
inc eax
cmp word [eax], bx
jne 0xf016545
inc eax
inc eax
cmp word [eax], bx
jne 0xf016545
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 0xf0165a1
push eax
call fcn.0f007089
cmp eax, ebx
pop ecx
mov dword [ebp - 4], eax
je 0xf0165a1
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 0xf01659e
push dword [ebp - 4]
call fcn.0f0058a2
pop ecx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0xf016602
cmp eax, 2
je 0xf0165b7
cmp eax, ebx
je 0xf0165b7
xor eax, eax
jmp 0xf016604
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 4], esi
je 0xf0165b3
cmp byte [esi], bl
je 0xf0165d4
inc eax
cmp byte [eax], bl
jne 0xf0165ca
inc eax
cmp byte [eax], bl
jne 0xf0165ca
sub eax, esi
inc eax
mov edi, eax
push edi
call fcn.0f007089
cmp eax, ebx
pop ecx
je 0xf0165fb
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 0xf019b80
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0xf061038]
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 0xf003aac
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 0xf019c6b
push edi
push 0x5c
push esi
call fcn.0f056c40
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
jne 0xf019be0
mov edi, esi
jmp 0xf019be1
inc edi
push 0x2e
push edi
call fcn.0f0569a0
cmp eax, ebx
pop ecx
pop ecx
jne 0xf019bfd
push 9
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.0f01ca80
jmp 0xf019c17
sub eax, edi
cmp ax, 8
jg 0xf019c6a
movsx esi, ax
push esi
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.0f01ca80
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 0xf019c6a
cmp dword [ebp - 0x2c], 1
jne 0xf019c6a
lea eax, [ebp - 0x1c]
push eax
call fcn.0f0570cc
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1c]
push 0xf003aa4
push eax
call fcn.0f056cf5
add esp, 0x10
cmp eax, 1
jne 0xf019c6a
test byte [ebp - 0x25], 8
je 0xf019c6a
mov dword [ebp - 0x24], ebx
pop edi
cmp dword [ebp - 0x20], ebx
pop esi
pop ebx
je 0xf019c7b
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x24]
call fcn.0f01b780
leave
ret 4
Function at 0xf01a405
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 [0xf079f8c], 0xf063de8
mov dword [0xf079f90], 0xf06427c
mov dword [0xf079f88], 0xf063e9c
jle 0xf01a4e1
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 0xf01a459
cmp al, 0x2f
jne 0xf01a4d1
inc esi
mov al, byte [esi]
cmp al, 0x66
jne 0xf01a465
mov dword [ebp - 4], ebx
jmp 0xf01a4d1
movsx eax, al
push eax
call fcn.0f01332b
cmp eax, 0x77
pop ecx
jne 0xf01a4a8
mov dword [0xf06bb24], ebx
inc esi
movsx eax, byte [esi]
push eax
call fcn.0f01332b
cmp eax, 0x73
pop ecx
jne 0xf01a490
mov dword [sym.ntvdm.exe_fSeparateWow], ebx
movsx eax, byte [esi + 1]
push eax
call fcn.0f01332b
cmp eax, 0x6d
pop ecx
jne 0xf01a4d1
mov dword [0xf06bb2c], ebx
jmp 0xf01a4d1
mov al, byte [esi]
cmp al, 0x6f
jne 0xf01a4b7
and dword [0xf063a68], 0
jmp 0xf01a4d1
inc esi
cmp al, 0x69
jne 0xf01a4d1
cmp byte [esi], 0
je 0xf01a4d1
push 0x10
push 0
push esi
call fcn.0f00b8af
add esp, 0xc
mov dword [ebp - 8], eax
dec dword [ebp + 0xc]
jne 0xf01a44a
cmp dword [ebp - 4], 0
pop ebx
jne 0xf01a4e9
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 8]
mov eax, dword [0xf06bb24]
xor esi, esi
cmp ecx, esi
je 0xf01a511
cmp eax, esi
je 0xf01a50b
cmp dword [sym.ntvdm.exe_fSeparateWow], esi
jne 0xf01a50b
mov dword [0xf06bb34], ecx
jmp 0xf01a511
mov dword [0xf06bb30], ecx
cmp eax, esi
je 0xf01a527
push 0x4e20
call sub.USER32.dll_ShowStartGlass
mov dword [0xf063a68], esi
jmp 0xf01a534
cmp dword [0xf063a68], esi
je 0xf01a534
call fcn.0f01fa33
push 2
push esi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0xf09b6a0
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.0f00df51
call fcn.0f004176
call fcn.0f00b42b
call fcn.0f00dfa4
pop edi
pop esi
leave
ret 8
Function at 0xf01b580
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 0xf01b5a8
cmp dword [ebp - 4], 0
je 0xf01b5a8
call dword [sym.imp.KERNEL32.dll_DebugBreak]
leave
ret
Function at 0xf01bb8c
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0xf061038]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0xf0612c8]
je 0xf01bbb6
inc eax
cmp eax, 0x12
jb 0xf01bba7
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0xf0612c8]
mov dword [ebp - 0x110], esi
jne 0xf01bd61
mov eax, dword [0xf065a74]
cmp eax, 1
je 0xf01bd2f
test eax, eax
jne 0xf01bbec
cmp dword [0xf061040], 1
je 0xf01bd2f
cmp ecx, 0xfc
je 0xf01bd61
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 0xf01bc27
push 5
pop ecx
mov esi, 0xf0019bc
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 0xf01bc32
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0xf01bc6a
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0xf01bc4a
sub eax, edx
push 3
lea ebx, [ebp + eax - 0x147]
push 0xf0019b8
push ebx
call fcn.0f01ca80
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0xf01bc6f
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x110]
mov eax, dword [eax + 0xf0612cc]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0xf01bc89
sub eax, esi
lea eax, [eax + ecx + 0x1c]
add eax, 3
and eax, 0xfffffffc
call fcn.0f01c0d0
mov edx, esp
push 6
pop ecx
mov esi, 0xf00199c
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 0xf01bcb5
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0xf01bcc1
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 0xf01bcda
mov eax, dword [ebp - 0x110]
mov esi, 0xf001998
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0xf0612cc]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0xf01bcf8
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0xf01bd04
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0xf001970
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.0f01c971
add esp, 0xc
jmp 0xf01bd61
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0xf01bd61
mov esi, dword [esi + 0xf0612cc]
mov ecx, esi
lea edx, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0xf01bd46
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.0f01b780
pop edi
pop esi
pop ebx
leave
ret
Function at 0xf01c4ca
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 0xf01c4fb
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 0xf01c502
cmp ebx, dword [ebp + 8]
jae 0xf01c502
xor eax, eax
jmp 0xf01c6f2
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0xf01c513
xor eax, eax
inc eax
jmp 0xf01c6f1
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0xf01c529
cmp ecx, edx
jae 0xf01c66e
cmp dword [eax + 4], 0
je 0xf01c532
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0xf01c51a
cmp dword [ebp + 8], 0
je 0xf01c554
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0xf01c66e
cmp eax, esi
jae 0xf01c66e
mov eax, dword [0xf065c10]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0xf01c579
cmp dword [esi*4 + 0xf065c18], edi
je 0xf01c672
inc esi
cmp esi, eax
jl 0xf01c567
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0xf01c6ee
cmp dword [ebp - 8], 0x1000000
jne 0xf01c6ee
test byte [ebp - 0xc], 0xcc
je 0xf01c5f7
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0xf01c6ee
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0xf01c6ee
cmp word [eax + 0x18], 0x10b
jne 0xf01c6ee
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0xf01c6ee
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0xf01c5f7
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0xf01c5f7
test byte [ecx + 0x27], 0x80
jne 0xf01c66e
push 1
push 0xf065c58
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0xf01c50b
mov ecx, dword [0xf065c10]
test ecx, ecx
mov edx, ecx
jle 0xf01c62b
lea eax, [ecx*4 + 0xf065c14]
cmp dword [eax], edi
je 0xf01c62b
dec edx
sub eax, 4
test edx, edx
jg 0xf01c61f
test edx, edx
jne 0xf01c65c
push 0xf
pop ebx
cmp ecx, ebx
jg 0xf01c638
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0xf01c650
lea eax, [edx*4 + 0xf065c18]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0xf01c63e
cmp ecx, 0x10
jge 0xf01c65c
inc ecx
mov dword [0xf065c10], ecx
push 0
push 0xf065c58
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0xf01c50b
xor eax, eax
jmp 0xf01c6f1
test esi, esi
jle 0xf01c50b
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0xf065c58
call ebx
test eax, eax
jne 0xf01c50b
cmp dword [esi*4 + 0xf065c18], edi
je 0xf01c6c8
mov eax, dword [0xf065c10]
lea esi, [eax - 1]
test esi, esi
jl 0xf01c6b6
cmp dword [esi*4 + 0xf065c18], edi
je 0xf01c6b2
dec esi
jns 0xf01c6a6
test esi, esi
jge 0xf01c6c6
cmp eax, 0x10
jge 0xf01c6c1
inc eax
mov dword [0xf065c10], eax
lea esi, [eax - 1]
jmp 0xf01c6c8
je 0xf01c6e0
xor ecx, ecx
test esi, esi
jl 0xf01c6e0
lea eax, [ecx*4 + 0xf065c18]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0xf01c6ce
push 0
push 0xf065c58
call ebx
jmp 0xf01c50b
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0xf01c971
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 [0xf065c5c], ebx
push esi
push edi
jne 0xf01c9f3
push 0xf001a38
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0xf01ca2e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0xf001a2c
push edi
call esi
test eax, eax
mov dword [0xf065c5c], eax
je 0xf01ca2e
push 0xf001a1c
push edi
call esi
push 0xf001a08
push edi
mov dword [0xf065c60], eax
call esi
cmp dword [0xf065a88], 2
mov dword [0xf065c64], eax
jne 0xf01c9f3
push 0xf0019ec
push edi
call esi
test eax, eax
mov dword [0xf065c6c], eax
je 0xf01c9f3
push 0xf0019d4
push edi
call esi
mov dword [0xf065c68], eax
mov eax, dword [0xf065c68]
test eax, eax
je 0xf01ca38
call eax
test eax, eax
je 0xf01ca1f
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0xf065c6c]
test eax, eax
je 0xf01ca1f
test byte [ebp - 8], 1
jne 0xf01ca38
cmp dword [0xf065a94], 4
jb 0xf01ca32
or byte [ebp + 0x12], 0x20
jmp 0xf01ca57
xor eax, eax
jmp 0xf01ca67
or byte [ebp + 0x12], 4
jmp 0xf01ca57
mov eax, dword [0xf065c60]
test eax, eax
je 0xf01ca57
call eax
mov ebx, eax
test ebx, ebx
je 0xf01ca57
mov eax, dword [0xf065c64]
test eax, eax
je 0xf01ca57
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0xf065c5c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0xf01d520
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 [0xf078d24]
push edi
jae 0xf01d6f9
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0xf078d40]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0xf01d6f9
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0xf01d5cd
test dl, 2
jne 0xf01d5cd
test dl, 0x48
je 0xf01d597
cmp byte [eax + 5], 0xa
je 0xf01d597
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 0xf01d5e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0xf01d5c8
mov dword [0xf065a80], ecx
jmp 0xf01d700
cmp eax, 0x6d
jne 0xf01d5d4
xor eax, eax
jmp 0xf01d70d
push eax
call fcn.0f01df5c
pop ecx
jmp 0xf01d70a
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0xf01d6f4
test eax, eax
je 0xf01d607
cmp byte [ebx], 0xa
jne 0xf01d607
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0xf01d610
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 0xf01d6ee
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0xf01d6de
cmp al, 0xd
je 0xf01d642
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0xf01d6d0
dec ecx
cmp dword [ebp - 8], ecx
jae 0xf01d65c
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0xf01d657
add dword [ebp - 8], 2
jmp 0xf01d6b0
mov dword [ebp - 8], eax
jmp 0xf01d6cc
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 0xf01d684
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0xf01d6cc
cmp dword [ebp - 0x10], 0
je 0xf01d6cc
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0xf01d6a5
mov al, byte [ebp - 1]
cmp al, 0xa
je 0xf01d6b0
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0xf01d6cf
cmp ebx, dword [ebp + 0xc]
jne 0xf01d6b5
cmp byte [ebp - 1], 0xa
jne 0xf01d6b5
mov byte [ebx], 0xa
jmp 0xf01d6cf
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0f01deb6
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0xf01d6d0
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0xf01d626
jmp 0xf01d6ee
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0xf01d6ee
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 0xf01d70d
and dword [0xf065a80], 0
mov dword [0xf065a7c], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret