joyce8/EMBER2024-capa huggingface dataset:
Function at 0x500170
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.006100a0
lea edx, [ebp - 0x208]
push 0x104
push edx
call fcn.005bd730
xor eax, eax
push 0x40e
push eax
lea ecx, [ebp - 0x616]
push ecx
mov word [ebp - 0x618], ax
call fcn.006100a0
push str.Scheduler.exe
lea edx, [ebp - 0x208]
push edx
lea eax, [ebp - 0x618]
push str._s_s
push eax
call fcn.004035d0
mov edx, dword [esi + 4]
add esp, 0x30
push 5
push 0
push 0
lea ecx, [ebp - 0x618]
push ecx
push 0x66f294
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x5004f0
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 0x50050e
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 0x500541
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 0x5005f9
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x41d
jne 0x5005d9
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 0x5005b4
cmp eax, 2
jne 0x5005b4
mov eax, dword [ebp - 4]
mov ecx, eax
inc eax
mov dword [ebp - 4], eax
cmp ecx, 3
jl 0x500586
jmp 0x5005b9
cmp eax, 4
je 0x5005f9
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 0x501ae0
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 + 0x3ec]
call fcn.005b2cb0
mov eax, dword [esi + 0x294]
mov edi, dword [sym.imp.USER32.dll_IsWindow]
push eax
call edi
test eax, eax
je 0x501bdd
mov ecx, dword [esi + 0x5fc]
push ecx
call edi
test eax, eax
je 0x501bdd
mov edx, dword [esi + 0x294]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x501bdd
mov eax, dword [esi + 0x1fac]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test eax, eax
jne 0x501b58
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x120
je 0x501bdd
mov edx, dword [0x716738]
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 + 0x5fc]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x100]
push eax
push 0x100
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 + 0x3ec]
call fcn.005b2bb0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x501dd0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x658a68
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 0x501ea4
push 0x30
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.006100a0
push pe_nt_image_headers32
lea ecx, [ebp - 0x150]
push 0
push ecx
mov dword [ebp - 0x40], 0x30
call fcn.006100a0
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 0x501e65
mov eax, dword [ebp - 0x150]
cmp eax, 5
jae 0x501e6c
cmp eax, 4
jne 0x501e65
cmp dword [ebp - 0x14c], 0x5a
jae 0x501e6c
mov dword [ebp - 0x40], 0x2c
mov dword [ebp - 0x3c], 0x80
mov dword [ebp - 0x14], 0
test esi, esi
js 0x501ebc
cmp esi, dword [edi + 0x50]
jge 0x501ebc
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 0x501e07
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 0x5021a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x658a88
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 0x5021dd
push 0x90
push str.d:projects_staffcop_rev_sdkcontrolswtldockingwindows_sstate.h
push 0x678464
call fcn.00614d2b
add esp, 0xc
cmp dword [edi + 0x24], 8
lea eax, [edi + 0x10]
jb 0x5021e8
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 connect
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x502227
mov ecx, dword [edi + 4]
xor eax, eax
cmp ecx, ebx
je 0x50221f
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 0x5022d5
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 0x6774e8
push edi
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x502272
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 0x5022bc
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 0x6774f8
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 0x677510
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 0x5022d4
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 0x5022f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x658aa8
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 0x50232d
push 0xad
push str.d:projects_staffcop_rev_sdkcontrolswtldockingwindows_sstate.h
push 0x678464
call fcn.00614d2b
add esp, 0xc
cmp dword [edi + 0x24], 8
lea eax, [edi + 0x10]
jb 0x502338
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
push ecx
push 0x20019
push ebx
push eax
push connect
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x502370
mov ecx, dword [edi + 4]
xor eax, eax
cmp ecx, ebx
je 0x502368
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 0x50244e
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 0x6774e8
push eax
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x5023b4
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 0x6774f8
push esi
sete byte [ebp - 0xd]
mov dword [ebp - 0x14], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x5023f1
cmp dword [ebp - 0x14], 4
jne 0x5023f1
push ebx
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x14], eax
fild dword [ebp - 0x14]
fidiv dword [ebp - 0x1c]
jmp 0x5023f3
fld1
lea ecx, [ebp - 0x14]
fstp dword [edi + 0x2c]
push ecx
lea edx, [ebp - 0x18]
push edx
push ebx
push ebx
push 0x677510
push esi
mov dword [ebp - 0x14], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x502430
cmp dword [ebp - 0x14], 4
jne 0x502430
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x14], eax
fild dword [ebp - 0x14]
fidiv dword [ebp - 0x18]
jmp 0x502432
fld1
fstp dword [edi + 0x30]
mov dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x50244a
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 0x502530
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 0x677554
push eax
mov dword [ebp - 4], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x502587
cmp dword [ebp - 4], 4
jne 0x502587
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 0x503d50
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.006100a0
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 0x503d9f
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push 0x3c
lea ecx, [ebp - 0x3c]
push ecx
push 3
push 0
push 0x677528
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete al
mov esp, ebp
pop ebp
ret 8

Function at 0x503e40
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.006100a0
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 0x677528
push eax
mov dword [ebp - 4], 0x3c
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x503e90
cmp dword [ebp + 0xc], 3
je 0x503e99
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
Function at 0x504d30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0xfffffffffffffff0
mov esi, ecx
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, eax
or ecx, 0x20
cmp eax, ecx
je 0x504d5d
push ecx
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [ebp + 0xc]
mov edi, dword [0x716738]
push 0xf1
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
xor ebx, ebx
cmp eax, ebx
jne 0x504d84
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x504d79
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov dword [ebp - 8], edi
cmp edi, ebx
je 0x504d79
call fcn.00500210
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0x10], ebx
je 0x504dd6
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [esi + 0x1f88]
mov dword [ebp - 0x1c], 4
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x14], 0x100
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], 0xffffffff
call fcn.00503580
xor edx, edx
xor esi, esi
mov dword [ebp + 8], ebx
cmp dx, word [edi + 6]
jae 0x504e4b
mov edi, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
movzx eax, word [eax + ecx*2]
mov dword [ebp - 0x10], ebx
cmp ax, bx
je 0x504e13
mov dword [ebp - 0x1c], esi
inc esi
mov edx, eax
lea eax, [esi - 1]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x18], edx
mov word [ebp - 0x14], 4
mov dword [ebp - 0xc], eax
push ecx
jmp 0x504e2e
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 8
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x14], 0x100
mov dword [ebp - 0xc], 0xffffffff
push edx
lea ecx, [edi + 0x1f88]
call fcn.00503580
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 8]
movzx edx, word [ecx + 6]
inc eax
mov dword [ebp + 8], eax
cmp eax, edx
jl 0x504de6
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x505450
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x658df0
push eax
mov dword fs:[0], esp
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], 0
lea ecx, [esi + 0x3ec]
call fcn.005b2cb0
mov eax, dword [esi + 0x294]
mov edi, dword [sym.imp.USER32.dll_IsWindow]
push eax
call edi
test eax, eax
je 0x50557e
mov ecx, dword [esi + 0x5fc]
push ecx
call edi
test eax, eax
je 0x50557e
mov eax, dword [esi + 0x1fac]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x505571
mov edx, dword [ebp + 8]
mov eax, dword [esi + 0x5fc]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push edx
push 0x100
push 0x40b
push eax
call edi
movzx ecx, word [ebp + 0xc]
mov edx, dword [esi + 0x294]
shl ecx, 0x10
push ecx
push 0
push 0x401
push edx
call edi
mov eax, dword [ebp + 0x10]
mov ecx, dword [esi + 0x294]
push 0
push eax
push 0x404
push ecx
call edi
mov edx, dword [esi + 0x294]
push 0
push 0
push 0x402
push edx
call edi
mov eax, dword [esi + 0x294]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [esi + 0x3ec]
call fcn.005b2bb0
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 0x50555c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [esi + 0x3ec]
call fcn.005b2bb0
jmp 0x505589
lea ecx, [esi + 0x3ec]
call fcn.005b2bb0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5055af
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5056c0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
test ecx, ecx
je 0x5056d4
lea esi, [ecx - 0x20]
mov dword [ebp - 4], esi
jmp 0x5056de
mov dword [ebp - 4], 0
mov esi, dword [ebp - 4]
cmp dword [ebp + 0x14], 0
mov ecx, dword [esi + 4]
mov dword [ebp - 8], 1
je 0x5057a3
mov eax, dword [ebp + 8]
push edi
push eax
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ebx, dword [ebp + 0xc]
mov esi, eax
mov eax, dword [ebx]
mov edx, 1
sub edx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, esi
or edx, eax
mov dword [ebp - 0xc], 0xffffffff
jge 0x50572e
push esi
mov ecx, ebx
call fcn.00401400
mov eax, dword [ebx]
test esi, esi
js 0x505799
cmp esi, dword [eax - 8]
jg 0x505799
mov dword [eax - 0xc], esi
mov ecx, dword [ebx]
xor edx, edx
mov word [ecx + esi*2], dx
test eax, eax
je 0x505787
lea ecx, [esi + 1]
push ecx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edx, dword [ebx]
mov dword [ebp - 0xc], eax
test edx, edx
jne 0x505761
xor eax, eax
jmp 0x505777
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x505766
sub eax, edi
sar eax, 1
js 0x505799
cmp eax, dword [edx - 8]
jg 0x505799
mov dword [edx - 0xc], eax
mov edx, dword [ebx]
xor ecx, ecx
mov word [edx + eax*2], cx
pop edi
cmp dword [ebp - 0xc], esi
jge 0x5057ef
mov esi, dword [ebp - 4]
mov dword [ebp - 8], 0
jmp 0x5057bb
push 0x80070057
call fcn.004011d0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
mov eax, dword [ebp + 8]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov dword [ebp - 8], eax
test eax, eax
jne 0x50581d
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_MessageBeep]
add esi, 0x20
je 0x5057cd
lea eax, [esi - 0x20]
jmp 0x5057cf
xor eax, eax
mov edx, dword [ebp + 8]
mov eax, dword [eax + 4]
push edx
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebp - 8]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp dword [ebp + 0x18], 0
je 0x50581d
mov ecx, dword [ebx]
mov edx, dword [ecx - 0xc]
cmp edx, dword [ebp + 0x1c]
jle 0x50581d
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp + 8]
push edx
add ecx, 0x20
push eax
call fcn.004bb600
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x509000
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 4], ecx
mov eax, 0x57cf0000
test edi, edi
je 0x509016
mov eax, edi
and eax, 0x1000000
xor ecx, ecx
cmp eax, 0x1000000
sete cl
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push esi
mov esi, dword [ebp + 8]
mov eax, ecx
mov dword [ebp + 0x14], eax
test eax, eax
jne 0x50904a
lea edx, [ebp + 0x14]
push edx
push 0
push 0x229
push esi
call ebx
mov eax, dword [ebp + 0x14]
cmp eax, 1
jne 0x509067
push 0
push 0
push 0xb
push esi
call ebx
test edi, edi
jne 0x509061
mov edi, 0x57cf0000
and edi, 0xfeffffff
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push edi
push eax
push ecx
mov ecx, dword [ebp - 4]
push esi
call fcn.00507ba0
cmp dword [ebp + 0x14], 1
mov edi, eax
jne 0x5090af
push 3
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 1
push 0xb
push esi
call ebx
push 0x81
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_RedrawWindow]
pop esi
pop ebx
test edi, edi
je 0x5090df
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x5090df
call dword [sym.imp.USER32.dll_GetFocus]
push eax
push edi
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
jne 0x5090df
push edi
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x5108c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x659e6a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x104
push ebx
push esi
push edi
xor esi, esi
push 0x38
lea eax, [ebp - 0x10c]
push esi
mov dword [ebp - 0x10], esi
push eax
mov ebx, ecx
mov dword [ebp - 0x110], esi
call fcn.006100a0
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x1c]
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebx]
push eax
call edx
test al, al
je 0x510a5e
lea eax, [ebp - 0x74]
mov dword [ebp - 0xd4], 0x678b8c
mov dword [ebp - 0xc4], 0x685d94
mov dword [ebp + 8], eax
mov dword [ebp - 0x74], vtable.std::ios_base.0
mov dword [ebp - 4], esi
mov dword [ebp - 0x74], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, 1
mov dword [ebp - 4], eax
push esi
lea ecx, [ebp - 0xbc]
push ecx
lea ecx, [ebp - 0xd4]
mov dword [ebp - 0x10], eax
call fcn.0050a820
mov dword [ebp - 4], 2
mov edx, dword [ebp - 0xd4]
mov eax, dword [edx + 4]
lea ecx, [ebp - 0xbc]
mov dword [ebp + eax - 0xd4], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [ebp + 8], ecx
call fcn.00460980
mov byte [ebp - 4], 3
mov dword [ebp - 0xbc], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], esi
mov dword [ebp - 4], 6
mov edx, dword [ebp - 0xd4]
mov eax, dword [edx + 4]
lea eax, [ebp + eax - 0xd4]
mov dword [eax + 0x14], 0x808
mov eax, dword [edi]
push eax
lea ecx, [ebp - 0xc4]
call fcn.00510340
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0xd4]
call fcn.0050f2b0
mov byte [ebp - 4], 7
mov edi, 8
cmp dword [eax + 0x14], edi
jb 0x5109f0
mov eax, dword [eax]
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx]
push 0x3c
lea edx, [ebp - 0x110]
push edx
push 3
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov byte [ebp - 4], 6
cmp dword [ebp - 0x18], edi
jb 0x510a1e
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0060faf6
add esp, 4
mov dword [ebp - 0x1c], esi
xor ecx, ecx
or esi, 0xffffffff
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], cx
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x74]
call fcn.005031f0
lea edx, [ebp - 0x74]
mov dword [ebp + 8], edx
mov dword [ebp - 0x74], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 4], esi
mov eax, edx
push eax
mov dword [ebp - 0x74], vtable.std::ios_base.0
call fcn.005fbd49
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4