joyce8/EMBER2024-capa huggingface dataset:
Function at 0x583db0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x778400]
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 0x583dfd
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.0055c180
add esp, 0xc
mov eax, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0066c98d
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x583e25
shr eax, 8
test al, al
jne 0x583e25
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0066c98d
mov esp, ebp
pop ebp
ret
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.0055c180
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 2
pop esi
call fcn.0066c98d
mov esp, ebp
pop ebp
ret

Function at 0x58433c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
je 0x584366
adc byte [edi - 0x7b], dl
invalid
je 0x584379
mov eax, dword [esi + 0x3c]
xor edi, edi
mov ebx, dword [eax + esi + 0x78]
add ebx, esi
mov ebp, dword [ebx + 0x20]
add ebp, esi

Function at 0x584340
Capabilities:
Resolve function by parsing pe exports

Disassembly:
je 0x584366
adc byte [edi - 0x7b], dl
div byte [ecx + esi - 0x75]
inc esi
cmp al, 0x33
dec dword [ebx + 0x378305c]
fimul word [ebx - 0x11fcdf95]
cmp dword [ebx + 0x18], edi
jbe 0x584379
mov eax, dword [ebp + edi*4]
push dword [esp + 0x18]
add eax, esi
push eax
call fcn.005843c7
pop ecx
pop ecx
test al, al
jne 0x584380
invalid
inc edi
cmp edi, dword [ebx + 0x18]
jb 0x58435d
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [ebx + 0x24]
lea eax, [eax + edi*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + esi]
add eax, esi
jmp 0x58437b

Function at 0x584397
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
push esi
mov esi, dword [eax + 0xc]
add esi, 0xc
mov esi, dword [esi]
cmp dword [esi + 0x30], 0
je 0x5843a4
cmp dword [esp + 8], 0
je 0x5843c2
push dword [esi + 0x30]
call fcn.0058446a
pop ecx
cmp dword [esp + 8], eax
jne 0x5843a4
mov eax, dword [esi + 0x18]
pop esi
ret

Function at 0x584496
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
push edi
call fcn.00584397
push dword [0x77e330]
mov dword [ebp - 0xc], eax
call fcn.00584397
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
pop ecx
pop ecx
push dword [0x77e308]
mov dword [ebp - 8], eax
push edi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0x104
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
Function at 0x5844e0
Capabilities:
Terminate process

Disassembly:
call fcn.00584403
mov esi, dword [0x77e30c]
mov edi, eax
pop ecx
cmp dword [esi], 0
je 0x58451c
push edi
call fcn.005843ee
pop ecx
cmp al, byte [esi]
je 0x584507
cmp al, byte [esi + 1]
jne 0x5845df
push edi
call fcn.0058444b
pop ecx
cmp eax, dword [esi + 4]
je 0x58451c
cmp eax, dword [esi + 8]
jne 0x5845df
push dword [0x77e308]
xor edi, edi
push edi
mov dword [ebp - 4], edi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov edx, edi
cmp dword [0x77e304], edi
jbe 0x584558
mov ecx, dword [str.VirtualProtect]
mov ecx, dword [ecx + edx]
mov dword [edx + esi], ecx
mov eax, dword [0x77e2fc]
add edx, eax
cmp edx, dword [0x77e304]
jb 0x58453d
push esi
push dword [ebp - 8]
call fcn.0058433c
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x5845df
mov esi, dword [0x77e31c]
lea eax, [ebp - 4]
push eax
push dword [0x77e304]
push dword [0x77e314]
push esi
call edi
mov edx, dword [0x77e32c]
add edx, dword [ebp - 0xc]
push 8
pop ecx
mov ebx, dword [edx + 4]
cmp dword [0x77e314], ecx
jbe 0x5845b0
mov eax, dword [edx + ecx]
add eax, ebx
mov dword [esi + ecx], eax
push cs
mov eax, dword [0x77e2fc]
add ecx, eax
cmp ecx, dword [0x77e314]
jb 0x584599
mov eax, dword [0x77e300]
mov dword [esi + 8], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [0x77e314]
push esi
call edi
mov eax, dword [0x77e328]
mov ecx, dword [esi + 0xc]
add ecx, eax
mov eax, dword [0x77e328]
add ecx, esi
add esi, eax
push esi
call ecx
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x5845a0
Capabilities:
Terminate process

Disassembly:
call fcn.00584403
mov esi, dword [0x77e30c]
mov edi, eax
pop ecx
cmp dword [esi], 0
je 0x58451c
push edi
call fcn.005843ee
pop ecx
cmp al, byte [esi]
je 0x584507
cmp al, byte [esi + 1]
jne 0x5845df
push edi
call fcn.0058444b
pop ecx
cmp eax, dword [esi + 4]
je 0x58451c
cmp eax, dword [esi + 8]
jne 0x5845df
push dword [0x77e308]
xor edi, edi
push edi
mov dword [ebp - 4], edi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov edx, edi
cmp dword [0x77e304], edi
jbe 0x584558
mov ecx, dword [str.VirtualProtect]
mov ecx, dword [ecx + edx]
mov dword [edx + esi], ecx
mov eax, dword [0x77e2fc]
add edx, eax
cmp edx, dword [0x77e304]
jb 0x58453d
push esi
push dword [ebp - 8]
call fcn.0058433c
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x5845df
mov esi, dword [0x77e31c]
lea eax, [ebp - 4]
push eax
push dword [0x77e304]
push dword [0x77e314]
push esi
call edi
mov edx, dword [0x77e32c]
add edx, dword [ebp - 0xc]
push 8
pop ecx
mov ebx, dword [edx + 4]
cmp dword [0x77e314], ecx
jbe 0x5845b0
mov eax, dword [edx + ecx]
add eax, ebx
mov dword [esi + ecx], eax
push cs
mov eax, dword [0x77e2fc]
add ecx, eax
cmp ecx, dword [0x77e314]
jb 0x584599
mov eax, dword [0x77e300]
mov dword [esi + 8], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [0x77e314]
push esi
call edi
mov eax, dword [0x77e328]
mov ecx, dword [esi + 0xc]
add ecx, eax
mov eax, dword [0x77e328]
add ecx, esi
add esi, eax
push esi
call ecx
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x584640
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 + 0x1a8]
mov byte [ebp + 8], 0xff
mov byte [ebp + 9], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x584688
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.0055c180
add esp, 0xc
push dword [ebp + 0x10]
push ebx
push str.SENT
push dword [esi]
call fcn.00583f40
add esp, 0x10
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x584a50
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90c
mov eax, dword [0x778400]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x103]
push 0x7f
push 0
push eax
mov dword [ebp - 0x90c], edi
mov byte [ebp - 0x104], 0
call fcn.0066eb10
push 0x7f
lea eax, [ebp - 0x83]
mov byte [ebp - 0x84], 0
push 0
push eax
call fcn.0066eb10
mov ebx, dword [edi]
mov dword [ebp - 0x908], ebx
mov esi, dword [ebx + 0x150]
mov eax, dword [esi + 0x1eb4]
sub eax, dword [esi + 0x1eb0]
add eax, 2
push eax
lea eax, [esi + 0x1cb0]
push eax
push 0x3c
push ebx
call fcn.00584040
mov eax, dword [esi + 0x1eb0]
add esp, 0x28
movzx ecx, byte [eax]
inc eax
mov dword [esi + 0x1eb0], eax
cmp ecx, 0x18
je 0x584c40
cmp ecx, 0x23
je 0x584c1d
cmp ecx, 0x27
jne 0x584cd3
push 0
push ecx
push 0xfa
push 0xff
push str._c_c_c_c
lea eax, [ebp - 0x904]
push 0x800
push eax
call fcn.00568740
mov esi, dword [esi + 0x1cac]
add esp, 0x1c
mov edi, 4
mov eax, 0x800
test esi, esi
je 0x584bba
mov edx, dword [esi]
mov ecx, edx
lea ebx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x584b40
sub ecx, ebx
lea ebx, [edi + 1]
add ebx, ecx
cmp ebx, 0x7fa
jae 0x584ba8
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x104]
push eax
push str._127_____127s
push edx
call fcn.00674bf1
add esp, 0x10
test eax, eax
je 0x584ba8
lea eax, [ebp - 0x84]
push eax
push 1
lea eax, [ebp - 0x104]
push eax
push 0
mov eax, 0x800
sub eax, edi
push str._c_s_c_s
push eax
lea eax, [ebp - 0x904]
add eax, edi
push eax
call fcn.00568740
add esp, 0x1c
mov edi, ebx
mov esi, dword [esi + 4]
test esi, esi
jne 0x584b36
mov ebx, dword [ebp - 0x908]
mov eax, 0x800
push 0xf0
push 0xff
sub eax, edi
push str._c_c
push eax
lea eax, [ebp - 0x904]
add eax, edi
push eax
call fcn.00568740
add esp, 0x14
lea eax, [ebp - 0x904]
add edi, 2
push 0
push edi
push eax
mov eax, dword [ebp - 0x90c]
push dword [eax + 0x1a8]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x584c15
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.0055c180
add esp, 0xc
lea eax, [edi - 2]
jmp 0x584cc0
lea edx, [esi + 0x1c28]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x584c28
push 0xf0
push 0xff
push edx
push 0
push 0x23
jmp 0x584c66
lea edx, [esi + 0x1c08]
mov ecx, edx
lea esi, [ecx + 1]
jmp 0x584c50
mov al, byte [ecx]
inc ecx
test al, al
jne 0x584c50
push 0xf0
push 0xff
push edx
push 0
push 0x18
push 0xfa
push 0xff
push str._c_c_c_c_s_c_c
sub ecx, esi
lea eax, [ebp - 0x904]
push 0x800
push eax
lea esi, [ecx + 6]
call fcn.00568740
add esp, 0x28
lea eax, [ebp - 0x904]
push 0
push esi
push eax
push dword [edi + 0x1a8]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x584cbd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.0055c180
add esp, 0xc
lea eax, [esi - 2]
push eax
lea eax, [ebp - 0x902]
push eax
push 0x3e
push ebx
call fcn.00584040
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0066c98d
mov esp, ebp
pop ebp
ret
Function at 0x585930
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x778400]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [eax + 0x490]
mov ebx, dword [eax]
lea esi, [edi + 0x15c]
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0x88], 0x80
lea eax, [ebp - 0x84]
push eax
mov eax, dword [edi + 0x154]
push 0
add eax, 4
push eax
push dword [esi]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [edi + 0x148], 0
mov dword [edi + 0x14c], eax
jne 0x5859c3
push dword [ebp - 0x88]
lea eax, [ebp - 0x84]
push eax
lea eax, [edi + 0xc8]
push eax
call fcn.0066e160
mov eax, dword [ebp - 0x88]
add esp, 0xc
mov dword [edi + 0x148], eax
mov edx, dword [edi + 0x14c]
cmp edx, 4
jge 0x5859f6
push str.Received_too_short_packet
push ebx
call fcn.0055c180
add esp, 8
mov dword [edi + 0xc], 7
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0066c98d
mov esp, ebp
pop ebp
ret
push esi
call fcn.00585530
movzx eax, ax
add esp, 4
mov dword [edi + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x585a11
jmp dword [eax*4 + 0x585b58]
cmp edx, 4
jle case.0x585a11.4
push esi
call fcn.00585510
movzx ecx, word [edi + 0x40]
add esp, 4
inc ecx
cmp cx, ax
jne case.0x585a11.4
lea eax, [edx - 4]
push eax
mov eax, dword [esi]
add eax, 4
push eax
push 1
push dword [ebp - 0x90]
call fcn.0055c0d0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x585a76
push 5
push edi
call fcn.005862d0
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0066c98d
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x14c]
sub eax, 4
cdq
add dword [ebx + 0x90], eax
adc dword [ebx + 0x94], edx
push dword [ebx + 0x94]
push dword [ebx + 0x90]
push ebx
call fcn.00572180
jmp 0x585b1e
mov eax, dword [esi]
lea esi, [edx - 4]
add eax, 4
mov dword [ebp - 0x8c], eax
lea eax, [edi + 0x15c]
push eax
call fcn.00585510
push esi
push dword [ebp - 0x8c]
movzx eax, ax
mov dword [edi + 8], eax
call fcn.005854e0
add esp, 0xc
cmp eax, esi
jae case.0x585a11.4
push dword [ebp - 0x8c]
push str.TFTP_error:__s_n
push ebx
call fcn.0055c260
jmp 0x585b1e
lea eax, [edx - 2]
push eax
mov eax, dword [esi]
add eax, 2
push eax
push edi
call fcn.005856e0
add esp, 0xc
test eax, eax
je case.0x585a11.4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0066c98d
mov esp, ebp
pop ebp
ret
push str.Internal_error:_Unexpected_packet
push 0x6ee108
push ebx
call fcn.0055c180
add esp, 0xc
push dword [ebp - 0x90]
call fcn.00572450
add esp, 4
test eax, eax
je 0x5859e3
push 5
push edi
call fcn.005862d0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 0x2a
pop edi
pop esi
pop ebx
call fcn.0066c98d
mov esp, ebp
pop ebp
ret
Function at 0x585b70
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.0x585b8d.4
jmp dword [eax*4 + 0x585da8]
lea eax, [edi + 0x15c]
push eax
call fcn.00585510
movzx ecx, word [edi + 0x40]
add esp, 4
movzx esi, ax
lea eax, [ecx + 1]
and eax, 0xffff
cmp eax, esi
jne 0x585bbf
mov dword [edi + 0x18], 0
jmp 0x585bd6
cmp ecx, esi
jne 0x585c4a
push esi
push str.Received_last_DATA_packet_block__d_again._n
push ebx
call fcn.0055c260
add esp, 0xc
mov word [edi + 0x40], si
lea esi, [edi + 0x160]
push 4
push esi
call fcn.00585570
movzx eax, word [edi + 0x40]
push eax
push esi
call fcn.00585550
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 0x585d1e
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.0066d8aa
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
push eax
push esi
push str.Received_unexpected_DATA_packet_block__d__expecting_block__d_n
push ebx
call fcn.0055c260
add esp, 0x10
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.00585570
movzx eax, word [edi + 0x40]
push eax
push esi
call fcn.00585550
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 0x585d1e
lea eax, [edi + 0x38]
mov dword [edi], 1
push eax
call fcn.0066d8aa
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]
and eax, 0xffff
push eax
push str.Timeout_waiting_for_block__d_ACK.__Retries___d_n
push ebx
call fcn.0055c260
mov eax, dword [edi + 0x18]
add esp, 0x10
cmp eax, dword [edi + 0x20]
jle 0x585cfa
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 0x585d84
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [edi + 0x10]
call fcn.0058ad90
push eax
push 0x6ee108
push ebx
call fcn.0055c180
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.00585570
movzx eax, word [edi + 0x40]
push eax
push esi
call fcn.00585550
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 0x6ee108
push ebx
call fcn.0055c180
add esp, 0xc
mov eax, 0x47
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x5862d0
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.0x5862e2
jmp dword [edx*4 + 0x586338]
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.00585dc0
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.00585b70
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.005864e0
push str.TFTP_finished
push 0x6e7918
push eax
call fcn.0055c260
add esp, 0xc
xor eax, eax
pop ebp
ret
push str.Internal_state_machine_error
push 0x6ee108
push eax
call fcn.0055c180
add esp, 0xc
mov eax, 0x47
pop ebp
ret
Function at 0x58b650
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push str.kernel32
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 4], eax
test eax, eax
jne 0x58b670
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
push str.LoadLibraryExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [ebp + 8]
mov ebx, eax
push 0x6f2d00
push esi
mov dword [ebp - 8], ebx
call fcn.00676471
add esp, 8
test eax, eax
je 0x58b6bc
test ebx, ebx
je 0x58b6ac
push 8
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x58b6e5
push str.AddDllDirectory
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x58b6e5
push 0x800
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [ebp - 4], edx
test edx, edx
je 0x58b790
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x58b701
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [0x76f6b0]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x58b786
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x58b786
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x58b732
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x58b750
sub ecx, edx
add ecx, ebx
sub ecx, esi
lea ecx, [ecx]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x58b760
mov eax, dword [ebp - 8]
test eax, eax
je 0x58b77d
push 8
push 0
push ebx
call eax
jmp 0x58b784
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x76f6b4]
add esp, 4
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x592540
Capabilities:
Encode data using xor

Disassembly:
mov eax, 8
call fcn.00671aa0
mov ecx, dword [esp + 0xc]
xor edx, edx
push ebx
push ebp
push esi
mov esi, dword [ecx + 4]
xor ebp, ebp
mov eax, dword [ecx + 8]
dec esi
xor ebx, ebx
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], eax
test eax, eax
jle 0x5925bc
mov ecx, dword [ecx]
mov dword [esp + 0xc], ecx
push edi
push dword [ecx]
mov eax, ebx
xor eax, esi
lea edi, [eax - 1]
not eax
shr edi, 0x1f
shr eax, 0x1f
and edi, eax
neg edi
call fcn.00591f60
mov ecx, ebp
mov edx, edi
not edx
not ecx
and edx, ecx
and eax, edi
mov ecx, dword [esp + 0x14]
and edx, 0x20
add edx, dword [esp + 0x20]
inc ebx
add edx, eax
add ecx, 4
add esp, 4
mov dword [esp + 0x1c], edx
or ebp, edi
mov dword [esp + 0x10], ecx
cmp ebx, dword [esp + 0x14]
jl 0x592571
pop edi
not esi
lea eax, [esi - 1]
not esi
shr eax, 0x1f
shr esi, 0x1f
and eax, esi
pop esi
dec eax
pop ebp
and eax, edx
pop ebx
add esp, 8
ret

Function at 0x5a7930
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x474
call fcn.00671aa0
mov eax, dword [0x778400]
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 0x5a7975
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.0066c98d
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x48]
push eax
push edi
call fcn.00676995
add esp, 8
test eax, eax
js 0x5a795e
mov eax, 8
call fcn.00671aa0
xorps xmm0, xmm0
lea eax, [esp + 0x50]
movsd qword [esp], xmm0
push 0x30
push eax
call fcn.005a7680
mov esi, dword [ebp + 0xc]
add esp, 0x10
test esi, esi
je 0x5a795e
push 0x6e774c
push edi
call fcn.00671539
add esp, 8
mov dword [esp + 0x40], eax
test eax, eax
je 0x5a7a72
test dword [esp + 0x4e], 0x2000
je 0x5a79f1
push 0
push 4
mov ecx, 0x800
cmp esi, 0xffffffff
push 0
push eax
cmove esi, ecx
call fcn.00675dd5
mov eax, dword [esp + 0x50]
add esp, 0x10
mov edi, 0x400
test esi, esi
jle 0x5a79ff
cmp esi, edi
cmovl edi, esi
push eax
push edi
lea eax, [esp + 0x80]
push 1
push eax
call fcn.006736d9
mov ebx, eax
add esp, 0x10
test ebx, ebx
jle 0x5a7a53
movd xmm0, ebx
mov eax, 8
cvtdq2pd xmm0, xmm0
call fcn.00671aa0
lea eax, [esp + 0x80]
movsd qword [esp], xmm0
push edi
push eax
call fcn.005a7680
add dword [esp + 0x54], ebx
add esp, 0x10
mov eax, dword [esp + 0x40]
test esi, esi
jle 0x5a79f1
sub esi, edi
test esi, esi
jg 0x5a79f1
push dword [esp + 0x40]
call fcn.006712b9
lea eax, [esp + 0x7c]
push 0x400
push eax
call fcn.005b20a0
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.0066c98d
mov esp, ebp
pop ebp
ret
Function at 0x5afa30
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 0x5afa63
push 0x2e
push edi
call fcn.006732c0
add esp, 8
test eax, eax
je 0x5afa61
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x5b2f00
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0x10]
xor dl, dl
test esi, esi
je 0x5b2f25
mov eax, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
sub edi, eax
mov cl, byte [edi + eax]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
or dl, cl
dec esi
jne 0x5b2f16
pop edi
movzx eax, dl
pop esi
ret

Function at 0x5b3070
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
mov eax, 0x108
call fcn.00671aa0
mov eax, dword [0x778400]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
test esi, esi
je 0x5b30f7
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x5b30f7
lea eax, [esp + 0x114]
push eax
push dword [esp + 0x114]
lea eax, [esp + 0x10]
push 0x100
push eax
call fcn.0067765b
add esp, 0x10
lea ecx, [esp + 4]
test eax, eax
push 0
push ecx
mov ecx, 0x100
cmovs eax, ecx
push eax
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0066c98d
add esp, 0x108
ret
lea eax, [esp + 0x114]
push eax
push dword [esp + 0x114]
lea eax, [esp + 0x10]
push 0xff
push eax
call fcn.0067765b
add esp, 0x10
mov byte [esp + 0x107], 0
call fcn.005b2f30
test eax, eax
jle 0x5b317b
push str.OpenSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
je 0x5b318f
push 0
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 + 0x104]
xor ecx, esp
call fcn.0066c98d
add esp, 0x108
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 + 0x108]
pop esi
xor ecx, esp
call fcn.0066c98d
add esp, 0x108
ret