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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
mov eax, dword [esi + 0x10]
mov edx, dword [eax]
mov eax, dword [ebp + 8]
push edi
push 3
pop ebx
sub eax, ebx
mov dword [ebp - 4], edx
je 0x4c5902
dec eax
dec eax
je 0x4c58be
dec eax
je 0x4c5865
dec eax
je 0x4c5805
push str.tftp_rx:_internal_error
push 0x50f82c
push edx
call fcn.004ba6cb
add esp, 0xc
push 0x47
jmp 0x4c59a5
movzx eax, word [esi + 0x40]
inc dword [esi + 0x18]
push dword [esi + 0x18]
inc eax
and eax, 0xffff
push eax
push str.Timeout_waiting_for_block__d_ACK.__Retries___d_n
push edx
call fcn.004ba661
mov eax, dword [esi + 0x18]
add esp, 0x10
cmp eax, dword [esi + 0x20]
jle 0x4c5838
mov dword [esi + 8], 0xffffff9d
jmp 0x4c58fb
push dword [esi + 0x148]
lea eax, [esi + 0xc8]
push eax
push 0
push 4
push dword [esi + 0x160]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x4c59de
jmp 0x4c5983
xor eax, eax
and dword [esi + 0x18], eax
mov word [esi + 0x40], ax
push 4
pop ecx
lea eax, [esi + 0x160]
call fcn.004c5535
mov cx, word [esi + 0x40]
lea eax, [esi + 0x160]
call fcn.004c5546
push dword [esi + 0x148]
lea eax, [esi + 0xc8]
push eax
push 0
push 4
push dword [esi + 0x160]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
js 0x4c5983
mov dword [esi], 1
jmp 0x4c59c2
push 5
pop ecx
lea eax, [esi + 0x160]
call fcn.004c5535
mov cx, word [esi + 0x40]
lea eax, [esi + 0x160]
call fcn.004c5546
push dword [esi + 0x148]
lea eax, [esi + 0xc8]
push eax
push 0
push 4
push dword [esi + 0x160]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [esi], ebx
jmp 0x4c59de
lea eax, [esi + 0x15c]
call fcn.004c5567
movzx edi, ax
movzx eax, word [esi + 0x40]
lea ecx, [eax + 1]
and ecx, 0xffff
cmp ecx, edi
jne 0x4c5927
and dword [esi + 0x18], 0
jmp 0x4c593e
cmp eax, edi
jne 0x4c59ce
push edi
push str.Received_last_DATA_packet_block__d_again._n
push edx
call fcn.004ba661
add esp, 0xc
push 4
pop ecx
lea eax, [esi + 0x160]
mov word [esi + 0x40], di
call fcn.004c5535
mov cx, word [esi + 0x40]
lea eax, [esi + 0x160]
call fcn.004c5546
push dword [esi + 0x148]
lea eax, [esi + 0xc8]
push eax
push 0
push 4
push dword [esi + 0x160]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x4c59a8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [esi + 0x10]
call fcn.004bef9f
push eax
push 0x50f82c
push dword [ebp - 4]
call fcn.004ba6cb
add esp, 0x14
push 0x37
pop eax
jmp 0x4c59e0
mov eax, dword [esi + 0x154]
xor ecx, ecx
add eax, 4
cmp dword [esi + 0x14c], eax
setl cl
lea ecx, [ecx + ecx + 1]
mov dword [esi], ecx
add esi, 0x38
push esi
call fcn.004dfb68
pop ecx
jmp 0x4c59de
push ecx
push edi
push str.Received_unexpected_DATA_packet_block__d__expecting_block__d_n
push edx
call fcn.004ba661
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4c5fc8
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi + 0x10]
push str.Connected_for_receive
push 0x526108
push dword [eax]
call fcn.004ba661
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.004c53f2
test eax, eax
jne 0x4c5ffb
mov eax, esi
pop ebp
jmp fcn.004c57be
pop ebp
ret
Function at 0x4c6308
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x547240]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax]
push esi
mov esi, dword [eax + 0x400]
push edi
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]
push 0
add eax, 4
push eax
push dword [esi + 0x15c]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x4c6399
push dword [ebp - 0x88]
lea eax, [ebp - 0x84]
push eax
lea eax, [esi + 0xc8]
push eax
call fcn.004ddd50
mov eax, dword [ebp - 0x88]
add esp, 0xc
mov dword [esi + 0x148], eax
mov edx, dword [esi + 0x14c]
cmp edx, 4
jge 0x4c63c9
push str.Received_too_short_packet
push ebx
call fcn.004ba6cb
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.004dea60
leave
ret
lea eax, [esi + 0x15c]
call fcn.004c5558
movzx eax, ax
mov dword [esi + 0xc], eax
sub eax, 3
je 0x4c644a
dec eax
je 0x4c64b8
dec eax
je 0x4c6422
dec eax
je 0x4c6401
push str.Internal_error:_Unexpected_packet
push 0x50f82c
push ebx
call fcn.004ba6cb
jmp 0x4c64b5
mov eax, dword [esi + 0x15c]
add edx, 0xfffffffe
push edx
add eax, 2
push eax
push esi
call fcn.004c55e6
add esp, 0xc
test eax, eax
je 0x4c64b8
jmp 0x4c63ba
lea eax, [esi + 0x15c]
call fcn.004c5567
movzx eax, ax
mov dword [esi + 8], eax
mov eax, dword [esi + 0x15c]
add eax, 4
push eax
push 0x526108
push ebx
call fcn.004ba661
jmp 0x4c64b5
cmp edx, 4
jle 0x4c64b8
lea eax, [esi + 0x15c]
call fcn.004c5567
movzx ecx, word [esi + 0x40]
inc ecx
cmp cx, ax
jne 0x4c64b8
mov eax, dword [esi + 0x15c]
add edx, 0xfffffffc
push edx
add eax, 4
push eax
push 1
push dword [ebp - 0x8c]
call fcn.004ba921
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4c6499
push 5
mov eax, esi
call fcn.004c6299
pop ecx
mov eax, edi
jmp 0x4c63ba
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [ebx + 0x70], eax
adc dword [ebx + 0x74], edx
push dword [ebx + 0x74]
push dword [ebx + 0x70]
push ebx
call fcn.004d2d8e
add esp, 0xc
push dword [ebp - 0x8c]
call fcn.004d2e4c
pop ecx
test eax, eax
je 0x4c63b8
push 5
mov eax, esi
call fcn.004c6299
pop ecx
push 0x2a
pop eax
jmp 0x4c63ba

Function at 0x4c7998
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x547240]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4c79cf
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.004ba6cb
add esp, 0xc
jmp 0x4c79fc
call dword [sym.imp.WS2_32.dll_WSACleanup]
cmp byte [ebp - 0x194], 2
jne 0x4c79ef
mov eax, dword [ebp - 0x194]
shr eax, 8
test al, al
jne 0x4c79ef
xor eax, eax
jmp 0x4c79ff
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.004ba6cb
pop ecx
pop ecx
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dea60
leave
ret
Function at 0x4c7b39
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, eax
mov al, byte [ebp + 8]
push 0
mov byte [ebp - 3], al
push 3
lea eax, [ebp - 4]
mov esi, ecx
mov edi, dword [esi]
push eax
push dword [esi + 0x154]
mov byte [ebp - 4], 0xff
mov byte [ebp - 2], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x4c7b80
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.004ba6cb
add esp, 0xc
mov edx, dword [ebp + 8]
mov esi, dword [esi]
mov ecx, ebx
mov ebx, str.SENT
call fcn.004c7a70
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4c835f
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x910
mov eax, dword [0x547240]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x7f
xor edi, edi
lea eax, [ebp - 0x103]
push edi
push eax
mov byte [ebp - 0x104], 0
call fcn.004de430
push 0x7f
lea eax, [ebp - 0x83]
push edi
push eax
mov byte [ebp - 0x84], 0
call fcn.004de430
mov ecx, dword [ebx]
mov esi, dword [ecx + 0x128]
mov eax, dword [esi + 0x1eb4]
sub eax, dword [esi + 0x1eb0]
mov dword [ebp - 0x908], ecx
add eax, 2
push eax
push 0x3c
lea eax, [esi + 0x1cb0]
push ecx
call fcn.004c7df9
mov eax, dword [esi + 0x1eb0]
movzx ecx, byte [eax]
add esp, 0x24
inc eax
mov dword [esi + 0x1eb0], eax
cmp ecx, 0x18
je 0x4c8518
cmp ecx, 0x23
je 0x4c84f4
cmp ecx, 0x27
jne 0x4c85aa
push edi
push ecx
push 0xfa
mov edi, 0xff
push edi
push str._c_c_c_c
lea eax, [ebp - 0x904]
push 0x800
push eax
call fcn.004bdd3a
mov esi, dword [esi + 0x1cac]
add esp, 0x1c
mov dword [ebp - 0x910], 4
jmp 0x4c84b8
push dword [esi]
call fcn.004ddcc0
inc eax
add eax, dword [ebp - 0x910]
pop ecx
mov dword [ebp - 0x90c], eax
cmp eax, 0x7fa
jae 0x4c84b5
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x104]
push eax
push str._127_____127s
push dword [esi]
call fcn.004dec89
add esp, 0x10
test eax, eax
je 0x4c84b5
lea eax, [ebp - 0x84]
push eax
push 1
lea eax, [ebp - 0x104]
push eax
mov eax, dword [ebp - 0x910]
push 0
mov ecx, 0x800
sub ecx, eax
push str._c_s_c_s
push ecx
lea eax, [ebp + eax - 0x904]
push eax
call fcn.004bdd3a
mov eax, dword [ebp - 0x90c]
add esp, 0x1c
mov dword [ebp - 0x910], eax
mov esi, dword [esi + 4]
test esi, esi
jne 0x4c8437
mov eax, dword [ebp - 0x910]
push 0xf0
push edi
mov ecx, 0x800
sub ecx, eax
push 0x5290a0
push ecx
lea eax, [ebp + eax - 0x904]
push eax
call fcn.004bdd3a
mov esi, dword [ebp - 0x910]
add esp, 0x14
add esi, 2
jmp 0x4c855c
add esi, 0x1c28
push esi
mov dword [ebp - 0x90c], esi
call fcn.004ddcc0
push 0xf0
mov edi, 0xff
push edi
push esi
push 0
push 0x23
jmp 0x4c853a
add esi, 0x1c08
push esi
mov dword [ebp - 0x90c], esi
call fcn.004ddcc0
push 0xf0
mov edi, 0xff
push edi
push esi
push 0
push 0x18
push 0xfa
push edi
push str._c_c_c_c_s_c_c
lea esi, [eax + 6]
lea eax, [ebp - 0x904]
push 0x800
push eax
call fcn.004bdd3a
add esp, 0x2c
push 0
push esi
lea eax, [ebp - 0x904]
push eax
push dword [ebx + 0x154]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x4c8590
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push dword [ebp - 0x908]
call fcn.004ba6cb
add esp, 0xc
add esi, 0xfffffffe
push esi
push 0x3e
push dword [ebp - 0x908]
lea eax, [ebp - 0x902]
call fcn.004c7df9
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004dea60
leave
ret
Function at 0x4c86db
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]
mov eax, dword [eax]
push ebx
mov ebx, dword [eax + 0x128]
mov dword [ebp - 4], eax
jne 0x4c8828
push esi
push edi
lea edi, [ebx + 0x1cb0]
lea esi, [ebx + 0x1eb0]
mov dword [esi], edi
cmp edi, esi
jae 0x4c8711
mov byte [edi], 0xff
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x4c871c
mov byte [eax], 0xfa
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x4c8727
mov byte [eax], 0x1f
inc dword [esi]
movzx eax, word [ebx + 0x1ca8]
push eax
call dword [sym.imp.WS2_32.dll_htons]
movzx eax, ax
mov dword [ebp + 0xc], eax
movzx eax, word [ebx + 0x1caa]
push eax
call dword [sym.imp.WS2_32.dll_htons]
movzx ecx, ax
mov eax, dword [esi]
cmp eax, esi
jae 0x4c8759
mov dl, byte [ebp + 0xc]
mov byte [eax], dl
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x4c8766
mov dl, byte [ebp + 0xd]
mov byte [eax], dl
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x4c8770
mov byte [eax], cl
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x4c877a
mov byte [eax], ch
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x4c8785
mov byte [eax], 0xff
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x4c8790
mov byte [eax], 0xf0
inc dword [esi]
mov ecx, dword [esi]
mov eax, ecx
sub eax, edi
sub eax, 2
push eax
push 0x3e
push dword [ebp - 4]
lea eax, [ebx + 0x1cb2]
mov dword [ebx + 0x1eb4], ecx
mov dword [esi], edi
call fcn.004c7df9
mov esi, dword [sym.imp.WS2_32.dll_send]
add esp, 0xc
push 0
push 3
push edi
mov edi, dword [ebp + 8]
push dword [edi + 0x154]
call esi
test eax, eax
jns 0x4c87e6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push dword [ebp - 4]
call fcn.004ba6cb
add esp, 0xc
lea eax, [ebx + 0x1cb3]
push 4
push eax
call fcn.004c85b8
pop ecx
pop ecx
push 0
push 2
add ebx, 0x1cb7
push ebx
mov eax, edi
push dword [eax + 0x154]
call esi
pop edi
pop esi
test eax, eax
jns 0x4c8828
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push dword [ebp - 4]
call fcn.004ba6cb
add esp, 0xc
pop ebx
leave
ret
Function at 0x4c912c
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x547240]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x158]
push ebx
push edi
mov edi, dword [esi]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
mov dword [ebp - 0x1c], eax
or ebx, 0xffffffff
mov dword [ebp - 0x18], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4c9180
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x18], 0x10
call dword [sym.imp.WS2_32.dll_accept]
mov ebx, eax
push dword [ebp - 0x1c]
push esi
call fcn.004bcb5b
pop ecx
pop ecx
cmp ebx, 0xffffffff
jne 0x4c91a2
push str.Error_accept__ing_server_connect
push edi
call fcn.004ba6cb
pop ecx
pop ecx
push 0x1e
pop eax
jmp 0x4c91f8
push str.Connection_accepted_from_server_n
push edi
call fcn.004ba661
push 1
push ebx
mov dword [esi + 0x158], ebx
call fcn.004d6815
xor ecx, ecx
inc ecx
mov dword [esi + 0x168], ecx
mov eax, dword [edi + 0x1b0]
add esp, 0x10
test eax, eax
je 0x4c91f6
push ecx
push ebx
push dword [edi + 0x1b4]
call eax
add esp, 0xc
test eax, eax
je 0x4c91f6
push ebx
push esi
call fcn.004bcb5b
or dword [esi + 0x158], 0xffffffff
pop ecx
pop ecx
push 0x2a
jmp 0x4c919f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004dea60
leave
ret
Function at 0x4cc262
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push edi
push 0x64
cdq
pop ebx
idiv ebx
mov ecx, dword [esi]
xor edi, edi
cmp eax, 2
je 0x4cc28b
push str.Couldnt_set_desired_mode
push ecx
call fcn.004ba6cb
pop ecx
pop ecx
push 0x11
pop eax
jmp 0x4cc2e1
cmp dword [ebp + 8], 0xc8
je 0x4cc2a5
push dword [ebp + 8]
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push ecx
call fcn.004ba661
add esp, 0xc
mov eax, dword [ebp + 0xc]
cmp eax, 0x13
jne 0x4cc2b6
push esi
call fcn.004cc1fb
pop ecx
jmp 0x4cc2dd
cmp eax, 0x14
jne 0x4cc2c3
push esi
call fcn.004c9b49
jmp 0x4cc2b3
cmp eax, 0x15
jne 0x4cc2d1
mov eax, esi
call fcn.004cc24a
jmp 0x4cc2dd
cmp eax, 0x16
jne 0x4cc2df
mov eax, esi
call fcn.004cc256
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop ebp
ret

Function at 0x4d22f8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
movsx eax, byte [ebp + 8]
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x4d2307
jmp dword [eax*4 + 0x4d237c]
mov al, 0x41
pop ebp
ret
mov al, 0x42
pop ebp
ret
mov al, 0x43
pop ebp
ret
mov al, 0x44
pop ebp
ret
mov al, 0x45
pop ebp
ret
mov al, 0x46
pop ebp
ret
mov al, 0x47
pop ebp
ret
mov al, 0x48
pop ebp
ret
mov al, 0x49
pop ebp
ret
mov al, 0x4a
pop ebp
ret
mov al, 0x4b
pop ebp
ret
mov al, 0x4c
pop ebp
ret
mov al, 0x4d
pop ebp
ret
mov al, 0x4e
pop ebp
ret
mov al, 0x4f
pop ebp
ret
mov al, 0x50
pop ebp
ret
mov al, 0x51
pop ebp
ret
mov al, 0x52
pop ebp
ret
mov al, 0x53
pop ebp
ret
mov al, 0x54
pop ebp
ret
mov al, 0x55
pop ebp
ret
mov al, 0x56
pop ebp
ret
mov al, 0x57
pop ebp
ret
mov al, 0x58
pop ebp
ret
mov al, 0x59
pop ebp
ret
mov al, 0x5a
pop ebp
ret
mov al, byte [ebp + 8]
pop ebp
ret

Function at 0x4d2680
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
call fcn.004ba36d
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004f172b
add esp, 0x10
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax + 0x2c]
push esi
push edi
mov edi, dword [ebx]
mov esi, dword [edi + 0x1ec]
test esi, esi
jne 0x4d6852
mov esi, dword [eax + 0x28]
push dword [eax + 0x24]
push dword [eax + 0x20]
call fcn.004ba2f8
push edx
push eax
call fcn.004ba30e
add esp, 0x10
sub esi, eax
cmp dword [edi + 0x1e0], 0
je 0x4d689b
push dword [ebx + 0x148]
push dword [ebx + 0x144]
call fcn.004ba2f8
push edx
push eax
call fcn.004ba30e
mov edi, dword [edi + 0x1e0]
sub edi, eax
add esp, 0x10
cmp esi, edi
jl 0x4d689b
mov esi, edi
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret

Function at 0x4d7728
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0xf0000000
push 1
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x4d775a
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x8003
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop esi
pop ebp
ret
Function at 0x4d8ad8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi]
cmp dword [eax + 4], 2
push edi
jne 0x4d8afe
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x4d8aef
xor eax, eax
jmp 0x4d8b51
push dword [eax + 8]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call ecx
jmp 0x4d8b2f
cmp dword [esi + 8], 0
jne 0x4d8b1f
push 0x50f828
push dword [eax + 8]
call fcn.004e3347
pop ecx
pop ecx
mov dword [esi + 8], eax
test eax, eax
jne 0x4d8b1f
or eax, 0xffffffff
jmp 0x4d8b51
push dword [esi + 8]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.004df7c7
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4d8b4f
mov eax, dword [esi + 8]
test eax, eax
je 0x4d8b49
push eax
call fcn.004df509
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 ebp
ret
Function at 0x4d96b0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea eax, [ecx + eax*2 + 0xc]
push edi
push eax
call dword [0x547048]
mov edi, eax
pop ecx
test edi, edi
je 0x4d978e
lea eax, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], eax
mov ecx, dword [esi + 0xc]
add ecx, eax
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], ecx
cmp ebx, dword [esi + 0x10]
jbe 0x4d9712
push eax
call dword [esi]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call dword [esi + 4]
mov ebx, dword [edi + 8]
add ebx, dword [esi + 0xc]
push dword [edi + 4]
push ebx
call dword [esi + 8]
mov dword [ebp + 0xc], ebx
mov ebx, dword [esi + 0x14]
add esp, 0x18
push dword [edi + 4]
call dword [esi]
push dword [edi + 8]
call dword [esi]
and dword [ebp - 4], 0
pop ecx
pop ecx
test ebx, ebx
je 0x4d9761
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 0xc]
mov al, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
push 1
lea eax, [ebp + 0xb]
push eax
push dword [edi + 4]
call dword [esi + 4]
mov al, byte [ebx]
xor al, 0x5c
mov byte [ebp + 0xb], al
push 1
lea eax, [ebp + 0xb]
push eax
push dword [edi + 8]
inc ebx
mov dword [ebp + 0xc], ebx
call dword [esi + 4]
add esp, 0x18
dec dword [ebp - 8]
jne 0x4d972c
pop ebx
jmp 0x4d9784
push 1
push 0x52c893
push dword [edi + 4]
call dword [esi + 4]
push 1
push 0x52c894
push dword [edi + 8]
call dword [esi + 4]
add esp, 0x18
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x10]
jb 0x4d9764
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x4daec5
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xa004
call fcn.004e07c0
mov eax, dword [0x547240]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x10], 0
push edi
mov edi, ecx
jne 0x4daeed
xor eax, eax
jmp 0x4daf4d
push 0xffffffffffffffff
push 0
push esi
lea ecx, [edi + 0x24]
call fcn.00406c0f
xor eax, eax
push 0x9ffe
push eax
mov word [ebp - 0xa004], ax
lea eax, [ebp - 0xa002]
push eax
call fcn.004de430
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x4daf20
mov esi, dword [esi]
push esi
push 0x5000
lea eax, [ebp - 0xa004]
push eax
push str.feature
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
push eax
lea eax, [ebp - 0xa004]
push eax
mov ecx, edi
call fcn.004dadac
xor eax, eax
inc eax
mov dword [edi + 0x20], eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004dea60
leave
ret 4
Function at 0x4db016
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xc
mov eax, 0x508b2d
call fcn.004dea6f
mov esi, ecx
call fcn.004dafcb
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4db052
xor eax, eax
jmp 0x4db113
mov dword [ebp - 0x18], ebx
push edi
push ebx
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x4db072
cmp ebx, edi
je 0x4db04b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4db04b
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x14]
push eax
push 0x14
lea eax, [esi + 4]
push eax
push ebx
call edi
test eax, eax
jne 0x4db08e
test ebx, ebx
jmp 0x4db067
cmp dword [ebp - 0x14], 0x14
jne 0x4db08a
mov eax, dword [esi + 0x14]
xor ecx, ecx
push 8
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004dc6d3
pop ecx
push 0
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [esi + 0x14]
shl ecx, 3
push ecx
push eax
push ebx
mov dword [ebp - 0x10], eax
call edi
test eax, eax
jne 0x4db0cf
push dword [ebp - 0x10]
call fcn.004de5b0
pop ecx
jmp 0x4db08a
and dword [ebp + 8], 0
cmp dword [esi + 0x14], 0
jbe 0x4db0f8
mov edi, dword [ebp - 0x10]
push edi
lea ecx, [esi + 0x18]
call fcn.004dac13
mov ecx, dword [edi + 4]
inc dword [ebp + 8]
mov dword [eax], ecx
mov eax, dword [ebp + 8]
add edi, 8
cmp eax, dword [esi + 0x14]
jb 0x4db0dc
push dword [ebp - 0x10]
call fcn.004de5b0
xor edi, edi
inc edi
pop ecx
mov dword [esi], edi
test ebx, ebx
je 0x4db111
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
call fcn.004deb47
ret 4

Function at 0x4dd665
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x54c1ac], 0
push esi
push edi
jne 0x4dd5db
call fcn.004dd547
test eax, eax
je 0x4dd620
mov eax, dword [0x54c1ac]
cmp eax, 1
jne 0x4dd5fc
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4dd620
jmp 0x4dd662
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x4dd662
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4dd624
xor eax, eax
jmp 0x4dd662
mov eax, dword [esi]
push dword [0x54c1ac]
call edi
mov edi, eax
test edi, edi
je 0x4dd646
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x4dd662
lea edi, [esi + 0xff0]
push esi
push dword [0x54c1ac]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x4dd64c
mov eax, esi
pop edi
pop esi
ret
jmp 0x4dd5c7

Function at 0x4dea60
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x547240]
jne 0x4dea6a
repz ret
jmp fcn.004ec04c