joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001a1a0
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x1006e31b
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x1008ab54]
xor eax, esp
mov dword [esp + 0x238], eax
push esi
push edi
mov eax, dword [0x1008ab54]
xor eax, esp
push eax
lea eax, [esp + 0x248]
mov dword fs:[0], eax
push 0
push 2
mov esi, ecx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x1001a280
push 0x228
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.1004b150
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push edi
mov dword [esp + 0x1c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x1001a279
lea ebx, [ebx]
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x3c]
call fcn.10001890
push eax
mov dword [esp + 0x254], 0
call fcn.1001aa00
mov dword [esp + 0x250], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1001a26a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1001a220
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x248]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.10048e2f
add esp, 0x248
ret
Function at 0x1001dd50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006f250
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x1008ab54]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov esi, edx
xor ebx, ebx
push 0x10077b2c
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.10013140
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x1001ddc8
lea ecx, [ebp - 0x28]
call fcn.10068e33
push ebx
push ebx
push esi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.10068e49
test eax, eax
jne 0x1001de00
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.1006922c
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1001ddeb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x28]
call fcn.1006935f
test eax, eax
je 0x1001de36
test ebx, ebx
je 0x1001de22
push 1
push 0x1007a590
mov ecx, edi
call fcn.10001ec0
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, edi
call fcn.10001ec0
add ebx, 1
jmp 0x1001de00
lea ecx, [ebp - 0x28]
call fcn.100691f0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.1006922c
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1001de6d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001de90
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006d5a0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x1008ab54]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov esi, edx
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.10068e33
mov ebx, 1
push esi
mov byte [ebp - 4], bl
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, ebx
push 0
lea ecx, [ebp - 0x28]
je 0x1001df15
push 0x1002
push esi
call fcn.10068e49
test eax, eax
jne 0x1001df18
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], al
call fcn.1006922c
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
jmp 0x1001deeb
mov eax, dword [edi]
sub eax, 0x10
cmp dword [eax + 0xc], ebx
jle 0x1001df2d
mov eax, dword [eax + 4]
push eax
mov ecx, edi
call fcn.10001bc0
mov eax, dword [edi]
push eax
lea ecx, [ebp - 0x14]
call fcn.10012a90
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
cmp dword [eax - 4], ebx
mov esi, dword [eax - 0xc]
jle 0x1001df55
mov ecx, esi
push ecx
lea ecx, [ebp - 0x14]
call fcn.10001a90
mov eax, dword [ebp - 0x14]
push esi
push eax
lea ecx, [ebp - 0x28]
call fcn.10068fd8
lea ecx, [ebp - 0x28]
call fcn.100691f0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1001df89
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.1006922c
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001dfb0
Capabilities:
Access peb ldr_data
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x1006e2b8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x1008ab54]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
xor ecx, ecx
mov eax, 0x200
mov dword [esp + 0xc], eax
mov edx, 2
xor edi, edi
mul edx
seto cl
mov dword [esp + 0x10], 1
neg ecx
or ecx, eax
push ecx
call fcn.1003efb3
mov esi, eax
mov eax, dword [esp + 0x10]
lea ecx, [eax + eax]
push ecx
push edi
push esi
call fcn.1004b150
add esp, 0x10
mov ecx, 0x10093418
call fcn.10002060
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x14]
push edx
push 0x20019
push edi
push str.SOFTWAREQuanDuoDuo_
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [esp + 0x10]
cmp eax, 1
jne 0x1001e09e
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0xc]
push ecx
push esi
lea edx, [esp + 0x18]
push edx
push edi
push str.360SE6
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1001e090
cmp esi, edi
je 0x1001e07f
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x1001e070
sub eax, edx
sar eax, 1
push eax
push esi
mov ecx, 0x10093418
call fcn.10001ec0
mov edi, 1
push esi
call fcn.1003efae
add esp, 4
jmp 0x1001e150
cmp eax, 4
jne 0x1001e150
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x18]
push eax
push edi
push str.360SE6
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
jne 0x1001e150
call fcn.10040589
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x1001e0e9
push 0x80004005
call fcn.10001100
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], edi
mov ecx, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push 0x10079f9c
push edx
call fcn.10012ec0
mov esi, dword [esp + 0x24]
mov eax, dword [esi - 0xc]
add esp, 0xc
push eax
push esi
mov ecx, 0x10093418
call fcn.10001ec0
lea eax, [esi - 0x10]
mov edi, 1
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1001e150
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret
Function at 0x1001e6e0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x1006ce40
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x1008ab54]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
sub eax, 0x10
push eax
mov dword [esp + 0x18], 4
call fcn.10001d80
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
xor ebx, ebx
mov dword [esp + 0x28], ebx
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx]
sub eax, 0x10
push eax
call fcn.10001d80
lea esi, [eax + 0x10]
add esp, 8
mov dword [esp + 0x38], esi
mov byte [esp + 0x24], 1
cmp dword [edi - 4], 1
jle 0x1001e75f
mov edx, dword [edi - 0xc]
push edx
lea ecx, [esp + 0x14]
call fcn.10001bc0
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x34]
push eax
push 0x20019
push ebx
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x1001e7d3
lea eax, [esi - 0x10]
or ecx, 0xffffffff
lea edx, [eax + 0xc]
mov byte [esp + 0x24], bl
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1001e79a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1001e7be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret
cmp dword [esi - 4], 1
jle 0x1001e7ea
mov ecx, dword [esi - 0xc]
push ecx
lea ecx, [esp + 0x3c]
call fcn.10001bc0
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x38]
push eax
lea ecx, [esp + 0x20]
push ecx
push ebx
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
je 0x1001e82e
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
mov byte [esp + 0x24], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x1001e78e
cmp dword [esp + 0x18], 4
mov ecx, dword [esp + 0x34]
push ecx
je 0x1001e845
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1001e77a
cmp dword [esp + 0x18], 4
jne 0x1001e83a
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 0xfffffff0
mov byte [esp + 0x24], bl
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x1001e872
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add edi, 0xfffffff0
mov dword [esp + 0x24], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1001e896
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret
Function at 0x1001eb00
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x1006ce10
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1008ab54]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.10001d80
lea edi, [eax + 0x10]
mov dword [esp + 0x38], edi
mov dword [esp + 0x28], 0
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx]
sub eax, 0x10
push eax
call fcn.10001d80
lea esi, [eax + 0x10]
add esp, 8
mov dword [esp + 0x38], esi
mov ebx, 1
mov byte [esp + 0x24], bl
cmp dword [edi - 4], ebx
jle 0x1001eb81
mov edx, dword [edi - 0xc]
push edx
lea ecx, [esp + 0x38]
call fcn.10001bc0
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x14]
push eax
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x1001ebf1
lea eax, [esi - 0x10]
mov byte [esp + 0x24], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1001ebb7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1001ebdb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov eax, dword [ebp]
cmp dword [eax - 4], ebx
mov ecx, dword [eax - 0xc]
mov dword [esp + 0x18], ecx
jle 0x1001ec0a
mov edx, ecx
push edx
mov ecx, ebp
call fcn.10001bc0
cmp dword [esi - 4], ebx
mov ebp, dword [ebp]
jle 0x1001ec23
mov eax, dword [esi - 0xc]
push eax
lea ecx, [esp + 0x3c]
call fcn.10001bc0
mov esi, dword [esp + 0x38]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
lea edx, [ecx + ecx + 2]
push edx
push ebp
push ebx
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 0x14]
xor ebx, ebx
test eax, eax
push ecx
sete bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
mov byte [esp + 0x24], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1001ec6f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1001ec93
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x1001ecb0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x1006cde0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x1008ab54]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.10001d80
lea edi, [eax + 0x10]
mov dword [esp + 0x30], edi
mov dword [esp + 0x20], 0
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx]
sub eax, 0x10
push eax
call fcn.10001d80
lea esi, [eax + 0x10]
add esp, 8
mov dword [esp + 0x30], esi
mov ebx, 1
mov byte [esp + 0x1c], bl
cmp dword [edi - 4], ebx
jle 0x1001ed2a
mov edx, dword [edi - 0xc]
push edx
lea ecx, [esp + 0x30]
call fcn.10001bc0
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x10]
push eax
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x1001ed99
lea eax, [esi - 0x10]
mov byte [esp + 0x1c], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1001ed60
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1001ed84
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret
cmp dword [esi - 4], ebx
jle 0x1001edaf
mov ecx, dword [esi - 0xc]
push ecx
lea ecx, [esp + 0x34]
call fcn.10001bc0
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x10]
push 4
lea edx, [esp + 0x28]
push edx
push 4
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 0x10]
xor ebx, ebx
test eax, eax
push ecx
sete bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
mov byte [esp + 0x1c], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1001edf9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1001ee1d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x1001f090
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x1006d52b
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x1008ab54]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
mov eax, dword [0x1008ab54]
xor eax, esp
push eax
lea eax, [esp + 0x218]
mov dword fs:[0], eax
mov dword [esp + 8], 0
mov eax, dword [0x1009087c]
mov edx, dword [eax + 0xc]
mov ecx, 0x1009087c
call edx
lea esi, [eax + 0x10]
mov dword [esp + 8], esi
push 0x206
lea eax, [esp + 0x12]
push 0
mov dword [esp + 0x228], 0
push eax
mov word [esp + 0x18], 0
call fcn.1004b150
add esp, 0xc
push 0
push 0x1a
lea ecx, [esp + 0x14]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1001f152
lea eax, [esp + 0xc]
lea edx, [eax + 2]
jmp 0x1001f130
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1001f130
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x10]
call fcn.10001fc0
mov esi, dword [esp + 8]
add esi, 0xfffffff0
push esi
call fcn.10001d80
add eax, 0x10
mov dword [edi], eax
or eax, 0xffffffff
lea edx, [esi + 0xc]
mov dword [esp + 0x224], eax
add esp, 4
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x1001f183
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, edi
mov ecx, dword [esp + 0x218]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.10048e2f
add esp, 0x21c
ret

Function at 0x1001f1b0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x1006d52b
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x1008ab54]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
mov eax, dword [0x1008ab54]
xor eax, esp
push eax
lea eax, [esp + 0x218]
mov dword fs:[0], eax
mov dword [esp + 8], 0
mov eax, dword [0x1009087c]
mov edx, dword [eax + 0xc]
mov ecx, 0x1009087c
call edx
lea esi, [eax + 0x10]
mov dword [esp + 8], esi
push 0x206
lea eax, [esp + 0x12]
push 0
mov dword [esp + 0x228], 0
push eax
mov word [esp + 0x18], 0
call fcn.1004b150
add esp, 0xc
push 0
push 0x1c
lea ecx, [esp + 0x14]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1001f272
lea eax, [esp + 0xc]
lea edx, [eax + 2]
jmp 0x1001f250
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1001f250
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x10]
call fcn.10001fc0
mov esi, dword [esp + 8]
add esi, 0xfffffff0
push esi
call fcn.10001d80
add eax, 0x10
mov dword [edi], eax
or eax, 0xffffffff
lea edx, [esi + 0xc]
mov dword [esp + 0x224], eax
add esp, 4
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x1001f2a3
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, edi
mov ecx, dword [esp + 0x218]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.10048e2f
add esp, 0x21c
ret
Function at 0x1001f2d0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x214
mov eax, dword [0x1008ab54]
xor eax, esp
mov dword [esp + 0x210], eax
push 0x208
lea eax, [esp + 0xa]
push 0
push eax
mov dword [esp + 0xc], 0
mov word [esp + 0x10], 0
call fcn.1004b150
add esp, 0xc
push 0
push 0x10
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp eax, 1
push esi
lea ecx, [esp + 8]
je 0x1001f327
mov ecx, 0x10077b2c
call fcn.10001890
mov ecx, dword [esp + 0x210]
xor ecx, esp
mov eax, esi
call fcn.10048e2f
add esp, 0x214
ret

Function at 0x1001f350
Capabilities:
Get common file path

Disassembly:
sub esp, 0x214
mov eax, dword [0x1008ab54]
xor eax, esp
mov dword [esp + 0x210], eax
push 0x208
lea eax, [esp + 0xa]
push 0
push eax
mov dword [esp + 0xc], 0
mov word [esp + 0x10], 0
call fcn.1004b150
add esp, 0xc
push 0
push 0x19
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp eax, 1
push esi
lea ecx, [esp + 8]
je 0x1001f3a7
mov ecx, 0x10077b2c
call fcn.10001890
mov ecx, dword [esp + 0x210]
xor ecx, esp
mov eax, esi
call fcn.10048e2f
add esp, 0x214
ret

Function at 0x1001f4b0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push eax
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1001f592
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x1001f579
push ebp
push edi
push 0x80000
call fcn.1003efb3
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 4
push ebx
lea ecx, [esp + 0x14]
push ecx
push 0x80000
mov edi, eax
push edi
push esi
mov dword [esp + 0x24], ebx
call ebp
test eax, eax
je 0x1001f555
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
push edx
push edi
call fcn.100019a0
add ebx, dword [esp + 0x10]
cmp ebx, dword [esp + 0x18]
jae 0x1001f55d
push 0
lea eax, [esp + 0x14]
push eax
push 0x80000
push edi
push esi
mov dword [esp + 0x24], 0
call ebp
test eax, eax
jne 0x1001f520
mov dword [esp + 0x14], 3
push edi
call fcn.1003efae
add esp, 4
pop edi
pop ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xc]
pop esi
pop ebx
add esp, 0xc
ret
push esi
mov dword [esp + 0x10], 2
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xc]
pop esi
pop ebx
add esp, 0xc
ret
pop esi
mov eax, 1
pop ebx
add esp, 0xc
ret
Function at 0x1001f5a0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
xor esi, esi
push esi
push 0x80
push 2
push esi
push 1
push 0xc0000000
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1001f5d8
pop edi
lea eax, [esi + 1]
pop esi
pop ebx
add esp, 8
ret
mov edx, dword [esp + 0x18]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
lea ecx, [esp + 0x14]
push ecx
push ebx
push edx
push edi
mov dword [esp + 0x24], esi
call ebp
test eax, eax
je 0x1001f621
add esi, dword [esp + 0x10]
cmp esi, ebx
jae 0x1001f637
mov edx, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x14]
push eax
mov ecx, ebx
sub ecx, esi
push ecx
lea eax, [esi + edx]
push eax
push edi
mov dword [esp + 0x24], 0
call ebp
test eax, eax
jne 0x1001f5f6
push edi
mov esi, 2
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 8
ret
mov esi, dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 8
ret