joyce8/EMBER2024-capa huggingface dataset:
Function at 0x514810
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x748348
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x899944]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push str.ck_getsockname_ipv6
mov dword [ebp - 0x34], ecx
push esi
lea ecx, [ebp - 0x40]
call fcn.00474ef0
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.0040a470
mov eax, dword [ebp - 0x34]
mov dword [ebx], 0
mov eax, dword [eax + 0xb4]
cmp eax, 0xffffffff
je 0x5148eb
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x2c]
push edx
push eax
mov dword [ebp - 0x30], 0x1c
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x5148c9
test eax, eax
js 0x5148c9
mov ecx, edi
call fcn.0040a470
mov edx, edi
lea ecx, [ebp - 0x24]
call fcn.00511700
mov eax, dword [ebp - 0x2a]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, ax
mov dword [ebx], ecx
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.00474f80
mov al, 1
jmp 0x51490a
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.Failed_to_getsockname_ipv6
mov ecx, esi
call eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push esi
push 0
push eax
call fcn.005126e0
add esp, 0xc
jmp 0x5148f9
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.Cannot_get_socket_name:_INVALID_SOCKET.
mov ecx, esi
call eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.00474f80
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0070bb4c
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5155b0
Capabilities:
Check for time delay via gettickcount
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x74843b
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x899944]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, ecx
cmp dword [edi + 0xb4], 0xffffffff
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x158], ecx
je 0x5156c4
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x515608
cmp ecx, 0x7530
jbe 0x51560f
mov dword [ebp + 8], 0x7530
push eax
lea ecx, [ebp - 0x154]
call fcn.004a6f80
mov dword [ebp - 4], 0
call sub.KERNEL32.dll_GetTickCount
mov ebx, dword [sym.imp.WS2_32.dll_recv]
push 0
push 0x20
lea edx, [ebp - 0x30]
mov esi, eax
mov eax, dword [edi + 0xb4]
push edx
push eax
call ebx
test eax, eax
je 0x515681
cmp eax, 0xffffffff
je 0x51564d
test eax, eax
jns 0x51565a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x5156b2
call sub.KERNEL32.dll_GetTickCount
cmp eax, esi
jae 0x515665
mov esi, eax
sub eax, esi
cmp eax, dword [ebp + 8]
jae 0x5156b2
mov edx, dword [edi + 0xb4]
push 0
push 0x20
lea ecx, [ebp - 0x30]
push ecx
push edx
call ebx
test eax, eax
jne 0x515644
mov ecx, dword [ebp - 0x158]
cmp byte [ecx + 0xad], 0
je 0x51569c
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
push str.TCP_connection_cleanly_closed_by_peer.
call edx
lea ecx, [ebp - 0x154]
mov dword [ebp - 4], 0xffffffff
call fcn.004a7030
mov al, 1
jmp 0x5156c6
lea ecx, [ebp - 0x154]
mov dword [ebp - 4], 0xffffffff
call fcn.004a7030
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0070bb4c
mov esp, ebp
pop ebp
ret 0xc
Function at 0x516d30
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
cmp dword [ecx + 0xb8], 2
jne 0x516d42
pop ebp
jmp fcn.005146f0
pop ebp
jmp fcn.00514810
Function at 0x517d90
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x748608
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x899944]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, ecx
mov eax, dword [esi + 0xb4]
cmp eax, 0xffffffff
jne 0x517dd1
mov byte [esi + 0xb0], 0
cmp byte [esi + 0xb0], 0
je 0x517e07
cmp byte [esi + 0x12], 0
jne 0x517e07
cmp byte [esi + 0x11], 0
jne 0x517e54
cmp byte [esi + 0x10], 0
jne 0x517e54
push 2
push 1
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x517e0b
push edi
mov ecx, esi
call fcn.005151f0
xor al, al
jmp 0x517e56
cmp eax, 0xffffffff
je 0x517e14
test eax, eax
jns 0x517e54
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x517e54
push str.isConnected_recv_peek
push edi
lea ecx, [ebp - 0x24]
call fcn.00474ef0
push edi
push 0
mov dword [ebp - 4], 0
call fcn.005146c0
add esp, 8
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00474f80
xor al, al
jmp 0x517e56
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0070bb4c
mov esp, ebp
pop ebp
ret 4
Function at 0x545850
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
cmp dword [ecx + 0x864], 1
je 0x545862
xor al, al
pop ebp
ret 0x18
add ecx, 0x5d0
pop ebp
jmp fcn.00517ac0

Function at 0x545870
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
cmp dword [ecx + 0x864], 1
je 0x545882
xor al, al
pop ebp
ret 0xc
add ecx, 0x5d0
pop ebp
jmp fcn.00517980

Function at 0x545fe0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
mov eax, ecx
mov ecx, dword [eax + 0x858]
test ecx, ecx
je 0x545ff5
pop ebp
jmp fcn.0049d690
cmp dword [eax + 0x864], 2
jne 0x54600a
lea ecx, [eax + 0x164]
pop ebp
jmp fcn.0056c5c0
lea ecx, [eax + 0x5d0]
pop ebp
jmp fcn.00513d10
Function at 0x546550
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
sub esp, 8
push ebx
push edi
mov edi, dword [ebp + 0x18]
mov byte [eax], 0
cmp byte [edi + 8], 0
mov ebx, ecx
jne 0x546583
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx]
mov eax, dword [str.Internal_error:_Socket_IO_params_not_valid.__Contact_support_chilkatsoft.com]
mov edx, dword [edx + 0x14]
push eax
call edx
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
jne 0x5465d9
mov ecx, dword [ebx + 0x7e0]
test ecx, ecx
je 0x5465a1
mov eax, dword [ebp + 0x1c]
push eax
push edi
call fcn.0049d690
jmp 0x5465cc
cmp dword [ebx + 0x7ec], 2
jne 0x5465bc
mov ecx, dword [ebp + 0x1c]
push ecx
push edi
lea ecx, [ebx + 0xec]
call fcn.0056c5c0
jmp 0x5465cc
mov edx, dword [ebp + 0x1c]
push edx
push edi
lea ecx, [ebx + 0x558]
call fcn.00513d10
test al, al
je 0x5466af
mov esi, 0x7530
mov ecx, dword [ebp + 8]
call fcn.004033b0
mov edx, dword [ebp + 0xc]
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp + 8]
push edi
push esi
push edx
lea ecx, [ebx - 0x78]
push eax
mov dword [ebp - 4], ecx
call fcn.00546020
mov bl, al
test bl, bl
je 0x5466af
mov ecx, dword [ebp + 8]
call fcn.004033b0
cmp eax, dword [ebp + 0x18]
jbe 0x54662d
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
mov ecx, dword [ebp + 0x14]
pop esi
pop edi
mov byte [ecx], al
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x18
call sub.KERNEL32.dll_GetTickCount
mov dword [ebp - 8], eax
mov dword [ebp + 0x10], 0
lea esp, [esp]
mov ecx, dword [ebp + 8]
call fcn.004033b0
cmp eax, dword [ebp + 0x18]
jne 0x546683
cmp dword [ebp + 0x10], esi
jae 0x546683
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push edx
push edi
push esi
push eax
push ecx
mov ecx, dword [ebp - 4]
call fcn.00546020
mov bl, al
call sub.KERNEL32.dll_GetTickCount
mov ecx, dword [ebp - 8]
cmp eax, ecx
jb 0x5466af
sub eax, ecx
mov dword [ebp + 0x10], eax
cmp eax, esi
jae 0x54669c
test bl, bl
jne 0x546640
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
mov ecx, dword [ebp + 0x14]
pop esi
mov byte [ecx], al
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
push str.Timed_out......
call eax
mov byte [edi + 0x10], 1
pop esi
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x18

Function at 0x5466e0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
mov eax, ecx
mov ecx, dword [eax + 0x858]
test ecx, ecx
je 0x5466f5
pop ebp
jmp fcn.00498290
cmp dword [eax + 0x864], 2
jne 0x54670a
lea ecx, [eax + 0x164]
pop ebp
jmp fcn.0056c6d0
lea ecx, [eax + 0x5d0]
pop ebp
jmp fcn.00513e90
Function at 0x549e20
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
or ecx, 0xffffffff
push esi
mov dword [eax + 0x34], edx
mov byte [eax + 0x1f], dl
mov dword [eax + 0x24], edx
mov dword [eax + 0x468], ecx
mov dword [eax + 0x46c], ecx
mov dword [eax + 0x30], 0x20
mov dword [eax + 0x48], 4
mov word [eax + 0x1d], 1
lea esi, [eax + 0x60]
mov eax, edx
and eax, 1
neg eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
neg ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
shr ecx, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
neg ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
shr ecx, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
neg ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
shr ecx, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
neg ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [esi], ecx
inc edx
add esi, 4
cmp edx, 0x100
jb 0x549e52
pop esi
ret

Function at 0x54b5f0
Capabilities:
Encode data using xor

Disassembly:
push ebx
xor eax, eax
or ecx, 0x100
push edi
lea ebx, [ebx]
mov ebx, ecx
shr ebx, 7
mov edi, ecx
shr edi, 8
movzx edi, word [esi + edi*2]
and ebx, 1
neg ebx
sar ebx, 4
shr edi, 4
and ebx, 0x7f
xor edi, ebx
add eax, dword [edx + edi*4]
add ecx, ecx
cmp ecx, 0x10000
jb 0x54b600
pop edi
pop ebx
ret

Function at 0x54b630
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, eax
mov edx, 0x100
xor eax, eax
push edi
or ecx, edx
add esi, esi
mov edi, edx
and edi, esi
add edi, edx
mov ebx, ecx
shr ebx, 8
add ebx, edi
mov edi, dword [ebp + 8]
movzx edi, word [edi + ebx*2]
mov ebx, ecx
shr ebx, 7
and ebx, 1
neg ebx
shr edi, 4
sar ebx, 4
and ebx, 0x7f
xor edi, ebx
mov ebx, dword [ebp + 0xc]
add eax, dword [ebx + edi*4]
add ecx, ecx
mov edi, ecx
xor edi, esi
not edi
and edx, edi
cmp ecx, 0x10000
jb 0x54b641
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x54b8f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
movzx eax, word [ebx]
mov ecx, eax
shr ecx, 4
mov edx, dword [esi + ecx*4]
movzx ecx, word [ebx + 2]
mov dword [ebp - 0xc], edx
mov edx, ecx
xor eax, 0x7f0
xor ecx, 0x7f0
shr edx, 4
mov edx, dword [esi + edx*4]
shr eax, 4
mov eax, dword [esi + eax*4]
shr ecx, 4
mov ecx, dword [esi + ecx*4]
add edx, eax
add ecx, eax
mov dword [ebp - 0x10], edx
push edi
mov dword [ebp - 0x14], ecx
xor edx, edx
jmp 0x54b940
cmp edx, dword [ebp + 0x10]
jae 0x54ba60
mov eax, edx
xor edi, edi
or eax, 8
mov dword [ebp - 4], edi
cmp eax, 1
je 0x54b989
mov edi, dword [ebp + 0xc]
mov ecx, eax
and eax, 1
shr ecx, 1
lea edi, [ecx + edi*8]
movzx edi, word [ebx + edi*2 + 4]
neg eax
sar eax, 4
shr edi, 4
and eax, 0x7f
xor edi, eax
mov eax, edi
mov edi, dword [ebp - 4]
add edi, dword [esi + eax*4]
mov eax, ecx
mov dword [ebp - 4], edi
cmp eax, 1
jne 0x54b958
add edi, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x14]
mov dword [ecx + edx*4], edi
inc edx
cmp edx, 8
jb 0x54b940
cmp edx, 0x10
jae 0x54ba0a
lea eax, [edx - 8]
mov dword [ebp - 8], eax
cmp edx, dword [ebp + 0x10]
jae 0x54ba60
xor edi, edi
or eax, 8
mov dword [ebp - 4], edi
cmp eax, 1
je 0x54b9f4
lea esp, [esp]
mov edi, dword [ebp + 0xc]
mov ecx, eax
and eax, 1
shr ecx, 1
lea edi, [ecx + edi*8]
movzx edi, word [ebx + edi*2 + 0x104]
neg eax
sar eax, 4
shr edi, 4
and eax, 0x7f
xor edi, eax
mov eax, edi
mov edi, dword [ebp - 4]
add edi, dword [esi + eax*4]
mov eax, ecx
mov dword [ebp - 4], edi
cmp eax, 1
jne 0x54b9c0
add edi, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 8]
mov dword [ecx + edx*4], edi
inc edx
inc eax
mov dword [ebp - 8], eax
cmp edx, 0x10
jb 0x54b9a3
cmp edx, dword [ebp + 0x10]
jae 0x54ba60
lea eax, [edx - 0x10]
mov dword [ebp - 8], eax
or eax, 0x100
xor edi, edi
cmp eax, 1
je 0x54ba4a
mov ecx, eax
and eax, 1
shr ecx, 1
movzx ebx, word [ebx + ecx*2 + 0x204]
neg eax
sar eax, 4
shr ebx, 4
and eax, 0x7f
xor ebx, eax
add edi, dword [esi + ebx*4]
mov ebx, dword [ebp + 8]
mov eax, ecx
cmp eax, 1
jne 0x54ba21
add edi, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 8]
mov dword [ecx + edx*4], edi
inc edx
inc eax
mov dword [ebp - 8], eax
cmp edx, dword [ebp + 0x10]
jb 0x54ba15
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x54d3c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
lea eax, [edi + 0x323d4]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
lea ebx, [ebx]
xor edx, edx
lea ecx, [edx + 1]
mov dword [ebp - 4], 4
lea esp, [esp]
movzx ebx, word [edi + ecx*2 + 0x32a58]
mov eax, esi
and eax, 1
mov edi, eax
neg edi
sar edi, 4
and edi, 0x7f
shr ebx, 4
xor ebx, edi
mov edi, dword [ebp + 8]
add edx, dword [edi + ebx*4 + 0x30d40]
add ecx, ecx
shr esi, 1
or ecx, eax
dec dword [ebp - 4]
jne 0x54d3f0
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
inc esi
mov dword [eax], edx
add eax, 4
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
cmp esi, 0x10
jb 0x54d3e0
mov dword [edi + 0x84], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x54d450
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x899944]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, 4
mov dword [ebp - 0x208], edi
movzx ebx, byte [edx + edi + 0x30540]
mov ecx, ebx
mov esi, ebx
and esi, 1
shr ecx, 1
dec ecx
or esi, 2
shl esi, cl
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x20c], 0
mov dword [ebp - 0x210], 1
sub edi, esi
mov dword [ebp - 0x214], ecx
test ecx, ecx
je 0x54d503
jmp 0x54d4b6
mov ebx, dword [ebp - 0x218]
mov ecx, dword [ebp - 0x210]
sub ecx, ebx
add ecx, esi
movzx ecx, word [edx + ecx*2 + 0x32972]
mov eax, edi
and eax, 1
mov ebx, eax
neg ebx
shr ecx, 4
sar ebx, 4
and ebx, 0x7f
xor ecx, ebx
mov ecx, dword [edx + ecx*4 + 0x30d40]
add dword [ebp - 0x20c], ecx
mov ecx, dword [ebp - 0x210]
add ecx, ecx
or ecx, eax
shr edi, 1
dec dword [ebp - 0x214]
mov dword [ebp - 0x210], ecx
jne 0x54d4b0
mov edi, dword [ebp - 0x208]
mov eax, dword [ebp - 0x20c]
mov dword [ebp + edi*4 - 0x204], eax
inc edi
mov dword [ebp - 0x208], edi
cmp edi, 0x80
jb 0x54d471
lea esi, [ebp - 0x204]
sub esi, edx
lea ecx, [edx + 0x32774]
lea ebx, [edx + 0x31bdc]
sub esi, 0x31bd4
lea edi, [edx + 0x317d4]
mov dword [ebp - 0x208], ecx
mov dword [ebp - 0x20c], ebx
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x218], 4
jmp 0x54d570
xor ecx, ecx
mov dword [ebp - 0x214], ecx
cmp dword [edx + 0x88], ecx
jbe 0x54d5e0
mov eax, ecx
or eax, 0x40
xor esi, esi
cmp eax, 1
je 0x54d5c8
lea esp, [esp]
mov ebx, dword [ebp - 0x208]
mov ecx, eax
and eax, 1
shr ecx, 1
movzx ebx, word [ebx + ecx*2]
neg eax
sar eax, 4
and eax, 0x7f
shr ebx, 4
xor ebx, eax
add esi, dword [edx + ebx*4 + 0x30d40]
mov eax, ecx
cmp eax, 1
jne 0x54d590
mov ebx, dword [ebp - 0x20c]
mov ecx, dword [ebp - 0x214]
mov dword [edi + ecx*4], esi
inc ecx
mov dword [ebp - 0x214], ecx
cmp ecx, dword [edx + 0x88]
jb 0x54d580
mov esi, dword [ebp - 0x210]
mov eax, 0xe
cmp dword [edx + 0x88], eax
jbe 0x54d606
lea ecx, [ecx]
mov ecx, eax
shr ecx, 1
sub ecx, 5
shl ecx, 4
add dword [edi + eax*4], ecx
inc eax
cmp eax, dword [edx + 0x88]
jb 0x54d5f0
mov eax, dword [edi]
mov dword [ebx - 8], eax
mov ecx, dword [edi + 4]
mov dword [ebx - 4], ecx
mov eax, dword [edi + 8]
mov dword [ebx], eax
mov ecx, dword [edi + 0xc]
mov dword [ebx + 4], ecx
mov eax, 4
lea ecx, [ebx + 8]
jmp 0x54d630
movzx ebx, byte [edx + eax + 0x30540]
mov ebx, dword [edi + ebx*4]
add ebx, dword [esi + ecx]
inc eax
mov dword [ecx], ebx
add ecx, 4
cmp eax, 0x80
jb 0x54d630
mov ebx, dword [ebp - 0x20c]
sub dword [ebp - 0x208], 0xffffff80
add ebx, 0x200
sub esi, 0x200
add edi, 0x100
dec dword [ebp - 0x218]
mov dword [ebp - 0x20c], ebx
mov dword [ebp - 0x210], esi
jne 0x54d570
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov dword [edx + 0x80], 0
pop ebx
call fcn.0070bb4c
mov esp, ebp
pop ebp
ret
Function at 0x54fe40
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov esi, ecx
call fcn.0054fc50
movzx edi, byte [edi]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], eax
movzx eax, byte [esi + 0xe88]
sub edi, eax
lea eax, [ebp - 0x408]
mov dword [ebp - 8], eax
mov eax, dword [ecx + 4]
xor ebx, ebx
test eax, eax
jne 0x54fe7f
xor ecx, ecx
jmp 0x54fe84
mov ecx, dword [esi + 0x1c]
add ecx, eax
mov dl, byte [esi + 0xe8a]
lea eax, [ecx - 6]
lea ecx, [ecx]
movzx ecx, byte [eax + 6]
add eax, 6
cmp byte [esi + ecx + 0xd88], dl
je 0x54fe90
movzx ecx, byte [eax + 1]
add ebx, ecx
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
add ecx, 4
dec edi
mov dword [ebp - 8], ecx
jne 0x54fe90
add dword [esi + 0xc], ebx
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0xc]
xor edx, edx
div ecx
xor edx, edx
mov edi, eax
mov eax, dword [esi + 0x14]
sub eax, dword [esi + 0x10]
mov dword [esi + 0x18], edi
div edi
mov edx, dword [ebp - 0x408]
lea edi, [ebp - 0x408]
cmp eax, ebx
jae 0x54ff6c
mov ecx, edx
movzx ecx, byte [ecx + 1]
cmp ecx, eax
ja 0x54ff00
mov edi, edi
mov edx, dword [edi + 4]
movzx ebx, byte [edx + 1]
add edi, 4
add ecx, ebx
cmp ecx, eax
jbe 0x54fef0
mov edi, dword [ebp - 4]
mov dword [esi + 8], ecx
movzx eax, byte [edx + 1]
sub ecx, eax
mov dword [esi + 4], ecx
mov cl, byte [edi + 2]
cmp cl, 7
jae 0x54ff31
dec byte [edi + 3]
jne 0x54ff31
mov ax, word [edi]
add ax, ax
mov word [edi], ax
mov al, 3
shl al, cl
inc cl
mov byte [edi + 2], cl
mov byte [edi + 3], al
mov eax, dword [ebp + 8]
mov dword [esi + 0xd70], edx
add byte [edx + 1], 4
add word [eax + 2], 4
cmp byte [edx + 1], 0x7c
jbe 0x54ff51
push eax
mov ecx, esi
call fcn.0054f4b0
mov ecx, dword [esi + 0xd80]
inc byte [esi + 0xe8a]
pop edi
mov dword [esi + 0xd7c], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp + 8]
mov dword [esi + 4], ebx
mov dword [esi + 8], ecx
mov cl, byte [edx]
movzx edx, byte [esi + 0xe88]
movzx eax, cl
sub eax, edx
mov byte [esi + 0xe88], cl
lea esp, [esp]
mov ecx, dword [edi]
movzx edx, byte [ecx]
mov cl, byte [esi + 0xe8a]
add edi, 4
dec eax
mov byte [edx + esi + 0xd88], cl
jne 0x54ff90
mov dx, word [esi + 0xc]
mov eax, dword [ebp - 4]
add word [eax], dx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x551600
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
jbe 0x55167d
push ebx
mov ebx, dword [ebp + 8]
push esi
movsx ebx, byte [edi + ebx]
mov edx, dword [ecx + 0xc]
xor ebx, edx
mov eax, dword [ecx + 0x14]
shr edx, 8
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x896e90]
xor ebx, edx
movzx edx, bl
add edx, dword [ecx + 0x10]
mov esi, eax
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 0x10], edx
shr edx, 0x18
xor edx, eax
shr eax, 8
mov dword [ecx + 0xc], ebx
mov ebx, dword [ebp + 8]
and edx, 0xff
xor eax, dword [edx*4 + 0x896e90]
and esi, 0xfffd
mov dword [ecx + 0x14], eax
or esi, 2
mov eax, esi
xor eax, 1
imul eax, esi
sar eax, 8
xor byte [edi + ebx], al
inc edi
cmp edi, dword [ebp + 0xc]
jb 0x551610
pop esi
pop ebx
pop edi
pop ebp
ret 8

Function at 0x551690
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x738328
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x899944]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [ebp - 0x28]
mov dword [esi + 0xc], 0x12345678
mov dword [esi + 0x10], 0x23456789
mov dword [esi + 0x14], 0x34567890
call fcn.0040fe80
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
push 0
push ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], 0
call fcn.00407160
lea ecx, [ebp - 0x28]
call fcn.004033b0
mov edi, eax
lea ecx, [ebp - 0x28]
mov dword [ebp + 0xc], edi
call fcn.0040fbb0
mov dword [ebp + 8], eax
xor eax, eax
test edi, edi
je 0x551765
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0x10]
mov edi, dword [esi + 0x14]
mov ebx, dword [ebp + 8]
movsx ebx, byte [eax + ebx]
xor ebx, ecx
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x896e90]
inc eax
movzx ebx, cl
add edx, ebx
imul edx, edx, 0x8088405
inc edx
mov ebx, edx
shr ebx, 0x18
movsx ebx, bl
xor ebx, edi
and ebx, 0xff
shr edi, 8
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], edx
xor edi, dword [ebx*4 + 0x896e90]
mov dword [esi + 0x14], edi
cmp eax, dword [ebp + 0xc]
jb 0x551717
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.004105c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x551790
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
test ebx, ebx
je 0x551809
push edi
mov edi, dword [ebp + 8]
mov eax, dword [ecx + 0x14]
and eax, 0xfffd
or eax, 2
mov edx, eax
xor edx, 1
imul edx, eax
sar edx, 8
xor byte [esi + edi], dl
movsx edx, byte [esi + edi]
mov eax, dword [ecx + 0xc]
xor edx, eax
shr eax, 8
and edx, 0xff
mov edx, dword [edx*4 + 0x896e90]
xor edx, eax
movzx eax, dl
add eax, dword [ecx + 0x10]
mov dword [ecx + 0xc], edx
mov edx, dword [ecx + 0x14]
imul eax, eax, 0x8088405
inc eax
mov dword [ecx + 0x10], eax
shr eax, 0x18
xor eax, edx
and eax, 0xff
shr edx, 8
xor edx, dword [eax*4 + 0x896e90]
inc esi
mov dword [ecx + 0x14], edx
cmp esi, ebx
jb 0x5517a2
pop edi
pop esi
pop ebx
pop ebp
ret 8