joyce8/EMBER2024-capa huggingface dataset:
Function at 0x459d70
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4f6ac8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x52e028]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov eax, dword [edi]
mov dword [esi], eax
mov dword [esi + 4], vtable.ATL::CImage.0
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0xc], edx
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
mov ecx, dword [edi + 0x14]
mov dword [esi + 0x14], ecx
mov edx, dword [edi + 0x18]
mov dword [esi + 0x18], edx
mov eax, dword [edi + 0x1c]
mov dword [esi + 0x1c], eax
mov cl, byte [edi + 0x20]
mov byte [esi + 0x20], cl
mov dl, byte [edi + 0x21]
mov byte [esi + 0x21], dl
mov eax, dword [edi + 0x24]
mov dword [esi + 0x24], eax
mov ecx, dword [edi + 0x28]
mov dword [esi + 0x28], ecx
mov edx, dword [edi + 0x2c]
mov dword [esi + 0x2c], edx
mov eax, dword [edi + 0x30]
mov dword [esi + 0x30], eax
mov dword [esp + 0x14], 0
mov ecx, dword [edi + 0x34]
mov dword [esi + 0x34], ecx
mov edx, dword [edi + 0x38]
lea eax, [esi + 0x3c]
lea ecx, [edi + 0x3c]
push eax
mov dword [esi + 0x38], edx
call fcn.00459e50
mov byte [esp + 0x14], 1
mov ecx, dword [edi + 0x54]
lea eax, [edi + 0x54]
mov dword [esi + 0x54], ecx
mov edx, dword [eax + 4]
mov dword [esi + 0x58], edx
mov ecx, dword [eax + 8]
mov dword [esi + 0x5c], ecx
mov edx, dword [eax + 0xc]
mov dword [esi + 0x60], edx
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4

Function at 0x45b670
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2b8
mov eax, dword [0x52e028]
xor eax, esp
mov dword [esp + 0x2b4], eax
push 0x2b0
lea eax, [esp + 8]
push 0
push eax
mov dword [esp + 0xc], 0
call fcn.004f0a6a
add esp, 0xc
push 0x4001
push 0x2b4
lea ecx, [esp + 8]
push ecx
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ecx, dword [esp + 0x2b4]
mov eax, dword [esp + 4]
xor ecx, esp
call fcn.004efe2a
add esp, 0x2b8
ret
Function at 0x464990
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4f59f9
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x52e028]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
lea ecx, [esp + 4]
call dword [0x4fff58]
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 8]
push str.__e__select___s_
push ecx
call dword [0x4ffacc]
mov edx, dword [esp + 0x10]
add esp, 0xc
push 1
push 0
push edx
push str.explorer.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [esp + 0x10], 0xffffffff
lea ecx, [esp + 4]
call dword [0x4fff34]
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
add esp, 0x10
ret

Function at 0x464ab0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x464b1e
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [esi]
mov edx, eax
lea esp, [esp]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x464af0
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, 1
pop edi
ret
xor eax, eax
ret
Function at 0x466cb0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4fb542
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52e028]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, edx
mov ebp, dword [esp + 0x40]
mov edi, dword [esp + 0x3c]
push 1
mov ecx, ebp
call fcn.004ef4b0
mov eax, dword [ebp]
mov edx, dword [eax + 0x38]
push 0
mov ecx, ebp
call edx
mov eax, dword [edi + 0x20]
push 0
push 0
push 0x31
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
call fcn.004ef4b6
mov edx, dword [ebp]
push eax
mov eax, dword [edx + 0x30]
mov ecx, ebp
call eax
lea ecx, [esp + 0x40]
call dword [0x4fff58]
mov dword [esp + 0x34], 0
mov ecx, dword [esp + 0x44]
push ebx
push ecx
lea edx, [esp + 0x44]
push edx
mov ecx, edi
call fcn.004ef366
mov byte [esp + 0x34], 1
push eax
lea ecx, [esp + 0x44]
call dword [0x4ffefc]
mov byte [esp + 0x34], 0
lea ecx, [esp + 0x3c]
call dword [0x4fff34]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
test ebx, ebx
jne 0x466d7f
mov dword [esp + 0x18], ebx
cmp byte [esp + 0x48], 0
je 0x466d92
push 0xffe8d7
lea ecx, [esp + 0x1c]
push ecx
jmp 0x466daf
cmp byte [esp + 0x4c], 0
je 0x466da5
push 0xfbf4f1
lea edx, [esp + 0x1c]
push edx
jmp 0x466daf
push 0xffffff
lea eax, [esp + 0x1c]
push eax
mov ecx, ebp
call fcn.004ef4e6
mov ecx, dword [edi + 0x1b4]
sub ecx, dword [edi + 0x1b0]
sar ecx, 2
cmp ebx, ecx
jae 0x466ded
mov edx, dword [edi + 0x1b4]
sub edx, dword [edi + 0x1b0]
sar edx, 2
cmp ebx, edx
jb 0x466de2
call dword [0x4ff3d0]
mov eax, dword [edi + 0x1b0]
mov eax, dword [eax + ebx*4]
jmp 0x466def
xor eax, eax
and eax, 0xffff
cmp eax, 0x10
ja case.0x466e00.3
movzx ecx, byte [eax + 0x466e84]
jmp dword [ecx*4 + 0x466e70]
mov edx, dword [esp + 0x40]
push edx
jmp 0x466e37
mov ebx, dword [esp + 0x40]
push ebp
mov eax, edi
call fcn.00467290
jmp case.0x466e00.3
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
push ecx
push ebx
push edx
push ebp
push edi
mov edi, esi
call fcn.00467480
jmp case.0x466e00.3
mov eax, dword [esp + 0x40]
push eax
mov ecx, dword [esp + 0x48]
push esi
push ebx
push ebp
mov edx, edi
call fcn.004670d0
mov dword [esp + 0x34], 0xffffffff
lea ecx, [esp + 0x40]
call dword [0x4fff34]
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0x14
Function at 0x467480
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4f39d9
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
mov eax, dword [0x52e028]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x20]
add dword [edi], 5
add dword [edi + 8], 0xfffffffb
mov edx, dword [esp + 0x30]
movzx edx, word [edx]
sub edx, 0x30
mov ebx, dword [edi]
mov ecx, dword [edi + 4]
mov eax, dword [edi + 0xc]
je 0x4674d0
sub edx, 1
je 0x4675a3
sub edx, 1
jne 0x46751b
mov edx, dword [ebp + 0xc4]
sub eax, ecx
sub eax, edx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 4]
mov ecx, dword [ebp + 0xc4]
lea esi, [ebp + 0xb4]
mov dword [esp + 0x20], edx
mov edx, dword [esi + 0xc]
push edx
push 0
push ecx
push edx
push eax
mov eax, dword [esp + 0x34]
push ebx
push eax
mov eax, ecx
xor ebx, ebx
call fcn.004176f0
mov eax, dword [ebp + 0xc0]
add eax, 3
add dword [edi], eax
mov ecx, dword [esp + 0x30]
movzx eax, word [ecx]
add eax, 0xffffffd0
cmp eax, 1
ja 0x467572
mov ecx, dword [edi + 4]
mov eax, dword [edi + 0xc]
mov edx, dword [ebp + 0x124]
mov ebx, dword [edi]
sub eax, ecx
sub eax, edx
cdq
sub eax, edx
mov edx, dword [esp + 0x24]
sar eax, 1
add eax, ecx
mov ecx, dword [edx + 4]
mov edx, dword [ebp + 0x120]
push edx
lea esi, [ebp + 0x114]
push 0
mov dword [esp + 0x28], ecx
mov ecx, dword [esi + 0x10]
push ecx
push edx
mov edx, dword [esp + 0x30]
push eax
push ebx
push edx
mov eax, ecx
xor ebx, ebx
call fcn.004176f0
mov eax, dword [ebp + 0x120]
add eax, 5
add dword [edi], eax
mov eax, dword [ebp + 0x1c8]
test eax, eax
je 0x4675ee
mov ecx, dword [ebp + 0x1cc]
mov edx, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x2c]
push 0
push edx
push ecx
push 1
call eax
add esp, 0x14
jmp 0x4675f0
mov edx, dword [ebp + 0xf4]
sub eax, ecx
sub eax, edx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 4]
mov ecx, dword [ebp + 0xf4]
lea esi, [ebp + 0xe4]
mov dword [esp + 0x20], edx
mov edx, dword [esi + 0xc]
push edx
push 0
push ecx
push edx
push eax
mov eax, dword [esp + 0x34]
push ebx
push eax
mov eax, ecx
xor ebx, ebx
call fcn.004176f0
mov eax, dword [ebp + 0xf0]
jmp 0x467516
xor eax, eax
mov esi, dword [esp + 0x24]
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x38]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x30]
add ecx, 2
push ecx
lea ecx, [esp + 0x28]
mov ebx, eax
call dword [0x4fff2c]
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x24]
mov ecx, dword [eax - 0xc]
mov edx, dword [esi]
push 0x8024
push edi
push ecx
push eax
mov eax, dword [edx + 0x70]
mov ecx, esi
call eax
mov dword [esp + 0x18], 0xffffffff
lea ecx, [esp + 0x24]
call dword [0x4fff34]
mov edx, dword [esi]
mov eax, dword [edx + 0x38]
push ebx
mov ecx, esi
call eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x14
Function at 0x469400
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4f4740
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
mov eax, dword [0x52e028]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [esp + 0x18], vtable.CGdiObject.0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x18], vtable.CPen.0
mov dword [esp + 0x30], 1
mov ebp, dword [sym.imp.GDI32.dll_CreatePen]
push 0x7a7a7a
push 1
push eax
call ebp
push eax
lea ecx, [esp + 0x1c]
call fcn.004ef4aa
lea eax, [esp + 0x18]
push eax
mov ecx, edi
call fcn.004efa8c
mov ecx, dword [esi + 4]
push ecx
mov ebx, eax
mov eax, dword [esi]
push eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, edi
call fcn.004efa56
mov edx, dword [esi + 0xc]
mov eax, dword [esi]
push edx
push eax
mov ecx, edi
call fcn.004efa5c
mov dword [esp + 0x10], vtable.CGdiObject.0
mov dword [esp + 0x14], 0
mov byte [esp + 0x30], 2
mov dword [esp + 0x10], vtable.CPen.0
mov byte [esp + 0x30], 3
push 0xffffff
push 1
push 0
call ebp
push eax
lea ecx, [esp + 0x14]
call fcn.004ef4aa
lea ecx, [esp + 0x10]
push ecx
mov ecx, edi
call fcn.004efa8c
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 8]
push ecx
push eax
lea edx, [esp + 0x28]
push edx
mov ecx, edi
call fcn.004efa56
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
push eax
push ecx
mov ecx, edi
call fcn.004efa5c
push ebx
mov ecx, edi
call fcn.004efa8c
mov byte [esp + 0x30], 1
mov esi, vtable.CPen.0
mov dword [esp + 0x10], esi
mov byte [esp + 0x30], 1
lea ecx, [esp + 0x10]
call fcn.0040b760
or eax, 0xffffffff
mov dword [esp + 0x30], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x18]
call fcn.0040b760
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x46b610
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f4648
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebp
push esi
push edi
mov eax, dword [0x52e028]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0xc], 0
je 0x46b70a
mov eax, 3
mov word [esp + 0x1c], ax
mov dword [esp + 0x24], 0
mov dword [esp + 0x38], 0
mov ebp, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov edi, dword [esi + 4]
lea ecx, [esp + 0x1c]
push ecx
call ebp
mov edx, 8
push edi
mov word [esp + 0x20], dx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esp + 0x24], eax
test eax, eax
jne 0x46b6ab
test edi, edi
je 0x46b6ab
mov eax, 0xa
push 0x8007000e
mov word [esp + 0x20], ax
mov dword [esp + 0x28], 0x8007000e
call fcn.00409840
mov ecx, dword [esi + 0xc]
lea esi, [esp + 0x14]
push esi
mov dword [esp + 0x18], 0
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x34]
push ecx
call eax
test eax, eax
jl 0x46b6fb
mov eax, dword [esp + 0x14]
test eax, eax
je 0x46b6fb
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
mov esi, eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
test esi, esi
jge 0x46b71f
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x38], 0xffffffff
lea eax, [esp + 0x1c]
push eax
call ebp
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x18], 1
jne 0x46b735
mov dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x1c]
push ecx
jmp 0x46b708
mov dword [esp + 0x38], 0xffffffff
lea edx, [esp + 0x1c]
push edx
call ebp
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov esp, ebp
pop ebp
ret

Function at 0x470180
Capabilities:
Query environment variable

Disassembly:
push 0x8000
push 0
push 0x531e30
call fcn.004f0a6a
add esp, 0xc
push 0x8000
push 0x531e30
push 0x513914
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x4701ba
cmp eax, 0x8000
ja 0x4701ba
mov eax, 0x531e30
ret
xor eax, eax
ret

Function at 0x470185
Capabilities:
Query environment variable

Disassembly:
push 0x8000
push 0
push 0x531e30
call fcn.004f0a6a
add esp, 0xc
push 0x8000
push 0x531e30
push 0x513914
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x4701ba
cmp eax, 0x8000
ja 0x4701ba
mov eax, 0x531e30
ret
xor eax, eax
ret
Function at 0x481a10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [edi + 0x88]
push ebx
push esi
xor esi, esi
cmp eax, esi
je 0x481a44
mov edx, dword [eax + 0x10]
mov ecx, dword [ebp + 0x10]
mov dword [edi + 0x88], edx
mov edx, dword [eax + 8]
mov dword [ecx], eax
xor ecx, ecx
mov dword [eax + 0x10], esi
mov dword [edx], ecx
mov dword [edx + 4], ecx
jmp 0x481acc
movzx ebx, word [edi + 0x8c]
add ebx, 0x28
xor eax, eax
mov ecx, ebx
or ecx, eax
je 0x481a72
push eax
push ebx
call fcn.00474f70
mov esi, eax
add esp, 8
test esi, esi
je 0x481a72
push ebx
push 0
push esi
call fcn.004f0a6a
add esp, 0xc
mov edx, dword [ebp + 0x10]
mov eax, esi
mov dword [edx], esi
test esi, esi
jne 0x481ab1
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov esi, dword [edi + 0x3c]
mov ebx, dword [esi]
push eax
mov eax, dword [edi + 0x98]
push 0
cdq
dec ecx
push ecx
push edx
push eax
call fcn.004f08d0
push edx
mov edx, dword [ebx + 0x48]
push eax
push esi
call edx
add esp, 0x10
mov eax, 7
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esi + 0x28]
mov dword [esi + 8], ecx
mov edx, 0x20
mov ecx, 1
mov word [esi + 0x1c], dx
mov word [esi + 0x1e], cx
mov dword [esi + 0x14], edi
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x18], edx
mov dword [eax + 4], ecx
inc dword [edi + 0x78]
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a8890
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
cmp edi, eax
je 0x4a8a3c
mov ebx, dword [ebp + 8]
push 0
push 0x4c
mov eax, ebx
call fcn.004754b0
mov esi, eax
add esp, 8
test esi, esi
je 0x4a8a38
mov edx, dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push eax
push ebx
call fcn.004a8530
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov dword [esi], eax
mov edx, dword [edi + 0x20]
push ecx
push edx
push ebx
call fcn.004a8670
mov dword [esi + 0x20], eax
mov eax, dword [edi + 0x24]
add esp, 0xc
test eax, eax
je 0x4a8913
mov ecx, dword [ebp + 0x10]
push 0
push ecx
push eax
push ebx
call fcn.004a81b0
add esp, 0x10
jmp 0x4a8915
xor eax, eax
mov edx, dword [ebp + 0x10]
mov dword [esi + 0x24], eax
mov eax, dword [edi + 0x28]
push edx
push eax
push ebx
call fcn.004a8530
mov dword [esi + 0x28], eax
mov eax, dword [edi + 0x2c]
add esp, 0xc
test eax, eax
je 0x4a8945
mov ecx, dword [ebp + 0x10]
push 0
push ecx
push eax
push ebx
call fcn.004a81b0
add esp, 0x10
jmp 0x4a8947
xor eax, eax
mov edx, dword [ebp + 0x10]
mov dword [esi + 0x2c], eax
mov eax, dword [edi + 0x30]
push edx
push eax
push ebx
call fcn.004a8530
mov edx, dword [esp + 0x24]
mov dword [esi + 0x30], eax
mov cl, byte [edi + 4]
mov byte [esi + 4], cl
mov dword [esi + 0x38], edx
mov dword [esi + 0x34], 0
mov eax, dword [edi + 0x3c]
add esp, 0xc
test eax, eax
je 0x4a898b
mov ecx, dword [ebp + 0x10]
push 0
push ecx
push eax
push ebx
call fcn.004a81b0
add esp, 0x10
jmp 0x4a898d
xor eax, eax
mov dword [esi + 0x3c], eax
xor eax, eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov edx, dword [edi + 8]
or eax, 0xffffffff
and edx, 0xffffffdf
mov dword [esi + 8], edx
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov ax, word [edi + 6]
mov word [esi + 6], ax
mov ecx, dword [edi + 0x40]
push ecx
push ebx
call fcn.004a8450
xor ecx, ecx
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], ecx
mov eax, dword [edi + 0x48]
add esp, 8
lea edx, [esp + 0x18]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], eax
cmp eax, ecx
je 0x4a8a0f
jmp 0x4a89e4
mov eax, dword [esp + 0xc]
push 0
push ebx
call fcn.004e6fa0
mov ecx, dword [esp + 0x1c]
add esp, 8
mov dword [ecx], eax
test eax, eax
je 0x4a8a0f
mov edx, dword [esp + 0xc]
add eax, 0x18
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x18]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x4a89e0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esi + 0x48], eax
mov ecx, dword [edi + 0x14]
mov dword [esi + 0x14], ecx
mov dword [edx], esi
mov edi, dword [edi + 0x34]
lea eax, [esi + 0x34]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], esi
test edi, edi
jne 0x4a88bc
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4add60
Capabilities:
Reference sql statements

Disassembly:
push ebx
push edi
push esi
push str.sqlite_master
push esi
mov ebx, eax
push str.SELECT_1_FROM___w_._s_WHERE_name_NOT_LIKE_sqlite____AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d_NULL
call fcn.004b2980
add esp, 0x14
test edi, edi
jne 0x4add8f
push esi
push str.sqlite_master
push str.SELECT_1_FROM_temp._s_WHERE_name_NOT_LIKE_sqlite____AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1_NULL
call fcn.004b2980
add esp, 0xc
pop ebx
ret
Function at 0x4aeff0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x74
push ebx
xor eax, eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x88]
mov ebx, dword [edi + 0xe8]
mov ebp, dword [edi]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x10], edi
mov ecx, dword [ebx + 0x18]
xor esi, esi
mov eax, 0xfff0bdc0
test ecx, ecx
je 0x4af04e
mov edx, dword [ebp + 0x10]
add edx, 0xc
xor eax, eax
cmp dword [edx], ecx
je 0x4af04e
add edx, 0x10
inc eax
cmp dword [edx], ecx
jne 0x4af046
mov ecx, dword [ebp + 0x10]
shl eax, 4
mov edx, dword [eax + ecx]
mov eax, dword [ebx + 4]
push edx
push ebp
call fcn.004b2a40
mov dword [edi + 0x78], eax
mov al, byte [ebx + 8]
mov byte [edi + 0x8c], al
mov eax, dword [ebx + 0xc]
add esp, 8
test eax, eax
je 0x4af086
push eax
lea edi, [esp + 0x14]
call fcn.004a6b90
add esp, 4
mov esi, eax
mov ebp, dword [ebx + 0x1c]
test esi, esi
jne 0x4af1dc
test ebp, ebp
je 0x4af1dc
mov eax, dword [ebp + 8]
mov ebx, dword [esp + 0x88]
test eax, eax
je 0x4af0bf
lea ecx, [esp + 0x10]
push ecx
push eax
push ebx
call fcn.004cf7b0
add esp, 0xc
cmp dword [ebx + 0x24], 0
je 0x4af0bf
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x4af1d1
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4af1d1
mov edx, dword [esp + 0x8c]
push edx
push eax
push esi
push ebx
call fcn.004b2b10
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4af0f3
lea esi, [eax + 1]
jmp 0x4af1d1
push edi
mov eax, ebx
call fcn.004b56b0
mov esi, eax
add esp, 4
test esi, esi
jne 0x4af1d1
push 0x50
push eax
lea eax, [esp + 0x38]
push eax
call fcn.004f0a6a
mov ecx, dword [ebp + 0xc]
lea edx, [esp + 0x3c]
mov dword [esp + 0x20], edx
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov dword [esp + 0x30], 1
mov dword [esp + 0x40], ecx
mov dword [esp + 0x48], edi
test eax, eax
je 0x4af149
push eax
lea edi, [esp + 0x14]
call fcn.004a6b90
add esp, 4
mov esi, eax
test esi, esi
jne 0x4af15f
mov eax, dword [ebp + 0x14]
push eax
lea eax, [esp + 0x14]
call fcn.004a6c60
add esp, 4
mov esi, eax
mov ebx, dword [ebp + 0x1c]
test ebx, ebx
je 0x4af1d1
lea ecx, [esp + 0x30]
mov dword [ebx + 0x14], ecx
mov edx, 0x200
mov dword [esp + 0x18], ebx
mov word [esp + 0x28], dx
mov eax, dword [ebx]
push eax
lea eax, [esp + 0x14]
call fcn.004a6c60
mov esi, eax
add esp, 4
test esi, esi
jne 0x4af1ca
mov eax, dword [ebx + 8]
push eax
lea eax, [esp + 0x14]
call fcn.004a6c60
mov esi, eax
add esp, 4
test esi, esi
jne 0x4af1ca
mov ecx, dword [ebx + 0xc]
push ecx
lea edi, [esp + 0x14]
call fcn.004a6b90
mov esi, eax
add esp, 4
test esi, esi
jne 0x4af1ca
mov edx, dword [ebx + 4]
push edx
call fcn.004a6b90
add esp, 4
mov esi, eax
xor eax, eax
mov word [esp + 0x28], ax
mov ebp, dword [ebp + 0x24]
test esi, esi
je 0x4af091
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret
Function at 0x4b2a40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov ebx, eax
lea ebx, [ebx]
xor edi, edi
cmp dword [ebp + 0x14], edi
jle 0x4b2a99
cmp edi, 2
mov esi, edi
jge 0x4b2a61
xor esi, 1
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4b2a7d
mov edx, dword [ebp + 0x10]
mov eax, esi
shl eax, 4
mov eax, dword [eax + edx]
call fcn.00478290
test eax, eax
jne 0x4b2a93
mov eax, dword [ebp + 0x10]
shl esi, 4
mov eax, dword [esi + eax + 0xc]
add eax, 8
call fcn.00479860
test eax, eax
jne 0x4b2ad7
inc edi
cmp edi, dword [ebp + 0x14]
jl 0x4b2a57
mov al, byte [ebx]
movzx edx, al
movzx edx, byte [edx + 0x50a5e8]
sub edx, 0x73
mov ecx, ebx
jne 0x4b2ad5
mov edx, str.sqlite_master
sub edx, ebx
test al, al
je 0x4b2adc
mov al, byte [ecx + 1]
movzx esi, byte [edx + ecx + 1]
movzx esi, byte [esi + 0x50a5e8]
inc ecx
movzx edi, al
movzx edi, byte [edi + 0x50a5e8]
sub edi, esi
je 0x4b2ab3
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x18]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x10]
test ecx, ecx
jne 0x4b2af0
neg eax
sbb eax, eax
jmp 0x4b2af9
test eax, eax
je 0x4b2ad5
call fcn.00478290
test eax, eax
jne 0x4b2ad5
mov ebx, str.sqlite_temp_master
jmp 0x4b2a50