joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b630
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46d7ed
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
mov dword [ebp - 0x10], ebx
cmp edx, esi
je 0x41b7dd
mov ecx, dword [ebx + 4]
lea eax, [ebx + 4]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [edx + 4]
push edi
mov edi, edx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 4], 0
mov eax, dword [edx + 4]
mov dword [ebp - 0x24], eax
movzx eax, byte [edx + 8]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edx + 9]
xor ecx, eax
movzx eax, byte [edx + 0xa]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 0xb]
imul ecx, ecx, 0x1000193
xor ecx, eax
mov eax, dword [ebx + 0x18]
imul ecx, ecx, 0x1000193
and eax, ecx
mov ecx, dword [ebp - 0x18]
lea eax, [ecx + eax*8]
mov ecx, dword [eax]
mov dword [ebp + 0xc], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x20], eax
nop word [eax + eax]
cmp edi, eax
mov eax, edi
mov edi, dword [edi]
push 0x10
push eax
sete bl
mov dword [ebp - 0x2c], edi
call fcn.0043327b
mov edx, dword [ebp - 0x10]
add esp, 8
dec dword [edx + 8]
test bl, bl
jne 0x41b71e
mov eax, dword [ebp - 0x20]
cmp edi, esi
jne 0x41b6e0
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 8]
jne 0x41b7cd
mov ecx, dword [ebp + 0xc]
mov dword [ecx], edi
jmp 0x41b7cd
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
cmp eax, dword [ebp + 8]
jne 0x41b730
mov eax, dword [ebp - 0x1c]
mov dword [ecx], eax
jmp 0x41b733
mov eax, dword [ebp - 0x24]
mov dword [ecx + 4], eax
cmp edi, esi
je 0x41b7cd
nop
movzx eax, byte [edi + 8]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edi + 9]
xor ecx, eax
movzx eax, byte [edi + 0xa]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edi + 0xb]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [edx + 0x18]
and ecx, eax
mov eax, dword [ebp - 0x18]
lea eax, [eax + ecx*8]
mov dword [ebp + 8], eax
mov eax, dword [eax + 4]
mov dword [ebp + 0xc], eax
cmp edi, eax
mov eax, edi
mov edi, dword [edi]
push 0x10
push eax
sete bl
mov dword [ebp - 0x2c], edi
call fcn.0043327b
mov eax, dword [ebp - 0x10]
add esp, 8
dec dword [eax + 8]
test bl, bl
jne 0x41b7b1
cmp edi, esi
je 0x41b7c8
mov eax, dword [ebp + 0xc]
jmp 0x41b787
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
mov dword [eax], edx
mov dword [eax + 4], edx
cmp edi, esi
je 0x41b7cd
mov edx, dword [ebp - 0x10]
jmp 0x41b740
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
mov dword [eax], edi
mov dword [edi + 4], eax
pop edi
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x422450
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_ntohl]
push esi
mov esi, ecx
mov dword [ebp - 4], edx
push edi
push dword [esi]
call ebx
push dword [esi + 4]
mov dword [ebp - 8], eax
call ebx
mov edi, dword [ebp - 4]
mov ebx, eax
xor esi, esi
push dword [edi + esi*4]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp + esi*4 - 0x18], eax
inc esi
cmp esi, 4
jl 0x422477
mov edi, dword [ebp - 8]
xor edx, edx
lea esi, [edx + 0x10]
mov ecx, ebx
lea edx, [edx - 0x61c88647]
shr ecx, 5
mov eax, ebx
add ecx, dword [ebp - 0x14]
shl eax, 4
add eax, dword [ebp - 0x18]
xor ecx, eax
lea eax, [edx + ebx]
xor ecx, eax
add edi, ecx
mov ecx, edi
mov eax, edi
shr ecx, 5
add ecx, dword [ebp - 0xc]
shl eax, 4
add eax, dword [ebp - 0x10]
xor ecx, eax
lea eax, [edx + edi]
xor ecx, eax
add ebx, ecx
sub esi, 1
jne 0x422492
push edi
mov edi, dword [sym.imp.WS2_32.dll_htonl]
call edi
mov esi, dword [ebp + 8]
push ebx
mov dword [esi], eax
call edi
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4224f0
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_ntohl]
push esi
mov esi, ecx
mov dword [ebp - 4], edx
push edi
push dword [esi]
call ebx
push dword [esi + 4]
mov edi, eax
call ebx
mov ebx, dword [ebp - 4]
xor esi, esi
mov dword [ebp - 8], eax
push dword [ebx + esi*4]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp + esi*4 - 0x18], eax
inc esi
cmp esi, 4
jl 0x422517
mov ebx, dword [ebp - 8]
mov edx, 0xe3779b90
mov esi, 0x10
mov ecx, edi
mov eax, edi
shr ecx, 5
add ecx, dword [ebp - 0xc]
shl eax, 4
add eax, dword [ebp - 0x10]
xor ecx, eax
lea eax, [edx + edi]
xor ecx, eax
sub ebx, ecx
mov ecx, ebx
mov eax, ebx
shr ecx, 5
add ecx, dword [ebp - 0x14]
shl eax, 4
add eax, dword [ebp - 0x18]
xor ecx, eax
lea eax, [edx + ebx]
xor ecx, eax
lea edx, [edx + 0x61c88647]
sub edi, ecx
sub esi, 1
jne 0x422537
push edi
mov edi, dword [sym.imp.WS2_32.dll_htonl]
call edi
mov esi, dword [ebp + 8]
push ebx
mov dword [esi], eax
call edi
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x423e10
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, ecx
mov dword [ebp - 0x10], edx
push esi
push edi
push 0
mov eax, dword [ebx]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x20], eax
call dword [sym.imp.WS2_32.dll_htons]
mov esi, dword [ebx]
xor edi, edi
mov word [esi], ax
xor esi, esi
add dword [ebx], 2
lea eax, [ebp - 8]
push esi
push eax
push 0xffffffffffffffff
push str.SELECT_ItemID_ItemNum_AvailPeriod_Status_ObtainTime_OtherAttribute__FROM_Item_WHERE_Uin____
push dword [0x4918d8]
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], esi
call dword [sym.imp.sqlite3.dll_sqlite3_prepare_v2]
add esp, 0x14
test eax, eax
jne 0x423f81
mov eax, dword [ebp - 0x10]
push dword [eax + 0x18]
push 1
push dword [ebp - 8]
call dword [sym.imp.sqlite3.dll_sqlite3_bind_int]
push dword [ebp - 8]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 0x10
cmp eax, 0x64
jne 0x423f81
mov ebx, dword [sym.imp.sqlite3.dll_sqlite3_column_int]
push 0
push dword [ebp - 8]
call ebx
push 3
push dword [ebp - 8]
mov esi, eax
call ebx
add esp, 0x10
mov byte [ebp - 1], al
test al, al
je 0x423f69
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], esi
inc edi
push eax
mov dword [ebp - 0x1c], edi
call fcn.0041d440
mov eax, dword [eax]
test eax, eax
je 0x423ed6
cmp dword [eax + 4], 1
jne 0x423ed6
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], esi
mov dword [eax + 0x30], esi
mov edi, dword [ebp - 0xc]
push 0
mov edi, dword [edi]
call dword [sym.imp.WS2_32.dll_htons]
push esi
mov esi, dword [sym.imp.WS2_32.dll_htonl]
mov word [edi], ax
call esi
mov dword [edi + 2], eax
push 1
push dword [ebp - 8]
call ebx
add esp, 8
push eax
call esi
mov dword [edi + 6], eax
push 2
push dword [ebp - 8]
call ebx
add esp, 8
push eax
call esi
mov dword [edi + 0xa], eax
mov al, byte [ebp - 1]
mov byte [edi + 0xe], al
push 4
push dword [ebp - 8]
call ebx
add esp, 8
push eax
call esi
mov dword [edi + 0xf], eax
push 5
push dword [ebp - 8]
call ebx
add esp, 8
push eax
call esi
push 0
mov dword [edi + 0x13], eax
lea esi, [edi + 0x17]
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi], ax
mov eax, dword [ebp - 0xc]
sub si, word [eax]
add si, 2
movzx edi, si
mov esi, dword [eax]
push edi
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp - 0xc]
mov word [esi], ax
mov eax, edi
mov edi, dword [ebp - 0x1c]
add dword [ecx], eax
push dword [ebp - 8]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 4
cmp eax, 0x64
je 0x423e93
mov esi, dword [ebp - 0x14]
push dword [ebp - 8]
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
add esp, 4
mov dword [ebp - 8], 0
push edi
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp - 0x20]
pop edi
mov word [ecx], ax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x423fb0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, ecx
mov dword [ebp - 0x14], edx
push esi
push edi
push 0
mov eax, dword [ebx]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x18], eax
call dword [sym.imp.WS2_32.dll_htons]
mov esi, dword [ebx]
xor edi, edi
mov dword [ebp - 0x10], edi
mov word [esi], ax
xor esi, esi
add dword [ebx], 2
lea eax, [ebp - 8]
push esi
push eax
push 0xffffffffffffffff
push str.SELECT_ItemID_ItemNum_AvailPeriod_Status_ObtainTime_OtherAttribute__FROM_Item_WHERE_Uin____
push dword [0x4918d8]
mov dword [ebp - 8], 0
call dword [sym.imp.sqlite3.dll_sqlite3_prepare_v2]
add esp, 0x14
test eax, eax
jne 0x42412c
push dword [ebp - 0x14]
push 1
push dword [ebp - 8]
call dword [sym.imp.sqlite3.dll_sqlite3_bind_int]
push dword [ebp - 8]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 0x10
cmp eax, 0x64
jne 0x42412c
mov edi, dword [sym.imp.sqlite3.dll_sqlite3_column_int]
push 0
push dword [ebp - 8]
call edi
push 3
push dword [ebp - 8]
mov ebx, eax
call edi
add esp, 0x10
mov byte [ebp - 1], al
test al, al
je 0x424114
inc dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], ebx
call fcn.0041d440
mov eax, dword [eax]
test eax, eax
je 0x42406a
cmp dword [eax + 4], 1
cmove esi, ebx
mov edi, dword [ebp - 0xc]
push 0
mov edi, dword [edi]
call dword [sym.imp.WS2_32.dll_htons]
push ebx
mov word [edi], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov ebx, dword [sym.imp.sqlite3.dll_sqlite3_column_int]
mov dword [edi + 2], eax
push 1
push dword [ebp - 8]
call ebx
add esp, 8
push eax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [edi + 6], eax
push 2
push dword [ebp - 8]
call ebx
add esp, 8
push eax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [edi + 0xa], eax
mov al, byte [ebp - 1]
mov byte [edi + 0xe], al
push 4
push dword [ebp - 8]
call ebx
add esp, 8
push eax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [edi + 0xf], eax
push 5
push dword [ebp - 8]
call ebx
add esp, 8
push eax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [edi + 0x13], eax
add edi, 0x17
push 0
call dword [sym.imp.WS2_32.dll_htons]
mov word [edi], ax
mov eax, dword [ebp - 0xc]
sub di, word [eax]
add di, 2
movzx ebx, di
mov edi, dword [eax]
push ebx
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp - 0xc]
mov word [edi], ax
mov eax, ebx
mov edi, dword [sym.imp.sqlite3.dll_sqlite3_column_int]
add dword [ecx], eax
push dword [ebp - 8]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 4
cmp eax, 0x64
je 0x424030
mov edi, dword [ebp - 0x10]
push dword [ebp - 8]
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
add esp, 4
mov dword [ebp - 8], 0
push edi
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp - 0x18]
pop edi
mov word [ecx], ax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x425270
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x15fc
call fcn.004340e0
push ebx
push esi
push edi
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0xffffffffffffffff
push str.SELECT_ItemID_ItemNum_AvailPeriod_Status_ObtainTime_OtherAttribute__FROM_Item_WHERE_Uin_____
push dword [0x4918d8]
mov ebx, ecx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.sqlite3.dll_sqlite3_prepare_v2]
add esp, 0x14
test eax, eax
jne 0x42541b
push dword [ebx + 0x18]
push 1
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_bind_int]
mov eax, dword [ebp - 4]
add esp, 0xc
test eax, eax
je 0x425441
mov edi, dword [sym.imp.sqlite3.dll_sqlite3_column_int]
xor esi, esi
push eax
mov byte [ebp - 5], 0
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 4
cmp eax, 0x64
jne 0x425397
lea ebx, [ebp - 0x15f4]
push 0
push dword [ebp - 4]
call edi
push 1
push dword [ebp - 4]
mov dword [ebp - 0x10], eax
mov dword [ebx - 4], eax
call edi
push 2
push dword [ebp - 4]
mov dword [ebx], eax
call edi
push 3
push dword [ebp - 4]
mov dword [ebx + 4], eax
call edi
mov edi, eax
test edi, edi
push 4
push dword [ebp - 4]
setne cl
mov byte [ebx + 8], cl
call dword [sym.imp.sqlite3.dll_sqlite3_column_int]
push 5
push dword [ebp - 4]
mov dword [ebx + 0xc], eax
call dword [sym.imp.sqlite3.dll_sqlite3_column_int]
add esp, 0x30
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], 0
test edi, edi
je 0x42536d
mov edi, dword [ebp - 0x10]
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], edi
call fcn.0041d440
mov eax, dword [eax]
test eax, eax
je 0x42536d
cmp dword [eax + 4], 1
jne 0x42536d
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x30], edi
inc esi
add ebx, 0x1c
cmp esi, 0xc8
jae 0x4253ec
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
mov edi, dword [sym.imp.sqlite3.dll_sqlite3_column_int]
add esp, 4
cmp eax, 0x64
je 0x4252f1
mov ebx, dword [ebp - 0xc]
lea eax, [ebp - 0x15f8]
mov edx, esi
push eax
mov ecx, ebx
call fcn.00428570
add esp, 4
test esi, esi
je 0x425408
lea edi, [ebp - 0x15f8]
cmp byte [edi + 0xc], 0
je 0x4253d6
mov eax, dword [edi]
mov edx, 1
mov dword [ebp - 0x18], eax
mov ecx, ebx
lea eax, [ebp - 0x18]
mov byte [ebp - 0x14], 1
push eax
call fcn.00427640
add esp, 4
add edi, 0x1c
sub esi, 1
jne 0x4253b4
cmp byte [ebp - 5], 0
je 0x425408
mov eax, dword [ebp - 4]
jmp 0x4252cc
mov ebx, dword [ebp - 0xc]
lea eax, [ebp - 0x15f8]
push eax
mov edx, esi
mov byte [ebp - 5], 1
mov ecx, ebx
call fcn.00428570
add esp, 4
jmp 0x4253ae
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [0x4918d8]
call dword [sym.imp.sqlite3.dll_sqlite3_errmsg]
add esp, 4
push eax
push 0x4802cc
call fcn.00410f10
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x427890
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2018
call fcn.004340e0
push ebx
mov ebx, edx
mov dword [ebp - 0x18], ecx
push esi
push edi
mov edi, dword [sym.imp.WS2_32.dll_ntohl]
mov eax, dword [ebx]
push eax
call edi
mov esi, dword [ebx + 4]
push esi
mov dword [ebp - 0x14], eax
call edi
mov ecx, dword [ebx + 8]
push ecx
call edi
push dword [ebx + 0xc]
mov dword [ebp - 0xc], eax
call edi
push dword [ebx + 0x10]
mov dword [ebp - 0x10], eax
call edi
push 0
mov dword [ebp - 8], eax
or ebx, 0xffffffff
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push ebx
push str.SELECT_ID__FROM_KartStoneGroove__WHERE_Uin__AND_KartID__
push dword [0x4918d8]
call dword [sym.imp.sqlite3.dll_sqlite3_prepare_v2]
mov esi, dword [sym.imp.sqlite3.dll_sqlite3_bind_int]
add esp, 0x14
test eax, eax
jne 0x427936
push dword [ebp - 0x14]
push 1
push dword [ebp - 4]
call esi
push dword [ebp - 0xc]
push 2
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 0x1c
cmp eax, 0x64
jne 0x427936
push 0
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_column_int]
add esp, 8
mov ebx, eax
push dword [ebp - 4]
mov edi, dword [sym.imp.sqlite3.dll_sqlite3_finalize]
call edi
add esp, 4
mov dword [ebp - 4], 0
cmp ebx, 0xffffffff
je 0x4279af
push 0
lea eax, [ebp - 4]
push eax
push 0xffffffffffffffff
push str.UPDATE_KartStone_SET_StoneUseOccaType__SkillStoneID___WHERE_ID__AND_StoneGrooveID__
push dword [0x4918d8]
call dword [sym.imp.sqlite3.dll_sqlite3_prepare_v2]
add esp, 0x14
test eax, eax
jne 0x4279a0
push eax
push 1
push dword [ebp - 4]
call esi
push dword [ebp - 8]
push 2
push dword [ebp - 4]
call esi
push ebx
push 3
push dword [ebp - 4]
call esi
push dword [ebp - 0x10]
push 4
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 0x34
push dword [ebp - 4]
call edi
add esp, 4
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0xc]
mov edx, edi
mov ebx, dword [ebp - 0x18]
mov ecx, ebx
call fcn.00427a40
mov edx, dword [ebp - 8]
mov ecx, ebx
push 1
call fcn.00428790
mov esi, dword [sym.imp.WS2_32.dll_htons]
add esp, 4
push 0
call esi
push 0
mov word [ebp - 0x2018], ax
call esi
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push edi
mov word [ebp - 0x2016], ax
call esi
push dword [ebp - 0x10]
mov dword [ebp - 0x2014], eax
call esi
push dword [ebp - 8]
mov dword [ebp - 0x2010], eax
call esi
push ecx
push 1
mov dword [ebp - 0x200c], eax
mov edx, 0x385
movzx eax, word [ebx + 0x10]
mov ecx, ebx
push eax
push 1
push eax
lea eax, [ebp - 0x2018]
push 0x10
push eax
call fcn.004202d0
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x427a40
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.004340e0
push ebx
push esi
push edi
push 0
lea eax, [ebp - 8]
mov dword [ebp - 0xc], edx
push eax
or esi, 0xffffffff
mov dword [ebp - 0x10], ecx
push esi
push str.SELECT_ID__FROM_KartStoneGroove__WHERE_Uin__AND_KartID__
push dword [0x4918d8]
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], esi
call dword [sym.imp.sqlite3.dll_sqlite3_prepare_v2]
mov ebx, dword [sym.imp.sqlite3.dll_sqlite3_column_int]
add esp, 0x14
mov edi, dword [sym.imp.sqlite3.dll_sqlite3_bind_int]
test eax, eax
jne 0x427ac5
mov eax, dword [ebp - 0x10]
push dword [eax + 0x18]
push 1
push dword [ebp - 8]
call edi
push dword [ebp - 0xc]
push 2
push dword [ebp - 8]
call edi
push dword [ebp - 8]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 0x1c
cmp eax, 0x64
jne 0x427ac5
push 0
push dword [ebp - 8]
call ebx
add esp, 8
mov dword [ebp - 0x14], eax
mov esi, eax
push dword [ebp - 8]
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
add esp, 4
mov dword [ebp - 8], 0
cmp esi, 0xffffffff
je 0x427c33
mov eax, dword [ebp - 0x10]
mov edi, dword [sym.imp.WS2_32.dll_htonl]
push dword [eax + 0x18]
call edi
push 0
mov dword [ebp - 0x2014], eax
call dword [sym.imp.WS2_32.dll_htons]
push dword [ebp - 0xc]
mov word [ebp - 0x2010], ax
call edi
push 0
mov dword [ebp - 0x200e], eax
call edi
push 0
mov dword [ebp - 0x200a], eax
lea esi, [ebp - 0x2006]
lea eax, [ebp - 4]
mov dword [ebp - 0xc], 0
push eax
push 0xffffffffffffffff
push str.SELECT_StoneUseOccaType_SkillStoneID__FROM_KartStone_WHERE_ID____
push dword [0x4918d8]
mov dword [ebp - 4], 0
call dword [sym.imp.sqlite3.dll_sqlite3_prepare_v2]
add esp, 0x14
test eax, eax
jne 0x427bbf
push dword [ebp - 0x14]
push 1
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_bind_int]
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 0x10
cmp eax, 0x64
jne 0x427bd9
nop dword [eax]
inc dword [ebp - 0xc]
push 0
call dword [sym.imp.WS2_32.dll_htons]
push 0
push dword [ebp - 4]
mov word [esi], ax
call ebx
add esp, 8
push eax
call edi
push 1
push dword [ebp - 4]
mov dword [esi + 2], eax
call ebx
add esp, 8
push eax
call edi
push 0xa
mov dword [esi + 6], eax
call dword [sym.imp.WS2_32.dll_htons]
push dword [ebp - 4]
mov word [esi], ax
add esi, 0xa
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 4
cmp eax, 0x64
je 0x427b70
jmp 0x427bd9
push dword [0x4918d8]
call dword [sym.imp.sqlite3.dll_sqlite3_errmsg]
push eax
push 0x4802cc
call fcn.00410f10
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
add esp, 4
mov dword [ebp - 4], 0
push dword [ebp - 0xc]
call edi
mov dword [ebp - 0x200a], eax
lea eax, [ebp - 0x2010]
sub esi, eax
push esi
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp - 0x10]
mov edx, 0x38a
push ecx
mov word [ebp - 0x2010], ax
push 2
movzx eax, word [ecx + 0x10]
push eax
push 1
push eax
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x2014]
push eax
call fcn.004202d0
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x428390
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.004340e0
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_htons]
mov ebx, ecx
push edi
push 0
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
call esi
push dword [ebx + 0x18]
mov ebx, dword [sym.imp.WS2_32.dll_htonl]
mov word [ebp - 0x200c], ax
call ebx
push 0xff
mov dword [ebp - 0x200a], eax
call esi
push 1
mov word [ebp - 0x2006], ax
call esi
push 1
mov word [ebp - 0x2004], ax
call esi
push 0
mov word [ebp - 0x2002], ax
call esi
push 0
mov word [ebp - 0x2000], ax
call esi
xorps xmm0, xmm0
mov word [ebp - 0x1ffe], ax
mov al, byte [0x482e00]
movups xmmword [ebp - 0x1ffc], xmm0
push 0
movq xmm0, qword [0x482df8]
mov byte [ebp - 0x1fec], 0
movq qword [ebp - 0x1ffc], xmm0
mov byte [ebp - 0x1ff4], al
call esi
push 0
mov word [ebp - 0x1feb], ax
lea edi, [ebp - 0x1fe9]
lea eax, [ebp - 4]
push eax
push 0xffffffffffffffff
push str.SELECT_FriendUin_FROM_FriendInfo_WHERE_Uin____
push dword [0x4918d8]
call dword [sym.imp.sqlite3.dll_sqlite3_prepare_v2]
add esp, 0x14
test eax, eax
jne 0x42850e
mov eax, dword [ebp - 0xc]
push dword [eax + 0x18]
push 1
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_bind_int]
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 0x10
cmp eax, 0x64
jne 0x428502
lea esi, [ebp - 0x1fdb]
nop dword [eax + eax]
inc dword [ebp - 8]
push 0
call dword [sym.imp.WS2_32.dll_htons]
push 0
push dword [ebp - 4]
mov word [edi], ax
call dword [sym.imp.sqlite3.dll_sqlite3_column_int]
add esp, 8
push eax
call ebx
push 0
mov dword [esi - 0xc], eax
call ebx
push 0
mov dword [esi - 8], eax
call ebx
mov dword [esi - 4], eax
push 0
mov byte [esi], 0
call ebx
push 0x13
mov dword [esi + 1], eax
call dword [sym.imp.WS2_32.dll_htons]
push dword [ebp - 4]
mov word [edi], ax
lea esi, [esi + 0x13]
add edi, 0x13
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 4
cmp eax, 0x64
je 0x4284a0
mov esi, dword [sym.imp.WS2_32.dll_htons]
push dword [ebp - 8]
call esi
mov word [ebp - 0x1feb], ax
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
add esp, 4
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2000]
mov eax, edi
sub eax, ecx
push eax
call esi
mov ecx, dword [ebp - 0xc]
mov edx, 0xa3
push ecx
mov word [ebp - 0x2000], ax
push 1
movzx eax, word [ecx + 0x10]
push eax
push 1
push eax
lea eax, [ebp - 0x200c]
mov byte [edi], 0
sub edi, eax
inc edi
push edi
push eax
call fcn.004202d0
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret