joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44f390
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov ebx, ecx
mov ecx, 0xe3
push esi
push edi
lea edi, [ebx + 0x9c4]
mov edx, dword [edi + 4]
lea edi, [edi + 4]
xor edx, dword [edi - 4]
and edx, 0x7fffffff
xor edx, dword [edi - 4]
mov eax, edx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr edx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x630]
xor eax, edx
mov dword [edi - 0x9c4], eax
sub ecx, 1
jne 0x44f3a0
lea esi, [ebx + 0xd50]
mov edi, 0x18c
mov ecx, dword [esi + 4]
lea esi, [esi + 4]
xor ecx, dword [esi - 4]
and ecx, 0x7fffffff
xor ecx, dword [esi - 4]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi - 0xd50]
xor eax, ecx
mov dword [esi - 0x9c4], eax
sub edi, 1
jne 0x44f3e2
mov ecx, dword [ebx + 0x1380]
xor ecx, dword [ebx + 4]
and ecx, 0x7fffffff
xor ecx, dword [ebx + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx + 0x634]
xor eax, ecx
mov dword [ebx + 0x9c0], eax
mov dword [ebx], edi
pop edi
pop esi
pop ebx
ret

Function at 0x44f4e0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov bl, byte [eax + 0x100]
mov cl, byte [eax + 0x101]
mov dword [ebp - 8], edx
test edx, edx
jle 0x44f561
movzx ebx, bl
movzx ecx, cl
push esi
nop word [eax + eax]
inc bl
mov dh, bl
movzx ebx, dh
mov dl, byte [ebx + eax]
add cl, dl
movzx esi, cl
mov byte [ebp + 0xb], cl
mov dword [ebp - 0xc], esi
movzx ecx, byte [esi + eax]
mov byte [ebx + eax], cl
mov byte [esi + eax], dl
movzx ecx, byte [ebx + eax]
mov esi, dword [ebp - 4]
add cl, dl
movzx ecx, cl
movzx ecx, byte [ecx + eax]
xor byte [edi + esi], cl
inc edi
mov ecx, dword [ebp - 0xc]
cmp edi, dword [ebp - 8]
jl 0x44f510
mov cl, byte [ebp + 0xb]
pop esi
pop edi
mov byte [eax + 0x100], dh
mov byte [eax + 0x101], cl
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov byte [eax + 0x100], bl
mov byte [eax + 0x101], cl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45d880
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
push 0
push 0
push 1
push 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0x45d860
push 0
push 0
call fcn.0053fe39
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add esp, 0x18
mov dword [ebp - 4], eax
push 0
push dword [ebp - 8]
call esi
cmp eax, 0x102
jne 0x45d910
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
nop dword [eax]
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x28]
push eax
call edi
test eax, eax
je 0x45d902
lea eax, [ebp - 0x28]
push eax
call ebx
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push dword [ebp - 8]
call esi
cmp eax, 0x102
je 0x45d8e0
push dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45da80
Capabilities:
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x410
mov eax, dword [0x5d4074]
xor eax, esp
mov dword [esp + 0x40c], eax
call fcn.0045d880
call fcn.0045d970
test al, al
je 0x45dabc
mov al, 1
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.004a0c7f
mov esp, ebp
pop ebp
ret
push 0x400
lea eax, [esp + 0xc]
push 0
push eax
call fcn.0052edb0
add esp, 0xc
mov dword [esp + 4], 0x400
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov edx, dword [esp + 4]
lea ecx, [esp + 8]
call fcn.0045d930
cmp eax, 0x1d52f71
je 0x45daa8
lea eax, [esp + 4]
mov dword [esp + 4], 0x400
push eax
lea eax, [esp + 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetComputerNameExA]
mov edx, dword [esp + 4]
lea ecx, [esp + 8]
call fcn.0045d930
cmp eax, 0xe0decd8
je 0x45daa8
call fcn.0045d970
test al, al
jne 0x45daa8
lea eax, [esp + 4]
mov dword [esp + 4], 0x400
push eax
lea eax, [esp + 0xc]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GetComputerNameExA]
mov edx, dword [esp + 4]
lea ecx, [esp + 8]
call fcn.0045d930
cmp eax, 0xe0decd8
je 0x45daa8
call fcn.0045d970
mov ecx, dword [esp + 0x40c]
test al, al
setne al
xor ecx, esp
call fcn.004a0c7f
mov esp, ebp
pop ebp
ret
Function at 0x45f290
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x587d63
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x5d4074]
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 edi, ecx
mov dword [ebp - 0xa0], edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x90], 0
mov byte [ebp - 0x8c], 0
mov dword [ebp - 0x88], 2
mov dword [ebp - 0x94], 0x5c2d08
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
lea eax, [ebp - 0x94]
mov dword [ebp - 4], 0
push eax
call fcn.0045f200
add esp, 4
test al, al
je 0x45f450
mov eax, dword [ebp - 0x80]
xor esi, esi
mov dword [ebp - 0x9c], eax
test eax, eax
jle 0x45f3fa
lea edi, [ebx + 4]
lea ecx, [ebp - 0x70]
call fcn.0045df10
sub esp, 8
mov byte [ebp - 4], 1
lea eax, [ebp - 0x71]
mov dword [ebp - 0x98], 0
mov byte [ebp - 0x71], 0
push eax
push ecx
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x70]
push eax
push esi
lea ecx, [ebp - 0x94]
call fcn.0045e270
test edi, edi
je 0x45f3db
cmp byte [ebp - 0x28], 0
je 0x45f3db
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
setne al
test al, al
je 0x45f3db
cmp byte [ebx + 0x48], 0
je 0x45f3db
push edi
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
setne al
test al, al
je 0x45f3db
push edi
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
test al, al
je 0x45f3db
mov eax, dword [ebp - 0x98]
and eax, 0x1f01ff
cmp eax, 0x1f01ff
jne 0x45f3db
movzx eax, byte [ebp - 0x71]
and al, 0xef
je 0x45f444
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0
call fcn.0045dfe0
inc esi
cmp esi, dword [ebp - 0x9c]
jl 0x45f341
mov edi, dword [ebp - 0xa0]
sub esp, 8
lea ecx, [ebp - 0x94]
push ebx
call fcn.0045e520
test al, al
je 0x45f450
test edi, edi
je 0x45f450
push 0
lea ecx, [ebp - 0x94]
call fcn.0045e320
push eax
push 0
push 0
push 4
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
sete al
test al, al
je 0x45f450
xor esi, esi
jmp 0x45f46e
lea ecx, [ebp - 0x70]
call fcn.0045dfe0
xor esi, esi
jmp 0x45f46e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x45f469
jle 0x45f46e
movzx esi, si
or esi, 0x80070000
jmp 0x45f46e
mov esi, 0x80004005
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x94], 0x5c2d08
test ecx, ecx
je 0x45f4a2
mov edx, dword [ebp - 0x80]
call fcn.00460690
push dword [ebp - 0x84]
call fcn.0053527d
add esp, 4
mov dword [ebp - 0x84], 0
push dword [ebp - 0x90]
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
call fcn.0053527d
add esp, 4
mov dword [ebp - 0x90], 0
lea ecx, [ebp - 0x84]
call fcn.00460480
push dword [ebp - 0x90]
mov dword [ebp - 0x94], 0x5c2d58
call fcn.0053527d
add esp, 4
mov eax, esi
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.004a0c7f
mov esp, ebp
pop ebp
ret
Function at 0x460bb0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5c9530
push 0x530720
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5d4074]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x460c03
push 0xc1
jmp 0x460ceb
mov ebx, dword [eax + 0x3c]
add ebx, eax
cmp dword [ebx], 0x4550
je 0x460c1a
push 0xbf
jmp 0x460ceb
movzx eax, word [ebx + 0x14]
test ax, ax
je 0x460ce6
lea ecx, [ebx + 0x18]
add ecx, eax
mov dword [ebp - 0x24], ecx
xor esi, esi
mov dword [ebp - 0x20], esi
movzx eax, word [ebx + 6]
cmp esi, eax
jae 0x460ce6
lea eax, [esi + esi*4]
lea edi, [ecx + eax*8]
mov ecx, str..ress
mov eax, edi
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x460c70
test dl, dl
je 0x460c6c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x460c70
add eax, 2
add ecx, 2
test dl, dl
jne 0x460c50
xor eax, eax
jmp 0x460c75
sbb eax, eax
or eax, 1
test eax, eax
jne 0x460cc7
mov eax, dword [edi + 0xc]
test eax, eax
je 0x460ce6
cmp dword [edi + 0x10], 0
je 0x460ce6
mov esi, dword [ebp - 0x1c]
add esi, eax
mov eax, dword [esi]
cmp eax, 0x1c
jb 0x460ce6
cmp dword [esi + 4], 0x72657373
jne 0x460ce6
cmp dword [esi + 8], 0
jne 0x460ca4
mov dword [esi + 8], eax
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
inc esi
mov ecx, dword [ebp - 0x24]
jmp 0x460c31
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46dfa0
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push ecx
mov esi, ecx
call fcn.0044d010
add esp, 4
test al, al
je 0x46dfbb
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.0046ded0
test al, al
jne 0x46dfb4
push ebx
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x46dffb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x46e050
movzx ebx, bx
or ebx, 0x80070000
pop edi
mov eax, ebx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
push 2
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x46e023
lea eax, [ebp - 4]
mov dword [ebp - 4], 1
push eax
push 3
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x46e03a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x46e03c
movzx ebx, bx
or ebx, 0x80070000
jmp 0x46e03c
xor ebx, ebx
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x46e04d
push esi
call eax
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call eax
pop edi
mov eax, ebx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x46e060
Capabilities:
Modify service

Disassembly:
push ebx
push esi
push ecx
mov ebx, edx
mov esi, ecx
call fcn.0046e120
add esp, 4
test al, al
je 0x46e078
pop esi
xor eax, eax
pop ebx
ret
mov ecx, esi
call fcn.0046e3a0
test eax, eax
js 0x46e116
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x46e0b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x46e113
movzx ebx, bx
pop edi
or ebx, 0x80070000
pop esi
mov eax, ebx
pop ebx
ret
push 2
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x46e0e6
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push 1
push 2
push 0x10
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x46e0fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x46e0ff
movzx ebx, bx
or ebx, 0x80070000
jmp 0x46e0ff
xor ebx, ebx
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x46e110
push esi
call eax
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x46e2a0
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5d4074]
xor eax, ebp
mov dword [ebp - 4], eax
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
jne 0x46e2ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x46e38b
movzx eax, ax
pop edi
or eax, 0x80070000
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a0c7f
mov esp, ebp
pop ebp
ret
push ebx
push 0x14
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x46e317
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x46e374
movzx ebx, bx
or ebx, 0x80070000
jmp 0x46e374
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
xorps xmm0, xmm0
push eax
push esi
movups xmmword [ebp - 0x1c], xmm0
movq qword [ebp - 0xc], xmm0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x46e346
mov eax, dword [ebp - 0x1c]
cmp eax, 4
je 0x46e372
cmp eax, 2
je 0x46e372
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x46e372
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x46e36a
movzx ebx, bx
or ebx, 0x80070000
cmp ebx, 0x80070420
jne 0x46e374
xor ebx, ebx
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x46e385
push esi
call eax
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call eax
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004a0c7f
mov esp, ebp
pop ebp
ret
Function at 0x46e3a0
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5d4074]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0xf003f
push 0
push 0
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
jne 0x46e3f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x46e4c5
movzx eax, ax
pop edi
or eax, 0x80070000
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a0c7f
mov esp, ebp
pop ebp
ret
push ebx
push 0x24
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x46e456
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
xorps xmm0, xmm0
push eax
push esi
movups xmmword [ebp - 0x1c], xmm0
movq qword [ebp - 0xc], xmm0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x46e46d
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x46e4ac
cmp eax, 3
je 0x46e470
lea eax, [ebp - 0x20]
mov dword [ebp - 8], 0
push eax
xorps xmm0, xmm0
push 1
push esi
movups xmmword [ebp - 0x20], xmm0
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x46e46d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x46e4ae
movzx ebx, bx
or ebx, 0x80070000
jmp 0x46e4ae
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x46e4ac
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
cmp dword [ebp - 0x1c], 1
mov edi, eax
je 0x46e4a9
call ebx
sub eax, edi
cmp eax, 0x1f40
jae 0x46e4d5
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x1c], 1
jne 0x46e485
mov edi, dword [ebp - 0x24]
xor ebx, ebx
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x46e4bf
push esi
call eax
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call eax
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004a0c7f
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x1c], 1
je 0x46e4a9
mov edi, dword [ebp - 0x24]
mov ebx, 0x800705b4
jmp 0x46e4ae

Function at 0x46e4f0
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
mov edi, edx
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x46e526
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x46e57e
pop edi
movzx eax, ax
pop esi
or eax, 0x80070000
pop ebx
pop ebp
ret
push 0
push 0
push 0x5c34a8
push 0
push 0
push dword [ebp + 8]
push 1
push 2
push dword [ebp + 0xc]
push 0xf01ff
push edi
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
jne 0x46e574
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x46e579
movzx edi, di
push esi
or edi, 0x80070000
call ebx
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
push eax
xor edi, edi
call ebx
push esi
call ebx
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x474c70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x589af0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x5d4074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x18]
movzx ecx, byte [eax]
test ecx, ecx
je 0x474ccc
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0040b310
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.00405c30
jmp 0x474d7e
lea edx, [ebp + 8]
push edx
mov ecx, dword [ebp - 0x18]
add ecx, 0x34
call fcn.0041ee30
lea eax, [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x1c
call fcn.00412bb0
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x54], eax
mov edx, dword [ebp - 0x18]
add edx, 0x58
push edx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, dword [ebp - 0x18]
call fcn.00475a90
mov byte [ebp - 0x19], al
movzx eax, byte [ebp - 0x19]
test eax, eax
je 0x474d37
mov ecx, dword [ebp - 0x18]
call fcn.00475120
movzx ecx, al
test ecx, ecx
jne 0x474d35
mov ecx, dword [ebp - 0x18]
call fcn.00475540
jmp 0x474d3f
mov ecx, dword [ebp - 0x18]
call fcn.00475540
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x14]
push edx
push 0
push 0
push 0x476900
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, dword [ebp - 0x18]
mov byte [eax], 1
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0040b310
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.00405c30
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a0c7f
mov esp, ebp
pop ebp
ret 0x24

Function at 0x475d10
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x5d4074]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x18], 0x73
mov byte [ebp - 0x17], 0x59
mov byte [ebp - 0x16], 0x4d
mov byte [ebp - 0x15], 0x66
mov byte [ebp - 0x14], 0x64
mov byte [ebp - 0x13], 0x25
mov byte [ebp - 0x12], 0x41
mov byte [ebp - 0x11], 0x75
mov byte [ebp - 0x10], 0x69
mov byte [ebp - 0xf], 0x33
mov byte [ebp - 0xe], 0x48
mov byte [ebp - 0xd], 0x55
mov byte [ebp - 0xc], 0x76
mov byte [ebp - 0xb], 0x26
mov byte [ebp - 0xa], 0x39
mov byte [ebp - 9], 0x35
mov byte [ebp - 8], 0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x38], esp
lea eax, [ebp - 0x18]
push eax
call fcn.00405e80
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x30]
push eax
call fcn.004819f0
add esp, 0x24
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00405e50
mov edx, dword [ebp - 0x34]
or edx, 1
mov dword [ebp - 0x34], edx
lea ecx, [ebp - 0x30]
call fcn.00405e10
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a0c7f
mov esp, ebp
pop ebp
ret
Function at 0x4767a0
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x589e50
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x5d4074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00405d70
movzx eax, al
test eax, eax
je 0x4767f9
mov byte [ebp - 0xf], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00405c30
mov al, byte [ebp - 0xf]
jmp 0x4768ee
mov dword [ebp - 0x14], 3
mov byte [ebp - 0xe], 1
mov byte [ebp - 0xd], 0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x14]
sub edx, 1
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x18], 0
jle 0x476847
push 0
push 1
push str.https:__www.baidu.com
call dword [sym.imp.WININET.dll_InternetCheckConnectionW]
test eax, eax
jne 0x47683f
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x476808
mov byte [ebp - 0xd], 1
jmp 0x476847
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x4768d6
push 0
push str.https:__
lea ecx, [ebp + 8]
call fcn.00412b40
cmp eax, dword [0x5bd6e4]
jne 0x4768bb
push 0
push str.http:__
lea ecx, [ebp + 8]
call fcn.00412b40
cmp eax, dword [0x5bd6e4]
jne 0x4768bb
lea ecx, [ebp + 8]
push ecx
push 0x5bab8c
lea edx, [ebp - 0x3c]
push edx
call fcn.0040b5f0
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x20]
push ecx
lea ecx, [ebp + 8]
call fcn.00405c70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.00405c30
push 0
push 1
lea ecx, [ebp + 8]
call fcn.00405c20
push eax
call dword [sym.imp.WININET.dll_InternetCheckConnectionW]
test eax, eax
jne 0x4768d6
mov byte [ebp - 0xe], 0
mov dl, byte [ebp - 0xe]
mov byte [ebp - 0x10], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00405c30
mov al, byte [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x18