joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5a8690
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5ae018
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x62c930]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [0x62ded8]
cmp eax, 0xffffffff
jne 0x5a86cb
xor ebx, ebx
jmp 0x5a86d4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x30], 0
test ebx, ebx
je 0x5a8715
cmp dword [ebx + 0x30], 0
jne 0x5a875c
cmp dword [ebx + 0xc], 0
jne 0x5a8762
push 0x5a6b00
push 0x6354f0
call fcn.005a6f00
mov eax, dword [0x62ded8]
add esp, 8
cmp eax, 0xffffffff
je 0x5a8715
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x30], 0xffffffff
test ebx, ebx
je 0x5a8748
lea ecx, [ebx + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x5a8748
mov edx, dword [ebx]
push eax
mov eax, dword [edx]
mov ecx, ebx
call eax
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0xc], 0
je 0x5a87aa
mov edi, dword [ebx + 0xc]
mov eax, dword [edi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [edi]
test ecx, ecx
je 0x5a8794
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov esi, dword [edi]
mov edx, dword [esi]
mov eax, dword [edx]
push 0
mov ecx, esi
call eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebx + 0xc], 0
jne 0x5a8762
cmp dword [ebx + 0x30], 0
je 0x5a86ea
lea esi, [ebx + 0x14]
mov ecx, dword [esi + 0x18]
mov esi, dword [esi]
mov edi, dword [ecx]
test esi, esi
jne 0x5a8853
call fcn.0058465c
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x5a87d7
call fcn.0058465c
cmp dword [edi + 0x10], 0
je 0x5a8833
test esi, esi
jne 0x5a885a
call fcn.0058465c
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x5a87f2
call fcn.0058465c
cmp dword [edi + 0x18], 0
je 0x5a8833
test esi, esi
jne 0x5a885e
call fcn.0058465c
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x5a880d
call fcn.0058465c
mov ebp, dword [edi + 0x10]
test esi, esi
jne 0x5a8862
call fcn.0058465c
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x5a8825
call fcn.0058465c
mov edx, dword [ebp]
mov eax, dword [edi + 0x18]
mov edx, dword [edx + 4]
push eax
mov ecx, ebp
call edx
push edi
push esi
lea eax, [esp + 0x24]
lea esi, [ebx + 0x14]
push eax
mov ecx, esi
call fcn.0041a870
cmp dword [ebx + 0x30], 0
jne 0x5a87b7
jmp 0x5a86e4
mov eax, dword [esi]
jmp 0x5a87cd
mov eax, dword [esi]
jmp 0x5a87e8
mov eax, dword [esi]
jmp 0x5a8803
mov eax, dword [esi]
jmp 0x5a881b
Function at 0x5a8900
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push edi
mov edi, ecx
mov eax, dword [edi]
lea ecx, [eax + 0x10]
push ecx
push 4
push eax
push 0x5a8870
push 0
push 0
call fcn.005847e1
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x5a8929
pop edi
xor al, al
pop ebx
ret
mov edx, dword [edi]
push esi
add edx, 4
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov esi, dword [edi]
mov eax, dword [esi + 8]
add esi, 8
test eax, eax
je 0x5a894e
cmp eax, 0xffffffff
je 0x5a894e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], ebx
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
pop edi
mov al, 1
pop ebx
ret

Function at 0x5a8d40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5ae0c8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x62c930]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call fcn.00407560
mov dword [esi], vtable.boost::gregorian::bad_day_of_month.0
mov dword [esp + 0x18], 0
test edi, edi
je 0x5a8d8a
add edi, 0x28
jmp 0x5a8d8c
xor edi, edi
mov dword [esi + 0x28], vtable.boost::exception.0
mov ecx, dword [edi + 4]
mov dword [esi + 0x2c], ecx
test ecx, ecx
je 0x5a8da4
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 8]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0xc]
mov dword [esi + 0x34], ecx
mov edx, dword [edi + 0x10]
mov dword [esi + 0x38], edx
mov dword [esi], vtable.boost::exception_detail::error_info_injector_struct_boost::gregorian::bad_day_of_month_.1.0
mov dword [esi + 0x28], vtable.boost::exception_detail::error_info_injector_struct_boost::gregorian::bad_day_of_month_.0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x5a8e80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5ae0c8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x62c930]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call fcn.00407560
mov dword [esi], vtable.boost::gregorian::bad_year.0
mov dword [esp + 0x18], 0
test edi, edi
je 0x5a8eca
add edi, 0x28
jmp 0x5a8ecc
xor edi, edi
mov dword [esi + 0x28], vtable.boost::exception.0
mov ecx, dword [edi + 4]
mov dword [esi + 0x2c], ecx
test ecx, ecx
je 0x5a8ee4
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 8]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0xc]
mov dword [esi + 0x34], ecx
mov edx, dword [edi + 0x10]
mov dword [esi + 0x38], edx
mov dword [esi], vtable.boost::exception_detail::error_info_injector_struct_boost::gregorian::bad_year_.1.0
mov dword [esi + 0x28], vtable.boost::exception_detail::error_info_injector_struct_boost::gregorian::bad_year_.0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x5a8f20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5ae0c8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x62c930]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call fcn.00407560
mov dword [esi], vtable.boost::gregorian::bad_month.0
mov dword [esp + 0x18], 0
test edi, edi
je 0x5a8f6a
add edi, 0x28
jmp 0x5a8f6c
xor edi, edi
mov dword [esi + 0x28], vtable.boost::exception.0
mov ecx, dword [edi + 4]
mov dword [esi + 0x2c], ecx
test ecx, ecx
je 0x5a8f84
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 8]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0xc]
mov dword [esi + 0x34], ecx
mov edx, dword [edi + 0x10]
mov dword [esi + 0x38], edx
mov dword [esi], vtable.boost::exception_detail::error_info_injector_struct_boost::gregorian::bad_month_.1.0
mov dword [esi + 0x28], vtable.boost::exception_detail::error_info_injector_struct_boost::gregorian::bad_month_.0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0xa75904
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi]
mov ecx, dword [esi + 4]
test eax, eax
jle 0xa7595e
push edi
mov edi, dword [ebp + 0x10]
sub dword [ebp + 0xc], edi
mov dword [ebp + 8], eax
mov edi, edi
inc bl
lea edi, [edi + 1]
movzx ebx, bl
mov dl, byte [esi + ebx + 8]
add cl, dl
movzx ecx, cl
mov al, byte [esi + ecx + 8]
mov byte [esi + ebx + 8], al
add al, dl
movzx eax, al
mov byte [esi + ecx + 8], dl
movzx edx, byte [eax + esi + 8]
mov eax, dword [ebp + 0xc]
xor dl, byte [eax + edi - 1]
dec dword [ebp + 8]
mov byte [edi - 1], dl
jne 0xa75924
mov eax, dword [ebp + 0x14]
pop edi
mov dword [esi], ebx
mov dword [esi + 4], ecx
pop esi
pop ebx
pop ebp
ret
Function at 0x10004480
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0
push eax
push 0x10021bc0
push 0
push 0
mov dword [esp + 0x20], eax
call fcn.10052453
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x100044ae
xor al, al
movzx eax, al
pop esi
ret 4
lea eax, [esp + 8]
call fcn.10021dc0
mov dword [eax], esi
mov al, 1
movzx eax, al
pop esi
ret 4

Function at 0x100048d0
Capabilities:
Delete registry value

Disassembly:
sub esp, 0xd0
mov eax, dword [0x10076658]
xor eax, esp
mov dword [esp + 0xc8], eax
push ebx
push esi
mov esi, dword [esp + 0xe0]
lea eax, [esp + 0x14]
push edi
push eax
call fcn.100050b0
xor edi, edi
add esp, 4
cmp dword [esp + 0x28], edi
jne 0x10004921
cmp dword [esp + 0x2c], 8
jb 0x10004917
mov ecx, dword [esp + 0x18]
push ecx
call fcn.1004076b
add esp, 4
mov eax, 0x10d2
jmp 0x10004a54
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edi
cmp esi, edi
je 0x10004939
lea edx, [esp + 0xc]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov eax, dword [esp + 0xec]
mov ecx, dword [esp + 0xe8]
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0xe8]
push edx
push eax
push ecx
lea edx, [esp + 0x64]
push 0x10064b5c
push edx
call fcn.10040989
lea eax, [esp + 0x6c]
add esp, 0x1c
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x10004974
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x1c]
mov ebx, eax
push edx
xor eax, eax
call fcn.10005640
mov esi, eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ebx, 1
mov eax, esi
mov dword [esp + 0x1c], edi
call fcn.10005640
cmp esi, 0xffffffff
je 0x10004a3b
cmp eax, 0xffffffff
je 0x10004a3b
sub eax, esi
mov ecx, esi
inc eax
lea esi, [esp + 0x18]
call fcn.10003520
cmp dword [esp + 0x28], 2
lea edi, [ebx + 7]
ja 0x10004a1e
lea esi, [esp + 0x34]
call fcn.1001e9e0
cmp dword [eax + 0x14], edi
jb 0x100049e8
mov eax, dword [eax]
push str.SchedulerQueue
push eax
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
lea ecx, [esp + 0x34]
call fcn.100031a0
call fcn.10005390
cmp dword [esp + 0x2c], edi
jb 0x10004a1a
mov edx, dword [esp + 0x18]
push edx
call fcn.1004076b
add esp, 4
xor eax, eax
jmp 0x10004a54
lea ecx, [esp + 0x18]
call fcn.100052d0
test al, al
jne 0x10004a02
lea ecx, [esp + 0x18]
call fcn.100031a0
mov eax, 5
jmp 0x10004a54
cmp dword [esp + 0x2c], 8
jb 0x10004a4f
mov eax, dword [esp + 0x18]
push eax
call fcn.1004076b
add esp, 4
mov eax, 0x57
mov ecx, dword [esp + 0xd4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10040061
add esp, 0xd0
ret 0x10
Function at 0x100050b0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x10059040
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x10076658]
xor eax, esp
mov dword [esp + 0x44], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10076658]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x6c]
xor ebx, ebx
lea esi, [esp + 0x20]
mov dword [esp + 0x18], ebx
call fcn.1001e9e0
mov esi, 8
cmp dword [eax + 0x14], esi
jb 0x10005101
mov eax, dword [eax]
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
setne byte [esp + 0x17]
cmp dword [esp + 0x34], esi
jb 0x10005132
mov edx, dword [esp + 0x20]
push edx
call fcn.1004076b
add esp, 4
cmp byte [esp + 0x17], bl
je 0x1000517c
mov eax, 7
xor ecx, ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], cx
mov dword [esp + 0x64], ebx
xor edx, edx
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x10], ebx
lea edi, [esp + 0x20]
mov esi, ebp
mov word [ebp], dx
call fcn.10003210
cmp dword [esp + 0x34], 8
jb 0x100052a4
mov eax, dword [esp + 0x20]
push eax
jmp 0x1000529c
mov edx, dword [esp + 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x1c]
push ecx
push ebx
push ebx
push ebx
push str.SchedulerQueue
push edx
call esi
test eax, eax
je 0x100051c3
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 7
xor ecx, ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], cx
mov dword [esp + 0x64], 1
jmp 0x10005150
mov ecx, dword [esp + 0x1c]
add ecx, 0x10
push ecx
call fcn.1003f6f0
mov edx, dword [esp + 0x20]
add edx, 0x10
push edx
mov edi, eax
push ebx
push edi
call fcn.1004acf0
mov ecx, dword [esp + 0x28]
add dword [esp + 0x2c], 0x10
add esp, 0x10
lea eax, [esp + 0x1c]
push eax
push edi
push ebx
push ebx
push str.SchedulerQueue
push ecx
call esi
test eax, eax
je 0x10005236
push edi
call fcn.10040a88
mov edx, dword [esp + 0x1c]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 7
xor ecx, ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], cx
mov dword [esp + 0x64], 2
jmp 0x10005150
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x1c]
shr eax, 1
xor edx, edx
push eax
mov eax, edi
lea esi, [esp + 0x40]
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], dx
call fcn.10003430
push edi
mov dword [esp + 0x68], 3
call fcn.10040a88
xor eax, eax
mov edi, esi
mov dword [ebp + 0x14], 7
mov dword [ebp + 0x10], ebx
add esp, 4
mov esi, ebp
mov word [ebp], ax
call fcn.10003210
cmp dword [esp + 0x50], 8
jb 0x100052a4
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.1004076b
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.10040061
add esp, 0x54
ret
Function at 0x100052d0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x24
mov eax, dword [0x10076658]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
push edi
lea esi, [esp + 0xc]
mov edi, ecx
call fcn.1001e9e0
mov esi, 8
cmp dword [eax + 0x14], esi
jb 0x100052f7
mov eax, dword [eax]
push ebx
lea ecx, [esp + 0xc]
push ecx
push 0x2001b
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
setne bl
cmp dword [esp + 0x24], esi
jb 0x10005328
mov edx, dword [esp + 0x10]
push edx
call fcn.1004076b
add esp, 4
test bl, bl
pop ebx
jne 0x1000535e
mov eax, dword [edi + 0x10]
cmp dword [edi + 0x14], esi
jb 0x10005337
mov edi, dword [edi]
mov ecx, dword [esp + 8]
add eax, eax
push eax
push edi
push 7
push 0
push str.SchedulerQueue
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x10005371
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.10040061
add esp, 0x24
ret
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x28]
pop edi
pop esi
xor ecx, esp
mov al, 1
call fcn.10040061
add esp, 0x24
ret

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

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov esi, ebx
sub esi, dword [esp + 0x10]
push edi
sub esi, 4
mov edi, 0x80000002
sar esi, 2
call fcn.10005920
mov edi, 0x80000001
mov ebp, eax
call fcn.10005920
mov edi, eax
lea eax, [esi + esi*2]
add eax, eax
add eax, eax
cmp dword [eax + 0x100694e4], 0x80000002
mov ecx, ebp
je 0x10005853
mov ecx, edi
mov edx, dword [ebx]
lea esi, [eax + 0x100694e0]
mov eax, dword [esi]
mov dword [esp + 0x18], edx
test ecx, ecx
je 0x10005887
cmp edx, 0xfffffffe
jne 0x10005874
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x10005887
push 4
lea edx, [esp + 0x1c]
push edx
push 4
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ebx
push edi
mov eax, esi
mov ecx, ebp
call fcn.100059d0
add esp, 8
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
push ebp
call edi
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push str.silentipmode
push eax
call edi
test eax, eax
je 0x10005909
mov ecx, dword [esi]
push str.advancedheuristics
push ecx
call edi
test eax, eax
je 0x10005909
mov edx, dword [esi]
push str.detectpup
push edx
call edi
test eax, eax
je 0x10005909
mov eax, dword [esi]
push str.detectpum
push eax
call edi
test eax, eax
je 0x10005909
mov ecx, dword [esi]
push str.detectp2p
push ecx
call edi
test eax, eax
je 0x10005909
mov edx, dword [esi]
push str.autoquarantine
push edx
call edi
test eax, eax
je 0x10005909
mov eax, dword [esi]
push str.autoquarantinenotify
push eax
call edi
test eax, eax
jne 0x1000590e
call fcn.10005b30
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x100059d0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov esi, eax
mov eax, dword [esi]
mov dword [esp + 0x10], 4
test edi, edi
jne 0x100059f8
or eax, 0xffffffff
jmp 0x10005a1f
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push 0
push eax
push edi
call ebx
test eax, eax
jne 0x10005a14
mov eax, dword [esp + 0x14]
jmp 0x10005a1f
xor ecx, ecx
cmp eax, 2
setne cl
lea eax, [ecx - 2]
cmp dword [esi + 4], 0x80000002
je 0x10005ad4
cmp eax, 0xfffffffe
je 0x10005a3a
cmp eax, 0xffffffff
jne 0x10005ad4
mov edi, dword [esp + 0x1c]
mov eax, dword [esi]
mov dword [esp + 0x14], 4
test edi, edi
jne 0x10005a51
or ecx, 0xffffffff
jmp 0x10005a77
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push eax
push edi
call ebx
test eax, eax
jne 0x10005ac7
mov eax, dword [esp + 0x10]
mov ecx, eax
cmp eax, 0xfffffffe
je 0x10005a77
cmp eax, 0xffffffff
jne 0x10005a7a
mov eax, dword [esi + 8]
mov dword [ebp], eax
cmp eax, 0xfffffffe
je 0x10005a87
cmp eax, 0xffffffff
jne 0x10005a8e
mov dword [ebp], 0
cmp ecx, 0xfffffffe
jne 0x10005b27
mov eax, dword [esi + 8]
cmp eax, ecx
je 0x10005b27
mov esi, dword [esi]
mov dword [esp + 0x14], eax
test edi, edi
je 0x10005b27
push 4
lea edx, [esp + 0x18]
push edx
push 4
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
xor ecx, ecx
cmp eax, 2
setne cl
add ecx, 0xfffffffe
jmp 0x10005a77
cmp eax, 0xfffffffe
je 0x10005ae3
cmp eax, 0xffffffff
je 0x10005ae3
mov dword [ebp], eax
jmp 0x10005ae9
mov ecx, dword [esi + 8]
mov dword [ebp], ecx
mov ecx, dword [ebp]
cmp ecx, 0xfffffffe
je 0x10005af6
cmp ecx, 0xffffffff
jne 0x10005afd
mov dword [ebp], 0
cmp eax, 0xfffffffe
jne 0x10005b27
mov eax, dword [esi + 8]
cmp eax, 0xfffffffe
je 0x10005b27
mov esi, dword [esi]
mov dword [esp + 0x14], eax
test edi, edi
je 0x10005b27
push 4
lea eax, [esp + 0x18]
push eax
push 4
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x10007930
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x10058f0b
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x10076658]
xor eax, esp
mov dword [esp + 0x22c], eax
push esi
mov eax, dword [0x10076658]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
push 0x104
lea eax, [esp + 0x2c]
push eax
mov esi, ecx
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x100079bb
xor ecx, ecx
lea eax, [esp + 0x28]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100079a0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x2c]
call fcn.10003430
jmp 0x100079f3
lea ecx, [esp + 0xc]
call fcn.100078a0
push eax
mov eax, str.System32
mov ecx, esi
mov dword [esp + 0x244], 0
call fcn.10003910
add esp, 4
cmp dword [esp + 0x20], 8
jb 0x100079f3
mov edx, dword [esp + 0xc]
push edx
call fcn.1004076b
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.10040061
add esp, 0x23c
ret

Function at 0x10007a20
Capabilities:
Get common file path
Get startup folder

Disassembly:
sub esp, 0x214
mov eax, dword [0x10076658]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
lea eax, [esp + 8]
push eax
push 0
push 0
push ecx
push 0
mov esi, edx
mov dword [esp + 0x18], 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
test eax, eax
jne 0x10007aa1
xor edx, edx
lea eax, [esp + 8]
mov word [esi], dx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10007a70
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xc]
call fcn.10003430
mov eax, esi
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.10040061
add esp, 0x214
ret
xor eax, eax
mov word [esi], ax
push eax
or eax, 0xffffffff
mov ecx, edi
mov edx, esi
call fcn.10003280
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.10040061
add esp, 0x214
ret

Function at 0x10007b10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
mov esi, eax
cmp dword [esi + 0x14], 8
jb 0x10007b1b
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10007b65
mov ecx, dword [esi + 0x14]
cmp ecx, 8
jb 0x10007b33
mov eax, dword [esi]
jmp 0x10007b35
mov eax, esi
cmp word [eax], 0x5c
jne 0x10007b4d
cmp ecx, 8
jb 0x10007b42
mov esi, dword [esi]
cmp word [esi + 2], 0x5c
jne 0x10007b4d
xor al, al
pop esi
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 5
je 0x10007b61
call esi
cmp eax, 0x20
jne 0x10007b77
mov al, 1
pop esi
ret
test al, 0x10
jne 0x10007b77
test eax, 0x400
jne 0x10007b77
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x10008660
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10056c68
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push esi
mov eax, dword [0x10076658]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x10], esi
push 8
mov dword [esp + 0x24], esi
call fcn.100407c7
add esp, 4
cmp eax, esi
je 0x1000870c
mov dword [esp + 0x20], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x20]
mov dword [ecx], eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
lea edx, [esp + 0xc]
mov dword [esp + 0x40], esi
push edx
mov dword [esp + 0x10], 0x100699f0
call fcn.10008c50
push edi
lea ecx, [esp + 0x24]
call fcn.10008a10
lea esi, [esp + 0x20]
call fcn.1002f540
mov eax, dword [esp + 0x20]
push eax
call fcn.1004076b
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x3c
ret
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], esi
call fcn.10040109
push 0x1006d4b8
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], vtable.std::bad_alloc.0
call fcn.100424f0
int3

Function at 0x1000b0b0
Capabilities:
Accept command line arguments
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x1005968e
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10076658]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov eax, dword [0x10076658]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebx, 7
xor esi, esi
xor eax, eax
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x18], esi
mov dword [esp + 0xc], edi
mov word [edi + 8], ax
mov dword [esp + 0x38], esi
mov dword [edi + 0x24], esi
mov dword [edi + 0x28], esi
mov dword [edi + 0x2c], esi
mov byte [esp + 0x38], 1
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor ecx, ecx
mov word [esp + 0x10], cx
mov ecx, eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], esi
lea ebx, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, si
jne 0x1000b123
sub ecx, ebx
sar ecx, 1
push ecx
lea esi, [esp + 0x14]
call fcn.10003430
mov eax, esi
mov ecx, edi
mov byte [esp + 0x38], 2
call fcn.1000b290
cmp dword [esp + 0x24], 8
jb 0x1000b15e
mov edx, dword [esp + 0x10]
push edx
call fcn.1004076b
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.10040061
add esp, 0x30
ret