joyce8/EMBER2024-capa huggingface dataset:
Function at 0xf013987
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.0f006f83
test eax, eax
pop ecx
mov dword [0xf09bca0], eax
je 0xf013a18
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0xf013a18
cmp eax, esi
jae 0xf013a18
call fcn.0f0461f6
cmp dword [0xf06bb04], 0
je 0xf0139d4
xor eax, eax
inc eax
jmp 0xf013a1a
push edi
mov edi, dword [ebp + 8]
dec edi
test edi, edi
jle 0xf013a12
mov esi, dword [ebp + 0xc]
add esi, 4
mov eax, dword [esi]
mov cl, byte [eax]
cmp cl, 0x2d
je 0xf0139f1
cmp cl, 0x2f
jne 0xf013a01
movsx eax, byte [eax + 1]
push eax
call fcn.0f01321c
cmp eax, 0x64
pop ecx
je 0xf013a08
dec edi
test edi, edi
jg 0xf0139e0
jmp 0xf013a12
mov dword [0xf077290], 0x60000000
xor eax, eax
inc eax
pop edi
jmp 0xf013a1a
xor eax, eax
pop esi
pop ebp
ret 8

Function at 0xf013fab
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
call fcn.0f00cddd
call fcn.0f0114f8
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 [0xf077288]
mov word [esi + 6], ax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, eax
test edi, edi
je 0xf014050
jmp 0xf013ffa
movsx eax, al
push eax
call fcn.0f009fcf
test eax, eax
pop ecx
jne 0xf014000
inc edi
mov al, byte [edi]
test al, al
jne 0xf013feb
mov al, byte [edi]
cmp al, 0x22
jne 0xf014014
inc edi
mov al, byte [edi]
test al, al
je 0xf014028
inc edi
cmp al, 0x22
jne 0xf014007
jmp 0xf014028
movsx eax, al
jmp 0xf01401d
inc edi
movsx eax, byte [edi]
push eax
call fcn.0f009fcf
test eax, eax
pop ecx
jne 0xf014019
push 0xf003708
push edi
call fcn.0f0566a0
add eax, 4
mov edi, eax
mov al, byte [edi]
test al, al
pop ecx
pop ecx
je 0xf014050
cmp al, 0x20
jne 0xf01404b
inc edi
mov al, byte [edi]
test al, al
jne 0xf014040
cmp byte [edi], 0
jne 0xf014060
push 0
push 0
push 0x17
call fcn.0f03429c
call fcn.0f034856
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 0xf0140a1
movsx eax, byte [edi]
push eax
call fcn.0f009fcf
test eax, eax
pop ecx
je 0xf01409e
mov al, byte [edi]
cmp al, 0x5c
jne 0xf014095
lea ecx, [edi + 1]
mov dword [ebp - 8], ecx
mov byte [ebx], al
inc ebx
inc edi
dec dword [ebp - 4]
jne 0xf01407b
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 0xf0140cf
mov cl, byte [edx]
test cl, cl
je 0xf0140d2
mov byte [edi], cl
inc edi
inc edx
dec eax
jne 0xf0140c5
mov esi, 0xf001680
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [0xf09be90]
mov byte [eax], 1
mov ecx, dword [0xf09be20]
xor eax, eax
mov dword [0xf0773a8], eax
mov dword [0xf0650a4], eax
push eax
mov byte [ecx], 0xff
call sym.ntvdm.exe_setCF
pop edi
pop esi
leave
ret
Function at 0xf014d91
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 0xf014e8b
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 0xf014e71
lea eax, [ebp - 0x42c]
push eax
call fcn.0f01b252
test al, al
je 0xf014e7d
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 0xf014e4e
push dword [ebp - 0x430]
call dword [sym.imp.ntdll.dll_NtClose]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.0f01b45c
leave
ret
Function at 0xf0163d2
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0xf065bc0]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push edi
xor ebx, ebx
xor edi, edi
cmp eax, ebx
jne 0xf01641e
call esi
mov edi, eax
cmp edi, ebx
je 0xf016404
mov dword [0xf065bc0], 1
jmp 0xf016423
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0xf016419
push 2
pop eax
mov dword [0xf065bc0], eax
jmp 0xf01641e
mov eax, dword [0xf065bc0]
cmp eax, 1
jne 0xf01649b
cmp edi, ebx
jne 0xf01642f
call esi
mov edi, eax
cmp edi, ebx
je 0xf0164a4
cmp word [edi], bx
mov eax, edi
je 0xf016444
inc eax
inc eax
cmp word [eax], bx
jne 0xf016436
inc eax
inc eax
cmp word [eax], bx
jne 0xf016436
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 0xf016492
push eax
call fcn.0f006f83
cmp eax, ebx
pop ecx
mov dword [ebp - 4], eax
je 0xf016492
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 0xf01648f
push dword [ebp - 4]
call fcn.0f00579c
pop ecx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0xf0164f3
cmp eax, 2
je 0xf0164a8
cmp eax, ebx
je 0xf0164a8
xor eax, eax
jmp 0xf0164f5
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 4], esi
je 0xf0164a4
cmp byte [esi], bl
je 0xf0164c5
inc eax
cmp byte [eax], bl
jne 0xf0164bb
inc eax
cmp byte [eax], bl
jne 0xf0164bb
sub eax, esi
inc eax
mov edi, eax
push edi
call fcn.0f006f83
cmp eax, ebx
pop ecx
je 0xf0164ec
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 0xf0198c0
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 0xf003a18
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 0xf0199ab
push edi
push 0x5c
push esi
call fcn.0f056670
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
jne 0xf019920
mov edi, esi
jmp 0xf019921
inc edi
push 0x2e
push edi
call fcn.0f0563d0
cmp eax, ebx
pop ecx
pop ecx
jne 0xf01993d
push 9
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.0f01c750
jmp 0xf019957
sub eax, edi
cmp ax, 8
jg 0xf0199aa
movsx esi, ax
push esi
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.0f01c750
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 0xf0199aa
cmp dword [ebp - 0x2c], 1
jne 0xf0199aa
lea eax, [ebp - 0x1c]
push eax
call fcn.0f056afc
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1c]
push 0xf003a10
push eax
call fcn.0f056725
add esp, 0x10
cmp eax, 1
jne 0xf0199aa
test byte [ebp - 0x25], 8
je 0xf0199aa
mov dword [ebp - 0x24], ebx
pop edi
cmp dword [ebp - 0x20], ebx
pop esi
pop ebx
je 0xf0199bb
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x24]
call fcn.0f01b45c
leave
ret 4
Function at 0xf01a145
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 [0xf079ecc], 0xf063dd0
mov dword [0xf079ed0], 0xf064264
mov dword [0xf079ec8], 0xf063e84
jle 0xf01a221
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 0xf01a199
cmp al, 0x2f
jne 0xf01a211
inc esi
mov al, byte [esi]
cmp al, 0x66
jne 0xf01a1a5
mov dword [ebp - 4], ebx
jmp 0xf01a211
movsx eax, al
push eax
call fcn.0f01321c
cmp eax, 0x77
pop ecx
jne 0xf01a1e8
mov dword [0xf06bb04], ebx
inc esi
movsx eax, byte [esi]
push eax
call fcn.0f01321c
cmp eax, 0x73
pop ecx
jne 0xf01a1d0
mov dword [sym.ntvdm.exe_fSeparateWow], ebx
movsx eax, byte [esi + 1]
push eax
call fcn.0f01321c
cmp eax, 0x6d
pop ecx
jne 0xf01a211
mov dword [0xf06bb0c], ebx
jmp 0xf01a211
mov al, byte [esi]
cmp al, 0x6f
jne 0xf01a1f7
and dword [0xf063a68], 0
jmp 0xf01a211
inc esi
cmp al, 0x69
jne 0xf01a211
cmp byte [esi], 0
je 0xf01a211
push 0x10
push 0
push esi
call fcn.0f00b792
add esp, 0xc
mov dword [ebp - 8], eax
dec dword [ebp + 0xc]
jne 0xf01a18a
cmp dword [ebp - 4], 0
pop ebx
jne 0xf01a229
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 8]
mov eax, dword [0xf06bb04]
xor esi, esi
cmp ecx, esi
je 0xf01a251
cmp eax, esi
je 0xf01a24b
cmp dword [sym.ntvdm.exe_fSeparateWow], esi
jne 0xf01a24b
mov dword [0xf06bb14], ecx
jmp 0xf01a251
mov dword [0xf06bb10], ecx
cmp eax, esi
je 0xf01a267
push 0x4e20
call sub.USER32.dll_ShowStartGlass
mov dword [0xf063a68], esi
jmp 0xf01a274
cmp dword [0xf063a68], esi
je 0xf01a274
call fcn.0f01f703
push 2
push esi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0xf09b5e0
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.0f00de58
call fcn.0f0040f6
call fcn.0f00b30e
call fcn.0f00deab
pop edi
pop esi
leave
ret 8
Function at 0xf01b223
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 0xf01b24b
cmp dword [ebp - 4], 0
je 0xf01b24b
call dword [sym.imp.KERNEL32.dll_DebugBreak]
leave
ret
Function at 0xf01b868
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 0xf01b892
inc eax
cmp eax, 0x12
jb 0xf01b883
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0xf0612c8]
mov dword [ebp - 0x110], esi
jne 0xf01ba3d
mov eax, dword [0xf065a54]
cmp eax, 1
je 0xf01ba0b
test eax, eax
jne 0xf01b8c8
cmp dword [0xf061040], 1
je 0xf01ba0b
cmp ecx, 0xfc
je 0xf01ba3d
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 0xf01b903
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 0xf01b90e
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0xf01b946
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0xf01b926
sub eax, edx
push 3
lea ebx, [ebp + eax - 0x147]
push 0xf0019b8
push ebx
call fcn.0f01c750
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0xf01b94b
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 0xf01b965
sub eax, esi
lea eax, [eax + ecx + 0x1c]
add eax, 3
and eax, 0xfffffffc
call fcn.0f01bda0
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 0xf01b991
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0xf01b99d
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 0xf01b9b6
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 0xf01b9d4
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0xf01b9e0
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.0f01c641
add esp, 0xc
jmp 0xf01ba3d
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0xf01ba3d
mov esi, dword [esi + 0xf0612cc]
mov ecx, esi
lea edx, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0xf01ba22
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.0f01b45c
pop edi
pop esi
pop ebx
leave
ret
Function at 0xf01c19a
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 0xf01c1cb
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 0xf01c1d2
cmp ebx, dword [ebp + 8]
jae 0xf01c1d2
xor eax, eax
jmp 0xf01c3c2
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0xf01c1e3
xor eax, eax
inc eax
jmp 0xf01c3c1
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0xf01c1f9
cmp ecx, edx
jae 0xf01c33e
cmp dword [eax + 4], 0
je 0xf01c202
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0xf01c1ea
cmp dword [ebp + 8], 0
je 0xf01c224
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0xf01c33e
cmp eax, esi
jae 0xf01c33e
mov eax, dword [0xf065bf0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0xf01c249
cmp dword [esi*4 + 0xf065bf8], edi
je 0xf01c342
inc esi
cmp esi, eax
jl 0xf01c237
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0xf01c3be
cmp dword [ebp - 8], 0x1000000
jne 0xf01c3be
test byte [ebp - 0xc], 0xcc
je 0xf01c2c7
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0xf01c3be
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0xf01c3be
cmp word [eax + 0x18], 0x10b
jne 0xf01c3be
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0xf01c3be
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0xf01c2c7
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0xf01c2c7
test byte [ecx + 0x27], 0x80
jne 0xf01c33e
push 1
push 0xf065c38
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0xf01c1db
mov ecx, dword [0xf065bf0]
test ecx, ecx
mov edx, ecx
jle 0xf01c2fb
lea eax, [ecx*4 + 0xf065bf4]
cmp dword [eax], edi
je 0xf01c2fb
dec edx
sub eax, 4
test edx, edx
jg 0xf01c2ef
test edx, edx
jne 0xf01c32c
push 0xf
pop ebx
cmp ecx, ebx
jg 0xf01c308
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0xf01c320
lea eax, [edx*4 + 0xf065bf8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0xf01c30e
cmp ecx, 0x10
jge 0xf01c32c
inc ecx
mov dword [0xf065bf0], ecx
push 0
push 0xf065c38
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0xf01c1db
xor eax, eax
jmp 0xf01c3c1
test esi, esi
jle 0xf01c1db
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0xf065c38
call ebx
test eax, eax
jne 0xf01c1db
cmp dword [esi*4 + 0xf065bf8], edi
je 0xf01c398
mov eax, dword [0xf065bf0]
lea esi, [eax - 1]
test esi, esi
jl 0xf01c386
cmp dword [esi*4 + 0xf065bf8], edi
je 0xf01c382
dec esi
jns 0xf01c376
test esi, esi
jge 0xf01c396
cmp eax, 0x10
jge 0xf01c391
inc eax
mov dword [0xf065bf0], eax
lea esi, [eax - 1]
jmp 0xf01c398
je 0xf01c3b0
xor ecx, ecx
test esi, esi
jl 0xf01c3b0
lea eax, [ecx*4 + 0xf065bf8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0xf01c39e
push 0
push 0xf065c38
call ebx
jmp 0xf01c1db
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0xf01c641
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 [0xf065c3c], ebx
push esi
push edi
jne 0xf01c6c3
push 0xf001a38
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0xf01c6fe
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0xf001a2c
push edi
call esi
test eax, eax
mov dword [0xf065c3c], eax
je 0xf01c6fe
push 0xf001a1c
push edi
call esi
push 0xf001a08
push edi
mov dword [0xf065c40], eax
call esi
cmp dword [0xf065a68], 2
mov dword [0xf065c44], eax
jne 0xf01c6c3
push 0xf0019ec
push edi
call esi
test eax, eax
mov dword [0xf065c4c], eax
je 0xf01c6c3
push 0xf0019d4
push edi
call esi
mov dword [0xf065c48], eax
mov eax, dword [0xf065c48]
test eax, eax
je 0xf01c708
call eax
test eax, eax
je 0xf01c6ef
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0xf065c4c]
test eax, eax
je 0xf01c6ef
test byte [ebp - 8], 1
jne 0xf01c708
cmp dword [0xf065a74], 4
jb 0xf01c702
or byte [ebp + 0x12], 0x20
jmp 0xf01c727
xor eax, eax
jmp 0xf01c737
or byte [ebp + 0x12], 4
jmp 0xf01c727
mov eax, dword [0xf065c40]
test eax, eax
je 0xf01c727
call eax
mov ebx, eax
test ebx, ebx
je 0xf01c727
mov eax, dword [0xf065c44]
test eax, eax
je 0xf01c727
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0xf065c3c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0xf01d1f0
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 [0xf078c64]
push edi
jae 0xf01d3c9
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0xf078c80]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0xf01d3c9
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0xf01d29d
test dl, 2
jne 0xf01d29d
test dl, 0x48
je 0xf01d267
cmp byte [eax + 5], 0xa
je 0xf01d267
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 0xf01d2b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0xf01d298
mov dword [0xf065a60], ecx
jmp 0xf01d3d0
cmp eax, 0x6d
jne 0xf01d2a4
xor eax, eax
jmp 0xf01d3dd
push eax
call fcn.0f01dc2c
pop ecx
jmp 0xf01d3da
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0xf01d3c4
test eax, eax
je 0xf01d2d7
cmp byte [ebx], 0xa
jne 0xf01d2d7
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0xf01d2e0
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 0xf01d3be
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0xf01d3ae
cmp al, 0xd
je 0xf01d312
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0xf01d3a0
dec ecx
cmp dword [ebp - 8], ecx
jae 0xf01d32c
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0xf01d327
add dword [ebp - 8], 2
jmp 0xf01d380
mov dword [ebp - 8], eax
jmp 0xf01d39c
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 0xf01d354
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0xf01d39c
cmp dword [ebp - 0x10], 0
je 0xf01d39c
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0xf01d375
mov al, byte [ebp - 1]
cmp al, 0xa
je 0xf01d380
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0xf01d39f
cmp ebx, dword [ebp + 0xc]
jne 0xf01d385
cmp byte [ebp - 1], 0xa
jne 0xf01d385
mov byte [ebx], 0xa
jmp 0xf01d39f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0f01db86
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0xf01d3a0
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0xf01d2f6
jmp 0xf01d3be
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0xf01d3be
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 0xf01d3dd
and dword [0xf065a60], 0
mov dword [0xf065a5c], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret