joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415220
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47feaa
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4a0234]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x4a0234]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
xor edi, edi
xor eax, eax
mov word [esp + 0x20], ax
mov eax, ecx
mov ebx, edx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], edi
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, di
jne 0x415273
sub eax, esi
sar eax, 1
lea esi, [esp + 0x20]
call fcn.00401fe9
mov ecx, dword [ebp + 8]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x50], edi
mov eax, dword [ebx + 0xc8]
mov edx, esi
cmp edx, eax
jae 0x415368
mov ecx, dword [ebx + 0xc4]
cmp ecx, edx
ja 0x415368
mov edi, esi
sub edi, ecx
cmp eax, dword [ebx + 0xcc]
jne 0x4152cb
lea ecx, [ebx + 0xc4]
call fcn.004025dd
mov esi, dword [ebx + 0xc8]
and edi, 0xffffffe0
add edi, dword [ebx + 0xc4]
test esi, esi
je 0x415412
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp esi, edi
je 0x415360
cmp dword [esi + 0x14], 8
jb 0x41530a
mov ecx, dword [esi]
push ecx
call fcn.0042cb00
add esp, 4
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], dx
cmp dword [edi + 0x14], 8
jae 0x415337
mov eax, dword [edi + 0x10]
lea ecx, [eax + eax + 2]
push ecx
push edi
push esi
call fcn.0042cdb0
add esp, 0xc
jmp 0x415341
mov edx, dword [edi]
mov dword [esi], edx
mov dword [edi], 0
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
mov ecx, dword [edi + 0x14]
mov dword [esi + 0x14], ecx
xor edx, edx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], dx
mov eax, dword [edi + 0x1c]
jmp 0x41540f
cmp eax, dword [ebx + 0xcc]
jne 0x41537b
lea ecx, [ebx + 0xc4]
call fcn.004025dd
mov esi, dword [ebx + 0xc8]
cmp esi, edi
je 0x415412
xor ecx, ecx
lea edx, [esp + 0x20]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], cx
cmp esi, edx
je 0x41540b
cmp dword [esi + 0x14], 8
jb 0x4153b1
mov eax, dword [esi]
push eax
call fcn.0042cb00
add esp, 4
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], cx
cmp dword [esp + 0x34], 8
jae 0x4153e0
mov edx, dword [esp + 0x30]
lea eax, [edx + edx + 2]
push eax
lea ecx, [esp + 0x24]
push ecx
push esi
call fcn.0042cdb0
add esp, 0xc
jmp 0x4153ea
mov edx, dword [esp + 0x20]
mov dword [esi], edx
mov dword [esp + 0x20], edi
mov eax, dword [esp + 0x30]
mov dword [esi + 0x10], eax
mov ecx, dword [esp + 0x34]
mov dword [esi + 0x14], ecx
xor edx, edx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], edi
mov word [esp + 0x20], dx
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x1c], eax
add dword [ebx + 0xc8], 0x20
cmp dword [esp + 0x34], 8
jb 0x41542d
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0042cb00
add esp, 4
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0042cb0b
mov esp, ebp
pop ebp
ret 4
Function at 0x41cfe0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47ee62
mov eax, dword fs:[0]
push eax
sub esp, 0xc
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 esi, ecx
push 1
mov dword [ebp - 0x14], esi
call fcn.0044d620
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.0045eb90
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 0xc
call fcn.0045eb90
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.0044d620
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.00468ee0
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.0042cb0b
mov esp, ebp
pop ebp
ret
Function at 0x41d5c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d1b6
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 0x41d5fe
mov dword [esi + 8], 0x491f4c
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], 0x491f44
call fcn.0041d770
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.0045eb90
mov byte [ebp - 4], 1
lea ecx, [edi + 0x1c]
mov dword [edi + 0x18], ebx
call fcn.0045eb90
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 0x41d770
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d17e
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 0x41d7ae
mov dword [esi + 8], 0x491f44
lea ecx, [esi + 0x10]
mov dword [esi + 0xc], ebx
call fcn.0045eb90
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.0045eb90
mov byte [ebp - 4], 2
lea ecx, [edi + 0x1c]
mov dword [edi + 0x18], ebx
call fcn.0045eb90
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 0x41fe80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47ed69
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 0x41fed1
xor ebx, ebx
sub eax, edx
cmp ecx, ebx
jne 0x41fee5
mov dword [ebp - 0x50], ebx
jmp 0x41fef1
mov edx, eax
xor eax, eax
call fcn.00422ba0
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 0x41ff45
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.0040de0c
movzx esi, word [edi + 2]
add edi, 2
inc ebx
test si, si
jne 0x41ff11
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 0x41ff73
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x4c]
push esi
push ecx
call fcn.0040f5d0
add esp, 8
cmp dword [ebp - 0x18], edi
jb 0x41ff91
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0042cb00
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.0042cb0b
mov esp, ebp
pop ebp
ret
Function at 0x4226c0
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 0x4226e0
xor esi, esi
jmp 0x422721
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x42271d
lea ebx, [eax + eax]
mov eax, ebx
call fcn.004327d0
mov esi, esp
test esi, esi
je 0x42271d
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 0x42271f
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 0x422768
push esi
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x422794
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.0042cb0b
mov esp, ebp
pop ebp
ret 4
xor eax, eax
jmp 0x42277f

Function at 0x4227a0
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 0x422817
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0042cb0b
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.0042cb0b
mov esp, ebp
pop ebp
ret 4
Function at 0x422b80
Capabilities:
Hash data with crc32

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d8d0
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 0x427e68
cmp word [eax], bx
jne 0x427e73
cmp dword [edi + 0x34], 8
lea eax, [edi + 0x20]
jb 0x427e73
mov eax, dword [eax]
push 0x4911a0
push eax
call fcn.0042e2ad
add esp, 8
mov dword [ebp - 0x4c], eax
cmp eax, ebx
jne 0x427e9d
push 0x4993bc
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x4c], 3
call fcn.004325ed
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 0x427ee2
mov ecx, dword [esi]
cmp dword [edi + 0x4c], ebx
jne 0x427eca
mov edx, dword [ecx]
mov eax, dword [ebp - 0x4c]
mov edx, dword [edx + 0x18]
push eax
call edx
jmp 0x427ed5
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 0x427eb6
mov eax, 0xf
cmp dword [edi + 0x4c], ebx
je 0x427f4f
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.00402aa8
push edi
mov ecx, esi
call fcn.00428270
cmp eax, ebx
je 0x427f3d
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x427f2a
mov eax, esi
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x1c]
push ecx
push 1
push edx
push eax
call fcn.0042e41b
add esp, 0x10
cmp dword [ebp - 0x18], 0x10
jb 0x427f4f
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0042cb00
add esp, 4
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.0042e502
add esp, 4
cmp dword [ebp - 0x34], 0x10
jb 0x427f6d
mov edx, dword [ebp - 0x48]
push edx
call fcn.0042cb00
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.0042cb0b
mov esp, ebp
pop ebp
ret 4
Function at 0x4284d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
xor ebx, ebx
cmp esi, ebx
je 0x428513
lea eax, [ebp - 0x10]
push eax
push esi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call fcn.004319ae
push 2
push ebx
push esi
call fcn.00431d7d
lea ecx, [ebp - 8]
push ecx
push esi
call fcn.004319ae
lea edx, [ebp - 0x10]
push edx
push esi
call fcn.00431a09
add esp, 0x24
cmp dword [ebp - 8], 0x14
jae 0x42851a
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push ebx
push esi
call fcn.00431d7d
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.00431c8e
add esp, 0x1c
test eax, eax
je 0x428513
mov eax, dword [ebp - 0x24]
cmp eax, 0x58453144
jne 0x428513
cmp edi, ebx
je 0x428576
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 0x428986
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x47da12
call fcn.0043314f
mov esi, 0x801
push esi
call fcn.0042bdac
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.0042ee00
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 0x428a12
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 0x428a09
mov ecx, dword [ebp + 0x10]
push ebx
call fcn.00405d4f
mov dword [ebp - 0x18], esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x20], edi
je 0x428a20
push dword [ebp - 0x20]
call fcn.0042d24b
pop ecx
mov eax, dword [ebp - 0x18]
call fcn.004331f4
ret
Function at 0x428c90
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 0x428ca3
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 0x428d1d
mov eax, dword [esi + 0x38]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call fcn.0042ee80
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 0x428cf1
sub eax, edi
jmp 0x428cf3
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x428ce2
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 0x428d10
sub eax, edi
jmp 0x428d12
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x428d01
add ebx, edi
mov dword [ebp - 4], ebx
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x428dd2
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 0x428d43
mov ebx, ecx
test ebx, ebx
je 0x428d96
sub eax, ebx
mov dword [edi + 4], eax
mov eax, dword [edi + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x428d65
mov edx, dword [edi]
mov ecx, dword [edi + 0x30]
mov eax, ebx
call fcn.004244e0
jmp 0x428d7e
cmp eax, 2
jne 0x428d84
mov ecx, dword [edi]
mov eax, dword [edi + 0x30]
test ecx, ecx
jne 0x428d77
xor eax, eax
jmp 0x428d81
mov edx, ebx
call fcn.00422ba0
mov edx, dword [ebp - 8]
mov dword [edi + 0x30], eax
mov ecx, dword [edi]
push ebx
push ecx
push edx
call fcn.0042ee80
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 0x428dbe
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 0x428dd2
mov edx, dword [esi]
cmp dword [edx + 4], 0
jne 0x428ca0
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42b11a
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4a84e0], 0
push esi
push edi
jne 0x42b090
call fcn.0042affc
test eax, eax
je 0x42b0d5
mov eax, dword [0x4a84e0]
cmp eax, 1
jne 0x42b0b1
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x42b0d5
jmp 0x42b117
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x42b117
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 0x42b0d9
xor eax, eax
jmp 0x42b117
mov eax, dword [esi]
push dword [0x4a84e0]
call edi
mov edi, eax
test edi, edi
je 0x42b0fb
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x42b117
lea edi, [esi + 0xff0]
push esi
push dword [0x4a84e0]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x42b101
mov eax, esi
pop edi
pop esi
ret
jmp 0x42b07c

Function at 0x42cb0b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a0234]
jne 0x42cb15
repz ret
jmp fcn.004353b2

Function at 0x42e576
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 0x42e59d
call fcn.00432cae
mov dword [eax], esi
call fcn.00432c9b
push 0x16
pop esi
mov dword [eax], esi
call fcn.004369d4
mov eax, esi
jmp 0x42e5f2
test dword [ebp + 0xc], 0xfffffff9
jne 0x42e583
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42e5ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00432cc1
pop ecx
call fcn.00432c9b
mov eax, dword [eax]
jmp 0x42e5f2
test al, 0x10
jne 0x42e5f0
test al, 1
je 0x42e5f0
test byte [ebp + 0xc], 2
je 0x42e5f0
call fcn.00432cae
mov dword [eax], 5
call fcn.00432c9b
mov dword [eax], 0xd
jmp 0x42e5c1
xor eax, eax
pop esi
pop ebp
ret