joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2000755b
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x2009b01f
call fcn.2007d394
push ecx
push esi
mov esi, ecx
lea ecx, [esi + 0xc]
mov dword [ebp - 0x10], esi
mov dword [esi], 0x200a4d20
call fcn.20007535
and dword [ebp - 4], 0
lea ecx, [esi + 0x1c]
call fcn.200013ff
lea ecx, [esi + 0x24]
call fcn.20002e70
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.20002e4a
mov byte [ebp - 4], 2
and dword [esi + 0x44], 0
and dword [esi + 0x48], 0
lea ecx, [esi + 0x60]
call fcn.20076808
mov byte [ebp - 4], 3
lea ecx, [esi + 0x84]
call fcn.200072eb
mov byte [ebp - 4], 4
lea eax, [esi + 0x90]
and dword [eax + 0x18], 0
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [ebp - 4], 5
lea ecx, [esi + 0xac]
call fcn.20002957
mov byte [ebp - 4], 6
lea ecx, [esi + 0xc8]
call fcn.20002957
mov byte [ebp - 4], 7
lea ecx, [esi + 0xe4]
call fcn.20002957
mov byte [ebp - 4], 8
lea ecx, [esi + 0x100]
call fcn.20007311
mov byte [ebp - 4], 9
lea ecx, [esi + 0x10c]
call fcn.20007311
mov byte [ebp - 4], 0xa
lea ecx, [esi + 0x118]
call fcn.20007337
mov byte [ebp - 4], 0xb
lea ecx, [esi + 0x124]
call fcn.2000735d
mov byte [ebp - 4], 0xc
lea ecx, [esi + 0x148]
call fcn.20076808
mov byte [ebp - 4], 0xd
mov eax, dword [ebp + 8]
mov ecx, esi
mov dword [esi + 0x18], eax
call fcn.20001456
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x20014aef
Capabilities:
Terminate thread

Disassembly:
mov eax, 0x2009bf31
call fcn.2007d394
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea eax, [esi + 0x30]
xor ebx, ebx
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], ebx
call fcn.200011c0
mov dword [ebp - 4], ebx
mov edi, dword [ebp + 0xc]
cmp edi, ebx
jg 0x20014b20
mov edi, 0x5fffffff
mov ecx, esi
call fcn.20014a5b
test eax, eax
je 0x20014b9f
cmp dword [ebp + 8], ebx
je 0x20014b39
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x64
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub edi, 0x64
cmp eax, 0x102
jne 0x20014b9f
cmp edi, ebx
jg 0x20014b20
mov eax, dword [esi + 0x24]
cmp eax, ebx
je 0x20014b62
push 0xfffffffffffffff4
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x24]
cmp eax, ebx
mov dword [esi + 0x2c], ebx
je 0x20014b76
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x24], ebx
or dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x14]
cmp esi, ebx
je 0x20014b8b
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
dec dword [esi + 0x18]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
mov dword [ebp - 0x10], 1
jmp 0x20014b62
Function at 0x2001504d
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x2009bfe2
call fcn.2007d394
sub esp, 0x70
mov eax, dword [0x200cc84c]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
xor eax, ebp
push 0xf
pop edi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x7c], ecx
push 0
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x74], eax
mov byte [ebp - 0x65], 0
mov dword [ebp - 0x4c], edi
call fcn.20001bc0
and dword [ebp - 4], 0
test ebx, ebx
je 0x2001509b
push ebx
lea ecx, [ebp - 0x64]
call fcn.20003a20
push 0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], edi
call fcn.20001bc0
mov byte [ebp - 4], 1
xor ebx, ebx
cmp dword [ebp - 0x74], ebx
je 0x200150be
push dword [ebp - 0x74]
lea ecx, [ebp - 0x2c]
call fcn.20003a20
mov edi, dword [ebp - 0x7c]
push edi
lea ecx, [ebp - 0x48]
call fcn.20003892
mov byte [ebp - 4], 2
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x48]
call fcn.20008e33
cmp dword [ebp - 0x30], 0x10
mov eax, dword [ebp - 0x44]
jae 0x200150e9
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x70]
push ecx
push eax
push dword [edi + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x200150ff
xor bl, bl
jmp 0x2001517e
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x6c], 0x406
jae 0x20015115
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x6c]
push ecx
push esi
lea ecx, [ebp - 0x78]
push ecx
push ebx
push eax
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x20015172
mov eax, dword [ebp - 0x78]
push 2
pop ecx
cmp eax, ecx
je 0x20015161
xor edx, edx
inc edx
cmp eax, edx
je 0x20015161
cmp eax, 4
jne 0x2001514b
mov dword [esi + 0x40c], edx
jmp 0x2001516e
cmp eax, 3
jne 0x20015172
mov eax, dword [ebp - 0x6c]
mov dword [esi + 0x408], eax
mov dword [esi + 0x40c], ecx
jmp 0x2001516e
mov eax, dword [ebp - 0x6c]
mov byte [esi + eax], 0
mov dword [esi + 0x40c], ebx
mov byte [ebp - 0x65], 1
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, byte [ebp - 0x65]
mov byte [ebp - 4], 1
xor esi, esi
push esi
push 1
lea ecx, [ebp - 0x48]
call fcn.2000275e
mov byte [ebp - 4], 0
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.2000275e
or dword [ebp - 4], 0xffffffff
push esi
push 1
lea ecx, [ebp - 0x64]
call fcn.2000275e
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.2007c9ae
leave
ret 0xc
Function at 0x200151ca
Capabilities:
Set registry value

Disassembly:
mov eax, 0x2009bfe2
call fcn.2007d394
sub esp, 0x68
mov eax, dword [0x200cc84c]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
xor eax, ebp
push 0xf
pop esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x74], ecx
push 0
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x65], 0
mov dword [ebp - 0x4c], esi
call fcn.20001bc0
and dword [ebp - 4], 0
test ebx, ebx
je 0x20015218
push ebx
lea ecx, [ebp - 0x64]
call fcn.20003a20
push 0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], esi
call fcn.20001bc0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x6c], 0
je 0x2001523a
push dword [ebp - 0x6c]
lea ecx, [ebp - 0x2c]
call fcn.20003a20
mov esi, dword [ebp - 0x74]
push esi
lea ecx, [ebp - 0x48]
call fcn.20003892
mov byte [ebp - 4], 2
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x48]
call fcn.20008e33
cmp dword [ebp - 0x30], 0x10
mov eax, dword [ebp - 0x44]
jae 0x20015266
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x70]
push ecx
push eax
push dword [esi + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x2001527f
xor bl, bl
jmp 0x20015333
cmp dword [edi + 0x40c], 3
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
jne 0x200152bd
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x200152a0
lea eax, [ebp - 0x28]
push edi
mov dword [ebp - 0x6c], eax
call ebx
inc eax
push eax
push edi
push 1
push 0
push dword [ebp - 0x6c]
push dword [ebp - 0x70]
call esi
test eax, eax
jne 0x200152bd
mov byte [ebp - 0x65], 1
mov eax, dword [edi + 0x40c]
test eax, eax
jne 0x200152e5
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x200152d3
lea eax, [ebp - 0x28]
push edi
mov dword [ebp - 0x6c], eax
call ebx
inc eax
push eax
push edi
push 2
push 0
push dword [ebp - 0x6c]
jmp 0x2001531a
cmp eax, 1
jne 0x200152fd
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x200152f6
lea eax, [ebp - 0x28]
push 4
push edi
push 4
jmp 0x20015317
cmp eax, 2
jne 0x20015327
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x2001530e
lea eax, [ebp - 0x28]
push dword [edi + 0x408]
push edi
push 3
push 0
push eax
push dword [ebp - 0x70]
call esi
test eax, eax
jne 0x20015327
mov byte [ebp - 0x65], 1
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, byte [ebp - 0x65]
mov byte [ebp - 4], 1
xor esi, esi
push esi
push 1
lea ecx, [ebp - 0x48]
call fcn.2000275e
mov byte [ebp - 4], 0
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.2000275e
or dword [ebp - 4], 0xffffffff
push esi
push 1
lea ecx, [ebp - 0x64]
call fcn.2000275e
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.2007c9ae
leave
ret 0xc
Function at 0x20015ee4
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
je 0x20015efb
cmp eax, 0xffffffff
je 0x20015efb
xor eax, eax
inc eax
ret
xor eax, eax
ret

Function at 0x20015f98
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov esi, ecx
je 0x20015ff0
mov ebx, dword [ebp + 0xc]
cmp ebx, edi
je 0x20015ff0
call fcn.20015f44
mov ecx, eax
sub ecx, dword [ebp + 0x10]
mov dword [ebp - 4], edi
cmp ebx, ecx
jbe 0x20015fc2
mov ebx, ecx
cmp dword [ebp + 0x10], eax
jae 0x20015ff0
push edi
push edi
push dword [ebp + 0x10]
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 8]
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
neg eax
sbb eax, eax
and eax, dword [ebp - 4]
jmp 0x20015ff2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x200160da
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
call fcn.20015f44
cmp dword [ebp + 8], 0
mov ebx, eax
je 0x200160f3
mov ebx, dword [ebp + 8]
and dword [ebp - 4], 0
mov ecx, eax
sub ecx, dword [ebp + 0xc]
cmp dword [ebp + 8], ecx
jbe 0x20016103
mov ebx, ecx
cmp dword [ebp + 0xc], eax
jae 0x2001613c
lea eax, [ebx + 1]
push eax
call fcn.2008f9f9
pop ecx
push 0xffffffffffffffff
push dword [ebp + 0xc]
mov ecx, esi
mov edi, eax
call fcn.20015f5b
push 0
lea eax, [ebp - 4]
push eax
push ebx
push edi
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x20016145
push edi
call fcn.2008f9fe
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
mov ecx, esi
call fcn.20015ff9
mov eax, dword [ebp - 4]
mov byte [eax + edi], 0
mov eax, dword [ebp - 4]
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], edi
mov eax, edi
jmp 0x2001613e
Function at 0x200163a4
Capabilities:
Get file attributes

Disassembly:
mov eax, 0x2009c1b4
call fcn.2007d394
sub esp, 0x60
mov eax, dword [0x200cc84c]
xor eax, ebp
push ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
push esi
mov esi, ecx
mov dword [ebp - 0x50], ebx
je 0x20016489
push edi
push eax
lea ecx, [ebp - 0x48]
call fcn.20003c27
mov dword [ebp - 4], ebx
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
call fcn.20001bc0
mov byte [ebp - 4], 1
xor edi, edi
inc edi
push edi
push ebx
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 0x4c], 0x5c
call fcn.200017e0
cmp eax, ebx
jge 0x2001643c
push 0x200a6718
add esi, 4
lea eax, [ebp - 0x6c]
push esi
push eax
call fcn.20014e68
add esp, 0xc
mov byte [ebp - 4], 2
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x2c]
call fcn.20002fc3
mov byte [ebp - 4], 1
push ebx
push edi
lea ecx, [ebp - 0x6c]
call fcn.2000275e
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.20008e33
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x20016457
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x2001646a
cmp eax, 0xffffffff
mov dword [ebp - 0x50], edi
jne 0x2001646d
mov dword [ebp - 0x50], ebx
mov byte [ebp - 4], bl
push ebx
push edi
lea ecx, [ebp - 0x2c]
call fcn.2000275e
or dword [ebp - 4], 0xffffffff
push ebx
push edi
lea ecx, [ebp - 0x48]
call fcn.2000275e
pop edi
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x50]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.2007c9ae
leave
ret 4
Function at 0x200164cb
Capabilities:
Move file

Disassembly:
mov eax, 0x2009c172
call fcn.2007d394
sub esp, 0x84
mov eax, dword [0x200cc84c]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor eax, ebp
push 0xf
pop esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x6c], ecx
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x14], esi
call fcn.20001bc0
mov dword [ebp - 4], ebx
push ebx
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x4c], esi
call fcn.20001bc0
mov byte [ebp - 4], 1
cmp edi, ebx
mov esi, 0x200a6718
je 0x200165a1
push edi
lea ecx, [ebp - 0x48]
call fcn.20003c27
mov byte [ebp - 4], 2
xor edi, edi
inc edi
push edi
push ebx
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 0x68], 0x5c
call fcn.200017e0
cmp eax, ebx
jge 0x20016582
mov eax, dword [ebp - 0x6c]
add eax, 4
push esi
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.20014e68
add esp, 0xc
mov byte [ebp - 4], 3
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x2c]
call fcn.20002fc3
mov byte [ebp - 4], 2
push ebx
push edi
lea ecx, [ebp - 0x90]
call fcn.2000275e
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.20008e33
mov byte [ebp - 4], 1
push ebx
push edi
lea ecx, [ebp - 0x48]
call fcn.2000275e
jmp 0x200165bd
mov edi, dword [ebp - 0x6c]
push 0xffffffffffffffff
push ebx
lea eax, [edi + 0x20]
push eax
lea ecx, [ebp - 0x2c]
call fcn.20002fc3
mov ecx, edi
call fcn.200164a6
xor edi, edi
inc edi
cmp dword [ebp - 0x74], ebx
je 0x20016667
push dword [ebp - 0x74]
lea ecx, [ebp - 0x48]
call fcn.20003c27
mov byte [ebp - 4], 4
push edi
push ebx
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 0x68], 0x5c
call fcn.200017e0
cmp eax, ebx
jge 0x20016623
mov eax, dword [ebp - 0x6c]
add eax, 4
push esi
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.20014e68
add esp, 0xc
mov byte [ebp - 4], 5
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x64]
call fcn.20002fc3
mov byte [ebp - 4], 4
push ebx
push edi
lea ecx, [ebp - 0x90]
call fcn.2000275e
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x64]
call fcn.20008e33
cmp dword [ebp - 0x4c], 0x10
mov ecx, dword [ebp - 0x60]
jae 0x2001663e
lea ecx, [ebp - 0x60]
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x2001664a
lea eax, [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x20016659
mov dword [ebp - 0x70], edi
mov byte [ebp - 4], 1
push ebx
push edi
lea ecx, [ebp - 0x48]
call fcn.2000275e
mov byte [ebp - 4], bl
push ebx
push edi
lea ecx, [ebp - 0x64]
call fcn.2000275e
or dword [ebp - 4], 0xffffffff
push ebx
push edi
lea ecx, [ebp - 0x2c]
call fcn.2000275e
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x70]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.2007c9ae
leave
ret 8
Function at 0x20016f35
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 4], 0
and dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
ret

Function at 0x2001723b
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push ebp
push esi
push edi
push 0
push 1
mov esi, ecx
mov ebp, 0x200a6a48
push ebp
push 0
lea edi, [esi + 0x104]
push edi
mov dword [esi], 0x200a6a44
call ebx
test eax, eax
jne 0x20017275
push 8
push 1
push ebp
push eax
push edi
call ebx
test eax, eax
jne 0x20017275
and dword [edi], eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

Function at 0x20017364
Capabilities:
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x200cc84c]
and dword [ebp - 0x78], 0
xor eax, ebp
cmp dword [ebp + 0x98], 0x8004
push ebx
mov ebx, dword [ebp + 0x9c]
mov dword [ebp + 0x8c], eax
mov eax, dword [ebp + 0xa4]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x7c], eax
jne 0x200173ac
mov dword [ebp - 0x80], 0x14
jmp 0x200173bf
cmp dword [ebp + 0x98], 0x8003
jne 0x200173bf
mov dword [ebp - 0x80], 0x10
push 0x100
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.2007e690
add esp, 0xc
lea esi, [edi + 0x108]
push esi
push 0
push 0
push dword [ebp + 0x98]
push dword [edi + 0x104]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x2001744a
xor edi, edi
push edi
push dword [ebp + 0xa0]
push ebx
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x2001743e
push edi
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x74]
push eax
push 2
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x2001743e
cmp dword [ebp - 0x7c], edi
mov dword [ebp - 0x78], 1
je 0x2001743e
push dword [ebp - 0x80]
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x7c]
call fcn.2007ca70
add esp, 0xc
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov dword [esi], edi
jmp 0x2001748c
mov eax, dword [ebp + 0x98]
sub eax, 0x8003
je 0x2001746d
dec eax
jne 0x2001748c
push dword [ebp - 0x7c]
push 0
push dword [ebp + 0xa0]
push ebx
call fcn.200170ca
jmp 0x2001747e
push dword [ebp - 0x7c]
push 0
push dword [ebp + 0xa0]
push ebx
call fcn.20017194
add esp, 0x10
test al, al
je 0x2001748c
mov dword [ebp - 0x78], 1
mov ecx, dword [ebp + 0x8c]
mov eax, dword [ebp - 0x78]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.2007c9ae
add ebp, 0x90
leave
ret 0x10
Function at 0x20019dec
Capabilities:
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x108
mov eax, dword [0x200cc84c]
push ebx
push esi
mov esi, dword [ebp + 0x90]
push edi
xor eax, ebp
push str.shfolder.dll
mov dword [ebp + 0x84], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor ebx, ebx
cmp eax, ebx
je 0x20019e31
push str.SHGetFolderPathA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, eax
jmp 0x20019e33
xor edx, edx
push 0x40
xor eax, eax
cmp edx, ebx
mov byte [ebp - 0x80], bl
pop ecx
lea edi, [ebp - 0x7f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
je 0x20019e54
lea eax, [ebp - 0x80]
push eax
push ebx
push ebx
push 0x1a
push ebx
call edx
jmp 0x20019e57
mov byte [ebp - 0x80], bl
lea eax, [ebp - 0x80]
push eax
mov ecx, esi
call fcn.20003052
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
jne 0x20019e88
push esi
call fcn.20075f4e
mov ecx, esi
mov dword [esp], str.LiveCache
call fcn.200037d8
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x20019eb0
push 0x200a6b48
mov ecx, esi
call fcn.200037d8
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push ebx
push dword [esi]
call edi
push 0x200a6b3c
mov ecx, esi
call fcn.200037d8
push ebx
push dword [esi]
call edi
mov ecx, dword [ebp + 0x84]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.2007c9ae
add ebp, 0x88
leave
ret

Function at 0x2001a47b
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x2009c707
call fcn.2007d394
push ecx
push esi
mov esi, ecx
push edi
lea eax, [esi + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.200011c0
and dword [ebp - 4], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
add esi, 0x80c0
call edi
sub eax, dword [esi]
cmp eax, 0x3e8
jbe 0x2001a4cf
call edi
mov dword [esi], eax
or dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x2001a4ca
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
dec dword [esi + 0x18]
xor eax, eax
inc eax
jmp 0x2001a4e6
or dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x2001a4e4
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
dec dword [esi + 0x18]
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x2001da66
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x2009c7ed
call fcn.2007d394
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
push edi
lea eax, [esi + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.200011c0
xor ecx, ecx
mov dword [ebp - 4], ecx
cmp dword [esi + 0x80e0], ecx
je 0x2001dc04
mov eax, dword [esi + 0x80dc]
mov eax, dword [eax]
cmp dword [eax + 0x10], ecx
je 0x2001dac9
cmp dword [esi + 0x80e0], 1
jbe 0x2001dac9
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 0x80d8]
call fcn.2001d467
mov eax, dword [esi + 0x80dc]
mov eax, dword [eax]
cmp dword [eax + 0x10], 0
jne 0x2001daa2
mov ebx, dword [esi + 0x80dc]
mov edi, dword [ebx]
cmp edi, ebx
mov dword [ebp - 0x28], edi
je 0x2001db88
mov eax, dword [esi + 0x34]
mov dword [ebp - 0x24], eax
jmp 0x2001dae7
mov eax, dword [ebp - 0x24]
xor esi, esi
cmp eax, dword [eax]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], eax
je 0x2001db75
lea ecx, [ebp - 0x14]
call fcn.2001b6db
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x2001db5d
call fcn.2001a280
test eax, eax
je 0x2001db5d
mov edx, dword [ecx + 0x18]
mov eax, dword [edi + 0xc]
cmp edx, eax
mov dword [ebp - 0x20], edx
jb 0x2001db5d
mov edx, dword [ecx + 0xb0]
cmp edx, eax
je 0x2001db29
test edx, edx
jne 0x2001db5d
mov edx, dword [ebp - 0x20]
add esi, dword [ecx + 0x10]
inc dword [ebp - 0x10]
sub edx, eax
cmp edx, 0x1e
push 2
pop ecx
jae 0x2001db3f
push 3
pop ecx
cmp dword [ebp - 0x10], ecx
jle 0x2001db4f
cmp esi, 0x25800
jg 0x2001db6f
cmp dword [ebp - 0x10], ecx
jl 0x2001db57
cmp dword [ebp - 0x18], 0
jne 0x2001db73
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x14]
call fcn.2001af8c
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
cmp dword [ebp - 0x14], eax
jne 0x2001daf6
cmp dword [ebp - 0x18], 0
ja 0x2001dbc6
lea ecx, [ebp - 0x28]
call fcn.2001ade7
mov edi, dword [ebp - 0x28]
cmp edi, ebx
jne 0x2001dae4
mov esi, dword [ebx]
mov edi, dword [esi + 0xc]
inc dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
push 0x200a6c08
mov dword [esi + 0x14], eax
call fcn.2002eb98
push eax
call fcn.2002ebe0
add esp, 0xc
or dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x2001dbc2
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
dec dword [esi + 0x18]
mov eax, edi
jmp 0x2001dc1b
mov eax, dword [ebx]
mov esi, dword [eax + 0xc]
inc dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push 0x200a6c08
mov dword [edi + 0x14], eax
call fcn.2002eb98
push eax
call fcn.2002ebe0
add esp, 0xc
or dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x1c]
test edi, edi
je 0x2001dc00
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
dec dword [edi + 0x18]
mov eax, esi
jmp 0x2001dc1b
or dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x1c]
cmp esi, ecx
je 0x2001dc19
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
dec dword [esi + 0x18]
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret