joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4787f0
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4ff048]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
push esi
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x478836
push dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push esi
push eax
push 2
call fcn.00478720
add esp, 0x10
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004250dc
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x14]
push eax
push esi
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x478868
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push esi
push eax
push 0x17
call fcn.00478720
add esp, 0x10
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004250dc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.004250dc
mov esp, ebp
pop ebp
ret

Function at 0x478920
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call fcn.004a7224
add esp, 0x18
test eax, eax
je 0x478942
cmp eax, 0xffffffff
jne 0x478944
xor eax, eax
pop ebp
ret

Function at 0x479f60
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 0x14]
push esi
push 0
push dword [ebp + 0x10]
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 4
mov dword [ebp + 0x14], esi
call fcn.0049edb0
add esp, 0xc
lea eax, [ebp - 8]
push 0xf0000040
push dword [ebp + 0x18]
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x47a02e
lea eax, [ebp - 4]
push eax
push 0
push 0
push dword [ebp + 0x1c]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x47a010
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x47a010
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x47a010
cmp esi, dword [ebp - 0xc]
jb 0x47a010
push 0
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov eax, dword [ebp - 4]
test eax, eax
je 0x47a01e
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 8]
test eax, eax
je 0x47a02e
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x47c790
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0047c700

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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push 0
mov byte [ebp + 0xa], cl
lea ecx, [ebp + 8]
push 3
mov eax, dword [esi + 0xc]
push ecx
mov byte [ebp + 8], 0xff
mov byte [ebp + 9], bl
push dword [eax + 0x148]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x483768
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.00467540
add esp, 0xc
push dword [ebp + 0x10]
push ebx
push str.SENT
push esi
call fcn.00483010
add esp, 0x10
pop esi
pop ebx
pop ebp
ret

Function at 0x4838a0
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 ebx, dword [eax + 0x134]
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
jne 0x4839fe
push edi
lea eax, [ebx + 0x1cb4]
lea edi, [ebx + 0x1eb4]
mov dword [edi], eax
cmp eax, edi
jae 0x4838d8
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4838e3
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4838ee
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 0x48391e
mov al, byte [ebp - 0xc]
mov byte [ecx], al
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x48392b
mov al, byte [ebp - 0xb]
mov byte [ecx], al
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x483938
mov al, byte [ebp - 0x14]
mov byte [ecx], al
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x483945
mov al, byte [ebp - 0x13]
mov byte [ecx], al
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x483950
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x48395b
mov byte [eax], 0xf0
inc dword [edi]
mov eax, dword [edi]
lea ecx, [ebx + 0x1cb4]
mov esi, dword [ebp + 8]
mov dword [ebx + 0x1eb8], eax
sub eax, ecx
sub eax, 2
mov dword [edi], ecx
push eax
lea eax, [ebx + 0x1cb6]
push eax
push 0x3e
push esi
call fcn.00483110
add esp, 0x10
lea eax, [ebx + 0x1cb4]
push 0
push 3
push eax
mov eax, dword [ebp - 4]
push dword [eax + 0x148]
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x4839bb
call edi
push eax
push str.Sending_data_failed___d_
push esi
call fcn.00467540
add esp, 0xc
push 4
lea eax, [ebx + 0x1cb7]
push eax
push esi
call fcn.00483780
add esp, 0xc
lea eax, [ebx + 0x1cbb]
push 0
push 2
push eax
mov eax, dword [ebp - 4]
push dword [eax + 0x148]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x4839fc
call edi
push eax
push str.Sending_data_failed___d_
push esi
call fcn.00467540
add esp, 0xc
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4849d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x4ff048]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov eax, dword [ebx + 0xc]
mov edi, dword [eax + 0x420]
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0x88], 0x80
lea eax, [ebp - 0x84]
push eax
mov eax, dword [edi + 0x13c]
push 0
add eax, 4
push eax
push dword [edi + 0x148]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [edi + 0x130], 0
mov dword [edi + 0x134], eax
jne 0x484a5c
push dword [ebp - 0x88]
lea eax, [ebp - 0x84]
push eax
lea eax, [edi + 0xb0]
push eax
call fcn.0049e830
mov eax, dword [ebp - 0x88]
add esp, 0xc
mov dword [edi + 0x130], eax
mov edx, dword [edi + 0x134]
cmp edx, 4
jge 0x484a8f
push str.Received_too_short_packet
push ebx
call fcn.00467540
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.004250dc
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x148]
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
shl eax, 8
or ecx, eax
mov dword [edi + 0xc], ecx
add ecx, 0xfffffffd
cmp ecx, 3
ja case.default.0x484ab0
jmp dword [ecx*4 + 0x484c10]
cmp edx, 4
jle case.0x484ab0.4
mov eax, dword [edi + 0x148]
movzx ecx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl ecx, 8
or ecx, eax
movzx eax, word [edi + 0x144]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x484ab0.4
lea eax, [edx - 4]
push eax
mov eax, dword [edi + 0x148]
add eax, 4
push eax
push 1
push ebx
call fcn.00467480
mov esi, eax
add esp, 0x10
test esi, esi
je 0x484b23
push 5
push edi
call fcn.00485480
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004250dc
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x134]
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.00473fc0
jmp 0x484bda
mov eax, dword [edi + 0x148]
lea esi, [edx - 4]
add eax, 4
mov dword [ebp - 0x8c], eax
mov eax, dword [edi + 0x148]
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.004855b0
add esp, 8
cmp eax, esi
jae case.0x484ab0.4
push dword [ebp - 0x8c]
push str.TFTP_error:__s_n
push ebx
call fcn.00467660
jmp 0x484bda
lea eax, [edx - 2]
push eax
mov eax, dword [edi + 0x148]
add eax, 2
push eax
push edi
call fcn.00484760
add esp, 0xc
test eax, eax
je case.0x484ab0.4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004250dc
mov esp, ebp
pop ebp
ret
push str.Internal_error:_Unexpected_packet
push 0x4d571c
push ebx
call fcn.00467540
add esp, 0xc
push ebx
call fcn.004742b0
add esp, 4
test eax, eax
je 0x484a7c
push 5
push edi
call fcn.00485480
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 0x2a
pop edi
pop esi
pop ebx
call fcn.004250dc
mov esp, ebp
pop ebp
ret
Function at 0x485480
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [eax + 0x10]
cmp edx, 3
ja case.default.0x485490
jmp dword [edx*4 + 0x4854e4]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00484f40
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00484c20
mov dword [ebp + 8], eax
pop ebp
jmp fcn.004856e0
push str.TFTP_finished
push 0x4ddb10
push ecx
call fcn.00467660
add esp, 0xc
xor eax, eax
pop ebp
ret
push str.Internal_state_machine_error
push 0x4d571c
push ecx
call fcn.00467540
add esp, 0xc
mov eax, 0x47
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [eax + 0x10]
cmp edx, 3
ja case.default.0x485490
jmp dword [edx*4 + 0x4854e4]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00484f40
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00484c20
mov dword [ebp + 8], eax
pop ebp
jmp fcn.004856e0
push str.TFTP_finished
push 0x4ddb10
push ecx
call fcn.00467660
add esp, 0xc
xor eax, eax
pop ebp
ret
push str.Internal_state_machine_error
push 0x4d571c
push ecx
call fcn.00467540
add esp, 0xc
mov eax, 0x47
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [eax + 0x10]
cmp edx, 3
ja case.default.0x485490
jmp dword [edx*4 + 0x4854e4]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00484f40
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00484c20
mov dword [ebp + 8], eax
pop ebp
jmp fcn.004856e0
push str.TFTP_finished
push 0x4ddb10
push ecx
call fcn.00467660
add esp, 0xc
xor eax, eax
pop ebp
ret
push str.Internal_state_machine_error
push 0x4d571c
push ecx
call fcn.00467540
add esp, 0xc
mov eax, 0x47
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [eax + 0x10]
cmp edx, 3
ja case.default.0x485490
jmp dword [edx*4 + 0x4854e4]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00484f40
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00484c20
mov dword [ebp + 8], eax
pop ebp
jmp fcn.004856e0
push str.TFTP_finished
push 0x4ddb10
push ecx
call fcn.00467660
add esp, 0xc
xor eax, eax
pop ebp
ret
push str.Internal_state_machine_error
push 0x4d571c
push ecx
call fcn.00467540
add esp, 0xc
mov eax, 0x47
pop ebp
ret
Function at 0x489db0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x4ff048]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x88]
push ecx
lea ecx, [ebp - 0x84]
or esi, 0xffffffff
push ecx
mov ebx, dword [edi + 0xc]
mov eax, dword [ebx + 0x14c]
push eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x489e24
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 esi, eax
push dword [ebp - 0x8c]
push ebx
push edi
call fcn.00467ed0
add esp, 0xc
cmp esi, 0xffffffff
jne 0x489e5d
push str.Error_accept__ing_server_connect
push edi
call fcn.00467540
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004250dc
mov esp, ebp
pop ebp
ret
push str.Connection_accepted_from_server_n
push edi
call fcn.00467660
push 1
push esi
mov byte [ebx + 0x24e], 0
mov dword [ebx + 0x14c], esi
call fcn.00473e20
add esp, 0x10
mov byte [ebx + 0x260], 1
cmp dword [edi + 0x1b8], 0
je 0x489eda
push 1
push edi
call fcn.00457bc0
mov eax, dword [edi + 0x1b8]
push 1
push esi
push dword [edi + 0x1bc]
call eax
push 0
push edi
mov esi, eax
call fcn.00457bc0
add esp, 0x1c
test esi, esi
je 0x489eda
push ebx
push edi
call fcn.0048a350
add esp, 8
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004250dc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004250dc
mov esp, ebp
pop ebp
ret

Function at 0x48c540
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ecx - 0xc8]
xor edi, edi
mov ebx, dword [esi + 0xc]
cmp eax, 0x64
jb 0x48c572
push str.Couldnt_set_desired_mode
push esi
call fcn.00467540
add esp, 8
lea eax, [edi + 0x11]
pop edi
pop esi
pop ebx
pop ebp
ret
cmp ecx, 0xc8
je 0x48c589
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push esi
call fcn.00467660
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp eax, 0x13
jne 0x48c5a2
push ebx
push esi
call fcn.0048c1c0
add esp, 8
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x14
jne 0x48c5b7
push esi
call fcn.0048b0e0
add esp, 4
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x15
jne 0x48c5d0
push 0xd
push 1
push esi
call fcn.0048bce0
add esp, 0xc
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x16
jne 0x48c5e4
push 0xe
push 1
push esi
call fcn.0048bce0
add esp, 0xc
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x48f2d0
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x4ff048]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, edi
mov dword [ebp - 0x28], eax
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x48f2f1
sub esi, ecx
cmp byte [edi], 0x5b
jne 0x48f407
cmp esi, 4
jae 0x48f31e
pop edi
pop esi
mov eax, 3
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004250dc
mov esp, ebp
pop ebp
ret
inc edi
sub esi, 2
cmp byte [edi + esi], 0x5d
lea ebx, [edi + esi]
jne 0x48f308
push str.0123456789abcdefABCDEF:.
push edi
call fcn.004bc9f0
add esp, 8
cmp esi, eax
je 0x48f3e9
add eax, edi
mov dword [ebp - 0x2c], eax
cmp byte [eax], 0x25
jne 0x48f308
push 2
lea esi, [eax + 1]
xor ebx, ebx
push 0x4e5abc
push esi
call fcn.004ba5f0
add esp, 0xc
test eax, eax
jne 0x48f374
mov cl, byte [esi + 2]
lea eax, [esi + 2]
test cl, cl
je 0x48f374
cmp cl, 0x5d
cmovne esi, eax
mov al, byte [esi]
test al, al
je 0x48f308
lea ecx, [ebp - 0x14]
sub ecx, esi
nop
cmp al, 0x5d
je 0x48f395
cmp ebx, 0xf
jge 0x48f395
mov byte [ecx + esi], al
inc ebx
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x48f380
test ebx, ebx
je 0x48f308
cmp byte [esi], 0x5d
jne 0x48f308
cmp ebx, 0x10
jae 0x48f43a
lea eax, [ebp - 0x14]
mov byte [ebp + ebx - 0x14], 0
push eax
call dword [0x4ff164]
mov ecx, dword [ebp - 0x28]
add esp, 4
mov dword [ecx + 0x14], eax
test eax, eax
jne 0x48f3e1
pop edi
pop esi
mov eax, 7
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004250dc
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x2c]
mov word [ebx], 0x5d
lea eax, [ebp - 0x24]
mov byte [ebx], 0
push eax
push edi
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x48f308
mov byte [ebx], 0x5d
jmp 0x48f41d
push 0x4d97a8
push edi
call fcn.004a7060
add esp, 8
cmp esi, eax
jne 0x48f308
xor eax, eax
mov ecx, 0xe
cmp byte [edi], al
pop edi
cmove eax, ecx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004250dc
mov esp, ebp
pop ebp
ret
call fcn.00425210
int3
Function at 0x499860
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, 0x24
mov eax, dword [0x4ff048]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push edi
mov edi, dword [ebp + 0x10]
push 0xf0000040
push 1
push 0
push 0
push eax
mov dword [ebp - 0x20], 8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4998f7
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 0
push eax
xorps xmm0, xmm0
movups xmmword [ebp - 0x18], xmm0
push edi
mov word [ebp - 0x18], 0x208
mov dword [ebp - 0x14], 0x6601
mov dword [ebp - 0x10], 8
call fcn.00499960
lea eax, [ebp - 0xc]
push 8
push eax
call fcn.0049c740
add esp, 0x10
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 0x14
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x499909
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004250dc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
push dword [ebp - 0x20]
mov eax, dword [ecx]
mov dword [esi], eax
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push eax
push esi
push 0
push 0
push 0
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.004250dc
mov esp, ebp
pop ebp
ret

Function at 0x49af00
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 0x49af33
push 0x2e
push edi
call fcn.004a2250
add esp, 8
test eax, eax
je 0x49af31
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x49c210
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x4ff158]
mov edi, eax
add esp, 4
test edi, edi
jne 0x49c23d
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x49c284
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call eax
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
mov eax, dword [esi + 8]
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], ebx
jmp 0x49c28a
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x49c2eb
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
nop word [eax + eax]
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub dword [ebp + 0x10], 1
jne 0x49c2b0
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x49c317
mov eax, dword [esi + 4]
push 1
push 0x4e7b70
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x4e7b71
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x49c2f0
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x49c460
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 0xc]
push 0xf0000040
push 0x18
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x49c495
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x800c
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
push dword [ebp + 0x10]
call fcn.00469b30
add esp, 4
push 0
push eax
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [ebp - 4], 0x20
jne 0x49c4e3
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov eax, dword [ebp - 8]
test eax, eax
je 0x49c4f1
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x49c501
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov esp, ebp
pop ebp
ret
Function at 0x49c590
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x4ff048]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov ecx, ebx
push edi
mov edi, dword [ebp + 0xc]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49c5b0
sub ecx, edx
cmp byte [ebx + ecx - 1], 0x2e
jne 0x49c5c4
mov byte [ebx + ecx - 1], al
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49c5d0
sub ecx, edx
cmp byte [edi + ecx - 1], 0x2e
jne 0x49c5e4
mov byte [edi + ecx - 1], al
push 0x2a
push edi
call fcn.004a2250
add esp, 8
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x49c616
push ebx
push edi
call fcn.0046ade0
add esp, 8
neg eax
sbb eax, eax
neg eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004250dc
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.WS2_32.dll_inet_pton]
lea eax, [ebp - 0x2c]
push eax
push ebx
push 2
call esi
test eax, eax
jg 0x49c6fd
lea eax, [ebp - 0x18]
push eax
push ebx
push 0x17
call esi
test eax, eax
jg 0x49c6fd
push 0x2e
push edi
call fcn.004a2250
mov esi, eax
add esp, 8
test esi, esi
je 0x49c710
lea ecx, [esi + 1]
push 0x2e
push ecx
call fcn.004a2250
add esp, 8
test eax, eax
je 0x49c710
cmp dword [ebp - 0x24], esi
ja 0x49c710
push 4
push 0x4e7b8c
push edi
call fcn.0046ae40
add esp, 0xc
test eax, eax
jne 0x49c710
push 0x2e
push ebx
call fcn.004a2250
add esp, 8
mov dword [ebp - 0x28], eax
test eax, eax
je 0x49c6fd
push eax
push esi
call fcn.0046ade0
add esp, 8
test eax, eax
je 0x49c6fd
mov eax, dword [ebp - 0x28]
mov ecx, esi
sub ecx, edi
sub eax, ebx
cmp eax, ecx
jl 0x49c6fd
mov eax, dword [ebp - 0x24]
sub esi, eax
sub eax, edi
dec esi
push eax
push ebx
push edi
call fcn.0046ae40
add esp, 0xc
test eax, eax
je 0x49c6fd
mov eax, dword [ebp - 0x28]
sub eax, esi
push esi
push eax
mov eax, dword [ebp - 0x24]
inc eax
push eax
call fcn.0046ae40
add esp, 0xc
test eax, eax
je 0x49c6fd
pop esi
pop edi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004250dc
mov esp, ebp
pop ebp
ret
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004250dc
mov esp, ebp
pop ebp
ret
push ebx
push edi
call fcn.0046ade0
mov ecx, dword [ebp - 4]
add esp, 8
neg eax
sbb eax, eax
xor ecx, ebp
pop esi
pop edi
neg eax
pop ebx
call fcn.004250dc
mov esp, ebp
pop ebp
ret