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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x623fcc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x88]
push edi
push ecx
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x88], 0x80
mov eax, dword [esi + 0x194]
or edi, 0xffffffff
mov ebx, dword [esi]
push ecx
push eax
mov dword [ebp - 0x8c], eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x571662
lea eax, [ebp - 0x88]
mov dword [ebp - 0x88], 0x80
push eax
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x8c]
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
push dword [ebp - 0x8c]
push esi
call fcn.0055f1d7
pop ecx
pop ecx
cmp edi, 0xffffffff
jne 0x571687
push str.Error_accept__ing_server_connect
push ebx
call fcn.0055eacb
pop ecx
pop ecx
push 0x1e
pop eax
jmp 0x5716da
push str.Connection_accepted_from_server_n
push ebx
call fcn.0055eb66
push 1
mov byte [esi + 0x360], 0
push edi
mov dword [esi + 0x194], edi
call fcn.0057c26f
mov byte [esi + 0x1a1], 1
add esp, 0x10
mov eax, dword [ebx + 0x198]
test eax, eax
je 0x5716d8
push 1
push edi
push dword [ebx + 0x19c]
call eax
add esp, 0xc
test eax, eax
je 0x5716d8
push esi
call fcn.00571aaa
pop ecx
push 0x2a
jmp 0x571684
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054f54f
leave
ret

Function at 0x573646
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
lea eax, [ecx - 0xc8]
mov edx, dword [edi]
cmp eax, 0x64
jb 0x573672
push str.Couldnt_set_desired_mode
push edx
call fcn.0055eacb
pop ecx
pop ecx
push 0x11
pop eax
jmp 0x5736c3
cmp ecx, 0xc8
je 0x573689
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push edx
call fcn.0055eb66
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp eax, 0x13
jne 0x573699
push edi
call fcn.0057341a
jmp 0x5736be
cmp eax, 0x14
jne 0x5736a6
push edi
call fcn.005726f0
jmp 0x5736be
cmp eax, 0x15
jne 0x5736b3
push edi
call fcn.00573406
jmp 0x5736be
cmp eax, 0x16
jne 0x5736c1
push edi
call fcn.00573551
mov esi, eax
pop ecx
mov eax, esi
pop edi
pop esi
pop ebp
ret
Function at 0x576e2d
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x623fcc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x194]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x576e68
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.0055eacb
add esp, 0xc
jmp 0x576e90
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x576e83
shr eax, 8
test al, al
jne 0x576e83
xor eax, eax
jmp 0x576e93
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.0055eacb
pop ecx
pop ecx
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0054f54f
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push 0
mov byte [ebp + 0xa], al
lea eax, [ebp + 8]
mov edi, dword [esi]
push 3
push eax
push dword [esi + 0x190]
mov byte [ebp + 8], 0xff
mov byte [ebp + 9], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x5775fd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.0055eacb
add esp, 0xc
push dword [ebp + 0x10]
push ebx
push str.SENT
push dword [esi]
call fcn.00576f59
add esp, 0x10
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x5776c1
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0x1f
mov eax, dword [ebp + 8]
push ebx
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov ebx, dword [eax + 0x114]
jne 0x57780f
push edi
lea eax, [ebx + 0x1cb0]
lea edi, [ebx + 0x1eb0]
mov dword [edi], eax
cmp eax, edi
jae 0x57770c
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x57770c
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x57770c
mov byte [eax], 0x1f
inc dword [edi]
movzx eax, word [ebx + 0x1ca8]
push esi
mov esi, dword [sym.imp.WS2_32.dll_htons]
push eax
call esi
movzx eax, ax
mov dword [ebp + 0xc], eax
movzx eax, word [ebx + 0x1caa]
push eax
call esi
mov edx, dword [ebp + 0xc]
movzx ecx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x577775
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x577775
mov byte [eax], dh
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x577775
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x577775
shr ecx, 8
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x577775
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x577775
mov byte [eax], 0xf0
mov eax, dword [edi]
inc eax
mov dword [ebx + 0x1eb4], eax
lea esi, [ebx + 0x1cb0]
sub eax, esi
mov dword [edi], esi
mov edi, dword [ebp - 4]
sub eax, 2
push eax
lea eax, [ebx + 0x1cb2]
push eax
push 0x3e
push edi
call fcn.00577040
add esp, 0x10
push 0
push 3
push esi
mov esi, dword [ebp + 8]
push dword [esi + 0x190]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x5777cb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.0055eacb
add esp, 0xc
push 4
lea eax, [ebx + 0x1cb3]
push eax
push esi
call fcn.00577615
add esp, 0xc
lea eax, [ebx + 0x1cb7]
push 0
push 2
push eax
push dword [esi + 0x190]
call dword [sym.imp.WS2_32.dll_send]
pop esi
test eax, eax
jns 0x57780e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.0055eacb
add esp, 0xc
pop edi
pop ebx
leave
ret
Function at 0x577939
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90c
mov eax, dword [0x623fcc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x104]
push esi
push edi
mov esi, 0x80
mov dword [ebp - 0x908], ebx
push esi
push 0
push eax
call fcn.00583860
push esi
lea eax, [ebp - 0x84]
push 0
push eax
call fcn.00583860
mov edi, dword [ebx]
mov dword [ebp - 0x90c], edi
mov ebx, dword [edi + 0x114]
mov eax, dword [ebx + 0x1eb4]
sub eax, dword [ebx + 0x1eb0]
add eax, 2
push eax
lea eax, [ebx + 0x1cb0]
push eax
push 0x3c
push edi
call fcn.00577040
mov eax, dword [ebx + 0x1eb0]
add esp, 0x28
mov cl, byte [eax]
inc eax
mov dword [ebx + 0x1eb0], eax
cmp cl, 0x18
je 0x577b05
cmp cl, 0x23
je 0x577ae4
cmp cl, 0x27
jne 0x577b8e
push 0
push 0x27
push 0xfa
push 0xff
push str._c_c_c_c
lea eax, [ebp - 0x904]
push 0x800
push eax
call fcn.00568869
mov ebx, dword [ebx + 0x1cac]
add esp, 0x1c
push 4
pop esi
test ebx, ebx
je 0x577a7e
push dword [ebx]
call fcn.00596af0
lea edi, [esi + 1]
add edi, eax
pop ecx
cmp edi, 0x7fa
jae 0x577a71
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x104]
push eax
push str._127_____127s
push dword [ebx]
call fcn.005560a8
add esp, 0x10
test eax, eax
je 0x577a71
lea eax, [ebp - 0x84]
push eax
push 1
lea eax, [ebp - 0x104]
push eax
push 0
mov eax, 0x800
sub eax, esi
push str._c_s_c_s
push eax
lea eax, [ebp - 0x904]
add eax, esi
push eax
call fcn.00568869
add esp, 0x1c
mov esi, edi
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x577a09
mov edi, dword [ebp - 0x90c]
push 0xf0
push 0xff
mov eax, 0x800
sub eax, esi
push str._c_c
push eax
lea eax, [ebp - 0x904]
add eax, esi
push eax
call fcn.00568869
add esp, 0x14
lea eax, [esi + 2]
push 0
push eax
lea eax, [ebp - 0x904]
push eax
mov eax, dword [ebp - 0x908]
push dword [eax + 0x190]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x577ade
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.0055eacb
add esp, 0xc
push esi
jmp 0x577b7c
lea esi, [ebx + 0x1c28]
push esi
call fcn.00596af0
push 0xf0
lea ebx, [eax + 6]
mov eax, 0xff
push eax
push esi
push 0
push 0x23
jmp 0x577b24
lea esi, [ebx + 0x1c08]
push esi
call fcn.00596af0
push 0xf0
lea ebx, [eax + 6]
mov eax, 0xff
push eax
push esi
push 0
push 0x18
push 0xfa
push eax
push str._c_c_c_c_s_c_c
lea eax, [ebp - 0x904]
push 0x800
push eax
call fcn.00568869
add esp, 0x2c
lea eax, [ebp - 0x904]
push 0
push ebx
push eax
mov eax, dword [ebp - 0x908]
push dword [eax + 0x190]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x577b78
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.0055eacb
add esp, 0xc
lea eax, [ebx - 2]
push eax
lea eax, [ebp - 0x902]
push eax
push 0x3e
push edi
call fcn.00577040
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054f54f
leave
ret
Function at 0x578647
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x623fcc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, dword [eax + 0x5c0]
mov edi, dword [eax]
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0x88], 0x80
lea eax, [ebp - 0x84]
push eax
mov eax, dword [esi + 0x154]
lea ebx, [esi + 0x15c]
push 0
add eax, 4
push eax
push dword [ebx]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x5786da
push dword [ebp - 0x88]
lea eax, [ebp - 0x84]
push eax
lea eax, [esi + 0xc8]
push eax
call fcn.005839c0
mov eax, dword [ebp - 0x88]
add esp, 0xc
mov dword [esi + 0x148], eax
mov edx, dword [esi + 0x14c]
cmp edx, 4
jge 0x57870a
push str.Received_too_short_packet
push edi
call fcn.0055eacb
pop ecx
pop ecx
mov dword [esi + 0xc], 7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054f54f
leave
ret
push ebx
call fcn.00578310
movzx eax, ax
mov dword [esi + 0xc], eax
pop ecx
sub eax, 3
je 0x578783
sub eax, 1
je 0x5787e9
sub eax, 1
je 0x578761
sub eax, 1
je 0x578744
push str.Internal_error:_Unexpected_packet
push 0x5ed7a4
push edi
call fcn.0055eacb
jmp 0x5787e6
lea eax, [edx - 2]
push eax
mov eax, dword [ebx]
add eax, 2
push eax
push esi
call fcn.0057846a
add esp, 0xc
test eax, eax
je 0x5787e9
jmp 0x5786fb
push ebx
call fcn.005782f7
movzx eax, ax
mov dword [esi + 8], eax
mov eax, dword [ebx]
add eax, 4
push eax
push 0x5ecab8
push edi
call fcn.0055eb66
add esp, 0x10
jmp 0x5787e9
cmp edx, 4
jle 0x5787e9
push ebx
call fcn.005782f7
pop ecx
movzx ecx, word [esi + 0x40]
inc ecx
cmp cx, ax
jne 0x5787e9
lea eax, [edx - 4]
push eax
mov eax, dword [ebx]
add eax, 4
push eax
push 1
push dword [ebp - 0x8c]
call fcn.0055e9e1
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x5787ca
push 5
push esi
call fcn.00578e4e
pop ecx
pop ecx
mov eax, ebx
jmp 0x5786fb
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [edi + 0x70], eax
adc dword [edi + 0x74], edx
push dword [edi + 0x74]
push dword [edi + 0x70]
push edi
call fcn.00566864
add esp, 0xc
push dword [ebp - 0x8c]
call fcn.00566b95
pop ecx
test eax, eax
je 0x5786f9
push 5
push esi
call fcn.00578e4e
pop ecx
pop ecx
push 0x2a
pop eax
jmp 0x5786fb
Function at 0x57880f
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 3
pop esi
mov eax, dword [edi + 0x10]
mov ebx, dword [eax]
mov eax, dword [ebp + 0xc]
sub eax, esi
je 0x57894f
dec eax
sub eax, 1
je 0x57890d
sub eax, 1
je 0x5788b9
sub eax, 1
je 0x578859
push str.tftp_rx:_internal_error
push 0x5ed7a4
push ebx
call fcn.0055eacb
add esp, 0xc
push 0x47
jmp 0x5789f2
inc dword [edi + 0x18]
movzx eax, word [edi + 0x40]
push dword [edi + 0x18]
inc eax
movzx eax, ax
push eax
push str.Timeout_waiting_for_block__d_ACK.__Retries___d_n
push ebx
call fcn.0055eb66
mov eax, dword [edi + 0x18]
add esp, 0x10
cmp eax, dword [edi + 0x20]
jle 0x57888c
mov dword [edi + 8], 0xffffff9d
mov dword [edi], esi
jmp 0x578a2b
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 0x578a2b
jmp 0x5789d2
xor eax, eax
lea esi, [edi + 0x160]
and dword [edi + 0x18], eax
push 4
push esi
mov word [edi + 0x40], ax
call fcn.00578344
movzx eax, word [edi + 0x40]
push eax
push esi
call fcn.00578328
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 0x5789d2
mov dword [edi], 1
jmp 0x578a0f
lea esi, [edi + 0x160]
push 5
push esi
call fcn.00578344
movzx eax, word [edi + 0x40]
push eax
push esi
call fcn.00578328
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]
push 3
pop eax
mov dword [edi], eax
jmp 0x578a2b
lea eax, [edi + 0x15c]
push eax
call fcn.005782f7
movzx esi, word [edi + 0x40]
pop ecx
movzx edx, ax
mov word [ebp + 0xa], ax
lea ecx, [esi + 1]
movzx ecx, cx
cmp ecx, edx
jne 0x578977
and dword [edi + 0x18], 0
jmp 0x578992
cmp esi, edx
jne 0x578a1b
push edx
push str.Received_last_DATA_packet_block__d_again._n
push ebx
call fcn.0055eb66
mov ax, word [ebp + 0xa]
add esp, 0xc
lea esi, [edi + 0x160]
mov word [edi + 0x40], ax
push 4
push esi
call fcn.00578344
movzx eax, word [edi + 0x40]
push eax
push esi
call fcn.00578328
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
jns 0x5789f5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [edi + 0x10]
call fcn.0056a7b8
push eax
push 0x5ed7a4
push ebx
call fcn.0055eacb
add esp, 0x14
push 0x37
pop eax
jmp 0x578a2d
mov eax, dword [edi + 0x154]
xor ecx, ecx
add eax, 4
inc ecx
cmp dword [edi + 0x14c], eax
push 3
pop eax
cmovge eax, ecx
mov dword [edi], eax
lea eax, [edi + 0x38]
push eax
call fcn.0058cdfa
pop ecx
jmp 0x578a2b
push ecx
push edx
push str.Received_unexpected_DATA_packet_block__d__expecting_block__d_n
push ebx
call fcn.0055eb66
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x57cc62
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi]
cmp dword [ecx + 4], 3
jne 0x57cc88
mov eax, dword [esi + 0xc]
test eax, eax
je 0x57ccda
push dword [ecx + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call eax
jmp 0x57ccb8
mov eax, dword [esi + 8]
test eax, eax
jne 0x57ccaa
push 0x5ecd0c
push dword [ecx + 8]
call fcn.00589e04
mov dword [esi + 8], eax
pop ecx
pop ecx
test eax, eax
jne 0x57ccaa
or eax, 0xffffffff
jmp 0x57ccda
push eax
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.00598f38
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x57ccd8
cmp dword [esi + 8], eax
je 0x57ccd2
push dword [esi + 8]
call fcn.0058a121
and dword [esi + 8], edi
pop ecx
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x57f873
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ecx, dword [eax + 0x2c]
mov dword [ebp - 4], ecx
mov ecx, dword [ecx]
mov dword [ebp + 8], ecx
mov edi, dword [ecx + 0x1d4]
test edi, edi
jne 0x57f895
mov edi, dword [eax + 0x28]
push dword [eax + 0x24]
push dword [eax + 0x20]
call fcn.0055637b
push edx
push eax
call fcn.005562f4
mov ecx, eax
mov esi, edx
mov eax, edi
add esp, 0x10
cdq
mov edi, eax
mov ebx, edx
mov eax, dword [ebp + 8]
sub edi, ecx
sbb ebx, esi
cmp dword [eax + 0x1c8], 0
je 0x57f903
mov eax, dword [ebp - 4]
push dword [eax + 0x184]
push dword [eax + 0x180]
call fcn.0055637b
push edx
push eax
call fcn.005562f4
mov ecx, eax
mov esi, edx
mov eax, dword [ebp + 8]
add esp, 0x10
mov eax, dword [eax + 0x1c8]
cdq
sub eax, ecx
sbb edx, esi
cmp ebx, edx
jl 0x57f903
jg 0x57f8ff
cmp edi, eax
jb 0x57f903
mov edi, eax
mov ebx, edx
mov eax, edi
mov edx, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x582fd4
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
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 [0x624060]
mov edi, eax
pop ecx
test edi, edi
je 0x5830c1
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 0x583040
push ecx
call dword [esi]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call dword [esi + 4]
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
call dword [esi + 8]
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov ecx, dword [edi + 4]
mov dword [ebp + 0x10], ebx
jmp 0x583046
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push ecx
call dword [esi]
push dword [edi + 8]
call dword [esi]
mov eax, dword [ebp + 0x10]
xor ebx, ebx
pop ecx
pop ecx
test eax, eax
je 0x5830b9
mov dword [ebp - 8], eax
mov ebx, eax
mov eax, dword [ebp - 4]
push 1
mov al, byte [eax]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push eax
push dword [edi + 4]
call dword [esi + 4]
mov ecx, dword [ebp - 4]
push 1
mov al, byte [ecx]
xor al, 0x5c
inc ecx
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push eax
push dword [edi + 8]
mov dword [ebp - 4], ecx
call dword [esi + 4]
add esp, 0x18
sub ebx, 1
jne 0x58305e
mov ebx, dword [ebp - 8]
jmp 0x5830b9
push 1
push 0x5f6d1f
push dword [edi + 4]
call dword [esi + 4]
push 1
push 0x5f6d20
push dword [edi + 8]
call dword [esi + 4]
add esp, 0x18
inc ebx
cmp ebx, dword [esi + 0x10]
jb 0x58309b
mov eax, edi
pop ebx
pop edi
pop esi
leave
ret

Function at 0x5a5321
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005a51a0

Function at 0x5a6426
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005a60e6
Function at 0x41785a
Capabilities:
Authenticate hmac

Disassembly:
aam 0x5c
push 3
dec ebx
fld xword [ebp + 1]
outsb dx, byte [esi]
and ebp, dword [0x8f724558]
stosd dword es:[edi], eax
cmp dword [esi + 1], ebx
push ecx
sub cl, byte [edi + 2]
test byte [0x7aa38149], 0x4c
mov esp, 0x1d7502e2
daa
xchg esp, edx
sahf
sub dword [ebx + 0x4545d88], ebp
inc ecx
fsubr dword [ecx]
and edx, dword [ecx]
invalid

Function at 0x417e10
Capabilities:
Get disk information

Disassembly:
push ecx
push esi
push 0x4c3074
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [0x4c6aec], eax
call dword [sym.imp.KERNEL32.dll_GetOEMCP]
mov dword [0x4c6aec], eax
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
mov dword [0x4c74b0], eax
mov dword [esp + 8], 0
call dword [sym.imp.ole32.dll_CoInitialize]
test esi, esi
je 0x417e66
lea eax, [esp + 4]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push str.MSWHEEL_ROLLMSG
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
pop esi
mov ecx, dword [esp]
add ecx, eax
mov eax, ecx
pop ecx
ret

Function at 0x465496
Capabilities:
Encode data using xor

Disassembly:
out 0xb5, al
push ecx
jo 0x465397
test dword [ebp + eax*4 + 0x70], edx
cwde
sub bh, byte [eax + 0x2218e283]
and dword [edi + 0x74], ebp
out 0x50, al
nop
mul byte [ebx]
mov al, 0x37
jns 0x46548c
and eax, 0xd545513e
mov dl, 0x9e
cmpsb byte [esi], byte es:[edi]
inc eax
xchg ecx, eax
xor al, byte [ebx - 0x3d3057cc]
inc eax
dec ebp
movsd dword es:[edi], dword [esi]
dec edi
fcomp dword [ebp + 0x49cb5431]
or al, al
xchg ebp, eax
xor ebp, dword [eax - 0x80]
fsub dword [ecx - 0x6f52df33]
jno 0x465431
pushal
sbb al, 0xb5
push ebp
jo 0x4653f8
in al, 6
dec edx
jecxz 0x4654a6
ret
inc edx
adc byte [ebx], dl
inc eax
xor al, dh
xor byte [ebp - 0x2ee51d80], dl
sbb dl, cl
pushal
movsd dword es:[edi], dword [esi]
mov ah, 0x43
call 0x5f16e576
jae 0x465443
popfd
and eax, 0x3030592a
and ebp, dword [edi - 0x5f]
mov cl, 0x7d
or eax, 0x1b986753
or cl, al
cwde
shr dh, cl
sub bl, byte [ecx + 0x30]
xor byte [ebx], ah
outsd dx, dword [esi]
mov eax, dword [0x530d7db1]
cwde
sbb ecx, dword [edx]
enter 0xffffffffffffd298, 0xffffffffffffffee
dec ecx
invalid

Function at 0x4ab116
Capabilities:
Encode data using xor

Disassembly:
mov dl, 0xdc
invalid
pop ebx
jl 0x4ab0cc
cli
mov ebp, 0x1fd4c2f4
dec esi
xor byte [0x58a0291e], 0x76
lodsb al, byte fs:[esi]
pop eax
jbe 0x4ab18c
lodsb al, byte [esi]
clc
mov dh, 0xe4
push esi
adc byte [esi + 0x65], bl
shl byte [esi + 0x1d], cl
xchg edx, eax
push ds
cmc
or cl, ah
imul edx, esi, 0x5f
sar byte [esi + 0x63fc3807], 1
xor dword [ebx], esi
sbb cl, byte [ebp + 0x6623de34]
cld
cld
pop ds
arpl si, cx
inc eax
cmp al, 0x8c
xor dword [ebx], ebx
mov ss, word [edx + edi]
mov eax, 0xe466c536
jl 0x4ab125
pop ebp
xchg esp, eax
hlt
and ah, dl
out dx, al
Function at 0x4ab266
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov bl, 0x2e
push es
push es
dec ebx
dec esp
xor dword [ebx], edx
rcl esp, cl
add dh, byte [ebx]
jo 0x4ab250
insb byte es:[edi], dx
in al, dx
jp 0x4ab24d
and dword [ecx - 0x24944745], 0x754cc694
jne 0x4ab283
dec esp
jne 0x4ab2df
sbb byte [edx], al
fcom dword [ebp + eax*8 - 0x71]
nop
jae 0x4ab2f2
add bl, al
push esp
lds ecx, [edi - 0x7b808c70]
or al, 0x82
test byte [edx + eax*4], cl
push ds
pop es
pop ecx
jne 0x4ab2fa
wait
pop esi
test byte [ecx - 0x74], dh
mov eax, 0x1b24e1b0
and al, 0x1b
adc eax, 0x446604db
adc cl, cl
push edx
out dx, al
sub al, 0xfe
sar dword [ebx + ecx - 0x45], cl
sub bl, byte [ebx + 0x66]
jg 0x4ab28f
jl 0x4ab291
add esp, edx
popfd
xchg edx, eax
stosd dword es:[edi], eax
mov dl, 0x4f
or al, 7
fsubr st(4), st(0)
lodsd eax, dword [esi]
sub eax, 0xc6c5ee4c
jb 0x4ab24b
add byte [ebp - 0x47], cl
adc eax, 0x1f841ca3
adc dword [edx], 0xb0d5ae21
cmp al, 0x5f
in al, 0xa0
mov ebx, 0x8c9c4bef
sbb ch, byte [edx + eax*4 + 0x75]
add byte [eax + ecx*2 + 0x1a], al
les bp, [edx]
fdivr dword [ebx - 0x297bfed4]
inc esp
push edx
mov esp, 0x54fd2bb8
rol esi, 1
jbe 0x4ab2f3
invalid
retf 0x8a69
lahf
sub edi, esi
push esi
lodsd eax, dword [esi]
sub dword [esi + 0x35], 0x8607817a
inc edx
cmp byte [ebx], ah
xor ah, dl
outsd dx, dword [esi]
jp 0x4ab27d
pop es
xchg byte [edx + 0x38], al
and esi, dword [eax]
aam 0x6f
std
sub byte [esi + 0x6fcc632c], bl
invalid

Function at 0x4bb361
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c33a8
cmp edx, dword [eax]
je 0x4bb383
add eax, 8
inc ecx
cmp eax, 0x4c3438
jl 0x4bb374
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c33a8]
jne 0x4bb4b1
mov eax, dword [0x4c7d2c]
cmp eax, 1
je 0x4bb48b
test eax, eax
jne 0x4bb3b4
cmp dword [0x4c32d4], 1
je 0x4bb48b
cmp edx, 0xfc
je 0x4bb4b1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bb3eb
lea eax, [ebp - 0x1a4]
push 0x4c0860
push eax
call fcn.004bbd40
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bc1d0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bb42e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bc1d0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c085c
push edi
call fcn.004be0a0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4c0840
push eax
call fcn.004bbd40
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bbd50
lea eax, [ebp - 0xa0]
push 0x4c083c
push eax
call fcn.004bbd50
push dword [esi + 0x4c33ac]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bbd50
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4c0814
push eax
call fcn.004be014
add esp, 0x2c
pop edi
jmp 0x4bb4b1
lea eax, [ebp + 8]
lea esi, [esi + 0x4c33ac]
push 0
push eax
push dword [esi]
call fcn.004bc1d0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret