joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10018970
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1007d820]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push 4
push eax
push 1
push 6
push dword [ebp + 0xc]
mov dword [ebp - 0x108], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x100189d2
push pe_nt_image_headers32
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.10054020
push eax
push 0x10001a00
push esi
call fcn.100213c0
add esp, 0x18
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100631a7
mov esp, ebp
pop ebp
ret
Function at 0x1001d4a0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
add eax, esi
mov ecx, eax
sub ecx, esi
cmp esi, eax
push edi
cmova ecx, edx
mov edi, 0x1505
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x1001d4e9
mov al, byte [esi]
push eax
call fcn.10053cd0
movsx ecx, al
lea esi, [esi + 1]
mov eax, edi
inc ebx
shl eax, 5
add esp, 4
add eax, edi
xor ecx, eax
mov edi, ecx
cmp ebx, dword [ebp + 8]
jb 0x1001d4c7
mov eax, 0x4104105
mov esi, edi
mul edi
sub esi, edx
shr esi, 1
add esi, edx
shr esi, 5
mov ecx, esi
shl ecx, 6
sub ecx, esi
sub edi, ecx
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1001df90
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [eax], ebx
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 0x1001e127
push esi
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x1001e113
push edi
lea esp, [esp]
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1001dfee
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1001dfe0
sub eax, edx
lea ecx, [eax + 1]
jmp 0x1001dff0
xor ecx, ecx
mov eax, dword [esi + 4]
mov dword [ebp - 0xc], ecx
cmp eax, 2
jne 0x1001e002
mov eax, 0x10
jmp 0x1001e010
cmp eax, 0x17
jne 0x1001e0b5
mov eax, 0x1c
cmp dword [esi + 0x18], 0
mov dword [ebp - 4], eax
je 0x1001e0b5
mov edx, dword [esi + 0x10]
test edx, edx
je 0x1001e0b5
cmp edx, eax
jb 0x1001e0b5
add eax, 0x20
add eax, ecx
push eax
call dword [0x1007c2d8]
mov edi, eax
add esp, 4
test edi, edi
je 0x1001e105
mov ecx, dword [esi]
mov dword [edi], ecx
mov ecx, dword [esi + 4]
mov dword [edi + 4], ecx
mov ecx, dword [esi + 8]
mov dword [edi + 8], ecx
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 4]
mov dword [edi + 0xc], eax
lea eax, [edi + 0x20]
push ecx
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], eax
push dword [esi + 0x18]
push eax
call fcn.100640c0
mov edx, dword [ebp - 0xc]
add esp, 0xc
test edx, edx
je 0x1001e0a3
mov eax, dword [edi + 0x18]
add eax, dword [ebp - 4]
push edx
mov dword [edi + 0x14], eax
push dword [esi + 0x14]
push eax
call fcn.100640c0
add esp, 0xc
mov eax, dword [ebp - 0x10]
test ebx, ebx
cmove ebx, edi
test eax, eax
je 0x1001e0b2
mov dword [eax + 0x1c], edi
mov dword [ebp - 0x10], edi
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x1001dfd0
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
pop edi
test eax, eax
je 0x1001e0d2
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x1001e10f
test ebx, ebx
je 0x1001e0f6
lea ebx, [ebx]
mov esi, dword [ebx + 0x1c]
push ebx
call dword [0x1007c2dc]
add esp, 4
mov ebx, esi
test esi, esi
jne 0x1001e0e0
mov esi, dword [ebp - 8]
mov eax, dword [ebp + 0x14]
xor ebx, ebx
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, 8
mov dword [ebp - 8], esi
jmp 0x1001e0c3
test ebx, ebx
jne 0x1001e11f
mov esi, 0x2af9
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001e340
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1007d820]
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 0x1001e386
push dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push esi
push eax
push 2
call fcn.1001e270
add esp, 0x10
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100631a7
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 0x1001e3b8
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push esi
push eax
push 0x17
call fcn.1001e270
add esp, 0x10
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100631a7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.100631a7
mov esp, ebp
pop ebp
ret

Function at 0x1001efb0
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 0x1001efe3
push 0x2e
push edi
call fcn.10064a80
add esp, 8
test eax, eax
je 0x1001efe1
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x1001f4e0
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 [0x1007d820]
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 0x1001f578
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 0
push eax
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x18], xmm0
push edi
mov word [ebp - 0x18], 0x208
mov dword [ebp - 0x14], 0x6601
mov dword [ebp - 0x10], 8
call fcn.1001f5e0
lea eax, [ebp - 0xc]
push 8
push eax
call fcn.1001e480
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 0x1001f58a
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.100631a7
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.100631a7
mov esp, ebp
pop ebp
ret
Function at 0x100211e0
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.100657df
add esp, 0x18
test eax, eax
je 0x10021202
cmp eax, 0xffffffff
jne 0x10021204
xor eax, eax
pop ebp
ret

Function at 0x10021270
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp byte [esi + 0x68a], 0
je 0x100212f7
cmp dword [esi + 0x194], 0
je 0x100212c1
push esi
call fcn.10040be0
push 1
push esi
mov byte [ebp + 8], al
call fcn.100410c0
push dword [esi + 0x144]
mov eax, dword [esi + 0x194]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call eax
push dword [ebp + 8]
push esi
call fcn.100410c0
add esp, 0x28
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x100212f7
push dword [esi + 0x140]
lea eax, [eax + eax*2]
push 1
add eax, 0x10002bb0
push 2
push eax
call fcn.10065b65
push dword [esi + 0x140]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.10065b65
add esp, 0x20
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
mov ebx, dword [sym.imp.USER32.dll_GetMessageA]
mov edi, eax
lea esp, [esp]
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call ebx
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
call esi
sub eax, edi
cmp eax, 0x32
jb 0x100240c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10024cb0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1007d820]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1007ec30]
mov ecx, eax
inc eax
mov dword [0x1007ec30], eax
test ecx, ecx
je 0x10024ce1
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100631a7
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0xc], 0
je 0x10024d19
mov dword [fcn.100656c8], 0x100656c8
mov dword [fcn.10065690], 0x10065690
mov dword [fcn.10065c27], 0x10065c27
mov dword [fcn.1007a0f9], 0x1007a0f9
mov dword [fcn.10065be7], 0x10065be7
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x42413656
push esi
push eax
mov dword [ebp - 0xc], 0x34414244
mov word [ebp - 8], 0x30
call fcn.10011dc0
add esp, 4
call fcn.100240a0
call sym.libcurl.dll_curl_pushheader_byname
test eax, eax
jne 0x10024d76
mov esi, dword [ebp + 8]
push esi
call fcn.10054f00
add esp, 4
test eax, eax
jne 0x10024d76
call sym.libcurl.dll_curl_pushheader_byname
test eax, eax
jne 0x10024d76
mov dword [0x1007ec34], esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100631a7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 2
dec dword [0x1007ec30]
xor ecx, ebp
pop esi
call fcn.100631a7
mov esp, ebp
pop ebp
ret
Function at 0x100277d0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x1007d820]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x84]
push eax
mov ebx, dword [edi + 0x18]
mov esi, dword [ebx + 0x1a4]
push esi
mov dword [ebp - 0x88], 0xffffffff
mov dword [ebp - 0x8c], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x10027846
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x8c], 0x80
push eax
lea eax, [ebp - 0x84]
push eax
push esi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebp - 0x88], eax
jmp 0x1002784c
mov eax, dword [ebp - 0x88]
cmp eax, 0xffffffff
jne 0x10027875
push 0x10004920
push edi
call fcn.10021300
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100631a7
mov esp, ebp
pop ebp
ret
push 0x10004944
push edi
call fcn.100213c0
mov byte [ebx + 0x24d], 0
push 1
push dword [ebp - 0x88]
call fcn.10044e50
lea eax, [ebp - 0x88]
push eax
push 1
push ebx
push edi
call fcn.10017670
mov esi, eax
add esp, 0x20
test esi, esi
je 0x100278cc
push dword [ebp - 0x88]
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100631a7
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x19c], 0
je 0x10027924
push 1
push edi
call fcn.100410c0
mov eax, dword [edi + 0x19c]
push 1
push dword [ebp - 0x88]
push dword [edi + 0x1a0]
call eax
push 0
push edi
mov esi, eax
call fcn.100410c0
add esp, 0x1c
test esi, esi
je 0x10027924
push ebx
push edi
call fcn.10027f00
add esp, 8
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100631a7
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.100631a7
mov esp, ebp
pop ebp
ret

Function at 0x1002a480
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, 0x51eb851f
imul ecx
push ebx
sar edx, 5
push esi
mov esi, dword [ebp + 8]
mov eax, edx
shr eax, 0x1f
push edi
add eax, edx
xor edi, edi
mov ebx, dword [esi + 0x18]
cmp eax, 2
je 0x1002a4bd
push 0x10005100
push esi
call fcn.10021300
add esp, 8
lea eax, [edi + 0x11]
pop edi
pop esi
pop ebx
pop ebp
ret
cmp ecx, 0xc8
je 0x1002a4d4
push ecx
push 0x1000511c
push esi
call fcn.100213c0
add esp, 0xc
mov al, byte [ebp + 0x10]
cmp al, 0x13
jne 0x1002a4ec
push ebx
push esi
call fcn.1002a090
add esp, 8
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp al, 0x14
jne 0x1002a500
push esi
call fcn.10028f70
add esp, 4
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp al, 0x15
jne 0x1002a518
push 0xd
push 1
push esi
call fcn.10029b60
add esp, 0xc
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp al, 0x16
jne 0x1002a52b
push 0xe
push 1
push esi
call fcn.10029b60
add esp, 0xc
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1002d150
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.1002d0c0

Function at 0x1002ec90
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 [0x1007c2d8]
mov edi, eax
add esp, 4
test edi, edi
jne 0x1002ecbd
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 0x1002ed04
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 0x1002ed0a
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 0x1002ed6a
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
lea ebx, [ebx]
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
dec dword [ebp + 0x10]
jne 0x1002ed30
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x1002ed97
nop
mov eax, dword [esi + 4]
push 1
push 0x100059b6
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x100059b7
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x1002ed70
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1002f0b0
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1007d820]
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
jg 0x1002f0f7
lea eax, [ebp - 0x14]
push eax
push esi
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x1002f0f7
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100631a7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.100631a7
mov esp, ebp
pop ebp
ret

Function at 0x1002f110
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x1002f131
cmp dword [esi + 0x84], 0
je 0x1002f131
push 2
push 3
push esi
call fcn.1004f1a0
add esp, 0xc
push dword [ebp + 0xc]
call fcn.1002e170
add esp, 4
test esi, esi
je 0x1002f154
cmp dword [esi + 0x84], 0
je 0x1002f154
push 3
push esi
call fcn.1004f1e0
add esp, 8
pop esi
pop ebp
ret
Function at 0x1002f260
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x1002f2a3
mov eax, dword [esi + 0x7c]
cmp byte [eax + 0x10c], 0
jne 0x1002f291
push 0
call fcn.1002f260
add esp, 4
test al, al
mov eax, dword [esi + 0x7c]
setne cl
inc cl
mov byte [eax + 0x10c], cl
mov ecx, dword [esi + 0x7c]
xor eax, eax
pop esi
cmp byte [ecx + 0x10c], 2
sete al
pop ebp
ret
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x1002f2c0
xor esi, esi
xor eax, eax
test esi, esi
pop esi
setg al
pop ebp
ret
push eax
mov esi, 1
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
test esi, esi
pop esi
setg al
pop ebp
ret
Function at 0x1002ffe0
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x1002fff0
push dword [ebp + 8]
xorps xmm0, xmm0
mov eax, 2
movdqu xmmword [ebp - 0x14], xmm0
sub esi, ecx
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
lea eax, [ebp - 4]
push eax
push 0x10005a3c
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jge 0x10030035
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
lea eax, [esi + 0x31]
push eax
push 1
call dword [0x1007c2e8]
mov esi, eax
add esp, 8
test esi, esi
je 0x1003002d
movdqu xmm0, xmmword [ebp - 0x14]
lea eax, [esi + 0x20]
mov dword [esi], 0
mov dword [esi + 0x18], eax
mov edx, edi
mov dword [esi + 4], 2
mov dword [esi + 8], 1
mov dword [esi + 0xc], 6
mov dword [esi + 0x10], 0x10
movdqu xmmword [eax], xmm0
mov ecx, dword [esi + 0x18]
add ecx, 0x10
mov dword [esi + 0x14], ecx
lea esp, [esp]
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x10030090
push edi
push dword [ebp + 8]
call fcn.100300c0
add esp, 8
test eax, eax
jne 0x100300b6
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov dword [eax + 0x1c], esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100300c0
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1007d820]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
mov ecx, esi
push edi
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100300e0
sub ecx, edx
lea eax, [ecx + 0x3d]
push eax
push 1
call dword [0x1007c2e8]
mov edi, eax
add esp, 8
test edi, edi
jne 0x10030110
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100631a7
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
mov eax, 0x17
mov word [ebp - 0x30], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x2e], ax
lea eax, [ebp - 0x14]
push eax
push 0x10005a38
push 0x17
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x18], 0
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jl 0x100300fe
movdqu xmm0, xmmword [ebp - 0x14]
push 0x1c
lea ecx, [ebp - 0x30]
mov dword [edi], 0
lea eax, [edi + 0x20]
mov dword [edi + 4], 0x17
push ecx
push eax
movdqu xmmword [ebp - 0x28], xmm0
mov dword [edi + 8], 1
mov dword [edi + 0xc], 6
mov dword [edi + 0x10], 0x1c
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], eax
call fcn.100640c0
mov ecx, dword [edi + 0x18]
add esp, 0xc
add ecx, 0x1c
mov dword [edi + 0x14], ecx
jmp 0x100301a0
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x100301a0
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.100631a7
mov esp, ebp
pop ebp
ret
Function at 0x10030220
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x1007d820]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [ebp - 0x48], eax
cmp byte [eax + 0x68a], 0
mov dword [ebp - 0x4c], esi
je 0x100303ed
cmp byte [esi + 0x18], 0
push ebx
lea ebx, [esi + 0x18]
je 0x100303ec
lea eax, [ebp - 0x70]
push eax
push ebx
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x100303ec
lea eax, [ebp - 0x44]
push eax
push ebx
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x100303ec
mov ecx, dword [ebp - 0x4c]
mov eax, 0x10005bac
cmp byte [ebx], 0
mov esi, dword [esi]
cmovne eax, ebx
mov ebx, dword [ebp - 0x48]
push dword [ecx + 0x14]
push eax
push 0x10005bb4
push ebx
call fcn.100213c0
lea eax, [ebp - 0x6c]
push 0x400
push eax
call fcn.10023980
lea eax, [ebp - 0x5c]
push 0x400
push eax
call fcn.10023980
add esp, 0x20
test esi, esi
je 0x10030364
mov edi, edi
mov ecx, dword [esi + 4]
cmp ecx, 0x17
je 0x100302dd
cmp ecx, 2
jne 0x10030356
xor eax, eax
mov byte [ebp - 0x34], 0
cmp ecx, 2
lea ebx, [ebp - 0x6c]
setne al
shl eax, 4
add ebx, eax
sub ecx, 2
je 0x1003030c
sub ecx, 0x15
jne 0x10030320
push 0x2e
lea eax, [ebp - 0x34]
push eax
mov eax, dword [esi + 0x18]
add eax, 8
push eax
push 0x17
jmp 0x1003031b
push 0x2e
lea eax, [ebp - 0x34]
push eax
mov eax, dword [esi + 0x18]
add eax, 4
push eax
push 2
call sub.WS2_32.dll_inet_ntop
push ebx
call fcn.100239b0
add esp, 4
test eax, eax
je 0x1003033f
push 2
push 0x10002bf0
push ebx
call fcn.10023940
add esp, 0xc
mov edi, eax
test edi, edi
jne 0x10030382
lea eax, [ebp - 0x34]
push eax
push ebx
call fcn.100238e0
mov edi, eax
add esp, 8
test edi, edi
jne 0x10030382
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x100302d0
mov ebx, dword [ebp - 0x48]
lea eax, [ebp - 0x5c]
push eax
call fcn.100239b0
add esp, 4
test eax, eax
je 0x10030394
lea eax, [ebp - 0x5c]
push eax
call fcn.100239c0
add esp, 4
jmp 0x10030399
push 0x10005bd0
push dword [ebp - 0x48]
call fcn.100213c0
add esp, 8
jmp 0x100303d7
mov eax, 0x10005bac
push eax
push 0x10005be8
push ebx
call fcn.100213c0
lea eax, [ebp - 0x6c]
push eax
call fcn.100239b0
add esp, 0x10
test eax, eax
je 0x100303c3
lea eax, [ebp - 0x6c]
push eax
call fcn.100239c0
add esp, 4
jmp 0x100303c8
mov eax, 0x10005bac
push eax
push 0x10005bf4
push ebx
call fcn.100213c0
add esp, 0xc
lea eax, [ebp - 0x6c]
push eax
call fcn.10023950
lea eax, [ebp - 0x5c]
push eax
call fcn.10023950
add esp, 8
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100631a7
mov esp, ebp
pop ebp
ret
Function at 0x1003b620
Capabilities:
Create new key via cryptacquirecontext
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xf0000040
push 1
push 0
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1003b671
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
jne 0x1003b67a
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
mov esp, ebp
pop ebp
ret
push dword [ebp + 0x10]
call fcn.100605f0
add esp, 4
push 0
push eax
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.1003b6b0
add esp, 8
xor eax, eax
mov esp, ebp
pop ebp
ret