joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406360
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x426d8c], 0
push esi
jne 0x406397
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406371
mov dword [ecx*4 + 0x426d88], eax
inc ecx
cmp ecx, 0x100
jl 0x40636c
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4063c8
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x426d88]
xor eax, esi
inc ecx
dec edx
jne 0x4063aa
pop edi
not eax
pop esi
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401730
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov ax, word [str.aSHeWFT]
push ebx
push esi
mov esi, ecx
push edi
mov word [ebp - 2], ax
xor dl, dl
mov ecx, 0xc
xor eax, eax
lea edi, [ebp - 0x63]
mov byte [ebp - 0x64], dl
mov byte [ebp - 0x30], dl
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 7
xor eax, eax
lea edi, [ebp - 0x2f]
push 1
rep stosd dword es:[edi], eax
mov ecx, esi
mov dword [ebp - 0x10], esi
stosb byte es:[edi], al
call sub.MFC42.DLL_CWnd::UpdateData
add esi, 0xa0
mov ecx, esi
call sub.MFC42.DLL_CString::TrimLeft
mov ecx, esi
call sub.MFC42.DLL_CString::TrimRight
mov ecx, dword [esi]
mov eax, dword [ecx - 8]
mov ecx, esi
push eax
call sub.MFC42.DLL_CString::GetBuffer
mov edx, eax
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push edx
mov dword [ebp - 8], ecx
call dword [sym.imp.MSVCRT.dll__strupr]
add esp, 4
mov dword [ebp - 0xc], eax
push eax
push ebx
push ecx
push edx
push ebp
push esi
push edi
xor ecx, ecx
mov edi, dword [ebp - 8]
test edi, edi
jle 0x4017e1
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 0xc]
mov al, byte ds:[ecx + esi]
xor al, dl
mov dl, al
mov byte ds:[ecx + esi], al
shl dl, 6
shr al, 4
add dl, al
inc ecx
cmp ecx, edi
jl 0x4017c8
pop edi
pop esi
pop ebp
pop edx
pop ecx
pop ebx
pop eax
push eax
push ebx
push ecx
push edx
push ebp
push esi
push edi
xor ecx, ecx
mov edi, dword [ebp - 8]
test edi, edi
jle 0x401817
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 0xc]
mov al, byte ds:[ecx + esi]
xor al, dl
mov dl, al
mov byte ds:[ecx + esi], al
shr dl, 6
shl al, 3
add dl, al
inc ecx
cmp ecx, edi
jl 0x4017fe
pop edi
pop esi
pop ebp
pop edx
pop ecx
pop ebx
pop eax
push eax
push ebx
push ecx
push edx
push ebp
push esi
push edi
xor ecx, ecx
mov edi, dword [ebp - 8]
test edi, edi
jle 0x40184d
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 0xc]
mov al, byte ds:[ecx + esi]
xor al, dl
mov dl, al
mov byte ds:[ecx + esi], al
shl dl, 5
shr al, 3
add dl, al
inc ecx
cmp ecx, edi
jl 0x401834
pop edi
pop esi
pop ebp
pop edx
pop ecx
pop ebx
pop eax
mov eax, dword [ebp - 8]
xor ebx, ebx
test eax, eax
jle 0x4018ab
mov eax, dword [ebp - 0xc]
xor edx, edx
lea ecx, [ebp - 0x30]
mov dl, byte [ebx + eax]
push edx
push str._02x
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea edi, [ebp - 0x30]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x64]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 8]
mov ecx, edx
and ecx, 3
inc ebx
cmp ebx, eax
rep movsb byte es:[edi], byte [esi]
jl 0x40185d
mov edi, dword [ebp - 0x10]
lea eax, [ebp - 0x64]
push eax
lea esi, [edi + 0xa4]
mov ecx, esi
call sub.MFC42.DLL_CString::operator
mov esi, dword [esi]
mov ecx, edi
push esi
push 0x3ed
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402240
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4054d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
mov ax, word [0x40aecc]
push ebx
push esi
mov esi, ecx
push edi
mov word [ebp - 0xe], ax
xor ebx, ebx
mov ecx, 0xc
xor eax, eax
lea edi, [ebp - 0x53]
mov byte [ebp - 0x54], bl
mov dword [ebp - 0x20], esi
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x14]
stosb byte es:[edi], al
call sub.MFC42.DLL_CString::CString
push 1
mov ecx, esi
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CWnd::UpdateData
add esi, 0xa0
mov ecx, esi
call sub.MFC42.DLL_CString::TrimLeft
mov ecx, esi
call sub.MFC42.DLL_CString::TrimRight
mov ecx, dword [esi]
mov eax, dword [ecx - 8]
mov ecx, esi
push eax
call sub.MFC42.DLL_CString::GetBuffer
mov dword [ebp - 0x1c], eax
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp - 0x18], ecx
push eax
push ebx
push ecx
push edx
push ebp
push esi
push edi
xor ecx, ecx
mov edi, dword [ebp - 0x18]
test edi, edi
jle 0x402300
mov dl, byte [ebp - 0xe]
mov esi, dword [ebp - 0x1c]
mov al, byte ds:[ecx + esi]
and eax, 0xff
and edx, 0xff
xor al, dl
mov dl, al
mov byte ds:[ecx + esi], al
sar edx, 4
shl eax, 6
add dl, al
inc ecx
cmp ecx, edi
jl 0x4022dc
pop edi
pop esi
pop ebp
pop edx
pop ecx
pop ebx
pop eax
mov eax, dword [ebp - 0x18]
xor ebx, ebx
test eax, eax
jle 0x40235d
mov eax, dword [ebp - 0x1c]
xor edx, edx
lea ecx, [ebp - 0x14]
mov dl, byte [ebx + eax]
push edx
push str._02x
push ecx
call sub.MFC42.DLL_CString::Format
mov edi, dword [ebp - 0x14]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x54]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x18]
mov ecx, edx
and ecx, 3
inc ebx
cmp ebx, eax
rep movsb byte es:[edi], byte [esi]
jl 0x402310
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x54]
push eax
lea esi, [edi + 0xa4]
mov ecx, esi
call sub.MFC42.DLL_CString::operator
mov esi, dword [esi]
mov ecx, edi
push esi
push 0x3ed
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.00402a66
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4023b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4054f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
mov ax, word [0x40aec0]
push ebx
push esi
mov esi, ecx
push edi
mov word [ebp - 0xe], ax
xor ebx, ebx
mov ecx, 0xc
xor eax, eax
lea edi, [ebp - 0x53]
mov byte [ebp - 0x54], bl
mov dword [ebp - 0x20], esi
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x14]
stosb byte es:[edi], al
call sub.MFC42.DLL_CString::CString
push 1
mov ecx, esi
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CWnd::UpdateData
lea edx, [esi + 0xa0]
or ecx, 0xffffffff
xor eax, eax
mov esi, dword [edx]
mov edi, esi
repne scasb al, byte es:[edi]
mov esi, dword [esi - 8]
not ecx
dec ecx
push esi
mov dword [ebp - 0x18], ecx
mov ecx, edx
call sub.MFC42.DLL_CString::GetBuffer
mov dword [ebp - 0x1c], eax
push eax
push ebx
push ecx
push edx
push ebp
push esi
push edi
xor ecx, ecx
mov edi, dword [ebp - 0x18]
test edi, edi
jle 0x402462
mov dl, byte [ebp - 0xe]
mov esi, dword [ebp - 0x1c]
mov al, byte ds:[ecx + esi]
and eax, 0xff
and edx, 0xff
xor al, dl
mov dl, al
mov byte ds:[ecx + esi], al
sar edx, 4
shl eax, 6
add dl, al
inc ecx
cmp ecx, edi
jl 0x40243e
pop edi
pop esi
pop ebp
pop edx
pop ecx
pop ebx
pop eax
mov eax, dword [ebp - 0x18]
xor ebx, ebx
test eax, eax
jle 0x4024bf
mov edx, dword [ebp - 0x1c]
xor ecx, ecx
lea eax, [ebp - 0x14]
mov cl, byte [ebx + edx]
push ecx
push str._02x
push eax
call sub.MFC42.DLL_CString::Format
mov edi, dword [ebp - 0x14]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x54]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x18]
mov ecx, edx
and ecx, 3
inc ebx
cmp ebx, eax
rep movsb byte es:[edi], byte [esi]
jl 0x402472
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x54]
push eax
lea esi, [edi + 0xa4]
mov ecx, esi
call sub.MFC42.DLL_CString::operator
mov esi, dword [esi]
mov ecx, edi
push esi
push 0x3ed
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.00402a66
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100178b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, dword [esp + 8]
mov al, byte [esi]
test al, al
je 0x100178ee
cmp al, 3
jb 0x100178d0
push esi
call fcn.10017b00
add esp, 4
test eax, eax
jne 0x10017a08
mov al, byte [esi]
cmp al, 1
jne 0x100178dd
mov eax, 0x65
pop esi
ret
cmp al, 2
jne 0x100178ee
cmp dword [esi + 4], 0
mov byte [esi], 0
jge 0x100178ee
xor eax, eax
pop esi
ret
mov edx, dword [esi + 0x74]
movzx eax, word [esi + 0x46]
push ebx
push edi
cmp byte [edx + 8], 0
mov ecx, eax
jne 0x1001793a
mov eax, dword [edx + 0x40]
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [edx + 0x1a]
movzx ecx, cx
and ecx, eax
mov eax, dword [edx + 0x38]
mov eax, dword [ecx + eax]
bswap eax
push eax
push esi
call fcn.100284c0
add esp, 8
test eax, eax
jne 0x10017a06
push esi
call fcn.100285f0
add esp, 4
pop edi
pop ebx
pop esi
ret
test ax, ax
jne 0x100179d6
mov bl, byte [esi + 0x44]
test bl, bl
je 0x100179f8
and byte [esi + 1], 0xf9
xor eax, eax
mov ecx, dword [esi + 0x74]
movsx edx, bl
dec bl
mov word [esi + 0x32], ax
mov ax, word [esi + edx*2 + 0x46]
mov word [esi + 0x46], ax
mov byte [esi + 0x44], bl
mov eax, dword [esi + edx*4 + 0x74]
mov dword [esi + 0x74], eax
mov edx, dword [ecx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x100179bb
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.10084590
push edx
push eax
mov eax, dword [ebx + 0x48]
push edi
call eax
add esp, 0x10
jmp 0x100179c4
push edx
call fcn.10050280
add esp, 4
movzx eax, word [esi + 0x46]
test ax, ax
je 0x10017943
mov edx, dword [esi + 0x74]
mov ecx, eax
lea eax, [ecx - 1]
mov word [esi + 0x46], ax
cmp byte [edx + 2], 0
je 0x10017a04
cmp byte [edx + 8], 0
jne 0x10017a04
push 0
push esi
call fcn.1003a520
add esp, 8
pop edi
pop ebx
pop esi
ret
pop edi
pop ebx
mov byte [esi], 1
mov eax, 0x65
pop esi
ret
xor eax, eax
pop edi
pop ebx
pop esi
ret
Function at 0x10017a10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, dword [esp + 8]
mov al, byte [ebp + 0x44]
test al, al
js 0x10017afa
push ebx
push esi
xor ebx, ebx
push edi
test al, al
jle 0x10017a98
add ebp, 0x78
lea esp, [esp]
mov ecx, dword [ebp]
mov ecx, dword [ecx + 0x48]
test byte [ecx + 0x1c], 0x20
je 0x10017a7b
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.10084590
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x10017a84
push ecx
call fcn.10050280
add esp, 4
mov eax, dword [esp + 0x14]
inc ebx
add ebp, 4
movsx eax, byte [eax + 0x44]
cmp ebx, eax
jl 0x10017a30
mov ebp, dword [esp + 0x14]
mov eax, dword [ebp + 0x74]
mov edx, dword [eax + 0x48]
test byte [edx + 0x1c], 0x20
je 0x10017aea
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.10084590
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
mov byte [ebp + 0x44], 0xff
pop edi
pop esi
pop ebx
pop ebp
ret
push edx
call fcn.10050280
add esp, 4
mov byte [ebp + 0x44], 0xff
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x100286a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
xor ebp, ebp
push edi
mov al, byte [esi + 0x44]
test al, al
js 0x10028741
mov edx, dword [esi + 0x74]
je 0x100287aa
push dword [edx + 0x48]
call fcn.1004f580
mov al, byte [esi + 0x44]
add esp, 4
sub al, 1
mov byte [esi + 0x44], al
je 0x10028736
push ebx
movsx eax, al
mov eax, dword [esi + eax*4 + 0x78]
mov ecx, dword [eax + 0x48]
test byte [ecx + 0x1c], 0x20
je 0x10028722
mov edx, dword [ecx + 0x14]
dec dword [edx + 0x78]
mov eax, dword [edx + 0x88]
mov dword [ecx + 0x10], eax
mov edi, dword [edx + 0x3c]
mov eax, dword [edx + 0x98]
mov dword [edx + 0x88], ecx
push dword [ecx + 4]
mov ecx, dword [ecx + 0x18]
mov ebx, dword [edi]
dec ecx
cdq
push edx
push eax
push 0
push ecx
call fcn.10084590
push edx
push eax
mov eax, dword [ebx + 0x48]
push edi
call eax
add esp, 0x10
jmp 0x1002872b
push ecx
call fcn.10050280
add esp, 4
mov al, byte [esi + 0x44]
sub al, 1
mov byte [esi + 0x44], al
jne 0x100286d3
pop ebx
mov edx, dword [esi + 0x78]
mov dword [esi + 0x74], edx
jmp 0x100287bf
mov ecx, dword [esi + 0x40]
test ecx, ecx
jne 0x10028752
pop edi
mov byte [esi], 1
lea eax, [ecx + 0x10]
pop esi
pop ebp
ret
mov al, byte [esi]
cmp al, 3
jb 0x10028777
cmp al, 4
jne 0x10028763
mov eax, dword [esi + 4]
pop edi
pop esi
pop ebp
ret
push dword [esi + 0x10]
call sym.sqlite3.dll_sqlite3_free
mov ecx, dword [esi + 0x40]
add esp, 4
mov dword [esi + 0x10], ebp
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 ecx
push dword [eax + 4]
call fcn.10024940
mov ebp, eax
add esp, 0x14
test ebp, ebp
je 0x1002879e
pop edi
mov byte [esi], 1
pop esi
pop ebp
ret
mov edx, dword [edi]
mov byte [esi + 0x44], 0
mov al, byte [edx + 2]
mov byte [esi + 0x45], al
cmp byte [edx], 0
je 0x10028824
movzx eax, byte [edx + 2]
xor ecx, ecx
cmp dword [esi + 0x70], ecx
sete cl
cmp ecx, eax
jne 0x10028824
and byte [esi + 1], 0xf1
xor eax, eax
mov word [esi + 0x46], ax
mov word [esi + 0x32], ax
cmp word [edx + 0x18], ax
jbe 0x100287db
pop edi
mov byte [esi], al
mov eax, ebp
pop esi
pop ebp
ret
cmp byte [edx + 8], al
jne 0x10028816
cmp dword [edx + 4], 1
je 0x100287f6
pop edi
pop esi
pop ebp
mov dword [esp + 4], 0x10b64
jmp fcn.1003c810
movzx ecx, byte [edx + 9]
mov eax, dword [edx + 0x38]
mov eax, dword [ecx + eax + 8]
bswap eax
push eax
push esi
mov byte [esi], 0
call fcn.100284c0
add esp, 8
mov ebp, eax
pop edi
pop esi
pop ebp
ret
pop edi
mov ebp, 0x10
mov byte [esi], 1
pop esi
mov eax, ebp
pop ebp
ret
push 0x10091874
push 0x10b57
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10010e10
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebp
ret
Function at 0x10030f60
Capabilities:
Reference sql statements

Disassembly:
push edi
push dword [esp + 0x10]
mov edi, dword [esp + 0x10]
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 [esp + 0x1c]
call fcn.1004d730
add esp, 0x18
cmp dword [esp + 0x10], 0
jne 0x10030f9f
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 [esp + 0x14]
call fcn.1004d730
add esp, 0x10
pop edi
ret

Function at 0x10038660
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
xor ebp, ebp
push esi
xor ebx, ebx
call fcn.100286a0
add esp, 4
cmp eax, 0x10
jne 0x1003868a
mov eax, dword [esp + 0x18]
pop esi
pop ebp
mov dword [eax], ebx
mov dword [eax + 4], ebx
xor eax, eax
pop ebx
pop ecx
ret
push edi
test eax, eax
jne 0x100387bb
mov edi, dword [esi + 0x74]
mov cl, byte [edi + 8]
test cl, cl
jne 0x100386a6
cmp byte [edi + 2], cl
jne 0x10038758
movzx eax, word [edi + 0x18]
cdq
add ebp, eax
adc ebx, edx
mov dword [esp + 0x10], ebx
test cl, cl
je 0x10038758
jmp 0x100386c0
mov dl, byte [esi + 0x44]
test dl, dl
je 0x100387a5
and byte [esi + 1], 0xf9
xor eax, eax
movsx ecx, dl
dec dl
mov word [esi + 0x32], ax
mov ax, word [esi + ecx*2 + 0x46]
mov word [esi + 0x46], ax
mov byte [esi + 0x44], dl
mov eax, dword [esi + ecx*4 + 0x74]
mov dword [esi + 0x74], eax
mov edx, dword [edi + 0x48]
test byte [edx + 0x1c], 0x20
je 0x10038735
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.10084590
push edx
push eax
mov eax, dword [ebx + 0x48]
push edi
call eax
add esp, 0x10
jmp 0x1003873e
push edx
call fcn.10050280
add esp, 4
mov edi, dword [esi + 0x74]
movzx eax, word [esi + 0x46]
cmp ax, word [edi + 0x18]
jae 0x100386c0
mov ebx, dword [esp + 0x10]
inc eax
mov word [esi + 0x46], ax
movzx ecx, word [esi + 0x46]
movzx eax, word [edi + 0x18]
cmp ecx, eax
jne 0x10038771
movzx ecx, byte [edi + 9]
mov eax, dword [edi + 0x38]
mov eax, dword [ecx + eax + 8]
jmp 0x1003878b
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.100284c0
add esp, 8
test eax, eax
je 0x10038693
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
push esi
mov dword [eax], ebp
mov dword [eax + 4], ecx
call fcn.100286a0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x1003b010
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x38
mov eax, dword [0x100955e4]
xor eax, esp
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x48]
add ecx, ecx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x1c], eax
mov eax, dword [esi]
push edi
mov dword [esp + 0x14], esi
mov eax, dword [eax + 0x10]
mov ebx, dword [eax + ecx*8]
mov eax, 1
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], eax
push eax
push str.sqlite_stat_d
lea eax, [esp + 0x34]
push eax
push 0x18
call sym.sqlite3.dll_sqlite3_snprintf
mov ecx, dword [esi]
lea ebp, [esp + 0x3c]
add esp, 0x10
mov dword [esp + 0x10], ecx
xor esi, esi
cmp dword [ecx + 0x14], esi
jle 0x1003b0f0
jmp 0x1003b080
mov edi, esi
cmp esi, 2
jge 0x1003b08a
xor edi, 1
test ebx, ebx
je 0x1003b0bf
mov ecx, dword [ecx + 0x10]
mov edx, edi
add edx, edx
mov eax, ebx
mov ebx, dword [ecx + edx*8]
sub ebx, dword [esp + 0x18]
mov edi, edi
movzx edx, byte [eax]
movzx ecx, byte [ebx + eax]
cmp edx, ecx
jne 0x1003b138
test edx, edx
jne 0x1003b14a
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x10]
add edi, edi
push 0
push ebp
mov eax, dword [eax + edi*8 + 0xc]
add eax, 8
push eax
call fcn.10021270
add esp, 0xc
mov eax, dword [eax + 8]
test eax, eax
jne 0x1003b197
mov ecx, dword [esp + 0x10]
inc esi
mov ebx, dword [esp + 0x18]
cmp esi, dword [ecx + 0x14]
jl 0x1003b080
mov edx, str.sqlite_master
sub edx, ebp
jmp 0x1003b100
movzx ecx, byte [ebp]
movzx eax, byte [edx + ebp]
cmp ecx, eax
jne 0x1003b150
test ecx, ecx
jne 0x1003b162
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 0x10]
test ebx, ebx
jne 0x1003b165
neg ecx
sbb ecx, ecx
test ecx, ecx
jne 0x1003b1b9
mov ecx, dword [esp + 0x10]
mov ebp, str.sqlite_temp_master
jmp 0x1003b074
movzx ecx, byte [ecx + 0x10087c80]
movzx edx, byte [edx + 0x10087c80]
sub edx, ecx
jne 0x1003b0e2
inc eax
jmp 0x1003b0a0
movzx eax, byte [eax + 0x10087c80]
movzx ecx, byte [ecx + 0x10087c80]
sub ecx, eax
jne 0x1003b1b9
inc ebp
jmp 0x1003b100
test ecx, ecx
je 0x1003b1b9
mov esi, ecx
mov edx, ebx
sub esi, ebx
nop
movzx ecx, byte [edx]
movzx eax, byte [esi + edx]
cmp ecx, eax
jne 0x1003b182
test ecx, ecx
je 0x1003b12a
inc edx
jmp 0x1003b170
movzx eax, byte [eax + 0x10087c80]
movzx ecx, byte [ecx + 0x10087c80]
sub ecx, eax
jne 0x1003b122
inc edx
jmp 0x1003b170
push dword [esp + 0x20]
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x30]
push dword [esp + 0x28]
push eax
push ebx
push str.DELETE_FROM__Q._s_WHERE__s_Q
push esi
call fcn.1004d730
add esp, 0x18
jmp 0x1003b1bd
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, 4
jle 0x1003b055
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100843e0
add esp, 0x38
ret