joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47b240
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x22c
test byte [esp + 0x230], 2
je 0x47b28b
lea eax, [esp + 0x9c]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x47b27f
mov eax, dword [esp + 0x9c]
cmp al, 2
jne 0x47b279
shr eax, 8
cmp al, 2
je 0x47b28b
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
add esp, 0x22c
ret
call fcn.00494c00
test eax, eax
jne 0x47b360
push str.iphlpapi.dll
call fcn.0047af70
add esp, 4
mov dword [0x7846a0], eax
test eax, eax
je 0x47b2c3
push str.if_nametoindex
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x47b2c3
mov dword [0x78469c], eax
push esi
push 0x9c
lea eax, [esp + 8]
push 0
push eax
call sub.MSVCRT.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
add esp, 0xc
mov dword [esp + 4], 0x9c
mov dword [esp + 8], 6
mov dword [esp + 0xc], 0
push 3
push 2
push 0
push 0
mov dword [esp + 0x24], 2
call esi
push 3
push 1
push edx
push eax
call esi
push 3
push 0x20
push edx
push eax
call esi
push 3
push 0x10
push edx
push eax
call esi
push 1
push 8
push edx
push eax
call esi
push edx
push eax
push 0x33
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
pop esi
test eax, eax
je 0x47b357
push 0x7857f8
mov byte [0x785800], 1
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
add esp, 0x22c
ret
mov byte [0x785800], 0
xor eax, eax
add esp, 0x22c
ret

Function at 0x47b4e0
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x2c8], 2
je fcn.0047b490
mov al, 1
ret

Function at 0x47b620
Capabilities:
Write file on windows

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
cmp dword [edi + 0x5e0], 0
je 0x47b664
push 1
push edi
call fcn.0047c820
push dword [edi + 0x574]
mov eax, dword [edi + 0x5e0]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.0047c820
add esp, 0x24
mov eax, esi
pop edi
pop esi
ret
mov eax, dword [esp + 0x10]
cmp eax, 2
ja 0x47b69d
push dword [edi + 0x570]
mov esi, dword [sym.imp.MSVCRT.dll_fwrite]
lea eax, [eax + eax*2]
push 1
add eax, 0x578360
push 2
push eax
call esi
push dword [edi + 0x570]
push 1
push dword [esp + 0x30]
push dword [esp + 0x30]
call esi
add esp, 0x20
pop edi
xor eax, eax
pop esi
ret

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

Disassembly:
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_recv]
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x47b8d1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov eax, dword [esp + 0x10]
mov dword [eax], ecx
xor eax, eax
ret
Function at 0x47ba00
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.0047beb0
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 0x47baa7
push edi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x47ba74
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.004957c0
push eax
push str.Send_failure:__s
push dword [ebp]
call fcn.0047b6b0
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 0x47beb0
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 0x47bf66
cmp dword [ebx + ecx*4 + 0x1b8], 0x47b930
jne 0x47bf66
cmp dword [esi], 0
je 0x47befc
test edi, edi
je 0x47bf66
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
call fcn.004839c0
add esp, 0x10
cmp eax, 0xffffffff
je 0x47bf66
test al, 1
je 0x47bf66
cmp dword [esi], 0
jne 0x47bf4f
mov eax, dword [ebx]
mov eax, dword [eax + 0x8d0]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x77ee08]
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 0x47bf4f
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 0x47bf66
add dword [esi + 8], eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x482820
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 0x4829f8
cmp byte [ebx + 0x289], 0
push ebp
push esi
push edi
jne 0x4829ec
cmp byte [ebx + 0x2a1], 0
jne 0x4829ec
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 0x4828b4
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.004957c0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebp
call fcn.0047b6b0
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 0x48291e
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.004957c0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebp
call fcn.0047b6b0
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.00481c40
add esp, 0x10
test al, al
jne 0x48297f
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.004957c0
push eax
push dword [esi]
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.0047b6b0
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.00481c40
add esp, 0x10
test al, al
jne 0x4829ec
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.004957c0
push eax
push dword [esi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.0047b6b0
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x188
ret
push ebx
call fcn.00482500
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x188
ret
Function at 0x483350
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 0x48339a
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.0047b770
add esp, 0xc
pop edi
pop esi
add esp, 0x10
ret
push dword [esi + 0xa3c]
mov dword [esp + 0x10], 1
call fcn.00481bc0
push dword [esi + 0xa40]
imul eax, eax, 0x3e8
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], eax
call fcn.00481bc0
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 0x483411
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.0047b770
add esp, 0x10
pop edi
pop esi
add esp, 0x10
ret

Function at 0x483420
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 0x483481
push pe_nt_image_headers32
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.004957c0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0047b770
add esp, 0x18
pop esi
add esp, 0x84
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.0047b770
add esp, 8
pop esi
add esp, 0x84
ret
Function at 0x48e1b0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x1000
call fcn.00412270
push dword [esp + 0x1004]
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x48e1fd
push 0x1000
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x48e1fd
lea eax, [esp]
push eax
call dword [0x77ee14]
add esp, 4
add esp, 0x1000
ret
xor eax, eax
add esp, 0x1000
ret
Function at 0x494ca0
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 0x494e33
push ebx
push edi
mov edi, dword [esp + 0x10]
test edi, edi
je 0x494e1d
push esi
mov eax, dword [edi + 4]
cmp eax, 2
jne 0x494cef
lea ebx, [eax + 0xe]
jmp 0x494cfb
cmp eax, 0x17
jne 0x494daa
lea ebx, [eax + 5]
cmp dword [edi + 0x18], 0
je 0x494daa
mov eax, dword [edi + 0x10]
test eax, eax
je 0x494daa
cmp eax, ebx
jb 0x494daa
push 0x20
call dword [0x77ee08]
mov esi, eax
add esp, 4
test esi, esi
je 0x494e12
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 [0x77ee08]
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x494e01
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 0x494d95
push eax
call dword [0x77ee14]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x494de7
test ebp, ebp
jne 0x494d9b
mov ebp, esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x494da6
mov dword [eax + 0x1c], esi
mov dword [esp + 0x10], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x494ce2
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
pop esi
test eax, eax
je 0x494dc9
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebx, ebx
je 0x494e19
push ebp
call fcn.00494c60
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 [0x77ee0c]
push esi
call dword [0x77ee0c]
add esp, 8
jmp 0x494db9
push esi
mov ebx, 8
call dword [0x77ee0c]
add esp, 4
jmp 0x494db9
mov ebx, 8
jmp 0x494db9
test ebp, ebp
jne 0x494e29
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 0x499470
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 0x4994a2
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 0x499637
push 0x10
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x499637
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 0x499637
push 1
push edi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x499637
push 0
push 1
push 2
call esi
mov dword [ebx], eax
cmp eax, 0xffffffff
je 0x499637
push 0x10
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x499637
push 0
push 0
push edi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
je 0x499637
push ebx
push 0x57de00
lea eax, [esp + 0x2c]
push 0xc
push eax
call fcn.0048cdf0
lea esi, [esp + 0x34]
add esp, 0x10
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4995a4
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 0x499637
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 0x499637
lea ecx, [esp + 0x24]
lea edx, [esp + 0x30]
sub esi, 4
jb 0x4995f5
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4995fa
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4995e4
cmp esi, 0xfffffffc
je 0x499627
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x499637
cmp esi, 0xfffffffd
je 0x499627
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x499637
cmp esi, 0xfffffffe
je 0x499627
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x499637
cmp esi, 0xffffffff
je 0x499627
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x499637
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 0x4c0860
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
movzx edx, byte [esi + 9]
mov ebx, dword [esi + 0x38]
mov eax, dword [esi + 0x34]
movzx ecx, byte [edx + ebx + 5]
mov ebp, dword [eax + 0x28]
movzx eax, byte [edx + ebx + 6]
movzx edi, byte [edx + ebx + 7]
shl ecx, 8
or ecx, eax
mov dword [esp + 0x10], ebp
movzx eax, byte [esi + 0xa]
dec ecx
and ecx, 0xffff
add eax, edx
inc ecx
add ebp, 0xfffffffc
mov dword [esp + 0x14], ecx
movzx ecx, word [esi + 0x18]
movzx esi, byte [edx + ebx + 1]
shl esi, 8
lea eax, [eax + ecx*2]
add eax, 8
mov dword [esp + 0x18], eax
movzx eax, byte [edx + ebx + 2]
or esi, eax
mov eax, dword [esp + 0x14]
add edi, eax
test esi, esi
jle 0x4c0959
cmp esi, eax
jge 0x4c08e3
push 0x58e774
push 0x10a25
jmp 0x4c0989
cmp esi, ebp
jg 0x4c091e
jmp 0x4c08f0
movzx eax, byte [esi + ebx]
movzx ecx, byte [ebx + esi + 1]
movzx edx, byte [ebx + esi + 2]
shl eax, 8
or eax, ecx
shl edx, 8
movzx ecx, byte [ebx + esi + 3]
or edx, ecx
lea ecx, [esi + 3]
add ecx, edx
add edi, edx
cmp eax, ecx
jbe 0x4c092a
mov esi, eax
cmp eax, ebp
jle 0x4c08f0
push 0x58e774
push 0x10a2a
jmp 0x4c0989
test eax, eax
je 0x4c093a
push 0x58e774
push 0x10a34
jmp 0x4c0989
mov ecx, dword [esp + 0x10]
lea eax, [edx + esi]
cmp eax, ecx
jbe 0x4c095d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
mov dword [esp + 4], 0x10a38
jmp fcn.00503580
mov ecx, dword [esp + 0x10]
cmp edi, ecx
jg 0x4c097f
mov eax, dword [esp + 0x18]
cmp edi, eax
jl 0x4c097f
mov ecx, dword [esp + 0x20]
sub edi, eax
movzx eax, di
pop edi
pop esi
pop ebp
mov dword [ecx + 0x14], eax
xor eax, eax
pop ebx
add esp, 0xc
ret
push 0x58e774
push 0x10a44
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004b7420
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x4f46f0
Capabilities:
Reference sql statements

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push edi
push dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
mov byte [edi + 0x10], 1
push ebx
push ebx
push str.SELECT_1_FROM___w_.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d___Q___d_NULL
push edi
call fcn.0051c100
add esp, 0x1c
cmp dword [esp + 0x14], 0
jne 0x4f4738
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push ebx
push str.SELECT_1_FROM_temp.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1___Q___d_NULL
push edi
call fcn.0051c100
add esp, 0x14
pop edi
pop ebx
ret
Function at 0x504aa0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x3c
push ebx
mov ebx, dword [esp + 0x54]
push ebp
push esi
mov esi, dword [esp + 0x4c]
push edi
mov dword [esp + 0x10], 0
cmp word [esi + 0xcc], 0
mov ebp, dword [esi]
jle 0x504ada
push str.parameters_are_not_allowed_in_views
push esi
call fcn.005071d0
mov edi, dword [esp + 0x6c]
add esp, 8
jmp 0x504c0e
push dword [esp + 0x6c]
mov edi, dword [esp + 0x60]
push 0
push 1
push dword [esp + 0x74]
push edi
push dword [esp + 0x6c]
push esi
call fcn.005291d0
mov ebx, dword [esi + 0xec]
add esp, 0x1c
test ebx, ebx
je 0x504c06
cmp dword [esi + 0x24], 0
jne 0x504c06
or dword [ebx + 0x1c], 0x200
lea eax, [esp + 0x10]
push eax
push edi
push dword [esp + 0x60]
push esi
call fcn.0052a7a0
add esp, 0x10
push dword [esp + 0x10]
push str.view
push dword [ebx + 0x3c]
push ebp
call fcn.00525700
add esp, 8
push eax
lea eax, [esp + 0x24]
push esi
push eax
call fcn.0050dc10
mov edi, dword [esp + 0x78]
lea eax, [esp + 0x30]
push edi
push eax
call fcn.0053c940
add esp, 0x1c
test eax, eax
jne 0x504c0a
or dword [edi + 4], 0x200000
cmp byte [esi + 0xd0], 2
jb 0x504b7c
mov dword [ebx + 0x2c], edi
xor edi, edi
jmp 0x504b8b
push 1
push edi
push ebp
call fcn.00527f80
add esp, 0xc
mov dword [ebx + 0x2c], eax
push 1
push dword [esp + 0x64]
push ebp
call fcn.0050be80
add esp, 0xc
mov dword [ebx + 0x10], eax
mov byte [ebx + 0x2b], 2
cmp byte [ebp + 0x57], 0
jne 0x504c0a
mov ecx, dword [esi + 0xc4]
cmp byte [ecx], 0x3b
je 0x504bb8
add ecx, dword [esi + 0xc8]
mov eax, dword [esp + 0x54]
mov edx, dword [eax]
sub ecx, edx
movzx eax, byte [edx + ecx - 1]
test byte [eax + 0x581120], 1
je 0x504bdf
mov edi, edi
movzx eax, byte [edx + ecx - 2]
dec ecx
test byte [eax + 0x581120], 1
jne 0x504bd0
lea eax, [edx - 1]
mov dword [esp + 0x14], 1
add eax, ecx
push 0
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push 0
push eax
push 0
push esi
call fcn.005068a0
add esp, 0x14
jmp 0x504c0a
mov edi, dword [esp + 0x64]
mov ebx, dword [esp + 0x60]
test edi, edi
je 0x504c1e
push 1
push edi
push ebp
call fcn.004c3480
add esp, 0xc
cmp byte [esi + 0xd0], 2
jb 0x504c31
push ebx
push esi
call fcn.00523b00
add esp, 8
test ebx, ebx
je 0x504c3f
push ebx
push ebp
call fcn.004cc570
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
Function at 0x507f50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x28
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
push ebx
mov bh, byte [esp + 0x40]
mov edx, dword [ecx + 8]
mov bl, bh
and bl, 1
mov dword [esp + 4], edx
neg bl
push ebp
sbb bl, bl
push esi
mov esi, dword [eax]
add bl, 0x50
cmp byte [ecx + 0x17], 0
mov dword [esp + 0x3c], esi
jne 0x507f84
and bh, 0xfd
add eax, 8
xor ebp, ebp
mov dword [esp + 0x10], eax
test esi, esi
jle 0x508109
mov esi, dword [esp + 0x40]
mov byte [esp + 0x48], bh
and byte [esp + 0x48], 4
push edi
cmp byte [esp + 0x4c], 0
mov edi, dword [eax]
je 0x507fe4
movzx eax, word [eax + 0x10]
test eax, eax
jle 0x507fe4
test bh, 8
je 0x507fc9
mov eax, dword [esp + 0x40]
dec ebp
dec esi
dec eax
mov dword [esp + 0x40], eax
jmp 0x5080ea
mov ecx, dword [esp + 0x48]
dec ecx
push esi
add eax, ecx
push eax
movzx eax, bl
push eax
push edx
call fcn.0052e380
add esp, 0x10
jmp 0x5080de
test bh, 2
je 0x508039
mov dword [esp + 0x20], fcn.004cc820
mov eax, 2
mov word [esp + 0x30], ax
mov dword [esp + 0x24], 0x528460
mov dword [esp + 0x34], 0
test edi, edi
je 0x508029
lea eax, [esp + 0x1c]
push edi
push eax
call fcn.0054e280
mov ecx, dword [esp + 0x44]
add esp, 8
cmp word [esp + 0x30], 0
je 0x508039
push esi
push edi
push ecx
call fcn.00509410
add esp, 0xc
jmp 0x5080de
push esi
push edi
push ecx
call fcn.005095a0
mov edi, eax
add esp, 0xc
cmp edi, esi
je 0x5080de
cmp bl, 0x4f
jne 0x50808d
push 0xffffffffffffffff
push dword [esp + 0x14]
call fcn.005366e0
mov ecx, eax
add esp, 8
cmp byte [ecx], bl
jne 0x50808d
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 0xc]
inc eax
add eax, edx
cmp eax, edi
jne 0x50808d
mov eax, dword [ecx + 8]
inc eax
add eax, edx
cmp eax, esi
jne 0x50808d
cmp word [ecx + 2], 0
jne 0x50808d
lea eax, [edx + 1]
mov dword [ecx + 0xc], eax
jmp 0x5080de
mov edx, dword [esp + 0x10]
movzx eax, bl
mov dword [esp + 0x18], eax
mov ecx, dword [edx + 0x74]
cmp dword [edx + 0x78], ecx
jg 0x5080b0
push 0
push esi
push edi
push eax
push edx
call fcn.004e2e80
add esp, 0x14
jmp 0x5080de
lea eax, [ecx + 1]
mov dword [edx + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx + 0x70]
mov edx, dword [esp + 0x18]
mov byte [eax + ecx*4], dl
xor edx, edx
mov word [eax + ecx*4 + 2], dx
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], edx
mov byte [eax + ecx*4 + 1], dl
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x10]
add dword [esp + 0x14], 0x14
inc ebp
inc esi
cmp ebp, eax
mov eax, dword [esp + 0x14]
jl 0x507fa3
mov eax, dword [esp + 0x40]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x50d220
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push ebp
push esi
xor esi, esi
xor ebp, ebp
cmp dword [eax + 0x14], esi
jle 0x50d2dd
mov edx, dword [esp + 0x1c]
push ebx
push edi
lea esp, [esp]
mov edi, esi
cmp esi, 2
jge 0x50d24a
xor edi, 1
mov eax, dword [eax + 0x10]
mov ecx, edi
add ecx, ecx
mov ebx, dword [eax + ecx*8 + 0xc]
mov dword [esp + 0x10], ebx
test edx, edx
je 0x50d2a4
mov eax, dword [eax + ecx*8]
mov ebx, edx
sub ebx, eax
movzx edx, byte [eax]
movzx ecx, byte [ebx + eax]
cmp edx, ecx
jne 0x50d276
test edx, edx
je 0x50d2a4
inc eax
jmp 0x50d264
movzx ecx, byte [ecx + 0x580ff0]
movzx edx, byte [edx + 0x580ff0]
sub edx, ecx
jne 0x50d28b
inc eax
jmp 0x50d264
test edi, edi
jne 0x50d2c1
push dword [esp + 0x24]
push str.main
call fcn.00529a80
add esp, 8
test eax, eax
jne 0x50d2c1
mov eax, dword [esp + 0x10]
push 0
push dword [esp + 0x24]
add eax, 0x18
push eax
call fcn.004cd880
add esp, 0xc
mov ebp, dword [eax + 8]
test ebp, ebp
jne 0x50d2d3
mov eax, dword [esp + 0x1c]
inc esi
mov edx, dword [esp + 0x24]
cmp esi, dword [eax + 0x14]
jl 0x50d240
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret