joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409cc0
Capabilities:
Read .ini file

Disassembly:
push ecx
push esi
xor esi, esi
test edi, edi
jle 0x409d53
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp edi, 0x2d
jne 0x409cf3
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, dword [0x2b5ab48]
imul eax, eax, 0x343fd
add eax, 0x269ec3
mov dword [0x2b5ab48], eax
mov cl, byte [0x2b5ab4a]
mov eax, dword [esp + 0x14]
xor byte [esi + eax], cl
cmp edi, 0xf
jne 0x409d4c
push 0
push 0
push 0
call ebp
push str.rixoyacugimojexudipucacem
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
push str.Robepec
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoA]
push ebx
push str.wamojakiton
push 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
inc esi
cmp esi, edi
jl 0x409cd8
pop ebp
pop ebx
pop esi
cmp edi, 0x2d
jne 0x409d6d
mov dword [0x2b5ae30], 0xa62e7790
mov dword [0x2b5ae34], 0xffffffff
pop ecx
ret

Function at 0x409d70
Capabilities:
Manipulate console buffer
Set console window title

Disassembly:
sub esp, 0x428
mov eax, dword [0x434004]
xor eax, esp
mov dword [esp + 0x420], eax
mov eax, dword [0x2b5ae24]
push ebx
mov ebx, dword [0x2b5ab4c]
push esi
push edi
mov edi, eax
cmp eax, 0x5dd
jne 0x409dbd
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
lea edx, [esp + 0x34]
push edx
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReadEventLogW]
mov eax, dword [0x2b5ae24]
mov esi, dword [0x434ed0]
cmp eax, 0x930
jne 0x409dd7
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov eax, dword [0x2b5ae24]
mov dword [0x2b5ab48], esi
cmp eax, 0x114e
jne 0x409dff
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov eax, dword [0x2b5ae24]
cmp eax, 0x2f
jne 0x409e43
xor edx, edx
lea ecx, [esp + 0x18]
push ecx
push edx
xor eax, eax
push eax
lea ecx, [esp + 0x18]
push ecx
push edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputA]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
push ebx
call fcn.00409cc0
mov ecx, dword [esp + 0x430]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040105b
add esp, 0x428
ret
Function at 0x1000b197
Capabilities:
Parse pe header

Disassembly:
push esi
mov esi, ecx
test si, si
jne 0x1000b24c
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x1000b24c
mov edx, dword [esi + 0x3c]
test dl, 3
jne 0x1000b24c
cmp dword [edx + esi], 0x4550
jne 0x1000b24c
cmp dword [edx + esi + 0x74], 6
jb 0x1000b24c
push ebx
mov ebx, dword [edx + esi + 0x50]
push edi
mov edi, dword [edx + esi + 0xa8]
lea eax, [ebx - 1]
lea ecx, [edi - 1]
cmp ecx, eax
jae 0x1000b24a
mov eax, dword [edx + esi + 0xac]
mov ecx, ebx
sub ecx, edi
cmp eax, ecx
ja 0x1000b24a
xor edx, edx
add edi, esi
push 0x1c
pop ecx
div ecx
mov edx, eax
test edx, edx
je 0x1000b24a
imul ecx, edx, 0x1c
add ecx, 0x14
add ecx, edi
lea ecx, [ecx - 0x1c]
dec edx
cmp dword [ecx - 8], 2
lea edi, [ecx - 0x14]
jne 0x1000b228
cmp dword [ecx], ebx
jae 0x1000b228
mov eax, ebx
sub eax, dword [ecx]
cmp dword [ecx - 4], eax
jbe 0x1000b22e
test edx, edx
jne 0x1000b20e
jmp 0x1000b24a
push 0x1c
push edi
call dword [sym.imp.kernel32.dll_VirtualLock]
test eax, eax
je 0x1000b24a
mov eax, dword [edi + 0x14]
push dword [edi + 0x10]
add eax, esi
push eax
call dword [sym.imp.kernel32.dll_VirtualLock]
pop edi
pop ebx
pop esi
ret

Function at 0x1000c446
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x1000c455
pop dword [ebp - 0x44]
mov eax, 0x5fb322cd
add eax, 0xb04da188
sub dword [ebp - 0x44], eax
push 0x40
push 0x1000
push 0x3a675
push 0
mov eax, 0xd6ea0fd0
add eax, 0x39173094
add eax, dword [ebp - 0x44]
call dword [eax]
mov ecx, 0x4db6
mov edi, eax
mov ebx, 0x37ba1d97
add ebx, 0xd8476869
add ebx, dword [ebp - 0x44]
mov esi, 0x29c3b471
add dword [ebp - 0x10], ebx
mov edx, dword [ebx]
sub dword [ebp - 0xc], ebx
xor edx, esi
sub dword [ebp - 0x30], 0x66867fa6
mov dword [edi], edx
sub dword [ebp - 0x3c], esi
add edi, 4
add ebx, 4
loop 0x1000c4a8
add eax, 0x8e6f9b94
add eax, 0x71918e17
mov ebx, eax
add eax, 0xc3fe7574
sub eax, 0xc3fe756f
mov ecx, 0x10000000
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408e84
nop
mov ecx, 0x7910505
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x437f0fe3
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x100012d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10013004]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 8], 0x40
lea edi, [eax + 0x1b50]
lea eax, [ebp - 8]
push eax
push 0x40
push 5
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, sym.K7AVWScn.dll_K7ScanUI_RunScanner
mov byte [edi], 0xe9
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 5
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop edi
call fcn.1000133b
mov esp, ebp
pop ebp
ret 0xc
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 0x43edd8
mov dword [ebp - 0x20], 0x1820c1
movq qword [ebp - 0x1a], xmm0
mov byte [ebp - 0x10], al
mov byte [ebp - 0xf], 0
call fcn.00414560
add esp, 0xc
test al, al
je 0x40255c
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40255c
push str.WCoinC
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x4024de
or eax, eax
jmp 0x4024ef
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041d9ee
add esp, 4
push str.WCoinP
mov dword [ebp - 0xc], eax
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x402505
or eax, eax
jmp 0x402516
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041d9ee
add esp, 4
push str.GoblinPoint
mov dword [ebp - 8], eax
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x40252c
or eax, eax
jmp 0x40253d
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041d9ee
add esp, 4
push dword [0x43ede4]
mov dword [ebp - 4], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x4025ca
push dword [0x43ede4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov ebx, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ede4]
call ebx
push esi
push str.INSERT_INTO_CashShopData__AccountID_WCoinC_WCoinP_GoblinPoint__VALUES___s_0_0_0_
push 0x43edd8
call fcn.00414560
add esp, 0xc
push dword [0x43ede4]
test al, al
jne 0x4025a9
call edi
push 2
push dword [0x43ede4]
call ebx
mov byte [ebp - 0xf], 1
jmp 0x4025ca
call edi
push 2
push dword [0x43ede4]
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.00415e20
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 0x43edd8
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.00414560
add esp, 0xc
test al, al
je 0x40277b
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40277b
push str.WCoinC
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x402696
or eax, eax
jmp 0x4026a7
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041d9ee
add esp, 4
push str.WCoinP
mov dword [ebp - 0x10], eax
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x4026bd
or eax, eax
jmp 0x4026ce
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041d9ee
add esp, 4
push str.GoblinPoint
mov dword [ebp - 0xc], eax
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x4026e4
or eax, eax
jmp 0x4026f5
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041d9ee
add esp, 4
push dword [0x43ede4]
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 [0x43ede4]
call edi
push 0x53
push dword [ebp + 8]
push str.SELECT_count___FROM_CashShopInventory_WHERE_AccountID_s_AND_InventoryType_d
push 0x43edd8
call fcn.00414560
add esp, 0x10
test al, al
je 0x402767
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x402767
push 0x4405be
call fcn.0041d9ee
add esp, 4
mov dword [ebp - 4], eax
push dword [0x43ede4]
call esi
push 2
push dword [0x43ede4]
call edi
jmp 0x402799
push dword [0x43ede4]
call esi
push 2
push dword [0x43ede4]
call edi
jmp 0x402795
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
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.00415e20
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 [0x43e040]
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 0x43edd8
movq qword [ebp - 0x14], xmm0
call fcn.00414560
add esp, 0xc
test al, al
je 0x403267
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x403267
push str.WCoinC
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x4031a9
mov dword [ebp - 0x20], eax
jmp 0x4031bd
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041d9ee
add esp, 4
mov dword [ebp - 0x20], eax
push str.WCoinP
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x4031d1
mov dword [ebp - 0x1c], eax
jmp 0x4031e5
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041d9ee
add esp, 4
mov dword [ebp - 0x1c], eax
push str.GoblinPoint
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x4031f9
mov dword [ebp - 0x18], eax
jmp 0x40320d
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041d9ee
add esp, 4
mov dword [ebp - 0x18], eax
push dword [0x43ede4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ede4]
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 [0x43ede4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ede4]
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 0x43edd8
call fcn.00414560
add esp, 0x18
push dword [0x43ede4]
call edi
push 2
push dword [0x43ede4]
call esi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417477
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 [0x43e040]
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 0x43edd8
movq qword [ebp - 0x14], xmm0
call fcn.00414560
add esp, 0xc
test al, al
je 0x40344b
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40344b
push str.WCoinC
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x403358
mov dword [ebp - 0x20], eax
jmp 0x40336c
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041d9ee
add esp, 4
mov dword [ebp - 0x20], eax
push str.WCoinP
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x403380
mov dword [ebp - 0x1c], eax
jmp 0x403394
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041d9ee
add esp, 4
mov dword [ebp - 0x1c], eax
push str.GoblinPoint
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x4033a8
mov dword [ebp - 0x18], eax
jmp 0x4033bc
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041d9ee
add esp, 4
mov dword [ebp - 0x18], eax
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
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 0x43edd8
call fcn.00414560
add esp, 0x18
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00417477
mov esp, ebp
pop ebp
ret 4
push dword [0x43ede4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ede4]
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 0x43edd8
call fcn.00414560
add esp, 0x18
push dword [0x43ede4]
call edi
push 2
push dword [0x43ede4]
call esi
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.00417477
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 0x43edd8
call fcn.00414560
add esp, 0x10
test al, al
je 0x404355
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x404355
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
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 0x43edd8
call fcn.00414560
add esp, 0x10
push dword [0x43ede4]
mov eax, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call eax
mov eax, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ede4]
call eax
pop edi
pop esi
pop ebx
pop ebp
ret 4
push 0x5d08e0
push 0
lea eax, [ebx + 0x1e]
mov dword [0x5d08e0], 0x780
push eax
push 0
push 0x780
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x43ede4]
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 0x43edd8
call fcn.00414560
add esp, 0x1c
jmp 0x4042d8
push dword [0x43ede4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ede4]
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 0x43edd8
call fcn.00414560
add esp, 0x1c
push dword [0x43ede4]
call edi
push 2
push dword [0x43ede4]
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 0x43edd8
call fcn.00414560
add esp, 0x18
push dword [0x43ede4]
call edi
push 2
push dword [0x43ede4]
call esi
push 0x5d08e0
push 0
lea eax, [ebx + 0x1e]
mov dword [0x5d08e0], 0x780
push eax
push 0
push 0x780
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x43ede4]
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 0x43edd8
call fcn.00414560
add esp, 0x10
push dword [0x43ede4]
call edi
push 2
push dword [0x43ede4]
call esi
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x406990
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x43e040]
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 0x43edd8
call fcn.00414560
mov ebx, dword [sym.imp.ODBC32.dll_SQLFetch]
add esp, 0xc
push dword [0x43ede4]
call ebx
push str.GUID
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x4069eb
or edi, eax
jmp 0x4069fe
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041d9ee
add esp, 4
mov edi, eax
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
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 0x43edd8
movq qword [ebp - 0x41a], xmm0
mov word [ebp - 0x40e], ax
call fcn.00414560
add esp, 0x10
push dword [0x43ede4]
call ebx
push 0x12
lea eax, [ebp - 0x40a]
push eax
push str.Photo
call fcn.00414800
push 0x43710c
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x406aa0
or eax, eax
jmp 0x406ab1
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041d9ee
add esp, 4
push 0x437110
mov byte [ebp - 0x3f8], al
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x406aca
or eax, eax
jmp 0x406adb
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041d9ee
add esp, 4
mov byte [ebp - 0x3f7], al
lea eax, [ebp - 0x3f6]
push 0x3e8
push eax
push str.Memo
call fcn.00414800
lea ecx, [ebp - 0x3f6]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406b00
push dword [0x43ede4]
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 [0x43ede4]
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 0x43edd8
call fcn.00414560
add esp, 0x10
push dword [0x43ede4]
call esi
push 2
push dword [0x43ede4]
call ebx
mov ecx, dword [ebp - 0x428]
lea edx, [ebp - 0x420]
push 0x412
call fcn.004058e0
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00417477
mov esp, ebp
pop ebp
ret
Function at 0x406b90
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x43e040]
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 0x43edd8
call fcn.00414560
add esp, 0xc
test al, al
je 0x406d48
push dword [0x43ede4]
mov ebx, dword [sym.imp.ODBC32.dll_SQLFetch]
call ebx
cmp ax, 0x64
je 0x406d48
push str.GUID
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x406bee
or esi, eax
jmp 0x406c01
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041d9ee
add esp, 4
mov esi, eax
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0
push esi
push str.SELECT_FriendName_Del_FROM_T_FriendList_WHERE_GUID_d
push 0x43edd8
call fcn.00414560
add esp, 0x10
test al, al
je 0x406d48
push dword [0x43ede4]
call ebx
cmp ax, 0x64
je 0x406d48
nop word [eax + eax]
push str.FriendName
mov word [ebp - 0x24], 0x1ec1
mov byte [ebp - 0x22], 0x62
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x406c7d
xorps xmm0, xmm0
mov word [ebp - 0x16], 0
movq qword [ebp - 0x1e], xmm0
mov byte [ebp - 0x14], 0
jmp 0x406c96
shl eax, 0xd
push 0xa
add eax, 0x4405be
push eax
lea eax, [ebp - 0x1e]
push 0xb
push eax
call fcn.00420d9d
add esp, 0x10
lea eax, [ebp - 0x1e]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.004044b0
test al, al
je 0x406d36
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 0x406d13
push 0x436f30
call fcn.004147b0
cmp eax, 0xffffffff
je 0x406d13
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041d9ee
add esp, 4
test eax, eax
jne 0x406d13
lea eax, [ebp - 0x13]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.004044b0
test al, al
mov eax, 0xffff
je 0x406d0e
movzx eax, word [ebp - 0x48]
mov byte [ebp - 8], al
jmp 0x406d17
mov byte [ebp - 8], 0xff
mov ecx, dword [ebp - 0x2c]
call fcn.00416e20
test eax, eax
je 0x406d36
movzx ecx, byte [ebp - 0x23]
lea edx, [ebp - 0x24]
push ecx
mov ecx, dword [eax + 4]
call fcn.004058e0
add esp, 4
push dword [0x43ede4]
call ebx
cmp ax, 0x64
jne 0x406c50
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417477
mov esp, ebp
pop ebp
ret