joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10049880
Capabilities:
Terminate process

Disassembly:
push 0x24
mov eax, 0x100d1e50
call fcn.10022a2c
mov edi, dword [ebp + 8]
push 0
call fcn.10022a65
and dword [ebp - 4], 0
mov bl, byte [ebp + 0xc]
mov byte [ebp - 4], 1
test bl, bl
je 0x100498c0
test byte [0x1013be64], 4
je 0x100498c0
push 0x666
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [0x1013be68]
test ecx, ecx
je 0x100498d0
push edi
call fcn.10049943
test bl, bl
je 0x10049927
mov eax, dword [edi]
mov ecx, SysReAllocStringLen
and eax, ecx
cmp eax, ecx
jne 0x10049927
mov eax, dword [0x1013be64]
test al, 1
jne 0x100498fe
test al, 2
je 0x10049927
mov esi, dword [0x1013be84]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, esi
jne 0x10049927
xor eax, eax
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], al
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.100553ee
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.1003d652
or dword [ebp - 4], 0xffffffff
call fcn.10025472
call fcn.10024778
ret 8

Function at 0x1004a8b8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x414
mov eax, 0x100d208c
call fcn.10022400
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x410]
mov dword [ebp - 0x420], eax
xor eax, eax
xor ebx, ebx
lea edi, [ebp - 0x410]
mov dword [ebp - 0x41c], 0x200
mov byte [ebp - 0x418], bl
mov dword [ebp - 0x414], ebx
mov word [ebp - 0x410], ax
stosd dword es:[edi], eax
mov word [ebp - 0x40c], ax
lea eax, [ebp - 0x420]
push eax
push ecx
mov dword [ebp - 4], ebx
call fcn.1004a509
lea eax, [ebp - 0x420]
push eax
call fcn.1003b2a8
cmp eax, 0x104
jbe 0x1004a94a
mov eax, dword [ebp - 0x420]
xor ecx, ecx
mov word [eax + 0x208], cx
mov eax, dword [ebp - 0x420]
mov dword [eax - 4], 0x208
mov byte [ebp - 0x418], bl
push dword [ebp - 0x420]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
lea eax, [ebp - 0x420]
push eax
mov ecx, eax
setne bl
call fcn.10027c49
mov al, bl
call fcn.10022631
ret 4
Function at 0x1004ba72
Capabilities:
Create thread

Disassembly:
push 0x14
mov eax, 0x100d1fd0
call fcn.10022400
mov esi, ecx
xor edi, edi
cmp dword [esi], 0xffffffff
je 0x1004bab0
push 0x80004005
push 0x2e68367a
lea eax, [ebp - 0x20]
push eax
call fcn.1003ee25
mov ecx, eax
mov dword [ebp - 4], edi
call fcn.1003dcb5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.1003d652
mov eax, dword [ebp + 8]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0xc], eax
lea eax, [ebp - 0x14]
push eax
push edi
push esi
push 0x1004bb08
push edi
push edi
call dword [sym.imp.MSVCR100.dll__beginthreadex]
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x1004bae1
or dword [esi], 0xffffffff
call fcn.10022631
ret 0xc

Function at 0x1004bc44
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x100d231e
call fcn.10022222
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
push 0x14
mov dword [ebp - 4], ebx
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x1004bc88
push dword [ebp + 0x18]
mov ecx, eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call fcn.10053e58
mov edi, eax
jmp 0x1004bc8a
mov edi, ebx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.10054146
push esi
mov dword [ebp - 0x10], edi
mov dword [ebp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [esi + 0x18]
cmp dword [esi + 0x18], 1
mov byte [ebp - 4], 2
jne 0x1004bcbc
cmp dword [esi + 0x1c], ebx
jne 0x1004bcbc
mov ecx, dword [esi + 0x24]
call fcn.100289bb
push esi
mov byte [ebp - 4], bl
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
push ebx
push 0x1004be00
mov dword [ebp - 0x10], ebx
call dword [sym.imp.MSVCR100.dll__beginthread]
add esp, 0xc
cmp eax, 0xffffffff
jne 0x1004bce8
push 0x2e6b6831
call fcn.1003d82e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.10054146
call fcn.10022255
ret 0x14
Function at 0x1004bcfc
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x100d237a
call fcn.10022222
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
push 0x14
mov dword [ebp - 4], ebx
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x1004bd3d
push dword [ebp + 0x14]
mov ecx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call fcn.10054006
mov edi, eax
jmp 0x1004bd3f
mov edi, ebx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.10054146
push esi
mov dword [ebp - 0x10], edi
mov dword [ebp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [esi + 0x18]
cmp dword [esi + 0x18], 1
mov byte [ebp - 4], 2
jne 0x1004bd71
cmp dword [esi + 0x1c], ebx
jne 0x1004bd71
mov ecx, dword [esi + 0x24]
call fcn.100289bb
push esi
mov byte [ebp - 4], bl
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
push ebx
push 0x1004be2d
mov dword [ebp - 0x10], ebx
call dword [sym.imp.MSVCR100.dll__beginthread]
add esp, 0xc
cmp eax, 0xffffffff
jne 0x1004bd9d
push 0x2e6b6832
call fcn.1003d82e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.10054146
call fcn.10022255
ret 0x10

Function at 0x1004e5b6
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.10001719
mov eax, dword [0x1001e618]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x2008], 0
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
lea eax, [ebp - 0x2004]
mov dword [ebp - 0x2014], eax
xor eax, eax
mov word [ebp - 0x2004], ax
mov dword [ebp - 0x2010], 0x1000
mov byte [ebp - 0x200c], 0
lea edi, [ebp - 0x2004]
stosd dword es:[edi], eax
mov word [ebp - 0x2000], ax
lea eax, [ebp - 0x2014]
push eax
push edx
mov esi, ecx
call fcn.1004e8e0
push dword [ebp - 0x2014]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
movzx ecx, bl
neg ecx
sbb ecx, ecx
and ecx, eax
lea eax, [ebp - 0x2014]
mov dword [esi], ecx
push eax
mov ecx, eax
call fcn.10027c49
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.1002238e
leave
ret 4
Function at 0x10050140
Capabilities:
Print debug messages

Disassembly:
push 0x81c
mov eax, 0x100d2cf4
call fcn.10022400
mov ebx, dword [ebp + 8]
push ebx
call fcn.1003b2b7
mov esi, eax
mov ecx, 0x3e8
cmp esi, ecx
jle 0x10050210
lea eax, [esi - 0x3e9]
xor edx, edx
div ecx
inc eax
mov ecx, eax
imul ecx, ecx, 0xfffffc18
add esi, ecx
mov dword [ebp - 0x824], esi
mov esi, eax
and dword [ebp - 0x814], 0
lea eax, [ebp - 0x810]
mov dword [ebp - 0x820], eax
xor eax, eax
lea edi, [ebp - 0x810]
mov dword [ebp - 0x81c], 0x400
mov byte [ebp - 0x818], 0
mov word [ebp - 0x810], ax
stosd dword es:[edi], eax
mov word [ebp - 0x80c], ax
and dword [ebp - 4], eax
lea eax, [ebp - 0x820]
push eax
push 0x3e8
push ebx
call fcn.1003b01b
lea ecx, [ebp - 0x820]
add ebx, 0x7d0
call fcn.10043112
push dword [ebp - 0x820]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x820]
push eax
mov ecx, eax
call fcn.10027c49
dec esi
jne 0x10050184
mov esi, dword [ebp - 0x824]
test esi, esi
je 0x1005021b
push ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call fcn.10022631
ret 4

Function at 0x10050723
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push 0x1c
mov eax, 0x100d2dc0
call fcn.10022400
mov ebx, dword [ebp + 8]
mov esi, ecx
mov edi, edx
test esi, esi
je 0x1005082e
test edi, edi
je 0x1005082e
xor ecx, ecx
mov dword [ebp - 0x24], ecx
lea eax, [ebp - 0x24]
push eax
push ecx
push ecx
push 0x8003
mov dword [ebp - 4], ecx
call fcn.1004d25e
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1005081f
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10050772
push 0
sub ecx, edx
push ecx
push esi
push dword [ebp - 0x24]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptHashData]
call esi
test eax, eax
je 0x1005081f
push 0
push 1
push 0x10051f28
push dword [ebp - 0x24]
call esi
test eax, eax
je 0x1005081f
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100507a9
push 0
sub ecx, edx
push ecx
push edi
push dword [ebp - 0x24]
call esi
test eax, eax
je 0x1005081f
push 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
push 2
push dword [ebp - 0x24]
mov dword [ebp - 0x28], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x1005081f
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
push 0
push 0x3c9
push esi
push edi
call fcn.10001888
movzx ecx, word [eax*2 + 0x10050860]
jmp 0x1005081a
movzx eax, cx
imul eax, eax, 0xc
cmp dword [eax + 0x10050ff8], edi
jne 0x10050813
cmp dword [eax + 0x10050ffc], esi
je 0x10050838
movzx ecx, word [eax + 0x10051002]
test cx, cx
jne 0x100507fd
cmp dword [ebp - 0x24], 0
je 0x1005082e
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor eax, eax
call fcn.10022631
ret 4
movzx eax, cx
imul eax, eax, 0xc
cmp dword [ebp - 0x24], 0
mov cx, word [eax + 0x10051000]
mov word [ebx], cx
je 0x10050857
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor eax, eax
inc eax
jmp 0x10050830
Function at 0x10054c50
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push edi
xor edi, edi
test ebx, ebx
je 0x10054d71
mov edx, dword [ebp + 0x14]
xor eax, eax
push esi
mov esi, dword [ebp + 8]
inc eax
sub eax, esi
mov dword [ebp + 8], eax
push 2
pop eax
sub eax, esi
mov dword [ebp - 4], eax
lea eax, [esi + edi]
movzx eax, byte [eax]
shr eax, 2
movzx ecx, byte [eax + 0x10054d78]
mov eax, dword [edx]
mov word [eax], cx
mov eax, dword [ebp + 8]
add dword [edx], 2
lea ecx, [esi + edi]
add eax, ecx
cmp eax, ebx
je 0x10054d3d
mov al, byte [ecx]
and al, 3
shl al, 4
movzx ecx, al
movzx eax, byte [edi + esi + 1]
shr eax, 4
or ecx, eax
movzx eax, byte [ecx + 0x10054d78]
mov ecx, dword [edx]
mov word [ecx], ax
mov eax, dword [ebp - 4]
add dword [edx], 2
lea ecx, [esi + edi]
add eax, ecx
cmp eax, ebx
mov al, byte [edi + esi + 1]
je 0x10054d19
and al, 0xf
shl al, 2
movzx ecx, al
movzx eax, byte [edi + esi + 2]
shr eax, 6
or ecx, eax
movzx eax, byte [ecx + 0x10054d78]
mov ecx, dword [edx]
mov word [ecx], ax
add dword [edx], 2
movzx eax, byte [edi + esi + 2]
mov ecx, dword [edx]
and eax, 0x3f
movzx eax, byte [eax + 0x10054d78]
mov word [ecx], ax
add dword [edx], 2
add edi, 3
cmp edi, ebx
jae 0x10054d70
jmp 0x10054c7a
mov ecx, dword [edx]
and al, 0xf
shl al, 2
movzx eax, al
movzx eax, byte [eax + 0x10054d78]
mov word [ecx], ax
add dword [edx], 2
cmp byte [ebp + 0x10], 0
mov eax, dword [edx]
je 0x10054d70
push 0x3d
pop ecx
jmp 0x10054d6a
mov al, byte [edi + esi]
mov ecx, dword [edx]
and al, 3
shl al, 4
movzx eax, al
movzx eax, byte [eax + 0x10054d78]
mov word [ecx], ax
add dword [edx], 2
cmp byte [ebp + 0x10], 0
mov eax, dword [edx]
je 0x10054d70
push 0x3d
pop ecx
mov word [eax], cx
add dword [edx], 2
mov eax, dword [edx]
mov word [eax], cx
add dword [edx], 2
pop esi
pop edi
pop ebx
leave
ret 0x10

Function at 0x10055709
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1001e618]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0xc]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x10055780
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, ecx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1005576e
lea eax, [esi + esi]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push edi
push ebx
push ebx
push 0x100557ec
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
sete bl
mov ecx, dword [ebp - 4]
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.1002238e
leave
ret
Function at 0x100557fe
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x47c
mov eax, dword [0x1001e618]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x10055943
and dword [ebp - 0x47c], eax
push ebx
push esi
push edi
lea edi, [ebp - 0x478]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x46c], 0xc
lea edi, [ebp - 0x468]
stosd dword es:[edi], eax
push 0x40
stosd dword es:[edi], eax
lea eax, [ebp - 0x45c]
push 0
push eax
mov dword [ebp - 0x460], 0x44
call sub.MSVCR100.dll_memset
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
xor eax, eax
mov esi, 0x208
push esi
push eax
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push eax
call sub.MSVCR100.dll_memset
xor eax, eax
push esi
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call sub.MSVCR100.dll_memset
add esp, 0x18
mov ecx, 0x105
lea edi, [ebp - 0x41c]
call fcn.10055709
test eax, eax
je 0x10055940
xor edi, edi
push edi
xor eax, eax
inc eax
push edi
push eax
mov dword [ebp - 0x464], eax
lea eax, [ebp - 0x46c]
push eax
mov dword [ebp - 0x468], edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, eax
test esi, esi
je 0x10055940
push esi
push ebx
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.1005594f
add esp, 0x10
lea eax, [ebp - 0x47c]
push eax
lea eax, [ebp - 0x460]
push eax
push edi
push edi
push edi
push 1
push edi
push edi
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1005593d
push dword [ebp - 0x47c]
call edi
push dword [ebp - 0x478]
call edi
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002238e
leave
ret
Function at 0x10056a36
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x248
mov eax, 0x100d3fce
call fcn.10022400
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x24c], eax
push eax
lea ecx, [ebp - 0x23c]
mov dword [ebp - 4], eax
call fcn.10047707
lea eax, [ebp - 0x254]
push eax
mov byte [ebp - 4], 1
call fcn.10056dfc
xor ecx, ecx
mov esi, ecx
mov edi, dword [ebp - 0x254]
lea eax, [ebp - 0x244]
push eax
push ecx
push ecx
push ecx
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
push edi
mov dword [ebp - 0x220], 0x105
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc esi
mov dword [ebp - 0x248], esi
cmp eax, 0x103
jne 0x10056ac9
push 0x80004005
push 0x2e6e3162
jmp 0x10056ae7
test eax, eax
je 0x10056aec
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10056ae1
and eax, 0xffff
or eax, 0x80070000
push eax
push 0x2e6e3163
call fcn.1003d69d
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x22c], edi
call fcn.10025878
push 0x20019
lea ecx, [ebp - 0x23c]
call fcn.10025983
push eax
lea ecx, [ebp - 0x23c]
call fcn.10025ac8
push ebx
lea eax, [ebp - 0x23c]
push eax
call fcn.10056c06
mov eax, dword [ebx]
mov edx, dword [ebp + 8]
push 0
pop ecx
cmp eax, dword [edx]
jne 0x10056a85
lea eax, [edx + 4]
cmp word [eax], cx
je 0x10056b84
lea ecx, [ebx + 4]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x10056b70
test dx, dx
je 0x10056b6a
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x10056b70
add ecx, 4
add eax, 4
test dx, dx
jne 0x10056b48
xor ecx, ecx
mov eax, ecx
jmp 0x10056b77
sbb eax, eax
sbb eax, 0xffffffff
xor ecx, ecx
test eax, eax
jne 0x10056a85
mov byte [ebp - 4], cl
jmp 0x10056be8
mov eax, dword [ebx + 0x54]
cmp eax, dword [edx + 0x54]
jne 0x10056a85
mov eax, dword [ebx + 0xa8]
cmp eax, dword [edx + 0xa8]
jne 0x10056a85
push 4
pop ecx
xor eax, eax
lea edi, [edx + 0x44]
lea esi, [ebx + 0x44]
repe cmpsd dword [esi], dword es:[edi]
mov esi, dword [ebp - 0x248]
mov edi, dword [ebp - 0x254]
push eax
pop ecx
jne 0x10056a85
push 4
pop ecx
lea edi, [edx + 0x98]
lea esi, [ebx + 0x98]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0x10056be5
mov esi, dword [ebp - 0x248]
xor ecx, ecx
jmp 0x10056a7f
mov byte [ebp - 4], al
lea ecx, [ebp - 0x23c]
call fcn.10027c6f
lea ecx, [ebp - 0x254]
call fcn.10025aae
call fcn.10022631
ret 8
Function at 0x1006969a
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor eax, eax
push edi
mov edi, ecx
or ebx, 0xffffffff
mov byte [ebp - 1], al
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea esi, [edi + 0x24]
push esi
mov dword [ebp - 8], eax
mov byte [ebp - 0xc], 1
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor eax, eax
cmp dword [edi + 0x60], eax
je 0x100696e9
lea ecx, [edi + 0x74]
cmp byte [ecx], al
je 0x100696e9
lea eax, [ebp - 0xc]
push eax
call fcn.1004c698
mov ebx, eax
xor eax, eax
test ebx, ebx
jg 0x100696e5
mov ebx, eax
mov byte [ebp - 1], 1
cmp dword [ebp + 8], 0xffffffff
je 0x100696ff
cmp ebx, 0xffffffff
je 0x100696f9
cmp dword [ebp + 8], ebx
jge 0x100696ff
mov ebx, dword [ebp + 8]
mov byte [ebp - 1], al
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp ebx, 0xffffffff
jne 0x1006971a
mov ecx, dword [edi + 0x9c]
call fcn.10028782
mov bl, 1
jmp 0x10069747
cmp byte [ebp - 1], 0
je 0x1006972f
test ebx, ebx
jne 0x1006972f
cmp byte [edi + 0x3d], bl
je 0x1006972f
xor ecx, ecx
mov bl, cl
jmp 0x10069747
mov ecx, dword [edi + 0x9c]
push ebx
lea eax, [ebp + 0xa]
push eax
call fcn.100287a4
xor ecx, ecx
cmp word [eax], cx
setne bl
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 0x14], 1
call fcn.1004c698
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
test bl, bl
je 0x1006977f
push dword [ebp + 0x14]
mov ecx, edi
push dword [ebp + 0x10]
mov byte [edi + 0x3d], 1
push dword [ebp + 0xc]
call fcn.1006940a
jmp 0x10069797
xor eax, eax
mov byte [edi + 0x3d], al
cmp byte [ebp - 1], al
jne 0x1006978d
xor al, al
jmp 0x10069797
push dword [ebp + 0x10]
mov ecx, edi
call fcn.10069556
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x1006d4de
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x1001e618]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 1
push eax
push ebx
mov edi, ecx
call fcn.1006d724
mov esi, eax
test esi, esi
jne 0x1006d5cd
cmp dword [edi + 0x80], eax
je 0x1006d5bb
cmp dword [ebp + 0x14], 0xffffffff
je 0x1006d530
push dword [ebp + 0x14]
mov ecx, edi
call fcn.1006d5de
jmp 0x1006d5b5
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x1006d5ad
lea eax, [ebp - 0x254]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
or dword [ebp - 0x258], 0xffffffff
push 0
push 0
push eax
lea ecx, [ebp - 0x258]
call fcn.1004f259
cmp dword [ebp - 0x258], 0xffffffff
je 0x1006d593
cmp dword [ebp - 0x238], 0
ja 0x1006d58f
cmp dword [ebp - 0x234], 0x7fffffff
ja 0x1006d58f
push dword [ebp - 0x234]
mov ecx, edi
call fcn.1006d5de
mov esi, eax
jmp 0x1006d596
push 8
jmp 0x1006d595
push 0x10
pop esi
cmp dword [ebp - 0x258], 0xffffffff
je 0x1006d5b7
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x1006d5b7
push ebx
mov ecx, edi
call fcn.1006d5f9
mov esi, eax
test esi, esi
jne 0x1006d5cb
cmp byte [ebp + 0xc], 0
je 0x1006d5cb
push ebx
mov ecx, edi
call fcn.1006de88
mov esi, eax
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002238e
leave
ret 0x10
Function at 0x1006d724
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x220
mov eax, 0x100dad86
call fcn.10022400
mov dword [ebp - 0x220], ecx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
cmp byte [ebp + 0x10], bl
je 0x1006d799
push ebx
push ebx
push ebx
push ebx
push 0x100
lea eax, [ebp - 0x218]
push eax
push 3
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.MSVCR100.dll__wsplitpath_s]
xor eax, eax
add esp, 0x24
cmp ax, word [ebp - 0x18]
jne 0x1006d777
cmp ax, word [ebp - 0x218]
je 0x1006d799
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1006d799
test al, 0x10
je 0x1006d799
mov ecx, dword [ebp - 0x220]
push edi
push esi
call fcn.1006d969
jmp 0x1006d8a2
mov dword [ebp - 0x21c], ebx
lea eax, [ebp - 0x228]
push eax
push 0x5c
push esi
mov dword [ebp - 4], ebx
call fcn.1003af2a
test al, al
jne 0x1006d7dc
lea eax, [ebp - 0x228]
push eax
push 0x2f
push esi
call fcn.1003af2a
test al, al
jne 0x1006d7dc
push esi
lea ecx, [ebp - 0x21c]
call fcn.10025878
mov esi, dword [ebp - 0x21c]
jmp 0x1006d807
push esi
call fcn.1003b2b7
sub eax, dword [ebp - 0x228]
dec eax
push eax
push esi
lea eax, [ebp - 0x18]
push eax
call fcn.1003b1e7
mov esi, dword [eax]
lea ecx, [ebp - 0x21c]
call fcn.100258cf
mov dword [ebp - 0x21c], esi
lea eax, [ebp - 0x224]
push eax
push esi
call fcn.10049a47
test al, al
jne 0x1006d81c
push 0x40
jmp 0x1006d890
test edi, edi
je 0x1006d891
mov ecx, edi
call fcn.10028e9d
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
call fcn.10028e41
cmp word [eax], bx
je 0x1006d891
mov esi, dword [ebp - 0x220]
lea eax, [ebp - 0x22c]
push eax
mov ecx, edi
call fcn.10028e6f
mov eax, dword [eax]
mov dword [ebp - 0x220], eax
push dword [ebp - 0x21c]
mov ecx, esi
push eax
mov byte [ebp - 4], 1
call fcn.1006d8aa
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x220]
test al, al
jne 0x1006d889
call fcn.100258cf
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
call fcn.10028e41
cmp word [eax], bx
je 0x1006d891
jmp 0x1006d83d
call fcn.100258cf
push 4
pop ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.100258cf
mov eax, ebx
call fcn.10022631
ret 0xc

Function at 0x10079b54
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1001e618]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
cmp dword [ebp - 0x18], 0x800000
mov ecx, dword [ebp - 4]
sbb eax, eax
xor ecx, ebp
neg eax
call fcn.1002238e
leave
ret