joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d0f80
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x44
mov eax, dword [0x776080]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x58]
lea eax, [esp + 0x3c]
push edi
mov edi, dword [esp + 0x58]
push esi
push eax
mov dword [edi + 0xf0], 0xe
call fcn.004d06b0
movups xmm0, xmmword [esp + 0x48]
lea eax, [esi + 0x10]
push eax
lea eax, [esp + 0x3c]
push eax
movups xmmword [edi], xmm0
call fcn.004d06b0
movups xmm2, xmmword [esp + 0x40]
add esp, 0x10
lea ebp, [edi + 0x20]
mov ebx, 2
movups xmmword [edi + 0x10], xmm2
nop dword [eax]
xorps xmm0, xmm0
lea eax, [esp + 0x10]
movups xmmword [esp + 0x10], xmm0
push eax
movups xmmword [esp + 0x24], xmm0
movaps xmm0, xmm2
movd dword [esp + 0x14], xmm2
psrldq xmm0, 4
movd dword [esp + 0x1c], xmm0
movaps xmm0, xmm2
psrldq xmm0, 8
movd dword [esp + 0x24], xmm0
movaps xmm0, xmm2
psrldq xmm0, 0xc
movd dword [esp + 0x2c], xmm0
call fcn.004d1710
lea eax, [esp + 0x14]
push eax
call fcn.004d1190
lea eax, [esp + 0x18]
push eax
call fcn.004d1710
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x3c], eax
mov eax, ebx
shr eax, 1
mov cl, byte [eax + 0x772baf]
xor eax, eax
movzx edi, cl
nop dword [eax]
mov edx, dword [esp + eax*4 + 0x30]
mov cl, al
add cl, cl
mov esi, edi
shr esi, cl
mov ecx, edx
and ecx, 0x3000000
shr edx, 8
or ecx, edx
and esi, 3
shr ecx, 0x12
xor esi, ecx
xor esi, dword [esp + eax*4 + 0x40]
mov ecx, esi
shl ecx, 8
xor ecx, esi
shl ecx, 8
xor ecx, esi
shl ecx, 8
xor ecx, esi
mov dword [esp + eax*4 + 0x40], ecx
inc eax
cmp eax, 4
jb 0x4d1070
movups xmm0, xmmword [esp + 0x40]
movups xmmword [ebp], xmm0
cmp ebx, 0xe
je 0x4d116e
mov eax, dword [esp + 0x40]
xorps xmm0, xmm0
movups xmmword [esp + 0x10], xmm0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x48]
movups xmmword [esp + 0x20], xmm0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x10]
push eax
call fcn.004d1710
lea eax, [esp + 0x14]
push eax
call fcn.004d1190
lea eax, [esp + 0x18]
push eax
call fcn.004d1710
mov eax, dword [esp + 0x1c]
add ebx, 2
mov dword [esp + 0x3c], eax
add esp, 0xc
mov eax, dword [esp + 0x18]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x3c], eax
movups xmm1, xmmword [esp + 0x30]
psrld xmm1, 0x18
xorps xmm1, xmm2
movaps xmm2, xmm1
movaps xmm0, xmm1
pslld xmm2, 8
pslld xmm0, 0x10
xorps xmm2, xmm1
pslld xmm1, 0x18
xorps xmm2, xmm0
xorps xmm2, xmm1
movups xmmword [ebp + 0x10], xmm2
add ebp, 0x20
cmp ebx, 0xe
jbe 0x4d0fe0
mov ecx, dword [esp + 0x50]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004e22c5
add esp, 0x44
ret
Function at 0x4d1790
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x254
mov eax, dword [0x776080]
xor eax, esp
mov dword [esp + 0x250], eax
cmp dword [esp + 0x260], 0
mov eax, dword [esp + 0x258]
mov dword [esp], eax
mov eax, dword [esp + 0x25c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x264]
push esi
mov esi, dword [esp + 0x26c]
mov dword [esp + 0xc], eax
je 0x4d1905
push ebp
push edi
push eax
lea eax, [esp + 0x40]
push eax
call fcn.004d0a40
movups xmm0, xmmword [esi]
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x224]
add esp, 8
lea edi, [esp + 0x23c]
movups xmmword [ecx], xmm0
mov eax, dword [ecx]
sub edi, esi
mov dword [ecx + 0x10], eax
mov eax, dword [ecx + 4]
mov dword [ecx + 0x14], eax
mov eax, dword [ecx + 8]
mov dword [ecx + 0x18], eax
mov eax, dword [ecx + 0xc]
mov dword [ecx + 0x1c], eax
mov ebp, dword [esp + 0x228]
bswap ebp
push ebx
nop word [eax + eax]
xor ecx, ecx
lea edx, [esp + 0x22c]
nop dword [eax]
lea eax, [ecx + ebp]
inc ecx
lea edx, [edx + 0x10]
bswap eax
mov dword [edx - 0x10], eax
cmp ecx, 2
jb 0x4d1840
mov ebx, dword [esp + 0x270]
mov eax, 2
cmp ebx, 2
cmovae ebx, eax
lea eax, [esp + 0x220]
push ebx
push eax
lea eax, [esp + 0x28]
mov dword [esp + 0x24], ebx
push eax
call fcn.004d1480
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x28]
push dword [eax + 0xf0]
lea eax, [esp + 0x54]
push eax
call fcn.004d0850
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x25c]
push ebx
push eax
call fcn.004d0b30
add esp, 0x24
test ebx, ebx
je 0x4d18e2
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
sub esi, eax
nop word [eax + eax]
mov edx, 4
mov ecx, dword [eax]
xor ecx, dword [eax + edi]
mov dword [esi + eax], ecx
add eax, 4
sub edx, 1
jne 0x4d18c5
sub ebx, 1
jne 0x4d18c0
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
sub dword [esp + 0x270], ebx
je 0x4d1902
add dword [esp + 0x14], 0x20
add esi, 0x20
sub edi, 0x20
mov dword [esp + 0x10], esi
add ebp, 2
jmp 0x4d1830
pop ebx
pop edi
pop ebp
mov ecx, dword [esp + 0x254]
pop esi
xor ecx, esp
call fcn.004e22c5
add esp, 0x254
ret
Function at 0x4d19b0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x44
mov eax, dword [0x776080]
xor eax, esp
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
push ebx
mov ebx, dword [esp + 0x54]
cmp eax, 0x80
je 0x4d1a0a
cmp eax, 0x100
je 0x4d19ee
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004e22c5
add esp, 0x44
ret
push ecx
push ebx
call fcn.004d0f80
add esp, 8
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004e22c5
add esp, 0x44
ret
push ebp
push esi
push edi
push ecx
lea eax, [esp + 0x44]
mov dword [ebx + 0xf0], 0xa
push eax
call fcn.004d06b0
movups xmm0, xmmword [esp + 0x48]
add esp, 8
mov edi, 1
movups xmmword [ebx], xmm0
add ebx, 0x10
nop word [eax + eax]
mov eax, dword [esp + 0x40]
xorps xmm0, xmm0
movups xmmword [esp + 0x20], xmm0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x48]
movups xmmword [esp + 0x30], xmm0
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x20]
push eax
call fcn.004d1710
lea eax, [esp + 0x24]
push eax
call fcn.004d1190
lea eax, [esp + 0x28]
push eax
call fcn.004d1710
mov eax, dword [esp + 0x2c]
add esp, 0xc
movzx ebp, byte [edi + 0x772baf]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x1c], eax
xor eax, eax
mov edx, dword [esp + eax*4 + 0x10]
mov cl, al
add cl, cl
mov esi, ebp
shr esi, cl
mov ecx, edx
and ecx, 0x3000000
shr edx, 8
or ecx, edx
and esi, 3
shr ecx, 0x12
xor esi, ecx
xor esi, dword [esp + eax*4 + 0x40]
mov ecx, esi
shl ecx, 8
xor ecx, esi
shl ecx, 8
xor ecx, esi
shl ecx, 8
xor ecx, esi
mov dword [esp + eax*4 + 0x40], ecx
inc eax
cmp eax, 4
jb 0x4d1ab7
movups xmm0, xmmword [esp + 0x40]
inc edi
movups xmmword [ebx], xmm0
add ebx, 0x10
cmp edi, 0xa
jbe 0x4d1a40
mov ecx, dword [esp + 0x50]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004e22c5
add esp, 0x44
ret
Function at 0x4d5350
Capabilities:
Encrypt data using curve25519

Disassembly:
mov ecx, dword [esp + 4]
mov al, byte [ecx + 0x1f]
and byte [ecx], 0xf8
and al, 0x3f
or al, 0x40
mov byte [ecx + 0x1f], al
ret
Function at 0x4dc350
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 0xc]
xor ecx, ecx
push ebx
xor bl, bl
push ebp
mov ebp, dword [esp + 0x10]
test edx, edx
je 0x4dc407
mov eax, dword [esp + 0xc]
push esi
mov esi, ebp
sub esi, eax
cmp edx, 0x20
jb 0x4dc3e6
push edi
mov edi, edx
xorps xmm3, xmm3
and edi, 0xffffffe0
xorps xmm2, xmm2
add eax, 0x10
movups xmm0, xmmword [eax - 0x10]
lea eax, [eax + 0x20]
movups xmm1, xmmword [ecx + ebp]
add ecx, 0x20
xorps xmm1, xmm0
orps xmm3, xmm1
movups xmm1, xmmword [esi + eax - 0x20]
movups xmm0, xmmword [eax - 0x20]
xorps xmm1, xmm0
orps xmm2, xmm1
cmp ecx, edi
jb 0x4dc383
orps xmm2, xmm3
movaps xmm0, xmm2
psrldq xmm0, 8
orps xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 4
orps xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 2
orps xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 1
orps xmm2, xmm0
movd ebx, xmm2
pop edi
cmp ecx, edx
jae 0x4dc400
mov eax, dword [esp + 0x10]
add eax, ecx
sub edx, ecx
nop word [eax + eax]
mov cl, byte [esi + eax]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
or bl, cl
sub edx, 1
jne 0x4dc3f0
pop esi
pop ebp
movzx eax, bl
pop ebx
ret
pop ebp
movzx eax, bl
pop ebx
ret
Function at 0x4de330
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 0x14]
push edi
push 0x60
push 0
push ebp
call sub.VCRUNTIME140.dll_memset
xor edi, edi
add esp, 0xc
cmp dword [esp + 0x10], edi
jbe 0x4de38f
mov ecx, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x18]
dec ecx
push esi
mov dword [esp + 0x20], ecx
nop word [eax + eax]
push ebp
mov esi, ecx
push ebx
xor esi, edi
push esi
push ebp
call fcn.004dc600
lea ecx, [ebp + 0x20]
push ecx
lea eax, [ebx + 0x20]
push eax
push esi
push ecx
call fcn.004dc600
mov ecx, dword [esp + 0x40]
inc edi
add esp, 0x20
add ebx, 0x40
cmp edi, dword [esp + 0x18]
jb 0x4de360
pop esi
pop ebx
lea eax, [ebp + 0x40]
push 0x773418
push eax
push dword [esp + 0x14]
push eax
call fcn.004dc600
add esp, 0x10
pop edi
pop ebp
ret
Function at 0x4e0660
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0x10]
or eax, 0xffffffff
test edi, edi
je 0x4e06a1
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
sub ebx, esi
nop dword [eax + eax]
mov edx, dword [esi + ebx]
lea esi, [esi + 4]
xor edx, dword [esi - 4]
lea ecx, [edx - 1]
not edx
shr ecx, 0x1f
shr edx, 0x1f
and ecx, edx
neg ecx
and eax, ecx
sub edi, 1
jne 0x4e0680
pop esi
pop ebx
pop edi
ret

Function at 0x4e16d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x9c
mov eax, dword [0x776080]
xor eax, esp
mov dword [esp + 0x98], eax
mov edx, dword [esp + 0xa4]
xorps xmm0, xmm0
push ebp
mov ebp, dword [esp + 0xa4]
xor ecx, ecx
push ebx
add edx, 0x60
push esi
movups xmmword [esp + 0x14], xmm0
mov dword [esp + 0xc], edx
movups xmmword [esp + 0x24], xmm0
push edi
movups xmmword [esp + 0x38], xmm0
movups xmmword [esp + 0x48], xmm0
movups xmmword [esp + 0x58], xmm0
movups xmmword [esp + 0x68], xmm0
movups xmmword [esp + 0x78], xmm0
movups xmmword [esp + 0x88], xmm0
movups xmmword [esp + 0x98], xmm0
inc ecx
mov edi, edx
mov dword [esp + 0x14], ecx
xor ecx, dword [esp + 0xb8]
lea eax, [ecx - 1]
not ecx
shr eax, 0x1f
shr ecx, 0x1f
and eax, ecx
neg eax
xor esi, esi
mov ebx, eax
not ebx
mov edx, dword [edi - 0x60]
lea edi, [edi + 4]
and edx, eax
mov ecx, ebx
and ecx, dword [esp + esi + 0x18]
or edx, ecx
mov ecx, ebx
and ecx, dword [esp + esi + 0x48]
mov dword [esp + esi + 0x18], edx
mov edx, dword [edi - 0x34]
and edx, eax
or edx, ecx
mov ecx, dword [edi - 4]
mov dword [esp + esi + 0x48], edx
and ecx, eax
mov edx, dword [esp + esi + 0x78]
and edx, ebx
or edx, ecx
mov dword [esp + esi + 0x78], edx
add esi, 4
cmp esi, 0x30
jb 0x4e1758
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
add edx, 0x90
mov dword [esp + 0x10], edx
cmp ecx, 0x10
jb 0x4e1735
pop edi
lea ecx, [esp + 0x40]
lea eax, [ebp + 0x2c]
pop esi
pop ebx
cmp ebp, ecx
ja 0x4e17bf
lea ecx, [esp + 0xc]
movups xmm0, xmmword [esp + 0xc]
mov ecx, dword [esp + 0x9c]
movups xmmword [ebp], xmm0
movups xmm0, xmmword [esp + 0x1c]
movups xmmword [ebp + 0x10], xmm0
movups xmm0, xmmword [esp + 0x2c]
movups xmmword [ebp + 0x20], xmm0
movups xmm0, xmmword [esp + 0x3c]
movups xmmword [ebp + 0x30], xmm0
movups xmm0, xmmword [esp + 0x4c]
movups xmmword [ebp + 0x40], xmm0
movups xmm0, xmmword [esp + 0x5c]
movups xmmword [ebp + 0x50], xmm0
movups xmm0, xmmword [esp + 0x6c]
movups xmmword [ebp + 0x60], xmm0
movups xmm0, xmmword [esp + 0x7c]
movups xmmword [ebp + 0x70], xmm0
movups xmm0, xmmword [esp + 0x8c]
movups xmmword [ebp + 0x80], xmm0
pop ebp
xor ecx, esp
call fcn.004e22c5
add esp, 0x9c
ret
Function at 0x4e1ab0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push ebp
push ebx
xorps xmm0, xmm0
mov dword [esp + 8], 0
movlpd qword [esp + 0x14], xmm0
mov eax, 1
mov edx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0x40
push edi
mov edi, eax
xor ebx, ebx
and edi, 1
neg edi
adc ebx, ebx
and edi, dword [esp + 0x28]
neg ebx
mov ecx, edi
and edi, dword [esp + 0x14]
xor ecx, eax
mov esi, ebx
and esi, dword [esp + 0x2c]
mov eax, esi
and esi, dword [esp + 0x10]
xor eax, dword [esp + 0x10]
shrd ecx, eax, 1
shr eax, 1
add ecx, edi
mov dword [esp + 0x14], ecx
adc eax, esi
and ebx, 0x80000000
shrd ebp, edx, 1
mov dword [esp + 0x10], eax
xor eax, eax
shr edx, 1
add ebp, eax
mov eax, ecx
adc edx, ebx
sub dword [esp + 0x18], 1
jne 0x4e1ae1
pop edi
pop esi
pop ebx
mov eax, ebp
pop ebp
add esp, 0x14
ret

Function at 0x4e2798
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4e27d7
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4e27d7
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4e27d7
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4e27d7
cmp dword [ecx + 0x74], 0xe
jbe 0x4e27d7
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4e4330
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push edi
push esi
sub esp, 0x54
xorps xmm0, xmm0
lea edi, [esp + 0x14]
movups xmmword [esp + 0x24], xmm0
movups xmmword [esp + 0x14], xmm0
push 2
push 0x20
push edi
push 0
call dword [sym.imp.bcrypt.dll_BCryptGenRandom]
cmp eax, 0xc0000000
jb 0x4e436d
mov esi, eax
push 0x20
push edi
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x4e4504
movups xmm0, xmmword [esp + 0x14]
movups xmm1, xmmword [esp + 0x24]
xor ecx, ecx
mov edx, 0x158
movups xmmword [esp + 0x44], xmm0
movups xmmword [esp + 0x34], xmm1
movzx eax, byte [0x77618d]
call fcn.00490be0
test eax, eax
je 0x4e451b
mov dword [eax], 1
mov esi, eax
mov dword [eax + 4], 1
add eax, 8
push 0x100
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
movups xmm0, xmmword [esp + 0x44]
mov dword [esi + 0x108], 0x40
movaps xmm1, xmmword [0x4e7560]
movups xmmword [esi + 0x110], xmm0
movups xmm0, xmmword [esp + 0x34]
movups xmmword [esi + 0x120], xmm0
xorps xmm0, xmm0
movsd qword [esi + 0x130], xmm0
movsd qword [esi + 0x138], xmm0
movups xmmword [esi + 0x140], xmm1
mov dword [esi + 0x150], 0
mov eax, dword [0x776190]
mov ecx, dword fs:[0x2c]
mov edx, dword [ecx + eax*4]
mov ecx, dword [edx + 0x10]
mov eax, dword [edx + 0x14]
mov dword [edx + 0x10], 1
mov dword [edx + 0x14], esi
cmp ecx, 1
je 0x4e44e6
test ecx, ecx
jne 0x4e44e0
mov eax, dword [0x776190]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
cmp dword [eax + 0x28], 0
jne 0x4e4527
mov eax, dword [0x776190]
mov ecx, dword fs:[0x2c]
mov ecx, dword [ecx + eax*4]
mov dword [ecx + 0x28], 0xffffffff
mov eax, dword [entry1]
mov esi, dword [ecx + 0x34]
xor eax, eax
cmp esi, dword [ecx + 0x2c]
jne 0x4e44ac
call fcn.00480e90
mov eax, dword [0x776190]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov eax, dword [eax + 0x28]
inc eax
mov ecx, dword [0x776190]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
mov edx, dword [ecx + 0x30]
lea edi, [ecx + 0x10]
mov dword [edx + esi*8], edi
mov dword [edx + esi*8 + 4], 0x423380
inc esi
mov dword [ecx + 0x28], eax
mov dword [ecx + 0x34], esi
add esp, 0x54
pop esi
pop edi
ret
dec dword [eax]
jne 0x4e44e0
dec dword [eax + 4]
jne 0x4e44e0
push eax
push 0
push dword [0x776180]
call dword [sym.imp.KERNEL32.dll_HeapFree]
add esp, 0x54
pop esi
pop edi
ret
movzx eax, byte [0x77618d]
xor ecx, ecx
mov edx, 4
call fcn.00490be0
test eax, eax
jne 0x4e451d
ud2
and esi, 0x7fffffff
mov dword [eax], esi
ud2
mov eax, esp
mov dword [esp + 4], 0
mov dword [esp + 0x14], 0x7363a8
mov dword [esp + 0x18], 1
mov dword [esp + 0x24], 0
mov byte [esp + 8], 0
lea ecx, [esp + 0xc]
lea edx, [esp + 4]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0
push edi
call fcn.004808f0
add esp, 4
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
call fcn.00480990
mov ecx, 7
int 0x29
ud2
Function at 0x4e5c40
Capabilities:
Resolve dns

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2c
mov ebp, dword [esp + 0x40]
cmp ebp, 0xffffffff
je 0x4e5cbf
mov ebx, ebp
inc ebx
js 0x4e5cbf
movzx eax, byte [0x77618d]
mov edi, edx
mov esi, ecx
xor ecx, ecx
mov edx, ebx
call fcn.00490be0
test eax, eax
je 0x4e5cbf
push ebp
push edi
mov dword [esp + 0xc], eax
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [edi + 3]
and eax, 0xfffffffc
sub eax, edi
je 0x4e5cb5
cmp eax, ebp
cmovae eax, ebp
test eax, eax
je 0x4e5cb5
mov ecx, edi
mov edx, eax
nop word cs:[eax + eax]
nop dword [eax]
cmp byte [ecx], 0
je 0x4e5d78
inc ecx
dec edx
jne 0x4e5ca0
lea ecx, [ebp - 8]
mov dword [esp], esi
jmp 0x4e5cc1
mov dword [esp], esi
lea ecx, [ebp - 8]
xor eax, eax
jmp 0x4e5cc5
ud2
cmp eax, ecx
ja 0x4e5cef
mov esi, dword [edi + eax + 4]
mov edx, dword [edi + eax]
mov ebp, 0x1010100
sub ebp, esi
or ebp, esi
mov esi, 0x1010100
sub esi, edx
or esi, edx
and esi, ebp
not esi
test esi, 0x80808080
jne 0x4e5cef
add eax, 8
jmp 0x4e5cc1
mov edx, dword [esp + 0x40]
mov esi, dword [esp]
mov ecx, edx
sub ecx, eax
je 0x4e5d09
add edi, eax
nop
cmp byte [edi], 0
je 0x4e5d78
inc edi
dec ecx
jne 0x4e5d00
mov eax, dword [esp + 4]
lea ebp, [esp + 0xc]
mov dword [esp + 0xc], ebx
mov ecx, ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
call fcn.00412060
xorps xmm0, xmm0
mov edi, eax
mov ebx, edx
lea eax, [esp + 8]
mov dword [esp + 8], 0
movups xmmword [esp + 0xc], xmm0
movups xmmword [esp + 0x1c], xmm0
mov dword [esp + 0x14], 1
push eax
push ebp
push 0
push edi
call dword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x4e5d95
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov dword [esi + 8], eax
mov eax, 1
mov dword [esi + 4], 0
test ebx, ebx
mov dword [esi], eax
mov byte [edi], 0
jne 0x4e5db7
jmp 0x4e5dc6
mov eax, dword [0x735c10]
mov ecx, dword [0x735c14]
mov dword [esi + 8], ecx
mov dword [esi + 4], eax
mov dword [esi], 1
push dword [esp + 4]
jmp 0x4e5db8
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 8]
mov eax, dword [eax]
movzx eax, word [eax]
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
mov word [esi + 0xc], ax
xor eax, eax
test ebx, ebx
mov dword [esi], eax
mov byte [edi], 0
je 0x4e5dc6
push edi
push 0
push dword [0x776180]
call dword [sym.imp.KERNEL32.dll_HeapFree]
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401f00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401f19
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401f54
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401f50
lea ebx, [ebx]
cmp esi, eax
jae 0x401f54
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401f40
cmp esi, eax
jb 0x401f5a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x402bd0
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x804]
sub esp, 0x804
push 0xffffffffffffffff
push 0x448de0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4625e0]
xor eax, ebp
mov dword [ebp + 0x800], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], edi
mov eax, dword [esi]
cmp eax, edi
je 0x402cec
cmp eax, 0xffffffff
je 0x402cec
push 0x800
push edi
lea eax, [ebp]
push eax
call fcn.00431f90
add esp, 0xc
mov eax, dword [ebp + 0x80c]
sub eax, 2
je 0x402c79
sub eax, 1
je 0x402c72
lea edx, [ebp]
sub eax, 3
je 0x402c5a
push 0xff
jmp 0x402c7d
push 2
push str.Apply_Policy
push 1
push str.INDEX:_d_COMPONENT_NAME:_s_STATUS:_d
call fcn.00405ab0
add esp, 0x10
jmp 0x402c8a
push 0xff
jmp 0x402c7a
push edi
lea edx, [ebp]
push str.STATUS:_d
call fcn.00405ab0
add esp, 8
lea eax, [ebp]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x402c90
sub eax, edx
sar eax, 1
push edi
lea ecx, [ebp - 0x18]
push ecx
lea edx, [eax + eax + 2]
push edx
lea eax, [ebp]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402cc5
lea edx, [ebp]
push edx
push str.Write_File_:___s____
jmp 0x402cce
lea eax, [ebp]
push eax
push str.Fail_to_write_file_:___s____
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov edx, 0x467200
call fcn.00405e30
add esp, 8
mov dword [ebp - 4], 0xffffffff
jmp 0x402d2e
push str.Invalid_Parameter_in_WritePipeData___
mov ecx, 0x467200
call fcn.00405f70
add esp, 4
mov eax, 0x57
jmp 0x402d30
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.00431056
add ebp, 0x804
mov esp, ebp
pop ebp
ret 4
Function at 0x402ee0
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.00435250
push 0xffffffffffffffff
push 0x448db0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4625e0]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x14], esi
push 0x800
push esi
lea eax, [ebp]
push eax
call fcn.00431f90
add esp, 0xc
mov dword [ebp - 4], esi
push str.__Get_Required_Directory_Paths__
mov ecx, 0x467200
call fcn.00405f70
add esp, 4
lea ecx, [ebp]
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x403022
lea edx, [ebp + 0x800]
push edx
push esi
push str.Install
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x402fb3
push str.Get_Temp_File_Name_fail__
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov edx, 0x467200
call fcn.00405e30
push str.Install
lea ecx, [ebp]
push ecx
push str._s_s000
lea edx, [ebp + 0x800]
call fcn.00405ab0
add esp, 0x10
push 0x2e
lea edx, [ebp + 0x800]
push edx
call fcn.0043166a
add esp, 8
cmp eax, esi
je 0x402fcb
mov word [eax], si
lea eax, [ebp + 0x800]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x402fd4
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 + 0x7fe], 0x5c
jne 0x40300e
lea eax, [ebp + 0x800]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x402ff7
sub eax, edx
sar eax, 1
mov word [ebp + eax*2 + 0x7fe], si
lea eax, [ebp + 0x800]
push eax
push 0x400
push edi
call fcn.00430f21
jmp 0x40303b
push 0x800
push esi
lea ecx, [ebp + 0x800]
push ecx
call fcn.00431f90
mov dword [ebp - 0x14], 3
add esp, 0xc
lea edx, [ebp + 0x800]
push edx
push str.Temparary_Directory_Path_:___s_
mov ecx, 0x467200
call fcn.00405f70
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.00431056
add ebp, 0x1004
mov esp, ebp
pop ebp
ret