joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006f180
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edi
test ebx, ebx
jne 0x1006f197
xor ecx, ecx
jmp 0x1006f1da
mov edx, ebx
mov eax, 0x811c9dc5
mov dword [ebp + 8], eax
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1006f1a4
sub edx, ecx
mov esi, 0
sar edx, 1
je 0x1006f1d7
mov edi, 0x811c9dc5
nop
movzx ecx, word [ebx + esi*2]
inc esi
imul edi, edi, 0x1000193
xor edi, ecx
cmp esi, edx
jb 0x1006f1c0
mov dword [ebp + 8], edi
mov edi, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1006f1e7
mov dword [eax], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1006f1fb
mov dword [eax + 4], 0
mov dword [eax], 0
mov eax, 0x51eb851f
mul ecx
shr edx, 5
imul eax, edx, 0x64
sub ecx, eax
mov dword [ebp + 8], ecx
lea eax, [ecx + 1]
lea eax, [eax + eax*2]
mov esi, dword [edi + eax*4]
lea eax, [edi + eax*4]
mov dword [ebp - 4], eax
test esi, esi
je 0x1006f2ab
cmp esi, eax
je 0x1006f2ab
lea edi, [esi + 8]
test edi, edi
je 0x1006f2ab
mov ecx, edi
call fcn.1009d040
test ebx, ebx
je 0x1006f26f
test eax, eax
je 0x1006f273
mov ecx, ebx
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x1006f26a
test dx, dx
je 0x1006f266
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x1006f26a
add ecx, 4
add eax, 4
test dx, dx
jne 0x1006f244
xor eax, eax
jmp 0x1006f26f
sbb eax, eax
or eax, 1
test eax, eax
je 0x1006f282
test esi, esi
je 0x1006f2ab
mov esi, dword [esi]
test esi, esi
je 0x1006f2ab
cmp esi, dword [ebp - 4]
jmp 0x1006f226
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x1006f28e
lea eax, [edi + 0xc]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1006f29d
mov eax, dword [ebp + 8]
mov dword [ecx + 4], eax
mov dword [ecx], esi
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1009f6b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
push esi
test ebx, ebx
je 0x1009f7cc
mov ecx, ebx
call fcn.1009f190
mov edx, eax
test edx, edx
je 0x1009f7cc
test dl, 3
jne 0x1009f7cc
mov esi, dword [ebx]
shr edx, 1
mov dword [ebp - 0xc], esi
test esi, esi
je 0x1009f7cc
xor ecx, ecx
push edi
lea edi, [esi + edx]
test edx, edx
je 0x1009f7a3
cmp edx, 0x40
jb 0x1009f78c
lea eax, [edi - 1]
add eax, edx
cmp esi, eax
ja 0x1009f718
lea eax, [esi - 1]
add eax, edx
cmp eax, edi
jae 0x1009f78c
mov eax, edx
mov ebx, edi
and eax, 0xffffffc0
sub ebx, esi
mov dword [ebp - 4], ebx
lea ebx, [edi + 0x30]
mov dword [ebp - 8], eax
lea eax, [esi + 0x10]
mov esi, dword [ebp - 4]
movups xmm0, xmmword [eax - 0x10]
add ecx, 0x40
lea ebx, [ebx + 0x40]
lea eax, [eax + 0x40]
movups xmm1, xmmword [ebx - 0x70]
pxor xmm1, xmm0
movups xmmword [eax - 0x50], xmm1
movups xmm0, xmmword [eax - 0x40]
movups xmm1, xmmword [esi + eax - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [ebx - 0x50]
pxor xmm1, xmm0
movups xmm0, xmmword [ebx - 0x40]
movups xmmword [eax - 0x30], xmm1
movups xmm1, xmmword [eax - 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp ecx, dword [ebp - 8]
jb 0x1009f730
mov esi, dword [ebp - 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], ecx
cmp ecx, edx
jae 0x1009f7a3
lea eax, [ecx + esi]
sub edi, esi
mov esi, edx
sub esi, ecx
mov cl, byte [eax + edi]
lea eax, [eax + 1]
xor byte [eax - 1], cl
sub esi, 1
jne 0x1009f795
push 0
push edx
mov ecx, ebx
call fcn.1009f1c0
pop edi
test eax, eax
je 0x1009f7cc
mov ecx, dword [ebp - 0x10]
push ebx
call fcn.1009f580
test eax, eax
je 0x1009f7cc
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x100a0eb0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
mov edi, ecx
call fcn.100a10d0
test eax, eax
je 0x100a0f75
mov esi, dword [ebp - 8]
test esi, esi
je 0x100a0f75
xor edx, edx
lea ecx, [edi + 0x54]
mov eax, 1
lock cmpxchg dword [ecx], edx
cmp eax, 1
jne 0x100a0f75
push ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
lea ebx, [edi + 8]
setne byte [ebp - 1]
test ebx, ebx
je 0x100a0f6a
lea esi, [ebx + 0x24]
push esi
call fcn.10002310
add esp, 4
test eax, eax
jne 0x100a0f6a
lea ecx, [ebx + 8]
call fcn.10003420
test eax, eax
jne 0x100a0f3d
push 1
push esi
call fcn.10002330
movzx eax, byte [ebp - 1]
add esp, 8
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x38], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebx + 8]
mov edi, eax
call fcn.10003780
test eax, eax
jne 0x100a0f63
push 1
push esi
call fcn.10002330
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
movzx eax, byte [ebp - 1]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100a1c60
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x1014bb94]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x14], ebx
push esi
mov esi, dword [ebp + 0xc]
test ebx, ebx
je 0x100a1d24
test esi, esi
je 0x100a1d24
push 1
mov ecx, ebx
call fcn.10035ec0
xor ecx, ecx
mov dword [ebx + 0xc], 0
xorps xmm0, xmm0
mov dword [ebp - 0x10], 0
mov eax, 0x8c0
movlpd qword [ebp - 0xc], xmm0
cmp byte [ebp + 0x14], cl
je 0x100a1d09
push 6
mov dword [ebp - 0x34], 0x1010101
mov dword [ebp - 0x30], 0x1000001
mov dword [ebp - 0x2c], 0x8080808
mov dword [ebp - 0x28], 0x4040808
mov dword [ebp - 0x24], 0xdede43d0
mov dword [ebp - 0x20], 0xdcdc43d0
call fcn.1009c9d0
add esp, 4
test eax, eax
js 0x100a1d24
cmp eax, 6
jae 0x100a1d24
mov eax, dword [ebp + eax*4 - 0x34]
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], eax
mov eax, 0x8c8
mov dword [ebp - 0xc], 1
push 0
lea edx, [ebp - 0x10]
push edx
push ecx
push eax
push 1
push esi
call sub.DNSAPI.dll_DnsQuery_W
test eax, eax
je 0x100a1d36
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e3d0f
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x100a1e0e
cmp word [edi + 8], 1
jne 0x100a1e01
mov eax, dword [edi + 0xc]
and al, 3
cmp al, 1
jne 0x100a1e01
push dword [edi + 0x18]
call dword [sym.imp.WS2_32.dll_htonl]
mov esi, eax
test esi, esi
je 0x100a1e01
mov ecx, esi
and ecx, 0xff000000
cmp ecx, 0x7f000000
je 0x100a1e01
xorps xmm0, xmm0
lea ecx, [ebp - 0x1c]
movlpd qword [ebp - 0x1c], xmm0
call fcn.100a1ae0
push dword [ebp + 0x10]
lea ecx, [ebp - 0x1c]
push esi
call fcn.100a25a0
test eax, eax
je 0x100a1e2f
push 0x1012266c
push 0x10
call fcn.100e3d2b
mov esi, eax
add esp, 8
test esi, esi
je 0x100a1e2f
lea ebx, [esi + 8]
mov dword [esi], esi
mov ecx, ebx
mov dword [esi + 4], esi
call fcn.100a1ae0
mov eax, dword [ebp - 0x14]
lea ecx, [eax + 4]
cmp esi, dword [esi + 4]
jne 0x100a1de4
mov dword [esi], ecx
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
mov eax, dword [ecx + 4]
mov dword [eax], esi
mov dword [ecx + 4], esi
test ebx, ebx
je 0x100a1e2f
lea eax, [ebp - 0x1c]
mov ecx, ebx
push eax
call fcn.100a2ca0
mov ebx, dword [ebp - 0x14]
lea ecx, [ebp - 0x1c]
inc dword [ebx + 0xc]
call fcn.100a1af0
mov edi, dword [edi]
test edi, edi
jne 0x100a1d42
mov edi, dword [ebp - 0x10]
push 1
push edi
call sub.DNSAPI.dll_DnsFree
lea eax, [ebx + 4]
cmp dword [eax], eax
pop edi
pop esi
setne al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e3d0f
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x1c]
call fcn.100a1af0
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100e3d0f
mov esp, ebp
pop ebp
ret
Function at 0x100a1f50
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x1014bb94]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 0x40c], eax
test edi, edi
je 0x100a2066
call fcn.100a2840
test eax, eax
je 0x100a2066
mov ecx, ebx
call fcn.100a1e50
mov esi, eax
test esi, esi
je 0x100a2066
cmp dword [ebp - 0x40c], 0
je 0x100a1fb7
movzx ecx, word [esi + 2]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [ebp - 0x40c]
mov word [ecx], ax
push 0x401
lea eax, [ebp - 0x408]
push 0
push eax
call fcn.100e5000
add esp, 0xc
lea eax, [ebp - 0x408]
push 2
push 0
push 0
push 0x401
push eax
push dword [ebx]
push esi
call dword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
je 0x100a20b9
cmp eax, 0x276d
jne 0x100a2066
movzx eax, word [esi]
sub eax, 2
je 0x100a207b
sub eax, 0x15
jne 0x100a2066
movzx eax, byte [esi + 0x17]
push eax
movzx eax, byte [esi + 0x16]
push eax
movzx eax, byte [esi + 0x15]
push eax
movzx eax, byte [esi + 0x14]
push eax
movzx eax, byte [esi + 0x13]
push eax
movzx eax, byte [esi + 0x12]
push eax
movzx eax, byte [esi + 0x11]
push eax
movzx eax, byte [esi + 0x10]
push eax
movzx eax, byte [esi + 0xf]
push eax
movzx eax, byte [esi + 0xe]
push eax
movzx eax, byte [esi + 0xd]
push eax
movzx eax, byte [esi + 0xc]
push eax
movzx eax, byte [esi + 0xb]
push eax
movzx eax, byte [esi + 0xa]
push eax
movzx eax, byte [esi + 9]
push eax
movzx eax, byte [esi + 8]
push eax
push str._02X_02X:_02X_02X:_02X_02X:_02X_02X:_02X_02X:_02X_02X:_02X_02X:_02X_02X
push edi
call fcn.100a1a30
add esp, 0x48
test eax, eax
jne 0x100a20a1
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e3d0f
mov esp, ebp
pop ebp
ret 8
movzx eax, byte [esi + 7]
push eax
movzx eax, byte [esi + 6]
push eax
movzx eax, byte [esi + 5]
push eax
movzx eax, byte [esi + 4]
push eax
push str._u._u._u._u
push edi
call fcn.100a1a30
add esp, 0x18
test eax, eax
je 0x100a2066
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e3d0f
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x408]
mov ecx, edi
push eax
call fcn.100af510
mov ecx, dword [ebp - 4]
neg eax
pop edi
sbb eax, eax
xor ecx, ebp
pop esi
neg eax
pop ebx
call fcn.100e3d0f
mov esp, ebp
pop ebp
ret 8
Function at 0x100a2cd0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1014bb94]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x100a2d5c
lea esi, [ebp - 8]
mov dword [ebp - 8], 0
push esi
push edx
push ecx
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, 0x2af9
je 0x100a2d5c
cmp esi, 0x2afc
je 0x100a2d5c
cmp esi, 0x2afa
je 0x100a2d5c
cmp esi, 0x2afb
je 0x100a2d5c
test esi, esi
jne 0x100a2d5c
push dword [ebp - 8]
push edi
call fcn.100a2ea0
add esp, 8
mov esi, eax
push dword [ebp - 8]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e3d0f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.100e3d0f
mov esp, ebp
pop ebp
ret

Function at 0x100a9680
Capabilities:
Get local ipv4 addresses

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010dd20
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x1014bb94]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, 0x3c00
mov dword [ebp - 0x14], edi
nop word [eax + eax]
mov dword [ebp - 4], 0
test edi, edi
je 0x100a973f
push edi
call dword [0x10143128]
mov esi, eax
add esp, 4
test esi, esi
je 0x100a973f
lea eax, [ebp - 0x14]
push eax
push esi
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
test eax, eax
je 0x100a9734
cmp eax, 0x6f
jne 0x100a970d
push esi
mov dword [ebp - 4], 4
call dword [0x10143130]
mov edi, dword [ebp - 0x14]
add esp, 4
jmp 0x100a96c0
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebx], 0
mov dword [ebx + 4], 0
push esi
mov dword [ebp - 4], 5
call dword [0x10143130]
add esp, 4
jmp 0x100a9754
test ebx, ebx
je 0x100a973a
mov dword [ebx], edi
mov dword [ebx + 4], esi
jmp 0x100a9754
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100e3d0f
mov esp, ebp
pop ebp
ret
Function at 0x100ab920
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov edi, ecx
je 0x100ab964
lea ebx, [edi + 0x28]
test ebx, ebx
je 0x100ab964
lea esi, [ebx + 0x24]
push esi
call fcn.10002310
add esp, 4
test eax, eax
jne 0x100ab964
lea eax, [ebx + 8]
mov ecx, eax
mov dword [ebp - 4], eax
call fcn.10003420
test eax, eax
jne 0x100ab96f
push 1
push esi
call fcn.10002330
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [edi + 0x40c]
test ebx, ebx
jne 0x100ab9aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
mov edi, eax
call fcn.10003780
test eax, eax
jne 0x100ab998
push 1
push esi
call fcn.10002330
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 0x414]
add ebx, eax
mov ecx, dword [edi + 0x410]
sub ecx, eax
mov dword [ebp - 0xc], ecx
je 0x100ab979
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], eax
call fcn.10003780
test eax, eax
jne 0x100ab9df
push 1
push esi
call fcn.10002330
add esp, 8
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
je 0x100ab964
mov esi, dword [ebp - 0xc]
lea ecx, [edi + 0x50]
push 0
push esi
push ebx
call fcn.100a3250
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [ebp + 8]
lea ecx, [edi + 0x50]
push ebx
push eax
call fcn.100ab3e0
test eax, eax
je 0x100ab964
cmp dword [ebx], esi
ja 0x100ab964
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100ad550
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x100ad5a0
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x100ad5a0
push ebx
push esi
lea ebx, [edi + ecx]
or eax, 0xffffffff
or esi, 0xffffffff
cmp edi, ebx
jae 0x100ad595
movzx ecx, byte [edi]
mov edx, esi
shr edx, 0x18
inc edi
shld esi, eax, 8
xor edx, ecx
shl eax, 8
xor eax, dword [edx*8 + 0x1011a7c0]
xor esi, dword [edx*8 + 0x1011a7c4]
cmp edi, ebx
jb 0x100ad571
not esi
not eax
mov edx, esi
pop esi
pop ebx
pop edi
pop ebp
ret
xor eax, eax
xor edx, edx
pop edi
pop ebp
ret
Function at 0x100ad9f0
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1014bb94]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 8], eax
push ebx
push esi
push edi
test edx, edx
je 0x100ada9d
mov edi, dword [ebp + 0x38]
xor eax, eax
test edi, edi
setne al
lea eax, [eax*8 + 1]
push eax
call fcn.100ad810
test eax, eax
je 0x100ada9d
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
test edi, edi
je 0x100adab2
mov eax, dword [ebp - 0xc]
xor edi, edi
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
push eax
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
mov esi, eax
test esi, esi
jne 0x100adab2
call ebx
push 0xc8
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x10]
inc edi
cmp edi, 0xa
jb 0x100ada71
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e3d0f
mov esp, ebp
pop ebp
ret 0x34
mov eax, dword [ebp - 0xc]
push 2
push dword [ebp - 0x14]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
mov dword [ebp - 0xc], edi
test edi, edi
je 0x100adafc
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x100adb0e
lea ecx, [ebp - 0xc]
call fcn.100ad5c0
test esi, esi
je 0x100ada9d
call ebx
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
push edi
jmp 0x100ada97
mov eax, dword [ebp - 8]
test eax, eax
je 0x100adb29
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
je 0x100adaf4
lea ecx, [ebp - 0xc]
call fcn.100ad5c0
test esi, esi
je 0x100adb47
call ebx
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100e3d0f
mov esp, ebp
pop ebp
ret 0x34
Function at 0x100adb60
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1014bb94]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
test edi, edi
je 0x100add00
push 1
call fcn.100ad810
test eax, eax
je 0x100add00
push 0x14
push edi
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x24], esi
test esi, esi
je 0x100add00
push ebx
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x100adbe3
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
lea ecx, [ebp - 0x24]
cmp eax, 0x420
sete bl
call fcn.100ad5c0
mov eax, ebx
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e3d0f
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x20]
mov dword [ebp - 8], 0
xorps xmm0, xmm0
push eax
push esi
movups xmmword [ebp - 0x20], xmm0
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x100adc22
lea ecx, [ebp - 0x24]
call fcn.100ad5c0
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e3d0f
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x1c]
cmp eax, 2
jne 0x100adcd3
mov edi, dword [ebp - 8]
mov ecx, 0x1f4
mov ebx, dword [ebp - 0xc]
cmp edi, ecx
mov eax, edi
cmova eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x100adca8
mov eax, dword [ebp - 0x1c]
cmp eax, 2
jne 0x100adcd3
mov ecx, dword [ebp - 0xc]
cmp ecx, ebx
jbe 0x100adc71
mov edi, dword [ebp - 8]
mov ebx, ecx
mov ecx, 0x1f4
jmp 0x100adc87
test edi, edi
je 0x100adcd3
cmp edi, 0x1f4
mov eax, edi
mov ecx, 0x1f4
cmova eax, ecx
sub edi, eax
cmp edi, 0x1f4
mov eax, edi
cmova eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x100adc56
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e3d0f
mov esp, ebp
pop ebp
ret 4
xor ebx, ebx
cmp eax, 4
sete bl
jne 0x100adce5
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x100adbce
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.100e3d0f
mov esp, ebp
pop ebp
ret 4
Function at 0x100af2c0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1014bb94]
xor eax, ebp
mov dword [ebp - 4], eax
push 2
push 0
xorps xmm0, xmm0
mov word [ebp - 6], 0
mov eax, 0x17
movq qword [ebp - 0xe], xmm0
mov word [ebp - 0x20], ax
mov eax, dword [0x10122658]
push 0
mov dword [ebp - 8], eax
lea eax, [ecx + 0x18]
push 0x28
push eax
movups xmmword [ebp - 0x1e], xmm0
push 0x1c
movups xmm0, xmmword [ecx + 4]
lea eax, [ebp - 0x20]
push eax
movups xmmword [ebp - 0x18], xmm0
call dword [sym.imp.WS2_32.dll_getnameinfo]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.100e3d0f
mov esp, ebp
pop ebp
ret

Function at 0x100b0560
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x100b05a1
mov esi, 0x104
mov ecx, edi
push esi
call fcn.1009cc60
test eax, eax
je 0x100b05a1
mov ebx, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push esi
mov ecx, edi
call fcn.1009d040
push eax
call ebx
mov ecx, edi
cmp eax, esi
jbe 0x100b05a8
add esi, esi
push esi
call fcn.1009cc60
test eax, eax
jne 0x100b0584
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
call fcn.1009d0e0
push 0x1011a550
mov ecx, edi
call fcn.1009cca0
test eax, eax
je 0x100b05a1
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret

Function at 0x100b0880
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x1014bb94]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
xorps xmm0, xmm0
push esi
mov esi, ecx
movlpd qword [ebp - 0x18], xmm0
push edi
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
call fcn.100a1ae0
mov ecx, esi
call fcn.100a31a0
test al, al
je 0x100b0902
mov eax, 0x80
push 0x7e
mov word [ebp - 0x98], ax
lea eax, [ebp - 0x96]
push 0
push eax
call fcn.100e5000
add esp, 0xc
mov dword [ebp - 8], 0x80
lea eax, [ebp - 8]
mov ecx, esi
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.100a3250
cmp dword [ebp + 8], 0
push eax
je 0x100b091f
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x100b0929
lea ecx, [ebp - 0x18]
call fcn.100a1af0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e3d0f
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x100b0902
xorps xmm0, xmm0
lea ecx, [ebp - 0x10]
movlpd qword [ebp - 0x10], xmm0
call fcn.100a1ae0
push dword [ebp - 8]
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x10]
call fcn.100a2300
lea ecx, [ebp - 0x10]
test eax, eax
jne 0x100b0959
call fcn.100a1af0
jmp 0x100b0902
lea eax, [ebp - 0x18]
push eax
call fcn.100a2ca0
lea ecx, [ebp - 0x10]
call fcn.100a1af0
push ebx
push edi
lea ecx, [ebp - 0x18]
call fcn.100a20e0
neg eax
lea ecx, [ebp - 0x18]
sbb esi, esi
neg esi
call fcn.100a1af0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100e3d0f
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100b2cf0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x1014bb94]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x100b2d40
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x100b2d3a
shr eax, 8
cmp al, 2
jne 0x100b2d3a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e3d0f
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
mov eax, 2
xor ecx, ebp
call fcn.100e3d0f
mov esp, ebp
pop ebp
ret