joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4eb0c6
Capabilities:
Read file on windows
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0xc]
push eax
push 0x99
push 0x54944c
push str.vio_read
call fcn.004e9f97
add esp, 0x1c
cmp dword [0x54fc18], 0
je 0x4eb125
push 0x5494a4
push 0x9a
call fcn.004ea1b6
add esp, 8
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
push 0x5494ac
call fcn.004ea1d8
add esp, 0xc
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x30], 3
jne 0x4eb18f
push 0
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4eb16e
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0xc]
push eax
push 0xa4
call fcn.004ea08d
add esp, 0x10
or eax, 0xffffffff
jmp 0x4eb223
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0xc]
push eax
push 0xa6
call fcn.004ea08d
add esp, 0x10
mov eax, dword [ebp - 0x18]
jmp 0x4eb223
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call sub.WSOCK32.dll_recv
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x4eb1db
cmp dword [0x54fc18], 0
je 0x4eb1db
push 0x5494bc
push 0xb0
call fcn.004ea1b6
add esp, 8
call sub.WSOCK32.dll_WSAGetLastError
push eax
push str.Got_error__d_during_read
call fcn.004ea1d8
add esp, 8
cmp dword [0x54fc18], 0
je 0x4eb207
push 0x5494e4
push 0xb3
call fcn.004ea1b6
add esp, 8
mov edx, dword [ebp - 4]
push edx
push 0x5494ec
call fcn.004ea1d8
add esp, 8
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0xb4
call fcn.004ea08d
add esp, 0x10
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4eb227
Capabilities:
Send data
Send data on socket
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0xc]
push eax
push 0xbb
push 0x5494f0
push str.vio_write
call fcn.004e9f97
add esp, 0x1c
cmp dword [0x54fc18], 0
je 0x4eb286
push 0x549548
push 0xbc
call fcn.004ea1b6
add esp, 8
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
push str.sd_d__size_d
call fcn.004ea1d8
add esp, 0xc
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x30], 3
jne 0x4eb2f0
push 0
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4eb2cf
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0xc]
push eax
push 0xc6
call fcn.004ea08d
add esp, 0x10
or eax, 0xffffffff
jmp 0x4eb384
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0xc]
push eax
push 0xc8
call fcn.004ea08d
add esp, 0x10
mov eax, dword [ebp - 0x18]
jmp 0x4eb384
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call sub.WSOCK32.dll_send
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x4eb33c
cmp dword [0x54fc18], 0
je 0x4eb33c
push 0x549560
push 0xd1
call fcn.004ea1b6
add esp, 8
call sub.WSOCK32.dll_WSAGetLastError
push eax
push str.Got_error_on_write:__d
call fcn.004ea1d8
add esp, 8
cmp dword [0x54fc18], 0
je 0x4eb368
push 0x549584
push 0xd4
call fcn.004ea1b6
add esp, 8
mov edx, dword [ebp - 4]
push edx
push 0x54958c
call fcn.004ea1d8
add esp, 8
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0xd5
call fcn.004ea08d
add esp, 0x10
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x4eb514
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0xc]
push eax
push 0x12e
push 0x5496dc
push str.vio_keepalive
call fcn.004e9f97
add esp, 0x1c
cmp dword [0x54fc18], 0
je 0x4eb582
push 0x549738
push 0x130
call fcn.004ea1b6
add esp, 8
movsx ecx, byte [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
push str.sd_d__set_keep_alive_d
call fcn.004ea1d8
add esp, 0xc
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x30], 3
je 0x4eb5b5
movsx edx, byte [ebp + 0xc]
test edx, edx
je 0x4eb59a
mov dword [ebp - 0x18], 1
push 4
lea eax, [ebp - 0x18]
push eax
push 8
push 0xffff
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call sub.WSOCK32.dll_setsockopt
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0x138
call fcn.004ea08d
add esp, 0x10
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4eca20
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 8]
push eax
push 0x11
push 0x549b2c
push str.my_malloc
call fcn.004e9f97
add esp, 0x1c
cmp dword [0x54fc18], 0
je 0x4eca78
push 0x549b84
push 0x12
call fcn.004ea1b6
add esp, 8
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push str.Size:__u__MyFlags:__d
call fcn.004ea1d8
add esp, 0xc
cmp dword [ebp + 8], 0
jne 0x4eca85
mov dword [ebp + 8], 1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4ecaee
call dword [sym.imp.MSVCRT.dll__errno]
mov esi, eax
call fcn.004ece3d
mov ecx, dword [esi]
mov dword [eax], ecx
mov edx, dword [ebp + 0xc]
and edx, 8
test edx, edx
je 0x4ecac0
mov eax, dword [fcn.004f2930]
mov dword [fcn.004f2930], eax
mov ecx, dword [ebp + 0xc]
and ecx, 0x18
test ecx, ecx
je 0x4ecada
mov edx, dword [ebp + 8]
push edx
push 0x24
push 5
call fcn.004f0c20
add esp, 0xc
mov eax, dword [ebp + 0xc]
and eax, 8
test eax, eax
je 0x4ecaec
push 1
call dword [sym.imp.MSVCRT.dll_exit]
jmp 0x4ecb0a
mov ecx, dword [ebp + 0xc]
and ecx, 0x20
test ecx, ecx
je 0x4ecb0a
mov edx, dword [ebp + 8]
push edx
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp dword [0x54fc18], 0
je 0x4ecb33
push 0x549ba0
push 0x22
call fcn.004ea1b6
add esp, 8
mov ecx, dword [ebp - 0x10]
push ecx
push 0x549ba8
call fcn.004ea1d8
add esp, 8
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 8]
push ecx
push 0x23
call fcn.004ea08d
add esp, 0x10
mov eax, dword [ebp - 0x10]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4ecc60
Capabilities:
Allocate thread local storage
Terminate process

Disassembly:
push ebp
mov ebp, esp
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x559900], eax
cmp dword [0x559900], 0xffffffff
jne 0x4ecca0
call dword [sym.imp.MSVCRT.dll__errno]
mov eax, dword [eax]
push eax
push str.Cant_initialize_threads:_error__d_n
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
add ecx, 0x40
push ecx
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0xc
push 1
call dword [sym.imp.MSVCRT.dll_exit]
push 0x559a00
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x5599a0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x559a20
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x5599c0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x559960
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x559980
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x559940
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x559920
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x5599e0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call fcn.004f1570
call fcn.004ecd20
pop ebp
ret
Function at 0x4ecd20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x5599c0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x559900]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4ecd4e
push 0x5599c0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
jmp 0x4ecdc8
push 0x4c
push 1
call dword [sym.imp.MSVCRT.dll_calloc]
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4ecd73
push 0x5599c0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
jmp 0x4ecdc8
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [0x559900]
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x54fc48]
add eax, 1
mov dword [0x54fc48], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x54fc48]
mov dword [ecx + 0x30], edx
mov eax, dword [ebp - 4]
add eax, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
mov ecx, dword [ebp - 4]
add ecx, 4
push ecx
call fcn.004f17a0
add esp, 8
push 0x5599c0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x4ecdcc
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.004ece3d
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4ece2a
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3c], 0
je 0x4ece01
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x3c]
push edx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [ebp - 4]
mov dword [eax + 0x3c], 0
mov ecx, dword [ebp - 4]
add ecx, 4
push ecx
call fcn.004f17d7
add esp, 4
mov edx, dword [ebp - 4]
add edx, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
push 0
mov ecx, dword [0x559900]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esp, ebp
pop ebp
ret
Function at 0x4ecee0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
movsx eax, byte [0x54fc4d]
test eax, eax
je 0x4ecef6
jmp 0x4ed031
mov byte [0x54fc4d], 1
call fcn.004ecc60
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0x47
push 0x549c44
push str.my_init
call fcn.004e9f97
add esp, 0x1c
cmp dword [0x54fcbc], 0
je 0x4ecf3a
mov edx, dword [0x54fcbc]
mov dword [ebp - 0x18], edx
jmp 0x4ecf41
mov dword [ebp - 0x18], str.unknown
mov eax, dword [ebp - 0x18]
mov dword [str.dbug], eax
cmp dword [0x54fcb8], 0
jne 0x4ed016
call fcn.004ed210
push str.HOME
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
mov dword [0x54fcb8], eax
cmp dword [0x54fcb8], 0
je 0x4ecf90
mov ecx, dword [0x54fcb8]
push ecx
push 0x54fec0
call fcn.004f2542
add esp, 8
mov dword [0x54fcb8], eax
push str.UMASK
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4ecfbd
mov edx, dword [ebp - 4]
push edx
call fcn.004ed035
add esp, 4
or eax, 0x180
mov dword [0x54b508], eax
push str.UMASK_DIR
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4ecfea
mov eax, dword [ebp - 4]
push eax
call fcn.004ed035
add esp, 4
or eax, 0x1c0
mov dword [0x54b50c], eax
cmp dword [0x54fc18], 0
je 0x4ed016
push 0x549cbc
push 0x59
call fcn.004ea1b6
add esp, 8
mov ecx, dword [0x54fcb8]
push ecx
push str.home:__s
call fcn.004ea1d8
add esp, 8
call fcn.004ed3ee
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0x5e
call fcn.004ea08d
add esp, 0x10
mov esp, ebp
pop ebp
ret
Function at 0x4ed210
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa34
mov dword [ebp - 0x618], 0x100
mov dword [ebp - 0x620], 0x400
mov dword [ebp - 0x624], 0x100
mov dword [ebp - 0x614], 0x400
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], str.SoftwareMySQL
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0x61c]
push ecx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x18]
push eax
push 0xcf
push str.C:projektphp2exe_projectphp_4.4.2_sourceextmysqllibmysqlmy_init.c
push str.my_win_init
call fcn.004e9f97
add esp, 0x1c
push 0x54fc50
push 2
call dword [sym.imp.MSVCRT.dll_setlocale]
add esp, 8
lea ecx, [ebp - 8]
push ecx
push 0x20019
push 0
mov edx, dword [ebp - 0xc]
push edx
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4ed2cb
lea eax, [ebp - 0x61c]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x18]
push edx
push 0xd6
call fcn.004ea08d
add esp, 0x10
jmp 0x4ed3ea
lea eax, [ebp - 0x614]
push eax
lea ecx, [ebp - 0xa28]
push ecx
push 0
push 0
lea edx, [ebp - 0x624]
push edx
lea eax, [ebp - 0x610]
push eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0xa30], ecx
mov edx, dword [ebp - 0xa30]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x103
je 0x4ed3c4
lea edx, [ebp - 0xa28]
push edx
lea eax, [ebp - 0x610]
push eax
lea ecx, [ebp - 0x510]
push ecx
call fcn.004ed1ab
add esp, 0xc
lea edx, [ebp - 0x510]
push edx
call dword [sym.imp.MSVCRT.dll__strdup]
add esp, 4
mov dword [ebp - 0xa2c], eax
lea eax, [ebp - 0x510]
push eax
call dword [sym.imp.MSVCRT.dll__putenv]
add esp, 4
mov ecx, dword [ebp - 0x618]
mov dword [ebp - 0x624], ecx
mov edx, dword [ebp - 0x620]
mov dword [ebp - 0x614], edx
lea eax, [ebp - 0x614]
push eax
lea ecx, [ebp - 0xa28]
push ecx
push 0
push 0
lea edx, [ebp - 0x624]
push edx
lea eax, [ebp - 0x610]
push eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0xa34], ecx
mov edx, dword [ebp - 0xa34]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov dword [ebp - 4], eax
jmp 0x4ed311
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x61c]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x18]
push edx
push 0xf7
call fcn.004ea08d
add esp, 0x10
mov esp, ebp
pop ebp
ret
Function at 0x4ed3ee
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
call fcn.004ed49c
movsx eax, al
test eax, eax
je 0x4ed496
mov word [ebp - 0x194], 2
lea ecx, [ebp - 0x190]
push ecx
mov dx, word [ebp - 0x194]
push edx
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x4ed44e
call sub.WSOCK32.dll_WSACleanup
lea eax, [ebp - 0x190]
push eax
mov cx, word [ebp - 0x194]
push ecx
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x4ed44c
mov byte [0x54fc4c], 1
jmp 0x4ed496
mov edx, dword [ebp - 0x190]
and edx, 0xffff
mov eax, dword [ebp - 0x194]
and eax, 0xffff
cmp edx, eax
je 0x4ed48f
call sub.WSOCK32.dll_WSACleanup
lea ecx, [ebp - 0x190]
push ecx
mov dx, word [ebp - 0x194]
push edx
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x4ed48d
mov byte [0x54fc4c], 1
jmp 0x4ed496
mov byte [0x54fc4c], 1
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x4ed49c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetServicesTcpipParameters
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4ed51e
lea ecx, [ebp - 4]
push ecx
push 0x20019
push 0
push str.SYSTEMCurrentControlSetServicesWinsock2Parameters
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4ed51e
lea edx, [ebp - 4]
push edx
push 0x20019
push 0
push str.SYSTEMCurrentControlSetServicesWinsockParameters
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4ed51e
push str.HAVE_TCPIP
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
test eax, eax
je 0x4ed51a
movsx eax, byte [0x54fc4c]
test eax, eax
je 0x4ed51e
xor al, al
jmp 0x4ed52a
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x4f0670
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 8]
push eax
push 0x12
push str.C:projektphp2exe_projectphp_4.4.2_sourceextmysqllibmysqlmy_read.c
push str.my_read
call fcn.004e9f97
add esp, 0x1c
cmp dword [0x54fc18], 0
je 0x4f06cf
push 0x54ad68
push 0x14
call fcn.004ea1b6
add esp, 8
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str.Fd:__d__Buffer:__lx__Count:__u__MyFlags:__d
call fcn.004ea1d8
add esp, 0x14
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCRT.dll__read]
add esp, 0xc
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp + 0x10]
je 0x4f0800
call dword [sym.imp.MSVCRT.dll__errno]
cmp dword [eax], 0
je 0x4f0717
call dword [sym.imp.MSVCRT.dll__errno]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
jmp 0x4f071e
mov dword [ebp - 0x18], 0xffffffff
call fcn.004ece3d
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
cmp dword [0x54fc18], 0
je 0x4f0761
push 0x54ad98
push 0x1d
call fcn.004ea1b6
add esp, 8
call fcn.004ece3d
mov edx, dword [eax]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push str.Read_only__ld_bytes_off__ld_from__d__errno:__d
call fcn.004ea1d8
add esp, 0x14
cmp dword [ebp - 0xc], 0
jne 0x4f0777
call dword [sym.imp.MSVCRT.dll__errno]
cmp dword [eax], 4
jne 0x4f0777
jmp 0x4f06cf
mov eax, dword [ebp + 0x14]
and eax, 0x1a
test eax, eax
je 0x4f07d5
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4f07aa
call fcn.004ece3d
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004f4860
add esp, 4
push eax
push 0x24
push 2
call fcn.004f0c20
add esp, 0x10
jmp 0x4f07d5
mov eax, dword [ebp + 0x14]
and eax, 6
test eax, eax
je 0x4f07d5
call fcn.004ece3d
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004f4860
add esp, 4
push eax
push 0x24
push 9
call fcn.004f0c20
add esp, 0x10
cmp dword [ebp - 0xc], 0xffffffff
je 0x4f07e5
mov eax, dword [ebp + 0x14]
and eax, 6
test eax, eax
je 0x4f0800
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 8]
push eax
push 0x2c
call fcn.004ea08d
add esp, 0x10
or eax, 0xffffffff
jmp 0x4f082a
mov ecx, dword [ebp + 0x14]
and ecx, 6
test ecx, ecx
je 0x4f0811
mov dword [ebp - 0xc], 0
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 8]
push ecx
push 0x33
call fcn.004ea08d
add esp, 0x10
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x4f6da0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x4f6dab
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x4f6eae
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x508474]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x508474]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x508474]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x508474]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x508474]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x508474]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x508474]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x508474]
xor eax, edx
inc ecx
dec edi
jne 0x4f6dc6
pop edi
test esi, esi
je 0x4f6ed0
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x508474]
xor eax, edx
inc ecx
dec esi
jne 0x4f6eb2
pop esi
pop ebx
not eax
ret

Function at 0x4f72d0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4f72e1
or eax, 0xffffffff
pop esi
ret
mov eax, dword [esi + 4]
test eax, eax
jne 0x4f7330
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], 0
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
push eax
push 0x4000
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
mov dword [esi + 4], eax
test eax, eax
jne 0x4f732b
mov edx, dword [esi + 0x40]
mov dword [esi + 0x3c], 1
or eax, 0xffffffff
test byte [edx + 0xc], 0x20
je 0x4f7342
mov dword [esi + 0x38], eax
pop esi
ret
mov eax, dword [esi + 0x44]
mov dword [esi], eax
mov eax, dword [esi + 4]
xor ecx, ecx
dec eax
mov dword [esi + 4], eax
mov eax, dword [esi]
mov cl, byte [eax]
inc eax
mov dword [esi], eax
mov eax, ecx
pop esi
ret
Function at 0x4f7640
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x4f76da
cmp byte [esi + 0x5c], 0x77
jne 0x4f76da
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push edi
test ebx, ebx
mov dword [esi], eax
mov dword [esi + 4], ebx
je 0x4f76ba
mov edi, dword [sym.imp.MSVCRT.dll_fwrite]
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x4f7698
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x48]
push ecx
push 0x4000
push 1
push eax
mov dword [esi + 0xc], eax
call edi
add esp, 0x10
cmp eax, 0x4000
jne 0x4f76b3
mov dword [esi + 0x10], eax
push 0
push esi
call fcn.004f5710
add esp, 8
mov dword [esi + 0x38], eax
test eax, eax
jne 0x4f76ba
mov eax, dword [esi + 4]
test eax, eax
jne 0x4f7670
jmp 0x4f76ba
mov dword [esi + 0x38], 0xffffffff
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x4c]
push ebx
push edx
push eax
call fcn.004f6da0
mov ecx, dword [esi + 4]
add esp, 0xc
mov dword [esi + 0x4c], eax
mov eax, ebx
pop edi
pop ebx
sub eax, ecx
pop esi
ret
mov eax, 0xfffffffe
pop esi
ret

Function at 0x4f7730
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
xor ebx, ebx
test esi, esi
push edi
je 0x4f77de
cmp byte [esi + 0x5c], 0x77
jne 0x4f77de
mov dword [esi + 4], ebx
mov eax, dword [esi + 0x10]
mov edi, 0x4000
sub edi, eax
je 0x4f777f
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x48]
push eax
push edi
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp eax, edi
jne 0x4f77c4
mov edx, dword [esi + 0x48]
mov dword [esi + 0x10], 0x4000
mov dword [esi + 0xc], edx
test ebx, ebx
jne 0x4f77ce
mov eax, dword [esp + 0x14]
push eax
push esi
call fcn.004f5710
add esp, 8
mov dword [esi + 0x38], eax
test edi, edi
jne 0x4f77a0
cmp eax, 0xfffffffb
jne 0x4f77a0
mov dword [esi + 0x38], edi
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x4f77b1
cmp dword [esi + 0x38], 1
je 0x4f77b1
xor ebx, ebx
jmp 0x4f77b6
mov ebx, 1
mov eax, dword [esi + 0x38]
test eax, eax
je 0x4f774e
cmp eax, 1
jne 0x4f77ce
jmp 0x4f774e
or eax, 0xffffffff
pop edi
mov dword [esi + 0x38], eax
pop esi
pop ebx
ret
mov esi, dword [esi + 0x38]
pop edi
mov eax, esi
dec eax
neg eax
sbb eax, eax
and eax, esi
pop esi
pop ebx
ret
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
ret