Function at 0x10002370
Capabilities:
Contain obfuscated stackstrings
Copy file
Create service
Persist via windows service
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001475b
mov eax, dword fs:[0]
push eax
sub esp, 0x62c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x61c], esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x618], edi
call fcn.10001c40
call fcn.10001cf0
test edi, edi
jne 0x100023c8
call fcn.100019c0
mov esi, eax
jmp 0x10002a08
push 0x138
lea eax, [ebp - 0x610]
mov dword [ebp - 0x614], 0
push 0
push eax
call fcn.1000c590
mov eax, dword [esi]
lea ecx, [ebp - 0x614]
add esp, 0xc
mov eax, dword [eax + 0x14]
push ecx
mov ecx, esi
call eax
mov esi, eax
test esi, esi
jne 0x10002a08
cmp word [ebp - 0x578], ax
jne 0x10002421
push str.gmboxdrv
lea eax, [ebp - 0x578]
push 0x20
push eax
call fcn.10004f6e
add esp, 0xc
push edi
call fcn.10003110
mov esi, eax
test esi, esi
jne 0x10002a08
push 1
push eax
push eax
mov dword [ebp - 0x638], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x10002473
push 1
lea eax, [ebp - 0x578]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x1000246c
push eax
mov dword [ebp - 0x638], 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, dword [ebp - 0x618]
mov ecx, edi
mov dword [ebp - 0x620], edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10002484
sub ecx, edx
sar ecx, 1
je 0x100024be
lea eax, [edi - 2]
lea eax, [eax + ecx*2]
jmp 0x100024a0
movzx edx, word [eax]
cmp edx, 0x5c
je 0x100024b5
cmp edx, 0x2f
je 0x100024b5
sub eax, 2
dec ecx
jne 0x100024a0
jmp 0x100024be
lea eax, [edi + ecx*2]
mov dword [ebp - 0x620], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x4a0], ax
lea eax, [ebp - 0x49e]
push eax
call fcn.1000c590
add esp, 0xc
cmp dword [ebp - 0x638], 0
je 0x10002556
push ecx
lea eax, [ebp - 0x4a0]
push eax
lea eax, [ebp - 0x578]
push eax
call fcn.10002be0
test eax, eax
jne 0x10002554
cmp word [ebp - 0x4a0], ax
je 0x10002554
lea eax, [ebp - 0x4a0]
mov ecx, eax
mov dword [ebp - 0x620], eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10002517
sub ecx, edx
sar ecx, 1
je 0x10002554
lea eax, [ebp + ecx*2 - 0x4a2]
nop
movzx edx, word [eax]
cmp edx, 0x5c
je 0x10002545
cmp edx, 0x2f
je 0x10002545
sub eax, 2
dec ecx
jne 0x10002530
jmp 0x10002554
lea eax, [ebp - 0x4a0]
lea eax, [eax + ecx*2]
mov dword [ebp - 0x620], eax
xor esi, esi
push 0x7e
lea eax, [ebp - 0x8e]
push 0
push eax
call fcn.1000c590
xor eax, eax
mov dword [ebp - 0x90], 0x790053
push 0x206
push eax
mov word [ebp - 0x298], ax
lea eax, [ebp - 0x296]
push eax
mov dword [ebp - 0x8c], 0x740073
mov dword [ebp - 0x88], 0x6d0065
mov dword [ebp - 0x84], 0x320033
mov dword [ebp - 0x80], 0x64005c
mov dword [ebp - 0x7c], 0x690072
mov dword [ebp - 0x78], 0x650076
mov dword [ebp - 0x74], 0x730072
mov dword [ebp - 0x70], 0x5c
call fcn.1000c590
add esp, 0x18
lea eax, [ebp - 0x298]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
lea ecx, [ebp - 0x298]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100025f0
sub ecx, edx
sar ecx, 1
je 0x10002792
movzx eax, word [ebp + ecx*2 - 0x29a]
cmp eax, 0x5c
je 0x1000263d
cmp eax, 0x2f
je 0x1000263d
mov eax, 0x5c
mov word [ebp + ecx*2 - 0x298], ax
inc ecx
add ecx, ecx
cmp ecx, 0x208
jae 0x1000270b
xor eax, eax
mov word [ebp + ecx - 0x298], ax
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x298]
push 0x104
push eax
call fcn.10004eb7
push dword [ebp - 0x620]
lea eax, [ebp - 0x298]
push 0x104
push eax
call fcn.10004eb7
lea eax, [ebp - 0x298]
push eax
push edi
call fcn.100050ee
add esp, 0x20
test eax, eax
je 0x10002792
push str.kernel32.dll
mov dword [ebp - 0x634], 0
mov dword [ebp - 0x630], 0
mov dword [ebp - 0x62c], 0
mov dword [ebp - 0x628], 0
mov byte [ebp - 0x624], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x630], eax
test eax, eax
je 0x10002710
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Wow64DisableWow64FsRedirection
push eax
call edi
mov dword [ebp - 0x62c], eax
test eax, eax
je 0x100026f9
push str.Wow64RevertWow64FsRedirection
push dword [ebp - 0x630]
call edi
mov dword [ebp - 0x628], eax
mov eax, dword [ebp - 0x62c]
mov edi, dword [ebp - 0x618]
mov dword [ebp - 0x630], 0
jmp 0x10002716
call fcn.10004ca4
mov eax, dword [ebp - 0x62c]
mov dword [ebp - 4], 0
test eax, eax
je 0x10002741
lea ecx, [ebp - 0x634]
push ecx
call eax
movzx ecx, byte [ebp - 0x624]
test eax, eax
mov eax, 1
cmovne ecx, eax
mov byte [ebp - 0x624], cl
push 0
lea eax, [ebp - 0x298]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [ebp - 0x628]
mov al, byte [ebp - 0x624]
test ecx, ecx
je 0x1000277b
test al, al
je 0x1000277b
push dword [ebp - 0x634]
call ecx
mov ecx, dword [ebp - 0x628]
xor al, al
mov byte [ebp - 0x624], al
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x10002792
test al, al
je 0x10002792
push dword [ebp - 0x634]
call ecx
cmp dword [ebp - 0x638], 0
je 0x100028a5
push 1
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x61c], eax
test eax, eax
je 0x1000282e
push 4
lea ecx, [ebp - 0x578]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x618], eax
test eax, eax
je 0x1000281a
nop
lea ecx, [ebp - 0x4d8]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x100027fd
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x618]
inc edi
cmp edi, 5
jb 0x100027d0
xor edi, edi
jmp 0x1000280e
xor edi, edi
mov eax, 1
cmp dword [ebp - 0x4d4], 4
cmove edi, eax
push dword [ebp - 0x618]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x61c]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
jne 0x10002a08
push 1
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x61c], eax
test eax, eax
je 0x100028ed
push 0x10
lea ecx, [ebp - 0x578]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x10002871
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x61c]
mov esi, eax
jmp 0x10002a02
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x10002893
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
xor eax, eax
cmp esi, 0x420
cmove esi, eax
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x61c]
jmp 0x10002a02
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x298]
push 0x104
push eax
call fcn.10004f6e
push dword [ebp - 0x620]
lea eax, [ebp - 0x298]
push 0x104
push eax
call fcn.10004eb7
add esp, 0x18
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x618], eax
test eax, eax
jne 0x100028fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10002a08
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x298]
push ecx
push 1
push 2
push 1
push 0xf01ff
lea ecx, [ebp - 0x578]
push ecx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edi, eax
test edi, edi
jne 0x10002947
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x431
jne 0x1000293f
xor esi, esi
jmp 0x10002947
test esi, esi
jne 0x100029fc
mov ecx, dword [ebp - 0x61c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
call eax
mov ecx, dword [ebp - 0x61c]
mov dword [ebp - 0x5bc], eax
lea eax, [ebp - 0x614]
push 0
push eax
call fcn.10002d40
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x10002995
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x420
jne 0x10002991
xor esi, esi
jmp 0x10002995
test esi, esi
jne 0x100029f1
lea eax, [ebp - 0x4bc]
mov dword [ebp - 0x4bc], 0
xorps xmm0, xmm0
push eax
push edi
movdqu xmmword [ebp - 0x4b8], xmm0
movq qword [ebp - 0x4a8], xmm0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x100029f1
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x4b8]
cmp eax, 4
je 0x100029f1
cmp eax, 1
je 0x100029f1
lea eax, [ebp - 0x4bc]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x100029c4
test edi, edi
je 0x100029fc
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x618]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10004557
mov esp, ebp
pop ebp
ret 4