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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58aab8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [ebp - 4], esi
push esi
push 0x80
push 3
push esi
push 1
push bind
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x1c], edi
push 0x1fa0
call fcn.0053f875
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 1
cmp edi, esi
jne 0x46fdf0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x46fdd4
and eax, 0xffff
or eax, 0x80070000
push str.hFile
push eax
lea ecx, [ebp - 0x3c]
call fcn.00434a80
push 0x5cc0a0
lea ecx, [ebp - 0x3c]
push ecx
call fcn.00554cbc
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x14], esi
push esi
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [ebp - 0x60]
call fcn.0046cff0
mov byte [ebp - 4], 2
lea esp, [esp]
push 0
lea edx, [ebp - 0x20]
push edx
mov eax, 0xfd0
sub eax, esi
add eax, eax
push eax
mov ecx, dword [ebp - 0x18]
lea edx, [ecx + esi*2]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x20]
mov ebx, eax
shr ebx, 1
add ebx, esi
add dword [ebp - 0x24], eax
test eax, eax
je 0x46febd
xor esi, esi
mov dword [ebp - 0x14], esi
mov edi, ebx
sub edi, esi
mov eax, dword [ebp - 0x18]
lea eax, [eax + esi*2]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp + 0xc]
push ecx
push edi
push eax
lea ecx, [ebp - 0x60]
mov edx, dword [ebp - 0x60]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0xffffffff
je 0x46fe85
test eax, eax
je 0x46feb0
add esi, eax
mov dword [ebp - 0x14], esi
cmp esi, ebx
jb 0x46feac
xor esi, esi
mov dword [ebp - 0x14], esi
jmp 0x46feb0
lea eax, [edi + edi]
cmp eax, 0xfd0
ja 0x46fe7e
push eax
mov ecx, dword [ebp - 0x28]
push ecx
push 0xfd0
mov edx, dword [ebp - 0x18]
push edx
call fcn.00554d08
add esp, 0x10
mov esi, edi
mov dword [ebp - 0x14], esi
jmp 0x46feb0
test eax, eax
jg 0x46fe46
mov edi, dword [ebp - 0x1c]
cmp dword [ebp - 0x2c], 0
jne 0x46fe10
mov byte [ebp - 4], 3
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c]
call fcn.0046c440
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x46fee4
push eax
call fcn.005559df
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46ff11
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46ff90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58aaf8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [ebp - 4], esi
push esi
push 0x80
push 3
push esi
push 1
push bind
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x1c], edi
push 0x1fa0
call fcn.0053f875
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 1
cmp edi, esi
jne 0x470020
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x470004
and eax, 0xffff
or eax, 0x80070000
push str.hFile
push eax
lea ecx, [ebp - 0x3c]
call fcn.00434a80
push 0x5cc0a0
lea ecx, [ebp - 0x3c]
push ecx
call fcn.00554cbc
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x14], esi
push esi
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [ebp - 0x6c]
call fcn.0046d1c0
mov byte [ebp - 4], 2
lea esp, [esp]
push 0
lea edx, [ebp - 0x20]
push edx
mov eax, 0xfd0
sub eax, esi
add eax, eax
push eax
mov ecx, dword [ebp - 0x18]
lea edx, [ecx + esi*2]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x20]
mov ebx, eax
shr ebx, 1
add ebx, esi
add dword [ebp - 0x24], eax
test eax, eax
je 0x4700ed
xor esi, esi
mov dword [ebp - 0x14], esi
mov edi, ebx
sub edi, esi
mov eax, dword [ebp - 0x18]
lea eax, [eax + esi*2]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp + 0xc]
push ecx
push edi
push eax
lea ecx, [ebp - 0x6c]
mov edx, dword [ebp - 0x6c]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0xffffffff
je 0x4700b5
test eax, eax
je 0x4700e0
add esi, eax
mov dword [ebp - 0x14], esi
cmp esi, ebx
jb 0x4700dc
xor esi, esi
mov dword [ebp - 0x14], esi
jmp 0x4700e0
lea eax, [edi + edi]
cmp eax, 0xfd0
ja 0x4700ae
push eax
mov ecx, dword [ebp - 0x28]
push ecx
push 0xfd0
mov edx, dword [ebp - 0x18]
push edx
call fcn.00554d08
add esp, 0x10
mov esi, edi
mov dword [ebp - 0x14], esi
jmp 0x4700e0
test eax, eax
jg 0x470076
mov edi, dword [ebp - 0x1c]
cmp dword [ebp - 0x2c], 0
jne 0x470040
mov byte [ebp - 4], 3
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x68]
call fcn.0046c630
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x470114
push eax
call fcn.005559df
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x470141
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4701c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58ab38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [ebp - 4], esi
push esi
push 0x80
push 3
push esi
push 1
push bind
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x1c], edi
push 0x1fa0
call fcn.0053f875
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 1
cmp edi, esi
jne 0x470250
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x470234
and eax, 0xffff
or eax, 0x80070000
push str.hFile
push eax
lea ecx, [ebp - 0x3c]
call fcn.00434a80
push 0x5cc0a0
lea ecx, [ebp - 0x3c]
push ecx
call fcn.00554cbc
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x14], esi
push esi
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [ebp - 0x64]
call fcn.0046d350
mov byte [ebp - 4], 2
lea esp, [esp]
push 0
lea edx, [ebp - 0x20]
push edx
mov eax, 0xfd0
sub eax, esi
add eax, eax
push eax
mov ecx, dword [ebp - 0x18]
lea edx, [ecx + esi*2]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x20]
mov ebx, eax
shr ebx, 1
add ebx, esi
add dword [ebp - 0x24], eax
test eax, eax
je 0x47031d
xor esi, esi
mov dword [ebp - 0x14], esi
mov edi, ebx
sub edi, esi
mov eax, dword [ebp - 0x18]
lea eax, [eax + esi*2]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp + 0xc]
push ecx
push edi
push eax
lea ecx, [ebp - 0x64]
mov edx, dword [ebp - 0x64]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0xffffffff
je 0x4702e5
test eax, eax
je 0x470310
add esi, eax
mov dword [ebp - 0x14], esi
cmp esi, ebx
jb 0x47030c
xor esi, esi
mov dword [ebp - 0x14], esi
jmp 0x470310
lea eax, [edi + edi]
cmp eax, 0xfd0
ja 0x4702de
push eax
mov ecx, dword [ebp - 0x28]
push ecx
push 0xfd0
mov edx, dword [ebp - 0x18]
push edx
call fcn.00554d08
add esp, 0x10
mov esi, edi
mov dword [ebp - 0x14], esi
jmp 0x470310
test eax, eax
jg 0x4702a6
mov edi, dword [ebp - 0x1c]
cmp dword [ebp - 0x2c], 0
jne 0x470270
mov byte [ebp - 4], 3
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60]
call fcn.0046c860
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x470344
push eax
call fcn.005559df
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x470371
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x473640
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
push esi
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [ebp - 0x206]
push ecx
mov word [ebp - 0x208], ax
call fcn.00555020
lea edx, [ebp - 0x208]
push 0x104
push edx
call fcn.0050a540
xor eax, eax
push 0x40e
push eax
lea ecx, [ebp - 0x616]
push ecx
mov word [ebp - 0x618], ax
call fcn.00555020
push str.Scheduler.exe
lea edx, [ebp - 0x208]
push edx
lea eax, [ebp - 0x618]
push 0x5a06c8
push eax
call fcn.00472f30
mov edx, dword [esi + 4]
add esp, 0x30
push 5
push 0
push 0
lea ecx, [ebp - 0x618]
push ecx
push 0x59bf70
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4739b0
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push 0x14
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
jne 0x4739ce
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 0x14
push str.StaffCop_Scheduler
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x473a01
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
push edi
push eax
push eax
push esi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x473ab9
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x41d
jne 0x473a99
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 4], 0
push 0x1f4
call edi
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
mov eax, dword [ebp - 0x1c]
je 0x473a74
cmp eax, 2
jne 0x473a74
mov eax, dword [ebp - 4]
mov ecx, eax
inc eax
mov dword [ebp - 4], eax
cmp ecx, 3
jl 0x473a46
jmp 0x473a79
cmp eax, 4
je 0x473ab9
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
push 0x41d
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call edi
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
call esi
push ebx
call esi
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x474880
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x3e4]
call fcn.004fbd70
mov eax, dword [esi + 0x294]
mov edi, dword [sym.imp.USER32.dll_IsWindow]
push eax
call edi
test eax, eax
je 0x47497d
mov ecx, dword [esi + 0x5e0]
push ecx
call edi
test eax, eax
je 0x47497d
mov edx, dword [esi + 0x294]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x47497d
mov eax, dword [esi + 0x1ef8]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test eax, eax
jne 0x4748f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x120
je 0x47497d
mov edx, dword [0x5fd7c0]
push 0x80
lea ecx, [ebp - 0x100]
push ecx
push 0xe001
xor eax, eax
push edx
mov word [ebp - 0x100], ax
call dword [sym.imp.USER32.dll_LoadStringW]
mov ecx, dword [esi + 0x5e0]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x100]
push eax
push pe_nt_image_headers32
push 0x40b
push ecx
call edi
mov edx, dword [esi + 0x294]
push 0
push 0x64
push 0x402
push edx
call edi
push 0x190
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 0x294]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x294]
push 0
push 0
push 0x402
push ecx
call edi
lea ecx, [esi + 0x3e4]
call fcn.004fbc70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x474de0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x593e88
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x20], ebx
jne 0x474e1d
push 0x90
push str.d:_work_current_staffcop_standart_sdkcontrolswtldockingwindows_sstate.h
push 0x5a21d8
call fcn.0055640a
add esp, 0xc
cmp dword [edi + 0x24], 8
lea eax, [edi + 0x10]
jb 0x474e28
mov eax, dword [eax]
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x14]
push edx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push eax
push reloc.WS2_32.dll_accept
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x474e67
mov ecx, dword [edi + 4]
xor eax, eax
cmp ecx, ebx
je 0x474e5f
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [edi + 4], ebx
mov ecx, dword [ebp - 0x14]
mov dword [edi + 4], ecx
cmp eax, ebx
sete al
cmp al, bl
je 0x474f15
push esi
xor esi, esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov edi, dword [edi + 4]
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push 0x5a1468
push edi
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x474eb2
mov esi, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x24], esi
cmp eax, ebx
sete al
mov byte [ebp - 0xd], al
cmp al, bl
je 0x474efc
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push ebx
call edi
push 4
lea ecx, [ebp - 0x14]
push ecx
push 4
push ebx
push 0x5a1478
push esi
mov dword [ebp - 0x14], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 1
call edi
push 4
lea edx, [ebp - 0x14]
push edx
push 4
push ebx
push 0x5a1490
push esi
mov dword [ebp - 0x14], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov al, byte [ebp - 0xd]
mov dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x474f14
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0xd]
mov dword [ebp - 0x24], ebx
pop esi
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x474f30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x58afd8
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x20], ebx
jne 0x474f6d
push 0xad
push str.d:_work_current_staffcop_standart_sdkcontrolswtldockingwindows_sstate.h
push 0x5a21d8
call fcn.0055640a
add esp, 0xc
cmp dword [edi + 0x24], 8
lea eax, [edi + 0x10]
jb 0x474f78
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
push ecx
push 0x20019
push ebx
push eax
push reloc.WS2_32.dll_accept
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x474fb0
mov ecx, dword [edi + 4]
xor eax, eax
cmp ecx, ebx
je 0x474fa8
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [edi + 4], ebx
mov edx, dword [ebp - 0x14]
mov dword [edi + 4], edx
cmp eax, ebx
sete al
cmp al, bl
je 0x47508e
push esi
xor esi, esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x14]
push ecx
push 0x20019
push ebx
push 0x5a1468
push eax
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x474ff4
mov esi, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x28], esi
cmp eax, ebx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push 0x5a1478
push esi
sete byte [ebp - 0xd]
mov dword [ebp - 0x14], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x475031
cmp dword [ebp - 0x14], 4
jne 0x475031
push ebx
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x14], eax
fild dword [ebp - 0x14]
fidiv dword [ebp - 0x1c]
jmp 0x475033
fld1
lea ecx, [ebp - 0x14]
fstp dword [edi + 0x2c]
push ecx
lea edx, [ebp - 0x18]
push edx
push ebx
push ebx
push 0x5a1490
push esi
mov dword [ebp - 0x14], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x475070
cmp dword [ebp - 0x14], 4
jne 0x475070
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x14], eax
fild dword [ebp - 0x14]
fidiv dword [ebp - 0x18]
jmp 0x475072
fld1
fstp dword [edi + 0x30]
mov dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x47508a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x28], ebx
mov al, byte [ebp - 0xd]
pop esi
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x475170
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp + 0xc]
push edx
push 0
push 0
push 0x5a14d4
push eax
mov dword [ebp - 4], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4751c7
cmp dword [ebp - 4], 4
jne 0x4751c7
mov eax, dword [ebp + 0xc]
mov ecx, dword [esi + 8]
neg eax
sbb eax, eax
and eax, 8
push eax
push ecx
mov bl, 1
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
xor bl, bl
call eax
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x476c00
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58b213
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
lea ecx, [esi + 4]
mov dword [ebp - 0x14], esi
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.005402d7
mov dword [ebp - 4], 0
push 4
call fcn.0055549a
mov edi, eax
add esp, 4
test edi, edi
je 0x476c7f
push ebx
call fcn.0053fcf5
mov dword [edi], eax
call fcn.0053fbaf
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0053f8da
mov byte [ebp - 4], 1
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x476c70
inc eax
mov dword [ebx + 4], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0053f902
pop ebx
jmp 0x476c81
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x477fb0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58b308
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x148
push ebx
push esi
push edi
mov edi, ecx
mov ebx, dword [edi + 0x44]
mov dword [ebp - 0x10], ebx
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [edi + 0x50], esi
jle 0x478084
push 0x30
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.00555020
push 0x110
lea ecx, [ebp - 0x150]
push 0
push ecx
mov dword [ebp - 0x40], 0x30
call fcn.00555020
add esp, 0x18
lea edx, [ebp - 0x154]
push edx
mov dword [ebp - 0x154], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x478045
mov eax, dword [ebp - 0x150]
cmp eax, 5
jae 0x47804c
cmp eax, 4
jne 0x478045
cmp dword [ebp - 0x14c], 0x5a
jae 0x47804c
mov dword [ebp - 0x40], 0x2c
mov dword [ebp - 0x3c], 0x80
mov dword [ebp - 0x14], 0
test esi, esi
js 0x47809c
cmp esi, dword [edi + 0x50]
jge 0x47809c
mov eax, dword [edi + 0x4c]
lea eax, [eax + esi*2]
movzx eax, word [eax]
lea ecx, [ebp - 0x40]
push ecx
push 0
push eax
push ebx
call dword [sym.imp.USER32.dll_SetMenuItemInfoW]
inc esi
cmp esi, dword [edi + 0x50]
jl 0x477fe7
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]

Function at 0x478280
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
mov esi, ecx
call fcn.00555020
mov ecx, dword [ebp + 8]
mov edx, dword [esi]
mov edx, dword [edx + 0x1c]
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
push ecx
mov ecx, esi
call edx
pop esi
test al, al
je 0x4782cf
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push 0x3c
lea ecx, [ebp - 0x3c]
push ecx
push 3
push 0
push 0x5a14a8
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete al
mov esp, ebp
pop ebp
ret 8

Function at 0x478370
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
push 0x38
lea eax, [ebp - 0x3c]
push 0
push eax
mov esi, ecx
mov dword [ebp - 0x40], 0
call fcn.00555020
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
add esp, 0xc
lea edx, [ebp - 4]
push edx
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp + 0xc]
push edx
push 0
push 0x5a14a8
push eax
mov dword [ebp - 4], 0x3c
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4783c0
cmp dword [ebp + 0xc], 3
je 0x4783c9
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi]
mov edx, dword [ebp + 8]
mov eax, dword [eax + 0x20]
lea ecx, [ebp - 0x40]
push ecx
push edx
mov ecx, esi
call eax
pop esi
mov esp, ebp
pop ebp
ret 8