joyce8/EMBER2024-capa huggingface dataset:
Function at 0x497b00
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x5a37c0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6336a0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00555692
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x497b43
push 0x80004005
call fcn.00401f90
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov dword [esp + 0x38], 0
call fcn.00555692
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x497b75
push 0x80004005
call fcn.00401f90
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
push esi
lea ecx, [esp + 0x20]
push 0x5f350c
push ecx
mov byte [esp + 0x44], 1
call fcn.00404650
push esi
lea edx, [esp + 0x3c]
push str._s__0
push edx
call fcn.00404650
mov edx, dword [esp + 0x58]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
add esp, 0x18
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [eax]
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push ecx
call esi
mov eax, dword [esp + 0x28]
test eax, eax
mov ebx, dword [esp + 0x1c]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x497cb5
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.Shell
push eax
call esi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x497cae
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0xa
push str.open
push 1
push 0
push 0x5d2b58
push eax
call edi
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x28]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.open
push ecx
call esi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x497ca7
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x24]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.command
push eax
call esi
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x497ca0
mov eax, dword [ebx - 0xc]
lea edx, [eax + eax + 2]
push edx
push ebx
push 1
push 0
push 0x5d2b58
push ecx
call edi
mov eax, dword [esp + 0x20]
push eax
call ebp
mov ecx, dword [esp + 0x24]
push ecx
call ebp
mov edx, dword [esp + 0x18]
push edx
call ebp
mov eax, dword [esp + 0x28]
push eax
call ebp
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx]
push edx
call ebp
mov byte [esp + 0x38], 0
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x497ce3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov dword [esp + 0x38], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x497d07
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x499800
Capabilities:
Delete registry key
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x5a3700
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebp
push esi
push edi
mov eax, dword [0x6336a0]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x34]
mov esi, ecx
mov edi, edx
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
test eax, eax
je 0x4998ec
push edi
lea ecx, [esp + 0x24]
call fcn.004023b0
push 0x5d616c
push eax
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x38], 0
call fcn.00401ba0
push esi
push eax
lea edx, [esp + 0x2c]
push edx
mov byte [esp + 0x44], 1
call fcn.00401ae0
mov eax, dword [eax]
add esp, 0x18
push eax
push closesocket
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49989f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2c], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4998c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x2c], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4998ec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x10]
push ecx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
push closesocket
call edi
test eax, eax
jne 0x49998e
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0xa
push str.open
push 1
push eax
push 0x5d2b58
push edx
call esi
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push str.opencommand
push ecx
call edi
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x49996f
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x499943
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
mov eax, dword [esp + 0x14]
push edx
push ebp
push 1
push 0
push 0x5d2b58
push eax
call esi
mov ecx, dword [esp + 0x14]
push ecx
call edi
mov edx, dword [esp + 0x10]
push edx
call edi
mov eax, 1
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x20
ret
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x20
ret
Function at 0x499f40
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x618
mov eax, dword [0x6336a0]
xor eax, esp
mov dword [esp + 0x614], eax
mov eax, dword [esp + 0x620]
push ebp
mov ebp, dword [esp + 0x620]
push edi
lea ecx, [esp + 0x14]
push ecx
push 0x20019
xor edi, edi
push edi
push str.SoftwareMicrosoftInternet_ExplorerTypedUrls
push closesocket
mov dword [esp + 0x2c], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x499fa2
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x614]
xor ecx, esp
call fcn.00577139
add esp, 0x618
ret
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
push esi
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x228]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x28]
push edi
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x38]
push eax
push edi
push ecx
xor esi, esi
mov dword [esp + 0x38], 0xfa
mov dword [esp + 0x34], 0x3fc
mov dword [esp + 0x30], edi
call ebx
cmp eax, 0x103
je 0x49a0c9
cmp eax, edi
jne 0x49a082
cmp dword [esp + 0x10], 1
jne 0x49a082
mov eax, dword [esp + 0x14]
lea edx, [eax - 2]
cmp edx, 0x3f9
ja 0x49a082
mov ecx, dword [esp + 0x18]
cmp ecx, 0xfa
jae 0x49a082
shr eax, 1
sub eax, 1
cmp dword [esp + 0x634], edi
mov word [esp + eax*2 + 0x224], di
mov word [esp + ecx*2 + 0x24], di
je 0x49a059
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 8]
lea eax, [esp + 0x224]
push eax
push edx
call fcn.0055d51b
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x24]
push eax
push ecx
jmp 0x49a07b
cmp eax, edi
jle 0x49a082
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 8]
lea edx, [esp + 0x224]
push edx
push eax
call fcn.0055d51b
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x24]
push ecx
push edx
mov ecx, ebp
call fcn.0055d51b
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x228]
push ecx
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x28]
push edi
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x38]
push ecx
add esi, 1
push esi
push edx
mov dword [esp + 0x38], 0xfa
mov dword [esp + 0x34], 0x3fc
mov dword [esp + 0x30], edi
call ebx
cmp eax, 0x103
jne 0x499ff0
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x624]
pop esi
pop ebx
pop edi
pop ebp
xor ecx, esp
mov eax, 1
call fcn.00577139
add esp, 0x618
ret
Function at 0x49a9e0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x214
mov eax, dword [0x6336a0]
xor eax, esp
mov dword [esp + 0x210], eax
lea eax, [esp + 4]
push eax
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x49aa71
mov eax, dword [esp + 4]
lea edx, [esp + 8]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x49aa71
lea ecx, [esp]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
push ecx
push eax
call edx
mov eax, dword [esp]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.004021f0
push 0x5d616c
mov ecx, esi
call fcn.004043a0
mov eax, 1
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00577139
add esp, 0x214
ret
mov ecx, dword [esp + 0x210]
xor ecx, esp
xor eax, eax
call fcn.00577139
add esp, 0x214
ret
Function at 0x49ad70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x59e2c8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6336a0]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x3c]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], vtable.CBitmap.0
lea esi, [ebp + 8]
mov edi, 2
mov dword [esp + 0x34], ebx
call fcn.00541660
mov ecx, dword [ebp + 0x10]
xor eax, eax
cmp ecx, ebx
jle 0x49ade4
cmp eax, ebx
jl 0x49af17
cmp eax, dword [esi + 8]
jge 0x49af17
mov ecx, dword [esi + 4]
lea ecx, [ecx + eax*4]
add eax, 1
mov dword [ecx], ebx
cmp eax, dword [ebp + 0x10]
jl 0x49adc3
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x1c]
push eax
mov ebx, 0x5f3f1c
mov ecx, 0x63c9f8
call fcn.004fe420
test eax, eax
je 0x49aee8
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
cdq
push 0
and edx, 3
push 0
add eax, edx
push 0x19
mov ebx, eax
push edi
sar ebx, 2
push ebx
mov ecx, ebp
call fcn.005637ca
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebp + 4]
push 0xff00ff
push ecx
push eax
call fcn.005644f1
mov edx, dword [eax + 0x78]
mov ecx, dword [edx]
call fcn.00439e90
cmp dword [esi + 8], 0
jle 0x49af17
mov eax, dword [esi + 4]
lea ecx, [ebp + 0xb8]
mov dword [eax], ecx
cmp dword [esi + 8], 0
jle 0x49af17
mov eax, dword [esi + 4]
mov eax, dword [eax]
mov dword [eax + 0x24], 0
mov dword [eax], ebp
mov dword [eax + 0x3c], ebx
mov dword [eax + 0x40], edi
cmp dword [esi + 8], 0
jle 0x49af17
mov eax, dword [esi + 4]
mov eax, dword [eax]
lea ecx, [eax + 4]
mov eax, dword [ecx + 8]
push 0
push eax
call fcn.0055d779
mov ecx, 1
cmp dword [esi + 8], ecx
jle 0x49af17
mov eax, dword [esi + 4]
add eax, 4
lea edx, [ebp + 0x1c]
mov dword [eax], edx
cmp dword [esi + 8], ecx
jle 0x49af17
mov eax, dword [esi + 4]
add eax, 4
mov eax, dword [eax]
mov dword [eax + 0x24], ecx
mov dword [eax], ebp
mov dword [eax + 0x3c], ebx
mov dword [eax + 0x40], edi
cmp dword [esi + 8], ecx
jle 0x49af17
mov esi, dword [esi + 4]
add esi, 4
mov esi, dword [esi]
mov eax, dword [esi + 0xc]
lea ecx, [esi + 4]
push 2
push eax
call fcn.0055d779
mov dword [ebp + 0x154], ebx
mov dword [ebp + 0x158], edi
mov dword [esp + 0x34], 0xffffffff
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], vtable.CGdiObject.0
call fcn.0055b880
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
call fcn.00555520
int3
Function at 0x49cef0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x59e2c8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6336a0]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x3c]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], vtable.CBitmap.0
lea esi, [ebp + 8]
mov edi, 2
mov dword [esp + 0x34], ebx
call fcn.00541660
mov ecx, dword [ebp + 0x10]
xor eax, eax
cmp ecx, ebx
jle 0x49cf64
cmp eax, ebx
jl 0x49d0c4
cmp eax, dword [esi + 8]
jge 0x49d0c4
mov ecx, dword [esi + 4]
lea ecx, [ecx + eax*4]
add eax, 1
mov dword [ecx], ebx
cmp eax, dword [ebp + 0x10]
jl 0x49cf43
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x1c]
push eax
mov ebx, 0x5f4530
mov ecx, 0x63c9f8
call fcn.004fe420
test eax, eax
je 0x49d095
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov eax, 0x2aaaaaab
imul ecx
push 0
push 0
mov ebx, edx
push 0x19
shr ebx, 0x1f
add ebx, edx
push edi
push ebx
mov ecx, ebp
call fcn.005637ca
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebp + 4]
push 0xff00ff
push ecx
push eax
call fcn.005644f1
mov edx, dword [eax + 0x78]
mov ecx, dword [edx]
call fcn.00439e90
cmp dword [esi + 8], 0
jle 0x49d0c4
mov eax, dword [esi + 4]
lea ecx, [ebp + 0x1c]
mov dword [eax], ecx
cmp dword [esi + 8], 0
jle 0x49d0c4
mov eax, dword [esi + 4]
mov eax, dword [eax]
mov dword [eax + 0x24], 0
mov dword [eax], ebp
mov dword [eax + 0x3c], ebx
mov dword [eax + 0x40], edi
cmp dword [esi + 8], 0
jle 0x49d0c4
mov eax, dword [esi + 4]
mov eax, dword [eax]
lea ecx, [eax + 4]
mov eax, dword [ecx + 8]
push 0
push eax
call fcn.0055d779
cmp dword [esi + 8], 0
jle 0x49d0c4
mov eax, dword [esi + 4]
mov eax, dword [eax]
lea ecx, [eax + 4]
mov eax, dword [ecx + 8]
push 2
push eax
call fcn.0055d779
mov ecx, 1
cmp dword [esi + 8], ecx
jle 0x49d0c4
mov eax, dword [esi + 4]
add eax, 4
lea edx, [ebp + 0xb8]
mov dword [eax], edx
cmp dword [esi + 8], ecx
jle 0x49d0c4
mov eax, dword [esi + 4]
add eax, 4
mov eax, dword [eax]
mov dword [eax + 0x24], ecx
mov dword [eax], ebp
mov dword [eax + 0x3c], ebx
mov dword [eax + 0x40], edi
cmp dword [esi + 8], ecx
jle 0x49d0c4
mov esi, dword [esi + 4]
add esi, 4
mov esi, dword [esi]
mov eax, dword [esi + 0xc]
lea ecx, [esi + 4]
push 4
push eax
call fcn.0055d779
lea eax, [ebx + ebx]
mov dword [ebp + 0x154], eax
mov dword [ebp + 0x158], ebx
mov dword [ebp + 0x15c], edi
mov dword [esp + 0x34], 0xffffffff
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], vtable.CGdiObject.0
call fcn.0055b880
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
call fcn.00555520
int3
Function at 0x49d560
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x59dcf0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push edi
mov eax, dword [0x6336a0]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov eax, dword [esp + 0x54]
mov edi, ecx
mov edx, dword [eax]
mov ecx, dword [edi + 0x70]
lea ecx, [ecx + edx + 2]
mov dword [esp + 0x30], ecx
add ecx, 0xd
mov dword [esp + 0x38], ecx
mov ecx, dword [eax + 4]
mov eax, dword [eax + 0xc]
sub eax, ecx
sub eax, 0xd
cdq
sub eax, edx
sar eax, 1
add eax, ecx
mov dword [esp + 0x34], eax
add eax, 0xd
mov dword [esp + 0x3c], eax
push 0xffffff
lea eax, [esp + 0x34]
push eax
mov ecx, esi
call fcn.0055ba58
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], vtable.CPen.0
push 0xf5be9e
push 1
mov dword [esp + 0x54], eax
mov ebx, dword [sym.imp.GDI32.dll_CreatePen]
push eax
call ebx
push eax
lea ecx, [esp + 0x24]
call fcn.0055b82d
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.0055b905
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x34]
mov ebp, eax
mov eax, dword [esp + 0x3c]
push eax
mov eax, dword [esi + 4]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_Rectangle]
push ebp
mov ecx, esi
call fcn.0055b905
lea ecx, [esp + 0x20]
call fcn.0055b880
cmp dword [edi + 0x98], 0
je 0x49d71f
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], vtable.CPen.0
mov byte [esp + 0x4c], 1
mov edi, dword [edi + 0x54]
push edi
push 1
push 0
call ebx
push eax
lea ecx, [esp + 0x1c]
call fcn.0055b82d
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x3c]
mov ebp, dword [esp + 0x30]
sub eax, ecx
cdq
sub eax, edx
mov edi, eax
sar edi, 1
add edi, ecx
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.0055b905
lea edx, [edi - 1]
push edx
mov dword [esp + 0x18], eax
lea ebx, [ebp + 3]
push ebx
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call fcn.0055b26f
lea ecx, [edi + 1]
lea eax, [ebp + 5]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x5c], eax
call fcn.0055af51
lea edx, [edi - 4]
push edx
add ebp, 0xa
push ebp
mov ecx, esi
call fcn.0055af51
push edi
push ebx
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call fcn.0055b26f
mov edx, dword [esp + 0x54]
lea ecx, [edi + 2]
push ecx
push edx
mov ecx, esi
call fcn.0055af51
add edi, 0xfffffffd
push edi
push ebp
mov ecx, esi
call fcn.0055af51
mov eax, dword [esp + 0x14]
push eax
mov ecx, esi
call fcn.0055b905
lea ecx, [esp + 0x18]
call fcn.0055b880
mov byte [esp + 0x4c], 0
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], vtable.CGdiObject.0
call fcn.0055b880
mov dword [esp + 0x4c], 0xffffffff
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], vtable.CGdiObject.0
call fcn.0055b880
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x40
ret 4
Function at 0x4a0b30
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x6336a0]
xor eax, esp
mov dword [esp + 0x114], eax
push edi
push 0x3b8
xor edi, edi
lea eax, [esi + 0x54]
push edi
push eax
call fcn.0057bb20
push 0x110
lea ecx, [esp + 0x18]
push edi
push ecx
mov dword [esi + 0x40c], edi
mov dword [esi + 0x410], 1
mov dword [esi + 0x414], 1
mov dword [esi + 0x454], edi
mov dword [esi + 0x458], 1
mov dword [esi + 0x418], edi
mov dword [esi + 0x438], edi
mov dword [esi + 0x450], edi
mov dword [esi + 0x420], edi
mov dword [esi + 0x45c], edi
mov dword [esp + 0x1c], 0x114
call fcn.0057bb20
add esp, 0x18
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x14], 2
jne 0x4a0bf3
cmp dword [esp + 8], 5
jb 0x4a0bf3
mov eax, 1
mov dword [esi + 0x41c], eax
pop edi
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00577139
add esp, 0x118
ret
mov ecx, dword [esp + 0x118]
mov dword [esi + 0x41c], edi
pop edi
xor ecx, esp
call fcn.00577139
add esp, 0x118
ret

Function at 0x4a1810
Capabilities:
Find taskbar

Disassembly:
sub esp, 0x24
push edi
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
test edi, edi
je 0x4a1841
push esi
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
push esi
push 0x4a1710
push edi
call dword [sym.imp.USER32.dll_EnumChildWindows]
pop edi
add esp, 0x24
ret
lea eax, [esp + 4]
push eax
push 5
mov dword [esp + 0xc], 0x24
call dword [sym.imp.SHELL32.dll_SHAppBarMessage]
test eax, eax
je 0x4a18ae
mov eax, dword [esp + 0x10]
cmp eax, 3
ja case.default.0x4a1863
jmp dword [eax*4 + 0x4a18d4]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
lea ecx, [eax - 0x64]
add eax, 0xfffffff0
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 4], ecx
mov dword [esi + 8], eax
mov dword [esi], edx
pop edi
add esp, 0x24
ret
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [esi + 4], ecx
lea ecx, [eax - 0x64]
add eax, 0xfffffff0
mov dword [esi + 0xc], edx
mov dword [esi], ecx
mov dword [esi + 8], eax
pop edi
add esp, 0x24
ret
push 0
push esi
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov edx, dword [esi + 8]
mov eax, dword [esi + 0xc]
sub edx, 0x96
sub eax, 0x1e
mov dword [esi + 4], eax
mov dword [esi], edx
pop edi
add esp, 0x24
ret
Function at 0x4b3100
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5a3150
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x6336a0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov eax, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x24]
call fcn.004023b0
push 0x5f8224
push 0x5e50f8
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x24], 0
call fcn.00414390
push 0x5f822c
push 0x5d616c
lea edx, [esp + 0x28]
push edx
call fcn.00414390
push 0x5f822c
push 0x5e51bc
lea eax, [esp + 0x28]
push eax
call fcn.00414390
push 0x5d616c
lea ecx, [esp + 0x10]
push 0x63c668
push ecx
call fcn.00401ba0
lea edx, [esp + 0x2c]
push edx
push eax
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x30], 1
call fcn.00401ae0
push str..dat
push eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x3c], 2
call fcn.00401ba0
add esp, 0x24
mov ecx, dword [esp + 0x24]
push eax
mov byte [esp + 0x1c], 3
call fcn.00402330
mov byte [esp + 0x18], 2
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4b31ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x18], 1
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b320f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x18], 0
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b3234
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b325c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
add esp, 0x18
ret 8
Function at 0x4cfa10
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5aee48
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x6336a0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x18], esi
lea edi, [esi + 0x594]
lea ebx, [ebp + 0xc]
call fcn.0047a440
test eax, eax
jne 0x4cfa59
call fcn.004d0320
lea eax, [esp + 0x1c]
push eax
lea ecx, [ebp + 0xc]
push ecx
add esi, 0x64c
call fcn.0047a7e0
mov edi, eax
test edi, edi
jne 0x4cfa97
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
push eax
call fcn.004d0730
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 0x688]
add eax, 0xffffffff
cmp edi, eax
jne 0x4cfacf
cmp dword [esi + 0x58], 0
je 0x4cfacf
lea ecx, [esp + 0x1c]
push ecx
mov eax, esi
call fcn.004d0670
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test edi, edi
jle 0x4cfa82
call fcn.00555692
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4cfaed
push 0x80004005
call fcn.00401f90
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esi + 0x520]
mov dword [esp + 0x3c], 0
call fcn.00559110
cmp edi, dword [esi + 0x688]
jge 0x4cfbd1
mov edx, dword [esi + 0x684]
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
lea edi, [edx + edi*4]
call ebx
xor ecx, ecx
test ax, ax
mov eax, dword [edi]
setl cl
lea edx, [esp + 0x14]
add eax, 0x50
push ecx
mov ecx, dword [esi + 0x8c8]
push 1
push edx
push eax
call fcn.004bea10
push 0x11
call ebx
test ax, ax
jl 0x4cfb86
cmp dword [0x63c17c], 0
jne 0x4cfb90
cmp dword [0x63c178], 0
je 0x4cfb90
mov ecx, dword [0x63c450]
add ecx, 0x71f4
mov eax, 0x5fb780
call fcn.004a1150
mov dword [0x63c17c], 1
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4cfa82
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call fcn.00555520
int3