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

Disassembly:
push 0x1c
mov eax, 0x6381d8
call fcn.005b5fde
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x28]
push 4
pop edi
push esi
push eax
call fcn.005081ee
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
call fcn.00478e5a
add esp, 0xc
test al, al
jne 0x478ae3
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ebx
cmovae eax, dword [ebp - 0x28]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
neg eax
sbb eax, eax
and edi, eax
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.00435b50
mov eax, edi
call fcn.005b5f99
ret

Function at 0x478af6
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0x240
mov eax, 0x638208
call fcn.005b5fde
mov esi, dword [ebp + 8]
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x21c], 7
mov bl, cl
mov dword [ebp - 0x220], ecx
mov word [ebp - 0x230], ax
lea eax, [ebp - 0x24c]
mov dword [ebp - 4], ecx
push eax
push ecx
push ecx
push 0x2b
push ecx
mov dword [ebp - 0x24c], ecx
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
lea eax, [ebp - 0x218]
push eax
js 0x478b9b
push dword [ebp - 0x24c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x478b8b
cmp word [ebp - 0x218], 0
jne 0x478b69
xor eax, eax
jmp 0x478b76
lea eax, [ebp - 0x218]
push eax
call fcn.005cd756
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00435be0
mov bl, 1
push dword [ebp - 0x24c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor edi, edi
jmp 0x478bdb
xor edi, edi
push edi
push edi
push 0x2b
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x478bdb
cmp word [ebp - 0x218], di
jne 0x478bb9
mov eax, edi
jmp 0x478bc6
lea eax, [ebp - 0x218]
push eax
call fcn.005cd756
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00435be0
mov bl, 1
mov ecx, dword [ebp - 0x220]
test ecx, ecx
je 0x478c51
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
cmp word [eax + ecx*2 - 2], 0x5c
jne 0x478c11
lea eax, [ecx - 1]
push edi
push eax
lea ecx, [ebp - 0x230]
call fcn.0047908e
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.005082a1
pop ecx
pop ecx
push eax
mov ecx, esi
call fcn.00478a4a
push edi
push 1
lea ecx, [ebp - 0x248]
call fcn.00435df0
mov edi, str.Adobe
push edi
call fcn.005d1fd0
pop ecx
push eax
push edi
mov ecx, esi
call fcn.0043c570
push 0
push 1
lea ecx, [ebp - 0x230]
call fcn.00435b50
mov al, bl
call fcn.005b5f99
ret
Function at 0x478c68
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x6f8b74]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.005081ee
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
pop ecx
cmovae eax, dword [ebp - 0x1c]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x478ca7
test al, 0x10
jbe 0x478ca7
mov bl, 1
jmp 0x478ca9
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.00435b50
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.005b56fe
mov esp, ebp
pop ebp
ret

Function at 0x478e5a
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x6f8b74]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.005081ee
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
pop ecx
cmovae eax, dword [ebp - 0x1c]
pop ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push 0
push 1
lea ecx, [ebp - 0x1c]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
call fcn.00435b50
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.005b56fe
mov esp, ebp
pop ebp
ret

Function at 0x479e80
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push esi
mov esi, ecx
xor bh, bh
push edi
mov dword [esi + 0x204], 9
movq xmm0, qword [str.Adobe_ALM]
movq qword [esi + 0x102], xmm0
mov al, byte [0x66c3e8]
mov byte [esi + 0x10a], al
xor eax, eax
mov word [esi + 0x100], 0
mov byte [eax + esi], al
inc eax
cmp eax, 0x100
jl 0x479eb7
xor edi, edi
mov eax, edi
mov bl, byte [edi + esi]
cdq
idiv dword [esi + 0x204]
movzx eax, byte [edx + esi + 0x102]
add al, bl
add bh, al
movzx ecx, bh
movzx eax, byte [ecx + esi]
mov byte [edi + esi], al
inc edi
mov byte [ecx + esi], bl
cmp edi, 0x100
jl 0x479ec4
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x479f00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00479f10

Function at 0x479f10
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
push edi
test ecx, ecx
je 0x479f9b
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x479f9b
mov eax, dword [ebp + 0x10]
test eax, eax
jle 0x479f9b
mov dl, byte [esi + 0x101]
sub ecx, edi
push ebx
mov bh, byte [esi + 0x100]
mov byte [ebp + 0xf], dl
mov dword [ebp + 8], ecx
dec eax
lea edi, [edi + 1]
mov dword [ebp + 0x10], eax
inc bh
mov al, byte [ebp + 0xf]
movzx edx, bh
mov bl, byte [edx + esi]
add al, bl
movzx ecx, al
mov byte [ebp + 0xf], al
movzx eax, byte [ecx + esi]
mov byte [edx + esi], al
mov byte [ecx + esi], bl
movzx eax, byte [edx + esi]
mov ecx, dword [ebp + 8]
add al, bl
movzx eax, al
movzx eax, byte [eax + esi]
xor al, byte [ecx + edi - 1]
mov byte [edi - 1], al
mov eax, dword [ebp + 0x10]
test eax, eax
jg 0x479f41
mov dl, byte [ebp + 0xf]
mov al, 1
mov byte [esi + 0x100], bh
pop ebx
pop edi
mov byte [esi + 0x101], dl
pop esi
pop ebp
ret 0xc
pop edi
xor al, al
pop esi
pop ebp
ret 0xc
Function at 0x479fb0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push esi
mov esi, ecx
xor bh, bh
push edi
xor eax, eax
mov word [esi + 0x100], 0
mov byte [eax + esi], al
inc eax
cmp eax, 0x100
jl 0x479fc2
xor edi, edi
nop
mov eax, edi
mov bl, byte [edi + esi]
cdq
idiv dword [esi + 0x204]
movzx eax, byte [edx + esi + 0x102]
add al, bl
add bh, al
movzx ecx, bh
movzx eax, byte [ecx + esi]
mov byte [edi + esi], al
inc edi
mov byte [ecx + esi], bl
cmp edi, 0x100
jl 0x479fd0
pop edi
pop esi
pop ebx
ret

Function at 0x47a010
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x47a098
mov eax, dword [ebp + 0xc]
test eax, eax
jle 0x47a098
mov edx, 0x100
push ebx
cmp eax, edx
push edi
cmovge eax, edx
push eax
mov dword [esi + 0x204], eax
lea eax, [esi + 0x102]
push ecx
push eax
call fcn.005b7120
add esp, 0xc
mov word [esi + 0x100], 0
xor bh, bh
xor eax, eax
mov byte [eax + esi], al
inc eax
cmp eax, 0x100
jl 0x47a054
xor edi, edi
mov eax, edi
mov bl, byte [edi + esi]
cdq
idiv dword [esi + 0x204]
movzx eax, byte [edx + esi + 0x102]
add al, bl
add bh, al
movzx ecx, bh
movzx eax, byte [ecx + esi]
mov byte [edi + esi], al
inc edi
mov byte [ecx + esi], bl
cmp edi, 0x100
jl 0x47a061
pop edi
pop ebx
mov al, 1
pop esi
pop ebp
ret 8
xor al, al
pop esi
pop ebp
ret 8
Function at 0x47aec0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
pop ebp
ret
Function at 0x493ab0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
mov al, byte [esi + 0x44]
test al, al
js 0x493b9f
push ebx
xor ebx, ebx
push edi
test al, al
jle 0x493b39
lea ecx, [esi + 0x78]
mov dword [ebp - 4], ecx
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x48]
test byte [ecx + 0x1c], 0x20
je 0x493b1e
mov eax, dword [ecx + 0x14]
dec dword [eax + 0x78]
mov edx, dword [eax + 0x88]
mov dword [ecx + 0x10], edx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], ecx
push dword [ecx + 4]
mov eax, dword [eax + 0x98]
mov ecx, dword [ecx + 0x18]
mov edi, dword [esi]
dec ecx
cdq
push edx
push eax
push 0
push ecx
call fcn.005b5f50
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov esi, dword [ebp + 8]
add esp, 0x10
jmp 0x493b27
push ecx
call fcn.004d07a0
add esp, 4
mov ecx, dword [ebp - 4]
inc ebx
movsx eax, byte [esi + 0x44]
add ecx, 4
mov dword [ebp - 4], ecx
cmp ebx, eax
jl 0x493ad1
mov eax, dword [esi + 0x74]
mov edx, dword [eax + 0x48]
test byte [edx + 0x1c], 0x20
je 0x493b90
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.005b5f50
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov esi, dword [ebp + 8]
add esp, 0x10
pop edi
pop ebx
mov byte [esi + 0x44], 0xff
pop esi
mov esp, ebp
pop ebp
ret
push edx
call fcn.004d07a0
add esp, 4
mov byte [esi + 0x44], 0xff
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x494c10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
push esi
push ebx
push edi
mov eax, dword [edi + 0x50]
call eax
movzx eax, word [esi + 0x10]
add esp, 0xc
mov edx, dword [esi + 0xc]
cmp eax, edx
je 0x494dd3
movzx esi, word [esi + 0x12]
add esi, ebx
cmp esi, dword [edi + 0x3c]
jbe 0x494c6f
push 0x6773dc
push 0x1134c
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0047c160
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [edi + 0x34]
sub edx, eax
mov esi, dword [esi - 4]
bswap esi
mov dword [ebp + 0x10], edi
mov ecx, dword [edi + 0x24]
lea eax, [edx - 1]
sub ecx, 4
xor edx, edx
add eax, ecx
div ecx
mov ebx, eax
test ebx, ebx
je 0x494dd3
nop word [eax + eax]
dec ebx
mov dword [ebp - 4], 0
mov dword [ebp + 8], 0
cmp esi, 2
jb 0x494da9
cmp esi, dword [edi + 0x2c]
ja 0x494da9
test ebx, ebx
je 0x494ce9
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push esi
push edi
call fcn.004a1fb0
add esp, 0x10
test eax, eax
jne 0x494dd5
mov edi, dword [ebp + 8]
test edi, edi
jne 0x494cf9
mov edi, dword [ebp + 0x10]
push esi
push edi
call fcn.00493710
mov edi, eax
add esp, 8
test edi, edi
je 0x494d2a
mov ecx, dword [edi + 0x48]
cmp word [ecx + 0x1e], 1
je 0x494d2a
push 0x6773dc
push 0x11371
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0047c160
add esp, 0x14
mov dword [ebp + 8], 0xb
jmp 0x494d3a
push esi
push edi
push dword [ebp + 0x10]
call fcn.0049ffc0
add esp, 0xc
mov dword [ebp + 8], eax
test edi, edi
je 0x494d93
mov edx, dword [edi + 0x48]
test edx, edx
je 0x494d93
test byte [edx + 0x1c], 0x20
je 0x494d8a
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.005b5f50
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x494d93
push edx
call fcn.004d07a0
add esp, 4
mov eax, dword [ebp + 8]
test eax, eax
jne 0x494dd5
mov esi, dword [ebp - 4]
test ebx, ebx
je 0x494dd3
mov edi, dword [ebp + 0x10]
jmp 0x494ca0
push 0x6773dc
push 0x1135d
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0047c160
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a5df0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 4], 0
mov al, byte [esi + 0x44]
test al, al
js 0x4a5e8e
je 0x4a5f04
push dword [esi + 0x74]
call fcn.004ae270
add esp, 4
sub byte [esi + 0x44], 1
je 0x4a5e83
push ebx
movsx eax, byte [esi + 0x44]
mov eax, dword [esi + eax*4 + 0x78]
mov edx, dword [eax + 0x48]
test byte [edx + 0x1c], 0x20
je 0x4a5e73
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov edi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov ebx, dword [edi]
cdq
push edx
push eax
push 0
push ecx
call fcn.005b5f50
push edx
push eax
mov eax, dword [ebx + 0x48]
push edi
call eax
add esp, 0x10
jmp 0x4a5e7c
push edx
call fcn.004d07a0
add esp, 4
sub byte [esi + 0x44], 1
jne 0x4a5e23
pop ebx
mov eax, dword [esi + 0x78]
mov dword [esi + 0x74], eax
jmp 0x4a5f1c
cmp dword [esi + 0x40], 0
jne 0x4a5ea2
pop edi
mov byte [esi], 1
mov eax, 0x10
pop esi
mov esp, ebp
pop ebp
ret
mov al, byte [esi]
cmp al, 3
jb 0x4a5eca
cmp al, 4
jne 0x4a5eb5
mov eax, dword [esi + 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push dword [esi + 0x10]
call fcn.00486f40
add esp, 4
mov dword [esi + 0x10], 0
mov byte [esi], 1
movzx eax, byte [esi + 2]
lea edi, [esi + 0x74]
push eax
mov eax, dword [esi + 8]
push 0
push edi
push dword [esi + 0x40]
push dword [eax + 4]
call fcn.004a1ba0
mov ecx, eax
add esp, 0x14
mov dword [ebp - 4], ecx
test ecx, ecx
je 0x4a5ef8
pop edi
mov byte [esi], 1
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
mov byte [esi + 0x44], 0
mov al, byte [eax + 2]
mov byte [esi + 0x45], al
mov eax, dword [esi + 0x74]
cmp byte [eax], 0
je 0x4a5f83
movzx eax, byte [eax + 2]
xor ecx, ecx
cmp dword [esi + 0x70], ecx
sete cl
cmp ecx, eax
jne 0x4a5f83
and byte [esi + 1], 0xf1
xor eax, eax
mov word [esi + 0x46], ax
mov word [esi + 0x32], ax
mov eax, dword [esi + 0x74]
cmp word [eax + 0x18], 0
jbe 0x4a5f40
mov eax, dword [ebp - 4]
pop edi
mov byte [esi], 0
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [eax + 8], 0
jne 0x4a5e94
cmp dword [eax + 4], 1
je 0x4a5f63
push 0x10ed7
call fcn.004bbf60
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
movzx ecx, byte [eax + 9]
mov eax, dword [eax + 0x38]
mov eax, dword [ecx + eax + 8]
bswap eax
push eax
push esi
mov byte [esi], 0
call fcn.004a5b60
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x6773dc
push 0x10eca
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0047c160
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4a89a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, dword [ebx + 0x88]
test esi, esi
je 0x4a89d4
mov eax, dword [ebp + 0x14]
xorps xmm0, xmm0
mov dword [eax], esi
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x88], eax
mov eax, dword [esi + 8]
mov dword [esi + 0x10], 0
movq qword [eax], xmm0
jmp 0x4a8a4b
movzx eax, word [ebx + 0x8c]
cdq
mov edi, eax
add edi, 0x28
adc edx, 0
push edx
push edi
call fcn.004cd110
mov esi, eax
add esp, 8
test esi, esi
je 0x4a8a00
push edi
push 0
push esi
call fcn.005b7c20
add esp, 0xc
mov ecx, dword [ebp + 0x14]
mov dword [ecx], esi
test esi, esi
jne 0x4a8a3b
push dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebx + 0x98]
dec ecx
mov esi, dword [ebx + 0x3c]
push 0
cdq
push ecx
mov edi, dword [esi]
push edx
push eax
call fcn.005b5f50
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
mov eax, 7
pop edi
pop esi
pop ebx
pop ebp
ret
lea eax, [esi + 0x28]
mov dword [esi + 0x1c], 0x10020
mov dword [esi + 8], eax
mov dword [esi + 0x14], ebx
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 4], eax
inc dword [ebx + 0x78]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4af1f0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
push edi
push str.sqlite_master
push edi
push str.SELECT_1_FROM___w_._s_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d_NULL
push dword [ebp + 8]
call fcn.004cd850
add esp, 0x18
cmp dword [ebp + 0x10], 0
jne 0x4af22d
push edi
push str.sqlite_master
push str.SELECT_1_FROM_temp._s_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1_NULL
push dword [ebp + 8]
call fcn.004cd850
add esp, 0x10
pop edi
pop ebp
ret
Function at 0x4b7560
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 0xc]
xorps xmm0, xmm0
push esi
movlpd qword [ebp - 8], xmm0
call fcn.004a5df0
add esp, 4
cmp eax, 0x10
jne 0x4b7597
mov eax, dword [ebp + 0x10]
pop esi
mov dword [eax], 0
mov dword [eax + 4], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
push ebx
push edi
test eax, eax
jne 0x4b76e2
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], edx
nop dword [eax]
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x110], 0
jne 0x4b76e2
mov edi, dword [esi + 0x74]
mov cl, byte [edi + 8]
test cl, cl
jne 0x4b75cf
cmp byte [edi + 2], cl
jne 0x4b75dc
movzx eax, word [edi + 0x18]
cdq
add dword [ebp - 4], eax
adc ebx, edx
mov dword [ebp - 0xc], ebx
test cl, cl
je 0x4b767d
mov cl, byte [esi + 0x44]
test cl, cl
je 0x4b76cb
and byte [esi + 1], 0xf9
xor eax, eax
mov word [esi + 0x32], ax
movsx eax, cl
dec cl
mov ax, word [esi + eax*2 + 0x46]
mov word [esi + 0x46], ax
movsx eax, cl
mov byte [esi + 0x44], cl
mov eax, dword [esi + eax*4 + 0x78]
mov dword [esi + 0x74], eax
mov edx, dword [edi + 0x48]
test byte [edx + 0x1c], 0x20
je 0x4b765c
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov edi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov ebx, dword [edi]
cdq
push edx
push eax
push 0
push ecx
call fcn.005b5f50
push edx
push eax
mov eax, dword [ebx + 0x48]
push edi
call eax
add esp, 0x10
jmp 0x4b7665
push edx
call fcn.004d07a0
add esp, 4
mov edi, dword [esi + 0x74]
mov ax, word [esi + 0x46]
cmp ax, word [edi + 0x18]
jae 0x4b75e4
inc word [esi + 0x46]
mov ebx, dword [ebp - 0xc]
movzx ecx, word [esi + 0x46]
movzx eax, word [edi + 0x18]
cmp ecx, eax
jne 0x4b7696
movzx ecx, byte [edi + 9]
mov eax, dword [edi + 0x38]
mov eax, dword [ecx + eax + 8]
jmp 0x4b76b0
mov eax, dword [edi + 0x40]
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [edi + 0x1a]
movzx ecx, cx
and ecx, eax
mov eax, dword [edi + 0x38]
mov eax, dword [ecx + eax]
bswap eax
push eax
push esi
call fcn.004a5b60
add esp, 8
test eax, eax
je 0x4b75b0
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
push esi
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], ecx
call fcn.004a5df0
add esp, 4
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4ba370
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x6f8b74]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
add ecx, ecx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x34], eax
mov eax, dword [esi]
push edi
mov dword [ebp - 0x24], esi
mov eax, dword [eax + 0x10]
mov eax, dword [eax + ecx*8]
mov dword [ebp - 0x20], eax
mov eax, 1
mov dword [ebp - 0x2c], eax
nop dword [eax]
push eax
push str.sqlite_stat_d
lea eax, [ebp - 0x1c]
push eax
push 0x18
call fcn.004869a0
mov edi, dword [esi]
lea ebx, [ebp - 0x1c]
add esp, 0x10
mov dword [ebp - 0x28], edi
nop dword [eax]
xor esi, esi
cmp dword [edi + 0x14], esi
jle 0x4ba47c
nop dword [eax + eax]
mov eax, esi
mov ecx, esi
xor eax, 1
cmp esi, 2
cmovl ecx, eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x30], ecx
test eax, eax
je 0x4ba418
mov edx, ecx
mov ecx, dword [edi + 0x10]
add edx, edx
mov edi, dword [ecx + edx*8]
sub edi, eax
movzx edx, byte [eax]
movzx ecx, byte [edi + eax]
cmp edx, ecx
jne 0x4ba45a
test edx, edx
jne 0x4ba46c
mov ecx, dword [ebp - 0x30]
mov edi, dword [ebp - 0x28]
mov eax, dword [edi + 0x10]
add ecx, ecx
push 0
push ebx
mov eax, dword [eax + ecx*8 + 0xc]
add eax, 8
push eax
call fcn.0049e180
add esp, 0xc
mov eax, dword [eax + 8]
test eax, eax
je 0x4ba472
push dword [ebp - 0x34]
mov esi, dword [ebp - 0x24]
lea eax, [ebp - 0x1c]
push dword [ebp - 0x38]
push eax
push dword [ebp - 0x20]
push str.DELETE_FROM__Q._s_WHERE__s_Q
push esi
call fcn.004cd850
add esp, 0x18
jmp 0x4ba4fa
movzx ecx, byte [ecx + 0x66d8b0]
movzx edx, byte [edx + 0x66d8b0]
sub edx, ecx
jne 0x4ba46f
inc eax
jmp 0x4ba403
mov edi, dword [ebp - 0x28]
inc esi
cmp esi, dword [edi + 0x14]
jl 0x4ba3e0
mov edx, str.sqlite_master
sub edx, ebx
movzx ecx, byte [ebx]
movzx eax, byte [edx + ebx]
cmp ecx, eax
jne 0x4ba4b1
test ecx, ecx
jne 0x4ba4c3
mov eax, dword [edi + 0x10]
mov ecx, dword [eax + 0x10]
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x4ba4c6
neg ecx
sbb ecx, ecx
test ecx, ecx
jne 0x4ba4f7
mov ebx, str.sqlite_temp_master
jmp 0x4ba3d0
movzx eax, byte [eax + 0x66d8b0]
movzx ecx, byte [ecx + 0x66d8b0]
sub ecx, eax
jne 0x4ba4f7
inc ebx
jmp 0x4ba483
test ecx, ecx
je 0x4ba4f7
mov esi, ecx
mov edx, eax
sub esi, eax
movzx ecx, byte [edx]
movzx eax, byte [esi + edx]
cmp ecx, eax
jne 0x4ba4e2
test ecx, ecx
je 0x4ba4a7
inc edx
jmp 0x4ba4d0
movzx eax, byte [eax + 0x66d8b0]
movzx ecx, byte [ecx + 0x66d8b0]
sub ecx, eax
jne 0x4ba4a3
inc edx
jmp 0x4ba4d0
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp eax, 4
jle 0x4ba3b0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005b56fe
mov esp, ebp
pop ebp
ret