joyce8/EMBER2024-capa huggingface dataset:
Function at 0x56a693
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
cld
xor edx, edx
mov edx, dword fs:[edx + 0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
push 0x18
pop ecx
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x56a6c1
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x56a6b8
cmp edi, 0x6a4abc5b
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x56a6b0
mov eax, ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x56a6e2
mov esp, ebp
pop ebp
ret

Function at 0x56a6e6
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
add esp, 0xffffffec
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 0x10]
xor edx, edx
xchg edx, eax
mov esi, 0x3c
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov esi, dword [eax + 0x78]
add esi, 0x18
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
add esi, 4
lea edi, [ebp - 8]
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
stosd dword es:[edi], eax
mov dword [ebp - 8], eax
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
push eax
stosd dword es:[edi], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
pop esi
mov dword [ebp - 4], 0
push esi
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
xchg edi, eax
mov ebx, edi
push edi
xor al, al
scasb al, byte es:[edi]
jne 0x56a752
pop esi
sub edi, ebx
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x56a77f
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x56a76e
xor ecx, eax
xor edx, ebx
dec edi
jne 0x56a75f
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop edx
cmp edx, eax
je 0x56a7a5
pop esi
add esi, 4
add dword [ebp - 4], 1
jmp 0x56a746
pop esi
mov eax, dword [ebp - 4]
shl eax, 1
add eax, dword [ebp - 0x10]
xor esi, esi
xchg esi, eax
mov ax, word [esi]
shl ax, 2
add eax, dword [ebp - 8]
xchg esi, eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
pop ecx
pop edx
pop edi
pop ebx
pop esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x56a7d1
mov esp, ebp
pop ebp
ret 0xc

Function at 0x56b742
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
cmp edx, esi
je 0x56b77d
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [edx + 0xc]
jb 0x56b776
mov eax, dword [edx + 8]
add eax, dword [edx + 0xc]
cmp ecx, eax
jb 0x56b782
add edx, 0x28
cmp edx, esi
jne 0x56b767
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x56b77f
Function at 0x4017f0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416948
mov eax, dword fs:[0]
push eax
sub esp, 0x1c4
mov eax, dword [0x41f018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x128], ebx
mov dword [ebp - 4], ebx
xor eax, eax
cmp dword [ebp + 0x20], 0x10
mov ecx, 0x2a
lea esi, [ebp - 0x1d0]
lea edi, [ebp - 0x120]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x98], 0x6a09e667
mov dword [ebp - 0x94], 0xbb67ae85
mov dword [ebp - 0x90], 0x3c6ef372
mov dword [ebp - 0x8c], 0xa54ff53a
mov dword [ebp - 0x88], 0x510e527f
mov dword [ebp - 0x84], 0x9b05688c
mov dword [ebp - 0x80], 0x1f83d9ab
mov dword [ebp - 0x7c], 0x5be0cd19
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x120], ebx
jae 0x4018c1
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x1c]
lea esi, [ebp - 0x120]
call fcn.00401570
lea edi, [ebp - 0x30]
call fcn.00401620
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
mov byte [ebp - 0x38], 0
xor esi, esi
lea edi, [ebp - 0x78]
jmp 0x4018f0
movzx ecx, byte [ebp + esi - 0x30]
push ecx
push str._02x
push edi
call ebx
inc esi
add esp, 0xc
add edi, 2
cmp esi, 0x20
jb 0x4018f0
mov edi, dword [ebp - 0x124]
lea eax, [ebp - 0x78]
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401927
sub eax, edx
mov esi, eax
lea eax, [ebp - 0x78]
mov ecx, edi
call fcn.00401d00
cmp dword [ebp + 0x20], 0x10
jb 0x40194f
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00415bda
mov esp, ebp
pop ebp
ret
Function at 0x406390
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
movzx eax, word [edi + 4]
mov ecx, dword [edi + 6]
mov edx, dword [edi + 0xa]
push ebx
push esi
lea esi, [edi + 6]
mov word [ebp - 0x18], ax
movzx eax, word [esi + 8]
mov word [ebp - 0xe], ax
movzx eax, word [edi + 0x12]
mov dword [ebp - 0x16], ecx
mov cl, byte [esi + 0xa]
push eax
mov byte [ebp - 0xc], cl
push esi
push str.SELECT__FROM_GiftData_WHERE_Name_s_and__Index__d
mov ecx, 0x4eb8c0
mov dword [ebp - 0x1c], 0x30f16c1
mov dword [ebp - 0x12], edx
mov word [ebp - 0xa], ax
mov byte [ebp - 8], 0
mov dword [ebp - 4], 0
call fcn.00412e90
add esp, 0xc
test al, al
je 0x40642d
mov eax, dword [0x4eb8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40642d
push str.Count
mov ebx, 0x4eb8c0
call fcn.00413050
mov ecx, dword [0x4eb8cc]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push ecx
mov dword [ebp - 4], eax
call ebx
mov edx, dword [0x4eb8cc]
push 2
push edx
jmp 0x406475
mov eax, dword [0x4eb8cc]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push eax
call ebx
mov ecx, dword [0x4eb8cc]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
movzx edx, word [edi + 0x12]
push 0
push edx
push esi
push str.INSERT_INTO_GiftData__Name__Index__Count__VALUES___s__d_0_
mov ecx, 0x4eb8c0
call fcn.00412e90
mov eax, dword [0x4eb8cc]
add esp, 0x10
push eax
call ebx
mov ecx, dword [0x4eb8cc]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [edi + 0x14]
cmp eax, 0xffffffff
je 0x406488
cmp dword [ebp - 4], eax
jae 0x4064bb
movzx edx, word [edi + 0x12]
push edx
push esi
push str.UPDATE_GiftData_Set_CountCount1_WHERE_Name_s_and__Index__d
mov ecx, 0x4eb8c0
mov byte [ebp - 8], 1
call fcn.00412e90
mov eax, dword [0x4eb8cc]
add esp, 0xc
push eax
call ebx
mov ecx, dword [0x4eb8cc]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x1c]
push edx
push eax
mov ebx, 0x16
call fcn.00414a90
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x406870
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1cc
mov eax, dword [0x41f018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov cx, word [eax + 4]
mov edx, dword [eax + 6]
mov word [ebp - 0x1c2], cx
mov ecx, dword [eax + 0xa]
mov dword [ebp - 0x1bc], ecx
movzx ecx, byte [eax + 0x10]
mov dword [ebp - 0x1c0], edx
movzx edx, word [eax + 0xe]
add eax, 0x11
mov byte [ebp - 0x1b6], cl
mov ecx, dword [eax + 4]
mov word [ebp - 0x1b8], dx
mov edx, dword [eax]
mov dword [ebp - 0x1b1], ecx
movzx ecx, byte [eax + 0xa]
push ebx
mov dword [ebp - 0x1b5], edx
movzx edx, word [eax + 8]
push eax
mov byte [ebp - 0x1ab], cl
xor ebx, ebx
push str.SELECT__FROM_CustomPick_WHERE_Name_s
mov ecx, 0x4eb8c0
mov dword [ebp - 0x1c8], 0x13c001c2
mov byte [ebp - 0x1c4], bl
mov word [ebp - 0x1ad], dx
call fcn.00412e90
add esp, 8
test al, al
je 0x40698f
mov edx, dword [0x4eb8cc]
push edx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40698f
push 0x190
lea eax, [ebp - 0x1aa]
push eax
push str.CustomPickList
call fcn.00413250
push str.Money
mov ebx, 0x4eb8c0
call fcn.00413050
push str.Jewel
mov dword [ebp - 0x18], eax
call fcn.00413050
push str.ItemExc
mov dword [ebp - 0x14], eax
call fcn.00413050
push str.ItemSet
mov dword [ebp - 0x10], eax
call fcn.00413050
mov ecx, dword [0x4eb8cc]
push ecx
mov dword [ebp - 0xc], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov edx, dword [0x4eb8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x4069cb
mov eax, dword [0x4eb8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov ecx, dword [0x4eb8cc]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x190
lea edx, [ebp - 0x1aa]
push ebx
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x1c8]
push eax
push ecx
mov ebx, 0x1c0
call fcn.00414a90
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00415bda
mov esp, ebp
pop ebp
ret 8
Function at 0x406a00
Capabilities:
Reference sql statements

Disassembly:
push ebx
push edi
lea edi, [esi + 0x13]
push edi
push str.SELECT_Name_FROM_CustomPick_WHERE_Name_s
mov ecx, 0x4eb8c0
call fcn.00412e90
add esp, 8
test al, al
je 0x406ace
mov eax, dword [0x4eb8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x406ace
mov ecx, dword [0x4eb8cc]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push ecx
call ebx
mov edx, dword [0x4eb8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [0x4eb8cc]
push 0x5b4680
push 0
lea eax, [esi + 0x1e]
push eax
push 0
push 0x190
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push ecx
mov dword [0x5b4680], 0x190
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
mov edx, dword [esi + 0x1bc]
mov eax, dword [esi + 0x1b8]
mov ecx, dword [esi + 0x1b4]
push edi
push edx
mov edx, dword [esi + 0x1b0]
push eax
push ecx
push edx
push str.UPDATE_CustomPick_SET_CustomPickList___Money_d__Jewel_d__ItemExc_d__ItemSet_d__WHERE_Name_s
mov ecx, 0x4eb8c0
call fcn.00412e90
mov eax, dword [0x4eb8cc]
add esp, 0x18
push eax
call ebx
mov ecx, dword [0x4eb8cc]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop edi
pop ebx
ret
mov edx, dword [0x4eb8cc]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push edx
call ebx
mov eax, dword [0x4eb8cc]
push 2
push eax
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov edx, dword [0x4eb8cc]
push 0x5b4680
push 0
lea ecx, [esi + 0x1e]
push ecx
push 0
push 0x190
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push edx
mov dword [0x5b4680], 0x190
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
mov eax, dword [esi + 0x1bc]
mov ecx, dword [esi + 0x1b8]
mov edx, dword [esi + 0x1b4]
push eax
mov eax, dword [esi + 0x1b0]
push ecx
push edx
push eax
push edi
push str.INSERT_INTO_CustomPick__Name_CustomPickList_Money_Jewel_ItemExc_ItemSet__VALUES___s____d__d__d__d_
mov ecx, 0x4eb8c0
call fcn.00412e90
mov ecx, dword [0x4eb8cc]
add esp, 0x18
push ecx
call ebx
mov edx, dword [0x4eb8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop edi
pop ebx
ret
Function at 0x407040
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x41f018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
mov edi, dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, ecx
push esi
push 0
push 0
push 0x258
push 0x258
push 0
push SQLBindCol
push 0xa0000
push 0x4227c8
push 0x422760
push 0
mov dword [0x4227c4], esi
call edi
mov dword [0x42275c], eax
test eax, eax
jne 0x4070a4
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00415bda
mov esp, ebp
pop ebp
ret
push 0
push esi
push 0x6a
push eax
push 0
push 0
push 0
push 0
push 0x50000000
push 0
push str.msctls_statusbar32
push 0
call edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
mov esi, eax
push 0
push esi
call edi
lea eax, [ebp - 0x10]
push eax
push 3
push 0x404
push esi
mov dword [ebp - 0x10], 0x87
mov dword [ebp - 0xc], 0xeb
mov dword [ebp - 8], 0xffffffff
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp + 8]
mov edx, dword [0x42275c]
push ecx
push edx
call edi
mov eax, dword [0x42275c]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.00415bda
mov esp, ebp
pop ebp
ret
Function at 0x408600
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x41f018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov cx, word [eax + 4]
mov edx, dword [eax + 6]
push ebx
push esi
push edi
lea edi, [eax + 6]
mov word [ebp - 0x50], cx
mov ecx, dword [edi + 4]
mov dword [ebp - 0x4e], edx
mov dx, word [edi + 8]
mov dword [ebp - 0x4a], ecx
mov cl, byte [edi + 0xa]
mov word [ebp - 0x46], dx
lea edx, [eax + 0x11]
mov byte [ebp - 0x44], cl
mov word [ebp - 0x54], 0x12c1
mov byte [ebp - 0x52], 3
mov dword [ebp - 0x58], edx
xor ecx, ecx
lea ecx, [ecx]
mov al, byte [edx + ecx]
cmp al, 0x20
je 0x4087ca
cmp al, 0x22
je 0x4087ca
cmp al, 0x27
je 0x4087ca
inc ecx
cmp ecx, 0xb
jl 0x408650
push edx
push edi
push str.EXEC_WZ_DeleteCharacter__s__s
mov ecx, 0x4eb8c0
call fcn.00412e90
add esp, 0xc
test al, al
je 0x4087ca
mov edx, dword [0x4eb8cc]
push edx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4087ca
push 0x4ec4ee
call dword [sym.imp.MSVCR100.dll_atoi]
mov esi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov bl, al
mov eax, dword [0x4eb8cc]
add esp, 4
push eax
mov byte [ebp - 0x43], bl
call esi
mov ecx, dword [0x4eb8cc]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
cmp bl, 1
jne 0x4087e9
push 0x36
lea edx, [ebp - 0x3b]
push 0
push edx
mov byte [ebp - 0x3c], 0
call sub.MSVCR100.dll_memset
push edi
push str.SELECT__FROM_AccountCharacter_WHERE_Id_s
mov ecx, 0x4eb8c0
call fcn.00412e90
add esp, 0x14
test al, al
je 0x4087ad
mov eax, dword [0x4eb8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4087ad
push 0xb
lea ecx, [ebp - 0x3c]
push ecx
push str.GameID1
call fcn.004131c0
push 0xb
lea edx, [ebp - 0x31]
push edx
push str.GameID2
call fcn.004131c0
push 0xb
lea eax, [ebp - 0x26]
push eax
push str.GameID3
call fcn.004131c0
push 0xb
lea ecx, [ebp - 0x1b]
push ecx
push str.GameID4
call fcn.004131c0
push 0xb
lea edx, [ebp - 0x10]
push edx
push str.GameID5
call fcn.004131c0
mov esi, 0x4eb8c0
call fcn.00413030
mov ecx, dword [ebp - 0x58]
lea eax, [ebp - 0x3d]
push eax
push ecx
lea eax, [ebp - 0x3c]
call fcn.00415430
add esp, 8
test al, al
je 0x4087e9
movzx edx, byte [ebp - 0x3d]
push edi
inc edx
push edx
push str.UPDATE_AccountCharacter_SET_GameID_dNULL_WHERE_Id_s
mov ecx, esi
call fcn.00412e90
add esp, 0xc
call fcn.00413030
jmp 0x4087e9
mov eax, dword [0x4eb8cc]
push eax
call esi
mov ecx, dword [0x4eb8cc]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov byte [ebp - 0x43], 1
jmp 0x4087e9
mov edx, dword [0x4eb8cc]
push edx
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov eax, dword [0x4eb8cc]
push 2
push eax
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov byte [ebp - 0x43], 0
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x54]
push ecx
push edx
mov ebx, 0x12
call fcn.00414a90
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415bda
mov esp, ebp
pop ebp
ret
Function at 0x408ec0
Capabilities:
Enumerate pe sections
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
movzx eax, word [esi + 4]
mov ecx, dword [esi + 6]
mov edx, dword [esi + 0xa]
mov word [ebp - 0x30], ax
movzx eax, word [esi + 0xe]
mov dword [ebp - 0x2e], ecx
movzx ecx, byte [esi + 0x10]
mov word [ebp - 0x26], ax
mov al, byte [esi + 0x12]
mov byte [ebp - 0x22], al
mov eax, dword [0x4eb830]
mov byte [ebp - 0x24], cl
movzx ecx, byte [esi + 0x13]
inc eax
mov dword [ebp - 0x2a], edx
mov dl, byte [esi + 0x11]
push ebx
push edi
mov word [ebp - 0x34], 0x30c1
mov byte [ebp - 0x32], 7
mov byte [ebp - 0x23], dl
mov byte [ebp - 0x21], cl
mov dword [0x4eb830], eax
cmp eax, 0x7fffffff
jl 0x408f24
mov eax, 1
mov dword [0x4eb830], eax
movzx ecx, word [esi + 0x14]
mov edx, 0x1a04
mov dword [ebp - 0x20], eax
cmp cx, dx
je 0x408f43
mov edx, 0x1a05
cmp cx, dx
jne 0x408fd6
push eax
push str.SELECT_ItemSerial_FROM_T_PetItem_Info_WHERE_ItemSerial_d
mov ecx, 0x4eb8c0
call fcn.00412e90
add esp, 8
test al, al
je 0x408f8a
mov eax, dword [0x4eb8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x408f8a
mov ecx, dword [0x4eb8cc]
push ecx
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov edx, dword [0x4eb8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x408fd6
mov eax, dword [0x4eb8cc]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push eax
call edi
mov ecx, dword [0x4eb8cc]
mov ebx, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push ecx
call ebx
mov edx, dword [ebp - 0x20]
push 0
push 1
push edx
push str.INSERT_INTO_T_PetItem_Info__ItemSerial_Pet_Level_Pet_Exp__VALUES___d__d__d_
mov ecx, 0x4eb8c0
call fcn.00412e90
mov eax, dword [0x4eb8cc]
add esp, 0x10
push eax
call edi
mov ecx, dword [0x4eb8cc]
push 2
push ecx
call ebx
mov dx, word [esi + 0x14]
movzx eax, byte [esi + 0x16]
movzx ecx, byte [esi + 0x17]
mov word [ebp - 0x1c], dx
movzx edx, byte [esi + 0x18]
mov byte [ebp - 0x1a], al
movzx eax, byte [esi + 0x19]
mov byte [ebp - 0x18], dl
movzx edx, byte [esi + 0x1b]
mov byte [ebp - 0x17], al
mov ax, word [esi + 0x1c]
mov byte [ebp - 0x19], cl
movzx ecx, byte [esi + 0x1a]
mov byte [ebp - 0x15], dl
movzx edx, byte [esi + 0x1f]
mov word [ebp - 0x14], ax
movzx eax, byte [esi + 0x20]
mov byte [ebp - 0x16], cl
movzx ecx, byte [esi + 0x1e]
mov byte [ebp - 0x11], dl
movzx edx, byte [esi + 0x25]
mov byte [ebp - 0x10], al
movzx eax, byte [esi + 0x26]
mov byte [ebp - 0x12], cl
mov ecx, dword [esi + 0x21]
mov byte [ebp - 0xb], dl
lea edx, [ebp - 0x34]
mov byte [ebp - 0xa], al
mov eax, dword [ebp + 8]
mov dword [ebp - 0xf], ecx
mov ecx, dword [esi + 0x28]
push edx
push eax
mov ebx, 0x30
mov dword [ebp - 8], ecx
call fcn.00414a90
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409060
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x41f018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov cx, word [eax + 4]
mov edx, dword [eax + 6]
mov word [ebp - 0x3c], cx
mov ecx, dword [eax + 0xa]
mov dword [ebp - 0x36], ecx
movzx ecx, byte [eax + 0x10]
mov dword [ebp - 0x3a], edx
movzx edx, word [eax + 0xe]
add eax, 0x11
mov byte [ebp - 0x30], cl
mov ecx, dword [eax + 4]
mov word [ebp - 0x32], dx
mov edx, dword [eax]
mov dword [ebp - 0x2b], ecx
movzx ecx, byte [eax + 0xa]
push ebx
mov dword [ebp - 0x2f], edx
movzx edx, word [eax + 8]
push eax
mov byte [ebp - 0x25], cl
push str.SELECT__FROM_OptionData_WHERE_Name_s
mov ecx, 0x4eb8c0
mov word [ebp - 0x40], 0x3cc1
mov byte [ebp - 0x3e], 8
mov word [ebp - 0x27], dx
call fcn.00412e90
add esp, 8
test al, al
je 0x40917e
mov edx, dword [0x4eb8cc]
push edx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40917e
push 0x14
lea eax, [ebp - 0x24]
push eax
push str.SkillKey
call fcn.00413250
push str.GameOption
mov ebx, 0x4eb8c0
call fcn.00413050
push str.Qkey
mov byte [ebp - 0x10], al
call fcn.00413050
push str.Wkey
mov byte [ebp - 0xf], al
call fcn.00413050
push str.Ekey
mov byte [ebp - 0xe], al
call fcn.00413050
push str.ChatWindow
mov byte [ebp - 0xd], al
call fcn.00413050
push str.Rkey
mov byte [ebp - 0xc], al
call fcn.00413050
push str.QWERLevel
mov byte [ebp - 0xb], al
call fcn.00413050
mov ecx, dword [0x4eb8cc]
push ecx
mov dword [ebp - 8], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov edx, dword [0x4eb8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x4091b7
mov eax, dword [0x4eb8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov ecx, dword [0x4eb8cc]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
or eax, 0xffffffff
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov word [ebp - 0xc], 0xffff
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
movzx ebx, byte [ebp - 0x3f]
lea edx, [ebp - 0x40]
push edx
push eax
call fcn.00414a90
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00415bda
mov esp, ebp
pop ebp
ret
Function at 0x4091e0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1034
call fcn.004165c0
mov eax, dword [0x41f018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
cmp byte [esi + 0x12], 0
movzx eax, word [esi + 4]
mov ecx, dword [esi + 6]
mov edx, dword [esi + 0xa]
mov word [ebp - 0x1018], ax
movzx eax, word [esi + 0xe]
mov dword [ebp - 0x1016], ecx
mov cl, byte [esi + 0x10]
mov dword [ebp - 0x1012], edx
mov dl, byte [esi + 0x11]
mov ebx, 0x14
mov dword [ebp - 0x1024], esi
mov byte [ebp - 0x101c], 0xc2
mov byte [ebp - 0x1019], 9
mov dword [ebp - 0x1008], ebx
mov word [ebp - 0x100e], ax
mov byte [ebp - 0x100c], cl
mov byte [ebp - 0x100b], dl
mov byte [ebp - 0x100a], 0
mov dword [ebp - 0x1020], 0
jbe 0x4093b3
push edi
lea edi, [ebp - 0xff0]
add esi, 0x18
lea esp, [esp]
mov eax, dword [esi]
push eax
push str.SELECT_Pet_Level_Pet_Exp_FROM_T_PetItem_Info_WHERE_ItemSerial_d
mov ecx, 0x4eb8c0
call fcn.00412e90
add esp, 8
test al, al
je 0x409302
mov ecx, dword [0x4eb8cc]
push ecx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x409302
mov dl, byte [esi - 4]
mov eax, dword [esi]
push str.Pet_Level
mov ebx, 0x4eb8c0
mov byte [ebp - 0x1034], dl
mov dword [ebp - 0x1030], eax
call fcn.00413050
push str.Pet_Exp
mov byte [ebp - 0x102c], al
call fcn.00413050
mov ecx, dword [0x4eb8cc]
push ecx
mov ebx, eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov edx, dword [0x4eb8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [ebp - 0x1030]
jmp 0x409363
mov eax, dword [0x4eb8cc]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push eax
call ebx
mov ecx, dword [0x4eb8cc]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov edx, dword [esi]
push 0
push 1
push edx
push str.INSERT_INTO_T_PetItem_Info__ItemSerial_Pet_Level_Pet_Exp__VALUES___d__d__d_
mov ecx, 0x4eb8c0
call fcn.00412e90
mov eax, dword [0x4eb8cc]
add esp, 0x10
push eax
call ebx
mov ecx, dword [0x4eb8cc]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov dl, byte [esi - 4]
mov eax, dword [esi]
mov byte [ebp - 0x1034], dl
mov byte [ebp - 0x102c], 1
xor ebx, ebx
mov ecx, dword [ebp - 0x1034]
mov edx, dword [ebp - 0x102c]
add dword [ebp - 0x1008], 0x10
inc byte [ebp - 0x100a]
mov dword [edi], ecx
mov ecx, dword [ebp - 0x1024]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x1020]
mov dword [edi + 8], edx
movzx edx, byte [ecx + 0x12]
inc eax
mov dword [edi + 0xc], ebx
add edi, 0x10
add esi, 8
mov dword [ebp - 0x1020], eax
cmp eax, edx
jl 0x409280
mov ebx, dword [ebp - 0x1008]
pop edi
mov edx, dword [ebp - 0x1018]
mov eax, ebx
shr eax, 8
mov byte [ebp - 0x101b], al
mov eax, dword [ebp - 0x1014]
mov byte [ebp - 0x101a], bl
mov ecx, dword [ebp - 0x101c]
mov dword [ebp - 0x1004], ecx
mov ecx, dword [ebp - 0x1010]
mov dword [ebp - 0xffc], eax
lea eax, [ebp - 0x1004]
mov dword [ebp - 0xff8], ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x1000], edx
mov edx, dword [ebp - 0x100c]
push eax
push ecx
mov dword [ebp - 0xff4], edx
call fcn.00414a90
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00415bda
mov esp, ebp
pop ebp
ret