joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ec40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d11e
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4a0234]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
cmp dword [ebp + 8], ebx
je 0x41ec7e
mov dword [esi + 8], 0x491fcc
lea ecx, [esi + 0x10]
mov dword [esi + 0xc], ebx
call fcn.0045ed70
mov dword [ebp - 4], ebx
mov eax, dword [esi + 8]
mov dword [esi], vtable.CryptoPP::DL_GroupParametersImpl_class_CryptoPP::ModExpPrecomputation__class_CryptoPP::DL_FixedBasePrecomputationImpl_class_CryptoPP::Integer___class_CryptoPP::DL_GroupParameters_IntegerBased_.2.0
mov dword [esi + 4], vtable.CryptoPP::DL_GroupParametersImpl_class_CryptoPP::ModExpPrecomputation__class_CryptoPP::DL_FixedBasePrecomputationImpl_class_CryptoPP::Integer___class_CryptoPP::DL_GroupParameters_IntegerBased_.1.0
mov ecx, dword [eax + 4]
mov dword [ecx + esi + 8], vtable.CryptoPP::DL_GroupParametersImpl_class_CryptoPP::ModExpPrecomputation__class_CryptoPP::DL_FixedBasePrecomputationImpl_class_CryptoPP::Integer___class_CryptoPP::DL_GroupParameters_IntegerBased_.0
mov edx, dword [esi + 8]
mov eax, dword [edx + 4]
mov dword [eax + esi + 4], ebx
mov dword [esi + 0x24], vtable.CryptoPP::ModExpPrecomputation.0
mov dword [esi + 0x28], ebx
lea edi, [esi + 0x2c]
mov byte [ebp - 4], 1
lea ecx, [edi + 4]
mov dword [ebp + 8], edi
mov dword [edi], vtable.CryptoPP::DL_FixedBasePrecomputationImpl_class_CryptoPP::Integer_.0
call fcn.0045ed70
mov byte [ebp - 4], 2
lea ecx, [edi + 0x1c]
mov dword [edi + 0x18], ebx
call fcn.0045ed70
mov dword [edi + 0x30], ebx
mov dword [edi + 0x34], ebx
mov dword [edi + 0x38], ebx
mov ecx, dword [esi + 8]
mov dword [esi], vtable.CryptoPP::DL_GroupParameters_GFP.2.0
mov dword [esi + 4], vtable.CryptoPP::DL_GroupParameters_GFP.1.0
mov edx, dword [ecx + 4]
mov dword [edx + esi + 8], vtable.CryptoPP::DL_GroupParameters_GFP.0
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
mov dword [ecx + esi + 4], ebx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x421310
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47eb79
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x4a0234]
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 edi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x58], eax
mov esi, edx
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x48], al
mov eax, ecx
mov dword [ebp - 4], 1
lea edx, [eax + 1]
mov bl, byte [eax]
inc eax
test bl, bl
jne 0x421361
xor ebx, ebx
sub eax, edx
cmp ecx, ebx
jne 0x421375
mov dword [ebp - 0x50], ebx
jmp 0x421381
mov edx, eax
xor eax, eax
call fcn.00422d50
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov byte [ebp - 4], 2
movzx eax, word [edi]
mov ebx, 1
test ax, ax
je 0x4213d5
mov esi, eax
xor edx, edx
mov eax, ebx
div dword [ebp - 0x50]
mov eax, dword [ebp - 0x50]
mov cl, dl
rol eax, cl
movzx ecx, si
xor eax, ecx
movzx edx, ax
lea eax, [ebp - 0x4c]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x4c], edx
call fcn.0040e185
movzx esi, word [edi + 2]
add edi, 2
inc ebx
test si, si
jne 0x4213a1
mov esi, dword [ebp - 0x54]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
mov eax, dword [ebp - 0x1c]
mov edi, 0x10
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x58], 1
cmp dword [ebp - 0x18], edi
jae 0x421403
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x4c]
push esi
push ecx
call fcn.0040f8a9
add esp, 8
cmp dword [ebp - 0x18], edi
jb 0x421421
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0042cc85
add esp, 4
mov eax, esi
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.0042cc90
mov esp, ebp
pop ebp
ret
Function at 0x422870
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4a0234]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x1c], eax
test edi, edi
jne 0x422890
xor esi, esi
jmp 0x4228d1
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x4228cd
lea ebx, [eax + eax]
mov eax, ebx
call fcn.00432950
mov esi, esp
test esi, esi
je 0x4228cd
push 0
push 0
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push 3
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x4228cf
xor eax, eax
mov esi, eax
xor eax, eax
mov ecx, 2
mov dword [ebp - 0x18], eax
push 0x7b
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov word [ebp - 0x18], cx
call dword [sym.imp.WSOCK32.dll_htons]
push esi
mov word [ebp - 0x16], ax
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
jne 0x422918
push esi
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x422944
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push 0x10
lea edx, [ebp - 0x18]
push edx
push ecx
call dword [sym.imp.WSOCK32.dll_connect]
neg eax
sbb eax, eax
inc eax
lea esp, [ebp - 0x24]
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0042cc90
mov esp, ebp
pop ebp
ret 4
xor eax, eax
jmp 0x42292f

Function at 0x422950
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4a0234]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, 0x10624dd3
mul ecx
mov eax, dword [ebp + 8]
shr edx, 6
mov dword [ebp - 0x11c], edx
imul edx, edx, 0x3e8
sub ecx, edx
lea edx, [ebp - 0x11c]
push edx
push 0
mov dword [ebp - 0x118], ecx
mov ecx, dword [eax]
push 0
lea eax, [ebp - 0x114]
push eax
push 0
mov dword [ebp - 0x110], ecx
mov dword [ebp - 0x114], 1
call dword [sym.imp.WSOCK32.dll_select]
cmp eax, 0xffffffff
jne 0x4229c7
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0042cc90
mov esp, ebp
pop ebp
ret 4
xor ecx, ecx
test eax, eax
setne cl
mov eax, 1
mov dword [esi], ecx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0042cc90
mov esp, ebp
pop ebp
ret 4
Function at 0x422d30
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test ecx, ecx
jne 0x422d3b
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
pop ebp
jmp fcn.00422d50
Function at 0x427fb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d8e0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4a0234]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
je 0x427fe8
cmp word [eax], bx
jne 0x427ff3
cmp dword [edi + 0x34], 8
lea eax, [edi + 0x20]
jb 0x427ff3
mov eax, dword [eax]
push 0x4911a0
push eax
call fcn.0042e42d
add esp, 8
mov dword [ebp - 0x4c], eax
cmp eax, ebx
jne 0x42801d
push 0x4993fc
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x4c], 3
call fcn.0043276d
mov esi, dword [edi + 0x58]
mov eax, 0xf
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
mov dword [ebp - 4], ebx
cmp esi, dword [edi + 0x5c]
je 0x428062
mov ecx, dword [esi]
cmp dword [edi + 0x4c], ebx
jne 0x42804a
mov edx, dword [ecx]
mov eax, dword [ebp - 0x4c]
mov edx, dword [edx + 0x18]
push eax
call edx
jmp 0x428055
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
lea edx, [ebp - 0x48]
push edx
call eax
add esi, 4
cmp esi, dword [edi + 0x5c]
jne 0x428036
mov eax, 0xf
cmp dword [edi + 0x4c], ebx
je 0x4280cf
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x50], esp
push 0xffffffffffffffff
mov byte [ebp - 4], 1
push ebx
lea edx, [ebp - 0x48]
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], ebx
push edx
lea esi, [ebp - 0x2c]
mov byte [ecx], bl
call fcn.00402a81
push edi
mov ecx, esi
call fcn.004283f0
cmp eax, ebx
je 0x4280bd
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x4280aa
mov eax, esi
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x1c]
push ecx
push 1
push edx
push eax
call fcn.0042e59b
add esp, 0x10
cmp dword [ebp - 0x18], 0x10
jb 0x4280cf
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0042cc85
add esp, 4
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.0042e682
add esp, 4
cmp dword [ebp - 0x34], 0x10
jb 0x4280ed
mov edx, dword [ebp - 0x48]
push edx
call fcn.0042cc85
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042cc90
mov esp, ebp
pop ebp
ret 4
Function at 0x428650
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
xor ebx, ebx
cmp esi, ebx
je 0x428693
lea eax, [ebp - 0x10]
push eax
push esi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call fcn.00431b2e
push 2
push ebx
push esi
call fcn.00431efd
lea ecx, [ebp - 8]
push ecx
push esi
call fcn.00431b2e
lea edx, [ebp - 0x10]
push edx
push esi
call fcn.00431b89
add esp, 0x24
cmp dword [ebp - 8], 0x14
jae 0x42869a
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push ebx
push esi
call fcn.00431efd
push esi
push 1
lea edx, [ebp - 0x24]
push 0x14
push edx
mov dword [ebp - 0x24], 0x58453144
mov dword [ebp - 0x20], 0x10014
mov byte [ebp - 0x1c], bl
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.00431e0e
add esp, 0x1c
test eax, eax
je 0x428693
mov eax, dword [ebp - 0x24]
cmp eax, 0x58453144
jne 0x428693
cmp edi, ebx
je 0x4286f6
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov dword [edi], eax
mov eax, dword [ebp - 0x20]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
mov dword [edi + 0x10], eax
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x428b06
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x47d9c2
call fcn.004332cf
mov esi, 0x801
push esi
call fcn.0042bf31
xor edi, edi
push esi
mov ebx, eax
mov dword [ebp - 4], edi
push edi
push ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], 0x800
call fcn.0042ef80
add esp, 0x10
lea eax, [ebp - 0x14]
push eax
push 0x20019
push edi
push dword [ebp + 8]
mov dword [ebp - 0x14], edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp dword [ebp - 0x14], edi
je 0x428b92
lea eax, [ebp - 0x24]
push eax
push ebx
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor esi, esi
inc esi
cmp dword [ebp - 0x1c], esi
jne 0x428b89
mov ecx, dword [ebp + 0x10]
push ebx
call fcn.00405f67
mov dword [ebp - 0x18], esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x20], edi
je 0x428ba0
push dword [ebp - 0x20]
call fcn.0042d3cb
pop ecx
mov eax, dword [ebp - 0x18]
call fcn.00433374
ret
Function at 0x428e10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [esi + 0x2c]
mov dword [ebp - 0xc], edi
jmp 0x428e23
mov edi, dword [ebp - 0xc]
mov ebx, dword [esi + 0x3c]
sub ebx, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub ebx, eax
lea edx, [edi + ecx - 0x106]
mov dword [ebp - 4], ebx
cmp eax, edx
jb 0x428e9d
mov eax, dword [esi + 0x38]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call fcn.0042f000
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x44]
sub dword [esi + 0x70], edi
sub dword [esi + 0x6c], edi
add esp, 0xc
sub dword [esi + 0x5c], edi
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x428e71
sub eax, edi
jmp 0x428e73
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x428e62
mov ecx, dword [esi + 0x40]
mov edx, edi
lea ecx, [ecx + edi*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x428e90
sub eax, edi
jmp 0x428e92
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x428e81
add ebx, edi
mov dword [ebp - 4], ebx
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x428f52
mov edx, dword [esi + 0x74]
add edx, dword [esi + 0x6c]
mov eax, dword [edi + 4]
add edx, dword [esi + 0x38]
mov ecx, dword [ebp - 4]
mov ebx, eax
mov dword [ebp - 8], edx
cmp ebx, ecx
jbe 0x428ec3
mov ebx, ecx
test ebx, ebx
je 0x428f16
sub eax, ebx
mov dword [edi + 4], eax
mov eax, dword [edi + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x428ee5
mov edx, dword [edi]
mov ecx, dword [edi + 0x30]
mov eax, ebx
call fcn.00424690
jmp 0x428efe
cmp eax, 2
jne 0x428f04
mov ecx, dword [edi]
mov eax, dword [edi + 0x30]
test ecx, ecx
jne 0x428ef7
xor eax, eax
jmp 0x428f01
mov edx, ebx
call fcn.00422d50
mov edx, dword [ebp - 8]
mov dword [edi + 0x30], eax
mov ecx, dword [edi]
push ebx
push ecx
push edx
call fcn.0042f000
add dword [edi], ebx
add esp, 0xc
add dword [edi + 8], ebx
add dword [esi + 0x74], ebx
mov edi, dword [esi + 0x74]
cmp edi, 3
jb 0x428f3e
mov edx, dword [esi + 0x6c]
add edx, dword [esi + 0x38]
mov ecx, dword [esi + 0x58]
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edi, 0x106
jae 0x428f52
mov edx, dword [esi]
cmp dword [edx + 4], 0
jne 0x428e20
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42b298
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4a84e0], 0
push esi
push edi
jne 0x42b20e
call fcn.0042b17a
test eax, eax
je 0x42b253
mov eax, dword [0x4a84e0]
cmp eax, 1
jne 0x42b22f
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x42b253
jmp 0x42b295
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x42b295
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x42b257
xor eax, eax
jmp 0x42b295
mov eax, dword [esi]
push dword [0x4a84e0]
call edi
mov edi, eax
test edi, edi
je 0x42b279
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x42b295
lea edi, [esi + 0xff0]
push esi
push dword [0x4a84e0]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x42b27f
mov eax, esi
pop edi
pop esi
ret
jmp 0x42b1fa

Function at 0x42cc90
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a0234]
jne 0x42cc9a
repz ret
jmp fcn.00435532

Function at 0x42e6f6
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x42e71d
call fcn.00432e2e
mov dword [eax], esi
call fcn.00432e1b
push 0x16
pop esi
mov dword [eax], esi
call fcn.00436b54
mov eax, esi
jmp 0x42e772
test dword [ebp + 0xc], 0xfffffff9
jne 0x42e703
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42e74a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00432e41
pop ecx
call fcn.00432e1b
mov eax, dword [eax]
jmp 0x42e772
test al, 0x10
jne 0x42e770
test al, 1
je 0x42e770
test byte [ebp + 0xc], 2
je 0x42e770
call fcn.00432e2e
mov dword [eax], 5
call fcn.00432e1b
mov dword [eax], 0xd
jmp 0x42e741
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4473b9
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a0234]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004364b6
and dword [ebp - 0x14], 0
cmp dword [0x4a9648], 0
mov dword [ebp - 0x18], eax
jne 0x44746c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x447514
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x486508
push ebx
call edi
test eax, eax
je 0x447514
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x4864f8
push ebx
mov dword [0x4a9648], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4a964c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4a9650], eax
call edi
push eax
call esi
mov dword [0x4a9658], eax
test eax, eax
je 0x44746c
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4a9654], eax
mov eax, dword [0x4a9654]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4474c5
cmp dword [0x4a9658], ecx
je 0x4474c5
push eax
call esi
push dword [0x4a9658]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4474c5
test ebx, ebx
je 0x4474c5
call edi
test eax, eax
je 0x4474bc
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4474bc
test byte [ebp - 8], 1
jne 0x4474c5
or dword [ebp + 0x10], 0x200000
jmp 0x4474f8
mov eax, dword [0x4a964c]
cmp eax, dword [ebp - 0x18]
je 0x4474f8
push eax
call esi
test eax, eax
je 0x4474f8
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4474f8
mov eax, dword [0x4a9650]
cmp eax, dword [ebp - 0x18]
je 0x4474f8
push eax
call esi
test eax, eax
je 0x4474f8
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4a9648]
call esi
test eax, eax
je 0x447514
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x447516
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042cc90
leave
ret
Function at 0x44d400
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x479b68
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4a0234]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
call edx
mov edi, eax
mov dword [ebp - 0x10], edi
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
push ecx
push edx
push edi
mov ecx, esi
mov dword [ebp - 4], 0
call eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [edi]
mov edx, dword [edx + 0xc]
push eax
push ecx
mov ecx, edi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
push edi
mov ecx, esi
call edx
mov bl, al
mov eax, dword [edi]
mov edx, dword [eax]
push 1
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
call edx
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x466370
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47b3b9
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4a0234]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov ecx, dword [edi + 0x34]
sub ecx, dword [edi + 0x30]
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 1
call fcn.00465ab0
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x20]
push edx
push esi
mov ecx, edi
call fcn.00465ec0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0xc]
push ecx
mov ecx, esi
call eax
push eax
lea ecx, [ebp - 0x34]
push ecx
call fcn.00464260
add esp, 0x10
mov edx, dword [esi]
mov edx, dword [edx + 8]
push eax
mov eax, dword [ebp + 8]
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call edx
mov ecx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x28]
xor eax, eax
mov edx, ecx
mov esi, edi
rep stosd dword es:[edi], eax
lea eax, [edx*4]
mov dword [ebp - 0x10], 1
mov byte [ebp - 4], 1
push esi
cmp eax, 0x10
jb 0x46643f
call fcn.0046a1a0
jmp 0x466444
call fcn.0046a1b0
mov edi, dword [ebp - 0x20]
add esp, 4
mov byte [ebp - 4], bl
cmp edi, ebx
je 0x46647d
mov ebx, dword [ebp - 0x1c]
mov esi, edi
cmp edi, ebx
je 0x466474
lea ebx, [ebx]
lea ecx, [ebp - 0x14]
push esi
push ecx
call fcn.00464570
add esi, 0x28
add esp, 8
cmp esi, ebx
jne 0x466460
push edi
call fcn.0042cc85
add esp, 4
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4664a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47b3b9
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4a0234]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp + 0x14]
mov ecx, dword [ebx + 0x34]
sub ecx, dword [ebx + 0x30]
mov eax, 0x66666667
imul ecx
mov ecx, dword [edi + 0x34]
sub ecx, dword [edi + 0x30]
sar edx, 3
mov esi, edx
shr esi, 0x1f
add esi, edx
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add esi, edx
add eax, esi
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 1
call fcn.00465ab0
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x20]
push edx
push esi
mov ecx, edi
call fcn.00465ec0
mov eax, dword [ebp + 0x18]
push eax
lea ecx, [ebp - 0x20]
push ecx
push esi
mov ecx, ebx
call fcn.00465ec0
mov ebx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
mov eax, dword [esi]
push ebx
push edx
mov edx, dword [eax + 0xc]
mov ecx, esi
call edx
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00464260
add esp, 0x10
mov edx, dword [esi]
mov edx, dword [edx + 8]
push eax
mov eax, dword [ebp + 8]
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call edx
mov ecx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x28]
xor eax, eax
mov edx, ecx
mov esi, edi
rep stosd dword es:[edi], eax
lea eax, [edx*4]
mov dword [ebp - 0x10], 1
mov byte [ebp - 4], 1
push esi
cmp eax, 0x10
jb 0x46659b
call fcn.0046a1a0
jmp 0x4665a0
call fcn.0046a1b0
mov edi, dword [ebp - 0x20]
add esp, 4
mov byte [ebp - 4], 0
test edi, edi
je 0x4665d1
mov esi, edi
cmp edi, ebx
je 0x4665c8
lea ecx, [ebp - 0x14]
push esi
push ecx
call fcn.00464570
add esi, 0x28
add esp, 8
cmp esi, ebx
jne 0x4665b4
push edi
call fcn.0042cc85
add esp, 4
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14

Function at 0x4690e0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
pop ebp
ret

Function at 0x46a280
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov ecx, edi
shr ecx, 2
xor eax, eax
test ecx, ecx
je 0x46a2b4
mov eax, edx
sub esi, edx
mov dword [ebp - 4], ecx
push ebx
mov ebx, dword [esi + eax]
xor dword [eax], ebx
add eax, 4
dec ecx
jne 0x46a2a2
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
pop ebx
add eax, eax
add eax, eax
sub edi, eax
je 0x46a2d9
add edx, eax
add esi, eax
test edi, edi
je 0x46a2d9
mov ecx, esi
mov eax, edx
sub ecx, edx
mov esi, edi
lea esp, [esp]
mov dl, byte [eax + ecx]
xor byte [eax], dl
inc eax
dec esi
jne 0x46a2d0
pop edi
pop esi
mov esp, ebp
pop ebp
ret