joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1012789
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x1027fed
call fcn.01022df8
sub esp, 0x18
push ebx
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 0x98c]
xor edi, edi
inc edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x18], 0x2a
mov eax, dword [esi + eax*8 + 0x560]
push 0x462
push 0x10033fc
mov dword [ebp - 0x14], 8
lea ebx, [esi + eax*8 + 0x520]
call fcn.0100c9d4
push dword [esi + 0x98c]
push 0x1003668
call fcn.0100cb2d
cmp dword [esi + 0x988], 2
pop ecx
pop ecx
jne 0x1012872
push dword [ebx + 4]
mov ecx, dword [esi + 0x64]
lea eax, [ebp - 0x1c]
push eax
call fcn.0100cd2b
and dword [ebp - 4], 0
push 0
mov ecx, eax
call sub.MFC42u.DLL_CString::GetBuffer
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
call sub.MFC42u.DLL_CString::CString_3
mov ecx, dword [esi + 0x64]
call fcn.0100d3f6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call sub.MFC42u.DLL_CString::CString
mov eax, dword [esi + 0x98c]
push dword [esi + eax*8 + 0x564]
mov ecx, dword [esi + 0x64]
lea eax, [ebp - 0x20]
push eax
call fcn.0100cd2b
push 0
mov ecx, eax
mov dword [ebp - 4], edi
call sub.MFC42u.DLL_CString::GetBuffer
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
call sub.MFC42u.DLL_CString::CString_3
mov ecx, dword [esi + 0x64]
call fcn.0100d454
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call sub.MFC42u.DLL_CString::CString
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ebx, dword [ebx]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push dword [esi + 0x98c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
cmp dword [esi + 0x988], 2
mov ebx, eax
sete al
push eax
call edi
sub eax, dword [ebp - 0x1c]
xor edx, edx
mov ecx, 0x3e8
div ecx
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push dword [esi + 0x98c]
push ebx
call fcn.01010bb1
mov ecx, eax
call fcn.01025c03
push 0x47e
push 0x10033fc
call fcn.0100c9d4
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push ebx
push 0x100362c
call fcn.0100cb2d
xor edi, edi
add esp, 0x10
cmp ebx, edi
jge 0x1012901
push ebx
mov ecx, esi
call fcn.0101167c
push 8
jmp 0x1012990
push dword [ebp - 0x10]
mov ecx, dword [esi + 0x64]
call fcn.0100d8ae
mov eax, dword [esi + 0x98c]
cmp eax, edi
jne 0x101292c
cmp dword [ebp - 0x10], edi
jne 0x1012929
mov dword [esi + 0x998], 3
push 2
jmp 0x1012990
mov dword [ebp - 0x10], edi
cmp dword [ebp - 0x10], edi
je 0x101297a
cmp dword [ebp - 0x10], 2
je 0x101297a
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x990], eax
lea eax, [eax + eax*2]
mov eax, dword [esi + eax*4 + 0x628]
test al, 1
je 0x1012960
and eax, 0x100
or eax, 0x400
shr eax, 8
mov dword [ebp - 0x14], eax
jmp 0x101298d
test al, 2
je 0x101296d
mov dword [ebp - 0x14], 3
jmp 0x101298d
test al, 4
je 0x101298d
mov dword [ebp - 0x14], 7
jmp 0x101298d
inc eax
xor ecx, ecx
cmp eax, 0x19
sete cl
mov dword [esi + 0x98c], eax
inc ecx
mov dword [ebp - 0x14], ecx
push dword [ebp - 0x14]
mov ecx, esi
call fcn.0101161f
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x1012adc
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x1028014
call fcn.01022df8
sub esp, 0x18
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x990]
push edi
xor ebx, ebx
lea eax, [eax + eax*2]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], 0x2a
mov eax, dword [esi + eax*4 + 0x62c]
push 0x50f
push 0x10033fc
lea edi, [esi + eax*8 + 0x520]
call fcn.0100c9d4
push dword [esi + 0x990]
push 0x10037d4
call fcn.0100cb2d
mov eax, dword [esi + 0x990]
pop ecx
add eax, 0x84
pop ecx
mov ecx, dword [esi + 0x64]
lea eax, [eax + eax*2]
push dword [esi + eax*4]
lea eax, [ebp - 0x1c]
push eax
call fcn.0100cd2b
push ebx
mov ecx, eax
mov dword [ebp - 4], ebx
call sub.MFC42u.DLL_CString::GetBuffer
mov ecx, dword [esi + 0x64]
push eax
push 0x4e8f
lea eax, [ebp - 0x18]
push eax
call fcn.0100cd2b
push ebx
mov ecx, eax
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::GetBuffer
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
call sub.MFC42u.DLL_CString::CString_3
push 3
push dword [esi + 0x64]
call fcn.0100d4b2
add esp, 0x10
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call sub.MFC42u.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call sub.MFC42u.DLL_CString::CString
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi]
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 0x10]
push edx
push dword [esi + 0x990]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx]
call dword [eax + 8]
mov edi, eax
call fcn.01010bb1
mov ecx, eax
call fcn.01025eae
cmp eax, ebx
jne 0x1012be1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x1c]
xor edx, edx
mov ecx, 0x3e8
div ecx
push ebx
push eax
push dword [ebp - 0x10]
push dword [esi + 0x990]
push edi
call fcn.01010bb1
mov ecx, eax
call fcn.01025d84
push 0x527
push 0x10033fc
call fcn.0100c9d4
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push edi
push 0x1003798
call fcn.0100cb2d
add esp, 0x10
cmp edi, ebx
jge 0x1012c2c
push edi
jmp 0x1012c90
cmp dword [ebp - 0x10], 1
jne 0x1012c36
push 6
jmp 0x1012ca3
mov ecx, dword [esi + 0x64]
push 0x4e92
lea eax, [ebp - 0x20]
push eax
call fcn.0100cd2b
push ebx
mov ecx, eax
mov dword [ebp - 4], 2
call sub.MFC42u.DLL_CString::GetBuffer
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
call sub.MFC42u.DLL_CString::CString_3
push 1
push dword [esi + 0x64]
call fcn.0100d4b2
or dword [ebp - 4], 0xffffffff
add esp, 0xc
lea ecx, [ebp - 0x20]
call sub.MFC42u.DLL_CString::CString
mov eax, dword [ebp - 0x14]
lea ecx, [eax + eax*2]
test byte [esi + ecx*4 + 0x628], 4
jne 0x1012c9b
push 0x8000ffff
mov ecx, esi
call fcn.0101167c
push 8
jmp 0x1012ca5
push 7
mov dword [esi + 0x990], eax
pop ecx
push ecx
mov ecx, esi
call fcn.0101161f
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x1014208
Capabilities:
Send icmp echo request

Disassembly:
mov eax, 0x1028098
call fcn.01022df8
sub esp, 0x40
push ebx
push esi
push edi
push 0xd
xor ebx, ebx
pop ecx
xor eax, eax
mov dword [ebp - 0x4c], ebx
lea edi, [ebp - 0x48]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x14]
call fcn.01014134
mov dword [ebp - 4], ebx
mov byte [ebp - 0xd], bl
xor esi, esi
cmp esi, 3
jae 0x1014285
push 0xbb8
push 0x38
lea eax, [ebp - 0x4c]
push eax
push ebx
push 1
push 0x1003c6e
push dword [ebp + 8]
push dword [ebp - 0x14]
call sub.iphlpapi.dll_IcmpSendEcho
test eax, eax
je 0x10142be
cmp dword [ebp - 0x48], ebx
jne 0x10142be
lea eax, [esi + 1]
push eax
push 0x4ef2
push ebx
mov byte [ebp - 0xd], 1
call fcn.0100dcc2
push eax
call fcn.0100d552
add esp, 0x10
inc esi
cmp byte [ebp - 0xd], bl
je 0x1014237
cmp byte [ebp - 0xd], bl
jne 0x101429e
push 0x4ef3
push ebx
call fcn.0100dcc2
push eax
call fcn.0100d552
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.01013e58
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
mov byte [ebp - 0xd], bl
jmp 0x101427f
Function at 0x1015260
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x102819f
call fcn.01022df8
sub esp, 0x30
mov eax, dword [0x102e77c]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push 0x1003a34
mov dword [ebp - 0x10], eax
mov byte [ebp - 0x21], bl
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
cmp esi, ebx
je 0x1015373
mov byte [edi], 1
mov dword [ebp - 0x3c], 0x1003c04
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], ebx
mov eax, dword [esi + 0xc]
cmp dword [eax], ebx
mov dword [ebp - 4], ebx
je 0x10152ff
mov dword [ebp - 0x28], ebx
xor eax, eax
lea edi, [ebp - 0x1e]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x50
mov word [ebp - 0x20], 2
call dword [sym.imp.WS2_32.dll_htons]
mov edi, dword [ebp - 0x28]
mov word [ebp - 0x1e], ax
mov eax, dword [esi + 0xc]
mov eax, dword [edi + eax]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x34]
lea ecx, [ebp - 0x3c]
call fcn.01014860
mov eax, dword [esi + 0xc]
add edi, 4
cmp dword [edi + eax], ebx
mov dword [ebp - 0x28], edi
jne 0x10152b8
push dword [ebp - 0x34]
push dword [ebp - 0x38]
call fcn.01014a53
cmp al, bl
mov byte [ebp - 0x21], al
lea ecx, [ebp - 0x28]
push 0x1003a34
je 0x1015333
call fcn.010229be
push ebx
mov ecx, eax
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::GetBuffer
push eax
push 0x4efd
push ebx
jmp 0x101534c
call fcn.010229be
push ebx
mov ecx, eax
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::GetBuffer
push eax
push 0x4efc
push 1
call fcn.0100dcc2
push eax
call fcn.0100d552
lea ecx, [ebp - 0x28]
add esp, 0x10
mov byte [ebp - 4], bl
call sub.MFC42u.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.010146dd
jmp 0x10153bc
push 0x1003a34
lea ecx, [ebp - 0x28]
call fcn.010229be
mov esi, eax
mov dword [ebp - 4], 3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push ebx
mov ecx, esi
call sub.MFC42u.DLL_CString::GetBuffer
push eax
push 0x4efb
push 1
call fcn.0100dcc2
push eax
call fcn.0100d7f3
or dword [ebp - 4], 0xffffffff
add esp, 0x14
lea ecx, [ebp - 0x28]
call sub.MFC42u.DLL_CString::CString
mov byte [edi], bl
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0x21]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0102222e
leave
ret 4
Function at 0x10171d2
Capabilities:
Initialize winsock library

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x102e77c]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push 0xe8
push 0x1004c98
mov esi, ecx
mov dword [ebp - 0x198], eax
call fcn.0100c9d4
push 0x1004df8
call fcn.0100cb2d
cmp dword [esi + 8], 0
pop ecx
jne 0x1017270
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1017269
mov ebx, 0x3a9b
sub ebx, 0x3a99
mov dword [edi], 1
je 0x1017337
dec ebx
mov eax, dword [ebp - 0x198]
je 0x101732f
dec ebx
je 0x1017327
dec ebx
je 0x101731f
mov dword [eax], 0x16
jmp 0x101733d
mov dword [esi + 8], 1
push 1
call fcn.01017d48
mov ebx, eax
test ebx, ebx
je 0x1017284
push 0x4fe7
jmp 0x10172fa
push 0x4fe8
push 0
call fcn.0100dcc2
push eax
call fcn.0100d552
add esp, 0xc
push 0
push 1
call fcn.010185a1
mov ebx, eax
test ebx, ebx
je 0x10172af
push 0x4fe9
jmp 0x10172fa
push 0x4fea
push 0
call fcn.0100dcc2
push eax
call fcn.0100d552
add esp, 0xc
add esi, 0xc
push esi
call fcn.01016e02
mov ebx, eax
test ebx, ebx
je 0x10172fe
cmp ebx, 0x3a99
jne 0x10172f5
push 0x4ff9
push 2
call fcn.0100dcc2
push eax
call fcn.0100d552
add esp, 0xc
jmp 0x1017231
push 0x4feb
push 2
jmp 0x1017305
push 0x4fec
push 0
call fcn.0100dcc2
push eax
call fcn.0100d552
add esp, 0xc
test ebx, ebx
jne 0x1017231
and dword [edi], ebx
jmp 0x101733d
mov dword [eax], 6
jmp 0x101733d
mov dword [eax], 5
jmp 0x101733d
mov dword [eax], 7
jmp 0x101733d
mov dword [edi], 2
push 0x14d
push 0x1004c98
call fcn.0100c9d4
push 0x1004dd0
call fcn.0100cb2d
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor eax, eax
pop ebx
call fcn.0102222e
leave
ret 8

Function at 0x10176cd
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
cmp edi, ebx
jne 0x101773e
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp + 0xc]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp + 0xc], ebx
push dword [ebp - 4]
call esi
mov edi, eax
cmp edi, ebx
jne 0x101773d
mov eax, dword [ebp + 0xc]
add eax, eax
push eax
call sub.MFC42u.DLL_operatornew
cmp eax, ebx
pop ecx
mov dword [ebp + 8], eax
jne 0x1017754
push 8
pop edi
cmp dword [ebp + 8], ebx
je 0x101773d
push dword [ebp + 8]
call sub.MFC42u.DLL_operatordelete
pop ecx
pop esi
cmp dword [ebp - 4], ebx
je 0x101774c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop ebx
leave
ret 0x14
lea ecx, [ebp + 0xc]
push ecx
push eax
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp - 4]
call esi
mov edi, eax
cmp edi, ebx
jne 0x101772f
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x14]
je 0x101777b
mov edi, 0x70c
jmp 0x101772f
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
jmp 0x101773d
Function at 0x10182f5
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov eax, 0x102847f
call fcn.01022df8
sub esp, 0x2a4
mov eax, dword [0x102e77c]
push ebx
push esi
push edi
push 0x1001938
lea ecx, [ebp - 0x25c]
mov dword [ebp - 0x10], eax
xor ebx, ebx
call sub.MFC42u.DLL_CString::CString_3
xor eax, eax
lea edi, [ebp - 0x26c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x2b0]
rep stosd dword es:[edi], eax
push 0x104
lea eax, [ebp - 0x258]
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x2b0], 0x44
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x1018369
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1018437
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x25c]
push 0x1005308
push eax
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
push 0x10
pop ecx
lea eax, [ebp - 0x26c]
push eax
mov esi, 0x10052c8
lea edi, [ebp - 0x50]
lea eax, [ebp - 0x2b0]
push eax
rep movsd dword es:[edi], dword [esi]
xor edi, edi
push edi
push edi
push 0x8000000
push edi
push edi
push edi
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, edi
jne 0x10183db
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, edi
mov ebx, esi
jle 0x1018433
and ebx, 0xffff
or ebx, 0x80070000
jmp 0x1018433
push 0x7530
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, eax
cmp esi, 0x102
jne 0x10183fd
mov ebx, 0x80070102
jmp 0x101841b
cmp esi, edi
je 0x101841b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, edi
mov ebx, esi
jle 0x101841b
and ebx, 0xffff
or ebx, 0x80070000
push dword [ebp - 0x26c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x268]
call edi
xor edi, edi
cmp ebx, edi
jne 0x101844e
push 0x4ff7
push 3
call fcn.0100dcc2
push eax
call fcn.0100d552
add esp, 0xc
jmp 0x1018464
push esi
push 0x4ff6
push 2
call fcn.0100dcc2
push eax
call fcn.0100d552
add esp, 0x10
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x25c]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
mov eax, ebx
pop ebx
call fcn.0102222e
leave
ret
Function at 0x1018491
Capabilities:
Create thread
Terminate thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push esi
push esi
push edi
push 0x101820a
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
cmp ebx, esi
jne 0x10184d8
push 0x567
push 0x1004f98
call fcn.0100c9d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1005358
call fcn.0100cb4a
pop ecx
pop ecx
jmp 0x1018529
push 0x1388
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10184f8
lea eax, [ebp + 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov esi, dword [ebp + 8]
jmp 0x1018522
push 0x57c
push 0x1004f98
call fcn.0100c9d4
add edi, 0x74
push edi
push 0x1005324
call fcn.0100cb4a
pop ecx
pop ecx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
or esi, 0xffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x101a133
Capabilities:
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 0xc]
push 0
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push dword [esi + 8]
xor ecx, ecx
mov cx, word [esi + 4]
mov dword [ebp - 8], eax
mov eax, dword [esi]
mov dword [ebp - 0xc], 1
push ecx
push eax
call sub.DNSAPI.dll_DnsQuery_W
push 0x7a
push 0x1005740
mov dword [esi + 0x10], eax
call fcn.0100c9d4
push dword [esi + 0x10]
mov edi, dword [esi]
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push dword [esi + 8]
movzx eax, word [esi + 4]
push eax
push edi
push 0x1005778
call fcn.0100cb2d
add esp, 0x18
cmp dword [ebp - 4], 0
mov byte [esi + 0x14], 1
je 0x101a1b4
push 1
push dword [ebp - 4]
call sub.DNSAPI.dll_DnsRecordListFree
mov eax, dword [esi + 0x10]
pop edi
pop esi
leave
ret
Function at 0x101a20f
Capabilities:
Query service status

Disassembly:
mov eax, 0x1028700
call fcn.01022df8
sub esp, 0x64
push ebx
push esi
push edi
xor ebx, ebx
inc ebx
push ebx
push 0
push 0
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x101a289
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xaa
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push 0x1005740
call fcn.010229be
and dword [ebp - 4], esi
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x1005808
call fcn.010229be
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.01019f4d
mov dword [ebp - 4], ebx
push eax
lea ecx, [ebp - 0x24]
call fcn.01018b3e
push 0x102a874
lea eax, [ebp - 0x24]
jmp 0x101a384
mov eax, dword [edi]
push 4
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
jne 0x101a2fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x10057ec
lea ecx, [ebp + 8]
call fcn.010229be
push ebx
push 0xb2
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x1005740
mov dword [ebp - 4], 2
call fcn.010229be
push ecx
mov eax, esp
mov dword [ebp - 0x10], esp
lea ecx, [ebp + 8]
push ecx
push edi
push eax
mov byte [ebp - 4], 3
call sub.MFC42u.DLL_operator
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.01019f4d
mov byte [ebp - 4], 4
jmp 0x101a273
lea eax, [ebp - 0x70]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x101a38a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp + 8], eax
call esi
push ebx
call esi
push 0x10057c8
lea ecx, [ebp - 0x10]
call fcn.010229be
push dword [ebp + 8]
mov dword [ebp - 4], 5
push 0xba
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push 0x1005740
call fcn.010229be
push ecx
mov eax, esp
mov dword [ebp - 0x14], esp
lea ecx, [ebp - 0x10]
push ecx
push edi
push eax
mov byte [ebp - 4], 6
call sub.MFC42u.DLL_operator
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 5
call fcn.01019f4d
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 7
call fcn.01018b3e
push 0x102a874
lea eax, [ebp - 0x34]
push eax
call sub.msvcrt.dll__CxxThrowException
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
mov eax, dword [ebp + 8]
push 7
pop ecx
lea esi, [ebp - 0x70]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x101af7a
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x102e77c]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x214]
push eax
push 0x20019
xor ebx, ebx
push ebx
mov esi, 0x10059f4
push esi
push reloc.WS2_32.dll_accept
mov dword [ebp - 0x210], 1
mov dword [ebp - 0x218], 0x208
mov dword [ebp - 0x214], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
cmp edi, ebx
je 0x101aff3
push 0x293
push 0x10058f0
call fcn.0100c9d4
push esi
push edi
push 0x10059d0
call fcn.0100cb2d
add esp, 0xc
jmp 0x101b0c6
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x21c]
push eax
push ebx
mov esi, 0x10059bc
push esi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp edi, ebx
je 0x101b039
push 0x29d
push 0x10058f0
call fcn.0100c9d4
push esi
push edi
push 0x1005998
jmp 0x101afe6
cmp dword [ebp - 0x21c], 1
jne 0x101b098
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
lea eax, [ebp - 0x20c]
push eax
push 0x1005990
mov word [ebp - 6], bx
call esi
test eax, eax
jne 0x101b064
mov dword [ebp - 0x210], ebx
lea eax, [ebp - 0x20c]
push eax
push 0x1005984
call esi
test eax, eax
jne 0x101b07c
mov dword [ebp - 0x210], ebx
lea eax, [ebp - 0x20c]
push eax
push 0x1005980
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x101b098
mov dword [ebp - 0x210], ebx
push 0x2c0
push 0x10058f0
call fcn.0100c9d4
cmp dword [ebp - 0x210], ebx
mov eax, 0x1005974
jne 0x101b0b9
mov eax, 0x1005968
push eax
push 0x1005940
call fcn.0100cb2d
pop ecx
pop ecx
cmp dword [ebp - 0x214], ebx
pop edi
pop esi
pop ebx
je 0x101b0dd
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
call fcn.0102222e
leave
ret
Function at 0x101b8a2
Capabilities:
Set registry value

Disassembly:
mov eax, 0x1028921
call fcn.01022df8
sub esp, 0x214
mov eax, dword [0x102e77c]
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
mov dword [ebp - 0x10], eax
push edi
mov dword [ebp - 0x21c], ebx
je 0x101b8e6
push 0x4fc0
push 3
call fcn.0100dcc2
push eax
call fcn.0100d552
add esp, 0xc
push 0x1005d38
jmp 0x101b900
push 0x4fc1
push 3
call fcn.0100dcc2
push eax
call fcn.0100d552
add esp, 0xc
push 0x1005990
lea eax, [ebp - 0x218]
push 0x82
push eax
call fcn.0101ae26
cmp eax, ebx
jge 0x101b91c
and eax, 0xffff
jmp 0x101b96d
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea edi, [eax + eax + 2]
lea eax, [ebp - 0x21c]
push eax
push 0x20006
push ebx
push 0x10059f4
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, ebx
jne 0x101b973
push edi
lea eax, [ebp - 0x218]
push eax
push 1
push ebx
push 0x10059bc
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
cmp esi, ebx
je 0x101b9aa
push esi
lea eax, [ebp - 0x220]
push eax
call fcn.010200f3
push dword [eax]
mov dword [ebp - 4], ebx
push esi
push 0x4fc2
push 2
call fcn.0100dcc2
push eax
call fcn.0100d7f3
or dword [ebp - 4], 0xffffffff
add esp, 0x14
lea ecx, [ebp - 0x220]
call sub.MFC42u.DLL_CString::CString
cmp dword [ebp - 0x21c], ebx
pop edi
pop esi
pop ebx
je 0x101b9c1
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
adc al, 0x10
add byte [ecx], al

Function at 0x101bd55
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebx
xor ebx, ebx
inc dword [0x102f7ac]
push esi
mov esi, ecx
mov dword [0x102f7a8], ebx
mov eax, 0x102f7b8
cmp dword [eax], ebx
je 0x101bdf0
add eax, 4
cmp eax, 0x102f7d0
jl 0x101bd6e
push edi
xor eax, eax
mov edi, 0x102f79c
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov ecx, esi
stosd dword es:[edi], eax
call fcn.0101af7a
mov ecx, esi
mov dword [0x102e4d8], eax
call fcn.0101b400
mov ecx, esi
call fcn.0101b7ac
push 0x10000000
push ebx
push ebx
push ebx
push 0x1005dc0
call dword [sym.imp.WININET.dll_InternetOpenW]
cmp eax, ebx
mov dword [0x102f7b4], eax
pop edi
jne 0x101bdf7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push 0x4fb1
push 2
call fcn.0100dcc2
push eax
call fcn.0100d552
add esp, 0x10
cmp esi, ebx
jle 0x101bdec
and esi, 0xffff
or esi, 0x80070000
mov ebx, esi
jmp 0x101be3a
mov ebx, 0x8007000e
jmp 0x101be3a
push 0x101b298
push eax
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
cmp eax, 0xffffffff
jne 0x101be2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x14b
push 0x10058f0
mov esi, eax
call fcn.0100c9d4
push esi
push 0x1005d94
call fcn.0100cb4a
pop ecx
pop ecx
jmp 0x101bddc
push dword [0x102f7b0]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
pop esi
mov eax, ebx
pop ebx
ret