joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4195d0
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x484350
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4a5214]
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
xor ebx, ebx
mov edi, 0xf
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 4], ebx
call fcn.004138f6
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x4c], esp
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x2c]
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push edx
mov byte [ecx], bl
call fcn.0040564b
lea esi, [ebp - 0x48]
call fcn.004139e6
add esp, 0x1c
mov esi, eax
lea eax, [ebp - 0x2c]
cmp eax, esi
je 0x419697
cmp dword [ebp - 0x18], 0x10
jb 0x419659
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0042fdf4
add esp, 4
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
cmp dword [esi + 0x14], 0x10
jae 0x41967c
mov edx, dword [esi + 0x10]
inc edx
push edx
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.004300a0
add esp, 0xc
jmp 0x419683
mov ecx, dword [esi]
mov dword [ebp - 0x2c], ecx
mov dword [esi], ebx
mov edx, dword [esi + 0x10]
mov dword [ebp - 0x1c], edx
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x18], eax
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
mov byte [esi], bl
cmp dword [ebp - 0x34], 0x10
jb 0x4196a9
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.0042fdf4
add esp, 4
mov edx, dword [ebp - 0x1c]
inc edx
push edx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [ebp - 0x2c]
mov edi, 0x10
cmp dword [ebp - 0x18], edi
jae 0x4196cf
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
inc edx
push edx
push ecx
push eax
call fcn.00432180
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
cmp dword [ebp - 0x18], edi
jb 0x41970b
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0042fdf4
add esp, 4
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.0042fdff
mov esp, ebp
pop ebp
ret
Function at 0x41fe10
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x482eb2
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4a5214]
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 1
mov dword [ebp - 0x14], esi
call fcn.00450940
xor ebx, ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [ebp - 4], 2
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 0xb
call fcn.00461ee0
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 0xc
call fcn.00461ee0
mov byte [esi + 0x5c], 1
lea edi, [esi + 0x60]
mov dword [ebp - 4], 0xd
push 1
mov ecx, edi
mov dword [ebp - 0x18], edi
call fcn.00450940
lea eax, [edi + 0x10]
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov ecx, 0x10
mov dword [eax + 0x48], ecx
mov byte [eax + 0x41], 1
mov dword [eax + 0x4c], eax
lea eax, [edi + 0x60]
mov dword [eax + 0x48], ecx
mov byte [eax + 0x41], 1
mov dword [eax + 0x4c], eax
mov byte [ebp - 4], 0xf
mov eax, dword [edi + 0xac]
push eax
call fcn.0046c240
mov dword [edi], vtable.CryptoPP::SHA1.0
add esp, 4
mov dword [esi], vtable.CryptoPP::PK_MessageAccumulatorImpl_class_CryptoPP::SHA1_.0
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.0042fdff
mov esp, ebp
pop ebp
ret
Function at 0x420440
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x480766
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4a5214]
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 0x42047e
mov dword [esi + 8], 0x49612c
mov eax, dword [esi + 8]
mov dword [esi + 4], vtable.CryptoPP::X509PublicKey.1.0
mov ecx, dword [eax + 4]
mov dword [ecx + esi + 8], vtable.CryptoPP::X509PublicKey.0
mov edx, dword [esi + 8]
mov dword [esi + 4], vtable.CryptoPP::DL_KeyImpl_class_CryptoPP::X509PublicKey__class_CryptoPP::DL_GroupParameters_DSA__class_CryptoPP::OID_.1.0
mov eax, dword [edx + 4]
mov dword [eax + esi + 8], vtable.CryptoPP::DL_KeyImpl_class_CryptoPP::X509PublicKey__class_CryptoPP::DL_GroupParameters_DSA__class_CryptoPP::OID_.0
push ebx
lea ecx, [esi + 0xc]
mov dword [esi + 0x14], 0x496124
call fcn.004205b0
mov ecx, dword [esi + 0x14]
mov dword [esi + 0xc], vtable.CryptoPP::DL_GroupParameters_DSA.2.0
mov dword [esi + 0x10], vtable.CryptoPP::DL_GroupParameters_DSA.1.0
mov edx, dword [ecx + 4]
mov dword [edx + esi + 0x14], vtable.CryptoPP::DL_GroupParameters_DSA.0
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 4]
mov dword [ecx + esi + 0x10], ebx
mov dword [ebp - 4], ebx
mov edx, dword [esi + 8]
mov dword [esi], vtable.CryptoPP::DL_PublicKeyImpl_class_CryptoPP::DL_GroupParameters_DSA_.2.0
mov dword [esi + 4], vtable.CryptoPP::DL_PublicKeyImpl_class_CryptoPP::DL_GroupParameters_DSA_.1.0
mov eax, dword [edx + 4]
lea edi, [esi + 0x80]
mov dword [eax + esi + 8], vtable.CryptoPP::DL_PublicKeyImpl_class_CryptoPP::DL_GroupParameters_DSA_.0
lea ecx, [edi + 4]
mov dword [ebp + 8], edi
mov dword [edi], vtable.CryptoPP::DL_FixedBasePrecomputationImpl_class_CryptoPP::Integer_.0
call fcn.00461ee0
mov byte [ebp - 4], 1
lea ecx, [edi + 0x1c]
mov dword [edi + 0x18], ebx
call fcn.00461ee0
mov dword [edi + 0x30], ebx
mov dword [edi + 0x34], ebx
mov dword [edi + 0x38], 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 0x4205b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48072e
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4a5214]
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 0x4205ee
mov dword [esi + 8], 0x496124
lea ecx, [esi + 0x10]
mov dword [esi + 0xc], ebx
call fcn.00461ee0
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.00461ee0
mov byte [ebp - 4], 2
lea ecx, [edi + 0x1c]
mov dword [edi + 0x18], ebx
call fcn.00461ee0
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 0x424a50
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test ecx, ecx
jne 0x424a5b
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
pop ebp
jmp fcn.00424a70
Function at 0x4270b0
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 0x4270c3
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 0x42713d
mov eax, dword [esi + 0x38]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call fcn.00432180
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 0x427111
sub eax, edi
jmp 0x427113
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x427102
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 0x427130
sub eax, edi
jmp 0x427132
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x427121
add ebx, edi
mov dword [ebp - 4], ebx
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x4271f2
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 0x427163
mov ebx, ecx
test ebx, ebx
je 0x4271b6
sub eax, ebx
mov dword [edi + 4], eax
mov eax, dword [edi + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x427185
mov edx, dword [edi]
mov ecx, dword [edi + 0x30]
mov eax, ebx
call fcn.00427be0
jmp 0x42719e
cmp eax, 2
jne 0x4271a4
mov ecx, dword [edi]
mov eax, dword [edi + 0x30]
test ecx, ecx
jne 0x427197
xor eax, eax
jmp 0x4271a1
mov edx, ebx
call fcn.00424a70
mov edx, dword [ebp - 8]
mov dword [edi + 0x30], eax
mov ecx, dword [edi]
push ebx
push ecx
push edx
call fcn.00432180
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 0x4271de
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 0x4271f2
mov edx, dword [esi]
cmp dword [edx + 4], 0
jne 0x4270c0
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42ce10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x480f80
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4a5214]
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 0x42ce48
cmp word [eax], bx
jne 0x42ce53
cmp dword [edi + 0x34], 8
lea eax, [edi + 0x20]
jb 0x42ce53
mov eax, dword [eax]
push 0x49520c
push eax
call fcn.004315dd
add esp, 8
mov dword [ebp - 0x4c], eax
cmp eax, ebx
jne 0x42ce7d
push 0x49defc
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x4c], 3
call fcn.004358ef
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 0x42cec2
mov ecx, dword [esi]
cmp dword [edi + 0x4c], ebx
jne 0x42ceaa
mov edx, dword [ecx]
mov eax, dword [ebp - 0x4c]
mov edx, dword [edx + 0x18]
push eax
call edx
jmp 0x42ceb5
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 0x42ce96
mov eax, 0xf
cmp dword [edi + 0x4c], ebx
je 0x42cf2f
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.0040564b
push edi
mov ecx, esi
call fcn.0042d250
cmp eax, ebx
je 0x42cf1d
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x42cf0a
mov eax, esi
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x1c]
push ecx
push 1
push edx
push eax
call fcn.0043174b
add esp, 0x10
cmp dword [ebp - 0x18], 0x10
jb 0x42cf2f
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0042fdf4
add esp, 4
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.00431832
add esp, 4
cmp dword [ebp - 0x34], 0x10
jb 0x42cf4d
mov edx, dword [ebp - 0x48]
push edx
call fcn.0042fdf4
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.0042fdff
mov esp, ebp
pop ebp
ret 4
Function at 0x42d4b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
xor ebx, ebx
cmp esi, ebx
je 0x42d4f3
lea eax, [ebp - 0x10]
push eax
push esi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call fcn.004347de
push 2
push ebx
push esi
call fcn.00434cc7
lea ecx, [ebp - 8]
push ecx
push esi
call fcn.004347de
lea edx, [ebp - 0x10]
push edx
push esi
call fcn.00434839
add esp, 0x24
cmp dword [ebp - 8], 0x14
jae 0x42d4fa
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push ebx
push esi
call fcn.00434cc7
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.00434bee
add esp, 0x1c
test eax, eax
je 0x42d4f3
mov eax, dword [ebp - 0x24]
cmp eax, 0x58453144
jne 0x42d4f3
cmp edi, ebx
je 0x42d556
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 0x42dde0
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4a5214]
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 0x42de00
xor esi, esi
jmp 0x42de41
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x42de3d
lea ebx, [eax + eax]
mov eax, ebx
call fcn.00435ad0
mov esi, esp
test esi, esi
je 0x42de3d
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 0x42de3f
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 0x42de88
push esi
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x42deb4
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.0042fdff
mov esp, ebp
pop ebp
ret 4
xor eax, eax
jmp 0x42de9f
Function at 0x42dec0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4a5214]
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 0x42df37
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0042fdff
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.0042fdff
mov esp, ebp
pop ebp
ret 4
Function at 0x42e217
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x481102
call fcn.0043644f
mov esi, 0x801
push esi
call fcn.0042f09c
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.00432100
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 0x42e2a3
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 0x42e29a
mov ecx, dword [ebp + 0x10]
push ebx
call fcn.004058e7
mov dword [ebp - 0x18], esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x20], edi
je 0x42e2b1
push dword [ebp - 0x20]
call fcn.0043053b
pop ecx
mov eax, dword [ebp - 0x18]
call fcn.004364f4
ret

Function at 0x42e412
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4ada80], 0
push esi
push edi
jne 0x42e388
call fcn.0042e2f4
test eax, eax
je 0x42e3cd
mov eax, dword [0x4ada80]
cmp eax, 1
jne 0x42e3a9
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x42e3cd
jmp 0x42e40f
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x42e40f
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 0x42e3d1
xor eax, eax
jmp 0x42e40f
mov eax, dword [esi]
push dword [0x4ada80]
call edi
mov edi, eax
test edi, edi
je 0x42e3f3
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x42e40f
lea edi, [esi + 0xff0]
push esi
push dword [0x4ada80]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x42e3f9
mov eax, esi
pop edi
pop esi
ret
jmp 0x42e374

Function at 0x42fdff
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a5214]
jne 0x42fe09
repz ret
jmp fcn.004386b2

Function at 0x4318a6
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 0x4318cd
call fcn.00435fae
mov dword [eax], esi
call fcn.00435f9b
push 0x16
pop esi
mov dword [eax], esi
call fcn.00439cd4
mov eax, esi
jmp 0x431922
test dword [ebp + 0xc], 0xfffffff9
jne 0x4318b3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4318fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00435fc1
pop ecx
call fcn.00435f9b
mov eax, dword [eax]
jmp 0x431922
test al, 0x10
jne 0x431920
test al, 1
je 0x431920
test byte [ebp + 0xc], 2
je 0x431920
call fcn.00435fae
mov dword [eax], 5
call fcn.00435f9b
mov dword [eax], 0xd
jmp 0x4318f1
xor eax, eax
pop esi
pop ebp
ret
Function at 0x44a505
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a5214]
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.00439636
and dword [ebp - 0x14], 0
cmp dword [0x4aebe8], 0
mov dword [ebp - 0x18], eax
jne 0x44a5b8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x44a660
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x48a508
push ebx
call edi
test eax, eax
je 0x44a660
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x48a4f8
push ebx
mov dword [0x4aebe8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4aebec], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4aebf0], eax
call edi
push eax
call esi
mov dword [0x4aebf8], eax
test eax, eax
je 0x44a5b8
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4aebf4], eax
mov eax, dword [0x4aebf4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x44a611
cmp dword [0x4aebf8], ecx
je 0x44a611
push eax
call esi
push dword [0x4aebf8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x44a611
test ebx, ebx
je 0x44a611
call edi
test eax, eax
je 0x44a608
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x44a608
test byte [ebp - 8], 1
jne 0x44a611
or dword [ebp + 0x10], 0x200000
jmp 0x44a644
mov eax, dword [0x4aebec]
cmp eax, dword [ebp - 0x18]
je 0x44a644
push eax
call esi
test eax, eax
je 0x44a644
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x44a644
mov eax, dword [0x4aebf0]
cmp eax, dword [ebp - 0x18]
je 0x44a644
push eax
call esi
test eax, eax
je 0x44a644
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4aebe8]
call esi
test eax, eax
je 0x44a660
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x44a662
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042fdff
leave
ret