joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000ae70
Capabilities:
Create thread
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f8
mov eax, dword [ebp + 0x1c]
test eax, eax
push ebx
lea ebx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
cmovne ebx, eax
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp + 0x20]
test eax, eax
push esi
mov esi, dword [ebp + 0x14]
mov edx, dword [ebx]
push edi
lea edi, [ebp - 0x1c]
mov dword [ebp - 0x14], 0
cmovne edi, eax
mov dword [ebp - 0x10], 0
test edx, edx
jne 0x1000af4c
push 4
push 0x2000
push edi
push 0
push ebx
push esi
mov dword [edi], 0x100000
call dword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
test eax, eax
js 0x1000b076
mov ecx, dword [ebx]
mov edx, dword [edi]
add edx, ecx
mov dword [ebp - 4], ecx
push 4
push 0x1000
mov dword [ebp - 0xc], edx
lea eax, [edx - 0x1000]
mov dword [ebp + 0x1c], 0x2000
mov dword [ebp - 8], eax
lea eax, [edx - 0x2000]
mov dword [ebp + 0x20], eax
lea eax, [ebp + 0x1c]
push eax
push 0
lea eax, [ebp + 0x20]
push eax
push esi
call dword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
test eax, eax
js 0x1000b076
lea eax, [ebp + 0x14]
mov dword [ebp + 0x1c], 0x1000
push eax
push 0x104
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp + 0x20]
push eax
push esi
call dword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
test eax, eax
js 0x1000b076
mov ecx, dword [ebp - 0xc]
jmp 0x1000af5f
mov ecx, dword [edi]
add ecx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], ecx
lea eax, [ecx - 0x1000]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x240], eax
lea eax, [ecx - 0x14]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x234], eax
add eax, 4
mov dword [ebp - 0x238], 0x3000
mov dword [ebp - 0x248], ecx
mov dword [ebp - 0x24c], ecx
mov dword [ebp - 0x254], edx
mov dword [ebp - 0x250], edx
mov dword [ebp - 0x2f8], 0x10007
mov dword [ebp - 0x26c], 0
mov dword [ebp - 0x268], 0x38
mov dword [ebp - 0x264], 0x20
mov dword [ebp - 0x260], 0x20
mov dword [ebp - 0x230], 0x20
mov dword [ebp - 0x23c], 0x18
cmp esi, 0xffffffff
jne 0x1000aff4
mov dword [eax], ecx
mov eax, dword [ebp - 0x234]
mov dword [eax + 8], edx
jmp 0x1000b00a
push 0
push 8
mov dword [ebp - 0x24], ecx
lea ecx, [ebp - 0x24]
push ecx
push eax
push esi
mov dword [ebp - 0x20], edx
call dword [sym.imp.ntdll.dll_NtWriteVirtualMemory]
mov bl, byte [ebp + 0x18]
lea eax, [ebp - 0x14]
push ebx
push eax
lea eax, [ebp - 0x2f8]
push eax
lea eax, [ebp - 0x2c]
push eax
push esi
push 0
push 0x10007b
push dword [ebp + 0x24]
call dword [sym.imp.ntdll.dll_NtCreateThread]
mov edi, eax
cmp edi, 0xc0000022
jne 0x1000b064
call fcn.100084b0
test eax, eax
jle 0x1000b074
push ebx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x2f8]
push eax
lea eax, [ebp - 0x2c]
push eax
push esi
push 0
push 0x10007b
push dword [ebp + 0x24]
call dword [sym.imp.ntdll.dll_NtCreateThread]
mov edi, eax
test edi, edi
js 0x1000b074
mov ecx, dword [ebp + 0x28]
test ecx, ecx
je 0x1000b074
mov eax, dword [ebp - 0x28]
mov dword [ecx], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
Function at 0x1000ef10
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push esi
mov esi, dword [ecx + 0x3c]
push edi
mov edi, edx
xor edx, edx
movzx eax, word [esi + ecx + 0x14]
movzx ebx, word [esi + ecx + 6]
add eax, 0x18
add eax, esi
add eax, ecx
test ebx, ebx
je 0x1000ef48
nop
mov esi, dword [eax + 0xc]
cmp esi, edi
ja 0x1000ef40
mov ecx, dword [eax + 8]
add ecx, esi
cmp ecx, edi
ja 0x1000ef4e
inc edx
add eax, 0x28
cmp edx, ebx
jl 0x1000ef30
pop edi
pop esi
xor eax, eax
pop ebx
ret
sub edi, esi
cmp edi, dword [eax + 0x10]
jae 0x1000ef48
mov eax, dword [eax + 0x14]
add eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x1000fad0
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
lea edx, [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
test esi, esi
jle 0x1000faf8
mov eax, dword [ebp + 0x14]
lea edx, [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
dec esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ecx
jmp 0x1000fb00
xorps xmm0, xmm0
movlpd qword [ebp - 0x10], xmm0
mov ecx, edx
test esi, esi
jle 0x1000fb1a
dec esi
add edx, 8
mov dword [ebp + 0x10], esi
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
jmp 0x1000fb22
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
mov ecx, edx
test esi, esi
jle 0x1000fb3c
dec esi
add edx, 8
mov dword [ebp + 0x10], esi
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
jmp 0x1000fb44
xorps xmm0, xmm0
movlpd qword [ebp - 0x20], xmm0
mov ecx, edx
test esi, esi
jle 0x1000fb5e
dec esi
add edx, 8
mov dword [ebp + 0x10], esi
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
jmp 0x1000fb66
xorps xmm0, xmm0
movlpd qword [ebp - 0x28], xmm0
mov eax, edx
mov dword [ebp - 4], 0
cdq
xorps xmm0, xmm0
mov dword [ebp - 0x40], eax
mov eax, esi
mov dword [ebp - 0x3c], edx
cdq
movlpd qword [ebp - 0x38], xmm0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
mov dword [ebp - 8], 0
mov word [ebp - 8], fs
mov eax, 0x2b
mov fs, ax
mov dword [ebp - 4], esp
and esp, 0xfffffff0
push 0x33
call 0x1000fba7
add dword [esp], 5
retf

Function at 0x1000fc60
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push str.x32dbg.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str._plugin_registercallback
push edi
call esi
push str._plugin_menuentrysetchecked
push edi
mov dword [fcn.10010bdc], eax
call esi
push str._plugin_menuaddseparator
push edi
mov dword [fcn.10010be0], eax
call esi
push str._plugin_menuaddentry
push edi
mov dword [fcn.10010be4], eax
call esi
push str._plugin_menuseticon
push edi
mov dword [fcn.10010bf0], eax
call esi
push str._plugin_menuclear
push edi
mov dword [fcn.10010bf4], eax
call esi
push str._plugin_menuadd
push edi
mov dword [0x10010be8], eax
call esi
push str._plugin_logprintf
push edi
mov dword [0x10010bec], eax
call esi
mov esi, dword [ebp + 8]
mov dword [fcn.10010bf8], eax
push 0x10012790
mov eax, dword [esi]
mov dword [0x100140ac], eax
lea eax, [esi + 0xc]
push eax
mov dword [esi + 8], 2
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x1000ab10
push 0x12
push dword [esi]
mov dword [esi + 4], 1
call dword [fcn.10010bdc]
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebp
ret
Function at 0x401010
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [ebp + 8]
push ebx
push edi
push str.RNAdminStartupEvent
xor edi, edi
push edi
push edi
push edi
mov dword [0x4423e0], eax
mov dword [ebp + 8], 0x80004005
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ebx, eax
test ebx, ebx
je 0x401073
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
sete cl
mov edi, ecx
test edi, edi
je 0x401073
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40105f
cmp byte [eax], 0
jne 0x401073
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 0x80004005
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push esi
call fcn.00401ca0
mov esi, eax
test esi, esi
je 0x4010ae
mov edx, dword [esi]
mov eax, dword [edx + 4]
push esi
call eax
mov edx, dword [ebp + 0x10]
mov ecx, dword [esi]
mov eax, dword [ecx + 0x38]
push edi
push edx
push esi
call eax
mov dword [ebp + 8], eax
test eax, eax
jl 0x4010ae
mov ecx, dword [esi]
mov edx, dword [ecx + 0x2c]
push esi
call edx
mov dword [ebp + 8], eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x34]
push esi
call ecx
test ebx, ebx
je 0x4010bd
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
jmp 0x4010c3
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x40117f
cmp dword [esi + 0x38], 0
je 0x401177
push 0x44
lea edx, [ebp - 0x5c]
push 0
push edx
call fcn.0041b530
xor eax, eax
add esp, 0xc
lea ecx, [ebp - 8]
mov dword [ebp - 0x5c], 0x44
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
call fcn.00410680
mov edi, dword [0x43744c]
push 5
mov ecx, 0x4423e4
call fcn.00412e60
push edi
push eax
lea eax, [ebp - 8]
push str.__s_s___restart
push eax
call fcn.00411430
add esp, 0x10
cmp dword [esi + 0x3c], 0
je 0x40113a
push str.__online
lea ecx, [ebp - 8]
call fcn.00410d30
cmp byte [ebp - 1], 0xff
lea eax, [ebp - 8]
jne 0x401146
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x5c]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov eax, dword [ebp - 0x18]
push eax
call ebx
mov ecx, dword [ebp - 0x14]
push ecx
call ebx
lea ecx, [ebp - 8]
call fcn.004108e0
mov edx, dword [esi]
mov eax, dword [edx + 8]
push esi
call eax
mov eax, dword [ebp + 8]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x401800
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x440ed0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x98
lea eax, [ebp - 0x9c]
push 0
push eax
call fcn.0041b530
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0xc
lea ecx, [ebp - 0xa0]
push ecx
mov dword [ebp - 0xa0], 0x9c
call esi
test eax, eax
jne 0x40185a
lea edx, [ebp - 0xa0]
push edx
mov dword [ebp - 0xa0], 0x94
call esi
cmp dword [ebp - 0x90], 2
pop esi
jne 0x40189e
mov eax, dword [ebp - 0x9c]
cmp eax, 5
ja 0x40188b
jne 0x40189e
mov eax, dword [ebp - 0x98]
test eax, eax
ja 0x40188b
jne 0x40189e
mov eax, 0x893
cmp word [ebp - 0x94], ax
jbe 0x40189e
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bc6c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0041bc6c
mov esp, ebp
pop ebp
ret
Function at 0x4026f0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push str.CSchedApp___Calling_TerminateAutoplayManager
lea ecx, [ebp - 8]
call fcn.00410900
lea eax, [ebp - 8]
push eax
push 4
call fcn.0040d770
add esp, 8
lea ecx, [ebp - 8]
call fcn.004108e0
mov esi, dword [ebp + 8]
lea ecx, [esi + 0xa0]
push ecx
call fcn.004077a0
mov eax, dword [esi + 0x98]
xor ebx, ebx
add esp, 4
cmp eax, ebx
je 0x402797
push eax
mov dword [esi + 0x94], 2
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 0x70]
or edi, 0xffffffff
cmp eax, ebx
je 0x402763
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, eax
mov edx, dword [esi + 0x98]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x70]
mov dword [esi + 0x98], ebx
cmp eax, ebx
je 0x402797
cmp edi, ebx
je 0x40278a
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x70], ebx
cmp dword [esi + 0x90], ebx
je 0x4027b1
mov ecx, dword [esi + 0x40]
push 1
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
mov dword [esi + 0x90], ebx
mov eax, dword [esi + 0x44]
cmp eax, ebx
je 0x4027c2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x44], ebx
mov eax, dword [esi + 0x4c]
cmp eax, ebx
je 0x4027d3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x4c], ebx
mov ecx, dword [esi + 0x9c]
cmp ecx, ebx
je 0x4027e2
call fcn.004186a0
mov edi, dword [esi + 0x9c]
cmp edi, ebx
je 0x402802
mov ecx, edi
call fcn.00418680
push edi
call fcn.0041b6e8
add esp, 4
mov dword [esi + 0x9c], ebx
mov eax, dword [esi + 0x58]
cmp eax, ebx
je 0x402813
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x58], ebx
mov eax, dword [esi + 0x54]
cmp eax, ebx
je 0x402824
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x54], ebx
cmp dword [esi + 0x64], ebx
je 0x402838
mov edx, dword [esi + 0x40]
push 2
push edx
call dword [sym.imp.USER32.dll_KillTimer]
mov dword [esi + 0x64], ebx
push str.wtsapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x40288f
push str.WTSUnRegisterSessionNotification
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, ebx
je 0x402885
push str.Unregistering_session_change_notifications.
lea ecx, [ebp - 8]
call fcn.00410900
lea eax, [ebp - 8]
push eax
push 2
call fcn.0040d770
add esp, 8
lea ecx, [ebp - 8]
call fcn.004108e0
mov ecx, dword [esi + 0x40]
push ecx
call edi
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push esi
call fcn.00408ae0
call fcn.0040d360
call fcn.0040fbd0
mov eax, dword [esi + 0x40]
cmp eax, ebx
je 0x4028be
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4028be
mov eax, dword [esi + 0x40]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [esi + 0x40], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4035f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp dword [esi + 0x10], ebx
je 0x4037aa
cmp dword [esi + 0x14], ebx
je 0x4037aa
mov eax, dword [str.TinkerbellLog.txt]
push edi
push eax
lea ecx, [ebp - 8]
call fcn.00410900
lea ecx, [ebp - 8]
push ecx
call fcn.0040d540
add esp, 4
lea ecx, [ebp - 8]
call fcn.004108e0
push str.Tinkerbell_EXE_started
lea ecx, [ebp - 8]
call fcn.00410900
lea edx, [ebp - 8]
push edx
push 1
call fcn.0040d770
add esp, 8
lea ecx, [ebp - 8]
call fcn.004108e0
call fcn.0040fa10
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push str.RNUpdateEventsEvent
push ebx
push 1
push ebx
call edi
push str.RNUpdateThreadEvent
push ebx
push 1
push ebx
mov dword [esi + 0x44], eax
call edi
push str.RNShutdownEventThreadEvent
push ebx
push 1
push ebx
mov dword [esi + 0x4c], eax
call edi
mov dword [esi + 0x98], eax
cmp dword [esi + 0x44], ebx
je 0x40379c
cmp dword [esi + 0x4c], ebx
je 0x40379c
cmp eax, ebx
je 0x40379c
lea eax, [esi + 0x6c]
push eax
push ebx
push esi
push 0x4034c0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x70], eax
cmp eax, ebx
je 0x40379c
mov ecx, esi
mov dword [esi + 0x94], 1
call fcn.004018b0
mov ecx, esi
call fcn.00403190
mov ecx, esi
call fcn.00408580
mov ecx, dword [esi + 0x14]
push 1
call fcn.00409290
push ebx
mov ecx, esi
call fcn.00408d50
cmp dword [esi + 0x2c], ebx
je 0x403705
push ebx
push 1
mov ecx, esi
call fcn.00408fd0
mov dword [esi + 0x2c], ebx
cmp dword [esi + 0x30], ebx
je 0x403717
push ebx
push 3
mov ecx, esi
call fcn.00408fd0
push str.wtsapi32.dll
mov dword [esi + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x40376f
push str.WTSRegisterSessionNotification
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x403768
push str.Registering_to_receive_session_change_notifications.
lea ecx, [ebp - 8]
call fcn.00410900
lea ecx, [ebp - 8]
push ecx
push 2
call fcn.0040d770
add esp, 8
lea ecx, [ebp - 8]
call fcn.004108e0
mov edx, dword [esi + 0x40]
push 0
push edx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0x44000c]
mov ecx, dword [esi + 0x40]
push 0x401310
push eax
push 1
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
mov ecx, esi
mov dword [esi + 0x90], eax
call fcn.004033b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
mov eax, 0x80004005
pop ebx
mov esp, ebp
pop ebp
ret 4
pop esi
mov eax, 0x80004005
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4039e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4039fb
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403a34
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x403a30
jmp 0x403a20
cmp esi, eax
jae 0x403a34
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x403a20
cmp esi, eax
jb 0x403a3b
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x403e70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x440ed0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
cmp edi, ebx
je 0x403f16
cmp eax, ebx
je 0x403f16
cmp esi, ebx
je 0x403f16
mov ecx, dword [ebp + 0x10]
lea edx, [ebp - 0x10]
push edx
push 0x20019
push ebx
push eax
xor eax, eax
cmp byte [ebp + 8], bl
mov dword [esi], ecx
setne al
mov dword [ebp - 0x10], ebx
add eax, 0x80000000
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403f03
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x18]
push eax
push ebx
push edi
push ecx
mov dword [ebp - 0x14], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403ef9
cmp dword [ebp - 0x18], 4
jne 0x403ef9
mov edx, dword [ebp - 0xc]
mov dword [esi], edx
mov bl, 1
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bc6c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.0041bc6c
mov esp, ebp
pop ebp
ret
Function at 0x404590
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
mov ax, word [ecx + 0x48]
push ebx
push esi
push edi
mov dword [ebp - 0x24], ecx
cmp ax, word [0x44009c]
jae 0x404772
lea edi, [ecx + 4]
mov bl, 0xff
mov eax, edi
cmp byte [edi + 7], bl
jne 0x4045be
mov eax, dword [edi]
mov ecx, 0x435f7c
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4045e3
test dl, dl
je 0x4045df
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4045e3
add eax, 2
add ecx, 2
test dl, dl
jne 0x4045c3
xor eax, eax
jmp 0x4045e8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x404757
push 0x44
lea ecx, [ebp - 0x70]
push 0
push ecx
call fcn.0041b530
xor eax, eax
add esp, 0xc
mov edx, 1
push 0x4362c0
lea ecx, [ebp - 8]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x70], 0x44
mov dword [ebp - 0x44], 0x81
mov word [ebp - 0x40], dx
call fcn.00410900
mov esi, dword [ebp + 8]
push esi
lea ecx, [ebp - 8]
call fcn.00410d90
push 0x4362c0
lea ecx, [ebp - 8]
call fcn.00410d30
push 0x4362bc
lea ecx, [ebp - 8]
call fcn.00410d30
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 8]
call fcn.00410d90
lea ecx, [ebp - 0x10]
call fcn.00410680
lea ecx, [ebp - 8]
cmp byte [ebp - 1], bl
jne 0x404677
mov ecx, dword [ebp - 8]
mov eax, edi
cmp byte [edi + 7], bl
jne 0x404680
mov eax, dword [edi]
push ecx
push eax
lea ecx, [ebp - 0x10]
push str.Running_event___s__with_command_line:__s
push ecx
call fcn.00411430
lea edx, [ebp - 0x10]
push edx
push 1
call fcn.0040d770
add esp, 0x18
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xd0]
push ecx
push esi
lea ecx, [ebp - 0xa0]
call fcn.00413440
mov ecx, eax
call fcn.00413690
mov ecx, eax
call fcn.004134d0
cmp byte [eax + 7], bl
jne 0x4046ca
mov eax, dword [eax]
lea ecx, [ebp - 8]
cmp byte [ebp - 1], bl
jne 0x4046d5
mov ecx, dword [ebp - 8]
mov edi, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 0x70]
push edx
push eax
mov eax, dword [edi + 0x3c]
neg eax
push 0
sbb eax, eax
and eax, 0x20
add eax, 0x20
push eax
push 0
push 0
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.004108e0
lea ecx, [ebp - 0xd0]
call fcn.00413500
lea ecx, [ebp - 0xa0]
call fcn.00413500
test esi, esi
je 0x404762
mov ecx, dword [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [edi]
mov eax, dword [ebp - 0x20]
mov edx, dword [edx + 0x2c]
push eax
mov ecx, edi
call edx
test eax, eax
je 0x404747
mov eax, dword [ebp - 0x20]
push eax
call esi
lea ecx, [ebp - 0x10]
call fcn.004108e0
lea ecx, [ebp - 8]
call fcn.004108e0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x10]
call fcn.004108e0
lea ecx, [ebp - 8]
call fcn.004108e0
pop edi
pop esi
mov eax, 0x80004005
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x404f50
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov edi, ecx
push str.Remove
lea ecx, [ebp - 0x10]
call fcn.00410900
mov eax, dword [edi]
mov ecx, dword [eax + 0xc]
push edi
call ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00410d30
cmp byte [ebp - 9], 0xff
lea eax, [ebp - 0x10]
jne 0x404f84
mov eax, dword [ebp - 0x10]
push eax
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
je 0x404f9f
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [edi + 0x70]
test ecx, ecx
je 0x405062
mov eax, dword [edi + 0x78]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x405062
mov edx, ecx
test ecx, ecx
jne 0x404fc4
xor eax, eax
jmp 0x404fcc
mov eax, dword [edi + 0x78]
sub eax, ecx
sar eax, 2
push ebx
push 0x2710
push 1
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
xor ebx, ebx
mov edi, edi
mov ecx, dword [edi + 0x70]
test ecx, ecx
jne 0x404feb
xor eax, eax
jmp 0x404ff3
mov eax, dword [edi + 0x78]
sub eax, ecx
sar eax, 2
movzx ecx, bx
cmp ecx, eax
jae 0x405042
mov edx, dword [edi + 0x70]
mov eax, dword [edx + ecx*4]
lea esi, [edx + ecx*4]
test eax, eax
je 0x40503c
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 4], 0x103
jne 0x40502d
mov edx, dword [esi]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
mov esi, dword [ebp - 8]
inc ebx
jmp 0x404fe0
mov edx, dword [edi + 0x78]
mov ecx, dword [edi + 0x70]
mov eax, edx
cmp eax, edx
je 0x40505e
mov edi, edi
mov ebx, dword [eax]
mov dword [ecx], ebx
add eax, 4
add ecx, 4
cmp eax, edx
jne 0x405050
mov dword [edi + 0x78], ecx
pop ebx
test esi, esi
je 0x40506d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x10]
call fcn.004108e0
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x405080
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x64], 0
jne 0x405099
mov eax, 0x80004005
pop esi
mov esp, ebp
pop ebp
ret 4
inc word [esi + 0x48]
push edi
push 8
call fcn.0041b6f3
mov edi, eax
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add esp, 4
push esi
call ecx
mov edx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0
push edi
push 0x404460
push 0
mov dword [edi], esi
mov dword [edi + 4], edx
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp + 8], eax
test eax, eax
jne 0x4050f4
push edi
call fcn.0041b6e8
add esp, 4
pop edi
mov eax, 0x80004005
pop esi
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp + 8]
push ecx
lea ecx, [esi + 0x70]
call fcn.0040ba40
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4