joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [str.SOFTWAREAdobeAdobe_Acrobat8.0AcroSpeedLaunch]
sub esp, 0x10
push esi
mov esi, eax
lea eax, [esp + 4]
push eax
push ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x401064
lea edx, [esp + 8]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401059
cmp dword [esp + 0xc], 4
jne 0x401059
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10
ret

Function at 0x401090
Capabilities:
Query service status

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push 1
push str.ServicesActive
push 0
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
je 0x4010fb
push esi
push edi
xor edi, edi
cmp edi, 0xc
jae 0x4010f2
mov eax, dword [edi + 0x40b02c]
push 4
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x4010eb
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4010e4
cmp dword [esp + 0x14], 4
jne 0x4010e4
mov bl, 1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add edi, 4
test bl, bl
je 0x4010b0
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x1c
ret
Function at 0x4016c0
Capabilities:
Create thread
Terminate thread

Disassembly:
sub esp, 0x28
call fcn.004012f0
test al, al
jne 0x40187e
mov eax, dword [str.Mode]
push esi
push eax
xor eax, eax
call fcn.00401000
mov esi, eax
add esp, 4
cmp esi, 3
jae 0x401875
cmp esi, 2
je 0x401875
push edi
mov edi, dword [esp + 0x34]
lea ecx, [esp + 0xc]
push ecx
call fcn.004011e0
add esp, 4
test eax, eax
mov dword [0x40b430], eax
je 0x40186b
call fcn.00401070
test al, al
jne 0x401854
push 0x401110
push 0x1f4
push 0
push 0
call dword [sym.imp.USER32.dll_SetTimer]
mov edi, eax
test edi, edi
mov dword [esp + 8], edi
je 0x401854
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [0x40b434], eax
je 0x40184b
push 0x40b418
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor eax, eax
cmp esi, 1
sete al
lea edx, [esp + 0x10]
push edx
push 0
mov byte [0x40b43c], 0
push eax
push 0x401390
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [0x40b438], eax
je 0x401829
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
call esi
test eax, eax
je 0x4017e9
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
push ebp
mov ebp, dword [sym.imp.USER32.dll_TranslateMessage]
cmp eax, 0xffffffff
je 0x4017e4
lea edx, [esp + 0x18]
push edx
call ebp
lea eax, [esp + 0x18]
push eax
call edi
push 0
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
call esi
test eax, eax
jne 0x4017c0
mov edi, dword [esp + 0xc]
pop ebp
call fcn.00401140
mov edx, dword [0x40b438]
push 0x1388
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x401812
mov eax, dword [0x40b438]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [0x40b438]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x40b438], 0
mov edx, dword [0x40b434]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x40b418
mov dword [0x40b434], 0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push edi
push 0
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x34]
push eax
mov eax, dword [0x40b430]
push ecx
call fcn.004012c0
add esp, 8
pop edi
xor eax, eax
pop esi
add esp, 0x28
ret 0x10
xor eax, eax
pop esi
add esp, 0x28
ret 0x10
xor eax, eax
add esp, 0x28
ret 0x10

Function at 0x401960
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x401983
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 8]
mov dword [esi], ecx
mov eax, ecx
pop esi
add esp, 0x24
ret
mov eax, dword [esi]
pop esi
add esp, 0x24
ret
Function at 0x401a60
Capabilities:
Read file via mapping

Disassembly:
push ecx
push esi
mov esi, eax
call fcn.00401990
test al, al
je 0x401b28
cmp byte [ebx], 0
jne 0x401b28
cmp dword [ebx + 4], 0
jne 0x401aae
cmp byte [esp + 0xc], 0
mov eax, 2
je 0x401a91
mov eax, 0x1000002
push 0
push 0
push 0
push eax
mov eax, dword [esi + 0x20]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [ebx + 4], eax
jne 0x401aae
mov byte [ebx], 1
mov eax, dword [ebx + 4]
test eax, eax
je 0x401b28
cmp dword [ebx + 8], 0
jne 0x401b28
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [ebx + 8], eax
jne 0x401adc
test eax, eax
mov byte [ebx], 1
setne al
pop esi
pop ecx
ret
push edi
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, eax
call fcn.004019e0
add esp, 8
test al, al
pop edi
je 0x401b14
mov eax, dword [esp + 4]
test eax, eax
je 0x401b14
mov edx, dword [ebx + 8]
lea eax, [edx + eax - 1]
mov dword [ebx + 0xc], eax
xor eax, eax
test edx, edx
setne al
pop esi
pop ecx
ret
mov ecx, dword [ebx + 8]
push ecx
mov byte [ebx], 1
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebx + 8], 0
xor eax, eax
cmp dword [ebx + 8], eax
pop esi
setne al
pop ecx
ret

Function at 0x401b40
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP80.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop ebp
ret

Function at 0x401b60
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x40b3e8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0
jbe 0x401bee
lea eax, [ebp - 0x148]
push eax
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP80.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 0xffffffff
je 0x401bee
mov dword [ebp - 0x150], 1
jmp 0x401bba
mov ecx, dword [ebp - 0x150]
add ecx, 1
mov dword [ebp - 0x150], ecx
mov edx, dword [ebp - 0x150]
cmp edx, dword [ebp + 0xc]
jae 0x401be1
lea eax, [ebp - 0x148]
push eax
mov ecx, dword [ebp - 0x14c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401bdf
jmp 0x401be1
jmp 0x401bab
mov edx, dword [ebp - 0x14c]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004038dc
mov esp, ebp
pop ebp
ret
Function at 0x4031c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4044f1
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x40b3e8]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
xor ebx, ebx
mov dword [esi + 0x24], ebx
mov dword [esp + 0x20], ebx
mov dword [esi + 0x2c], ebx
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
mov ebp, dword [esp + 0x34]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esi], eax
mov eax, dword [esp + 0x38]
mov dword [esi + 0x14], ecx
mov cl, byte [esp + 0x48]
cmp cl, bl
mov dword [esi + 8], edx
mov edx, dword [esp + 0x40]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x44]
mov byte [esp + 0x20], 1
mov dword [esi + 0xc], ebp
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], eax
mov byte [esi + 0x20], cl
mov dword [esi + 0x30], ebx
jne 0x4032a4
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x48], edi
jbe 0x403271
lea ecx, [edx + 0xc]
mov edx, eax
mov eax, dword [ecx]
cmp eax, edi
jbe 0x403258
mov edi, eax
add ecx, 0x10
sub edx, 1
jne 0x403250
cmp edi, 0x100000
mov dword [esp + 0x48], edi
mov eax, 0x408ed4
ja 0x403275
lea eax, [esp + 0x48]
mov eax, dword [eax]
mov dword [esi + 0x28], eax
add eax, 0xa
push eax
call fcn.004038cb
mov edi, eax
mov eax, dword [esi + 0x24]
add esp, 4
cmp eax, edi
je 0x40329b
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esi + 0x24], edi
push ebx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
xor ecx, ecx
mov eax, ebp
mov edx, 0x44
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.004038cb
add esp, 4
mov dword [esp + 0x48], eax
cmp eax, ebx
mov byte [esp + 0x20], 2
je 0x4032f2
push 0x4023f0
push 0x4023b0
push ebp
lea edi, [eax + 4]
push 0x44
push edi
mov dword [eax], ebp
call fcn.00403a13
jmp 0x4032f4
xor edi, edi
mov eax, dword [esi + 0x2c]
cmp eax, edi
mov byte [esp + 0x20], 1
je 0x403324
cmp eax, ebx
je 0x403321
mov ecx, dword [eax - 4]
lea ebx, [eax - 4]
push 0x4023f0
push ecx
push 0x44
push eax
call fcn.004039b0
push ebx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esi + 0x2c], edi
mov ecx, esi
call fcn.00402e50
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x24

Function at 0x4038dc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40b3e8]
jne 0x4038e6
repz ret
jmp fcn.00403d8e
Function at 0x1004a1c
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push 1
xor ebx, ebx
push ebx
push 0x1004a90
push 0x80000001
mov dword [ebp - 4], ebx
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
test eax, eax
je 0x1004a48
xor al, al
jmp 0x1004a88
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push ebx
push 0x1004740
push dword [ebp - 4]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x1004a7c
cmp dword [ebp - 8], 1
jne 0x1004a7c
mov eax, dword [ebp + 0xc]
shr eax, 1
xor ecx, ecx
mov word [esi + eax*2 - 2], cx
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov al, bl
pop esi
pop ebx
leave
ret 8

Function at 0x1004d2c
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x1006084]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1004e14
push 0x80000000
call dword [sym.imp.KERNEL32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1004e01
push edi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push esi
push dword [ebp - 0x10c]
mov edi, 0x104
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 1
call dword [sym.imp.KERNEL32.dll_RegQueryValueExA]
test eax, eax
jne 0x1004df0
cmp dword [ebp - 0x114], 2
mov byte [ebp - 5], al
lea eax, [ebp - 0x108]
jne 0x1004dda
push edi
push dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb esi, esi
inc esi
jmp 0x1004df0
push eax
push edi
push dword [ebp - 0x110]
call fcn.01004cc4
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
push dword [ebp - 0x10c]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov eax, esi
pop edi
jmp 0x1004e03
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0100148d
leave
ret 4

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
nop
mov ebx, 0x40de38
mov ecx, 0x420d26c9
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x74471944
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x1002025
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
je 0x10020fe
mov esi, dword [ebp + 0x10]
cmp esi, edi
je 0x10020fe
mov eax, 0x8000
push eax
push edi
mov dword [ebp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, edi
mov dword [esi], eax
je 0x10020ee
lea ecx, [ebp + 0x10]
push ecx
push eax
push edi
push edi
push dword [ebp + 0xc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 8]
call edi
mov ebx, 0xea
jmp 0x10020b3
add dword [ebp + 0x10], 0x2000
push dword [ebp + 0x10]
push dword [esi]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
test eax, eax
mov dword [esi], eax
je 0x10020ee
lea ecx, [ebp + 0x10]
push ecx
push eax
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1002081
xor edi, edi
xor ebx, ebx
inc edi
cmp eax, ebx
je 0x10020ea
mov eax, dword [esi]
cmp eax, ebx
je 0x10020da
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], ebx
push dword [ebp - 4]
xor edi, edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.0100936f
mov eax, edi
jmp 0x1002100
push 0x8007000e
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.0100936f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x100243f
Capabilities:
Manipulate console buffer

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [0x1010040]
mov edx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0xa8], eax
push 0x27
xor eax, eax
cmp ebx, esi
mov word [ebp - 0xa4], si
pop ecx
lea edi, [ebp - 0xa2]
rep stosd dword es:[edi], eax
mov dword [ebp - 0xb0], esi
stosw word es:[edi], ax
je 0x1002511
mov ax, word [edx + 6]
push 0x14
pop ecx
mov word [ebp - 0xaa], ax
mov word [ebp - 0xac], si
push dword [ebp - 0xac]
mov esi, dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
xor eax, eax
lea edi, [ebp - 0xa4]
push ebx
rep stosd dword es:[edi], eax
call esi
push 0
lea eax, [ebp - 0xb0]
push eax
push 0x4f
push 0x4f
push 0x1001398
lea eax, [ebp - 0xa4]
push eax
call fcn.0100907c
mov edi, dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push eax
push ebx
call edi
push dword [ebp - 0xac]
push ebx
call esi
cmp dword [ebp - 0xa8], 0
je 0x1002511
push 0
lea eax, [ebp - 0xb0]
push eax
push dword [ebp - 0xa8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push dword [ebp - 0xa8]
push ebx
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100898e
leave
ret 0xc
Function at 0x10029bf
Capabilities:
Enumerate services

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x34], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], edi
jne 0x10029ef
xor eax, eax
inc eax
jmp 0x1002aed
lea eax, [esi + 0x94]
push eax
push 0x25a
call fcn.01009fc7
push eax
push dword [esi + 0x90]
call fcn.0100243f
xor eax, eax
cmp dword [esi + 0xc8], edi
jne 0x1002a19
mov eax, dword [esi + 0x68]
push 5
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, edi
mov dword [ebp - 0x14], eax
jne 0x1002a36
call fcn.0100936f
xor eax, eax
jmp 0x1002aed
push ebx
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
mov ebx, 0x1000
inc dword [ebp - 8]
cmp dword [ebp - 8], 2
ja 0x1002ac7
add ebx, dword [ebp - 0x10]
push ebx
push 1
call dword [sym.imp.msvcrt.dll_calloc]
cmp eax, edi
pop ecx
pop ecx
mov dword [ebp - 4], eax
je 0x1002ab3
push edi
lea eax, [ebp - 0xc]
push eax
lea eax, [esi + 0x80]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp - 4]
mov dword [ebp - 0xc], edi
push 1
push 0x30
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
test eax, eax
jne 0x1002ac7
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x1002a42
call fcn.0100936f
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1002ac3
push 0x8007000e
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.0100936f
xor eax, eax
jmp 0x1002aec
cmp dword [esi + 0x80], edi
jne 0x1002ae0
cmp dword [ebp - 4], edi
je 0x1002ae9
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
jmp 0x1002ae9
mov eax, dword [ebp - 4]
mov dword [esi + 0x84], eax
xor eax, eax
inc eax
pop ebx
pop edi
pop esi
leave
ret
Function at 0x1003647
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
push dword [ecx + 0x58]
push 0
push 0x401
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x10036ab
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x1003680
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10036c1
cmp dword [ebp - 4], 0x103
je 0x1003697
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8004130b
jmp 0x10036bb
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
push esi
jne 0x10036ca
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10036c1
push 0x80004021
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.0100936f
xor eax, eax
jmp 0x10036d3
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop esi
leave
ret
Function at 0x1007136
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x100daf3
call fcn.01008d48
push ecx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 8]
mov dword [ebp - 0x10], esi
call sub.framedyn.dll_public:_void___thiscall_CHString::constructor_void_
xor edi, edi
mov dword [ebp - 4], edi
lea ecx, [esi + 0xc]
call sub.framedyn.dll_public:_void___thiscall_CHString::constructor_void_
mov byte [ebp - 4], 1
lea ecx, [esi + 0x10]
call sub.framedyn.dll_public:_void___thiscall_CHString::constructor_void_
mov byte [ebp - 4], 2
lea ecx, [esi + 0x1c]
call sub.framedyn.dll_public:_void___thiscall_CHString::constructor_void_
mov byte [ebp - 4], 3
lea ecx, [esi + 0x5c]
call sub.framedyn.dll_public:_void___thiscall_CHString::constructor_void_
mov byte [ebp - 4], 4
lea ecx, [esi + 0x68]
call sub.framedyn.dll_public:_void___thiscall_CHString::constructor_void_
mov byte [ebp - 4], 5
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0xc4], edi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], edi
mov dword [esi + 0x88], edi
mov dword [esi + 0x8c], edi
mov dword [esi + 0xac], edi
mov dword [esi + 0xb0], edi
mov dword [esi + 0xb4], edi
mov dword [esi + 0xb8], edi
mov dword [esi + 0xbc], edi
mov dword [esi + 0xc0], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x90], edi
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x100741a
Capabilities:
Acquire debug privileges

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
lea eax, [ebp - 4]
push eax
xor edi, edi
push 0x28
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1007448
call fcn.0100936f
xor eax, eax
jmp 0x100749f
push esi
lea eax, [ebp - 0xc]
push eax
push 0x1001900
push edi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x100748c
mov eax, dword [ebp - 0xc]
push edi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
push edi
push 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebp - 4]
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x1007493
call fcn.0100936f
xor esi, esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
leave
ret
Function at 0x1008bae
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1001b18
call fcn.01008ea4
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1008be9
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1008be9
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1008c01
cmp eax, 0x20b
je 0x1008bee
mov dword [ebp - 0x1c], edi
jmp 0x1008c15
cmp dword [ecx + 0x84], 0xe
jbe 0x1008be9
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1008c0f
cmp dword [ecx + 0x74], 0xe
jbe 0x1008be9
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x101008c], 0xffffffff
or dword [0x1010090], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1010070]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x101006c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1010094], eax
call fcn.01008e9c
cmp dword [0x1010050], edi
jne 0x1008c70
push fcn.01008e9c
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01008e85
push 0x1010010
push 0x101000c
call sub.msvcrt.dll__initterm
mov eax, dword [0x1010068]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1010064]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x34], eax
push 0x1010008
push section..data
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___winitenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.01003130
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x1008ce7
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1008d1c
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01008edf
ret