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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47e21a
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x49e234]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x49e234]
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 0x413f53
sub eax, esi
sar eax, 1
lea esi, [esp + 0x20]
call fcn.00402141
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 0x414048
mov ecx, dword [ebx + 0xc4]
cmp ecx, edx
ja 0x414048
mov edi, esi
sub edi, ecx
cmp eax, dword [ebx + 0xcc]
jne 0x413fab
lea ecx, [ebx + 0xc4]
call fcn.00401461
mov esi, dword [ebx + 0xc8]
and edi, 0xffffffe0
add edi, dword [ebx + 0xc4]
test esi, esi
je 0x4140f2
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp esi, edi
je 0x414040
cmp dword [esi + 0x14], 8
jb 0x413fea
mov ecx, dword [esi]
push ecx
call fcn.0042b7c0
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 0x414017
mov eax, dword [edi + 0x10]
lea ecx, [eax + eax + 2]
push ecx
push edi
push esi
call fcn.0042ba70
add esp, 0xc
jmp 0x414021
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 0x4140ef
cmp eax, dword [ebx + 0xcc]
jne 0x41405b
lea ecx, [ebx + 0xc4]
call fcn.00401461
mov esi, dword [ebx + 0xc8]
cmp esi, edi
je 0x4140f2
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 0x4140eb
cmp dword [esi + 0x14], 8
jb 0x414091
mov eax, dword [esi]
push eax
call fcn.0042b7c0
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 0x4140c0
mov edx, dword [esp + 0x30]
lea eax, [edx + edx + 2]
push eax
lea ecx, [esp + 0x24]
push ecx
push esi
call fcn.0042ba70
add esp, 0xc
jmp 0x4140ca
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 0x41410d
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0042b7c0
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.0042b7cb
mov esp, ebp
pop ebp
ret 4
Function at 0x41bd10
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d322
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x49e234]
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.0044c340
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.0045d880
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 0xc
call fcn.0045d880
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.0044c340
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.00467be0
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.0042b7cb
mov esp, ebp
pop ebp
ret
Function at 0x41c220
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47bb06
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x49e234]
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 0x41c25e
mov dword [esi + 8], 0x48fef4
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], 0x48feec
call fcn.0041c3f0
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.0045d880
mov byte [ebp - 4], 1
lea ecx, [edi + 0x1c]
mov dword [edi + 0x18], ebx
call fcn.0045d880
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 0x41c3f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47ba9e
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x49e234]
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 0x41c42e
mov dword [esi + 8], 0x48feec
lea ecx, [esi + 0x10]
mov dword [esi + 0xc], ebx
call fcn.0045d880
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.0045d880
mov byte [ebp - 4], 2
lea ecx, [edi + 0x1c]
mov dword [edi + 0x18], ebx
call fcn.0045d880
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 0x41eb00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d1f9
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x49e234]
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 0x41eb51
xor ebx, ebx
sub eax, edx
cmp ecx, ebx
jne 0x41eb65
mov dword [ebp - 0x50], ebx
jmp 0x41eb71
mov edx, eax
xor eax, eax
call fcn.00421820
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 0x41ebc5
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.0040ccf3
movzx esi, word [edi + 2]
add edi, 2
inc ebx
test si, si
jne 0x41eb91
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 0x41ebf3
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x4c]
push esi
push ecx
call fcn.0040e490
add esp, 8
cmp dword [ebp - 0x18], edi
jb 0x41ec11
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0042b7c0
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.0042b7cb
mov esp, ebp
pop ebp
ret
Function at 0x421340
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x49e234]
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 0x421360
xor esi, esi
jmp 0x4213a1
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x42139d
lea ebx, [eax + eax]
mov eax, ebx
call fcn.00431490
mov esi, esp
test esi, esi
je 0x42139d
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 0x42139f
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 0x4213e8
push esi
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x421414
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.0042b7cb
mov esp, ebp
pop ebp
ret 4
xor eax, eax
jmp 0x4213ff

Function at 0x421420
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x49e234]
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 0x421497
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0042b7cb
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.0042b7cb
mov esp, ebp
pop ebp
ret 4
Function at 0x421800
Capabilities:
Hash data with crc32

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47be00
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x49e234]
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 0x426ac8
cmp word [eax], bx
jne 0x426ad3
cmp dword [edi + 0x34], 8
lea eax, [edi + 0x20]
jb 0x426ad3
mov eax, dword [eax]
push 0x48f158
push eax
call fcn.0042cf6d
add esp, 8
mov dword [ebp - 0x4c], eax
cmp eax, ebx
jne 0x426afd
push 0x4972f4
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x4c], 3
call fcn.004312ad
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 0x426b42
mov ecx, dword [esi]
cmp dword [edi + 0x4c], ebx
jne 0x426b2a
mov edx, dword [ecx]
mov eax, dword [ebp - 0x4c]
mov edx, dword [edx + 0x18]
push eax
call edx
jmp 0x426b35
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 0x426b16
mov eax, 0xf
cmp dword [edi + 0x4c], ebx
je 0x426baf
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.0040192c
push edi
mov ecx, esi
call fcn.00426ed0
cmp eax, ebx
je 0x426b9d
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x426b8a
mov eax, esi
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x1c]
push ecx
push 1
push edx
push eax
call fcn.0042d0db
add esp, 0x10
cmp dword [ebp - 0x18], 0x10
jb 0x426baf
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0042b7c0
add esp, 4
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.0042d1c2
add esp, 4
cmp dword [ebp - 0x34], 0x10
jb 0x426bcd
mov edx, dword [ebp - 0x48]
push edx
call fcn.0042b7c0
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.0042b7cb
mov esp, ebp
pop ebp
ret 4
Function at 0x427130
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
xor ebx, ebx
cmp esi, ebx
je 0x427173
lea eax, [ebp - 0x10]
push eax
push esi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call fcn.0043066e
push 2
push ebx
push esi
call fcn.00430a3d
lea ecx, [ebp - 8]
push ecx
push esi
call fcn.0043066e
lea edx, [ebp - 0x10]
push edx
push esi
call fcn.004306c9
add esp, 0x24
cmp dword [ebp - 8], 0x14
jae 0x42717a
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push ebx
push esi
call fcn.00430a3d
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.0043094e
add esp, 0x1c
test eax, eax
je 0x427173
mov eax, dword [ebp - 0x24]
cmp eax, 0x58453144
jne 0x427173
cmp edi, ebx
je 0x4271d6
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 0x427646
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x47c0ba
call fcn.00431e0f
mov esi, 0x801
push esi
call fcn.0042aa6c
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.0042dac0
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 0x4276d2
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 0x4276c9
mov ecx, dword [ebp + 0x10]
push ebx
call fcn.00405156
mov dword [ebp - 0x18], esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x20], edi
je 0x4276e0
push dword [ebp - 0x20]
call fcn.0042beb5
pop ecx
mov eax, dword [ebp - 0x18]
call fcn.00431eb4
ret
Function at 0x427950
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 0x427963
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 0x4279dd
mov eax, dword [esi + 0x38]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call fcn.0042db40
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 0x4279b1
sub eax, edi
jmp 0x4279b3
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x4279a2
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 0x4279d0
sub eax, edi
jmp 0x4279d2
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x4279c1
add ebx, edi
mov dword [ebp - 4], ebx
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x427a92
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 0x427a03
mov ebx, ecx
test ebx, ebx
je 0x427a56
sub eax, ebx
mov dword [edi + 4], eax
mov eax, dword [edi + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x427a25
mov edx, dword [edi]
mov ecx, dword [edi + 0x30]
mov eax, ebx
call fcn.00423160
jmp 0x427a3e
cmp eax, 2
jne 0x427a44
mov ecx, dword [edi]
mov eax, dword [edi + 0x30]
test ecx, ecx
jne 0x427a37
xor eax, eax
jmp 0x427a41
mov edx, ebx
call fcn.00421820
mov edx, dword [ebp - 8]
mov dword [edi + 0x30], eax
mov ecx, dword [edi]
push ebx
push ecx
push edx
call fcn.0042db40
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 0x427a7e
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 0x427a92
mov edx, dword [esi]
cmp dword [edx + 4], 0
jne 0x427960
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x429dd8
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4a64c0], 0
push esi
push edi
jne 0x429d4e
call fcn.00429cba
test eax, eax
je 0x429d93
mov eax, dword [0x4a64c0]
cmp eax, 1
jne 0x429d6f
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x429d93
jmp 0x429dd5
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x429dd5
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 0x429d97
xor eax, eax
jmp 0x429dd5
mov eax, dword [esi]
push dword [0x4a64c0]
call edi
mov edi, eax
test edi, edi
je 0x429db9
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x429dd5
lea edi, [esi + 0xff0]
push esi
push dword [0x4a64c0]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x429dbf
mov eax, esi
pop edi
pop esi
ret
jmp 0x429d3a

Function at 0x42b7cb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x49e234]
jne 0x42b7d5
repz ret
jmp fcn.00434072

Function at 0x42d236
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 0x42d25d
call fcn.0043196e
mov dword [eax], esi
call fcn.0043195b
push 0x16
pop esi
mov dword [eax], esi
call fcn.00435495
mov eax, esi
jmp 0x42d2b2
test dword [ebp + 0xc], 0xfffffff9
jne 0x42d243
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42d28a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00431981
pop ecx
call fcn.0043195b
mov eax, dword [eax]
jmp 0x42d2b2
test al, 0x10
jne 0x42d2b0
test al, 1
je 0x42d2b0
test byte [ebp + 0xc], 2
je 0x42d2b0
call fcn.0043196e
mov dword [eax], 5
call fcn.0043195b
mov dword [eax], 0xd
jmp 0x42d281
xor eax, eax
pop esi
pop ebp
ret