joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e91e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x1a0]
test eax, eax
je 0x40e945
push dword [ecx + 0x12c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ecx
call eax
add esp, 0x14
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
jl 0x40e980
cmp eax, 2
jg 0x40e980
push esi
lea esi, [ecx + 0x128]
push edi
mov edi, dword [sym.imp.MSVCRT.dll_fwrite]
push dword [esi]
lea eax, [eax + eax*2 + 0x421368]
push 1
push 2
push eax
call edi
push dword [esi]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call edi
add esp, 0x20
pop edi
pop esi
xor eax, eax
pop ebp
ret

Function at 0x40fe4d
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp dword [esi + 0x8c], 2
mov ebx, dword [esi]
je 0x40ff8a
cmp dword [esi + 0x2a8], 0
jne 0x40ff83
cmp dword [esi + 0x310], 0
jne 0x40ff83
lea eax, [ebp + 8]
mov edi, 0x80
push eax
lea eax, [ebp - 0x100]
push eax
mov dword [ebp + 8], edi
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x40fec0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.00412dfe
push eax
push edi
push str.getpeername___failed_with_errno__d:__s
jmp 0x40ff78
push edi
lea eax, [ebp - 0x80]
push 0
push eax
mov dword [ebp + 8], edi
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x80]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x40feff
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.00412dfe
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
jmp 0x40ff78
lea eax, [esi + 0xfc]
lea edi, [esi + 0xcc]
push eax
lea eax, [ebp - 0x100]
push edi
push eax
call fcn.0040ff8f
add esp, 0xc
test eax, eax
jne 0x40ff38
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push esi
call fcn.00412dfe
push eax
push edi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
jmp 0x40ff78
push 0x2e
lea eax, [esi + 0x58]
push edi
push eax
call sub.MSVCRT.dll_memcpy
lea eax, [esi + 0x130]
push eax
lea eax, [esi + 0x100]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.0040ff8f
add esp, 0x18
test eax, eax
jne 0x40ff83
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push esi
call fcn.00412dfe
push eax
push edi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.0040e1fd
add esp, 0x18
jmp 0x40ff8a
push esi
call fcn.0040fdfb
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4103e2
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
push 1
pop eax
lea ecx, [ebp + 8]
mov esi, dword [edi]
push 4
push ecx
push eax
push 6
mov dword [ebp + 8], eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x410426
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00412dfe
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0040e1a7
add esp, 0x14
jmp 0x410433
push str.TCP_NODELAY_set_n
push esi
call fcn.0040e1a7
pop ecx
pop ecx
pop edi
pop esi
pop ebp
ret

Function at 0x410437
Capabilities:
Check os version
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
push esi
push edi
xor eax, eax
push 2
cmp dword [0x429d38], eax
mov dword [ebp - 4], 0x4020
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 4
pop edi
jne 0x4104a6
mov esi, 0x94
push esi
push eax
lea eax, [ebp - 0xa0]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa0], esi
mov dword [0x429d38], 1
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4104a6
cmp dword [ebp - 0x9c], 6
jb 0x4104a6
mov dword [0x429d38], edi
cmp dword [0x429d38], edi
je 0x4104e8
lea eax, [ebp - 0xc]
mov edi, 0x1001
push eax
lea eax, [ebp - 8]
push eax
mov esi, 0xffff
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x4104d7
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jg 0x4104e8
lea eax, [ebp - 4]
push 4
push eax
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
pop edi
pop esi
leave
ret
Function at 0x41073c
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
xor eax, eax
cmp dword [esi + 0x474], edi
mov ebx, dword [ebp + 0xc]
push 4
setne al
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 8
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x410784
push ebx
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.0040e1a7
add esp, 0xc
jmp 0x4107ef
push dword [esi + 0x478]
mov dword [ebp - 0xc], 1
call fcn.00415bf4
imul eax, eax, 0x3e8
push dword [esi + 0x47c]
mov dword [ebp + 8], eax
mov dword [ebp - 8], eax
call fcn.00415bf4
imul eax, eax, 0x3e8
pop ecx
mov dword [ebp + 8], eax
pop ecx
mov dword [ebp - 4], eax
push edi
lea eax, [ebp + 0xc]
push edi
push eax
push edi
push edi
lea eax, [ebp - 0xc]
push 0xc
push eax
push 0x98000004
push ebx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x4107ef
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push ebx
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.0040e1a7
add esp, 0x10
pop edi
pop esi
pop ebx
leave
ret
Function at 0x411d1a
Capabilities:
Create thread

Disassembly:
push 0
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x411d3c
cmp eax, 0xffffffff
jne 0x411d3e
xor eax, eax
ret

Function at 0x411f33
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
cmp dword [0x429d44], 0
mov dword [ebp - 0x1c], str.getaddrinfo
mov dword [ebp - 0x18], 0x4120f6
mov dword [ebp - 0x14], str.getnameinfo
mov dword [ebp - 0x10], 0x412628
mov dword [ebp - 0xc], str.freeaddrinfo
mov dword [ebp - 8], fcn.004120ba
je 0x411f7f
movzx eax, word [ebp + 8]
mov eax, dword [eax*8 + 0x424c5c]
jmp 0x4120b6
push ebx
push esi
push edi
lea eax, [ebp - 0x230]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x41209e
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x128]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x128]
push str.ws2_32
push eax
call sub.MSVCRT.dll_strcat
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x10
lea eax, [ebp - 0x128]
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x411ff7
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x411ff3
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
test esi, esi
jne 0x412046
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x128]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x128]
push str.wship6
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x128]
push eax
call edi
mov esi, eax
test esi, esi
je 0x41209e
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x412042
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
test esi, esi
je 0x41209e
and dword [ebp - 4], 0
cmp dword [0x4213e8], 0
jle 0x41207e
lea edi, [ebp - 0x18]
push dword [edi - 4]
push esi
call ebx
test eax, eax
mov dword [edi], eax
je 0x412075
inc dword [ebp - 4]
add edi, 8
mov eax, dword [ebp - 4]
cmp eax, dword [0x4213e8]
jl 0x412056
jmp 0x41207e
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
test esi, esi
je 0x41209e
mov ecx, dword [0x4213e8]
xor eax, eax
test ecx, ecx
jle 0x41209e
mov edx, dword [ebp + eax*8 - 0x18]
mov dword [eax*8 + 0x424c5c], edx
inc eax
cmp eax, ecx
jl 0x41208e
movzx eax, word [ebp + 8]
pop edi
pop esi
mov eax, dword [eax*8 + 0x424c5c]
mov dword [0x429d44], 1
pop ebx
leave
ret 4
Function at 0x412541
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1c]
push dword [ebp + 8]
and dword [edi], 0
and byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x4125bb
cmp word [ebx + 8], 2
jne 0x41259c
cmp word [ebx + 0xa], 4
jne 0x41259c
mov esi, dword [ebx + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x41259c
push dword [eax]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004123da
test eax, eax
mov dword [edi], eax
je 0x412597
lea edi, [eax + 0x1c]
add esi, 4
jmp 0x412573
push 8
pop eax
jmp 0x4125e1
mov esi, dword [ebp + 0x18]
push 0x400
push dword [ebx]
push esi
call dword [sym.imp.MSVCRT.dll_strncpy]
and byte [esi + 0x400], 0
add esp, 0xc
xor eax, eax
jmp 0x4125e1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov eax, 0x2af9
sub ecx, eax
je 0x4125e1
dec ecx
je 0x4125dc
dec ecx
je 0x4125d5
dec ecx
jmp 0x4125e1
mov eax, 0x2afb
jmp 0x4125e1
mov eax, 0x2afa
pop edi
pop esi
pop ebx
pop ebp
ret 0x18

Function at 0x415fb4
Capabilities:
Get common file path

Disassembly:
push ecx
and dword [esp], 0
push esi
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
je 0x4160b1
push ebx
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.LoadLibraryExA
push esi
call edi
mov ebp, dword [esp + 0x18]
push 0x427650
push ebp
mov ebx, eax
call dword [sym.imp.MSVCRT.dll_strpbrk]
pop ecx
test eax, eax
pop ecx
je 0x416016
test ebx, ebx
je 0x41600d
push 8
push 0
push ebp
call ebx
mov dword [esp + 0x10], eax
jmp 0x4160aa
push ebp
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x416004
test ebx, ebx
je 0x41602d
push str.AddDllDirectory
push esi
call edi
test eax, eax
je 0x41602d
push 0x800
jmp 0x415fff
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, eax
test edi, edi
je 0x4160aa
push ebp
call sub.MSVCRT.dll_strlen
lea eax, [eax + edi + 1]
push eax
call dword [0x4236dc]
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x4160aa
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4160aa
push 0x42327c
push esi
call sub.MSVCRT.dll_strlen
pop ecx
add eax, esi
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push ebp
push esi
call sub.MSVCRT.dll_strlen
pop ecx
add eax, esi
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
test ebx, ebx
pop ecx
je 0x416097
push 8
push 0
push esi
call ebx
jmp 0x41609e
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
mov dword [esp + 0x14], eax
call dword [0x4236e0]
pop ecx
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret
Function at 0xeb2260
Capabilities:
Hash data using djb2

Disassembly:
push ebx
push edi
push esi
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0xeb229a
mov edx, dword [esp + 0x10]
mov edi, 0x1505
xor esi, esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [edx + esi]
test ebx, ebx
je 0xeb22a1
mov eax, edi
shl eax, 5
add eax, edi
add eax, ebx
inc esi
mov edi, eax
cmp ecx, esi
jne 0xeb2280
jmp 0xeb22a3
mov eax, 0x1505
jmp 0xeb22a3
mov eax, edi
pop esi
pop edi
pop ebx
ret

Function at 0xeb2990
Capabilities:
Compute adler32 checksum
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0xeb2b56
mov ebp, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
movzx edi, cx
shr ecx, 0x10
test ebp, ebp
je 0xeb2b4f
mov edx, 0x5e6ea9af
mov eax, ebp
mul edx
shr edx, 0xb
imul eax, edx, 0x15b0
mov edx, ebp
sub edx, eax
jmp 0xeb2a33
mov edx, dword [esp]
mov eax, edx
sub eax, dword [esp + 4]
add ebx, eax
mov ebp, edx
not ebp
mov esi, dword [esp + 0xc]
and ebp, esi
not esi
mov eax, ecx
mov edx, 0x80078071
mul edx
and esi, dword [esp]
shr edx, 0xf
imul eax, edx, 0xfff1
mov dword [esp], eax
mov eax, edi
mov edx, 0x80078071
mul edx
sub ecx, dword [esp]
shr edx, 0xf
imul eax, edx, 0xfff1
sub edi, eax
mov edx, 0x15b0
sub ebp, esi
je 0xeb2b4f
xor eax, eax
cmp edx, 8
mov dword [esp], edx
jb 0xeb2ab4
and edx, 0x1ff8
mov dword [esp + 4], edx
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
mov edx, eax
add eax, 8
movzx esi, byte [ebx + edx]
add esi, edi
add ecx, esi
movzx edi, byte [ebx + edx + 1]
add edi, esi
add ecx, edi
movzx esi, byte [ebx + edx + 2]
add esi, edi
add ecx, esi
movzx edi, byte [ebx + edx + 3]
add edi, esi
add ecx, edi
movzx esi, byte [ebx + edx + 4]
add esi, edi
add ecx, esi
movzx edi, byte [ebx + edx + 5]
add edi, esi
add ecx, edi
movzx esi, byte [ebx + edx + 6]
add esi, edi
add ecx, esi
movzx edi, byte [ebx + edx + 7]
add edi, esi
mov esi, ecx
xor esi, edi
and ecx, edi
lea ecx, [esi + ecx*2]
add edx, 0xf
cmp edx, dword [esp]
mov edx, dword [esp]
jb 0xeb2a50
add ebx, eax
mov eax, dword [esp + 4]
mov dword [esp + 0xc], ebp
mov esi, eax
sub esi, edx
jae 0xeb29eb
mov ebp, edx
and ebp, 3
mov dword [esp + 4], eax
je 0xeb2b02
mov dword [esp + 8], esi
neg ebp
xor eax, eax
mov edx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [edx]
inc edx
add edi, esi
add ecx, edi
dec eax
cmp ebp, eax
jne 0xeb2ae0
mov ebp, dword [esp + 4]
sub ebp, eax
mov esi, dword [esp + 8]
cmp esi, 0xfffffffc
ja 0xeb29e0
jmp 0xeb2b0f
mov ebp, eax
mov edx, ebx
cmp esi, 0xfffffffc
ja 0xeb29e0
mov eax, dword [esp]
sub eax, ebp
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [edx + ebp]
add esi, edi
add ecx, esi
movzx edi, byte [edx + ebp + 1]
add edi, esi
add ecx, edi
movzx esi, byte [edx + ebp + 2]
add esi, edi
add ecx, esi
movzx edi, byte [edx + ebp + 3]
add edi, esi
add ecx, edi
add ebp, 4
cmp eax, ebp
jne 0xeb2b20
jmp 0xeb29e0
shl ecx, 0x10
or ecx, edi
jmp 0xeb2b5b
mov ecx, 1
mov eax, ecx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0xeb2b70
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0xeb2bc8
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
test edx, edx
je 0xeb2bca
not eax
xor esi, esi
nop
nop
nop
nop
movzx ebx, byte [ecx + esi]
mov edi, eax
shr edi, 4
xor eax, ebx
and eax, 0xf
xor edi, dword [eax*4 + 0xeef80c]
mov eax, edi
shr eax, 4
shr ebx, 4
mov ebp, ebx
and ebp, edi
and edi, 0xf
or edi, ebx
xor edi, ebp
xor eax, dword [edi*4 + 0xeef80c]
inc esi
cmp edx, esi
jne 0xeb2b90
not eax
jmp 0xeb2bca
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0xeb7c40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0xeb7c5b
mov ebx, dword [esp + 0x18]
cmp eax, 1
jne 0xeb7c63
mov word [ebx], 1
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
movzx ecx, word [ebx + 4]
add word [ebx], cx
cmp eax, 3
jl 0xeb7cfb
mov edx, 2
mov ecx, 2
sub ecx, eax
mov dword [esp], ecx
xor edi, edi
mov ebx, 1
jmp 0xeb7ca9
movzx ebp, word [esi + edi*4]
add word [esi + ebx*4], bp
mov word [esi + edi*4], bx
inc edi
mov ecx, dword [esp]
add ecx, ebx
inc ecx
inc ebx
cmp ecx, 1
je 0xeb7d0a
mov esi, dword [esp + 0x18]
movzx ecx, word [esi + edi*4]
cmp edx, eax
jge 0xeb7cbe
movzx ebp, word [esi + edx*4]
cmp cx, bp
jae 0xeb7cd0
mov word [esi + ebx*4], cx
mov word [esi + edi*4], bx
inc edi
cmp edx, eax
jge 0xeb7c90
jmp 0xeb7cd9
inc edx
mov word [esi + ebx*4], bp
cmp edx, eax
jge 0xeb7c90
cmp edi, ebx
jge 0xeb7cf0
movzx ebp, word [esi + edi*4]
movzx ecx, word [esi + edx*4]
cmp bp, cx
jb 0xeb7c94
jmp 0xeb7cf4
movzx ecx, word [esi + edx*4]
inc edx
add word [esi + ebx*4], cx
jmp 0xeb7c9d
lea edx, [eax - 2]
mov word [ebx + eax*4 - 8], 0
jmp 0xeb7d92
lea edx, [eax - 2]
mov ebx, dword [esp + 0x18]
mov word [ebx + eax*4 - 8], 0
cmp eax, 3
jl 0xeb7d92
lea edi, [eax - 3]
mov ebp, ebx
mov ebx, eax
and ebx, 3
xor ebx, 2
mov esi, edi
je 0xeb7d44
mov esi, edi
movzx ecx, word [ebp + esi*4]
movzx ecx, word [ebp + ecx*4]
inc ecx
mov word [ebp + esi*4], cx
dec esi
dec ebx
jne 0xeb7d30
mov ebx, dword [esp + 0x18]
cmp edi, 3
jb 0xeb7d92
nop
nop
nop
movzx ecx, word [ebx + esi*4]
movzx ecx, word [ebx + ecx*4]
inc ecx
mov word [ebx + esi*4], cx
movzx ecx, word [ebx + esi*4 - 4]
movzx ecx, word [ebx + ecx*4]
inc ecx
mov word [ebx + esi*4 - 4], cx
movzx ecx, word [ebx + esi*4 - 8]
movzx ecx, word [ebx + ecx*4]
inc ecx
mov word [ebx + esi*4 - 8], cx
movzx ecx, word [ebx + esi*4 - 0xc]
movzx ecx, word [ebx + ecx*4]
inc ecx
mov word [ebx + esi*4 - 0xc], cx
add esi, 0xfffffffc
cmp esi, 0xffffffff
jne 0xeb7d50
dec eax
mov ecx, 1
xor esi, esi
jmp 0xeb7dac
lea ecx, [edi + edi]
inc esi
test edi, edi
je 0xeb7c5b
test edx, edx
mov dword [esp], ecx
js 0xeb7de0
lea edi, [edx + 1]
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, word [ebx + edx*4]
cmp esi, ecx
jne 0xeb7df0
inc ebp
dec edx
cmp edi, ebp
jne 0xeb7dc0
mov edx, 0xffffffff
jmp 0xeb7df2
xor edi, edi
jmp 0xeb7df5
mov edi, ebp
mov ecx, dword [esp]
mov ebp, ecx
sub ebp, edi
jle 0xeb7da0
and ebp, 3
je 0xeb7e28
lea ecx, [ebx + eax*4]
xor ebx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [ecx], si
inc ebx
add ecx, 0xfffffffc
cmp ebp, ebx
jne 0xeb7e10
mov ebp, dword [esp]
sub ebp, ebx
sub eax, ebx
mov ebx, dword [esp + 0x18]
jmp 0xeb7e2a
mov ebp, ecx
mov ecx, edi
sub ecx, dword [esp]
cmp ecx, 0xfffffffc
ja 0xeb7da0
nop
nop
nop
nop
nop
nop
nop
nop
mov word [ebx + eax*4], si
mov word [ebx + eax*4 - 4], si
mov word [ebx + eax*4 - 8], si
mov word [ebx + eax*4 - 0xc], si
add eax, 0xfffffffc
add ebp, 0xfffffffc
cmp ebp, edi
jg 0xeb7e40
jmp 0xeb7da0
Function at 0xeb8990
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push edi
push esi
mov eax, dword [ecx]
cmp eax, 0x270
jne 0xeb89f5
mov esi, dword [ecx + 4]
mov eax, 0xfffff640
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
and esi, 0x80000000
mov edi, dword [ecx + eax + 0x9c8]
mov edx, edi
and edx, 0x7ffffffe
or edx, esi
mov esi, edi
and edi, 1
neg edi
and edi, 0x9908b0df
xor edi, dword [ecx + eax + 0xff8]
shr edx, 1
xor edi, edx
mov dword [ecx + eax + 0x1384], edi
add eax, 4
jne 0xeb89b0
mov eax, 0x270
jmp 0xeb8acf
cmp eax, 0x4e0
jb 0xeb8acf
mov esi, dword [ecx + 0x9c4]
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
and esi, 0x80000000
mov edi, dword [ecx + eax*4 + 0x9c8]
mov edx, edi
and edx, 0x7ffffffe
or edx, esi
shr edx, 1
mov esi, edi
and edi, 1
neg edi
and edi, 0x9908b0df
xor edi, dword [ecx + eax*4 + 0xff8]
xor edi, edx
mov dword [ecx + eax*4 + 4], edi
inc eax
cmp eax, 0xe3
jne 0xeb8a10
mov esi, dword [ecx + 0xd50]
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
and esi, 0x80000000
mov edi, dword [ecx + eax*4 + 0xd54]
mov edx, edi
and edx, 0x7ffffffe
or edx, esi
shr edx, 1
mov esi, edi
and edi, 1
neg edi
and edi, 0x9908b0df
xor edi, dword [ecx + eax*4 + 4]
xor edi, edx
mov dword [ecx + eax*4 + 0x390], edi
inc eax
cmp eax, 0x18c
jne 0xeb8a60
mov eax, dword [ecx + 4]
mov esi, eax
and esi, 0x7ffffffe
mov edx, 0x80000000
and edx, dword [ecx + 0x1380]
or edx, esi
and eax, 1
neg eax
and eax, 0x9908b0df
xor eax, dword [ecx + 0x634]
shr edx, 1
xor eax, edx
mov dword [ecx + 0x9c0], eax
xor eax, eax
lea edx, [eax + 1]
mov dword [ecx], edx
mov eax, dword [ecx + eax*4 + 4]
mov edx, eax
shr edx, 0xb
and edx, dword [ecx + 0x1384]
xor edx, eax
mov eax, edx
shl eax, 7
and eax, 0x9d2c5680
xor eax, edx
mov ecx, eax
shl ecx, 0xf
and ecx, 0xefc60000
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
pop esi
pop edi
ret
Function at 0xecb020
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x1a0
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x20], 0xbf14bd53
mov dword [esp + 0x24], 0x832d8133
mov dword [esp + 0x28], 0x8786852a
mov eax, 0xff5cd55c
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax + 0xa32ac4]
xor ecx, eax
mov edx, ecx
not edx
and edx, 0xe5
and ecx, 0x1a
sub ecx, edx
add cl, 5
mov byte [esp + eax + 0xa32ac4], cl
inc eax
cmp eax, 0xff5cd568
jne 0xecb060
mov dword [esp + 0x48], 0x61f47fd6
mov dword [esp + 0x4c], 0x65f463f6
mov dword [esp + 0x50], 0x698767bc
mov dword [esp + 0x54], 0x6dc06b85
mov dword [esp + 0x58], 0x51f36fc1
mov dword [esp + 0x5c], 0x55f853f3
mov dword [esp + 0x60], 0x59f757fe
mov dword [esp + 0x64], 0x5dc85bc9
mov dword [esp + 0x68], 0x41405f84
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, eax
add cl, 0xe
xor cl, byte [esp + eax + 0x48]
add cl, 0x90
mov byte [esp + eax + 0x48], cl
inc eax
cmp eax, 0x24
jne 0xecb0e0
movzx ecx, word [esp + 0x48]
lea eax, [esp + 0x15c]
test cx, cx
je 0xecb121
lea edx, [esp + 0x4a]
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0xecb110
mov word [eax], 0
movzx ecx, word [edi]
test cx, cx
je 0xecb151
lea edx, [edi + 2]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0xecb140
mov word [eax], 0
movzx ecx, word [esp + 0x20]
test cx, cx
je 0xecb181
lea edx, [esp + 0x22]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0xecb170
mov word [eax], 0
mov eax, dword [esi]
mov dword [esp + 4], eax
mov dword [esp + 0x48], 0x6f6c6c82
mov byte [esp + 0x4c], 0x8c
mov eax, 0xc8
mov ecx, 0xf6d85a37
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + eax - 0x80]
mov edi, eax
xor edi, ecx
and edi, edx
xor edi, ecx
mov edx, 0xbe
sub edx, edi
lea esi, [edi + 0x493d2e41]
or esi, 1
sub esi, edi
lea ebx, [esi - 0x493d2e41]
neg esi
and esi, 2
mov edi, ebx
and edi, 0xfd
imul edi, esi
mov esi, ebx
and esi, 2
or ebx, 2
imul ebx, esi
xor edx, 1
add edx, edi
add edx, ebx
mov byte [esp + eax - 0x80], dl
inc eax
dec ecx
cmp eax, 0xcd
jne 0xecb1b0
movzx eax, byte [esp + 0x48]
test al, al
je 0xecb22d
lea ecx, [esp + 0x49]
mov edi, dword [esp + 4]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [edi], al
inc edi
movzx eax, byte [ecx]
inc ecx
test al, al
jne 0xecb220
jmp 0xecb231
mov edi, dword [esp + 4]
mov byte [edi], 0
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x150]
lea edx, [esp + 0x38]
lea esi, [esp + 0x15c]
push eax
push ecx
push edx
push esi
call fcn.00ebae40
add esp, 0x10
movzx eax, al
mov eax, dword [eax*4 + 0xef3794]
mov ecx, 0xae6ce794
xor ecx, dword [0xef379c]
add eax, ecx
inc eax
jmp eax