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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov edx, dword [eax + 8]
push ebx
push esi
push edi
mov edi, ecx
xor ecx, ecx
xor ebx, ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], edx
test edx, edx
jle 0x100cfc82
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x10], eax
cmp dword [ebp + 8], 0
mov edx, dword [ebp - 0x10]
movzx eax, byte [edi]
movzx ecx, byte [edx + ecx]
je 0x100cfb40
test ecx, ecx
je 0x100cfc72
jmp 0x100cfb48
test ecx, ecx
je 0x100cfc12
lea ecx, [ebx*8]
xor ecx, eax
inc edi
xor ebx, ecx
cmp eax, 1
je 0x100cfbad
cmp eax, 2
je 0x100cfbad
mov al, byte [edi]
cmp al, 0x80
jae 0x100cfb71
movzx edx, al
mov dword [ebp - 4], edx
mov eax, 1
jmp 0x100cfb81
lea esi, [ebp - 4]
mov ecx, edi
call fcn.1000fb90
mov edx, dword [ebp - 4]
movzx eax, al
movzx eax, al
add edi, eax
xor eax, eax
mov ecx, ebx
test edx, edx
jle 0x100cfba4
mov edi, edi
movzx esi, byte [eax + edi]
lea ebx, [ecx*8]
xor esi, ebx
inc eax
xor ecx, esi
cmp eax, edx
jl 0x100cfb90
mov ebx, ecx
add edi, edx
jmp 0x100cfc72
movzx edx, byte [edi + 4]
movzx ecx, byte [edi + 5]
movzx eax, byte [edi + 6]
movzx esi, byte [edi + 1]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 7]
shl edx, 8
or edx, eax
movzx eax, byte [edi]
shl eax, 8
or eax, esi
movzx esi, byte [edi + 2]
shl eax, 8
or eax, esi
movzx esi, byte [edi + 3]
shl eax, 8
or eax, esi
shl edx, 8
or edx, ecx
xor ecx, ecx
xor esi, esi
add edx, esi
adc ecx, eax
lea eax, [ebx*8]
xor eax, edx
xor eax, ebx
lea ebx, [eax*8]
xor ebx, ecx
mov edx, ecx
sar edx, 0x1f
xor ebx, eax
add edi, 8
jmp 0x100cfc72
test eax, eax
je 0x100cfc6b
cmp eax, 0xff
je 0x100cfc6b
cmp eax, 5
je 0x100cfc6b
cmp eax, 1
je 0x100cfc64
cmp eax, 2
je 0x100cfc64
mov al, byte [edi + 1]
lea ecx, [edi + 1]
cmp al, 0x80
jae 0x100cfc4d
movzx eax, al
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
mov eax, 1
movzx ecx, al
lea eax, [ecx + edx + 1]
jmp 0x100cfc70
lea esi, [ebp - 8]
call fcn.1000fb90
mov edx, dword [ebp - 8]
movzx eax, al
movzx ecx, al
lea eax, [ecx + edx + 1]
jmp 0x100cfc70
mov eax, 9
jmp 0x100cfc70
mov eax, 1
add edi, eax
mov ecx, dword [ebp - 0xc]
inc ecx
mov dword [ebp - 0xc], ecx
cmp ecx, dword [ebp - 0x14]
jl 0x100cfb26
mov eax, ebx
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov eax, edx
mov esp, ebp
pop ebp
ret
Function at 0x100d1780
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [edi + 4]
sub esp, 8
cmp dword [edi + 0x10], 0
push esi
mov ecx, str._rowid___
jne 0x100d179a
mov ecx, 0x1011e110
push edx
mov edx, dword [ebp + 0x10]
push eax
push edx
push eax
mov eax, dword [ebp + 0xc]
push eax
push ecx
push str.SELECT__s_FROM___w_.__w__WHERE_NOT_EXISTS____SELECT_1_FROM___w_.__w__WHERE__s_
call sym.MyService.dll_sqlite3_mprintf
add esp, 0x1c
mov dword [ebp - 8], eax
test eax, eax
jne 0x100d17c4
mov eax, 7
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx]
push 0
lea edx, [ebp - 4]
push edx
push 0
push 0
push 0xffffffffffffffff
push eax
push ecx
call fcn.10074b10
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x100d1847
mov eax, dword [ebx + 0x44]
mov esi, dword [ebp - 4]
mov dword [eax], esi
mov dword [eax + 8], 0
mov ecx, dword [edi + 0x10]
push esi
mov dword [eax + 4], ecx
call sym.MyService.dll_sqlite3_step
add esp, 4
cmp eax, 0x64
jne 0x100d183c
cmp dword [edi + 0x10], 0
je 0x100d1818
push 0
push esi
call sym.MyService.dll_sqlite3_column_int64
add esp, 8
jmp 0x100d181c
xor eax, eax
xor edx, edx
push edx
mov edx, dword [ebp + 8]
push eax
push edx
mov eax, edi
mov ecx, ebx
call fcn.100d10f0
add esp, 0xc
push esi
call sym.MyService.dll_sqlite3_step
add esp, 4
cmp eax, 0x64
je 0x100d1805
push esi
call sym.MyService.dll_sqlite3_finalize
add esp, 4
mov esi, eax
mov eax, dword [ebp - 8]
push eax
call sym.MyService.dll_sqlite3_free
add esp, 4
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100d18a0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, eax
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
push edi
mov edi, dword [esi + 4]
push eax
mov eax, dword [ebx + 4]
push ecx
mov ecx, dword [esi + 8]
push edx
push eax
push ecx
call fcn.100d1710
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x100d18dd
lea eax, [edi + 7]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebx + 4]
call fcn.100d1860
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
call fcn.100d1860
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push edx
mov edx, dword [edi + 4]
mov ebx, eax
mov eax, dword [esi + 4]
push eax
push ecx
push eax
mov eax, dword [ebp - 4]
push edx
push ebx
push eax
push str.SELECT__s__s_FROM___w_.__w_____w_.__w__WHERE__s_AND___z_
mov dword [ebp - 0x10], ebx
call sym.MyService.dll_sqlite3_mprintf
add esp, 0x24
mov dword [ebp - 8], eax
test eax, eax
je 0x100d19e3
cmp dword [ebp - 4], 0
je 0x100d19e3
test ebx, ebx
je 0x100d19e3
mov ecx, dword [edi]
push 0
lea edx, [ebp - 0xc]
push edx
push 0
push 0
push 0xffffffffffffffff
push eax
push ecx
call fcn.10074b10
add esp, 0x1c
mov dword [ebp + 8], eax
test eax, eax
jne 0x100d19b8
mov eax, dword [edi + 0x44]
mov ebx, dword [ebp - 0xc]
mov dword [eax], ebx
mov ecx, dword [esi + 8]
push ebx
mov dword [eax + 8], ecx
call sym.MyService.dll_sqlite3_step
add esp, 4
cmp eax, 0x64
jne 0x100d19a9
cmp dword [esi + 0x10], 0
je 0x100d1987
push 0
push ebx
call sym.MyService.dll_sqlite3_column_int64
add esp, 8
jmp 0x100d198b
xor eax, eax
xor edx, edx
push edx
push eax
push 0x17
mov eax, esi
mov ecx, edi
call fcn.100d10f0
add esp, 0xc
push ebx
call sym.MyService.dll_sqlite3_step
add esp, 4
cmp eax, 0x64
je 0x100d1974
push ebx
call sym.MyService.dll_sqlite3_finalize
mov ebx, dword [ebp - 0x10]
add esp, 4
mov dword [ebp + 8], eax
mov eax, dword [ebp - 8]
push eax
call sym.MyService.dll_sqlite3_free
mov edx, dword [ebp - 4]
add esp, 4
push edx
call sym.MyService.dll_sqlite3_free
add esp, 4
push ebx
call sym.MyService.dll_sqlite3_free
mov eax, dword [ebp + 8]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp + 8], 7
jmp 0x100d19bb
Function at 0x100dbcd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
xor eax, eax
push esi
push edi
mov dword [esp + 0xc], eax
mov dword [ecx], eax
test edx, edx
je 0x100dbe74
lea ecx, [ebx - 1]
mov eax, 0xd
test ecx, ecx
js 0x100dbd15
lea ecx, [ecx]
mov esi, dword [ebp + 0x10]
movsx esi, byte [ecx + esi]
lea edi, [eax*8]
xor esi, edi
xor eax, esi
dec ecx
jns 0x100dbd00
lea ecx, [eax*8]
xor ecx, eax
xor ecx, dword [ebp + 0xc]
and ecx, 0x1ff
mov edi, dword [edx + ecx*4]
mov dword [esp + 0x14], ecx
test edi, edi
je 0x100dbd8f
mov edx, dword [ebp + 0xc]
cmp dword [edi + 8], edx
jne 0x100dbd88
cmp dword [edi + 4], ebx
jne 0x100dbd88
mov ecx, dword [ebp + 0x10]
mov esi, dword [edi]
mov eax, ebx
cmp ebx, 4
jb 0x100dbd64
jmp 0x100dbd50
mov edx, dword [esi]
cmp edx, dword [ecx]
jne 0x100dbd88
sub eax, 4
add ecx, 4
add esi, 4
cmp eax, 4
jae 0x100dbd50
test eax, eax
je 0x100dbd9f
mov dl, byte [ecx]
cmp dl, byte [esi]
jne 0x100dbd88
cmp eax, 1
jbe 0x100dbd9f
mov dl, byte [ecx + 1]
cmp dl, byte [esi + 1]
jne 0x100dbd88
cmp eax, 2
jbe 0x100dbd9f
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
je 0x100dbd9f
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x100dbd32
lea edi, [ebx + 0x10]
xor esi, esi
call sym.MyService.dll_sqlite3_initialize
test eax, eax
je 0x100dbdb2
jmp 0x100dbe0d
mov ecx, dword [ebp + 0x14]
mov eax, dword [esp + 0xc]
mov dword [ecx], 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, edi
or edx, esi
je 0x100dbe2a
test esi, esi
ja 0x100dbe2a
jb 0x100dbdc6
cmp edi, 0x7ffffeff
ja 0x100dbe2a
cmp dword [0x1012c3e8], esi
je 0x100dbe1e
mov eax, dword [0x1013afb8]
test eax, eax
je 0x100dbde1
push eax
call dword [0x1012c438]
add esp, 4
lea eax, [esp + 0x10]
push eax
mov eax, edi
call fcn.1000a480
mov eax, dword [0x1013afb8]
add esp, 4
test eax, eax
je 0x100dbe03
push eax
call dword [0x1012c440]
add esp, 4
mov eax, dword [esp + 0x10]
mov esi, eax
test eax, eax
jne 0x100dbe2e
xor eax, eax
jl 0x100dbe40
jg 0x100dbe17
test edi, edi
je 0x100dbe40
mov edi, 7
jmp 0x100dbe42
push edi
call dword [0x1012c408]
add esp, 4
jmp 0x100dbe07
xor eax, eax
jmp 0x100dbe07
push edi
push 0
push eax
call fcn.100ff5c0
mov edi, dword [esp + 0x18]
add esp, 0xc
jmp 0x100dbe42
mov edi, eax
test esi, esi
je 0x100dbe72
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ebx
lea eax, [esi + 0x10]
push edx
push eax
mov dword [esi], eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ecx
call fcn.101025e0
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0x20]
mov edx, dword [ecx + eax*4]
mov dword [esi + 0xc], edx
add esp, 0xc
mov dword [ecx + eax*4], esi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100e2140
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0xc]
push esi
push edi
mov edi, dword [ebx + 0x14]
add eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], edi
lea esi, [eax*4]
call sym.MyService.dll_sqlite3_initialize
test eax, eax
jne 0x100e2187
mov ecx, esi
or ecx, eax
je 0x100e2187
push eax
push esi
call fcn.1000a580
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
jne 0x100e2193
mov eax, 7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 0
push eax
call fcn.100ff5c0
add esp, 0xc
cmp dword [ebx + 0xc], 0
mov dword [esp + 0xc], 0
jle 0x100e222a
mov dword [esp + 0x10], edi
cmp dword [edi], 0
je 0x100e2211
mov esi, dword [edi]
mov edx, dword [esi]
lea eax, [esi + 0x28]
mov dword [edi], edx
lea ebx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100e21c2
sub eax, ebx
mov ecx, eax
dec ecx
mov eax, 0xd
js 0x100e21f7
jmp 0x100e21e0
movzx edi, byte [esi + ecx + 0x28]
lea ebx, [eax*8]
xor edi, ebx
xor eax, edi
dec ecx
jns 0x100e21e0
mov edi, dword [esp + 0x10]
xor edx, edx
div dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + edx*4]
mov dword [esi], ecx
mov dword [eax + edx*4], esi
cmp dword [edi], 0
jne 0x100e21b6
mov ebx, dword [ebp + 8]
mov eax, dword [esp + 0xc]
inc eax
add edi, 4
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edi
cmp eax, dword [ebx + 0xc]
jl 0x100e21b1
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x100e2283
cmp dword [0x1012c3e8], 0
je 0x100e2279
mov eax, dword [0x1013afb8]
test eax, eax
je 0x100e224a
push eax
call dword [0x1012c438]
add esp, 4
push edi
call dword [0x1012c414]
sub dword [0x1013af50], eax
dec dword [0x1013af74]
push edi
call dword [0x1012c40c]
mov eax, dword [0x1013afb8]
add esp, 8
test eax, eax
je 0x100e2283
push eax
call dword [0x1012c440]
jmp 0x100e2280
push edi
call dword [0x1012c40c]
add esp, 4
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
pop edi
mov dword [ebx + 0x14], eax
pop esi
mov dword [ebx + 0xc], edx
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100e2af0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov edi, eax
lea ecx, [edi - 1]
mov eax, 0xd
test ecx, ecx
js 0x100e2b25
lea ebx, [ebx]
mov edx, dword [ebp + 0xc]
movzx edx, byte [ecx + edx]
lea esi, [eax*8]
xor edx, esi
xor eax, edx
dec ecx
jns 0x100e2b10
mov ecx, dword [ebp + 8]
xor edx, edx
div dword [ecx + 0xc]
mov eax, dword [ecx + 0x14]
mov ebx, dword [eax + edx*4]
test ebx, ebx
je 0x100e2b8e
mov ecx, dword [ebx + 0x14]
inc ecx
cmp edi, ecx
jne 0x100e2b88
mov ecx, dword [ebp + 0xc]
mov eax, edi
lea esi, [ebx + 0x28]
cmp edi, 4
jb 0x100e2b64
lea esp, [esp]
mov edx, dword [esi]
cmp edx, dword [ecx]
jne 0x100e2b88
sub eax, 4
add ecx, 4
add esi, 4
cmp eax, 4
jae 0x100e2b50
test eax, eax
je 0x100e2ba9
mov dl, byte [ecx]
cmp dl, byte [esi]
jne 0x100e2b88
cmp eax, 1
jbe 0x100e2ba9
mov dl, byte [ecx + 1]
cmp dl, byte [esi + 1]
jne 0x100e2b88
cmp eax, 2
jbe 0x100e2ba9
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
je 0x100e2ba9
mov ebx, dword [ebx]
test ebx, ebx
jne 0x100e2b37
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [eax], 0
mov dword [ecx], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0x29]
mov edi, dword [ebx + 0x10]
sub edi, eax
mov dword [esp + 0x14], eax
lea eax, [edi + 0x16]
cdq
mov esi, eax
mov dword [esp + 0x10], edx
call sym.MyService.dll_sqlite3_initialize
test eax, eax
je 0x100e2bcc
xor esi, esi
jmp 0x100e2c34
mov eax, dword [esp + 0x10]
mov ecx, esi
or ecx, eax
je 0x100e2c81
test eax, eax
ja 0x100e2c81
jb 0x100e2bf0
cmp esi, 0x7ffffeff
ja 0x100e2c81
cmp dword [0x1012c3e8], 0
je 0x100e2c75
mov eax, dword [0x1013afb8]
test eax, eax
je 0x100e2c0c
push eax
call dword [0x1012c438]
add esp, 4
lea edx, [esp + 0xc]
push edx
mov eax, esi
call fcn.1000a480
mov eax, dword [0x1013afb8]
add esp, 4
test eax, eax
je 0x100e2c2e
push eax
call dword [0x1012c440]
add esp, 4
mov eax, dword [esp + 0xc]
mov esi, eax
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
test esi, esi
je 0x100e2c85
mov ecx, dword [esp + 0x14]
push edi
add ecx, ebx
push ecx
lea edx, [esi + 0xc]
push edx
call fcn.101025e0
sub esi, dword [esp + 0x20]
mov eax, dword [ebp + 8]
add esp, 0xc
add esi, 0xc
push esi
push eax
call fcn.100e22a0
mov ecx, dword [ebp + 0x14]
add eax, edi
add esp, 8
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [0x1012c408]
add esp, 4
jmp 0x100e2c32
xor eax, eax
jmp 0x100e2c32
mov edx, dword [ebp + 0x14]
pop edi
pop esi
mov dword [edx], 0
mov eax, 7
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100e5e60
Capabilities:
Reference sql statements

Disassembly:
push ecx
cmp dword [esi + 0x44], 0
push ebx
lea ebx, [esi + 0x44]
push edi
jne 0x100e5ecb
mov eax, dword [esi]
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 sym.MyService.dll_sqlite3_mprintf
add esp, 0xc
cmp dword [esi + 0x2c], 0
mov edi, eax
jne 0x100e5ec2
test edi, edi
je 0x100e5ebb
mov eax, dword [esi]
mov eax, dword [eax]
push 0
push ebx
push 0
push 0x85
push 0xffffffffffffffff
push edi
push eax
call fcn.10074b10
add esp, 0x1c
push edi
mov dword [esi + 0x2c], eax
call sym.MyService.dll_sqlite3_free
mov eax, dword [ebx]
add esp, 4
pop edi
pop ebx
pop ecx
ret
mov dword [esi + 0x2c], 7
push edi
call sym.MyService.dll_sqlite3_free
add esp, 4
mov eax, dword [ebx]
pop edi
pop ebx
pop ecx
ret
Function at 0x100f3000
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
xor eax, eax
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
cmp dword [edi + 0x3c], eax
jne 0x100f3079
mov ebx, dword [edi]
cmp dword [ebx + 0x24], eax
mov eax, str._origin
jne 0x100f3028
mov eax, 0x10112e3c
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 4]
push ecx
push edx
push eax
push str.SELECT_sz_s_FROM__Q._q_docsize_WHERE_id_
call sym.MyService.dll_sqlite3_mprintf
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x100f3049
lea ebx, [eax + 7]
jmp 0x100f3079
mov eax, dword [edi]
inc dword [eax + 0x44]
mov ebx, dword [ebx]
push 0
lea eax, [edi + 0x3c]
push eax
push 0
push 0x85
push 0xffffffffffffffff
push esi
push ebx
call fcn.10074b10
mov ebx, eax
mov eax, dword [edi]
dec dword [eax + 0x44]
add esp, 0x1c
push esi
call sym.MyService.dll_sqlite3_free
add esp, 4
mov esi, dword [edi + 0x3c]
push esi
call sym.MyService.dll_sqlite3_reset
add esp, 4
test ebx, ebx
jne 0x100f30ea
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
push eax
push 1
push esi
call sym.MyService.dll_sqlite3_bind_int64
push esi
call sym.MyService.dll_sqlite3_step
add esp, 0x14
cmp eax, 0x64
jne 0x100f30b8
push 1
push esi
call sym.MyService.dll_sqlite3_column_int64
add esp, 8
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
push esi
call sym.MyService.dll_sqlite3_reset
add esp, 4
test eax, eax
jne 0x100f30ec
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov esi, ecx
or esi, edx
je 0x100f30ec
mov eax, dword [ebp + 8]
push ebx
push eax
push edx
push ecx
mov ecx, dword [edi + 4]
push ecx
call fcn.100edb00
add esp, 0x14
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100f4660
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, eax
cmp dword [edi + 0x3c], 0
mov esi, dword [edi]
mov eax, dword [esi + 0xc]
mov dword [ebp - 0xc], eax
lea eax, [edi + 0x3c]
mov dword [ebp - 4], 0
mov dword [ebp - 8], eax
jne 0x100f46ec
cmp dword [esi + 0x24], 0
mov eax, str._origin
jne 0x100f4696
mov eax, 0x10112e3c
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
push ecx
push edx
push eax
push str.SELECT_sz_s_FROM__Q._q_docsize_WHERE_id_
call sym.MyService.dll_sqlite3_mprintf
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x100f46bb
mov dword [ebp - 4], 7
jmp 0x100f46ec
mov eax, dword [edi]
inc dword [eax + 0x44]
mov eax, dword [ebp - 8]
mov esi, dword [esi]
push 0
push eax
push 0
push 0x85
push 0xffffffffffffffff
push ebx
push esi
call fcn.10074b10
mov edi, dword [edi]
dec dword [edi + 0x44]
add esp, 0x1c
push ebx
mov dword [ebp - 4], eax
call sym.MyService.dll_sqlite3_free
add esp, 4
mov ecx, dword [ebp - 8]
mov esi, dword [ecx]
push esi
call sym.MyService.dll_sqlite3_reset
add esp, 4
test esi, esi
je 0x100f4766
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edx
push eax
mov edi, 1
push edi
push esi
call sym.MyService.dll_sqlite3_bind_int64
push esi
call sym.MyService.dll_sqlite3_step
add esp, 0x14
cmp eax, 0x64
jne 0x100f4749
push 0
push esi
call sym.MyService.dll_sqlite3_column_blob
push 0
push esi
mov ebx, eax
call sym.MyService.dll_sqlite3_column_bytes
mov ecx, dword [ebp - 0xc]
push eax
push ebx
mov ebx, dword [ebp + 0x10]
push ecx
call fcn.100f45a0
add esp, 0x1c
test eax, eax
jne 0x100f4749
xor edi, edi
push esi
call sym.MyService.dll_sqlite3_reset
add esp, 4
test edi, edi
je 0x100f4769
test eax, eax
jne 0x100f4769
mov eax, 0x10b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100f7b60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, ecx
cmp ecx, 0x80
jge 0x100f7b83
lea edx, [ecx - 0x41]
cmp edx, 0x19
ja 0x100f7c33
lea eax, [ecx + 0x20]
mov esp, ebp
pop ebp
ret
cmp ecx, 0x10000
jge 0x100f7c25
push ebx
push esi
push edi
mov edi, 0xa2
xor esi, esi
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + edi]
cdq
sub eax, edx
sar eax, 1
movzx edx, word [eax*4 + 0x101196a8]
mov ebx, ecx
sub ebx, edx
js 0x100f7bc0
mov edx, eax
mov dword [ebp - 4], edx
lea esi, [eax + 1]
jmp 0x100f7bc6
mov edx, dword [ebp - 4]
lea edi, [eax - 1]
cmp edi, esi
jge 0x100f7ba0
movzx eax, word [edx*4 + 0x101196a8]
movzx esi, byte [edx*4 + 0x101196ab]
add esi, eax
pop edi
cmp ecx, esi
pop esi
pop ebx
jge 0x100f7c06
movzx edx, byte [edx*4 + 0x101196aa]
xor eax, ecx
and eax, edx
test al, 1
jne 0x100f7c06
shr edx, 1
movzx eax, word [edx*2 + 0x10119938]
add eax, ecx
and eax, 0xffff
jmp 0x100f7c08
mov eax, ecx
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x100f7c33
xor edx, edx
cmp ecx, 2
sete dl
push edx
push eax
call fcn.100c2570
add esp, 8
mov esp, ebp
pop ebp
ret
lea edx, [ecx - 0x10400]
cmp edx, 0x27
ja 0x100f7c33
lea eax, [ecx + 0x28]
mov esp, ebp
pop ebp
ret
Function at 0x100f9904
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1012b470]
jne 0x100f990e
repz ret
jmp fcn.100fd30f

Function at 0x101075aa
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1012b470]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.100fe16c
and dword [ebp - 0x14], 0
cmp dword [0x10132be8], 0
mov dword [ebp - 0x18], eax
jne 0x1010765d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10107705
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10107705
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x10132be8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x10132bec], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x10132bf0], eax
call edi
push eax
call esi
mov dword [0x10132bf8], eax
test eax, eax
je 0x1010765d
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x10132bf4], eax
mov eax, dword [0x10132bf4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x101076b6
cmp dword [0x10132bf8], ecx
je 0x101076b6
push eax
call esi
push dword [0x10132bf8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x101076b6
test ebx, ebx
je 0x101076b6
call edi
test eax, eax
je 0x101076ad
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x101076ad
test byte [ebp - 8], 1
jne 0x101076b6
or dword [ebp + 0x10], 0x200000
jmp 0x101076e9
mov eax, dword [0x10132bec]
cmp eax, dword [ebp - 0x18]
je 0x101076e9
push eax
call esi
test eax, eax
je 0x101076e9
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x101076e9
mov eax, dword [0x10132bf0]
cmp eax, dword [ebp - 0x18]
je 0x101076e9
push eax
call esi
test eax, eax
je 0x101076e9
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x10132be8]
call esi
test eax, eax
je 0x10107705
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10107707
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100f9904
leave
ret

Function at 0x1016638c
Capabilities:
Encode data using xor

Disassembly:
not eax
call fcn.1017eeb7
dec ebp
add al, 0x4a
push ecx
cli
xor dh, dl
xlatb
pop ebx
cdq
jnp 0x10166396
or eax, ebp
cmc
invalid
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x673d1544
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
mov ecx, 0x498d385c
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x433084
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219

Function at 0x403d61
Capabilities:
Encode data using xor

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x40a5ec
pop dword [ebp - 0x40]
mov eax, 0xc780851
sub eax, 0xc376265
sub dword [ebp - 0x40], eax
push 0x40
push 0x1000
push 0x3d486
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x40]
call dword [eax]
mov ecx, 0x8843c656
sub ecx, 0x88438190
xor esi, esi
add esi, eax
mov edi, 0x438200
add edi, dword [ebp - 0x40]
mov ebx, 0x4e1c932d
sub ebx, 0xd0beb474
mov dword [ebp - 0x30], 0xcb1edeb4
mov edx, dword [edi]
sub dword [ebp - 0x10], 0x5074fafc
xor edx, ebx
add dword [ebp - 0x14], ecx
mov dword [esi], edx
add esi, 0x9b88930f
add esi, 0x64776cf5
add edi, 0xdaad21af
sub edi, 0xdaad21ab
loop 0x40a642
add eax, 0x104bd305
add eax, 0xefb532e6
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x7c5463d8
add ecx, 0x83eb9c28
add ecx, dword [ebp - 0x40]
call ebx
leave
ret