joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4443b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
mov eax, dword [0x519008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov byte [ebp - 0xd0], dl
mov dword [ebp - 0xd4], esi
push edi
mov edi, ecx
cmp dl, 0x41
je 0x4443e8
cmp dl, 0x42
je 0x4443e8
mov ebx, 1
cmp byte [ebx + edi + 0xd], dl
je 0x444439
movzx eax, dl
push eax
push edi
push 0x51d9e4
lea eax, [ebp - 0xcc]
mov byte [ebx + edi + 0xd], dl
push str._s_lang__s_MSG_c.lng
push eax
call fcn.00402370
mov eax, dword [edi + ebx*4 + 4]
add esp, 0x14
test eax, eax
je 0x444421
push eax
call fcn.0040d0b9
add esp, 4
lea eax, [ebp - 0xcc]
push 0x504ff0
push eax
call fcn.0040c671
add esp, 8
mov dword [edi + ebx*4 + 4], eax
mov ebx, dword [edi + ebx*4 + 4]
test ebx, ebx
jne 0x44446b
push dword [ebp + 8]
mov edx, esi
mov ecx, edi
push dword [ebp - 0xd0]
push 1
call fcn.00444640
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403d8c
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
push 0
lea eax, [eax + eax*8]
lea eax, [eax*8 - 0x48]
push eax
push ebx
call fcn.0040d400
add esp, 0xc
test eax, eax
jns 0x4444b2
push dword [ebp + 8]
mov edx, esi
mov ecx, edi
push dword [ebp - 0xd0]
push 2
call fcn.00444640
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403d8c
mov esp, ebp
pop ebp
ret
push ebx
push 0x48
lea eax, [ebp - 0x4c]
push 1
push eax
call fcn.0040d881
add esp, 0x10
lea edi, [esi + 4]
xor ebx, ebx
lea esi, [ebx + 6]
jmp 0x4444d0
movzx ecx, byte [ebp + ebx - 0x4c]
lea edi, [edi + 0xc]
movzx eax, byte [ebp + ebx - 0x4b]
lea ebx, [ebx + 0xc]
shl cx, 8
or cx, ax
movzx eax, byte [ebp + ebx - 0x55]
mov word [edi - 0x10], cx
movzx ecx, byte [ebp + ebx - 0x56]
shl cx, 8
or cx, ax
movzx eax, byte [ebp + ebx - 0x53]
mov word [edi - 0xe], cx
movzx ecx, byte [ebp + ebx - 0x54]
shl cx, 8
or cx, ax
movzx eax, byte [ebp + ebx - 0x51]
mov word [edi - 0xc], cx
movzx ecx, byte [ebp + ebx - 0x52]
shl cx, 8
or cx, ax
movzx eax, byte [ebp + ebx - 0x4f]
mov word [edi - 0xa], cx
movzx ecx, byte [ebp + ebx - 0x50]
shl cx, 8
or cx, ax
movzx eax, byte [ebp + ebx - 0x4d]
mov word [edi - 8], cx
movzx ecx, byte [ebp + ebx - 0x4e]
shl cx, 8
or cx, ax
mov word [edi - 6], cx
sub esi, 1
jne 0x4444d0
mov esi, dword [ebp - 0xd4]
xor eax, eax
mov word [esi + 0x48], ax
lea ecx, [eax + 0x23]
cmp word [esi + 0x46], 0x20
lea eax, [esi + 0x46]
jne 0x444587
xor edx, edx
lea ecx, [ecx - 1]
mov word [eax], dx
lea eax, [esi + ecx*2]
cmp word [eax], 0x20
je 0x444576
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403d8c
mov esp, ebp
pop ebp
ret
Function at 0x4556a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60c
mov eax, dword [0x519008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov edx, 0x455660
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x60c], eax
lea eax, [ebp - 0x608]
push edi
mov edi, ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004f7c70
add esp, 4
test al, al
je 0x4557e2
push esi
push 0x51d9e4
push str._s_varie_prog
lea eax, [ebp - 0x204]
push 0x200
push eax
call fcn.004014e0
add esp, 0x10
cmp byte [ebp - 0x204], 0
je 0x455759
cmp byte [ebp - 0x203], 0x3a
jne 0x455759
cmp byte [ebp - 0x201], 0
mov esi, 3
je 0x45574c
mov al, byte [ebp + esi - 0x204]
cmp al, 0x5c
je 0x455730
cmp al, 0x2f
jne 0x455741
mov edx, esi
lea ecx, [ebp - 0x204]
call fcn.0042a5f0
test al, al
je 0x455759
inc esi
cmp byte [ebp + esi - 0x204], 0
jne 0x455721
mov edx, esi
lea ecx, [ebp - 0x204]
call fcn.0042a5f0
push str._lastUsedLang.txt
lea eax, [ebp - 0x204]
push 0x200
push eax
call fcn.0040bf49
add esp, 0xc
lea eax, [ebp - 0x604]
push 0x200
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x204]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x4557c5
cmp word [ebp + eax*2 - 0x604], 0
je 0x4557ad
xor ecx, ecx
mov word [ebp + eax*2 - 0x604], cx
lea eax, [ebp - 0x604]
push 0x504ef8
push eax
call fcn.0040c65a
add esp, 8
mov esi, eax
jmp 0x4557c7
xor esi, esi
push esi
push 1
lea eax, [ebp - 0x608]
push 2
push eax
call fcn.0040d634
push esi
call fcn.0040d0b9
add esp, 0x14
pop esi
movzx eax, byte [edi + 0x18]
mov ecx, ebx
push 2
push 0x5040c4
push eax
push dword [ebp - 0x60c]
call fcn.00448b80
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00403d8c
mov esp, ebp
pop ebp
ret 0xc
Function at 0x49de40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x519008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
add edx, edx
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
push edi
mov eax, dword [esi]
mov dword [ebp - 0x28], esi
mov eax, dword [eax + 0x10]
mov edi, dword [eax + edx*8]
mov eax, 1
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x30], eax
lea esp, [esp]
push eax
push str.sqlite_stat_d
lea eax, [ebp - 0x1c]
push eax
push 0x18
call fcn.004ea9a0
mov ecx, dword [esi]
lea ebx, [ebp - 0x1c]
add esp, 0x10
mov dword [ebp - 0x20], ecx
xor esi, esi
mov dword [ebp - 0x2c], ebx
cmp dword [ecx + 0x14], esi
jle 0x49df50
lea ebx, [ebx]
mov edi, esi
cmp esi, 2
jge 0x49deba
xor edi, 1
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x49dee5
mov ecx, dword [ecx + 0x10]
mov edx, edi
add edx, edx
mov ebx, dword [ecx + edx*8]
sub ebx, eax
lea ecx, [ecx]
movzx edx, byte [eax]
movzx ecx, byte [ebx + eax]
cmp edx, ecx
jne 0x49df28
test edx, edx
jne 0x49df3a
mov ebx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx + 0x10]
add edi, edi
push 0
mov edx, ebx
mov ecx, dword [eax + edi*8 + 0xc]
add ecx, 8
call fcn.004e80e0
add esp, 4
mov eax, dword [eax + 8]
test eax, eax
je 0x49df40
push dword [ebp - 0x34]
mov edi, dword [ebp - 0x24]
lea eax, [ebp - 0x1c]
push dword [ebp - 0x38]
mov esi, dword [ebp - 0x28]
push eax
push edi
push str.DELETE_FROM__Q._s_WHERE__s_Q
push esi
call fcn.004a1f10
add esp, 0x18
jmp 0x49dfd1
movzx ecx, byte [ecx + 0x5077b0]
movzx edx, byte [edx + 0x5077b0]
sub edx, ecx
jne 0x49df3d
inc eax
jmp 0x49ded0
mov ebx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x20]
inc esi
cmp esi, dword [ecx + 0x14]
jl 0x49deb0
mov edi, dword [ebp - 0x24]
mov edx, str.sqlite_master
sub edx, ebx
movzx ecx, byte [ebx]
movzx eax, byte [edx + ebx]
cmp ecx, eax
jne 0x49df88
test ecx, ecx
jne 0x49df9a
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 0x10]
test edi, edi
jne 0x49df9d
neg ecx
sbb ecx, ecx
test ecx, ecx
jne 0x49dfce
mov ecx, dword [ebp - 0x20]
mov ebx, str.sqlite_temp_master
jmp 0x49de9c
movzx eax, byte [eax + 0x5077b0]
movzx ecx, byte [ecx + 0x5077b0]
sub ecx, eax
jne 0x49dfce
inc ebx
jmp 0x49df57
test ecx, ecx
je 0x49dfce
mov esi, ecx
mov edx, edi
sub esi, edi
movzx ecx, byte [edx]
movzx eax, byte [esi + edx]
cmp ecx, eax
jne 0x49dfb9
test ecx, ecx
je 0x49df7b
inc edx
jmp 0x49dfa7
movzx eax, byte [eax + 0x5077b0]
movzx ecx, byte [ecx + 0x5077b0]
sub ecx, eax
jne 0x49df77
inc edx
jmp 0x49dfa7
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp eax, 4
jle 0x49de80
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403d8c
mov esp, ebp
pop ebp
ret
Function at 0x4a19f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, ecx
mov dword [ebp - 8], edx
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0xc], eax
xor esi, esi
cmp dword [eax + 0x14], ebx
jle 0x4a1a84
mov edx, dword [ebp + 8]
push edi
lea ecx, [ecx]
mov ecx, esi
cmp esi, 2
jge 0x4a1a1a
xor ecx, 1
mov edi, dword [eax + 0x10]
add ecx, ecx
mov eax, dword [edi + ecx*8 + 0xc]
mov dword [ebp - 4], eax
test edx, edx
je 0x4a1a43
mov edi, dword [edi + ecx*8]
mov eax, edx
sub edi, edx
movzx edx, byte [eax]
movzx ecx, byte [edi + eax]
cmp edx, ecx
jne 0x4a1a6f
test edx, edx
jne 0x4a1a81
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
lea ecx, [eax + 0x18]
push 0
call fcn.004e80e0
add esp, 4
mov ebx, dword [eax + 8]
test ebx, ebx
jne 0x4a1a66
mov eax, dword [ebp - 0xc]
inc esi
mov edx, dword [ebp + 8]
cmp esi, dword [eax + 0x14]
jl 0x4a1a10
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
movzx ecx, byte [ecx + 0x5077b0]
movzx edx, byte [edx + 0x5077b0]
sub edx, ecx
jne 0x4a1a5a
inc eax
jmp 0x4a1a31
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a1dd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
xor esi, esi
cmp dword [ecx + 0x14], esi
jle 0x4a1e6e
nop
mov edi, esi
cmp esi, 2
jge 0x4a1dfa
xor edi, 1
test eax, eax
je 0x4a1e25
mov ecx, dword [ecx + 0x10]
mov edx, edi
add edx, edx
mov ebx, dword [ecx + edx*8]
sub ebx, dword [ebp + 8]
jmp 0x4a1e10
movzx edx, byte [eax]
movzx ecx, byte [ebx + eax]
cmp edx, ecx
jne 0x4a1e4a
test edx, edx
jne 0x4a1e5c
mov ebx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x10]
add edi, edi
push 0
mov edx, ebx
mov ecx, dword [eax + edi*8 + 0xc]
add ecx, 8
call fcn.004e80e0
add esp, 4
mov eax, dword [eax + 8]
test eax, eax
jne 0x4a1efd
jmp 0x4a1e62
movzx ecx, byte [ecx + 0x5077b0]
movzx edx, byte [edx + 0x5077b0]
sub edx, ecx
jne 0x4a1e5f
inc eax
jmp 0x4a1e10
mov ebx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
inc esi
mov eax, dword [ebp + 8]
cmp esi, dword [ecx + 0x14]
jl 0x4a1df0
mov edx, str.sqlite_master
sub edx, ebx
movzx ecx, byte [ebx]
movzx eax, byte [edx + ebx]
cmp ecx, eax
jne 0x4a1e9a
test ecx, ecx
jne 0x4a1eac
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 0x10]
mov eax, dword [ebp + 8]
test eax, eax
jne 0x4a1eaf
neg ecx
sbb ecx, ecx
jmp 0x4a1ed2
movzx eax, byte [eax + 0x5077b0]
movzx ecx, byte [ecx + 0x5077b0]
sub ecx, eax
jne 0x4a1efb
inc ebx
jmp 0x4a1e75
test ecx, ecx
je 0x4a1efb
mov esi, ecx
mov edx, eax
sub esi, eax
lea esp, [esp]
movzx ecx, byte [edx]
movzx eax, byte [esi + edx]
cmp ecx, eax
jne 0x4a1ee6
test ecx, ecx
jne 0x4a1ef8
mov eax, dword [ebp + 8]
test ecx, ecx
jne 0x4a1efb
mov ecx, dword [ebp - 4]
mov ebx, str.sqlite_temp_master
mov dword [ebp - 8], ebx
jmp 0x4a1de4
movzx eax, byte [eax + 0x5077b0]
movzx ecx, byte [ecx + 0x5077b0]
sub ecx, eax
jne 0x4a1ecf
inc edx
jmp 0x4a1ec0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a7be0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push dword [ebp + 8]
mov edi, edx
mov ebx, ecx
push edi
push str.sqlite_master
push edi
push str.SELECT_1_FROM___w_._s_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d_NULL
push ebx
call fcn.004a1f10
add esp, 0x18
cmp dword [ebp + 8], 0
jne 0x4a7c1b
push edi
push str.sqlite_master
push str.SELECT_1_FROM_temp._s_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1_NULL
push ebx
call fcn.004a1f10
add esp, 0x10
pop edi
pop ebx
pop ebp
ret
Function at 0x4b6d30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
push 0
push 0x14
mov dword [ebx], 0
call fcn.004ed420
mov esi, eax
add esp, 8
test esi, esi
jne 0x4b6d60
lea eax, [esi + 7]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x519974], 0
mov edi, dword [ebp + 8]
je 0x4b6daa
mov eax, dword [0x519a74]
test eax, eax
je 0x4b6d83
push 0xc8
call eax
add esp, 4
test eax, eax
jne 0x4b6daa
mov eax, dword [ebp - 4]
mov dword [esi + 8], eax
lea eax, [esi + 4]
push eax
push 0
push esi
push 0x4ea690
push 0
push 0
mov dword [esi + 0xc], edi
call fcn.00410c4d
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x4b6dba
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
cmp dword [esi + 8], 0
jne 0x4b6dd3
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi + 4], eax
call dword [ebp - 4]
add esp, 4
mov dword [esi + 0x10], eax
pop edi
mov dword [ebx], esi
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f1f70
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x519008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
cmp dword [esi + 0x150], 0
je 0x4f206e
movzx eax, byte [ebp + 0xc]
push eax
lea eax, [esi + 0x1e5]
push eax
push str._s_d
lea eax, [ebp - 0x114]
push 0x80
push eax
call fcn.004014e0
add esp, 0x10
lea eax, [ebp - 0x14]
push eax
call fcn.004f2330
lea eax, [ebp - 0x14]
push eax
push 0x513968
lea eax, [esi + 0x22]
push eax
push str._s_s_s
lea eax, [ebp - 0x94]
push 0x80
push eax
call fcn.004014e0
push 0x513a9c
lea eax, [ebp - 0x94]
push 0x80
push eax
call fcn.0040bf49
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x94]
push 0x80
push eax
call fcn.0040bf49
push 0x513aa0
lea eax, [ebp - 0x94]
push 0x80
push eax
call fcn.0040bf49
lea eax, [ebp - 0x94]
add esp, 0x3c
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4f2038
sub eax, edx
je 0x4f2064
push 0
movzx eax, ax
push eax
lea eax, [ebp - 0x94]
push eax
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x4f2064
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x150], 0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00403d8c
mov esp, ebp
pop ebp
ret 8
Function at 0x4f20f0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
mov eax, dword [0x519008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 0x31c], eax
push edi
mov edi, dword [ebp + 8]
push str.AlipayChinaCore::priv_orderStart___n
mov eax, dword [esi + 0x128]
push eax
mov dword [ebp - 0x320], ebx
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [esi + 0x150]
add esp, 8
test eax, eax
je 0x4f2187
mov ecx, dword [esi + 0x128]
mov edx, dword [ecx]
cmp edx, vtable.rhea::NullLogger.0
jne 0x4f2303
movzx eax, al
push eax
push str.ERR:_theOrder.status___none__status_d__n
push ecx
call dword [edx + 0xc]
mov ecx, dword [esi + 0x128]
add esp, 0xc
mov eax, dword [ecx]
cmp eax, vtable.rhea::NullLogger.0
jne 0x4f2319
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403d8c
mov esp, ebp
pop ebp
ret 0x10
push ebx
push 0x504fc8
lea eax, [esi + 0x154]
push 0x80
push eax
call fcn.004014e0
push dword [ebp - 0x31c]
mov bl, byte [ebp + 0x10]
lea eax, [esi + 0x1d5]
push 0x504fc8
push 0x10
push eax
mov byte [esi + 0x1d4], bl
call fcn.004014e0
add esp, 0x20
mov byte [esi + 0x1e5], 0
lea eax, [ebp - 0x10]
mov dword [esi + 0x150], 1
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push dword [0x51dbec]
mov ecx, dword [ebp - 0x10]
sub ecx, dword [0x51dbf0]
push dword [0x51dbe8]
mov eax, dword [ebp - 0xc]
sbb eax, dword [0x51dbf4]
push eax
push ecx
call fcn.004fce10
push dword [ebp - 0x31c]
add eax, 0xbb8
mov dword [esi + 0x408], eax
movzx eax, bl
adc edx, 0
push eax
push dword [ebp - 0x320]
lea eax, [ebp - 0x318]
mov dword [esi + 0x40c], edx
push str._s_d_s
push 0x100
push eax
call fcn.004014e0
add esp, 0x14
lea eax, [ebp - 0x18]
push eax
call fcn.004f2330
lea eax, [ebp - 0x18]
push eax
push 0x513960
lea eax, [esi + 0x22]
push eax
push str._s_s_s
lea eax, [ebp - 0x218]
push 0x200
push eax
call fcn.004014e0
push 0x513a9c
lea eax, [ebp - 0x218]
push 0x200
push eax
call fcn.0040bf49
add esp, 0x24
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp - 0x218]
push 0x200
push eax
call fcn.0040bf49
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x513aa0
push 0x200
push eax
call fcn.0040bf49
lea eax, [ebp - 0x218]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4f22c2
sub eax, edx
je 0x4f22ee
push 0
movzx eax, ax
push eax
lea eax, [ebp - 0x218]
push eax
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x4f22ee
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403d8c
mov esp, ebp
pop ebp
ret 0x10
call dword [edx + 4]
mov ecx, dword [esi + 0x128]
mov al, byte [esi + 0x150]
mov edx, dword [ecx]
jmp 0x4f214f
call dword [eax + 8]
jmp 0x4f2172
Function at 0x4f5b20
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x519008]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, ecx
push edi
push 0x1388
mov byte [esi + 0x1e8], 0
lea ecx, [esi + 0x10c]
mov byte [esi + 0x1d4], 1
call fcn.004f3fd0
mov byte [esi + 0x1d4], 0
test al, al
jne 0x4f5b71
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00403d8c
mov esp, ebp
pop ebp
ret 4
lea edi, [esi + 0x154]
movzx ebx, al
mov edx, 0xffff
nop
mov ecx, dword [edi]
mov al, byte [ecx + 0xc]
cmp al, 2
jne 0x4f5bec
movzx eax, byte [esi + 0x1e8]
lea eax, [eax + eax*2]
mov dword [esi + eax*4 + 0x10], 1
movzx eax, byte [esi + 0x1e8]
lea ecx, [eax + eax*2]
mov eax, dword [edi]
mov dword [esi + ecx*4 + 0x14], eax
movzx eax, byte [esi + 0x1e8]
mov edx, dword [edi]
add eax, 2
lea ecx, [eax + eax*2]
mov eax, dword [edx + 0x10]
mov dword [esi + ecx*4], eax
inc byte [esi + 0x1e8]
mov edx, 0xffff
add edi, 4
sub ebx, 1
jne 0x4f5b80
mov al, byte [esi + 0x1e8]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403d8c
mov esp, ebp
pop ebp
ret 4
cmp al, 1
jne 0x4f5bcb
mov ecx, dword [ecx + 0x10]
cmp ecx, 0xffffffff
jne 0x4f5c38
lea eax, [ebp - 0x64]
mov word [ebp - 0x64], dx
push eax
mov ecx, esi
mov word [ebp - 0x64], dx
call fcn.004f50d0
test al, al
je 0x4f5bc6
movzx eax, byte [esi + 0x1e8]
lea eax, [eax + eax*2]
mov dword [esi + eax*4 + 0x10], 0x64
mov ax, word [ebp - 0x64]
movzx ecx, ax
movzx eax, byte [esi + 0x1e8]
lea eax, [eax + eax*2]
mov dword [esi + eax*4 + 0x14], ecx
jmp 0x4f5bc0
cmp ecx, 0xfffffffe
jne 0x4f5cce
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 0x10
push eax
lea eax, [ebp - 0x60]
push eax
push 0
push 0x40
lea eax, [ebp - 0x4c]
push eax
push dword [esi + 0x1e4]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
je 0x4f5bc6
cmp eax, 9
jb 0x4f5bc6
lea eax, [ebp - 0x4c]
cmp dword [eax], 0x41454852
jne 0x4f5bc6
cmp dword [eax + 4], 0x6c6c4548
jne 0x4f5bc6
movzx eax, byte [eax + 8]
cmp al, 0x4f
jne 0x4f5bc6
push 0x10
mov byte [ebp - 0x44], al
lea eax, [ebp - 0x60]
push eax
push 0
push 9
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0x61656872
push eax
push dword [esi + 0x1e4]
mov dword [ebp - 0x48], 0x4c6c6548
call dword [sym.imp.WS2_32.dll_sendto]
jmp 0x4f5bc6
movzx eax, byte [esi + 0x1e8]
lea eax, [eax + eax*2]
mov dword [esi + eax*4 + 0x10], 0x65
movzx eax, byte [esi + 0x1e8]
lea eax, [eax + eax*2]
mov dword [esi + eax*4 + 0x14], ecx
inc byte [esi + 0x1e8]
jmp 0x4f5bcb
Function at 0x4fa930
Capabilities:
Check for time delay via queryperformancecounter
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x519008]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [esp + 0x10], eax
mov edi, ecx
lea eax, [esp + 0x20]
mov dword [esp + 0x14], edi
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push dword [0x51dbec]
mov edx, dword [esp + 0x24]
sub edx, dword [0x51dbf0]
push dword [0x51dbe8]
mov eax, dword [esp + 0x2c]
sbb eax, dword [0x51dbf4]
push eax
push edx
call fcn.004fce10
add eax, dword [ebp + 0x10]
mov ecx, edx
mov ebx, dword [ebp + 0xc]
adc ecx, 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
mov ecx, dword [edi]
mov esi, dword [ecx + 0x10]
cmp ecx, vtable.rhea::ProtocolChSocketTCP.0
jne 0x4faab4
push 0
movzx eax, bx
push eax
push dword [esp + 0x18]
push dword [edi + 0x18]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x4fa9c8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x4fa9d3
mov eax, 0xffff
jmp 0x4fa9d6
movzx eax, ax
movzx esi, ax
cmp si, bx
jae 0x4faa9d
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [esp + 0x10]
mov ecx, ebx
movzx eax, si
sub ecx, esi
add edx, eax
mov eax, dword [edi]
mov edi, dword [eax + 0x10]
cmp eax, vtable.rhea::ProtocolChSocketTCP.0
jne 0x4faac2
mov edi, dword [esp + 0x14]
push 0
movzx eax, cx
push eax
push edx
push dword [edi + 0x18]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x4faa26
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x4faa31
mov eax, 0xffff
jmp 0x4faa34
movzx eax, ax
movzx eax, ax
mov ecx, 0xfff5
cmp ax, cx
jae 0x4faaa0
test ax, ax
je 0x4faa4d
add esi, eax
cmp si, bx
jae 0x4faa9d
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push dword [0x51dbec]
mov ecx, dword [esp + 0x24]
sub ecx, dword [0x51dbf0]
push dword [0x51dbe8]
mov eax, dword [esp + 0x2c]
sbb eax, dword [0x51dbf4]
push eax
push ecx
call fcn.004fce10
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
cmp edx, dword [esp + 0x18]
ja 0x4faa9d
jb 0x4fa9e2
cmp eax, dword [esp + 0x1c]
jb 0x4fa9e2
mov ax, si
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00403d8c
mov esp, ebp
pop ebp
ret 0xc
push ebx
push dword [esp + 0x14]
mov ecx, edi
call esi
jmp 0x4fa9d3
push ecx
mov ecx, dword [esp + 0x18]
push edx
call edi
mov edi, dword [esp + 0x14]
jmp 0x4faa31
Function at 0x4fc060
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fd858
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x519008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ebp - 4], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov byte [ecx + 0x20], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x28], 0
mov dword [ecx + 0x24], 0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
mov byte [ecx + 0x38], 0
mov dword [ecx + 0x34], 0
mov dword [ecx + 0x40], 0
mov dword [ecx + 0x3c], 0
mov dword [ecx + 0x44], 0
mov dword [ecx + 0x48], 0
mov byte [ecx + 0x50], 0
mov dword [ecx + 0x4c], 0
mov dword [ecx + 0x58], 0
mov dword [ecx + 0x54], 0
lea ebx, [ecx + 0x5c]
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov byte [ebx + 0xc], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x10], 0
mov dword [ecx + 0x74], 0
mov dword [ecx + 0x78], 0
mov byte [ecx + 0x80], 0
mov dword [ecx + 0x7c], 0
mov dword [ecx + 0x88], 0
mov dword [ecx + 0x84], 0
lea esi, [ecx + 0x8c]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov edi, dword [ebp + 8]
mov byte [ebp - 4], 6
mov dword [ecx + 0x10], edi
mov dword [ecx], edi
mov ecx, esi
push 0x10
mov dword [esi], edi
mov byte [esi + 0xc], 1
call fcn.00429f00
mov dword [esi + 0x14], 4
mov ecx, ebx
push 0x200
mov dword [ebx], edi
mov byte [ebx + 0xc], 1
call fcn.00429f00
mov dword [ebx + 0x14], 0x20
mov ebx, dword [ebp - 0x10]
push 0x200
lea ecx, [ebx + 0x44]
mov dword [ebx + 0x44], edi
mov byte [ebx + 0x50], 1
call fcn.00429f00
mov dword [ebx + 0x58], 0x20
lea ecx, [ebx + 0x2c]
push 0x800
mov dword [ebx + 0x2c], edi
mov byte [ebx + 0x38], 1
call fcn.00429f00
mov dword [ebx + 0x40], 0x80
mov dword [ebx + 0x14], edi
mov byte [ebx + 0x20], 1
push 0x400
lea ecx, [ebx + 0x14]
call fcn.00429f00
mov dword [ebx + 0x28], 0x80
lea ecx, [ebx + 0x74]
push 0x400
mov dword [ebx + 0x74], edi
mov byte [ebx + 0x80], 1
call fcn.00429f00
mov dword [ebx + 0x88], 0x40
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4