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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x5d6b80]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
mov dword [ebp - 0x120], 0x11c
push 0xfe
push eax
mov word [ebp - 0x10c], ax
lea eax, [ebp - 0x10a]
push eax
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x110], 0
call fcn.00525ee0
xor eax, eax
add esp, 0xc
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x51790e
push 0x2001f
push dword [0x5d67d4]
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x12c], 0
push reloc.WS2_32.dll_accept
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 0
call fcn.0045b220
mov esi, dword [ebp - 0x12c]
test eax, eax
jne 0x517903
push 0x11c
lea eax, [ebp - 0x120]
push eax
push 3
push 0
push 0x58f3dc
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x517903
test esi, esi
je 0x5178ef
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00525878
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x51790e
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00525878
mov esp, ebp
pop ebp
ret
Function at 0x51c0b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
call fcn.0051b3a0
test eax, eax
jne 0x51c0c5
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x7c], 0
jne 0x51c0e6
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x487ae0
push 0
push 0
call fcn.0052762d
add esp, 0x18
mov dword [esi + 0x7c], eax
xor eax, eax
cmp dword [esi + 0x7c], eax
pop esi
setne al
mov esp, ebp
pop ebp
ret

Function at 0x51eb40
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0x51eae0
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_EnumWindows]
xor eax, eax
cmp dword [ebp - 4], eax
setne al
mov esp, ebp
pop ebp
ret
Function at 0x51f170
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x575d0b
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x5d6b80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x428], 0
call fcn.0045adc0
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x51f1ca
push 0x80004005
call fcn.0045a8f0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x424], esi
xor eax, eax
mov dword [ebp - 4], 0
push 0x40e
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.00525ee0
add esp, 0xc
lea eax, [ebp - 0x420]
push edi
push 0x208
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
mov ecx, eax
test ecx, ecx
jne 0x51f24e
add esi, 0xfffffff0
push esi
call fcn.0045a950
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
mov dword [ebx], eax
add esp, 4
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x51f33c
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x51f33c
xor eax, eax
test ecx, ecx
je 0x51f278
lea edx, [eax + 0x3b]
jmp 0x51f260
cmp word [ebp + eax*2 - 0x420], 0
jne 0x51f273
mov word [ebp + eax*2 - 0x420], dx
inc eax
cmp eax, ecx
jb 0x51f260
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x51f281
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x424]
call fcn.0045b6e0
push 0x3b
lea ecx, [ebp - 0x424]
call fcn.00520550
mov esi, dword [ebp - 0x424]
add esi, 0xfffffff0
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
mov ecx, eax
jl 0x51f2dc
cmp ecx, dword [esi]
jne 0x51f2dc
mov edi, esi
mov eax, 1
lock xadd dword [edx], eax
jmp 0x51f319
mov eax, dword [ecx]
push 2
push dword [esi + 4]
call dword [eax]
mov edi, eax
test edi, edi
jne 0x51f2f0
call fcn.00494170
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov ecx, dword [esi + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [edi + 0x10]
push eax
call fcn.0052628b
add esp, 0x10
lea eax, [edi + 0x10]
mov dword [ebp - 4], 0xffffffff
mov dword [ebx], eax
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x51f33c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00525878
mov esp, ebp
pop ebp
ret
Function at 0x51fe60
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
test edi, edi
je 0x51fe94
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x14]
or eax, 2
push eax
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x51fea5
mov eax, dword [ebp - 4]
push dword [ebp + 0x10]
test edi, edi
cmovne ebx, eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x51feb3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x51fec0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
xor ecx, ecx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], ecx
test edi, edi
je 0x51ff00
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x18]
or eax, 0x20019
push eax
push ecx
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x51ff4c
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x10]
test edi, edi
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 0x10]
mov eax, ebx
cmovne eax, ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x51ff4c
cmp dword [ebp - 0xc], 4
jne 0x51ff47
lea eax, [ebp - 0x10]
test edi, edi
push eax
cmovne ebx, dword [ebp - 4]
lea eax, [ebp - 8]
push eax
push esi
push esi
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
jmp 0x51ff4c
mov esi, 0xd
mov eax, dword [ebp - 4]
test eax, eax
je 0x51ff5a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x51ff63
mov dword [eax], esi
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x51ff70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x575e79
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5d6b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x51ffc2
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
mov ebx, dword [ebp + 8]
add eax, 0x10
mov dword [ebx], eax
mov edx, dword [ebp + 0x10]
xor ecx, ecx
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
test edx, edx
je 0x52001a
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 0x1c]
or eax, 0x20019
push eax
push ecx
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x52009e
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 0x10]
lea eax, [ebp - 0x10]
test edx, edx
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp + 0x14]
mov eax, edi
cmovne eax, ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x52009e
mov eax, dword [ebp - 0x18]
cmp eax, 1
je 0x520051
cmp eax, 2
je 0x520051
mov esi, 0xd
jmp 0x52009e
push dword [ebp - 0x10]
call fcn.005243ff
push dword [ebp - 0x10]
mov edi, eax
push 0
push edi
call fcn.00525ee0
add esp, 0x10
lea eax, [ebp - 0x10]
cmp dword [ebp + 0x10], 0
push eax
mov eax, dword [ebp + 0xc]
cmovne eax, dword [ebp - 0x14]
push edi
push 0
push 0
push dword [ebp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x520095
push edi
mov ecx, ebx
call fcn.0045a5f0
push edi
call fcn.00525873
add esp, 4
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x5200ac
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x5200b5
mov dword [ecx], esi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5200d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
test edi, edi
je 0x520104
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x20]
or eax, 2
push eax
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x520120
mov eax, dword [ebp - 4]
push dword [ebp + 0x1c]
test edi, edi
push dword [ebp + 0x18]
cmovne ebx, eax
push dword [ebp + 0x14]
push 0
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x52012e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x521740
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5760fb
mov eax, dword fs:[0]
push eax
mov eax, 0x2034
call fcn.00527d30
mov eax, dword [0x5d6b80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
push 0
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_accept]
cmp eax, 0xffffffff
jne 0x52179e
mov eax, dword [esi + 4]
push 4
call eax
add esp, 4
mov dword [esi + 0x18], 1
xor eax, eax
jmp 0x521975
push dword [esi + 0xc]
mov dword [esi + 8], eax
call dword [sym.imp.WS2_32.dll_closesocket]
push 0x1fff
lea eax, [ebp - 0x200f]
mov dword [esi + 0xc], 0xffffffff
push 0
push eax
mov byte [ebp - 0x2010], 0
call fcn.00525ee0
mov ebx, dword [sym.imp.WS2_32.dll_recv]
add esp, 0xc
jmp 0x5217e0
push 0
push 0x2000
lea eax, [ebp - 0x2010]
push eax
push dword [esi + 8]
call ebx
mov edi, eax
test edi, edi
jle 0x521931
mov dword [ebp - 0x2040], 0
mov dword [ebp - 0x203c], 0
mov dword [ebp - 0x2038], 0x11
mov dword [ebp - 0x2020], 0
mov dword [ebp - 0x201c], 0xa
mov dword [ebp - 0x2018], 0
mov dword [ebp - 0x2014], 0
mov dword [ebp - 0x2034], 0x3f400000
mov dword [ebp - 0x2030], 0x3e800000
mov dword [ebp - 0x202c], 0x40100000
mov dword [ebp - 0x2028], 0x26
mov dword [ebp - 0x2024], 0
cmp dword [esi + 0x1c], 0
mov dword [ebp - 4], 0
jne 0x5218ea
lea eax, [ebp - 0x2040]
push eax
push dword [esi + 8]
lea eax, [ebp - 0x2010]
push 0x2000
push eax
call fcn.00521d30
add esp, 0x10
test eax, eax
je 0x5218e4
lea eax, [ebp - 0x2040]
mov dword [esi + 0x18], 2
push eax
push dword [esi + 8]
lea eax, [ebp - 0x2010]
push 0x2000
push eax
call fcn.00522560
add esp, 0x10
test eax, eax
jne 0x521912
mov eax, dword [esi + 4]
push 1
mov dword [esi + 0x18], 3
call eax
mov dword [esi + 0x1c], 1
jmp 0x52190f
cmp dword [esi + 0x1c], 0
je 0x521947
cmp edi, 0x80
jg 0x521947
push edi
lea eax, [ebp - 0x2010]
mov ecx, esi
push eax
call fcn.00522850
mov eax, dword [esi + 4]
push 3
mov dword [esi + 0x18], 4
call eax
add esp, 4
lea ecx, [ebp - 0x2040]
call fcn.00522350
lea ecx, [ebp - 0x2040]
mov dword [ebp - 4], 0xffffffff
call fcn.005211f0
jmp 0x52193d
mov eax, dword [esi + 4]
push 2
je 0x52196e
call eax
add esp, 4
test edi, edi
jg 0x5217e0
jmp 0x521973
mov eax, dword [esi + 4]
push 2
mov dword [esi + 0x18], 6
call eax
add esp, 4
mov ecx, esi
call fcn.005229c0
lea ecx, [ebp - 0x2040]
call fcn.005211f0
xor eax, eax
jmp 0x521975
call eax
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00525878
mov esp, ebp
pop ebp
ret
Function at 0x522460
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x576228
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x5d6b80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00522ab0
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 0
mov ebx, dword [eax - 0xc]
lea edi, [ebx + 2]
mov eax, edi
call fcn.00527aa0
mov esi, esp
push edi
push 0
push esi
call fcn.00525ee0
add esp, 0xc
mov byte [esi], 0x81
xor ecx, ecx
mov byte [esi + 1], bl
test ebx, ebx
jle 0x5224ec
test ecx, ecx
js 0x52250b
mov eax, dword [ebp - 0x14]
cmp ecx, dword [eax - 0xc]
jg 0x52250b
mov al, byte [ecx + eax]
mov byte [ecx + esi + 2], al
inc ecx
cmp ecx, ebx
jl 0x5224d4
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
cmp eax, 0xffffffff
je 0x522515
push 0
push edi
push esi
push eax
call dword [sym.imp.WS2_32.dll_send]
xor ebx, ebx
cmp eax, edi
sete bl
jmp 0x522517
push 0x80070057
call fcn.0045a8f0
xor ebx, ebx
mov esi, dword [ebp - 0x14]
or ecx, 0xffffffff
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x52253b
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
lea esp, [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00525878
mov esp, ebp
pop ebp
ret 4
Function at 0x522560
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x576266
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x5d6b80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 8], 0
mov esi, dword [ebp + 0x14]
je 0x522744
cmp dword [ebp + 0xc], 0
jle 0x522744
cmp dword [esi + 4], 0
jbe 0x522744
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x5225c9
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x208], eax
mov dword [ebp - 4], 0
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x5225fc
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20c], eax
lea eax, [ebp - 0x210]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
lea eax, [ebp - 0x214]
push eax
push str.Sec_WebSocket_Version
call fcn.00521670
test eax, eax
je 0x5226fa
add eax, 4
lea ecx, [ebp - 0x208]
push eax
call fcn.004ccb70
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
push str.Sec_WebSocket_Key
call fcn.00521eb0
test al, al
je 0x5226fa
mov eax, dword [ebp - 0x20c]
cmp dword [eax - 0xc], 0
je 0x5226fa
lea eax, [ebp - 0x208]
push 0x594398
push eax
call fcn.004ccbe0
add esp, 8
test al, al
je 0x5226fa
mov eax, dword [ebp - 0x208]
cmp dword [eax - 0xc], 0
je 0x5226fa
mov esi, dword [ebp + 0x10]
cmp esi, 0xffffffff
je 0x5226fa
push 0x1f3
lea eax, [ebp - 0x203]
mov byte [ebp - 0x204], 0
push 0
push eax
call fcn.00525ee0
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.005213b0
add esp, 0x14
test eax, eax
je 0x5226fa
lea ecx, [ebp - 0x204]
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5226e0
push 0
sub ecx, edx
lea eax, [ebp - 0x204]
push ecx
push eax
push esi
call dword [sym.imp.WS2_32.dll_send]
mov edx, dword [ebp - 0x20c]
or esi, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 0
mov eax, esi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x522720
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x208]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x522744
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00525878
mov esp, ebp
pop ebp
ret
Function at 0x5234e0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_SetWinEventHook]
push edi
push 2
push 0
push 0
push 0x523ce0
push 0
push 0x8001
push 0x8001
mov edi, ecx
call esi
push 2
push 0
push 0
push 0x523ce0
push 0
push 0x8003
mov ebx, eax
push 0x8003
mov dword [ebp - 4], ebx
call esi
mov dword [ebp - 8], eax
test ebx, ebx
je 0x523627
test eax, eax
je 0x523627
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5d6978]
mov esi, eax
test ecx, ecx
je 0x523574
xor edx, edx
div dword [0x5d6980]
mov ecx, dword [ecx + edx*4]
test ecx, ecx
je 0x523574
lea esp, [esp]
cmp dword [ecx + 0xc], esi
jne 0x52356d
cmp dword [ecx], esi
je 0x5235ed
mov ecx, dword [ecx + 8]
test ecx, ecx
jne 0x523560
push esi
mov ecx, 0x5d6978
call fcn.005233a0
mov dword [eax], edi
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [ebp - 0x24]
push 0
push 0
push 0
push eax
call esi
test eax, eax
je 0x523619
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
cmp eax, 0xffffffff
jne 0x5235f6
cmp dword [edi + 0x7c], 0
je 0x523606
push 0
push 0
push 0x12
push dword [edi + 0x80]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
push 0x2710
push dword [edi + 0x7c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x5235db
push 0
push dword [edi + 0x7c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0x7c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x7c], 0
jmp 0x523606
test ecx, ecx
je 0x523574
mov dword [ecx + 4], edi
jmp 0x523581
lea eax, [ebp - 0x24]
push eax
call ebx
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea eax, [ebp - 0x24]
push eax
call esi
test eax, eax
jne 0x5235a1
mov ebx, dword [ebp - 4]
push dword [ebp - 8]
mov esi, dword [sym.imp.USER32.dll_UnhookWinEvent]
call esi
push ebx
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x523bd0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
call fcn.0051b3a0
test eax, eax
jne 0x523be5
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp dword [esi + 0x84], 0
mov dword [esi + 0x88], eax
jne 0x523c1e
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x487ae0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x84], eax
xor eax, eax
cmp dword [esi + 0x84], eax
pop esi
setne al
mov esp, ebp
pop ebp
ret

Function at 0x523c30
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x523c46
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edi, eax
jmp 0x523c4b
mov edi, 1
mov eax, dword [esi + 0x84]
test eax, eax
je 0x523c89
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x523c73
push 0
push dword [esi + 0x84]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x84]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x84], 0
cmp dword [esi + 0x7c], 0
je 0x523cce
push 0
push 0
push 0x12
push dword [esi + 0x80]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
push 0x2710
push dword [esi + 0x7c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x523cbe
push 0
push dword [esi + 0x7c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x7c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x7c], 0
mov eax, edi
pop edi
pop esi
ret

Function at 0x532f2f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x5501a5
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5d6b80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.005335af
mov dword [ebp - 0x14], eax
cmp dword [0x5dfcb4], esi
jne 0x550298
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x550225
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x550378
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x550378
push 0x59a934
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x550378
push eax
call ebx
push 0x59a940
push edi
mov dword [0x5dfcb4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x5dfcb8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x5dfcbc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5dfcc4], eax
test eax, eax
je 0x550295
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5dfcc0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x5502bd
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x5502b0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x5502d2
push 4
pop eax
jmp 0x55037a
cmp dword [ebp - 0x14], esi
je 0x5502d2
push dword [0x5dfcb4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x5502b7
mov eax, dword [0x5dfcc0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x550330
cmp dword [0x5dfcc4], edi
je 0x550330
push eax
call ebx
push dword [0x5dfcc4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x550330
test eax, eax
je 0x550330
call ecx
test eax, eax
je 0x550325
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x550325
test byte [ebp - 8], 1
jne 0x550330
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x550360
mov eax, dword [0x5dfcb8]
cmp eax, edi
je 0x55035d
push eax
call ebx
test eax, eax
je 0x55035d
call eax
mov esi, eax
test esi, esi
je 0x55035d
mov eax, dword [0x5dfcbc]
cmp eax, edi
je 0x55035d
push eax
call ebx
test eax, eax
je 0x55035d
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x5dfcb4]
call ebx
test eax, eax
je 0x550378
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x55037a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00525878
mov esp, ebp
pop ebp
ret