joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40382f
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x824
mov eax, dword [0x475078]
xor eax, esp
mov dword [esp + 0x820], eax
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x14]
mov edi, dword [ecx + 0xc]
sub edi, dword [eax]
mov eax, dword [ebx]
sub edi, 0x10
cdq
push edx
push eax
mov edx, 0xfff0b9d8
sar edi, 4
call fcn.0040a72f
mov ecx, dword [ebx + 4]
mov edx, esi
call fcn.00406824
mov ecx, dword [ebx + 4]
push 0
push dword [ebp + 0xc]
call fcn.0040a3f7
add esp, 0x10
call fcn.00404350
xor eax, eax
inc eax
push eax
push 2
push dword [ebx + 4]
mov dword [esp + 0x18], eax
call fcn.004502dd
test eax, eax
je 0x40391e
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x10]
push 0xffffffffffffffff
call fcn.00406b2a
mov esi, str.hwang
mov dword [esp], 0x7f2
lea edi, [esp + 0x2c]
lea eax, [esp + 0x3a]
push 0
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.00426130
add esp, 0xc
lea eax, [esp + 0x10]
cmp dword [esp + 0x24], 8
cmovae eax, dword [esp + 0x10]
push eax
lea eax, [esp + 0x38]
push str._s_r_n
push eax
call fcn.00406a87
add esp, 0xc
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebx + 4]
lea ecx, [esp + 0x10]
push 0
add dword [eax + 0xc], 0xfffffff0
xor eax, eax
inc eax
push eax
call fcn.0040171b
xor al, al
jmp 0x40394f
mov ecx, dword [ebx + 4]
or edx, 0xffffffff
call fcn.0040a180
test eax, eax
je 0x403941
mov ecx, dword [ebx + 4]
or edx, 0xffffffff
call fcn.0040a308
test eax, eax
setne al
mov byte [esp + 0xc], al
mov ecx, dword [ebx + 4]
mov edx, edi
call fcn.0040a05f
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x82c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00423710
mov esp, ebp
pop ebp
ret 8
Function at 0x403a98
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x824
mov eax, dword [0x475078]
xor eax, esp
mov dword [esp + 0x820], eax
push ebx
mov ebx, ecx
push esi
push edi
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x14]
mov edi, dword [ecx + 0xc]
sub edi, dword [eax]
mov eax, dword [ebx]
sub edi, 0x10
cdq
push edx
push eax
mov edx, 0xfff0b9d8
sar edi, 4
call fcn.0040a72f
mov ecx, dword [ebx + 4]
xor esi, esi
push esi
push dword [ebp + 8]
call fcn.0040a3f7
mov ecx, dword [ebx + 4]
push esi
push dword [ebp + 0xc]
call fcn.0040a3f7
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebx + 4]
cdq
push edx
push eax
call fcn.0040a3f7
add esp, 0x20
call fcn.00404350
push 1
push 3
push dword [ebx + 4]
call fcn.004502dd
test eax, eax
je 0x403b8d
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x10]
push 0xffffffffffffffff
call fcn.00406b2a
mov esi, str.hwang
mov dword [esp], 0x7f2
lea edi, [esp + 0x2c]
lea eax, [esp + 0x3a]
push 0
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.00426130
add esp, 0xc
lea eax, [esp + 0x10]
cmp dword [esp + 0x24], 8
cmovae eax, dword [esp + 0x10]
push eax
lea eax, [esp + 0x38]
push str._s_r_n
push eax
call fcn.00406a87
add esp, 0xc
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebx + 4]
lea ecx, [esp + 0x10]
push 0
push 1
add dword [eax + 0xc], 0xfffffff0
call fcn.0040171b
xor eax, eax
jmp 0x403ba8
mov ecx, dword [ebx + 4]
or edx, 0xffffffff
push esi
call fcn.0040a2b6
pop ecx
mov ecx, dword [ebx + 4]
mov edx, edi
mov esi, eax
call fcn.0040a05f
mov eax, esi
mov ecx, dword [esp + 0x82c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00423710
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4065db
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [0x475078]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
mov ebx, ecx
xor eax, eax
mov ecx, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 4]
push esi
or eax, 0x2001f
mov dword [esp + 0x1c], ecx
push eax
push ecx
push dword [ebx]
lea ecx, [esp + 0x18]
call fcn.0040674c
jmp 0x406633
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.004065db
mov esi, eax
test esi, esi
jne 0x406687
lea eax, [esp + 0x20]
mov dword [esp + 0x18], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x406625
cmp dword [esp + 0xc], esi
je 0x406676
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], esi
push dword [esp + 0x1c]
mov ecx, ebx
mov dword [esp + 0x14], esi
call fcn.00406563
mov esi, eax
cmp dword [esp + 0xc], 0
je 0x406698
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.00423710
mov esp, ebp
pop ebp
ret 4
Function at 0x4066b0
Capabilities:
Set registry value

Disassembly:
cmp dword [esp + 8], 0
push edi
mov edi, ecx
jne 0x4066bf
push 0xd
pop eax
jmp 0x4066e5
push dword [esp + 0xc]
call fcn.00429215
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [esp + 0x10]
push 1
push 0
push dword [esp + 0x18]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
ret 0xc

Function at 0x40782e
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x40
mov eax, dword [0x475078]
xor eax, esp
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x48]
push ebx
push ebp
mov dword [esp + 0x14], eax
mov ebp, ecx
xor eax, eax
mov ebx, dword [esp + 0x4c]
push esi
push edi
mov byte [esp + 0x20], al
lea edi, [esp + 0x21]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
stosd dword es:[edi], eax
mov esi, dword [esp + 0x5c]
push 1
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
xor edi, edi
lea eax, [esp + 0x20]
push edi
push edi
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [esp + 0x20]
mov dword [esp + 0x10], 0xc
push esi
mov edx, ebx
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x38]
mov dword [esp + 0x18], eax
call fcn.0044b3a9
pop ecx
cmp dword [eax + 0x14], 8
jb 0x4078ba
mov eax, dword [eax]
push eax
push edi
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push eax
mov ecx, ebp
call fcn.004042e3
push edi
push 1
lea ecx, [esp + 0x3c]
call fcn.0040171b
cmp dword [ebp], edi
je 0x407909
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x407909
push edi
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x407905
push 1
push eax
call dword [sym.imp.USER32.dll_SwitchToThisWindow]
xor eax, eax
jmp 0x40790c
xor eax, eax
inc eax
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00423710
add esp, 0x40
ret 0xc
Function at 0x4133f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x28
push esi
mov esi, ecx
mov dword [ebp - 0x18], edx
push edi
mov dword [ebp - 8], esi
call fcn.00431489
xor edi, edi
xorps xmm1, xmm1
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
mov eax, dword [eax]
mov al, byte [eax]
mov byte [ebp - 1], al
mov eax, dword [ebp - 0x18]
mov dword [eax], esi
movzx eax, byte [esi]
test byte [eax + 0x4650c1], 8
je 0x41344a
inc esi
movzx eax, byte [esi]
test byte [eax + 0x4650c1], 8
jne 0x41343a
mov dword [ebp - 8], esi
lea ecx, [ebp - 8]
call fcn.004133d5
mov edx, dword [ebp - 8]
mov dword [ebp - 0x24], eax
cmp byte [edx], 0x30
jne 0x413572
mov cl, byte [edx + 1]
cmp cl, 0x78
je 0x413472
cmp cl, 0x58
jne 0x413572
mov al, byte [ebp - 1]
add edx, 2
mov esi, edi
mov cl, byte [edx]
cmp cl, al
jne 0x413487
test esi, esi
jne 0x4134d7
inc esi
jmp 0x4134d4
movzx eax, cl
test byte [eax + 0x4650c1], 0x10
je 0x4134d7
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x4134a4
cmp cl, 0x30
jne 0x4134a4
inc dword [ebp - 0x14]
jmp 0x4134cc
inc eax
mov dword [ebp - 0x10], eax
cmp eax, 0x1e
jg 0x4134cb
movsx ecx, cl
call fcn.004133c1
mulsd xmm1, qword [0x46a580]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm0
jmp 0x4134cc
inc edi
mov al, byte [ebp - 1]
test esi, esi
je 0x4134d4
dec edi
inc edx
jmp 0x41347a
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xc], edi
push 0
pop edi
add eax, ecx
je 0x413572
mov eax, dword [ebp - 0x18]
mov dword [eax], edx
mov eax, dword [ebp - 0xc]
mov esi, eax
mov al, byte [edx]
shl esi, 2
cmp al, 0x70
je 0x413502
cmp al, 0x50
jne 0x41354b
inc edx
lea ecx, [ebp - 8]
mov dword [ebp - 8], edx
call fcn.004133d5
mov edx, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov al, byte [edx]
movzx ecx, al
test byte [ecx + 0x4650c1], 2
je 0x413572
imul ecx, edi, 0xa
movsx edi, al
add edi, 0xffffffd0
add edi, ecx
inc edx
movzx eax, byte [edx]
test byte [eax + 0x4650c1], 2
mov al, byte [edx]
jne 0x413522
cmp dword [ebp - 0x1c], 0
je 0x413544
neg edi
mov eax, dword [ebp - 0x18]
add esi, edi
mov dword [eax], edx
cmp dword [ebp - 0x24], 0
je 0x413558
xorps xmm1, xmmword [0x46a5e0]
push esi
push ecx
push ecx
movsd qword [esp], xmm1
call fcn.004312a2
fstp qword [ebp - 0x28]
movsd xmm0, qword [ebp - 0x28]
add esp, 0xc
jmp 0x413575
xorps xmm0, xmm0
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x41ba65
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.00424890
mov eax, dword [0x475078]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x1010], 0
lea eax, [ebp - 0x1008]
push esi
push edi
mov edi, 0x1000
mov dword [ebp - 0x100c], ecx
mov esi, edx
mov dword [ebp - 0x1018], eax
mov dword [ebp - 0x1014], edi
mov edx, edi
lea ecx, [ebp - 0x1018]
call fcn.0040bc1c
push esi
push edi
push 1
push eax
call fcn.004339f4
add dword [ebp - 0x1010], eax
add esp, 0x10
cmp eax, edi
je 0x41baa4
lea ecx, [ebp - 0x1018]
call fcn.0040bcbe
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00423710
mov esp, ebp
pop ebp
ret

Function at 0x41bae3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00424890
mov eax, dword [0x475078]
xor eax, ebp
mov dword [ebp - 8], eax
and dword [ebp - 0x1014], 0
lea eax, [ebp - 0x100c]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, edx
mov dword [ebp - 0x1010], ecx
mov edx, esi
mov dword [ebp - 0x101c], eax
lea ecx, [ebp - 0x101c]
mov dword [ebp - 0x1018], 0x1000
call fcn.0040bc1c
push edi
push esi
push 1
push eax
call fcn.004339f4
add esp, 0x10
lea ecx, [ebp - 0x101c]
mov esi, eax
add dword [ebp - 0x1014], esi
call fcn.0040bcbe
mov ecx, dword [ebp - 8]
xor eax, eax
cmp eax, esi
pop edi
sbb eax, eax
xor ecx, ebp
neg eax
pop esi
call fcn.00423710
mov esp, ebp
pop ebp
ret

Function at 0x41be3e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ecx + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ecx + 0xc]
sub esi, dword [eax]
sub esi, 0x10
mov dword [esp + 0xc], edx
push edi
sar esi, 4
mov dword [esp + 0xc], ecx
push 1
pop edi
sub esi, ebx
jne 0x41be78
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xc]
mov edx, ebx
dec esi
call fcn.0040a180
mov ecx, dword [esp + 0xc]
mov edx, ebx
cmp eax, 3
jne 0x41beeb
call fcn.00409f14
mov ecx, dword [esp + 0xc]
mov edx, ebx
push 0
cmp dword [eax + 8], 0x13
jne 0x41bead
call fcn.0040a2b6
pop ecx
push edx
push eax
push str._lld
jmp 0x41bebd
call fcn.0040a277
push ecx
movsd qword [esp], xmm0
push str._.14g
push dword [esp + 0x1c]
call fcn.0040b192
add esp, 0x10
test edi, edi
je 0x41bed1
test eax, eax
jg 0x41bf13
xor edi, edi
inc ebx
test esi, esi
jne 0x41be74
test edi, edi
jne 0x41be6a
mov ecx, dword [esp + 0xc]
xor edx, edx
push edi
call fcn.0040b751
pop ecx
jmp 0x41be6d
lea eax, [esp + 0x14]
push eax
call fcn.0040ba3e
pop ecx
test edi, edi
je 0x41bed1
push dword [esp + 0x10]
push dword [esp + 0x18]
push 1
push eax
call fcn.004340c7
add esp, 0x10
cmp eax, dword [esp + 0x14]
jne 0x41bed1
xor edi, edi
inc edi
jmp 0x41bed3

Function at 0x4407bc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0044063b

Function at 0x4449b2
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00444672
Function at 0x44af82
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
push 0x3c
mov eax, 0x45765b
call fcn.00423fa2
mov dword [ebp - 0x44], edx
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x40], eax
xor edi, edi
push 0xf003f
push edi
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [ebp - 0x38], esi
test esi, esi
je 0x44b0f8
push 0x2c
push ebx
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
mov dword [ebp - 0x48], ebx
test ebx, ebx
je 0x44b0ed
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x3c]
xor edi, edi
push eax
push 0x24
lea eax, [ebp - 0x34]
mov dword [ebp - 0x3c], edi
push eax
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x44b0e2
cmp dword [ebp - 0x30], 1
je 0x44b0df
jmp 0x44b068
mov eax, dword [ebp - 0x1c]
xor edx, edx
push 0xa
pop ecx
div ecx
mov ecx, 0x3e8
cmp eax, ecx
jae 0x44b022
mov eax, ecx
jmp 0x44b02c
mov ecx, 0x2710
cmp eax, ecx
cmova eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], edi
push eax
push 0x24
lea eax, [ebp - 0x34]
push eax
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x44b0e2
cmp dword [ebp - 0x30], 1
je 0x44b0df
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x44]
ja 0x44b0e2
cmp dword [ebp - 0x30], 3
je 0x44b00b
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ecx, dword [ebp - 0x40]
lea edx, [ebp - 0x48]
add ecx, dword [ebp - 0x44]
sub ecx, eax
push ecx
lea ecx, [ebp - 0x38]
call fcn.0044b100
mov ebx, dword [ebp - 0x48]
lea eax, [ebp - 0x34]
pop ecx
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x44b0d6
mov esi, dword [ebp - 0x38]
jmp 0x44b0e2
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], edi
push eax
push 0x24
lea eax, [ebp - 0x34]
push eax
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x44b09f
cmp dword [ebp - 0x30], 1
je 0x44b0dc
call esi
sub eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x44]
ja 0x44b09f
cmp dword [ebp - 0x30], 1
jne 0x44b0a4
mov esi, dword [ebp - 0x38]
xor edi, edi
inc edi
test ebx, ebx
je 0x44b0ed
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x44b0f8
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
call fcn.00423f4c
ret
Function at 0x44b100
Capabilities:
Check for time delay via gettickcount
Enumerate services
Query service status

Disassembly:
push 0x54
mov eax, 0x457688
call fcn.00423fa2
mov edi, edx
mov dword [ebp - 0x58], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x35]
mov dword [ebp - 0x3c], ebx
push eax
push ebx
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x40], ebx
mov byte [ebp - 0x35], bl
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
call fcn.004011ad
lea eax, [ebp - 0x40]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x3c]
push eax
push ebx
push ebx
inc ebx
push ebx
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x44b1cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x44b1cd
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x54]
call fcn.004010cb
mov esi, dword [ebp - 0x54]
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x48], esi
push eax
push dword [ebp - 0x3c]
push esi
push ebx
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
je 0x44b1cd
and dword [ebp - 0x44], 0
cmp dword [ebp - 0x40], 0
jbe 0x44b1cf
mov eax, dword [ebp - 0x58]
push 0x24
push dword [esi]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x44b1cd
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x34]
push eax
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x44b216
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor ebx, ebx
lea ecx, [ebp - 0x54]
call fcn.00401130
mov eax, ebx
call fcn.00423f4c
ret
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_Sleep]
and dword [ebp - 0x5c], 0
lea eax, [ebp - 0x5c]
push eax
push 0x24
lea eax, [ebp - 0x34]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x44b1c6
cmp dword [ebp - 0x30], ebx
je 0x44b21b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x60]
cmp eax, dword [ebp + 8]
ja 0x44b1c6
cmp dword [ebp - 0x30], ebx
jne 0x44b1df
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, dword [ebp - 0x44]
mov esi, dword [ebp - 0x48]
inc edi
add esi, 0x24
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x48], esi
cmp edi, dword [ebp - 0x40]
jb 0x44b197
jmp 0x44b1cf
Function at 0x44b23d
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x475078]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0xf003f
xor ebx, ebx
mov esi, ecx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x44b311
push edi
push 0xf01ff
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x30], esi
test esi, esi
je 0x44b300
push 9
pop ecx
xor eax, eax
mov dword [ebp - 0x2c], ebx
lea edi, [ebp - 0x28]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
lea eax, [ebp - 0x2c]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push ebx
push esi
call edi
test eax, eax
je 0x44b2fe
cmp dword [ebp - 0x24], 3
je 0x44b2b3
cmp dword [ebp - 0x24], 1
jne 0x44b2fb
push 3
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x30]
call fcn.0044b323
pop ecx
test eax, eax
je 0x44b2fe
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x44b2fe
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], ebx
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push ebx
push esi
call edi
test eax, eax
je 0x44b2fe
push 2
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x30]
call fcn.0044b323
cmp dword [ebp - 0x24], 4
pop ecx
jne 0x44b2fe
xor ebx, ebx
inc ebx
test esi, esi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x44b30b
push esi
call edi
push dword [ebp - 0x34]
call edi
pop edi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.00423710
mov esp, ebp
pop ebp
ret

Function at 0x44b323
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, edx
mov dword [esp + 0x14], ecx
call edi
mov ebp, dword [esi + 0x14]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
jmp 0x44b396
mov eax, dword [esi + 0x18]
xor edx, edx
push 0xa
pop ecx
div ecx
mov ecx, 0x3e8
cmp eax, ecx
jae 0x44b35b
mov eax, ecx
jmp 0x44b365
mov ecx, 0x2710
cmp eax, ecx
cmova eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.00401090
test eax, eax
je 0x44b3a5
cmp dword [esi + 0x14], ebp
jbe 0x44b38b
call edi
mov ebp, dword [esi + 0x14]
mov dword [esp + 0x10], eax
jmp 0x44b396
call edi
sub eax, dword [esp + 0x10]
cmp eax, dword [esi + 0x18]
ja 0x44b3a5
cmp dword [esi + 4], ebx
je 0x44b344
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
xor eax, eax
jmp 0x44b39e
Function at 0x450080
Capabilities:
Open clipboard

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x475078]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x28
mov eax, 0x45815e
call fcn.00423f6e
mov dword [ebp - 0x14], ecx
xor ebx, ebx
mov esi, ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x4501a9
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
mov dword [ebp - 4], ebx
test eax, eax
js 0x45019b
mov dword [ebp - 0x10], ebx
xor eax, eax
inc eax
mov byte [ebp - 4], al
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ole32.dll_OleGetClipboard]
test eax, eax
jne 0x45018b
or dword [ebp - 0x1c], 0xffffffff
lea edx, [ebp - 0x34]
push 0xf
pop eax
mov word [ebp - 0x28], ax
xor eax, eax
inc eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
push edx
lea edx, [ebp - 0x28]
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x45018b
mov edi, dword [ebp - 0x30]
push ebx
push ebx
mov ebx, dword [sym.imp.SHELL32.dll_DragQueryFileW]
push 0xffffffffffffffff
push edi
call ebx
cmp eax, 1
jne 0x450160
push 0x208
lea eax, [ebp]
push esi
push eax
call fcn.00426130
add esp, 0xc
lea eax, [ebp]
push 0x104
push eax
push esi
push edi
call ebx
test eax, eax
je 0x450160
push dword [ebp - 0x14]
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
push 1
pop eax
cmove esi, eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.ole32.dll_ReleaseStgMedium]
xor ebx, ebx
test esi, esi
je 0x45018b
push ebx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x450189
call dword [sym.imp.USER32.dll_EmptyClipboard]
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x45018b
mov esi, ebx
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x45019b
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.ole32.dll_OleUninitialize]
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 + 0x208]
xor ecx, ebp
call fcn.00423710
lea esp, [ebp + 0x20c]
pop ebp
ret

Function at 0x4501ce
Capabilities:
Check if file exists
Delete directory
Get file attributes
Set file attributes

Disassembly:
push esi
push edi
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edi, eax
test edi, edi
jne 0x450207
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x450214
test al, 1
je 0x450214
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edi, eax
test edi, edi
je 0x450214
push 0
push esi
push 5
push 0x10
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov eax, edi
pop edi
pop esi
ret
Function at 0x450219
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
test edi, edi
jne 0x45026c
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x450259
test al, 5
je 0x450259
and eax, 0xfffffffa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x450259
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
test edi, edi
jne 0x45026c
test ebx, ebx
jne 0x450279
mov ecx, esi
call fcn.00450080
mov ebx, eax
test ebx, ebx
jne 0x450220
jmp 0x450279
push 0
push esi
push 5
push 4
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov eax, edi
pop edi
pop esi
pop ebx
ret