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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1030
call fcn.004187e0
mov eax, dword [0x421018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
cmp byte [ebx + 0x13], 0
mov cx, word [ebx + 6]
mov edx, dword [ebx + 8]
mov word [ebp - 0x1016], cx
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x1014], edx
mov dx, word [ebx + 0x10]
mov dword [ebp - 0x1010], ecx
mov cl, byte [ebx + 0x12]
mov eax, 0x14
mov dword [ebp - 0x1030], ebx
mov byte [ebp - 0x101c], 0xc2
mov word [ebp - 0x1019], 0x22
mov dword [ebp - 0x1008], eax
mov word [ebp - 0x100c], dx
mov byte [ebp - 0x100a], cl
mov byte [ebp - 0x1009], 0
mov dword [ebp - 0x1020], 0
jbe 0x41268e
push esi
push edi
lea edi, [ebp - 0xff0]
lea esi, [ebx + 0x18]
mov edx, dword [esi]
push edx
push str.SELECT_DurabilitySmall_FROM_LuckyItem_WHERE_ItemSerial_d
mov ecx, 0x4ed8c0
call fcn.00414e40
add esp, 8
test al, al
je 0x4125f2
mov eax, dword [0x4ed8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4125f2
mov cl, byte [esi - 4]
mov edx, dword [esi]
push str.DurabilitySmall
mov ebx, 0x4ed8c0
mov byte [ebp - 0x102c], cl
mov dword [ebp - 0x1028], edx
call fcn.00415000
mov dword [ebp - 0x1024], eax
mov eax, dword [0x4ed8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov ecx, dword [0x4ed8cc]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ebx, dword [ebp - 0x1030]
mov eax, dword [ebp - 0x1028]
mov ecx, dword [ebp - 0x1024]
jmp 0x41264c
mov edx, dword [0x4ed8cc]
push edx
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov eax, dword [0x4ed8cc]
push 2
push eax
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [esi]
push 0
push ecx
push str.INSERT_INTO_LuckyItem__ItemSerial_DurabilitySmall__VALUES___d__d_
mov ecx, 0x4ed8c0
call fcn.00414e40
mov edx, dword [0x4ed8cc]
add esp, 0xc
push edx
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov eax, dword [0x4ed8cc]
push 2
push eax
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov cl, byte [esi - 4]
mov eax, dword [esi]
mov byte [ebp - 0x102c], cl
xor ecx, ecx
mov edx, dword [ebp - 0x102c]
add dword [ebp - 0x1008], 0xc
inc byte [ebp - 0x1009]
mov dword [edi], edx
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x1020]
mov dword [edi + 8], ecx
movzx ecx, byte [ebx + 0x13]
inc eax
add edi, 0xc
add esi, 8
mov dword [ebp - 0x1020], eax
cmp eax, ecx
jl 0x412572
mov eax, dword [ebp - 0x1008]
pop edi
pop esi
mov edx, eax
shr edx, 8
mov byte [ebp - 0x101b], dl
mov edx, dword [ebp - 0x1018]
mov byte [ebp - 0x101a], al
mov ecx, dword [ebp - 0x101c]
mov dword [ebp - 0x1004], ecx
mov ecx, dword [ebp - 0x1014]
mov dword [ebp - 0x1000], edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0xffc], ecx
mov ecx, dword [ebp - 0x100c]
mov dword [ebp - 0xff8], edx
lea edx, [ebp - 0x1004]
mov dword [ebp - 0xff4], ecx
mov ecx, dword [ebp + 8]
push edx
push ecx
mov ebx, eax
call fcn.00416c00
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00417d4a
mov esp, ebp
pop ebp
ret 4
Function at 0x412700
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
cmp byte [esi + 0x13], 0
mov dword [ebp - 4], 0
jbe 0x4127d7
push ebx
mov ebx, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push edi
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
add esi, 0x14
lea ebx, [ebx]
mov eax, dword [esi]
push eax
push str.SELECT_ItemSerial_FROM_LuckyItem_WHERE_ItemSerial_d
mov ecx, 0x4ed8c0
call fcn.00414e40
add esp, 8
test al, al
je 0x41277d
mov ecx, dword [0x4ed8cc]
push ecx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x41277d
mov edx, dword [0x4ed8cc]
push edx
call edi
mov eax, dword [0x4ed8cc]
push 2
push eax
call ebx
mov ecx, dword [esi]
mov edx, dword [esi + 4]
push ecx
push edx
push str.UPDATE_LuckyItem_SET_DurabilitySmall_d_WHERE_ItemSerial_d
jmp 0x41279c
mov edx, dword [0x4ed8cc]
push edx
call edi
mov eax, dword [0x4ed8cc]
push 2
push eax
call ebx
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push ecx
push edx
push str.INSERT_INTO_LuckyItem__ItemSerial_DurabilitySmall__VALUES___d__d_
mov ecx, 0x4ed8c0
call fcn.00414e40
mov eax, dword [0x4ed8cc]
add esp, 0xc
push eax
call edi
mov ecx, dword [0x4ed8cc]
push 2
push ecx
call ebx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
movzx ecx, byte [edx + 0x13]
inc eax
add esi, 8
mov dword [ebp - 4], eax
cmp eax, ecx
jl 0x412730
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x412810
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf4
mov eax, dword [0x421018]
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 - 0xea], cx
mov ecx, dword [eax + 0xa]
mov dword [ebp - 0xe4], ecx
movzx ecx, byte [eax + 0x10]
mov dword [ebp - 0xe8], edx
movzx edx, word [eax + 0xe]
add eax, 0x11
mov byte [ebp - 0xde], cl
mov ecx, dword [eax + 4]
mov word [ebp - 0xe0], dx
mov edx, dword [eax]
mov dword [ebp - 0xd9], ecx
movzx ecx, byte [eax + 0xa]
push ebx
mov dword [ebp - 0xdd], edx
movzx edx, word [eax + 8]
push eax
mov byte [ebp - 0xd3], cl
xor ebx, ebx
push str.SELECT__FROM_MasterSkillTree_WHERE_Name_s
mov ecx, 0x4ed8c0
mov dword [ebp - 0xf0], 0xde800c2
mov byte [ebp - 0xec], bl
mov word [ebp - 0xd5], dx
call fcn.00414e40
add esp, 8
test al, al
je 0x412931
mov edx, dword [0x4ed8cc]
push edx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x412931
push str.MasterLevel
mov ebx, 0x4ed8c0
call fcn.00415000
push str.MasterPoint
mov dword [ebp - 0xd0], eax
call fcn.00415000
push str.MasterExperience
mov dword [ebp - 0xcc], eax
call fcn.004150f0
mov dword [ebp - 0xc8], eax
push 0xb4
lea eax, [ebp - 0xc0]
push eax
push str.MasterSkill
mov dword [ebp - 0xc4], edx
call fcn.00415200
mov ecx, dword [0x4ed8cc]
push ecx
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov edx, dword [0x4ed8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x41297d
mov eax, dword [0x4ed8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov ecx, dword [0x4ed8cc]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0xb4
lea edx, [ebp - 0xc0]
push 0xff
push edx
mov dword [ebp - 0xd0], ebx
mov dword [ebp - 0xcc], ebx
mov dword [ebp - 0xc8], ebx
mov dword [ebp - 0xc4], ebx
call sub.MSVCR100.dll_memset
add esp, 0xc
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0xf0]
push eax
push ecx
mov ebx, 0xe8
call fcn.00416c00
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00417d4a
mov esp, ebp
pop ebp
ret 8
Function at 0x4129b0
Capabilities:
Reference sql statements

Disassembly:
push ebx
push edi
lea edi, [esi + 0x13]
push edi
push str.SELECT_Name_FROM_MasterSkillTree_WHERE_Name_s
mov ecx, 0x4ed8c0
call fcn.00414e40
add esp, 8
test al, al
je 0x412a72
mov eax, dword [0x4ed8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x412a72
mov ecx, dword [0x4ed8cc]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push ecx
call ebx
mov edx, dword [0x4ed8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [0x4ed8cc]
push 0x5b6680
push 0
lea eax, [esi + 0x30]
push eax
push 0
push 0xb4
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push ecx
mov dword [0x5b6680], 0xb4
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
mov edx, dword [esi + 0x2c]
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x24]
push edi
push edx
mov edx, dword [esi + 0x20]
push eax
push ecx
push edx
push str.UPDATE_MasterSkillTree_SET_MasterLevel_d_MasterPoint_d_MasterExperience_I64d_MasterSkill__WHERE_Name_s
mov ecx, 0x4ed8c0
call fcn.00414e40
mov eax, dword [0x4ed8cc]
add esp, 0x18
push eax
call ebx
mov ecx, dword [0x4ed8cc]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop edi
pop ebx
ret
mov edx, dword [0x4ed8cc]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push edx
call ebx
mov eax, dword [0x4ed8cc]
push 2
push eax
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov edx, dword [0x4ed8cc]
push 0x5b6680
push 0
lea ecx, [esi + 0x30]
push ecx
push 0
push 0xb4
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push edx
mov dword [0x5b6680], 0xb4
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x24]
push eax
mov eax, dword [esi + 0x20]
push ecx
push edx
push eax
push edi
push str.INSERT_INTO_MasterSkillTree__Name_MasterLevel_MasterPoint_MasterExperience_MasterSkill__VALUES___s__d__d__I64d___
mov ecx, 0x4ed8c0
call fcn.00414e40
mov ecx, dword [0x4ed8cc]
add esp, 0x18
push ecx
call ebx
mov edx, dword [0x4ed8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop edi
pop ebx
ret
Function at 0x412b50
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push eax
mov esi, ecx
lea ebx, [esi + 0xc]
push 0x100
push ebx
call dword [sym.imp.MSVCR100.dll_strcpy_s]
add esp, 0xc
push 0
push 0x20
push 3
push 0
push 1
push closesocket
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x412ba8
push ebx
push str.__s__Could_not_open_file
add esi, 0x218
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
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 0x412bcc
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov dword [esi + 4], 0
mov ecx, dword [esi + 8]
push ecx
call fcn.00417d3f
add esp, 4
mov dword [esi + 4], eax
test eax, eax
jne 0x412c05
push ebx
push str.__s__Could_not_alloc_file_buffer
add esi, 0x218
push esi
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
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 8]
push 0
lea edx, [ebp - 4]
push edx
push ecx
push eax
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x412c2a
push ebx
push str.__s__Could_not_read_file
jmp 0x412be5
mov eax, dword [esi + 4]
cmp byte [eax], 0xef
jne 0x412c46
cmp byte [eax + 1], 0xbb
jne 0x412c46
cmp byte [eax + 2], 0xbf
jne 0x412c46
push ebx
push str.__s__The_file_is_codified_in_UTF_8_BOM_and_cannot_be_read._Change_it_to_UTF_8_and_try_again
jmp 0x412be5
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
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413170
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
movzx ecx, word [eax + 4]
mov edx, dword [eax + 6]
mov word [ebp - 0x1c], cx
mov ecx, dword [eax + 0xa]
push ebx
mov dword [ebp - 0x16], ecx
mov cl, byte [eax + 0x10]
mov dword [ebp - 0x1a], edx
mov dx, word [eax + 0xe]
push esi
lea esi, [eax + 0x11]
mov eax, dword [esi + 4]
mov byte [ebp - 0x10], cl
movzx ecx, word [esi + 8]
mov word [ebp - 0x12], dx
mov edx, dword [esi]
mov dword [ebp - 0xf], edx
mov dl, byte [esi + 0xa]
mov word [ebp - 7], cx
push esi
push str.SELECT_Status_FROM_EventLeoTheHelper_WHERE_Name_s
mov ecx, 0x4ed8c0
mov dword [ebp - 0x20], 0xe1ec1
mov dword [ebp - 0xb], eax
mov byte [ebp - 5], dl
call fcn.00414e40
add esp, 8
test al, al
je 0x413216
mov eax, dword [0x4ed8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x413216
push str.Status
mov ebx, 0x4ed8c0
call fcn.00415000
mov ecx, dword [0x4ed8cc]
push ecx
mov byte [ebp - 4], al
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov edx, dword [0x4ed8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x413261
mov eax, dword [0x4ed8cc]
push edi
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push eax
call edi
mov ecx, dword [0x4ed8cc]
mov ebx, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push ecx
call ebx
push esi
push str.INSERT_INTO_EventLeoTheHelper__Name_Status__VALUES___s_0_
mov ecx, 0x4ed8c0
call fcn.00414e40
mov edx, dword [0x4ed8cc]
add esp, 8
push edx
call edi
mov eax, dword [0x4ed8cc]
push 2
push eax
call ebx
mov byte [ebp - 4], 0
pop edi
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x20]
push ecx
push edx
mov ebx, 0x1e
call fcn.00416c00
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x413280
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
movzx ecx, word [eax + 4]
mov edx, dword [eax + 6]
mov word [ebp - 0x1c], cx
mov ecx, dword [eax + 0xa]
push ebx
mov dword [ebp - 0x16], ecx
mov cl, byte [eax + 0x10]
mov dword [ebp - 0x1a], edx
mov dx, word [eax + 0xe]
push esi
lea esi, [eax + 0x11]
mov eax, dword [esi + 4]
mov byte [ebp - 0x10], cl
movzx ecx, word [esi + 8]
mov word [ebp - 0x12], dx
mov edx, dword [esi]
mov dword [ebp - 0xf], edx
mov dl, byte [esi + 0xa]
mov word [ebp - 7], cx
push esi
push str.SELECT_Status_FROM_EventSantaClaus_WHERE_Name_s
mov ecx, 0x4ed8c0
mov dword [ebp - 0x20], 0x10e1ec1
mov dword [ebp - 0xb], eax
mov byte [ebp - 5], dl
call fcn.00414e40
add esp, 8
test al, al
je 0x413326
mov eax, dword [0x4ed8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x413326
push str.Status
mov ebx, 0x4ed8c0
call fcn.00415000
mov ecx, dword [0x4ed8cc]
push ecx
mov byte [ebp - 4], al
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov edx, dword [0x4ed8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x413371
mov eax, dword [0x4ed8cc]
push edi
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push eax
call edi
mov ecx, dword [0x4ed8cc]
mov ebx, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push ecx
call ebx
push esi
push str.INSERT_INTO_EventSantaClaus__Name_Status__VALUES___s_0_
mov ecx, 0x4ed8c0
call fcn.00414e40
mov edx, dword [0x4ed8cc]
add esp, 8
push edx
call edi
mov eax, dword [0x4ed8cc]
push 2
push eax
call ebx
mov byte [ebp - 4], 0
pop edi
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x20]
push ecx
push edx
mov ebx, 0x1e
call fcn.00416c00
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x413390
Capabilities:
Reference sql statements

Disassembly:
push ebx
push esi
lea esi, [edi + 0x11]
push esi
push str.SELECT_Name_FROM_EventLeoTheHelper_WHERE_Name_s
mov ecx, 0x4ed8c0
call fcn.00414e40
add esp, 8
test al, al
je 0x41340f
mov eax, dword [0x4ed8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x41340f
mov ecx, dword [0x4ed8cc]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push ecx
call ebx
mov edx, dword [0x4ed8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
movzx eax, byte [edi + 0x1c]
push esi
push eax
push str.UPDATE_EventLeoTheHelper_SET_Status_d_WHERE_Name_s
mov ecx, 0x4ed8c0
call fcn.00414e40
mov ecx, dword [0x4ed8cc]
add esp, 0xc
push ecx
call ebx
mov edx, dword [0x4ed8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop esi
pop ebx
ret
mov eax, dword [0x4ed8cc]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push eax
call ebx
mov ecx, dword [0x4ed8cc]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
movzx edx, byte [edi + 0x1c]
push edx
push esi
push str.INSERT_INTO_EventLeoTheHelper__Name_Status__VALUES___s__d_
mov ecx, 0x4ed8c0
call fcn.00414e40
mov eax, dword [0x4ed8cc]
add esp, 0xc
push eax
call ebx
mov ecx, dword [0x4ed8cc]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop esi
pop ebx
ret
Function at 0x413460
Capabilities:
Reference sql statements

Disassembly:
push ebx
push esi
lea esi, [edi + 0x11]
push esi
push str.SELECT_Name_FROM_EventSantaClaus_WHERE_Name_s
mov ecx, 0x4ed8c0
call fcn.00414e40
add esp, 8
test al, al
je 0x4134df
mov eax, dword [0x4ed8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4134df
mov ecx, dword [0x4ed8cc]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push ecx
call ebx
mov edx, dword [0x4ed8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
movzx eax, byte [edi + 0x1c]
push esi
push eax
push str.UPDATE_EventSantaClaus_SET_Status_d_WHERE_Name_s
mov ecx, 0x4ed8c0
call fcn.00414e40
mov ecx, dword [0x4ed8cc]
add esp, 0xc
push ecx
call ebx
mov edx, dword [0x4ed8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop esi
pop ebx
ret
mov eax, dword [0x4ed8cc]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push eax
call ebx
mov ecx, dword [0x4ed8cc]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
movzx edx, byte [edi + 0x1c]
push edx
push esi
push str.INSERT_INTO_EventSantaClaus__Name_Status__VALUES___s__d_
mov ecx, 0x4ed8c0
call fcn.00414e40
mov eax, dword [0x4ed8cc]
add esp, 0xc
push eax
call ebx
mov ecx, dword [0x4ed8cc]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop esi
pop ebx
ret

Function at 0x413e20
Capabilities:
Get common file path
Get disk information
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x421018]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
jmp 0x413e48
jmp 0x413e5a
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x413e81
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417d4a
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x10c]
push ecx
push 0
push 0
lea edx, [ebp - 0x108]
push edx
mov byte [ebp - 0x105], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x413e70
push ebx
push esi
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x10c]
mov edx, dword [ebp - 0x11c]
movzx esi, word [ebp - 0x130]
movzx ebx, word [ebp - 0x10e]
mov ecx, eax
imul ecx, eax
shl edx, 0x10
or edx, eax
shr eax, 2
imul edx, edx, 0x14ce1989
shl esi, 0xe
or esi, eax
mov eax, dword [ebp - 0x110]
and eax, 0xf5fb
shl ebx, 0x10
or eax, ebx
xor eax, 0x15ca2020
push eax
push esi
push edx
sub ecx, 0x13b06451
push ecx
push 0x12ba1074
push 0x64
push 0x421978
mov ecx, edi
call fcn.004149c0
push eax
add edi, 8
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
jmp 0x413f3f
jmp 0x413f56
mov ecx, dword [ebp - 4]
pop esi
pop ebx
xor ecx, ebp
mov al, 1
pop edi
call fcn.00417d4a
mov esp, ebp
pop ebp
ret
Function at 0x413f70
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x421018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
jmp 0x413f96
jmp 0x413fa8
cmp dword [esi + 4], 0xffffffff
je 0x413fc2
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417d4a
mov esp, ebp
pop ebp
ret 8
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x413fae
mov ecx, dword [ebp + 0xc]
mov eax, 2
push ecx
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
mov edi, dword [ebp + 8]
push edi
mov word [ebp - 0x12], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x414021
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x414021
movsx edx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
push edx
push ecx
lea edx, [ebp - 0x10]
push edx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
mov ecx, dword [esi + 4]
push 0x10
lea eax, [ebp - 0x14]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x414047
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x413fae
jmp 0x414059
jmp 0x414070
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.00417d4a
mov esp, ebp
pop ebp
ret 8

Function at 0x414090
Capabilities:
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x421018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
jmp 0x4140b8
jmp 0x4140ca
call fcn.00413e20
test al, al
jne 0x4140e6
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417d4a
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
movzx edx, word [0x424758]
push eax
lea ecx, [esi + 8]
push ecx
push edx
push 0x90
push 0x4218a0
mov ecx, esi
call fcn.004149c0
push eax
lea edx, [ebp - 0x108]
call fcn.00414af0
add esp, 0x10
push str.Content_type:_application_x_www_form_urlencoded
push 0x48
push 0x421930
mov ecx, esi
call fcn.004149c0
push eax
push str._HTTP_1.1_r_nHost:__s_r_n_s_r_n_r_n
lea edx, [ebp - 0x20c]
call fcn.00414af0
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x108]
push 0x104
push ecx
call dword [sym.imp.MSVCR100.dll_strcat_s]
lea eax, [ebp - 0x108]
add esp, 0x18
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x414160
sub eax, edx
push 0
push eax
mov eax, dword [esi + 4]
lea edx, [ebp - 0x108]
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x414193
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4140d3
jmp 0x4141a5
jmp 0x4141bc
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
pop esi
call fcn.00417d4a
mov esp, ebp
pop ebp
ret 4
Function at 0x414570
Capabilities:
Terminate process

Disassembly:
push esi
push edi
push 0x2d
push 0
push 0x4ed880
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x10
xor eax, eax
push 0x18
push 0x4219dc
mov ecx, 0x4ed878
mov dword [0x4ed8ad], eax
mov dword [0x4ed8b1], eax
mov dword [0x4ed8b5], eax
call fcn.004149c0
push eax
push 0x8c
push 0x4219f8
mov ecx, 0x4ed878
call fcn.004149c0
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov esi, dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0
call edi
push eax
call esi
jmp dword [pe_dos_header]

Function at 0x4145e0
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
jmp 0x4145fe
jmp 0x414610
jmp 0x414622
push 0x10000000
pop dword [0x5b72d4]
jmp 0x41463b
cmp dword [0x5b72d4], 0x10000000
je 0x4146ad
xor eax, eax
mov dword [0x41a3d0], eax
mov dword [0x41a3d4], eax
mov dword [0x41a3d8], eax
mov dword [str.Rwu__], eax
mov dword [0x41a3e0], eax
mov dword [0x41a3e4], eax
mov dword [0x41a3e8], eax
mov dword [0x41a3ec], eax
mov dword [0x41a3f0], eax
mov dword [0x41a3f4], eax
mov dword [str.p_H:], eax
mov dword [0x41a3fc], eax
mov dword [0x41a400], eax
mov dword [0x41a404], eax
mov dword [0x41a408], eax
mov dword [0x41a40c], eax
mov dword [0x41a410], eax
mov dword [str.r_], eax
mov dword [0x41a418], eax
mov dword [0x41a41c], eax
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
push 0xc
lea eax, [ebp - 0x28]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.PSAPI.DLL_GetModuleInformation]
mov eax, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x24]
lea edx, [ebp - 0x10]
add ebx, eax
push edx
mov dword [ebp - 0x14], ebx
call fcn.00414860
test al, al
je 0x4147a6
mov edi, dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push eax
mov eax, edi
call fcn.00414910
test al, al
je 0x4147a6
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [ebp - 4]
push ecx
push 0x40
push 0x10
push edi
call ebx
mov ecx, 0x41a3e0
mov eax, edi
sub ecx, edi
mov esi, 0x10
mov dl, byte [ecx + eax]
xor dl, 0x9f
mov byte [eax], dl
inc eax
dec esi
jne 0x414725
mov ecx, dword [ebp - 4]
lea eax, [ebp - 4]
push eax
push ecx
push 0x10
push edi
call ebx
mov esi, dword [ebp - 0x18]
lea edx, [ebp - 0xc]
push edx
push 0x40
push 0x10
push esi
call ebx
mov ecx, 0x41a3f0
mov eax, esi
sub ecx, esi
mov dword [ebp - 8], 0x10
lea esp, [esp]
mov dl, byte [ecx + eax]
xor dl, 0x9f
mov byte [eax], dl
inc eax
dec dword [ebp - 8]
jne 0x414760
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0xc]
push eax
push ecx
push 0x10
push esi
call ebx
mov ecx, dword [ebp - 0x1c]
mov edx, esi
sub edx, edi
sub edx, 0x10
push edx
add edi, 0x10
push edi
call fcn.004147e0
mov ebx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x10]
call fcn.00414860
test al, al
jne 0x4146f0
jmp 0x4147b8
jmp 0x4147cf
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4