joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402c90
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
call fcn.00401760
mov ecx, eax
test ecx, ecx
je 0x402dba
mov eax, dword [ecx]
call dword [eax + 0xc]
push dword [ebp + 0xc]
add eax, 0x10
push dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push str.__s___s
push eax
call fcn.00402630
mov eax, dword [ebp + 8]
add esp, 0xc
add eax, 0xfffffff0
mov esi, esp
push eax
call fcn.004014e0
add eax, 0x10
add esp, 4
mov dword [esi], eax
lea eax, [ebp - 8]
push eax
call fcn.00402700
push 0x44
lea eax, [ebp - 0x5c]
push 0
push eax
call fcn.004053f0
mov edi, dword [ebp - 4]
add esp, 0x14
mov dword [ebp - 0x5c], 0x44
cmp dword [edi - 4], 1
jle 0x402d17
push dword [edi - 0xc]
lea ecx, [ebp - 4]
call fcn.004016a0
mov edi, dword [ebp - 4]
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 1
jle 0x402d2e
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.004016a0
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 8]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x5c]
push ecx
push esi
push 0
push 0
push 0
push 0
push 0
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
lea edx, [esi - 0x10]
mov ebx, eax
or esi, 0xffffffff
mov ecx, esi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x402d68
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x402d7f
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 8]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402d99
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x402db1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004014b0
int3

Function at 0x405a9d
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x44097c
push str.FlsAlloc
push 0
call fcn.0040594b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x405acf
push dword [ebp + 8]
mov ecx, esi
call fcn.0040403a
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x405b11
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x4409a0
push str.FlsGetValue
push 2
call fcn.0040594b
add esp, 0x10
mov esi, eax
push dword [ebp + 8]
test esi, esi
je 0x405b42
mov ecx, esi
call fcn.0040403a
call esi
jmp 0x405b48
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
pop ebp
ret
Function at 0x405b4b
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x4409b4
push str.FlsSetValue
push 3
call fcn.0040594b
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x405b7f
mov ecx, esi
call fcn.0040403a
call esi
jmp 0x405b85
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret
Function at 0x42a979
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042a153

Function at 0x42a984
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042a38e

Function at 0x42b833
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042b5ba

Function at 0x439333
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
add eax, esi
cmp dword [ebp - 8], eax
jae 0x439338
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x439329
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], 0x58
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.004390e4
invalid

Function at 0x439478
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.004390f4
push eax
push esi
push dword [ebp + 8]
call fcn.004390a9
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte cs:[ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.004390f4
push eax
push esi
push dword [ebp + 8]
call fcn.004390a9
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.004390f4
push eax
push esi
push dword [ebp + 8]
call fcn.004390a9
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.004390e4
les edi, [esi - 0x62771f5e]
jl 0x439569
invalid
invalid
Function at 0x4394d6
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.004390f4
push eax
push esi
push dword [ebp + 8]
call fcn.004390a9
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte cs:[ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.004390f4
push eax
push esi
push dword [ebp + 8]
call fcn.004390a9
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.004390f4
push eax
push esi
push dword [ebp + 8]
call fcn.004390a9
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.004390e4
les edi, [esi - 0x62771f5e]
jl 0x439569
invalid
invalid

Function at 0x43a540
Capabilities:
Contain obfuscated stackstrings

Disassembly:
jb 0x43a5b1
and byte [ebp - 0x72c], 0
and byte [ebp - 0x72b], 0
mov byte [ebp - 0x72a], 0xc2
and byte [ebp - 0x729], 0
mov byte [ebp - 0x728], 0x6b
mov byte [ebp - 0x727], 0x54
mov byte [ebp - 0x726], 0x4f
mov byte [ebp - 0x725], 0x49
mov byte [ebp - 0x724], 0x48
mov byte [ebp - 0x723], 0x5c
mov byte [ebp - 0x722], 0x51
mov byte [ebp - 0x721], 0x6d
mov byte [ebp - 0x720], 0x4f
mov byte [ebp - 0x71f], 0x52
mov byte [ebp - 0x71e], 0x49
mov byte [ebp - 0x71d], 0x58
mov byte [ebp - 0x71c], 0x5e
mov byte [ebp - 0x71b], 0x49
mov byte [ebp - 0x71a], 0x3d
call fcn.004390e4
retf 0x7cc3
call [eax - 0x3a]
test esp, esp
clc
invalid
Function at 0x401000
Capabilities:
Allocate thread local storage

Disassembly:
push 0x50
push 0
push 0x4159c0
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0
call sub.KERNEL32.dll_GetModuleHandleW
mov dword [0x4159c4], eax
push 0
push 0x1000
push 0
call sub.KERNEL32.dll_HeapCreate
mov dword [0x4159c0], eax
mov eax, 0x4143f8
mov dword [0x4159cc], eax
call fcn.00410470
call fcn.0041021d
call fcn.0040f455
call fcn.0040ee9d
call fcn.0040e000
call fcn.0040db8f
call fcn.0040daf5
call fcn.0040d8f0
call fcn.0040c480
call fcn.0040a5bc
call fcn.00409e60
call fcn.00409385
call fcn.004092fc
call fcn.00408fcb
call fcn.0040778e
call fcn.00406305
call fcn.0040616f
call fcn.00405777
call fcn.004053b5
mov eax, 0x200
push eax
lea eax, [0x415a08]
push eax
xor eax, eax
push eax
push 0x15
push 4
call fcn.0040f474
mov eax, 0x200
push eax
lea eax, [0x415a0c]
push eax
push 0x4143f0
push 8
push 4
call fcn.0040f474
lea eax, [0x40382b]
push eax
call fcn.00405f30
call fcn.00402111
call fcn.00402f65
mov eax, str.Silent
push eax
push dword [0x415a08]
call fcn.0040f541
mov ebp, eax
cmp dword [ebp], 0
je 0x40111e
call fcn.0040240e
jmp 0x401137
push 0x8c
push 0xf5
push 0
push 0
call fcn.00401d86
push 0
call 0x401156
call fcn.004104c0
push dword [0x4159c0]
call sub.KERNEL32.dll_HeapDestroy
call sub.KERNEL32.dll_ExitProcess
call fcn.00405f50
call fcn.00406163
call fcn.004062ea
call fcn.0040776b
call fcn.00408fbe
call main
call fcn.0040c4a0
call fcn.0040db83
call fcn.0040db9b
call fcn.0040dff0
call fcn.0040ee7f
call fcn.0040fa7c
call fcn.0040d8e0
ret
Function at 0x403b30
Capabilities:
Get disk information

Disassembly:
push ebx
mov edx, 0xa
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x403b36
mov eax, dword [esp + 0x34]
mov dword [0x415ecc], eax
mov edx, dword [esp + 0x30]
lea ecx, [esp]
call fcn.00405000
push 1
mov eax, str.DeviceLanmanRedirector
push eax
push dword [esp + 8]
call fcn.0040cf40
and eax, eax
je 0x403bb1
push dword [0x415ecc]
push dword [0x415ecc]
mov eax, str.DeviceLanmanRedirector
push eax
push dword [esp + 0xc]
call fcn.0040d1b0
lea eax, [esp + 0x24]
push eax
call fcn.00410550
mov edx, dword [esp + 0x20]
push dword [0x415ecc]
push edx
call fcn.004104f0
pop eax
add eax, dword [0x414468]
jmp 0x403d2c
push 0x208
call fcn.0040d950
mov dword [esp + 4], eax
mov dword [esp + 8], 0
jmp 0x403bc9
push dword [esp + 4]
push 0x208
call sub.KERNEL32.dll_GetLogicalDriveStringsW
cmp eax, dword [esp + 8]
jl 0x403c33
mov ebx, dword [esp + 4]
add ebx, dword [esp + 8]
push ebx
pop eax
call fcn.00405090
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 0xc]
and ebx, ebx
je 0x403c2d
push dword [0x415ecc]
push dword [0x415ecc]
push dword [esp + 0x1c]
call fcn.0040ced0
push dword [0x415ecc]
push dword [0x415ecc]
push dword [esp + 0x18]
call fcn.0040d1d0
pop eax
lea eax, [esp + 0x18]
push eax
call fcn.00410550
inc dword [esp + 8]
jno 0x403bc9
push dword [0x415ecc]
push dword [0x415ecc]
push 0x208
call fcn.0040ce80
lea eax, [esp + 0x20]
push eax
call fcn.00410550
mov eax, 0x41320c
push eax
push dword [esp + 0x18]
call fcn.0040d1f0
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], 1
jmp 0x403c70
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x24]
jl 0x403d03
push dword [0x415ecc]
push dword [0x415ecc]
mov eax, 0x41320c
push eax
push dword [esp + 0x30]
push dword [esp + 0x24]
call fcn.0040d280
lea eax, [esp + 0x1c]
push eax
call fcn.00410550
push 0x208
mov eax, dword [esp + 0x20]
push eax
push dword [esp + 0x20]
call sub.KERNEL32.dll_QueryDosDeviceW
push 1
push dword [esp + 0x20]
push dword [esp + 8]
call fcn.0040cf40
and eax, eax
je 0x403cf9
push dword [0x415ecc]
push dword [0x415ecc]
push dword [esp + 0x20]
push dword [esp + 0x28]
push dword [esp + 0x10]
call fcn.0040d6f0
lea eax, [esp + 0x24]
push eax
call fcn.00410550
jmp 0x403d03
inc dword [esp + 0x24]
jno 0x403c70
mov edx, dword [esp + 0x20]
push dword [0x415ecc]
push edx
call fcn.004104f0
pop eax
add eax, dword [0x414468]
jmp 0x403d2c
push dword [esp + 0x14]
call fcn.004105d0
push dword [esp + 0x20]
call fcn.004105d0
push dword [esp]
call fcn.004105d0
push dword [esp + 0x1c]
call fcn.004105d0
push dword [esp + 0x18]
call fcn.004105d0
add esp, 0x28
pop ebx
ret 4
Function at 0x403df8
Capabilities:
Query service status

Disassembly:
push ebp
mov edx, 0xa
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x403dfe
mov edx, dword [esp + 0x30]
lea ecx, [esp]
call fcn.00405000
lea eax, [esp + 4]
push 0xf003f
push 0
push 0
call sub.ADVAPI32.DLL_OpenSCManagerW
mov dword [esp + 0x20], eax
cmp dword [esp + 0x20], 0
je 0x403e80
push 0xf01ff
push dword [esp + 4]
push dword [esp + 0x28]
call sub.ADVAPI32.DLL_OpenServiceW
mov dword [esp + 0x24], eax
cmp dword [esp + 0x24], 0
je 0x403e6e
lea eax, [esp + 4]
push eax
push dword [esp + 0x28]
call sub.ADVAPI32.DLL_QueryServiceStatus
push dword [esp + 0x24]
call sub.ADVAPI32.DLL_CloseServiceHandle
push dword [esp + 0x20]
call sub.ADVAPI32.DLL_CloseServiceHandle
lea ebp, [esp + 4]
mov eax, dword [ebp + 4]
jmp 0x403e82
xor eax, eax
push dword [esp]
call fcn.004105d0
add esp, 0x28
pop ebp
ret 4
Function at 0x404443
Capabilities:
Start service

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
mov edx, dword [esp + 0x18]
lea ecx, [esp]
call fcn.00405000
push 0xf003f
push 0
push 0
call sub.ADVAPI32.DLL_OpenSCManagerW
mov dword [esp + 4], eax
mov ebx, dword [esp + 4]
and ebx, ebx
je 0x4044be
push 0xf01ff
mov eax, dword [esp + 4]
push eax
push dword [esp + 0xc]
call sub.ADVAPI32.DLL_OpenServiceW
mov dword [esp + 8], eax
mov ebx, dword [esp + 8]
and ebx, ebx
je 0x4044b5
push 0
push 0
push dword [esp + 0x10]
call sub.ADVAPI32.DLL_StartServiceW
mov dword [esp + 0xc], eax
push dword [esp + 8]
call sub.ADVAPI32.DLL_CloseServiceHandle
push dword [esp + 4]
call sub.ADVAPI32.DLL_CloseServiceHandle
mov eax, dword [esp + 0xc]
jmp 0x4044c6
push dword [esp]
call fcn.004105d0
add esp, 0x10
pop ebx
ret 4

Function at 0x4044d5
Capabilities:
Terminate process

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push dword [esp + 0x10]
push 0
push 1
call sub.KERNEL32.dll_OpenProcess
mov dword [esp], eax
mov ebx, dword [esp]
and ebx, ebx
je 0x404519
push 1
push dword [esp + 4]
call sub.KERNEL32.dll_TerminateProcess
and eax, eax
je 0x404511
mov dword [esp + 4], 1
push dword [esp]
call sub.KERNEL32.dll_CloseHandle
mov eax, dword [esp + 4]
jmp 0x404521
add esp, 8
pop ebx
ret 4

Function at 0x4047c1
Capabilities:
Read .ini file

Disassembly:
xor eax, eax
push eax
push eax
push eax
push eax
mov eax, dword [esp + 0x20]
mov dword [0x415ecc], eax
mov edx, dword [esp + 0x14]
lea ecx, [esp]
call fcn.00405000
mov edx, dword [esp + 0x18]
lea ecx, [esp + 4]
call fcn.00405000
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 8]
call fcn.00405000
push dword [0x415ecc]
push dword [0x415ecc]
push 0x200
call fcn.0040ce80
lea eax, [esp + 0x10]
push eax
call fcn.00410550
mov eax, dword [esp]
push eax
push 0x200
mov eax, dword [esp + 0x14]
push eax
mov eax, 0x413020
push eax
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push eax
call sub.KERNEL32.dll_GetPrivateProfileStringW
mov edx, dword [esp + 0xc]
push dword [0x415ecc]
push edx
call fcn.004104f0
pop eax
add eax, dword [0x414468]
jmp 0x404862
push dword [esp + 4]
call fcn.004105d0
push dword [esp]
call fcn.004105d0
push dword [esp + 8]
call fcn.004105d0
push dword [esp + 0xc]
call fcn.004105d0
add esp, 0x10
ret 0xc
Function at 0x4048cf
Capabilities:
Delete registry value

Disassembly:
push ebx
mov edx, 8
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4048d5
mov edx, dword [esp + 0x28]
lea ecx, [esp]
call fcn.00405000
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 4]
call fcn.00405000
mov edx, dword [esp + 0x30]
lea ecx, [esp + 8]
call fcn.00405000
push dword [esp]
call fcn.00404208
push dword [esp + 8]
mov edx, 0x413072
pop ecx
call fcn.004050b0
je 0x404974
cmp dword [0x4159f0], 0
je 0x404958
lea eax, [esp + 0x10]
push eax
mov ebx, dword [0x4159f4]
or ebx, 0xf003f
push ebx
push 0
push dword [0x4159e4]
push dword [0x4159ec]
call sub.ADVAPI32.DLL_RegOpenKeyExW
mov dword [esp + 0xc], eax
jmp 0x404972
lea eax, [esp + 0x10]
push eax
push dword [0x4159e4]
push dword [0x4159ec]
call sub.ADVAPI32.DLL_RegOpenKeyW
mov dword [esp + 0xc], eax
jmp 0x4049d9
lea eax, [esp + 0x18]
push eax
push dword [0x4159ec]
push dword [esp + 0x10]
call sub.ADVAPI32.DLL_RegConnectRegistryW
mov dword [esp + 0x14], eax
cmp dword [0x4159f0], 0
je 0x4049c1
lea eax, [esp + 0x10]
push eax
mov ebx, dword [0x4159f4]
or ebx, 0xf003f
push ebx
push 0
push dword [0x4159e4]
push dword [esp + 0x28]
call sub.ADVAPI32.DLL_RegOpenKeyExW
mov dword [esp + 0xc], eax
jmp 0x4049d9
lea eax, [esp + 0x10]
push eax
push dword [0x4159e4]
push dword [esp + 0x20]
call sub.ADVAPI32.DLL_RegOpenKeyW
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 0xc]
and ebx, ebx
jne 0x404a0d
mov eax, dword [esp + 4]
push eax
push dword [esp + 0x14]
call sub.ADVAPI32.DLL_RegDeleteValueW
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 0xc]
and ebx, ebx
jne 0x404a05
mov dword [esp + 0x1c], 1
jmp 0x404a0d
mov dword [esp + 0x1c], 0
push dword [esp + 0x10]
call sub.ADVAPI32.DLL_RegCloseKey
mov eax, dword [esp + 0x1c]
jmp 0x404a1e
push dword [esp + 8]
call fcn.004105d0
push dword [esp]
call fcn.004105d0
push dword [esp + 4]
call fcn.004105d0
add esp, 0x20
pop ebx
ret 0xc

Function at 0x404a75
Capabilities:
Stop service

Disassembly:
push ebx
mov edx, 0xb
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x404a7b
mov edx, dword [esp + 0x34]
lea ecx, [esp]
call fcn.00405000
lea eax, [esp + 4]
push 0xf003f
push 0
push 0
call sub.ADVAPI32.DLL_OpenSCManagerW
mov dword [esp + 0x20], eax
mov ebx, dword [esp + 0x20]
and ebx, ebx
je 0x404b00
push 0xf01ff
mov eax, dword [esp + 4]
push eax
push dword [esp + 0x28]
call sub.ADVAPI32.DLL_OpenServiceW
mov dword [esp + 0x24], eax
mov ebx, dword [esp + 0x24]
and ebx, ebx
je 0x404af7
lea eax, [esp + 4]
push eax
push 1
push dword [esp + 0x2c]
call sub.ADVAPI32.DLL_ControlService
mov dword [esp + 0x28], eax
push dword [esp + 0x24]
call sub.ADVAPI32.DLL_CloseServiceHandle
push dword [esp + 0x20]
call sub.ADVAPI32.DLL_CloseServiceHandle
mov eax, dword [esp + 0x28]
jmp 0x404b08
push dword [esp]
call fcn.004105d0
add esp, 0x2c
pop ebx
ret 4
Function at 0x405696
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x4056eb
push dword [esp + 0x10]
push 0x405615
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x415a14]
test esi, esi
je 0x405744
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x4056e3
cmp byte [esi + 0x10], 0
je 0x4056e3
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x4056bf
jmp 0x405744
mov esi, dword [0x415a14]
test esi, esi
je 0x405744
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x40573d
cmp byte [esi + 0x11], 0
je 0x405719
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x405730
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push ebp
push 0x415a14
call fcn.004101dd
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x4056f8
pop ebp
pop edi
pop esi
pop ebx
ret 4

Function at 0x4057e7
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x415ed8]
call fcn.0040fa7d
mov ebp, eax
or ebx, 0xffffffff
xor eax, eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [esp + 0x1c]
movzx edx, word [eax]
test dx, dx
je 0x4058e7
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x40583d
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x405835
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x40587d
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x4058bf
push 0x22
pop edx
cmp cx, dx
je 0x40586f
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x40585f
xor ecx, ecx
cmp word [eax], cx
je 0x4058bf
mov ecx, eax
add eax, 2
jmp 0x4058c1
test dx, dx
je 0x4058c7
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x40586f
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x4058b5
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x4058bf
cmp cx, dx
je 0x4058b2
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x4058a2
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x405887
jmp 0x40586f
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x4058c9
xor edx, edx
cmp dword [ebp], ebx
jne 0x4058d2
test edi, edi
jne 0x4058ef
test edx, edx
je 0x4058d7
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x40582b
test edi, edi
jne 0x405900
mov eax, ebx
jmp 0x405904
test esi, esi
je 0x405900
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x405904
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x406fb5
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x415f4c]
call fcn.0040fae6
mov ebx, eax
test ebx, ebx
je 0x407019
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x406fde
push dword [esp + 0xc]
push ebx
call eax
jmp 0x407019
push esi
push edi
push dword [ebx]
call dword [sym.imp.USER32.DLL_GetWindowTextLengthW]
push dword [esp + 0x14]
mov edi, eax
push edi
call fcn.00410700
mov esi, eax
lea ecx, [edi + 1]
push ecx
xor eax, eax
push esi
mov word [esi], ax
push dword [ebx]
call dword [sym.imp.USER32.DLL_GetWindowTextW]
push esi
call sub.MSVCRT.dll_wcslen
pop ecx
sub edi, eax
push edi
call fcn.00410780
pop edi
pop esi
pop ebx
ret 8

Function at 0x4074f1
Capabilities:
Check os version

Disassembly:
sub esp, 0x34c
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x114
push eax
mov esi, 0xc8
xor ebx, ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x407649
mov eax, dword [esp + 0x20]
dec eax
je 0x40762c
dec eax
jne 0x407649
lea eax, [esp + 0x124]
xor ebp, ebp
push eax
call fcn.004074aa
pop ecx
test eax, eax
je 0x40755d
mov ebx, dword [esp + 0x128]
mov edi, dword [esp + 0x12c]
cmp byte [esp + 0x23e], 1
jmp 0x40758a
lea eax, [esp + 0x240]
mov dword [esp + 0x240], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40758f
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
cmp byte [esp + 0x35a], 1
jne 0x40758f
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x407628
dec ebx
je 0x407624
dec ebx
je 0x407603
dec ebx
je 0x4075bd
sub ebx, 4
jne 0x407649
test edi, edi
jne 0x407649
push 0x6e
jmp 0x407648
sub edi, 0
je 0x4075f5
dec edi
je 0x4075e7
dec edi
je 0x4075d9
dec edi
jne 0x407649
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x407649
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x407649
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x407649
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x407649
sub edi, 0
je 0x407620
dec edi
je 0x40761c
dec edi
jne 0x407649
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x407649
push 0x3c
jmp 0x407648
push 0x32
jmp 0x407648
push 0x14
jmp 0x407648
push 5
jmp 0x407648
mov eax, dword [esp + 0x18]
test eax, eax
je 0x407646
cmp eax, 0xa
je 0x407642
cmp eax, 0x5a
jne 0x407649
push 0x28
jmp 0x407648
push 0x1e
jmp 0x407648
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x34c
ret