joyce8/EMBER2024-capa huggingface dataset:
Function at 0x456bf0
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov edx, dword [0x67a050]
push ebx
lea eax, [esp + 4]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push 0
push 0x654330
push edx
mov dword [esp + 0x20], 4
call esi
test eax, eax
je 0x456ce0
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 0x654cf0
call ebx
cmp eax, 0xffffffff
je 0x456c4a
pop esi
mov eax, 1
pop ebx
add esp, 0x214
ret
lea eax, [esp + 0xc]
push eax
push 1
push 0
push 0x654c94
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x456ce0
lea ecx, [esp + 8]
lea edx, [esp + 0x14]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x1c]
push 0x654c84
push eax
mov dword [esp + 0x20], 0x208
call esi
test eax, eax
jne 0x456cd5
push ebp
push edi
mov edi, 0x654c74
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1c]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
pop edi
cmp eax, 0xffffffff
pop ebp
je 0x456cd5
pop esi
mov eax, 1
pop ebx
add esp, 0x214
ret
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
xor eax, eax
pop ebx
add esp, 0x214
ret
Function at 0x45b7c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b2b99
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xec
push ebx
mov edx, dword [0x67a050]
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x14]
push eax
push ecx
push 0
push 0
mov esi, 3
mov ebx, 4
push 0x654fec
push edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], ebx
call edi
test eax, eax
jne 0x45b825
cmp dword [ebp - 0x14], 1
je 0x45b893
mov eax, dword [ebp + 8]
push 0
push eax
lea ecx, [ebp - 0xf8]
call fcn.004692b0
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 1
call fcn.00596cd3
mov ecx, dword [ebp - 0x20]
dec eax
neg eax
sbb eax, eax
not eax
and eax, ecx
mov esi, eax
mov dword [ebp - 0x1c], esi
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call fcn.0059ad3d
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 3
call fcn.005a29d1
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 2
call fcn.005a2881
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 0
call fcn.00596914
jmp 0x45b8c4
mov eax, dword [0x67a050]
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x14]
push ecx
push edx
push 0
push 0
push 0x65182c
push eax
mov dword [ebp - 0x18], ebx
call edi
test eax, eax
jne 0x45b8c4
mov esi, dword [ebp - 0x14]
test esi, esi
jne 0x45b8c4
mov esi, 3
jmp 0x45b8c4
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x45d6c0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b2fb0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
mov edx, dword [0x67a050]
push esi
push edi
mov esi, ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x14]
xor ebx, ebx
push eax
push ecx
push ebx
push ebx
push 0x655034
push edx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x45d85f
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x45d83a
mov edi, dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, edi
jne 0x45d83a
cmp byte [esi + 0x13c6], bl
jne 0x45d83a
cmp byte [esi + 0x1ff], bl
je 0x45d759
push 0x16
push edi
call dword [sym.imp.USER32.dll_KillTimer]
mov byte [esi + 0x1ff], bl
mov edx, dword [esi + 0x4e4]
lea ecx, [ebp - 0x30]
push ecx
push 2
push 0x1207
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [ebp - 0x30]
lea ecx, [esi + 0x4c8]
push eax
call fcn.0059d9e2
mov edx, dword [esi + 0x4a4]
lea ecx, [ebp - 0x40]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [ebp - 0x40]
lea ecx, [esi + 0x488]
push eax
call fcn.0059d9e2
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x30]
mov edx, ecx
sub edx, eax
test edx, edx
jle 0x45d85f
cmp eax, dword [ebp - 0x40]
jl 0x45d85f
cmp ecx, dword [ebp - 0x38]
jg 0x45d85f
mov ecx, dword [0x67a050]
lea eax, [ebp - 0x14]
push 4
push eax
push 4
push ebx
push 0x655034
push ecx
mov dword [ebp - 0x14], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x45d85f
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
add edx, 0xfffffffc
add eax, 0xfffffffc
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], edx
mov edx, dword [0x67a6c8]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x67a6cc]
push ecx
mov ecx, dword [esi + 0x4a4]
push ebx
push edx
push eax
push ecx
call fcn.00474430
add esp, 0x14
mov dword [esi + 0x12c8], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi + 0x1ff], bl
jne 0x45d85f
mov edx, dword [esi + 0x1c]
push ebx
push 0x1f4
push 0x16
push edx
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
je 0x45d85f
mov byte [esi + 0x1ff], 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45eed0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b3380
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0x12c4]
mov eax, 0x84f5
cmp ecx, 2
jne 0x45ef11
mov eax, 0x84f6
jmp 0x45ef1b
cmp ecx, 3
jne 0x45ef1b
mov eax, 0x84f7
push 0
push eax
mov eax, dword [esi + 0x190]
push 0x84f7
push 0x84f5
push eax
call dword [sym.imp.USER32.dll_CheckMenuRadioItem]
mov eax, dword [0x67a050]
mov ecx, dword [esi + 0x12c4]
lea edx, [ebp - 0x14]
push 4
push edx
push 4
push 0
push 0x65399c
push eax
mov dword [ebp - 0x14], ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esi + 0x12c4]
cmp eax, 3
je 0x45efaf
cmp eax, 2
jne 0x45ef7d
call fcn.005a4ddf
call fcn.005a4ddf
mov eax, dword [eax + 0xc]
push 0x15a
jmp 0x45ef8f
call fcn.005a4ddf
call fcn.005a4ddf
mov eax, dword [eax + 0xc]
push 0x80
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov ecx, dword [esi + 0x1c]
push 0x64f0d0
push eax
push 0x2712
push 0
push ecx
call fcn.00475150
add esp, 0x14
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45fb70
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
lea eax, [esp + 0xc]
push esi
mov esi, ecx
lea ecx, [esp + 0xc]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0x679a28
push 0
push 0x655168
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x45fcb0
mov ecx, dword [esp + 0xc]
push ebx
lea edx, [esp + 8]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
mov ebx, 4
push 0x655158
push ecx
mov dword [esp + 0x24], ebx
call edi
test eax, eax
je 0x45fbe0
mov dword [esi + 8], 0
jmp 0x45fbe7
mov edx, dword [esp + 0x10]
mov dword [esi + 8], edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push 0
push 0x65514c
push edx
mov dword [esp + 0x24], ebx
call edi
test eax, eax
je 0x45fc12
mov dword [esi + 0xc], 0xc8
jmp 0x45fc19
mov eax, dword [esp + 0x10]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
push 0
cdq
push 0x100000
push edx
push eax
call fcn.00581190
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x1c], edx
lea ecx, [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
push edx
push 0
push 0
push 0x655144
push eax
mov dword [esp + 0x24], ebx
call edi
test eax, eax
je 0x45fc5c
mov dword [esi + 0x10], 5
jmp 0x45fc63
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x10], ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0xc]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push 0x655128
push ecx
mov dword [esp + 0x24], ebx
call edi
pop edi
pop ebx
test eax, eax
je 0x45fc9e
mov eax, dword [esp + 0xc]
mov dword [esi + 0x14], 1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
add esp, 0x10
ret
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
mov dword [esi + 0x14], edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
add esp, 0x10
ret
Function at 0x45fcc0
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
lea eax, [esp + 8]
push esi
mov esi, ecx
lea ecx, [esp + 4]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0x679a28
push 0
push 0x655168
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x45fdaa
mov ecx, dword [esp + 4]
push ebx
push edi
mov edi, dword [esi + 8]
lea eax, [esp + 0x10]
push 4
xor edx, edx
push eax
test edi, edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
push 0
push 0x655158
setne dl
push ecx
mov dword [esp + 0x28], edx
call edi
mov edx, dword [esp + 0xc]
lea ebx, [esi + 0xc]
push 4
push ebx
push 4
push 0
push 0x65514c
push edx
call edi
mov ecx, dword [ebx]
mov eax, 0x51eb851f
shl ecx, 0x14
imul ecx
sar edx, 5
mov eax, edx
lea ecx, [esi + 0x10]
shr eax, 0x1f
add edx, eax
push 4
push ecx
push 4
lea eax, [edx + edx*2]
push 0
shl eax, 4
add eax, edx
push 0x655144
shl eax, 1
cdq
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edx
mov edx, dword [esp + 0x20]
push edx
call edi
mov ebx, dword [esi + 0x14]
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push 4
xor eax, eax
push ecx
test ebx, ebx
push 4
push 0
setne al
push 0x655128
push edx
mov dword [esp + 0x28], eax
call edi
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
pop esi
add esp, 0xc
ret
Function at 0x460ce0
Capabilities:
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
lea ecx, [esp]
push esi
push eax
push ecx
push 0
push 0xf003f
push 0
push 0x679a28
push 0
push 0x6552e4
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x460d45
mov esi, dword [esp + 4]
test esi, esi
je 0x460d45
mov edx, dword [esp + 0x10]
push edi
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
push 1
push eax
push 0x655238
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 8
ret 4

Function at 0x460d50
Capabilities:
Set registry value

Disassembly:
sub esp, 0x3c
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov eax, dword [esi + 0x10]
mov edi, dword [esp + 0x50]
mov ebp, dword [esi + 8]
cmp eax, ebx
mov byte [esp + 0x20], bl
jne 0x460d9d
mov eax, dword [esi + 0x18]
push 0x14
lea ecx, [esi + 0x14]
push eax
push ecx
call fcn.00595c01
mov ecx, dword [esi + 0x18]
add eax, 4
lea edx, [ecx + ecx*4]
dec ecx
test ecx, ecx
lea eax, [eax + edx*4 - 0x14]
jl 0x460d9d
inc ecx
mov edx, dword [esi + 0x10]
mov dword [eax], edx
mov dword [esi + 0x10], eax
sub eax, 0x14
dec ecx
jne 0x460d8f
mov eax, dword [esi + 0x10]
xor edx, edx
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov dword [eax + 4], ebp
mov dword [eax], 0
mov ebp, dword [esi + 0xc]
inc ebp
lea ecx, [eax + 8]
mov dword [esi + 0xc], ebp
mov ebp, ecx
mov dword [ebp], edx
mov dword [ebp + 4], edx
mov dword [ebp + 8], edx
mov edx, dword [esp + 0x20]
mov dword [ecx], edi
mov dword [ecx + 4], ebx
mov dword [ecx + 8], edx
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x460ddc
mov dword [ecx], eax
jmp 0x460ddf
mov dword [esi + 4], eax
mov ecx, esi
mov dword [esi + 8], eax
call fcn.00460990
push edi
mov ecx, esi
call fcn.00461120
test eax, eax
je 0x460dfe
mov ecx, dword [esi + 0x64]
mov dword [eax + 0x404], ecx
push edi
lea edx, [esp + 0x28]
push 0x65531c
push edx
call fcn.0057f2ea
add esp, 0xc
lea eax, [esp + 0x14]
lea ecx, [esp + 0x50]
lea edx, [esp + 0x24]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0x679a28
push 0
push edx
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x460e6c
mov edx, dword [esp + 0x50]
mov eax, dword [esi + 0x64]
lea ecx, [esp + 0x10]
push 4
push ecx
push 4
push 0
push 0x655314
push edx
mov dword [esp + 0x28], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x50]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [0x67a170]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push ecx
call ebx
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x460e99
mov edx, dword [0x67a170]
push edi
push 0x1396
push 0x111
push edx
call esi
mov eax, dword [0x67a174]
push eax
call ebx
test eax, eax
je 0x460eb9
mov ecx, dword [0x67a174]
push edi
push 0x139a
push 0x111
push ecx
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 4
Function at 0x464740
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x18
push esi
push edi
mov esi, ecx
call fcn.00463da0
test eax, eax
je 0x4648a4
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4648a4
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0
call edi
mov eax, dword [esi + 0x10]
push 0
push 0
push 0
push eax
push closesocket
push closesocket
push closesocket
push closesocket
push 0x50010000
push 0x655460
push 0x65543c
push 8
call dword [sym.imp.USER32.dll_CreateWindowExA]
test eax, eax
mov dword [esi + 8], eax
je 0x4648a4
push ebx
push esi
push 0xffffffffffffffeb
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov ecx, dword [esi + 8]
push 0
push 0
push 0x110
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push 0
call edi
mov edi, eax
mov eax, dword [0x67a038]
push 0x2040
push 0
test eax, eax
push 0
push 0
je 0x4647f2
push 0x167
jmp 0x4647f7
push 0x168
mov ebx, dword [sym.imp.USER32.dll_LoadImageA]
push edi
call ebx
push 0x2040
push 0
push 0
push 0
push 0x16a
push edi
mov dword [esi + 0x138], eax
call ebx
push 0x2040
push 0
push 0
push 0
push 0x169
push edi
mov dword [esi + 0x13c], eax
call ebx
push 0x2040
push 0
push 0
push 0
push 0x166
push edi
mov dword [esi + 0x140], eax
call ebx
mov ecx, dword [esi + 0x140]
mov dword [esi + 0x144], eax
lea eax, [esp + 0xc]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x20]
push 8
mov dword [esi + 0x2c], ecx
push ecx
mov ecx, dword [esi + 0x1c]
sub edx, eax
push edx
mov edx, dword [esi + 8]
push ecx
push eax
push 0
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 8]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetParent]
mov edx, dword [esi + 8]
push 5
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebx
pop edi
pop esi
add esp, 0x18
ret

Function at 0x464ae0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 0xc]
push esi
mov esi, ecx
test eax, eax
mov dword [esi + 0x14c], eax
je 0x464b1d
mov eax, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edi
call fcn.00464a60
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, esi
mov dword [esi + 8], 0
call fcn.00464740
pop edi
pop esi
ret 0xc
Function at 0x466560
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov edx, dword [0x67a050]
lea eax, [esp]
lea ecx, [esp + 4]
push eax
push ecx
push 0
push 0
push 0x655534
push edx
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x46659c
mov eax, dword [esp + 4]
test eax, eax
setne al
add esp, 8
ret
mov al, 1
add esp, 8
ret

Function at 0x467380
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [0x67a16c]
test ecx, ecx
je 0x4673b0
mov eax, dword [esi + 0xc]
push eax
call fcn.004fb0d0
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4673b0
mov edx, dword [esi + 0xc]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret
Function at 0x4684f0
Capabilities:
Get geographical location

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x1c]
push 0
push 0x400
push esi
push edi
call fcn.005807d0
mov dword [esp + 0x10], eax
mov ecx, esi
cdq
mov ebp, eax
mov eax, edi
sub eax, ebp
push 0
sbb ecx, edx
push 0x400
push ecx
push eax
mov dword [esp + 0x30], edx
call fcn.00580720
mov ebx, eax
and ebx, 0x800003ff
jns 0x468540
dec ebx
or ebx, 0xfffffc00
inc ebx
mov eax, ebx
mov ecx, edi
shl eax, 0xa
cdq
sub ecx, eax
mov eax, esi
sbb eax, edx
sub ecx, ebp
mov ebp, dword [esp + 0x20]
push 0
sbb eax, ebp
push 0x100000
push eax
push ecx
call fcn.00580720
mov ebp, eax
and ebp, 0x800003ff
jns 0x468576
dec ebp
or ebp, 0xfffffc00
inc ebp
push 0
push 0x40000000
push esi
push edi
call fcn.00580720
lea ecx, [esp + 0x1c]
push 3
push ecx
mov esi, eax
push 0xe
push 0x400
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x4685ca
mov edi, 0x652300
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1c]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x46866a
cmp ebp, 0x3e7
jg 0x46866a
test ebp, ebp
jne 0x468642
cmp ebx, 0x3e7
jg 0x468642
test ebx, ebx
je 0x46861a
mov eax, dword [esp + 0x10]
mov ecx, dword [0x67a9f0]
push ecx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
and edx, 0x3ff
add eax, edx
lea edx, [esp + 0x20]
sar eax, 0xa
push eax
push edx
push ebx
jmp 0x468692
mov ecx, dword [0x67a9ec]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
push ecx
push edx
push 0x6522f8
push eax
call fcn.0057f2ea
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
lea eax, [ebx + ebx*4]
mov ecx, dword [0x67a9f4]
push ecx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
and edx, 0x3ff
add eax, edx
lea edx, [esp + 0x20]
sar eax, 0xa
push eax
push edx
push ebp
jmp 0x468692
lea ebp, [ebp + ebp*4]
mov ecx, dword [0x67a9f8]
push ecx
lea eax, [ebp + ebp*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
and edx, 0x3ff
add eax, edx
lea edx, [esp + 0x20]
sar eax, 0xa
push eax
push edx
push esi
mov eax, dword [esp + 0x34]
push 0x655634
push eax
call fcn.0057f2ea
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
Function at 0x468840
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b3b60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x24]
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0x10], esp
push eax
push ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
call edi
mov eax, dword [esi + 0x160]
lea edx, [ebp - 0x34]
push edx
push eax
call edi
mov eax, dword [esi + 0x504]
push 0x20
test eax, eax
je 0x468907
mov ecx, dword [0x67a038]
mov eax, dword [ebp - 0x20]
neg ecx
mov edi, dword [ebp - 0x28]
mov edx, dword [ebp - 0x1c]
sbb ecx, ecx
and ecx, 5
add ecx, 9
sub ecx, eax
add ecx, edi
push ecx
mov ecx, dword [ebp - 0x24]
sub edx, ecx
push edx
push eax
mov eax, dword [esi + 0xc]
push ecx
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [0x67ab58]
push ecx
lea ecx, [esi + 0x144]
call fcn.0059a32a
mov edx, dword [esi + 0xc]
push 0
push 0x519
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x504]
xor eax, eax
test ecx, ecx
sete al
mov dword [esi + 0x504], eax
jmp 0x468974
mov ecx, dword [esi + 0x4e4]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 0x20]
sub edx, eax
push edx
mov edx, dword [esi + 0xc]
push ecx
push eax
push 0
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [0x67ab54]
lea ecx, [esi + 0x144]
push eax
call fcn.0059a32a
mov ecx, dword [esi + 0xc]
push 5
push 0x519
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x504]
mov eax, dword [esi]
xor edx, edx
test ecx, ecx
sete dl
mov dword [esi + 0x504], edx
mov ecx, dword [eax + 0x844]
test ecx, ecx
je 0x468974
mov edx, dword [ecx]
call dword [edx]
mov edx, dword [esi + 0x504]
mov ecx, esi
test edx, edx
setne al
push eax
call fcn.004665b0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x469250
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x5b3c40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov cl, byte [esp + 0x14]
mov edx, dword [0x67a050]
xor eax, eax
push 4
test cl, cl
lea ecx, [esp + 0x18]
push ecx
push 4
push 0
push 0x65473c
setne al
push edx
mov dword [esp + 0x2c], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x46bc30
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x28
mov eax, dword [esp + 0x30]
push ebx
push esi
push edi
mov edi, dword [esp + 0x38]
push 0
push 0
push 0
mov esi, ecx
push 0
push edi
push eax
push 1
lea ecx, [esi + 0x17c]
call fcn.00594e74
mov ebx, eax
mov eax, dword [esi + 0x1b8]
test eax, eax
je 0x46bc8c
lea ecx, [esp + 0x38]
lea edx, [esp + 0x3c]
push ecx
push edx
push 0
push 0
push edi
push eax
mov dword [esp + 0x50], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x46bc8c
cmp dword [esp + 0x3c], 2
je 0x46bcb4
mov ecx, dword [esi + 0x198]
lea eax, [esp + 0xc]
push eax
push ebx
push 0x102b
push ecx
mov dword [esp + 0x2c], 0xf000
mov dword [esp + 0x28], 0x2000
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
pop ebx
add esp, 0x28
ret 8

Function at 0x46bcc0
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push esi
mov ebx, ecx
push edi
push 0
push 0
mov eax, dword [ebx + 0x15c]
push 0xf0
push eax
call ebp
mov esi, dword [esp + 0x1c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 0x10]
push 4
neg eax
push ecx
push 4
sbb eax, eax
push 0
add eax, 2
push 0x6557a8
push esi
mov dword [esp + 0x28], eax
call edi
mov edx, dword [ebx + 0x120]
push 0
push 0
push 0xf0
push edx
call ebp
neg eax
sbb eax, eax
push 4
add eax, 2
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push 4
push 0
push 0x65579c
push esi
call edi
or esi, 0xffffffff
mov ecx, dword [ebx + 0x198]
push 0
push esi
push 0x100c
push ecx
call ebp
mov esi, eax
test esi, esi
jl 0x46bdbc
mov edx, dword [ebx + 0x198]
push 0xf000
push esi
push 0x102c
push edx
call ebp
shr eax, 0xc
dec eax
push 0
neg eax
sbb eax, eax
push esi
add eax, 2
lea ecx, [ebx + 0x17c]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x1c]
push eax
call fcn.00594f9a
mov edx, dword [esp + 0x14]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x46bdb1
lea ecx, [esp + 0x10]
push 4
push ecx
push 4
push eax
push edx
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 0x14]
call fcn.0059ad3d
jmp 0x46bd3c
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4