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

Disassembly:
push 0xffffffffffffffff
push 0x40a928
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
lea eax, [esp + 0x18]
push str.data_setupflag.txt
lea ecx, [esp + 8]
push eax
push ecx
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_operator
mov edx, dword [esp + 4]
push 0x40f054
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x408168
mov eax, dword [esp + 4]
push esi
mov ecx, dword [eax - 8]
push ecx
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 8]
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4081a0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x40a948
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 4], esp
push eax
mov dword [esp + 0x14], 0
call fcn.0040923c
call fcn.00408100
add esp, 4
lea ecx, [esp + 0x14]
lea edx, [esp]
push str.data_ttboxtimer.exe
push ecx
push edx
call sub.MFC42.DLL_operator
mov eax, dword [esp]
push 5
push 0x410484
push str._ServerRun
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 4]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x408c40
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x40aa90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push 3
push 0x5c
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0
call sub.MFC42.DLL_CString::Find_2
mov esi, eax
cmp esi, 0xffffffff
je 0x408cba
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
inc esi
lea eax, [esp + 8]
push esi
push eax
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::Left
mov ecx, dword [esp + 8]
push 0
push ecx
mov byte [esp + 0x1c], 1
call edi
push esi
push 0x5c
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::Find_2
lea ecx, [esp + 8]
mov esi, eax
mov byte [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString
cmp esi, 0xffffffff
jne 0x408c7a
pop edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 8]
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x1003953
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x100e0a8]
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0xf003f
mov ebx, ecx
push eax
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x208]
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x208], esi
call fcn.010032fe
cmp eax, esi
jne 0x10039f4
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x10039ab
lea eax, [ebp - 0x204]
push eax
call fcn.01003953
cmp eax, esi
jne 0x10039f3
lea eax, [ebp - 0x218]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x208]
mov dword [ebp - 0x20c], 0x100
call edi
test eax, eax
lea ecx, [ebp - 0x208]
je 0x100399b
call fcn.0100328b
push dword [ebp - 0x210]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
lea ecx, [ebp - 0x208]
mov esi, eax
call fcn.0100328b
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
call fcn.0100b28a
leave
ret 4

Function at 0x1004118
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push ecx
lea ecx, [ebp - 0x10]
call fcn.01002ac6
push 2
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 4], ebx
jne 0x100416c
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1004157
call esi
mov esi, eax
jmp 0x1004232
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1004232
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x100418d
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x10041b2
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x10041a0
call esi
jmp 0x1004227
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1004229
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp byte [ebx + esi], 0
mov edi, esi
je 0x10041f1
lea edi, [ebx + 1]
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.0100b5a0
mov ecx, edi
mov edx, ecx
mov eax, esp
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp + 8], eax
mov byte [eax + ebx], 0
mov edi, esp
test edi, edi
jne 0x10041f9
xor eax, eax
jmp 0x100421b
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and eax, 0xfffffffc
call fcn.0100b5a0
mov eax, esp
push esi
push edi
push eax
call fcn.0100303a
push dword [ebp + 0x14]
lea ecx, [ebp - 0x10]
push eax
call fcn.01003fd6
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x100445d
Capabilities:
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1c]
and dword [edi], 0
push dword [ebp + 8]
mov byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x10044d9
cmp word [ebx + 8], 2
jne 0x10044b5
cmp word [ebx + 0xa], 4
jne 0x10044b5
mov esi, dword [ebx + 0xc]
jmp 0x10044af
push dword [eax]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.010043f0
test eax, eax
mov dword [edi], eax
je 0x10044d4
lea edi, [eax + 0x1c]
add esi, 4
mov eax, dword [esi]
test eax, eax
jne 0x1004493
mov esi, dword [ebp + 0x18]
push 0x400
push dword [ebx]
push esi
call dword [sym.imp.msvcrt.dll_strncpy]
add esp, 0xc
mov byte [esi + 0x400], 0
xor eax, eax
jmp 0x10044ff
push 8
pop eax
jmp 0x10044ff
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov eax, 0x2af9
sub ecx, eax
je 0x10044ff
dec ecx
je 0x10044fa
dec ecx
je 0x10044f3
dec ecx
jmp 0x10044ff
mov eax, 0x2afb
jmp 0x10044ff
mov eax, 0x2afa
pop edi
pop esi
pop ebx
pop ebp
ret 0x18
Function at 0x1004b55
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x230
cmp dword [0x100e0d0], 0
mov eax, dword [0x100e0a8]
mov dword [ebp - 4], eax
mov dword [ebp - 0x230], 0x10016ac
mov dword [ebp - 0x22c], 0x1004702
mov dword [ebp - 0x228], 0x10016a0
mov dword [ebp - 0x224], 0x1004984
mov dword [ebp - 0x220], 0x1001690
mov dword [ebp - 0x21c], fcn.010046bc
jne 0x1004cd6
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1004ccc
xor eax, eax
mov cl, byte [ebp + eax - 0x218]
mov byte [ebp + eax - 0x110], cl
inc eax
test cl, cl
jne 0x1004bcd
push edi
lea edi, [ebp - 0x110]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1004be8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
mov esi, 0x1001688
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x110]
push eax
movsd dword es:[edi], dword [esi]
call ebx
mov esi, eax
test esi, esi
je 0x1004c2b
push 0x10016ac
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x1004c27
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
test esi, esi
jne 0x1004c82
xor eax, eax
mov cl, byte [ebp + eax - 0x218]
mov byte [ebp + eax - 0x110], cl
inc eax
test cl, cl
jne 0x1004c2d
lea edi, [ebp - 0x110]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1004c47
mov esi, 0x1001680
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x110]
push eax
movsd dword es:[edi], dword [esi]
call ebx
mov esi, eax
test esi, esi
je 0x1004cc9
push 0x10016ac
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x1004c7e
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
test esi, esi
je 0x1004cc9
xor edi, edi
push dword [ebp + edi*8 - 0x230]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [ebp + edi*8 - 0x22c], eax
je 0x1004ca5
inc edi
cmp edi, 3
jl 0x1004c84
jmp 0x1004cae
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
test esi, esi
je 0x1004cc9
xor eax, eax
mov ecx, dword [ebp + eax - 0x22c]
mov dword [eax + 0x100e030], ecx
add eax, 8
cmp eax, 0x18
jl 0x1004cb4
pop esi
pop ebx
pop edi
mov dword [0x100e0d0], 1
movzx eax, word [ebp + 8]
mov ecx, dword [ebp - 4]
mov eax, dword [eax*8 + 0x100e030]
call fcn.0100b28a
leave
ret 4
Function at 0x100568c
Capabilities:
Set socket configuration

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x100e0a8]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 4], eax
mov eax, ebx
push 0
mov edi, ecx
shl eax, 4
lea esi, [eax + edi]
push 1
push dword [esi + 0x14c]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x84]
push eax
push ebx
mov ecx, edi
call fcn.01005548
test al, al
je 0x10057b8
xor eax, eax
mov ax, word [edi + 8]
push eax
call dword [sym.imp.WS2_32.dll_htons]
push 0
add ebx, 0x14
push 1
shl ebx, 4
push dword [ebx + edi]
mov word [ebp - 0x82], ax
call dword [sym.imp.WS2_32.dll_socket]
or ebx, 0xffffffff
cmp eax, ebx
mov dword [esi + 0x148], eax
je 0x10057b8
push 4
lea ecx, [ebp - 0x8c]
push ecx
push 0xffffff7f
push pe_overlay
push eax
mov dword [ebp - 0x8c], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, ebx
je 0x10057a6
push dword [esi + 0x148]
call fcn.0100bbe1
cmp eax, ebx
je 0x10057a6
push dword [ebp - 0x88]
lea eax, [ebp - 0x84]
push eax
push dword [esi + 0x148]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, ebx
je 0x10057a6
push 0x7fffffff
push dword [esi + 0x148]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, ebx
je 0x10057a6
push 0
push 1
push dword [esi + 0x148]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
push 8
push dword [esi + 0x14c]
push dword [esi + 0x148]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, ebx
jne 0x10057d1
push dword [esi + 0x148]
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x148], ebx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x10057cd
push dword [edi + 8]
push eax
call fcn.0100c10c
pop ecx
pop ecx
xor al, al
jmp 0x10057d3
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100b28a
leave
ret 4
Function at 0x10057e7
Capabilities:
Initialize winsock library

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2bc
mov eax, dword [0x100e0a8]
push esi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x294]
push eax
push 2
mov esi, ecx
mov byte [ebp - 0x296], 0
mov byte [ebp - 0x295], 0
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x100582b
push eax
call fcn.0100ba66
xor al, al
jmp 0x1005916
push edi
mov edi, dword [sym.imp.WS2_32.dll_WSACreateEvent]
call edi
test eax, eax
mov dword [esi + 0x14c], eax
je 0x1005897
call edi
test eax, eax
mov dword [esi + 0x15c], eax
je 0x1005897
push 0x20
lea eax, [ebp - 0x2bc]
push eax
call fcn.0100b707
push 0xa
lea eax, [ebp - 0x104]
push eax
push dword [esi + 8]
mov dword [ebp - 0x2bc], 1
call dword [sym.imp.msvcrt.dll__ltoa]
add esp, 0xc
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x2bc]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
call fcn.01004cf2
test eax, eax
je 0x10058a8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0100c10c
pop ecx
xor al, al
jmp 0x1005915
mov eax, dword [ebp - 0x29c]
test eax, eax
je 0x10058a4
mov eax, dword [eax + 4]
dec eax
dec eax
je 0x10058d8
sub eax, 0x15
jne 0x10058f0
cmp byte [ebp - 0x295], 0
jne 0x10058f0
push 1
mov ecx, esi
call fcn.0100568c
mov byte [ebp - 0x295], al
jmp 0x10058f0
cmp byte [ebp - 0x296], 0
jne 0x10058f0
push 0
mov ecx, esi
call fcn.0100568c
mov byte [ebp - 0x296], al
mov eax, dword [ebp - 0x29c]
mov eax, dword [eax + 0x1c]
test eax, eax
mov dword [ebp - 0x29c], eax
jne 0x10058b2
cmp byte [ebp - 0x296], al
jne 0x1005913
cmp byte [ebp - 0x295], al
je 0x10058a4
mov al, 1
pop edi
mov ecx, dword [ebp - 4]
pop esi
call fcn.0100b28a
leave
ret
Function at 0x1005be9
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x170
mov eax, dword [0x100e0a8]
and dword [ebp - 0x12c], 0
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x110], eax
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x14]
or dword [ebx], 0xffffffff
mov dword [ebp - 0x114], eax
mov eax, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 0x10]
or dword [esi], 0xffffffff
push edi
mov dword [ebp - 0x118], eax
xor eax, eax
lea edi, [ebp - 0x128]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edx, ecx
push 0x10
xor eax, eax
and dword [ebp - 0x10c], eax
pop ecx
lea edi, [ebp - 0x16c]
rep stosd dword es:[edi], eax
mov byte [ebp - 0x105], al
lea eax, [ebp - 0x10c]
push eax
mov ecx, edx
mov dword [ebp - 0x170], 0x44
call fcn.01005b6c
cmp dword [ebp - 0x10c], 0
je 0x1005d2b
and word [ebp - 0x104], 0
push 0x3f
pop ecx
push dword [ebp - 0x118]
xor eax, eax
push dword [ebp - 0x114]
lea edi, [ebp - 0x102]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x104]
push eax
call fcn.01004ef8
test al, al
je 0x1005d39
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x110]
lea eax, [ebp - 0x170]
push dword [ebp - 0x110]
push dword [ebp - 0x11c]
push eax
call fcn.0100b95a
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x170]
push eax
xor eax, eax
push eax
push eax
push 0x210
push 1
push eax
push eax
push dword [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1005d12
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
jmp 0x1005d2d
mov eax, dword [ebp - 0x12c]
mov dword [ebx], eax
mov eax, dword [ebp - 0x124]
mov dword [esi], eax
mov byte [ebp - 0x105], 1
jmp 0x1005d39
push 8
push 0xc0000fbd
push 1
call fcn.0100bb73
lea eax, [ebp - 0x128]
push eax
push 0
call fcn.0100c1da
cmp dword [ebp - 0x10c], 0
pop edi
pop esi
pop ebx
je 0x1005d5f
push dword [ebp - 0x10c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x105]
call fcn.0100b28a
leave
ret 0x18

Function at 0x1005d76
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax + 0x18]
test esi, esi
push edi
mov bl, 1
je 0x1005dca
mov edi, dword [eax + 0x30]
test edi, edi
je 0x1005dca
mov edx, dword [eax + 0x34]
add ecx, 0x174
push ecx
lea ecx, [ebp + 8]
push ecx
push dword [eax + 0x38]
add edx, edi
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1005dc6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x1005dc6
cmp eax, 0x3e5
je 0x1005dc6
xor bl, bl
mov al, bl
jmp 0x1005dcc
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x1005e55
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ebp + 8], 0
je 0x1005ec1
cmp dword [ebp + 0xc], 0
je 0x1005ec1
mov eax, dword [ebp + 0xc]
lea edx, [eax + 1]
push ebx
mov bl, byte [eax]
inc eax
test bl, bl
jne 0x1005e70
sub eax, edx
lea edx, [eax + 1]
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 4], edx
call fcn.010052ca
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
push edx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
pop ebx
jne 0x1005ec7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x1005ec7
cmp eax, 0x40
je 0x1005ec1
push eax
push 0xc0000fba
push 1
call fcn.0100bb73
xor al, al
leave
ret 8
push dword [ebp - 8]
call fcn.0100bbb2
lea eax, [ebp - 8]
push eax
push 0
call fcn.0100c1da
mov al, 1
jmp 0x1005ec3

Function at 0x10063b1
Capabilities:
Terminate thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [sym.imp.WS2_32.dll_shutdown]
mov esi, ecx
push 2
push dword [esi + 0x148]
call edi
push 2
push dword [esi + 0x158]
call edi
mov eax, dword [esi + 0x160]
test eax, eax
je 0x10063f6
cmp eax, 0xffffffff
je 0x10063f6
lea ecx, [esi + 0x19c]
push ecx
push 0x36
push 0
push eax
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
push ebx
lea edi, [esi + 0x13c]
push dword [edi]
call fcn.0100bbb2
test al, al
mov ebx, 0x100eff0
je 0x100644f
push 3
mov ecx, ebx
call fcn.0100834a
jmp 0x100643e
push 0
call fcn.0100b112
test eax, eax
mov dword [ebp - 4], eax
je 0x1006447
push 0x36
push dword [eax + 0x14]
mov ecx, esi
call fcn.01005523
push 1
push dword [ebp - 4]
mov ecx, esi
call fcn.01005ee3
call fcn.0100b1dd
test eax, eax
jg 0x1006418
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 3
mov ecx, ebx
call fcn.0100834a
push edi
push 1
call fcn.0100c1da
lea edi, [esi + 0x168]
mov eax, dword [edi]
test eax, eax
pop ebx
je 0x1006483
cmp eax, 0xffffffff
je 0x1006483
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push edi
push 0
call fcn.0100c1da
push dword [esi + 0x170]
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
mov al, 1
pop esi
leave
ret

Function at 0x1006a5e
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push 1
mov esi, ecx
call fcn.01005926
test al, al
je 0x1006a98
lea eax, [ebp - 4]
push eax
push 0
push dword [0x100f488]
push 0x10069c9
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0x168], eax
setne al
pop esi
leave
ret
Function at 0x1007b05
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
xor edi, edi
cmp dword [ebp + 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
je 0x1007b74
cmp dword [ebp + 0xc], esi
je 0x1007b74
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 1
push esi
push esi
push esi
push 0x1001ac0
push 0x80000002
call fcn.0100bf4b
test eax, eax
jne 0x1007b66
push dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push dword [ebp + 8]
push eax
push esi
push 0x1001aa8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1007b66
inc edi
cmp dword [ebp - 4], esi
je 0x1007b74
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret 8
Function at 0x1007b81
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x8ac
mov eax, dword [0x100e0a8]
push esi
push edi
mov esi, 0xf003f
push esi
push 0x100140c
xor edi, edi
push 0x80000000
lea ecx, [ebp - 0x850]
mov dword [ebp - 4], eax
mov dword [ebp - 0x854], 0x20a
mov dword [ebp - 0x850], edi
mov dword [ebp - 0x84c], edi
mov dword [ebp - 0x858], 0x104
call fcn.010032fe
test eax, eax
lea ecx, [ebp - 0x84c]
jne 0x1007d6a
push esi
push 0x1001f50
push dword [ebp - 0x850]
call fcn.010032fe
test eax, eax
lea ecx, [ebp - 0x84c]
jne 0x1007d6a
lea eax, [ebp - 0x858]
push eax
push 0x1001f3c
lea eax, [ebp - 0x848]
push eax
call fcn.0100333a
lea ecx, [ebp - 0x850]
call fcn.0100328b
lea ecx, [ebp - 0x84c]
call fcn.0100328b
lea eax, [ebp - 0x854]
push eax
lea eax, [ebp - 0x640]
push eax
call fcn.01007b05
test eax, eax
je 0x1007d64
mov esi, dword [sym.imp.msvcrt.dll_wcsrchr]
lea eax, [ebp - 0x640]
push 0x5c
push eax
call esi
cmp eax, edi
pop ecx
pop ecx
je 0x1007c63
mov word [eax], di
lea eax, [ebp - 0x848]
push 0x5c
push eax
call esi
cmp eax, edi
pop ecx
pop ecx
je 0x1007c77
mov word [eax], di
lea eax, [ebp - 0x848]
push eax
lea eax, [ebp - 0x640]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1007d64
lea eax, [ebp - 0x434]
push 0x1001f18
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
mov esi, dword [sym.imp.msvcrt.dll_wcscat]
lea eax, [ebp - 0x640]
push eax
lea eax, [ebp - 0x434]
push eax
call esi
lea eax, [ebp - 0x434]
push 0x1001efc
push eax
call esi
add esp, 0x18
push 0x44
pop esi
push esi
lea eax, [ebp - 0x8ac]
push eax
call fcn.0100b707
push 0x104
lea eax, [ebp - 0x228]
push eax
mov dword [ebp - 0x8ac], esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1007d64
push 0xd
lea eax, [ebp - 0x228]
push 0x1001ee0
push eax
call dword [sym.imp.msvcrt.dll_wcsncat]
add esp, 0xc
lea eax, [ebp - 0x868]
push eax
lea eax, [ebp - 0x8ac]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x228]
push eax
mov word [ebp - 6], di
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1007d64
push dword [ebp - 0x868]
call fcn.0100bbb2
lea eax, [ebp - 0x868]
push eax
push edi
call fcn.0100c1da
lea eax, [ebp - 0x864]
push eax
push edi
call fcn.0100c1da
lea ecx, [ebp - 0x84c]
call fcn.0100328b
lea ecx, [ebp - 0x850]
call fcn.0100328b
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0100b28a
leave
ret
Function at 0x1007e5a
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x100e0a8]
push esi
xor esi, esi
push edi
xor edi, edi
cmp dword [ebp + 8], esi
mov dword [ebp - 4], eax
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x218], esi
je 0x1007f32
push 0x104
lea eax, [ebp - 0x210]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1007f1e
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x214]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push 0x1001ac0
push 0x80000002
call fcn.0100bf4b
test eax, eax
jne 0x1007f1e
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x210]
push eax
push 2
push esi
push 0x1001aa8
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1007f1e
push esi
push dword [0x100e048]
push 0x100e048
push 0x1001fa0
push esi
push dword [ebp - 0x214]
call fcn.0100b7ac
test al, al
je 0x1007f1e
inc edi
cmp dword [ebp - 0x214], esi
je 0x1007f32
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
call fcn.0100b28a
leave
ret 4

Function at 0x1008114
Capabilities:
Create service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x100e0a8]
push edi
mov dword [ebp - 4], eax
mov edi, ecx
call fcn.010080cf
test eax, eax
je 0x100813b
xor eax, eax
inc eax
jmp 0x10081ce
push ebx
push esi
push 0x2000007
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
cmp ebx, esi
jne 0x100815e
push esi
add edi, 0x68
push edi
push 0x100e7f0
jmp 0x10081b2
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
push esi
push 0x1001fbc
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
push 1
push dword [0x100e048]
add edi, 0x68
push 0x10
push 0xf01ff
push 0x1001fac
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
cmp eax, esi
jne 0x10081bd
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
push edi
push 0x100edf0
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x10081cc
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call esi
push ebx
call esi
xor eax, eax
inc eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
call fcn.0100b28a
leave
ret