joyce8/EMBER2024-capa huggingface dataset:
Function at 0x452e10
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45d6a0
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4ec560]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x4ec620]
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], 0
cmp eax, 0xffffffff
je 0x452e74
push eax
call esi
test eax, eax
mov eax, dword [0x4ec620]
je 0x452e74
cmp eax, 0xffffffff
jne 0x452e60
xor ecx, ecx
jmp 0x452e6a
push eax
call esi
mov ecx, eax
mov eax, dword [0x4ec620]
cmp byte [ecx + 0x38], 0
je 0x452e74
mov cl, 1
jmp 0x452e76
xor cl, cl
mov dword [ebp - 4], 0xffffffff
test cl, cl
je 0x452ec7
mov dword [ebp - 4], 1
cmp eax, 0xffffffff
je 0x452eba
push eax
call esi
test eax, eax
je 0x452eba
mov eax, dword [0x4ec620]
cmp eax, 0xffffffff
jne 0x452ea2
xor eax, eax
jmp 0x452ea5
push eax
call esi
push 0
push 0
push dword [eax + 0x34]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
test eax, eax
jne 0x452eba
mov al, 1
jmp 0x452ebc
xor al, al
mov dword [ebp - 4], 0xffffffff
test al, al
jne 0x452ed7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
call fcn.00452660
lea ecx, [eax + 0x34]
call fcn.0044fb00
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x47ee5c
lea eax, [ebp - 0xd]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x453400
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45d7b0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4ec560]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
call fcn.0044cee0
mov esi, eax
mov dword [ebp - 4], 0
push 0x451bb0
push 0x4efee0
mov dword [ebp - 0x14], esi
call fcn.004515e0
mov eax, dword [0x4ec620]
add esp, 8
cmp eax, 0xffffffff
je 0x453460
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4542b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45d928
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4ec560]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x4ec620]
cmp eax, 0xffffffff
jne 0x4542e6
xor ebx, ebx
jmp 0x4542ef
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x45432f
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0xc]
test eax, eax
jne 0x45436e
test esi, esi
jne 0x454372
push 0x451bb0
push 0x4efee0
call fcn.004515e0
mov eax, dword [0x4ec620]
add esp, 8
cmp eax, 0xffffffff
je 0x45432f
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x45435c
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x45435c
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x4543b4
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x45439d
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x454372
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x454300
nop
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x4543d9
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x4543d9
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x14]
call fcn.00452230
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x4543c0
jmp 0x454300

Function at 0x454730
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push esi
mov esi, ecx
mov edx, dword [esi]
lea eax, [edx + 0x10]
push eax
push 4
push edx
push 0x4547e0
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x45475a
pop esi
xor al, al
pop ebx
ret
mov eax, dword [esi]
push edi
add eax, 4
lock inc dword [eax]
mov edi, dword [esi]
mov eax, dword [edi + 8]
test eax, eax
je 0x454778
cmp eax, 0xffffffff
je 0x454778
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 8], ebx
mov eax, dword [esi]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
mov al, 1
pop ebx
ret
Function at 0x4981e0
Capabilities:
Terminate process

Disassembly:
push 0xc
push 0x4a4ed8
call fcn.00498848
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x4a7a60
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x498008
cmp eax, esi
jne 0x497ffb
xor esi, esi
inc esi
mov edi, esi
jmp 0x49800b
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x497fdf
xor esi, esi
inc esi
cmp dword [0x4a7a64], esi
jne 0x49801d
push 0x1f
call fcn.00547000
pop ecx
jmp 0x498057
cmp dword [0x4a7a64], ebx
jne 0x498051
mov dword [0x4a7a64], esi
push 0x4030d8
push 0x4030cc
call fcn.0049813c
pop ecx
pop ecx
test eax, eax
je 0x498057
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x49812c
mov dword [0x4a72c4], esi
cmp dword [0x4a7a64], esi
jne 0x49807a
push 0x4030c8
push 0x403094
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x4a7a64], 2
test edi, edi
jne 0x498087
xor eax, eax
mov ecx, 0x4a7a60
xchg dword [ecx], eax
cmp dword [0x4a7a70], 0
je 0x4980b3
push 0x4a7a70
call fcn.004986a0
pop ecx
test eax, eax
je 0x4980b3
push ebx
push 2
push ebx
mov esi, dword [0x4a7a70]
mov ecx, esi
call dword [0x4a8384]
call esi
push dword [0x4a72d0]
push dword [0x4a72cc]
push dword [0x4a72c8]
call fcn.00420d13
add esp, 0xc
mov dword [0x4a72c0], eax
cmp dword [0x4a72d8], 0
jne 0x498111
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x4a72c4], 0
jne 0x498125
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x4a72c0]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
call fcn.00498795
jmp 0x497fc3

Function at 0x498594
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x4a4f18
call fcn.00498848
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x4985f4
cmp eax, 0xffffffff
je 0x4985f4
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x4985ed
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x4985ed
cmp edx, 0x10000000
jae 0x4985ed
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x4985ea
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x498650
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x49868e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x498686
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x498690
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x498676
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x403680
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea esi, [ebx + 0x13]
push esi
lea edi, [ebx + 8]
push edi
push str.SELECT__FROM_CHAOS_BOX_GENESIS_WHERE_Account_s_and_Name_s
push 0x442698
call fcn.00413700
add esp, 0x10
test al, al
je 0x403775
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x403775
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
cmp byte [ebx + 0x79f], 0
jne 0x40371b
push esi
push edi
push str.DELETE_FROM_CHAOS_BOX_GENESIS_WHERE_Account_s_and_Name_s
push 0x442698
call fcn.00413700
add esp, 0x10
push dword [0x4426a4]
mov eax, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call eax
mov eax, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x4426a4]
call eax
pop edi
pop esi
pop ebx
pop ebp
ret 4
push 0x5d41a0
push 0
lea eax, [ebx + 0x1e]
mov dword [0x5d41a0], 0x780
push eax
push 0
push 0x780
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
movzx eax, byte [ebx + 0x79e]
push esi
push edi
push dword [ebx + 0x7a4]
push dword [ebx + 0x7a0]
push eax
push str.UPDATE_CHAOS_BOX_GENESIS_SET_Items___State_d__SelectedKey_d__SelectedComb_d_WHERE_Account_s_and_Name_s
push 0x442698
call fcn.00413700
add esp, 0x1c
jmp 0x4036f8
push dword [0x4426a4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x4426a4]
call esi
push dword [ebx + 0x7a4]
movzx eax, byte [ebx + 0x79e]
push dword [ebx + 0x7a0]
push eax
lea eax, [ebx + 0x13]
push eax
lea eax, [ebx + 8]
push eax
push str.INSERT_INTO_CHAOS_BOX_GENESIS__Account_Name__State__SelectedKey__SelectedComb__VALUES___s___s___d___d___d_
push 0x442698
call fcn.00413700
add esp, 0x1c
push dword [0x4426a4]
call edi
push 2
push dword [0x4426a4]
call esi
lea eax, [ebx + 0x13]
push eax
lea eax, [ebx + 8]
push eax
push 0x780
push 0x780
push str.UPDATE_CHAOS_BOX_GENESIS_SET_ItemsCONVERT_varbinary__d__REPLICATE_char_0xFF___d___WHERE_Account_s_AND_Name_s
push 0x442698
call fcn.00413700
add esp, 0x18
push dword [0x4426a4]
call edi
push 2
push dword [0x4426a4]
call esi
push 0x5d41a0
push 0
lea eax, [ebx + 0x1e]
mov dword [0x5d41a0], 0x780
push eax
push 0
push 0x780
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
lea eax, [ebx + 0x13]
push eax
lea eax, [ebx + 8]
push eax
push str.UPDATE_CHAOS_BOX_GENESIS_SET_Items__WHERE_Account_s_and_Name_s
push 0x442698
call fcn.00413700
add esp, 0x10
push dword [0x4426a4]
call edi
push 2
push dword [0x4426a4]
call esi
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x406130
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x43d008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, ecx
mov dword [ebp - 0x428], edx
push esi
push edi
mov dword [ebp - 0x424], eax
lea esi, [eax + 8]
push esi
push str.SELECT_GUID_FROM_T_FriendMain_WHERE_Name_s
push 0x442698
call fcn.00413700
mov ebx, dword [sym.imp.ODBC32.dll_SQLFetch]
add esp, 0xc
push dword [0x4426a4]
call ebx
push str.GUID
call fcn.00413990
cmp eax, 0xffffffff
jne 0x40618b
or edi, eax
jmp 0x40619e
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0041acc9
add esp, 4
mov edi, eax
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x424]
movq xmm0, qword [esi]
push edi
mov dword [ebp - 0x420], 0x721204c2
movzx eax, word [ecx + 4]
mov word [ebp - 0x41c], ax
movzx eax, word [esi + 8]
mov word [ebp - 0x412], ax
mov al, byte [esi + 0xa]
mov byte [ebp - 0x410], al
movzx eax, word [ecx + 6]
push eax
push str.SELECT_Memo_Photo_Dir_Act_FROM_T_FriendMail_WHERE_MemoIndex_d_AND_GUID_d
push 0x442698
movq qword [ebp - 0x41a], xmm0
mov word [ebp - 0x40e], ax
call fcn.00413700
add esp, 0x10
push dword [0x4426a4]
call ebx
push 0x12
lea eax, [ebp - 0x40a]
push eax
push str.Photo
call fcn.00413a10
push 0x4377fc
call fcn.00413990
cmp eax, 0xffffffff
jne 0x406240
or eax, eax
jmp 0x406251
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0041acc9
add esp, 4
push 0x437800
mov byte [ebp - 0x3f8], al
call fcn.00413990
cmp eax, 0xffffffff
jne 0x40626a
or eax, eax
jmp 0x40627b
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0041acc9
add esp, 4
mov byte [ebp - 0x3f7], al
lea eax, [ebp - 0x3f6]
push 0x3e8
push eax
push str.Memo
call fcn.00413a10
lea ecx, [ebp - 0x3f6]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4062a0
push dword [0x4426a4]
mov esi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
sub ecx, edx
mov word [ebp - 0x40c], cx
call esi
mov ebx, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x4426a4]
call ebx
mov eax, dword [ebp - 0x424]
push edi
movzx eax, word [eax + 6]
push eax
push str.UPDATE_T_FriendMail_SET_bRead1_WHERE_MemoIndex_d_AND_GUID_d
push 0x442698
call fcn.00413700
add esp, 0x10
push dword [0x4426a4]
call esi
push 2
push dword [0x4426a4]
call ebx
mov ecx, dword [ebp - 0x428]
lea edx, [ebp - 0x420]
push 0x412
call fcn.00404ea0
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004163e0
mov esp, ebp
pop ebp
ret
Function at 0x406330
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x43d008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov byte [ebp - 0x25], dl
push edi
push str.SELECT_GUID_FROM_T_FriendMain_WHERE_Name_s
push 0x442698
call fcn.00413700
add esp, 0xc
test al, al
je 0x40652a
push dword [0x4426a4]
mov ebx, dword [sym.imp.ODBC32.dll_SQLFetch]
call ebx
cmp ax, 0x64
je 0x40652a
push str.GUID
call fcn.00413990
cmp eax, 0xffffffff
jne 0x40638e
or esi, eax
jmp 0x4063a1
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0041acc9
add esp, 4
mov esi, eax
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0
push esi
push str.SELECT_FriendName_Del_FROM_T_FriendList_WHERE_GUID_d
push 0x442698
call fcn.00413700
add esp, 0x10
test al, al
je 0x40652a
push dword [0x4426a4]
call ebx
cmp ax, 0x64
je 0x40652a
nop word [eax + eax]
push str.FriendName
mov word [ebp - 0x24], 0x1ec1
mov byte [ebp - 0x22], 0x62
call fcn.00413990
cmp eax, 0xffffffff
jne 0x40641d
xorps xmm0, xmm0
mov word [ebp - 0x16], 0
movq qword [ebp - 0x1e], xmm0
mov byte [ebp - 0x14], 0
jmp 0x406436
shl eax, 0xd
push 0xa
add eax, 0x443e7e
push eax
lea eax, [ebp - 0x1e]
push 0xb
push eax
call fcn.00420956
add esp, 0x10
lea eax, [ebp - 0x1e]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00403910
test al, al
je 0x406518
cmp byte [ebp - 0x25], 0
movzx eax, word [ebp - 0x2e]
movq xmm0, qword [edi]
mov word [ebp - 0x20], ax
movzx eax, word [edi + 8]
mov word [ebp - 0xb], ax
mov al, byte [edi + 0xa]
movq qword [ebp - 0x13], xmm0
mov byte [ebp - 9], al
jne 0x4064b7
push 0x437620
call fcn.00413990
cmp eax, 0xffffffff
jne 0x406483
or eax, eax
jmp 0x406494
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0041acc9
add esp, 4
test eax, eax
jne 0x4064b7
lea eax, [ebp - 0x13]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00403910
test al, al
mov eax, 0xffff
je 0x4064b2
movzx eax, word [ebp - 0x48]
mov byte [ebp - 8], al
jmp 0x4064bb
mov byte [ebp - 8], 0xff
mov si, word [ebp - 0x2c]
xor edx, edx
xor eax, eax
mov ecx, dword [eax + 0x5d56f4]
test ecx, ecx
js 0x4064ed
cmp ecx, 0x14
jge 0x4064ed
cmp dword [eax + 0x5d56f8], 0
je 0x4064ed
cmp dword [eax + 0x5d570c], 0xffffffff
je 0x4064ed
cmp word [eax + 0x5d574c], si
je 0x4064fa
add eax, 0x68
inc edx
cmp eax, 0x820
jl 0x4064c3
jmp 0x406518
imul ecx, edx, 0x68
add ecx, 0x5d56f0
je 0x406518
movzx eax, byte [ebp - 0x23]
lea edx, [ebp - 0x24]
mov ecx, dword [ecx + 4]
push eax
call fcn.00404ea0
add esp, 4
push dword [0x4426a4]
call ebx
cmp ax, 0x64
jne 0x4063f0
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004163e0
mov esp, ebp
pop ebp
ret
Function at 0x406560
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x43d008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push edx
push str.SELECT_MemoIndex_FriendName_wDate_Subject_bRead_FROM_T_FriendMail_WHERE_GUID_d
push 0x442698
mov dword [ebp - 0x6c], ecx
call fcn.00413700
add esp, 0xc
test al, al
je 0x4066f7
push dword [0x4426a4]
mov ebx, dword [sym.imp.ODBC32.dll_SQLFetch]
call ebx
cmp ax, 0x64
je 0x4066f7
mov di, word [ebp + 8]
push str.MemoIndex
mov dword [ebp - 0x68], 0x715e00c2
mov word [ebp - 0x64], di
call fcn.00413990
cmp eax, 0xffffffff
jne 0x4065ce
or eax, eax
jmp 0x4065df
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0041acc9
add esp, 4
push str.FriendName
mov word [ebp - 0x62], ax
call fcn.00413990
cmp eax, 0xffffffff
jne 0x406606
xorps xmm0, xmm0
mov word [ebp - 0x58], 0
movq qword [ebp - 0x60], xmm0
mov byte [ebp - 0x56], 0
jmp 0x40661f
shl eax, 0xd
push 0xa
add eax, 0x443e7e
push eax
lea eax, [ebp - 0x60]
push 0xb
push eax
call fcn.00420956
add esp, 0x10
mov ax, word [esi + 8]
movq xmm0, qword [esi]
mov word [ebp - 0x4d], ax
mov al, byte [esi + 0xa]
push str.wDate
movq qword [ebp - 0x55], xmm0
mov byte [ebp - 0x4b], al
call fcn.00413990
cmp eax, 0xffffffff
jne 0x406660
xorps xmm0, xmm0
mov dword [ebp - 0x32], 0
movups xmmword [ebp - 0x4a], xmm0
mov word [ebp - 0x2e], 0
movq qword [ebp - 0x3a], xmm0
jmp 0x406679
shl eax, 0xd
push 0x1d
add eax, 0x443e7e
push eax
lea eax, [ebp - 0x4a]
push 0x1e
push eax
call fcn.00420956
add esp, 0x10
push str.Subject
call fcn.00413990
cmp eax, 0xffffffff
jne 0x406695
xorps xmm0, xmm0
movups xmmword [ebp - 0x2c], xmm0
movups xmmword [ebp - 0x1c], xmm0
jmp 0x4066ae
shl eax, 0xd
push 0x1f
add eax, 0x443e7e
push eax
lea eax, [ebp - 0x2c]
push 0x20
push eax
call fcn.00420956
add esp, 0x10
push str.bRead
call fcn.00413990
cmp eax, 0xffffffff
jne 0x4066c1
or eax, eax
jmp 0x4066d2
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0041acc9
add esp, 4
mov ecx, dword [ebp - 0x6c]
lea edx, [ebp - 0x68]
push 0x5e
mov byte [ebp - 0xc], al
call fcn.00404ea0
add esp, 4
push dword [0x4426a4]
call ebx
cmp ax, 0x64
jne 0x4065b0
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004163e0
mov esp, ebp
pop ebp
ret
Function at 0x40d3b0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x43d008]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, word [ecx + 4]
movq xmm0, qword [ecx + 6]
mov word [ebp - 0x2c], ax
movzx eax, word [ecx + 0xe]
mov word [ebp - 0x22], ax
mov al, byte [ecx + 0x10]
add ecx, 0x11
push ebx
push esi
mov byte [ebp - 0x20], al
mov esi, edx
movzx eax, word [ecx + 8]
mov bl, 0x2c
push ecx
movq qword [ebp - 0x2a], xmm0
movq xmm0, qword [ecx]
mov word [ebp - 0x17], ax
mov al, byte [ecx + 0xa]
push str.SELECT__FROM_OptionData_WHERE_Name_s
push 0x442698
mov word [ebp - 0x30], 0x2cc1
mov byte [ebp - 0x2e], 8
movq qword [ebp - 0x1f], xmm0
mov byte [ebp - 0x15], al
call fcn.00413700
add esp, 0xc
test al, al
je 0x40d52d
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40d52d
push 0xa
lea eax, [ebp - 0x14]
push eax
push str.SkillKey
call fcn.00413a10
push str.GameOption
call fcn.00413990
cmp eax, 0xffffffff
jne 0x40d45e
or eax, eax
jmp 0x40d46f
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0041acc9
add esp, 4
push str.Qkey
mov byte [ebp - 0xa], al
call fcn.00413990
cmp eax, 0xffffffff
jne 0x40d485
or eax, eax
jmp 0x40d496
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0041acc9
add esp, 4
push str.Wkey
mov byte [ebp - 9], al
call fcn.00413990
cmp eax, 0xffffffff
jne 0x40d4ac
or eax, eax
jmp 0x40d4bd
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0041acc9
add esp, 4
push str.Ekey
mov byte [ebp - 8], al
call fcn.00413990
cmp eax, 0xffffffff
jne 0x40d4d3
or eax, eax
jmp 0x40d4e4
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0041acc9
add esp, 4
push str.ChatWindow
mov byte [ebp - 7], al
call fcn.00413990
cmp eax, 0xffffffff
jne 0x40d4fa
or eax, eax
jmp 0x40d50b
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0041acc9
add esp, 4
push dword [0x4426a4]
mov byte [ebp - 6], al
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov bl, byte [ebp - 0x2f]
jmp 0x40d55f
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
or eax, 0xffffffff
mov dword [ebp - 0xa], 0xffffff15
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov word [ebp - 0xc], ax
mov byte [ebp - 6], 0xf
movzx eax, bl
push eax
lea eax, [ebp - 0x30]
push eax
push esi
call fcn.00414e90
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004163e0
mov esp, ebp
pop ebp
ret
Function at 0x40d580
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x103c
call fcn.0042f3a0
mov eax, dword [0x43d008]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ecx + 0x12], 0
movzx eax, word [ecx + 4]
movq xmm0, qword [ecx + 6]
mov word [ebp - 0x101c], ax
movzx eax, word [ecx + 0xe]
mov word [ebp - 0x1012], ax
mov al, byte [ecx + 0x10]
push ebx
mov byte [ebp - 0x1010], al
mov ebx, 0x14
mov al, byte [ecx + 0x11]
push esi
push edi
mov dword [ebp - 0x1038], edx
mov dword [ebp - 0x1034], ecx
mov byte [ebp - 0x1020], 0xc2
mov byte [ebp - 0x101d], 9
movq qword [ebp - 0x101a], xmm0
mov byte [ebp - 0x100f], al
mov byte [ebp - 0x100e], 0
mov dword [ebp - 0x100c], 0
jbe 0x40d76b
lea edi, [ebp - 0xff4]
lea esi, [ecx + 0x18]
push dword [esi]
push str.SELECT_Pet_Level_Pet_Exp_FROM_T_PetItem_Info_WHERE_ItemSerial_d
push 0x442698
call fcn.00413700
add esp, 0xc
test al, al
je 0x40d6c5
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40d6c5
mov al, byte [esi - 4]
mov byte [ebp - 0x1030], al
mov eax, dword [esi]
push str.Pet_Level
mov dword [ebp - 0x102c], eax
call fcn.00413990
cmp eax, 0xffffffff
jne 0x40d668
or eax, eax
jmp 0x40d679
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0041acc9
add esp, 4
push str.Pet_Exp
mov byte [ebp - 0x1028], al
call fcn.00413990
cmp eax, 0xffffffff
jne 0x40d692
or eax, eax
jmp 0x40d6a3
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0041acc9
add esp, 4
push dword [0x4426a4]
mov dword [ebp - 0x1024], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x40d733
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0
push 1
push dword [esi]
push str.INSERT_INTO_T_PetItem_Info__ItemSerial_Pet_Level_Pet_Exp__VALUES___d__d__d_
push 0x442698
call fcn.00413700
add esp, 0x14
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov al, byte [esi - 4]
mov byte [ebp - 0x1030], al
mov eax, dword [esi]
mov dword [ebp - 0x102c], eax
mov byte [ebp - 0x1028], 1
mov dword [ebp - 0x1024], 0
mov eax, dword [ebp - 0x1034]
add ebx, 0x10
movups xmm0, xmmword [ebp - 0x1030]
mov ecx, dword [ebp - 0x100c]
add esi, 8
inc byte [ebp - 0x100e]
inc ecx
movzx eax, byte [eax + 0x12]
movups xmmword [edi], xmm0
add edi, 0x10
mov dword [ebp - 0x100c], ecx
cmp ecx, eax
jl 0x40d612
mov eax, ebx
mov byte [ebp - 0x101e], bl
shr eax, 8
mov byte [ebp - 0x101f], al
mov eax, dword [ebp - 0x1010]
movups xmm0, xmmword [ebp - 0x1020]
mov dword [ebp - 0xff8], eax
lea eax, [ebp - 0x1008]
push ebx
push eax
push dword [ebp - 0x1038]
movups xmmword [ebp - 0x1008], xmm0
call fcn.00414e90
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004163e0
mov esp, ebp
pop ebp
ret