joyce8/EMBER2024-capa huggingface dataset:
Function at 0x59f540
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
test eax, eax
je 0x59f571
mov ecx, dword [ebp + 0xc]
push esi
lea edx, [ecx + 1]
mov ecx, dword [eax + 0x98]
mov esi, ecx
xor esi, edx
and esi, 3
xor esi, ecx
mov dword [eax + 0x98], esi
mov eax, dword [eax + 8]
test eax, eax
jne 0x59f554
pop esi
pop ebp
ret

Function at 0x5a1420
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push 0
push 0x14
mov dword [eax], 0
call fcn.00578dd0
mov esi, eax
add esp, 8
test esi, esi
jne 0x5a1447
mov eax, 7
pop esi
pop ebp
ret
mov al, byte [0x852534]
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
test al, al
je 0x5a149e
push 0xc8
call fcn.00580f40
add esp, 4
test eax, eax
jne 0x5a149e
lea ecx, [esi + 4]
mov dword [esi + 8], ebx
push ecx
push eax
push esi
push 0x5a14e0
push eax
push eax
mov dword [esi + 0xc], edi
call fcn.006a202f
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x5a14b0
mov eax, esi
xor edx, edx
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
jmp 0x5a14b0
mov edx, esi
xor ecx, ecx
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x5a14c9
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi + 4], eax
call ebx
add esp, 4
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 8]
pop edi
pop ebx
mov dword [eax], esi
xor eax, eax
pop esi
pop ebp
ret
Function at 0x5aa6e0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
call fcn.0057b0a0
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
add eax, 0x174
push esi
push eax
call fcn.005a9750
mov esi, dword [ebp + 0x14]
mov edi, eax
add esp, 0xc
cmp edi, ebx
je 0x5aa736
mov ecx, dword [ebp + 0x10]
push esi
push ecx
push edi
call fcn.005aa870
mov ecx, dword [ebp - 4]
add esp, 0xc
cmp eax, ecx
jle 0x5aa72f
mov ebx, edi
mov dword [ebp - 4], eax
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x5aa715
mov al, byte [ebp + 0x18]
test al, al
jne 0x5aa7ad
test ebx, ebx
je 0x5aa74e
mov edx, dword [ebp + 8]
test byte [edx + 0x18], 2
je 0x5aa853
mov ecx, dword [ebp + 0xc]
xor eax, eax
xor edx, edx
mov edi, 0x17
mov al, byte [ecx]
push ecx
mov dword [ebp - 4], 0
mov dl, byte [eax + 0x749728]
mov eax, edx
mov edx, dword [ebp - 8]
add eax, edx
cdq
idiv edi
push edx
call fcn.005aa8e0
mov edi, eax
add esp, 8
test edi, edi
je 0x5aa853
mov eax, dword [ebp + 0x10]
push esi
push eax
push edi
call fcn.005aa870
mov ecx, dword [ebp - 4]
add esp, 0xc
cmp eax, ecx
jle 0x5aa7a1
mov ebx, edi
mov dword [ebp - 4], eax
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x5aa787
jmp 0x5aa853
cmp dword [ebp - 4], 6
jge 0x5aa853
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
add ecx, 0x29
push 0
push ecx
push edx
call fcn.00589f20
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x5aa847
mov ecx, dword [ebp - 8]
mov al, byte [ebp + 0x10]
and esi, 0xff
inc ecx
mov edx, ecx
lea edi, [ebx + 0x28]
mov dword [ebx + 4], esi
mov esi, dword [ebp + 0xc]
shr ecx, 2
mov dword [ebx + 0x20], edi
mov byte [ebx], al
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x20]
mov cl, byte [eax]
test cl, cl
je 0x5aa81a
and ecx, 0xff
inc eax
mov cl, byte [ecx + 0x749728]
mov byte [eax - 1], cl
mov cl, byte [eax]
test cl, cl
jne 0x5aa804
mov eax, dword [ebp + 8]
mov edx, dword [ebx + 0x20]
push ebx
add eax, 0x174
push edx
push eax
call fcn.005a9ac0
add esp, 0xc
cmp eax, ebx
jne 0x5aa850
mov esi, dword [ebp + 8]
push ebx
push esi
call fcn.00579080
push esi
call fcn.005794a0
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebx + 0xc], eax
test ebx, ebx
je 0x5aa847
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x5aa865
mov al, byte [ebp + 0x18]
test al, al
je 0x5aa847
pop edi
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5b8400
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
push edi
push esi
push str.sqlite_master
push esi
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.005bd5c0
add esp, 0x18
test edi, edi
jne 0x5b843d
push esi
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 ebx
call fcn.005bd5c0
add esp, 0x10
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x5fdfc0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov ecx, dword [ebp + 8]
push edi
mov eax, dword [esi + 0x20]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push str.sqlite_stat1
push eax
push ecx
xor edi, edi
call fcn.005e1cd0
mov ecx, eax
add esp, 0x24
test ecx, ecx
je 0x5fe007
dec eax
mov dword [esi + 0x30], 0x100000
neg eax
mov dword [esi + 0x34], ebx
pop edi
sbb eax, eax
pop esi
and eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x20]
push edx
push eax
push str.SELECT_stat_FROM__Q.sqlite_stat1_WHERE_tbl___q_rowid
call fcn.0057ad30
add esp, 0xc
mov dword [ebp - 4], eax
test eax, eax
jne 0x5fe02f
pop edi
pop esi
mov eax, 7
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
lea ecx, [ebp + 0xc]
push 0
push ecx
push 0xffffffffffffffff
push eax
push edx
call fcn.005aee00
xor ecx, ecx
add esp, 0x14
cmp eax, ecx
mov dword [ebp + 8], eax
jne 0x5fe094
mov eax, dword [ebp + 0xc]
push eax
call fcn.0058de20
add esp, 4
cmp eax, 0x64
jne 0x5fe070
mov ecx, dword [ebp + 0xc]
push 0
push ecx
call fcn.0058f050
add esp, 8
mov edi, eax
mov ebx, edx
mov edx, dword [ebp + 0xc]
push edx
call fcn.0058a880
add esp, 4
mov dword [ebp + 8], eax
xor ecx, ecx
cmp eax, ecx
jne 0x5fe0c1
mov eax, edi
or eax, ebx
jne 0x5fe0a5
mov dword [esi + 0x30], 0x100000
jmp 0x5fe0be
cmp eax, 7
je 0x5fe07f
mov dword [ebp + 8], ecx
mov dword [esi + 0x30], 0x100000
jmp 0x5fe0be
cmp ebx, ecx
jl 0x5fe0b6
jg 0x5fe0b0
cmp edi, 0x64
jbe 0x5fe0b6
mov eax, edi
mov ecx, ebx
jmp 0x5fe0bb
mov eax, 0x64
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], ecx
mov ecx, dword [ebp - 4]
push ecx
call fcn.00579000
mov eax, dword [ebp + 8]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5fe0e0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
test eax, eax
je 0x5fe182
mov edi, dword [ebp + 0xc]
mov dword [ebp + 0x10], 0
mov eax, dword [edi + 0x20]
push eax
push str.PRAGMA__Q.page_size
call fcn.0057ad30
mov edx, dword [ebp + 8]
lea ecx, [ebp + 0x10]
mov ebx, eax
push ecx
push ebx
push edx
call fcn.005fe200
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x5fe156
mov eax, dword [ebp + 0x10]
xor edx, edx
mov dl, byte [edi + 0x17]
lea ecx, [eax - 0x40]
mov eax, edx
shl eax, 4
add eax, edx
mov dword [edi + 0x10], ecx
lea eax, [eax + eax*2 + 4]
cmp eax, ecx
jge 0x5fe1ed
push ebx
mov dword [edi + 0x10], eax
call fcn.00579000
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret
mov ecx, dword [ebp + 8]
push ecx
call fcn.005e0a90
push eax
push 0x752e30
call fcn.0057ad30
mov edx, dword [ebp + 0x14]
add esp, 0xc
push ebx
mov dword [edx], eax
call fcn.00579000
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 0x24]
mov ecx, dword [edi + 0x20]
push eax
push ecx
push str.SELECT_length_data__FROM__q._q_node_WHERE_nodeno__1
call fcn.0057ad30
mov edx, dword [ebp + 8]
mov ebx, eax
lea eax, [edi + 0x10]
push eax
push ebx
push edx
call fcn.005fe200
mov esi, eax
add esp, 0x18
test esi, esi
je 0x5fe1c9
mov eax, dword [ebp + 8]
push eax
call fcn.005e0a90
push eax
push 0x752e30
call fcn.0057ad30
add esp, 0xc
jmp 0x5fe1e8
cmp dword [edi + 0x10], 0x1c0
jge 0x5fe1ed
mov edx, dword [edi + 0x24]
mov esi, 0x10b
push edx
push str.undersize_RTree_blobs_in___q_node_
call fcn.0057ad30
add esp, 8
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
push ebx
call fcn.00579000
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x600cd0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
mov eax, dword [ebx + 0x28]
test eax, eax
jne 0x600dbe
mov eax, dword [ebx + 0x14]
test eax, eax
jne 0x600d06
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 4]
push eax
push ecx
push str.SELECT_data_FROM__Q._q_node_WHERE_nodeno_
push ebx
call fcn.00600a60
add esp, 0x10
mov dword [ebx + 0x14], eax
mov eax, dword [ebx + 0x28]
test eax, eax
jne 0x600dbe
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebx + 0x14]
push edi
push edx
push eax
push 1
push ecx
call fcn.0058f5d0
mov edx, dword [ebx + 0x14]
push edx
call fcn.0058de20
add esp, 0x14
cmp eax, 0x64
jne 0x600d8f
mov eax, dword [ebx + 0x14]
push 0
push eax
call fcn.0058ef90
mov ecx, dword [ebx + 0x14]
mov esi, eax
push 0
push ecx
mov dword [ebp - 4], esi
call fcn.0058eec0
mov edi, eax
mov eax, esi
cdq
push edx
push eax
call fcn.00578f90
add esp, 0x18
mov dword [ebp + 8], eax
test eax, eax
jne 0x600d70
mov dword [ebx + 0x28], 7
jmp 0x600d8c
mov ecx, esi
mov esi, edi
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0x14]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov esi, dword [ebp + 8]
mov edx, dword [ebx + 0x14]
push edx
push ebx
call fcn.00600dd0
mov eax, dword [ebx + 0x28]
add esp, 8
test eax, eax
pop edi
jne 0x600dbe
test esi, esi
jne 0x600dbe
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
push str.Node__lld_missing_from_database
push ebx
call fcn.00600ad0
add esp, 0x10
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x600df0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 8], str.SELECT_parentnode_FROM__Q._q_parent_WHERE_nodeno_1
mov dword [ebp - 4], str.SELECT_nodeno_FROM__Q._q_rowid_WHERE_rowid_1
mov eax, dword [esi + edi*4 + 0x18]
test eax, eax
jne 0x600e2e
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
mov edx, dword [ebp + edi*4 - 8]
push eax
push ecx
push edx
push esi
call fcn.00600a60
add esp, 0x10
mov dword [esi + edi*4 + 0x18], eax
mov eax, dword [esi + 0x28]
test eax, eax
jne 0x600f05
mov eax, dword [esi + edi*4 + 0x18]
mov edi, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
push edi
push ebx
push 1
push eax
mov dword [ebp + 8], eax
call fcn.0058f5d0
mov eax, dword [ebp + 8]
push eax
call fcn.0058de20
add esp, 0x14
cmp eax, 0x65
jne 0x600ea0
mov eax, dword [ebp + 0xc]
test eax, eax
mov eax, str.__rowid
jne 0x600e73
mov eax, str.__parent
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
push eax
push ecx
push edx
push edi
push ebx
push str.Mapping___lld_____lld__missing_from__s_table
push esi
call fcn.00600ad0
mov eax, dword [ebp + 8]
add esp, 0x1c
push eax
push esi
call fcn.00600dd0
add esp, 8
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 0x64
jne 0x600ef7
mov eax, dword [ebp + 8]
push 0
push eax
call fcn.0058f050
mov ecx, dword [ebp + 0x18]
add esp, 8
cmp eax, ecx
mov dword [ebp + 0x14], edx
jne 0x600ec2
cmp edx, dword [ebp + 0x1c]
je 0x600ef7
mov edx, dword [ebp + 0xc]
mov dword [ebp + 0xc], str.__rowid
test edx, edx
jne 0x600ed7
mov dword [ebp + 0xc], str.__parent
mov edx, dword [ebp + 0x1c]
push edx
mov edx, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 0xc]
push edi
push ebx
push ecx
push edx
push eax
push edi
push ebx
push str.Found___lld_____lld__in__s_table__expected___lld_____lld_
push esi
call fcn.00600ad0
add esp, 0x2c
mov eax, dword [ebp + 8]
push eax
push esi
call fcn.00600dd0
add esp, 8
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x608a70
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x3c]
lea esi, [edi + 0x3c]
test eax, eax
jne 0x608aa1
mov eax, dword [edi]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
push ecx
push edx
push str.SELECT_pgno_FROM__q._q_idx_WHERE_segid__AND_term___ORDER_BY_term_DESC_LIMIT_1
call fcn.0057ad30
push eax
push esi
push edi
call fcn.00603810
add esp, 0x18
mov eax, dword [esi]
pop edi
pop esi
pop ebp
ret

Function at 0x608d10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
mov eax, 0xd
dec ecx
test ecx, ecx
jl 0x608d3a
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edx, edx
lea edi, [eax*8]
mov dl, byte [ecx + esi]
xor edx, edi
xor eax, edx
dec ecx
jns 0x608d25
pop edi
pop esi
xor edx, edx
div dword [ebp + 8]
mov eax, edx
pop ebp
ret
Function at 0x613c50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
mov ecx, 0xd
dec eax
test eax, eax
jl 0x613c7a
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edx, edx
lea edi, [ecx*8]
mov dl, byte [eax + esi]
xor edx, edi
xor ecx, edx
dec eax
jns 0x613c65
pop edi
pop esi
mov edx, dword [ebp + 0xc]
lea eax, [ecx*8]
and edx, 0xff
xor eax, edx
xor edx, edx
xor eax, ecx
div dword [ebp + 8]
mov eax, edx
pop ebp
ret
Function at 0x615680
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 8]
push ebx
xor eax, eax
push esi
push edi
test edx, edx
mov dword [ebp - 4], eax
mov dword [ecx], eax
je 0x61575a
mov esi, dword [ebp + 0x14]
mov ecx, 0xd
lea eax, [esi - 1]
test eax, eax
jl 0x6156c0
mov edi, dword [ebp + 0x10]
lea ebx, [ecx*8]
movsx edi, byte [eax + edi]
xor edi, ebx
xor ecx, edi
dec eax
jns 0x6156ab
mov edi, dword [ebp + 0xc]
mov ebx, ecx
xor ebx, edi
and ecx, 0x3f
and ebx, 0x1ff
shl ecx, 3
xor ebx, ecx
mov edx, dword [edx + ebx*4]
test edx, edx
je 0x615714
mov eax, dword [ebp + 0xc]
mov ecx, dword [edx + 8]
cmp ecx, eax
jne 0x6156fb
cmp dword [edx + 4], esi
jne 0x6156fb
mov edi, dword [ebp + 0x10]
mov ecx, esi
mov esi, dword [edx]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x615704
mov esi, dword [ebp + 0x14]
mov edx, dword [edx + 0xc]
test edx, edx
jne 0x6156dc
jmp 0x615714
mov ecx, dword [ebp + 0x18]
test edx, edx
mov dword [ecx], 1
jne 0x615757
mov esi, dword [ebp + 0x14]
lea edx, [esi + 0x10]
push 0
lea eax, [ebp - 4]
push edx
push eax
call fcn.006023e0
add esp, 0xc
test eax, eax
je 0x615757
mov ecx, dword [ebp + 0xc]
lea edi, [eax + 0x10]
mov dword [eax + 8], ecx
mov ecx, esi
mov edx, ecx
mov dword [eax + 4], esi
mov esi, dword [ebp + 0x10]
mov dword [eax], edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + ebx*4]
mov dword [eax + 0xc], edx
mov dword [ecx + ebx*4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x61b6f0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], ecx
pop ebp
ret
Function at 0x61fdb0
Capabilities:
Encrypt data using aes
Reference aes constants
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [ebp + 0x10]
test eax, eax
jle 0x625de1
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
lea esi, [ecx + 2]
mov dword [ebp - 0x2e8], eax
mov dword [ebp - 0x2dc], esi
Function at 0x628ed0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x8bba40]
test eax, eax
jne 0x628ef0
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x8bba40], eax
je 0x628f14
push str.SystemFunction036
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x628f14
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push esi
push ecx
call eax
neg al
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x628f50
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 8]
push 0x75410c
push edi
mov byte [ebx], 0
call fcn.006290c0
add esp, 8
test eax, eax
jne 0x628f79
pop edi
mov byte [ebx], 3
pop esi
pop ebx
pop ebp
ret
mov eax, dword [edi + 0x1f8]
test eax, eax
jne 0x628f8d
pop edi
mov byte [ebx], 1
pop esi
xor eax, eax
pop ebx
pop ebp
ret
mov eax, dword [ebp + 0xc]
push eax
push str.SELECT_pwsqlite_crypt__1_pw___isAdmin_FROM___w_.sqlite_user_WHERE_uname_2
push edi
call fcn.00629030
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x628faf
pop edi
pop esi
mov eax, 7
pop ebx
pop ebp
ret
mov ecx, dword [edi + 0x1f0]
mov edx, dword [edi + 0x1f4]
push 0
push ecx
push edx
push 1
push esi
call fcn.0058f310
mov eax, dword [edi + 0x1f8]
push 0
push 0xffffffffffffffff
push eax
push 2
push esi
call fcn.0058f6c0
push esi
call fcn.0058de20
add esp, 0x2c
cmp eax, 0x64
jne 0x629014
push 0
push esi
call fcn.0058f020
add esp, 8
test eax, eax
je 0x629014
push 1
push esi
call fcn.0058f020
add esp, 8
add al, 2
mov byte [ebx], al
push esi
call fcn.0058a880
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
ret
push esi
mov byte [ebx], 1
call fcn.0058a880
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x629de0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, 1
cmp dword [esi + 0x1c], ecx
jbe 0x629eef
push ebx
push edi
lea eax, [esi + 0x32]
xor ebx, ebx
xor edx, edx
mov bl, byte [eax - 1]
mov dl, byte [eax + 1]
add eax, 0x10
mov edi, dword [ebx*4 + 0x8584c0]
mov edx, dword [edx*4 + 0x858cc0]
xor ebx, ebx
xor edx, edi
mov bl, byte [eax - 0x10]
mov edi, dword [ebx*4 + 0x8588c0]
xor ebx, ebx
mov bl, byte [eax - 0x12]
xor edx, edi
mov edi, dword [ebx*4 + 0x8580c0]
xor ebx, ebx
xor edx, edi
mov dword [eax - 0x12], edx
mov bl, byte [eax - 0xc]
xor edx, edx
mov dl, byte [eax - 0xb]
mov edi, dword [ebx*4 + 0x8588c0]
xor ebx, ebx
mov edx, dword [edx*4 + 0x858cc0]
mov bl, byte [eax - 0xd]
xor edx, edi
mov edi, dword [ebx*4 + 0x8584c0]
xor ebx, ebx
mov bl, byte [eax - 0xe]
xor edx, edi
mov edi, dword [ebx*4 + 0x8580c0]
xor ebx, ebx
xor edx, edi
mov dword [eax - 0xe], edx
mov bl, byte [eax - 8]
xor edx, edx
mov dl, byte [eax - 7]
mov edi, dword [ebx*4 + 0x8588c0]
xor ebx, ebx
mov edx, dword [edx*4 + 0x858cc0]
mov bl, byte [eax - 9]
xor edx, edi
mov edi, dword [ebx*4 + 0x8584c0]
xor ebx, ebx
mov bl, byte [eax - 0xa]
xor edx, edi
mov edi, dword [ebx*4 + 0x8580c0]
xor ebx, ebx
xor edx, edi
mov dword [eax - 0xa], edx
mov bl, byte [eax - 4]
xor edx, edx
mov dl, byte [eax - 3]
mov edi, dword [ebx*4 + 0x8588c0]
xor ebx, ebx
mov edx, dword [edx*4 + 0x858cc0]
mov bl, byte [eax - 5]
xor edx, edi
mov edi, dword [ebx*4 + 0x8584c0]
xor ebx, ebx
mov bl, byte [eax - 6]
xor edx, edi
mov edi, dword [ebx*4 + 0x8580c0]
xor edx, edi
inc ecx
mov dword [eax - 6], edx
mov edx, dword [esi + 0x1c]
cmp ecx, edx
jb 0x629dfa
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x62ab00
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax], 0
mov dword [eax + 4], 0
pop ebp
ret
Function at 0x62b970
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
xor eax, eax
mov byte [ebp + eax - 0x108], al
inc eax
cmp eax, 0x100
jl 0x62b986
xor edi, edi
mov eax, esi
mov ebx, dword [ebp + 8]
cdq
idiv dword [ebp + 0xc]
xor ecx, ecx
xor eax, eax
mov cl, byte [ebp + esi - 0x108]
mov al, byte [edx + ebx]
add eax, ecx
add edi, eax
and edi, 0x800000ff
jns 0x62b9c2
dec edi
or edi, 0xffffff00
inc edi
mov dl, byte [ebp + edi - 0x108]
mov byte [ebp + esi - 0x108], dl
inc esi
cmp esi, 0x100
mov byte [ebp + edi - 0x108], cl
jl 0x62b997
mov eax, dword [ebp + 0x14]
test eax, eax
jle 0x62ba75
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
sub edx, ecx
mov dword [ebp + 0xc], eax
inc esi
and esi, 0x800000ff
jns 0x62ba0d
dec esi
or esi, 0xffffff00
inc esi
xor eax, eax
mov al, byte [ebp + esi - 0x108]
add edi, eax
and edi, 0x800000ff
jns 0x62ba28
dec edi
or edi, 0xffffff00
inc edi
mov bl, byte [ebp + edi - 0x108]
mov byte [ebp + esi - 0x108], bl
xor ebx, ebx
mov byte [ebp + edi - 0x108], al
mov bl, byte [ebp + esi - 0x108]
and eax, 0xff
add ebx, eax
and ebx, 0x800000ff
jns 0x62ba5d
dec ebx
or ebx, 0xffffff00
inc ebx
mov al, byte [ebp + ebx - 0x108]
mov bl, byte [edx + ecx]
xor al, bl
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
inc ecx
dec eax
mov dword [ebp + 0xc], eax
jne 0x62b9fc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x637c17
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6d6d06
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea ecx, [esi + 0x14]
call fcn.006bfa17
mov eax, dword [0x8690f8]
xor edi, edi
mov dword [esp + 0x18], edi
mov dword [esi + 0x48], eax
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
cmp ebx, edi
mov byte [esp + 0x18], 1
mov dword [esi], 0x75b22c
mov dword [esi + 4], edi
mov dword [esi + 8], ecx
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
je 0x637c74
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call fcn.006c0ab9
add esp, 4
mov dword [esi + 4], eax
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0x10]
or eax, 0xffffffff
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x4c], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8