joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46bc40
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration
Start tcp server

Disassembly:
sub esp, 0x30
push esi
mov esi, dword [sym.imp.WS2_32.dll_socket]
push edi
push 6
push 1
push 2
mov dword [esp + 0x18], 0x10
mov dword [esp + 0x14], 1
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x46bc72
pop edi
or eax, eax
pop esi
add esp, 0x30
ret
push ebx
xorps xmm0, xmm0
mov eax, 2
push 0x7f000001
movlpd qword [esp + 0x20], xmm0
mov word [esp + 0x18], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov ebx, dword [esp + 0x4c]
mov dword [esp + 0x18], eax
xor eax, eax
push 4
mov word [esp + 0x1a], ax
lea eax, [esp + 0x10]
push eax
push 4
push 0xffff
push edi
mov dword [ebx + 4], 0xffffffff
mov dword [ebx], 0xffffffff
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x46be03
push 0x10
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x46be03
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x46be03
push 1
push edi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x46be03
push 0
push 1
push 2
call esi
mov dword [ebx], eax
cmp eax, 0xffffffff
je 0x46be03
push 0x10
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x46be03
push 0
push 0
push edi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
je 0x46be03
push ebx
push 0x4ae068
lea eax, [esp + 0x2c]
push 0xc
push eax
call fcn.0046d3a0
lea esi, [esp + 0x34]
add esp, 0x10
lea ecx, [esi + 1]
nop dword [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x46bd70
push 0
sub esi, ecx
lea eax, [esp + 0x28]
push esi
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, esi
jne 0x46be03
push 0
push 0xc
lea eax, [esp + 0x38]
push eax
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, esi
jne 0x46be03
lea ecx, [esp + 0x24]
lea edx, [esp + 0x30]
sub esi, 4
jb 0x46bdc1
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x46bdc6
add ecx, 4
add edx, 4
sub esi, 4
jae 0x46bdb0
cmp esi, 0xfffffffc
je 0x46bdf3
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x46be03
cmp esi, 0xfffffffd
je 0x46bdf3
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x46be03
cmp esi, 0xfffffffe
je 0x46bdf3
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x46be03
cmp esi, 0xffffffff
je 0x46bdf3
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x46be03
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x30
ret
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
push edi
call esi
push dword [ebx]
call esi
push dword [ebx + 4]
call esi
pop ebx
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x30
ret
Function at 0x46f590
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push esi
xor esi, esi
mov dword [esp + 4], esi
mov dword [eax], esi
lea eax, [esp + 8]
push eax
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x46f742
push ebx
mov ebx, dword [esp + 0xc]
push edi
test ebx, ebx
je 0x46f72c
push ebp
mov eax, dword [ebx + 4]
cmp eax, 2
jne 0x46f5df
lea ebp, [eax + 0xe]
jmp 0x46f5eb
cmp eax, 0x17
jne 0x46f699
lea ebp, [eax + 5]
cmp dword [ebx + 0x18], 0
je 0x46f699
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x46f699
cmp eax, ebp
jb 0x46f699
push 0x20
call dword [0x4d6800]
mov edi, eax
add esp, 4
test edi, edi
je 0x46f721
mov ecx, dword [ebx]
mov dword [edi], ecx
mov ecx, dword [ebx + 4]
mov dword [edi + 4], ecx
mov ecx, dword [ebx + 8]
mov dword [edi + 8], ecx
mov eax, dword [ebx + 0xc]
push ebp
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], ebp
mov dword [edi + 0x18], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x1c], 0
call dword [0x4d6800]
add esp, 4
mov dword [edi + 0x18], eax
test eax, eax
je 0x46f710
push ebp
push dword [ebx + 0x18]
push eax
call fcn.00414ba0
mov eax, dword [ebx + 0x14]
add esp, 0xc
test eax, eax
je 0x46f685
push eax
call dword [0x4d680c]
add esp, 4
mov dword [edi + 0x14], eax
test eax, eax
je 0x46f6f6
mov eax, dword [esp + 0x10]
test esi, esi
cmove esi, edi
test eax, eax
je 0x46f695
mov dword [eax + 0x1c], edi
mov dword [esp + 0x10], edi
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
jne 0x46f5d2
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
pop ebp
test eax, eax
je 0x46f6b8
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebx, ebx
je 0x46f728
test esi, esi
je 0x46f6e5
push dword [esi + 0x18]
call dword [0x4d6804]
push dword [esi + 0x14]
call dword [0x4d6804]
mov edi, dword [esi + 0x1c]
push esi
call dword [0x4d6804]
add esp, 0xc
mov esi, edi
test edi, edi
jne 0x46f6c0
mov eax, dword [esp + 0x28]
xor esi, esi
pop edi
mov dword [eax], esi
mov eax, ebx
pop ebx
pop esi
add esp, 0xc
ret
push dword [edi + 0x18]
mov ebx, 8
call dword [0x4d6804]
push edi
call dword [0x4d6804]
add esp, 8
jmp 0x46f6a8
push edi
mov ebx, 8
call dword [0x4d6804]
add esp, 4
jmp 0x46f6a8
mov ebx, 8
jmp 0x46f6a8
test esi, esi
jne 0x46f738
mov ebx, 0x2af9
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x28]
pop edi
mov dword [eax], esi
mov eax, ebx
pop ebx
pop esi
add esp, 0xc
ret
Function at 0x47013f
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4d70a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x4bba90
push esi
call fcn.0045bf79
pop ecx
pop ecx
test eax, eax
jne 0x47016d
xor al, al
jmp 0x4701ea
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.0046fece
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x4701a7
push dword [ebp - 0x210]
call fcn.0041541c
xor al, al
jmp 0x4701e8
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4701ad
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x4701cd
push edx
call fcn.00470091
pop ecx
test al, al
je 0x470198
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4701db
mov bl, 1
push dword [ebp - 0x210]
call fcn.0041541c
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00432bea
leave
ret
Function at 0x473d28
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0046f520
mov eax, dword [0x4d70a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00432786
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x473d6a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x473ec6
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041ab90
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4ec628]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0048852d
mov ecx, dword [esi*4 + 0x4ec628]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x473ebf
cmp eax, dword [ecx + edi + 0x24]
jne 0x473ebf
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x473ebf
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0048852d
add esp, 0x14
test edx, edx
jl 0x473ebf
jg 0x473e35
test eax, eax
jb 0x473ebf
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x473ebf
jl 0x473e4f
cmp dword [ebp - 0x1008], eax
ja 0x473ebf
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x473e6d
test ebx, ebx
je 0x473ea6
cmp ecx, edi
jae 0x473ea6
mov al, byte [ecx]
cmp al, 0xd
jne 0x473e87
lea eax, [edi - 1]
cmp ecx, eax
jae 0x473e93
cmp byte [ecx + 1], 0xa
jne 0x473e93
inc ecx
jmp 0x473e93
movzx eax, al
movsx eax, byte [eax + 0x4d7810]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x473e6d
cmp edx, ebx
jne 0x473e6d
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x473ec4
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00432bea
leave
ret

Function at 0x474570
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x1000
call fcn.0046f520
push dword [esp + 0x1004]
call fcn.0044f779
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x4745bc
push 0x1000
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x4745bc
lea eax, [esp]
push eax
call dword [0x4d680c]
add esp, 4
add esp, 0x1000
ret
xor eax, eax
add esp, 0x1000
ret
Function at 0x478160
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x84
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x98]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0x80
push eax
mov ebp, dword [edi + 0x1c4]
or esi, 0xffffffff
mov ebx, dword [edi]
push ebp
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4781b4
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x80
push eax
lea eax, [esp + 0x18]
push eax
push ebp
call dword [sym.imp.WS2_32.dll_accept]
mov esi, eax
push ebp
push edi
call fcn.00448ab0
add esp, 8
cmp esi, 0xffffffff
jne 0x4781e1
push str.Error_accept__ing_server_connect
push ebx
call fcn.004473f0
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret
push str.Connection_accepted_from_server_n
push ebx
call fcn.00447330
push 1
push esi
mov byte [edi + 0x2b0], 0
mov dword [edi + 0x1c4], esi
call fcn.0046be20
add esp, 0x10
mov byte [edi + 0x1d1], 1
cmp dword [ebx + 0x610], 0
je 0x478257
push 1
push ebx
call fcn.0043a180
mov eax, dword [ebx + 0x610]
push 1
push esi
push dword [ebx + 0x614]
call eax
push 0
push ebx
mov esi, eax
call fcn.0043a180
add esp, 0x1c
test esi, esi
je 0x478257
push edi
call fcn.004780b0
add esp, 4
mov eax, 0x2a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x84
ret
Function at 0x4803a3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4ec628]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4803e3
cmp byte [ebx], 0xa
jne 0x4803e3
or byte [edi + eax + 0x28], 4
jmp 0x4803e8
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x4804e7
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4804ca
inc eax
cmp dl, 0xd
je 0x480414
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x48043a
cmp eax, ecx
jae 0x480448
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x4803fc
jmp 0x4804e7
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4804c5
cmp dword [ebp - 0x10], 0
je 0x4804c5
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4ec628]
test byte [eax + edi + 0x28], 0x48
je 0x48049f
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x48048a
mov byte [esi], dl
jmp 0x48049b
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4ec628]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4804e7
cmp byte [ebp - 1], 0xa
jne 0x4804ae
cmp esi, ebx
jne 0x4804ae
mov byte [esi], 0xa
jmp 0x4804e6
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004884cf
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4804e7
mov byte [esi], 0xd
jmp 0x4804e6
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4ec628]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4804e4
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4804e7
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4804f0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4ec628]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x480536
cmp word [ebx], dx
jne 0x480536
or byte [eax + edi + 0x28], 4
jmp 0x48053b
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x48069e
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x48067e
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x48057c
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4805b2
cmp eax, edx
jae 0x4805c0
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x480557
jmp 0x48069e
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x480679
cmp dword [ebp - 0x18], 0
je 0x480679
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4ec628]
test byte [eax + edi + 0x28], 0x48
je 0x48064f
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x480613
mov word [esi], cx
jmp 0x48064a
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4ec628]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4ec628]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4ec628]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x48069e
pop eax
cmp word [ebp - 4], ax
jne 0x48065f
cmp esi, ebx
jne 0x48065f
mov word [esi], ax
jmp 0x48069b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004884cf
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x48069e
push 0xd
pop eax
jmp 0x48065a
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4ec628]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x480698
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x48069e
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x483e40
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push esi
call fcn.00483980
mov ebp, eax
add esp, 0xc
xor ebx, ebx
lea edi, [ebp*4]
test edi, edi
jle 0x483eb9
mov ecx, dword [esp + 0x14]
lea esi, [esi + edi*4]
add esi, 8
add ecx, 8
mov edx, dword [ecx - 8]
lea ecx, [ecx + 0x10]
mov eax, dword [esi - 8]
lea esi, [esi - 0x10]
mov dword [ecx - 0x18], eax
add ebx, 4
mov eax, dword [esi + 0xc]
sub edi, 4
mov dword [esi + 8], edx
mov edx, dword [ecx - 0x14]
mov dword [ecx - 0x14], eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0xc], edx
mov edx, dword [ecx - 0x10]
mov dword [ecx - 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [esi + 0x10], edx
mov edx, dword [ecx - 0xc]
mov dword [ecx - 0xc], eax
mov dword [esi + 0x14], edx
cmp ebx, edi
jl 0x483e75
mov esi, dword [esp + 0x14]
cmp ebp, 1
jle 0x484032
add esi, 4
lea edi, [ebp - 1]
mov edx, dword [esi + 0xc]
lea esi, [esi + 0x10]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax*4 + str.ccccwwww]
movzx eax, byte [esi - 3]
mov ecx, dword [ecx*4 + 0x49fe08]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x4a0608]
movzx eax, dl
mov edx, dword [esi]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x4a0a08]
movzx eax, byte [esi - 2]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x4a0208]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [esi - 4], ecx
movzx ecx, byte [eax*4 + str.ccccwwww]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x4a0208]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x4a0608]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x49fe08]
movzx eax, dl
mov edx, dword [esi + 4]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x4a0a08]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [esi], ecx
movzx ecx, byte [eax*4 + str.ccccwwww]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x4a0208]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x4a0608]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x49fe08]
movzx eax, dl
mov edx, dword [esi + 8]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x4a0a08]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [esi + 4], ecx
movzx ecx, byte [eax*4 + str.ccccwwww]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x4a0208]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x4a0608]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x49fe08]
movzx eax, dl
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x4a0a08]
mov dword [esi + 8], ecx
sub edi, 1
jne 0x483ec8
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
Function at 0x484810
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x34
mov eax, dword [esp + 0x44]
mov ecx, 0x10
cdq
idiv ecx
push ebx
mov ebx, dword [esp + 0x40]
push ebp
mov ebp, edx
mov dword [esp + 0x18], ebp
push esi
push edi
mov edi, eax
test ebp, ebp
je 0x484840
test edi, edi
jne 0x48483f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
dec edi
mov eax, dword [esp + 0x58]
mov esi, dword [eax + 8]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x4c], esi
mov esi, dword [eax + 0xc]
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x48]
add esi, 0xf8
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x50]
mov dword [esp + 0x1c], edx
test edi, edi
je 0x4848df
mov eax, ebx
sub eax, esi
mov ebp, eax
jmp 0x484880
mov eax, dword [esp + 0x48]
push esi
push ebx
push dword [eax + 4]
push dword [esp + 0x20]
call fcn.00484b30
mov eax, dword [esp + 0x28]
add esp, 0x10
xor dword [esi], eax
mov eax, dword [esp + 0x1c]
xor dword [esi + 4], eax
mov eax, dword [esp + 0x4c]
xor dword [esi + 8], eax
mov ecx, dword [esp + 0x10]
xor dword [esi + 0xc], ecx
mov eax, dword [esi + ebp + 8]
add esi, 0x10
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [esp + 0x4c], eax
mov eax, dword [ebx + 0xc]
add ebx, 0x10
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], eax
sub edi, 1
jne 0x484880
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x58]
test ebp, ebp
je 0x48499b
mov edi, dword [ebx]
mov edx, dword [ebx + 4]
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
mov ebp, dword [esp + 0x58]
mov dword [esp + 0x24], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], edx
mov dword [ebp], edi
mov edi, ebp
mov dword [esp + 0x2c], ecx
mov dword [edi + 0xc], eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x28]
mov dword [edi + 4], edx
push eax
mov eax, dword [esp + 0x50]
mov dword [edi + 8], ecx
push dword [eax + 4]
push dword [esp + 0x20]
call fcn.00484b30
mov ebp, dword [esp + 0x30]
add esp, 0x10
test ebp, ebp
je 0x48495b
lea edx, [esp + 0x34]
sub ebx, esi
lea edi, [esi + 0x10]
mov al, byte [ebx + edi]
lea edx, [edx + 1]
mov cl, byte [edx - 1]
lea edi, [edi + 1]
xor cl, al
mov byte [edx - 1], al
mov byte [edi - 1], cl
sub ebp, 1
jne 0x484942
push esi
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x50]
push dword [eax + 4]
push dword [esp + 0x20]
call fcn.00484b30
mov eax, dword [esp + 0x28]
add esp, 0x10
xor dword [esi], eax
mov eax, dword [esp + 0x1c]
xor dword [esi + 4], eax
mov eax, dword [esp + 0x4c]
xor dword [esi + 8], eax
mov ecx, dword [esp + 0x10]
xor dword [esi + 0xc], ecx
mov eax, dword [esp + 0x54]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
pop edi
mov dword [eax], ecx
mov ecx, dword [esp + 0x48]
pop esi
mov dword [eax + 8], ecx
mov ecx, dword [esp + 8]
pop ebp
mov dword [eax + 4], edx
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x48]
pop ebx
add esp, 0x34
ret
Function at 0x4849c0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
mov eax, dword [esp + 0x30]
mov ecx, 0x10
cdq
idiv ecx
push ebx
mov ebx, dword [esp + 0x30]
push ebp
push esi
mov esi, dword [esp + 0x34]
mov ebp, edx
mov dword [esp + 0x34], ebp
push edi
mov edi, eax
test ebp, ebp
je 0x4849f4
test edi, edi
jne 0x4849f3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
dec edi
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x44]
lea eax, [ecx + 8]
mov dword [esp + 0x3c], eax
test edi, edi
je 0x484a60
mov ebp, ecx
lea esp, [esp]
mov eax, dword [esi]
xor eax, dword [edx]
mov dword [esp + 0x10], eax
mov eax, dword [edx + 4]
xor eax, dword [esi + 4]
mov dword [esp + 0x14], eax
mov eax, dword [edx + 8]
xor eax, dword [esi + 8]
mov dword [esp + 0x18], eax
mov eax, dword [edx + 0xc]
xor eax, dword [esi + 0xc]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push ebx
push eax
push dword [ebp + 4]
lea eax, [ebp + 8]
push eax
call fcn.00484040
mov edx, ebx
add esp, 0x10
add esi, 0x10
add ebx, 0x10
sub edi, 1
jne 0x484a10
mov ebp, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
test ebp, ebp
je 0x484b04
mov eax, dword [esi]
xor eax, dword [edx]
mov dword [esp + 0x10], eax
mov eax, dword [edx + 4]
xor eax, dword [esi + 4]
mov dword [esp + 0x14], eax
mov eax, dword [edx + 8]
xor eax, dword [esi + 8]
mov dword [esp + 0x18], eax
mov eax, dword [edx + 0xc]
xor eax, dword [esi + 0xc]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x14]
push eax
push dword [ecx + 4]
lea eax, [ecx + 8]
push eax
call fcn.00484040
add esp, 0x10
test ebp, ebp
je 0x484acc
lea edx, [esp + 0x20]
sub esi, ebx
lea edi, [ebx + 0x10]
mov cl, byte [edx]
lea edx, [edx + 1]
mov al, byte [esi + edi]
lea edi, [edi + 1]
xor al, cl
mov byte [edi - 1], cl
mov byte [edx - 1], al
sub ebp, 1
jne 0x484ab4
lea eax, [esp + 0x20]
push eax
push eax
mov eax, dword [esp + 0x3c]
push dword [eax + 4]
push dword [esp + 0x48]
call fcn.00484040
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x30]
mov dword [ebx], eax
add esp, 0x10
mov eax, dword [esp + 0x24]
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x28]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x44]
mov ecx, dword [edx]
pop edi
pop esi
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov ecx, dword [edx + 0xc]
pop ebp
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x34]
pop ebx
add esp, 0x20
ret
Function at 0x4850b3
Capabilities:
Hash data with md5

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