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

Disassembly:
sub esp, 0x44
mov eax, dword [0x903100]
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.004dae70
movups xmm0, xmmword [esp + 0x48]
lea eax, [esi + 0x10]
push eax
lea eax, [esp + 0x3c]
push eax
movups xmmword [edi], xmm0
call fcn.004dae70
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.004dbed0
lea eax, [esp + 0x14]
push eax
call fcn.004db950
lea eax, [esp + 0x18]
push eax
call fcn.004dbed0
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 + 0x8ffb77]
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 0x4db830
movups xmm0, xmmword [esp + 0x40]
movups xmmword [ebp], xmm0
cmp ebx, 0xe
je 0x4db92e
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.004dbed0
lea eax, [esp + 0x14]
push eax
call fcn.004db950
lea eax, [esp + 0x18]
push eax
call fcn.004dbed0
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 0x4db7a0
mov ecx, dword [esp + 0x50]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004eca65
add esp, 0x44
ret
Function at 0x4dbf50
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x254
mov eax, dword [0x903100]
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 0x4dc0c5
push ebp
push edi
push eax
lea eax, [esp + 0x40]
push eax
call fcn.004db200
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 0x4dc000
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.004dbc40
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x28]
push dword [eax + 0xf0]
lea eax, [esp + 0x54]
push eax
call fcn.004db010
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x25c]
push ebx
push eax
call fcn.004db2f0
add esp, 0x24
test ebx, ebx
je 0x4dc0a2
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 0x4dc085
sub ebx, 1
jne 0x4dc080
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
sub dword [esp + 0x270], ebx
je 0x4dc0c2
add dword [esp + 0x14], 0x20
add esi, 0x20
sub edi, 0x20
mov dword [esp + 0x10], esi
add ebp, 2
jmp 0x4dbff0
pop ebx
pop edi
pop ebp
mov ecx, dword [esp + 0x254]
pop esi
xor ecx, esp
call fcn.004eca65
add esp, 0x254
ret
Function at 0x4dc170
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x44
mov eax, dword [0x903100]
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 0x4dc1ca
cmp eax, 0x100
je 0x4dc1ae
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004eca65
add esp, 0x44
ret
push ecx
push ebx
call fcn.004db740
add esp, 8
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004eca65
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.004dae70
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.004dbed0
lea eax, [esp + 0x24]
push eax
call fcn.004db950
lea eax, [esp + 0x28]
push eax
call fcn.004dbed0
mov eax, dword [esp + 0x2c]
add esp, 0xc
movzx ebp, byte [edi + 0x8ffb77]
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 0x4dc277
movups xmm0, xmmword [esp + 0x40]
inc edi
movups xmmword [ebx], xmm0
add ebx, 0x10
cmp edi, 0xa
jbe 0x4dc200
mov ecx, dword [esp + 0x50]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004eca65
add esp, 0x44
ret
Function at 0x4dfb10
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 0x4e6b10
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 0x4e6bc7
mov eax, dword [esp + 0xc]
push esi
mov esi, ebp
sub esi, eax
cmp edx, 0x20
jb 0x4e6ba6
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 0x4e6b43
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 0x4e6bc0
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 0x4e6bb0
pop esi
pop ebp
movzx eax, bl
pop ebx
ret
pop ebp
movzx eax, bl
pop ebx
ret
Function at 0x4e8af0
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 0x4e8b4f
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.004e6dc0
lea ecx, [ebp + 0x20]
push ecx
lea eax, [ebx + 0x20]
push eax
push esi
push ecx
call fcn.004e6dc0
mov ecx, dword [esp + 0x40]
inc edi
add esp, 0x20
add ebx, 0x40
cmp edi, dword [esp + 0x18]
jb 0x4e8b20
pop esi
pop ebx
lea eax, [ebp + 0x40]
push 0x9003e8
push eax
push dword [esp + 0x14]
push eax
call fcn.004e6dc0
add esp, 0x10
pop edi
pop ebp
ret
Function at 0x4eae20
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0x10]
or eax, 0xffffffff
test edi, edi
je 0x4eae61
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 0x4eae40
pop esi
pop ebx
pop edi
ret

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

Disassembly:
sub esp, 0x9c
mov eax, dword [0x903100]
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 0x4ebf18
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
add edx, 0x90
mov dword [esp + 0x10], edx
cmp ecx, 0x10
jb 0x4ebef5
pop edi
lea ecx, [esp + 0x40]
lea eax, [ebp + 0x2c]
pop esi
pop ebx
cmp ebp, ecx
ja 0x4ebf7f
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.004eca65
add esp, 0x9c
ret
Function at 0x4ec270
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 0x4ec2a1
pop edi
pop esi
pop ebx
mov eax, ebp
pop ebp
add esp, 0x14
ret

Function at 0x4ecf38
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
test eax, eax
je 0x4ecf77
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4ecf77
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4ecf77
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4ecf77
cmp dword [ecx + 0x74], 0xe
jbe 0x4ecf77
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4efea0
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 0x4efedd
mov esi, eax
push 0x20
push edi
call dword [sym.imp.advapi32.dll_SystemFunction036]
test al, al
je 0x4f0074
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 [0x90320d]
call fcn.0049d570
test eax, eax
je 0x4f008b
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 [0x4f3630]
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 [0x903210]
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 0x4f0056
test ecx, ecx
jne 0x4f0050
mov eax, dword [0x903210]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
cmp dword [eax + 0x28], 0
jne 0x4f0097
mov eax, dword [0x903210]
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 0x4f001c
call fcn.0048ca80
mov eax, dword [0x903210]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov eax, dword [eax + 0x28]
inc eax
mov ecx, dword [0x903210]
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], 0x42d3c0
inc esi
mov dword [ecx + 0x28], eax
mov dword [ecx + 0x34], esi
add esp, 0x54
pop esi
pop edi
ret
dec dword [eax]
jne 0x4f0050
dec dword [eax + 4]
jne 0x4f0050
push eax
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
add esp, 0x54
pop esi
pop edi
ret
movzx eax, byte [0x90320d]
xor ecx, ecx
mov edx, 4
call fcn.0049d570
test eax, eax
jne 0x4f008d
ud2
and esi, 0x7fffffff
mov dword [eax], esi
ud2
mov eax, esp
mov dword [esp + 4], 0
mov dword [esp + 0x14], 0x8c6b80
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.0048c4e0
add esp, 4
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
call fcn.0048c580
mov ecx, 7
int 0x29
ud2
Function at 0x4f1870
Capabilities:
Resolve dns

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2c
mov ebp, dword [esp + 0x40]
cmp ebp, 0xffffffff
je 0x4f18ef
mov ebx, ebp
inc ebx
js 0x4f18ef
movzx eax, byte [0x90320d]
mov edi, edx
mov esi, ecx
xor ecx, ecx
mov edx, ebx
call fcn.0049d570
test eax, eax
je 0x4f18ef
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 0x4f18e5
cmp eax, ebp
cmovae eax, ebp
test eax, eax
je 0x4f18e5
mov ecx, edi
mov edx, eax
nop word cs:[eax + eax]
nop dword [eax]
cmp byte [ecx], 0
je 0x4f19a8
inc ecx
dec edx
jne 0x4f18d0
lea ecx, [ebp - 8]
mov dword [esp], esi
jmp 0x4f18f1
mov dword [esp], esi
lea ecx, [ebp - 8]
xor eax, eax
jmp 0x4f18f5
ud2
cmp eax, ecx
ja 0x4f191f
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 0x4f191f
add eax, 8
jmp 0x4f18f1
mov edx, dword [esp + 0x40]
mov esi, dword [esp]
mov ecx, edx
sub ecx, eax
je 0x4f1939
add edi, eax
nop
cmp byte [edi], 0
je 0x4f19a8
inc edi
dec ecx
jne 0x4f1930
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.0041bcf0
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 0x4f19c5
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 0x4f19e7
jmp 0x4f19f6
mov eax, dword [0x8c63e8]
mov ecx, dword [0x8c63ec]
mov dword [esi + 8], ecx
mov dword [esi + 4], eax
mov dword [esi], 1
push dword [esp + 4]
jmp 0x4f19e8
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 0x4f19f6
push edi
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402a00
Capabilities:
Hash data via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c8065
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x514080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 7
jbe 0x402a38
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x2c], 0x4ec614
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], 0
cmp ebx, 0xffffffff
jne 0x402a7d
mov byte [esi + 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [esi + 0xc], edi
jmp 0x402bd5
mov dword [ebp - 0x24], 0x4ec0e4
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], 0x4ec0ec
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00402e40
mov edi, eax
test edi, edi
je 0x402abc
mov dword [esi + 0xc], edi
jmp 0x402b93
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov byte [ebp - 4], 3
push ecx
push 0x400
lea ecx, [ebp - 0x38]
call fcn.004035a0
mov esi, dword [ebp - 0x38]
nop dword [eax]
push 0
lea eax, [ebp - 0x14]
push eax
push 0x400
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402b2f
push 0
push dword [ebp - 0x14]
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x402b36
cmp dword [ebp - 0x14], 0
jne 0x402af0
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
call fcn.00402ec0
mov edi, eax
jmp 0x402b49
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, 0xc
mov eax, dword [ebp - 0x10]
mov dword [eax + ecx], edi
mov byte [ebp - 4], 2
test esi, esi
je 0x402b93
mov ecx, dword [ebp - 0x30]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x402b74
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402c0b
push ecx
push esi
call fcn.004a0f94
add esp, 8
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], 0x4ec0ec
test eax, eax
je 0x402bac
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], 0x4ec0e4
test eax, eax
je 0x402bce
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x2c], 0x4ec614
test ebx, ebx
je 0x402bf5
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x28], 0
mov eax, edi
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
call fcn.004a5faf
int3
Function at 0x402e40
Capabilities:
Create new key via cryptacquirecontext
Initialize hashing via wincrypt

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e1514]
mov ecx, edi
call esi
push 0xf0000000
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
push 0
lea ebx, [edi + 4]
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x402e80
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
ret 8
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e1514]
mov ecx, edi
call esi
lea eax, [edi + 4]
push eax
push 0
push 0
push 0x800c
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x402e74
pop edi
pop esi
xor eax, eax
pop ebx
ret 8

Function at 0x404260
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c8380
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x514080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4042e7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4042e7
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4042c7
cmp esi, edx
jae 0x4042e7
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x4042b5
cmp esi, edx
jae 0x4042e7
xor eax, eax
cmp word [esi], ax
cmove esi, eax
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
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret