joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10061040
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Set socket configuration
Start tcp server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x100dcd80]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 0x14]
push 6
push 1
push 2
mov dword [ebp - 0x28], 0x10
mov dword [ebp - 0x2c], 1
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x10061211
xorps xmm0, xmm0
mov eax, 2
push 0x7f000001
movlpd qword [ebp - 0xc], xmm0
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x10], eax
xor eax, eax
push 4
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x2c]
push eax
push 4
push 0xffff
push esi
mov dword [edi + 4], 0xffffffff
mov dword [edi], 0xffffffff
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x100611ff
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x100611ff
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x100611ff
cmp dword [ebp - 0x28], 0x10
jl 0x100611ff
push 1
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x100611ff
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x100611ff
push 0x10
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x100611ff
push 1
push esi
call fcn.10079df0
add esp, 8
test eax, eax
js 0x100611ff
push 0
push 0x2710
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], esi
push 1
push eax
mov dword [ebp - 0x30], 0x300
call fcn.1005c570
add esp, 0x10
push 0
push 0
push esi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x100611ff
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x10
push eax
lea eax, [ebp - 0x14]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x100611ff
cmp dword [ebp - 0x28], 0x10
jl 0x100611ff
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x10
push eax
lea eax, [ebp - 0x24]
push eax
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_getpeername]
cmp eax, 0xffffffff
je 0x100611ff
cmp dword [ebp - 0x28], 0x10
jl 0x100611ff
mov ax, word [ebp - 0x14]
cmp ax, word [ebp - 0x24]
jne 0x100611ff
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x20]
jne 0x100611ff
mov ax, word [ebp - 0x12]
cmp ax, word [ebp - 0x22]
jne 0x100611ff
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c562
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
call esi
push dword [edi]
call esi
push dword [edi + 4]
call esi
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
xor ecx, ebp
pop esi
call fcn.1008c562
mov esp, ebp
pop ebp
ret
Function at 0x10061260
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
push edi
xor edi, edi
mov dword [ebp - 0x10], edi
mov dword [eax], edi
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 8], eax
test eax, eax
jne 0x100613f7
push esi
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x100613e3
push ebx
nop dword [eax]
mov eax, dword [esi + 0x14]
test eax, eax
je 0x100612be
lea edx, [eax + 1]
nop word [eax + eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100612b0
sub eax, edx
lea ecx, [eax + 1]
jmp 0x100612c0
xor ecx, ecx
mov eax, dword [esi + 4]
mov dword [ebp - 0xc], ecx
cmp eax, 2
jne 0x100612d2
mov eax, 0x10
jmp 0x100612e0
cmp eax, 0x17
jne 0x10061385
mov eax, 0x1c
cmp dword [esi + 0x18], 0
mov dword [ebp - 4], eax
je 0x10061385
mov edx, dword [esi + 0x10]
test edx, edx
je 0x10061385
cmp edx, eax
jb 0x10061385
add ecx, 0x20
add eax, ecx
push eax
call dword [0x100dcd44]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x100613d5
mov ecx, dword [esi]
mov dword [ebx], ecx
mov ecx, dword [esi + 4]
mov dword [ebx + 4], ecx
mov ecx, dword [esi + 8]
mov dword [ebx + 8], ecx
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 4]
mov dword [ebx + 0xc], eax
lea eax, [ebx + 0x20]
push ecx
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x18], eax
push dword [esi + 0x18]
push eax
call fcn.1008df10
mov edx, dword [ebp - 0xc]
add esp, 0xc
test edx, edx
je 0x10061373
mov eax, dword [ebx + 0x18]
add eax, dword [ebp - 4]
push edx
mov dword [ebx + 0x14], eax
push dword [esi + 0x14]
push eax
call fcn.1008df10
add esp, 0xc
mov eax, dword [ebp - 0x10]
test edi, edi
cmove edi, ebx
test eax, eax
je 0x10061382
mov dword [eax + 0x1c], ebx
mov dword [ebp - 0x10], ebx
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x100612a0
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
pop ebx
test eax, eax
je 0x100613a2
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x100613df
test edi, edi
je 0x100613c6
nop word [eax + eax]
mov esi, dword [edi + 0x1c]
push edi
call dword [0x100dcd48]
add esp, 4
mov edi, esi
test esi, esi
jne 0x100613b0
mov esi, dword [ebp - 8]
mov eax, dword [ebp + 0x14]
xor edi, edi
mov dword [eax], edi
mov eax, esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret
mov esi, 8
mov dword [ebp - 8], esi
jmp 0x10061393
test edi, edi
jne 0x100613ef
mov esi, 0x2af9
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
mov eax, esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x100615f0
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100dcd80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push esi
mov esi, dword [ebp + 8]
push eax
push esi
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x10061639
push ebx
push esi
lea eax, [ebp - 0x18]
push eax
push 2
call fcn.10061400
add esp, 0x10
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c562
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 0x1006166a
push ebx
push esi
lea eax, [ebp - 0x14]
push eax
push 0x17
call fcn.10061400
add esp, 0x10
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c562
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.1008c562
mov esp, ebp
pop ebp
ret

Function at 0x100617e0
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.100a14f8
mov ecx, eax
add esp, 0x18
xor eax, eax
test ecx, ecx
je 0x10061807
cmp ecx, 0xffffffff
cmovne eax, ecx
pop ebp
ret
Function at 0x100654b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
lea esi, [ebx + 1]
push esi
push ebx
call dword [0x100dcd4c]
mov edi, eax
add esp, 8
test edi, edi
je 0x1006550a
nop dword [eax]
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x10065526
cmp esi, ebx
je 0x10065526
cmp esi, 0x8000
ja 0x10065526
cmp esi, ebx
jb 0x1006551d
push esi
push edi
call dword [0x100dcd4c]
mov edi, eax
add esp, 8
test edi, edi
jne 0x100654d0
mov ebx, dword [ebp - 4]
push ebx
call dword [0x100dcd48]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [0x100dcd48]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov byte [ebp + 9], al
mov al, byte [ebp + 0x10]
push 0
mov ecx, dword [esi + 0xc]
mov byte [ebp + 0xa], al
lea eax, [ebp + 8]
push 3
push eax
mov byte [ebp + 8], 0xff
push dword [ecx + 0x150]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x100665e7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.1004cb90
add esp, 0xc
pop esi
pop ebp
ret
Function at 0x10067700
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x100dcd80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x25c], ebx
mov dword [ebp - 0x258], edi
mov esi, dword [eax + 0x440]
cmp dword [esi], 0
sete al
movzx eax, al
push eax
push 0
push dword [esi + 0x10]
call fcn.1004e380
add esp, 0xc
test edx, edx
jg 0x10067764
jl 0x10067752
test eax, eax
jae 0x10067764
mov dword [esi + 8], 0xffffff9d
mov dword [esi], 3
jmp 0x10067f29
lea eax, [ebp - 0x250]
push eax
call fcn.100971b4
mov eax, dword [esi + 0x1c]
lea edi, [esi + 0x28]
cdq
add esp, 4
add eax, dword [edi]
adc edx, dword [edi + 4]
cmp dword [ebp - 0x24c], edx
jl 0x10067f23
jg 0x10067799
cmp dword [ebp - 0x250], eax
jbe 0x10067f23
push edi
mov ebx, 7
call fcn.100971b4
mov eax, dword [ebp - 0x258]
add esp, 4
mov byte [eax], 0
mov eax, dword [esi]
mov edx, dword [esi + 0x10]
mov dword [ebp - 0x254], edx
cmp eax, 3
ja case.default.0x100677c4
jmp dword [eax*4 + 0x10067fc8]
xor edi, edi
mov eax, str.netascii
cmp byte [edx + 0xd0b], 0
mov ebx, str.octet
cmovne ebx, eax
mov eax, 7
jmp dword [eax*4 + 0x10067fd8]
mov eax, 4
jmp dword [eax*4 + 0x10067ff8]
push ebx
push esi
call fcn.10068f00
mov edi, eax
add esp, 8
test edi, edi
jne 0x10067f10
cmp dword [esi], 3
mov edx, dword [ebp - 0x258]
sete al
mov byte [edx], al
jne 0x10067fb2
push 0xffffffffffffffff
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp - 0x25c]
jmp 0x10067faa
push str.Internal_state_machine_error
push 0x100bc05c
push edx
call fcn.1004cb90
add esp, 0xc
mov edi, 0x47
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c562
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x258]
push 0
push 0
mov ecx, edi
xor al, al
push 0xffffffffffffffff
push 0xffffffffffffffff
mov byte [ecx], al
push dword [esi + 0x14]
call fcn.1005c930
add esp, 0x14
cmp eax, 0xffffffff
jne 0x10067f74
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x100
lea ecx, [ebp - 0x244]
push ecx
push eax
call fcn.10079b20
push eax
push 0x100bc05c
push ebx
call fcn.1004cb90
mov dword [esi + 0xc], 5
jmp 0x10067faf
test eax, eax
je 0x10067fb2
push ebx
call fcn.100682e0
add esp, 4
test eax, eax
jne 0x10067fb4
push dword [esi + 0xc]
push esi
call fcn.10068d90
add esp, 8
test eax, eax
jne 0x10067fb4
cmp dword [esi], 3
sete al
mov byte [edi], al
jne 0x10067fb2
push 0xffffffffffffffff
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.1005a440
add esp, 0x18
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008c562
mov esp, ebp
pop ebp
ret
Function at 0x100682e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x100dcd80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0xc]
mov esi, dword [eax + 0x440]
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0x88], 0x80
lea eax, [ebp - 0x84]
push eax
mov eax, dword [esi + 0x13c]
push 0
add eax, 4
push eax
push dword [esi + 0x148]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x130], 0
mov dword [esi + 0x134], eax
jne 0x1006836c
push dword [ebp - 0x88]
lea eax, [ebp - 0x84]
push eax
lea eax, [esi + 0xb0]
push eax
call fcn.1008df10
mov eax, dword [ebp - 0x88]
add esp, 0xc
mov dword [esi + 0x130], eax
mov ebx, dword [esi + 0x134]
cmp ebx, 4
jge 0x1006839f
push str.Received_too_short_packet
push edi
call fcn.1004cb90
add esp, 8
mov dword [esi + 0xc], 7
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c562
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x148]
movzx eax, byte [edx]
movzx ecx, byte [edx + 1]
shl eax, 8
or ecx, eax
mov dword [esi + 0xc], ecx
dec ecx
cmp ecx, 5
ja case.0x100683be.1
jmp dword [ecx*4 + 0x100684cc]
cmp ebx, 4
jle case.0x100683be.4
movzx ecx, byte [edx + 2]
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
movzx eax, word [esi + 0x144]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x100683be.4
lea eax, [ebx - 4]
push eax
lea eax, [edx + 4]
push eax
push 1
push edi
call fcn.1004cae0
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x10068425
push 5
push esi
call fcn.10068d90
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c562
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x134]
sub eax, 4
cdq
add dword [edi + 0x90], eax
adc dword [edi + 0x94], edx
push dword [edi + 0x94]
push dword [edi + 0x90]
push edi
call fcn.1005b360
jmp 0x10068497
movzx ecx, byte [edx + 2]
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
mov dword [esi + 8], ecx
jmp case.0x100683be.4
lea eax, [ebx - 2]
push eax
lea eax, [edx + 2]
push eax
push esi
call fcn.100680f0
add esp, 0xc
test eax, eax
je case.0x100683be.4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c562
mov esp, ebp
pop ebp
ret
push str.Internal_error:_Unexpected_packet
push 0x100bc05c
push edi
call fcn.1004cb90
add esp, 0xc
push edi
call fcn.1005b740
add esp, 4
test eax, eax
je 0x1006838c
push 5
push esi
call fcn.10068d90
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 0x2a
pop edi
pop esi
pop ebx
call fcn.1008c562
mov esp, ebp
pop ebp
ret
Function at 0x10068d90
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor eax, eax
push esi
mov edx, dword [ecx]
mov esi, dword [ecx + 0x10]
cmp edx, 3
ja case.default.0x10068da3
jmp dword [edx*4 + 0x10068de4]
pop esi
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.100687b0
pop esi
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.100684f0
pop esi
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.10068f00
push str.Internal_state_machine_error
push 0x100bc05c
push esi
call fcn.1004cb90
add esp, 0xc
mov eax, 0x47
pop esi
pop ebp
ret
Function at 0x1006e920
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x100dcd80]
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 + 0x154]
push eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1006e994
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.1004d5b0
add esp, 0xc
cmp esi, 0xffffffff
jne 0x1006e9cd
push str.Error_accept__ing_server_connect
push edi
call fcn.1004cb90
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c562
mov esp, ebp
pop ebp
ret
push 1
push esi
mov byte [ebx + 0x26d], 0
mov dword [ebx + 0x154], esi
call fcn.10079df0
add esp, 8
mov byte [ebx + 0x280], 1
cmp dword [edi + 0x1b0], 0
je 0x1006ea3f
push 1
push edi
call fcn.1003dc20
mov eax, dword [edi + 0x1b0]
push 1
push esi
push dword [edi + 0x1b4]
call eax
push 0
push edi
mov esi, eax
call fcn.1003dc20
add esp, 0x1c
test esi, esi
je 0x1006ea3f
push ebx
push edi
call fcn.1006ee70
add esp, 8
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c562
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.1008c562
mov esp, ebp
pop ebp
ret
Function at 0x10077280
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x100dcd80]
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 - 0x48], eax
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x100772a1
sub esi, ecx
cmp byte [edi], 0x5b
jne 0x10077446
cmp esi, 4
jb 0x10077430
inc edi
sub esi, 2
cmp byte [edi + esi], 0x5d
jne 0x10077430
push str.0123456789abcdefABCDEF:.
push edi
call fcn.100a1990
add esp, 8
cmp esi, eax
je 0x10077391
mov esi, eax
add eax, edi
mov dword [ebp - 0x4c], eax
cmp byte [eax], 0x25
jne 0x10077430
push 2
lea ebx, [eax + 1]
push 0x100c2024
push ebx
call fcn.1009fb90
add esp, 0xc
test eax, eax
jne 0x10077317
mov cl, byte [ebx + 2]
lea eax, [ebx + 2]
test cl, cl
je 0x10077317
cmp cl, 0x5d
cmovne ebx, eax
mov al, byte [ebx]
test al, al
je 0x1007741a
lea edx, [ebp - 0x14]
sub edx, ebx
xor ecx, ecx
cmp al, 0x5d
je 0x1007733d
cmp ecx, 0xf
jge 0x1007733d
mov byte [edx + ebx], al
inc ecx
mov al, byte [ebx + 1]
inc ebx
test al, al
jne 0x10077328
test ecx, ecx
je 0x1007741a
cmp byte [ebx], 0x5d
jne 0x1007741a
cmp ecx, 0x10
jae 0x1007746e
lea eax, [ebp - 0x14]
mov byte [ebp + ecx - 0x14], 0
push eax
call dword [0x100dcd50]
mov ecx, dword [ebp - 0x48]
add esp, 4
mov dword [ecx + 0x14], eax
test eax, eax
jne 0x10077389
pop edi
pop esi
mov eax, 7
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c562
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x4c]
mov word [eax], 0x5d
lea eax, [ebp - 0x14]
mov byte [edi + esi], 0
push eax
push edi
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x10077430
push 0x2e
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x17
call fcn.10079e20
add esp, 0x10
test eax, eax
je 0x100773f9
lea edx, [ebp - 0x44]
lea ecx, [edx + 1]
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x100773d0
sub edx, ecx
cmp edx, esi
jae 0x100773f9
lea ecx, [ebp - 0x44]
mov esi, edi
mov eax, ecx
sub esi, eax
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [esi + ecx - 1], al
test al, al
jne 0x100773e6
mov byte [edx + edi + 1], al
mov esi, edx
mov byte [edi + esi], 0x5d
xor eax, eax
mov ecx, 0xe
cmp byte [edi], al
pop edi
pop esi
cmove eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c562
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 3
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c562
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x16
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c562
mov esp, ebp
pop ebp
ret
push str.__r_n_t_:___
push edi
call fcn.10098140
add esp, 8
cmp esi, eax
je 0x100773fd
mov ecx, dword [ebp - 4]
mov eax, 0x15
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008c562
mov esp, ebp
pop ebp
ret
call fcn.1008c6ee
int3
Function at 0x10084ce0
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 0x10084d13
push 0x2e
push edi
call fcn.1008e8d0
add esp, 8
test eax, eax
je 0x10084d11
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x10085e60
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 [0x100dcd80]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
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 0x10085f4e
push esi
mov esi, dword [ebp + 0x10]
push 8
mov dword [ebp - 0x18], 0x208
mov dword [ebp - 0x14], 0x6601
mov dl, byte [esi + 1]
mov cl, byte [esi]
mov al, dl
shr al, 1
mov byte [ebp - 0xc], cl
shl cl, 7
or al, cl
shl dl, 6
mov cl, byte [esi + 2]
mov byte [ebp - 0xb], al
mov al, cl
shr al, 2
or al, dl
shl cl, 5
mov dl, byte [esi + 3]
mov byte [ebp - 0xa], al
mov al, dl
shr al, 3
or al, cl
shl dl, 4
mov cl, byte [esi + 4]
mov byte [ebp - 9], al
mov al, cl
shr al, 4
or al, dl
shl cl, 3
mov dl, byte [esi + 5]
mov byte [ebp - 8], al
mov al, dl
shr al, 5
or al, cl
shl dl, 2
mov cl, byte [esi + 6]
mov byte [ebp - 7], al
mov al, cl
shr al, 6
add cl, cl
or al, dl
mov dword [ebp - 0x10], 8
mov byte [ebp - 6], al
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 5], cl
call fcn.10087dd0
add esp, 8
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]
pop esi
test eax, eax
jne 0x10085f5f
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c562
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
push dword [ebp - 0x20]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [edi + 4], eax
lea eax, [ebp - 0x20]
push eax
push edi
push 0
push 0
push 0
push dword [ebp - 0x24]
mov dword [edi], ecx
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
xor ecx, ebp
pop edi
call fcn.1008c562
mov esp, ebp
pop ebp
ret
Function at 0x100864c0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x100dcd44]
mov esi, eax
add esp, 4
test esi, esi
jne 0x100864ed
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esi + 0xc]
mov dword [esi], ebx
mov dword [esi + 4], ecx
mov eax, dword [ebx + 0xc]
add eax, ecx
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x10]
push edi
lea edi, [ebx + 4]
cmp eax, dword [ebx + 0x10]
jbe 0x10086538
mov eax, dword [ebx]
push ecx
call eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push dword [ebp + 0xc]
push dword [esi + 4]
call eax
mov eax, dword [esi + 8]
add eax, dword [ebx + 0xc]
push dword [esi + 4]
mov dword [ebp - 8], eax
push eax
mov eax, dword [ebx + 8]
call eax
mov eax, dword [ebx + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], eax
jmp 0x1008653e
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
push dword [esi + 4]
mov eax, dword [ebx]
call eax
push dword [esi + 8]
mov eax, dword [ebx]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x10086599
mov ebx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
nop
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub dword [ebp + 0x10], 1
jne 0x10086560
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
cmp ebx, dword [eax + 0x10]
jae 0x100865c9
mov eax, dword [edi]
push 1
push 0x100c3a38
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x100c3a39
push dword [esi + 8]
call eax
mov eax, dword [ebp + 8]
inc ebx
add esp, 0x18
cmp ebx, dword [eax + 0x10]
jb 0x100865a1
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret