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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x103c
call fcn.00418d20
mov eax, dword [0x422008]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ecx + 0x12], 0
movzx eax, word [ecx + 4]
movq xmm0, qword [ecx + 6]
mov word [ebp - 0x101c], ax
movzx eax, word [ecx + 0xe]
mov word [ebp - 0x1012], ax
mov al, byte [ecx + 0x10]
push ebx
mov byte [ebp - 0x1010], al
mov ebx, 0x14
mov al, byte [ecx + 0x11]
push esi
push edi
mov dword [ebp - 0x1038], edx
mov dword [ebp - 0x1034], ecx
mov byte [ebp - 0x1020], 0xc2
mov byte [ebp - 0x101d], 9
movq qword [ebp - 0x101a], xmm0
mov byte [ebp - 0x100f], al
mov byte [ebp - 0x100e], 0
mov dword [ebp - 0x100c], 0
jbe 0x40f94d
lea edi, [ebp - 0xff4]
lea esi, [ecx + 0x18]
push dword [esi]
push str.SELECT_Pet_Level_Pet_Exp_FROM_T_PetItem_Info_WHERE_ItemSerial_d
push 0x422408
call fcn.00414eb0
add esp, 0xc
test al, al
je 0x40f8a7
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40f8a7
mov al, byte [esi - 4]
mov byte [ebp - 0x1030], al
mov eax, dword [esi]
push str.Pet_Level
mov dword [ebp - 0x102c], eax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40f848
or eax, eax
jmp 0x40f85a
shl eax, 0xd
add eax, 0x423036
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
push str.Pet_Exp
mov byte [ebp - 0x1028], al
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40f873
or eax, eax
jmp 0x40f885
shl eax, 0xd
add eax, 0x423036
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
push dword [0x422414]
mov dword [ebp - 0x1024], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x40f915
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0
push 1
push dword [esi]
push str.INSERT_INTO_T_PetItem_Info__ItemSerial_Pet_Level_Pet_Exp__VALUES___d__d__d_
push 0x422408
call fcn.00414eb0
add esp, 0x14
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov al, byte [esi - 4]
mov byte [ebp - 0x1030], al
mov eax, dword [esi]
mov dword [ebp - 0x102c], eax
mov byte [ebp - 0x1028], 1
mov dword [ebp - 0x1024], 0
mov eax, dword [ebp - 0x1034]
add ebx, 0x10
movups xmm0, xmmword [ebp - 0x1030]
mov ecx, dword [ebp - 0x100c]
add esi, 8
inc byte [ebp - 0x100e]
inc ecx
movzx eax, byte [eax + 0x12]
movups xmmword [edi], xmm0
add edi, 0x10
mov dword [ebp - 0x100c], ecx
cmp ecx, eax
jl 0x40f7f2
mov eax, ebx
mov byte [ebp - 0x101e], bl
shr eax, 8
mov byte [ebp - 0x101f], al
mov eax, dword [ebp - 0x1010]
movups xmm0, xmmword [ebp - 0x1020]
mov dword [ebp - 0xff8], eax
lea eax, [ebp - 0x1008]
push ebx
push eax
push dword [ebp - 0x1038]
movups xmmword [ebp - 0x1008], xmm0
call fcn.004163f0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417e1d
mov esp, ebp
pop ebp
ret
Function at 0x40fd40
Capabilities:
Reference sql statements

Disassembly:
push ebx
mov ebx, ecx
push esi
push edi
lea eax, [ebx + 0x11]
push eax
push str.SELECT_Name_FROM_OptionData_WHERE_Name_s
push 0x422408
call fcn.00414eb0
add esp, 0xc
test al, al
je 0x40fdec
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40fdec
push dword [0x422414]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x422414]
call esi
push 0x4eb1c8
push 0
lea eax, [ebx + 0x1c]
mov dword [0x4eb1c8], 0x14
push eax
push 0
push 0x14
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
lea eax, [ebx + 0x11]
push eax
push dword [ebx + 0x38]
movzx eax, byte [ebx + 0x35]
push eax
movzx eax, byte [ebx + 0x34]
push eax
movzx eax, byte [ebx + 0x33]
push eax
movzx eax, byte [ebx + 0x32]
push eax
movzx eax, byte [ebx + 0x31]
push eax
movzx eax, byte [ebx + 0x30]
push eax
push str.UPDATE_OptionData_SET_SkillKey__GameOption_d_Qkey_d_Wkey_d_Ekey_d_ChatWindow_d_Rkey_d_QWERLevel_d_WHERE_Name_s
jmp 0x40fe61
push dword [0x422414]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x422414]
call esi
push 0x4eb1c8
push 0
lea eax, [ebx + 0x1c]
mov dword [0x4eb1c8], 0x14
push eax
push 0
push 0x14
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
push dword [ebx + 0x38]
movzx eax, byte [ebx + 0x35]
push eax
movzx eax, byte [ebx + 0x34]
push eax
movzx eax, byte [ebx + 0x33]
push eax
movzx eax, byte [ebx + 0x32]
push eax
movzx eax, byte [ebx + 0x31]
push eax
movzx eax, byte [ebx + 0x30]
push eax
lea eax, [ebx + 0x11]
push eax
push str.INSERT_INTO_OptionData__Name_SkillKey_GameOption_Qkey_Wkey_Ekey_ChatWindow_Rkey_QWERLevel__VALUES___s____d__d__d__d__d__d__d_
push 0x422408
call fcn.00414eb0
add esp, 0x28
push dword [0x422414]
call edi
push 2
push dword [0x422414]
call esi
pop edi
pop esi
pop ebx
ret
Function at 0x412890
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x28], 0x21128c1
movzx eax, word [ecx + 4]
movq xmm0, qword [ecx + 6]
mov word [ebp - 0x24], ax
movzx eax, word [ecx + 0xe]
mov word [ebp - 0x1a], ax
mov al, byte [ecx + 0x10]
add ecx, 0x11
mov byte [ebp - 0x18], al
push ecx
movq qword [ebp - 0x22], xmm0
movzx eax, word [ecx + 8]
movq xmm0, qword [ecx]
mov word [ebp - 0xf], ax
mov al, byte [ecx + 0xa]
push str.SELECT_Family_FROM_Gens_Rank_WHERE_Name_s
push 0x422408
mov dword [ebp + 8], ecx
movq qword [ebp - 0x17], xmm0
mov byte [ebp - 0xd], al
mov word [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call fcn.00414eb0
add esp, 0xc
test al, al
je 0x412a1e
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x412a1e
push str.Family
call fcn.00415100
mov esi, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
cmp eax, 0xffffffff
jne 0x41293e
or ebx, 0xffffffff
jmp 0x41294e
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
mov ebx, eax
push dword [0x422414]
mov byte [ebp - 0xb], bl
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
movzx eax, bl
push eax
push dword [ebp + 8]
push str.EXEC_WZ_GetCharacterGensInfo__s__d
push 0x422408
call fcn.00414eb0
add esp, 0x10
test al, al
je 0x412a00
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x412a00
push str.Rank
call fcn.00415100
cmp eax, 0xffffffff
jne 0x4129ad
or eax, eax
jmp 0x4129bb
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
push str.Contribution
mov dword [ebp - 8], eax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x4129d1
or eax, eax
jmp 0x4129df
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
push dword [0x422414]
mov dword [ebp - 4], eax
mov eax, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call eax
mov eax, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x422414]
call eax
jmp 0x412a3c
push dword [0x422414]
mov eax, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call eax
mov eax, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x422414]
call eax
jmp 0x412a38
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov byte [ebp - 0xc], 1
push 0x28
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0xc]
call fcn.004163f0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x414240
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x422008]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
push edi
test eax, eax
js 0x414428
cmp eax, dword [ecx + 0x218]
jge 0x414428
imul edi, eax, 0x214
add edi, ecx
cmp dword [edi + 4], 0
je 0x414428
lea eax, [ebp - 0x81c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x816]
cmp eax, dword [edi + 0x108]
jne 0x4142bf
movzx eax, word [ebp - 0x81a]
cmp eax, dword [edi + 0x10c]
jne 0x4142bf
movzx eax, word [ebp - 0x81c]
cmp eax, dword [edi + 0x110]
je 0x41437e
push dword [edi + 0x214]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx edx, word [ebp - 0x816]
lea esi, [edi + 0x114]
movzx ecx, word [ebp - 0x81a]
movzx eax, word [ebp - 0x81c]
push edx
push ecx
push eax
mov dword [edi + 0x110], eax
lea eax, [edi + 8]
push eax
push str.._s_04d__02d__02d.txt
push esi
mov dword [edi + 0x108], edx
mov dword [edi + 0x10c], ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [edi + 0x214], eax
cmp eax, 0xffffffff
jne 0x414349
mov dword [edi + 4], 0
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00417e1d
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x41437e
push dword [edi + 0x214]
mov dword [edi + 4], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00417e1d
mov esp, ebp
pop ebp
ret
push 0x400
lea eax, [ebp - 0x80c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp + 0x14]
mov edx, 0x400
push eax
push ecx
push dword [ebp + 0x10]
lea ecx, [ebp - 0x80c]
call fcn.00414450
add esp, 0xc
lea eax, [ebp - 0x40c]
push 0x400
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x80c]
push eax
movzx eax, word [ebp - 0x810]
push eax
movzx eax, word [ebp - 0x812]
push eax
movzx eax, word [ebp - 0x814]
push eax
lea eax, [ebp - 0x40c]
push str._02d:_02d:_02d__s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [ebp - 0x40c]
add esp, 0x18
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x414402
push 0
lea eax, [ebp - 0x820]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x40c]
push eax
push dword [edi + 0x214]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.00417e1d
mov esp, ebp
pop ebp
ret
Function at 0x414560
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
push pe_nt_image_headers32
lea ebx, [esi + 0xc]
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
push 0
push 0x20
push 3
push 0
push 1
push SQLBindCol
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4145b9
push ebx
lea eax, [esi + 0x218]
push str.__s__Could_not_open_file
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x4145dc
push eax
call fcn.004180dd
add esp, 4
mov dword [esi + 4], 0
push dword [esi + 8]
call fcn.004180e2
add esp, 4
mov dword [esi + 4], eax
lea ecx, [ebp + 8]
mov dword [ebp + 8], 0
push 0
push ecx
push dword [esi + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41462c
push ebx
lea eax, [esi + 0x218]
push str.__s__Could_not_read_file
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10c], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
pop edi
mov dword [esi + 0x214], eax
mov al, 1
pop esi
pop ebx
pop ebp
ret 4
Function at 0x415900
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x422008]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
jmp 0x415926
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
mov dword [ecx + 4], eax
jmp 0x41593f
mov eax, dword [0x422330]
test eax, eax
jne 0x415a2f
imul edi, eax, 0x214
inc eax
push 0x41e950
push pe_nt_image_headers32
mov dword [0x422330], eax
add edi, 0x42211c
lea ebx, [edi + 4]
mov dword [edi], 1
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
cmp dword [edi], 0
je 0x415a2f
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [ebp - 0x12]
lea esi, [edi + 0x110]
movzx ecx, word [ebp - 0x16]
movzx eax, word [ebp - 0x18]
push edx
push ecx
push eax
push ebx
push str.._s_04d__02d__02d.txt
push esi
mov dword [edi + 0x104], edx
mov dword [edi + 0x108], ecx
mov dword [edi + 0x10c], eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [edi + 0x210], eax
cmp eax, 0xffffffff
jne 0x415a0b
mov dword [edi], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00417e1d
mov esp, ebp
pop ebp
ret 4
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x415a2f
push dword [edi + 0x210]
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417e1d
mov esp, ebp
pop ebp
ret 4
Function at 0x416130
Capabilities:
Terminate thread

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
mov edi, ecx
mov eax, dword [edi + 0x70]
test eax, eax
je 0x416156
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0x70]
call ebx
mov dword [edi + 0x70], 0
mov eax, dword [edi + 0x6c]
test eax, eax
je 0x416167
push eax
call ebx
mov dword [edi + 0x6c], 0
push esi
lea ecx, [edi + 0x38]
call fcn.00415570
lea esi, [edi + 0x14]
mov ebx, 8
mov eax, dword [esi]
test eax, eax
je 0x416195
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
add esi, 4
sub ebx, 1
jne 0x416178
mov eax, dword [edi + 0x10]
pop esi
test eax, eax
je 0x4161c1
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
mov dword [edi + 0x10], 0
jmp 0x4161c7
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 8]
test eax, eax
je 0x4161d8
push eax
call ebx
mov dword [edi + 8], 0
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
je 0x4161ee
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 4], 0xffffffff
pop edi
pop ebx
ret
Function at 0x4163f0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x4ebda8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test edi, edi
js 0x416558
cmp edi, 0x14
jge 0x416558
imul ecx, edi, 0x68
mov dword [ebp - 4], ecx
mov eax, dword [ecx + 0x4ec6b4]
test eax, eax
js 0x416558
cmp eax, 0x14
jge 0x416558
cmp dword [ecx + 0x4ec6b8], 0
je 0x416558
cmp dword [ecx + 0x4ec6cc], 0xffffffff
je 0x416558
mov eax, dword [ebp + 0x10]
cmp eax, 0x2000
jle 0x41646f
push eax
push edi
push str._SocketManager__Max_msg_size__Type:_1__Index:__d__Size:__d_
push 1
call fcn.004170d0
add esp, 0x10
jmp 0x416558
mov ebx, dword [ecx + 0x4ec6d4]
cmp dword [ebx + 0x20], 0
jle 0x4164d6
mov edx, dword [ebx + 0x42028]
lea ecx, [edx + eax]
cmp ecx, 0x40000
jle 0x4164a2
push ecx
push edi
push str._SocketManager__Max_msg_size__Type:_2__Index:__d__Size:__d_
push 1
call fcn.004170d0
add esp, 0x10
jmp 0x41654d
push eax
push dword [ebp + 0xc]
lea eax, [ebx + 0x2028]
add eax, edx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp + 0x10]
add esp, 0xc
add dword [ebx + 0x42028], ecx
push 0x4ebda8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push eax
push dword [ebp + 0xc]
lea esi, [ebx + 0x24]
push esi
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp + 0x10]
lea eax, [ebx + 0x14]
add esp, 0xc
mov dword [eax], ecx
mov dword [ebx + 0x20], ecx
lea ecx, [ebp + 8]
mov dword [ebx + 0x18], esi
mov dword [ebx + 0x1c], 1
push 0
push ebx
push 0
push ecx
push 1
push eax
mov eax, dword [ebp - 4]
mov dword [ebx + 0x2024], 0
mov dword [ebp + 8], 0
push dword [eax + 0x4ec6cc]
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x4164c0
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x3e5
je 0x4164c0
call esi
push eax
push str._SocketManager__WSASend___failed_with_error:__d
push 1
call fcn.004170d0
add esp, 0xc
push edi
mov ecx, 0x4ebd30
call fcn.00416570
push 0x4ebda8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x416740
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov dword [ebp - 4], esi
lea edi, [esi + 0x78]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test ebx, ebx
js 0x4168cd
cmp ebx, 0x14
jge 0x4168cd
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x41677a
mov ecx, esi
jmp 0x4168c7
mov esi, dword [ebp + 0x10]
imul ecx, ebx, 0x68
add dword [esi + 0x2024], eax
mov edx, dword [esi + 0x2024]
mov dword [ebp + 0xc], ecx
mov ecx, dword [esi + 0x20]
cmp edx, ecx
jl 0x416866
mov eax, dword [esi + 0x42028]
test eax, eax
jg 0x4167bb
push edi
mov dword [esi + 0x20], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea edx, [esi + 0x2028]
lea ecx, [esi + 0x24]
cmp eax, 0x2000
jle 0x416830
push 0x2000
push edx
push ecx
call sub.VCRUNTIME140.dll_memcpy
lea eax, [esi + 0x24]
mov dword [esi + 0x14], 0x2000
mov dword [esi + 0x18], eax
add esp, 0xc
mov eax, dword [esi + 0x42028]
sub eax, 0x2000
mov dword [esi + 0x1c], 1
mov dword [esi + 0x20], 0x2000
push eax
lea eax, [esi + 0x4028]
mov dword [esi + 0x2024], 0
push eax
lea eax, [esi + 0x2028]
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
lea eax, [esi + 0x14]
add dword [esi + 0x42028], 0xffffe000
jmp 0x41687c
push eax
push edx
push ecx
call sub.VCRUNTIME140.dll_memcpy
lea eax, [esi + 0x24]
mov dword [esi + 0x2024], 0
mov dword [esi + 0x18], eax
add esp, 0xc
mov eax, dword [esi + 0x42028]
mov dword [esi + 0x14], eax
mov dword [esi + 0x20], eax
lea eax, [esi + 0x14]
mov dword [esi + 0x42028], 0
jmp 0x416875
lea eax, [esi + 0x24]
add eax, edx
sub ecx, edx
mov dword [esi + 0x18], eax
lea eax, [esi + 0x14]
mov dword [eax], ecx
mov dword [esi + 0x1c], 1
push 0
push esi
push 0
lea ecx, [ebp + 8]
mov dword [ebp + 8], 0
push ecx
push 1
push eax
mov eax, dword [ebp + 0xc]
push dword [eax + 0x4ec6cc]
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x4168cd
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x3e5
je 0x4168cd
call esi
push eax
push str._SocketManager__WSASend___failed_with_error:__d
push 1
call fcn.004170d0
mov ecx, dword [ebp - 4]
add esp, 0xc
push ebx
call fcn.00416570
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x417040
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x422008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
jmp 0x417068
lea eax, [ebp - 0x104]
push pe_nt_image_headers32
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov edx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x104]
call fcn.004171a0
add esp, 0x10
lea eax, [ebp - 0x104]
push 0x10
push str.Error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4170b8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4176e0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf44
mov eax, dword [0x422008]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
movq xmm0, qword [ecx + 6]
push ebx
push esi
movzx eax, word [ecx + 4]
lea ebx, [ecx + 6]
push edi
mov word [ebp - 0xf22], ax
movzx eax, word [ebx + 8]
push ebx
mov word [ebp - 0xf18], ax
mov al, byte [ebx + 0xa]
push str.SELECT_Guild_FROM_WarehouseGuild_WHERE_Guild_s
push 0x422408
mov dword [ebp - 0xf2c], ecx
mov dword [ebp - 0xf28], 0x5200fc2
mov byte [ebp - 0xf24], 0x70
movq qword [ebp - 0xf20], xmm0
mov byte [ebp - 0xf16], al
call fcn.00414eb0
add esp, 0xc
test al, al
je 0x41788f
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x41788f
push dword [0x422414]
mov esi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call esi
mov edi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x422414]
call edi
push ebx
push str.SELECT_Items_Money_pw_FROM_WarehouseGuild_WHERE_Guild_s
push 0x422408
call fcn.00414eb0
add esp, 0xc
test al, al
je 0x417847
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x417847
push 0xf00
lea eax, [ebp - 0xf15]
push eax
push str.Items
call fcn.00415160
push str.Money
call fcn.00415100
mov ebx, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
cmp eax, 0xffffffff
jne 0x4177ef
or eax, 0xffffffff
jmp 0x4177fd
shl eax, 0xd
add eax, 0x423036
push eax
call ebx
add esp, 4
push 0x41ef6c
mov dword [ebp - 0x14], eax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x417813
or eax, eax
jmp 0x417821
shl eax, 0xd
add eax, 0x423036
push eax
call ebx
add esp, 4
push dword [0x422414]
mov word [ebp - 0x10], ax
call esi
push 2
push dword [0x422414]
call edi
push 0xf20
lea eax, [ebp - 0xf28]
jmp 0x417944
push dword [0x422414]
call esi
push 2
push dword [0x422414]
call edi
push 0xf00
lea eax, [ebp - 0xf15]
push 0xff
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x14], 0
xor eax, eax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0xf28]
push 0xf20
jmp 0x417944
push dword [0x422414]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x422414]
call esi
push ebx
push str.INSERT_INTO_WarehouseGuild__Guild_Money_EndUseDate_DbVersion__VALUES___s_0_getdate___3_
push 0x422408
call fcn.00414eb0
add esp, 0xc
push dword [0x422414]
call edi
push 2
push dword [0x422414]
call esi
push ebx
push 0xf00
push 0xf00
push str.UPDATE_WarehouseGuild_SET_ItemsCONVERT_varbinary__d__REPLICATE_char_0xFF___d___WHERE_Guild_s
push 0x422408
call fcn.00414eb0
add esp, 0x14
push dword [0x422414]
call edi
push 2
push dword [0x422414]
call esi
mov eax, dword [ebp - 0xf2c]
movq xmm0, qword [ebx]
mov dword [ebp - 0xf40], 0x710512c1
movq qword [ebp - 0xf3a], xmm0
movzx eax, word [eax + 4]
mov word [ebp - 0xf3c], ax
movzx eax, word [ebx + 8]
mov word [ebp - 0xf32], ax
mov al, byte [ebx + 0xa]
mov byte [ebp - 0xf30], al
lea eax, [ebp - 0xf40]
push 0x12
push eax
push dword [ebp + 0xc]
call fcn.004163f0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417e1d
mov esp, ebp
pop ebp
ret 8
Function at 0x407eb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x407f09
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x407f09
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x407efa
cmp esi, edx
jae 0x407f09
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x407ee8
cmp esi, edx
jae 0x407f09
cmp word [esi], 0
je 0x407f09
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret