joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10067e2
Capabilities:
Terminate process

Disassembly:
test byte [ebp - 0x40], 1
jne 0x100d894
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call fcn.01009c3a
mov dword [0x10220e8], eax
cmp dword [0x10220dc], ebx
jne 0x100d8dd
push eax
call dword [sym.imp.msvcrt.dll_exit]
nop
nop
nop
nop
nop
call fcn.010042f9
push 0x5c
push 0x1006948
call fcn.01001818
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x102214c
push ebx
push esi
push edi
call dword [sym.imp.API_MS_Win_Core_Interlocked_L1_1_0.dll_InterlockedCompareExchange]
cmp eax, ebx
jne 0x100d846
xor esi, esi
inc esi
mov eax, dword [0x1022114]
cmp eax, esi
je 0x100d865
mov eax, dword [0x1022114]
test eax, eax
jne 0x100697f
mov dword [0x1022114], esi
push 0x1006944
push 0x1006938
call fcn.010067b9
pop ecx
pop ecx
test eax, eax
jne 0x100d900
mov eax, dword [0x1022114]
cmp eax, esi
jne 0x1006895
push 0x1006934
push 0x10068dc
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1022114], 2
cmp dword [ebp - 0x20], ebx
jne 0x10068a2
push ebx
push edi
call dword [sym.imp.API_MS_Win_Core_Interlocked_L1_1_0.dll_InterlockedExchange]
cmp dword [0x102cc90], ebx
jne 0x100d872
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x100d900
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
jbe 0x1006970
cmp cx, 0x22
je 0x100d89d
inc eax
inc eax
jmp 0x10068bd
cmp cx, bx
je 0x100698a
cmp dword [ebp - 0x1c], ebx
je 0x100698a
jmp 0x10068cd
mov dword [0x102cee8], esi
jmp 0x1006871
movzx ecx, word [eax]
cmp cx, bx
je 0x100273a
cmp cx, 0x20
ja 0x100273a
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x100698a
cmp eax, esi
jne 0x100d855
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1006838
push 0x3e8
call dword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_Sleep]
jmp 0x1006824
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1006871
push 0x102cc90
call fcn.01014b80
pop ecx
test eax, eax
je 0x10068ae
push ebx
push 2
push ebx
call dword [0x102cc90]
jmp 0x10068ae
movzx ecx, word [ebp - 0x3c]
jmp 0x1002747
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
jmp 0x10068d7
cmp dword [0x102cee8], ebx
jne 0x100d8eb
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x10220e8]
jmp 0x100d90c
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01001a84
ret
Function at 0x1006e9e
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
xor ecx, ecx
mov dword [ebp - 0xc], ecx
cmp dword [esi + 0x24], ecx
jbe 0x1006f3b
push ebx
push edi
xor ebx, ebx
mov eax, dword [esi + 0x20]
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 4]
push edx
lea edx, [ebp - 8]
push edx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14], 4
mov edi, dword [ebx + eax + 4]
mov eax, dword [esi + 4]
push ecx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x10], eax
mov eax, dword [0x10220c0]
cmp eax, 0x10220c0
je 0x1006f00
test byte [eax + 0x1c], 8
jne 0x1010894
cmp dword [ebp - 0x10], 0
jne 0x1006f27
cmp dword [ebp - 8], 4
jne 0x1006f27
mov eax, dword [esi + 0x20]
add eax, ebx
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x1006f21
cmp dword [ebp - 4], ecx
ja 0x10108b5
mov ecx, dword [ebp - 4]
mov dword [eax + 8], ecx
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
add ebx, 0x10
cmp eax, dword [esi + 0x24]
jae 0x1006f39
xor ecx, ecx
jmp 0x1006ebb
pop edi
pop ebx
mov byte [esi + 0x28], 1
pop esi
leave
ret
push dword [ebp - 0x10]
push dword [ebp - 4]
push dword [ebp - 8]
push edi
push 0x10123fc
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101ac6a
jmp 0x1006f00
mov dword [ebp - 4], ecx
jmp 0x1006f21

Function at 0x1006f92
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, ecx
call fcn.0100bc80
lea edi, [esi + 4]
xor ebx, ebx
mov dword [edi], ebx
mov dword [ebp - 0x10], 0xc
call fcn.01004c58
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push 0x20019
push ebx
push ebx
push ebx
push 0x1007068
push 0x80000002
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x10108f5
mov ecx, esi
call fcn.01004baa
cmp eax, ebx
jl 0x10070f2
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x101090a
push ebx
push 1
push ebx
push ebx
call dword [sym.imp.API_MS_Win_Core_Synch_L1_1_0.dll_CreateEventW]
mov dword [esi + 8], eax
cmp eax, ebx
je 0x101091c
push 0x80
push 0xffffffffffffffff
push esi
push 0x1006e58
push eax
lea eax, [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
mov edi, eax
mov eax, dword [0x10220c0]
cmp eax, 0x10220c0
je 0x100704b
test byte [eax + 0x1c], 8
jne 0x1010926
cmp edi, ebx
je 0x101093e
cmp byte [esi + 0x28], bl
jne 0x10070f0
push 0x64
call dword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_Sleep]
jmp 0x1007053
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
jle 0x10070f2
and eax, 0xffff
or eax, 0x80070000
jmp 0x10070f2
mov eax, dword [esi]
push ebx
push eax
call dword [sym.imp.API_MS_Win_Core_File_L1_1_0.dll_CreateDirectoryW]
test eax, eax
jne 0x1007005
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
cmp eax, ebx
jmp 0x10108f5
push edi
push 0x10123fc
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01013421
jmp 0x100704b
mov eax, 0x80004005
jmp 0x10070f2
Function at 0x1009385
Capabilities:
Check for sandbox username or hostname
Get session user name

Disassembly:
push 4
mov eax, 0x101e37d
call fcn.01001450
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push dword [ebp + 8]
lea ecx, [ebx + 4]
mov dword [ebx], 0x10017c4
call fcn.01008e04
xor eax, eax
push eax
lea ecx, [ebx + 0xc]
mov dword [ebp - 4], eax
mov dword [ebx + 8], eax
call fcn.01009e7a
mov eax, dword [ebp + 0xc]
push dword [ebp + 0x10]
mov dword [ebx + 0x24], 1
mov byte [ebx + 0x28], 0
lea edi, [ebx + 0x2c]
mov esi, 0x100a8d0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ecx, [ebx + 0x40]
mov byte [ebp - 4], 1
mov dword [ebx + 0x3c], eax
call fcn.0100b4d6
lea esi, [ebx + 0x4c]
xor eax, eax
mov dword [esi], eax
lea ecx, [ebp + 8]
push ecx
push eax
push 2
mov byte [ebp - 4], 3
mov dword [ebp + 8], eax
call sub.SspiCli.dll_GetUserNameExW
test al, al
jne 0x100f9f0
mov eax, dword [ebp + 8]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0100154c
pop ecx
push eax
mov ecx, esi
call fcn.0100bef9
mov esi, dword [esi]
lea eax, [ebp + 8]
push eax
push esi
push 2
call sub.SspiCli.dll_GetUserNameExW
test al, al
je 0x100fa08
mov eax, ebx
call fcn.010016a9
ret 0xc
push 0x67
push 0x1012304
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
push eax
push 0x10112e8
call fcn.01013797
push 0x69
push 0x1012304
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
push eax
push 0x1011268
jmp 0x100fa03
Function at 0x1009a88
Capabilities:
Get session user name

Disassembly:
push 8
mov eax, 0x101cea9
call fcn.01001450
mov ebx, ecx
lea eax, [ebx + 0xc]
push eax
lea ecx, [ebp - 0x14]
call fcn.01001a22
and dword [ebp - 4], 0
mov ecx, ebx
call fcn.01009b1c
test eax, eax
jne 0x100c13a
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x1009ac5
mov eax, dword [ebx + 0x38]
mov dword [eax + 0xe8], ecx
mov ecx, dword [ebx + 0x38]
mov eax, dword [ecx]
sub esp, 0x10
mov edi, esp
lea esi, [ebx + 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 4]
mov edi, eax
xor esi, esi
cmp edi, esi
jl 0x100c142
mov dword [ebx + 0x24], 4
mov eax, dword [0x10220c0]
cmp eax, 0x10220c0
je 0x1009b02
test byte [eax + 0x1c], 0x80
jne 0x100c1ee
mov esi, edi
push dword [ebp - 0x14]
call dword [sym.imp.API_MS_Win_Core_Synch_L1_1_0.dll_LeaveCriticalSection]
mov eax, esi
call fcn.010016a9
ret 4
xor esi, esi
inc esi
jmp 0x1009b04
mov dword [ebp - 0x10], esi
mov dword [ebp + 8], esi
lea eax, [ebp - 0x10]
push eax
push esi
push 2
mov byte [ebp - 4], 1
call sub.SspiCli.dll_GetUserNameExW
test al, al
jne 0x100c18b
mov eax, dword [ebp - 0x10]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0100154c
pop ecx
push eax
lea ecx, [ebp + 8]
call fcn.0100bef9
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
push 2
call sub.SspiCli.dll_GetUserNameExW
mov eax, dword [ebx + 0x38]
add eax, 4
mov eax, dword [eax]
cmp eax, esi
je 0x100c19b
mov eax, dword [eax]
jmp 0x100c19d
xor eax, eax
mov ecx, dword [0x102210c]
push esi
push esi
push edi
push dword [ebp + 8]
push eax
push 0x1011048
call fcn.01017244
mov eax, dword [0x10220c0]
cmp eax, 0x10220c0
je 0x100c1dd
test byte [eax + 0x1c], 0x80
je 0x100c1dd
lea ecx, [ebx + 0x28]
push ecx
push ebx
push 0x1011074
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01012909
push dword [ebp + 8]
mov dword [ebx + 0x24], esi
call fcn.0100151c
pop ecx
jmp 0x1009b02
lea ecx, [ebx + 0x28]
push ecx
push ebx
push 0x1011074
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01012909
jmp 0x1009b02
Function at 0x100bf49
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
xor ecx, ecx
cmp dword [ebp + 0xc], ecx
je 0x1010dc1
xor eax, eax
cmp dword [ebp + 0xc], ecx
jle 0x100bf93
push esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [ebp + 8]
movzx edx, byte [ecx + eax]
mov eax, dword [ebp + 0x10]
movzx esi, al
xor edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x102c878]
inc ecx
cmp ecx, dword [ebp + 0xc]
mov dword [ebp + 0x10], eax
jl 0x100bf70
pop esi
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
jmp 0x100bf93
Function at 0x101866a
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2bc
mov eax, dword [0x10220c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x1018714
lea edi, [ebp - 0x68]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x56
lea eax, [ebp - 0x5a]
push 0
push eax
mov ebx, ecx
movsw word es:[edi], word [esi]
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x28
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
je 0x1018704
lea eax, [ebp - 0xb8]
push eax
push 0x32
lea eax, [ebp - 0x68]
push eax
mov dword [ebp - 0x2bc], 0x1fe
call fcn.01008842
lea eax, [ebp - 0x2bc]
push eax
lea eax, [ebp - 0x2b8]
push eax
lea eax, [ebp - 0x68]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
jne 0x1018704
lea eax, [ebp - 0x2b8]
push eax
lea ecx, [ebx + 0x34]
call fcn.010045b5
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01001e98
leave
ret
Function at 0x101a342
Capabilities:
Create thread
Resume thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 0x18]
xor esi, esi
push 4
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
push esi
call dword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_CreateThread]
mov edi, dword [ebp + 0x14]
mov dword [edi], eax
cmp eax, esi
je 0x101a388
mov ecx, dword [ebp + 0x10]
push dword [ecx*4 + 0x102ce88]
push eax
call dword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_SetThreadPriority]
test eax, eax
je 0x101a388
push dword [edi]
call dword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_ResumeThread]
test eax, eax
jne 0x101a39e
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
cmp eax, esi
jle 0x101a39c
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
ret 0x14

Function at 0x101ab3e
Capabilities:
Enumerate gui resources

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x101aacc
mov dword [ebp - 4], 1
mov byte [ebp - 8], 0
call dword [sym.imp.USER32.dll_EnumWindows]
cmp byte [ebp - 8], 0
jne 0x101ab79
mov dword [ebp - 4], 0x80004005
mov eax, dword [ebp - 4]
leave
ret 4

Function at 0x101b150
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push edi
mov edi, 0xf0000000
push edi
push 0x18
push 0x101b268
lea ebx, [ecx + 4]
push 0
push ebx
mov dword [ebp - 4], ecx
call esi
test eax, eax
jne 0x101b1cb
push edi
push 0x18
push 0x101b1e0
push eax
push ebx
call esi
test eax, eax
jne 0x101b1cb
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
mov esi, eax
mov eax, dword [0x10220c0]
cmp eax, 0x10220c0
je 0x101b1b8
test byte [eax + 0x1c], 8
je 0x101b1b8
push esi
push 0x101240c
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01013421
mov ebx, dword [ebx]
test ebx, ebx
je 0x101b1c7
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
jmp 0x101b1da
mov eax, dword [ebp - 4]
add eax, 8
push eax
call dword [sym.imp.API_MS_Win_Core_Interlocked_L1_1_0.dll_InterlockedIncrement]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x101b2d9
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor ebx, ebx
push ebx
mov esi, ecx
push ebx
lea eax, [esi + 8]
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.API_MS_Win_Core_Interlocked_L1_1_0.dll_InterlockedCompareExchange]
test eax, eax
jne 0x101b302
push 0x1f
pop eax
jmp 0x101b46e
cmp dword [ebp + 8], ebx
jne 0x101b30b
push 0x57
jmp 0x101b2fc
cmp dword [ebp + 0x10], ebx
je 0x101b307
push edi
mov edi, dword [ebp + 0x14]
cmp edi, ebx
jne 0x101b320
push 0x57
pop eax
jmp 0x101b46d
lea eax, [esi + 0xc]
push eax
mov dword [ebp + 0x14], eax
call dword [sym.imp.API_MS_Win_Core_Synch_L1_1_0.dll_EnterCriticalSection]
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 0x800c
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x101b377
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [0x10220c0]
cmp eax, 0x10220c0
je 0x101b453
test byte [eax + 0x1c], 8
je 0x101b453
push dword [ebp - 4]
push 0x101240c
push 0xb
jmp 0x101b448
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push 4
pop eax
push ebx
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push eax
push dword [ebp - 8]
mov dword [ebp - 0xc], eax
call esi
test eax, eax
jne 0x101b3c8
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [0x10220c0]
cmp eax, 0x10220c0
je 0x101b453
test byte [eax + 0x1c], 8
je 0x101b453
push dword [ebp - 4]
push 0x101240c
push 0xc
jmp 0x101b448
mov eax, dword [edi]
cmp eax, dword [ebp - 0x10]
jae 0x101b3d8
mov dword [ebp - 4], 0x57
jmp 0x101b453
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x101b413
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [0x10220c0]
cmp eax, 0x10220c0
je 0x101b453
test byte [eax + 0x1c], 8
je 0x101b453
push dword [ebp - 4]
push 0x101240c
push 0xd
jmp 0x101b448
push ebx
push edi
push dword [ebp + 0x10]
push 2
push dword [ebp - 8]
call esi
test eax, eax
jne 0x101b453
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [0x10220c0]
cmp eax, 0x10220c0
je 0x101b453
test byte [eax + 0x1c], 8
je 0x101b453
push dword [ebp - 4]
push 0x101240c
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01013421
cmp dword [ebp - 8], ebx
je 0x101b461
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push dword [ebp + 0x14]
call dword [sym.imp.API_MS_Win_Core_Synch_L1_1_0.dll_LeaveCriticalSection]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x101bc94
Capabilities:
Query service status
Start service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
xor esi, esi
push 1
push esi
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.API_MS_WIN_Service_Management_L1_1_0.dll_OpenSCManagerW]
mov dword [ebp - 8], eax
cmp eax, esi
jne 0x101bcc1
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
mov ebx, eax
jmp 0x101bd55
push edi
push 0x14
push 0x101bd60
push eax
call dword [sym.imp.API_MS_WIN_Service_Management_L1_1_0.dll_OpenServiceW]
mov edi, eax
cmp edi, esi
jne 0x101bcde
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
jmp 0x101bd37
push esi
push esi
push edi
call dword [sym.imp.API_MS_WIN_Service_Management_L1_1_0.dll_StartServiceW]
mov esi, dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
test eax, eax
jne 0x101bcfd
call esi
mov ebx, eax
cmp ebx, 0x420
jne 0x101bd42
mov ebx, 0x5b4
lea eax, [ebp - 0x24]
push eax
push edi
call dword [sym.imp.API_MS_WIN_Service_winsvc_L1_1_0.dll_QueryServiceStatus]
test eax, eax
je 0x101bd35
cmp dword [ebp - 0x20], 4
je 0x101bd3b
cmp dword [ebp - 0x20], 1
je 0x101bd3f
push 0x1f4
call dword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_Sleep]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
ja 0x101bd42
jmp 0x101bd02
call esi
mov ebx, eax
jmp 0x101bd42
xor ebx, ebx
jmp 0x101bd42
mov ebx, dword [ebp - 0x18]
mov esi, dword [sym.imp.API_MS_WIN_Service_Management_L1_1_0.dll_CloseServiceHandle]
test edi, edi
je 0x101bd4f
push edi
call esi
push dword [ebp - 8]
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x509dc0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x603f7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.005f3f7a
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x509e42
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.005f082f
mov eax, dword [eax]
push 0xb06e3c
push eax
call fcn.005e0a34
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.005f4205
test bl, bl
je 0x509e42
push 0xb06e3c
lea ecx, [esp + 0xc]
call fcn.005f4595
push 0xb06e48
lea ecx, [esp + 0xc]
call fcn.005f4595
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x509e7e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.005f4205
jmp 0x509f49
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x509f02
lea edx, [esp + 0x7c]
push 0xb06e44
push edx
call fcn.005e0a34
add esp, 8
test eax, eax
je 0x509f02
lea eax, [esp + 0x7c]
push 0xb06e40
push eax
call fcn.005e0a34
add esp, 8
test eax, eax
je 0x509f02
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x509e92
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.005f4205
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x50abf0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x50ac52
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x50ac60
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x60403b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0xb207d0]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x50ad98
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x50acc6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.005f4205
xor eax, eax
jmp 0x50ae0f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.005f4342
push esi
lea ecx, [esp + 0xc]
call fcn.005f45d1
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0xb06e84
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x50aded
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0050abf0
test eax, eax
jne 0x50aded
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.0050abf0
test eax, eax
jne 0x50aded
lea eax, [esp + 0x14]
push 0xb06e60
push eax
call fcn.005e1d10
mov esi, eax
add esp, 8
test esi, esi
jne 0x50adcc
lea ecx, [esp + 0x14]
push 0xb06e5c
push ecx
call fcn.005e1c90
mov esi, eax
add esp, 8
test esi, esi
jne 0x50adcc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x50adcf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.005f42f2
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x50acde
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.005f4205
xor eax, eax
jmp 0x50ae0f
mov byte [esi], 0
push 0xb06e58
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.005f4205
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4