joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10005040
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005c1d0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10070660]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call edi
test eax, eax
jne 0x100050a2
mov eax, dword [esi + 8]
mov esi, dword [esi + 0x14]
push 8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
dec eax
neg eax
sbb eax, eax
inc 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 4
mov eax, dword [ebp + 8]
push str.old_
add eax, 0x14
push eax
lea ecx, [ebp + 8]
push ecx
call fcn.10001510
lea edx, [esi + 0x10]
push edx
push eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], 0
call fcn.10003c80
add esp, 0x18
mov byte [ebp - 4], 2
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
or ebx, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100050f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x10]
push ecx
call edi
test eax, eax
je 0x10005106
lea edi, [ebp - 0x10]
call fcn.100051c0
mov edx, dword [ebp - 0x10]
mov eax, dword [esi + 8]
push edx
push eax
call fcn.100374fe
add esp, 8
test eax, eax
jne 0x10005183
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x14]
push 8
lea edi, [esi + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x1000516e
lea edi, [ebp - 0x10]
call fcn.100051c0
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x10005158
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.100051c0
mov esi, dword [esi + 8]
mov ecx, dword [ebp - 0x10]
push esi
push ecx
call fcn.100374fe
add esp, 8
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
lock xadd dword [edx], ebx
dec ebx
test ebx, ebx
jg 0x100051a2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100051c0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10005219
push esi
mov ecx, edi
lea esi, [ebp - 4]
call fcn.10020420
mov eax, dword [ebp - 4]
mov ecx, dword [edi]
push eax
push ecx
call fcn.100374fe
mov edx, dword [ebp - 4]
add esp, 8
push 4
push 0
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop esi
test edx, edx
jg 0x10005219
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esp, ebp
pop ebp
ret

Function at 0x10005e30
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005cc48
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10070660]
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]
mov eax, 1
test byte [0x100742c0], al
jne 0x10005e88
or dword [0x100742c0], eax
push 0x1005d310
mov dword [0x100742c4], 0x10061ea0
call fcn.10036a73
add esp, 4
mov eax, dword [esi + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10005ecb
xor eax, eax
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x2c], al
lea edx, [ebp - 0x2c]
lea ecx, [esi + 0x14]
mov dword [ebp - 4], eax
call fcn.100210d0
cmp dword [ebp - 0x18], 0x10
mov edi, eax
jb 0x10005ec7
mov eax, dword [ebp - 0x2c]
push eax
call fcn.100368b0
add esp, 4
mov eax, edi
jmp 0x10005ecd
xor eax, eax
test eax, eax
setne bl
test bl, bl
jne 0x10005ee0
mov ecx, dword [esi + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov al, bl
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.100368bb
mov esp, ebp
pop ebp
ret 4
Function at 0x10006df0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005c140
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x10070660]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea eax, [ebp - 0x3c]
push eax
call esi
mov ax, word [ebp - 0x3c]
cmp ax, 9
je 0x10006e37
cmp ax, 6
jne 0x10006e3e
mov ecx, 0x10062e90
jmp 0x10006e43
mov ecx, 0x10062eb4
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x10006e58
push 0x80004005
call fcn.10001c80
mov eax, dword [ebx + 0x10]
push ecx
push eax
call fcn.10037473
add esp, 8
test eax, eax
jne 0x10006ea3
lea esi, [ebp + 0xc]
call 0x10017650
mov ecx, dword [ebp + 8]
push eax
push ecx
mov edi, ebx
mov dword [ebp - 4], 0
call fcn.10006fe0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x10006fb8
lea ecx, [ebp - 0x3c]
push ecx
call esi
mov ax, word [ebp - 0x3c]
cmp ax, 9
je 0x10006eb9
cmp ax, 6
jne 0x10006ec0
mov ecx, str.FunWorks64Upd.dll
jmp 0x10006ec5
mov ecx, str.FunWorksUpd.dll
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x10006eda
push 0x80004005
call fcn.10001c80
mov eax, dword [ebx + 0x10]
push ecx
push eax
call fcn.10037473
add esp, 8
test eax, eax
jne 0x10006fc4
lea edx, [ebp - 0x3c]
push edx
call esi
mov ax, word [ebp - 0x3c]
cmp ax, 9
je 0x10006f05
cmp ax, 6
jne 0x10006f0c
mov esi, 0x10062f18
jmp 0x10006f11
mov esi, 0x10062f38
mov edi, dword [0x100742e4]
lea eax, [ebp - 0x18]
push eax
call fcn.10015930
push 0x10061e48
push eax
lea ecx, [ebp - 0x14]
push ecx
mov dword [ebp - 4], 1
call fcn.10001510
push esi
push eax
lea edx, [ebp - 0x10]
push edx
mov byte [ebp - 4], 2
call fcn.10001510
add esp, 0x1c
push eax
mov eax, dword [ebp + 8]
push eax
mov edi, ebx
mov byte [ebp - 4], 3
call fcn.10006fe0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10006f7b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
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 0x10006f9e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10006fc4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call 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 8
Function at 0x10007080
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, 1
test byte [0x100742a4], bl
jne 0x100070b5
or dword [0x100742a4], ebx
push 0x1005d290
mov dword [0x1007429c], 0
mov byte [0x100742a0], 0
call fcn.10036a73
add esp, 4
cmp byte [0x1007429f], 0
jne 0x100070de
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x14]
call fcn.10021e20
cmp eax, ebx
sete bl
test bl, bl
jne 0x100070dd
mov eax, dword [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
mov al, bl
pop ebx
pop ebp
ret 4

Function at 0x10007140
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005c0c6
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x10070660]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0
mov edi, dword [0x100742e4]
push eax
call fcn.10015930
push str._touch.daw
push eax
lea ecx, [ebp - 0x220]
push ecx
mov dword [ebp - 4], 0
call fcn.10001510
add esp, 0x10
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100071ca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x216]
push edx
mov word [ebp - 0x218], cx
call fcn.1003bac0
mov eax, dword [ebp - 0x220]
add esp, 0xc
push eax
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push str.0.0.0.0
push 0x10062f78
push str.confignail
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push esi
lea ecx, [ebp - 0x218]
call fcn.10001bb0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10007245
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100368bb
mov esp, ebp
pop ebp
ret
Function at 0x10009cb0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, eax
mov eax, 1
test byte [0x100742b0], al
jne 0x10009cea
or dword [0x100742b0], eax
xor eax, eax
push 0x1005d2e0
mov dword [0x100742b4], eax
mov dword [0x100742b8], eax
mov dword [0x100742bc], eax
call fcn.10036a73
add esp, 4
push str.Start_Update_Seed_
push 0x100742b4
call fcn.10021360
add esp, 8
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [ebp - 0x24]
cmp ax, 9
je 0x10009d16
cmp ax, 6
jne 0x10009d27
lea ecx, [esi + 0xc]
add esi, 0x18
push esi
call fcn.1000e9b0
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [esi + 8]
add esi, 0x18
push esi
call fcn.1000e9b0
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10009d40
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005bf28
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x10070660]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
test byte [0x100742b0], 1
jne 0x10009d99
or dword [0x100742b0], 1
push 0x1005d2e0
mov dword [0x100742b4], ebx
mov dword [0x100742b8], ebx
mov dword [0x100742bc], ebx
call fcn.10036a73
add esp, 4
push str.Start_Update_Works_
push 0x100742b4
call fcn.10021360
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
add esp, 8
mov ecx, section..data
call edx
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], ebx
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
push ecx
mov byte [ebp - 4], 1
call fcn.1000a0f0
cmp al, bl
jne 0x10009e08
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
jmp 0x10009f0c
lea ecx, [ebp - 0x14]
lea esi, [ebp - 0x10]
call fcn.10020420
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
push ecx
push esi
call fcn.100374fe
add esp, 8
test eax, eax
je 0x10009e6f
test byte [0x100742b0], 1
jne 0x10009e5a
or dword [0x100742b0], 1
push 0x1005d2e0
mov dword [0x100742b4], ebx
mov dword [0x100742b8], ebx
mov dword [0x100742bc], ebx
call fcn.10036a73
add esp, 4
mov edx, dword [ebp - 0x10]
push edx
push 0x10063480
mov esi, 0x100742b4
call fcn.10021480
jmp 0x10009ed0
mov ecx, dword [ebp - 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 8
push esi
push ecx
call edi
test eax, eax
je 0x10009eaf
push 0x100634f4
call fcn.100048d0
mov esi, eax
call fcn.10021480
mov edx, dword [ebp - 0x10]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10009ed3
mov eax, dword [ebp - 0x10]
push 4
push ebx
push eax
call edi
jmp 0x10009ed3
push str._AptNail__CRITICAL:
call fcn.100048d0
mov esi, eax
call fcn.10021480
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
add esp, 4
push ecx
push edx
call fcn.100374fe
add esp, 8
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10009ef6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10009f18
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10009f3e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call 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 0x10009f50
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005bee8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x10070660]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
mov ecx, ebx
call 0x10020120
add esp, 4
mov dword [ebp - 4], 0
mov edi, dword [0x100742e4]
lea esi, [ebp - 0x14]
call 0x100159d0
lea ecx, [ebp - 0x10]
push ecx
push eax
lea edx, [ebp + 8]
push edx
mov byte [ebp - 4], 1
call fcn.10003c80
add esp, 0xc
mov byte [ebp - 4], 3
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 0x10009fd6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebx]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 9
push ecx
push eax
call esi
test byte [0x100742b0], 1
mov edi, eax
jne 0x1000a017
or dword [0x100742b0], 1
xor eax, eax
push 0x1005d2e0
mov dword [0x100742b4], eax
mov dword [0x100742b8], eax
mov dword [0x100742bc], eax
call fcn.10036a73
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.Move_works_to_temp:__d___d
push 0x100742b4
call fcn.10021360
mov ebx, dword [ebx]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
add esp, 0x10
push 9
push ebx
push eax
call esi
test byte [0x100742b0], 1
mov esi, eax
jne 0x1000a06e
or dword [0x100742b0], 1
xor eax, eax
push 0x1005d2e0
mov dword [0x100742b4], eax
mov dword [0x100742b8], eax
mov dword [0x100742bc], eax
call fcn.10036a73
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Update_works:__d___d
push 0x100742b4
call fcn.10021360
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000a0ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000a0d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
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
Function at 0x1000a0f0
Capabilities:
Check if file exists
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005b488
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x10070660]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [0x100742e4]
lea esi, [ebp - 0x10]
call 0x100159d0
mov edx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
mov esi, dword [edx]
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x1000a183
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x1000a175
mov ebx, dword [eax]
cmp ebx, dword [esi]
jne 0x1000a175
call fcn.10001670
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x1000a16b
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp + 8]
add ebx, 0x10
mov dword [ecx], ebx
jmp 0x1000a180
mov eax, dword [ecx - 0xc]
push eax
push ecx
push edx
call fcn.10001ac0
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebx]
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x1000a1d4
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x1000a1c9
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x1000a1c9
call fcn.10001670
mov dword [ebp + 0xc], eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x1000a1bf
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp + 0xc]
add ecx, 0x10
mov dword [ebx], ecx
jmp 0x1000a1d4
mov eax, dword [ecx - 0xc]
push eax
push ecx
push ebx
call fcn.10001ac0
lea edx, [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [ebp - 0x34]
cmp ax, 9
je 0x1000a1ee
cmp ax, 6
jne 0x1000a207
mov eax, dword [ebp + 8]
push 0xf
push 0x10062d80
push eax
call fcn.100054f0
push 0x12
push 0x10062da0
jmp 0x1000a21e
mov ecx, dword [ebp + 8]
push 0xd
push 0x10062d40
push ecx
call fcn.100054f0
push 0x10
push 0x10062d5c
push ebx
call fcn.100054f0
mov eax, dword [ebx]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1000a259
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
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
Function at 0x1000a520
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005b9f8
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x10070660]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, ecx
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000a5f5
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1000a5f5
mov ecx, edi
lea esi, [ebp + 8]
call fcn.10020420
xor esi, esi
mov dword [ebp - 4], esi
mov ecx, dword [ebp + 8]
mov eax, dword [edi]
push ecx
push eax
call fcn.100374fe
add esp, 8
test eax, eax
jne 0x1000a5ab
mov edi, dword [edi]
mov ebx, dword [ebx]
push 8
push edi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
call ebx
mov edx, dword [ebp + 8]
push 4
push esi
push edx
mov edi, eax
call ebx
jmp 0x1000a5cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [edi]
push eax
push str.T_rT_
call fcn.100048d0
mov esi, eax
call fcn.10021480
add esp, 0xc
xor edi, edi
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000a607
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x1000a607
mov edi, dword [edi]
mov ebx, dword [ebx]
push 8
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor esi, esi
mov edi, eax
cmp edi, esi
je 0x1000a64e
test byte [0x100742b0], 1
jne 0x1000a63a
or dword [0x100742b0], 1
push 0x1005d2e0
mov dword [0x100742b4], esi
mov dword [0x100742b8], esi
mov dword [0x100742bc], esi
call fcn.10036a73
add esp, 4
push str.the_Update_file
mov esi, 0x100742b4
call fcn.10021480
add esp, 4
jmp 0x1000a698
call dword [sym.imp.KERNEL32.dll_GetLastError]
test byte [0x100742b0], 1
mov ebx, eax
jne 0x1000a685
or dword [0x100742b0], 1
push 0x1005d2e0
mov dword [0x100742b4], esi
mov dword [0x100742b8], esi
mov dword [0x100742bc], esi
call fcn.10036a73
add esp, 4
push ebx
push str.the_Update_file:
mov esi, 0x100742b4
call fcn.10021480
add esp, 8
xor eax, eax
cmp edi, 1
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1000aba0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005be68
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10070660]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea esi, [ebp - 0x14]
call fcn.1000acb0
mov edi, dword [ebp + 8]
add edi, 4
mov dword [ebp - 4], 0
mov ecx, dword [eax]
mov esi, dword [edi]
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x1000ac2d
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x1000ac22
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x1000ac22
call fcn.10001670
mov dword [ebp - 0x10], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x1000ac18
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
mov dword [edi], ecx
jmp 0x1000ac2d
mov eax, dword [ecx - 0xc]
push eax
push ecx
push edi
call fcn.10001ac0
mov dword [ebp - 4], 0xffffffff
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 0x1000ac53
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, dword [ebp + 8]
test eax, eax
je 0x1000ac91
mov ecx, esi
call fcn.1000ad40
test eax, eax
je 0x1000ac91
mov ecx, dword [edi]
push ecx
mov dword [esi], 1
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [esi], 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 4
Function at 0x1000c470
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100586a8
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x10070660]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x54], 0
jne 0x1000c566
mov eax, dword [ebp + 8]
push 0x40
push 1
push eax
call fcn.10036102
add esp, 0xc
test eax, eax
je 0x1000c566
lea edx, [esi + 0x18]
mov dword [esi + 0x20], edx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov byte [esi + 0x50], 1
mov byte [esi + 0x4a], 0
lea ecx, [esi + 8]
mov dword [esi + 0x10], ecx
lea edx, [esi + 0x28]
mov dword [esi + 0x30], edx
lea ecx, [esi + 0xc]
mov dword [esi + 0x14], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [ecx], 0
mov ecx, dword [esi + 0x24]
mov dword [ecx], 0
mov edx, dword [esi + 0x34]
mov dword [edx], 0
mov ecx, dword [esi + 0x10]
mov dword [ecx], 0
mov edx, dword [esi + 0x20]
mov dword [edx], 0
mov ecx, dword [esi + 0x30]
mov edx, dword [0x100742d0]
mov dword [ecx], 0
mov dword [esi + 0x54], eax
lea edi, [ebp + 8]
mov eax, esi
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], 0
call fcn.1000ca60
mov edi, eax
mov dword [ebp - 4], 0
call fcn.1000cca0
mov edi, eax
call fcn.1000c760
lea ecx, [ebp + 8]
call fcn.1000e1b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4