joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005b560
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101073a8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x10137920]
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, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
push esi
mov ebx, edi
mov dword [ebp - 0x54], eax
mov dword [ebp - 4], 0
call fcn.1005b7d0
cmp dword [ebp + 0x14], 0
jne 0x1005b64c
push esi
mov esi, edi
call fcn.1005b910
mov ebx, dword [ebp + 0xc]
push ebx
call fcn.1005ba10
push ebx
call fcn.1005bb10
push ebx
call fcn.1005bc20
lea edx, [edi + 0x10]
lea ecx, [edi + 0x2c]
push edx
lea esi, [ebp - 0x4c]
mov dword [ebp - 4], 0xffffffff
call fcn.1005ad60
add esp, 4
lea ebx, [edi + 0x48]
push eax
mov ecx, ebx
mov dword [ebp - 4], 2
call fcn.10009ca0
mov esi, 8
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x38], esi
jb 0x1005b618
mov eax, dword [ebp - 0x4c]
push eax
call fcn.10065453
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], 0
mov word [ebp - 0x4c], cx
cmp byte [edi + 0x64], cl
je 0x1005b653
cmp dword [ebx + 0x14], esi
jb 0x1005b638
mov ebx, dword [ebx]
push 0
push ebx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov edx, dword [ebp - 0x54]
mov dword [edx], 0
xor eax, eax
jmp 0x1005b732
lea esi, [ebp - 0x30]
call fcn.1005acb0
mov dword [ebp - 4], 3
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x1005b66d
mov eax, esi
xor edi, edi
push edi
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov eax, ebx
lea esi, [ebp - 0x50]
call fcn.1005ae90
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x50]
cmp esi, edi
jne 0x1005b6c9
cmp dword [ebx + 0x14], 8
mov dword [ebx + 0x10], edi
jb 0x1005b698
mov ebx, dword [ebx]
xor eax, eax
mov word [ebx], ax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x1005b6b1
and eax, 0xffff
or eax, 0x80070000
cmp dword [ebp - 0x1c], 8
mov esi, eax
jb 0x1005b6c5
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.10065453
add esp, 4
mov eax, esi
jmp 0x1005b732
push 0xc
call fcn.100656b5
mov ebx, eax
add esp, 4
cmp ebx, edi
je 0x1005b71c
mov dword [ebx], vtable.SevenZip::intl::OutStreamWrapper.0
mov dword [ebx + 4], edi
mov dword [ebx + 8], esi
mov edx, dword [esi]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebx]
mov edx, dword [ecx + 4]
push ebx
call edx
mov eax, dword [ebp - 0x54]
mov byte [ebp - 4], 3
mov dword [eax], ebx
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
push esi
call edx
cmp dword [ebp - 0x1c], 8
jb 0x1005b718
mov eax, dword [ebp - 0x30]
push eax
call fcn.10065453
add esp, 4
xor eax, eax
jmp 0x1005b732
xor ebx, ebx
jmp 0x1005b6f5
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.1006656c
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1005b750
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x58], 0
je 0x1005b7c2
cmp byte [esi + 0x6c], 0
je 0x1005b7a6
cmp dword [esi + 0x5c], 8
lea eax, [esi + 0x48]
jb 0x1005b76e
mov eax, dword [eax]
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1005b7a5
lea eax, [esi + 0x70]
push eax
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
cmp byte [esi + 0x65], 0
je 0x1005b7c2
cmp dword [esi + 0x5c], 8
lea eax, [esi + 0x48]
jb 0x1005b7b7
mov eax, dword [eax]
mov ecx, dword [esi + 0x68]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop esi
pop ebp
ret 8
Function at 0x1005c4d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
cmp eax, edx
jne 0x1005c4e5
mov eax, 3
pop ebp
ret 4
cmp byte [eax + 3], dl
jbe 0x1005c4f3
mov eax, 8
pop ebp
ret 4
movzx ecx, word [eax]
push esi
mov esi, 0xe0
cmp cx, si
pop esi
jb 0x1005c4dc
mov word [0x1013a450], cx
mov cx, word [eax + 2]
mov word [0x1013a452], cx
mov ecx, dword [eax + 0x3c]
mov dword [0x1013a48c], ecx
mov ecx, dword [eax + 4]
mov dword [0x1013a454], ecx
mov ecx, dword [eax + 0x40]
mov dword [0x1013a490], ecx
mov ecx, dword [eax + 8]
mov dword [0x1013a458], ecx
mov ecx, dword [eax + 0xc]
mov dword [0x1013a45c], ecx
mov ecx, dword [eax + 0x10]
mov dword [0x1013a460], ecx
mov ecx, dword [eax + 0x14]
mov dword [0x1013a464], ecx
mov ecx, dword [eax + 0x18]
mov dword [0x1013a468], ecx
mov ecx, dword [eax + 0x1c]
mov dword [0x1013a46c], ecx
mov ecx, dword [eax + 0x20]
mov dword [0x1013a470], ecx
mov ecx, dword [eax + 0x24]
mov dword [0x1013a474], ecx
mov ecx, dword [eax + 0x28]
mov dword [0x1013a478], ecx
mov ecx, dword [eax + 0x2c]
mov dword [0x1013a47c], ecx
mov ecx, dword [eax + 0x30]
mov dword [0x1013a480], ecx
mov dword [0x1013a484], edx
mov dword [0x1013a488], edx
mov edx, dword [eax + 0x44]
mov dword [0x1013a494], edx
mov ecx, dword [eax + 0x48]
mov dword [0x1013a498], ecx
mov edx, dword [eax + 0x4c]
mov dword [0x1013a49c], edx
mov ecx, dword [eax + 0x50]
mov dword [0x1013a4a0], ecx
mov edx, dword [eax + 0x54]
mov dword [0x1013a4a4], edx
mov ecx, dword [eax + 0x58]
mov dword [0x1013a4a8], ecx
mov edx, dword [eax + 0x5c]
mov dword [0x1013a4ac], edx
mov ecx, dword [eax + 0x60]
mov dword [0x1013a4b0], ecx
mov edx, dword [eax + 0x64]
mov dword [0x1013a4b4], edx
mov ecx, dword [eax + 0x68]
mov dword [0x1013a4b8], ecx
mov edx, dword [eax + 0x6c]
mov dword [0x1013a4bc], edx
mov ecx, dword [eax + 0x70]
mov dword [0x1013a4c0], ecx
mov edx, dword [eax + 0x74]
mov dword [0x1013a4c4], edx
mov ecx, dword [eax + 0x78]
mov dword [0x1013a4c8], ecx
mov edx, dword [eax + 0x7c]
mov dword [0x1013a4cc], edx
mov ecx, dword [eax + 0x80]
mov dword [0x1013a4d0], ecx
mov edx, dword [eax + 0x84]
mov dword [0x1013a4d4], edx
mov ecx, dword [eax + 0x88]
mov dword [0x1013a4d8], ecx
mov edx, dword [eax + 0x8c]
mov dword [0x1013a4dc], edx
mov ecx, dword [eax + 0x90]
mov dword [0x1013a4e0], ecx
mov edx, dword [eax + 0x94]
mov dword [0x1013a4e4], edx
mov ecx, dword [eax + 0x98]
mov dword [0x1013a4e8], ecx
mov edx, dword [eax + 0x9c]
mov dword [0x1013a4ec], edx
mov eax, dword [eax + 0xa0]
mov dword [0x1013a4f0], eax
xor eax, eax
pop ebp
ret 4
Function at 0x10062ad0
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10137920]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.10019850
cmp eax, 1
jne 0x10062afa
mov al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006656c
mov esp, ebp
pop ebp
ret
push ebx
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0xc]
push ecx
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x10062b46
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor edx, edx
cmp eax, 1
sete al
xor ecx, ebp
pop ebx
call fcn.1006656c
mov esp, ebp
pop ebp
ret
Function at 0x10062f10
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10104259
mov eax, dword fs:[0]
push eax
sub esp, 0x2a0
mov eax, dword [0x10137920]
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, ecx
xor edi, edi
mov dword [ebp - 4], edi
call fcn.10062ad0
test al, al
jne 0x10063143
mov eax, dword [esi + 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [esi + 0x90]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call ebx
push 0x206
lea eax, [ebp - 0x216]
xor edx, edx
push edi
push eax
mov word [ebp - 0x218], dx
call fcn.10066620
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0xffffffffffffffff
push edi
xor edx, edx
push esi
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], edi
mov word [ebp - 0x234], dx
call fcn.1000b050
push 0x38
lea eax, [ebp - 0x2a8]
push edi
push eax
mov byte [ebp - 4], 1
call fcn.10066620
lea ecx, [ebp - 0x218]
add esp, 0xc
mov dword [ebp - 0x2ac], 0x3c
mov dword [ebp - 0x2a8], 0x440
mov dword [ebp - 0x29c], ecx
call fcn.10019930
mov dword [ebp - 0x2a0], str.runas
test al, al
jne 0x1006301a
mov dword [ebp - 0x2a0], str.open
mov esi, 8
mov dword [ebp - 0x294], edi
cmp dword [ebp + 0x1c], esi
jb 0x10063035
mov edx, dword [ebp + 8]
mov dword [ebp - 0x298], edx
jmp 0x1006303e
lea eax, [ebp + 8]
mov dword [ebp - 0x298], eax
lea ecx, [ebp - 0x2ac]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x10063083
mov eax, dword [ebp - 0x274]
lea edx, [ebp - 0x270]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x270], 0x103
jne 0x100630fe
mov ecx, dword [ebp - 0x274]
push ecx
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea edx, [ebp - 0x250]
push edx
call fcn.100192e0
push eax
lea eax, [ebp - 0x26c]
push eax
mov byte [ebp - 4], 2
call fcn.1000b1b0
add esp, 0xc
mov byte [ebp - 4], 4
cmp dword [ebp - 0x23c], esi
jb 0x100630be
mov ecx, dword [ebp - 0x250]
push ecx
call fcn.10065453
add esp, 4
lea eax, [ebp - 0x26c]
xor edx, edx
push eax
mov dword [ebp - 0x23c], 7
mov dword [ebp - 0x240], edi
mov word [ebp - 0x250], dx
call fcn.100019c0
add esp, 4
cmp dword [ebp - 0x258], 0x10
jb 0x100630fe
mov ecx, dword [ebp - 0x26c]
push ecx
call fcn.10065453
add esp, 4
cmp dword [ebp - 0x220], esi
jb 0x10063115
mov edx, dword [ebp - 0x234]
push edx
call fcn.10065453
add esp, 4
xor eax, eax
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], edi
mov word [ebp - 0x234], ax
cmp dword [ebp + 0x1c], esi
jb 0x1006313f
mov ecx, dword [ebp + 8]
push ecx
call fcn.10065453
add esp, 4
xor al, al
jmp 0x10063157
cmp dword [ebp + 0x1c], 8
jb 0x10063155
mov edx, dword [ebp + 8]
push edx
call fcn.10065453
add esp, 4
mov al, 1
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.1006656c
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x1006656c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10137920]
jne 0x10066576
repz ret
jmp fcn.1006cbbc

Function at 0x10078051
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10137920]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.1006c646
and dword [ebp - 0x14], 0
cmp dword [0x1013b304], 0
mov dword [ebp - 0x18], eax
jne 0x10078104
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x100781ac
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x100781ac
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1013b304], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1013b308], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1013b30c], eax
call edi
push eax
call esi
mov dword [0x1013b314], eax
test eax, eax
je 0x10078104
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1013b310], eax
mov eax, dword [0x1013b310]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x1007815d
cmp dword [0x1013b314], ecx
je 0x1007815d
push eax
call esi
push dword [0x1013b314]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1007815d
test ebx, ebx
je 0x1007815d
call edi
test eax, eax
je 0x10078154
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10078154
test byte [ebp - 8], 1
jne 0x1007815d
or dword [ebp + 0x10], 0x200000
jmp 0x10078190
mov eax, dword [0x1013b308]
cmp eax, dword [ebp - 0x18]
je 0x10078190
push eax
call esi
test eax, eax
je 0x10078190
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10078190
mov eax, dword [0x1013b30c]
cmp eax, dword [ebp - 0x18]
je 0x10078190
push eax
call esi
test eax, eax
je 0x10078190
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1013b304]
call esi
test eax, eax
je 0x100781ac
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x100781ae
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006656c
leave
ret
Function at 0x10086370
Capabilities:
Encode data using xor
Encrypt data using xxtea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ecx]
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 8], esi
cmp edi, 1
jle 0x10086465
mov eax, 0x34
cdq
idiv edi
mov esi, dword [ecx + edi*4 - 4]
add eax, 6
test eax, eax
jle 0x1008645c
dec eax
sub ebx, 0x61c88647
mov dword [ebp - 0xc], eax
mov eax, ebx
shr eax, 2
and eax, 3
dec edi
xor edx, edx
mov dword [ebp + 8], ebx
mov dword [ebp - 4], eax
test edi, edi
jle 0x10086410
mov eax, dword [ecx + edx*4 + 4]
mov ebx, eax
mov dword [ebp - 8], eax
add eax, eax
mov edi, esi
shr ebx, 3
add eax, eax
shl edi, 4
xor edi, ebx
mov ebx, esi
shr ebx, 5
xor ebx, eax
mov eax, edx
and eax, 3
xor eax, dword [ebp - 4]
add edi, ebx
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx + eax*4]
xor eax, esi
mov esi, dword [ebp + 8]
xor esi, dword [ebp - 8]
inc edx
add eax, esi
xor edi, eax
add dword [ecx + edx*4 - 4], edi
mov eax, dword [ebp + 0xc]
mov esi, dword [ecx + edx*4 - 4]
dec eax
cmp edx, eax
jl 0x100863c5
mov eax, dword [ecx]
mov ebx, eax
shr ebx, 3
mov edi, esi
shl edi, 4
xor edi, ebx
add eax, eax
add eax, eax
mov ebx, esi
and edx, 3
xor edx, dword [ebp - 4]
shr ebx, 5
xor ebx, eax
mov eax, dword [ebp + 0x10]
mov edx, dword [eax + edx*4]
add edi, ebx
mov ebx, dword [ebp + 8]
mov eax, ebx
xor eax, dword [ecx]
xor edx, esi
add edx, eax
xor edi, edx
mov eax, edi
mov edi, dword [ebp + 0xc]
add dword [ecx + edi*4 - 4], eax
mov eax, dword [ebp - 0xc]
mov esi, dword [ecx + edi*4 - 4]
test eax, eax
jg 0x100863a6
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, 0xffffffff
jge 0x10086548
mov eax, 0x34
cdq
neg edi
idiv edi
mov dword [ebp + 0xc], edi
add eax, 6
imul eax, eax, 0x9e3779b9
mov dword [ebp + 8], eax
test eax, eax
je 0x1008653f
jmp 0x10086494
mov edi, dword [ebp + 0xc]
shr eax, 2
and eax, 3
lea edx, [edi - 1]
mov dword [ebp - 4], eax
test edx, edx
jle 0x100864ee
mov edi, dword [ecx + edx*4 - 4]
mov ebx, esi
shr ebx, 3
add esi, esi
mov eax, edi
shl eax, 4
xor eax, ebx
add esi, esi
mov ebx, edi
shr ebx, 5
xor ebx, esi
mov esi, edx
and esi, 3
xor esi, dword [ebp - 4]
add eax, ebx
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebx + esi*4]
xor esi, edi
mov edi, dword [ebp + 8]
xor edi, dword [ebp - 8]
dec edx
add esi, edi
xor eax, esi
sub dword [ecx + edx*4 + 4], eax
mov esi, dword [ecx + edx*4 + 4]
mov dword [ebp - 8], esi
test edx, edx
jg 0x100864a4
mov edi, dword [ebp + 0xc]
mov eax, dword [ecx + edi*4 - 4]
mov ebx, eax
shl ebx, 4
mov edi, esi
shr edi, 3
xor edi, ebx
shr eax, 5
lea ebx, [esi*4]
xor eax, ebx
and edx, 3
xor edx, dword [ebp - 4]
add edi, eax
mov eax, dword [ebp + 0x10]
mov edx, dword [eax + edx*4]
mov eax, dword [ebp + 0xc]
xor edx, dword [ecx + eax*4 - 4]
mov eax, dword [ebp + 8]
mov ebx, eax
xor ebx, esi
add edx, ebx
xor edi, edx
sub dword [ecx], edi
mov esi, dword [ecx]
add eax, 0x61c88647
mov dword [ebp - 8], esi
mov dword [ebp + 8], eax
jne 0x10086491
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100877c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, eax
cmp byte [esi + 0xb], 0
jne 0x100878e0
mov eax, dword [esi + 0x74]
push ebx
xor ebx, ebx
push edi
cmp eax, ebx
je 0x100877f2
jmp 0x100877e0
mov edi, dword [eax + 0x18]
push eax
call fcn.10082dd0
add esp, 4
mov eax, edi
cmp edi, ebx
jne 0x100877e0
mov eax, dword [esi + 0xc0]
push eax
mov dword [esi + 0x68], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0xbc], ebx
call fcn.10082dd0
mov cl, byte [esi + 0xa]
add esp, 4
mov dword [esi + 0x34], ebx
mov dword [esi + 0xc0], ebx
cmp cl, 2
jb 0x100878c3
cmp byte [esi + 0x11], bl
je 0x100878e2
mov edi, dword [esi + 0x74]
cmp edi, ebx
je 0x100878a6
cmp byte [edi + 0x26], 0
je 0x1008789f
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x2c]
add ecx, eax
lea ebx, [ecx + edi + 0x38]
mov ecx, dword [ebx]
test ecx, ecx
je 0x1008785e
push eax
push ecx
lea edx, [edi + 0x38]
push edx
call fcn.10065960
add esp, 0xc
mov eax, dword [ebx]
push eax
call fcn.10082dd0
mov ecx, dword [ebx + 4]
push ecx
call fcn.10082dd0
xor ecx, ecx
mov dword [ebx], ecx
mov dword [ebx + 4], ecx
mov byte [edi + 0x26], cl
mov word [edi + 0x24], cx
mov dword [edi + 0x1c], ecx
mov dword [edi + 0x20], ecx
mov eax, dword [esi + 0xb0]
add esp, 8
cmp eax, ecx
je 0x1008789d
mov edx, dword [esi + 0x30]
push edx
lea ecx, [edi + 0x38]
push ecx
call eax
add esp, 8
xor ebx, ebx
mov edi, dword [edi + 0x18]
cmp edi, ebx
jne 0x10087838
mov edx, dword [esi + 0x18]
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x78], ebx
mov ebx, esi
mov dword [esi + 0x14], edx
call fcn.10086f00
mov byte [esi + 5], 0
mov byte [esi + 0xa], 1
xor ebx, ebx
mov eax, dword [esi + 0x58]
push ebx
push eax
call fcn.100a2d40
add esp, 8
pop edi
mov dword [esi + 0x3c], ebx
mov byte [esi + 0xa], 0
mov dword [esi + 0x14], 0xffffffff
pop ebx
pop esi
ret
cmp byte [esi + 0xf], bl
je 0x10087947
cmp byte [esi], bl
je 0x10087947
mov al, byte [esi + 0xb]
test al, al
je 0x10087904
cmp al, 0xd
je 0x10087904
cmp cl, 4
jb 0x100878c3
mov eax, esi
call fcn.10086b30
jmp 0x100878c3
cmp cl, 2
jne 0x1008791b
call fcn.100853e0
mov ebx, eax
call fcn.100868a0
test ebx, ebx
jne 0x10087924
jmp 0x10087922
mov eax, esi
call fcn.10086b30
mov ebx, eax
mov dword [esi + 0x14], 0xffffffff
cmp ebx, 0xd
je 0x1008793f
cmp ebx, 0xa
je 0x1008793f
cmp ebx, 0xb
je 0x1008793f
cmp ebx, 0xf
jne 0x100878c1
mov byte [esi + 0xb], bl
jmp 0x100878c1
call fcn.100868a0
mov dword [esi + 0x14], 0xffffffff
jmp 0x100878c3
Function at 0x10098790
Capabilities:
Reference sql statements

Disassembly:
cmp edi, 2
jge 0x1009879b
mov eax, 0x17
ret
movzx ecx, byte [ebx]
movzx eax, byte [ebx + edi - 1]
movzx eax, byte [eax + 0x101134f8]
movzx edx, byte [ecx + 0x101134f8]
add edx, edx
lea eax, [eax + eax*2]
add edx, edx
xor eax, edx
xor eax, edi
cdq
mov ecx, 0x7f
idiv ecx
push esi
movzx esi, byte [edx + str.Pk_]
dec esi
js 0x10098801
nop
movzx edx, byte [esi + 0x10114680]
cmp edx, edi
jne 0x100987f7
movzx eax, word [esi*2 + 0x101146f8]
push edi
add eax, str.ABORTABLEFTEMPORARYADDATABASELECTHENDEFAULTRANSACTIONATURALTERAISEACHECKEYAFTEREFERENCESCAPELSEXCEPTRIGGEREGEXPLAINITIALLYANALYZEXCLUSIVEXISTSTATEMENTANDEFERRABLEATTACHAVINGLOBEFOREIGNOREINDEXAUTOINCREMENTBEGINNERENAMEBETWEENOTNULLIKEBYCASCADEFERREDELETECASECASTCOLLATECOLUMNCOMMITCONFLICTCONSTRAINTERSECTCREATECROSSCURRENT_DATECURRENT_TIMESTAMPLANDESCDETACHDISTINCTDROPRAGMATCHFAILIMITFROMFULLGROUPDATEIFIMMEDIATEINSERTINSTEADINTOFFSETISNULLJOINORDEREPLACEOUTERESTRICTPRIMARYQUERYRIGHTROLLBACKROWHENUNIONUNIQUEUSINGVACUUMVALUESVIEWHEREVIRTUAL
push ebx
push eax
call fcn.10088780
add esp, 0xc
test eax, eax
je 0x10098808
movzx esi, byte [esi + 0x10114608]
dec esi
jns 0x100987d0
mov eax, 0x17
pop esi
ret
movzx eax, byte [esi + 0x101147e8]
pop esi
ret

Function at 0x1009c180
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
call fcn.1009c050
mov edi, eax
mov dword [ebp - 4], 0
test edi, edi
je 0x1009c1e6
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x1009c1cf
jmp 0x1009c1b0
mov eax, dword [ebp - 4]
mov ecx, eax
inc eax
mov dword [ebp - 4], eax
cmp ecx, 3
jge 0x1009c1cf
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call ebx
mov esi, eax
test esi, esi
je 0x1009c1b0
push edi
call fcn.10082dd0
add esp, 4
neg esi
pop edi
sbb eax, eax
pop esi
and eax, 0xa
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
call edi
mov esi, eax
test esi, esi
jne 0x1009c214
mov eax, dword [ebp - 4]
mov edx, eax
inc eax
mov dword [ebp - 4], eax
cmp edx, 3
jge 0x1009c214
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
call edi
mov esi, eax
test esi, esi
je 0x1009c1f5
neg esi
pop edi
sbb eax, eax
pop esi
and eax, 0xa
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1009c230
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
call fcn.1009c050
mov esi, eax
test esi, esi
je 0x1009c265
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
push esi
mov edi, ecx
call fcn.10082dd0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor edx, edx
cmp eax, 0xffffffff
setne dl
pop esi
pop ebx
mov eax, edx
pop ebp
ret