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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
lea eax, [esi + 6]
push edi
push eax
push str.SELECT__FROM_EventGoldenArcher_WHERE_Account_s
mov ecx, 0x4ed8c0
mov dword [ebp - 4], eax
call fcn.00414e40
add esp, 8
test al, al
je 0x40db6d
mov eax, dword [0x4ed8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40db6d
push str.RenaCount
mov ebx, 0x4ed8c0
call fcn.00415000
mov ecx, dword [0x4ed8cc]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push ecx
mov ebx, eax
call edi
mov edx, dword [0x4ed8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [esi + 0x14]
add eax, ebx
cmp eax, 0x7fffffff
jbe 0x40db39
mov eax, closesocket
mov ecx, dword [ebp - 4]
push ecx
push eax
push str.UPDATE_EventGoldenArcher_SET_RenaCount_d_WHERE_Account_s
mov ecx, 0x4ed8c0
call fcn.00414e40
mov edx, dword [0x4ed8cc]
add esp, 0xc
push edx
call edi
mov eax, dword [0x4ed8cc]
push 2
push eax
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x4ed8cc]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push ecx
call ebx
mov edx, dword [0x4ed8cc]
mov edi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push edx
call edi
mov eax, dword [esi + 0x14]
mov ecx, dword [ebp - 4]
push eax
push ecx
push str.INSERT_INTO_EventGoldenArcher__Account_RenaCount_StoneCount__VALUES___s__d_0_
mov ecx, 0x4ed8c0
call fcn.00414e40
mov edx, dword [0x4ed8cc]
add esp, 0xc
push edx
call ebx
mov eax, dword [0x4ed8cc]
push 2
push eax
call edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40f4d0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ebx
call fcn.0040f290
test eax, eax
je 0x40f4ee
pop edi
mov al, 3
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f4f3
sub eax, edx
xor edx, edx
test eax, eax
jle 0x40f525
mov cl, byte [edx + ebx]
cmp cl, 0x20
je 0x40f5db
cmp cl, 0x22
je 0x40f5db
cmp cl, 0x27
je 0x40f5db
inc edx
cmp edx, eax
jl 0x40f502
mov edi, dword [ebp + 0xc]
push edi
push ebx
push str.WZ_GuildCreate__s__s
mov ecx, 0x4ed8c0
call fcn.00414e40
add esp, 0xc
test al, al
je 0x40f6ce
mov eax, dword [0x4ed8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40f6ce
push esi
push 0x4ee4ee
call dword [sym.imp.MSVCR100.dll_atoi]
add esp, 4
mov esi, 0x4ed8c0
test eax, eax
jne 0x40f6be
call fcn.00414fe0
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, 0x20
lea edx, [ecx - 0x1f]
call fcn.00415280
push ebx
push str.UPDATE_Guild_SET_G_Mark__WHERE_G_Name_s
mov ecx, esi
call fcn.00414e40
add esp, 8
call fcn.00414fe0
push edi
push 0x80
push str.UPDATE_GuildMember_SET_G_Status_d_WHERE_Name_s
mov ecx, esi
call fcn.00414e40
add esp, 0xc
call fcn.00414fe0
push 0x6c4
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
test eax, eax
je 0x40f5e5
mov esi, eax
call fcn.0040eac0
mov edi, eax
mov dword [ebp - 4], edi
jmp 0x40f5ef
pop edi
mov al, 4
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov dword [ebp - 4], 0
mov edi, dword [ebp - 4]
push ebx
push str.SELECT_Number_FROM_Guild_WHERE_G_Name_s
mov ecx, 0x4ed8c0
call fcn.00414e40
mov edx, dword [0x4ed8cc]
add esp, 8
push edx
call dword [sym.imp.ODBC32.dll_SQLFetch]
push str.Number
mov ebx, 0x4ed8c0
call fcn.00415000
mov esi, ebx
mov dword [edi], eax
call fcn.00414fe0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [edi + 8], ecx
mov edx, dword [eax + 4]
mov dword [edi + 0xc], edx
movzx eax, byte [eax + 8]
mov byte [edi + 0x10], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov esi, dword [ebp + 0x10]
mov dword [edi + 0x11], ecx
mov edx, dword [eax + 4]
mov dword [edi + 0x15], edx
movzx ecx, word [eax + 8]
mov word [edi + 0x19], cx
movzx edx, byte [eax + 0xa]
mov al, byte [ebp + 0x14]
mov byte [edi + 0x1b], dl
add edi, 0x58
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 4]
mov byte [esi + 0x6b8], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [esi + 0x78], ecx
mov edx, dword [eax + 4]
mov dword [esi + 0x7c], edx
movzx ecx, word [eax + 8]
mov word [esi + 0x80], cx
movzx edx, byte [eax + 0xa]
mov eax, dword [esi]
mov byte [esi + 0x82], dl
mov dword [ebp + 0xc], eax
lea edx, [ebp + 0xc]
mov eax, 0x422704
mov dword [esi + 0x88], 0x80
call fcn.00410210
mov dword [eax], esi
pop esi
pop edi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call fcn.00414fe0
pop esi
pop edi
mov al, 2
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [0x4ed8cc]
push ecx
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov edx, dword [0x4ed8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40f7f0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
call fcn.0040f290
mov edi, eax
test edi, edi
jne 0x40f809
xor al, al
pop edi
pop ebp
ret 8
push ebx
call fcn.0040f3f0
test eax, eax
je 0x40f81a
mov al, 3
pop edi
pop ebp
ret 8
push ebx
push str.SELECT__FROM_GuildMember_WHERE_Name_s
mov ecx, 0x4ed8c0
call fcn.00414e40
add esp, 8
test al, al
je 0x40f866
mov eax, dword [0x4ed8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40f866
mov ecx, dword [0x4ed8cc]
push ecx
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov edx, dword [0x4ed8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov al, 4
pop edi
pop ebp
ret 8
mov eax, dword [0x4ed8cc]
push esi
push eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov ecx, dword [0x4ed8cc]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov esi, 1
lea eax, [edi + 0x8c]
lea ecx, [ecx]
cmp byte [eax], 0
je 0x40f8a6
inc esi
add eax, 0x14
cmp esi, 0x50
jl 0x40f890
pop esi
mov al, 2
pop edi
pop ebp
ret 8
push ebx
lea edx, [esi + esi*4 + 0x1e]
lea eax, [edi + edx*4]
push 0xb
push eax
call dword [sym.imp.MSVCR100.dll_strcpy_s]
mov edx, dword [ebp + 0xc]
lea ecx, [esi + esi*4]
lea eax, [edi + ecx*4]
mov dword [eax + 0x84], edx
mov dword [eax + 0x88], 0
mov eax, dword [ebp + 8]
push 0
push eax
push ebx
push str.INSERT_INTO_GuildMember__Name_G_Name_G_Level_G_Status__VALUES___s__s_1__d_
mov ecx, 0x4ed8c0
call fcn.00414e40
mov ecx, dword [0x4ed8cc]
add esp, 0x1c
push ecx
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov edx, dword [0x4ed8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop esi
mov al, 1
pop edi
pop ebp
ret 8
Function at 0x411850
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x421018]
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 - 0x122], cx
mov ecx, dword [eax + 0xa]
mov dword [ebp - 0x11c], ecx
movzx ecx, byte [eax + 0x10]
mov dword [ebp - 0x120], edx
movzx edx, word [eax + 0xe]
add eax, 0x11
mov byte [ebp - 0x116], cl
mov ecx, dword [eax + 4]
mov word [ebp - 0x118], dx
mov edx, dword [eax]
mov dword [ebp - 0x111], ecx
movzx ecx, byte [eax + 0xa]
push ebx
mov dword [ebp - 0x115], edx
movzx edx, word [eax + 8]
push eax
mov byte [ebp - 0x10b], cl
xor bl, bl
push str.SELECT_Data_FROM_HelperData_WHERE_Name_s
mov ecx, 0x4ed8c0
mov dword [ebp - 0x128], 0x172001c2
mov byte [ebp - 0x124], bl
mov word [ebp - 0x10d], dx
call fcn.00414e40
add esp, 8
test al, al
je 0x411938
mov edx, dword [0x4ed8cc]
push edx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x411938
push 0x100
lea eax, [ebp - 0x109]
push eax
push str.Data
mov byte [ebp - 0x10a], bl
call fcn.00415200
mov ecx, dword [0x4ed8cc]
push ecx
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov edx, dword [0x4ed8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x411973
mov eax, dword [0x4ed8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov ecx, dword [0x4ed8cc]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x100
lea edx, [ebp - 0x109]
push 0xff
push edx
mov byte [ebp - 0x10a], 1
call sub.MSVCR100.dll_memset
add esp, 0xc
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x128]
push eax
push ecx
mov ebx, 0x120
call fcn.00416c00
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00417d4a
mov esp, ebp
pop ebp
ret 8
Function at 0x4119a0
Capabilities:
Reference sql statements

Disassembly:
push ebx
push esi
push edi
mov edi, eax
lea esi, [edi + 0x13]
push esi
push str.SELECT_Name_FROM_HelperData_WHERE_Name_s
mov ecx, 0x4ed8c0
call fcn.00414e40
add esp, 8
test al, al
je 0x411a52
mov eax, dword [0x4ed8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x411a52
mov ecx, dword [0x4ed8cc]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push ecx
call ebx
mov edx, dword [0x4ed8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [0x4ed8cc]
push 0x5b6680
push 0
add edi, 0x1e
push edi
push 0
push 0x100
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push eax
mov dword [0x5b6680], 0x100
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
push esi
push str.UPDATE_HelperData_SET_Data__WHERE_Name_s
mov ecx, 0x4ed8c0
call fcn.00414e40
mov ecx, dword [0x4ed8cc]
add esp, 8
push ecx
call ebx
mov edx, dword [0x4ed8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop edi
pop esi
pop ebx
ret
mov eax, dword [0x4ed8cc]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push eax
call ebx
mov ecx, dword [0x4ed8cc]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov edx, dword [0x4ed8cc]
push 0x5b6680
push 0
add edi, 0x1e
push edi
push 0
push 0x100
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push edx
mov dword [0x5b6680], 0x100
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
push esi
push str.INSERT_INTO_HelperData__Name_Data__VALUES___s___
mov ecx, 0x4ed8c0
call fcn.00414e40
mov eax, dword [0x4ed8cc]
add esp, 8
push eax
call ebx
mov ecx, dword [0x4ed8cc]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop edi
pop esi
pop ebx
ret
Function at 0x411c90
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x421018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x422930]
push ebx
push esi
push edi
test eax, eax
js 0x411d9d
cmp eax, 1
jge 0x411d9d
mov esi, eax
imul esi, esi, 0x214
add esi, 0x42271c
push 0x41e0c4
inc eax
lea ebx, [esi + 4]
push 0x100
mov dword [0x422930], eax
push ebx
mov dword [esi], 1
call dword [sym.imp.MSVCR100.dll_strcpy_s]
add esp, 0xc
cmp dword [esi], 0
je 0x411d9d
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0xe]
movzx ecx, word [ebp - 0x12]
movzx edx, word [ebp - 0x14]
push eax
push ecx
push edx
push ebx
lea edi, [esi + 0x110]
push str.._s_04d__02d__02d.txt
push edi
mov dword [esi + 0x104], eax
mov dword [esi + 0x108], ecx
mov dword [esi + 0x10c], edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x210], eax
cmp eax, 0xffffffff
jne 0x411d78
mov dword [esi], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417d4a
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x411d9d
mov ecx, dword [esi + 0x210]
push ecx
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417d4a
mov esp, ebp
pop ebp
ret
Function at 0x411db0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
mov eax, dword [0x421018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test eax, eax
js 0x411fa9
cmp eax, dword [ecx + 0x218]
jge 0x411fa9
imul eax, eax, 0x214
cmp dword [eax + ecx + 4], 0
push esi
lea esi, [eax + ecx + 4]
je 0x411fa8
push ebx
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x80e]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
cmp ecx, dword [esi + 0x104]
jne 0x411e35
movzx edx, word [ebp - 0x812]
cmp edx, dword [esi + 0x108]
jne 0x411e35
movzx eax, word [ebp - 0x814]
cmp eax, dword [esi + 0x10c]
je 0x411ef2
mov ecx, dword [esi + 0x210]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, word [ebp - 0x80e]
movzx ecx, word [ebp - 0x812]
movzx edx, word [ebp - 0x814]
push eax
push ecx
push edx
mov dword [esi + 0x10c], edx
lea edx, [esi + 4]
push edx
lea edi, [esi + 0x110]
push str.._s_04d__02d__02d.txt
push edi
mov dword [esi + 0x104], eax
mov dword [esi + 0x108], ecx
call ebx
add esp, 0x18
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x210], eax
pop edi
cmp eax, 0xffffffff
jne 0x411ebd
pop ebx
mov dword [esi], 0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417d4a
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x411ef2
mov eax, dword [esi + 0x210]
push eax
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417d4a
mov esp, ebp
pop ebp
ret
push 0x3ff
lea ecx, [ebp - 0x803]
push 0
push ecx
mov byte [ebp - 0x804], 0
call sub.MSVCR100.dll_memset
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
push edx
push eax
lea ecx, [ebp - 0x804]
push 0x400
push ecx
call dword [sym.imp.MSVCR100.dll_vsprintf_s]
push 0x3ff
lea edx, [ebp - 0x403]
push 0
push edx
mov byte [ebp - 0x404], 0
call sub.MSVCR100.dll_memset
movzx ecx, word [ebp - 0x808]
movzx edx, word [ebp - 0x80a]
lea eax, [ebp - 0x804]
push eax
movzx eax, word [ebp - 0x80c]
push ecx
push edx
push eax
lea ecx, [ebp - 0x404]
push str._02d:_02d:_02d__s_r_n
push ecx
call ebx
lea eax, [ebp - 0x404]
add esp, 0x40
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411f80
mov ecx, dword [esi + 0x210]
sub eax, edx
push 0
lea edx, [ebp - 0x818]
push edx
push eax
lea eax, [ebp - 0x404]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417d4a
mov esp, ebp
pop ebp
ret
Function at 0x411ff0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, eax
movzx eax, word [esi + 4]
mov ecx, dword [esi + 6]
mov edx, dword [esi + 0xa]
add esi, 6
mov dword [ebp - 0x16], ecx
mov cl, byte [esi + 0xa]
push edi
mov word [ebp - 0x18], ax
movzx eax, word [esi + 8]
mov byte [ebp - 0xc], cl
push esi
push str.SELECT__FROM_LuckyCoin_WHERE_AccountID_s
mov ecx, 0x4ed8c0
mov dword [ebp - 0x1c], 0x1a18c1
mov dword [ebp - 0x12], edx
mov word [ebp - 0xe], ax
mov byte [ebp - 0xb], 0
call fcn.00414e40
add esp, 8
test al, al
je 0x412084
mov edx, dword [0x4ed8cc]
push edx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x412084
push str.LuckyCoin
mov ebx, 0x4ed8c0
call fcn.00415000
mov dword [ebp - 8], eax
mov eax, dword [0x4ed8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov ecx, dword [0x4ed8cc]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x4120ee
mov edx, dword [0x4ed8cc]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push edx
call edi
mov eax, dword [0x4ed8cc]
mov ebx, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push eax
call ebx
push esi
push str.INSERT_INTO_LuckyCoin__AccountID_LuckyCoin__VALUES___s_0_
mov ecx, 0x4ed8c0
call fcn.00414e40
add esp, 8
test al, al
jne 0x4120d4
mov ecx, dword [0x4ed8cc]
push ecx
call edi
mov edx, dword [0x4ed8cc]
push 2
push edx
call ebx
mov byte [ebp - 0xb], 1
jmp 0x4120ee
mov eax, dword [0x4ed8cc]
push eax
call edi
mov ecx, dword [0x4ed8cc]
push 2
push ecx
call ebx
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x1c]
push edx
push eax
mov ebx, 0x18
call fcn.00416c00
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x412110
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov ax, word [ecx + 4]
mov edx, dword [ecx + 6]
mov word [ebp - 0x18], ax
lea eax, [ecx + 6]
mov cl, byte [ecx + 0x11]
mov dword [ebp - 0x16], edx
mov edx, dword [eax + 4]
mov dword [ebp - 0x12], edx
mov dx, word [eax + 8]
push ebx
mov word [ebp - 0xe], dx
mov dl, byte [eax + 0xa]
push eax
mov byte [ebp - 0xa], cl
push str.SELECT__FROM_LuckyCoin_WHERE_AccountID_s
mov ecx, 0x4ed8c0
mov bl, 1
mov dword [ebp - 0x1c], 0x11a18c1
mov byte [ebp - 0xc], dl
mov byte [ebp - 0xb], 0
call fcn.00414e40
add esp, 8
test al, al
je 0x4121a8
mov edx, dword [0x4ed8cc]
push edx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4121a8
push str.LuckyCoin
mov ebx, 0x4ed8c0
call fcn.00415000
mov dword [ebp - 8], eax
mov eax, dword [0x4ed8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov ecx, dword [0x4ed8cc]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x4121c6
mov edx, dword [0x4ed8cc]
push edx
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov eax, dword [0x4ed8cc]
push 2
push eax
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov byte [ebp - 0xb], bl
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
push ecx
push edx
mov ebx, 0x18
call fcn.00416c00
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4121e0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov ax, word [ecx + 4]
mov edx, dword [ecx + 6]
mov word [ebp - 0x18], ax
lea eax, [ecx + 6]
mov ecx, dword [ecx + 0x14]
mov dword [ebp - 0x16], edx
mov edx, dword [eax + 4]
mov dword [ebp - 0x12], edx
mov dx, word [eax + 8]
push ebx
mov word [ebp - 0xe], dx
mov dl, byte [eax + 0xa]
push eax
mov dword [ebp - 8], ecx
push str.SELECT__FROM_LuckyCoin_WHERE_AccountID_s
mov ecx, 0x4ed8c0
mov dword [ebp - 0x1c], 0x21a1cc1
mov byte [ebp - 0xc], dl
mov byte [ebp - 0xb], 0
call fcn.00414e40
add esp, 8
test al, al
je 0x412276
mov edx, dword [0x4ed8cc]
push edx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x412276
push str.LuckyCoin
mov ebx, 0x4ed8c0
call fcn.00415000
mov dword [ebp - 4], eax
mov eax, dword [0x4ed8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov ecx, dword [0x4ed8cc]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x412295
mov edx, dword [0x4ed8cc]
push edx
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov eax, dword [0x4ed8cc]
push 2
push eax
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov byte [ebp - 0xb], 1
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
push ecx
push edx
mov ebx, 0x1c
call fcn.00416c00
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4122b0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
lea eax, [esi + 6]
push edi
push eax
push str.SELECT_LuckyCoin_FROM_LuckyCoin_WHERE_AccountID_s
mov ecx, 0x4ed8c0
mov dword [ebp - 4], eax
call fcn.00414e40
add esp, 8
test al, al
je 0x41235d
mov eax, dword [0x4ed8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x41235d
push str.LuckyCoin
mov ebx, 0x4ed8c0
call fcn.00415000
mov ecx, dword [0x4ed8cc]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push ecx
mov ebx, eax
call edi
mov edx, dword [0x4ed8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [esi + 0x14]
add eax, ebx
cmp eax, 0x7fffffff
jbe 0x412329
mov eax, closesocket
mov ecx, dword [ebp - 4]
push ecx
push eax
push str.UPDATE_LuckyCoin_SET_LuckyCoin_d_WHERE_AccountID_s
mov ecx, 0x4ed8c0
call fcn.00414e40
mov edx, dword [0x4ed8cc]
add esp, 0xc
push edx
call edi
mov eax, dword [0x4ed8cc]
push 2
push eax
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x4ed8cc]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push ecx
call ebx
mov edx, dword [0x4ed8cc]
mov edi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push edx
call edi
mov eax, dword [esi + 0x14]
mov ecx, dword [ebp - 4]
push eax
push ecx
push str.INSERT_INTO_LuckyCoin__AccountID_LuckyCoin__VALUES___s__d_
mov ecx, 0x4ed8c0
call fcn.00414e40
mov edx, dword [0x4ed8cc]
add esp, 0xc
push edx
call ebx
mov eax, dword [0x4ed8cc]
push 2
push eax
call edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4123b0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
add edi, 6
push edi
push str.SELECT_LuckyCoin_FROM_LuckyCoin_WHERE_AccountID_s
mov ecx, 0x4ed8c0
call fcn.00414e40
add esp, 8
test al, al
je 0x41245b
mov eax, dword [0x4ed8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x41245b
push str.LuckyCoin
mov ebx, 0x4ed8c0
call fcn.00415000
mov ecx, dword [0x4ed8cc]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push ecx
mov esi, eax
call ebx
mov edx, dword [0x4ed8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
cmp eax, esi
jbe 0x412426
xor esi, esi
jmp 0x412428
sub esi, eax
push edi
push esi
push str.UPDATE_LuckyCoin_SET_LuckyCoin_d_WHERE_AccountID_s
mov ecx, 0x4ed8c0
call fcn.00414e40
mov ecx, dword [0x4ed8cc]
add esp, 0xc
push ecx
call ebx
mov edx, dword [0x4ed8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop edi
pop esi
pop ebx
pop ebp
ret 4
mov eax, dword [0x4ed8cc]
mov esi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push eax
call esi
mov ecx, dword [0x4ed8cc]
mov ebx, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push ecx
call ebx
push 0
push 0
push 0
push edi
push str.INSERT_INTO_LuckyCoin__AccountID_LuckyCoin__VALUES___s__d_
mov ecx, 0x4ed8c0
call fcn.00414e40
mov edx, dword [0x4ed8cc]
add esp, 0x14
push edx
call esi
mov eax, dword [0x4ed8cc]
push 2
push eax
call ebx
pop edi
pop esi
pop ebx
pop ebp
ret 4