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

Disassembly:
push ebx
push esi
lea esi, [edi + 6]
push esi
push str.SELECT__FROM_CustomQuest_WHERE_Name_s
mov ecx, 0x424ee0
call fcn.00417790
add esp, 8
test al, al
je 0x40fb2e
mov eax, dword [0x424eec]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40fb2e
mov ecx, dword [0x424eec]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push ecx
call ebx
mov edx, dword [0x424eec]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [edi + 0x14]
push esi
push eax
push str.Update_CustomQuest_SET_quest___d_WHERE_Name___s
mov ecx, 0x424ee0
call fcn.00417790
mov ecx, dword [0x424eec]
add esp, 0xc
push ecx
call ebx
mov edx, dword [0x424eec]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop esi
pop ebx
ret
mov eax, dword [0x424eec]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push eax
call ebx
mov ecx, dword [0x424eec]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov edx, dword [edi + 0x14]
push edx
push esi
push str.INSERT_INTO_CustomQuest__Name_quest__VALUES___s__d_
mov ecx, 0x424ee0
call fcn.00417790
mov eax, dword [0x424eec]
add esp, 0xc
push eax
call ebx
mov ecx, dword [0x424eec]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop esi
pop ebx
ret

Function at 0x40fb80
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov cx, word [eax + 4]
mov edx, dword [eax + 6]
add eax, 6
mov word [ebp - 0x18], cx
mov ecx, dword [eax + 4]
push ebx
mov dword [ebp - 0x12], ecx
mov cl, byte [eax + 0xa]
mov dword [ebp - 0x16], edx
mov dx, word [eax + 8]
push eax
mov byte [ebp - 0xc], cl
push str.SELECT__FROM_CustomQuest_WHERE_Name_s
mov ecx, 0x424ee0
mov ebx, 0x18
mov word [ebp - 0x1c], 0x18c1
mov byte [ebp - 0x1a], 0xf1
mov word [ebp - 0xe], dx
call fcn.00417790
add esp, 8
test al, al
je 0x40fc3a
mov edx, dword [0x424eec]
push edx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40fc3a
push str.quest
call fcn.00417950
cmp eax, 0xffffffff
jne 0x40fbf8
or eax, eax
jmp 0x40fc0a
shl eax, 0xd
add eax, 0x425b0e
push eax
call dword [sym.imp.MSVCR100.dll_atoi]
add esp, 4
mov dword [ebp - 8], eax
mov eax, dword [0x424eec]
push eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov ecx, dword [0x424eec]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
push ecx
push edx
call fcn.004198e0
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [0x424eec]
push edx
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov eax, dword [0x424eec]
push 2
push eax
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
push ecx
push edx
mov dword [ebp - 8], 0
call fcn.004198e0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4101c0
Capabilities:
Reference sql statements

Disassembly:
push ebx
push edi
lea edi, [esi + 6]
push edi
push str.SELECT__FROM_CustomAttack_WHERE_Name_s
mov ecx, 0x424ee0
call fcn.00417790
add esp, 8
test al, al
je 0x41027e
mov eax, dword [0x424eec]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x41027e
mov ecx, dword [0x424eec]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push ecx
call ebx
mov edx, dword [0x424eec]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x30]
mov edx, dword [esi + 0x2c]
push edi
push eax
mov eax, dword [esi + 0x28]
push ecx
mov ecx, dword [esi + 0x24]
push edx
movzx edx, word [esi + 0x20]
push eax
movzx eax, word [esi + 0x1e]
push ecx
movzx ecx, word [esi + 0x1c]
push edx
movzx edx, word [esi + 0x1a]
push eax
movzx eax, word [esi + 0x18]
push ecx
movzx ecx, word [esi + 0x16]
push edx
movzx edx, word [esi + 0x14]
push eax
movzx eax, word [esi + 0x12]
push ecx
push edx
push eax
push str.Update_CustomAttack_SET_Active___d__Skill___d__Map___d__PosX___d__PosY___d__AutoBuff___d__OffPvP___d__AutoReset___d__AutoAddStr___d__AutoAddAgi___d__AutoAddVit___d__AutoAddEne___d__AutoAddCmd___d__WHERE_Name___s
mov ecx, 0x424ee0
call fcn.00417790
mov ecx, dword [0x424eec]
add esp, 0x3c
push ecx
call ebx
mov edx, dword [0x424eec]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop edi
pop ebx
ret
mov eax, dword [0x424eec]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push eax
call ebx
mov ecx, dword [0x424eec]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov edx, dword [esi + 0x34]
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x2c]
push edx
mov edx, dword [esi + 0x28]
push eax
mov eax, dword [esi + 0x24]
push ecx
movzx ecx, word [esi + 0x20]
push edx
movzx edx, word [esi + 0x1e]
push eax
movzx eax, word [esi + 0x1c]
push ecx
movzx ecx, word [esi + 0x1a]
push edx
movzx edx, word [esi + 0x18]
push eax
movzx eax, word [esi + 0x16]
push ecx
movzx ecx, word [esi + 0x14]
push edx
movzx edx, word [esi + 0x12]
push eax
push ecx
push edx
push edi
push str.INSERT_INTO_CustomAttack__Name_Active_Skill_Map_PosX_PosY_AutoBuff_OffPvP_AutoReset_AutoAddStr_AutoAddAgi_AutoAddVit_AutoAddEne_AutoAddCmd__VALUES___s__d__d__d__d__d__d__d__d__d__d__d__d__d_
mov ecx, 0x424ee0
call fcn.00417790
mov eax, dword [0x424eec]
add esp, 0x3c
push eax
call ebx
mov ecx, dword [0x424eec]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop edi
pop ebx
ret
Function at 0x410310
Capabilities:
Reference sql statements

Disassembly:
movzx eax, word [esi + 0x12]
push ebx
push edi
push eax
lea edi, [esi + 6]
push edi
push str.SELECT__FROM_CustomNpcQuest_WHERE_Name_s_and_Quest___d
mov ecx, 0x424ee0
call fcn.00417790
add esp, 0xc
test al, al
je 0x410393
mov ecx, dword [0x424eec]
push ecx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x410393
mov edx, dword [0x424eec]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push edx
call ebx
mov eax, dword [0x424eec]
push 2
push eax
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
movzx ecx, word [esi + 0x12]
push ecx
push edi
push str.Update_CustomNpcQuest_SET_Count__Count1_MonsterCount99999_WHERE_Name___s_and_Quest___d
mov ecx, 0x424ee0
call fcn.00417790
mov edx, dword [0x424eec]
add esp, 0xc
push edx
call ebx
mov eax, dword [0x424eec]
push 2
push eax
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop edi
pop ebx
ret
mov ecx, dword [0x424eec]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push ecx
call ebx
mov edx, dword [0x424eec]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
movzx eax, word [esi + 0x12]
push eax
push edi
push str.INSERT_INTO_CustomNpcQuest__Name_quest_count_MonsterCount__VALUES___s__d_1_99999_
mov ecx, 0x424ee0
call fcn.00417790
mov ecx, dword [0x424eec]
add esp, 0xc
push ecx
call ebx
mov edx, dword [0x424eec]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop edi
pop ebx
ret

Function at 0x4103f0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
movzx ecx, word [esi + 0x12]
mov ax, word [esi + 4]
push ebx
push ecx
lea edx, [esi + 6]
push edx
push str.SELECT__FROM_CustomNpcQuest_WHERE_Name_s_and_Quest___d
mov ecx, 0x424ee0
xor ebx, ebx
mov dword [ebp - 0x14], 0xf714c1
mov word [ebp - 0x10], ax
call fcn.00417790
add esp, 0xc
test al, al
je 0x4104bc
mov eax, dword [0x424eec]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4104bc
push edi
push str.Count
call fcn.00417950
mov edi, dword [sym.imp.MSVCR100.dll_atoi]
cmp eax, 0xffffffff
jne 0x410458
or eax, 0xffffffff
jmp 0x410466
shl eax, 0xd
add eax, 0x425b0e
push eax
call edi
add esp, 4
push str.MonsterCount
mov dword [ebp - 8], eax
call fcn.00417950
cmp eax, 0xffffffff
jne 0x41047c
or eax, eax
jmp 0x41048a
shl eax, 0xd
add eax, 0x425b0e
push eax
call edi
add esp, 4
mov ecx, dword [0x424eec]
push ecx
mov dword [ebp - 4], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov edx, dword [0x424eec]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ax, word [esi + 0x12]
mov cx, word [esi + 0x14]
mov word [ebp - 0xe], ax
mov word [ebp - 0xc], cx
pop edi
jmp 0x4104f1
mov edx, dword [0x424eec]
push edx
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov eax, dword [0x424eec]
push 2
push eax
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov cx, word [esi + 0x12]
mov dx, word [esi + 0x14]
mov word [ebp - 0xe], cx
mov word [ebp - 0xc], dx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], 0x1869f
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
push ecx
mov ebx, 0x14
call fcn.004198e0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410510
Capabilities:
Reference sql statements

Disassembly:
movzx eax, word [esi + 0x12]
push ebx
push edi
push eax
lea edi, [esi + 6]
push edi
push str.SELECT__FROM_CustomNpcQuest_WHERE_Name_s_and_Quest___d
mov ecx, 0x424ee0
call fcn.00417790
add esp, 0xc
test al, al
je 0x410572
mov ecx, dword [0x424eec]
push ecx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x410572
mov edx, dword [0x424eec]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push edx
call ebx
mov eax, dword [0x424eec]
push 2
push eax
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
movzx ecx, word [esi + 0x12]
mov edx, dword [esi + 0x14]
push ecx
push edi
push edx
push str.Update_CustomNpcQuest_SET_MonsterCount_d_WHERE_Name___s_and_Quest___d
jmp 0x41059e
mov edx, dword [0x424eec]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push edx
call ebx
mov eax, dword [0x424eec]
push 2
push eax
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [esi + 0x14]
movzx edx, word [esi + 0x12]
push ecx
push edx
push edi
push str.INSERT_INTO_CustomNpcQuest__Name_quest_count_monstercount__VALUES___s__d_0__d_
mov ecx, 0x424ee0
call fcn.00417790
mov eax, dword [0x424eec]
add esp, 0x10
push eax
call ebx
mov ecx, dword [0x424eec]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop edi
pop ebx
ret
Function at 0x412060
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
movzx ecx, word [eax + 4]
mov edx, dword [eax + 6]
mov word [ebp - 0x28], cx
mov ecx, dword [eax + 0xa]
push ebx
mov dword [ebp - 0x22], ecx
mov cl, byte [eax + 0x10]
push esi
lea esi, [eax + 0x11]
mov dword [ebp - 0x26], edx
mov dx, word [eax + 0xe]
mov eax, dword [esi + 4]
mov byte [ebp - 0x1c], cl
movzx ecx, word [esi + 8]
mov word [ebp - 0x1e], dx
mov edx, dword [esi]
push edi
mov dword [ebp - 0x1b], edx
mov dl, byte [esi + 0xa]
mov dword [ebp - 0x17], eax
xor eax, eax
mov word [ebp - 0x13], cx
push esi
push str.SELECT_Family_FROM_Gens_Rank_WHERE_Name_s
mov ecx, 0x424ee0
mov dword [ebp - 0x2c], 0x21128c1
mov byte [ebp - 0x11], dl
mov word [ebp - 0x10], ax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
call fcn.00417790
add esp, 8
test al, al
je 0x4121de
mov eax, dword [0x424eec]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4121de
push str.Family
call fcn.00417950
cmp eax, 0xffffffff
jne 0x4120fe
or ebx, eax
jmp 0x412112
shl eax, 0xd
add eax, 0x425b0e
push eax
call dword [sym.imp.MSVCR100.dll_atoi]
add esp, 4
mov ebx, eax
mov ecx, dword [0x424eec]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push ecx
mov byte [ebp - 0xf], bl
call edi
mov edx, dword [0x424eec]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
movzx eax, bl
push eax
push esi
push str.EXEC_WZ_GetCharacterGensInfo__s__d
mov ecx, 0x424ee0
call fcn.00417790
add esp, 0xc
test al, al
je 0x4121ca
mov ecx, dword [0x424eec]
push ecx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4121ca
push str.Rank
call fcn.00417950
cmp eax, 0xffffffff
jne 0x412174
or eax, eax
jmp 0x412186
shl eax, 0xd
add eax, 0x425b0e
push eax
call dword [sym.imp.MSVCR100.dll_atoi]
add esp, 4
push str.Contribution
mov dword [ebp - 0xc], eax
call fcn.00417950
cmp eax, 0xffffffff
jne 0x41219c
or eax, eax
jmp 0x4121ae
shl eax, 0xd
add eax, 0x425b0e
push eax
call dword [sym.imp.MSVCR100.dll_atoi]
add esp, 4
mov edx, dword [0x424eec]
push edx
mov dword [ebp - 8], eax
call edi
mov eax, dword [0x424eec]
push 2
push eax
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x4121fd
mov ecx, dword [0x424eec]
push ecx
call edi
mov edx, dword [0x424eec]
push 2
push edx
jmp 0x4121f3
mov eax, dword [0x424eec]
push eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov ecx, dword [0x424eec]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov byte [ebp - 0x10], 1
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x2c]
push edx
push eax
mov ebx, 0x28
call fcn.004198e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4123f0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, eax
movzx eax, word [esi + 4]
mov ecx, dword [esi + 6]
mov edx, dword [esi + 0xa]
mov dword [ebp - 0x26], ecx
movzx ecx, byte [esi + 0x10]
mov word [ebp - 0x28], ax
movzx eax, word [esi + 0xe]
mov byte [ebp - 0x1c], cl
mov ecx, dword [esi + 0x15]
mov word [ebp - 0x1e], ax
lea eax, [esi + 0x11]
mov dword [ebp - 0x17], ecx
movzx ecx, byte [eax + 0xa]
mov dword [ebp - 0x22], edx
mov edx, dword [eax]
mov byte [ebp - 0x11], cl
xor ecx, ecx
mov dword [ebp - 0x1b], edx
mov dx, word [eax + 8]
push eax
mov word [ebp - 0x10], cx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
push str.SELECT_Rank_Status_FROM_Gens_Reward_WHERE_Name_s
mov ecx, 0x424ee0
mov ebx, 0x28
mov dword [ebp - 0x2c], 0x41128c1
mov word [ebp - 0x13], dx
call fcn.00417790
add esp, 8
test al, al
je 0x4124f3
mov edx, dword [0x424eec]
push edx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4124f3
mov al, byte [esi + 0x1c]
push str.Rank
mov byte [ebp - 0xf], al
call fcn.00417950
mov esi, dword [sym.imp.MSVCR100.dll_atoi]
cmp eax, 0xffffffff
jne 0x4124a0
or eax, 0xffffffff
jmp 0x4124ae
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
push str.Status
mov dword [ebp - 0xc], eax
call fcn.00417950
cmp eax, 0xffffffff
jne 0x4124c4
or eax, eax
jmp 0x4124d2
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
mov ecx, dword [0x424eec]
push ecx
mov dword [ebp - 8], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov edx, dword [0x424eec]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x412512
mov eax, dword [0x424eec]
push eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov ecx, dword [0x424eec]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov byte [ebp - 0x10], 1
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x2c]
push edx
push eax
call fcn.004198e0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x412530
Capabilities:
Reference sql statements

Disassembly:
push ebx
push edi
lea edi, [esi + 0x11]
push edi
push str.SELECT_Name_FROM_Gens_Reward_WHERE_Name_s
mov ecx, 0x424ee0
call fcn.00417790
add esp, 8
test al, al
je 0x412595
mov eax, dword [0x424eec]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x412595
mov ecx, dword [0x424eec]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push ecx
call ebx
mov edx, dword [0x424eec]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [esi + 0x24]
push edi
push eax
push str.UPDATE_Gens_Reward_SET_Status_d_WHERE_Name_s
mov ecx, 0x424ee0
call fcn.00417790
add esp, 0xc
jmp 0x4125cd
mov eax, dword [0x424eec]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push eax
call ebx
mov ecx, dword [0x424eec]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x20]
push edx
push eax
push edi
push str.INSERT_INTO_Gens_Reward__Name_Rank_Status__VALUES___s__d__d_
mov ecx, 0x424ee0
call fcn.00417790
add esp, 0x10
mov ecx, dword [0x424eec]
push ecx
call ebx
mov edx, dword [0x424eec]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop edi
pop ebx
ret
Function at 0x414ac0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x424018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov cx, word [eax + 4]
mov edx, dword [eax + 6]
mov word [ebp - 0x122], cx
mov ecx, dword [eax + 0xa]
mov dword [ebp - 0x11c], ecx
movzx ecx, byte [eax + 0x10]
mov dword [ebp - 0x120], edx
movzx edx, word [eax + 0xe]
add eax, 0x11
mov byte [ebp - 0x116], cl
mov ecx, dword [eax + 4]
push ebx
mov word [ebp - 0x118], dx
mov edx, dword [eax]
mov dword [ebp - 0x111], ecx
movzx ecx, byte [eax + 0xa]
push edi
mov dword [ebp - 0x115], edx
movzx edx, word [eax + 8]
push eax
mov byte [ebp - 0x10b], cl
xor ebx, ebx
push str.SELECT_Data_FROM_HelperData_WHERE_Name_s
mov ecx, 0x424ee0
mov dword [ebp - 0x128], 0x172001c2
mov byte [ebp - 0x124], bl
mov word [ebp - 0x10d], dx
call fcn.00417790
add esp, 8
test al, al
je 0x414bd2
mov edx, dword [0x424eec]
push edx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x414bd2
push str.Data
mov byte [ebp - 0x10a], bl
call fcn.00417950
cmp eax, 0xffffffff
jne 0x414b9b
push 0x100
lea eax, [ebp - 0x109]
push ebx
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
jmp 0x414bb4
shl eax, 0xd
add eax, 0x425b0e
push eax
mov ebx, 0x100
lea edi, [ebp - 0x109]
call fcn.00417ab0
mov ecx, dword [0x424eec]
push ecx
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov edx, dword [0x424eec]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x414c0d
mov eax, dword [0x424eec]
push eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov ecx, dword [0x424eec]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x100
lea edx, [ebp - 0x109]
push 0xff
push edx
mov byte [ebp - 0x10a], 1
call sub.MSVCR100.dll_memset
add esp, 0xc
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x128]
push eax
push ecx
mov ebx, 0x120
call fcn.004198e0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0041ae5c
mov esp, ebp
pop ebp
ret 8
Function at 0x414c40
Capabilities:
Reference sql statements

Disassembly:
push ebx
push esi
push edi
mov edi, eax
lea esi, [edi + 0x13]
push esi
push str.SELECT_Name_FROM_HelperData_WHERE_Name_s
mov ecx, 0x424ee0
call fcn.00417790
add esp, 8
test al, al
je 0x414cf2
mov eax, dword [0x424eec]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x414cf2
mov ecx, dword [0x424eec]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push ecx
call ebx
mov edx, dword [0x424eec]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [0x424eec]
push 0x4edca0
push 0
add edi, 0x1e
push edi
push 0
push 0x100
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push eax
mov dword [0x4edca0], 0x100
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
push esi
push str.UPDATE_HelperData_SET_Data__WHERE_Name_s
mov ecx, 0x424ee0
call fcn.00417790
mov ecx, dword [0x424eec]
add esp, 8
push ecx
call ebx
mov edx, dword [0x424eec]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop edi
pop esi
pop ebx
ret
mov eax, dword [0x424eec]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push eax
call ebx
mov ecx, dword [0x424eec]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov edx, dword [0x424eec]
push 0x4edca0
push 0
add edi, 0x1e
push edi
push 0
push 0x100
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push edx
mov dword [0x4edca0], 0x100
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
push esi
push str.INSERT_INTO_HelperData__Name_Data__VALUES___s___
mov ecx, 0x424ee0
call fcn.00417790
mov eax, dword [0x424eec]
add esp, 8
push eax
call ebx
mov ecx, dword [0x424eec]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop edi
pop esi
pop ebx
ret
Function at 0x414df0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x424018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4245c0]
push ebx
push esi
push edi
test eax, eax
js 0x414efd
cmp eax, 1
jge 0x414efd
mov esi, eax
imul esi, esi, 0x214
add esi, 0x4243ac
push 0x4212e0
inc eax
lea ebx, [esi + 4]
push 0x100
mov dword [0x4245c0], eax
push ebx
mov dword [esi], 1
call dword [sym.imp.MSVCR100.dll_strcpy_s]
add esp, 0xc
cmp dword [esi], 0
je 0x414efd
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0xe]
movzx ecx, word [ebp - 0x12]
movzx edx, word [ebp - 0x14]
push eax
push ecx
push edx
push ebx
lea edi, [esi + 0x110]
push str.._s_04d__02d__02d.txt
push edi
mov dword [esi + 0x104], eax
mov dword [esi + 0x108], ecx
mov dword [esi + 0x10c], edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x210], eax
cmp eax, 0xffffffff
jne 0x414ed8
mov dword [esi], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041ae5c
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 0x414efd
mov ecx, dword [esi + 0x210]
push ecx
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ae5c
mov esp, ebp
pop ebp
ret
Function at 0x414f10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
mov eax, dword [0x424018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test eax, eax
js 0x415109
cmp eax, dword [ecx + 0x218]
jge 0x415109
imul eax, eax, 0x214
cmp dword [eax + ecx + 4], 0
push esi
lea esi, [eax + ecx + 4]
je 0x415108
push ebx
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x80e]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
cmp ecx, dword [esi + 0x104]
jne 0x414f95
movzx edx, word [ebp - 0x812]
cmp edx, dword [esi + 0x108]
jne 0x414f95
movzx eax, word [ebp - 0x814]
cmp eax, dword [esi + 0x10c]
je 0x415052
mov ecx, dword [esi + 0x210]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, word [ebp - 0x80e]
movzx ecx, word [ebp - 0x812]
movzx edx, word [ebp - 0x814]
push eax
push ecx
push edx
mov dword [esi + 0x10c], edx
lea edx, [esi + 4]
push edx
lea edi, [esi + 0x110]
push str.._s_04d__02d__02d.txt
push edi
mov dword [esi + 0x104], eax
mov dword [esi + 0x108], ecx
call ebx
add esp, 0x18
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x210], eax
pop edi
cmp eax, 0xffffffff
jne 0x41501d
pop ebx
mov dword [esi], 0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041ae5c
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 0x415052
mov eax, dword [esi + 0x210]
push eax
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041ae5c
mov esp, ebp
pop ebp
ret
push 0x3ff
lea ecx, [ebp - 0x803]
push 0
push ecx
mov byte [ebp - 0x804], 0
call sub.MSVCR100.dll_memset
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
push edx
push eax
lea ecx, [ebp - 0x804]
push 0x400
push ecx
call dword [sym.imp.MSVCR100.dll_vsprintf_s]
push 0x3ff
lea edx, [ebp - 0x403]
push 0
push edx
mov byte [ebp - 0x404], 0
call sub.MSVCR100.dll_memset
movzx ecx, word [ebp - 0x808]
movzx edx, word [ebp - 0x80a]
lea eax, [ebp - 0x804]
push eax
movzx eax, word [ebp - 0x80c]
push ecx
push edx
push eax
lea ecx, [ebp - 0x404]
push str._02d:_02d:_02d__s_r_n
push ecx
call ebx
lea eax, [ebp - 0x404]
add esp, 0x40
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4150e0
mov ecx, dword [esi + 0x210]
sub eax, edx
push 0
lea edx, [ebp - 0x818]
push edx
push eax
lea eax, [ebp - 0x404]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041ae5c
mov esp, ebp
pop ebp
ret