joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10019b70
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101defe1
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x1025e344]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.100049d0
mov ecx, eax
test ecx, ecx
je 0x10019c95
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x264], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x264]
push 0x101fe8a0
call fcn.10004060
test al, al
jne 0x10019be9
push 0
push 0x101fe8a0
lea ecx, [ebp - 0x264]
call fcn.10006ab0
mov dword [ebp - 4], 1
mov eax, dword [ebp + 8]
test eax, eax
je 0x10019c01
cmp eax, 4
jne 0x10019c10
lea eax, [esi + 0x18]
jmp 0x10019c04
lea eax, [esi + 0x14]
push eax
lea ecx, [ebp - 0x264]
call fcn.100079d0
mov esi, dword [ebp - 0x264]
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10019c52
cmp dword [ebp - 0x244], 0
jl 0x10019c49
jg 0x10019c42
cmp dword [ebp - 0x240], 0x6400000
jbe 0x10019c49
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x10019c59
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10019c78
mov ecx, dword [esi]
push esi
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 ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100d02f2
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.10004040
int3
Function at 0x1001cf70
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101dfb08
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x1025e344]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea ebx, [ecx + 4]
push dword [ebx]
xor esi, esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or edi, 0xffffffff
test eax, eax
je 0x1001d02c
call fcn.100049d0
mov ecx, eax
test ecx, ecx
je 0x1001d061
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
push str.ignore
call fcn.10004060
test al, al
jne 0x1001cfef
push 6
push str.ignore
lea ecx, [ebp - 0x10]
call fcn.10006ab0
mov byte [ebp - 4], 2
lea eax, [ebp + 8]
push ebx
push 0
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.100be760
add esp, 0x10
lea esi, [eax - 1]
neg esi
sbb esi, esi
inc esi
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001d02c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x1001d04b
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
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
push 0x80004005
call fcn.10004040
int3
Function at 0x1001f5d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101e02c0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x1025e344]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 1
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1001f60e
mov esi, dword [ebp + 0x10]
jmp 0x1001f624
push esi
push dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
call fcn.100be760
add esp, 0x10
mov esi, eax
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov edx, dword [ebp + 8]
mov ecx, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x1001f645
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x1001f664
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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 0xc
Function at 0x1001f680
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101e0349
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1025e344]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 3
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1001f724
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
push eax
call fcn.100041a0
mov edi, dword [ebp + 8]
add eax, 0x10
add esp, 4
mov dword [edi], eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x10], 1
mov byte [ebp - 4], 2
or esi, 0xffffffff
mov edx, dword [ebp + 0xc]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001f704
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001f722
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x1001f783
mov edi, dword [ebp + 8]
lea eax, [ebp + 0x14]
push esi
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0xc]
push eax
push edi
call fcn.100be850
add esp, 0x14
mov dword [ebp - 0x10], 1
mov byte [ebp - 4], 2
or esi, 0xffffffff
mov edx, dword [ebp + 0xc]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001f765
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001f783
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x1001f7a2
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
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 0x10
Function at 0x100274d0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101e1ed8
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x1025e344]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x10027525
cmp eax, 4
jne 0x10027548
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
push eax
push dword [esi + 0x10]
jmp 0x10027540
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
push eax
push dword [esi + 0xc]
call fcn.100be4c0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10007910
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x10029640
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
cmp dword [edx + 0x14], 0x10
mov ebx, ecx
mov edi, dword [edx + 0x10]
jb 0x10029656
mov edx, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
test edi, edi
je 0x10029672
movzx eax, byte [ecx + edx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edi
jb 0x10029661
mov eax, dword [ebx + 0x18]
pop edi
and eax, esi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x1002b8d0
Capabilities:
Empty the recycle bin

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101e2ae9
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x1025e344]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], 0
mov esi, dword [ebp + 8]
test esi, esi
je 0x1002ba7a
mov eax, dword [esi]
mov ecx, esi
push 1
push 1
mov eax, dword [eax + 0x10]
call eax
push 7
push 0
push 0
mov ebx, eax
mov dword [ebp - 0x14], edx
call dword [sym.imp.SHELL32.dll_SHEmptyRecycleBinW]
mov dword [ebp - 4], 0
lea ecx, [esi + 0x14]
push ecx
lea ecx, [ebp - 0x20]
call fcn.10029fe0
mov esi, dword [ebp - 0x1c]
xor edx, edx
mov ecx, dword [ebp - 0x20]
sub esi, ecx
add esi, 3
mov dword [ebp - 0x10], 1
shr esi, 2
cmp ecx, dword [ebp - 0x1c]
cmova esi, edx
test esi, esi
je 0x1002b971
nop
mov eax, dword [ecx]
lea ecx, [ecx + 4]
inc edx
mov dword [eax + 0x40], 1
cmp edx, esi
jne 0x1002b960
mov eax, 1
mov dword [ebp - 0x10], eax
and eax, 0xfffffffe
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.10019380
lea ecx, [ebp - 0x48]
call fcn.1002a0a0
mov dword [ebp - 4], 1
mov eax, dword [edi + 4]
mov dword [ebp - 0x40], 4
mov dword [ebp - 0x3c], 8
mov dword [ebp - 0x34], 2
mov eax, dword [eax]
mov edx, dword [eax + 0x3c]
add edx, 0x11c
cmp dword [edx + 0x14], 8
jb 0x1002b9c8
mov edx, dword [edx]
test edx, edx
jne 0x1002b9d0
xor ecx, ecx
jmp 0x1002b9e4
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002b9d5
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.10006ab0
mov eax, dword [edi + 4]
mov eax, dword [eax]
mov edx, dword [eax + 0x3c]
add edx, 0xdc
cmp dword [edx + 0x14], 8
jb 0x1002ba04
mov edx, dword [edx]
test edx, edx
jne 0x1002ba0c
xor ecx, ecx
jmp 0x1002ba20
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002ba11
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.10006ab0
push 3
push 0x102035f0
lea ecx, [ebp - 0x38]
call fcn.10006ab0
mov eax, dword [ebp - 0x14]
sub esp, 0x28
mov dword [ebp - 0x44], eax
mov ecx, esp
lea eax, [ebp - 0x48]
mov dword [ebp + 8], esp
mov dword [ebp - 0x48], ebx
push eax
call fcn.1002b530
mov byte [ebp - 4], 2
mov eax, dword [edi + 4]
mov ecx, dword [edi + 4]
mov eax, dword [eax + 4]
mov eax, dword [eax]
mov byte [ebp - 4], 1
mov ecx, dword [ecx + 4]
call dword [eax]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.1002a250
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 0x1002e4b0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101e3382
mov eax, dword fs:[0]
push eax
mov eax, 0x28cc
call fcn.100d0310
mov eax, dword [0x1025e344]
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 dword [ebp - 0x28c8], ebx
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1460]
push 0x1450
push 0
push eax
call fcn.101a08b0
add esp, 0xc
lea eax, [ebp - 0x1460]
push dword [ebp + 8]
push 0xa28
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
mov dword [ebp - 0x28bc], 0
mov dword [ebp - 0x28b8], 0
mov dword [ebp - 0x28b4], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28bc]
push ecx
push eax
lea eax, [ebp - 0x1460]
mov ecx, ebx
push eax
call fcn.1002e280
mov eax, dword [ebp - 0x28b8]
or ebx, 0xffffffff
mov edi, dword [ebp - 0x28bc]
mov dword [ebp - 0x28cc], eax
cmp edi, eax
je 0x1002e630
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.100041a0
mov dword [ebp - 0x28c0], eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x28d0], esi
mov byte [ebp - 4], 3
lea eax, [ebp - 0x28b0]
push 0x1450
push 0
push eax
call fcn.101a08b0
add esp, 0x10
lea eax, [ebp - 0x28b0]
push dword [ebp + 8]
push 0xa28
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
push ecx
mov ebx, esp
mov dword [ebp - 0x28d4], esp
push dword [ebp - 0x28c0]
mov dword [ebp - 0x28c4], eax
mov dword [ebp - 0x28d8], ebx
call fcn.100041a0
add eax, 0x10
add esp, 4
mov dword [ebx], eax
mov byte [ebp - 4], 5
lea eax, [ebp - 0x28b0]
push dword [ebp - 0x28c4]
push eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x28c8]
call fcn.1002df30
mov byte [ebp - 4], 1
or ebx, 0xffffffff
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1002e621
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 4
cmp edi, dword [ebp - 0x28cc]
jne 0x1002e571
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28bc]
call fcn.10007990
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x1002e65e
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.100d02f2
mov esp, ebp
pop ebp
ret 4
Function at 0x100313e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101e3c16
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x1025e344]
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 dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x48], 0
lea esi, [edi + 8]
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x1003147c
push esi
call fcn.1000a0a0
add esp, 4
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1003147c
mov eax, dword [edi + 0xc]
cmp dword [eax - 0xc], 0
je 0x1003147c
mov dword [ebp - 4], 0
push dword [esi]
lea ecx, [edi + 0x14]
call fcn.100d6790
push 0xa
lea ecx, [edi + 0x14]
call fcn.100d6910
push dword [edi + 0xc]
lea ecx, [edi + 0x14]
call fcn.100d6930
test al, al
jne 0x1003149a
lea ecx, [edi + 0x14]
call fcn.100d5f10
mov dword [ebp - 4], 0xffffffff
xor eax, eax
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.100d02f2
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
mov eax, 1
jmp 0x1003147e
Function at 0x10062170
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101ed967
mov eax, dword fs:[0]
push eax
sub esp, 0x2dc
mov eax, dword [0x1025e344]
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 dword [ebp - 0x10], esp
mov esi, ecx
push 0x208
push 0
lea eax, [ebp - 0x21c]
push eax
call fcn.101a08b0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x21c]
push eax
push dword [0x10268bc8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x21c]
cmp dword [ebp + 8], 4
jne 0x100621f2
push dword [0x1025e138]
jmp 0x100621f8
push dword [0x1025e134]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov dword [ebp - 4], 0
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100623a3
lea eax, [ebp - 0x21c]
push eax
mov ecx, esi
call fcn.10003d10
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x10062233
mov eax, dword [esi]
push 0xfde9
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.100d15d0
add esp, 0xc
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 0x10
jb 0x10062254
mov eax, dword [eax]
push dword [0x1025e13c]
push eax
lea ecx, [esi + 0x18]
call fcn.100d6880
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x234]
call fcn.10007910
mov eax, 1
jmp 0x100623ac
mov dword [ebp - 4], 0xffffffff
xor eax, eax
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.100d02f2
mov esp, ebp
pop ebp
ret 4
Function at 0x100623d0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101ed9ee
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x1025e344]
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 dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 4], 1
xor ebx, ebx
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], ebx
je 0x100625c3
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], ebx
je 0x100625c3
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
call fcn.10003710
mov byte [ebp - 4], 3
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.SELECT__FROM__s_WHERE_id_s_
lea eax, [ebp - 0x48]
push eax
call fcn.10004840
add esp, 0x10
lea ecx, [ebp - 0x2c]
call fcn.100d5870
mov byte [ebp - 4], 4
push dword [ebp - 0x48]
lea eax, [ebp - 0x44]
push eax
lea ecx, [esi + 0x18]
call fcn.100d6300
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x2c]
call fcn.100d5ad0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x44]
call fcn.100d5990
lea ecx, [ebp - 0x2c]
call fcn.100d6040
test al, al
sete bl
mov dword [ebp - 0x4c], ebx
lea ecx, [ebp - 0x2c]
call fcn.100d6510
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.100d5990
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
call fcn.10003950
mov dword [ebp - 4], 1
jmp 0x100625c3
mov byte [ebp - 4], 0
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100625e4
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x10062603
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, ebx
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.100d02f2
mov esp, ebp
pop ebp
ret 8
Function at 0x1006bda0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
push 1
lea eax, [ebp - 0x20]
mov edi, ecx
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
cmp dword [edi + 0x100], 4
lea eax, [ebp - 0x20]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], 0
jne 0x1006bdee
push dword [0x1025e154]
jmp 0x1006bdf4
push dword [0x1025e150]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x1006be17
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1006be1f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov dword [edi + 0xf4], esi
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1007e290
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101f2ff9
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x1025e344]
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]
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], 0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
push 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push 0x10200ce4
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.10014280
mov byte [ebp - 4], 2
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1007e31c
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0xc]
call fcn.100be360
add esp, 8
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0xfde9
cmovae eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.100d1710
add esp, 0xc
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x1007e345
mov eax, dword [eax]
push eax
mov ecx, esi
call fcn.10003660
mov dword [ebp - 0x44], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.10003a70
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.10007910
mov dword [ebp - 4], 0
or ecx, 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x1007e38e
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
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.100d02f2
mov esp, ebp
pop ebp
ret
Function at 0x10080900
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101f3561
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x1025e344]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov eax, dword [0x10268bbc]
test al, 1
jne 0x10080964
or eax, 1
mov dword [0x10268bbc], eax
mov byte [ebp - 4], 1
push 0x10268ba4
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x101fda40
call fcn.100d02dd
add esp, 4
mov byte [ebp - 4], 0
push 0x10268ba4
mov dword [ebp - 0x424], 0x10268ba4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 2
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1008099a
xor esi, esi
jmp 0x10080a66
cmp dword [ebp + 0x1c], 8
lea eax, [ebp - 0x420]
push 0x208
xorps xmm0, xmm0
mov dword [ebp - 0x42c], 0
push 0
lea esi, [ebp + 8]
movq qword [ebp - 0x434], xmm0
cmovae esi, dword [ebp + 8]
push eax
movups xmmword [ebp - 0x444], xmm0
mov word [ebp - 0x428], 0
call fcn.101a08b0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.101a08b0
add esp, 0x18
lea eax, [ebp - 0x218]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x218]
mov dword [ebp - 0x444], 0
mov dword [ebp - 0x43c], eax
lea eax, [ebp - 0x420]
mov dword [ebp - 0x438], eax
mov eax, 0x54
mov word [ebp - 0x434], ax
lea eax, [ebp - 0x444]
push eax
mov dword [ebp - 0x440], 3
mov dword [ebp - 0x432], 0
mov dword [ebp - 0x42e], 0
mov dword [ebp - 0x42a], 0
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov esi, eax
mov byte [ebp - 4], 0
push 0x10268ba4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x424], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10003a70
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.100d02f2
mov esp, ebp
pop ebp
ret