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

Disassembly:
push 0xffffffffffffffff
push 0x480351
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
push 0x23
push str.Inflator:_error_in_compressed_block
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], esi
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
call fcn.0040206a
mov ecx, esi
mov dword [esp + 0x30], 0
call dword [sym.imp.MSVCR120.dll_public:_void___thiscall_std::exception::constructor_void_]
push 0xffffffffffffffff
lea ecx, [esi + 0x10]
mov dword [esi], vtable.CryptoPP::Exception.0
mov dword [esi + 0xc], 4
lea eax, [esp + 0x10]
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [esp + 0x3c], 1
mov byte [ecx], 0
call fcn.00401e8e
cmp dword [esp + 0x20], 0x10
mov dword [esi], vtable.CryptoPP::Inflator::Err.0
jb 0x4722a7
push dword [esp + 0xc]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, esi
mov dword [esi], vtable.CryptoPP::Inflator::BadBlockErr.0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00452da4
add esp, 0x2c
ret

Function at 0x472360
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x480351
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
push 0x1f
push str.Inflator:_error_in_bit_distance
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], esi
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
call fcn.0040206a
mov ecx, esi
mov dword [esp + 0x30], 0
call dword [sym.imp.MSVCR120.dll_public:_void___thiscall_std::exception::constructor_void_]
push 0xffffffffffffffff
lea ecx, [esi + 0x10]
mov dword [esi], vtable.CryptoPP::Exception.0
mov dword [esi + 0xc], 4
lea eax, [esp + 0x10]
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [esp + 0x3c], 1
mov byte [ecx], 0
call fcn.00401e8e
cmp dword [esp + 0x20], 0x10
mov dword [esi], vtable.CryptoPP::Inflator::Err.0
jb 0x472417
push dword [esp + 0xc]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, esi
mov dword [esi], vtable.CryptoPP::Inflator::BadDistanceErr.0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00452da4
add esp, 0x2c
ret
Function at 0x4728a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x480351
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
push 0x2c
push str.Inflator:_unexpected_end_of_compressed_block
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], esi
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
call fcn.0040206a
mov ecx, esi
mov dword [esp + 0x30], 0
call dword [sym.imp.MSVCR120.dll_public:_void___thiscall_std::exception::constructor_void_]
push 0xffffffffffffffff
lea ecx, [esi + 0x10]
mov dword [esi], vtable.CryptoPP::Exception.0
mov dword [esi + 0xc], 4
lea eax, [esp + 0x10]
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [esp + 0x3c], 1
mov byte [ecx], 0
call fcn.00401e8e
cmp dword [esp + 0x20], 0x10
mov dword [esi], vtable.CryptoPP::Inflator::Err.0
jb 0x472957
push dword [esp + 0xc]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, esi
mov dword [esi], vtable.CryptoPP::Inflator::UnexpectedEndErr.0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00452da4
add esp, 0x2c
ret

Function at 0x474ba0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 8
mov edx, dword [esp + 0x14]
mov eax, 0
push ebx
xor bl, bl
test byte [esp + 0x10], 3
push ebp
sete al
push esi
test eax, eax
je 0x474c55
test cl, 3
mov eax, 0
sete al
test eax, eax
je 0x474c55
test edx, edx
je 0x474c75
mov ebx, dword [esp + 0x18]
xor eax, eax
push edi
mov edi, edx
mov dword [esp + 0x10], eax
shr edi, 2
xor esi, esi
test edi, edi
je 0x474c1c
sub ebx, ecx
mov dword [esp + 0x14], edi
mov esi, ecx
xor ebp, ebp
mov eax, dword [ebx + esi]
lea esi, [esi + 4]
xor eax, dword [esi - 4]
or ebp, eax
dec edi
jne 0x474c00
mov ebx, dword [esp + 0x1c]
mov eax, ebp
mov esi, dword [esp + 0x14]
mov dword [esp + 0x10], ebp
shl esi, 2
pop edi
sub edx, esi
jne 0x474c36
mov ebp, dword [esp + 0xc]
xor eax, eax
pop esi
test ebp, ebp
pop ebp
sete al
pop ebx
add esp, 8
ret
add ebx, esi
add ecx, esi
mov dword [esp + 0x18], ebx
mov ebx, eax
shr eax, 0x10
shr ebx, 0x18
or bl, al
mov eax, dword [esp + 0xc]
shr eax, 8
or bl, al
or bl, byte [esp + 0xc]
test edx, edx
je 0x474c75
mov eax, dword [esp + 0x18]
sub eax, ecx
mov dword [esp + 0x18], eax
mov al, byte [ecx + eax]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
or bl, al
mov eax, dword [esp + 0x18]
dec edx
jne 0x474c63
xor eax, eax
test bl, bl
pop esi
pop ebp
sete al
pop ebx
add esp, 8
ret
Function at 0x477f10
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov ecx, dword [esp + 8]
mov eax, ecx
mov edx, dword [esp + 4]
add eax, eax
lea ecx, [ecx*4 - 4]
movdqa xmm0, xmmword [edx + eax*8]
movdqa xmm1, xmmword [edx]
movdqa xmmword [edx], xmm0
movdqa xmmword [edx + eax*8], xmm1
mov eax, 4
cmp ecx, eax
jbe 0x477f60
mov edi, edi
aesimc xmm0, xmmword [edx + ecx*4]
aesimc xmm1, xmmword [edx + eax*4]
movdqa xmmword [edx + eax*4], xmm0
add eax, 4
movdqa xmmword [edx + ecx*4], xmm1
sub ecx, 4
cmp eax, ecx
jb 0x477f40
aesimc xmm0, xmmword [edx + eax*4]
movdqa xmmword [edx + eax*4], xmm0
ret

Function at 0x477f70
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x28
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
push edi
push eax
push esi
movdqu xmm0, xmmword [eax + edi - 0x10]
movdqa xmmword [esp + 0x2c], xmm0
call sub.MSVCR120.dll_memcpy
movdqa xmm1, xmmword [esp + 0x2c]
mov edx, edi
shr edx, 2
add esp, 0xc
aeskeygenassist xmm0, xmm1, 0
pextrd ecx, xmm0, 3
xor ecx, dword [esi]
lea edi, [esi + edx*4]
lea eax, [edx + 7]
mov dword [esp + 8], 0x486664
shl eax, 4
xor ecx, 1
add eax, esi
mov dword [edi], ecx
mov dword [esp + 0xc], eax
lea eax, [edx*4]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 4]
xor eax, ecx
mov dword [edi + 4], eax
mov ecx, dword [esi + 8]
xor ecx, eax
lea eax, [edx*4 + 8]
mov dword [eax + esi], ecx
mov dword [esp + 0x14], eax
lea eax, [edx*4 + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0xc]
xor eax, ecx
mov dword [esi + edx*4 + 0xc], eax
lea eax, [edx*4 + 0x10]
mov dword [esp + 0x1c], eax
add eax, esi
cmp eax, dword [esp + 0xc]
je 0x4780de
mov edx, dword [esp + 0x10]
mov eax, dword [ebp + 0xc]
cmp eax, 0x18
jne 0x478046
mov eax, dword [esi + 0x24]
xor eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
xor ecx, eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ecx
pinsrd xmm1, ecx, 3
jmp 0x47808b
cmp eax, 0x20
jne 0x478084
pinsrd xmm1, dword [esi + 0x2c], 3
mov eax, dword [esi + 0x14]
aeskeygenassist xmm0, xmm1, 0
pextrd ecx, xmm0, 2
xor ecx, dword [esi + 0x10]
xor eax, ecx
mov dword [esi + 0x30], ecx
mov ecx, dword [esi + 0x18]
xor ecx, eax
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x1c]
xor eax, ecx
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], eax
pinsrd xmm1, eax, 3
jmp 0x47808b
pinsrd xmm1, dword [esi + 0x1c], 3
mov ecx, dword [esp + 8]
mov esi, edi
aeskeygenassist xmm0, xmm1, 0
pextrd eax, xmm0, 3
lea edi, [edx + esi]
xor eax, dword [ecx]
add ecx, 4
xor eax, dword [esi]
mov dword [edi], eax
mov eax, dword [esi + 4]
xor eax, dword [edi]
mov dword [edx + esi + 4], eax
mov dword [esp + 8], ecx
mov ecx, dword [esi + 8]
xor ecx, eax
mov eax, dword [esp + 0x14]
mov dword [eax + esi], ecx
mov eax, dword [esi + 0xc]
xor eax, ecx
mov ecx, dword [esp + 0x18]
mov dword [ecx + esi], eax
mov eax, dword [esp + 0x1c]
add eax, esi
cmp eax, dword [esp + 0xc]
jne 0x478025
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x47b070
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0047b080

Function at 0x47b300
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x47b30c
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.0047b320
Function at 0x401000
Capabilities:
Check os version

Disassembly:
mov ecx, 1
mov edx, 0x818748
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x401129
cmp dword fs:[0xc0], eax
je 0x40102b
mov dword [0x818744], 1
mov eax, dword fs:[0x18]
push ebx
push esi
mov ebx, 1
mov esi, dword [eax + 0x30]
mov eax, dword [esi + 0xa4]
mov dword [0x81862c], eax
mov eax, dword [esi + 0xa8]
mov dword [0x818630], eax
movzx edx, word [esi + 0xac]
mov dword [0x818634], edx
mov eax, dword [esi + 0xb0]
mov dword [0x818638], eax
mov eax, dword [esi + 0x1f4]
test eax, eax
je 0x40108b
push 0x7f
push eax
push 0x81863c
call fcn.00403b20
mov edx, dword [0x818634]
add esp, 0xc
jmp 0x401093
xor eax, eax
mov word [0x81863c], ax
movzx eax, byte [esi + 0xaf]
mov ecx, 0xff
mov word [0x81873c], ax
movzx eax, word [esi + 0xae]
and ax, cx
mov word [0x81873e], ax
movzx eax, word [0x7ffe02d0]
mov word [0x818740], ax
mov ecx, eax
mov byte [0x818742], 0
cmp byte [0x7ffe0268], 0
je 0x4010da
mov ebx, dword [0x7ffe0264]
pop esi
mov byte [0x818742], bl
cmp ebx, 1
pop ebx
jne 0x4010f4
and ecx, 0xffef
mov word [0x818740], cx
test edx, edx
jne 0x401129
call section..text
cmp dword [0x81862c], 6
ja 0x401129
jb 0x401111
cmp dword [0x818630], 4
jae 0x401129
call section..text
cmp dword [0x81862c], 0xa
jae 0x401129
mov dword [0x818634], 1
ret
Function at 0x4011e0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
sub esp, 0xc08
push ebx
push ebp
mov dword [esp + 0xc], edx
xor edx, edx
mov dword [esp + 8], edx
push esi
push edi
test ecx, ecx
je 0x40122b
xor esi, esi
lea edi, [esp + 0x818]
mov al, byte [esi + ecx]
test al, al
je 0x40121b
cbw
inc esi
mov word [edi], ax
add edi, 2
cmp esi, 0x1ff
jb 0x401201
jmp 0x401220
xor eax, eax
mov word [edi], ax
lea edx, [esp + 0x818]
mov dword [esp + 0x10], edx
xor edi, edi
xor ebp, ebp
test edx, edx
je 0x40127b
mov edi, edx
lea ecx, [edi + 2]
jmp 0x401240
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x401240
sub edi, ecx
sar edi, 1
cmp edi, 0x200
jb 0x40125c
mov edi, 0x1ff
push edi
push edx
lea eax, [esp + 0x420]
push eax
lea ebp, [edi + edi]
call fcn.00403b20
add esp, 0xc
xor eax, eax
mov word [esp + ebp + 0x418], ax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0xc
jne 0x40129d
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0x14
je 0x401310
mov esi, dword [ebx]
cmp esi, ebx
je 0x401310
test esi, esi
je 0x401310
cmp word [esi + 0x24], 2
jbe 0x40130a
movzx eax, word [esi + 0x2c]
cmp eax, 2
jbe 0x40130a
cmp dword [esi + 0x18], 0
je 0x40130a
test ebp, ebp
je 0x4012c5
cmp ebp, eax
jne 0x40130a
push edi
push dword [esi + 0x30]
lea eax, [esp + 0x20]
push eax
call fcn.00403b20
xor eax, eax
add esp, 0xc
mov word [esp + edi*2 + 0x18], ax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4012ea
cmp eax, dword [esi + 0x18]
jne 0x40130a
cmp dword [esp + 0x10], 0
je 0x40131d
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x41c]
push eax
call fcn.00401180
add esp, 8
test eax, eax
je 0x40131d
mov esi, dword [esi]
cmp esi, ebx
jne 0x4012a3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc08
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc08
ret
Function at 0x401c00
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
sub esp, 0x40
push ebx
push esi
push edi
test ecx, ecx
jle 0x401c28
mov eax, dword [ebp + 0x10]
lea edx, [ebp + 0x18]
dec ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0xc], ecx
mov dword [ebp - 0xc], eax
jmp 0x401c36
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
test ecx, ecx
jle 0x401c4f
dec ecx
add edx, 8
mov dword [ebp + 0xc], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x14], eax
jmp 0x401c5d
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
test ecx, ecx
jle 0x401c76
dec ecx
add edx, 8
mov dword [ebp + 0xc], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x1c], eax
jmp 0x401c84
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
test ecx, ecx
jle 0x401c9d
dec ecx
add edx, 8
mov dword [ebp + 0xc], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x28], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x24], eax
jmp 0x401cab
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov eax, edx
mov dword [ebp - 0x30], 0
cdq
mov dword [ebp - 0x40], eax
mov eax, ecx
mov dword [ebp - 0x3c], edx
cdq
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov word [ebp - 8], fs
mov eax, 0x2b
mov fs, ax
mov dword [ebp - 4], esp
and esp, 0xfffffff0
push 0x33
call fcn.00401cf2

Function at 0x401d80
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
sub esp, 0x808
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x10], edx
xor ebp, ebp
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x401ddb
mov edi, ecx
lea edx, [edi + 2]
nop
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x401da0
sub edi, edx
sar edi, 1
cmp edi, 0x200
jb 0x401dbc
mov edi, 0x1ff
push edi
push ecx
lea eax, [esp + 0x420]
push eax
lea ebp, [edi + edi]
call fcn.00403b20
add esp, 0xc
xor eax, eax
mov word [esp + ebp + 0x418], ax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0xc
jne 0x401dfd
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0x14
je 0x401e6f
mov esi, dword [ebx]
cmp esi, ebx
je 0x401e6f
test esi, esi
je 0x401e6f
cmp word [esi + 0x24], 2
jbe 0x401e69
movzx eax, word [esi + 0x2c]
cmp eax, 2
jbe 0x401e69
cmp dword [esi + 0x18], 0
je 0x401e69
test ebp, ebp
je 0x401e25
cmp ebp, eax
jne 0x401e69
push edi
push dword [esi + 0x30]
lea eax, [esp + 0x20]
push eax
call fcn.00403b20
mov edx, dword [esp + 0x1c]
xor eax, eax
add esp, 0xc
mov word [esp + edi*2 + 0x18], ax
test edx, edx
je 0x401e4a
cmp edx, dword [esi + 0x18]
jne 0x401e69
cmp dword [esp + 0x14], eax
je 0x401e7c
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x41c]
push eax
call fcn.00401180
add esp, 8
test eax, eax
je 0x401e7c
mov esi, dword [esi]
cmp esi, ebx
jne 0x401e03
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x808
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x808
ret
Function at 0x4028e0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Get windows directory from kuser_shared_data

Disassembly:
mov eax, dword [0x818608]
sub esp, 0x20c
push ebp
mov ebp, ecx
push esi
push edi
test eax, eax
je 0x402a8d
cmp dword [0x81860c], 0
jne 0x402a79
xor eax, eax
push 0x100
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov word [esp + 0x1c], ax
mov byte [esp + 0x1e], al
lea eax, [esp + 0x20]
push eax
call fcn.00403da0
add esp, 0xc
xor edi, edi
xor eax, eax
nop
mov byte [esp + eax + 0x18], al
inc eax
cmp eax, 0x100
jb 0x402930
xor esi, esi
mov edi, edi
mov dl, byte [esp + esi + 0x18]
mov eax, esi
and eax, 3
movzx ecx, dl
movzx eax, byte [eax + 0x41e0d4]
add eax, edi
add ecx, eax
movzx edi, cl
mov al, byte [esp + edi + 0x18]
mov byte [esp + esi + 0x18], al
inc esi
mov byte [esp + edi + 0x18], dl
cmp esi, 0x100
jb 0x402940
xor esi, esi
xor edi, edi
xor edx, edx
lea eax, [esi + 1]
movzx esi, al
mov cl, byte [esp + esi + 0x18]
movzx eax, cl
add eax, edi
movzx edi, al
movzx eax, byte [esp + edi + 0x18]
mov byte [esp + esi + 0x18], al
mov byte [esp + edi + 0x18], cl
movzx eax, byte [esp + esi + 0x18]
movzx ecx, cl
add ecx, eax
movzx eax, cl
movzx eax, byte [esp + eax + 0x18]
xor al, byte [edx + 0x41e0d8]
mov byte [esp + edx + 0xc], al
inc edx
cmp edx, 0xb
jb 0x402975
push 0x200
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00403da0
mov edx, 0x7ffe0030
add esp, 0xc
xor ecx, ecx
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4029d4
sub edx, esi
sar edx, 1
je 0x402a8d
mov esi, ebp
lea edi, [esi + 1]
mov edi, edi
mov al, byte [esi]
inc esi
test al, al
jne 0x4029f0
sub esi, edi
add edx, 0xc
add edx, esi
cmp edx, 0x200
ja 0x402a8d
xor eax, eax
push ebx
test edx, edx
je 0x402a28
movzx ebx, word [eax + eax + 0x7ffe0030]
test bx, bx
je 0x402a28
mov byte [esp + eax + 0x1c], bl
inc ecx
inc eax
cmp eax, edx
jb 0x402a11
xor eax, eax
test edx, edx
je 0x402a42
mov edi, edi
mov bl, byte [esp + eax + 0x10]
test bl, bl
je 0x402a42
mov byte [esp + ecx + 0x1c], bl
inc eax
inc ecx
cmp eax, edx
jb 0x402a30
xor eax, eax
test edx, edx
je 0x402a5f
lea ecx, [esp + ecx + 0x1c]
lea esp, [esp]
mov bl, byte [eax + ebp]
test bl, bl
je 0x402a5f
mov byte [ecx], bl
inc eax
inc ecx
cmp eax, edx
jb 0x402a50
push 8
push 0
lea eax, [esp + 0x24]
push eax
call dword [0x818608]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x20c
ret
push 0x800
push 0
push ebp
call eax
pop edi
pop esi
pop ebp
add esp, 0x20c
ret
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x20c
ret
Function at 0x402e40
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [0x819418]
sub esp, 0x11c
test eax, eax
jne 0x402f3e
push ebx
push esi
push edi
push 0x100
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov word [esp + 0x2c], ax
lea eax, [esp + 0x30]
push eax
call fcn.00403da0
add esp, 0xc
xor edi, edi
xor eax, eax
lea ebx, [ebx]
mov byte [esp + eax + 0x28], al
inc eax
cmp eax, 0x100
jb 0x402e90
xor esi, esi
mov edi, edi
mov dl, byte [esp + esi + 0x28]
mov eax, esi
and eax, 3
movzx ecx, dl
movzx eax, byte [eax + 0x41e100]
add eax, edi
add ecx, eax
movzx edi, cl
mov al, byte [esp + edi + 0x28]
mov byte [esp + esi + 0x28], al
inc esi
mov byte [esp + edi + 0x28], dl
cmp esi, 0x100
jb 0x402ea0
xor edi, edi
xor ebx, ebx
xor esi, esi
lea eax, [edi + 1]
movzx edi, al
mov cl, byte [esp + edi + 0x28]
movzx edx, cl
lea eax, [edx + ebx]
movzx ebx, al
movzx eax, byte [esp + ebx + 0x28]
mov byte [esp + edi + 0x28], al
mov byte [esp + ebx + 0x28], cl
movzx eax, byte [esp + edi + 0x28]
add eax, edx
movzx eax, al
movzx eax, byte [esp + eax + 0x28]
xor al, byte [esi + 0x41e104]
mov byte [esp + esi + 0xc], al
inc esi
cmp esi, 0x1a
jb 0x402ed5
xor edx, edx
lea ecx, [esp + 0xc]
call fcn.00401d80
pop edi
pop esi
pop ebx
test eax, eax
je 0x402f39
mov eax, dword [eax + 0x18]
test eax, eax
je 0x402f39
mov dword [0x819418], eax
add esp, 0x11c
ret
mov eax, dword [0x819418]
add esp, 0x11c
ret
Function at 0x41d0e2
Capabilities:
Execute syscall

Disassembly:
mov edx, esp
sysenter
ret
Function at 0x40154e
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, ecx
push dword [esi + 0x58]
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
cmp dword [ebp + 0xc], eax
jne 0x4015c5
lea ecx, [ebp - 0x20]
call fcn.00401b47
and byte [ebp - 0xc], 0
and dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
mov eax, 0x104
mov dword [ebp - 8], ecx
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], eax
call fcn.004066a9
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [ebp - 0x10]
call fcn.00401684
lea ecx, [ebp - 0x20]
call fcn.0040181c
push 1
push dword [ebp - 0x1c]
push 0
push str.http:__consumer.installshield.com
push str.open
push dword [esi + 4]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [ebp - 0x20]
call fcn.00401646
xor eax, eax
pop esi
leave
ret 0x10

Function at 0x401b77
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
cmp dword [esp + 0xc], 0
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
jne 0x401b91
mov dword [esp + 0x1c], 0x409
push dword [esp + 0x1c]
mov ecx, esi
call fcn.00401dca
push dword [0x41b3e0]
mov ecx, esi
mov edi, eax
push 0
call fcn.00401c70
mov ecx, dword [esp + 0x18]
push 1
mov eax, ecx
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceExA]
shr eax, 4
inc eax
pop ebp
push dword [esp + 0x1c]
and ecx, 0xf
movzx esi, ax
push esi
push 6
push edi
mov dword [esp + 0x28], ecx
call ebx
test eax, eax
jne 0x401c02
mov eax, dword [esp + 0x1c]
push 2
and ax, 0x3ff
pop ebp
or ah, 4
push eax
push esi
push 6
push edi
call ebx
test eax, eax
jne 0x401c02
push 3
pop ebp
push 6
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x401c66
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401c30
xor edx, edx
mov cx, word [eax]
test cx, cx
je 0x401c28
inc eax
inc eax
cmp edx, dword [esp + 0x18]
movzx ecx, cx
je 0x401c55
lea eax, [eax + ecx*2]
jmp 0x401c2a
inc eax
inc eax
inc edx
cmp edx, 0x10
jl 0x401c10
cmp ebp, 1
jne 0x401c4e
mov eax, dword [esp + 0x1c]
push 2
and ax, 0x3ff
pop ebp
or ah, 4
push eax
push esi
push 6
push edi
call ebx
test eax, eax
jne 0x401c02
cmp ebp, 2
jne 0x401c66
jmp 0x401bf1
push ecx
mov ecx, dword [esp + 0x14]
push eax
push 0
call fcn.00401d2c
mov al, 1
jmp 0x401c68
xor al, al
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x401dca
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
push ebx
xor ebx, ebx
cmp dword [0x421938], ebx
push esi
push edi
jne 0x401f18
lea ecx, [ebp - 0x18]
call fcn.00401f68
push 0x20019
push str.Typeliba681f238_74bb_4807_b940_a80197ecbbe61.00win32
push SysReAllocStringLen
lea ecx, [ebp - 4]
mov dword [ebp - 0x18], 0x41b3dc
mov dword [ebp - 4], ebx
call fcn.00401f2a
mov eax, 0x104
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x18]
mov byte [ebp - 0x28], bl
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ebx
call fcn.004066a9
lea ecx, [ebp - 0x1c]
mov dword [ebp - 8], ebx
push ecx
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x421934
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.00401684
cmp esi, ebx
jne 0x401e79
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x18]
push eax
call fcn.00402141
push eax
lea ecx, [ebp - 0x18]
call fcn.00401f7c
lea ecx, [ebp - 0x38]
call fcn.00401646
push str._ispmres.dll
jmp 0x401eb1
lea eax, [ebp - 0x13c]
push str.InstallShieldUpdateService_ispmres.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x2c]
push 1
push eax
call fcn.00401fb4
add esp, 0x10
lea ecx, [ebp - 0x18]
push eax
call fcn.00401f7c
lea ecx, [ebp - 0x2c]
call fcn.00401646
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x18]
call fcn.004028d4
mov eax, dword [ebp - 0xc]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x401ec7
xor esi, esi
jmp 0x401ef3
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.00416190
mov esi, esp
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp - 8]
mov byte [esi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp dword [ebp - 4], ebx
mov dword [0x421938], eax
je 0x401f10
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x18]
call fcn.00401646
mov eax, dword [0x421938]
lea esp, [ebp - 0x148]
pop edi
pop esi
pop ebx
leave
ret 4