joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47938a
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea eax, [ecx + eax*2 + 0xc]
push edi
push eax
call dword [0x4d5af8]
mov edi, eax
pop ecx
test edi, edi
je 0x479468
lea eax, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], eax
mov ecx, dword [esi + 0xc]
add ecx, eax
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], ecx
cmp ebx, dword [esi + 0x10]
jbe 0x4793ec
push eax
call dword [esi]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call dword [esi + 4]
mov ebx, dword [edi + 8]
add ebx, dword [esi + 0xc]
push dword [edi + 4]
push ebx
call dword [esi + 8]
mov dword [ebp + 0xc], ebx
mov ebx, dword [esi + 0x14]
add esp, 0x18
push dword [edi + 4]
call dword [esi]
push dword [edi + 8]
call dword [esi]
and dword [ebp - 4], 0
pop ecx
pop ecx
test ebx, ebx
je 0x47943b
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 0xc]
mov al, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
push 1
lea eax, [ebp + 0xb]
push eax
push dword [edi + 4]
call dword [esi + 4]
mov al, byte [ebx]
xor al, 0x5c
mov byte [ebp + 0xb], al
push 1
lea eax, [ebp + 0xb]
push eax
push dword [edi + 8]
inc ebx
mov dword [ebp + 0xc], ebx
call dword [esi + 4]
add esp, 0x18
dec dword [ebp - 8]
jne 0x479406
pop ebx
jmp 0x47945e
push 1
push 0x4c167b
push dword [edi + 4]
call dword [esi + 4]
push 1
push 0x4c167c
push dword [edi + 8]
call dword [esi + 4]
add esp, 0x18
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x10]
jb 0x47943e
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x479c67
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 4], 0
and dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
ret

Function at 0x47a8f9
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
xor eax, eax
test esi, esi
je 0x47a93b
cmp dword [ebp + 0xc], eax
je 0x47a93b
cmp dword [ebp + 0x1c], eax
je 0x47a913
mov eax, dword [ebp + 0x1c]
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push dword [ebp + 0x14]
call fcn.004a9d0e
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x47a937
mov eax, 0xcb021000
jmp 0x47a940
xor eax, eax
jmp 0x47a940
mov eax, 0xcb020001
pop esi
pop ebp
ret
Function at 0x47afbe
Capabilities:
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x108
mov eax, dword [0x4d4430]
xor eax, ebp
mov dword [ebp + 0x84], eax
push esi
mov esi, dword [ebp + 0x90]
push 0x103
lea eax, [ebp - 0x7f]
push 0
push eax
mov byte [ebp - 0x80], 0
call fcn.0040c970
add esp, 0xc
test esi, esi
jne 0x47b002
mov eax, 0xcb010001
jmp 0x47b04e
cmp byte [esi + 1], 0x3a
jne 0x47affb
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.0040d900
lea eax, [ebp - 0x80]
push eax
call fcn.0047af9f
lea eax, [ebp - 0x80]
push eax
call fcn.0047aee8
add esp, 0x10
test eax, eax
je 0x47b04c
push 0
lea eax, [ebp - 0x80]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
test eax, eax
je 0x47b04c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0047ae24
pop ecx
jmp 0x47b04e
xor eax, eax
mov ecx, dword [ebp + 0x84]
xor ecx, ebp
pop esi
call fcn.0040c660
add ebp, 0x88
leave
ret

Function at 0x47b148
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x47b158
mov eax, 0xcb010001
pop esi
ret
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
cmp eax, 0x10
je 0x47b179
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
neg eax
sbb eax, eax
and eax, 6
add eax, 0xcb011001
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x47b17d
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x1cc]
sub esp, 0x24c
mov eax, dword [0x4d4430]
xor eax, ebp
mov dword [ebp + 0x1c8], eax
mov eax, dword [ebp + 0x1d4]
and dword [ebp - 0x80], 0
push ebx
mov ebx, dword [ebp + 0x1d8]
push edi
test eax, eax
je 0x47b27b
test ebx, ebx
je 0x47b27b
push eax
lea eax, [ebp + 0xc4]
push eax
call fcn.0040d8f0
lea eax, [ebp + 0xc4]
push eax
call fcn.0047af9f
lea eax, [ebp + 0xc4]
push eax
call fcn.0047b148
add esp, 0x10
test eax, eax
jne 0x47b280
lea eax, [ebp + 0xc4]
push 0x4c17b0
push eax
call fcn.0040d900
pop ecx
pop ecx
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x47b22b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x47b22b
push eax
call fcn.0047ae24
pop ecx
test eax, eax
jne 0x47b280
push esi
push 0xc
call fcn.0040ca29
pop ecx
mov esi, eax
cmp edi, 0xffffffff
je 0x47b268
push pe_nt_image_headers32
call fcn.0040ca29
lea ecx, [ebp - 0x50]
push ecx
push eax
mov dword [ebp - 0x80], eax
call fcn.0040d8f0
movzx eax, byte [ebp - 0x7c]
mov ecx, dword [ebp - 0x80]
shr eax, 4
add esp, 0xc
and eax, 1
mov dword [ecx + 0x104], eax
mov eax, dword [ebp - 0x80]
and dword [esi + 4], 0
mov dword [esi + 8], eax
mov dword [esi], edi
mov dword [ebx], esi
xor eax, eax
pop esi
jmp 0x47b280
mov eax, 0xcb010001
mov ecx, dword [ebp + 0x1c8]
pop edi
xor ecx, ebp
pop ebx
call fcn.0040c660
add ebp, 0x1cc
leave
ret
Function at 0x47b297
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
lea ebp, [esp - 0x2d4]
sub esp, 0x354
mov eax, dword [0x4d4430]
xor eax, ebp
mov dword [ebp + 0x2d0], eax
push edi
mov edi, dword [ebp + 0x2dc]
test edi, edi
jne 0x47b2c7
mov eax, 0xcb010001
jmp 0x47b43b
push ebx
lea eax, [ebp + 0x1cc]
push edi
push eax
call fcn.0040d8f0
lea eax, [ebp + 0x1cc]
push eax
call fcn.0047af9f
lea eax, [ebp + 0x1cc]
push eax
call fcn.0047b148
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x47b43a
push esi
lea eax, [ebp + 0x1cc]
push 0x4c17b0
push eax
call fcn.0040d900
pop ecx
pop ecx
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x1cc]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x7c], eax
call esi
mov dword [ebp - 0x80], eax
lea eax, [ebp + 0x1cc]
push edi
push eax
call fcn.0040d8f0
lea eax, [ebp + 0x1cc]
push eax
call fcn.0047af9f
mov edi, dword [ebp - 0x7c]
add esp, 0xc
cmp edi, 0xffffffff
jne 0x47b364
cmp dword [ebp - 0x80], 2
jne 0x47b41b
cmp edi, 0xffffffff
je 0x47b40c
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp + 0x1cc]
push eax
lea eax, [ebp + 0xc8]
push str._s_s
push eax
call fcn.0040c779
add esp, 0x10
test byte [ebp - 0x78], 0x10
jne 0x47b3a8
lea eax, [ebp + 0xc8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x47b39e
xor ebx, ebx
jmp 0x47b3e3
call esi
push eax
call fcn.0047ae24
jmp 0x47b3dc
lea eax, [ebp - 0x4c]
push 0x4b2790
push eax
call fcn.0040cc20
pop ecx
pop ecx
test eax, eax
je 0x47b3df
lea eax, [ebp - 0x4c]
push 0x4b278c
push eax
call fcn.0040cc20
pop ecx
pop ecx
test eax, eax
je 0x47b3df
lea eax, [ebp + 0xc8]
push eax
call fcn.0047b297
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x47b40c
lea eax, [ebp - 0x78]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x47b35b
call esi
cmp eax, 0x12
jne 0x47b401
xor ebx, ebx
jmp 0x47b40c
call esi
push eax
call fcn.0047ae24
pop ecx
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
je 0x47b41b
mov eax, ebx
jmp 0x47b439
lea eax, [ebp + 0x1cc]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x47b437
call esi
push eax
call fcn.0047ae24
pop ecx
jmp 0x47b439
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp + 0x2d0]
xor ecx, ebp
pop edi
call fcn.0040c660
add ebp, 0x2d4
leave
ret
Function at 0x47bb2a
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
and dword [ebp - 8], 0
and dword [ebp - 0xc], 0
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jne 0x47bb56
mov eax, 0xcb040003
jmp 0x47bbc3
push ebx
push edi
call fcn.0040ca29
mov dword [esp], 0x100
mov ebx, eax
push 0
push ebx
call fcn.0040c970
add esp, 0xc
push ebx
push edi
push dword [ebp - 4]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
cmp eax, 1
jne 0x47bbb9
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0x4b28c0
push ebx
call sub.VERSION.dll_VerQueryValueA
cmp eax, 1
jne 0x47bbb9
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 0xa]
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
movzx ecx, word [eax + 8]
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
movzx eax, word [eax + 0xe]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
push ebx
call fcn.0040c932
pop ecx
xor eax, eax
pop ebx
pop edi
leave
ret

Function at 0x47bbc6
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x1c0
mov eax, dword [0x4d4430]
xor eax, ebp
mov dword [ebp + 0x74], eax
and dword [ebp - 0x148], 0
and dword [ebp - 0x144], 0
and dword [ebp - 0x140], 0
push esi
push 0x118
lea eax, [ebp - 0x138]
push 0
push eax
call fcn.0040c970
add esp, 0xc
push str.RtlGetVersion
push str.ntdll.dll
mov dword [ebp - 0x13c], 0x11c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x47bc85
lea ecx, [ebp - 0x13c]
push ecx
call eax
test eax, eax
jne 0x47bc85
cmp dword [ebp - 0x138], 6
ja 0x47bc4f
jb 0x47bc85
cmp dword [ebp - 0x134], 3
ja 0x47bc4f
jb 0x47bc85
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x148]
push eax
push str.kernel32.dll
call fcn.0047bb2a
mov ecx, dword [ebp - 0x148]
mov edx, dword [ebp - 0x144]
mov esi, dword [ebp - 0x140]
add esp, 0x10
jmp 0x47bca6
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
dec eax
neg eax
sbb eax, eax
jne 0x47bcaa
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
test eax, eax
je 0x47bcc4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.error_:__d
call fcn.0040cabd
pop ecx
pop ecx
mov eax, 0xcb040003
jmp 0x47bcd7
push esi
push edx
push ecx
push str._d._d._d
push ebx
call fcn.0040c779
add esp, 0x14
xor eax, eax
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
pop esi
call fcn.0040c660
add ebp, 0x78
leave
ret

Function at 0x47c760
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 4]
push eax
push 0x8004667e
push esi
mov dword [esp + 0x10], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x47c799
push esi
push str.fcntl__d__F_GETFL_
push esi
call fcn.0048ae40
add esp, 0xc
or eax, 0xffffffff
pop esi
pop ecx
ret
xor eax, eax
pop esi
pop ecx
ret
Function at 0x47c8a0
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
cmp dword [edi], ebx
jge 0x47c8fc
movzx eax, word [ebp]
push ebx
push 1
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
mov dword [edi], esi
test esi, esi
js 0x47c95a
lea ecx, [esp + 0x14]
push ecx
push 0x8004667e
mov ebx, 1
push esi
mov dword [esp + 0x20], ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x47c8fc
push esi
push str.fcntl__d__F_GETFL_
push esi
call fcn.0048ae40
add esp, 0xc
jmp 0x47c94b
mov edx, dword [esp + 0x1c]
mov eax, dword [edi]
push edx
push ebp
push eax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jns 0x47c969
mov ecx, dword [edi]
push ecx
call fcn.0047c840
add esp, 4
cmp eax, 0x2733
je 0x47c962
cmp eax, 0x2714
je 0x47c962
cmp eax, 0x2734
je 0x47c962
cmp eax, 0x2726
je 0x47c962
cmp eax, 0x274d
jne 0x47c947
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
ret
test ebx, ebx
je 0x47c95a
mov edx, dword [edi]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi], 0xffffffff
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x47cb50
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x28
xor eax, eax
push ebp
push esi
mov esi, dword [sym.imp.WS2_32.dll_getaddrinfo]
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0x4d5fc8
push 0x4d5fcc
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0xc
call esi
lea edx, [esp + 0xc]
push edx
mov edi, eax
lea eax, [esp + 0x18]
push eax
push 0x4d5fd4
mov ebp, 1
push str.1.2.3.4
mov dword [esp + 0x2c], ebp
call esi
test eax, eax
jne 0x47cbdf
test edi, edi
je 0x47cbdf
mov dword [0x4e1dac], ebp
mov eax, dword [esp + 0xc]
test eax, eax
je 0x47cbf3
cmp dword [eax + 0xc], 0
jne 0x47cbf3
mov dword [0x4e1db0], ebp
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.WS2_32.dll_freeaddrinfo]
test ecx, ecx
je 0x47cc08
push ecx
call esi
mov eax, dword [esp + 0xc]
test eax, eax
je 0x47cc0f
push eax
call esi
pop edi
pop esi
mov dword [0x4e1db4], ebp
pop ebp
add esp, 0x28
ret
Function at 0x485810
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
aad 0xfc
mov byte [ebp - 0x2a], 0xe7
mov byte [ebp - 0x29], 0xe1
mov byte [ebp - 0x28], 0xe0
mov byte [ebp - 0x27], 0xf4
mov byte [ebp - 0x26], 0xf9
mov byte [ebp - 0x25], 0xd4
mov byte [ebp - 0x24], 0xf9
mov byte [ebp - 0x23], 0xf9
mov byte [ebp - 0x22], 0xfa
mov byte [ebp - 0x21], 0xf6
mov byte [ebp - 0x20], 0x95
call fcn.00485528
push eax
push edi
push dword [ebp + 8]
call fcn.004854dd
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 0x1c], bl
mov byte [ebp - 0x1b], bl
mov byte [ebp - 0x1a], 0xfb
mov byte [ebp - 0x19], bl
mov byte [ebp - 0x18], 0x52
mov byte [ebp - 0x17], 0x6d
mov byte [ebp - 0x16], 0x76
mov byte [ebp - 0x15], 0x70
mov byte [ebp - 0x14], 0x71
mov byte [ebp - 0x13], 0x65
mov byte [ebp - 0x12], 0x68
mov byte [ebp - 0x11], 0x42
mov byte [ebp - 0x10], 0x76
mov byte [ebp - 0xf], 0x61
mov byte [ebp - 0xe], 0x61
mov byte [ebp - 0xd], 4
call fcn.00485528
push eax
push edi
push dword [ebp + 8]
call fcn.004854dd
add esp, 0x20
mov dword [ebp - 0xc], eax
call fcn.00485518
mov al, 0xb7
fsubr dword [edi - 0x73]
inc ebp
xchg esp, eax
mov byte [ebp - 0x6c], bl
push eax
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xd2
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x7b
mov byte [ebp - 0x67], 0x44
mov byte [ebp - 0x66], 0x5f
mov byte [ebp - 0x65], 0x59
mov byte [ebp - 0x64], 0x58
mov byte [ebp - 0x63], 0x4c
mov byte [ebp - 0x62], 0x41
mov byte [ebp - 0x61], 0x7d
mov byte [ebp - 0x60], 0x5f
mov byte [ebp - 0x5f], 0x42
mov byte [ebp - 0x5e], 0x59
mov byte [ebp - 0x5d], 0x48
mov byte [ebp - 0x5c], 0x4e
mov byte [ebp - 0x5b], 0x59
mov byte [ebp - 0x5a], 0x2d
call fcn.00485528
push eax
push edi
push dword [ebp + 8]
call fcn.004854dd
mov dword [ebp - 0xc4], eax
mov byte [ebp - 0x44], bl
lea eax, [ebp - 0x44]
mov byte [ebp - 0x43], bl
push eax
mov byte [ebp - 0x42], 0xfd
mov byte [ebp - 0x41], bl
mov byte [ebp - 0x40], 0x4e
mov byte [ebp - 0x3f], 0x6d
invalid
inc ebp
Function at 0x48e0a0
Capabilities:
Create thread

Disassembly:
cmp dword [0x4e1e6c], 0
push esi
push edi
jne 0x48e0b5
mov edi, 0x4e1e60
call fcn.0048df40
push 0x30
push 1
call fcn.00486280
mov esi, eax
add esp, 8
test esi, esi
jne 0x48e0ca
pop edi
pop esi
ret
mov edi, dword [esp + 0xc]
test edi, edi
jg 0x48e0d7
mov edi, 2
lea eax, [edi + edi]
mov word [esi + 0x1c], ax
push ebp
cwde
push 4
push eax
call fcn.00486280
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 8
mov dword [esi + 0x24], eax
test eax, eax
je 0x48e16e
push edi
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [esi], eax
mov dword [esi + 0x20], 0xffffffff
test eax, eax
je 0x48e177
push 0
push 1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov dword [esi + 0x2c], eax
test eax, eax
je 0x48e16e
xor ecx, ecx
xor edi, edi
cmp cx, word [esi + 0x1c]
jge 0x48e159
push esi
push 0
push 0x48ddc0
call fcn.004aa670
add esp, 0xc
cmp eax, 0xffffffff
je 0x48e16e
mov edx, dword [esi + 0x24]
mov dword [edx + edi*4], eax
inc word [esi + 0x28]
movsx eax, word [esi + 0x1c]
inc edi
cmp edi, eax
jl 0x48e131
push 0x3e8
lea ecx, [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
pop ebp
pop edi
mov eax, esi
pop esi
ret
mov eax, dword [esi]
test eax, eax
je 0x48e177
push eax
call ebp
mov eax, dword [esi + 0x24]
test eax, eax
je 0x48e187
push eax
call fcn.00486320
add esp, 4
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x48e191
push eax
call ebp
push esi
call fcn.00486320
add esp, 4
pop ebp
pop edi
xor eax, eax
pop esi
ret
Function at 0x48e300
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
dec byte [0x4e1e88]
push ebx
mov ecx, 2
push ebp
lea ecx, [ecx]
mov al, byte [0x4e1e88]
inc al
mov byte [0x4e1e88], al
movzx ebp, al
lea eax, [ecx - 2]
cdq
idiv esi
mov bl, byte [ebp + 0x4e1e8a]
mov al, byte [0x4e1e89]
movzx edx, byte [edx + edi]
add dl, bl
add al, dl
mov byte [0x4e1e89], al
movzx eax, al
movzx edx, byte [eax + 0x4e1e8a]
mov byte [ebp + 0x4e1e8a], dl
movzx eax, byte [0x4e1e89]
mov byte [eax + 0x4e1e8a], bl
mov al, byte [0x4e1e88]
inc al
mov byte [0x4e1e88], al
movzx ebp, al
lea eax, [ecx - 1]
cdq
idiv esi
mov bl, byte [ebp + 0x4e1e8a]
mov al, byte [0x4e1e89]
movzx edx, byte [edx + edi]
add dl, bl
add al, dl
mov byte [0x4e1e89], al
movzx eax, al
movzx edx, byte [eax + 0x4e1e8a]
mov byte [ebp + 0x4e1e8a], dl
movzx eax, byte [0x4e1e89]
mov byte [eax + 0x4e1e8a], bl
mov al, byte [0x4e1e88]
inc al
mov byte [0x4e1e88], al
movzx ebp, al
mov eax, ecx
cdq
idiv esi
mov bl, byte [ebp + 0x4e1e8a]
mov al, byte [0x4e1e89]
movzx edx, byte [edx + edi]
add dl, bl
add al, dl
mov byte [0x4e1e89], al
movzx eax, al
movzx edx, byte [eax + 0x4e1e8a]
mov byte [ebp + 0x4e1e8a], dl
movzx eax, byte [0x4e1e89]
mov byte [eax + 0x4e1e8a], bl
mov al, byte [0x4e1e88]
inc al
mov byte [0x4e1e88], al
movzx ebp, al
lea eax, [ecx + 1]
cdq
idiv esi
mov bl, byte [ebp + 0x4e1e8a]
mov al, byte [0x4e1e89]
add ecx, 4
movzx edx, byte [edx + edi]
add dl, bl
add al, dl
mov byte [0x4e1e89], al
movzx eax, al
movzx edx, byte [eax + 0x4e1e8a]
mov byte [ebp + 0x4e1e8a], dl
movzx eax, byte [0x4e1e89]
lea edx, [ecx - 2]
mov byte [eax + 0x4e1e8a], bl
cmp edx, 0x100
jl 0x48e310
mov al, byte [0x4e1e88]
pop ebp
mov byte [0x4e1e89], al
pop ebx
ret
Function at 0x491a40
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
xor ebp, ebp
cmp esi, ebp
je 0x491a5a
test byte [esi + 0x1c], 0x10
je 0x491a5a
mov ebx, esi
jmp 0x491a5c
xor ebx, ebx
or eax, 0xffffffff
mov dword [esp + 0xc], eax
cmp esi, ebp
je 0x491be9
mov eax, dword [esi + 0x18]
cmp eax, ebp
je 0x491a7c
push eax
push ebp
call fcn.0048bb60
add esp, 8
test byte [ebx + 0x50], 1
je 0x491ad7
push 0x4df274
push 0x4df28c
push 0xb9
push 0x4df2a8
push 0x4df2b8
push 0xdeaddead
call fcn.0048af30
add esp, 0x18
push str.evbuffer_launch_write
push str._buf_o__read_in_progress
push 0xb9
push 0x4df310
push 0x4df320
call fcn.00415545
add eax, 0x40
push eax
call fcn.004a5a65
add esp, 0x18
call fcn.00424e4e
test byte [esi + 0x1c], 2
jne 0x491bd3
test byte [ebx + 0x50], 2
jne 0x491bd3
mov eax, dword [esi + 0xc]
cmp eax, ebp
jne 0x491afb
mov dword [esp + 0xc], ebp
jmp 0x491bd3
mov ecx, dword [esp + 0x1c]
cmp ecx, ebp
jl 0x491b07
cmp ecx, eax
jbe 0x491b0b
mov dword [esp + 0x1c], eax
push edi
push 1
push esi
call fcn.00482790
push 0x80
lea edi, [ebx + 0x5c]
push ebp
push edi
mov dword [ebx + 0x54], ebp
mov dword [ebx + 0x58], ebp
call fcn.0040c970
mov esi, dword [esi]
add esp, 0x14
mov dword [ebx + 0x54], esi
test esi, esi
je 0x491b6d
mov eax, dword [esi + 0x14]
add eax, dword [esi + 8]
push 0x20
push esi
mov dword [edi + 4], eax
call fcn.0047f3f0
mov eax, dword [esp + 0x28]
add esp, 8
inc ebp
cmp eax, dword [esi + 0xc]
jbe 0x491b6b
mov ecx, dword [esi + 0xc]
mov dword [edi], ecx
sub eax, dword [esi + 0xc]
mov esi, dword [esi]
add edi, 8
mov dword [esp + 0x20], eax
cmp ebp, 0x10
jl 0x491b31
jmp 0x491b6d
mov dword [edi], eax
mov esi, dword [esp + 0x1c]
push esi
mov dword [ebx + 0x58], ebp
call fcn.0047f5c0
mov edx, dword [esp + 0x28]
mov ecx, dword [ebx + 0x4c]
add esp, 4
push 0
push edx
push 0
lea eax, [esp + 0x20]
push eax
push ebp
lea eax, [ebx + 0x5c]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSASend]
pop edi
test eax, eax
je 0x491bc7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x491bc7
push 0x20
push ebx
call fcn.004916e0
push 1
push esi
call fcn.004827d0
push esi
call fcn.0047fa90
add esp, 0x14
jmp 0x491bd3
or dword [ebx + 0x50], 2
mov dword [esp + 0xc], 0
mov esi, dword [esi + 0x18]
test esi, esi
je 0x491be5
push esi
push 0
call fcn.0048bb70
add esp, 8
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x491bf0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x9c
mov eax, dword [0x4d4430]
xor eax, esp
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0xa8]
push ebx
mov ebx, dword [esp + 0xa4]
push ebp
xor ebp, ebp
push edi
mov dword [esp + 0x14], eax
cmp ebx, ebp
je 0x491c29
test byte [ebx + 0x1c], 0x10
je 0x491c29
mov edi, ebx
jmp 0x491c2b
xor edi, edi
or eax, 0xffffffff
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], ebp
cmp edi, ebp
je 0x491e38
mov eax, dword [ebx + 0x18]
cmp eax, ebp
je 0x491c4f
push eax
push ebp
call fcn.0048bb60
add esp, 8
test byte [edi + 0x50], 2
je 0x491caa
push 0x4df344
push 0x4df35c
push 0x103
push 0x4df378
push 0x4df388
push 0xdeaddead
call fcn.0048af30
add esp, 0x18
push 0x4df3ac
push str._buf_o__write_in_progress
push 0x103
push 0x4df3e0
push 0x4df3f0
call fcn.00415545
add eax, 0x40
push eax
call fcn.004a5a65
add esp, 0x18
call fcn.00424e4e
test byte [ebx + 0x1c], 4
jne 0x491e22
test byte [edi + 0x50], 1
jne 0x491e22
push esi
push 0x80
lea esi, [edi + 0x5c]
push ebp
push esi
mov dword [edi + 0x54], ebp
mov dword [edi + 0x58], ebp
call fcn.0040c970
mov ebp, dword [esp + 0xc0]
push 0x10
push ebp
push ebx
call fcn.00481550
add esp, 0x18
cmp eax, 0xffffffff
je 0x491e21
push 0
push ebx
call fcn.00482790
push 1
lea ecx, [esp + 0x2c]
push ecx
push 0x10
lea edx, [esp + 0x3c]
push edx
push ebp
push ebx
call fcn.00481a30
mov ebp, eax
add esp, 0x20
xor eax, eax
test ebp, ebp
jle 0x491d35
mov ecx, esi
lea ebx, [ebx]
mov edx, dword [esp + eax*8 + 0x28]
mov dword [ecx + 4], edx
mov edx, dword [esp + eax*8 + 0x2c]
mov dword [ecx], edx
inc eax
add ecx, 8
cmp eax, ebp
jl 0x491d20
mov eax, dword [esp + 0x20]
mov dword [edi + 0x58], ebp
mov esi, dword [eax]
mov dword [edi + 0x54], esi
mov dword [esp + 0x10], 0
test esi, esi
je 0x491d65
lea ecx, [ecx]
push 0x10
push esi
call fcn.0047f3f0
mov esi, dword [esi]
inc dword [esp + 0x18]
add esp, 8
test esi, esi
jne 0x491d50
cmp dword [esp + 0x10], ebp
je 0x491dc0
push 0x4df414
push 0x4df42c
push 0x11f
push 0x4df43c
push 0x4df44c
push 0xdeaddead
call fcn.0048af30
add esp, 0x18
push str.evbuffer_launch_read
push str.npin__nvecs
push 0x11f
push str.buffer_iocp.c
push str._s:_d:_Assertion__s_failed_in__s
call fcn.00415545
add eax, 0x40
push eax
call fcn.004a5a65
add esp, 0x18
call fcn.00424e4e
push ebx
call fcn.0047f5c0
mov ecx, dword [esp + 0x1c]
add esp, 4
push 0
push ecx
mov ecx, dword [edi + 0x4c]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x30]
push eax
push ebp
lea eax, [edi + 0x5c]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x491e15
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x491e15
push 0x10
push edi
call fcn.004916e0
push 0
push ebx
call fcn.004827d0
push ebx
call fcn.0047fa90
add esp, 0x14
jmp 0x491e21
or dword [edi + 0x50], 1
mov dword [esp + 0x14], 0
pop esi
mov ebx, dword [ebx + 0x18]
test ebx, ebx
je 0x491e34
push ebx
push 0
call fcn.0048bb70
add esp, 8
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xa4]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040c660
add esp, 0x9c
ret