joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410850
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x28
mov ecx, dword [0x42d010]
push esi
mov esi, eax
mov eax, dword [0x42d014]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x14], ecx
xor ecx, ecx
add eax, 0x10
cmp ecx, dword [0x42e35c]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
jb 0x41089b
ja 0x41093d
cmp eax, dword [0x42e358]
ja 0x41093d
cmp byte [0x42e3a0], cl
je 0x4109e4
cmp dword [0x42d01c], 0xffffffff
je 0x4109e4
mov edx, dword [0x42e350]
or edx, dword [0x42e354]
je 0x4109e4
push 0x42e4e0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 8]
mov ecx, dword [0x42e350]
push eax
push esi
push ecx
call fcn.0041adc0
mov edx, dword [0x42d014]
xor eax, eax
add esp, 0xc
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x18]
push eax
push 0
push 8
lea ecx, [esp + 0x14]
mov dword [esp + 0x34], edx
mov edx, dword [0x42d01c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x410947
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x410947
push 0x42e4e0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0xfffffffc
pop esi
add esp, 0x28
ret
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x18]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x41097c
mov ecx, dword [0x42d01c]
push ecx
call dword [sym.imp.KERNEL32.dll_CancelIo]
push 0x42e4e0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or eax, 0xffffffff
pop esi
add esp, 0x28
ret
mov edx, dword [0x42d010]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
mov eax, dword [0x42d01c]
jne 0x4109ae
push eax
call dword [sym.imp.KERNEL32.dll_CancelIo]
push 0x42e4e0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or eax, 0xffffffff
pop esi
add esp, 0x28
ret
push 0
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x20]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
push 0x42e4e0
je 0x41096e
mov esi, dword [esp + 8]
neg esi
sbb esi, esi
neg esi
sub esi, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop esi
add esp, 0x28
ret
mov eax, 0xfffffffd
pop esi
add esp, 0x28
ret
Function at 0x410e40
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x30
mov ecx, dword [0x42d010]
push ebp
mov ebp, dword [esp + 0x40]
push esi
mov esi, eax
mov eax, dword [0x42d014]
mov dword [esp + 0x1c], eax
xor eax, eax
test byte [esi + 0x12], 1
mov dword [esp + 8], 0
mov dword [esp + 0x20], ecx
jne 0x411031
cmp eax, dword [0x42e35c]
push edi
lea edi, [ebp + 0x16]
lea ecx, [edi + 0x10]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
jb 0x410e9b
ja 0x410f84
cmp ecx, dword [0x42e358]
ja 0x410f84
cmp byte [0x42e3a0], al
je 0x41102b
cmp dword [0x42d01c], 0xffffffff
je 0x41102b
mov edx, dword [0x42e350]
or edx, dword [0x42e354]
je 0x41102b
push 0x42e4e0
lea ecx, [esp + 0x14]
call fcn.00410260
mov eax, dword [0x42e350]
mov edx, dword [esp + 0x40]
mov dword [eax + 4], 0
mov ecx, dword [0x42e350]
mov dword [ecx + 8], 0
mov dword [eax], edx
mov dword [eax + 0xc], edi
mov ecx, dword [esi]
mov dword [eax + 0x10], ecx
mov edx, dword [esi + 4]
mov dword [eax + 0x14], edx
mov ecx, dword [esi + 8]
mov dword [eax + 0x18], ecx
mov edx, dword [esi + 0xc]
mov dword [eax + 0x1c], edx
mov ecx, dword [esi + 0x10]
mov dword [eax + 0x20], ecx
mov dx, word [esi + 0x14]
mov ecx, dword [esp + 0x44]
push ebp
mov word [eax + 0x24], dx
push ecx
add eax, 0x26
push eax
call fcn.0041adc0
mov edx, dword [0x42d014]
xor eax, eax
add esp, 0xc
mov dword [esp + 0x38], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x28]
push eax
push 0
push 8
lea ecx, [esp + 0x24]
mov dword [esp + 0x44], edx
mov edx, dword [0x42d01c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x410f90
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x410f90
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov eax, 0xfffffffc
pop ebp
add esp, 0x30
ret
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x28]
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x410fb7
mov ecx, dword [0x42d010]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x410fd9
mov edx, dword [0x42d01c]
push edx
call dword [sym.imp.KERNEL32.dll_CancelIo]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
or eax, 0xffffffff
pop ebp
add esp, 0x30
ret
mov eax, dword [0x42d01c]
push 0
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x30]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x41100a
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
or eax, 0xffffffff
pop ebp
add esp, 0x30
ret
mov esi, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
neg esi
sbb esi, esi
neg esi
push edx
sub esi, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x30
ret
mov eax, 0xfffffffd
pop edi
pop esi
pop ebp
add esp, 0x30
ret
Function at 0x414270
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push 0x42e4c8
mov esi, eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x42d01c], 0xffffffff
je 0x4142f0
cmp dword [0x42d020], 0xffffffff
jne 0x4142f0
test esi, esi
je 0x4142f0
mov eax, dword [0x42d010]
mov dword [0x42e3b4], esi
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push eax
call esi
mov ecx, dword [0x42d00c]
push ecx
call esi
mov edx, dword [0x42d008]
push edx
call esi
lea eax, [esp + 4]
push eax
push 0
push 0
push 0x414020
push 0
push 0
call fcn.00419bfe
add esp, 0x18
test eax, eax
jne 0x414301
mov ecx, dword [0x42d00c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [0x42d020], 0xffffffff
push 0x42e4c8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or eax, 0xffffffff
pop esi
pop ecx
ret
mov edx, dword [0x42d008]
push 0xffffffffffffffff
push edx
mov dword [0x42d020], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x42e4c8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
pop esi
pop ecx
ret
Function at 0x4164d0
Capabilities:
Create thread
Get system information on windows

Disassembly:
sub esp, 0x28
push esi
mov esi, ecx
mov eax, dword [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esp + 0x30]
test eax, eax
mov ecx, dword [esp + 0x34]
mov dword [esi], ecx
jg 0x41650a
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x416508
mov eax, 1
test eax, eax
jle 0x416549
push edi
mov edi, eax
lea ecx, [ecx]
lea eax, [esp + 8]
push eax
push 0
push esi
push 0x4103e0
push 0
push 0
call fcn.00419bfe
add esp, 0x18
test eax, eax
mov dword [esp + 0x38], eax
je 0x416543
cmp eax, 0xffffffff
je 0x416543
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esi + 4]
call fcn.0040a570
sub edi, 1
jne 0x416510
pop edi
mov al, 1
pop esi
add esp, 0x28
ret 8
Function at 0x418d90
Capabilities:
Persist via windows service
Set registry value

Disassembly:
sub esp, 0x124
mov eax, dword [0x42d414]
xor eax, esp
mov dword [esp + 0x120], eax
mov dl, byte [0x4274cc]
mov ecx, dword [str.NDIS]
mov eax, dword [esp + 0x128]
mov byte [esp + 8], dl
mov dx, word [0x4274d4]
mov dword [esp + 4], ecx
mov ecx, dword [str.tcpip]
push eax
mov word [esp + 0x14], dx
mov edx, dword [0x4274d8]
mov dword [esp + 0x10], ecx
mov cl, byte [0x4274d6]
push 0x4274e0
mov dword [esp + 0x1c], edx
mov byte [esp + 0x1a], cl
mov ecx, dword [0x4274dc]
lea edx, [esp + 0x24]
push 0x104
push edx
mov dword [esp + 0x28], ecx
call fcn.0041ba70
add esp, 0x10
lea eax, [esp]
push eax
push 3
push 0
lea ecx, [esp + 0x28]
push ecx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x418e3e
xor al, al
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.00419af5
add esp, 0x124
ret
cmp byte [esp + 0x12c], 0
push esi
je 0x418e7f
mov eax, dword [esp + 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 5
lea edx, [esp + 0xc]
push edx
push 1
push 0
push 0x427508
push eax
call esi
mov edx, dword [esp + 4]
push 7
lea ecx, [esp + 0x14]
push ecx
push 7
push 0
push str.DependOnService
push edx
call esi
jmp 0x418e9a
mov ecx, dword [esp + 4]
push 8
lea eax, [esp + 0x1c]
push eax
push 1
push 0
push str.Group
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 4]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x124]
xor eax, eax
test esi, esi
sete al
pop esi
xor ecx, esp
call fcn.00419af5
add esp, 0x124
ret

Function at 0x418ed0
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x114
mov eax, dword [0x42d414]
xor eax, esp
mov dword [esp + 0x110], eax
mov eax, dword [esp + 0x11c]
push esi
push eax
push str.SYSTEMCurrentControlSetServices_s
lea eax, [esp + 0x18]
push 0x104
push eax
mov esi, ecx
call fcn.0041ba70
add esp, 0x10
lea ecx, [esp + 4]
push ecx
push 3
push 0
lea edx, [esp + 0x1c]
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x418f3b
xor al, al
pop esi
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.00419af5
add esp, 0x114
ret
cmp byte [esp + 0x11c], 0
je 0x418f6c
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
push esi
lea ecx, [esp + 0x14]
push ecx
push 0
push 0x427590
push edx
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jmp 0x418f83
mov eax, dword [esp + 4]
push 4
push esi
push 4
push 0
push 0x427594
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 4]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x114]
xor eax, eax
test esi, esi
sete al
pop esi
xor ecx, esp
call fcn.00419af5
add esp, 0x114
ret
Function at 0x418fb0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 8
push esi
mov esi, eax
lea eax, [esp + 4]
push eax
push 3
push 0
push str.SYSTEMCurrentControlSetControlGroupOrderList
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x418fda
xor al, al
pop esi
add esp, 8
ret
cmp byte [esp + 0x10], 0
push ebx
je 0x41907f
mov edx, dword [esp + 8]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
push 0
lea ecx, [esp + 0x14]
push ecx
push 0
push 0x4275c8
push edx
call ebx
test eax, eax
je 0x419019
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
xor al, al
pop esi
add esp, 8
ret
mov ecx, dword [esi]
add ecx, 4
push ecx
call fcn.0041a33d
add esp, 4
test eax, eax
mov dword [edi], eax
jne 0x419040
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
xor al, al
pop esi
add esp, 8
ret
mov ecx, dword [esp + 8]
push esi
push eax
lea eax, [esp + 0x14]
push eax
push 0
push 0x4275d0
push ecx
call ebx
mov esi, eax
test esi, esi
je 0x4190b0
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [edi]
push eax
call fcn.0041a47b
add esp, 4
pop ebx
mov dword [edi], 0
xor al, al
pop esi
add esp, 8
ret
mov eax, dword [esi]
cmp eax, 4
jbe 0x41908e
shr eax, 2
sub eax, 1
jmp 0x419090
xor eax, eax
mov ecx, dword [edi]
mov dword [ecx], eax
mov edx, dword [esi]
mov eax, dword [edi]
mov ecx, dword [esp + 8]
push edx
push eax
push 3
push 0
push str.PNP_TDI
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
pop ebx
sete al
pop esi
add esp, 8
ret
Function at 0x4193a0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp]
push eax
push 2
push 0
push str.SYSTEMCurrentControlSetServicesTcpipParameters
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4193e6
mov edx, dword [esp]
push 4
lea ecx, [esp + 8]
push ecx
push 4
push eax
push str.DisableTaskOffload
push edx
mov dword [esp + 0x1c], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
add esp, 8
ret

Function at 0x4193f0
Capabilities:
Create service
Query service status
Start service

Disassembly:
sub esp, 0x438
mov eax, dword [0x42d414]
xor eax, esp
mov dword [esp + 0x434], eax
push ebx
push ebp
mov ebp, dword [esp + 0x444]
push esi
push edi
push ebp
push 0x42746c
lea eax, [esp + 0x244]
push 0x104
xor esi, esi
push eax
mov edi, ecx
xor bl, bl
mov dword [esp + 0x24], esi
call fcn.0041bb1d
add esp, 0x10
test edi, edi
push ebp
je 0x419453
push edi
push str._S_S.sys
lea ecx, [esp + 0x40]
push 0x104
push ecx
call fcn.0041bb1d
add esp, 0x14
jmp 0x41946a
push str.system32drivers_S.sys
lea edx, [esp + 0x3c]
push 0x104
push edx
call fcn.0041bb1d
add esp, 0x10
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test eax, eax
mov dword [esp + 0x10], eax
jne 0x419489
or eax, 0xffffffff
jmp 0x41957a
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
push 0x4274b8
lea edx, [esp + 0x48]
push edx
push 1
push 1
push 1
push 0xf01ff
lea ecx, [esp + 0x264]
push ecx
mov edx, ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
test byte [0x42e4bc], 8
mov edi, eax
je 0x4194e9
test edi, edi
je 0x4194d5
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov bl, 1
jmp 0x419552
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x431
jne 0x419552
mov bl, 1
jmp 0x419552
test edi, edi
jne 0x419528
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x431
jne 0x419552
mov eax, dword [esp + 0x10]
push 0x14
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x41954a
lea ecx, [esp + 0x18]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x419528
cmp dword [esp + 0x1c], 4
je 0x419537
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x419539
mov bl, 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x419552
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0
push ebp
call fcn.004190d0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
neg bl
sbb ebx, ebx
neg ebx
sub ebx, 1
mov eax, ebx
mov ecx, dword [esp + 0x444]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00419af5
add esp, 0x438
ret
Function at 0x4195a0
Capabilities:
Check os version

Disassembly:
sub esp, 0x1b0
mov eax, dword [0x42d414]
xor eax, esp
mov dword [esp + 0x1ac], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c0]
push edi
push esi
push str..CtrlSM
push str._s_s
lea eax, [esp + 0xc4]
push 0x104
push eax
mov dword [esp + 0x24], 0
call fcn.0041ba70
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
add esp, 0x14
push 0
push 0x40000000
push 3
push 0
push 0
push 0xc0000000
lea ecx, [esp + 0xd0]
push ecx
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call ebx
test byte [0x42e4bc], 4
mov dword [esp + 0x14], eax
jne 0x419671
cmp edi, 0xffffffff
jne 0x41967a
mov eax, dword [esp + 0x10]
add eax, 1
mov dword [esp + 0x10], eax
sub eax, 1
jne 0x419788
push esi
xor ecx, ecx
call fcn.004193f0
add esp, 4
push 0
push 0x40000000
push 3
push 0
push 0
push 0xc0000000
lea edx, [esp + 0xd0]
push edx
call ebp
mov edi, eax
call ebx
test byte [0x42e4bc], 4
mov dword [esp + 0x14], eax
je 0x419620
cmp edi, 0xffffffff
je 0x419788
push 0x9c
xor ebx, ebx
lea eax, [esp + 0x20]
push ebx
push eax
call fcn.0041ad40
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x20], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp edi, 0xffffffff
je 0x4196ec
push ebx
lea edx, [esp + 0x1c]
push edx
push 4
lea eax, [esp + 0x1c]
push eax
push ebx
push ebx
push 0x22019c
push edi
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4196ec
cmp dword [esp + 0x18], ebx
jbe 0x4196ec
push 0x42753c
call fcn.00418d00
add esp, 4
test al, al
je 0x419788
push 1
jmp 0x41977f
mov eax, dword [esp + 0x20]
cmp eax, 6
jb 0x419706
jne 0x419788
cmp dword [esp + 0x24], 1
ja 0x419788
push str.nisdrv
mov dword [esp + 0x14], ebx
call fcn.00418d00
add esp, 4
test al, al
jne 0x41974a
push str.360netmon
call fcn.00418d00
add esp, 4
test al, al
jne 0x41974a
push str.symnets
call fcn.00418d00
add esp, 4
test al, al
jne 0x41974a
push esi
push ebx
lea ecx, [esp + 0x18]
call fcn.00418ed0
jmp 0x41976a
push esi
push 1
lea ecx, [esp + 0x18]
call fcn.00418ed0
add esp, 8
test al, al
je 0x41976d
cmp dword [esp + 0x10], ebx
jne 0x41976d
push ebx
push esi
call fcn.004190d0
add esp, 8
push str.aswstm
call fcn.00418d00
add esp, 4
test al, al
je 0x419788
push ebx
push esi
call fcn.00418d90
add esp, 8
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0x1bc]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00419af5
add esp, 0x1b0
ret
Function at 0x419810
Capabilities:
Delete service
Persist via windows service
Set registry value
Stop service

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
push edi
push 1
push esi
xor bl, bl
xor ebp, ebp
call fcn.004190d0
add esp, 8
push 0xf003f
push ebp
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x419894
push 0xf003f
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x419883
lea eax, [esp + 0x18]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x41988b
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov ebp, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
mov bl, 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x41989c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x41989c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esp + 0x10]
push ecx
push 2
push 0
push str.SYSTEMCurrentControlSetServicesTcpipParameters
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4198e9
push 4
lea edx, [esp + 0x18]
push edx
push 4
push eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
push str.DisableTaskOffload
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg bl
pop edi
pop esi
pop ebp
sbb ebx, ebx
neg ebx
sub ebx, 1
mov eax, ebx
pop ebx
add esp, 0x24
ret

Function at 0x419af5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42d414]
jne 0x419aff
repz ret
jmp fcn.0041bd44
Function at 0x4230f0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0041beab
xor ebx, ebx
cmp dword [0x42efe4], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x4231c5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x423130
xor eax, eax
jmp 0x423289
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x423129
push eax
call fcn.0041be48
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42efe4], eax
call esi
push eax
call fcn.0041be48
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42efe8], eax
call esi
push eax
call fcn.0041be48
mov dword [0x42efec], eax
lea eax, [ebp - 8]
push eax
call fcn.0041c5a7
test eax, eax
pop ecx
pop ecx
je 0x423193
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041a513
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x4231c5
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0041be48
cmp eax, ebx
pop ecx
mov dword [0x42eff4], eax
je 0x4231c5
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041be48
pop ecx
mov dword [0x42eff0], eax
mov eax, dword [0x42eff0]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x42323e
cmp dword [0x42eff4], esi
je 0x42323e
push eax
call fcn.0041beb4
pop ecx
call eax
cmp eax, ebx
je 0x42320b
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x42eff4]
call fcn.0041beb4
pop ecx
call eax
test eax, eax
je 0x42320b
test byte [ebp - 0x18], 1
jne 0x42323e
lea eax, [ebp - 0xc]
push eax
call fcn.0041c5de
test eax, eax
pop ecx
je 0x423226
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041a513
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x423235
or dword [ebp + 0x10], 0x200000
jmp 0x42326f
or dword [ebp + 0x10], 0x40000
jmp 0x42326f
mov eax, dword [0x42efe8]
cmp eax, esi
je 0x42326f
push eax
call fcn.0041beb4
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x42326f
mov eax, dword [0x42efec]
cmp eax, esi
je 0x42326f
push dword [ebp - 4]
push eax
call fcn.0041beb4
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x42efe4]
call fcn.0041beb4
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret