joyce8/EMBER2024-capa huggingface dataset:
Function at 0x453740
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x491fb3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0048517a
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0048a812
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0048bd2e
test eax, eax
je 0x45385c
mov ecx, dword [esp + 0x3c]
call fcn.0048a83f
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x453820
push edi
mov ecx, esi
call fcn.00487ea8
mov ecx, esi
call fcn.00453a10
cmp dword [esp + 0x38], 1
jne 0x453855
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00487fe3
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x455a60
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x455a93
push esi
call fcn.00463cd0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x455a8c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x455b19
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x455b02
mov eax, dword [esi + 8]
test eax, eax
je 0x455ab7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x455afe
cmp eax, 2
je 0x455b02
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x455aaa
cmp eax, 3
je 0x455add
cmp eax, 1
jne 0x455aaa
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x455aaa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x455aaa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00455b40
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x455b28
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00455b40
add esp, 4
pop esi
ret

Function at 0x4563b0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4563d1
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x4563d1
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4563d1
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x485f6f
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x485fa7
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00483ffc
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00483fd4
jmp 0x485fb3
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x487660
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4876a2
call fcn.0048d119
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4876a2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x487699
xor eax, eax
jmp 0x4876aa
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004876b0
pop edi
pop esi
pop ebx
ret 4
Function at 0x48d649
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x48d677
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48d695
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0048d5af
jmp 0x48d695
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48d695
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0048d5af
test edi, edi
mov eax, edi
jne 0x48d67f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402460
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov ecx, dword [ebp + 8]
movq xmm0, qword [ecx + 6]
push ebx
push esi
movzx eax, word [ecx + 4]
lea esi, [ecx + 6]
push edi
mov word [ebp - 0x1c], ax
movzx eax, word [esi + 8]
push esi
mov word [ebp - 0x12], ax
mov al, byte [esi + 0xa]
push str.SELECT__FROM_CashShopData_WHERE_AccountID_s
push 0x43dde8
mov dword [ebp - 0x20], 0x1820c1
movq qword [ebp - 0x1a], xmm0
mov byte [ebp - 0x10], al
mov byte [ebp - 0xf], 0
call fcn.00414500
add esp, 0xc
test al, al
je 0x40255c
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40255c
push str.WCoinC
call fcn.00414750
cmp eax, 0xffffffff
jne 0x4024de
or eax, eax
jmp 0x4024ef
shl eax, 0xd
add eax, 0x43f5ce
push eax
call fcn.0041db2e
add esp, 4
push str.WCoinP
mov dword [ebp - 0xc], eax
call fcn.00414750
cmp eax, 0xffffffff
jne 0x402505
or eax, eax
jmp 0x402516
shl eax, 0xd
add eax, 0x43f5ce
push eax
call fcn.0041db2e
add esp, 4
push str.GoblinPoint
mov dword [ebp - 8], eax
call fcn.00414750
cmp eax, 0xffffffff
jne 0x40252c
or eax, eax
jmp 0x40253d
shl eax, 0xd
add eax, 0x43f5ce
push eax
call fcn.0041db2e
add esp, 4
push dword [0x43ddf4]
mov dword [ebp - 4], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x4025ca
push dword [0x43ddf4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov ebx, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ddf4]
call ebx
push esi
push str.INSERT_INTO_CashShopData__AccountID_WCoinC_WCoinP_GoblinPoint__VALUES___s_0_0_0_
push 0x43dde8
call fcn.00414500
add esp, 0xc
push dword [0x43ddf4]
test al, al
jne 0x4025a9
call edi
push 2
push dword [0x43ddf4]
call ebx
mov byte [ebp - 0xf], 1
jmp 0x4025ca
call edi
push 2
push dword [0x43ddf4]
call ebx
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 0x20
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0xc]
call fcn.00415df0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4025f0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov ecx, dword [ebp + 8]
movq xmm0, qword [ecx + 6]
lea edx, [ecx + 6]
push esi
push edi
movzx eax, word [ecx + 4]
mov word [ebp - 0x38], ax
movzx eax, word [edx + 8]
mov word [ebp - 0x2e], ax
mov al, byte [edx + 0xa]
mov byte [ebp - 0x2c], al
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ecx + 0x1c]
mov dword [ebp - 0x20], eax
movzx eax, word [ecx + 0x20]
mov word [ebp - 0x1c], ax
mov eax, dword [ecx + 0x24]
push edx
mov dword [ebp - 0x18], eax
mov al, byte [ecx + 0x28]
push str.SELECT__FROM_CashShopData_WHERE_AccountID_s
push 0x43dde8
mov dword [ebp - 0x3c], 0x1183cc1
mov dword [ebp + 8], edx
movq qword [ebp - 0x36], xmm0
mov byte [ebp - 0x2b], 0
mov byte [ebp - 0x14], al
call fcn.00414500
add esp, 0xc
test al, al
je 0x40277b
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40277b
push str.WCoinC
call fcn.00414750
cmp eax, 0xffffffff
jne 0x402696
or eax, eax
jmp 0x4026a7
shl eax, 0xd
add eax, 0x43f5ce
push eax
call fcn.0041db2e
add esp, 4
push str.WCoinP
mov dword [ebp - 0x10], eax
call fcn.00414750
cmp eax, 0xffffffff
jne 0x4026bd
or eax, eax
jmp 0x4026ce
shl eax, 0xd
add eax, 0x43f5ce
push eax
call fcn.0041db2e
add esp, 4
push str.GoblinPoint
mov dword [ebp - 0xc], eax
call fcn.00414750
cmp eax, 0xffffffff
jne 0x4026e4
or eax, eax
jmp 0x4026f5
shl eax, 0xd
add eax, 0x43f5ce
push eax
call fcn.0041db2e
add esp, 4
push dword [0x43ddf4]
mov esi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov dword [ebp - 8], eax
call esi
mov edi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ddf4]
call edi
push 0x53
push dword [ebp + 8]
push str.SELECT_count___FROM_CashShopInventory_WHERE_AccountID_s_AND_InventoryType_d
push 0x43dde8
call fcn.00414500
add esp, 0x10
test al, al
je 0x402767
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x402767
push 0x43f5ce
call fcn.0041db2e
add esp, 4
mov dword [ebp - 4], eax
push dword [0x43ddf4]
call esi
push 2
push dword [0x43ddf4]
call edi
jmp 0x402799
push dword [0x43ddf4]
call esi
push 2
push dword [0x43ddf4]
call edi
jmp 0x402795
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov byte [ebp - 0x2b], 1
push 0x3c
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 0xc]
call fcn.00415df0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x403120
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x43d040]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0x11
mov ecx, 6
push esi
push edi
cmp byte [ebx + 0x11], 0
cmovne ecx, eax
mov ax, word [ecx + ebx + 8]
movq xmm0, qword [ecx + ebx]
mov word [ebp - 0xc], ax
mov al, byte [ecx + ebx + 0xa]
mov byte [ebp - 0xa], al
lea eax, [ebp - 0x14]
push eax
push str.SELECT_WCoinC_WCoinP_GoblinPoint_FROM_CashShopData_WHERE_AccountID_s
push 0x43dde8
movq qword [ebp - 0x14], xmm0
call fcn.00414500
add esp, 0xc
test al, al
je 0x403267
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x403267
push str.WCoinC
call fcn.00414750
cmp eax, 0xffffffff
jne 0x4031a9
mov dword [ebp - 0x20], eax
jmp 0x4031bd
shl eax, 0xd
add eax, 0x43f5ce
push eax
call fcn.0041db2e
add esp, 4
mov dword [ebp - 0x20], eax
push str.WCoinP
call fcn.00414750
cmp eax, 0xffffffff
jne 0x4031d1
mov dword [ebp - 0x1c], eax
jmp 0x4031e5
shl eax, 0xd
add eax, 0x43f5ce
push eax
call fcn.0041db2e
add esp, 4
mov dword [ebp - 0x1c], eax
push str.GoblinPoint
call fcn.00414750
cmp eax, 0xffffffff
jne 0x4031f9
mov dword [ebp - 0x18], eax
jmp 0x40320d
shl eax, 0xd
add eax, 0x43f5ce
push eax
call fcn.0041db2e
add esp, 4
mov dword [ebp - 0x18], eax
push dword [0x43ddf4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ddf4]
call esi
mov edx, dword [ebx + 0x24]
mov eax, closesocket
add edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
cmp edx, eax
cmova edx, eax
add ecx, dword [ebx + 0x20]
cmp ecx, eax
cmova ecx, eax
mov eax, dword [ebx + 0x1c]
add eax, dword [ebp - 0x20]
mov ebx, closesocket
cmp eax, 0x7fffffff
cmova eax, ebx
lea ebx, [ebp - 0x14]
push ebx
push edx
push ecx
push eax
push str.UPDATE_CashShopData_SET_WCoinC_d_WCoinP_d_GoblinPoint_d_WHERE_AccountID_s
jmp 0x403297
push dword [0x43ddf4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ddf4]
call esi
push dword [ebx + 0x24]
lea eax, [ebp - 0x14]
push dword [ebx + 0x20]
push dword [ebx + 0x1c]
push eax
push str.INSERT_INTO_CashShopData__AccountID_WCoinC_WCoinP_GoblinPoint__VALUES___s__d__d__d_
push 0x43dde8
call fcn.00414500
add esp, 0x18
push dword [0x43ddf4]
call edi
push 2
push dword [0x43ddf4]
call esi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417457
mov esp, ebp
pop ebp
ret 4
Function at 0x4032d0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43d040]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, 0x11
mov ecx, 6
cmp byte [edi + 0x11], 0
cmovne ecx, eax
mov ax, word [ecx + edi + 8]
movq xmm0, qword [ecx + edi]
mov word [ebp - 0xc], ax
mov al, byte [ecx + edi + 0xa]
mov byte [ebp - 0xa], al
lea eax, [ebp - 0x14]
push eax
push str.SELECT_WCoinC_WCoinP_GoblinPoint_FROM_CashShopData_WHERE_AccountID_s
push 0x43dde8
movq qword [ebp - 0x14], xmm0
call fcn.00414500
add esp, 0xc
test al, al
je 0x40344b
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40344b
push str.WCoinC
call fcn.00414750
cmp eax, 0xffffffff
jne 0x403358
mov dword [ebp - 0x20], eax
jmp 0x40336c
shl eax, 0xd
add eax, 0x43f5ce
push eax
call fcn.0041db2e
add esp, 4
mov dword [ebp - 0x20], eax
push str.WCoinP
call fcn.00414750
cmp eax, 0xffffffff
jne 0x403380
mov dword [ebp - 0x1c], eax
jmp 0x403394
shl eax, 0xd
add eax, 0x43f5ce
push eax
call fcn.0041db2e
add esp, 4
mov dword [ebp - 0x1c], eax
push str.GoblinPoint
call fcn.00414750
cmp eax, 0xffffffff
jne 0x4033a8
mov dword [ebp - 0x18], eax
jmp 0x4033bc
shl eax, 0xd
add eax, 0x43f5ce
push eax
call fcn.0041db2e
add esp, 4
mov dword [ebp - 0x18], eax
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov edx, dword [edi + 0x24]
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov esi, dword [edi + 0x20]
sub ecx, edx
mov edi, dword [edi + 0x1c]
push eax
xor eax, eax
cmp edx, dword [ebp - 0x18]
cmovbe eax, ecx
mov ecx, dword [ebp - 0x1c]
push eax
sub ecx, esi
xor eax, eax
cmp esi, dword [ebp - 0x1c]
cmovbe eax, ecx
mov ecx, dword [ebp - 0x20]
push eax
sub ecx, edi
xor eax, eax
cmp edi, dword [ebp - 0x20]
cmovbe eax, ecx
push eax
push str.UPDATE_CashShopData_SET_WCoinC_d_WCoinP_d_GoblinPoint_d_WHERE_AccountID_s
push 0x43dde8
call fcn.00414500
add esp, 0x18
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00417457
mov esp, ebp
pop ebp
ret 4
push dword [0x43ddf4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ddf4]
call esi
push 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push str.INSERT_INTO_CashShopData__AccountID_WCoinC_WCoinP_GoblinPoint__VALUES___s__d__d__d_
push 0x43dde8
call fcn.00414500
add esp, 0x18
push dword [0x43ddf4]
call edi
push 2
push dword [0x43ddf4]
call esi
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.00417457
mov esp, ebp
pop ebp
ret 4
Function at 0x404260
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 0x43dde8
call fcn.00414500
add esp, 0x10
test al, al
je 0x404355
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x404355
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
cmp byte [ebx + 0x79f], 0
jne 0x4042fb
push esi
push edi
push str.DELETE_FROM_CHAOS_BOX_GENESIS_WHERE_Account_s_and_Name_s
push 0x43dde8
call fcn.00414500
add esp, 0x10
push dword [0x43ddf4]
mov eax, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call eax
mov eax, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ddf4]
call eax
pop edi
pop esi
pop ebx
pop ebp
ret 4
push 0x5cf8f0
push 0
lea eax, [ebx + 0x1e]
mov dword [0x5cf8f0], 0x780
push eax
push 0
push 0x780
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x43ddf4]
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 0x43dde8
call fcn.00414500
add esp, 0x1c
jmp 0x4042d8
push dword [0x43ddf4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ddf4]
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 0x43dde8
call fcn.00414500
add esp, 0x1c
push dword [0x43ddf4]
call edi
push 2
push dword [0x43ddf4]
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 0x43dde8
call fcn.00414500
add esp, 0x18
push dword [0x43ddf4]
call edi
push 2
push dword [0x43ddf4]
call esi
push 0x5cf8f0
push 0
lea eax, [ebx + 0x1e]
mov dword [0x5cf8f0], 0x780
push eax
push 0
push 0x780
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x43ddf4]
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 0x43dde8
call fcn.00414500
add esp, 0x10
push dword [0x43ddf4]
call edi
push 2
push dword [0x43ddf4]
call esi
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x406910
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x43d040]
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 0x43dde8
call fcn.00414500
mov ebx, dword [sym.imp.ODBC32.dll_SQLFetch]
add esp, 0xc
push dword [0x43ddf4]
call ebx
push str.GUID
call fcn.00414750
cmp eax, 0xffffffff
jne 0x40696b
or edi, eax
jmp 0x40697e
shl eax, 0xd
add eax, 0x43f5ce
push eax
call fcn.0041db2e
add esp, 4
mov edi, eax
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
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 0x43dde8
movq qword [ebp - 0x41a], xmm0
mov word [ebp - 0x40e], ax
call fcn.00414500
add esp, 0x10
push dword [0x43ddf4]
call ebx
push 0x12
lea eax, [ebp - 0x40a]
push eax
push str.Photo
call fcn.004147a0
push 0x43710c
call fcn.00414750
cmp eax, 0xffffffff
jne 0x406a20
or eax, eax
jmp 0x406a31
shl eax, 0xd
add eax, 0x43f5ce
push eax
call fcn.0041db2e
add esp, 4
push 0x437110
mov byte [ebp - 0x3f8], al
call fcn.00414750
cmp eax, 0xffffffff
jne 0x406a4a
or eax, eax
jmp 0x406a5b
shl eax, 0xd
add eax, 0x43f5ce
push eax
call fcn.0041db2e
add esp, 4
mov byte [ebp - 0x3f7], al
lea eax, [ebp - 0x3f6]
push 0x3e8
push eax
push str.Memo
call fcn.004147a0
lea ecx, [ebp - 0x3f6]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406a80
push dword [0x43ddf4]
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 [0x43ddf4]
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 0x43dde8
call fcn.00414500
add esp, 0x10
push dword [0x43ddf4]
call esi
push 2
push dword [0x43ddf4]
call ebx
mov ecx, dword [ebp - 0x428]
lea edx, [ebp - 0x420]
push 0x412
call fcn.00405860
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00417457
mov esp, ebp
pop ebp
ret
Function at 0x406b10
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x43d040]
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 0x43dde8
call fcn.00414500
add esp, 0xc
test al, al
je 0x406cc8
push dword [0x43ddf4]
mov ebx, dword [sym.imp.ODBC32.dll_SQLFetch]
call ebx
cmp ax, 0x64
je 0x406cc8
push str.GUID
call fcn.00414750
cmp eax, 0xffffffff
jne 0x406b6e
or esi, eax
jmp 0x406b81
shl eax, 0xd
add eax, 0x43f5ce
push eax
call fcn.0041db2e
add esp, 4
mov esi, eax
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0
push esi
push str.SELECT_FriendName_Del_FROM_T_FriendList_WHERE_GUID_d
push 0x43dde8
call fcn.00414500
add esp, 0x10
test al, al
je 0x406cc8
push dword [0x43ddf4]
call ebx
cmp ax, 0x64
je 0x406cc8
nop word [eax + eax]
push str.FriendName
mov word [ebp - 0x24], 0x1ec1
mov byte [ebp - 0x22], 0x62
call fcn.00414750
cmp eax, 0xffffffff
jne 0x406bfd
xorps xmm0, xmm0
mov word [ebp - 0x16], 0
movq qword [ebp - 0x1e], xmm0
mov byte [ebp - 0x14], 0
jmp 0x406c16
shl eax, 0xd
push 0xa
add eax, 0x43f5ce
push eax
lea eax, [ebp - 0x1e]
push 0xb
push eax
call fcn.00420edd
add esp, 0x10
lea eax, [ebp - 0x1e]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.004044b0
test al, al
je 0x406cb6
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 0x406c93
push 0x436f30
call fcn.00414750
cmp eax, 0xffffffff
je 0x406c93
shl eax, 0xd
add eax, 0x43f5ce
push eax
call fcn.0041db2e
add esp, 4
test eax, eax
jne 0x406c93
lea eax, [ebp - 0x13]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.004044b0
test al, al
mov eax, 0xffff
je 0x406c8e
movzx eax, word [ebp - 0x48]
mov byte [ebp - 8], al
jmp 0x406c97
mov byte [ebp - 8], 0xff
mov ecx, dword [ebp - 0x2c]
call fcn.00416e00
test eax, eax
je 0x406cb6
movzx ecx, byte [ebp - 0x23]
lea edx, [ebp - 0x24]
push ecx
mov ecx, dword [eax + 4]
call fcn.00405860
add esp, 4
push dword [0x43ddf4]
call ebx
cmp ax, 0x64
jne 0x406bd0
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417457
mov esp, ebp
pop ebp
ret