joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ad960
Capabilities:
Contain obfuscated stackstrings
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x66a074]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x6749c4], 0
push esi
jne 0x4adbb4
cmp dword [0x67489c], 0
jne 0x4adbb4
cmp dword [0x6749c8], 0
jne 0x4adbb4
cmp dword [0x6749d4], 0
jne 0x4adbb4
cmp dword [0x6749cc], 0
jne 0x4adbb4
cmp dword [0x6749bc], 0
jne 0x4adbb4
cmp dword [0x6749d0], 0
jne 0x4adbb4
cmp dword [0x6749c0], 0
jne 0x4adbb4
xor eax, eax
mov dword [ebp - 0x2a], 0
xorps xmm0, xmm0
mov word [ebp - 0x26], ax
mov word [ebp - 0x4c], ax
lea eax, [ebp - 0x64]
push eax
movlpd qword [ebp - 0x4a], xmm0
movlpd qword [ebp - 0x42], xmm0
movlpd qword [ebp - 0x3a], xmm0
movlpd qword [ebp - 0x32], xmm0
mov dword [ebp - 0x64], 0x640041
mov dword [ebp - 0x60], 0x610076
mov dword [ebp - 0x5c], 0x690070
mov dword [ebp - 0x58], 0x320033
mov dword [ebp - 0x54], 0x64002e
mov dword [ebp - 0x50], 0x6c006c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x6749c4], eax
test eax, eax
je 0x4adbb4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x24]
xorps xmm0, xmm0
mov byte [ebp - 5], 0
push ecx
push eax
movlpd qword [ebp - 0x15], xmm0
movlpd qword [ebp - 0xd], xmm0
mov dword [ebp - 0x24], 0x6e65704f
mov dword [ebp - 0x20], 0x614d4353
mov dword [ebp - 0x1c], 0x6567616e
mov word [ebp - 0x18], 0x5772
mov byte [ebp - 0x16], 0
call esi
mov dword [0x67489c], eax
test eax, eax
je 0x4adbb4
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x6e65704f
push eax
push dword [0x6749c4]
mov dword [ebp - 0x20], 0x76726553
mov dword [ebp - 0x1c], 0x57656369
mov byte [ebp - 0x18], 0
call esi
mov dword [0x6749c8], eax
test eax, eax
je 0x4adbb4
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x61657243
push eax
push dword [0x6749c4]
mov dword [ebp - 0x20], 0x65536574
mov dword [ebp - 0x1c], 0x63697672
mov word [ebp - 0x18], 0x5765
mov byte [ebp - 0x16], 0
call esi
mov dword [0x6749d4], eax
test eax, eax
je 0x4adbb4
movaps xmm0, xmmword [0x6344f0]
lea eax, [ebp - 0x24]
push eax
push dword [0x6749c4]
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x14], 0x32676966
mov word [ebp - 0x10], 0x57
call esi
mov dword [0x6749cc], eax
test eax, eax
je 0x4adbb4
movaps xmm0, xmmword [0x6344f0]
lea eax, [ebp - 0x24]
push eax
push dword [0x6749c4]
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x14], 0x57676966
mov byte [ebp - 0x10], 0
call esi
mov dword [0x6749bc], eax
test eax, eax
je 0x4adbb4
movaps xmm0, xmmword [0x6344e0]
lea eax, [ebp - 0x24]
push eax
push dword [0x6749c4]
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x14], 0x576769
call esi
mov dword [0x6749d0], eax
test eax, eax
je 0x4adbb4
movaps xmm0, xmmword [0x6344d0]
lea eax, [ebp - 0x24]
push eax
push dword [0x6749c4]
movups xmmword [ebp - 0x24], xmm0
mov word [ebp - 0x14], 0x656c
mov byte [ebp - 0x12], 0
call esi
mov dword [0x6749c0], eax
test eax, eax
je 0x4adbb4
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b75ab
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.005b75ab
mov esp, ebp
pop ebp
ret
Function at 0x4aec10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e40a8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x66a074]
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 esi, edx
mov dword [ebp - 0x50], esi
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x4c]
push str..tmp
call fcn.004145e0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x4c]
xor bl, bl
mov dword [ebp - 0x54], 0
cmp dword [ebp - 0x38], 8
push 0x625600
cmovae eax, dword [ebp - 0x4c]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.005bfd63
add esp, 0x10
test eax, eax
jne 0x4aed52
mov esi, dword [ebp - 0x54]
lea eax, [ebp - 0x30]
push esi
push 1
push 2
push eax
mov word [ebp - 0x30], 0xbf00
call fcn.005c0a8f
add esp, 0x10
cmp eax, 1
jne 0x4aed4f
mov ecx, dword [edi]
mov eax, ecx
shr eax, 0x18
mov byte [ebp - 0x34], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp - 0x33], al
mov eax, ecx
push esi
shr eax, 8
push 1
mov byte [ebp - 0x32], al
lea eax, [ebp - 0x34]
push 4
push eax
mov byte [ebp - 0x31], cl
call fcn.005c0a8f
add esp, 0x10
cmp eax, 1
jne 0x4aed4f
push esi
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0x4f534354
push 0xa
push eax
mov dword [ebp - 0x2c], 0x400
mov word [ebp - 0x28], 0
call fcn.005c0a8f
add esp, 0x10
cmp eax, 1
jne 0x4aed4f
lea edx, [edi + 4]
mov ecx, esi
call fcn.004af590
test al, al
je 0x4aed4f
lea edx, [edi + 0x1c]
mov ecx, esi
call fcn.004af630
test al, al
je 0x4aed4f
mov edi, dword [ebp + 0xc]
mov bl, 1
mov edi, dword [edi + 0x30]
mov esi, dword [edi]
cmp esi, edi
je 0x4aed4f
nop
lea eax, [esi + 8]
push eax
push 1
push dword [ebp - 0x54]
call fcn.004af270
add esp, 0xc
test al, al
je 0x4aed4d
mov esi, dword [esi]
cmp esi, edi
jne 0x4aed30
jmp 0x4aed4f
xor bl, bl
mov esi, dword [ebp - 0x50]
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x4aed62
push eax
call fcn.005bfe20
add esp, 4
test bl, bl
je 0x4aed7e
mov edx, esi
lea ecx, [ebp - 0x4c]
call fcn.004de050
mov bl, al
test bl, bl
jne 0x4aed7e
lea ecx, [ebp - 0x4c]
call fcn.004de3b0
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], 1
call fcn.00408ff0
mov dword [ebp - 4], 0xffffffff
mov al, bl
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.005b75ab
mov esp, ebp
pop ebp
ret
Function at 0x4af590
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, edx
push edi
mov edi, ecx
push edi
movzx ebx, word [esi + 0x10]
mov eax, ebx
mov byte [ebp - 3], bl
shr eax, 8
push 1
mov byte [ebp - 4], al
lea eax, [ebp - 4]
push 2
push eax
call fcn.005c0a8f
add esp, 0x10
cmp eax, 1
jne 0x4af5f0
test bx, bx
je 0x4af5e7
cmp dword [esi + 0x14], 0x10
jb 0x4af5cd
mov esi, dword [esi]
push edi
push 1
push ebx
push esi
call fcn.005c0a8f
add esp, 0x10
cmp eax, 1
sete al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4af600
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx edx, word [edx]
push ecx
mov eax, edx
mov byte [ebp - 3], dl
shr eax, 8
push 1
mov byte [ebp - 4], al
lea eax, [ebp - 4]
push 2
push eax
call fcn.005c0a8f
add esp, 0x10
cmp eax, 1
sete al
mov esp, ebp
pop ebp
ret

Function at 0x4af630
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [edx]
mov eax, edx
shr eax, 0x18
mov byte [ebp - 4], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 3], al
mov eax, edx
push ecx
shr eax, 8
push 1
mov byte [ebp - 2], al
lea eax, [ebp - 4]
push 4
push eax
mov byte [ebp - 1], dl
call fcn.005c0a8f
add esp, 0x10
cmp eax, 1
sete al
mov esp, ebp
pop ebp
ret

Function at 0x4af950
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e4113
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x66a074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004af820
mov edi, dword [ebp + 0x10]
mov ebx, eax
mov dword [ebp - 4], 0
push edi
mov dword [ebp + 0xc], ebx
lea esi, [ebx + 8]
mov ecx, esi
mov dword [ebp + 8], esi
call fcn.004af710
lea eax, [edi + 0x18]
mov byte [ebp - 4], 1
push eax
lea ecx, [esi + 0x18]
call fcn.004af710
lea eax, [edi + 0x30]
mov byte [ebp - 4], 2
push eax
lea ecx, [esi + 0x30]
call fcn.004afa40
movsd xmm0, qword [edi + 0x38]
movsd qword [esi + 0x38], xmm0
mov eax, dword [edi + 0x40]
mov dword [esi + 0x40], eax
mov ax, word [edi + 0x44]
mov word [esi + 0x44], ax
mov eax, dword [edi + 0x48]
mov dword [esi + 0x48], eax
mov eax, dword [edi + 0x4c]
mov dword [esi + 0x4c], eax
mov eax, dword [edi + 0x50]
mov dword [esi + 0x50], eax
movzx eax, byte [edi + 0x54]
mov byte [esi + 0x54], al
movzx eax, byte [edi + 0x55]
mov byte [esi + 0x55], al
movzx eax, byte [edi + 0x56]
mov byte [esi + 0x56], al
movzx eax, byte [edi + 0x57]
mov byte [esi + 0x57], al
movzx eax, byte [edi + 0x58]
mov byte [esi + 0x58], al
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4b4380
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e57a1
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x66a074]
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 dword [ebp - 0x264], edx
mov dword [ebp - 0x268], ecx
mov ecx, edx
mov edi, 0x618bfc
mov ebx, dword [ecx + 0x10]
mov eax, dword [edi]
mov edx, eax
lea esi, [edx + 2]
nop dword [eax + eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x4b43d0
mov ecx, dword [ebp - 0x264]
sub edx, esi
sar edx, 1
mov esi, ecx
cmp dword [ecx + 0x14], 8
jb 0x4b43ef
mov esi, dword [ecx]
cmp ebx, edx
jne 0x4b4418
mov edx, ebx
test ebx, ebx
je 0x4b45f8
sub esi, eax
nop
mov cx, word [esi + eax]
cmp cx, word [eax]
jne 0x4b4418
add eax, 2
sub edx, 1
jne 0x4b4400
mov al, 1
jmp 0x4b45c3
add edi, 4
cmp edi, 0x618c0c
jl 0x4b43c4
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.005b9c20
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4b45f8
mov ebx, dword [ebp - 0x268]
xor edi, edi
nop dword [eax + eax]
mov edx, dword [edi + 0x618bec]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b44a0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x248]
call fcn.00409060
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x218]
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b4500
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.00409060
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 1
push eax
lea edx, [ebp - 0x230]
lea ecx, [ebp - 0x260]
call fcn.004c7af0
add esp, 4
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 4
call fcn.00408ff0
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 9
call fcn.00408ff0
mov ecx, ebx
mov byte [ebp - 4], 8
call fcn.00409050
lea ecx, [ebp - 0x260]
mov esi, eax
call fcn.00409050
cmp esi, eax
jne 0x4b459c
lea ecx, [ebp - 0x260]
call fcn.00408e30
mov ecx, ebx
mov esi, eax
call fcn.00408e30
mov edx, esi
mov ecx, eax
call fcn.004c8af0
test al, al
jne 0x4b45df
lea ecx, [ebp - 0x260]
mov dword [ebp - 4], 0x11
call fcn.00408ff0
add edi, 4
mov dword [ebp - 4], 0xffffffff
cmp edi, 0x10
jb 0x4b4460
xor al, al
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.005b75ab
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x260]
mov dword [ebp - 4], 0xd
call fcn.00408ff0
mov dword [ebp - 4], 0xffffffff
mov al, 1
jmp 0x4b45c3
Function at 0x4b7d40
Capabilities:
Check if file exists
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e5f86
mov eax, dword fs:[0]
push eax
mov eax, 0x1034
call fcn.005b8630
mov eax, dword [0x66a074]
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 bl, dl
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x1030], 0
mov dword [ebp - 0x102c], 7
mov word [ebp - 0x1040], ax
lea edx, [ebp - 0x1040]
mov dword [ebp - 4], eax
call fcn.004b1940
test al, al
je 0x4b7f31
push 0x1000
lea eax, [ebp - 0x1010]
push 0
push eax
call fcn.005b9c20
add esp, 0xc
lea eax, [ebp - 0x1010]
push 0x800
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
call fcn.004cb900
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
test al, al
je 0x4b7def
push str..._sysnative
lea eax, [ebp - 0x1010]
push eax
call edi
push str.netsh.exe
lea eax, [ebp - 0x1010]
push eax
call edi
lea eax, [ebp - 0x1010]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4b7f31
push 0x16
xor eax, eax
mov dword [ebp - 0x1018], 0
push str.interface_ip_set_dns__
lea ecx, [ebp - 0x1028]
mov dword [ebp - 0x1014], 7
mov word [ebp - 0x1028], ax
call fcn.00409060
mov byte [ebp - 4], 1
lea eax, [ebp - 0x1040]
cmp dword [ebp - 0x102c], 8
lea ecx, [ebp - 0x1028]
push dword [ebp - 0x1030]
cmovae eax, dword [ebp - 0x1040]
push eax
call fcn.00409220
test bl, bl
je 0x4b7e78
push 6
push str.__dhcp
jmp 0x4b7ee3
cmp dword [esi + 0x10], 0
lea edi, [esi + 0x10]
push 9
lea ecx, [ebp - 0x1028]
push str.__static
jne 0x4b7ed3
call fcn.00409220
mov eax, dword [0x674df4]
and eax, 0x80000003
jns 0x4b7ea4
dec eax
or eax, 0xfffffffc
inc eax
lea eax, [eax + eax*2]
cmp dword [eax*8 + 0x66e824], 8
lea eax, [eax*8 + 0x66e810]
mov ecx, eax
jb 0x4b7ebc
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x1028]
call fcn.00409220
inc dword [0x674df4]
jmp 0x4b7eee
call fcn.00409220
cmp dword [esi + 0x14], 8
jb 0x4b7ee0
mov esi, dword [esi]
push dword [edi]
push esi
lea ecx, [ebp - 0x1028]
call fcn.00409220
cmp dword [ebp - 0x1014], 8
lea eax, [ebp - 0x1028]
push 0
cmovae eax, dword [ebp - 0x1028]
push 0
push eax
lea eax, [ebp - 0x1010]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x1028]
call fcn.00408ff0
lea ecx, [ebp - 0x1040]
call fcn.00408ff0
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.005b75ab
mov esp, ebp
pop ebp
ret
Function at 0x4b81a0
Capabilities:
Initialize winhttp library
Prepare http request
Read http header
Receive http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
xor eax, eax
push ebx
push esi
mov esi, ecx
xor bl, bl
xor ecx, ecx
push edi
mov edi, 1
cmp dword [edx + 0x10], eax
je 0x4b81d3
cmp dword [edx + 0x14], 8
lea edi, [ecx + 3]
mov ecx, edx
jb 0x4b81c8
mov ecx, dword [edx]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x4b81d3
mov eax, dword [eax]
push 0
push eax
push ecx
push edi
push str.User_Agent_1.0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edi, eax
test edi, edi
je 0x4b82bd
push 0x1388
push 0x1388
push 0x1388
push 0x1388
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
je 0x4b82b6
cmp dword [esi + 0x14], 8
jb 0x4b8218
mov esi, dword [esi]
push 0
push 0x50
push esi
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 8], eax
test eax, eax
je 0x4b82b6
push 0x100
push 0
push 0
push str.HTTP_1.1
push 0x612848
push str.HEAD
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
test esi, esi
je 0x4b82ad
push 0
push 0
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x4b82a6
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x4b82a6
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 0x16
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
movzx ebx, bl
mov ecx, 1
cmove ebx, ecx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push dword [ebp - 8]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b8560
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
push 0xf003f
push 0
push 0
mov edi, edx
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 8], eax
test eax, eax
je 0x4b8621
cmp dword [esi + 0x14], 8
jb 0x4b858e
mov esi, dword [esi]
push 0xf01ff
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x4b8618
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
mov eax, dword [ebp - 4]
test eax, eax
je 0x4b8610
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x4b8610
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x4b8609
cmp dword [ebx + 4], 2
je 0x4b8609
cmp dword [edi + 0x14], 8
jb 0x4b85ef
mov edi, dword [edi]
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4b86c0
Capabilities:
Start service

Disassembly:
push esi
push edi
push 0xf003f
push 0
push 0
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x4b8718
cmp dword [esi + 0x14], 8
jb 0x4b86e1
mov esi, dword [esi]
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x4b8711
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
ret
Function at 0x4b88c0
Capabilities:
Get networking parameters

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e6081
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x66a074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x54], esi
xor eax, eax
mov dword [ebp - 0x4c], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
push eax
push 0
mov dword [ebp - 0x4c], 1
call dword [sym.imp.IPHLPAPI.DLL_GetNetworkParams]
cmp eax, 0x6f
jne 0x4b8a52
push dword [ebp - 0x44]
call fcn.005b79a5
push dword [ebp - 0x44]
mov edi, eax
push 0
push edi
mov dword [ebp - 0x48], edi
call fcn.005b9c20
add esp, 0x10
lea eax, [ebp - 0x44]
push eax
push edi
call dword [sym.imp.IPHLPAPI.DLL_GetNetworkParams]
test eax, eax
je 0x4b8977
cmp byte [0x673629], 0
je 0x4b8a45
push str.NetRepair_GetCurrentDNS__
call fcn.00407e20
add esp, 4
jmp 0x4b8a45
lea edx, [edi + 0x110]
mov dword [ebp - 0x18], 0
mov ecx, edx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea eax, [ecx + 1]
mov dword [ebp - 0x50], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b8997
sub ecx, dword [ebp - 0x50]
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004a0500
mov dword [ebp - 4], 1
cmp dword [ebp - 0x18], 0
je 0x4b8a03
push 0
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.004cad10
mov edi, eax
add esp, 4
cmp esi, edi
je 0x4b89f8
mov ecx, esi
call fcn.00408ff0
movups xmm0, xmmword [edi]
xor eax, eax
movups xmmword [esi], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
lea ecx, [ebp - 0x40]
call fcn.00408ff0
mov edi, dword [ebp - 0x48]
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x4b8a33
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4b8a29
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b8a6f
push edx
push ecx
call fcn.005b7992
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
test edi, edi
je 0x4b8a52
push edi
call fcn.005b79a0
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005b75ab
mov esp, ebp
pop ebp
ret
call fcn.005c00b0
int3
Function at 0x4b8fa0
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e617b
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x66a074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x230]
mov dword [ebp - 0x234], 0
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4b900a
cmp byte [0x673629], 0
je 0x4b9003
push str.NetRepair_ParseDNSInfo__
call fcn.00407e20
add esp, 4
xor al, al
jmp 0x4b916e
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x88]
push 0xb
push str.www.163.com
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0xf
mov byte [ebp - 0x88], 0
call fcn.004a0500
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
push 0xc
push str.www.sohu.com
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
call fcn.004a0500
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
push 0xa
push str.www.qq.com
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
call fcn.004a0500
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
push 0xf
push str.www.sina.com.cn
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.004a0500
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
push 0xd
push str.www.ifeng.com
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.004a0500
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 5
div ecx
lea ecx, [ebp - 0x88]
lea eax, [edx + edx*2]
lea eax, [ecx + eax*8]
push eax
lea ecx, [ebp - 0xa0]
call fcn.004af710
push fcn.0040d040
push 5
mov esi, eax
mov dword [ebp - 0x234], 1
push 0x18
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 0
push eax
call fcn.005b75fa
cmp dword [esi + 0x14], 0x10
jb 0x4b9124
mov esi, dword [esi]
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edx, dword [ebp - 0x8c]
test eax, eax
setne bl
cmp edx, 0x10
jb 0x4b9166
mov ecx, dword [ebp - 0xa0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4b915c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b9189
push edx
push ecx
call fcn.005b7992
add esp, 8
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005b75ab
mov esp, ebp
pop ebp
ret
call fcn.005c00b0
int3