joyce8/EMBER2024-capa huggingface dataset:
Function at 0x490e30
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x530
mov eax, dword [0x4fb128]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x502374], 0x1e
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x520], eax
jl 0x490ec8
push eax
push edx
lea eax, [ebp - 0x530]
push eax
lea eax, [ebp - 0x52c]
push eax
call fcn.00490ce0
test eax, eax
jne 0x491038
mov ecx, 0xe
mov esi, str.SOFTWAREMicrosoftWindows_NTCurrentVersionProfileList_
lea edi, [ebp - 0x20c]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x20c]
movsw word es:[edi], word [esi]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x490e98
push dword [ebp - 0x52c]
sub ecx, edx
mov eax, 0x208
sub eax, ecx
push eax
lea eax, [ebp - 0x20c]
add eax, ecx
push eax
mov dword [ebp - 0x51c], ecx
call fcn.00491130
add esp, 0xc
jmp 0x490f0c
mov ecx, 0xd
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersionProfileList_
lea edi, [ebp - 0x20c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea ecx, [ebp - 0x20c]
movsb byte es:[edi], byte [esi]
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x490ee6
sub ecx, esi
mov eax, 0x208
sub eax, ecx
push eax
lea eax, [ebp - 0x20c]
push edx
add eax, ecx
push eax
mov dword [ebp - 0x51c], ecx
call fcn.00494810
lea eax, [ebp - 0x524]
push eax
push 1
push 0
lea eax, [ebp - 0x20c]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x490f45
pop edi
pop esi
add eax, 0xafc80
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047232c
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ebp - 0x51c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x528]
push eax
push 0
push str.ProfileImagePath
push dword [ebp - 0x524]
mov dword [ebp - 0x51c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x524]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x490fa2
pop edi
lea eax, [esi + 0xafc80]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047232c
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 0x528]
cmp eax, 1
jne 0x490fb5
lea eax, [ebp - 0x20c]
jmp 0x490fd9
cmp eax, 2
jne 0x491033
push 0x104
lea eax, [ebp - 0x518]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x518]
push eax
lea eax, [ebp - 0x310]
push 0x104
push eax
call fcn.004902b0
add esp, 0xc
test eax, eax
jne 0x491038
lea eax, [ebp - 0x310]
push eax
push dword [ebp - 0x520]
call fcn.0048aa10
mov dword [ebx], eax
cmp byte [eax], 0
je 0x49101e
jmp 0x491010
cmp byte [eax], 0x5c
jne 0x491018
mov byte [eax], 0x2f
inc eax
cmp byte [eax], 0
jne 0x491010
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047232c
mov esp, ebp
pop ebp
ret 0xc
mov eax, 2
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047232c
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4911f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x6004
call fcn.004739d0
mov eax, dword [0x4fb128]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x6004]
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x49124a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x4912a2
call esi
pop edi
add eax, 0xafc80
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047232c
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ebp - 0x6004]
push eax
lea eax, [ebp - 0x2004]
push 0x2000
push eax
call fcn.004902b0
add esp, 0xc
test eax, eax
jne 0x4912a4
test byte [ebp + 0xc], 0x10
jne 0x491293
cmp byte [ebp - 0x2004], 0
lea eax, [ebp - 0x2004]
mov dword [esi], eax
je 0x491293
mov eax, dword [esi]
cmp byte [eax], 0x5c
jne 0x49128a
mov byte [eax], 0x2f
inc dword [esi]
mov eax, dword [esi]
cmp byte [eax], 0
jne 0x491280
lea eax, [ebp - 0x2004]
push eax
push edi
call fcn.0048aa10
mov dword [esi], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0047232c
mov esp, ebp
pop ebp
ret 0xc

Function at 0x491480
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4004
call fcn.004739d0
mov eax, dword [0x4fb128]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x502374], 0x1e
mov eax, dword [ebp + 8]
push eax
jl 0x4914cb
lea eax, [ebp - 0x4004]
push 0x2000
push eax
call fcn.00490350
add esp, 0xc
test eax, eax
jne 0x4914ef
lea eax, [ebp - 0x4004]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
jmp 0x4914d1
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x4914ea
cmp eax, 1
je 0x4914ea
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047232c
mov esp, ebp
pop ebp
ret
mov eax, 0x4e38
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047232c
mov esp, ebp
pop ebp
ret
Function at 0x491790
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x401c
call fcn.004739d0
mov eax, dword [0x4fb128]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
mov ecx, edx
push esi
mov dword [ebp - 0x400c], eax
mov dword [ebp - 0x4018], 0x2000
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4917c7
sub ecx, esi
lea eax, [ecx + 1]
mov dword [ebp - 0x4008], eax
lea eax, [ebp - 0x4018]
push eax
lea eax, [ebp - 0x4004]
push eax
lea eax, [ebp - 0x4008]
push eax
push edx
call fcn.00494bc0
cmp eax, 0x11178
jne 0x491812
pop esi
mov eax, 0x26
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047232c
mov esp, ebp
pop ebp
ret 0xc
test eax, eax
jne 0x4918f1
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push 0
lea eax, [ebp - 0x401c]
push eax
lea eax, [ebp - 0x4004]
push eax
call edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
jne 0x491861
pop edi
pop esi
mov eax, 2
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047232c
mov esp, ebp
pop ebp
ret 0xc
test esi, esi
jne 0x491879
push 0x4c543c
push dword [ebp - 0x400c]
call fcn.0048aa10
mov dword [ebx], eax
jmp 0x4918ee
lea eax, [esi + esi]
push eax
push dword [ebp - 0x400c]
call fcn.0048b000
push esi
push eax
mov dword [ebp - 0x4008], eax
lea eax, [ebp - 0x4004]
push eax
call edi
mov esi, dword [ebp - 0x4008]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4918a4
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
mov dword [ebp - 0x4014], eax
lea eax, [eax + eax*2]
push eax
push dword [ebp - 0x400c]
mov dword [ebp - 0x4010], eax
call fcn.0048b000
mov edi, eax
lea eax, [ebp - 0x4010]
push eax
push edi
lea eax, [ebp - 0x4014]
push eax
push esi
call fcn.00494a50
test eax, eax
jne 0x4918f0
mov dword [ebx], edi
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0047232c
mov esp, ebp
pop ebp
ret 0xc
Function at 0x491910
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x18]
push edi
push 0x1c
push esi
call fcn.0048b000
mov edi, dword [ebp + 8]
mov ecx, eax
mov dword [edi], ecx
test ecx, ecx
jne 0x491934
pop edi
lea eax, [ecx + 0xc]
pop esi
pop ebp
ret 0x14
mov eax, dword [ebp + 0x14]
mov dword [ecx + 0x10], eax
mov ecx, dword [edi]
mov eax, dword [ebp + 0x10]
push 0
mov dword [ecx + 0x14], eax
mov eax, dword [edi]
push 0
push esi
mov dword [eax + 4], 0
push dword [edi]
call fcn.0048b210
test eax, eax
jne 0x4919c3
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x491967
mov eax, dword [esi + 8]
jmp 0x491969
xor eax, eax
lea ecx, [ebp + 0x18]
push ecx
push 0
push dword [edi]
push 0x491ac0
push eax
push 0
call fcn.00497571
mov ecx, eax
add esp, 0x18
test ecx, ecx
jne 0x4919a3
call fcn.00477bf7
cmp dword [eax], 0
je 0x4919c1
call fcn.00477bf7
mov eax, dword [eax]
pop edi
add eax, 0xafc80
pop esi
pop ebp
ret 0x14
test esi, esi
je 0x4919bc
cmp dword [esi + 4], 0
je 0x4919bc
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
pop ebp
ret 0x14
mov eax, dword [edi]
mov dword [eax + 4], ecx
xor eax, eax
pop edi
pop esi
pop ebp
ret 0x14
Function at 0x491f10
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x491f29
mov edi, str.0.0.0.0
jmp 0x491f3b
mov al, byte [edi]
cmp al, 0x30
jl 0x492024
cmp al, 0x39
jg 0x492024
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x491f40
push str.0123456789.
push edi
sub esi, ecx
call fcn.004977a0
add esp, 8
cmp eax, esi
jne 0x492024
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x10], 0
mov dword [ebp + 0xc], eax
mov eax, dword [eax + 0xc]
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [eax], edi
je 0x492087
push ebx
xor ebx, ebx
push 0x38
push 0
push 0x38
push dword [ebp + 0x1c]
call fcn.0048b000
push eax
call fcn.00472dd0
mov edx, dword [ebp + 0x1c]
mov esi, eax
mov eax, dword [ebp + 0xc]
mov dword [esi], edx
mov eax, dword [eax + 0xc]
lea ecx, [esi + 0x2c]
mov eax, dword [ebx + eax]
mov ebx, dword [ebp + 0x14]
mov eax, dword [eax]
mov dword [ecx], eax
add esp, 0xc
mov eax, 2
mov dword [esi + 0x10], 2
mov word [esi + 0x28], ax
test bx, bx
je 0x491ff0
push ebx
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [ebp + 0x1c]
mov word [esi + 0x2a], ax
mov word [esi + 0xc], bx
lea ecx, [esi + 0x2c]
mov dword [esi + 0x14], 0x10
mov dword [esi + 0x1c], 0x10
mov dword [esi + 0x20], ecx
mov dword [esi + 0x18], 4
test edi, edi
jne 0x492055
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x49201d
push eax
push edx
call fcn.0048aa10
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [eax], esi
jmp 0x49205e
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x491f82
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
test eax, eax
jne 0x492048
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call esi
pop edi
add eax, 0xafc80
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov dword [edi + 0x24], esi
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
lea ebx, [eax*4]
mov eax, dword [ebp + 0xc]
mov edi, esi
mov eax, dword [eax + 0xc]
cmp dword [ebx + eax], 0
jne 0x491f95
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 0x4e2e
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4920a0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
mov dword [eax + 0x14], 0x10
mov ecx, dword [esi + 0x10]
lea eax, [ecx + 0x14]
push eax
lea eax, [ecx + 0x28]
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jns 0x4920df
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
test eax, eax
je 0x492102
call esi
add eax, 0xafc80
pop esi
pop ebp
ret
mov eax, dword [esi + 0x10]
mov dword [esi + 0x30], 0
mov dword [esi + 0x2c], 0
movzx eax, word [eax + 0x2a]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [esi + 0x10]
mov word [ecx + 0xc], ax
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4928a0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
mov edi, dword [ebp + 0x10]
push 0
mov eax, dword [edi]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
push 0
mov dword [ebp - 8], eax
push 0
lea eax, [ebp - 4]
push eax
push 1
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x492908
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x4928f0
mov dword [edi], eax
pop edi
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], 0
add eax, 0xafc80
pop edi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 4]
mov dword [edi], eax
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x492920
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
push dword [eax + 0x14]
mov esi, dword [ebp + 0x18]
add eax, 0x28
push eax
push dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push dword [esi]
push dword [ebp + 0x14]
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x492968
mov dword [esi], 0
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
test eax, eax
je 0x49296a
call esi
add eax, 0xafc80
pop esi
pop ebp
ret 0x14
mov dword [esi], eax
xor eax, eax
pop esi
pop ebp
ret 0x14
Function at 0x492ca0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x8004667e
push dword [ebp + 8]
mov dword [ebp - 4], 0
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x492cdb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x492cdb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xafc80
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x492cf0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x8004667e
push dword [ebp + 8]
mov dword [ebp - 4], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x492d2b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x492d2b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xafc80
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x494850
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x49488a
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x494884
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x494884
call dword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0xafc80
pop ebp
ret 8
xor eax, eax
pop ebp
ret 8
mov eax, 0x4e3b
pop ebp
ret 8

Function at 0x4948a0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x502374]
test ecx, ecx
jne 0x4949d7
push 0x5023a0
mov dword [0x5023a0], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [0x5023b0], 2
jne 0x4949cc
cmp byte [0x5023b4], 0
push esi
mov esi, 0x5023b4
je 0x4948f7
movzx eax, byte [esi]
push eax
call fcn.00477390
add esp, 4
test eax, eax
jne 0x494924
inc esi
cmp byte [esi], al
jne 0x4948e2
mov eax, dword [0x502350]
mov edx, dword [0x5023a4]
pop esi
cmp edx, 3
jb 0x4949cc
je 0x4949cc
cmp edx, 4
jne 0x494970
cmp eax, 2
jae 0x494939
lea ecx, [edx + 0x24]
jmp 0x4949d1
cmp byte [esi], 0
je 0x4948f7
push esi
call fcn.004742ff
add esp, 4
mov dword [0x502350], eax
jmp 0x4948fc
ja 0x494945
mov ecx, 0x2a
jmp 0x4949d1
cmp eax, 3
ja 0x494954
mov ecx, 0x2b
jmp 0x4949d1
cmp eax, 4
ja 0x494960
mov ecx, 0x2c
jmp 0x4949d1
mov ecx, 5
cmp ecx, eax
sbb ecx, ecx
neg ecx
add ecx, 0x2d
jmp 0x4949d1
cmp edx, 5
jne 0x4949ba
mov ecx, dword [0x5023a8]
test ecx, ecx
jne 0x494995
test eax, eax
jne 0x494988
lea ecx, [edx + 0x2d]
jmp 0x4949d1
xor ecx, ecx
cmp eax, 1
setne cl
add ecx, 0x33
jmp 0x4949d1
cmp ecx, 2
jne 0x4949a1
mov ecx, 0x46
jmp 0x4949d1
cmp eax, 1
jae 0x4949ad
mov ecx, 0x3c
jmp 0x4949d1
xor ecx, ecx
cmp eax, 1
setne cl
add ecx, 0x3d
jmp 0x4949d1
mov ecx, 0x3c
mov eax, 0x50
cmp edx, 6
cmove ecx, eax
jmp 0x4949d1
mov ecx, 1
mov dword [0x502374], ecx
mov eax, dword [ebp + 8]
mov dword [eax], ecx
xor eax, eax
cmp dword [0x502374], 1
mov ecx, 0x4e2e
cmovl eax, ecx
pop ebp
ret
Function at 0x49bf90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
xor eax, eax
mov cl, byte [edx]
test cl, cl
je 0x49bfb4
mov edi, edi
imul eax, eax, 0xf4243
movzx ecx, cl
lea edx, [edx + 1]
xor eax, ecx
mov cl, byte [edx]
test cl, cl
jne 0x49bfa0
pop ebp
ret
Function at 0x4010a0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4094c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 1
push str.ServicesActive
push 0
mov byte [ebp - 0x21], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
je 0x40111d
push esi
push edi
xor edi, edi
mov edi, edi
cmp edi, 0x18
jae 0x401114
mov eax, dword [edi + 0x409024]
push 4
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x40110b
lea ecx, [ebp - 0x20]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x401104
cmp dword [ebp - 0x1c], 4
jne 0x401104
mov byte [ebp - 0x21], 1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add edi, 4
cmp byte [ebp - 0x21], 0
je 0x4010d0
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x21]
xor ecx, ebp
pop ebx
call fcn.0040423b
mov esp, ebp
pop ebp
ret

Function at 0x401330
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4094c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
mov eax, 0x10624dd3
mul ecx
push ebx
push esi
mov esi, edx
shr esi, 6
mov edx, esi
imul edx, edx, 0x3e8
sub ecx, edx
push edi
mov dword [ebp - 0x28], esi
je 0x401368
inc esi
mov dword [ebp - 0x28], esi
mov byte [ebp - 0x21], 0
mov byte [ebp - 0x23], 0
mov dword [ebp - 0x2c], 0
jmp 0x401380
cmp byte [ebp - 0x23], 0
jne 0x401439
cmp dword [ebp - 0x2c], esi
jae 0x401439
push 1
push str.ServicesActive
push 0
mov byte [ebp - 0x22], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
je 0x40140a
xor edi, edi
mov edi, edi
cmp edi, 0x18
jae 0x4013f4
mov eax, dword [edi + 0x409024]
push 4
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x4013eb
lea ecx, [ebp - 0x20]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4013e4
cmp dword [ebp - 0x1c], 4
jne 0x4013e4
mov byte [ebp - 0x22], 1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add edi, 4
cmp byte [ebp - 0x22], 0
je 0x4013b0
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp byte [ebp - 0x22], 0
mov esi, dword [ebp - 0x28]
je 0x40140a
mov byte [ebp - 0x23], 1
jmp 0x40142c
mov edx, dword [ebp - 0x30]
push 0x3e8
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x401428
cmp eax, 0x102
setne byte [ebp - 0x21]
jmp 0x40142c
mov byte [ebp - 0x21], 1
inc dword [ebp - 0x2c]
cmp byte [ebp - 0x21], 0
je 0x401380
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x21]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040423b
mov esp, ebp
pop ebp
ret
Function at 0x401780
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x4094c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetSystemPowerStatus]
cmp byte [ebp - 0x10], 1
jne 0x401997
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [0x40951c], eax
sete al
test al, al
jne 0x401997
push ebx
mov ebx, dword [sym.imp.MSVCR100.dll_strstr]
push 0x405404
push esi
call ebx
add esp, 8
test eax, eax
je 0x40180a
mov ecx, dword [0x40951c]
push 0x3e8
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x401996
cmp eax, 0x102
jne 0x401996
lea edx, [ebp - 0x14]
push edx
call fcn.00401250
add esp, 4
mov dword [0x409518], eax
test eax, eax
je 0x401996
mov eax, dword [str.Acrobat_Viewer]
push 0
push eax
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
jne 0x40196e
push 0x401130
push 0x1f4
push eax
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov edi, eax
mov dword [ebp - 0x1c], edi
test edi, edi
je 0x40196e
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x40951c], eax
test eax, eax
je 0x401965
push 0x409500
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x405404
push esi
mov byte [0x409524], 0
call ebx
add esp, 8
neg eax
lea ecx, [ebp - 0x20]
push ecx
push 0
sbb eax, eax
inc eax
push eax
push 0x401450
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x409520], eax
test eax, eax
je 0x401944
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
push 0
lea edx, [ebp - 0x3c]
push edx
call esi
test eax, eax
je 0x401904
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
lea ebx, [ebx]
cmp eax, 0xffffffff
je 0x401901
lea eax, [ebp - 0x3c]
push eax
call edi
lea ecx, [ebp - 0x3c]
push ecx
call ebx
push 0
push 0
push 0
lea edx, [ebp - 0x3c]
push edx
call esi
test eax, eax
jne 0x4018e0
mov edi, dword [ebp - 0x1c]
call fcn.00401170
mov eax, dword [0x409520]
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40192d
mov ecx, dword [0x409520]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [0x409520]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x409520], 0
mov eax, dword [0x40951c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x409500
mov dword [0x40951c], 0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push edi
push 0
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [0x409518]
test eax, eax
je 0x40197e
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
cmp word [ebp - 0x14], 0
je 0x401996
mov ecx, dword [ebp - 0x18]
mov edx, dword [str.AdobeAcrobatSpeedLaunchCmdWnd]
push ecx
push edx
call dword [sym.imp.USER32.dll_UnregisterClassA]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0040423b
mov esp, ebp
pop ebp
ret 0x10