joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45d720
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x80
push ebx
push ebp
mov ebp, dword [esp + 0x8c]
push esi
push eax
push ebp
mov esi, dword [ebp + eax*4 + 0x1a4]
call fcn.0045dbd0
add esp, 8
push 0
push dword [esp + 0xa0]
push dword [esp + 0xa0]
push esi
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [esp + 0xa0]
mov esi, eax
mov dword [ebx], 0
cmp esi, 0xffffffff
jne 0x45d7c7
push edi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x45d794
pop edi
pop esi
pop ebp
mov dword [ebx], 0x51
xor eax, eax
pop ebx
add esp, 0x80
ret
push pe_nt_image_headers32
lea eax, [esp + 0x14]
push eax
push edi
call fcn.004774e0
push eax
push str.Send_failure:__s
push dword [ebp]
call fcn.0045d3d0
mov eax, dword [ebp]
add esp, 0x18
mov dword [eax + 0xc54], edi
mov eax, esi
mov dword [ebx], 0x37
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret

Function at 0x45dbd0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov ecx, dword [esp + 8]
mov eax, ecx
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
shl eax, 4
mov ebp, dword [ebx + ecx*4 + 0x1a4]
lea esi, [ebx + 0x1c8]
add esi, eax
mov eax, dword [ebx + 0x2c0]
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x45dc86
cmp dword [ebx + ecx*4 + 0x1b8], 0x45d650
jne 0x45dc86
cmp dword [esi], 0
je 0x45dc1c
test edi, edi
je 0x45dc86
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
call fcn.004656e0
add esp, 0x10
cmp eax, 0xffffffff
je 0x45dc86
test al, 1
je 0x45dc86
cmp dword [esi], 0
jne 0x45dc6f
mov eax, dword [ebx]
mov eax, dword [eax + 0x8d0]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x4a6f10]
mov edi, dword [esi + 4]
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test eax, eax
jne 0x45dc6f
pop edi
mov dword [esi + 4], eax
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x45dc86
add dword [esi + 8], eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x464540
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x188
push ebx
mov ebx, dword [esp + 0x190]
cmp dword [ebx + 0x90], 3
jne 0x464718
cmp byte [ebx + 0x289], 0
push ebp
push esi
push edi
jne 0x46470c
cmp byte [ebx + 0x2a1], 0
jne 0x46470c
mov esi, dword [esp + 0x1a0]
lea eax, [esp + 0x10]
mov ebp, dword [ebx]
push eax
lea eax, [esp + 0x11c]
mov dword [esp + 0x14], pe_nt_image_headers32
push eax
push esi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x4645d4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x18]
push pe_nt_image_headers32
push eax
push esi
call fcn.004774e0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebp
call fcn.0045d3d0
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x188
ret
push pe_nt_image_headers32
lea eax, [esp + 0x9c]
mov dword [esp + 0x18], pe_nt_image_headers32
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x9c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x46463e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x18]
push pe_nt_image_headers32
push eax
push esi
call fcn.004774e0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebp
call fcn.0045d3d0
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x188
ret
lea eax, [ebx + 0x138]
push eax
lea esi, [ebx + 0x10a]
push esi
push dword [esp + 0x18]
lea eax, [esp + 0x124]
push eax
call fcn.00463960
add esp, 0x10
test al, al
jne 0x46469f
mov esi, dword [sym.imp.MSVCRT.dll__errno]
call esi
mov edi, eax
call esi
mov esi, eax
lea eax, [esp + 0x18]
push pe_nt_image_headers32
push eax
push dword [edi]
call fcn.004774e0
push eax
push dword [esi]
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.0045d3d0
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x188
ret
lea edi, [ebx + 0x5c]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
lea eax, [ebx + 0x16c]
push eax
lea eax, [ebx + 0x13c]
push eax
push dword [esp + 0x1c]
lea eax, [esp + 0xa4]
movsw word es:[edi], word [esi]
push eax
call fcn.00463960
add esp, 0x10
test al, al
jne 0x46470c
mov esi, dword [sym.imp.MSVCRT.dll__errno]
call esi
mov edi, eax
call esi
mov esi, eax
lea eax, [esp + 0x18]
push pe_nt_image_headers32
push eax
push dword [edi]
call fcn.004774e0
push eax
push dword [esi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.0045d3d0
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x188
ret
push ebx
call fcn.00464220
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x188
ret
Function at 0x465070
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [esp + 0x18]
xor eax, eax
push edi
mov edi, dword [esp + 0x20]
push 4
cmp byte [esi + 0xa9f], al
setne al
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x4650ba
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.0045d490
add esp, 0xc
pop edi
pop esi
add esp, 0x10
ret
push dword [esi + 0xa3c]
mov dword [esp + 0x10], 1
call fcn.004638e0
push dword [esi + 0xa40]
imul eax, eax, 0x3e8
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], eax
call fcn.004638e0
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0xc
lea eax, [esp + 0x24]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x465131
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.0045d490
add esp, 0x10
pop edi
pop esi
add esp, 0x10
ret

Function at 0x465140
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x84
mov eax, dword [esp + 0x88]
push esi
push 4
mov dword [esp + 8], 1
mov esi, dword [eax]
lea eax, [esp + 8]
push eax
push 1
push 6
push dword [esp + 0xa0]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x4651a1
push pe_nt_image_headers32
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.004774e0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0045d490
add esp, 0x18
pop esi
add esp, 0x84
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.0045d490
add esp, 8
pop esi
add esp, 0x84
ret
Function at 0x46fed0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x1000
call fcn.0041f360
push dword [esp + 0x1004]
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x46ff1d
push 0x1000
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x46ff1d
lea eax, [esp]
push eax
call dword [0x4a6f1c]
add esp, 4
add esp, 0x1000
ret
xor eax, eax
add esp, 0x1000
ret
Function at 0x4769c0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push ebp
xor ebp, ebp
mov dword [esp + 4], ebp
mov dword [eax], ebp
lea eax, [esp + 8]
push eax
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x476b53
push ebx
push edi
mov edi, dword [esp + 0x10]
test edi, edi
je 0x476b3d
push esi
mov eax, dword [edi + 4]
cmp eax, 2
jne 0x476a0f
lea ebx, [eax + 0xe]
jmp 0x476a1b
cmp eax, 0x17
jne 0x476aca
lea ebx, [eax + 5]
cmp dword [edi + 0x18], 0
je 0x476aca
mov eax, dword [edi + 0x10]
test eax, eax
je 0x476aca
cmp eax, ebx
jb 0x476aca
push 0x20
call dword [0x4a6f10]
mov esi, eax
add esp, 4
test esi, esi
je 0x476b32
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push ebx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
call dword [0x4a6f10]
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x476b21
push ebx
push dword [edi + 0x18]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [edi + 0x14]
add esp, 0xc
test eax, eax
je 0x476ab5
push eax
call dword [0x4a6f1c]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x476b07
test ebp, ebp
jne 0x476abb
mov ebp, esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x476ac6
mov dword [eax + 0x1c], esi
mov dword [esp + 0x10], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x476a02
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
pop esi
test eax, eax
je 0x476ae9
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebx, ebx
je 0x476b39
push ebp
call fcn.00476980
mov eax, dword [esp + 0x2c]
add esp, 4
xor ebp, ebp
mov dword [eax], ebp
mov eax, ebx
pop edi
pop ebx
pop ebp
add esp, 0xc
ret
push dword [esi + 0x18]
mov ebx, 8
call dword [0x4a6f14]
push esi
call dword [0x4a6f14]
add esp, 8
jmp 0x476ad9
push esi
mov ebx, 8
call dword [0x4a6f14]
add esp, 4
jmp 0x476ad9
mov ebx, 8
jmp 0x476ad9
test ebp, ebp
jne 0x476b49
mov ebx, 0x2af9
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x28]
pop edi
mov dword [eax], ebp
mov eax, ebx
pop ebx
pop ebp
add esp, 0xc
ret
Function at 0x47b190
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration
Start tcp server

Disassembly:
sub esp, 0x30
push esi
mov esi, dword [sym.imp.WS2_32.dll_socket]
push edi
push 6
push 1
push 2
mov dword [esp + 0x18], 0x10
mov dword [esp + 0x14], 1
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x47b1c2
pop edi
or eax, eax
pop esi
add esp, 0x30
ret
xor eax, eax
mov dword [esp + 0x10], eax
push ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov eax, 2
push 0x7f000001
mov word [esp + 0x18], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov ebx, dword [esp + 0x4c]
mov dword [esp + 0x18], eax
xor eax, eax
push 4
mov word [esp + 0x1a], ax
lea eax, [esp + 0x10]
push eax
push 4
push 0xffff
push edi
mov dword [ebx + 4], 0xffffffff
mov dword [ebx], 0xffffffff
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x47b357
push 0x10
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x47b357
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x47b357
push 1
push edi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x47b357
push 0
push 1
push 2
call esi
mov dword [ebx], eax
cmp eax, 0xffffffff
je 0x47b357
push 0x10
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x47b357
push 0
push 0
push edi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
je 0x47b357
push ebx
push 0x49e570
lea eax, [esp + 0x2c]
push 0xc
push eax
call fcn.0046eb10
lea esi, [esp + 0x34]
add esp, 0x10
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x47b2c4
push 0
sub esi, ecx
lea eax, [esp + 0x28]
push esi
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, esi
jne 0x47b357
push 0
push 0xc
lea eax, [esp + 0x38]
push eax
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, esi
jne 0x47b357
lea ecx, [esp + 0x24]
lea edx, [esp + 0x30]
sub esi, 4
jb 0x47b315
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x47b31a
add ecx, 4
add edx, 4
sub esi, 4
jae 0x47b304
cmp esi, 0xfffffffc
je 0x47b347
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x47b357
cmp esi, 0xfffffffd
je 0x47b347
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x47b357
cmp esi, 0xfffffffe
je 0x47b347
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x47b357
cmp esi, 0xffffffff
je 0x47b347
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x47b357
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x30
ret
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
push edi
call esi
push dword [ebx]
call esi
push dword [ebx + 4]
call esi
pop ebx
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x30
ret
Function at 0x403250
Capabilities:
Encrypt data using salsa20 or chacha
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [0x93ee7c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x403420
mov eax, dword [esp + 8]
mov dword [eax], 0x61707865
mov dword [eax + 4], 0x61707865
mov dword [eax + 8], 0x61707865
mov dword [eax + 0xc], 0x61707865
mov dword [eax + 0x10], 0x3320646e
mov dword [eax + 0x14], 0x3320646e
mov dword [eax + 0x18], 0x3320646e
mov dword [eax + 0x1c], 0x3320646e
mov dword [eax + 0x20], 0x79622d32
mov dword [eax + 0x24], 0x79622d32
mov dword [eax + 0x28], 0x79622d32
mov dword [eax + 0x2c], 0x79622d32
mov dword [eax + 0x30], 0x6b206574
mov dword [eax + 0x34], 0x6b206574
mov dword [eax + 0x38], 0x6b206574
mov dword [eax + 0x3c], 0x6b206574
mov ecx, dword [esp + 4]
mov edx, dword [ecx]
mov dword [eax + 0x40], edx
mov dword [eax + 0x44], edx
mov dword [eax + 0x48], edx
mov dword [eax + 0x4c], edx
mov edx, dword [ecx + 4]
mov dword [eax + 0x50], edx
mov dword [eax + 0x54], edx
mov dword [eax + 0x58], edx
mov dword [eax + 0x5c], edx
mov edx, dword [ecx + 8]
mov dword [eax + 0x60], edx
mov dword [eax + 0x64], edx
mov dword [eax + 0x68], edx
mov dword [eax + 0x6c], edx
mov edx, dword [ecx + 0xc]
mov dword [eax + 0x70], edx
mov dword [eax + 0x74], edx
mov dword [eax + 0x78], edx
mov dword [eax + 0x7c], edx
mov edx, dword [ecx + 0x10]
mov dword [eax + 0x80], edx
mov dword [eax + 0x84], edx
mov dword [eax + 0x88], edx
mov dword [eax + 0x8c], edx
mov edx, dword [ecx + 0x14]
mov dword [eax + 0x90], edx
mov dword [eax + 0x94], edx
mov dword [eax + 0x98], edx
mov dword [eax + 0x9c], edx
mov edx, dword [ecx + 0x18]
mov dword [eax + 0xa0], edx
mov dword [eax + 0xa4], edx
mov dword [eax + 0xa8], edx
mov dword [eax + 0xac], edx
mov ecx, dword [ecx + 0x1c]
mov dword [eax + 0xb0], ecx
mov dword [eax + 0xb4], ecx
mov dword [eax + 0xb8], ecx
mov dword [eax + 0xbc], ecx
mov ecx, dword [esp + 0xc]
mov dword [eax + 0xc0], ecx
lea edx, [ecx + 1]
mov dword [eax + 0xc4], edx
lea edx, [ecx + 2]
mov dword [eax + 0xc8], edx
add ecx, 3
mov dword [eax + 0xcc], ecx
mov dword [eax + 0xd0], 0
mov dword [eax + 0xd4], 0
mov dword [eax + 0xd8], 0
mov dword [eax + 0xdc], 0
mov dword [eax + 0xe0], 0
mov dword [eax + 0xe4], 0
mov dword [eax + 0xe8], 0
mov dword [eax + 0xec], 0
mov dword [eax + 0xf0], 0
mov dword [eax + 0xf4], 0
mov dword [eax + 0xf8], 0
mov dword [eax + 0xfc], 0
ret
call fcn.00470430
jmp fcn.00403250
Function at 0x404620
Capabilities:
Reference sql statements

Disassembly:
mov ecx, dword [0x93ee7c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x404817
sub esp, 0x2c
mov eax, dword [esp + 0x30]
movzx ecx, byte [eax + 0x41]
test cl, cl
je 0x404800
mov ecx, dword [eax + 0x10]
shl ecx, 0xd
cmp ecx, 0x400000
jne 0x4047ea
mov byte [esp + 0x17], 1
movzx ecx, byte [esp + 0x17]
mov byte [eax + 0x3e], cl
mov ecx, dword [eax + 0x10]
shl ecx, 0xd
mov edx, dword [eax + 0xc]
mov dword [esp], edx
mov dword [esp + 4], ecx
call fcn.00411db0
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0x10]
lea edx, [0x93fdd0]
mov dword [esp], edx
shl ecx, 0xd
xor edx, edx
sub edx, ecx
mov dword [esp + 4], edx
mov ecx, 0
sbb ecx, 0
mov dword [esp + 8], ecx
call fcn.00430470
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0x44]
lea edx, [0x93fdf0]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], 0
call fcn.00476480
lea eax, [0x943260]
mov dword [esp], eax
call fcn.00430590
mov eax, dword [esp + 4]
test byte [eax], al
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + 0x10]
mov dword [esp], eax
shl edx, 0xd
lea ebx, [eax + 0x10]
mov dword [esp + 0x28], ebx
lea ebp, [eax + 0x270]
mov dword [esp + 0x24], ebp
add eax, 0x268
mov dword [esp + 0x20], eax
xor esi, esi
sub esi, edx
mov dword [esp + 4], esi
mov edx, 0
sbb edx, 0
mov dword [esp + 8], edx
call fcn.00476400
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0x10]
mov edx, dword [esp + 0x28]
mov dword [esp], edx
shl ecx, 0xd
xor edx, edx
sub edx, ecx
mov dword [esp + 4], edx
mov ecx, 0
sbb ecx, 0
mov dword [esp + 8], ecx
call fcn.00476400
mov eax, dword [esp + 0x24]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 0
call fcn.00476480
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0x44]
mov edx, dword [esp + 0x20]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], 0
call fcn.00476480
lea eax, [0x943260]
mov dword [esp], eax
call fcn.00430680
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0x44]
lea edx, [0x93fcc0]
mov dword [esp], edx
xor edx, edx
sub edx, ecx
mov dword [esp + 4], edx
mov ecx, 0
sbb ecx, 0
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.0041f380
lea eax, [0x404830]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
mov dword [esp], eax
call fcn.00470340
add esp, 0x2c
ret
lea eax, [0x72cf1e]
mov dword [esp], eax
mov dword [esp + 4], 0x2c
call fcn.0046ad70
lea eax, [0x72b92b]
mov dword [esp], eax
mov dword [esp + 4], 0x28
call fcn.0046ad70
nop
call fcn.00470430
jmp fcn.00404620
Function at 0x40b680
Capabilities:
Reference sql statements

Disassembly:
mov ecx, dword [0x93ee7c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x40b78a
sub esp, 0x18
xor eax, eax
jmp 0x40b69c
inc eax
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
lea ebx, [edx + ecx]
mov dword [esp + 0x14], ebx
mov ebp, dword [esp + 0x1c]
mov dword [esp], ebp
mov dword [esp + 4], ebx
call fcn.00412230
mov eax, dword [esp + 8]
mov ecx, eax
test eax, eax
je 0x40b75f
mov edx, dword [esp + 0x24]
lea ebx, [edx - 1]
test eax, ebx
je 0x40b74f
mov dword [esp + 0x10], eax
mov dword [esp], ecx
mov eax, dword [esp + 0x14]
mov dword [esp + 4], eax
call fcn.00412170
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
lea eax, [ecx + eax - 1]
neg ecx
and ecx, eax
mov dword [esp + 0x10], ecx
nop
nop
mov dword [esp], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 4], ecx
call fcn.00412230
mov eax, dword [esp + 8]
mov ecx, eax
mov edx, dword [esp + 0x10]
cmp eax, edx
je 0x40b73f
mov dword [esp], ecx
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
call fcn.00412170
mov eax, dword [esp + 0xc]
cmp eax, 0x63
jne 0x40b69b
jmp 0x40b773
mov dword [esp + 0x28], ecx
mov eax, dword [esp + 0x20]
mov dword [esp + 0x2c], eax
add esp, 0x18
ret
mov dword [esp + 0x28], ecx
mov eax, dword [esp + 0x14]
mov dword [esp + 0x2c], eax
add esp, 0x18
ret
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
add esp, 0x18
ret
lea eax, [0x730276]
mov dword [esp], eax
mov dword [esp + 4], 0x38
call fcn.0046ad70
nop
call fcn.00470430
jmp fcn.0040b680
Function at 0x40b840
Capabilities:
Reference sql statements

Disassembly:
mov ecx, dword [0x93ee7c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x40ba6f
sub esp, 0x1c
movzx edx, byte [esp + 0x24]
movzx eax, dl
cmp eax, 0x88
jae 0x40ba64
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x20]
test byte [ecx], al
mov edx, dword [ecx + eax*4 + 0x14]
mov dword [esp + 0x14], edx
mov dword [esp], edx
call fcn.0040fb70
movzx eax, word [esp + 4]
mov ecx, dword [esp + 0x14]
movzx edx, word [ecx + 0x1a]
cmp dx, ax
jne 0x40b8ef
mov word [esp + 0xe], dx
movzx ecx, word [ecx + 0x3c]
cmp cx, dx
jne 0x40b9d6
mov word [esp + 0xa], ax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
movzx ecx, byte [esp + 0x24]
mov byte [esp + 4], cl
call fcn.00410ad0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + eax*4 + 0x14]
mov dword [esp + 0x14], eax
mov dword [esp], eax
call fcn.0040fb70
movzx eax, word [esp + 4]
movzx edx, word [esp + 0xe]
movzx ebx, word [esp + 0xa]
mov ecx, dword [esp + 0x14]
jmp 0x40b8f1
mov ebx, eax
cmp word [ecx + 0x1a], ax
jbe 0x40b9c0
movzx eax, ax
imul eax, dword [ecx + 0x44]
movzx ebp, word [ecx + 0x3c]
inc ebp
add eax, dword [ecx + 0xc]
mov word [ecx + 0x3c], bp
movzx esi, word [ecx + 0x1a]
cmp si, bp
jb 0x40b92d
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
cmp dx, bx
sete al
mov byte [esp + 0x30], al
add esp, 0x1c
ret
mov word [esp + 0xe], bp
mov word [esp + 0xc], si
call fcn.00437f30
lea eax, [0x71e235]
mov dword [esp], eax
mov dword [esp + 4], 0xe
call fcn.00438790
movzx eax, word [esp + 0xc]
movzx eax, ax
mov dword [esp + 0x10], eax
movzx ecx, word [esp + 0xe]
movzx ecx, cx
mov dword [esp], ecx
mov dword [esp + 4], 0
call fcn.00438480
lea eax, [0x71cd5c]
mov dword [esp], eax
mov dword [esp + 4], 0xb
call fcn.00438790
mov eax, dword [esp + 0x10]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.00438480
call fcn.00438130
call fcn.00437f90
lea eax, [0x722bfa]
mov dword [esp], eax
mov dword [esp + 4], 0x17
call fcn.0046ad70
lea eax, [0x722277]
mov dword [esp], eax
mov dword [esp + 4], 0x16
call fcn.0046ad70
mov word [esp + 0xc], cx
call fcn.00437f30
lea eax, [0x722be3]
mov dword [esp], eax
mov dword [esp + 4], 0x17
call fcn.00438790
movzx eax, word [esp + 0xe]
movzx eax, ax
mov dword [esp + 0x10], eax
movzx ecx, word [esp + 0xc]
movzx ecx, cx
mov dword [esp], ecx
mov dword [esp + 4], 0
call fcn.00438480
lea eax, [0x71cd5c]
mov dword [esp], eax
mov dword [esp + 4], 0xb
call fcn.00438790
mov eax, dword [esp + 0x10]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.00438480
call fcn.00438130
call fcn.00437f90
lea eax, [0x72e8f5]
mov dword [esp], eax
mov dword [esp + 4], 0x31
call fcn.0046ad70
mov ecx, 0x88
call fcn.004718b0
nop
call fcn.00470430
jmp fcn.0040b840