joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000d050
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 0x1000d1e7
push esi
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x1000d1d3
push edi
lea esp, [esp]
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1000d0ae
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000d0a0
sub eax, edx
lea ecx, [eax + 1]
jmp 0x1000d0b0
xor ecx, ecx
mov eax, dword [esi + 4]
mov dword [ebp - 0xc], ecx
cmp eax, 2
jne 0x1000d0c2
mov eax, 0x10
jmp 0x1000d0d0
cmp eax, 0x17
jne 0x1000d175
mov eax, 0x1c
cmp dword [esi + 0x18], 0
mov dword [ebp - 4], eax
je 0x1000d175
mov edx, dword [esi + 0x10]
test edx, edx
je 0x1000d175
cmp edx, eax
jb 0x1000d175
add eax, 0x20
add eax, ecx
push eax
call dword [0x1006cc50]
mov edi, eax
add esp, 4
test edi, edi
je 0x1000d1c5
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.10050b30
mov edx, dword [ebp - 0xc]
add esp, 0xc
test edx, edx
je 0x1000d163
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.10050b30
add esp, 0xc
mov eax, dword [ebp - 0x10]
test ebx, ebx
cmove ebx, edi
test eax, eax
je 0x1000d172
mov dword [eax + 0x1c], edi
mov dword [ebp - 0x10], edi
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x1000d090
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
pop edi
test eax, eax
je 0x1000d192
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x1000d1cf
test ebx, ebx
je 0x1000d1b6
lea ebx, [ebx]
mov esi, dword [ebx + 0x1c]
push ebx
call dword [0x1006cc54]
add esp, 4
mov ebx, esi
test esi, esi
jne 0x1000d1a0
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 0x1000d183
test ebx, ebx
jne 0x1000d1df
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 0x1000d400
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 4]
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 0x1000d432
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push esi
push eax
push 2
call fcn.1000d330
add esp, 0x10
pop esi
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 0x1000d45a
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push esi
push eax
push 0x17
call fcn.1000d330
add esp, 0x10
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

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

Function at 0x1000e420
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, 0x20
push 0xf0000040
push 1
push 0
push 0
lea eax, [ebp - 4]
mov dword [ebp - 8], 8
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1000e4a8
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0
push eax
push dword [ebp + 0x10]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x20], xmm0
mov word [ebp - 0x20], 0x208
mov dword [ebp - 0x1c], 0x6601
mov dword [ebp - 0x18], 8
call fcn.1000e4f0
lea eax, [ebp - 0x14]
push 8
push eax
call fcn.1000d520
add esp, 0x10
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0x14
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x1000e4ae
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push dword [ebp - 8]
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
lea eax, [ebp - 8]
push eax
push edx
push 0
push 0
push 0
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x1000fde0
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.1005270f
add esp, 0x18
test eax, eax
je 0x1000fe02
cmp eax, 0xffffffff
jne 0x1000fe04
xor eax, eax
pop ebp
ret

Function at 0x1000fe70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp byte [esi + 0x68a], 0
je 0x1000fef7
cmp dword [esi + 0x194], 0
je 0x1000fec1
push esi
call fcn.1002e770
push 1
push esi
mov byte [ebp + 8], al
call fcn.1002ec50
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.1002ec50
add esp, 0x28
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x1000fef7
push dword [esi + 0x140]
lea eax, [eax + eax*2]
push 1
add eax, 0x1006e730
push 2
push eax
call fcn.10052a95
push dword [esi + 0x140]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.10052a95
add esp, 0x20
pop esi
pop ebp
ret

Function at 0x10010310
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x804
push esi
xor esi, esi
push edi
test eax, eax
je 0x10010341
push dword [eax]
lea eax, [ebp - 0x804]
push 0x1006e75c
push 0x800
push eax
call sym.libcurl.dll_curl_msnprintf
add esp, 0x10
mov esi, eax
push dword [ebp + 0x14]
mov ecx, 0x800
lea eax, [ebp - 0x804]
push dword [ebp + 0x10]
sub ecx, esi
add eax, esi
push ecx
push eax
call sym.libcurl.dll_curl_mvsnprintf
mov edi, dword [ebp + 8]
add esi, eax
add esp, 0x10
mov byte [ebp + esi - 0x804], 0xa
inc esi
cmp byte [edi + 0x68a], 0
mov byte [ebp + esi - 0x804], 0
je 0x100103f0
cmp dword [edi + 0x194], 0
je 0x100103c4
push edi
call fcn.1002e770
push 1
push edi
mov byte [ebp + 0xc], al
call fcn.1002ec50
push dword [edi + 0x144]
lea eax, [ebp - 0x804]
push esi
push eax
mov eax, dword [edi + 0x194]
push 0
push edi
call eax
push dword [ebp + 0xc]
push edi
call fcn.1002ec50
add esp, 0x28
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push dword [edi + 0x140]
push 1
push 2
push 0x1006e730
call fcn.10052a95
push dword [edi + 0x140]
lea eax, [ebp - 0x804]
push 1
push esi
push eax
call fcn.10052a95
add esp, 0x20
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10012bb0
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, 0x1f4
jb 0x10012bd0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10016120
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x84]
push eax
mov ebx, dword [edi + 0x18]
mov esi, dword [ebx + 0x1a4]
push esi
mov dword [ebp + 8], 0xffffffff
mov dword [ebp - 4], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1001617a
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x80
push eax
lea eax, [ebp - 0x84]
push eax
push esi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebp + 8], eax
jmp 0x1001617d
mov eax, dword [ebp + 8]
cmp eax, 0xffffffff
jne 0x1001619c
push 0x100704a0
push edi
call fcn.1000ff00
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x100704c4
push edi
call fcn.1000ffa0
mov byte [ebx + 0x24d], 0
push 1
push dword [ebp + 8]
call fcn.10032720
lea eax, [ebp + 8]
push eax
push 1
push ebx
push edi
call fcn.10006ae0
mov esi, eax
add esp, 0x20
test esi, esi
je 0x100161e0
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x19c], 0
je 0x1001622b
push 1
push edi
call fcn.1002ec50
mov eax, dword [edi + 0x19c]
push 1
push dword [ebp + 8]
push dword [edi + 0x1a0]
call eax
push 0
push edi
mov esi, eax
call fcn.1002ec50
add esp, 0x1c
test esi, esi
je 0x1001622b
push ebx
push edi
call fcn.10016800
add esp, 8
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10018bd0
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 0x10018c0d
push 0x10070c80
push esi
call fcn.1000ff00
add esp, 8
lea eax, [edi + 0x11]
pop edi
pop esi
pop ebx
pop ebp
ret
cmp ecx, 0xc8
je 0x10018c24
push ecx
push 0x10070c9c
push esi
call fcn.1000ffa0
add esp, 0xc
mov al, byte [ebp + 0x10]
cmp al, 0x13
jne 0x10018c3c
push ebx
push esi
call fcn.10018850
add esp, 8
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp al, 0x14
jne 0x10018c50
push esi
call fcn.10017870
add esp, 4
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp al, 0x15
jne 0x10018c68
push 0xd
push 1
push esi
call fcn.10018330
add esp, 0xc
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp al, 0x16
jne 0x10018c7b
push 0xe
push 1
push esi
call fcn.10018330
add esp, 0xc
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1001b700
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.1001b670

Function at 0x1001d240
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 [0x1006cc50]
mov edi, eax
add esp, 4
test edi, edi
jne 0x1001d26d
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 0x1001d2b4
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 0x1001d2ba
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 0x1001d31a
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 0x1001d2e0
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x1001d347
nop
mov eax, dword [esi + 4]
push 1
push 0x10071536
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x10071537
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x1001d320
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1001d5f0
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x1001d622
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x1001d622
xor al, al
mov esp, ebp
pop ebp
ret
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x1001d630
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x1001d651
cmp dword [esi + 0x84], 0
je 0x1001d651
push 2
push 3
push esi
call fcn.1003cd20
add esp, 0xc
push dword [ebp + 0xc]
call fcn.1001c720
add esp, 4
test esi, esi
je 0x1001d674
cmp dword [esi + 0x84], 0
je 0x1001d674
push 3
push esi
call fcn.1003cd60
add esp, 8
pop esi
pop ebp
ret
Function at 0x1001d760
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x1001d7a3
mov eax, dword [esi + 0x7c]
cmp byte [eax + 0x10c], 0
jne 0x1001d791
push 0
call fcn.1001d760
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 0x1001d7c0
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 0x1001e3f0
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 0x1001e400
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 0x100715bc
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jge 0x1001e445
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 [0x1006cc60]
mov esi, eax
add esp, 8
test esi, esi
je 0x1001e43d
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 0x1001e4a0
push edi
push dword [ebp + 8]
call fcn.1001e4d0
add esp, 8
test eax, eax
jne 0x1001e4c6
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 0x1001e4d0
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
mov esi, dword [ebp + 0xc]
mov ecx, esi
push edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001e4e0
sub ecx, edx
lea eax, [ecx + 0x3d]
push eax
push 1
call dword [0x1006cc60]
mov edi, eax
add esp, 8
test edi, edi
jne 0x1001e506
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
mov eax, 0x17
mov word [ebp - 0x2c], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x2a], ax
lea eax, [ebp - 0x10]
push eax
push 0x100715b8
push 0x17
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x14], 0
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jl 0x1001e4fe
movdqu xmm0, xmmword [ebp - 0x10]
push 0x1c
lea ecx, [ebp - 0x2c]
mov dword [edi], 0
lea eax, [edi + 0x20]
mov dword [edi + 4], 0x17
push ecx
push eax
movdqu xmmword [ebp - 0x24], 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.10050b30
mov ecx, dword [edi + 0x18]
add esp, 0xc
add ecx, 0x1c
mov dword [edi + 0x14], ecx
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x1001e591
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1001e610
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x64
push edi
xor edi, edi
cmp byte [eax + 0x68a], 0
je 0x1001e7cf
push ebx
mov ebx, dword [ebp + 0xc]
add ebx, 0x18
cmp byte [ebx], 0
je 0x1001e7ce
push esi
mov esi, dword [sym.imp.WS2_32.dll_inet_pton]
lea eax, [ebp - 4]
push eax
push ebx
push 2
call esi
test eax, eax
jg 0x1001e7cd
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x17
call esi
test eax, eax
jg 0x1001e7cd
mov ecx, dword [ebp + 0xc]
mov eax, 0x1007172c
cmp byte [ebx], 0
cmovne eax, ebx
mov ebx, dword [ebp + 8]
push dword [ecx + 0x14]
mov esi, dword [ecx]
push eax
push 0x10071734
push ebx
call fcn.1000ffa0
lea eax, [ebp - 0x34]
push 0x400
push eax
call fcn.10012490
lea eax, [ebp - 0x24]
push 0x400
push eax
call fcn.10012490
add esp, 0x20
test esi, esi
je 0x1001e744
jmp 0x1001e6b0
mov ecx, dword [esi + 4]
cmp ecx, 0x17
je 0x1001e6bd
cmp ecx, 2
jne 0x1001e736
xor eax, eax
mov byte [ebp - 0x64], 0
cmp ecx, 2
lea ebx, [ebp - 0x34]
setne al
shl eax, 4
add ebx, eax
sub ecx, 2
je 0x1001e6ec
sub ecx, 0x15
jne 0x1001e700
push 0x2e
lea eax, [ebp - 0x64]
push eax
mov eax, dword [esi + 0x18]
add eax, 8
push eax
push 0x17
jmp 0x1001e6fb
push 0x2e
lea eax, [ebp - 0x64]
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.100124c0
add esp, 4
test eax, eax
je 0x1001e71f
push 2
push 0x1006e770
push ebx
call fcn.10012450
add esp, 0xc
mov edi, eax
test edi, edi
jne 0x1001e762
lea eax, [ebp - 0x64]
push eax
push ebx
call fcn.100123f0
mov edi, eax
add esp, 8
test edi, edi
jne 0x1001e762
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x1001e6b0
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
call fcn.100124c0
add esp, 4
test eax, eax
je 0x1001e775
lea eax, [ebp - 0x24]
push eax
call fcn.100124d0
add esp, 4
jmp 0x1001e77a
mov eax, dword [ebp + 8]
push 0x10071750
push eax
call fcn.1000ffa0
add esp, 8
jmp 0x1001e7b8
mov eax, 0x1007172c
push eax
push 0x10071768
push ebx
call fcn.1000ffa0
lea eax, [ebp - 0x34]
push eax
call fcn.100124c0
add esp, 0x10
test eax, eax
je 0x1001e7a4
lea eax, [ebp - 0x34]
push eax
call fcn.100124d0
add esp, 4
jmp 0x1001e7a9
mov eax, 0x1007172c
push eax
push 0x10071774
push ebx
call fcn.1000ffa0
add esp, 0xc
lea eax, [ebp - 0x34]
push eax
call fcn.10012460
lea eax, [ebp - 0x24]
push eax
call fcn.10012460
add esp, 8
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10029610
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 0x10029661
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 0x1002966a
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.1004d9e0
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.100296a0
add esp, 8
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100329d0
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
cmp ebx, 0x20
jbe 0x100329f4
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.WS2_32.dll_inet_pton]
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push 2
call esi
cmp eax, 1
jne 0x10032a1b
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
push 2
call esi
cmp eax, 1
je 0x10032a23
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x10032a59
cmp ebx, 0x20
je 0x10032a59
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push edi
push dword [ebp - 4]
call esi
push dword [ebp - 8]
mov edi, eax
call esi
mov ecx, 0x20
or edx, 0xffffffff
sub ecx, ebx
xor eax, edi
shl edx, cl
pop edi
test edx, eax
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
cmp ecx, dword [ebp - 8]
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10032a70
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x80
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_inet_pton]
cmove ebx, eax
push edi
lea eax, [ebp - 0x20]
mov edi, ebx
push eax
push dword [ebp + 8]
shr edi, 3
and ebx, 7
push 0x17
call esi
cmp eax, 1
jne 0x10032abf
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
push 0x17
call esi
cmp eax, 1
jne 0x10032abf
cmp edi, 0x10
jg 0x10032abf
jne 0x10032ac8
test ebx, ebx
je 0x10032acc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x10032b23
mov esi, edi
lea ecx, [ebp - 0x20]
lea edx, [ebp - 0x10]
sub esi, 4
jb 0x10032af1
lea esp, [esp]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10032af6
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10032ae0
cmp esi, 0xfffffffc
je 0x10032b23
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x10032abf
cmp esi, 0xfffffffd
je 0x10032b23
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x10032abf
cmp esi, 0xfffffffe
je 0x10032b23
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x10032abf
cmp esi, 0xffffffff
je 0x10032b23
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x10032abf
test ebx, ebx
je 0x10032b49
movzx eax, byte [ebp + edi - 0x20]
mov ecx, 8
movzx edx, byte [ebp + edi - 0x10]
sub ecx, ebx
xor edx, eax
mov eax, 0xff
shl eax, cl
test eax, edx
je 0x10032abf
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret