joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45e920
Capabilities:
Allocate thread local storage

Disassembly:
cmp dword [0x4f26c4], 0
jne 0x45e980
mov eax, 1
lock xadd dword [0x4f26c8], eax
inc eax
cmp eax, 1
jne 0x45e962
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x4ee574], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x4f26d4], eax
call fcn.0044ebc0
mov dword [0x4f26c4], 1
ret
cmp dword [0x4f26c4], 0
jne 0x45e980
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call esi
cmp dword [0x4f26c4], 0
je 0x45e972
pop esi
ret

Function at 0x4664f0
Capabilities:
Parse credit card information

Disassembly:
sub esp, 0x7d4
mov eax, dword [0x4eef3c]
xor eax, esp
mov dword [esp + 0x7d0], eax
push esi
push edi
mov edi, dword [esp + 0x7e0]
xor esi, esi
push 0xd
push str.urn:publicid:
push edi
call fcn.0044e840
add esp, 0xc
test eax, eax
je 0x46653c
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x7d0]
xor ecx, esp
call fcn.00488c1c
add esp, 0x7d4
ret
mov al, byte [edi + 0xd]
add edi, 0xd
test al, al
je 0x466668
nop word [eax + eax]
cmp esi, 0x7cc
ja 0x466660
cmp al, 0x2b
jne 0x46656a
mov byte [esp + esi + 8], 0x20
jmp 0x466654
cmp al, 0x3a
jne 0x46657d
mov word [esp + esi + 8], 0x2f2f
add esi, 2
jmp 0x466655
cmp al, 0x3b
jne 0x466590
mov word [esp + esi + 8], 0x3a3a
add esi, 2
jmp 0x466655
cmp al, 0x25
jne 0x466650
mov al, byte [edi + 1]
cmp al, 0x32
jne 0x4665b3
cmp byte [edi + 2], 0x42
jne 0x4665b3
mov byte [esp + esi + 8], 0x2b
inc esi
add edi, 3
jmp 0x466656
cmp al, 0x33
jne 0x4665cb
cmp byte [edi + 2], 0x41
jne 0x4665cb
mov byte [esp + esi + 8], 0x3a
inc esi
add edi, 3
jmp 0x466656
cmp al, 0x32
jne 0x4665e0
cmp byte [edi + 2], 0x46
jne 0x4665e0
mov byte [esp + esi + 8], 0x2f
inc esi
add edi, 3
jmp 0x466656
cmp al, 0x33
jne 0x4665f5
cmp byte [edi + 2], 0x42
jne 0x4665f5
mov byte [esp + esi + 8], 0x3b
inc esi
add edi, 3
jmp 0x466656
cmp al, 0x32
jne 0x46660a
cmp byte [edi + 2], 0x37
jne 0x46660a
mov byte [esp + esi + 8], 0x27
inc esi
add edi, 3
jmp 0x466656
cmp al, 0x33
jne 0x46661f
cmp byte [edi + 2], 0x46
jne 0x46661f
mov byte [esp + esi + 8], 0x3f
inc esi
add edi, 3
jmp 0x466656
cmp al, 0x32
jne 0x466649
cmp byte [edi + 2], 0x33
jne 0x466634
mov byte [esp + esi + 8], 0x23
inc esi
add edi, 3
jmp 0x466656
cmp al, 0x32
jne 0x466649
cmp byte [edi + 2], 0x35
jne 0x466649
mov byte [esp + esi + 8], 0x25
inc esi
add edi, 3
jmp 0x466656
mov byte [esp + esi + 8], 0x25
jmp 0x466654
mov byte [esp + esi + 8], al
inc esi
inc edi
mov al, byte [edi]
test al, al
jne 0x466550
cmp esi, 0x7d0
jae 0x466691
lea eax, [esp + 8]
mov byte [esp + esi + 8], 0
push eax
call fcn.0044e600
mov ecx, dword [esp + 0x7dc]
add esp, 4
pop edi
pop esi
xor ecx, esp
call fcn.00488c1c
add esp, 0x7d4
ret
call fcn.0048927f
int3
Function at 0x46ff50
Capabilities:
Get common file path

Disassembly:
sub esp, 0x230
mov eax, dword [0x4eef3c]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp dword [0x4f31ec], 0
mov dword [esp], str.getaddrinfo
mov dword [esp + 4], 0x46fa20
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x46fce0
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], fcn.0046f9d0
jne 0x4700a7
push 0x104
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x47009d
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.004a102d
push str.ws2_32
lea eax, [esp + 0x38]
push 0x10c
push eax
call fcn.004a1087
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [esp + 0x40]
add esp, 0x18
push eax
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test edi, edi
je 0x47001b
push str.getaddrinfo
push edi
call ebx
test eax, eax
jne 0x470062
push edi
call ebp
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.004a102d
push str.wship6
lea eax, [esp + 0x38]
push 0x10c
push eax
call fcn.004a1087
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call esi
mov edi, eax
test edi, edi
je 0x470099
push str.getaddrinfo
push edi
call ebx
test eax, eax
je 0x470096
xor esi, esi
push dword [esp + esi*8 + 0x10]
push edi
call ebx
mov dword [esp + esi*8 + 0x14], eax
test eax, eax
je 0x470096
inc esi
cmp esi, 3
jl 0x470064
mov eax, dword [esp + 0x14]
mov dword [0x4ee808], eax
mov eax, dword [esp + 0x1c]
mov dword [0x4ee810], eax
mov eax, dword [esp + 0x24]
mov dword [fcn.0046f9d0], eax
jmp 0x470099
push edi
call ebp
pop edi
pop esi
pop ebp
pop ebx
mov dword [0x4f31ec], 1
movzx eax, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
mov eax, dword [eax*8 + 0x4ee808]
call fcn.00488c1c
add esp, 0x230
ret 4

Function at 0x470340
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 0x14]
push ebx
push edi
mov edi, dword [esp + 0x20]
push dword [esp + 0xc]
mov dword [edi], 0
mov byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x4703cf
cmp word [ebx + 8], 2
push ebp
push esi
jne 0x4703a2
cmp word [ebx + 0xa], 4
jne 0x4703a2
mov esi, dword [ebx + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x4703a2
mov ebp, dword [esp + 0x1c]
push dword [eax]
push dword [esp + 0x24]
push ebp
push dword [esp + 0x24]
call fcn.00470270
mov dword [edi], eax
test eax, eax
je 0x4703c3
add esi, 4
lea edi, [eax + 0x1c]
mov eax, dword [esi]
test eax, eax
jne 0x470380
push 0x400
push dword [ebx]
push 0x401
push dword [esp + 0x30]
call fcn.004985ed
add esp, 0x10
xor eax, eax
pop esi
pop ebp
pop edi
pop ebx
ret 0x18
pop esi
pop ebp
pop edi
mov eax, 8
pop ebx
ret 0x18
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x4703df.11001
jmp dword [eax*4 + 0x470404]
pop edi
mov eax, 0x2af9
pop ebx
ret 0x18
pop edi
mov eax, 0x2afa
pop ebx
ret 0x18
pop edi
mov eax, 0x2afb
pop ebx
ret 0x18
Function at 0x10002a50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x10002aa8
cmp byte [esi + ebx - 1], 0xa
je 0x10002a7c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x10003118], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret

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 0x10002050
Capabilities:
Query environment variable

Disassembly:
push 0x8000
push 0
push 0x10132c40
call fcn.100ff5c0
add esp, 0xc
push 0x8000
push 0x10132c40
push str.SystemDrive
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x1000208a
cmp eax, 0x8000
ja 0x1000208a
mov eax, 0x10132c40
ret
xor eax, eax
ret

Function at 0x10004a50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
push 0x10112e48
push eax
call fcn.100fb63c
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x10004be0
push 2
push 0
push ebx
call fcn.100fbe56
add esp, 0xc
push ebx
call fcn.100fbcba
cdq
add esp, 4
push ebx
mov esi, eax
mov edi, edx
call fcn.100fa5d0
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
mov eax, dword [ecx + 0x14]
mov eax, dword [eax + 0x78]
cdq
add esp, 4
cmp edi, edx
jl 0x10004af4
jg 0x10004aae
cmp esi, eax
jbe 0x10004af4
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], 0x12
test byte [ecx + 0x10], 1
je 0x10004bd7
mov ecx, dword [str.string_or_blob_too_big]
mov eax, str.unknown_error
test ecx, ecx
je 0x10004ad3
mov eax, ecx
push 0xffffffffffffffff
push eax
xor eax, eax
mov cl, 1
mov edi, edx
call fcn.10034f40
add esp, 8
push ebx
call fcn.100fbfc6
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, esi
or eax, edi
je 0x10004b04
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
jmp 0x10004b14
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], 0
call sym.MyService.dll_sqlite3_initialize
test eax, eax
jne 0x10004b3d
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, eax
or edx, ecx
je 0x10004b3d
push ecx
push eax
call fcn.1000a580
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x10004b59
mov eax, dword [ebp + 8]
push eax
call sym.MyService.dll_sqlite3_result_error_nomem
add esp, 4
push ebx
call fcn.100fbfc6
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push esi
push 1
push eax
call fcn.100fb89d
add esp, 0x10
xor ecx, ecx
cmp esi, eax
jne 0x10004b98
cmp edi, ecx
jne 0x10004b98
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp + 8]
push sym.MyService.dll_sqlite3_free
push edi
push esi
push ecx
push edx
call sym.MyService.dll_sqlite3_result_blob64
add esp, 0x14
push ebx
call fcn.100fbfc6
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov dword [edi + 0x14], 0xa
test byte [eax + 0x10], 1
je 0x10004bca
mov ecx, dword [str.disk_I_O_error]
mov eax, str.unknown_error
test ecx, ecx
je 0x10004bbb
mov eax, ecx
push 0xffffffffffffffff
push eax
xor eax, eax
mov cl, 1
call fcn.10034f40
add esp, 8
mov ecx, dword [esp + 0x10]
push ecx
call sym.MyService.dll_sqlite3_free
add esp, 4
push ebx
call fcn.100fbfc6
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000d490
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
call sym.MyService.dll_sqlite3_initialize
test eax, eax
jne 0x1000d61f
cmp byte [0x1012c3ec], al
jne 0x1000d4b1
mov dword [ebp + 0xc], eax
jmp 0x1000d4cd
push 5
call dword [0x1012c430]
add esp, 4
mov dword [ebp + 0xc], eax
test eax, eax
je 0x1000d4cd
push eax
call dword [0x1012c438]
add esp, 4
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
jle 0x1000d603
test esi, esi
je 0x1000d603
cmp dword [0x1013ad20], 0
jne 0x1000d58f
push 0
call sym.MyService.dll_sqlite3_vfs_find
mov ecx, dword [str.expand_32_byte_k]
mov edx, dword [0x10113394]
mov dword [0x1013ad20], ecx
mov ecx, dword [0x10113398]
mov dword [0x1013ad24], edx
mov edx, dword [0x1011339c]
add esp, 4
mov dword [0x1013ad28], ecx
mov dword [0x1013ad2c], edx
test eax, eax
jne 0x1000d53e
push 0x2c
push eax
push 0x1013ad30
call fcn.100ff5c0
add esp, 0xc
jmp 0x1000d570
push edi
mov edi, dword [0x1012c4fc]
test edi, edi
je 0x1000d55f
push 0x2c
push 0
push 0x1013ad30
call fcn.100ff5c0
mov dword [0x1013ad30], edi
jmp 0x1000d56c
push 0x1013ad30
push 0x2c
push eax
mov eax, dword [eax + 0x38]
call eax
add esp, 0xc
pop edi
mov ecx, dword [0x1013ad50]
xor al, al
mov dword [0x1013ad5c], ecx
mov dword [0x1013ad50], 0
mov byte [0x1013ada0], al
jmp 0x1000d594
mov al, byte [0x1013ada0]
movzx edx, al
cmp ebx, edx
jle 0x1000d5e5
jmp 0x1000d5a0
test al, al
je 0x1000d5c1
movzx eax, al
push eax
push 0x1013ad60
push esi
call fcn.101025e0
movzx eax, byte [0x1013ada0]
add esp, 0xc
sub ebx, eax
add esi, eax
inc dword [0x1013ad50]
push 0x1013ad20
push 0x1013ad60
call fcn.1000d220
add esp, 8
mov al, 0x40
mov byte [0x1013ada0], al
cmp ebx, 0x40
jg 0x1000d5a0
movzx ecx, al
sub ecx, ebx
push ebx
add ecx, 0x1013ad60
push ecx
push esi
call fcn.101025e0
add esp, 0xc
sub byte [0x1013ada0], bl
jmp 0x1000d60d
mov dword [0x1013ad20], 0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1000d61e
push eax
call dword [0x1012c440]
add esp, 4
pop ebx
pop esi
pop ebp
ret
Function at 0x1000d660
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 8
mov dword [eax], 0
cmp dword [0x1012c3e8], 0
push esi
je 0x1000d6bf
mov eax, dword [0x1013afb8]
test eax, eax
je 0x1000d68c
push eax
call dword [0x1012c438]
add esp, 4
lea ecx, [ebp - 4]
push ecx
mov eax, 0x14
call fcn.1000a480
mov eax, dword [0x1013afb8]
add esp, 4
test eax, eax
je 0x1000d6b0
push eax
call dword [0x1012c440]
add esp, 4
mov esi, dword [ebp - 4]
test esi, esi
jne 0x1000d6ce
lea eax, [esi + 7]
pop esi
mov esp, ebp
pop ebp
ret
push 0x14
call dword [0x1012c408]
add esp, 4
mov esi, eax
jmp 0x1000d6b3
cmp byte [0x1012c3ec], 0
je 0x1000d712
mov eax, dword [0x1012c4e8]
test eax, eax
je 0x1000d6ee
push 0xc8
call eax
add esp, 4
test eax, eax
jne 0x1000d712
lea edx, [esi + 4]
push edx
push 0
push esi
push 0x1000d630
push 0
push 0
mov dword [esi + 8], ebx
mov dword [esi + 0xc], edi
call fcn.100fcedb
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x1000d722
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
cmp dword [esi + 8], 0
jne 0x1000d73a
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]
mov dword [eax], esi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10050350
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
push ebx
push esi
push esi
push str.SELECT_1_FROM___w_.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d___Q___d_NULL
push edi
mov byte [edi + 0x10], 1
call fcn.10057600
add esp, 0x1c
test ebx, ebx
jne 0x1005038b
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edx
push eax
push esi
push str.SELECT_1_FROM_temp.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1___Q___d_NULL
push edi
call fcn.10057600
add esp, 0x14
pop ebp
ret
Function at 0x10057c40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 8]
xor eax, eax
push ebx
xor ebx, ebx
mov dword [ebp - 4], eax
cmp dword [ecx + 0x14], eax
jle 0x10057cbb
push esi
push edi
mov eax, ebx
cmp ebx, 2
jge 0x10057c62
xor eax, 1
mov ecx, dword [ecx + 0x10]
mov edi, dword [ebp + 0x10]
mov edx, eax
shl edx, 4
add ecx, edx
mov edx, dword [ecx + 0xc]
mov dword [ebp - 8], edx
test edi, edi
je 0x10057c8f
mov ecx, dword [ecx]
sub edi, ecx
lea ecx, [ecx]
movzx edx, byte [ecx]
movzx esi, byte [edi + ecx]
cmp edx, esi
jne 0x10057cc0
test edx, edx
jne 0x10057cd2
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
push 0
push edx
add eax, 0x18
call fcn.10010500
mov eax, dword [eax + 8]
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
jne 0x10057cb9
mov ecx, dword [ebp + 8]
inc ebx
cmp ebx, dword [ecx + 0x14]
jl 0x10057c58
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx esi, byte [esi + 0x10112f10]
movzx edx, byte [edx + 0x10112f10]
sub edx, esi
jne 0x10057cd5
inc ecx
jmp 0x10057c80
test eax, eax
jne 0x10057cad
mov edi, dword [ebp + 0x10]
mov edx, str.main
sub edi, edx
movzx ecx, byte [edx]
movzx esi, byte [edi + edx]
cmp ecx, esi
jne 0x10057cf5
test ecx, ecx
je 0x10057c8f
inc edx
jmp 0x10057ce3
movzx eax, byte [esi + 0x10112f10]
movzx ecx, byte [ecx + 0x10112f10]
sub ecx, eax
jne 0x10057cad
inc edx
jmp 0x10057ce3
Function at 0x100a9020
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.100a8ad0
Function at 0x100c2980
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, ecx
cmp ecx, 0x80
jge 0x100c29a3
lea edx, [ecx - 0x41]
cmp edx, 0x19
ja 0x100c2a53
lea eax, [ecx + 0x20]
mov esp, ebp
pop ebp
ret
cmp ecx, 0x10000
jge 0x100c2a45
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 + 0x10118f00]
mov ebx, ecx
sub ebx, edx
js 0x100c29e0
mov edx, eax
mov dword [ebp - 4], edx
lea esi, [eax + 1]
jmp 0x100c29e6
mov edx, dword [ebp - 4]
lea edi, [eax - 1]
cmp edi, esi
jge 0x100c29c0
movzx eax, word [edx*4 + 0x10118f00]
movzx esi, byte [edx*4 + 0x10118f03]
add esi, eax
pop edi
cmp ecx, esi
pop esi
pop ebx
jge 0x100c2a26
movzx edx, byte [edx*4 + 0x10118f02]
xor eax, ecx
and eax, edx
test al, 1
jne 0x100c2a26
shr edx, 1
movzx eax, word [edx*2 + 0x101191b0]
add eax, ecx
and eax, 0xffff
jmp 0x100c2a28
mov eax, ecx
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x100c2a53
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 0x100c2a53
lea eax, [ecx + 0x28]
mov esp, ebp
pop ebp
ret
Function at 0x100cd9d0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi + 0x20]
mov ecx, dword [ebp + 8]
sub esp, 0xc
push ebx
push edi
xor edi, edi
push edi
push edi
push edi
push edi
push edi
push edi
push str.sqlite_stat1
push eax
push ecx
mov ebx, 0x64
call sym.MyService.dll_sqlite3_table_column_metadata
mov ecx, eax
add esp, 0x24
test ecx, ecx
je 0x100cda19
lea eax, [ecx - 1]
neg eax
sbb eax, eax
mov dword [esi + 0x30], 0x100000
mov dword [esi + 0x34], edi
and eax, ecx
pop edi
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 sym.MyService.dll_sqlite3_mprintf
add esp, 0xc
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x100cda52
mov dword [ebp - 8], 7
mov eax, 0x64
xor ecx, ecx
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x34], ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
push 0
lea ecx, [ebp - 4]
push ecx
push 0
push pe_nt_image_headers32
push 0xffffffffffffffff
push eax
push edx
call fcn.10074b10
add esp, 0x1c
mov dword [ebp - 8], eax
test eax, eax
jne 0x100cdaa7
mov eax, dword [ebp - 4]
push eax
call sym.MyService.dll_sqlite3_step
add esp, 4
cmp eax, 0x64
jne 0x100cda98
mov ecx, dword [ebp - 4]
push 0
push ecx
call sym.MyService.dll_sqlite3_column_int64
add esp, 8
mov ebx, eax
mov edi, edx
mov edx, dword [ebp - 4]
push edx
call sym.MyService.dll_sqlite3_finalize
add esp, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
push eax
call sym.MyService.dll_sqlite3_free
add esp, 4
test edi, edi
jl 0x100cda3c
jg 0x100cdac2
cmp ebx, 0x64
jbe 0x100cda3c
mov eax, ebx
mov ecx, edi
pop edi
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x34], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100cdfc0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
mov eax, dword [esi + 0x20]
push ebx
push edi
je 0x100ce03d
push eax
push str.PRAGMA__Q.page_size
mov dword [ebp + 0xc], 0
call sym.MyService.dll_sqlite3_mprintf
mov edx, dword [ebp + 8]
lea ecx, [ebp + 0xc]
push ecx
mov ebx, eax
push edx
mov ecx, ebx
call fcn.100cdf50
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x100ce029
movzx ecx, byte [esi + 0x17]
mov eax, dword [ebp + 0xc]
imul ecx, ecx, 0x33
add eax, 0xffffffc0
add ecx, 4
mov dword [esi + 0x10], eax
cmp ecx, eax
jge 0x100ce0a1
push ebx
mov dword [esi + 0x10], ecx
call sym.MyService.dll_sqlite3_free
add esp, 4
mov eax, edi
pop edi
pop ebx
pop ecx
pop ebp
ret
mov eax, dword [ebp + 8]
push eax
call sym.MyService.dll_sqlite3_errmsg
add esp, 4
push eax
push 0x10112e4c
jmp 0x100ce094
mov edx, dword [esi + 0x24]
push edx
push eax
push str.SELECT_length_data__FROM__q._q_node_WHERE_nodeno__1
call sym.MyService.dll_sqlite3_mprintf
mov ecx, dword [ebp + 8]
mov ebx, eax
add esp, 0xc
lea eax, [esi + 0x10]
push eax
push ecx
mov ecx, ebx
call fcn.100cdf50
mov edi, eax
add esp, 8
test edi, edi
je 0x100ce07d
mov edx, dword [ebp + 8]
push edx
call sym.MyService.dll_sqlite3_errmsg
add esp, 4
push eax
push 0x10112e4c
jmp 0x100ce094
cmp dword [esi + 0x10], 0x1c0
jge 0x100ce0a1
mov edx, dword [esi + 0x24]
push edx
mov edi, 0x10b
push str.undersize_RTree_blobs_in___q_node_
call sym.MyService.dll_sqlite3_mprintf
mov ecx, dword [ebp + 0x10]
add esp, 8
mov dword [ecx], eax
push ebx
call sym.MyService.dll_sqlite3_free
add esp, 4
mov eax, edi
pop edi
pop ebx
pop ecx
pop ebp
ret
Function at 0x100ce870
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push ebx
xor ebx, ebx
push edi
cmp dword [esi + 0x28], ebx
jne 0x100ce97b
cmp dword [esi + 0x14], ebx
jne 0x100ce8a4
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
push ecx
push str.SELECT_data_FROM__Q._q_node_WHERE_nodeno_
push esi
call fcn.100ce790
add esp, 0x10
mov dword [esi + 0x14], eax
cmp dword [esi + 0x28], ebx
jne 0x100ce97b
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 0x14]
push edx
push eax
push 1
push ecx
call sym.MyService.dll_sqlite3_bind_int64
mov edx, dword [esi + 0x14]
push edx
call sym.MyService.dll_sqlite3_step
add esp, 0x14
cmp eax, 0x64
jne 0x100ce948
mov eax, dword [esi + 0x14]
push 0
push eax
call sym.MyService.dll_sqlite3_column_bytes
mov ecx, dword [esi + 0x14]
push 0
push ecx
mov edi, eax
call sym.MyService.dll_sqlite3_column_blob
mov dword [esp + 0x1c], eax
mov eax, edi
cdq
add esp, 0x10
mov ebx, eax
mov dword [esp + 0x14], edx
call sym.MyService.dll_sqlite3_initialize
test eax, eax
je 0x100ce90d
xor ebx, ebx
mov dword [esi + 0x28], 7
jmp 0x100ce948
mov eax, dword [esp + 0x14]
mov edx, ebx
or edx, eax
je 0x100ce923
push eax
push ebx
call fcn.1000a580
add esp, 8
jmp 0x100ce925
xor eax, eax
mov ebx, eax
test eax, eax
jne 0x100ce934
mov dword [esi + 0x28], 7
jmp 0x100ce948
mov ecx, dword [esp + 0xc]
push edi
push ecx
push eax
call fcn.101025e0
mov edx, dword [ebp + 0x10]
add esp, 0xc
mov dword [edx], edi
mov eax, dword [esi + 0x14]
push eax
call sym.MyService.dll_sqlite3_reset
add esp, 4
cmp dword [esi + 0x28], 0
jne 0x100ce97b
mov dword [esi + 0x28], eax
test eax, eax
jne 0x100ce97b
test ebx, ebx
jne 0x100ce97b
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
push str.Node__lld_missing_from_database
push esi
call fcn.100ce810
add esp, 0x10
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100ce990
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
mov edi, dword [ebp + 8]
cmp dword [esi + edi*4 + 0x18], 0
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
jne 0x100ce9ca
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.100ce790
add esp, 0x10
mov dword [esi + edi*4 + 0x18], eax
cmp dword [esi + 0x28], 0
jne 0x100cea92
mov eax, dword [esi + edi*4 + 0x18]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
push edi
push ebx
push 1
push eax
mov dword [ebp - 4], eax
call sym.MyService.dll_sqlite3_bind_int64
mov eax, dword [ebp - 4]
push eax
call sym.MyService.dll_sqlite3_step
add esp, 0x14
cmp eax, 0x65
jne 0x100cea27
cmp dword [ebp + 8], 0
mov eax, str.__rowid
jne 0x100cea0c
mov eax, str.__parent
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
push eax
push ecx
push edx
push edi
push ebx
push str.Mapping___lld_____lld__missing_from__s_table
push esi
call fcn.100ce810
add esp, 0x1c
jmp 0x100cea7d
cmp eax, 0x64
jne 0x100cea7d
mov eax, dword [ebp - 4]
push 0
push eax
call sym.MyService.dll_sqlite3_column_int64
mov ecx, dword [ebp + 0x14]
add esp, 8
mov dword [ebp - 0xc], edx
cmp eax, ecx
jne 0x100cea49
cmp edx, dword [ebp + 0x18]
je 0x100cea7d
cmp dword [ebp + 8], 0
mov dword [ebp + 8], str.__rowid
jne 0x100cea5d
mov dword [ebp + 8], str.__parent
mov edx, dword [ebp + 0x18]
push edx
mov edx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp + 8]
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.100ce810
add esp, 0x2c
mov eax, dword [ebp - 4]
push eax
call sym.MyService.dll_sqlite3_reset
add esp, 4
cmp dword [esi + 0x28], 0
jne 0x100cea92
mov dword [esi + 0x28], eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100cf910
Capabilities:
Encode data using xor

Disassembly:
xor ecx, ecx
test edx, edx
jle 0x100cf936
push ebx
push edi
jmp 0x100cf920
movzx edi, byte [ecx + esi]
lea ebx, [eax*8]
xor edi, ebx
inc ecx
xor eax, edi
cmp ecx, edx
jl 0x100cf920
pop edi
pop ebx
ret