joyce8/EMBER2024-capa huggingface dataset:
Function at 0x473c20
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.0x473c3d.4
jmp dword [eax*4 + 0x473e3c]
lea eax, [edi + 0x15c]
push eax
call fcn.00473310
movzx ecx, ax
add esp, 4
movzx eax, word [edi + 0x40]
inc eax
movzx eax, ax
cmp eax, ecx
je 0x473c79
push eax
push ecx
push str.Received_unexpected_DATA_packet_block__d__expecting_block__d_n
push ebx
call fcn.0044f650
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.00473370
movzx eax, word [edi + 0x40]
push eax
push esi
call fcn.00473350
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 0x473daf
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.004355a3
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.00473370
movzx eax, word [edi + 0x40]
push eax
push esi
call fcn.00473350
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 0x473daf
lea eax, [edi + 0x38]
mov dword [edi], 1
push eax
call fcn.004355a3
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.0044f650
mov eax, dword [edi + 0x18]
add esp, 0x10
cmp eax, dword [edi + 0x20]
jle 0x473d8b
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 0x473e15
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [edi + 0x10]
call fcn.0045d910
push eax
push 0x5101fc
push ebx
call fcn.0044f5b0
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.00473370
movzx eax, word [edi + 0x40]
push eax
push esi
call fcn.00473350
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 0x5101fc
push ebx
call fcn.0044f5b0
add esp, 0xc
mov eax, 0x47
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x474300
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.0x474312
jmp dword [edx*4 + 0x474368]
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.00473e50
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.00473c20
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.00474510
push str.TFTP_finished
push 0x510504
push eax
call fcn.0044f650
add esp, 0xc
xor eax, eax
pop ebp
ret
push str.Internal_state_machine_error
push 0x5101fc
push eax
call fcn.0044f5b0
add esp, 0xc
mov eax, 0x47
pop ebp
ret
Function at 0x4747c0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x556008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.004498f0
add esp, 4
mov byte [ebp - 0x108], 0
test eax, eax
je 0x474824
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp byte [ebp - 0x108], 0
je 0x474824
lea eax, [ebp - 0x108]
push eax
call dword [0x556c5c]
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041ea4f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0041ea4f
mov esp, ebp
pop ebp
ret

Function at 0x474840
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004747c0
Function at 0x477dd0
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 [0x556c50]
mov edi, eax
add esp, 4
test edi, edi
jne 0x477dfd
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 0x477e44
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 0x477e4a
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 0x477eab
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 0x477e70
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x477ed7
mov eax, dword [esi + 4]
push 1
push 0x5173f4
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x5173f5
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x477eb0
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x477f00
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 0x477f33
push 0x2e
push edi
call fcn.0047ff10
add esp, 8
test eax, eax
je 0x477f31
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x47cc20
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 + 0x563da0], ecx
inc eax
cmp eax, 0x100
jb 0x47cc22
cmp eax, 0x800
jae 0x47ccf3
nop
mov edx, dword [eax*4 + 0x5639a0]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x563da0]
mov dword [eax*4 + 0x563da0], edx
inc eax
cmp eax, 0x800
jb 0x47ccd0
mov dword [0x561a40], 0x47da90
call fcn.0047d8c0
mov ecx, dword [0x561a40]
test eax, eax
mov edx, 0x47db30
cmove ecx, edx
mov dword [0x561a40], ecx
ret
Function at 0x47de10
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 0x47de30
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 0x47de62
nop dword [eax]
mov cl, byte [esi]
and cl, 0xfe
cmp cl, 0xe8
je 0x47de5f
inc esi
cmp esi, edx
jb 0x47de50
mov dword [ebp + 0xc], esi
mov ebx, esi
sub ebx, dword [ebp + 8]
mov ecx, ebx
sub ecx, edi
cmp esi, edx
jae 0x47df8c
cmp ecx, 3
jbe 0x47dea2
xor eax, eax
mov cl, byte [esi + 4]
mov edi, ebx
mov dword [ebp - 0x10], edi
test cl, cl
je 0x47dee0
cmp cl, 0xff
je 0x47dee0
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 0x47de44
dec ecx
shl eax, cl
and eax, 7
je 0x47de7a
movzx ecx, byte [eax + 0x517608]
mov edx, esi
sub edx, ecx
cmp byte [eax + 0x517600], 0
mov cl, byte [edx + 4]
je 0x47deca
test cl, cl
je 0x47deca
cmp cl, 0xff
jne 0x47de7a
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 0x47de44
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 0x47df0e
lea edx, [edi + ebx]
add edx, esi
jmp 0x47df14
mov edx, edi
sub edx, ebx
sub edx, esi
test eax, eax
je 0x47df52
movzx edi, byte [eax + 0x517608]
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 0x47df3e
cmp cl, 0xff
jne 0x47df52
mov ecx, 0x20
mov edi, 1
sub ecx, dword [ebp - 0xc]
shl edi, cl
dec edi
xor edi, edx
jmp 0x47df01
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 0x47de44
pop edi
pop esi
cmp ecx, 3
jbe 0x47dfa1
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 0x4976c0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x9c
call fcn.0044d7a0
mov eax, dword [0x556008]
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 0x497726
push str.orig_len___md_size
push 0x113
push str.._ssl_s3_cbc.c
call fcn.004a87c0
add esp, 0xc
cmp edi, 0x40
jbe 0x497742
push str.md_size___EVP_MAX_MD_SIZE
push 0x114
push str.._ssl_s3_cbc.c
call fcn.004a87c0
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 0x497765
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.0042c0b0
xor ecx, ecx
add esp, 0xc
mov dword [esp + 0x18], ecx
cmp ebx, dword [esp + 0xbc]
jae 0x49781f
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 0x4977d0
mov esi, dword [esp + 0x20]
xor ecx, ecx
test edi, edi
je 0x49784e
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 0x497830
mov ecx, dword [esp + 0xa8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041ea4f
add esp, 0x9c
ret
Function at 0x498150
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 0x49817b
cmp eax, 0x100
je 0x49817b
mov esi, dword [esp + 0x14]
cmp ebp, dword [esi + 4]
jbe 0x498198
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 0x498175
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 0x4981dd
cmp dword [edx + 0x88], 0
jne 0x4981dd
mov eax, dword [edx + 0x58]
cmp dword [eax + 8], 0
jne 0x4981d0
cmp dword [eax + 0xc], 0
jne 0x4981d0
test bl, 1
jne 0x4981d0
or dword [eax], 8
mov eax, dword [edx + 0x58]
test byte [eax], 8
je 0x4981dd
test ebx, ebx
je 0x4981dd
dec ebx
mov eax, dword [edx + 0x80]
push dword [eax]
call fcn.004ae4b0
add esp, 4
test eax, 0x200000
je 0x498206
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 0x498267
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 0x498240
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 0x498a40
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10
call fcn.0044d7a0
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.00486940
add esp, 0xc
test eax, eax
je 0x498a9b
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.00486940
add esp, 0xc
test eax, eax
jne 0x498a70
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.0042c0b0
lea eax, [esp + 0x20]
mov dword [esp + 0x28], 0
push eax
lea eax, [esp + 0x20]
push eax
push 0
call fcn.00486940
add esp, 0x18
test eax, eax
je 0x498c16
mov ebx, dword [esp + 0x5c]
mov eax, dword [esp + 0x10]
shl eax, 0xa
test dword [esp + 0x24], eax
je 0x498bf2
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x498c23
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.00498c50
add esp, 0x3c
test eax, eax
je 0x498c41
add esi, dword [esp + 0x18]
xor ecx, ecx
mov dword [esp + 0x50], esi
test edi, edi
jle 0x498bee
cmp edi, 0x20
jb 0x498bcb
lea eax, [ebx - 1]
lea edx, [ebp - 1]
add eax, edi
add edx, edi
cmp ebp, eax
ja 0x498b81
cmp edx, ebx
jae 0x498bcb
mov eax, edi
and eax, 0x8000001f
jns 0x498b8f
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 0x498ba0
cmp ecx, edi
jge 0x498bee
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 0x498be0
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.00486940
add esp, 0xc
test eax, eax
jne 0x498af0
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.004a54b0
add esp, 0x14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
Function at 0x4a5990
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x474
call fcn.0044d7a0
mov eax, dword [0x556008]
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 0x4a59d5
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.0041ea4f
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x48]
push eax
push edi
call fcn.00481605
add esp, 8
test eax, eax
js 0x4a59be
mov eax, 8
call fcn.0044d7a0
xorps xmm0, xmm0
lea eax, [esp + 0x50]
movsd qword [esp], xmm0
push 0x30
push eax
call fcn.004a5ad0
mov esi, dword [ebp + 0xc]
add esp, 0x10
test esi, esi
je 0x4a59be
push 0x50ecd4
push edi
call fcn.0043c5fc
add esp, 8
mov dword [esp + 0x40], eax
test eax, eax
je 0x4a5ab1
nop dword [eax]
mov edi, 0x400
test esi, esi
jle 0x4a5a3e
cmp esi, edi
cmovl edi, esi
push eax
push edi
lea eax, [esp + 0x80]
push 1
push eax
call fcn.004807b5
mov ebx, eax
add esp, 0x10
test ebx, ebx
jle 0x4a5a92
movd xmm0, ebx
mov eax, 8
cvtdq2pd xmm0, xmm0
call fcn.0044d7a0
lea eax, [esp + 0x80]
movsd qword [esp], xmm0
push edi
push eax
call fcn.004a5ad0
add dword [esp + 0x54], ebx
add esp, 0x10
mov eax, dword [esp + 0x40]
test esi, esi
jle 0x4a5a30
sub esi, edi
test esi, esi
jg 0x4a5a30
push dword [esp + 0x40]
call fcn.0043b3ec
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.0041ea4f
mov esp, ebp
pop ebp
ret
Function at 0x4a8680
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x10c
call fcn.0044d7a0
mov eax, dword [0x556008]
xor eax, esp
mov dword [esp + 0x108], eax
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x4a86f3
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x4a86f3
mov esi, dword [esp + 0x114]
call fcn.00504600
lea ecx, [esp + 0x118]
add eax, 8
push ecx
push 0
push esi
push eax
call fcn.00419540
push dword [eax + 4]
push dword [eax]
call fcn.00431ac8
add esp, 0x18
pop esi
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0041ea4f
add esp, 0x10c
ret
lea eax, [esp + 0x118]
push eax
push 0
push dword [esp + 0x11c]
lea eax, [esp + 0x14]
push 0xff
push eax
call fcn.00419540
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.00431b66
add esp, 0x1c
mov byte [esp + 0x107], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x4a8790
call fcn.004a8540
test eax, eax
jle 0x4a8790
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
mov esi, eax
lea eax, [esp + 0xc]
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0041ea4f
add esp, 0x10c
ret
push 0x10
push str.OpenSSL:_FATAL
lea eax, [esp + 0x10]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x10c]
pop esi
xor ecx, esp
call fcn.0041ea4f
add esp, 0x10c
ret

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

Disassembly:
push esi
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov edi, dword [esp + 0xc]
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [edi + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
push 0xf
push edi
mov esi, eax
call fcn.0049c030
add esp, 8
test esi, esi
jg 0x4a8957
je 0x4a8939
cmp esi, 0xffffffff
jne 0x4a8957
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.004a8b60
add esp, 4
test eax, eax
je 0x4a8957
push 0xa
push edi
call fcn.0049c730
add esp, 8
pop edi
mov eax, esi
pop esi
ret
Function at 0x4aefe0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20
call fcn.0044d7a0
mov eax, dword [0x556008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4af005
push 0
sub ecx, edx
mov dword [ebp - 0x1c], 8
push 0
lea eax, [ecx + 1]
push eax
push edi
push 8
push 0xfde9
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
jg 0x4af070
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3ec
jne 0x4af063
push 0
push 0
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], 0
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
jg 0x4af070
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x459
jmp 0x4af0ec
lea eax, [esi + esi]
call fcn.0044e110
mov eax, esp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
push edi
push dword [ebp - 0x1c]
push 0xfde9
call esi
test eax, eax
je 0x4af14b
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4af0a0
push 8
sub ecx, edx
lea eax, [ebp - 0x14]
push eax
lea eax, [ecx + 1]
push eax
push ebx
push 0
push 0xfde9
call esi
test eax, eax
je 0x4af14b
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x20]
call fcn.0043c5da
mov esi, eax
add esp, 8
test esi, esi
jne 0x4af0fe
call fcn.00435bb5
cmp dword [eax], 2
je 0x4af0ee
call fcn.00435bb5
cmp dword [eax], 9
jne 0x4af14b
push ebx
push edi
call fcn.0043c5fc
mov esi, eax
add esp, 8
test esi, esi
je 0x4af14b
push 0x559f48
call fcn.0049c400
mov edi, eax
add esp, 4
test edi, edi
jne 0x4af11f
push esi
call fcn.0043b3ec
add esp, 4
jmp 0x4af1b3
push 0
push edi
call fcn.0049c030
push esi
push 1
push 0x6a
push edi
call fcn.0049c060
add esp, 0x18
mov eax, edi
lea esp, [ebp - 0x2c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041ea4f
mov esp, ebp
pop ebp
ret
push 0xa9
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.004a54b0
push 0x51c9ec
push ebx
push 0x532f74
push edi
push str.fopen_
push 5
call fcn.004a4a90
add esp, 0x2c
call fcn.00435bb5
cmp dword [eax], 2
jne 0x4af19b
push 0xac
push str..crypto_bio_bss_file.c
push 0x80
jmp 0x4af1a7
push 0xae
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.004a54b0
add esp, 0x14
xor eax, eax
lea esp, [ebp - 0x2c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041ea4f
mov esp, ebp
pop ebp
ret