joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b1e60
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push edi
push 4
pop edi
push esi
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edi
mov dword [ebp + 0x14], esi
call fcn.00518c00
add esp, 0xc
lea eax, [ebp - 8]
push 0xf0000000
push dword [ebp + 0x18]
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x4b1f19
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push dword [ebp + 0x1c]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4b1efc
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4b1efc
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
call edi
test eax, eax
je 0x4b1efc
cmp esi, dword [ebp - 0xc]
jb 0x4b1efc
push ebx
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push 2
push dword [ebp - 4]
call edi
cmp dword [ebp - 4], ebx
je 0x4b1f0a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 8], ebx
je 0x4b1f19
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b66be
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x5d723c]
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 0x4b66f9
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.004a2b39
add esp, 0xc
jmp 0x4b6721
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x4b6714
shr eax, 8
test al, al
jne 0x4b6714
xor eax, eax
jmp 0x4b6724
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.004a2b39
pop ecx
pop ecx
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005126ae
mov esp, ebp
pop ebp
ret

Function at 0x4b6eba
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 0x4b6f02
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.004a2b39
add esp, 0xc
push dword [ebp + 0x10]
push ebx
push str.SENT
push dword [esi]
call fcn.004b683e
add esp, 0x10
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4b7015
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x154]
jne 0x4b716b
push edi
lea eax, [ebx + 0x1cb0]
lea edi, [ebx + 0x1eb0]
mov dword [edi], eax
cmp eax, edi
jae 0x4b704c
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4b7057
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4b7062
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
mov word [ebp - 0xc], ax
movzx eax, word [ebx + 0x1caa]
push eax
call esi
mov ecx, dword [edi]
mov word [ebp - 0x14], ax
cmp ecx, edi
jae 0x4b7092
mov al, byte [ebp - 0xc]
mov byte [ecx], al
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x4b709f
mov al, byte [ebp - 0xb]
mov byte [ecx], al
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x4b70ac
mov al, byte [ebp - 0x14]
mov byte [ecx], al
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x4b70b9
mov al, byte [ebp - 0x13]
mov byte [ecx], al
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4b70c4
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4b70cf
mov byte [eax], 0xf0
inc dword [edi]
mov eax, dword [edi]
lea esi, [ebx + 0x1cb0]
mov dword [ebx + 0x1eb4], eax
sub eax, esi
sub eax, 2
mov dword [edi], esi
mov edi, dword [ebp - 4]
push eax
lea eax, [ebx + 0x1cb2]
push eax
push 0x3e
push edi
call fcn.004b692b
add esp, 0x10
push 0
push 3
push esi
mov esi, dword [ebp + 8]
push dword [esi + 0x1a8]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x4b7127
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.004a2b39
add esp, 0xc
push 4
lea eax, [ebx + 0x1cb3]
push eax
push esi
call fcn.004b6f1a
add esp, 0xc
lea eax, [ebx + 0x1cb7]
push 0
push 2
push eax
push dword [esi + 0x1a8]
call dword [sym.imp.WS2_32.dll_send]
pop esi
test eax, eax
jns 0x4b716a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.004a2b39
add esp, 0xc
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b7170
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90c
mov eax, dword [0x5d723c]
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
xor edi, edi
push edi
push eax
call fcn.00518c00
push esi
lea eax, [ebp - 0x84]
push edi
push eax
call fcn.00518c00
mov esi, dword [ebx]
mov dword [ebp - 0x90c], esi
mov ebx, dword [esi + 0x154]
mov eax, dword [ebx + 0x1eb4]
sub eax, dword [ebx + 0x1eb0]
add eax, 2
push eax
lea eax, [ebx + 0x1cb0]
push eax
push 0x3c
push esi
call fcn.004b692b
mov eax, dword [ebx + 0x1eb0]
add esp, 0x28
movzx ecx, byte [eax]
inc eax
mov dword [ebx + 0x1eb0], eax
cmp ecx, 0x18
je 0x4b7344
cmp ecx, 0x23
je 0x4b7320
cmp ecx, 0x27
jne 0x4b73d5
push edi
push ecx
push 0xfa
push 0xff
push str._c_c_c_c
lea eax, [ebp - 0x904]
push 0x800
push eax
call fcn.004ae7eb
mov ebx, dword [ebx + 0x1cac]
add esp, 0x1c
push 4
pop edi
test ebx, ebx
je 0x4b72ba
mov ecx, dword [ebx]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b7244
sub ecx, edx
lea esi, [edi + 1]
add esi, ecx
cmp esi, 0x7fa
jae 0x4b72ad
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x104]
push eax
push str._127_____127s
push dword [ebx]
call fcn.00481a40
add esp, 0x10
test eax, eax
je 0x4b72ad
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.004ae7eb
add esp, 0x1c
mov edi, esi
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x4b723f
mov esi, dword [ebp - 0x90c]
push 0xf0
push 0xff
mov eax, 0x800
sub eax, edi
push str._c_c
push eax
lea eax, [ebp - 0x904]
add eax, edi
push eax
call fcn.004ae7eb
add esp, 0x14
lea eax, [edi + 2]
push 0
push eax
lea eax, [ebp - 0x904]
push eax
mov eax, dword [ebp - 0x908]
push dword [eax + 0x1a8]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x4b731a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.004a2b39
add esp, 0xc
push edi
jmp 0x4b73c3
add ebx, 0x1c28
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b732b
push 0xf0
mov eax, 0xff
push eax
push ebx
push 0
push 0x23
jmp 0x4b7366
add ebx, 0x1c08
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b734f
push 0xf0
mov eax, 0xff
push eax
push ebx
push 0
push 0x18
push 0xfa
push eax
push str._c_c_c_c_s_c_c
sub ecx, edx
lea eax, [ebp - 0x904]
push 0x800
push eax
lea edi, [ecx + 6]
call fcn.004ae7eb
add esp, 0x28
lea eax, [ebp - 0x904]
push 0
push edi
push eax
mov eax, dword [ebp - 0x908]
push dword [eax + 0x1a8]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x4b73bf
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.004a2b39
add esp, 0xc
lea eax, [edi - 2]
push eax
lea eax, [ebp - 0x902]
push eax
push 0x3e
push esi
call fcn.004b692b
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005126ae
mov esp, ebp
pop ebp
ret
Function at 0x4b7eaf
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x5d723c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [eax + 0x4a8]
mov ebx, dword [eax]
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x84]
mov dword [ebp - 0x88], 0x80
push eax
mov eax, dword [edi + 0x154]
push 0
push 4
pop esi
add eax, esi
push eax
push dword [edi + 0x15c]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [edi + 0x148], 0
mov dword [edi + 0x14c], eax
jne 0x4b7f42
push dword [ebp - 0x88]
lea eax, [ebp - 0x84]
push eax
lea eax, [edi + 0xc8]
push eax
call fcn.00518680
mov eax, dword [ebp - 0x88]
add esp, 0xc
mov dword [edi + 0x148], eax
mov edx, dword [edi + 0x14c]
cmp edx, esi
jge 0x4b7f73
push str.Received_too_short_packet
push ebx
call fcn.004a2b39
pop ecx
pop ecx
mov dword [edi + 0xc], 7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005126ae
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x15c]
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
shl eax, 8
or ecx, eax
mov dword [edi + 0xc], ecx
sub ecx, 3
je 0x4b802a
sub ecx, 1
je 0x4b80ac
sub ecx, 1
je 0x4b7fda
sub ecx, 1
je 0x4b7fb9
push str.Internal_error:_Unexpected_packet
push 0x5c1b04
push ebx
call fcn.004a2b39
jmp 0x4b80a9
lea eax, [edx - 2]
push eax
mov eax, dword [edi + 0x15c]
add eax, 2
push eax
push edi
call fcn.004b7cb9
add esp, 0xc
test eax, eax
je 0x4b80ac
jmp 0x4b7f62
mov eax, dword [edi + 0x15c]
add eax, esi
lea esi, [edx - 4]
mov dword [ebp - 0x8c], eax
mov eax, dword [edi + 0x15c]
push esi
push dword [ebp - 0x8c]
movzx ecx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl ecx, 8
or ecx, eax
mov dword [edi + 8], ecx
call fcn.004b7bd0
pop ecx
pop ecx
cmp eax, esi
jae 0x4b80ac
push dword [ebp - 0x8c]
push str.TFTP_error:__s_n
push ebx
call fcn.004a2c0f
jmp 0x4b80a9
cmp edx, esi
jle 0x4b80ac
mov eax, dword [edi + 0x15c]
movzx ecx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl ecx, 8
or ecx, eax
movzx eax, word [edi + 0x40]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x4b80ac
lea eax, [edx - 4]
push eax
mov eax, dword [edi + 0x15c]
add eax, esi
push eax
push 1
push dword [ebp - 0x90]
call fcn.004a2a91
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4b8081
push 5
push edi
call fcn.004b8851
pop ecx
pop ecx
mov eax, esi
jmp 0x4b7f62
mov eax, dword [edi + 0x14c]
sub eax, 4
cdq
add dword [ebx + 0xa0], eax
adc dword [ebx + 0xa4], edx
push dword [ebx + 0xa4]
push dword [ebx + 0xa0]
push ebx
call fcn.004ac620
add esp, 0xc
push dword [ebp - 0x90]
call fcn.004ac8c6
pop ecx
test eax, eax
je 0x4b7f60
push 5
push edi
call fcn.004b8851
pop ecx
pop ecx
push 0x2a
pop eax
jmp 0x4b7f62
Function at 0x4bd2c4
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5d723c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], 0x10
push ecx
mov eax, dword [edi + 0x1ac]
or esi, 0xffffffff
mov ebx, dword [edi]
push eax
mov dword [ebp - 0x1c], eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4bd31c
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x10
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.WS2_32.dll_accept]
mov esi, eax
push dword [ebp - 0x1c]
push edi
call fcn.004a34a4
pop ecx
pop ecx
cmp esi, 0xffffffff
jne 0x4bd33e
push str.Error_accept__ing_server_connect
push ebx
call fcn.004a2b39
pop ecx
pop ecx
push 0x1e
pop eax
jmp 0x4bd3a9
push str.Connection_accepted_from_server_n
push ebx
call fcn.004a2c0f
and dword [edi + 0x284], 0xfffff7ff
push 1
push esi
mov dword [edi + 0x1ac], esi
call fcn.004c5e8c
add esp, 0x10
mov byte [edi + 0x1b9], 1
cmp dword [ebx + 0x610], 0
je 0x4bd3a7
push 1
push ebx
call fcn.00496515
push 1
push esi
push dword [ebx + 0x614]
call dword [ebx + 0x610]
push 0
push ebx
mov esi, eax
call fcn.00496515
add esp, 0x1c
test esi, esi
je 0x4bd3a7
push edi
call fcn.004bd747
pop ecx
push 0x2a
jmp 0x4bd33b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005126ae
mov esp, ebp
pop ebp
ret

Function at 0x4bf27b
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 0x4bf2a7
push str.Couldnt_set_desired_mode
push edx
call fcn.004a2b39
pop ecx
pop ecx
push 0x11
pop eax
jmp 0x4bf2fb
cmp ecx, 0xc8
je 0x4bf2be
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push edx
call fcn.004a2c0f
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp eax, 0x13
jne 0x4bf2cf
push edi
call fcn.004bf028
pop ecx
jmp 0x4bf2f7
cmp eax, 0x14
jne 0x4bf2dc
push edi
call fcn.004be1d4
jmp 0x4bf2cc
cmp eax, 0x15
jne 0x4bf2e5
push 0xd
jmp 0x4bf2ec
cmp eax, 0x16
jne 0x4bf2f9
push 0xe
push 1
push edi
call fcn.004bec23
add esp, 0xc
mov esi, eax
mov eax, esi
pop edi
pop esi
pop ebp
ret
Function at 0x4c97fb
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ebx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4c980b
sub esi, ecx
cmp esi, 0x7fffffff
jbe 0x4c9824
push 0x1b
pop eax
jmp 0x4c98ea
push edi
test esi, esi
je 0x4c9835
lea eax, [esi + esi]
push eax
call dword [0x5d7030]
jmp 0x4c9840
push 0x5c012c
call dword [0x5d703c]
mov edi, eax
pop ecx
test edi, edi
jne 0x4c984f
push 0x1b
pop eax
jmp 0x4c98e9
xor edx, edx
mov ecx, edx
test esi, esi
je 0x4c9866
mov al, byte [ecx + ebx]
mov byte [edi + ecx*2], al
mov byte [edi + ecx*2 + 1], dl
inc ecx
cmp ecx, esi
jb 0x4c9857
push 0xf0000000
push 1
push edx
push edx
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov ebx, dword [ebp + 0x10]
test eax, eax
je 0x4c98d7
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x8002
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4c98cc
push 0
lea eax, [esi + esi]
mov dword [ebp - 0xc], 0x10
push eax
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
lea eax, [ebp - 0xc]
push eax
push ebx
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
and dword [ebx + 0x10], 0
push edi
mov byte [ebx + 0x14], 0
call dword [0x5d7034]
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c98f0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x5d723c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push 0xf0000000
inc ebx
mov dword [ebp - 0x28], eax
push ebx
push 0
push 0
lea eax, [ebp - 0x24]
mov dword [ebp - 0x1c], 8
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x4c9934
xor al, al
jmp 0x4c99c6
push edi
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x28]
mov word [ebp - 0x18], 0x208
mov dword [ebp - 0x14], 0x6601
mov dword [ebp - 0x10], 8
call fcn.004c99d6
lea eax, [ebp - 0xc]
push 8
push eax
call fcn.004cc8f2
add esp, 0x10
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0x14
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
pop edi
test eax, eax
jne 0x4c998d
xor bl, bl
jmp 0x4c99b9
mov ecx, dword [ebp + 8]
push dword [ebp - 0x1c]
mov eax, dword [ecx]
mov dword [esi], eax
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
lea eax, [ebp - 0x1c]
push eax
push esi
xor eax, eax
push eax
push eax
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, bl
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.005126ae
mov esp, ebp
pop ebp
ret
Function at 0x4cd947
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 [0x5d7030]
mov edi, eax
pop ecx
test edi, edi
je 0x4cda33
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 0x4cd9b0
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 dword [ebp + 0x10], ebx
jmp 0x4cd9b6
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [edi + 4]
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 0x4cda2b
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 0x4cd9d0
mov ebx, dword [ebp - 8]
jmp 0x4cda2b
push 1
push 0x59b3af
push dword [edi + 4]
call dword [esi + 4]
push 1
push 0x59b3b0
push dword [edi + 8]
call dword [esi + 4]
add esp, 0x18
inc ebx
cmp ebx, dword [esi + 0x10]
jb 0x4cda0d
mov eax, edi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4dbe71
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
lea eax, [esi + 0x170]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
mov ecx, esi
test eax, eax
jne 0x4dbe97
call fcn.004d8f38
jmp 0x4dbec3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004d8414
mov eax, dword [esi + 0x180]
xor ecx, ecx
cmp dword [eax - 8], ecx
je 0x4dbec3
push 1
push ecx
push ecx
push eax
push 0x59dc84
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop esi
pop ebp
ret 0xc
Function at 0x4e3a34
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, esi
push edi
mov edi, ecx
sub eax, 9
je 0x4e3a95
sub eax, 1
je 0x4e3a77
sub eax, 3
je 0x4e3a77
test dword [edi + 0x370], 0x2000
je 0x4e3ab0
push esi
call fcn.005232e9
pop ecx
test eax, eax
jne 0x4e3ab0
cmp esi, 0x2d
je 0x4e3ab0
cmp esi, 0x2e
je 0x4e3ab0
cmp esi, 0x2c
je 0x4e3ab0
jmp 0x4e3acb
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x4e3ab0
test dword [edi + 0x370], 0x1000
jmp 0x4e3aae
test byte [edi + 0x374], 0x80
jne 0x4e3ab0
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x4e3acb
mov eax, dword [edi + 0x380]
push 0
mov ecx, dword [eax + 0xc]
mov eax, dword [edi + 0x6c]
mov edx, dword [ecx]
push dword [eax + 8]
push dword [eax + 4]
push dword [eax]
call dword [edx + 0xc]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4e3d38
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x2c]
push edi
push esi
call fcn.004cec56
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x2c]
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 8], eax
mov eax, dword [esi]
push ecx
mov ecx, esi
mov dword [ebp - 0x2c], 0x59bc8c
mov dword [ebp - 0x24], 0x59e960
mov byte [ebp - 4], bl
mov dword [ebp - 0xc], edi
call dword [eax + 0x94]
cmp byte [ebp - 4], bl
jne 0x4e3da1
cmp edi, 0xd
jne 0x4e3da6
test dword [esi + 0x370], 0x1000
jne 0x4e3da6
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x4e3da6
mov dword [esi + 0x10], ebx
jmp 0x4e3dc0
mov eax, dword [esi + 0x380]
push ebx
mov ecx, dword [eax + 0xc]
mov eax, dword [esi + 0x6c]
mov edx, dword [ecx]
push dword [eax + 8]
push dword [eax + 4]
push dword [eax]
call dword [edx + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4e5e47
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x5d723c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x11c
lea eax, [ebp - 0x120]
push esi
push 0
push eax
call fcn.00518c00
add esp, 0xc
mov dword [ebp - 0x120], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x120]
push eax
call esi
test eax, eax
jne 0x4e5ea2
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call esi
test eax, eax
je 0x4e5eb6
cmp byte [ebp - 6], 1
jne 0x4e5eb6
cmp dword [ebp - 0x11c], 6
jne 0x4e5eb6
xor eax, eax
inc eax
jmp 0x4e5eb8
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005126ae
mov esp, ebp
pop ebp
ret