joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427818
Capabilities:
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x270
mov word [ecx + 0x12c], 2
mov word [ecx + 0x12e], 0
mov dword [ecx + 0x130], 0x100007f
mov esi, dword [ebp + 8]
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
push edi
push edi
lea edi, [ebx + 0x12c]
push 4
mov dword [ebx + 0x104], eax
push 0x42a4a4
mov dword [ebx + 0x128], 0x10
push 4
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
push eax
push eax
push 0x10
push edi
push dword [ebx + 0x104]
call dword [sym.imp.WS2_32.dll_bind]
add esp, 0x14
test eax, eax
jns 0x4278b4
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
sub esp, 0xc
push eax
call fcn.0040376b
mov edi, eax
call esi
push edi
push eax
push str.FCGI_bind_error__d__s_r_n
jmp 0x42791e
lea eax, [ebp - 0x260]
mov dword [ebp - 0x260], 0x10
push ecx
push eax
push edi
push dword [ebx + 0x104]
call dword [sym.imp.WS2_32.dll_getsockname]
movzx eax, word [ebx + 0x12e]
xchg al, ah
push eax
push str.FCGI_bind_ok._port__u_r_n
push 0x45c2c0
call fcn.0040418c
pop edi
pop eax
push 1
push dword [ebx + 0x104]
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
pop edx
pop ecx
jns 0x427930
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
sub esp, 0xc
push eax
call fcn.0040376b
mov edi, eax
call esi
push edi
push eax
push str.FCGI_listen_error__d__s_r_n
push 0x45c2c0
call fcn.0040418c
add esp, 0x20
jmp 0x4279f6
push eax
lea eax, [ebx + 4]
push 0x100
push esi
push eax
call fcn.00428fcc
lea edx, [ebp - 0x25c]
add esp, 0xc
push 0x44
push 0
push edx
mov dword [ebp - 0x26c], edx
call fcn.00428f38
mov eax, dword [ebx + 0x104]
mov edi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 0x25c], 0x44
mov dword [ebp - 0x230], 0x181
mov word [ebp - 0x22c], 0
mov dword [esp], 0xfffffff5
mov dword [ebp - 0x224], eax
call edi
mov dword [ebp - 0x220], eax
push 0xfffffffffffffff4
call edi
lea edi, [ebp - 0x218]
push edx
push edx
push 0x200
push esi
push edi
mov dword [ebp - 0x21c], eax
call fcn.00428fcc
add esp, 0x18
push 0x5c
push edi
call fcn.00403472
add esp, 0x10
test eax, eax
mov edx, dword [ebp - 0x26c]
je 0x4279d0
mov byte [eax], 0
lea eax, [ebx + 0x10c]
sub esp, 0xc
push eax
push edx
push edi
push str.SFCGI
push esi
call fcn.004077d6
add esp, 0x20
xor edx, edx
test eax, eax
mov dword [ebx + 0x108], eax
jne 0x427a0b
sub esp, 0xc
push dword [ebx + 0x104]
call dword [sym.imp.WS2_32.dll_closesocket]
or edx, 0xffffffff
add esp, 0xc
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret 4
Function at 0x427a18
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov ebx, dword [ebp + 8]
mov esi, ecx
push eax
add esi, 0x12c
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebx], eax
push edx
push edx
push 4
push 0x42a4a4
push 4
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
push ecx
push ecx
push dword [esi - 4]
push esi
push dword [ebx]
call dword [sym.imp.WS2_32.dll_connect]
xor edx, edx
add esp, 0x14
test eax, eax
jns 0x427a7c
sub esp, 0xc
push dword [ebx]
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebx], 0
add esp, 0xc
or edx, 0xffffffff
lea esp, [ebp - 8]
mov eax, edx
pop ebx
pop esi
pop ebp
ret 4

Function at 0x427aae
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea edx, [ebp - 0x20]
mov ebx, ecx
sub esp, 0x1c
mov esi, dword [ebp + 0xc]
push 8
push 0x442d28
push edx
call fcn.00428f18
mov eax, dword [ebp + 8]
mov byte [ebp - 0x1f], al
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x30]
mov word [ebp - 0x1e], ax
mov eax, esi
xchg al, ah
add esp, 0xc
mov word [ebp - 0x1c], ax
mov edi, dword [sym.imp.WS2_32.dll_send]
push 0
push 8
push edx
push dword [ebx]
call edi
mov edx, eax
or eax, 0xffffffff
cmp edx, 8
jne 0x427b10
xor eax, eax
test esi, esi
je 0x427b10
push 0
push esi
push dword [ebp + 0x10]
push dword [ebx]
call edi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc

Function at 0x427b1a
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov esi, ecx
lea edi, [ebp - 0x220]
sub esp, 0x22c
mov edx, dword [ebp + 8]
push edx
call fcn.00428f74
push dword [ebp + 0xc]
mov dword [ebp - 0x22c], eax
call fcn.00428f74
push 8
push 0x438180
mov ebx, eax
push edi
call fcn.00428f18
mov eax, dword [esi + 4]
add esp, 0x14
cmp ebx, 0x7e
mov eax, dword [eax + 0x30]
mov word [ebp - 0x21e], ax
mov al, byte [ebp - 0x22c]
mov byte [ebp - 0x218], al
mov eax, dword [ebp - 0x22c]
lea ecx, [eax + ebx]
jg 0x427bc6
lea eax, [ecx + 2]
mov dword [ebp - 0x22c], ecx
xchg al, ah
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x216]
push dword [ebp + 0xc]
push edx
push 0x442b9a
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [ebp - 0x22c]
push 0
mov byte [ebp - 0x217], bl
lea edx, [ecx + 0xa]
push edx
push edi
push dword [esi]
call dword [sym.imp.WS2_32.dll_send]
add esp, 0x10
jmp 0x427c26
lea eax, [ecx + 5]
xchg al, ah
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x213]
push dword [ebp + 0xc]
push edx
push 0x442b9f
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, ebx
xchg al, ah
rol eax, 0x10
xchg al, ah
mov dword [ebp - 0x217], eax
mov eax, dword [ebp - 0x22c]
push 0
or byte [ebp - 0x217], 0x80
add eax, 0xd
push eax
push edi
mov edi, dword [sym.imp.WS2_32.dll_send]
push dword [esi]
call edi
add esp, 0x10
test eax, eax
jle 0x427c26
push 0
push ebx
push dword [ebp + 0xc]
push dword [esi]
call edi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8
Function at 0x427c30
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x1c
push esi
push dword [ebx]
push 0x2710
push 0
call fcn.0040a5c0
add esp, 0x10
cmp eax, 0
jle 0x427e17
mov eax, dword [ebx + 8]
test al, 0x10
je 0x427c89
and eax, 0xffffffef
mov edx, 0x10000
push 0
mov dword [ebx + 8], eax
mov eax, dword [ebx + 0xc]
sub edx, eax
add eax, dword [ebp + 8]
push edx
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x427e1f
add eax, dword [ebx + 0xc]
jmp 0x427cc7
test al, 0x40
je 0x427cb5
push 0
push dword [ebx + 0x10]
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x427e1f
mov edi, dword [ebx + 0x10]
sub edi, eax
test edi, edi
mov dword [ebx + 0x10], edi
jg 0x427c3b
and dword [ebx + 8], 0xffffffbf
push 0
push 0x10000
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
mov esi, eax
jle 0x427e1f
mov ecx, dword [ebp + 8]
cmp esi, 8
jbe 0x427e03
mov edi, dword [ebx + 0xc]
test edi, edi
je 0x427cf6
mov eax, dword [ebx + 8]
test al, 0x20
je 0x427cf6
and eax, 0xffffffdf
mov dword [ebp - 0x1c], ecx
mov dword [ebx + 8], eax
jmp 0x427d53
movzx eax, word [ecx + 2]
cmp eax, dword [0x4657a8]
jle 0x427d1f
movzx edx, byte [ecx + 1]
push edx
push eax
push str.FCGI_Bad_Id_or_sinhronisation_error.__d__d
push 0x45c2c0
call fcn.0040418c
add esp, 0x10
jmp 0x427e1f
cmp byte [ecx + 1], 0xa
ja 0x427d02
movzx eax, word [ecx + 4]
xchg al, ah
movzx edx, byte [ecx + 6]
sub esi, 8
mov edi, eax
mov dword [ebx + 0x10], edx
lea edx, [ecx + 8]
mov dword [ebp - 0x1c], edx
mov dl, byte [ecx + 1]
cmp dl, 3
je 0x427e1f
jb 0x427db3
lea ecx, [edx - 6]
cmp cl, 1
ja 0x427db3
cmp edi, esi
jle 0x427d62
or dword [ebx + 8], 0x20
sub edi, esi
mov dword [ebx + 0xc], edi
mov edi, esi
test edi, edi
jle 0x427dce
mov ecx, dword [ebx + 4]
cmp dword [ecx + 0x44], 0
je 0x427d85
mov ecx, dword [ebx + 4]
push eax
push eax
push edi
push dword [ebp - 0x1c]
call fcn.004074fc
test eax, eax
pop edx
pop ecx
jg 0x427dce
jmp 0x427d9f
test byte [ecx + 0xc], 0x10
jne 0x427d6f
push eax
push eax
push 0x24
push str.HTTP_1.1_200_Ok_r_nConnection:_close_r_n
call fcn.004074fc
test eax, eax
pop edx
pop ecx
jg 0x427d6f
push eax
push 0x442bf2
mov ecx, ebx
push 0
push 2
call fcn.00427aae
pop edx
jmp 0x427e1f
sub esp, 0xc
push eax
movzx eax, dl
push esi
push eax
push str.Error._Unknow_FCGI_type:__X_left_d_j_d_r_n
push 0x45c2c0
call fcn.0040418c
add esp, 0x20
mov ecx, dword [ebp - 0x1c]
sub esi, edi
mov eax, dword [ebx + 0x10]
add ecx, edi
test esi, esi
jle 0x427cd4
test eax, eax
je 0x427cd4
cmp esi, eax
jl 0x427df5
sub esi, eax
add ecx, eax
jmp 0x427cd4
sub eax, esi
or dword [ebx + 8], 0x40
mov dword [ebx + 0x10], eax
jmp 0x427c3b
test esi, esi
je 0x427c3b
mov dword [ebx + 0xc], esi
or dword [ebx + 8], 0x10
jmp 0x427c3b
sete al
movzx eax, al
jmp 0x427e21
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4
Function at 0x428294
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
sub esp, 0x14
mov eax, dword [ecx + 0x104]
test eax, eax
jle 0x4282be
sub esp, 0xc
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebx + 0x104], 0
add esp, 0xc
cmp dword [ebx + 0x108], 0
jle 0x4282f6
push eax
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebx + 0x10c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0xc], 0x103
pop eax
pop edx
jne 0x4282f6
push edx
push edx
push 0
push dword [ebx + 0x10c]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop ecx
pop eax
push eax
push 0
push ebx
push 0x45c268
call fcn.00428265
add esp, 0x10
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x428e98
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
imul eax, edi
add eax, edx
cmp edx, eax
mov dword [ebp - 0x14], eax
jae 0x428fbb
mov eax, dword [ebp + 0x10]
lea eax, [edx + eax*4]
push ebx
push esi
mov dword [ebp + 0x14], eax
mov esi, 0xffc03fc0
mov eax, 0xff00ff
cmp edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
jae 0x428f9f
mov ebx, dword [ebp + 0x14]
sub ebx, edx
dec ebx
shr ebx, 3
lea ecx, [edx + 4]
inc ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ebx
mov edx, dword [ecx + edi]
mov edi, dword [edi + ecx - 4]
mov dword [ebp - 8], edi
shr edi, 2
and edi, esi
mov dword [ebp + 0x10], edx
mov edx, dword [ecx]
mov ecx, dword [ecx - 4]
mov ebx, ecx
shr ebx, 2
and ebx, esi
add ebx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ebx, edi
mov edi, edx
shr edi, 2
and edi, esi
lea ebx, [ebx + edi - 0x7fff80]
mov edi, dword [ebp - 8]
and edi, eax
mov esi, ecx
and esi, eax
add esi, edi
mov edi, dword [ebp + 0x10]
and edi, eax
add esi, edi
mov edi, edx
and edi, eax
lea esi, [esi + edi + 0x20002]
mov edi, dword [ebp - 8]
shr ecx, 2
shr esi, 2
xor ebx, esi
shr edi, 2
mov esi, 0x3fc03fc0
and ecx, esi
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x18]
shr edx, 2
and edx, esi
lea ecx, [ecx + edx + 0x800080]
and ebx, eax
xor ebx, ecx
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
mov dword [ecx], ebx
mov ecx, dword [ebp - 0xc]
add ecx, 8
dec dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov esi, 0xffc03fc0
jne 0x428ef1
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add dword [ebp + 8], ecx
lea ecx, [edi + edi]
add dword [ebp + 0x14], ecx
add edx, ecx
cmp edx, dword [ebp - 0x14]
mov dword [ebp + 0xc], edx
jb 0x428ecf
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret 0x18
Function at 0x44b353
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 0x34]
push edi
mov ebx, ecx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov edx, dword [ebp + 8]
mov edi, eax
mov eax, dword [edi + 0xc]
add eax, dword [edx]
xor ecx, ecx
test byte [ebx + 0x130], 1
mov dword [ebp - 8], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0xc], ecx
mov dword [ebp + 0xc], ecx
mov dword [ebp - 4], eax
jne 0x44b3b8
cmp dword [ebp + 0x10], ecx
je 0x44b3b8
push ecx
push ecx
call fcn.0058ad6b
push 0x30000
push 0
mov dword [ebx + 0x12c], eax
call fcn.0058ad6b
add esp, 0x10
or dword [ebx + 0x130], 1
xor edx, edx
cmp dword [esi + 0x38], edx
je 0x44b49a
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [edi + 0x10]
add ecx, eax
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + 0x14]
add ecx, eax
mov dword [ebp - 0x14], ecx
mov ecx, dword [edi + 0x18]
add ecx, eax
cmp word [esi + 0x4a], dx
mov dword [ebp - 0x10], ecx
mov dword [ebp + 0xc], edx
jbe 0x44b489
movzx eax, word [ebp + 0xc]
mov ecx, dword [esi + 0x30]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*8]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 8]
mov edx, dword [edx]
cmp edx, dword [ebx + 0x30]
jbe 0x44b476
mov eax, dword [eax + 8]
movzx edx, word [eax + 4]
sub edx, 0
je 0x44b454
dec edx
je 0x44b430
dec edx
jne 0x44b476
push 0xffffffffffffffff
lea edx, [ebp + 0x10]
push edx
movzx edx, word [eax + 8]
push eax
movzx eax, word [eax + 6]
shl eax, 5
add eax, dword [ebp - 0xc]
jmp 0x44b445
push 0xffffffffffffffff
lea edx, [ebp + 0x10]
push edx
movzx edx, word [eax + 8]
push eax
movzx eax, word [eax + 6]
shl eax, 5
add eax, dword [ebp - 0x10]
push dword [esi + 0x38]
push edx
push eax
push ecx
mov ecx, ebx
call fcn.0044a068
jmp 0x44b476
push 0xffffffffffffffff
lea edx, [ebp + 0x10]
push edx
movzx edx, word [eax + 8]
push eax
push dword [esi + 0x38]
movzx eax, word [eax + 6]
push edx
mov edx, dword [ebp - 0x14]
lea eax, [edx + eax*8]
push eax
push ecx
mov ecx, ebx
call fcn.0044a401
inc dword [ebp + 0xc]
mov ax, word [ebp + 0xc]
cmp ax, word [esi + 0x4a]
jb 0x44b3ed
xor edx, edx
mov eax, dword [edi + 0x10]
mov ecx, dword [ebp + 8]
add eax, dword [ecx]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 8]
mov dword [ebp + 0xc], eax
push dword [ebp - 4]
push dword [ebp - 4]
push dword [ebp - 4]
push edx
push dword [ebp + 0xc]
push edx
push dword [ebp - 8]
push dword [ebp - 8]
push dword [ebp - 8]
push edx
push dword [ebp - 0xc]
push edx
push dword [esi + 0x40]
push dword [esi + 0x3c]
call fcn.00429380
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x461ede
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
push edi
xor eax, eax
mov edi, edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov esi, dword [ecx + 4]
test esi, esi
je 0x461eff
mov eax, dword [ecx]
mov eax, dword [eax + 8]
add eax, esi
jmp 0x461f01
xor eax, eax
mov dword [edx], eax
movzx eax, word [ecx + 8]
mov dword [edx + 4], eax
movzx eax, word [ecx + 0xa]
mov dword [edx + 8], eax
movzx eax, word [ecx + 0xc]
mov dword [edx + 0xc], eax
mov eax, dword [ecx + 0x18]
movzx eax, word [eax]
mov dword [edx + 0x10], eax
mov eax, dword [ecx + 0x18]
movzx eax, word [eax + 2]
mov dword [edx + 0x14], eax
mov eax, dword [ecx + 0x18]
movzx eax, word [eax + 4]
mov dword [edx + 0x18], eax
mov eax, dword [ecx + 0x18]
movzx eax, word [eax + 6]
mov dword [edx + 0x1c], eax
mov eax, dword [ecx + 0x18]
movzx eax, word [eax + 8]
mov dword [edx + 0x20], eax
mov eax, dword [ecx + 0x18]
movzx eax, word [eax + 0xa]
mov dword [edx + 0x24], eax
mov eax, dword [edx + 0x20]
imul eax, dword [edx + 0x18]
imul eax, dword [edx + 0x1c]
shl eax, 2
mov dword [edx + 0x28], eax
mov esi, dword [ecx + 0x14]
test esi, esi
je 0x461f74
mov eax, dword [ecx]
mov eax, dword [eax + 8]
add eax, esi
jmp 0x461f76
xor eax, eax
pop edi
mov dword [edx + 0x2c], eax
xor eax, eax
pop esi
pop ebp
ret 4
Function at 0x4a1b0f
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebx + 0x24]
push esi
mov dword [ebp - 8], edx
push edi
mov ecx, dword [ebx + 0x64]
mov eax, dword [ebx + 0x34]
mov esi, dword [ebx + 0x6c]
sub eax, ecx
sub eax, esi
mov dword [ebp - 4], eax
jne 0x4a1b3d
test ecx, ecx
jne 0x4a1b47
test esi, esi
jne 0x4a1b47
mov eax, edx
jmp 0x4a1bb8
cmp eax, 0xffffffff
jne 0x4a1b47
push 0xfffffffffffffffe
pop eax
jmp 0x4a1bb8
mov esi, dword [ebx + 0x24]
lea esi, [edx + esi - 0x106]
cmp ecx, esi
jb 0x4a1bb8
mov edi, dword [ebx + 0x30]
mov ecx, edx
mov eax, ecx
shr ecx, 2
lea esi, [edi + edx]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x44]
mov eax, dword [ebx + 0x3c]
sub dword [ebx + 0x68], edx
sub dword [ebx + 0x64], edx
sub dword [ebx + 0x54], edx
lea eax, [eax + ecx*2]
dec eax
dec eax
movzx esi, word [eax]
mov edi, esi
sub edi, edx
cmp esi, edx
sbb esi, esi
not esi
and esi, edi
dec ecx
mov word [eax], si
jne 0x4a1b7d
mov eax, dword [ebx + 0x38]
mov esi, edx
lea eax, [eax + edx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edi, ecx
sub edi, edx
cmp ecx, edx
sbb ecx, ecx
not ecx
and ecx, edi
dec esi
mov word [eax], cx
jne 0x4a1b9c
mov eax, dword [ebp - 4]
add eax, edx
mov esi, dword [ebx]
cmp dword [esi + 4], 0
mov dword [ebp - 0xc], esi
je 0x4a1c65
mov edi, dword [ebx + 0x6c]
add edi, dword [ebx + 0x64]
mov ecx, dword [esi + 4]
add edi, dword [ebx + 0x30]
cmp ecx, eax
mov dword [ebp - 4], ecx
jbe 0x4a1bdd
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4a1be7
xor ecx, ecx
jmp 0x4a1c26
sub ecx, dword [ebp - 4]
mov eax, dword [esi + 0x1c]
mov dword [esi + 4], ecx
cmp dword [eax + 0x18], 0
jne 0x4a1c09
push dword [ebp - 4]
push dword [esi]
push dword [esi + 0x30]
call fcn.004a495d
mov edx, dword [ebp - 8]
mov dword [esi + 0x30], eax
mov ecx, dword [ebp - 4]
mov esi, dword [esi]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
mov eax, dword [ebp - 0xc]
add dword [eax], ecx
add dword [eax + 8], ecx
add dword [ebx + 0x6c], ecx
mov edi, dword [ebx + 0x6c]
cmp edi, 3
jb 0x4a1c51
mov eax, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x30]
lea esi, [eax + ecx]
movzx eax, byte [esi]
mov ecx, dword [ebx + 0x50]
mov dword [ebx + 0x40], eax
shl eax, cl
movzx ecx, byte [esi + 1]
xor eax, ecx
and eax, dword [ebx + 0x4c]
mov dword [ebx + 0x40], eax
cmp edi, 0x106
jae 0x4a1c65
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x4a1b1f
pop edi
pop esi
leave
ret
Function at 0x4b3b40
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
mov ebp, ecx
xor eax, eax
push esi
push edi
xor esi, esi
mov edi, dword [ebp]
mov ebx, dword [ebp + 4]
mov dword [edi + 0x16], eax
test ebx, ebx
jle 0x4b3b71
movzx edx, byte [edi + esi]
mov ecx, eax
shr ecx, 0x18
inc esi
xor edx, ecx
shl eax, 8
xor eax, dword [edx*4 + 0x60e0c0]
cmp esi, ebx
jl 0x4b3b57
mov ebx, dword [ebp + 0xc]
xor esi, esi
test ebx, ebx
jle 0x4b3b9a
mov ebp, dword [ebp + 8]
nop dword [eax]
movzx edx, byte [esi + ebp]
mov ecx, eax
shr ecx, 0x18
inc esi
xor edx, ecx
shl eax, 8
xor eax, dword [edx*4 + 0x60e0c0]
cmp esi, ebx
jl 0x4b3b80
mov byte [edi + 0x16], al
mov ecx, eax
shr ecx, 8
mov byte [edi + 0x17], cl
mov ecx, eax
shr ecx, 0x10
mov byte [edi + 0x18], cl
shr eax, 0x18
mov byte [edi + 0x19], al
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4d31a0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edi
mov eax, dword [edi]
cmp eax, 0x270
jne 0x4d31fe
lea edx, [edi + 8]
mov esi, eax
nop dword [eax]
mov ecx, dword [edx - 4]
lea edx, [edx + 4]
xor ecx, dword [edx - 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub esi, 1
jne 0x4d31c0
mov eax, dword [edi]
jmp 0x4d32e9
cmp eax, 0x4e0
jb 0x4d32e9
mov eax, dword [edi + 0x9c4]
push ebx
lea ebx, [edi + 0x9c4]
mov edi, 0xe3
nop dword [eax + eax]
mov ecx, dword [ebx + 4]
lea edx, [ebx + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx + 0x634]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub edi, 1
jne 0x4d3220
mov ebx, dword [ebp - 4]
mov edi, 0x18c
add ebx, 0xd50
mov eax, dword [ebx]
nop dword [eax]
mov ecx, eax
lea edx, [ebx + 4]
xor ecx, dword [edx]
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx - 0xd4c]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub edi, 1
jne 0x4d3270
mov edi, dword [ebp - 4]
pop ebx
mov ecx, dword [edi + 0x1380]
xor ecx, dword [edi + 4]
and ecx, 0x7fffffff
xor ecx, dword [edi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi + 0x9c0], eax
xor eax, eax
mov dword [edi], 0
mov edx, dword [edi + eax*4 + 4]
inc eax
mov dword [edi], eax
mov ecx, edx
mov eax, dword [edi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4d6740
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x6521c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x6588b0]
mov edx, dword [ebp + 8]
push ebx
push edi
mov ebx, dword [eax + 0x54]
mov dword [ebp - 0x30], ecx
cmp dword [ebx + 4], 0
je 0x4d6859
push esi
lea eax, [ebp - 0x24]
xorps xmm0, xmm0
push eax
push edx
movups xmmword [ebp - 0x24], xmm0
call dword [0x5d2420]
mov eax, dword [ebx + 0x14]
xor edi, edi
mov esi, dword [ebx + 0x10]
mov ecx, eax
cmp esi, eax
je 0x4d67d0
nop dword [eax + eax]
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x24]
mov edx, dword [esi + 0x20]
add eax, ecx
push dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x28]
push dword [ebp - 0x24]
add eax, edx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x10], edx
call dword [0x5d2410]
test eax, eax
jne 0x4d682d
mov eax, dword [ebx + 0x14]
add esi, 0x34
inc edi
mov ecx, eax
cmp esi, eax
jne 0x4d6790
mov esi, dword [ebx + 0x10]
or edi, 0xffffffff
mov dword [ebp - 0x2c], 0x7fffffff
mov dword [ebp - 0x28], 0
cmp esi, eax
je 0x4d682d
lea ebx, [esi + 0x20]
nop dword [eax + eax]
mov eax, dword [ebp - 0x24]
lea ebx, [ebx + 0x34]
sub eax, dword [ebx - 0x38]
cdq
mov esi, eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebx - 0x34]
xor esi, edx
sub esi, edx
cdq
xor eax, edx
sub eax, edx
lea edx, [esi + eax]
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
cmp edx, esi
cmovge eax, edi
inc dword [ebp - 0x28]
cmp edx, esi
mov edi, eax
lea eax, [ebx - 0x20]
cmovge edx, esi
mov dword [ebp - 0x2c], edx
cmp eax, ecx
jne 0x4d67f0
pop esi
cmp edi, 0xffffffff
je 0x4d6859
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0xe8]
mov dword [eax + 0x388], edi
mov eax, 1
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056857d
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop ebx
call fcn.0056857d
mov esp, ebp
pop ebp
ret 4