joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10034270
Capabilities:
Create directory
Delete file
Set file attributes
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008286b
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x100a6250]
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, dword [ebp + 8]
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebx - 4]
call fcn.10031dc0
mov dword [ebp - 4], 0
call fcn.1002c590
mov edi, eax
test edi, edi
je 0x1003441d
mov ecx, dword [ebx + 0x94]
mov esi, dword [ecx]
cmp esi, ecx
je 0x100342f1
lea ecx, [esi + 8]
call fcn.10036e40
test eax, eax
je 0x100342e7
push edi
lea ecx, [esi + 8]
call fcn.1003a8e0
mov esi, dword [esi]
cmp esi, dword [ebx + 0x94]
jne 0x100342d2
push edi
call fcn.1002c8a0
add esp, 4
mov dword [ebp - 0x21c], eax
test eax, eax
je 0x10034414
mov edx, SysReAllocString
mov ecx, eax
nop
cmp byte [ecx], 0
je 0x1003431b
inc ecx
sub edx, 1
jne 0x10034310
mov eax, SysReAllocString
mov esi, edx
sub eax, edx
neg esi
sbb esi, esi
and esi, eax
test edx, edx
je 0x10034405
mov ebx, dword [ebp - 0x220]
push 0x80
push ebx
mov dword [ebp - 0x224], ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100456c0
lea ecx, [ebp - 0x218]
add esp, 0xc
mov eax, ecx
mov edx, 0x104
sub ebx, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x10034394
movzx eax, word [ebx + ecx]
test ax, ax
je 0x10034394
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x10034376
lea eax, [ecx - 2]
test edx, edx
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10034405
push 0
lea eax, [ebp - 0x224]
push eax
push esi
mov esi, dword [ebp - 0x21c]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1003440b
mov esi, dword [ebp - 0x21c]
push esi
call fcn.100492e8
add esp, 4
push edi
call fcn.1002c6d0
add esp, 4
mov edx, dword [ebp - 0x220]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10034442
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.1001a767
mov esp, ebp
pop ebp
ret 4
Function at 0x10038bc0
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008230b
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x100a6250]
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, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
mov dword [ebp - 0x224], esi
call fcn.100456c0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0
push 0x1c
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.10031430
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push dword [eax]
lea eax, [ebp - 0x218]
push eax
call edi
mov edx, dword [ebp - 0x220]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10038c78
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebx]
lea eax, [ebp - 0x218]
push eax
call edi
push 0
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push str.loopconfig.dat
lea eax, [ebp - 0x218]
push eax
call edi
call fcn.10031f30
mov ecx, eax
test ecx, ecx
je 0x10038d1f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
test eax, 0xffff0000
jne 0x10038cd8
movzx eax, ax
mov ecx, esi
push eax
call fcn.100336b0
jmp 0x10038cff
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10038ce1
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.10007190
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.1001a767
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.10006e50
int3
Function at 0x10039730
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [ebp + 8]
mov dword [ebx], 0
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x100397b7
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [edi], eax
test eax, eax
jle 0x100397a6
add eax, 8
push eax
call fcn.1001a71b
mov dword [ebx], eax
mov ecx, dword [edi]
add ecx, 8
push ecx
push 0
push eax
call fcn.100456c0
add esp, 0x10
lea eax, [ebp + 0xc]
push 0
push eax
push dword [edi]
push dword [ebx]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x100397c0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 4]
cmp esi, dword [edi + 8]
je 0x10039836
mov ecx, dword [esi]
call fcn.10036ec0
cmp eax, 2
je 0x100397ea
add esi, 4
cmp esi, dword [edi + 8]
jne 0x100397d0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi]
lea eax, [ebp - 4]
push eax
call fcn.10036e20
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 4]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10039818
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi + 8]
lea ecx, [esi + 4]
sub eax, ecx
push eax
push ecx
push esi
call fcn.10045bd0
add esp, 0xc
add dword [edi + 8], 0xfffffffc
mov dword [edi + 0x10], 0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10039840
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10083042
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x100a6250]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x1c], eax
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov edi, dword [eax + 4]
cmp edi, dword [eax + 8]
je 0x100399b9
mov eax, dword [edi]
lea edx, [ebp - 0x28]
mov esi, dword [ebp + 8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx]
mov dword [ebp - 0x20], eax
or ebx, 1
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
test esi, esi
je 0x100398b7
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
test esi, esi
je 0x100399cd
mov eax, dword [ebp - 0x20]
push 0
push 0x400
push esi
push dword [eax]
call sub.OLEAUT32.dll_VarR8Pow
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ebx, eax
call esi
cmp ebx, 1
jne 0x10039936
mov eax, dword [edi]
lea edx, [ebp - 0x24]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
mov ebx, eax
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp + 0xc]
or ecx, 2
mov dword [ebp - 4], 1
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
test eax, eax
jne 0x10039902
xor esi, esi
jmp 0x10039913
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
test esi, esi
je 0x100399cd
push 0
push 0x400
push esi
push dword [ebx]
call sub.OLEAUT32.dll_VarR8Pow
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ebx, eax
call esi
mov byte [ebp - 0xd], 1
cmp ebx, 1
je 0x1003993a
mov byte [ebp - 0xd], 0
mov ebx, dword [ebp - 0x14]
test bl, 2
je 0x1003994a
push dword [ebp - 0x24]
and ebx, 0xfffffffd
call esi
push dword [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
and ebx, 0xfffffffe
call esi
cmp byte [ebp - 0xd], 0
jne 0x1003996a
mov eax, dword [ebp - 0x1c]
add edi, 4
jmp 0x10039875
mov ecx, dword [edi]
lea eax, [ebp + 8]
push eax
call fcn.10036e20
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp + 8]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10039998
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x1c]
lea ecx, [edi + 4]
mov eax, dword [ebx + 8]
sub eax, ecx
push eax
push ecx
push edi
call fcn.10045bd0
add esp, 0xc
add dword [ebx + 8], 0xfffffffc
mov dword [ebx + 0x10], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x8007000e
call fcn.10006e50
int3
Function at 0x1003a5b0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10083198
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x100a6250]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea ecx, [edi + 0xc]
mov dword [edi], vtable.Loop::CLibLoopTaskItem.0
call fcn.10008c00
lea ecx, [edi + 0x10]
mov dword [ebp - 4], 0
call fcn.10008c00
lea ecx, [edi + 0x18]
call fcn.10008c00
lea ecx, [edi + 0x1c]
call fcn.10008c00
lea ecx, [edi + 0x20]
call fcn.10008c00
lea ecx, [edi + 0x24]
call fcn.10008c00
lea ecx, [edi + 0x28]
call fcn.10008c00
lea ecx, [edi + 0x30]
call fcn.10008c00
push 0
push 0x10087e70
lea ecx, [edi + 0x20]
mov byte [ebp - 4], 7
mov dword [edi + 8], 0
mov dword [edi + 0x14], 0
mov dword [edi + 4], 0
call fcn.10007190
mov dword [edi + 0x2c], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1003a670
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10080570
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x100a6250]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov edx, dword [edi + 0x30]
or esi, 0xffffffff
mov dword [edi], vtable.Loop::CLibLoopTaskItem.0
sub edx, 0x10
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003a6b9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [edi + 0x28]
mov eax, esi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003a6d3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [edi + 0x24]
mov eax, esi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003a6ed
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [edi + 0x20]
mov eax, esi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003a707
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [edi + 0x1c]
mov eax, esi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003a721
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [edi + 0x18]
mov eax, esi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003a73b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [edi + 0x10]
mov eax, esi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003a755
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [edi + 0xc]
sub edx, 0x10
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x1003a76d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1003af10
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100810e8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100a6250]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], 0x610048
mov dword [ebp - 0x24], 0x6f006c
mov dword [ebp - 0x20], 0x700057
mov dword [ebp - 0x1c], 0x65002e
mov dword [ebp - 0x18], 0x650078
mov word [ebp - 0x14], ax
call fcn.10006f60
mov ecx, eax
test ecx, ecx
je 0x1003afd9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.10008d80
test al, al
jne 0x1003afbb
lea ecx, [ebp - 0x28]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003afa0
sub ecx, edx
lea eax, [ebp - 0x28]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.10007190
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001a767
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.10006e50
int3
Function at 0x1003cc00
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
jne 0x1003cc39
cmp dword [esi + 0xc], 0
jne 0x1003cc39
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push esi
push 0x1003cc50
push 0
push 0
mov dword [esi + 0x10], eax
call fcn.1004e045
add esp, 0x18
mov dword [esi + 0xc], eax
pop esi
ret

Function at 0x1003d460
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
cmp dword [edi + 0xc], 0
jne 0x1003d4be
cmp dword [edi + 0x10], 0
jne 0x1003d4be
cmp dword [edi + 8], 0
jne 0x1003d4be
mov eax, dword [ebp + 8]
push 0
push 0
push 1
mov dword [edi], eax
mov eax, dword [ebp + 0xc]
push 0
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 0
push 0
mov dword [edi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push edi
push 0x1003d8a0
push 0
push 0
mov dword [edi + 0x10], eax
call fcn.1004e045
add esp, 0x18
mov dword [edi + 8], eax
mov eax, 1
pop edi
pop ebp
ret 8
Function at 0x1003dc70
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10081938
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x100a6250]
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 esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], 0x6f0053
mov dword [ebp - 0x3c], 0x740066
mov dword [ebp - 0x38], 0x610077
mov dword [ebp - 0x34], 0x650072
mov dword [ebp - 0x30], 0x48005c
mov dword [ebp - 0x2c], 0x6c0061
mov dword [ebp - 0x28], 0x57006f
mov dword [ebp - 0x24], 0x6c0061
mov dword [ebp - 0x20], 0x50006c
mov dword [ebp - 0x1c], 0x700061
mov dword [ebp - 0x18], 0x720065
mov word [ebp - 0x14], ax
call fcn.10006f60
mov ecx, eax
test ecx, ecx
je 0x1003dd6b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
test eax, 0xffff0000
jne 0x1003dd27
movzx eax, ax
mov ecx, esi
push eax
call fcn.100336b0
jmp 0x1003dd4b
lea ecx, [ebp - 0x40]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003dd30
sub ecx, edx
lea eax, [ebp - 0x40]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.10007190
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.1001a767
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.10006e50
int3
Function at 0x1003df10
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x100a6250]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.100456c0
mov esi, dword [ebp + 8]
add esp, 0xc
test esi, esi
je 0x1003e095
mov ecx, esi
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003df50
sub ecx, edx
sar ecx, 1
je 0x1003e095
lea ecx, [ebp - 0x20c]
mov edx, 0x104
mov eax, ecx
sub esi, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x1003df92
movzx eax, word [esi + ecx]
test ax, ax
je 0x1003df92
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x1003df74
lea eax, [ecx - 2]
test edx, edx
push edi
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x20d]
call fcn.1003dba0
push dword [eax]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
mov edx, dword [ebp - 0x214]
or edi, 0xffffffff
mov esi, eax
add edx, 0xfffffff0
mov ecx, edi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x1003dfe3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x1003e094
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x20d]
call fcn.1003dba0
mov ecx, dword [eax]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003e002
sub ecx, edx
lea eax, [ebp - 0x20c]
mov edx, dword [ebp - 0x214]
sub esi, eax
sar ecx, 1
add edx, 0xfffffff0
sar esi, 1
add esi, ecx
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x1003e038
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003e041
sub ecx, edx
sar ecx, 1
cmp ecx, esi
jbe 0x1003e094
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
je 0x1003e093
lea eax, [ebp - 0x20c]
push eax
call ebx
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1003e080
sub eax, edx
sar eax, 1
cmp eax, esi
ja 0x1003e061
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1001a767
mov esp, ebp
pop ebp
ret
Function at 0x1003ec00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10083698
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x100a6250]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 4], 0
test ecx, ecx
je 0x1003ec55
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x1003ec55
push 1
push 0x10087e6c
lea ecx, [ebp + 8]
call fcn.100170b0
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0xd]
call fcn.1003dc70
cmp dword [ebp + 0x1c], 8
lea edx, [ebp + 8]
mov ecx, dword [ebp + 0x18]
cmovae edx, dword [ebp + 8]
add ecx, ecx
push ecx
push edx
push 1
push str.downloadpath
push dword [eax]
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov edx, dword [ebp - 0x14]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003eca2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x1003ecd8
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1003ecce
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003ece9
push edx
push ecx
call fcn.1001a759
add esp, 8
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
call fcn.1004906c
int3
Function at 0x1003f550
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100837ba
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x100a6250]
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 edi, ecx
mov dword [ebp - 0x428], edi
mov dword [ebp - 0x42c], edi
lea eax, [edi + 8]
mov dword [edi], vtable.CSmartLogger.0
push eax
mov dword [edi + 4], vtable._BaseModule::CCriticalSection.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - 4], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov byte [ebp - 4], 1
call fcn.10031f30
mov ecx, eax
test ecx, ecx
je 0x1003f75e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x2c], eax
push 0x1008e520
push 0
mov byte [ebp - 4], 2
mov dword [edi + 0x30], 1
call fcn.1004f997
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100456c0
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
add esp, 0x14
push 0
push 0x1a
push eax
push 0
call esi
push 0
push 0x1c
lea eax, [ebp - 0x218]
push eax
push 0
call esi
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x421]
call fcn.1003f7f0
push dword [eax]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edx, dword [ebp - 0x428]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003f66f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.100456c0
add esp, 0xc
lea eax, [ebp - 0x428]
lea ecx, [ebp - 0x421]
push eax
call fcn.1003f9c0
push dword [eax]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov edx, dword [ebp - 0x428]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003f6ca
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [0x100aa558], eax
lea ecx, [ebp - 0x421]
lea eax, [ebp - 0x428]
push eax
call fcn.1003f8c0
push dword [eax]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edx, dword [ebp - 0x428]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x1003f718
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [ebp - 0x218]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1003f721
sub edx, esi
lea eax, [ebp - 0x218]
sar edx, 1
lea ecx, [edi + 0x2c]
push edx
push eax
call fcn.10007190
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.1001a767
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10006e50
int3