joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44b4a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x44b4b9
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x44b4f6
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x44b4f2
nop word [eax + eax]
cmp esi, edx
jae 0x44b4f6
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x44b4e0
cmp esi, edx
jb 0x44b4fd
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x44d060
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5b906c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov word [ebp - 8], 0x500
push eax
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov ecx, eax
mov dword [ebp - 0x10], ecx
test ecx, ecx
je 0x44d0d2
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 0x10]
xor eax, eax
test ecx, ecx
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
call fcn.00484900
mov esp, ebp
pop ebp
ret

Function at 0x44d0f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x5b906c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov esi, edx
xor ecx, ecx
nop dword [eax + eax]
mov eax, ecx
shr eax, 1
test cl, 1
je 0x44d11e
xor eax, 0xedb88320
test al, 1
je 0x44d12b
shr eax, 1
xor eax, 0xedb88320
jmp 0x44d12d
shr eax, 1
test al, 1
je 0x44d13a
shr eax, 1
xor eax, 0xedb88320
jmp 0x44d13c
shr eax, 1
test al, 1
je 0x44d149
shr eax, 1
xor eax, 0xedb88320
jmp 0x44d14b
shr eax, 1
test al, 1
je 0x44d158
shr eax, 1
xor eax, 0xedb88320
jmp 0x44d15a
shr eax, 1
test al, 1
je 0x44d167
shr eax, 1
xor eax, 0xedb88320
jmp 0x44d169
shr eax, 1
test al, 1
je 0x44d176
shr eax, 1
xor eax, 0xedb88320
jmp 0x44d178
shr eax, 1
test al, 1
je 0x44d185
shr eax, 1
xor eax, 0xedb88320
jmp 0x44d187
shr eax, 1
mov dword [ebp + ecx*4 - 0x404], eax
inc ecx
cmp ecx, 0x100
jl 0x44d110
or edx, 0xffffffff
test esi, esi
je 0x44d1bc
movsx eax, byte [edi]
lea edi, [edi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ebp + ecx*4 - 0x404]
sub esi, 1
jne 0x44d1a2
mov ecx, dword [ebp - 4]
not edx
pop edi
xor ecx, ebp
mov eax, edx
pop esi
call fcn.00484900
mov esp, ebp
pop ebp
ret

Function at 0x44d540
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
push edi
mov dword [ecx + 0x1384], 0xffffffff
lea edi, [ecx + 8]
mov dword [ecx + 4], edx
mov esi, 1
nop dword [eax]
mov eax, edx
lea edi, [edi + 4]
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, esi
inc esi
mov dword [edi - 4], edx
cmp esi, 0x270
jl 0x44d560
pop edi
mov dword [ecx], 0x270
mov eax, ecx
pop esi
pop ebp
ret 0xc

Function at 0x44db90
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
lea eax, [ecx + 8]
mov esi, 0x270
nop dword [eax]
mov edx, dword [eax - 4]
lea eax, [eax + 4]
xor edx, dword [eax - 4]
and edx, 0x7fffffff
xor edx, dword [eax - 8]
mov ecx, edx
and cl, 1
movzx ecx, cl
neg ecx
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [eax + 0x62c]
xor ecx, edx
mov dword [eax + 0x9b8], ecx
sub esi, 1
jne 0x44dba0
pop esi
ret
Function at 0x44dbe0
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 0x44dbf0
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 0x44dc32
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 0x44dd30
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 0x44ddb1
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 0x44dd60
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 0x45c090
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 0x45c070
push 0
push 0
call fcn.00526f09
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 0x45c120
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 0x45c112
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 0x45c0f0
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 0x45c290
Capabilities:
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x410
mov eax, dword [0x5b906c]
xor eax, esp
mov dword [esp + 0x40c], eax
call fcn.0045c090
call fcn.0045c180
test al, al
je 0x45c2cc
mov al, 1
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.00484900
mov esp, ebp
pop ebp
ret
push 0x400
lea eax, [esp + 0xc]
push 0
push eax
call fcn.00515560
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.0045c140
cmp eax, 0x1d52f71
je 0x45c2b8
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.0045c140
cmp eax, 0xe0decd8
je 0x45c2b8
call fcn.0045c180
test al, al
jne 0x45c2b8
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.0045c140
cmp eax, 0xe0decd8
je 0x45c2b8
call fcn.0045c180
mov ecx, dword [esp + 0x40c]
test al, al
setne al
xor ecx, esp
call fcn.00484900
mov esp, ebp
pop ebp
ret
Function at 0x45dac0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x569c13
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x5b906c]
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], 0x5a746c
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.0045da30
add esp, 4
test al, al
je 0x45dc80
mov eax, dword [ebp - 0x80]
xor esi, esi
mov dword [ebp - 0x9c], eax
test eax, eax
jle 0x45dc2a
lea edi, [ebx + 4]
lea ecx, [ebp - 0x70]
call fcn.0045c720
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.0045ca80
test edi, edi
je 0x45dc0b
cmp byte [ebp - 0x28], 0
je 0x45dc0b
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
setne al
test al, al
je 0x45dc0b
cmp byte [ebx + 0x48], 0
je 0x45dc0b
push edi
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
setne al
test al, al
je 0x45dc0b
push edi
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
test al, al
je 0x45dc0b
mov eax, dword [ebp - 0x98]
and eax, 0x1f01ff
cmp eax, 0x1f01ff
jne 0x45dc0b
movzx eax, byte [ebp - 0x71]
and al, 0xef
je 0x45dc74
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0
call fcn.0045c7f0
inc esi
cmp esi, dword [ebp - 0x9c]
jl 0x45db71
mov edi, dword [ebp - 0xa0]
sub esp, 8
lea ecx, [ebp - 0x94]
push ebx
call fcn.0045cd30
test al, al
je 0x45dc80
test edi, edi
je 0x45dc80
push 0
lea ecx, [ebp - 0x94]
call fcn.0045cb30
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 0x45dc80
xor esi, esi
jmp 0x45dc9e
lea ecx, [ebp - 0x70]
call fcn.0045c7f0
xor esi, esi
jmp 0x45dc9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x45dc99
jle 0x45dc9e
movzx esi, si
or esi, 0x80070000
jmp 0x45dc9e
mov esi, 0x80004005
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x94], 0x5a746c
test ecx, ecx
je 0x45dcd2
mov edx, dword [ebp - 0x80]
call fcn.0045eec0
push dword [ebp - 0x84]
call fcn.0051c2ed
add esp, 4
mov dword [ebp - 0x84], 0
push dword [ebp - 0x90]
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
call fcn.0051c2ed
add esp, 4
mov dword [ebp - 0x90], 0
lea ecx, [ebp - 0x84]
call fcn.0045ecb0
push dword [ebp - 0x90]
mov dword [ebp - 0x94], 0x5a74bc
call fcn.0051c2ed
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.00484900
mov esp, ebp
pop ebp
ret
Function at 0x45f3f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5ad9a8
push 0x516ed0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5b906c]
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 0x45f443
push 0xc1
jmp 0x45f52b
mov ebx, dword [eax + 0x3c]
add ebx, eax
cmp dword [ebx], 0x4550
je 0x45f45a
push 0xbf
jmp 0x45f52b
movzx eax, word [ebx + 0x14]
test ax, ax
je 0x45f526
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 0x45f526
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 0x45f4b0
test dl, dl
je 0x45f4ac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x45f4b0
add eax, 2
add ecx, 2
test dl, dl
jne 0x45f490
xor eax, eax
jmp 0x45f4b5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x45f507
mov eax, dword [edi + 0xc]
test eax, eax
je 0x45f526
cmp dword [edi + 0x10], 0
je 0x45f526
mov esi, dword [ebp - 0x1c]
add esi, eax
mov eax, dword [esi]
cmp eax, 0x1c
jb 0x45f526
cmp dword [esi + 4], 0x72657373
jne 0x45f526
cmp dword [esi + 8], 0
jne 0x45f4e4
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 0x45f471
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 0x46b360
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push ecx
mov esi, ecx
call fcn.0044b860
add esp, 4
test al, al
je 0x46b37b
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.0046b290
test al, al
jne 0x46b374
push ebx
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x46b3bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x46b410
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 0x46b3e3
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 0x46b3fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x46b3fc
movzx ebx, bx
or ebx, 0x80070000
jmp 0x46b3fc
xor ebx, ebx
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x46b40d
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 0x46b420
Capabilities:
Modify service

Disassembly:
push ebx
push esi
push ecx
mov ebx, edx
mov esi, ecx
call fcn.0046b4e0
add esp, 4
test al, al
je 0x46b438
pop esi
xor eax, eax
pop ebx
ret
mov ecx, esi
call fcn.0046b760
test eax, eax
js 0x46b4d6
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x46b478
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x46b4d3
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 0x46b4a6
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 0x46b4bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x46b4bf
movzx ebx, bx
or ebx, 0x80070000
jmp 0x46b4bf
xor ebx, ebx
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x46b4d0
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 0x46b660
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5b906c]
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 0x46b6af
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x46b74b
movzx eax, ax
pop edi
or eax, 0x80070000
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00484900
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 0x46b6d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x46b734
movzx ebx, bx
or ebx, 0x80070000
jmp 0x46b734
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 0x46b706
mov eax, dword [ebp - 0x1c]
cmp eax, 4
je 0x46b732
cmp eax, 2
je 0x46b732
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x46b732
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x46b72a
movzx ebx, bx
or ebx, 0x80070000
cmp ebx, 0x80070420
jne 0x46b734
xor ebx, ebx
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x46b745
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.00484900
mov esp, ebp
pop ebp
ret
Function at 0x46b760
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5b906c]
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 0x46b7b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x46b885
movzx eax, ax
pop edi
or eax, 0x80070000
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00484900
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 0x46b816
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 0x46b82d
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x46b86c
cmp eax, 3
je 0x46b830
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 0x46b82d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x46b86e
movzx ebx, bx
or ebx, 0x80070000
jmp 0x46b86e
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x46b86c
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
cmp dword [ebp - 0x1c], 1
mov edi, eax
je 0x46b869
call ebx
sub eax, edi
cmp eax, 0x1f40
jae 0x46b895
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 0x46b845
mov edi, dword [ebp - 0x24]
xor ebx, ebx
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x46b87f
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.00484900
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x1c], 1
je 0x46b869
mov edi, dword [ebp - 0x24]
mov ebx, 0x800705b4
jmp 0x46b86e

Function at 0x46b8b0
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 0x46b8e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x46b93e
pop edi
movzx eax, ax
pop esi
or eax, 0x80070000
pop ebx
pop ebp
ret
push 0
push 0
push 0x5a7bfc
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 0x46b934
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x46b939
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 0x4766b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, edx
push edi
mov edi, dword [ecx]
xor ebx, ebx
mov dword [ebp - 0x14], ecx
mov ecx, dword [esi]
mov edx, dword [esi + 8]
mov dword [ebp - 4], ecx
mov ecx, dword [esi + 4]
mov dword [ebp - 0xc], edx
mov edx, dword [esi + 0xc]
lea esi, [ebx + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [eax]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov edx, eax
lea ebx, [ebx - 0x61c88647]
shr edx, 5
add edx, ecx
mov ecx, eax
shl ecx, 4
add ecx, dword [ebp - 4]
xor edx, ecx
lea ecx, [ebx + eax]
xor edx, ecx
add edi, edx
mov edx, edi
mov ecx, edi
shr edx, 5
add edx, dword [ebp - 8]
shl ecx, 4
add ecx, dword [ebp - 0xc]
xor edx, ecx
lea ecx, [ebx + edi]
xor edx, ecx
mov ecx, dword [ebp - 0x10]
add eax, edx
sub esi, 1
jne 0x4766e4
mov ecx, dword [ebp - 0x14]
mov dword [ecx], edi
mov ecx, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov dword [ecx], eax
mov esp, ebp
pop ebp
ret

Function at 0x476740
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, edx
push edi
mov edi, dword [ecx]
mov ebx, 0xe3779b90
mov dword [ebp - 0x14], ecx
mov ecx, dword [esi + 8]
mov edx, dword [esi]
mov dword [ebp - 4], ecx
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0xc], edx
mov edx, dword [esi + 4]
mov esi, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [eax]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
nop dword [eax]
mov edx, edi
shr edx, 5
add edx, ecx
mov ecx, edi
shl ecx, 4
add ecx, dword [ebp - 4]
xor edx, ecx
lea ecx, [edi + ebx]
xor edx, ecx
sub eax, edx
mov edx, eax
mov ecx, eax
shr edx, 5
add edx, dword [ebp - 8]
shl ecx, 4
add ecx, dword [ebp - 0xc]
xor edx, ecx
lea ecx, [eax + ebx]
xor edx, ecx
lea ebx, [ebx + 0x61c88647]
mov ecx, dword [ebp - 0x10]
sub edi, edx
sub esi, 1
jne 0x476780
mov ecx, dword [ebp - 0x14]
mov dword [ecx], edi
mov ecx, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov dword [ecx], eax
mov esp, ebp
pop ebp
ret