joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005aef0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10122343
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1016e750]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
call fcn.10022690
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x1005af3d
push 0x80004005
call fcn.100223c0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x20], eax
lea eax, [ebp + 8]
mov byte [ebp - 4], 1
push eax
lea ecx, [edi + 0x20]
mov dword [edi + 0x38], 0
call fcn.100244b0
mov esi, dword [ebp + 0xc]
mov ecx, 0x12019f
push 0
push 0x80
push 3
push 0
test esi, esi
mov dword [edi], 0
push 1
mov eax, 0x120089
mov dword [edi + 4], 0
cmovne eax, ecx
mov dword [edi + 0x34], 0
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x1005afbe
push str.Cant_open_file
lea ecx, [ebp + 0xc]
call fcn.100264e0
push 0x1016bc48
lea eax, [ebp + 0xc]
push eax
call fcn.1010805b
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [edi + 0x2c], 0
cmp dword [edi + 0x2c], 0
mov dword [edi + 0x28], eax
ja 0x1005aff3
jb 0x1005afde
cmp eax, 0x40
jae 0x1005aff3
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0xffffffff
push str.Incorrect_PE_file__too_small_
jmp 0x1005afa8
xor eax, eax
test esi, esi
push 0
push 0
setne al
push 0
lea eax, [eax*2 + 2]
push eax
push 0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ecx, eax
mov dword [edi + 4], ecx
test ecx, ecx
jne 0x1005b033
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0xffffffff
push str.Cant_create_file_mapping
jmp 0x1005afa8
xor eax, eax
test esi, esi
push 0
setne al
push 0
push 0
lea eax, [eax*2 + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [edi + 0x30], eax
test eax, eax
jne 0x1005b07c
push dword [edi + 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [edi]
mov dword [edi + 4], 0
call esi
mov dword [edi], 0xffffffff
push str.Cant_create_map_file_view
jmp 0x1005afa8
mov ecx, edi
mov dword [edi + 0x34], 1
mov dword [edi + 0x38], esi
call fcn.1005b180
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1005b0b1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 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 8
Function at 0x1005b6f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101223f8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x1016e750]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
cmp dword [ebx + 0x3c], 0
mov eax, 0x108
mov esi, dword [ebx + 0x34]
mov edx, 0xf8
cmovne edx, eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x1c], esi
add edx, dword [eax + 0x3c]
mov eax, dword [ebx + 0x1c]
add edx, dword [ebx + 0x30]
mov ecx, dword [eax + 0x10]
test esi, esi
jne 0x1005b752
mov eax, ecx
jmp 0x1005b78d
movzx eax, word [ebx + 8]
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x18], eax
mov esi, edx
cmp bx, ax
jae 0x1005b784
mov ebx, dword [esi + 0xc]
cmp ecx, ebx
jb 0x1005b77b
mov eax, dword [esi + 8]
add eax, ebx
cmp ecx, eax
jb 0x1005b8b6
mov eax, dword [ebp - 0x18]
inc edi
add esi, 0x28
cmp di, ax
jb 0x1005b764
or eax, 0xffffffff
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
test eax, eax
je 0x1005b8ce
xor edi, edi
cmp edi, dword [ebx + 0x2c]
ja 0x1005b8ce
jb 0x1005b7ab
cmp eax, dword [ebx + 0x28]
jae 0x1005b8ce
test esi, esi
je 0x1005b7e7
movzx eax, word [ebx + 8]
xor edi, edi
xor esi, esi
cmp di, ax
jae 0x1005b7e1
lea esp, [esp]
mov edi, dword [edx + 0xc]
cmp ecx, edi
jb 0x1005b7d8
mov eax, dword [edx + 8]
add eax, edi
cmp ecx, eax
jb 0x1005b8c2
movzx eax, word [ebx + 8]
inc esi
add edx, 0x28
cmp si, ax
jb 0x1005b7c0
or ecx, 0xffffffff
mov esi, dword [ebx + 0x34]
mov edx, dword [ebx + 0x30]
movzx edi, word [edx + ecx + 0xe]
movzx eax, word [edx + ecx + 0xc]
add ecx, 0x10
add ecx, edx
add edi, eax
mov dword [ebp - 0x18], ecx
test esi, esi
jne 0x1005b81a
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [edi*8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 0x18]
xor esi, esi
test edi, edi
je 0x1005b881
cmp dword [ecx + esi*8], 0x18
jne 0x1005b87c
push str.DisableResourceType:_disabing_PEs_resource____RT_VXD
lea ecx, [ebp - 0x14]
call fcn.10023fc0
mov dword [ebp - 4], 0
mov ecx, str.CRawPeFile
mov edx, dword [ebp - 0x14]
call fcn.10043b30
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1005b86b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + esi*8], 0x14
mov dword [ebx + 0x38], 1
inc esi
cmp esi, edi
jb 0x1005b820
cmp dword [ebx + 0x34], 0
jne 0x1005b89d
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
lea eax, [edi*8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, 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
mov eax, dword [esi + 0x14]
sub eax, ebx
add eax, ecx
jmp 0x1005b787
mov eax, dword [edx + 0x14]
sub eax, edi
add ecx, eax
jmp 0x1005b7e4
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 4
Function at 0x100624e0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, edx
xor esi, esi
mov ebx, ecx
test edi, edi
jle 0x1006250d
lea ecx, [ecx]
movzx eax, byte [ebx]
lea ecx, [esi*8]
dec edi
lea ebx, [ebx + 1]
movzx edx, byte [eax + 0x101322f0]
xor edx, ecx
xor esi, edx
test edi, edi
jg 0x100624f0
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x10062590
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, edx
mov ebx, ecx
mov ecx, 0x80
mov dword [ebp - 4], ebx
push edi
lea eax, [esi*8]
cmp eax, 0x400
cmova esi, ecx
cmp esi, dword [ebx]
jne 0x100625c1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x10172728]
test eax, eax
je 0x100625cc
call eax
lea eax, [esi*8]
push eax
call fcn.1005ed70
mov ecx, dword [0x1017272c]
add esp, 4
mov esi, eax
mov dword [ebp - 0xc], esi
test ecx, ecx
je 0x100625ed
call ecx
test esi, esi
je 0x100625b8
push dword [ebx + 0xc]
call fcn.1005f070
add esp, 4
mov dword [ebx + 0xc], esi
push esi
call dword [0x10170568]
shr eax, 3
add esp, 4
mov dword [ebp - 8], eax
mov dword [ebx], eax
lea ecx, [eax*8]
push ecx
push 0
push esi
call fcn.101078f0
mov ecx, dword [ebx + 8]
add esp, 0xc
mov dword [ebx + 8], 0
test ecx, ecx
je 0x100626d0
mov esi, dword [ecx + 0x10]
xor edi, edi
mov ebx, dword [ecx + 0xc]
test esi, esi
jle 0x1006265f
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
dec esi
movzx edx, byte [eax + 0x101322f0]
lea eax, [edi*8]
xor edx, eax
xor edi, edx
test esi, esi
jg 0x10062642
xor edx, edx
mov ebx, dword [ecx]
mov eax, edi
div dword [ebp - 8]
mov eax, dword [ebp - 0xc]
lea esi, [eax + edx*8]
test esi, esi
je 0x100626aa
mov eax, dword [esi]
test eax, eax
je 0x1006267d
mov edx, dword [esi + 4]
jmp 0x1006267f
xor edx, edx
inc eax
mov dword [esi + 4], ecx
mov dword [esi], eax
test edx, edx
je 0x100626aa
mov dword [ecx], edx
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov eax, dword [edx + 4]
test eax, eax
je 0x1006269f
mov dword [eax], ecx
mov dword [edx + 4], ecx
jmp 0x100626c6
mov eax, dword [ebp - 4]
mov dword [eax + 8], ecx
mov dword [edx + 4], ecx
jmp 0x100626c6
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
mov dword [ecx], eax
mov eax, dword [edx + 8]
test eax, eax
je 0x100626bc
mov dword [eax + 4], ecx
mov dword [ecx + 4], 0
mov dword [edx + 8], ecx
mov ecx, ebx
test ebx, ebx
jne 0x10062636
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100627f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, ecx
mov dword [ebp - 8], edx
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [eax + 0xc], 0
je 0x10062844
push ebx
push esi
xor esi, esi
mov ebx, edx
push edi
mov edi, ecx
test ecx, ecx
jle 0x10062834
movzx eax, byte [ebx]
lea ecx, [esi*8]
dec edi
lea ebx, [ebx + 1]
movzx edx, byte [eax + 0x101322f0]
xor edx, ecx
xor esi, edx
test edi, edi
jg 0x10062814
mov ecx, dword [ebp + 8]
mov eax, esi
xor edx, edx
mov esi, dword [ebp - 4]
pop edi
div dword [esi]
mov eax, esi
pop esi
pop ebx
jmp 0x10062846
xor edx, edx
push edx
mov edx, dword [ebp - 8]
push ecx
mov ecx, eax
call fcn.100626e0
add esp, 8
test eax, eax
je 0x10062860
mov eax, dword [eax + 8]
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10062870
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], edi
cmp dword [esi], 0
je 0x100628c5
mov eax, dword [ebp + 8]
xor edi, edi
mov ebx, eax
test eax, eax
jle 0x100628b5
mov esi, edx
movzx eax, byte [esi]
lea ecx, [edi*8]
dec ebx
lea esi, [esi + 1]
movzx edx, byte [eax + 0x101322f0]
xor edx, ecx
xor edi, edx
test ebx, ebx
jg 0x10062895
mov esi, dword [ebp - 0xc]
mov eax, edi
xor edx, edx
div dword [esi]
mov edi, dword [ebp - 8]
mov ebx, edx
mov dword [ebp - 4], edx
jmp 0x100628ca
xor ebx, ebx
mov dword [ebp - 4], ebx
push ebx
push dword [ebp + 8]
mov edx, edi
mov ecx, esi
call fcn.100626e0
add esp, 8
test eax, eax
je 0x10062912
mov ecx, dword [eax + 8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x10062902
push ebx
mov edx, eax
mov ecx, esi
call fcn.10062790
mov eax, dword [ebp - 0xc]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edi
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x100629b0
push 0x14
call fcn.1005ed70
mov edi, eax
add esp, 4
test edi, edi
jne 0x10062936
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x10], eax
mov dword [edi + 8], ebx
inc dword [esi + 4]
mov edx, dword [esi + 4]
cmp edx, 0xa
jb 0x10062976
mov eax, dword [esi]
add eax, eax
cmp edx, eax
jbe 0x10062976
add edx, edx
mov ecx, esi
call fcn.10062590
test eax, eax
je 0x10062976
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.100624e0
xor edx, edx
div dword [esi]
jmp 0x10062979
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x10062997
push edi
lea edx, [eax + edx*8]
mov ecx, esi
call fcn.10062520
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 8]
mov dword [edi], eax
mov eax, dword [esi + 8]
test eax, eax
je 0x100629a6
mov dword [eax + 4], edi
mov dword [edi + 4], 0
mov dword [esi + 8], edi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1006a040
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, edx
mov dword [ebp - 4], ebx
mov edx, dword [esi + 0x3c]
cmp dword [edx], ebx
jne 0x1006a080
mov eax, dword [esi + 0x78]
mov ecx, dword [esi]
or eax, 0x1e
push ebx
and eax, 0x87f7f
push eax
mov eax, dword [ecx + 0x18]
push edx
push ebx
push ecx
call eax
mov ebx, eax
add esp, 0x14
mov dword [ebp - 4], ebx
test ebx, ebx
jne 0x1006a164
mov ecx, dword [esi + 0x18]
cmp ecx, dword [esi + 0x24]
jbe 0x1006a0c0
mov eax, dword [esi + 0x80]
push 0
cdq
push ecx
push edx
push eax
call fcn.1010a880
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0xc], edx
lea edx, [ebp - 0x10]
push edx
push 5
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x28]
call eax
mov eax, dword [esi + 0x18]
add esp, 0xc
mov dword [esi + 0x24], eax
lea esp, [esp]
test edi, edi
je 0x1006a162
mov ebx, dword [edi + 0x14]
cmp ebx, dword [esi + 0x18]
ja 0x1006a154
test byte [edi + 0x18], 0x20
jne 0x1006a154
mov eax, dword [esi + 0x80]
lea ecx, [ebx - 1]
cdq
push edx
push eax
push 0
push ecx
call fcn.1010a880
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
cmp ebx, 1
jne 0x1006a100
mov ecx, edi
call fcn.10069390
push dword [ebp - 4]
mov eax, dword [esi + 0x3c]
push dword [ebp - 8]
mov edx, dword [edi + 4]
push dword [esi + 0x80]
mov ecx, dword [eax]
push edx
push eax
mov dword [ebp - 0xc], edx
mov eax, dword [ecx + 0xc]
call eax
add esp, 0x14
mov dword [ebp - 4], eax
cmp ebx, 1
jne 0x1006a136
mov eax, dword [ebp - 0xc]
movdqu xmm0, xmmword [eax + 0x18]
movdqu xmmword [esi + 0x64], xmm0
cmp ebx, dword [esi + 0x20]
jbe 0x1006a13e
mov dword [esi + 0x20], ebx
inc dword [esi + 0xa8]
mov edx, ebx
push dword [edi + 4]
mov ecx, dword [esi + 0x58]
call fcn.10078e40
add esp, 4
mov ebx, dword [ebp - 4]
mov edi, dword [edi + 0xc]
test ebx, ebx
je 0x1006a0c0
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10092f00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], eax
mov esi, ecx
mov dword [ebp - 0xc], esi
mov ebx, edx
push edi
test edx, edx
je 0x10092f2d
cmp byte [edx], al
je 0x10092f25
inc ebx
cmp byte [ebx], al
jne 0x10092f20
sub ebx, edx
and ebx, 0x3fffffff
xor edi, edi
cmp dword [esi + 0x14], eax
jle 0x10092fcf
mov ecx, edi
cmp edi, 2
jge 0x10092f47
xor ecx, 1
mov dword [ebp - 4], ecx
jmp 0x10092f4a
mov dword [ebp - 4], edi
mov eax, dword [ebp + 8]
test eax, eax
je 0x10092f9e
mov edx, ecx
mov ecx, dword [esi + 0x10]
add edx, edx
mov esi, dword [ecx + edx*8]
mov ecx, eax
mov cl, byte [ecx]
test cl, cl
je 0x10092f80
movzx edx, byte [esi]
movzx ecx, cl
mov cl, byte [ecx + 0x101322f0]
cmp cl, byte [edx + 0x101322f0]
jne 0x10092f80
mov cl, byte [eax + 1]
inc eax
inc esi
test cl, cl
jne 0x10092f63
movzx ecx, byte [esi]
movzx eax, byte [eax]
mov esi, dword [ebp - 0xc]
movzx ecx, byte [ecx + 0x101322f0]
movzx eax, byte [eax + 0x101322f0]
sub eax, ecx
jne 0x10092fbf
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 0x10]
add ecx, ecx
push ebx
mov ecx, dword [eax + ecx*8 + 0xc]
add ecx, 8
call fcn.100627f0
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
jne 0x10092fcf
jmp 0x10092fc2
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
inc edi
cmp edi, dword [esi + 0x14]
jl 0x10092f38
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10093080
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor eax, eax
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, edx
push esi
push edi
test edx, edx
je 0x100930ad
cmp byte [edx], al
je 0x100930a5
jmp 0x100930a0
inc ebx
cmp byte [ebx], al
jne 0x100930a0
sub ebx, edx
and ebx, 0x3fffffff
mov esi, dword [ecx + 0x14]
xor edi, edi
mov dword [ebp - 0x10], esi
test esi, esi
jle 0x10093153
mov ecx, dword [ecx + 0x10]
mov dword [ebp - 0x14], ecx
mov eax, edi
cmp edi, 2
jge 0x100930cd
xor eax, 1
add eax, eax
lea esi, [ecx + eax*8]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
mov dword [ebp - 0xc], eax
test ecx, ecx
je 0x1009312b
mov esi, dword [esi]
mov eax, ecx
mov cl, byte [ecx]
test cl, cl
je 0x10093110
lea esp, [esp]
movzx edx, byte [esi]
movzx ecx, cl
mov cl, byte [ecx + 0x101322f0]
cmp cl, byte [edx + 0x101322f0]
jne 0x1009310d
mov cl, byte [eax + 1]
inc eax
inc esi
test cl, cl
jne 0x100930f0
mov edx, dword [ebp - 8]
movzx eax, byte [eax]
movzx ecx, byte [esi]
movzx eax, byte [eax + 0x101322f0]
movzx ecx, byte [ecx + 0x101322f0]
sub eax, ecx
jne 0x10093140
mov eax, dword [ebp - 0xc]
push ebx
lea ecx, [eax + 0x18]
call fcn.100627f0
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
jne 0x10093153
jmp 0x10093143
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
inc edi
mov ecx, dword [ebp - 0x14]
cmp edi, dword [ebp - 0x10]
jl 0x100930c3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10093480
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov dword [esp + 0x28], edx
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x24], edi
test edx, edx
je 0x10093666
test edi, edi
je 0x100934ab
cmp dword [edi + 0x1f0], 0
jne 0x100934ba
mov eax, 0xffff
add word [edx + 0x20], ax
jne 0x10093666
mov ebx, dword [edx + 0x10]
mov dword [esp + 0x18], ebx
test ebx, ebx
je 0x100935ca
lea esp, [esp]
mov eax, dword [ebx + 0x14]
mov dword [esp + 0x30], eax
test edi, edi
je 0x100934e8
cmp dword [edi + 0x1f0], 0
jne 0x100935a5
mov esi, dword [ebx]
mov ecx, esi
mov dword [esp + 0x28], esi
test esi, esi
je 0x1009350e
cmp byte [esi], 0
je 0x10093506
lea esp, [esp]
inc ecx
cmp byte [ecx], 0
jne 0x10093500
sub ecx, esi
and ecx, 0x3fffffff
mov eax, dword [ebx + 0x18]
add eax, 0x18
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
mov edx, dword [eax]
mov dword [esp + 0x2c], edx
test edx, edx
je 0x1009357b
xor ebx, ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], esi
test ecx, ecx
jle 0x10093569
mov edi, ecx
mov ecx, esi
jmp 0x10093540
movzx eax, byte [ecx]
lea edx, [ebx*8]
dec edi
lea ecx, [ecx + 1]
movzx esi, byte [eax + 0x101322f0]
xor esi, edx
xor ebx, esi
test edi, edi
jg 0x10093540
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
mov eax, ebx
xor edx, edx
div dword [esp + 0x2c]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
jmp 0x1009357d
xor edx, edx
push edx
mov dword [esp + 0x14], edx
mov edx, esi
push ecx
mov ecx, eax
call fcn.100626e0
add esp, 8
test eax, eax
je 0x100935a5
push dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov edx, eax
call fcn.10062790
add esp, 4
mov edx, dword [ebx + 0x10]
mov ecx, edi
call fcn.1005f110
mov edx, ebx
mov ecx, edi
call fcn.1005f110
mov eax, dword [esp + 0x30]
mov ebx, eax
mov dword [esp + 0x18], eax
test eax, eax
jne 0x100934d0
mov ebx, dword [esp + 0x34]
mov ecx, edi
mov edx, ebx
call fcn.1009e680
mov edx, ebx
mov ecx, edi
call fcn.10093400
mov edx, dword [ebx]
mov ecx, edi
call fcn.1005f110
mov edx, dword [ebx + 0x28]
mov ecx, edi
call fcn.1005f110
mov esi, dword [ebx + 0x1c]
test esi, esi
je 0x1009360c
mov edx, esi
mov ecx, edi
call fcn.100a6930
mov edx, esi
mov ecx, edi
call fcn.1005f110
mov edx, dword [ebx + 0x2c]
mov ecx, edi
call fcn.1008b2d0
test edi, edi
je 0x10093623
cmp dword [edi + 0x1f0], 0
jne 0x1009362c
mov edx, ebx
xor ecx, ecx
call fcn.100b3ba0
cmp dword [ebx + 0x3c], 0
je 0x1009365d
xor esi, esi
cmp dword [ebx + 0x38], esi
jle 0x10093653
lea esp, [esp]
mov edx, dword [ebx + 0x3c]
mov ecx, edi
mov edx, dword [edx + esi*4]
call fcn.1005f110
inc esi
cmp esi, dword [ebx + 0x38]
jl 0x10093640
mov edx, dword [ebx + 0x3c]
mov ecx, edi
call fcn.1005f110
mov edx, ebx
mov ecx, edi
call fcn.1005f110
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10095250
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x1016e750]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
add edx, edx
push ebx
mov ebx, ecx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3c], eax
push esi
mov eax, dword [ebx]
push edi
mov dword [ebp - 0x2c], ebx
mov eax, dword [eax + 0x10]
mov esi, dword [eax + edx*8]
mov eax, 1
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x38], eax
lea esp, [esp]
push eax
push str.sqlite_stat_d
lea eax, [ebp - 0x1c]
push eax
push 0x18
call fcn.10060860
mov ecx, dword [ebx]
lea edx, [ebp - 0x1c]
add esp, 0x10
mov dword [ebp - 0x30], ecx
cmp byte [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
je 0x100952c6
lea esp, [esp]
inc edx
cmp byte [edx], 0
jne 0x100952c0
lea eax, [ebp - 0x1c]
xor ebx, ebx
sub edx, eax
mov dword [ebp - 0x34], ebx
mov eax, dword [ecx + 0x14]
and edx, 0x3fffffff
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x44], eax
test eax, eax
jle 0x10095401
mov edi, ebx
cmp ebx, 2
jge 0x100952f1
xor edi, 1
test esi, esi
je 0x1009534f
mov ecx, dword [ecx + 0x10]
mov edx, edi
add edx, edx
mov eax, esi
mov esi, dword [ecx + edx*8]
mov ecx, dword [ebp - 0x24]
mov cl, byte [ecx]
test cl, cl
je 0x1009532d
lea ebx, [ebx]
movzx edx, byte [esi]
movzx ecx, cl
mov cl, byte [ecx + 0x101322f0]
cmp cl, byte [edx + 0x101322f0]
jne 0x1009532d
mov cl, byte [eax + 1]
inc eax
inc esi
test cl, cl
jne 0x10095310
movzx eax, byte [eax]
movzx ecx, byte [esi]
movzx eax, byte [eax + 0x101322f0]
movzx ecx, byte [ecx + 0x101322f0]
sub eax, ecx
jne 0x100953c3
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx + 0x10]
add edi, edi
mov ecx, dword [eax + edi*8 + 0xc]
add ecx, 8
mov dword [ebp - 0x20], ecx
cmp dword [ecx + 0xc], 0
je 0x1009539b
xor esi, esi
lea ebx, [ebp - 0x1c]
mov edi, edx
test edx, edx
jle 0x10095390
nop
movzx eax, byte [ebx]
lea ecx, [esi*8]
dec edi
lea ebx, [ebx + 1]
movzx edx, byte [eax + 0x101322f0]
xor edx, ecx
xor esi, edx
test edi, edi
jg 0x10095370
mov ecx, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x34]
mov eax, esi
xor edx, edx
div dword [ecx]
jmp 0x1009539d
xor edx, edx
push edx
push dword [ebp - 0x28]
lea edx, [ebp - 0x1c]
call fcn.100626e0
add esp, 8
test eax, eax
je 0x100953bc
mov eax, dword [eax + 8]
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x100953e0
jmp 0x100953c6
xor eax, eax
mov dword [ebp - 0x20], eax
jmp 0x100953c6
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x28]
inc ebx
mov esi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x34], ebx
cmp ebx, dword [ebp - 0x44]
jl 0x100952e7
test eax, eax
je 0x10095401
push dword [ebp - 0x3c]
mov esi, dword [ebp - 0x24]
lea eax, [ebp - 0x1c]
push dword [ebp - 0x40]
mov ebx, dword [ebp - 0x2c]
push eax
push esi
push str.DELETE_FROM__Q._s_WHERE__s_Q
push ebx
call fcn.10092e60
add esp, 0x18
jmp 0x10095404
mov ebx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
cmp eax, 3
jle 0x10095290
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10103392
mov esp, ebp
pop ebp
ret