joyce8/EMBER2024-capa huggingface dataset:
Function at 0x475480
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x10]
mov ebx, dword [eax]
mov eax, dword [ebp + 0xc]
add eax, 0xfffffffd
cmp eax, 4
ja case.0x47549d.4
jmp dword [eax*4 + 0x47569c]
lea eax, [edi + 0x15c]
push eax
call fcn.00474b70
movzx ecx, ax
add esp, 4
movzx eax, word [edi + 0x40]
inc eax
movzx eax, ax
cmp eax, ecx
je 0x4754d9
push eax
push ecx
push str.Received_unexpected_DATA_packet_block__d__expecting_block__d_n
push ebx
call fcn.00450ec0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
lea esi, [edi + 0x160]
mov word [edi + 0x40], cx
push 4
push esi
mov dword [edi + 0x18], 0
call fcn.00474bd0
movzx eax, word [edi + 0x40]
push eax
push esi
call fcn.00474bb0
add esp, 0x10
lea eax, [edi + 0xc8]
push dword [edi + 0x148]
push eax
push 0
push 4
push dword [esi]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
js 0x47560f
mov eax, dword [edi + 0x154]
xor ecx, ecx
add eax, 4
cmp dword [edi + 0x14c], eax
lea eax, [edi + 0x38]
push eax
setl cl
lea ecx, [ecx*2 + 1]
mov dword [edi], ecx
call fcn.0043d1a2
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
xor eax, eax
lea esi, [edi + 0x160]
push 4
push esi
mov word [edi + 0x40], ax
mov dword [edi + 0x18], eax
call fcn.00474bd0
movzx eax, word [edi + 0x40]
push eax
push esi
call fcn.00474bb0
add esp, 0x10
lea eax, [edi + 0xc8]
push dword [edi + 0x148]
push eax
push 0
push 4
push dword [esi]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
js 0x47560f
lea eax, [edi + 0x38]
mov dword [edi], 1
push eax
call fcn.0043d1a2
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
movzx eax, word [edi + 0x40]
inc dword [edi + 0x18]
inc eax
push dword [edi + 0x18]
movzx eax, ax
push eax
push str.Timeout_waiting_for_block__d_ACK.__Retries___d_n
push ebx
call fcn.00450ec0
mov eax, dword [edi + 0x18]
add esp, 0x10
cmp eax, dword [edi + 0x20]
jle 0x4755eb
mov dword [edi + 8], 0xffffff9d
xor eax, eax
mov dword [edi], 3
pop edi
pop esi
pop ebx
pop ebp
ret
push dword [edi + 0x148]
lea eax, [edi + 0xc8]
push eax
push 0
push 4
push dword [edi + 0x160]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x475675
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [edi + 0x10]
call fcn.0045f180
push eax
push 0x51439c
push ebx
call fcn.00450e20
add esp, 0x14
mov eax, 0x37
pop edi
pop esi
pop ebx
pop ebp
ret
lea esi, [edi + 0x160]
push 5
push esi
call fcn.00474bd0
movzx eax, word [edi + 0x40]
push eax
push esi
call fcn.00474bb0
add esp, 0x10
lea eax, [edi + 0xc8]
push dword [edi + 0x148]
push eax
push 0
push 4
push dword [esi]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [edi], 3
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
push str.tftp_rx:_internal_error
push 0x51439c
push ebx
call fcn.00450e20
add esp, 0xc
mov eax, 0x47
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x475b60
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx]
mov eax, dword [eax]
cmp edx, 3
ja case.default.0x475b72
jmp dword [edx*4 + 0x475bc8]
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.004756b0
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.00475480
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.00475d70
push str.TFTP_finished
push 0x514eac
push eax
call fcn.00450ec0
add esp, 0xc
xor eax, eax
pop ebp
ret
push str.Internal_state_machine_error
push 0x51439c
push eax
call fcn.00450e20
add esp, 0xc
mov eax, 0x47
pop ebp
ret
Function at 0x476020
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x55b008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.0044a800
add esp, 4
mov byte [ebp - 0x108], 0
test eax, eax
je 0x476084
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp byte [ebp - 0x108], 0
je 0x476084
lea eax, [ebp - 0x108]
push eax
call dword [0x55bacc]
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e191
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0041e191
mov esp, ebp
pop ebp
ret

Function at 0x4760a0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00476020
Function at 0x479630
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x55bac0]
mov edi, eax
add esp, 4
test edi, edi
jne 0x47965d
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x4796a4
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call eax
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
mov eax, dword [esi + 8]
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], ebx
jmp 0x4796aa
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x47970b
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
nop word [eax + eax]
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub dword [ebp + 0x10], 1
jne 0x4796d0
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x479737
mov eax, dword [esi + 4]
push 1
push 0x51bd6c
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x51bd6d
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x479710
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x479760
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
mov byte [edi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [edi + esi - 1], 0
test eax, eax
jne 0x479793
push 0x2e
push edi
call fcn.00484030
add esp, 8
test eax, eax
je 0x479791
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x47e480
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor eax, eax
mov edx, eax
mov ecx, eax
and edx, 1
shr ecx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [eax*4 + 0x568440], ecx
inc eax
cmp eax, 0x100
jb 0x47e482
cmp eax, 0x800
jae 0x47e553
nop
mov edx, dword [eax*4 + 0x568040]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x568440]
mov dword [eax*4 + 0x568440], edx
inc eax
cmp eax, 0x800
jb 0x47e530
mov dword [0x566064], 0x47f2f0
call fcn.0047f120
mov ecx, dword [0x566064]
test eax, eax
mov edx, 0x47f390
cmove ecx, edx
mov dword [0x566064], ecx
ret
Function at 0x47f670
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
sub esp, 0x10
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax]
push ebx
xor ebx, ebx
and eax, 7
cmp ecx, 5
jae 0x47f690
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
add dword [ebp + 0x10], 5
lea edx, [ecx - 4]
push esi
mov esi, dword [ebp + 8]
push edi
or edi, 0xffffffff
add edx, esi
mov dword [ebp - 4], edx
add esi, ebx
mov dword [ebp + 0xc], esi
cmp esi, edx
jae 0x47f6c2
nop dword [eax]
mov cl, byte [esi]
and cl, 0xfe
cmp cl, 0xe8
je 0x47f6bf
inc esi
cmp esi, edx
jb 0x47f6b0
mov dword [ebp + 0xc], esi
mov ebx, esi
sub ebx, dword [ebp + 8]
mov ecx, ebx
sub ecx, edi
cmp esi, edx
jae 0x47f7ec
cmp ecx, 3
jbe 0x47f702
xor eax, eax
mov cl, byte [esi + 4]
mov edi, ebx
mov dword [ebp - 0x10], edi
test cl, cl
je 0x47f740
cmp cl, 0xff
je 0x47f740
mov edx, dword [ebp - 4]
and eax, 3
mov esi, dword [ebp + 8]
add eax, eax
mov ecx, 1
or eax, 1
add ebx, ecx
jmp 0x47f6a4
dec ecx
shl eax, cl
and eax, 7
je 0x47f6da
movzx ecx, byte [eax + 0x51bf80]
mov edx, esi
sub edx, ecx
cmp byte [eax + 0x51bf78], 0
mov cl, byte [edx + 4]
je 0x47f72a
test cl, cl
je 0x47f72a
cmp cl, 0xff
jne 0x47f6da
mov edx, dword [ebp - 4]
and eax, 3
mov esi, dword [ebp + 8]
add eax, eax
mov edi, ebx
or eax, 1
inc ebx
jmp 0x47f6a4
movzx edi, cl
movzx ecx, byte [esi + 3]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 2]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 1]
mov esi, dword [ebp + 0x10]
shl edi, 8
or edi, ecx
cmp dword [ebp + 0x18], 0
je 0x47f76e
lea edx, [edi + ebx]
add edx, esi
jmp 0x47f774
mov edx, edi
sub edx, ebx
sub edx, esi
test eax, eax
je 0x47f7b2
movzx edi, byte [eax + 0x51bf80]
mov ecx, 0x18
shl edi, 3
sub ecx, edi
mov dword [ebp - 0xc], edi
mov edi, edx
shr edi, cl
mov ecx, edi
mov dword [ebp - 8], edi
test cl, cl
je 0x47f79e
cmp cl, 0xff
jne 0x47f7b2
mov ecx, 0x20
mov edi, 1
sub ecx, dword [ebp - 0xc]
shl edi, cl
dec edi
xor edi, edx
jmp 0x47f761
mov esi, dword [ebp + 0xc]
mov ecx, edx
mov edi, dword [ebp - 0x10]
shr ecx, 0x18
and cl, 1
dec cl
mov byte [esi + 1], dl
not cl
mov byte [esi + 4], cl
mov ecx, edx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, edx
mov edx, dword [ebp - 4]
shr ecx, 8
mov byte [esi + 2], cl
mov ecx, 5
mov esi, dword [ebp + 8]
add ebx, ecx
jmp 0x47f6a4
pop edi
pop esi
cmp ecx, 3
jbe 0x47f801
mov ecx, dword [ebp + 0x14]
xor eax, eax
mov dword [ecx], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
dec ecx
shl eax, cl
mov ecx, dword [ebp + 0x14]
and eax, 7
mov dword [ecx], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x481820
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x55b008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x104
mov dword [ebp - 0x10c], eax
mov edi, ecx
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.0042ce60
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x481863
mov eax, dword [esi]
jmp 0x481865
mov eax, esi
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp dword [esi + 0x14], 8
jb 0x481882
mov esi, dword [esi]
push 0
push 0
push eax
lea eax, [ebp - 0x108]
push eax
push 0xffffffffffffffff
push esi
push 0
push 1
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push dword [ebp - 0x10c]
mov ecx, dword [edi + 4]
lea eax, [ebp - 0x108]
push eax
call fcn.00481a10
mov esi, dword [edi + 4]
lea eax, [ebp - 0x10c]
push eax
push 0
push esi
push 0x481920
push 0
push 0
mov dword [ebp - 0x10c], 0
call fcn.00485eb8
add esp, 0x18
mov dword [esi + 0xc], eax
test eax, eax
je 0x4818fc
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4818fc
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xc], 0
mov eax, dword [edi + 4]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, byte [eax + 4]
pop esi
call fcn.0041e191
mov esp, ebp
pop ebp
ret 8
Function at 0x481b10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x509b28
mov eax, dword fs:[0]
push eax
sub esp, 0x630
mov eax, dword [0x55b008]
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, ecx
mov dword [ebp - 0x638], edi
lea eax, [edi + 8]
mov dword [edi], 0
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x63c], edi
jb 0x481b6a
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
mov dword [edi + 0x34], 7
mov dword [edi + 0x30], ecx
cmp dword [edi + 0x34], 8
mov dword [ebp - 4], ecx
jb 0x481b87
mov eax, dword [edi + 0x20]
jmp 0x481b8a
lea eax, [edi + 0x20]
xor ecx, ecx
mov word [eax], cx
lea eax, [edi + 0x38]
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ecx
cmp dword [eax + 0x14], 8
jb 0x481ba4
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
lea ecx, [edi + 0x50]
mov byte [ebp - 4], 2
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x481bc8
mov eax, dword [ecx]
jmp 0x481bca
mov eax, ecx
push 0
push 0x50aa1e
mov byte [eax], 0
call fcn.00417370
push 0
mov byte [ebp - 4], 3
call fcn.0043d1a2
push eax
call fcn.00436e40
push 0x20c
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.0042ce60
add esp, 0x14
lea eax, [ebp - 0x220]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x481c88
xor eax, eax
push 0x412
push eax
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x634]
push eax
call fcn.0042ce60
add esp, 0xc
lea eax, [ebp - 0x634]
push 0x208
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x481c79
test eax, eax
je 0x481c79
add eax, eax
cmp eax, 0x412
jae 0x481c74
xor ecx, ecx
mov word [ebp + eax - 0x634], cx
lea eax, [ebp - 0x634]
jmp 0x481c7f
call fcn.0041e7c1
lea eax, [ebp - 0x220]
push eax
lea ecx, [edi + 0x20]
call fcn.00481de0
mov eax, dword [edi + 0x30]
test eax, eax
je 0x481cb4
cmp dword [edi + 0x34], 8
jb 0x481c9a
mov ecx, dword [edi + 0x20]
jmp 0x481c9d
lea ecx, [edi + 0x20]
cmp word [ecx + eax*2 - 2], 0x5c
je 0x481cb4
push 1
push 0x50a514
lea ecx, [edi + 0x20]
call fcn.00418d20
cmp dword [edi + 0x30], 0
jne 0x481cc9
push 3
push 0x51bfec
lea ecx, [edi + 0x20]
call fcn.00418960
mov dword [edi + 4], 0
mov eax, edi
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.0041e191
mov esp, ebp
pop ebp
ret
Function at 0x483510
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 4]
sub esp, 8
test eax, eax
je 0x48354e
push 0
lea ecx, [ebp - 8]
mov dword [ebp - 4], 0
push ecx
lea ecx, [ebp - 4]
mov dword [ebp - 8], 4
push ecx
push 0x20000005
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x48354e
mov eax, dword [ebp - 4]
xor edx, edx
mov esp, ebp
pop ebp
ret
xor eax, eax
xor edx, edx
mov esp, ebp
pop ebp
ret

Function at 0x49bb10
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x9c
call fcn.0044e6b0
mov eax, dword [0x55b008]
xor eax, esp
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0xa0]
push ebx
mov dword [esp + 0x18], eax
xor ebx, ebx
mov eax, dword [esp + 0xa8]
push ebp
push esi
mov esi, dword [esp + 0xb8]
mov eax, dword [eax + 4]
push edi
mov edi, dword [esp + 0xb8]
mov dword [esp + 0x10], eax
sub eax, edi
mov dword [esp + 0x14], eax
cmp esi, edi
jae 0x49bb76
push str.orig_len___md_size
push 0x113
push str.._ssl_s3_cbc.c
call fcn.004acbd0
add esp, 0xc
cmp edi, 0x40
jbe 0x49bb92
push str.md_size___EVP_MAX_MD_SIZE
push 0x114
push str.._ssl_s3_cbc.c
call fcn.004acbd0
add esp, 0xc
lea eax, [esp + 0x28]
neg eax
lea ebp, [esp + 0x28]
and eax, 0x3f
add ebp, eax
lea eax, [edi + 0x100]
cmp esi, eax
jbe 0x49bbb5
mov ebx, esi
sub ebx, edi
sub ebx, 0x100
mov eax, edi
xor edx, edx
and eax, 0xfffffffe
shl eax, 0x17
sub eax, ebx
add eax, dword [esp + 0x14]
div edi
push edi
mov esi, edx
push 0
push ebp
mov dword [esp + 0x2c], esi
call fcn.0042ce60
xor ecx, ecx
add esp, 0xc
mov dword [esp + 0x18], ecx
cmp ebx, dword [esp + 0xbc]
jae 0x49bc6f
mov eax, dword [esp + 0xb4]
mov edx, ebx
mov esi, dword [esp + 0x10]
sub edx, esi
mov edi, esi
mov dword [esp + 0x10], edx
sub edi, dword [esp + 0x14]
mov eax, dword [eax + 0xc]
add eax, esi
mov dword [esp + 0x14], edi
mov esi, dword [esp + 0xbc]
mov dword [esp + 0x1c], eax
sub esi, ebx
nop dword [eax + eax]
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
add ebx, edx
mov edi, dword [esp + 0x1c]
not edx
sar edx, 0x1f
not ebx
not dl
sar ebx, 0x1f
mov al, byte [edi + eax]
mov edi, dword [esp + 0xb8]
and dl, al
and dl, bl
or byte [ecx + ebp], dl
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
inc ecx
mov eax, ecx
inc edx
sub eax, edi
mov dword [esp + 0x10], edx
sar eax, 0x1f
and ecx, eax
mov dword [esp + 0x18], ecx
sub esi, 1
jne 0x49bc20
mov esi, dword [esp + 0x20]
xor ecx, ecx
test edi, edi
je 0x49bc9e
mov edx, dword [esp + 0x24]
nop dword [eax]
mov eax, esi
xor eax, 0x20
mov al, byte [eax + ebp]
movzx eax, byte [esi + ebp]
inc esi
mov byte [edx + ecx], al
mov eax, esi
sub eax, edi
inc ecx
sar eax, 0x1f
and esi, eax
cmp ecx, edi
jb 0x49bc80
mov ecx, dword [esp + 0xa8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041e191
add esp, 0x9c
ret
Function at 0x49c5a0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov eax, dword [edx]
inc ebp
push edi
cmp eax, 0x302
jge 0x49c5cb
cmp eax, 0x100
je 0x49c5cb
mov esi, dword [esp + 0x14]
cmp ebp, dword [esi + 4]
jbe 0x49c5e8
pop edi
pop esi
xor eax, eax
pop ebp
ret
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
lea eax, [ecx + ebp]
mov edi, dword [esi + 4]
cmp eax, edi
ja 0x49c5c5
add dword [esi + 0xc], ecx
add dword [esi + 0x10], ecx
sub edi, ecx
mov dword [esi + 4], edi
test dword [edx + 0x100], 0x200
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 4]
push ebx
movzx ebx, byte [ecx + eax - 1]
je 0x49c62d
cmp dword [edx + 0x88], 0
jne 0x49c62d
mov eax, dword [edx + 0x58]
cmp dword [eax + 8], 0
jne 0x49c620
cmp dword [eax + 0xc], 0
jne 0x49c620
test bl, 1
jne 0x49c620
or dword [eax], 8
mov eax, dword [edx + 0x58]
test byte [eax], 8
je 0x49c62d
test ebx, ebx
je 0x49c62d
dec ebx
mov eax, dword [edx + 0x80]
push dword [eax]
call fcn.004b97d0
add esp, 4
test eax, 0x200000
je 0x49c656
or eax, 0xffffffff
sub eax, ebx
add dword [esi + 4], eax
mov eax, 1
pop ebx
pop edi
pop esi
pop ebp
ret
mov edi, dword [esi + 4]
mov ecx, 0xff
mov edx, edi
mov dword [esp + 0x20], edi
sub edx, ebx
sub edx, ebp
not edx
lea eax, [edi - 1]
sar edx, 0x1f
cmp eax, ecx
cmovb ecx, eax
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x49c6b7
mov ebp, dword [esp + 0x20]
mov edi, ebx
dec ebp
add ebp, dword [esi + 0xc]
mov esi, ecx
nop dword [eax]
mov eax, edi
lea ebp, [ebp - 1]
not eax
dec edi
sar eax, 0x1f
movzx ecx, al
movzx eax, byte [ebp + 1]
xor eax, ebx
and ecx, eax
not ecx
and edx, ecx
sub esi, 1
jne 0x49c690
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x20]
mov eax, edx
shr eax, 4
and edx, eax
mov eax, edx
shr eax, 2
and edx, eax
lea eax, [ebx + 1]
pop ebx
lea ecx, [edx + edx]
and ecx, edx
shl ecx, 0x1e
sar ecx, 0x1f
and eax, ecx
sub edi, eax
shl eax, 8
or dword [esi], eax
mov eax, ecx
mov dword [esi + 4], edi
and eax, 1
pop edi
not ecx
pop esi
or eax, ecx
pop ebp
ret
Function at 0x49ce90
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10
call fcn.0044e6b0
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
xor edi, edi
push eax
lea eax, [esp + 0x14]
xor esi, esi
push eax
push edi
call fcn.0048adb0
add esp, 0xc
test eax, eax
je 0x49ceeb
nop dword [eax]
mov ecx, dword [esp + 0x10]
lea eax, [esi + 1]
shl ecx, 0xa
inc edi
and ecx, dword [esp + 0x24]
cmove eax, esi
mov esi, eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
push edi
call fcn.0048adb0
add esp, 0xc
test eax, eax
jne 0x49cec0
mov eax, dword [esp + 0x54]
cdq
idiv esi
mov edi, dword [esp + 0x60]
cmp esi, 1
mov ebp, dword [esp + 0x58]
mov esi, 0
cmovne esi, dword [esp + 0x54]
push edi
push 0
push ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x60], esi
call fcn.0042ce60
lea eax, [esp + 0x20]
mov dword [esp + 0x28], 0
push eax
lea eax, [esp + 0x20]
push eax
push 0
call fcn.0048adb0
add esp, 0x18
test eax, eax
je 0x49d066
mov ebx, dword [esp + 0x5c]
mov eax, dword [esp + 0x10]
shl eax, 0xa
test dword [esp + 0x24], eax
je 0x49d042
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x49d073
push edi
push ebx
push dword [esp + 0x54]
and esi, 1
push dword [esp + 0x54]
add esi, dword [esp + 0x28]
push dword [esp + 0x54]
push dword [esp + 0x54]
push dword [esp + 0x54]
push dword [esp + 0x54]
push dword [esp + 0x54]
push dword [esp + 0x54]
push dword [esp + 0x54]
push dword [esp + 0x54]
push esi
mov esi, dword [esp + 0x84]
push esi
push ecx
call fcn.0049d0a0
add esp, 0x3c
test eax, eax
je 0x49d091
add esi, dword [esp + 0x18]
xor ecx, ecx
mov dword [esp + 0x50], esi
test edi, edi
jle 0x49d03e
cmp edi, 0x20
jb 0x49d01b
lea eax, [ebx - 1]
lea edx, [ebp - 1]
add eax, edi
add edx, edi
cmp ebp, eax
ja 0x49cfd1
cmp edx, ebx
jae 0x49d01b
mov eax, edi
and eax, 0x8000001f
jns 0x49cfdf
dec eax
or eax, 0xffffffe0
inc eax
mov edx, edi
mov esi, ebx
sub edx, eax
mov eax, ebp
sub esi, ebp
nop dword [eax]
movups xmm0, xmmword [eax]
lea eax, [eax + 0x20]
movups xmm1, xmmword [esi + eax - 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
movups xmm1, xmmword [ebx + ecx + 0x10]
add ecx, 0x20
movups xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movups xmmword [eax - 0x10], xmm1
cmp ecx, edx
jl 0x49cff0
cmp ecx, edi
jge 0x49d03e
mov esi, ebx
lea eax, [ecx + ebp]
mov edx, edi
sub esi, ebp
sub edx, ecx
nop word [eax + eax]
mov cl, byte [eax + esi]
lea eax, [eax + 1]
xor byte [eax - 1], cl
sub edx, 1
jne 0x49d030
mov esi, dword [esp + 0x54]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
inc eax
push ecx
push eax
mov dword [esp + 0x28], eax
call fcn.0048adb0
add esp, 0xc
test eax, eax
jne 0x49cf40
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push 0x114
push str.._ssl_t1_enc.c
push 0x146
push 0x11c
push 0x14
call fcn.004a98d0
add esp, 0x14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
Function at 0x4a9da0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x474
call fcn.0044e6b0
mov eax, dword [0x55b008]
xor eax, esp
mov dword [esp + 0x470], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x44], ebx
test edi, edi
jne 0x4a9de5
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.0041e191
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x48]
push eax
push edi
call fcn.004859e2
add esp, 8
test eax, eax
js 0x4a9dce
mov eax, 8
call fcn.0044e6b0
xorps xmm0, xmm0
lea eax, [esp + 0x50]
movsd qword [esp], xmm0
push 0x30
push eax
call fcn.004a9ee0
mov esi, dword [ebp + 0xc]
add esp, 0x10
test esi, esi
je 0x4a9dce
push 0x50bcbc
push edi
call fcn.0043d3ec
add esp, 8
mov dword [esp + 0x40], eax
test eax, eax
je 0x4a9ec1
nop dword [eax]
mov edi, 0x400
test esi, esi
jle 0x4a9e4e
cmp esi, edi
cmovl edi, esi
push eax
push edi
lea eax, [esp + 0x80]
push 1
push eax
call fcn.00484b92
mov ebx, eax
add esp, 0x10
test ebx, ebx
jle 0x4a9ea2
movd xmm0, ebx
mov eax, 8
cvtdq2pd xmm0, xmm0
call fcn.0044e6b0
lea eax, [esp + 0x80]
movsd qword [esp], xmm0
push edi
push eax
call fcn.004a9ee0
add dword [esp + 0x54], ebx
add esp, 0x10
mov eax, dword [esp + 0x40]
test esi, esi
jle 0x4a9e40
sub esi, edi
test esi, esi
jg 0x4a9e40
push dword [esp + 0x40]
call fcn.0043c11b
lea eax, [esp + 0x7c]
push 0x400
push eax
call fcn.004012d0
mov ebx, dword [esp + 0x50]
add esp, 0xc
mov ecx, dword [esp + 0x47c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041e191
mov esp, ebp
pop ebp
ret