joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4364c0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
mov dword [ebp - 4], 0
cmp cx, 5
jne 0x4364db
mov eax, str.SELECT_BorderMap_FROM_MapRand_WHERE_BorderMap_IS_NOT_NULL_ORDER_BY_RANDOM___LIMIT_1_
jmp 0x4364f9
cmp cx, 8
jne 0x4364e8
mov eax, str.SELECT_EventMap_FROM_MapRand_WHERE_EventMap_IS_NOT_NULL_ORDER_BY_RANDOM___LIMIT_1_
jmp 0x4364f9
cmp cx, 0x10
mov eax, str.SELECT_RankMap_FROM_MapRand_WHERE_RankMap_IS_NOT_NULL_ORDER_BY_RANDOM___LIMIT_1_
mov edx, str.SELECT_AllMap_FROM_MapRand_WHERE_AllMap_IS_NOT_NULL_ORDER_BY_RANDOM___LIMIT_1_
cmovne eax, edx
push 0
lea ecx, [ebp - 4]
push ecx
push 0xffffffffffffffff
push eax
push dword [0x4d1304]
call dword [sym.imp.sqlite3.dll_sqlite3_prepare_v2]
add esp, 0x14
test eax, eax
jne 0x436536
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 4
cmp eax, 0x64
jne 0x436536
push 0
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_column_int]
add esp, 8
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
add esp, 4
mov eax, 0x100
test esi, esi
cmove esi, eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x437b30
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebx
push edi
mov edi, edx
mov ebx, ecx
push dword [edi]
call dword [sym.imp.WS2_32.dll_ntohl]
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_ntohl]
pop edi
mov ecx, ebx
pop ebx
jmp fcn.00437b50
Function at 0x442770
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push ebx
mov eax, ecx
mov dword [ebp - 4], 0
push esi
push edi
push 0
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 4]
push ecx
push 0xffffffffffffffff
push str.SELECT_LegendSuitLevelChoice__FROM_KartRefit_WHERE_Uin__AND_KartID__
push dword [eax + 0x1a0]
mov dword [ebp - 0x14], eax
call dword [sym.imp.sqlite3.dll_sqlite3_prepare_v2]
mov ebx, dword [sym.imp.WS2_32.dll_htons]
add esp, 0x14
mov dword [ebp - 0xc], eax
push 0
call ebx
push 0xa
mov word [ebp - 0x414], ax
mov word [ebp - 0x412], 0
call ebx
mov word [ebp - 0x410], ax
lea esi, [ebp - 0x40e]
lea eax, [ebp - 0x408]
xor edi, edi
mov dword [ebp - 8], eax
push 0
call ebx
cmp dword [ebp - 0xc], 0
mov ebx, dword [edi + 0x4b470c]
mov word [esi], ax
jne 0x442858
cmp ebx, 0x20
je 0x442858
push dword [ebp - 0x10]
push 1
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_bind_int]
push dword [edi + 0x4b4700]
push 2
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, 0x1c
cmp eax, 0x64
jne 0x44284c
push 0
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_column_int]
add esp, 8
mov ebx, eax
mov ecx, ebx
call fcn.0042c5b0
test eax, eax
mov eax, 0x780
cmove ebx, eax
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_reset]
add esp, 4
push dword [edi + 0x4b4704]
call dword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [ebp - 8]
push ebx
mov dword [ecx - 4], eax
mov al, byte [edi + 0x4b4708]
mov byte [ecx], al
call dword [sym.imp.WS2_32.dll_htonl]
mov ebx, dword [ebp - 8]
push 0xb
mov dword [ebx + 1], eax
call dword [sym.imp.WS2_32.dll_htons]
add ebx, 0xb
mov word [esi], ax
add edi, 0x10
mov dword [ebp - 8], ebx
mov ebx, dword [sym.imp.WS2_32.dll_htons]
add esi, 0xb
cmp edi, 0xa0
jb 0x4427e3
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
mov ebx, dword [sym.imp.WS2_32.dll_htonl]
add esp, 4
mov dword [ebp - 4], 0
push 0
call ebx
mov dword [esi], eax
push 0
mov word [esi + 4], 0
call ebx
push 0
mov dword [esi + 6], eax
call ebx
mov dword [esi + 0xa], eax
add esi, 0xe
push 0
call ebx
mov ecx, dword [ebp - 0x14]
mov edx, 0x13f
push 1
mov dword [esi], eax
push 1
movzx eax, word [ecx + 0x10]
push eax
push 1
push eax
lea eax, [ebp - 0x414]
sub esi, eax
add esi, 4
push esi
push eax
call fcn.00437370
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x442d30
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push ebx
mov eax, ecx
mov dword [ebp - 0x14], edx
push esi
push edi
push 0
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 4]
push ecx
push 0xffffffffffffffff
push str.SELECT_LegendSuitLevelChoice__FROM_KartRefit_WHERE_Uin__AND_KartID__
push dword [eax + 0x1a0]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
call dword [sym.imp.sqlite3.dll_sqlite3_prepare_v2]
mov ebx, dword [sym.imp.WS2_32.dll_htons]
add esp, 0x14
mov dword [ebp - 0xc], eax
push 0
call ebx
push 0xa
mov word [ebp - 0x418], ax
mov word [ebp - 0x416], 0x300
call ebx
mov word [ebp - 0x414], ax
lea esi, [ebp - 0x412]
lea eax, [ebp - 0x40c]
xor edi, edi
mov dword [ebp - 8], eax
push 0
call ebx
cmp dword [ebp - 0xc], 0
mov ebx, dword [edi + 0x4b470c]
mov word [esi], ax
jne 0x442e1b
cmp ebx, 0x20
je 0x442e1b
push dword [ebp - 0x10]
push 1
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_bind_int]
push dword [edi + 0x4b4700]
push 2
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, 0x1c
cmp eax, 0x64
jne 0x442e0f
push 0
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_column_int]
add esp, 8
mov ebx, eax
mov ecx, ebx
call fcn.0042c5b0
test eax, eax
mov eax, 0x780
cmove ebx, eax
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_reset]
add esp, 4
push dword [edi + 0x4b4704]
call dword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [ebp - 8]
push ebx
mov dword [ecx - 4], eax
mov al, byte [edi + 0x4b4708]
mov byte [ecx], al
call dword [sym.imp.WS2_32.dll_htonl]
mov ebx, dword [ebp - 8]
push 0xb
mov dword [ebx + 1], eax
call dword [sym.imp.WS2_32.dll_htons]
add ebx, 0xb
mov word [esi], ax
add edi, 0x10
mov dword [ebp - 8], ebx
mov ebx, dword [sym.imp.WS2_32.dll_htons]
add esi, 0xb
cmp edi, 0xa0
jb 0x442da6
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
mov ebx, dword [sym.imp.WS2_32.dll_htonl]
add esp, 4
mov dword [ebp - 4], 0
push dword [ebp - 0x14]
call ebx
mov dword [esi], eax
push 0
mov word [esi + 4], 0
call ebx
push 0
mov dword [esi + 6], eax
call ebx
mov dword [esi + 0xa], eax
add esi, 0xe
push 0
call ebx
mov ecx, dword [ebp - 0x18]
mov edx, 0x13f
push 1
mov dword [esi], eax
push 1
movzx eax, word [ecx + 0x10]
push eax
push 1
push eax
lea eax, [ebp - 0x418]
sub esi, eax
add esi, 4
push esi
push eax
call fcn.00437370
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x443ae0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a1d0d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor ecx, eax
movzx eax, byte [edi + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edi + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
lea eax, [ebp - 0x20]
imul ebx, ecx, 0x1000193
push ebx
push edi
push eax
call fcn.004454e0
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x443b61
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [0x4d2c3c], 0xfffffff
je 0x443ce0
mov dword [ebp - 0x14], 0x4d2c38
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
push 0x10
mov dword [ebp - 0x10], 0
call fcn.0046204b
mov ecx, dword [edi]
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [esi + 8], ecx
mov dword [esi + 0xc], 0
mov dword [ebp - 4], 1
mov ecx, dword [0x4d2c3c]
mov edi, dword [0x4d2c50]
lea eax, [ecx + 1]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x4bf0d0]
mov eax, edi
shr eax, 0x1f
cvtpd2ps xmm2, xmm0
movd xmm0, edi
cvtdq2pd xmm0, xmm0
movaps xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x4bf0d0]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
movss xmm0, dword [0x4d2c34]
comiss xmm1, xmm0
jbe 0x443c6f
divss xmm2, xmm0
sub esp, 8
cvtps2pd xmm0, xmm2
movsd qword [ebp - 0x20], xmm0
fld qword [ebp - 0x20]
fstp qword [esp]
call fcn.0049cc00
fstp qword [ebp - 0x20]
movsd xmm0, qword [ebp - 0x20]
add esp, 8
cvtpd2ps xmm0, xmm0
call fcn.0049e040
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
cmp edi, ecx
jae 0x443c51
cmp edi, 0x200
jae 0x443c4f
shl edi, 3
cmp edi, ecx
jae 0x443c51
mov edi, ecx
push edi
call fcn.004444d0
push ebx
lea eax, [esi + 8]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.004454e0
mov ecx, dword [0x4d2c3c]
mov edx, dword [eax]
jmp 0x443c72
mov edx, dword [ebp - 0x20]
mov edi, dword [edx + 4]
inc ecx
mov dword [0x4d2c3c], ecx
mov dword [esi], edx
mov dword [esi + 4], edi
mov dword [edi], esi
mov dword [edx + 4], esi
mov eax, dword [0x4d2c4c]
mov ecx, dword [0x4d2c40]
and eax, ebx
mov dword [ebp - 0x10], 0
mov ebx, dword [ecx + eax*8]
cmp ebx, dword [0x4d2c38]
jne 0x443caa
mov dword [ecx + eax*8], esi
jmp 0x443cb9
cmp ebx, edx
jne 0x443cb3
mov dword [ecx + eax*8], esi
jmp 0x443cbd
cmp dword [ecx + eax*8 + 4], edi
jne 0x443cbd
mov dword [ecx + eax*8 + 4], esi
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov byte [eax + 4], 1
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.unordered_map_set_too_long
call fcn.00460ee1
int3
Function at 0x4444d0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a34fd
push eax
mov eax, 0x1fffffff
mov dword fs:[0], esp
bsr ecx, eax
sub esp, 0xc
push ebx
push esi
push edi
mov edi, 1
mov eax, edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
ja 0x44466c
lea eax, [ecx - 1]
mov esi, dword [0x4d2c38]
or eax, edi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
mov ecx, 0x4d2c40
lea eax, [edi + edi]
push eax
call fcn.00425460
lea eax, [edi - 1]
mov dword [0x4d2c50], edi
mov dword [0x4d2c4c], eax
mov dword [ebp - 0x14], 0x4d2c34
mov dword [ebp - 4], 0
mov ecx, dword [0x4d2c38]
mov ecx, dword [ecx]
mov edx, ecx
cmp ecx, esi
je 0x444629
nop word [eax + eax]
movzx eax, byte [ecx + 8]
xor eax, 0x811c9dc5
mov edx, dword [edx]
imul edi, eax, 0x1000193
movzx eax, byte [ecx + 9]
xor edi, eax
movzx eax, byte [ecx + 0xa]
imul edi, edi, 0x1000193
xor edi, eax
movzx eax, byte [ecx + 0xb]
imul edi, edi, 0x1000193
xor edi, eax
mov eax, dword [0x4d2c40]
imul edi, edi, 0x1000193
and edi, dword [0x4d2c4c]
mov ebx, dword [eax + edi*8]
lea eax, [eax + edi*8]
mov dword [ebp + 8], eax
cmp ebx, esi
jne 0x4445b4
mov dword [eax], ecx
mov dword [eax + 4], ecx
jmp 0x44461f
mov eax, dword [eax + 4]
mov edi, dword [ecx + 8]
cmp edi, dword [eax + 8]
jne 0x4445eb
mov eax, dword [eax]
cmp eax, ecx
je 0x4445e3
mov ebx, dword [ecx + 4]
mov dword [ebp - 0x10], ebx
mov dword [ebx], edx
mov ebx, dword [edx + 4]
mov dword [ebx], eax
mov edi, dword [eax + 4]
mov dword [edi], ecx
mov dword [eax + 4], ebx
mov eax, dword [ebp - 0x10]
mov dword [edx + 4], eax
mov dword [ecx + 4], edi
mov eax, dword [ebp + 8]
mov dword [eax + 4], ecx
jmp 0x44461f
cmp ebx, eax
je 0x4445fc
nop
mov eax, dword [eax + 4]
cmp edi, dword [eax + 8]
je 0x44464a
cmp ebx, eax
jne 0x4445f0
mov ebx, dword [ecx + 4]
mov dword [ebp - 0x10], ebx
mov dword [ebx], edx
mov ebx, dword [edx + 4]
mov dword [ebx], eax
mov edi, dword [eax + 4]
mov dword [edi], ecx
mov dword [eax + 4], ebx
mov eax, dword [ebp - 0x10]
mov dword [edx + 4], eax
mov eax, dword [ebp + 8]
mov dword [ecx + 4], edi
mov dword [eax], ecx
mov ecx, edx
cmp edx, esi
jne 0x444560
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ebp + 8], ebx
mov dword [ebx], edx
mov ebx, dword [edx + 4]
mov dword [ebx], eax
mov edi, dword [eax + 4]
mov dword [edi], ecx
mov dword [eax + 4], ebx
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov dword [ecx + 4], edi
jmp 0x44461f
push str.invalid_hash_bucket_count
call fcn.00460ee1
int3
Function at 0x445830
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 4], esi
mov eax, dword [esi]
cmp eax, 0x270
jne 0x44588d
lea edx, [esi + 8]
mov edi, eax
nop dword [eax]
mov ecx, dword [edx]
lea edx, [edx + 4]
xor ecx, dword [edx - 8]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub edi, 1
jne 0x445850
mov eax, dword [esi]
jmp 0x44596b
cmp eax, 0x4e0
jb 0x44596b
lea edi, [esi + 0x9c4]
mov esi, 0xe3
push ebx
mov ebx, dword [edi]
lea edx, [edi]
mov eax, ebx
mov ebx, dword [edx + 4]
lea edi, [edx + 4]
mov ecx, ebx
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x634]
xor eax, ecx
mov dword [edx - 0x9c0], eax
sub esi, 1
jne 0x4458a6
mov edi, dword [ebp - 4]
mov esi, 0x18c
add edi, 0xd50
mov ebx, dword [edi]
mov eax, ebx
lea edx, [edi]
mov ebx, dword [edx + 4]
lea edi, [edx + 4]
mov ecx, eax
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx - 0xd4c]
xor eax, ecx
mov dword [edx - 0x9c0], eax
sub esi, 1
jne 0x4458f1
mov esi, dword [ebp - 4]
pop ebx
mov eax, dword [esi + 0x1380]
mov ecx, dword [esi + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
xor eax, eax
mov dword [esi], 0
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x446f60
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 0x446f87
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 0x446fa2
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 0x447000
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 0x447027
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 0x447047
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 0x449c70
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
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]
mov ebx, dword [ebp - 0x14]
push esi
push eax
push 0xffffffffffffffff
push str.SELECT_ItemID_ItemNum_AvailPeriod_Status_ObtainTime_OtherAttribute__FROM_Item_WHERE_Uin____
push dword [ebx + 0x1a0]
mov dword [ebp - 8], 0
call dword [sym.imp.sqlite3.dll_sqlite3_prepare_v2]
add esp, 0x14
test eax, eax
jne 0x449df2
push dword [ebx + 0x18]
push 1
push dword [ebp - 8]
call dword [sym.imp.sqlite3.dll_sqlite3_bind_int]
add esp, 0xc
push dword [ebp - 8]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 4
cmp eax, 0x64
jne 0x449df2
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 0x449dda
inc dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], ebx
call fcn.0042b840
mov eax, dword [eax]
test eax, eax
je 0x449d30
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 0x449cf6
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 0x449e20
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, ecx
mov dword [ebp - 0x10], edx
push esi
push edi
push 0
mov eax, dword [ebx]
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], eax
call dword [sym.imp.WS2_32.dll_htons]
mov esi, dword [ebx]
xor edi, edi
mov dword [ebp - 0xc], edi
mov word [esi], ax
xor esi, esi
add dword [ebx], 2
lea eax, [ebp - 4]
push esi
push eax
mov eax, dword [ebp + 8]
push 0xffffffffffffffff
push str.SELECT_ItemID_ItemNum_AvailPeriod_Status_ObtainTime_OtherAttribute__FROM_Item_WHERE_Uin____
mov dword [ebp - 4], 0
push dword [eax + 0x1a0]
call dword [sym.imp.sqlite3.dll_sqlite3_prepare_v2]
add esp, 0x14
test eax, eax
jne 0x449f9f
push dword [ebp - 0x10]
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 0x449f9f
mov edi, dword [sym.imp.sqlite3.dll_sqlite3_column_int]
push 0
push dword [ebp - 4]
call edi
push 3
push dword [ebp - 4]
mov ebx, eax
call edi
add esp, 0x10
mov byte [ebp + 0xb], al
test al, al
je 0x449f87
inc dword [ebp - 0xc]
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], ebx
call fcn.0042b840
mov eax, dword [eax]
test eax, eax
je 0x449edd
cmp dword [eax + 4], 1
cmove esi, ebx
mov edi, dword [ebp - 8]
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 - 4]
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 - 4]
call ebx
add esp, 8
push eax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [edi + 0xa], eax
mov al, byte [ebp + 0xb]
mov byte [edi + 0xe], al
push 4
push dword [ebp - 4]
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 - 4]
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 - 8]
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 - 8]
mov word [edi], ax
mov eax, ebx
mov edi, dword [sym.imp.sqlite3.dll_sqlite3_column_int]
add dword [ecx], eax
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 4
cmp eax, 0x64
je 0x449ea3
mov edi, dword [ebp - 0xc]
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
add esp, 4
mov dword [ebp - 4], 0
push edi
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp - 0x14]
pop edi
mov word [ecx], ax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret