joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101006b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101f42d0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x1024e014]
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 ebx, ecx
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
cmp eax, 2
jne 0x10100766
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x1010073e
push ecx
mov ecx, esi
call fcn.10030790
mov dword [esi], vtable.Gdiplus::Image.0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x14]
push eax
movzx eax, word [ebp + 0xc]
push eax
push edi
mov dword [esi], vtable.Gdiplus::Bitmap.0
mov dword [ebp - 0x14], 0
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromResource]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 4], eax
mov byte [ebp - 4], 0
jmp 0x10100740
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebx], esi
mov ecx, ebx
call fcn.10100850
mov ecx, dword [ebx]
mov eax, dword [ecx + 8]
test eax, eax
mov dword [ecx + 8], 0
sete al
jmp 0x1010082d
push eax
movzx eax, word [ebp + 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x1010082b
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x1010082b
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x1010082b
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x10100824
push dword [ebp - 0x18]
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x10100824
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x1010081d
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x1010081d
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x1010081d
call fcn.10042df0
mov dword [ebx], eax
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x10100749
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor al, al
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.101d284b
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10100e70
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101f44c6
mov eax, dword fs:[0]
push eax
push ecx
push edi
mov eax, dword [0x1024e014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.RC::ICoolPopupMenu.0
mov dword [ebp - 4], 0
mov dword [edi], vtable.RC::RCCoolPopupMenu.1.0
mov dword [edi + 4], vtable.RC::RCCoolPopupMenu.0
mov dword [edi + 8], vtable.RC::RCCoolPopupMenu.2.0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0xffffffff
mov dword [edi + 0x50], 0xffffffff
mov dword [edi + 0x54], 0x16
mov dword [edi + 0x58], 0xffffffff
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x70], 0xffffffff
mov dword [edi + 0x74], 0xffffffff
mov dword [edi + 0x78], 0
mov word [edi + 0x7c], 0x100
mov byte [edi + 0x7e], 0
mov dword [edi + 0x80], 0xffffffff
mov dword [edi + 0x84], 0xffffffff
mov dword [edi + 0x88], 0xffffffff
mov dword [edi + 0x8c], 0x1000000
mov byte [edi + 0x90], 0
mov dword [edi + 0x94], 0xffffffff
mov dword [edi + 0x98], 0xffffffff
mov dword [edi + 0x9c], 0
mov dword [edi + 0xa0], 0
mov dword [edi + 0xa4], 0
mov dword [edi + 0xa8], 0
mov dword [edi + 0xac], 0
mov dword [edi + 0xb0], 0
mov dword [edi + 0xb4], 0
mov byte [edi + 0xb8], 0
mov dword [edi + 0xbc], 0
mov dword [edi + 0xc0], 0
mov dword [edi + 0xf4], 0
mov dword [edi + 0xf8], 0
mov dword [edi + 0xfc], 0
mov byte [ebp - 4], 1
cmp word [0x1025399c], 0
movsd xmm0, qword [0x1021dd08]
movsd qword [edi + 0x130], xmm0
jne 0x10101073
call fcn.10103400
mov word [0x1025399c], ax
lea eax, [edi + 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [edi + 0xc4]
push eax
call dword [sym.imp.USER32.dll_SetRectEmpty]
lea eax, [edi + 0x120]
mov dword [edi + 0xf0], 0
push eax
mov dword [edi + 0xec], 0
mov word [edi + 0x8c], 0
mov byte [edi + 0x8e], 0
mov dword [edi + 0x100], 0
mov dword [edi + 0x104], 0
mov dword [edi + 0x108], 0
mov dword [edi + 0x10c], 0
mov dword [edi + 0x110], 0
mov dword [edi + 0x114], 0
mov dword [edi + 0x118], 0
mov dword [edi + 0x11c], 0
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10108d50
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
sub esp, 0xa8
mov eax, dword [0x1024e014]
xor eax, esp
mov dword [esp + 0xa4], eax
push edi
mov edi, edx
mov byte [esp + 7], cl
push 0x10
push edi
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
je 0x10108d90
xor eax, eax
pop edi
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.101d284b
add esp, 0xa8
ret
mov cl, byte [esp + 7]
push ebx
push ebp
xor ebp, ebp
lea eax, [ecx - 0x70]
push esi
movzx esi, cl
lea ebx, [ebp + 8]
cmp al, 0xb
ja 0x10108dbe
lea eax, [esi - 0x6f]
push eax
push 0x10214f88
push ebx
push edi
call fcn.100306c0
add esp, 0x10
jmp 0x10108ebe
lea eax, [ecx - 0x41]
cmp al, 0x19
ja 0x10108ddb
push esi
push 0x10214f9c
push 8
push edi
call fcn.100306c0
add esp, 0x10
jmp 0x10108ebe
lea eax, [ecx - 0x60]
cmp al, 9
ja 0x10108dfb
lea eax, [esi - 0x60]
push eax
push str.Num_d
push 8
push edi
call fcn.100306c0
add esp, 0x10
jmp 0x10108ebe
sub cl, 0x30
cmp cl, 9
ja 0x10108e1c
lea eax, [esi - 0x30]
push eax
push 0x101fb7cc
push 8
push edi
call fcn.100306c0
add esp, 0x10
jmp 0x10108ebe
lea eax, [esi - 0x25]
cmp eax, 0x98
ja case.0x10108e2d.41
movzx eax, byte [eax + 0x10108f38]
jmp dword [eax*4 + 0x10108f10]
push 0x10214fac
jmp 0x10108eb5
push 0x10209fc0
jmp 0x10108eb5
push 0x1020a00c
jmp 0x10108eb5
push 0x1020b868
jmp 0x10108eb5
push 0x10214fa4
jmp 0x10108eb5
push 0x10214fb4
jmp 0x10108eb5
push 0x10214fb0
jmp 0x10108eb5
push 0x10214fbc
jmp 0x10108eb5
push 0x10214fb8
jmp 0x10108eb5
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
push 0xa0
mov esi, eax
lea eax, [esp + 0x18]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
shl esi, 0x10
lea eax, [esp + 0x14]
push 0x50
push eax
push esi
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
test eax, eax
jle 0x10108eed
lea eax, [esp + 0x14]
push eax
mov edx, ebx
mov ecx, edi
call fcn.10008270
test eax, eax
je 0x10108ec9
cmp eax, 0x8007007a
jne 0x10108eed
test edi, edi
je 0x10108eeb
mov eax, ebx
nop
cmp word [edi], bp
je 0x10108edd
add edi, 2
sub eax, 1
jne 0x10108ed0
sub ebx, eax
mov ebp, eax
neg ebp
sbb ebp, ebp
and ebp, ebx
test eax, eax
jne 0x10108eed
xor ebp, ebp
mov ecx, dword [esp + 0xb4]
xor eax, eax
cmp eax, ebp
pop esi
sbb eax, eax
and eax, ebp
pop ebp
pop ebx
pop edi
xor ecx, esp
call fcn.101d284b
add esp, 0xa8
ret
Function at 0x1010c4f0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x1010c54c
push ebx
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push ebp
mov ebp, dword [sym.imp.USER32.dll_IsWindowVisible]
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
nop
push dword [esi + 0x14]
call ebx
test eax, eax
je 0x1010c529
push dword [esi + 0x14]
call ebp
test eax, eax
je 0x1010c529
push 0
push dword [esi + 0x14]
call edi
push dword [esi + 0x10]
call ebx
test eax, eax
je 0x1010c542
push dword [esi + 0x10]
call ebp
test eax, eax
je 0x1010c542
push 0
push dword [esi + 0x10]
call edi
mov esi, dword [esi + 0x2c]
test esi, esi
jne 0x1010c510
pop edi
pop ebp
pop ebx
pop esi
ret 4
Function at 0x101145b0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101f5f00
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x1024e014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov dword [ebp - 4], eax
cmp byte [esi + 0x120], al
je 0x10114642
mov eax, dword [esi + 0xcc]
cmp eax, 5
je 0x10114622
cmp eax, 6
je 0x10114622
cmp eax, 7
jne 0x10114642
lea eax, [esi + 0x58]
lea ecx, [ebp - 0x44]
cmp ecx, eax
je 0x10114642
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x10114636
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x44]
call fcn.100045d0
lea eax, [edi + 0x70]
push eax
lea ecx, [ebp - 0x74]
call fcn.10007d30
mov byte [ebp - 4], 1
lea edx, [ebp - 0x74]
push dword [esi]
lea ecx, [ebp - 0x5c]
call fcn.10115f50
add esp, 4
mov byte [ebp - 4], 2
cmp dword [ebp - 0x4c], 0
je 0x1011470b
lea ecx, [ebp - 0x5c]
call fcn.100c5b60
test al, al
je 0x1011470b
lea ecx, [esi + 0x70]
mov bl, 1
call fcn.100c5a70
test al, al
je 0x1011469c
lea ecx, [esi + 0x70]
call fcn.100e6b80
neg al
sbb al, al
and bl, al
cmp dword [ebp - 0x34], 0
je 0x101146b0
lea ecx, [ebp - 0x44]
call fcn.100e6b80
neg al
sbb al, al
and bl, al
cmp dword [ebp - 0x48], 8
lea eax, [ebp - 0x5c]
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmovae eax, dword [ebp - 0x5c]
push eax
call esi
test eax, eax
jne 0x1011470d
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 3
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x5c]
call fcn.100e70a0
test al, al
je 0x101146fd
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call esi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.10004570
jmp 0x1011470d
mov bl, 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c]
call fcn.10004570
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x74]
call fcn.10004570
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.10004570
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 - 0x14]
xor ecx, ebp
call fcn.101d284b
mov esp, ebp
pop ebp
ret 4
Function at 0x10121470
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101f7db6
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x1024e014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 0x18
mov dword [edi], 0xbb8
mov dword [edi + 4], 0x3e80
mov dword [edi + 8], 0xafc8
mov dword [edi + 0xc], 0x3e8
mov word [edi + 0x10], 0
call fcn.101d286a
mov dword [edi + 0x14], eax
add esp, 4
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [edi + 0x14]
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov eax, dword [edi + 0x14]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [ebp - 4], 0
lea esi, [edi + 0x30]
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
push 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [ebp - 0x14], esi
push 0
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.10115c10
mov dword [esi], eax
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10121620
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ecx
push ebx
push edi
mov edi, ecx
mov ecx, dword [edi + 0x14]
mov word [edi + 0x10], 0
mov eax, dword [ecx]
or eax, dword [ecx + 4]
je 0x10121646
lea ecx, [edi + 0x14]
call fcn.10121b70
add dword [edi + 0x18], eax
mov ecx, dword [edi + 0x14]
adc dword [edi + 0x1c], edx
lea eax, [ecx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov word [edi + 0x10], 1
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov eax, dword [edi + 0x14]
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [edi + 0x14]
mov ecx, edi
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
call fcn.101216a0
pop edi
pop ebx
pop ecx
ret
Function at 0x10126580
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x1012658b
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.101265a0
Function at 0x10159a60
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
push esi
push edi
mov ebx, ecx
mov ebp, edx
push 0
push 0x14
mov dword [ebx], 0
call fcn.1012ac90
mov esi, eax
add esp, 8
test esi, esi
jne 0x10159a88
lea eax, [esi + 7]
pop edi
pop esi
pop ebp
pop ebx
ret
cmp byte [0x1024e0f4], 0
mov edi, dword [esp + 0x14]
je 0x10159ad1
mov eax, dword [0x1024e1e4]
test eax, eax
je 0x10159aac
push 0xc8
call eax
add esp, 4
test eax, eax
jne 0x10159ad1
lea eax, [esi + 4]
mov dword [esi + 8], ebp
push eax
push 0
push esi
push 0x1012db80
push 0
push 0
mov dword [esi + 0xc], edi
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x10159ade
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
cmp dword [esi + 8], 0
jne 0x10159af6
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi + 4], eax
call ebp
add esp, 4
mov dword [esi + 0x10], eax
pop edi
mov dword [ebx], esi
xor eax, eax
pop esi
pop ebp
pop ebx
ret
Function at 0x10166900
Capabilities:
Reference sql statements

Disassembly:
push ebx
push edi
push dword [esp + 0xc]
mov edi, edx
mov ebx, ecx
push edi
push str.sqlite_master
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.1016b580
add esp, 0x18
cmp dword [esp + 0xc], 0
jne 0x1016693a
push edi
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.1016b580
add esp, 0x10
pop edi
pop ebx
ret

Function at 0x1016b690
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebx, ecx
mov ebp, edx
mov ecx, dword [esp + 0x14]
push esi
push edi
mov dword [esp + 0x10], ebx
xor esi, esi
cmp dword [ebx + 0x14], esi
jle 0x1016b72b
nop
mov edi, esi
xor edi, 1
cmp esi, 2
cmovge edi, esi
test ecx, ecx
je 0x1016b6e3
mov edx, edi
mov eax, ecx
mov ecx, dword [ebx + 0x10]
add edx, edx
mov ebx, dword [ecx + edx*8]
sub ebx, dword [esp + 0x1c]
nop
movzx edx, byte [eax]
movzx ecx, byte [ebx + eax]
cmp edx, ecx
jne 0x1016b708
test edx, edx
jne 0x1016b71a
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx + 0x10]
add edi, edi
push 0
mov edx, ebp
mov ecx, dword [eax + edi*8 + 0xc]
add ecx, 8
call fcn.1012f950
add esp, 4
mov eax, dword [eax + 8]
test eax, eax
jne 0x1016b78a
jmp 0x1016b721
movzx ecx, byte [ecx + 0x10204c58]
movzx edx, byte [edx + 0x10204c58]
sub edx, ecx
jne 0x1016b71d
inc eax
jmp 0x1016b6d0
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
inc esi
cmp esi, dword [ebx + 0x14]
jl 0x1016b6b0
mov edx, str.sqlite_master
sub edx, ebp
movzx ecx, byte [ebp]
movzx eax, byte [edx + ebp]
cmp ecx, eax
jne 0x1016b756
test ecx, ecx
jne 0x1016b768
mov eax, dword [ebx + 0x10]
mov ecx, dword [esp + 0x1c]
mov eax, dword [eax + 0x10]
test ecx, ecx
jne 0x1016b76b
neg eax
sbb eax, eax
jmp 0x1016b77a
movzx eax, byte [eax + 0x10204c58]
movzx ecx, byte [ecx + 0x10204c58]
sub ecx, eax
jne 0x1016b788
inc ebp
jmp 0x1016b732
test eax, eax
je 0x1016b788
mov edx, eax
call fcn.1012e4b0
mov ecx, dword [esp + 0x1c]
test eax, eax
jne 0x1016b788
mov ebp, str.sqlite_temp_master
jmp 0x1016b6a3
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x1016bad0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x10
mov eax, ecx
mov dword [esp + 4], edx
push ebx
push edi
xor ebx, ebx
mov dword [esp + 0x10], eax
xor edi, edi
cmp dword [eax + 0x14], ebx
jle 0x1016bb6a
push ebp
mov ebp, dword [esp + 0x20]
push esi
mov eax, dword [eax + 0x10]
mov esi, edi
xor esi, 1
cmp edi, 2
cmovge esi, edi
shl esi, 4
add esi, eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x10], eax
test ebp, ebp
je 0x1016bb29
mov esi, dword [esi]
mov eax, ebp
sub esi, ebp
movzx edx, byte [eax]
movzx ecx, byte [esi + eax]
cmp edx, ecx
jne 0x1016bb55
test edx, edx
jne 0x1016bb67
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
lea ecx, [eax + 0x18]
push 0
call fcn.1012f950
add esp, 4
mov ebx, dword [eax + 8]
test ebx, ebx
jne 0x1016bb4b
mov eax, dword [esp + 0x18]
inc edi
cmp edi, dword [eax + 0x14]
jl 0x1016baf2
pop esi
pop ebp
pop edi
mov eax, ebx
pop ebx
add esp, 0x10
ret
movzx ecx, byte [ecx + 0x10204c58]
movzx edx, byte [edx + 0x10204c58]
sub edx, ecx
jne 0x1016bb41
inc eax
jmp 0x1016bb16
pop edi
mov eax, ebx
pop ebx
add esp, 0x10
ret
Function at 0x101c1ed0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x74
push ebx
push ebp
push esi
push edi
push 0x38
xorps xmm0, xmm0
lea eax, [esp + 0x4c]
mov ebp, edx
movlpd qword [esp + 0x2c], xmm0
mov ebx, ecx
mov dword [esp + 0x20], ebp
push 0
movups xmmword [esp + 0x40], xmm0
push eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x50], 0x13
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x48]
mov edx, ebp
mov ecx, ebx
push eax
push 1
push 0
push 0
push 0
push 0xfffffffffffffffe
push dword [esp + 0xa0]
call fcn.101b2470
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x101c20ae
push dword [esp + 0x3c]
lea eax, [esp + 0x3c]
mov ecx, ebx
push dword [esp + 0x3c]
lea edx, [esp + 0x50]
mov dword [esp + 0x5c], eax
call fcn.101bd9c0
mov esi, eax
add esp, 8
test esi, esi
jne 0x101c20ae
lea edx, [esp + 0x48]
mov ecx, ebx
call fcn.101bdae0
mov esi, eax
cmp esi, 0x64
jne 0x101c20ae
mov edi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ebp
mov edi, dword [esp + 0x78]
lea edx, [esp + 0x20]
mov ebp, dword [esp + 0x7c]
xorps xmm0, xmm0
mov ecx, edi
movlpd qword [esp + 0x20], xmm0
add ebp, edi
movlpd qword [esp + 0x30], xmm0
movlpd qword [esp + 0x28], xmm0
call fcn.101ae6b0
lea esi, [edi + eax]
cmp esi, ebp
jae 0x101c208e
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
xorps xmm0, xmm0
lea edx, [esp + 0x20]
mov ecx, esi
movlpd qword [esp + 0x20], xmm0
call fcn.101ae6b0
add esi, eax
cmp esi, ebp
jae 0x101c208a
mov ecx, dword [esp + 0x20]
mov eax, ecx
mov edx, dword [esp + 0x24]
or eax, edx
je 0x101c2036
cmp ecx, 1
jne 0x101c1ff6
test edx, edx
je 0x101c2036
mov eax, dword [esp + 0x28]
add ecx, 0xfffffffe
adc edx, 0xffffffff
add eax, ecx
mov ecx, dword [esp + 0x70]
adc dword [esp + 0x2c], edx
mov edx, dword [esp + 0x74]
push eax
push dword [esp + 0x34]
mov dword [esp + 0x30], eax
push edi
push ebx
push dword [esp + 0x98]
push dword [esp + 0x30]
call fcn.101c1e20
xor dword [esp + 0x2c], eax
add esp, 0x18
xor dword [esp + 0x10], edx
jmp 0x101c2082
xorps xmm0, xmm0
or ecx, edx
movlpd qword [esp + 0x30], xmm0
mov ecx, esi
movlpd qword [esp + 0x28], xmm0
je 0x101c2058
lea edx, [esp + 0x30]
call fcn.101ae6b0
add esi, eax
jmp 0x101c2082
lea edx, [esp + 0x20]
call fcn.101ae6b0
add esi, eax
mov eax, dword [esp + 0x18]
cmp byte [eax + 0xef], 0
je 0x101c207a
sub ebx, dword [esp + 0x20]
sbb edi, dword [esp + 0x24]
jmp 0x101c2082
add ebx, dword [esp + 0x20]
adc edi, dword [esp + 0x24]
cmp esi, ebp
jb 0x101c1fc1
mov ebx, dword [esp + 0x18]
lea edx, [esp + 0x48]
mov ecx, ebx
call fcn.101bdae0
mov esi, eax
cmp esi, 0x64
je 0x101c1f84
mov edi, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
jmp 0x101c20b6
mov edi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
lea ecx, [esp + 0x48]
call fcn.101be240
mov ecx, dword [esp + 0x8c]
mov edx, edi
pop edi
mov eax, ebp
mov dword [ecx], esi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret
Function at 0x101cc4f0
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov ebx, edx
mov dword [esp + 0x10], str.SELECT_parentnode_FROM__Q._q_parent_WHERE_nodeno_1
mov esi, ecx
mov dword [esp + 0x14], str.SELECT_nodeno_FROM__Q._q_rowid_WHERE_rowid_1
push edi
mov edi, dword [esi + ebx*4 + 0x18]
test edi, edi
jne 0x101cc52c
push dword [esi + 8]
push dword [esi + 4]
push dword [esp + ebx*4 + 0x1c]
push esi
call fcn.101cc410
mov edi, eax
add esp, 0x10
mov dword [esi + ebx*4 + 0x18], edi
cmp dword [esi + 0x28], 0
jne 0x101cc5ec
mov ebp, dword [esp + 0x24]
push ebp
push dword [esp + 0x24]
push 1
push edi
call fcn.10150f90
push edi
call fcn.1014fce0
add esp, 0x14
cmp eax, 0x65
jne 0x101cc583
mov ecx, str.__parent
test ebx, ebx
mov eax, str.__rowid
cmove eax, ecx
mov ecx, dword [esp + 0x20]
push eax
push dword [esp + 0x30]
push dword [esp + 0x30]
push ebp
push ecx
push str.Mapping___lld_____lld__missing_from__s_table
push esi
call fcn.101cc490
add esp, 0x1c
jmp 0x101cc5da
cmp eax, 0x64
jne 0x101cc5da
push 0
push edi
call fcn.10150600
mov ecx, dword [esp + 0x34]
add esp, 8
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x28]
jne 0x101cc5a5
cmp edx, ecx
je 0x101cc5da
push ecx
push dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
test ebx, ebx
push ebp
push ecx
mov eax, str.__rowid
mov dword [esp + 0x20], str.__parent
cmove eax, dword [esp + 0x20]
push eax
push edx
push dword [esp + 0x2c]
push ebp
push ecx
push str.Found___lld_____lld__in__s_table__expected___lld_____lld_
push esi
call fcn.101cc490
add esp, 0x2c
push edi
call fcn.1014ed30
add esp, 4
cmp dword [esi + 0x28], 0
jne 0x101cc5ec
mov dword [esi + 0x28], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret