joyce8/EMBER2024-capa huggingface dataset:
Function at 0x434308
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov dword [ebp - 8], 1
mov dword [ebp - 4], esi
cmp edi, 1
jne 0x43438e
mov eax, dword [0x44853c]
inc dword [0x44853c]
test eax, eax
jne 0x43438e
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x448508], eax
mov edx, dword [ebp + 0x10]
mov dword [0x437087], edx
mov ecx, dword [esi + 0x44]
push ecx
call fcn.0042f4c8
pop ecx
cmp dword [0x44667c], 0
je 0x434379
call fcn.0043418c
mov ebx, eax
test eax, eax
je 0x434379
mov edx, dword [ebx]
cmp dword [ebx + edx*4 + 4], 0xffffffff
je 0x434379
mov ecx, dword [ebx]
inc dword [ebx]
mov dword [ebx + ecx*4 + 4], esi
jmp 0x43438e
xor eax, eax
lea edx, [ebp - 8]
push 0
push edx
mov dword [0x44667c], eax
call fcn.00434194
add esp, 8
mov ecx, dword [ebp + 0x18]
push ecx
push edi
mov eax, dword [ebp + 0x10]
push eax
mov edx, dword [esi + 0x18]
push edx
call fcn.0043449c
mov ebx, eax
test edi, edi
jne 0x4343fd
test edi, edi
jne 0x4343ce
dec dword [0x44853c]
jne 0x4343ce
cmp dword [0x448508], 0
je 0x4343ce
mov eax, dword [0x448508]
push eax
call sub.KERNEL32.DLL_FreeEnvironmentStringsA
xor edx, edx
mov dword [0x448508], edx
cmp dword [0x44853c], 0
jne 0x4343fd
cmp dword [0x44667c], 0
jne 0x4343fd
cmp dword [0x44666c], 0
je 0x4343ef
call dword [0x44666c]
push 1
lea ecx, [ebp - 8]
push ecx
call fcn.00434194
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x1003518
Capabilities:
Query environment variable
Set environment variable
Write file on windows

Disassembly:
push ecx
push ebx
xor ebx, ebx
push ebx
push ebx
push 0x1002388
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x10035e3
push esi
mov esi, 0x100afa0
push esi
push 0x1002378
push 0x100ad60
call fcn.01002a1f
push ebx
push 0x4000002
push 1
push ebx
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edx, eax
cmp edx, 0xffffffff
mov dword [0x100a024], edx
je 0x10035e2
push ebp
push edi
mov ebp, 0x100a5a0
xor eax, eax
push ebx
mov ecx, 0xc5
mov edi, ebp
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push eax
mov edi, 0x314
push edi
push ebp
push edx
mov dword [0x100a5a0], 0x6e776453
mov dword [0x100a5a4], 0x10000
mov dword [0x100a5a8], 0xc0000013
mov byte [0x100a7b0], bl
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10035cd
cmp dword [esp + 0x10], edi
jne 0x10035cd
push esi
push 0x1002388
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
jmp 0x10035e0
push dword [0x100a024]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x100a024], 0xffffffff
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret

Function at 0x10035e6
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x280
push esi
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
jne 0x1003600
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp dword [0x101b0c0], 0
jne 0x1003661
lea eax, [ebp - 0x280]
push eax
push 0x200
push esi
call fcn.0159c000
lea eax, [ebp - 0x280]
push eax
call fcn.0100323e
push 0x80
lea eax, [ebp - 0x80]
push eax
push 0x20000003
push dword [0x100a05c]
mov byte [ebp - 0x80], 0
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x10010
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x280]
push eax
push dword [0x100aae4]
call dword [sym.imp.USER32.dll_MessageBoxA]
call fcn.01002baa
test esi, esi
jne 0x100366b
inc esi
cmp dword [0x100a060], 0
je 0x1003686
push 0x100ad40
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
and dword [0x100a060], 0
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x10006910
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100909d9
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x100aeb80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov edx, dword [ebp + 8]
test edx, edx
je 0x10006a55
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x10006a55
movzx eax, word [edi + 4]
cmp ax, 1
jl 0x10006a55
cmp ax, 5
jg 0x10006a55
cmp dword [edi], 0
je 0x10006a55
push dword [ebp + 0x14]
lea eax, [ebp + 8]
push dword [ebp + 0x10]
push ecx
push edx
push eax
mov ecx, edi
call fcn.10006160
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
cmp dword [eax - 0xc], 0
jne 0x100069b7
mov ecx, edi
call fcn.10006880
lea ecx, [ebp + 8]
mov esi, eax
call dword [sym.imp.mfc120u.dll_Ordinal_1043]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
push 0x100943f0
lea ecx, [ebp + 8]
call dword [sym.imp.mfc120u.dll_Ordinal_2949]
test eax, eax
je 0x10006a14
push dword [ebp + 8]
push dword [edi]
push str.SELECT_COUNT___FROM__s_WHERE__s
call sym.YJK_SQL.dll_sqlite3_mprintf
add esp, 0xc
mov dword [ebp + 0xc], 0
mov ecx, edi
mov esi, eax
push 0
call fcn.100067b0
lea ecx, [edi + 0x2c]
push ecx
push 0
lea eax, [ebp + 0xc]
mov ecx, section..data
push eax
push esi
call fcn.1000b160
push esi
mov dword [edi + 0x28], eax
call sym.YJK_SQL.dll_sqlite3_free
add esp, 4
cmp dword [edi + 0x28], 0
je 0x10006a34
lea ecx, [ebp + 8]
xor esi, esi
call dword [sym.imp.mfc120u.dll_Ordinal_1043]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [ebp + 0xc]
lea ecx, [ebp + 8]
call dword [sym.imp.mfc120u.dll_Ordinal_1043]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10006a70
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10090a09
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x100aeb80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov edx, dword [ebp + 8]
test edx, edx
je 0x10006bbf
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x10006bbf
movzx eax, word [edi + 4]
cmp ax, 1
jl 0x10006bbf
cmp ax, 5
jg 0x10006bbf
cmp dword [edi], 0
je 0x10006bbf
push dword [ebp + 0x18]
movsd xmm0, qword [ebp + 0x10]
lea eax, [ebp + 8]
sub esp, 8
movsd qword [esp], xmm0
push ecx
push edx
push eax
mov ecx, edi
call fcn.10006300
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
cmp dword [eax - 0xc], 0
jne 0x10006b21
mov ecx, edi
call fcn.10006880
lea ecx, [ebp + 8]
mov esi, eax
call dword [sym.imp.mfc120u.dll_Ordinal_1043]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
push 0x100943f0
lea ecx, [ebp + 8]
call dword [sym.imp.mfc120u.dll_Ordinal_2949]
test eax, eax
je 0x10006b7e
push dword [ebp + 8]
push dword [edi]
push str.SELECT_COUNT___FROM__s_WHERE__s
call sym.YJK_SQL.dll_sqlite3_mprintf
add esp, 0xc
mov dword [ebp + 0xc], 0
mov ecx, edi
mov esi, eax
push 0
call fcn.100067b0
lea ecx, [edi + 0x2c]
push ecx
push 0
lea eax, [ebp + 0xc]
mov ecx, section..data
push eax
push esi
call fcn.1000b160
push esi
mov dword [edi + 0x28], eax
call sym.YJK_SQL.dll_sqlite3_free
add esp, 4
cmp dword [edi + 0x28], 0
je 0x10006b9e
lea ecx, [ebp + 8]
xor esi, esi
call dword [sym.imp.mfc120u.dll_Ordinal_1043]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov esi, dword [ebp + 0xc]
lea ecx, [ebp + 8]
call dword [sym.imp.mfc120u.dll_Ordinal_1043]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
Function at 0x10006be0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
movzx eax, word [esi + 4]
cmp ax, 1
jl 0x10006caa
cmp ax, 5
jg 0x10006caa
cmp dword [esi], 0
je 0x10006caa
cmp byte [ebp + 0xc], 0
push edi
mov edi, dword [ebp + 8]
je 0x10006c1d
push dword [esi + 8]
push edi
call sym.YJK_SQL.dll_public:_static_unsigned_int___cdecl_ySqlRTree::purgeIds_class_std::vector_int__class_std::allocator_int_____int_
add esp, 8
mov eax, dword [edi]
cmp eax, dword [edi + 4]
jne 0x10006c2c
pop edi
xor eax, eax
pop esi
pop ebp
ret 8
push ebx
lea eax, [ebp + 8]
push edi
push eax
call fcn.10004ba0
push dword [eax]
push dword [esi]
push str.SELECT_COUNT___FROM__s_WHERE__s
call sym.YJK_SQL.dll_sqlite3_mprintf
add esp, 0x14
lea ecx, [ebp + 8]
mov ebx, eax
call dword [sym.imp.mfc120u.dll_Ordinal_1043]
mov ecx, dword [esi + 0x2c]
lea edi, [esi + 0x2c]
mov dword [ebp + 0xc], 0
test ecx, ecx
je 0x10006c73
push ecx
call sym.YJK_SQL.dll_sqlite3_free
add esp, 4
mov dword [edi], 0
push edi
push 0
lea eax, [ebp + 0xc]
mov dword [esi + 0x28], 0
push eax
push ebx
mov ecx, section..data
call fcn.1000b160
push ebx
mov dword [esi + 0x28], eax
call sym.YJK_SQL.dll_sqlite3_free
mov eax, dword [ebp + 0xc]
add esp, 4
xor ecx, ecx
cmp dword [esi + 0x28], ecx
pop ebx
pop edi
cmovne eax, ecx
pop esi
pop ebp
ret 8
xor eax, eax
pop esi
pop ebp
ret 8
Function at 0x1000c500
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
cmp eax, 0xffffffe6
je 0x1000c67f
cmp eax, 0xfffffffa
je 0x1000c67f
mov eax, dword [esi]
push ebx
lea ebx, [esi + 4]
push edi
mov edx, dword [eax]
mov eax, dword [ebx]
mov edi, dword [ebp + 8]
mov dword [ebp - 4], edx
test eax, eax
je 0x1000c5a1
push eax
call sym.YJK_SQL.dll_sqlite3_reset
add esp, 4
mov dword [esi + 0x10], eax
mov ecx, section..data
push edi
push dword [ebx]
call fcn.1000bbe0
mov dword [esi + 0x10], eax
cmp eax, 0x64
je 0x1000c62d
cmp eax, 0x65
jne 0x1000c57e
test edi, edi
je 0x1000c565
mov dword [edi], 0
pop edi
pop ebx
mov dword [esi + 0x14], 0xffffffff
xor eax, eax
mov dword [esi + 0x18], 0
pop esi
mov esp, ebp
pop ebp
ret 4
test edi, edi
je 0x1000c597
mov eax, dword [edi]
test eax, eax
je 0x1000c597
push eax
call sym.YJK_SQL.dll_sqlite3_free
add esp, 4
mov dword [edi], 0
mov ecx, esi
call fcn.1000c0d0
mov edx, dword [ebp - 4]
cmp byte [esi + 0xc], 0
mov ecx, str._ID
mov eax, 0x1009475c
cmove eax, ecx
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1000c5cb
push ecx
push edx
push eax
push str.SELECT__s_FROM__s_WHERE__s
call sym.YJK_SQL.dll_sqlite3_mprintf
add esp, 0x10
jmp 0x1000c5da
push edx
push eax
push str.SELECT__s_FROM__s
call sym.YJK_SQL.dll_sqlite3_mprintf
add esp, 0xc
push edi
push ebx
push eax
mov ecx, section..data
mov dword [ebp + 8], eax
call fcn.1000aa40
push dword [ebp + 8]
mov dword [esi + 0x10], eax
call sym.YJK_SQL.dll_sqlite3_free
mov eax, dword [esi + 0x10]
add esp, 4
test eax, eax
jne 0x1000c662
test edi, edi
je 0x1000c618
mov eax, dword [edi]
test eax, eax
je 0x1000c618
push eax
call sym.YJK_SQL.dll_sqlite3_free
add esp, 4
mov dword [edi], 0
push edi
push dword [ebx]
mov ecx, section..data
call fcn.1000bbe0
mov dword [esi + 0x10], eax
cmp eax, 0x64
jne 0x1000c646
pop edi
pop ebx
mov dword [esi + 0x14], 0
xor eax, eax
mov dword [esi + 0x18], SysStringLen
pop esi
mov esp, ebp
pop ebp
ret 4
cmp eax, 0x65
je 0x1000c565
mov ecx, esi
call fcn.1000c0d0
mov eax, dword [esi + 0x10]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4
pop edi
mov dword [ebx], 0
pop ebx
mov dword [esi + 0x14], 0xffffffff
mov dword [esi + 0x18], SysStringLen
pop esi
mov esp, ebp
pop ebp
ret 4
push dword [ebp + 8]
call fcn.1000c110
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x1000c690
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0xffffffe6
jne 0x1000c6a9
push dword [ebp + 0xc]
call fcn.1000c110
pop esi
pop ebp
ret 8
mov ecx, dword [esi + 0x18]
cmp ecx, 0x80000000
je 0x1000c6d4
xor eax, eax
test ecx, ecx
cmovs ecx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1000c6cd
mov dword [eax], 0
xor eax, eax
pop esi
pop ebp
ret 8
mov eax, dword [esi]
mov ecx, dword [esi + 8]
mov eax, dword [eax]
test ecx, ecx
je 0x1000c6f0
push ecx
push eax
push str.SELECT_COUNT___FROM__s_WHERE__s
call sym.YJK_SQL.dll_sqlite3_mprintf
add esp, 0xc
jmp 0x1000c6fe
push eax
push str.SELECT_COUNT___FROM__s
call sym.YJK_SQL.dll_sqlite3_mprintf
add esp, 8
push edi
push dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ecx, section..data
push 0
push edi
push eax
call fcn.1000b160
test eax, eax
jne 0x1000c71e
mov eax, dword [edi]
mov dword [esi + 0x18], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret 8

Function at 0x1000d130
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x1000d16b
push esi
cdq
push edi
mov edi, eax
mov esi, edx
mov ecx, edi
mov eax, esi
add ecx, dword [ebp + 0xc]
push esi
adc eax, dword [ebp + 0x10]
sub ecx, 1
push edi
sbb eax, 0
push eax
push ecx
call fcn.1008eaf0
push esi
push edi
push edx
push eax
call fcn.1008ec80
pop edi
pop esi
jmp 0x1000d171
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push edx
push eax
push ebx
call fcn.1003ada0
add esp, 0xc
test eax, eax
je 0x1000d19d
push 0x5002
push dword [ebx + 0x1c]
push str.winTruncate1
push 0x60a
call fcn.100725c0
add esp, 0x10
pop ebx
pop ebp
ret
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1000d1d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x5005
push dword [ebx + 0x1c]
mov dword [ebx + 0x10], eax
push str.winTruncate2
push 0x60a
call fcn.100725c0
add esp, 0x10
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x1000d660
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push edi
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1000d6aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1000d6aa
push 0x5057
push dword [esi + 0x1c]
mov dword [esi + 0x10], eax
push str.winFileSize
push 0x70a
call fcn.100725c0
add esp, 0x10
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, edi
pop edi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000ebc0
Capabilities:
Check if file exists
Check os version
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x100aeb80]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
xor eax, eax
push esi
push edi
push ecx
mov dword [ebp - 0x120], ecx
xor esi, esi
mov dword [ebp - 0x11c], eax
call fcn.10025530
mov edi, eax
add esp, 4
test edi, edi
jne 0x1000ec0a
pop edi
lea eax, [esi + 7]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008e662
mov esp, ebp
pop ebp
ret
mov eax, dword [0x100aef28]
test eax, eax
jne 0x1000ec3c
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor eax, eax
cmp dword [ebp - 0x108], 2
sete al
inc eax
mov dword [0x100aef28], eax
push ebx
cmp eax, 2
jne 0x1000ec78
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1000ec68
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x11c], eax
cmp eax, 5
jne 0x1000ecae
inc esi
cmp esi, 5
jge 0x1000ecae
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1000ec42
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1000ec9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x11c], eax
cmp eax, 5
jne 0x1000ecae
inc esi
cmp esi, 5
jge 0x1000ecae
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1000ec78
push edi
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
cmp ebx, 0xffffffff
pop ebx
jne 0x1000ecd9
cmp dword [ebp - 0x11c], 2
jne 0x1000ecd9
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008e662
mov esp, ebp
pop ebp
ret
push 0x55ae
push dword [ebp - 0x120]
push str.winDelete
push 0xa0a
call fcn.100725c0
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
pop edi
pop esi
call fcn.1008e662
mov esp, ebp
pop ebp
ret

Function at 0x1002cd60
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
je 0x1002cdc2
push dword [esi + 0x20]
mov dword [ebp + 0x10], 0
push str.PRAGMA__Q.page_size
call sym.YJK_SQL.dll_sqlite3_mprintf
mov edi, eax
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
call fcn.1002cab0
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x1002cde6
imul ecx, dword [esi + 0x18], 0x33
mov edx, dword [ebp + 0x10]
add edx, 0xffffffc0
mov dword [esi + 0x10], edx
add ecx, 4
cmp ecx, edx
jge 0x1002cde6
push edi
mov dword [esi + 0x10], ecx
call sym.YJK_SQL.dll_sqlite3_free
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret
push dword [esi + 0x24]
push dword [esi + 0x20]
push str.SELECT_length_data__FROM__q._q_node_WHERE_nodeno__1
call sym.YJK_SQL.dll_sqlite3_mprintf
mov edi, eax
lea eax, [esi + 0x10]
push eax
push edi
push dword [ebp + 8]
call fcn.1002cab0
add esp, 0x18
mov ebx, eax
push edi
call sym.YJK_SQL.dll_sqlite3_free
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1002d4a0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x100aeb80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x10c]
mov ecx, dword [ebp + 8]
push edx
push 0x104
push eax
push ecx
mov dword [ebp - 0x228], 0x200
call fcn.10015310
add esp, 0x10
test eax, eax
jne 0x1002d5e7
lea eax, [ebp - 0x10c]
push esi
push eax
call fcn.10025530
mov esi, eax
add esp, 4
test esi, esi
je 0x1002d5d3
mov ecx, dword [0x100aef28]
test ecx, ecx
jne 0x1002d52f
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor ecx, ecx
cmp dword [ebp - 0x210], 2
sete cl
inc ecx
mov dword [0x100aef28], ecx
mov eax, esi
push edi
cmp ecx, 2
jne 0x1002d575
cmp word [esi], 0
je 0x1002d556
lea ecx, [ecx]
cmp word [eax], 0x5c
je 0x1002d551
add eax, 2
cmp word [eax], 0
jne 0x1002d540
jmp 0x1002d556
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x224]
push eax
push eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x224]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
jmp 0x1002d5ad
cmp byte [esi], 0
je 0x1002d590
lea ebx, [ebx]
cmp byte [eax], 0x5c
je 0x1002d58d
inc eax
cmp byte [eax], 0
jne 0x1002d580
jmp 0x1002d590
mov byte [eax], 0
lea eax, [ebp - 0x224]
push eax
push eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x224]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
push esi
mov edi, eax
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
test edi, edi
pop edi
je 0x1002d5d3
mov eax, dword [ebp - 0x228]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008e662
mov esp, ebp
pop ebp
ret
mov eax, 0x200
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008e662
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x228]
xor ecx, ebp
call fcn.1008e662
mov esp, ebp
pop ebp
ret
Function at 0x100355f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edx, dword [edi + 0x3c]
cmp dword [edx], ebx
jne 0x1003562e
mov eax, dword [edi + 0x78]
mov ecx, dword [edi]
or eax, 0x1e
push ebx
and eax, 0x87f3f
push eax
mov eax, dword [ecx + 0x18]
push edx
push ebx
push ecx
call eax
mov ebx, eax
add esp, 0x14
mov dword [ebp - 4], ebx
test ebx, ebx
jne 0x1003570a
mov ecx, dword [edi + 0x18]
cmp ecx, dword [edi + 0x24]
jbe 0x10035667
mov eax, dword [edi + 0x80]
push 0
cdq
push ecx
push edx
push eax
call fcn.1008ec80
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0x3c]
mov dword [ebp - 8], edx
lea edx, [ebp - 0xc]
push edx
push 5
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x28]
call eax
mov eax, dword [edi + 0x18]
add esp, 0xc
mov dword [edi + 0x24], eax
push esi
mov esi, dword [ebp + 0xc]
jmp 0x10035670
test esi, esi
je 0x10035707
mov ebx, dword [esi + 0xc]
cmp ebx, dword [edi + 0x18]
ja 0x100356f9
test byte [esi + 0x14], 0x20
jne 0x100356f9
mov eax, dword [edi + 0x80]
lea ecx, [ebx - 1]
cdq
push edx
push eax
push 0
push ecx
call fcn.1008ec80
mov dword [ebp - 4], eax
mov dword [ebp + 8], edx
cmp ebx, 1
jne 0x100356ae
push esi
call fcn.10035570
add esp, 4
push dword [ebp + 8]
mov eax, dword [edi + 0x3c]
push dword [ebp - 4]
mov edx, dword [esi]
push dword [edi + 0x80]
mov ecx, dword [eax]
push edx
push eax
mov dword [ebp - 8], edx
mov eax, dword [ecx + 0xc]
call eax
add esp, 0x14
mov dword [ebp - 4], eax
cmp ebx, 1
jne 0x100356e3
mov eax, dword [ebp - 8]
movdqu xmm0, xmmword [eax + 0x18]
movdqu xmmword [edi + 0x64], xmm0
cmp ebx, dword [edi + 0x20]
jbe 0x100356eb
mov dword [edi + 0x20], ebx
push dword [esi]
push ebx
push dword [edi + 0x58]
call fcn.1003f1d0
add esp, 0xc
mov ebx, dword [ebp - 4]
mov esi, dword [esi + 8]
test ebx, ebx
je 0x10035670
mov eax, ebx
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10037e60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
mov ecx, 0x80
push esi
mov esi, dword [ebp + 0xc]
lea eax, [esi*8]
cmp eax, 0x400
cmova esi, ecx
cmp esi, dword [ebx]
jne 0x10037e8c
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x100aee64]
test eax, eax
je 0x10037e97
call eax
lea eax, [esi*8]
push eax
call fcn.100504d0
mov ecx, dword [0x100aee68]
add esp, 4
mov esi, eax
mov dword [ebp - 4], esi
test ecx, ecx
je 0x10037eb8
call ecx
test esi, esi
je 0x10037e84
push dword [ebx + 0xc]
call sym.YJK_SQL.dll_sqlite3_free
push esi
mov dword [ebx + 0xc], esi
call dword [0x100ae0b8]
shr eax, 3
mov dword [ebp + 0xc], eax
mov dword [ebx], eax
lea ecx, [eax*8]
push ecx
push 0
push esi
call sub.MSVCR120.dll_memset
mov ecx, dword [ebx + 8]
add esp, 0x14
mov dword [ebx + 8], 0
test ecx, ecx
je 0x10037f9f
push edi
lea esp, [esp]
mov esi, dword [ecx + 0x10]
xor edi, edi
mov ebx, dword [ecx + 0xc]
test esi, esi
jle 0x10037f2d
lea esp, [esp]
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
dec esi
movzx edx, byte [eax + 0x100949e0]
lea eax, [edi*8]
xor edx, eax
xor edi, edx
test esi, esi
jg 0x10037f10
xor edx, edx
mov ebx, dword [ecx]
mov eax, edi
div dword [ebp + 0xc]
mov eax, dword [ebp - 4]
lea esi, [eax + edx*8]
test esi, esi
je 0x10037f78
mov eax, dword [esi]
test eax, eax
je 0x10037f4b
mov edx, dword [esi + 4]
jmp 0x10037f4d
xor edx, edx
inc eax
mov dword [esi + 4], ecx
mov dword [esi], eax
test edx, edx
je 0x10037f78
mov dword [ecx], edx
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov eax, dword [edx + 4]
test eax, eax
je 0x10037f6d
mov dword [eax], ecx
mov dword [edx + 4], ecx
jmp 0x10037f94
mov eax, dword [ebp + 8]
mov dword [eax + 8], ecx
mov dword [edx + 4], ecx
jmp 0x10037f94
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov dword [ecx], eax
mov eax, dword [edx + 8]
test eax, eax
je 0x10037f8a
mov dword [eax + 4], ecx
mov dword [ecx + 4], 0
mov dword [edx + 8], ecx
mov ecx, ebx
test ebx, ebx
jne 0x10037f00
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret