joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45f86f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x705034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
xor eax, eax
push 3
pop esi
inc eax
mov dword [ebp - 0x10c], 0x104
mov dword [ebp - 0x110], eax
mov ebx, ecx
lea eax, [ebp - 0x11c]
xor ecx, ecx
push eax
push 0x20019
push ecx
push 0x6d4f98
push closesocket
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x118], ecx
mov dword [ebp - 0x114], ecx
call edi
test eax, eax
jne 0x45fa2a
push ebx
push 0x6d4fe8
push 0xffffffffffffffff
lea eax, [ebp - 0x108]
push 0x103
push eax
call fcn.0045cd3a
add esp, 0x14
lea eax, [ebp - 0x118]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x11c]
call edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x45fa22
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 4
pop eax
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push 0x6d4ff8
push dword [ebp - 0x118]
call ebx
test eax, eax
jne 0x45fa1a
push 0x104
push eax
lea eax, [ebp - 0x108]
mov dword [ebp - 0x110], 1
push eax
mov dword [ebp - 0x10c], 0x103
call fcn.0063acc0
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push 0x6d5008
push dword [ebp - 0x118]
call ebx
test eax, eax
jne 0x45fa1a
mov eax, dword [ebp - 0x114]
cmp eax, 1
jne 0x45fa11
mov ebx, 0x6d5018
push ebx
call fcn.0063e4a0
push eax
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.00650400
add esp, 0x10
test eax, eax
jne 0x45f9e0
xor esi, esi
jmp 0x45fa1a
mov eax, dword [ebp - 0x114]
cmp eax, 1
jne 0x45fa11
push ebx
call fcn.0063e4a0
push eax
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.00650400
add esp, 0x10
test eax, eax
je 0x45fa0b
push 2
pop esi
jmp 0x45fa1a
mov eax, dword [ebp - 0x114]
cmp eax, 2
push 1
pop eax
cmove esi, eax
push dword [ebp - 0x118]
call edi
push dword [ebp - 0x11c]
call edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00621f5c
mov esp, ebp
pop ebp
ret
Function at 0x45fc63
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x705034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_ntohl]
push esi
mov esi, ecx
mov dword [ebp - 0x18], edx
push edi
mov dword [ebp - 0x20], eax
push dword [esi]
call ebx
push dword [esi + 4]
mov dword [ebp - 0x1c], eax
call ebx
mov edi, dword [ebp - 0x18]
mov ebx, eax
lea eax, [ebp - 0x14]
xor esi, esi
sub edi, eax
lea eax, [edi + esi*4]
push dword [ebp + eax - 0x14]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp + esi*4 - 0x14], eax
inc esi
cmp esi, 4
jl 0x45fc9f
mov edi, dword [ebp - 0x1c]
xor edx, edx
push 0x10
pop esi
mov ecx, ebx
lea edx, [edx - 0x61c88647]
shl ecx, 4
mov eax, ebx
add ecx, dword [ebp - 0x14]
shr eax, 5
add eax, dword [ebp - 0x10]
xor ecx, eax
lea eax, [edx + ebx]
xor ecx, eax
add edi, ecx
mov ecx, edi
mov eax, edi
shr ecx, 5
add ecx, dword [ebp - 8]
shl eax, 4
add eax, dword [ebp - 0xc]
xor ecx, eax
lea eax, [edx + edi]
xor ecx, eax
add ebx, ecx
sub esi, 1
jne 0x45fcbe
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push edi
call esi
mov edi, dword [ebp - 0x20]
push ebx
mov dword [edi], eax
call esi
mov ecx, dword [ebp - 4]
mov dword [edi + 4], eax
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00621f5c
mov esp, ebp
pop ebp
ret
Function at 0x466bd0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x705034]
xor eax, esp
mov dword [esp + 0x40], eax
push esi
mov esi, dword [ebp + 8]
lea ecx, [esp + 8]
xorps xmm0, xmm0
mov dword [esp + 0x40], 0
push 0x6c5570
mov edx, esi
movups xmmword [esp + 0x24], xmm0
movups xmmword [esp + 0x34], xmm0
call fcn.00438700
add esp, 4
cmp dword [esi + 0x14], 8
jb 0x466c1a
mov eax, dword [esi]
jmp 0x466c1c
mov eax, esi
lea ecx, [esp + 0x20]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x466c43
cmp dword [esp + 0x1c], 8
lea eax, [esp + 8]
cmovae eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x1c], 8
lea eax, [esp + 8]
cmovae eax, dword [esp + 8]
cmp dword [esi + 0x14], 8
jb 0x466c59
mov esi, dword [esi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov eax, dword [esp + 0x1c]
cmp eax, 8
jb 0x466ca2
mov ecx, dword [esp + 8]
inc eax
cmp eax, 0x7fffffff
ja 0x466cb4
add eax, eax
cmp eax, 0x1000
jb 0x466c99
test cl, 0x1f
jne 0x466cb9
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x466cbe
sub ecx, eax
cmp ecx, 4
jb 0x466cc3
cmp ecx, 0x23
ja 0x466cc8
mov ecx, eax
push ecx
call fcn.00478d20
add esp, 4
mov ecx, dword [esp + 0x44]
pop esi
xor ecx, esp
call fcn.00621f5c
mov esp, ebp
pop ebp
ret 4
call fcn.0063e441
call fcn.0063e441
call fcn.0063e441
call fcn.0063e441
call fcn.0063e441
int3

Function at 0x46cd50
Capabilities:
Create directory

Disassembly:
cmp dword [ecx + 0x14], 0x10
jb 0x46cd58
mov ecx, dword [ecx]
push ebx
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, 1
sete bl
test bl, bl
je 0x46cd70
mov al, 1
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 3
je 0x46cd8d
sub eax, 2
je 0x46cd8d
sub eax, 0xb2
jne 0x46cd8f
mov bl, 1
mov al, bl
pop ebx
ret
xor bl, bl
mov al, bl
pop ebx
ret
Function at 0x46d670
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea ecx, [ebp - 0x18]
call fcn.0046d640
cmp dword [eax + 0x14], 0x10
jb 0x46d686
mov eax, dword [eax]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov eax, dword [ebp - 4]
cmp eax, 0x10
jb 0x46d6c7
mov ecx, dword [ebp - 0x18]
inc eax
cmp eax, 0x1000
jb 0x46d6be
test cl, 0x1f
jne 0x46d6d9
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x46d6de
sub ecx, eax
cmp ecx, 4
jb 0x46d6e3
cmp ecx, 0x23
ja 0x46d6e8
mov ecx, eax
push ecx
call fcn.00478d20
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete al
mov esp, ebp
pop ebp
ret
call fcn.0063e441
call fcn.0063e441
call fcn.0063e441
call fcn.0063e441
int3

Function at 0x475a30
Capabilities:
Create tcp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x705034]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x475a8b
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x10000
push eax
push 0x1002
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00621f5c
mov esp, ebp
pop ebp
ret
Function at 0x475aa0
Capabilities:
Connect socket
Get socket status
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x705034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x475ad5
cmp byte [eax], 0
jne 0x475ad5
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00621f5c
mov esp, ebp
pop ebp
ret 8
call fcn.00475a30
mov ecx, eax
mov dword [esi], ecx
cmp ecx, 0xffffffff
je 0x475ac2
push 4
lea eax, [esi + 0x10]
push eax
push 0x1006
push 0xffff
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 0x8004667e
push dword [esi]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x475ac2
mov ecx, dword [ebp + 8]
xorps xmm0, xmm0
movups xmmword [ebp - 0x20], xmm0
mov eax, 2
mov word [ebp - 0x20], ax
mov ax, word [ecx + 4]
mov word [ebp - 0x1e], ax
mov eax, dword [ecx]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push 0x10
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x475ac2
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x8004667e
push dword [esi]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x475ac2
mov eax, dword [esi]
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x224], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x228]
mov dword [ebp - 0x124], 1
push eax
lea eax, [ebp - 0x124]
mov dword [ebp - 0x228], 1
push eax
push 0
push 0
mov dword [ebp - 0x10], 0
call dword [sym.imp.WS2_32.dll_select]
lea eax, [ebp - 0x124]
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
setne al
mov byte [esi + 4], al
test al, al
jne 0x475bea
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x475be0
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi], 0xffffffff
mov byte [esi + 4], 0
mov ecx, dword [ebp - 4]
mov al, byte [esi + 4]
xor ecx, ebp
pop esi
call fcn.00621f5c
mov esp, ebp
pop ebp
ret 8

Function at 0x475c00
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
cmp byte [ebx + 4], 0
je 0x475c79
mov edx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
mov esi, edx
test edx, edx
jle 0x475c6f
nop dword [eax]
mov eax, dword [ebx + 8]
test eax, eax
je 0x475c2c
cmp byte [eax], 0
je 0x475c62
mov ecx, dword [ebx]
cmp ecx, 0xffffffff
je 0x475c56
mov eax, dword [ebp + 8]
push 0
sub eax, esi
push esi
add eax, edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
test edi, edi
jle 0x475c59
mov edx, dword [ebp + 0xc]
sub esi, edi
test esi, esi
jle 0x475c62
jmp 0x475c20
or edi, 0xffffffff
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [ebp + 0xc]
test edi, edi
jle 0x475c6f
pop edi
pop esi
mov eax, edx
pop ebx
pop ebp
ret 8
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret 8
or eax, 0xffffffff
pop ebx
pop ebp
ret 8
Function at 0x475c90
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
push esi
push edi
mov edi, ecx
mov byte [ebp - 1], 1
mov eax, dword [edi + 8]
test eax, eax
je 0x475cb4
cmp byte [eax], 0
jne 0x475cb4
or esi, 0xffffffff
jmp 0x475cf3
mov ecx, dword [edi]
cmp ecx, 0xffffffff
je 0x475cd6
push 0
push 0x200
lea eax, [edi + 0x14]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp esi, 0xffffffff
jne 0x475cdb
jmp 0x475cd9
or esi, 0xffffffff
call ebx
test esi, esi
jle 0x475cf1
mov ecx, dword [ebp + 8]
lea eax, [edi + 0x14]
push esi
push eax
call fcn.0042390f
mov cl, byte [ebp - 1]
jmp 0x475d08
je 0x475d17
call ebx
push eax
push str.recv_failed_with_error:__d_n
call fcn.00475f60
add esp, 8
xor cl, cl
mov byte [ebp - 1], cl
test esi, esi
jg 0x475ca3
pop edi
pop esi
mov al, cl
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x475d30
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x671e4b
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x705034]
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 dword [ebp - 0x234], ecx
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x23c], eax
mov eax, dword [0x7188d4]
test al, 1
jne 0x475daa
push 0xa8
or eax, 1
push 0
push 0x7188e0
mov dword [0x7188d4], eax
call fcn.0063acc0
add esp, 0xc
call fcn.004679c0
push 0x67e930
call fcn.00622490
add esp, 4
mov al, byte [0x7188e2]
mov ecx, 0x7a120
test al, al
mov edx, 0x2dc6c0
mov eax, dword [0x7188d4]
cmovne ecx, edx
mov dword [ebp - 0x238], ecx
test al, 1
jne 0x475dfb
push 0xa8
or eax, 1
push 0
push 0x7188e0
mov dword [0x7188d4], eax
call fcn.0063acc0
add esp, 0xc
call fcn.004679c0
push 0x67e930
call fcn.00622490
add esp, 4
mov al, byte [0x7188e2]
mov ecx, 0xbb8
test al, al
mov esi, 0x1f4
push 0x218
lea eax, [ebp - 0x228]
cmovne esi, ecx
push 0
push eax
call fcn.0063acc0
mov eax, dword [ebp - 0x234]
add esp, 0xc
mov dword [ebp - 0x228], 0xffffffff
mov byte [ebp - 0x224], 0
mov dword [ebp - 0x218], esi
mov eax, dword [eax + 4]
mov dword [ebp - 0x220], eax
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x21c], eax
push dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov dword [ebp - 0x230], 0
call dword [sym.imp.WS2_32.dll_htons]
cmp dword [ebx + 0x14], 0x10
mov word [ebp - 0x22c], ax
jb 0x475e80
mov ebx, dword [ebx]
push ebx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x475e98
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x230], eax
push ecx
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x228]
call fcn.00475aa0
test al, al
je 0x475ef2
cmp dword [edi + 0x14], 0x10
mov esi, dword [edi + 0x10]
jb 0x475eba
mov edi, dword [edi]
push esi
push edi
lea ecx, [ebp - 0x228]
call fcn.00475c00
cmp eax, esi
jne 0x475ef2
push 1
push dword [ebp - 0x228]
call dword [sym.imp.WS2_32.dll_shutdown]
push dword [ebp - 0x23c]
lea ecx, [ebp - 0x228]
call fcn.00475c90
test al, al
je 0x475ef2
mov bl, 1
jmp 0x475ef4
xor bl, bl
mov eax, dword [ebp - 0x228]
cmp eax, 0xffffffff
je 0x475f06
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, bl
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.00621f5c
mov esp, ebp
pop ebp
ret 0x10
Function at 0x476580
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x668e50
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x705034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0x31], 0
jne 0x476600
push dword [esi + 0x1c]
call fcn.004a1190
add esp, 4
cmp eax, 0x64
jne 0x4765cf
mov byte [esi + 0x30], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 0x65
jne 0x4765ea
mov word [esi + 0x30], 0x100
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
mov word [esi + 0x30], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x15
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x47c0d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edx
mov dword [edi], 0
cmp dword [0x70c868], 0
je 0x47c127
mov eax, dword [0x717aa0]
test eax, eax
je 0x47c100
push eax
call dword [0x70c8b8]
add esp, 4
lea edx, [ebp - 4]
mov ecx, 0x14
call fcn.00479340
mov eax, dword [0x717aa0]
test eax, eax
je 0x47c122
push eax
call dword [0x70c8c0]
mov esi, dword [ebp - 4]
jmp 0x47c131
mov esi, dword [ebp - 4]
jmp 0x47c134
push 0x14
call dword [0x70c888]
mov esi, eax
add esp, 4
test esi, esi
jne 0x47c142
lea eax, [esi + 7]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [0x70c86c], 0
mov ebx, dword [ebp + 8]
je 0x47c18c
mov eax, dword [0x70c95c]
test eax, eax
je 0x47c165
push 0xc8
call eax
add esp, 4
test eax, eax
jne 0x47c18c
mov eax, dword [ebp - 8]
mov dword [esi + 8], eax
lea eax, [esi + 4]
push eax
push 0
push esi
push 0x47c0a0
push 0
push 0
mov dword [esi + 0xc], ebx
call fcn.00650818
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x47c199
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
cmp dword [esi + 8], 0
jne 0x47c1b2
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push ebx
mov dword [esi + 4], eax
call dword [ebp - 8]
add esp, 4
mov dword [esi + 0x10], eax
mov dword [edi], esi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x487000
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, ecx
mov dword [esp + 4], edx
push esi
push edi
mov esi, dword [ebx + 0x88]
test esi, esi
je 0x48703e
mov eax, dword [ebp + 0xc]
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 0x4870c2
movzx eax, word [ebx + 0x8c]
cdq
mov edi, eax
add edi, 0x28
mov ecx, edi
adc edx, 0
or ecx, edx
je 0x487072
push edx
push edi
call fcn.00479430
mov esi, eax
add esp, 8
test esi, esi
je 0x487074
push edi
push 0
push esi
call fcn.0063acc0
add esp, 0xc
jmp 0x487074
xor esi, esi
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
test esi, esi
jne 0x4870b2
push dword [ebp + 8]
mov ecx, dword [esp + 0x10]
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.00622ec0
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
mov esp, ebp
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 + 8]
mov ecx, dword [esp + 0xc]
mov dword [esi + 4], eax
pop edi
mov dword [esi + 0x18], ecx
inc dword [ebx + 0x78]
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b94d0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push dword [ebp + 8]
mov edi, edx
mov ebx, ecx
push edi
push 0x707e1c
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 ebx
call fcn.004bea60
add esp, 0x18
cmp dword [ebp + 8], 0
jne 0x4b950b
push edi
push 0x707e48
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 ebx
call fcn.004bea60
add esp, 0x10
pop edi
pop ebx
pop ebp
ret

Function at 0x4bec20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov eax, ecx
mov ebx, edx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
xor esi, esi
cmp dword [eax + 0x14], esi
jle 0x4becaa
nop word [eax + eax]
mov eax, esi
mov ecx, esi
xor eax, 1
cmp esi, 2
cmovl ecx, eax
mov dword [ebp - 8], ecx
test edi, edi
je 0x4bec78
mov edx, ecx
mov eax, edi
mov ecx, dword [ebp - 4]
add edx, edx
mov ecx, dword [ecx + 0x10]
mov edi, dword [ecx + edx*8]
sub edi, dword [ebp + 8]
movzx edx, byte [eax]
movzx ecx, byte [edi + eax]
cmp edx, ecx
jne 0x4bece2
test edx, edx
jne 0x4becf4
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
add ecx, ecx
push 0
mov edx, ebx
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + ecx*8 + 0xc]
add ecx, 8
call fcn.0047e430
add esp, 4
mov eax, dword [eax + 8]
test eax, eax
jne 0x4bed49
mov eax, dword [ebp - 4]
inc esi
mov edi, dword [ebp + 8]
cmp esi, dword [eax + 0x14]
jl 0x4bec40
mov edx, 0x708a24
sub edx, ebx
movzx ecx, byte [ebx]
movzx eax, byte [edx + ebx]
cmp ecx, eax
jne 0x4becfa
test ecx, ecx
jne 0x4bed0c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 0x10]
test edi, edi
jne 0x4bed0f
neg ecx
sbb ecx, ecx
test ecx, ecx
jne 0x4bed47
mov eax, dword [ebp - 4]
mov ebx, 0x708a4c
jmp 0x4bec33
movzx ecx, byte [ecx + 0x6c8000]
movzx edx, byte [edx + 0x6c8000]
sub edx, ecx
jne 0x4bec9e
inc eax
jmp 0x4bec66
movzx eax, byte [eax + 0x6c8000]
movzx ecx, byte [ecx + 0x6c8000]
sub ecx, eax
jne 0x4bed47
inc ebx
jmp 0x4becb1
test ecx, ecx
je 0x4bed47
mov esi, ecx
mov edx, edi
sub esi, edi
nop dword [eax]
movzx ecx, byte [edx]
movzx eax, byte [esi + edx]
cmp ecx, eax
jne 0x4bed32
test ecx, ecx
je 0x4becd5
inc edx
jmp 0x4bed20
movzx eax, byte [eax + 0x6c8000]
movzx ecx, byte [ecx + 0x6c8000]
sub ecx, eax
jne 0x4becd1
inc edx
jmp 0x4bed20
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4bef10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
mov dword [ebp - 8], edx
push edi
xor ebx, ebx
mov dword [ebp - 0xc], esi
xor edi, edi
cmp dword [esi + 0x14], ebx
jle 0x4bef89
mov edx, dword [ebp + 8]
nop dword [eax]
mov esi, dword [esi + 0x10]
mov eax, edi
xor eax, 1
mov ecx, edi
cmp edi, 2
cmovl ecx, eax
add ecx, ecx
mov eax, dword [esi + ecx*8 + 0xc]
mov dword [ebp - 4], eax
test edx, edx
je 0x4bef66
mov esi, dword [esi + ecx*8]
mov eax, edx
sub esi, edx
movzx edx, byte [eax]
movzx ecx, byte [esi + eax]
cmp edx, ecx
jne 0x4bef92
test edx, edx
jne 0x4befa4
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
lea ecx, [eax + 0x18]
push 0
call fcn.0047e430
add esp, 4
mov ebx, dword [eax + 8]
test ebx, ebx
jne 0x4bef89
mov esi, dword [ebp - 0xc]
inc edi
mov edx, dword [ebp + 8]
cmp edi, dword [esi + 0x14]
jl 0x4bef30
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
movzx ecx, byte [ecx + 0x6c8000]
movzx edx, byte [edx + 0x6c8000]
sub edx, ecx
jne 0x4bef7d
inc eax
jmp 0x4bef54
Function at 0x4c2450
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x705034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
add edx, edx
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
push edi
mov eax, dword [esi]
mov dword [ebp - 0x24], esi
mov eax, dword [eax + 0x10]
mov edi, dword [eax + edx*8]
mov eax, 1
mov dword [ebp - 0x28], edi
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.0047bd70
mov eax, dword [esi]
lea ebx, [ebp - 0x1c]
add esp, 0x10
mov dword [ebp - 0x20], eax
nop dword [eax]
xor esi, esi
cmp dword [eax + 0x14], esi
jle 0x4c252b
mov eax, esi
mov ecx, esi
xor eax, 1
cmp esi, 2
cmovl ecx, eax
mov dword [ebp - 0x30], ecx
test edi, edi
je 0x4c24f9
mov edx, ecx
mov eax, edi
mov ecx, dword [ebp - 0x20]
add edx, edx
mov ecx, dword [ecx + 0x10]
mov edi, dword [ecx + edx*8]
sub edi, dword [ebp - 0x28]
nop dword [eax]
movzx edx, byte [eax]
movzx ecx, byte [edi + eax]
cmp edx, ecx
jne 0x4c2567
test edx, edx
jne 0x4c2579
mov ecx, dword [ebp - 0x30]
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
add ecx, ecx
push 0
mov edx, ebx
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + ecx*8 + 0xc]
add ecx, 8
call fcn.0047e430
add esp, 4
mov eax, dword [eax + 8]
test eax, eax
jne 0x4c25c7
mov eax, dword [ebp - 0x20]
inc esi
mov edi, dword [ebp - 0x28]
cmp esi, dword [eax + 0x14]
jl 0x4c24b7
mov edx, 0x708a24
sub edx, ebx
movzx ecx, byte [ebx]
movzx eax, byte [edx + ebx]
cmp ecx, eax
jne 0x4c257f
test ecx, ecx
jne 0x4c2591
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 0x10]
test edi, edi
jne 0x4c2594
neg ecx
sbb ecx, ecx
test ecx, ecx
jne 0x4c25e5
mov eax, dword [ebp - 0x20]
mov ebx, 0x708a4c
jmp 0x4c24b0
movzx ecx, byte [ecx + 0x6c8000]
movzx edx, byte [edx + 0x6c8000]
sub edx, ecx
jne 0x4c251f
inc eax
jmp 0x4c24e0
movzx eax, byte [eax + 0x6c8000]
movzx ecx, byte [ecx + 0x6c8000]
sub ecx, eax
jne 0x4c25e5
inc ebx
jmp 0x4c2532
test ecx, ecx
je 0x4c25e5
mov esi, ecx
mov edx, edi
sub esi, edi
nop
movzx ecx, byte [edx]
movzx eax, byte [esi + edx]
cmp ecx, eax
jne 0x4c25b2
test ecx, ecx
je 0x4c255a
inc edx
jmp 0x4c25a0
movzx eax, byte [eax + 0x6c8000]
movzx ecx, byte [ecx + 0x6c8000]
sub ecx, eax
jne 0x4c2552
inc edx
jmp 0x4c25a0
push dword [ebp - 0x34]
mov esi, dword [ebp - 0x24]
lea eax, [ebp - 0x1c]
push dword [ebp - 0x38]
push eax
push edi
push str.DELETE_FROM__Q._s_WHERE__s_Q
push esi
call fcn.004bea60
add esp, 0x18
jmp 0x4c25e8
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp eax, 4
jle 0x4c2490
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00621f5c
mov esp, ebp
pop ebp
ret