joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100705bc
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101508da
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x101fe1c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov esi, ecx
push ecx
xor ebx, ebx
mov dword [ebp - 0x228], 1
lea ecx, [ebp - 0x224]
mov dword [esi], ebx
push ecx
xor edx, edx
mov dword [esi + 4], ebx
mov ecx, eax
mov dword [esi + 8], ebx
mov dword [ebp - fcn.1002e82f], 0x1015ccd0
mov dword [ebp - 0x224], ebx
mov byte [ebp - 0x220], 1
call fcn.1007251f
test eax, eax
jne 0x100706bd
mov edi, ebx
push ebx
push ebx
push ebx
xor eax, eax
mov dword [ebp - 0x21c], 0x101
push ebx
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
push edi
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0xea
jne 0x10070686
push str.Long_named_key_encountered.
push ecx
push 0xf
mov edx, 0x3a7
mov ecx, 0x1e4c0405
call fcn.10129abc
jmp 0x100706b7
test eax, eax
jne 0x100706bd
cmp word [ebp - 0x218], bx
je 0x100706bd
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x218]
push ecx
cmp eax, dword [esi + 8]
je 0x100706af
mov ecx, eax
call fcn.100111ba
add dword [esi + 4], 0x18
jmp 0x100706b7
push eax
mov ecx, esi
call fcn.100704cf
inc edi
jmp 0x10070634
lea ecx, [ebp - 0x22c]
call fcn.1002d599
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10033218
leave
ret
Function at 0x10071bc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10150a6c
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x101fe1c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
test edi, edi
jne 0x10071bf5
xor eax, eax
jmp 0x10071d56
and dword [ebp - 0x14], 0
mov ebx, 0x101876d8
and dword [ebp - 0x20], 0
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x24], ebx
cmp ebx, 0x101876db
je 0x10071d2d
mov cl, byte [ebx]
mov edx, edi
or dword [ebp - 0x14], 0xffffffff
call fcn.100731c9
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
je 0x10071d1f
push ecx
push 0x102040ac
lea ecx, [ebp - 0x40]
call fcn.1002dd9a
mov ebx, dword [ebp - 0x18]
xor esi, esi
cmp esi, 4
jge 0x10071d0b
movzx eax, byte [edi + 0x14]
lea ecx, [ebp - 0x34]
mov edx, dword [edi + 0x10]
and dword [ebp - 0x18], 0
push 0
push eax
push ebx
push 0
mov byte [ebp - 0xd], 0
call fcn.10073217
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x28], ecx
lea ecx, [ebp - 0x2c]
push eax
call fcn.100714b4
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x10071c8d
and dword [ebp - 0x30], 0
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x14], 0
jne 0x10071cf0
lea eax, [ebp - 0x1c]
push eax
push 0
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x18]
push 0
push dword [edi]
push dword [eax + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 2
pop ecx
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x1c], ecx
jae 0x10071cc8
cmp dword [ebp - 0x20], 1
je 0x10071cc3
cmp dword [ebp - 0x20], ecx
jne 0x10071cc8
mov dword [ebp - 0x14], ecx
mov eax, ecx
mov ecx, eax
call fcn.10071f91
test eax, eax
je 0x10071cf0
mov ecx, dword [edi + 0x10]
movzx eax, word [ecx + 6]
and eax, 0x1f
shl eax, 4
and dword [eax + 0x101ff600], 0
call fcn.10070b06
mov byte [ebp - 0xd], 1
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x10071d00
and dword [ebp - 0x18], 0
mov eax, dword [ecx]
call dword [eax + 4]
inc esi
cmp byte [ebp - 0xd], 0
jne 0x10071c42
cmp dword [ebp - 0x14], 0
lea ecx, [ebp - 0x40]
mov ebx, dword [ebp - 0x24]
je 0x10071d25
call fcn.100303a3
mov esi, dword [ebp - 0x1c]
inc ebx
jmp 0x10071c07
call fcn.100303a3
mov esi, dword [ebp - 0x1c]
cmp dword [ebp - 0x14], 0
jne 0x10071d4b
cmp dword [ebp - 0x20], 2
je 0x10071d42
mov al, byte [edi + 0x18]
and al, 0xf
cmp al, 2
jne 0x10071d54
mov ecx, esi
call fcn.100700d6
jmp 0x10071d52
mov ecx, edi
call fcn.100700ee
mov esi, eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100723eb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
and dword [ebp + 0xc], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
push 0xffff
push edx
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov esi, dword [ebp - 4]
mov ecx, eax
mov edx, dword [ebp + 0xc]
push 2
pop ebx
cmp esi, ebx
jae 0x10072431
cmp edx, 1
je 0x1007242f
cmp edx, ebx
jne 0x10072431
mov ecx, ebx
call fcn.10071f91
test eax, eax
jne 0x10072472
test ecx, ecx
jne 0x10072472
cmp edx, ebx
je 0x10072447
cmp edx, 1
jne 0x10072453
shr esi, 1
xor eax, eax
mov word [edi + esi*2 - 2], ax
mov edx, dword [ebp + 0xc]
movzx eax, byte [ebp + 0x10]
cmp edx, eax
je 0x10072472
sub edx, 1
je 0x1007246c
sub edx, 1
jne 0x10072470
cmp eax, 1
jne 0x10072470
jmp 0x10072472
cmp eax, ebx
je 0x10072472
mov ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
leave
ret 0xc
Function at 0x100727df
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10150aa2
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x101fe1c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], edx
mov ebx, ecx
or esi, 0xffffffff
mov edi, 0x101876d8
and dword [ebp - 0x1c], 0
cmp edi, 0x101876db
je 0x1007297b
mov cl, byte [edi]
or esi, 0xffffffff
mov edx, ebx
mov dword [ebp - 0x18], esi
call fcn.100731c9
mov dword [ebp - 0x24], eax
cmp eax, esi
je 0x1007295d
push ecx
push 0x102040ac
lea ecx, [ebp - 0x44]
call fcn.1002dd9a
mov al, 1
xor esi, esi
mov dword [ebp - 0x20], esi
test al, al
je 0x10072952
cmp esi, 4
jge 0x10072952
mov edx, dword [ebx + 0x10]
lea ecx, [ebp - 0x38]
and dword [ebp - 0x14], 0
xor al, al
push 0
mov byte [ebp - 0xd], al
movzx eax, byte [ebx + 0x14]
push eax
push dword [ebp - 0x24]
push 0
call fcn.10073217
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x30]
push eax
call fcn.100714b4
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x100728a9
and dword [ebp - 0x34], 0
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x18], 0
jne 0x10072939
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push dword [ebp - 0x28]
mov dword [eax], ecx
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x14]
push 0
push dword [ebx]
push dword [eax + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
mov dword [ebp - 0x18], ecx
call fcn.10071f91
test eax, eax
je 0x10072900
mov ecx, dword [ebx + 0x10]
movzx eax, word [ecx + 6]
and eax, 0x1f
shl eax, 4
and dword [eax + 0x101ff600], 0
call fcn.10070b06
mov byte [ebp - 0xd], 1
jmp 0x10072939
mov esi, ecx
test ecx, ecx
jne 0x10072936
movzx edx, word [ebx + 0x18]
mov eax, edx
and eax, 0xf
cmp dword [ebp - 0x1c], eax
je 0x10072932
cmp dword [ebp - 0x1c], 3
jne 0x1007292a
mov eax, dword [ebp + 0xc]
cmp dword [eax], 4
jne 0x1007292a
and dl, 0xf
cmp dl, 4
je 0x10072932
push 2
pop ecx
push ecx
mov dword [ebp - 0x18], ecx
pop esi
test ecx, ecx
je 0x10072963
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x10072949
and dword [ebp - 0x14], 0
mov eax, dword [ecx]
call dword [eax + 4]
mov al, byte [ebp - 0xd]
inc esi
jmp 0x10072850
lea ecx, [ebp - 0x44]
call fcn.100303a3
mov esi, dword [ebp - 0x18]
inc edi
jmp 0x10072818
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x10072973
and dword [ebp - 0x14], 0
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x44]
call fcn.100303a3
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10074687
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
push 0x10
mov esi, ecx
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x100746c9
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x100746c9
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100746c9
cmp word [eax + 2], 0
je 0x100746c9
cmp dword [eax + 0x28], 0xfeef04bd
jne 0x100746c9
add eax, 0x30
jmp 0x100746ce
mov eax, 0x10187728
pop edi
pop esi
ret

Function at 0x100749a1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 4], 0x20a
mov word [eax], dx
lea edx, [ebp - 4]
push edx
push eax
push 0
push 2
push 0x10187794
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
neg eax
sbb al, al
inc al
leave
ret 8

Function at 0x100818bc
Capabilities:
Check os version

Disassembly:
push esi
mov esi, ecx
push edi
push esi
mov dword [esi], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov edi, eax
test edi, edi
jne 0x100818da
mov ecx, 0x323658
jmp 0x100818f5
cmp dword [esi + 4], 6
jae 0x100818ea
mov ecx, 0x323659
call fcn.1006fff3
cmp dword [esi + 0x10], 2
je 0x100818fa
mov ecx, 0x32365a
call fcn.1006fff3
mov eax, edi
pop edi
pop esi
ret
Function at 0x100819bd
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10150ea7
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x101fe1c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x68], 0x40
push 0x80
mov ecx, 0x10207570
mov dword [0x10207570], ebx
call fcn.10073f8e
test al, al
je 0x10081bb3
mov eax, dword [0x10207570]
xor ecx, ecx
mov esi, dword [sym.imp.Secur32.dll_GetUserNameExW]
mov word [eax], cx
lea eax, [ebp - 0x68]
push eax
push dword [0x10207570]
push 0xc
call esi
test al, al
jne 0x10081b7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0xea
je 0x10081acc
cmp edi, 0x534
je 0x10081aac
cmp edi, 0x54b
je 0x10081aac
push ecx
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], 0xc
push eax
lea eax, [ebp - 0x64]
mov dword [ebp - 0x64], str.EXTENDED_NAME_FORMAT
push eax
lea ecx, [ebp - 0x60]
call fcn.1006ae41
push ecx
push edi
lea ecx, [ebp - 0x38]
mov esi, eax
call fcn.1008198e
push esi
push eax
lea eax, [ebp - 0x64]
mov dword [ebp - 0x64], str.GetUserNameExW_failed_1
push eax
push ecx
push ecx
mov ecx, 0x11ce1a1
call fcn.1008193e
lea ecx, [ebp - 0x28]
call fcn.100093c1
lea ecx, [ebp - 0x50]
call fcn.100093c1
mov eax, dword [0x10207570]
test eax, eax
je 0x10081bb3
mov dword [0x10207570], ebx
mov dword [ebp - 4], 1
push eax
jmp 0x10081bad
mov eax, dword [ebp - 0x68]
mov ecx, 0x10207570
add eax, eax
push eax
call fcn.10073f8e
test al, al
jne 0x10081afc
mov eax, dword [0x10207570]
test eax, eax
je 0x10081bb3
mov dword [0x10207570], ebx
mov dword [ebp - 4], 3
jmp 0x10081ac6
lea eax, [ebp - 0x68]
push eax
push dword [0x10207570]
push 0xc
pop edi
push edi
call esi
test al, al
jne 0x10081bb3
push ecx
lea eax, [ebp - 0x64]
mov dword [ebp - 0x64], edi
push eax
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], str.EXTENDED_NAME_FORMAT
push eax
lea ecx, [ebp - 0x38]
call fcn.1006ae41
lea ecx, [ebp - 0x60]
mov esi, eax
call fcn.10080d44
push esi
push eax
lea eax, [ebp - 0x64]
mov dword [ebp - 0x64], str.GetUserNameExW_failed_2
push eax
push ecx
push ecx
mov ecx, 0x11ce1a2
call fcn.1008193e
lea ecx, [ebp - 0x50]
call fcn.100093c1
lea ecx, [ebp - 0x28]
call fcn.100093c1
mov eax, dword [0x10207570]
test eax, eax
je 0x10081bb3
mov dword [0x10207570], ebx
mov dword [ebp - 4], 5
jmp 0x10081ac6
mov eax, dword [ebp - 0x68]
mov ecx, 0x10207570
lea edx, [eax*2 + 2]
call fcn.1006bab9
test al, al
jne 0x10081bb3
mov ecx, dword [0x10207570]
test ecx, ecx
je 0x10081bb3
mov dword [0x10207570], ebx
mov dword [ebp - 4], 7
push ecx
call fcn.1003bf94
pop ecx
mov eax, 0x10207570
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10033218
leave
ret
Function at 0x10086674
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1014cec5
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x101fe1c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov esi, dword [ebp + 0x14]
mov ebx, dword [ebp + 8]
push dword [ebp + 0x10]
mov dword [ecx], ebx
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edx
add ecx, 0x10
call fcn.1006b06a
mov edi, dword [ebp + 0x1c]
mov edx, ebx
movzx eax, byte [edi + 4]
push eax
push esi
push dword [ebp + 0xc]
mov esi, dword [ebp - 0x10]
push dword [ebp + 0x10]
lea ecx, [esi + 0x18]
call fcn.1009131c
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x24]
push dword [ebp + 0x34]
mov dword [esi + 0x20], eax
mov eax, dword [edi]
mov dword [esi + 0x24], eax
mov ax, word [edi + 4]
mov word [esi + 0x28], ax
mov eax, dword [ebp + 0x20]
mov dword [esi + 0x30], eax
mov eax, dword [ebp + 0x28]
mov dword [esi + 0x34], ecx
mov ecx, dword [ebp + 0x2c]
mov ax, word [eax]
mov word [esi + 0x38], ax
mov eax, dword [ecx]
mov dword [esi + 0x3a], eax
mov ax, word [ecx + 4]
lea ecx, [esi + 0x48]
mov word [esi + 0x3e], ax
mov eax, dword [ebp + 0x30]
mov dword [esi + 0x40], eax
call fcn.10085927
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x30

Function at 0x1008ced3
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1014cb26
mov eax, dword fs:[0]
push eax
mov eax, dword [0x101fe1c0]
push ecx
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
sub esp, 0x18
lea eax, [ecx + 0x100]
lea edx, [ecx + 0x10]
push eax
lea eax, [ecx + 0xe0]
push eax
lea eax, [ecx + 0xc4]
push eax
push ecx
push ecx
lea eax, [ecx + 0xa8]
push eax
lea eax, [ecx + 0x98]
push eax
lea eax, [ecx + 0x78]
push eax
lea eax, [ecx + 0x68]
push eax
lea eax, [ecx + 0x60]
push eax
lea eax, [ecx + 0x48]
push eax
lea eax, [ecx + 0x30]
push eax
lea eax, [ecx + 0x18]
mov ecx, dword [ebp + 8]
push eax
call fcn.1008baf8
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
leave
ret 4
Function at 0x100a6b1d
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
je 0x100a6c74
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x3c]
call fcn.100a7ed1
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x5c]
call fcn.100a7c75
mov edi, dword [ebp - 0x38]
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 4], eax
mov esi, dword [eax]
cmp esi, eax
je 0x100a6ba7
lea ebx, [esi + 8]
cmp byte [ebx + 0x18], 0
jne 0x100a6b7d
lea ecx, [ebx + 0x1c]
call fcn.100278ea
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x100a6b9d
push ebx
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x3c]
call fcn.1009826c
cmp dword [eax], edi
jne 0x100a6ba0
lea ecx, [ebx + 0x1c]
call fcn.100278ea
mov ecx, eax
call fcn.100d908e
mov edi, dword [ebp - 0x38]
mov esi, dword [esi]
mov eax, dword [ebp - 4]
jmp 0x100a6b5f
mov esi, dword [edi]
cmp esi, edi
je 0x100a6c0e
lea ebx, [esi + 8]
push ebx
call fcn.10096bb7
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x5c]
call fcn.10097a19
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebx + 0x18]
mov eax, dword [eax + 4]
test eax, eax
cmovne ecx, eax
cmp ecx, dword [ebp - 0x58]
sete al
test al, al
je 0x100a6bee
xor eax, eax
lea ecx, [edx + 0x10]
cmp byte [edx + 0x30], al
cmove ecx, eax
call fcn.1007248e
jmp 0x100a6c0a
push ecx
push dword [ebp + 0x10]
lea eax, [ecx + 0x24]
xor ecx, ecx
cmp byte [edx + 0x30], cl
push eax
lea eax, [edx + 0x10]
cmove eax, ecx
mov ecx, dword [ebp - 8]
push eax
call fcn.100a6c7b
mov esi, dword [esi]
jmp 0x100a6ba9
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x7c]
call fcn.100a7ed1
mov esi, eax
lea eax, [ebp - 0x3c]
cmp eax, esi
je 0x100a6c37
mov ecx, eax
call fcn.100a9227
mov ecx, dword [esi]
mov dword [ebp - 0x3c], ecx
lea ecx, [ebp - 0x3c]
push esi
call fcn.10092d06
lea ecx, [ebp - 0x7c]
call fcn.1002c068
cmp dword [ebp - 0x34], 0
jne 0x100a6c5c
mov ecx, dword [ebp + 8]
call fcn.1007248e
mov ecx, dword [ebp + 0xc]
call fcn.100278ea
mov ecx, eax
call fcn.100d908e
lea ecx, [ebp - 0x1c]
call fcn.1002f676
lea ecx, [ebp - 0x5c]
call fcn.100a673a
lea ecx, [ebp - 0x3c]
call fcn.1002c068
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x100a7a9d
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10152b0a
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x101fe1c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
cmp dword [ecx + 0x28], ebx
je 0x100a7b78
add ecx, 0x18
call fcn.100278ea
push ecx
push 0x80
push 3
push ebx
push 1
mov edx, 0x80000000
mov ecx, eax
call fcn.1002d630
mov esi, eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], ebx
cmp esi, 0xffffffff
je 0x100a7b78
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x100a7b18
mov dword [ebp - 4], 2
push esi
jmp 0x100a7b72
mov edi, dword [ebp - 0x20]
push ecx
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp + 8]
mov ecx, ebx
push edi
mov byte [ebp - 4], 3
call fcn.10014ac7
push 0
lea eax, [ebp - 0x14]
push eax
push edi
push dword [ebx]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100a7b59
cmp edi, dword [ebp - 0x14]
jne 0x100a7b59
push esi
mov dword [ebp - 4], 7
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x100a7b7a
mov dword [ebp - 4], 6
jmp 0x100a7b15
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x100a7c75
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10152b4a
mov eax, dword fs:[0]
push eax
sub esp, 0x2cc
mov eax, dword [0x101fe1c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x2d0], ebx
mov edi, ecx
push ecx
lea eax, [ebp - 0x2cc]
xor esi, esi
and dword [ebp - 0x2cc], esi
push eax
call fcn.100a64ef
cmp dword [ebx + 0x10], esi
je 0x100a7e67
push ebx
lea ecx, [ebp - 0x5c]
call fcn.10010dc7
push 0x1015ba10
lea ecx, [ebp - 0x5c]
call fcn.100113ec
push 0x1015bba0
mov ecx, eax
call fcn.100113ec
lea ecx, [ebp - 0x5c]
call fcn.100278ea
push esi
push esi
push esi
lea ecx, [ebp - 0x2c8]
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x100a7e5f
mov ecx, 0x10186db0
lea eax, [ebp - 0x29c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100a7d43
test dx, dx
je 0x100a7d3f
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100a7d43
add eax, 4
add ecx, 4
test dx, dx
jne 0x100a7d1d
mov eax, esi
jmp 0x100a7d48
sbb eax, eax
or eax, 1
test eax, eax
je 0x100a7e42
mov ecx, 0x1019e7cc
lea eax, [ebp - 0x29c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100a7d81
test dx, dx
je 0x100a7d7d
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100a7d81
add eax, 4
add ecx, 4
test dx, dx
jne 0x100a7d5b
mov eax, esi
jmp 0x100a7d86
sbb eax, eax
or eax, 1
test eax, eax
je 0x100a7e42
push dword [ebp - 0x2d0]
mov esi, dword [ebp - 0x2c8]
lea ecx, [ebp - 0x44]
call fcn.10010dc7
push 0x1015ba10
lea ecx, [ebp - 0x28]
call fcn.100111ba
push eax
lea ecx, [ebp - 0x44]
call fcn.1002d45a
lea ecx, [ebp - 0x28]
call fcn.100093c1
lea eax, [ebp - 0x29c]
push eax
lea ecx, [ebp - 0x28]
call fcn.100111ba
push eax
lea ecx, [ebp - 0x44]
call fcn.1002d45a
lea ecx, [ebp - 0x28]
call fcn.100093c1
lea eax, [ebp - 0x44]
test esi, 0x10
push eax
lea ecx, [ebp - 0x28]
setne byte [ebp - 0x2c]
call fcn.10005a36
lea eax, [ebp - 0x29c]
push eax
lea ecx, [ebp - 0x74]
call fcn.100111ba
push eax
lea eax, [ebp - 0x2d8]
mov ecx, edi
push eax
call fcn.100a6162
mov ecx, dword [eax]
mov al, byte [ebp - 0x2c]
mov byte [ecx + 0x20], al
lea eax, [ebp - 0x28]
push eax
add ecx, 0x24
call fcn.100057ca
lea ecx, [ebp - 0x74]
call fcn.100093c1
lea ecx, [ebp - 0x28]
call fcn.100093c1
lea ecx, [ebp - 0x44]
call fcn.100093c1
xor esi, esi
lea eax, [ebp - 0x2c8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100a7d12
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x5c]
call fcn.100093c1
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10033218
leave
ret
Function at 0x100a8983
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10152bb5
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x101fe1c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x68], eax
mov ebx, ecx
xor esi, esi
mov dword [ebp - 0x70], str._ServiceCacheRecord__WriteData
cmp dword [ebx + 0x10], esi
je 0x100a8b1a
test eax, eax
je 0x100a8b1a
mov edi, dword [ebp + 8]
test edi, edi
je 0x100a8b1a
call fcn.100278ea
push ecx
push 0x80
push 2
push esi
push esi
mov edx, 0x40000000
mov ecx, eax
call fcn.1002d630
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0xffffffff
jne 0x100a8adb
cmp eax, 3
jne 0x100a8a87
mov ecx, ebx
call fcn.100278ea
mov ecx, eax
call fcn.100d9762
test eax, eax
jne 0x100a8a61
push 4
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], str.Failed_to_create_a_directory_for_cache_file
push eax
lea eax, [ebp - 0x68]
mov dword [ebp - 0x68], 0x10186a84
push eax
lea ecx, [ebp - 0x3c]
call fcn.1006aea5
push eax
lea eax, [ebp - 0x70]
mov edx, 0x337
push eax
push ecx
push 0xa
mov ecx, 0x15068ce
call fcn.1006ad8d
lea ecx, [ebp - 0x2c]
call fcn.100093c1
jmp 0x100a8b1a
mov ecx, ebx
call fcn.100278ea
push ecx
push 0x80
push 2
push 0
push 0
mov edx, 0x40000000
mov ecx, eax
call fcn.1002d630
mov esi, eax
cmp esi, 0xffffffff
jne 0x100a8adb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
push eax
lea ecx, [ebp - 0x64]
call fcn.1008198e
mov esi, eax
mov dword [ebp - 0x68], str.Failed_to_open_cache_file
push 4
lea eax, [ebp - 0x68]
mov dword [ebp - 0x6c], 0x10186a84
push eax
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x3c]
call fcn.1006aea5
push esi
push eax
lea eax, [ebp - 0x70]
push eax
push ecx
push ecx
mov ecx, 0x84f4c1
call fcn.100a5e78
lea ecx, [ebp - 0x2c]
call fcn.100093c1
lea ecx, [ebp - 0x54]
jmp 0x100a8a57
push 0
lea eax, [ebp - 0x74]
push eax
push edi
push dword [ebp - 0x68]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100a8b07
cmp dword [ebp - 0x74], edi
jne 0x100a8b07
push esi
mov dword [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x100a8b1c
cmp esi, 0xffffffff
je 0x100a8b1a
push esi
mov dword [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10033218
leave
ret 4