joyce8/EMBER2024-capa huggingface dataset:
Function at 0x444150
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x47e00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x208], ecx
mov eax, dword [ebp - 0x208]
cmp dword [eax + 0xd8], 0
je 0x4441bc
push 0x4000
push 4
mov ecx, dword [ebp - 0x208]
mov edx, dword [ecx + 0xd8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x8000
push 0
mov eax, dword [ebp - 0x208]
mov ecx, dword [eax + 0xd8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [ebp - 0x208]
mov dword [edx + 0xd8], 0
movzx eax, byte [ebp + 0x10]
cmp eax, 1
jne 0x44430a
push 0x472864
mov ecx, dword [ebp + 8]
push ecx
call fcn.0044f249
add esp, 8
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x20c], 0
cmp dword [ebp - 0x210], 0
je 0x444287
mov edx, dword [ebp - 0x210]
push edx
call fcn.00419630
add esp, 4
mov dword [ebp - 0x20c], eax
mov eax, dword [ebp - 0x20c]
mov dword [ebp - 0x214], eax
push 4
push 0x103000
mov ecx, dword [ebp - 0x20c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [ebp - 0x208]
mov dword [edx + 0xd8], eax
mov eax, dword [ebp - 0x210]
push eax
mov ecx, dword [ebp - 0x20c]
push ecx
push 1
mov edx, dword [ebp - 0x208]
mov eax, dword [edx + 0xd8]
push eax
call fcn.0044f999
add esp, 0x10
push 0x14
mov ecx, dword [ebp - 0x208]
mov edx, dword [ecx + 0xd8]
push edx
call fcn.00419510
add esp, 8
mov eax, dword [ebp - 0x210]
push eax
call fcn.0044f4bd
add esp, 4
jmp 0x4442e5
mov cl, byte [0x46dbef]
mov byte [ebp - 0x204], cl
push 0x1ff
push 0
lea edx, [ebp - 0x203]
push edx
call fcn.0044c410
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
push str.Not_File_____s
lea ecx, [ebp - 0x204]
push ecx
call fcn.00403de0
add esp, 0xc
call fcn.00423340
lea edx, [ebp - 0x204]
push edx
push 0xfffff449
mov eax, dword [0x4805dc]
push eax
call fcn.00423680
add esp, 0xc
jmp 0x44439d
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x208]
mov eax, dword [edx + 0xd8]
push eax
call dword [sym.imp.binkw32.dll__BinkOpen_8]
mov ecx, dword [ebp - 0x208]
mov dword [ecx + 0xd0], eax
jmp 0x444324
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.binkw32.dll__BinkOpen_8]
mov ecx, dword [ebp - 0x208]
mov dword [ecx + 0xd0], eax
mov edx, dword [ebp - 0x208]
cmp dword [edx + 0xd0], 0
jne 0x444335
jmp 0x44439d
mov eax, dword [ebp - 0x208]
mov ecx, dword [eax + 0xd0]
mov edx, dword [ebp - 0x208]
mov eax, dword [ecx + 0x14]
mov dword [edx + 0xfc], eax
mov ecx, dword [ebp - 0x208]
mov edx, dword [ecx + 0xd0]
mov dword [edx + 0xf8], 0
call fcn.00436fa0
mov ecx, eax
call fcn.004373c0
push eax
call fcn.00444860
add esp, 4
mov ecx, dword [ebp - 0x208]
mov dword [ecx + 0x104], eax
mov ecx, dword [ebp - 0x208]
call fcn.00444450
mov ecx, dword [ebp - 0x208]
call fcn.004443b0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00449aef
mov esp, ebp
pop ebp
ret 0xc
Function at 0x45a0bb
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x45a0fa
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x45a0f5
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
or dword [ebx + 0xe281d1], ecx
lock add byte [eax], al
or dword [ebx + 0xe281d1], ecx
lock add byte [eax], al
cmp edx, 0x3000
jne 0x45a0df
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x45a0e7
cmp edx, ebx
jne 0x45a235
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x45a0b6
add eax, dword [eax + 4]
jmp 0x45a0a3
mov dword [ebp + 0xc], ebx
jmp 0x45a105
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x45a11d
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x45a13b
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x45a199
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x45a180
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x45a189
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x45a193
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x45a175
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x45a0ff
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x45a1e6
dec eax
je 0x45a1dd
sub eax, 3
je 0x45a1d4
mov dword [ebp - 4], 0x40
jmp 0x45a203
mov dword [ebp - 4], 4
jmp 0x45a1e9
mov dword [ebp - 4], 0x20
jmp 0x45a1e9
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x45a235
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x45a1b5
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.00459a46
inc ebx
stosd dword es:[edi], eax
push edx
mov ch, 0xff
jne 0x45a240
push 1
push esi
call edi
mov eax, esi
jmp 0x45a241
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
rcr byte [edi + 0x5e], 0x5b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45a8dc
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0
call dword [ebp - 0x340]
mov dword [ebp + 8], eax
push 0x104
lea eax, [ebp - 0x334]
push eax
push 0
call dword [ebp - 0x538]
call fcn.00459a46
xchg ebp, eax
xchg byte [ebp + 0x1e], cl

Function at 0x45bc3e
Capabilities:
Set thread local storage value

Disassembly:
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, edi
mov eax, 0x50746547
cmp dword [esi], eax
jne 0x45bc33
mov eax, 0x41636f72
cmp dword [esi + 4], eax
jne 0x45bc33
call fcn.00459a46
adc ah, byte [ebx - 0x23]
mov byte [ebx - 0x20fcdba6], cl
mov cx, word [ebx + ecx*2]
mov ebx, dword [edx + 0x1c]
add ebx, edi
mov eax, dword [ebx + ecx*4]
add eax, edi
push eax
call fcn.00459a46
rcr byte [ecx], 1
mov ch, 0x36
push dword [ebp + 8]
push dword [ebp + 4]
push dword [ebp]
call fcn.0045a246
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00449aef
mov esp, ebp
pop ebp
ret 8

Function at 0x45d500
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0045d1c0

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x407e30
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407f09
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407e68
mov eax, dword [ebp - 4]
call fcn.00407220
jmp 0x407e70
mov eax, dword [ebp - 4]
call fcn.00407c1c
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407ebc
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407ea6
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.00407220
jmp 0x407eb8
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407c1c
inc ebx
dec esi
jne 0x407e80
push 1
push dword [ebp - 4]
push 0x407f20
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f84
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407f10
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

Function at 0x4032a0
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x405076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x405258], eax
mov dword [0x4051e0], 0x402b80
mov dword [0x4051dc], 2
jmp 0x4032d0
mov dword [0x4051e4], 0
mov dword [0x4051e8], 0
mov dword [0x4051d8], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4051ec], eax
mov dword [0x405200], 0x404080
mov dword [0x4051f8], 0xf
mov dword [0x40506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4051f0], eax
mov dword [0x405204], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4051f4], eax
push 0x4051d8
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x40506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x405250], eax
push 5
push dword [0x405250]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x405250]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x4033a3
push 0
push 0
push 0
push 0x405208
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x4033d0
push 0x405208
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x405208
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x4033a3
mov eax, dword [0x405210]
jmp 0x4033dd
call 0x402474
ret
Function at 0x502590
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x92000]
push edi
jmp 0x5025aa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5025b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5025a0
mov eax, 1
add ebx, ebx
jne 0x5025c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5025d4
jne 0x5025f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5025f3
dec eax
add ebx, ebx
jne 0x5025e0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5025b8
add ebx, ebx
jne 0x5025ef
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x502645
xor ecx, ecx
sub eax, 3
jb 0x50260b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x50267a
sar eax, 1
mov ebp, eax
jmp 0x502616
add ebx, ebx
jne 0x502616
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5025e4
inc ecx
add ebx, ebx
jne 0x502624
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5025e4
add ebx, ebx
jne 0x502631
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x502626
jne 0x502642
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x502626
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x502664
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x502656
jmp 0x5025a6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x502664
add edi, ecx
jmp 0x5025a6
pop esi
mov edi, esi
mov ecx, 0x5070
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x502682
cmp byte [edi], 0x1e
jne 0x502682
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x502687
lea edi, [esi + 0xff000]
mov eax, dword [edi]
or eax, eax
je 0x5026ff
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x117050]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x117140]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5026b4
mov ecx, edi
jns 0x5026e3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x117144]
or eax, eax
je 0x5026f9
mov dword [ebx], eax
add ebx, 4
jmp 0x5026d1
call dword [esi + 0x117154]
mov ebp, dword [esi + 0x117148]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x502733
sub esp, 0xffffff80
jmp 0x475aca
Function at 0x402470
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.00414960
add esp, 0xc
test al, al
je 0x40256c
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40256c
push str.WCoinC
call fcn.00414bb0
cmp eax, 0xffffffff
jne 0x4024ee
or eax, eax
jmp 0x4024ff
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041de3e
add esp, 4
push str.WCoinP
mov dword [ebp - 0xc], eax
call fcn.00414bb0
cmp eax, 0xffffffff
jne 0x402515
or eax, eax
jmp 0x402526
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041de3e
add esp, 4
push str.GoblinPoint
mov dword [ebp - 8], eax
call fcn.00414bb0
cmp eax, 0xffffffff
jne 0x40253c
or eax, eax
jmp 0x40254d
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041de3e
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 0x4025da
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.00414960
add esp, 0xc
push dword [0x43ede4]
test al, al
jne 0x4025b9
call edi
push 2
push dword [0x43ede4]
call ebx
mov byte [ebp - 0xf], 1
jmp 0x4025da
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.00416260
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x402600
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.00414960
add esp, 0xc
test al, al
je 0x40278b
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40278b
push str.WCoinC
call fcn.00414bb0
cmp eax, 0xffffffff
jne 0x4026a6
or eax, eax
jmp 0x4026b7
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041de3e
add esp, 4
push str.WCoinP
mov dword [ebp - 0x10], eax
call fcn.00414bb0
cmp eax, 0xffffffff
jne 0x4026cd
or eax, eax
jmp 0x4026de
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041de3e
add esp, 4
push str.GoblinPoint
mov dword [ebp - 0xc], eax
call fcn.00414bb0
cmp eax, 0xffffffff
jne 0x4026f4
or eax, eax
jmp 0x402705
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041de3e
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.00414960
add esp, 0x10
test al, al
je 0x402777
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x402777
push 0x4405be
call fcn.0041de3e
add esp, 4
mov dword [ebp - 4], eax
push dword [0x43ede4]
call esi
push 2
push dword [0x43ede4]
call edi
jmp 0x4027a9
push dword [0x43ede4]
call esi
push 2
push dword [0x43ede4]
call edi
jmp 0x4027a5
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.00416260
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x403140
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.00414960
add esp, 0xc
test al, al
je 0x403287
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x403287
push str.WCoinC
call fcn.00414bb0
cmp eax, 0xffffffff
jne 0x4031c9
mov dword [ebp - 0x20], eax
jmp 0x4031dd
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041de3e
add esp, 4
mov dword [ebp - 0x20], eax
push str.WCoinP
call fcn.00414bb0
cmp eax, 0xffffffff
jne 0x4031f1
mov dword [ebp - 0x1c], eax
jmp 0x403205
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041de3e
add esp, 4
mov dword [ebp - 0x1c], eax
push str.GoblinPoint
call fcn.00414bb0
cmp eax, 0xffffffff
jne 0x403219
mov dword [ebp - 0x18], eax
jmp 0x40322d
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041de3e
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 0x4032b7
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.00414960
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.004178c7
mov esp, ebp
pop ebp
ret 4
Function at 0x4032f0
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.00414960
add esp, 0xc
test al, al
je 0x40346b
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40346b
push str.WCoinC
call fcn.00414bb0
cmp eax, 0xffffffff
jne 0x403378
mov dword [ebp - 0x20], eax
jmp 0x40338c
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041de3e
add esp, 4
mov dword [ebp - 0x20], eax
push str.WCoinP
call fcn.00414bb0
cmp eax, 0xffffffff
jne 0x4033a0
mov dword [ebp - 0x1c], eax
jmp 0x4033b4
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041de3e
add esp, 4
mov dword [ebp - 0x1c], eax
push str.GoblinPoint
call fcn.00414bb0
cmp eax, 0xffffffff
jne 0x4033c8
mov dword [ebp - 0x18], eax
jmp 0x4033dc
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041de3e
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.00414960
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.004178c7
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.00414960
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.004178c7
mov esp, ebp
pop ebp
ret 4