joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10065f55
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
mov eax, 0x10076fdf
call fcn.1003fa24
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.1005f218
mov eax, dword [ebp + 0x18]
lea ebx, [esi + 0x24]
mov dword [esi + 0x1c], eax
mov eax, dword [0x10098dc0]
xor edi, edi
mov dword [ebx], eax
mov dword [ebp - 4], edi
push dword [ebp + 0x10]
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 1
mov dword [esi], vtable.CInternetFile.0
call fcn.1005bcce
push dword [ebp + 0x14]
mov ecx, ebx
call fcn.1005bcce
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18

Function at 0x10065ff1
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x10077007
call fcn.1003fa24
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.1005f218
mov eax, dword [0x10098dc0]
lea ebx, [esi + 0x24]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebx], eax
mov eax, dword [ebp + 0x10]
mov dword [esi], vtable.CInternetFile.0
mov ecx, 0x100a3728
mov byte [ebp - 4], 1
push dword [eax + 0xc]
push dword [ebp + 8]
call fcn.10065a7b
push dword [ebp + 0xc]
lea ecx, [esi + 0xc]
call fcn.1005bcce
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 8]
mov dword [esi + 0x1c], eax
lea eax, [ebp + 0x10]
push eax
call fcn.10035d1e
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.1005bc7e
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 1
call fcn.1005bb45
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x10065ffd
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x10077007
call fcn.1003fa24
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.1005f218
mov eax, dword [0x10098dc0]
lea ebx, [esi + 0x24]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebx], eax
mov eax, dword [ebp + 0x10]
mov dword [esi], vtable.CInternetFile.0
mov ecx, 0x100a3728
mov byte [ebp - 4], 1
push dword [eax + 0xc]
push dword [ebp + 8]
call fcn.10065a7b
push dword [ebp + 0xc]
lea ecx, [esi + 0xc]
call fcn.1005bcce
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 8]
mov dword [esi + 0x1c], eax
lea eax, [ebp + 0x10]
push eax
call fcn.10035d1e
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.1005bc7e
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 1
call fcn.1005bb45
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10

Function at 0x10070c74
Capabilities:
Receive data
Receive data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call sub.WSOCK32.dll_recv
ret 0xc

Function at 0x10070cf2
Capabilities:
Send data
Send data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call sub.WSOCK32.dll_send
ret 0xc
Function at 0x402400
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov ecx, dword [ebp + 8]
xorps xmm0, xmm0
push ebx
movups xmmword [ebp - 0x1f], xmm0
push esi
movzx eax, word [ecx + 4]
lea ebx, [ecx + 6]
push edi
mov word [ebp - 0x1c], ax
movzx eax, word [ebx + 8]
push ebx
movq qword [ebp - 0xf], xmm0
movq xmm0, qword [ebx]
mov word [ebp - 0x12], ax
mov al, byte [ebx + 0xa]
push str.SELECT__FROM_CashShopData_WHERE_AccountID_s
push 0x446e50
mov dword [ebp - 7], 0
mov word [ebp - 3], 0
mov byte [ebp - 1], 0
mov dword [ebp - 0x20], 0x1820c1
movq qword [ebp - 0x1a], xmm0
mov byte [ebp - 0x10], al
mov byte [ebp - 0xf], 0
call fcn.0041ad00
add esp, 0xc
test al, al
je 0x40252d
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40252d
push str.WCoinC
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x40249a
or esi, eax
jmp 0x4024ad
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
mov esi, eax
push str.WCoinP
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x4024c0
or edi, eax
jmp 0x4024d3
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
mov edi, eax
push str.GoblinPoint
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x4024e6
or eax, eax
jmp 0x4024f7
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push dword [0x446e5c]
xor ecx, ecx
test esi, esi
cmovs esi, ecx
test edi, edi
mov dword [ebp - 0xc], esi
cmovs edi, ecx
test eax, eax
mov dword [ebp - 8], edi
cmovs eax, ecx
mov dword [ebp - 4], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x40259b
push dword [0x446e5c]
mov esi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call esi
mov edi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call edi
push ebx
push str.INSERT_INTO_CashShopData__AccountID_WCoinC_WCoinP_GoblinPoint__VALUES___s_0_0_0_
push 0x446e50
call fcn.0041ad00
add esp, 0xc
push dword [0x446e5c]
test al, al
jne 0x40257a
call esi
push 2
push dword [0x446e5c]
call edi
mov byte [ebp - 0xf], 1
jmp 0x40259b
call esi
push 2
push dword [0x446e5c]
call edi
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.0041c330
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4025c0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
push edi
push 0x3b
lea eax, [ebp - 0x3b]
push 0
push eax
call fcn.0041f470
mov ecx, dword [ebp + 8]
add esp, 0xc
movq xmm0, qword [ecx + 6]
lea edx, [ecx + 6]
mov dword [ebp - 0x3c], 0x1183cc1
mov dword [ebp + 8], edx
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 0x446e50
movq qword [ebp - 0x36], xmm0
mov byte [ebp - 0x2b], 0
mov byte [ebp - 0x14], al
call fcn.0041ad00
add esp, 0xc
test al, al
je 0x402770
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x402770
push str.WCoinC
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x402676
or esi, eax
jmp 0x402689
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
mov esi, eax
push str.WCoinP
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x40269c
or edi, eax
jmp 0x4026af
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
mov edi, eax
push str.GoblinPoint
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x4026c2
or eax, eax
jmp 0x4026d3
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push dword [0x446e5c]
xor ecx, ecx
test esi, esi
cmovs esi, ecx
test edi, edi
mov dword [ebp - 0x10], esi
mov esi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
cmovs edi, ecx
test eax, eax
mov dword [ebp - 0xc], edi
cmovs eax, ecx
mov dword [ebp - 8], eax
call esi
mov edi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call edi
push 0x53
push dword [ebp + 8]
push str.SELECT_count___FROM_CashShopInventory_WHERE_AccountID_s_AND_InventoryType_d
push 0x446e50
call fcn.0041ad00
add esp, 0x10
test al, al
je 0x40275c
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40275c
push 0x447a7e
call fcn.0042415e
add esp, 4
mov dword [ebp - 4], eax
push dword [0x446e5c]
call esi
push 2
push dword [0x446e5c]
call edi
jmp 0x40278e
push dword [0x446e5c]
call esi
push 2
push dword [0x446e5c]
call edi
jmp 0x40278a
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
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.0041c330
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x403170
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x446040]
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 0x446e50
movq qword [ebp - 0x14], xmm0
call fcn.0041ad00
add esp, 0xc
test al, al
je 0x4032b7
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4032b7
push str.WCoinC
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x4031f9
mov dword [ebp - 0x20], eax
jmp 0x40320d
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
mov dword [ebp - 0x20], eax
push str.WCoinP
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x403221
mov dword [ebp - 0x1c], eax
jmp 0x403235
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
mov dword [ebp - 0x1c], eax
push str.GoblinPoint
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x403249
mov dword [ebp - 0x18], eax
jmp 0x40325d
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
mov dword [ebp - 0x18], eax
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
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 0x4032e7
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
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 0x446e50
call fcn.0041ad00
add esp, 0x18
push dword [0x446e5c]
call edi
push 2
push dword [0x446e5c]
call esi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041dc5d
mov esp, ebp
pop ebp
ret 4
Function at 0x403320
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x446040]
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 0x446e50
movq qword [ebp - 0x14], xmm0
call fcn.0041ad00
add esp, 0xc
test al, al
je 0x40349b
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40349b
push str.WCoinC
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x4033a8
mov dword [ebp - 0x20], eax
jmp 0x4033bc
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
mov dword [ebp - 0x20], eax
push str.WCoinP
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x4033d0
mov dword [ebp - 0x1c], eax
jmp 0x4033e4
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
mov dword [ebp - 0x1c], eax
push str.GoblinPoint
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x4033f8
mov dword [ebp - 0x18], eax
jmp 0x40340c
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
mov dword [ebp - 0x18], eax
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
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 0x446e50
call fcn.0041ad00
add esp, 0x18
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041dc5d
mov esp, ebp
pop ebp
ret 4
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
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 0x446e50
call fcn.0041ad00
add esp, 0x18
push dword [0x446e5c]
call edi
push 2
push dword [0x446e5c]
call esi
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.0041dc5d
mov esp, ebp
pop ebp
ret 4
Function at 0x406500
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x446040]
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 0x446e50
call fcn.0041ad00
mov ebx, dword [sym.imp.ODBC32.dll_SQLFetch]
add esp, 0xc
push dword [0x446e5c]
call ebx
push str.GUID
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x40655b
or edi, eax
jmp 0x40656e
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
mov edi, eax
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x411
lea eax, [ebp - 0x41f]
push 0
push eax
call fcn.0041f470
mov ecx, dword [ebp - 0x424]
add esp, 0xc
movq xmm0, qword [esi]
mov dword [ebp - 0x420], 0x721204c2
movq qword [ebp - 0x41a], xmm0
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 edi
push eax
push str.SELECT_Memo_Photo_Dir_Act_FROM_T_FriendMail_WHERE_MemoIndex_d_AND_GUID_d
push 0x446e50
mov word [ebp - 0x40e], ax
call fcn.0041ad00
add esp, 0x10
push dword [0x446e5c]
call ebx
push 0x12
lea eax, [ebp - 0x40a]
push eax
push str.Photo
call fcn.0041afa0
push 0x43d184
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x406626
or eax, eax
jmp 0x406637
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push 0x43d188
mov byte [ebp - 0x3f8], al
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x406650
or eax, eax
jmp 0x406661
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
mov byte [ebp - 0x3f7], al
lea eax, [ebp - 0x3f6]
push 0x3e8
push eax
push str.Memo
call fcn.0041afa0
lea ecx, [ebp - 0x3f6]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406686
push dword [0x446e5c]
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 [0x446e5c]
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 0x446e50
call fcn.0041ad00
add esp, 0x10
push dword [0x446e5c]
call esi
push 2
push dword [0x446e5c]
call ebx
mov ecx, dword [ebp - 0x428]
lea edx, [ebp - 0x420]
push 0x412
call fcn.004052c0
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0041dc5d
mov esp, ebp
pop ebp
ret
Function at 0x406710
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x446040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
mov byte [ebp - 0x25], dl
push esi
push str.SELECT_GUID_FROM_T_FriendMain_WHERE_Name_s
push 0x446e50
call fcn.0041ad00
add esp, 0xc
test al, al
je 0x4068df
push dword [0x446e5c]
mov ebx, dword [sym.imp.ODBC32.dll_SQLFetch]
call ebx
cmp ax, 0x64
je 0x4068df
push str.GUID
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x40676e
or edi, eax
jmp 0x406781
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
mov edi, eax
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0
push edi
push str.SELECT_FriendName_Del_FROM_T_FriendList_WHERE_GUID_d
push 0x446e50
call fcn.0041ad00
add esp, 0x10
test al, al
je 0x4068df
push dword [0x446e5c]
call ebx
cmp ax, 0x64
je 0x4068df
nop word [eax + eax]
xorps xmm0, xmm0
mov dword [ebp - 0xb], 0
movups xmmword [ebp - 0x23], xmm0
push str.FriendName
movq qword [ebp - 0x13], xmm0
mov byte [ebp - 7], 0
mov word [ebp - 0x24], 0x1ec1
mov byte [ebp - 0x22], 0x62
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x406814
xorps xmm0, xmm0
mov word [ebp - 0x16], 0
movq qword [ebp - 0x1e], xmm0
mov byte [ebp - 0x14], 0
jmp 0x40682d
shl eax, 0xd
push 0xa
add eax, 0x447a7e
push eax
lea eax, [ebp - 0x1e]
push 0xb
push eax
call fcn.0042750d
add esp, 0x10
lea eax, [ebp - 0x1e]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00404310
test al, al
je 0x4068cd
cmp byte [ebp - 0x25], 0
movzx eax, word [ebp - 0x2e]
movq xmm0, qword [esi]
mov word [ebp - 0x20], ax
movzx eax, word [esi + 8]
mov word [ebp - 0xb], ax
mov al, byte [esi + 0xa]
movq qword [ebp - 0x13], xmm0
mov byte [ebp - 9], al
jne 0x4068aa
push 0x43cfac
call fcn.0041af50
cmp eax, 0xffffffff
je 0x4068aa
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
test eax, eax
jne 0x4068aa
lea eax, [ebp - 0x13]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00404310
test al, al
mov eax, 0xffff
je 0x4068a5
movzx eax, word [ebp - 0x48]
mov byte [ebp - 8], al
jmp 0x4068ae
mov byte [ebp - 8], 0xff
mov ecx, dword [ebp - 0x2c]
call fcn.0041d0c0
test eax, eax
je 0x4068cd
movzx ecx, byte [ebp - 0x23]
lea edx, [ebp - 0x24]
push ecx
mov ecx, dword [eax + 4]
call fcn.004052c0
add esp, 4
push dword [0x446e5c]
call ebx
cmp ax, 0x64
jne 0x4067d0
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041dc5d
mov esp, ebp
pop ebp
ret
Function at 0x406910
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x446040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
push edx
push str.SELECT_MemoIndex_FriendName_wDate_Subject_bRead_FROM_T_FriendMail_WHERE_GUID_d
push 0x446e50
mov dword [ebp - 0x6c], ecx
call fcn.0041ad00
add esp, 0xc
test al, al
je 0x406aef
push dword [0x446e5c]
mov ebx, dword [sym.imp.ODBC32.dll_SQLFetch]
call ebx
cmp ax, 0x64
je 0x406aef
nop
push 0x5d
lea eax, [ebp - 0x67]
push 0
push eax
call fcn.0041f470
mov ax, word [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x68], 0x715e00c2
mov word [ebp - 0x64], ax
push str.MemoIndex
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x406992
or eax, eax
jmp 0x4069a3
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push str.FriendName
mov word [ebp - 0x62], ax
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x4069ca
xorps xmm0, xmm0
mov word [ebp - 0x58], 0
movq qword [ebp - 0x60], xmm0
mov byte [ebp - 0x56], 0
jmp 0x4069e3
shl eax, 0xd
push 0xa
add eax, 0x447a7e
push eax
lea eax, [ebp - 0x60]
push 0xb
push eax
call fcn.0042750d
add esp, 0x10
mov ax, word [edi + 8]
movq xmm0, qword [edi]
mov word [ebp - 0x4d], ax
mov al, byte [edi + 0xa]
push str.wDate
movq qword [ebp - 0x55], xmm0
mov byte [ebp - 0x4b], al
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x406a24
xorps xmm0, xmm0
mov dword [ebp - 0x32], 0
movups xmmword [ebp - 0x4a], xmm0
mov word [ebp - 0x2e], 0
movq qword [ebp - 0x3a], xmm0
jmp 0x406a3d
shl eax, 0xd
push 0x1d
add eax, 0x447a7e
push eax
lea eax, [ebp - 0x4a]
push 0x1e
push eax
call fcn.0042750d
add esp, 0x10
push str.Subject
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x406a59
xorps xmm0, xmm0
movups xmmword [ebp - 0x2c], xmm0
movups xmmword [ebp - 0x1c], xmm0
jmp 0x406a72
shl eax, 0xd
push 0x1f
add eax, 0x447a7e
push eax
lea eax, [ebp - 0x2c]
push 0x20
push eax
call fcn.0042750d
add esp, 0x10
push str.bRead
call fcn.0041af50
cmp esi, 1
jne 0x406aa3
cmp eax, 0xffffffff
jne 0x406a8d
or eax, eax
mov byte [ebp - 0xc], al
jmp 0x406acd
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
mov byte [ebp - 0xc], al
jmp 0x406acd
cmp eax, 0xffffffff
jne 0x406aac
or eax, eax
jmp 0x406abd
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
mov byte [ebp - 0xc], al
test al, al
jne 0x406acd
mov byte [ebp - 0xc], 2
mov esi, 1
mov ecx, dword [ebp - 0x6c]
lea edx, [ebp - 0x68]
push 0x5e
call fcn.004052c0
add esp, 4
push dword [0x446e5c]
call ebx
cmp ax, 0x64
jne 0x406960
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041dc5d
mov esp, ebp
pop ebp
ret