joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404570
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x41f100]
mov dword [ebp - 8], eax
mov dword [ebp - 0x11c], ecx
push 0x426
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 0x114], eax
mov ecx, dword [ebp + 0xc]
push ecx
call sub.WS2_32.dll_gethostbyname
mov dword [ebp - 0x118], eax
push 0
push 0
push 0x146
mov edx, dword [ebp - 0x114]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x4045ed
mov eax, dword [ebp - 4]
sub eax, 1
mov dword [ebp - 4], eax
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0x144
mov edx, dword [ebp - 0x114]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x4045c4
cmp dword [ebp - 0x118], 0
je 0x4046a3
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x118]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 4]
cmp dword [ecx + edx*4], 0
je 0x4046a3
mov eax, dword [ebp - 0x118]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 4]
mov eax, dword [ecx + edx*4]
movzx ecx, byte [eax + 3]
push ecx
mov edx, dword [ebp - 0x118]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 4]
mov edx, dword [eax + ecx*4]
movzx eax, byte [edx + 2]
push eax
mov ecx, dword [ebp - 0x118]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [edx + eax*4]
movzx edx, byte [ecx + 1]
push edx
mov eax, dword [ebp - 0x118]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 4]
mov eax, dword [ecx + edx*4]
movzx ecx, byte [eax]
push ecx
push str._d._d._d._d
lea edx, [ebp - 0x110]
push edx
call fcn.0041062c
add esp, 0x18
lea eax, [ebp - 0x110]
push eax
push 0
push 0x143
mov ecx, dword [ebp - 0x114]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
jmp 0x404601
push 0
push 0
push 0x14e
mov eax, dword [ebp - 0x114]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp - 0x110]
push ecx
push 0
push 0x148
mov edx, dword [ebp - 0x114]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [0x4200fc]
call fcn.0040fd40
mov ecx, dword [ebp - 8]
call fcn.004106b5
mov esp, ebp
pop ebp
ret 8
Function at 0x404780
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0
push 0x4073e0
mov eax, dword [ebp + 8]
push eax
push 0x67
mov ecx, dword [0x41ffe8]
push ecx
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov edx, dword [ebp - 4]
mov dword [edx + 0x1428], eax
push 0x14
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
mov edx, dword [eax + 0xc]
sub edx, dword [ecx + 4]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
mov edx, dword [eax + 8]
sub edx, dword [ecx]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
push 0xfffffffffffffffe
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x1428]
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x1428]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1428]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4049b0
Capabilities:
Create tcp socket
Create udp socket
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x41f100]
mov dword [ebp - 4], eax
mov dword [ebp - 0x23c], ecx
mov eax, dword [ebp - 0x23c]
cmp dword [eax + 4], 0
je 0x4049e1
mov ecx, dword [ebp - 0x23c]
mov eax, dword [ecx + 4]
jmp 0x404ba9
push 0x426
mov edx, dword [ebp - 0x23c]
mov eax, dword [edx + 0x1428]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 0x238], eax
push 0x428
mov ecx, dword [ebp - 0x23c]
mov edx, dword [ecx + 0x1428]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x230]
push eax
push 0
push 0
push 0x147
mov ecx, dword [ebp - 0x238]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
push 0x148
mov edx, dword [ebp - 0x238]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x104
lea eax, [ebp - 0x128]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [ebp - 0x128]
push edx
call fcn.0041074b
add esp, 4
mov word [ebp - 0x1c], ax
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov ecx, dword [ebp - 0x23c]
mov dword [ecx + 0x1424], eax
mov edx, dword [ebp - 0x23c]
cmp dword [edx + 0x1424], 0xffffffff
jne 0x404aa7
mov eax, dword [ebp - 0x23c]
mov eax, dword [eax + 4]
jmp 0x404ba9
mov word [ebp - 0x14], 2
mov cx, word [ebp - 0x1c]
push ecx
call sub.WS2_32.dll_htons
mov word [ebp - 0x12], ax
lea edx, [ebp - 0x230]
push edx
call sub.WS2_32.dll_inet_addr
mov dword [ebp - 0x10], eax
push 0x10
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x23c]
mov edx, dword [ecx + 0x1424]
push edx
call sub.WS2_32.dll_bind
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0xffffffff
jne 0x404aff
mov eax, dword [ebp - 0x23c]
mov eax, dword [eax + 4]
jmp 0x404ba9
push 5
mov ecx, dword [ebp - 0x23c]
mov edx, dword [ecx + 0x1424]
push edx
call sub.WS2_32.dll_listen
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0xffffffff
jne 0x404b2d
mov eax, dword [ebp - 0x23c]
mov eax, dword [eax + 4]
jmp 0x404ba9
push 8
push 0x500
mov ecx, dword [ebp - 0x23c]
mov edx, dword [ecx + 0x1428]
push edx
mov eax, dword [ebp - 0x23c]
mov ecx, dword [eax + 0x1424]
push ecx
call sub.WS2_32.dll_WSAAsyncSelect
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0xffffffff
jne 0x404b6d
mov edx, dword [ebp - 0x23c]
mov eax, dword [edx + 4]
jmp 0x404ba9
push 1
mov ecx, dword [ebp - 0x23c]
call fcn.00404830
push 1
push 0xffff9000
mov ecx, dword [0x4200fc]
call fcn.0040fbf0
mov ecx, dword [ebp - 0x23c]
call fcn.00405750
mov eax, dword [ebp - 0x23c]
mov dword [eax + 4], 1
mov eax, 1
mov ecx, dword [ebp - 4]
call fcn.004106b5
mov esp, ebp
pop ebp
ret
Function at 0x404c40
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x41f100]
mov dword [ebp - 8], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x24], 0x10
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x1424]
push eax
call sub.WS2_32.dll_accept
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.WS2_32.dll_inet_ntoa
mov dword [ebp - 4], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x404c8f
mov edx, dword [ebp - 0x1c]
push edx
call sub.WS2_32.dll_closesocket
jmp 0x404d09
push 0x23
push 0x500
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x1428]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call sub.WS2_32.dll_WSAAsyncSelect
cmp eax, 0xffffffff
jne 0x404cb9
mov eax, dword [ebp - 0x1c]
push eax
call sub.WS2_32.dll_closesocket
jmp 0x404d09
mov dword [ebp - 0x28], 0x80000
mov dword [ebp - 0x20], 0x20000
push 4
lea ecx, [ebp - 0x28]
push ecx
push 0x1001
push 0xffff
mov edx, dword [ebp - 0x1c]
push edx
call sub.WS2_32.dll_setsockopt
push 4
lea eax, [ebp - 0x20]
push eax
push 0x1002
push 0xffff
mov ecx, dword [ebp - 0x1c]
push ecx
call sub.WS2_32.dll_setsockopt
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x2c]
call fcn.004058a0
mov ecx, dword [ebp - 8]
call fcn.004106b5
mov esp, ebp
pop ebp
ret
Function at 0x405060
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov dword [ebp - 0x50], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
sub ecx, dword [0x41ffcc]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0x3e8
jb 0x4051a2
mov word [ebp - 0x20], 0x14
mov word [ebp - 0x1e], 0x1001
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x24], 0
jmp 0x4050cd
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x24], 0xff
jge 0x405180
mov edx, dword [ebp - 0x24]
imul edx, edx, 0x14
mov eax, dword [ebp - 0x50]
lea ecx, [eax + edx + 0x10]
mov dword [ebp - 0x34], ecx
lea ecx, [ebp - 0x2c]
call fcn.00402a80
mov ecx, dword [ebp - 0x34]
call fcn.0040b5f0
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], eax
lea edx, [ebp - 0x3c]
push edx
mov ecx, dword [ebp - 0x34]
call fcn.00402900
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], edx
jmp 0x405127
push 0
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004078d0
lea ecx, [ebp - 0x4c]
push ecx
mov ecx, dword [ebp - 0x34]
call fcn.00402930
push eax
lea ecx, [ebp - 0x2c]
call fcn.00407860
movzx edx, al
test edx, edx
je 0x40517b
lea ecx, [ebp - 0x2c]
call fcn.00402f90
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov cl, byte [eax + 0x6c]
mov byte [ebp - 0x54], cl
cmp byte [ebp - 0x54], 1
je 0x405165
cmp byte [ebp - 0x54], 2
je 0x405170
jmp 0x405179
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
jmp 0x405179
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
jmp 0x405119
jmp 0x4050c4
push 0
movzx ecx, word [ebp - 0x20]
push ecx
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
je 0x4051a2
mov ecx, dword [ebp - 0xc]
mov dword [0x41ffcc], ecx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4051b0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov word [ebp - 4], 4
mov word [ebp - 2], 0x2000
push 0
movzx eax, word [ebp - 4]
push eax
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
je 0x4051e5
mov eax, dword [ebp + 0x10]
mov byte [eax + 4], 1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x406c30
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x41f100]
mov dword [ebp - 4], eax
mov dword [ebp - 0x38], ecx
mov word [ebp - 0x32], 0xf0f
mov word [ebp - 0x34], 0x2f
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov cx, word [ebp + 0x18]
mov word [ebp - 0x2c], cx
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x2a]
push eax
call fcn.00410c20
add esp, 8
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 0x19]
push edx
call fcn.00410c20
add esp, 8
push 0
movzx eax, word [ebp - 0x34]
push eax
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.WS2_32.dll_send
mov eax, 1
mov ecx, dword [ebp - 4]
call fcn.004106b5
mov esp, ebp
pop ebp
ret 0x14

Function at 0x406cb0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x41f100]
mov dword [ebp - 4], eax
mov dword [ebp - 0x20], ecx
mov word [ebp - 0x1a], 0x959b
mov word [ebp - 0x1c], 0x15
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.00410c20
add esp, 8
push 0
movzx edx, word [ebp - 0x1c]
push edx
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.WS2_32.dll_send
mov eax, 1
mov ecx, dword [ebp - 4]
call fcn.004106b5
mov esp, ebp
pop ebp
ret 8

Function at 0x406d10
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41f100]
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], ecx
mov word [ebp - 0x1e], 0xf8f8
mov word [ebp - 0x20], 0x1b
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00410c20
add esp, 8
mov dx, word [ebp + 0x10]
mov word [ebp - 0xb], dx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 9], eax
push 0
movzx ecx, word [ebp - 0x20]
push ecx
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.WS2_32.dll_send
mov eax, 1
mov ecx, dword [ebp - 4]
call fcn.004106b5
mov esp, ebp
pop ebp
ret 0x10
Function at 0x406fb0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x41f100]
mov dword [ebp - 4], eax
mov dword [ebp - 0x228], ecx
push 1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_KillTimer]
push 2
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
push 3
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [ebp - 0x228]
call fcn.00405660
mov ecx, dword [ebp - 0x228]
call fcn.004057d0
mov ecx, dword [ebp - 0x228]
add ecx, 0x13fc
call fcn.004076b0
cmp dword [0x41ffd0], 0
je 0x4070d9
push 0x426
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 0x224], eax
lea ecx, [ebp - 0x110]
push ecx
push 0
push 0
push 0x147
mov edx, dword [ebp - 0x224]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
push 0x148
mov eax, dword [ebp - 0x224]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x104
lea ecx, [ebp - 0x220]
push ecx
push 0x428
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x220]
push eax
call fcn.0041074b
add esp, 4
mov word [ebp - 0x114], ax
push 0x404
mov ecx, dword [ebp - 0x228]
call fcn.00404970
mov ecx, dword [ebp - 0x228]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x228]
mov eax, dword [edx + 8]
push eax
mov cx, word [ebp - 0x114]
push ecx
lea edx, [ebp - 0x110]
push edx
mov ecx, dword [0x41ffd0]
call fcn.00407520
mov eax, dword [ebp - 0x228]
cmp dword [eax + 0x1424], 0xffffffff
je 0x40710a
mov ecx, dword [ebp - 0x228]
mov edx, dword [ecx + 0x1424]
push edx
call sub.WS2_32.dll_closesocket
mov eax, dword [ebp - 0x228]
mov dword [eax + 0x1424], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.004106b5
mov esp, ebp
pop ebp
ret 0xc

Function at 0x409660
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0
push 0x409880
mov eax, dword [ebp + 8]
push eax
push 0x6d
mov ecx, dword [0x41ffe8]
push ecx
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
push 0x14
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
mov edx, dword [eax + 0xc]
sub edx, dword [ecx + 4]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
mov edx, dword [eax + 8]
sub edx, dword [ecx]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
push 0xfffffffffffffffe
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x409930
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x41f100]
mov dword [ebp - 4], eax
mov dword [ebp - 0x414], ecx
push 0x400
push 0
lea eax, [ebp - 0x408]
push eax
call fcn.00410a90
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push str.SELECT_PASSWORD_FROM_PCIKUSER_WHERE__USERID___s_
lea edx, [ebp - 0x408]
push edx
call fcn.0041062c
add esp, 0xc
push 0xfffffffffffffffd
lea eax, [ebp - 0x408]
push eax
mov ecx, dword [ebp - 0x414]
mov edx, dword [ecx + 0x340]
push edx
call sub.ODBC32.dll_SQLExecDirect
mov word [ebp - 0x410], ax
movsx eax, word [ebp - 0x410]
test eax, eax
je 0x4099dd
mov ecx, dword [ebp - 0x414]
mov edx, dword [ecx + 0x340]
push edx
push 3
mov ecx, dword [ebp - 0x414]
call fcn.0040ed50
mov eax, dword [ebp - 0x414]
mov ecx, dword [eax + 0x340]
push ecx
call sub.ODBC32.dll_SQLCloseCursor
mov ecx, dword [ebp - 0x414]
call fcn.0040f170
xor eax, eax
jmp 0x409a42
mov edx, dword [ebp - 0x414]
mov eax, dword [edx + 0x340]
push eax
call sub.ODBC32.dll_SQLFetch
mov word [ebp - 0x410], ax
movsx ecx, word [ebp - 0x410]
test ecx, ecx
jne 0x409a24
lea edx, [ebp - 0x40c]
push edx
push 0x11
mov eax, dword [ebp + 0xc]
push eax
push 1
push 1
mov ecx, dword [ebp - 0x414]
mov edx, dword [ecx + 0x340]
push edx
call sub.ODBC32.dll_SQLGetData
mov eax, dword [ebp - 0x414]
mov ecx, dword [eax + 0x340]
push ecx
call sub.ODBC32.dll_SQLCloseCursor
movsx eax, word [ebp - 0x410]
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
call fcn.004106b5
mov esp, ebp
pop ebp
ret 8

Function at 0x409a50
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x41f100]
mov dword [ebp - 4], eax
mov dword [ebp - 0x414], ecx
push 0x400
push 0
lea eax, [ebp - 0x408]
push eax
call fcn.00410a90
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push str.SELECT_paymentType_FROM_PCIKUSER_WHERE__USERID___s_
lea edx, [ebp - 0x408]
push edx
call fcn.0041062c
add esp, 0xc
push 0xfffffffffffffffd
lea eax, [ebp - 0x408]
push eax
mov ecx, dword [ebp - 0x414]
mov edx, dword [ecx + 0x340]
push edx
call sub.ODBC32.dll_SQLExecDirect
mov word [ebp - 0x410], ax
movsx eax, word [ebp - 0x410]
test eax, eax
je 0x409afd
mov ecx, dword [ebp - 0x414]
mov edx, dword [ecx + 0x340]
push edx
push 3
mov ecx, dword [ebp - 0x414]
call fcn.0040ed50
mov eax, dword [ebp - 0x414]
mov ecx, dword [eax + 0x340]
push ecx
call sub.ODBC32.dll_SQLCloseCursor
mov ecx, dword [ebp - 0x414]
call fcn.0040f170
xor eax, eax
jmp 0x409b62
mov edx, dword [ebp - 0x414]
mov eax, dword [edx + 0x340]
push eax
call sub.ODBC32.dll_SQLFetch
mov word [ebp - 0x410], ax
movsx ecx, word [ebp - 0x410]
test ecx, ecx
jne 0x409b44
lea edx, [ebp - 0x40c]
push edx
push 1
mov eax, dword [ebp + 0xc]
push eax
push 0xfffffffffffffffa
push 1
mov ecx, dword [ebp - 0x414]
mov edx, dword [ecx + 0x340]
push edx
call sub.ODBC32.dll_SQLGetData
mov eax, dword [ebp - 0x414]
mov ecx, dword [eax + 0x340]
push ecx
call sub.ODBC32.dll_SQLCloseCursor
movsx eax, word [ebp - 0x410]
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
call fcn.004106b5
mov esp, ebp
pop ebp
ret 8
Function at 0x409b70
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x41f100]
mov dword [ebp - 4], eax
mov dword [ebp - 0x414], ecx
push 0x400
push 0
lea eax, [ebp - 0x408]
push eax
call fcn.00410a90
add esp, 0xc
movzx ecx, byte [ebp + 0xb]
push ecx
movzx edx, byte [ebp + 0xb]
push edx
movzx eax, byte [ebp + 0xa]
push eax
movzx ecx, byte [ebp + 9]
push ecx
movzx edx, byte [ebp + 8]
push edx
push str.SELECT_idx__paymentType_FROM_PCIKIP_WHERE__ipAddress___d._d._d__AND__beginIp____d__AND__endIp____d_
lea eax, [ebp - 0x408]
push eax
call fcn.0041062c
add esp, 0x1c
push 0xfffffffffffffffd
lea ecx, [ebp - 0x408]
push ecx
mov edx, dword [ebp - 0x414]
mov eax, dword [edx + 0x340]
push eax
call sub.ODBC32.dll_SQLExecDirect
mov word [ebp - 0x410], ax
movsx ecx, word [ebp - 0x410]
test ecx, ecx
je 0x409c35
mov edx, dword [ebp - 0x414]
mov eax, dword [edx + 0x340]
push eax
push 3
mov ecx, dword [ebp - 0x414]
call fcn.0040ed50
mov ecx, dword [ebp - 0x414]
mov edx, dword [ecx + 0x340]
push edx
call sub.ODBC32.dll_SQLCloseCursor
mov ecx, dword [ebp - 0x414]
call fcn.0040f170
xor eax, eax
jmp 0x409cbd
mov eax, dword [ebp - 0x414]
mov ecx, dword [eax + 0x340]
push ecx
call sub.ODBC32.dll_SQLFetch
mov word [ebp - 0x410], ax
movsx edx, word [ebp - 0x410]
test edx, edx
jne 0x409c9f
lea eax, [ebp - 0x40c]
push eax
push 1
mov ecx, dword [ebp + 0xc]
push ecx
push 0xfffffffffffffff0
push 1
mov edx, dword [ebp - 0x414]
mov eax, dword [edx + 0x340]
push eax
call sub.ODBC32.dll_SQLGetData
lea ecx, [ebp - 0x40c]
push ecx
push 1
mov edx, dword [ebp + 0x10]
push edx
push 0xfffffffffffffffa
push 2
mov eax, dword [ebp - 0x414]
mov ecx, dword [eax + 0x340]
push ecx
call sub.ODBC32.dll_SQLGetData
mov edx, dword [ebp - 0x414]
mov eax, dword [edx + 0x340]
push eax
call sub.ODBC32.dll_SQLCloseCursor
movsx eax, word [ebp - 0x410]
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
call fcn.004106b5
mov esp, ebp
pop ebp
ret 0xc
Function at 0x409cd0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x41f100]
mov dword [ebp - 4], eax
mov dword [ebp - 0x414], ecx
push 0x400
push 0
lea eax, [ebp - 0x408]
push eax
call fcn.00410a90
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push str.SELECT_limitTime_FROM_PCIKUSER_WHERE__USERID___s_
lea edx, [ebp - 0x408]
push edx
call fcn.0041062c
add esp, 0xc
push 0xfffffffffffffffd
lea eax, [ebp - 0x408]
push eax
mov ecx, dword [ebp - 0x414]
mov edx, dword [ecx + 0x340]
push edx
call sub.ODBC32.dll_SQLExecDirect
mov word [ebp - 0x410], ax
movsx eax, word [ebp - 0x410]
test eax, eax
je 0x409d7d
mov ecx, dword [ebp - 0x414]
mov edx, dword [ecx + 0x340]
push edx
push 3
mov ecx, dword [ebp - 0x414]
call fcn.0040ed50
mov eax, dword [ebp - 0x414]
mov ecx, dword [eax + 0x340]
push ecx
call sub.ODBC32.dll_SQLCloseCursor
mov ecx, dword [ebp - 0x414]
call fcn.0040f170
xor eax, eax
jmp 0x409de2
mov edx, dword [ebp - 0x414]
mov eax, dword [edx + 0x340]
push eax
call sub.ODBC32.dll_SQLFetch
mov word [ebp - 0x410], ax
movsx ecx, word [ebp - 0x410]
test ecx, ecx
jne 0x409dc4
lea edx, [ebp - 0x40c]
push edx
push 1
mov eax, dword [ebp + 0xc]
push eax
push 0xfffffffffffffff0
push 1
mov ecx, dword [ebp - 0x414]
mov edx, dword [ecx + 0x340]
push edx
call sub.ODBC32.dll_SQLGetData
mov eax, dword [ebp - 0x414]
mov ecx, dword [eax + 0x340]
push ecx
call sub.ODBC32.dll_SQLCloseCursor
movsx eax, word [ebp - 0x410]
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
call fcn.004106b5
mov esp, ebp
pop ebp
ret 8

Function at 0x409df0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x41f100]
mov dword [ebp - 4], eax
mov dword [ebp - 0x414], ecx
push 0x400
push 0
lea eax, [ebp - 0x408]
push eax
call fcn.00410a90
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push str.SELECT_limitTime_FROM_PCIKIP_WHERE__idx___d_
lea edx, [ebp - 0x408]
push edx
call fcn.0041062c
add esp, 0xc
push 0xfffffffffffffffd
lea eax, [ebp - 0x408]
push eax
mov ecx, dword [ebp - 0x414]
mov edx, dword [ecx + 0x340]
push edx
call sub.ODBC32.dll_SQLExecDirect
mov word [ebp - 0x410], ax
movsx eax, word [ebp - 0x410]
test eax, eax
je 0x409e9d
mov ecx, dword [ebp - 0x414]
mov edx, dword [ecx + 0x340]
push edx
push 3
mov ecx, dword [ebp - 0x414]
call fcn.0040ed50
mov eax, dword [ebp - 0x414]
mov ecx, dword [eax + 0x340]
push ecx
call sub.ODBC32.dll_SQLCloseCursor
mov ecx, dword [ebp - 0x414]
call fcn.0040f170
xor eax, eax
jmp 0x409f02
mov edx, dword [ebp - 0x414]
mov eax, dword [edx + 0x340]
push eax
call sub.ODBC32.dll_SQLFetch
mov word [ebp - 0x410], ax
movsx ecx, word [ebp - 0x410]
test ecx, ecx
jne 0x409ee4
lea edx, [ebp - 0x40c]
push edx
push 1
mov eax, dword [ebp + 0xc]
push eax
push 0xfffffffffffffff0
push 1
mov ecx, dword [ebp - 0x414]
mov edx, dword [ecx + 0x340]
push edx
call sub.ODBC32.dll_SQLGetData
mov eax, dword [ebp - 0x414]
mov ecx, dword [eax + 0x340]
push ecx
call sub.ODBC32.dll_SQLCloseCursor
movsx eax, word [ebp - 0x410]
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
call fcn.004106b5
mov esp, ebp
pop ebp
ret 8