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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10057a25
mov eax, dword fs:[0]
push eax
sub esp, 0x81c
mov eax, dword [0x10083a30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, ecx
mov edx, dword [edi]
mov dword [ebp - 0x814], eax
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x820], edi
call eax
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x824]
push ecx
lea edx, [ebp - 0x828]
push edx
add eax, 4
push eax
call fcn.100483d0
add esp, 0xc
test eax, eax
jne 0x1001253e
mov ecx, dword [edi + 4]
push 0x1005f994
push ecx
call fcn.100483d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x10012672
mov edx, dword [edi + 4]
mov ebx, dword [edx + 0x16]
mov esi, dword [sym.imp.msvcr100.dll_fseek]
push 2
push eax
push ebx
call esi
add esp, 0xc
test eax, eax
je 0x10012548
mov eax, dword [edi]
mov edx, dword [eax + 0x10]
mov ecx, edi
call edx
mov eax, 0x34
jmp 0x10012674
mov esi, 0x30
jmp 0x10012672
push ebx
call dword [sym.imp.msvcr100.dll_ftell]
push 0
push 0
push ebx
mov edi, eax
call esi
add esp, 0x10
test eax, eax
je 0x10012576
mov ecx, dword [ebp - 0x820]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
mov eax, 0x34
jmp 0x10012674
mov eax, dword [ebp - 0x814]
push eax
lea ecx, [ebp - 0x81c]
call fcn.100483d0
mov ecx, dword [ebp - 0x818]
push 0x1005f9ec
push ecx
mov dword [ebp - 4], 0
call fcn.100483d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x10012653
mov edx, dword [ebp - 0x818]
mov eax, dword [edx + 0x16]
mov dword [ebp - 0x814], eax
test edi, edi
je 0x10012611
mov esi, edi
cmp edi, 0x800
jbe 0x100125cf
mov esi, 0x800
push ebx
push 1
lea ecx, [ebp - 0x810]
push esi
push ecx
call dword [sym.imp.msvcr100.dll_fread]
add esp, 0x10
test eax, eax
je 0x10012692
mov edx, dword [ebp - 0x814]
push edx
push 1
lea eax, [ebp - 0x810]
push esi
push eax
call dword [sym.imp.msvcr100.dll_fwrite]
add esp, 0x10
test eax, eax
je 0x10012692
sub edi, esi
jne 0x100125c0
lea ecx, [ebp - 0x81c]
call sym.ScCore.dll_public_virtual:_int___thiscall_ScCore::File::close_void_
mov esi, eax
test esi, esi
jne 0x10012653
mov ecx, dword [ebp - 0x818]
add ecx, 4
push ecx
call fcn.100483d0
mov edx, dword [ebp - 0x824]
mov eax, dword [ebp - 0x828]
mov ecx, dword [ebp - 0x818]
push edx
push eax
add ecx, 4
push ecx
call fcn.10035870
add esp, 0x10
mov esi, eax
mov ecx, dword [ebp - 0x820]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
lea ecx, [ebp - 0x81c]
mov dword [ebp - 4], 0xffffffff
call fcn.100483d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10054c72
mov esp, ebp
pop ebp
ret 4
mov esi, 0x34
jmp 0x10012653
Function at 0x100374a0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
test esi, esi
jne 0x100374cb
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
mov eax, dword [ebp - 8]
push eax
mov eax, esi
call fcn.100483d0
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
je 0x100374f9
push eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
jne 0x100374f2
mov eax, esi
mov dword [ebp - 4], eax
jmp 0x100374f5
mov eax, dword [ebp - 4]
test eax, eax
jne 0x1003750b
lea ecx, [ebp - 8]
push ecx
push 0x10037470
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10037510
Capabilities:
Get graphical window text
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
mov eax, dword [0x10083a30]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.100483d0
mov dword [ebp - 0x188], eax
test eax, eax
je 0x1003768b
push ebx
push esi
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x10037565
mov edi, dword [sym.imp.USER32.dll_GetWindow]
mov ebx, dword [sym.imp.USER32.dll_GetParent]
push 4
push esi
call edi
test eax, eax
jne 0x10037561
push esi
call ebx
test eax, eax
je 0x10037565
mov esi, eax
jmp 0x10037551
push 0x100
lea eax, [ebp - 0x184]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x1003767b
push 0x80
lea ecx, [ebp - 0x84]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetClassNameA]
test eax, eax
je 0x1003767b
lea edx, [ebp - 0x184]
push edx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, esi
jne 0x1003767b
test esi, esi
je 0x1003767b
push 0xfffffffffffffffc
push esi
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 0
push esi
mov ebx, eax
call edi
mov ecx, dword [ebp - 0x188]
push 0
push ecx
mov esi, eax
call edi
mov edi, eax
test ebx, ebx
je 0x1003767b
cmp edi, esi
je 0x1003767b
mov ebx, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push esi
push edi
call ebx
test eax, eax
je 0x10037628
mov edx, dword [ebp - 0x188]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
push esi
push edi
call ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10054c72
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.USER32.dll_SystemParametersInfoA]
push 0
lea eax, [ebp - 0x18c]
push eax
push 0
push 0x2000
call esi
push 2
lea ecx, [ebp - 0x190]
push ecx
push 0
push 0x2001
mov dword [ebp - 0x190], 0
call esi
mov edx, dword [ebp - 0x188]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 2
lea eax, [ebp - 0x18c]
push eax
push 0
push 0x2001
call esi
mov ecx, dword [ebp - 0x188]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10054c72
mov esp, ebp
pop ebp
ret
Function at 0x10037780
Capabilities:
Resume thread

Disassembly:
cmp dword [ecx + 0xc], 0
jne 0x10037790
mov eax, dword [ecx + 4]
push eax
call dword [sym.imp.kernel32.dll_ResumeThread]
ret

Function at 0x100377b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005b5b3
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x10083a30]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [esi], vtable.ScCore::Thread.0
mov dword [esi + 0xc], edi
mov byte [esi + 0x10], 1
call fcn.100483d0
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
push 4
push esi
push sym.ScCore.dll_private:_static_unsigned_int___stdcall_ScCore::Thread::go_void__
push edi
push edi
mov dword [ebp - 0x18], edx
call dword [sym.imp.msvcr100.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x10037839
mov dword [esi + 0xc], 0x20
mov dword [esi + 8], edi
mov dword [esi + 4], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10]
mov dword [esi + 8], ecx
mov eax, dword [0x10083aa8]
cmp eax, edi
jne 0x1003784d
call sym.ScCore.dll_public:_static_class_ScCore::Context____cdecl_ScCore::Context::get_void_
mov edx, dword [ebp - 0x18]
mov dword [eax + 0x52], ebx
mov dword [eax + 0x56], edx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10037b30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x10083674]
cmp eax, 0xffffffff
je 0x10037b80
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x10037b71
cmp esi, dword [0x10083be8]
jne 0x10037b5a
mov dword [0x10083be8], 0
mov ecx, esi
call fcn.10020480
mov ecx, esi
call fcn.100483d0
push esi
call sub.msvcr100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [0x10083674]
push 0
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
pop esi
ret

Function at 0x10037b90
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x10083be8]
test eax, eax
jne 0x10037bfa
mov eax, dword [0x10083674]
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
jne 0x10037bfa
push esi
push 0x16c
call sub.msvcr100.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x10037bc6
mov ecx, eax
call fcn.100483d0
mov esi, eax
jmp 0x10037bc8
xor esi, esi
cmp byte [0x10083be4], 0
jne 0x10037be2
mov ecx, esi
mov dword [0x10083be8], esi
call fcn.10020740
mov eax, esi
pop esi
ret
mov ecx, dword [0x10083674]
push esi
push ecx
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov ecx, esi
call fcn.10020740
mov eax, esi
pop esi
ret

Function at 0x100437a0
Capabilities:
Encode data using xor

Disassembly:
movzx ecx, word [edx]
xor eax, eax
test cx, cx
je 0x100437c6
lea ebx, [ebx]
imul eax, eax, 0xf4243
movzx ecx, cx
add edx, 2
xor eax, ecx
movzx ecx, word [edx]
test cx, cx
jne 0x100437b0
ret
Function at 0x4014a0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x43e5f2
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x455d50]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x220]
mov dword fs:[0], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1e]
mov dword [esp + 0x10], 0
push ecx
mov dword [esp + 0x1c], esi
mov word [esp + 0x20], ax
call fcn.0042ace0
add esp, 0xc
lea edx, [esp + 4]
push edx
xor edx, edx
cmp byte [esp + 0x234], dl
lea eax, [esp + 0x18]
push eax
setne dl
lea ecx, [esp + 0x14]
push ecx
push str.InstallDir
push str.SoftwareAdvancedSystemRepairPro
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], 0x104
add edx, 0x80000001
push edx
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov eax, dword [esp + 4]
xor ecx, ecx
shr eax, 1
mov word [esp + eax*2 + 0x14], cx
push esi
lea ecx, [esp + 0x18]
call fcn.00411fe0
mov dword [esp + 0x228], 0
mov dword [esp + 8], 1
mov eax, esi
mov ecx, dword [esp + 0x220]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.00404b64
add esp, 0x228
ret
Function at 0x402a10
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x43eaf8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push edi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, dword [esp + 0x20]
push edi
call fcn.0041b1c0
mov dword [esp + 0x18], 0
lea eax, [esp + 0xc]
push eax
call fcn.0040b010
add esp, 4
mov byte [esp + 0x18], 1
call fcn.0040ee80
mov byte [esp + 0x18], 0
lea ecx, [esp + 0xc]
call fcn.0040d9c0
mov eax, dword [edi]
push eax
xor bl, bl
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x402a7b
mov bl, 1
mov eax, dword [edi]
push 0
push 0
push 4
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x402a9f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x402ad7
mov ecx, dword [edi]
call fcn.004190b0
push 0
call fcn.00429c73
add esp, 4
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push ecx
mov ecx, 0x44a148
call fcn.00411fe0
mov byte [esp + 0x20], 2
push edi
mov byte [esp + 0x24], 0
call fcn.00421830
mov dword [esp + 0x18], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x10
ret 4

Function at 0x404b64
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x455d50]
jne 0x404b6e
repz ret
jmp fcn.0042ea5f

Function at 0x406040
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x43ca28
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push esi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov dword [esp + 0x74], 0
push 0x44
lea eax, [esp + 0x20]
push 0
push eax
call fcn.0042ace0
xor eax, eax
mov ecx, 1
xor edx, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x88]
add esp, 0xc
mov dword [esp + 0x1c], 0x44
mov dword [esp + 0x48], ecx
mov word [esp + 0x4c], dx
cmp dword [eax - 4], ecx
jle 0x4060c8
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x80]
push ecx
call fcn.00403e60
mov eax, dword [esp + 0x7c]
lea edx, [esp + 0xc]
push edx
lea ecx, [esp + 0x20]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4060ff
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
mov dword [esp + 0x74], 0xffffffff
lea ecx, [esp + 0x7c]
call fcn.0040d9c0
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x70
ret
Function at 0x406690
Capabilities:
Enumerate processes
Terminate process
Terminate process by name

Disassembly:
push 0xffffffffffffffff
push 0x43e6cc
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x455d50]
xor eax, esp
mov dword [esp + 0x23c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x254]
mov dword fs:[0], eax
xor ebx, ebx
push 0x228
lea eax, [esp + 0x2c]
push ebx
push eax
mov dword [esp + 0x30], ebx
call fcn.0042ace0
add esp, 0xc
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x25c], ebx
cmp edi, 0xffffffff
je 0x40686b
lea ecx, [esp + 0x24]
push ecx
push edi
mov dword [esp + 0x2c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40686b
mov ebp, dword [sym.imp.USER32.dll_SendMessageTimeoutW]
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x4c]
call fcn.00411fe0
mov byte [esp + 0x25c], 1
mov edx, dword [esp + 0x14]
mov esi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x406760
mov ecx, esi
lea eax, [esp + 0x14]
call fcn.004199d0
mov edx, dword [esp + 0x14]
lea eax, [esi + 1]
push eax
push edx
call fcn.0042a825
add esp, 8
cmp esi, ebx
jl 0x4068ab
mov eax, dword [esp + 0x14]
cmp esi, dword [eax - 8]
jg 0x4068ab
mov dword [eax - 0xc], esi
mov edx, dword [esp + 0x14]
xor ecx, ecx
mov word [edx + esi*2], cx
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], ebx
jl 0x406831
push str.advancedsystemrepairpro.exe
push eax
call fcn.0042a5b3
add esp, 8
cmp eax, ebx
je 0x406831
sub eax, dword [esp + 0x14]
sar eax, 1
cmp eax, 0xffffffff
je 0x406831
mov eax, dword [esp + 0x2c]
push eax
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [esp + 0x20], esi
mov byte [esp + 0x25c], 2
cmp esi, ebx
je 0x40681e
push 0x448bc4
push ebx
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, ebx
je 0x406807
lea ecx, [esp + 0x18]
push ecx
push 0x1388
push 1
push ebx
push ebx
push 0x864
push eax
mov dword [esp + 0x34], ebx
call ebp
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x40681e
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [esp + 0x25c], 1
cmp esi, ebx
je 0x406831
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0x25c], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406858
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x24]
push ecx
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x406723
mov dword [esp + 0x25c], 0xffffffff
cmp edi, ebx
je 0x406881
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [esp + 0x254]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x23c]
xor ecx, esp
call fcn.00404b64
add esp, 0x24c
ret
push 0x80070057
call fcn.00418dc0
int3
Function at 0x406ca0
Capabilities:
Access peb ldr_data
Get token privileges

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43cffa
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
push 0x28
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x406d82
lea ecx, [esp + 0x14]
push ecx
call fcn.004016b0
mov dword [esp + 0x38], 0
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
sub edx, esi
jne 0x406d15
call fcn.0042a2d1
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
sub eax, esi
push eax
push esi
push 3
push edx
mov dword [esp + 0x24], eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x406d65
xor eax, eax
cmp dword [esi], eax
jbe 0x406d4e
lea ecx, [esi + 0xc]
mov dword [ecx], 2
inc eax
add ecx, 0xc
cmp eax, dword [esi]
jb 0x406d40
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0
push 0
push eax
push esi
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x38], 0xffffffff
lea eax, [esp + 0x14]
push eax
call fcn.0040a1d0
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x407bf0
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ecx
push esi
mov esi, eax
mov eax, SysReAllocString
mov dword [esp + 4], 0
test ecx, ecx
je 0x407c2a
push 0
lea eax, [esp + 8]
push eax
push 0
push 2
push 0
push 0
push 0
push ecx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x407c80
mov eax, dword [esp + 4]
test edi, edi
je 0x407c55
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
push ecx
push edi
push edx
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
test esi, esi
je 0x407c73
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
pop ecx
ret

Function at 0x407f60
Capabilities:
Create process on windows
Terminate process

Disassembly:
cmp byte [0x45a376], 0
mov byte [0x45a374], 1
push 1
je 0x407f81
mov eax, dword [0x45a3b0]
push 0
push 0x4485d8
push eax
jmp 0x407f91
mov ecx, dword [0x45a4b0]
mov edx, dword [0x45a3b0]
push ecx
push 0
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7d0
call esi
cmp byte [0x45a376], 0
je 0x407fbc
push 0xbb8
call esi
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret
Function at 0x408000
Capabilities:
Set registry value

Disassembly:
push ecx
push ebx
push 0
lea eax, [esp + 8]
push eax
push 0
push 2
push 0
push 0
push 0
push 0x44a178
push SysReAllocString
xor bl, bl
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40805c
mov edx, dword [esp + 4]
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
push 0x44a174
push eax
push edx
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
test eax, eax
jne 0x40805c
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov bl, 1
mov eax, dword [esp + 4]
test eax, eax
je 0x40806b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
pop ecx
ret

Function at 0x408610
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x43cb98
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x455d50]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
push edi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [esp + 0x40]
xor ecx, ecx
mov word [esp + 0x14], cx
mov ecx, eax
mov ebx, edx
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x408665
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x14]
call fcn.004231c0
mov dword [esp + 0x38], 0
push 1
mov eax, 0x448b5c
mov ecx, esi
call fcn.00416270
mov ecx, eax
mov eax, ebx
lea esi, [eax + 2]
jmp 0x4086a0
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4086a0
sub eax, esi
sar eax, 1
push eax
mov eax, ebx
call fcn.00416270
cmp dword [esp + 0x28], 8
mov ecx, dword [esp + 0x14]
jae 0x4086c6
lea ecx, [esp + 0x14]
test edi, edi
je 0x4086e5
mov eax, edi
lea esi, [eax + 2]
nop
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4086d0
sub eax, esi
sar eax, 1
lea eax, [eax + eax + 2]
jmp 0x4086e7
xor eax, eax
push 1
push eax
xor eax, eax
call fcn.00407bf0
add esp, 8
test eax, eax
sete bl
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x28], 8
jb 0x408715
mov edx, dword [esp + 0x14]
push edx
call fcn.00405c1a
add esp, 4
xor eax, eax
mov word [esp + 0x14], ax
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov al, bl
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00404b64
add esp, 0x2c
ret