joyce8/EMBER2024-capa huggingface dataset:
Function at 0x465ffb
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cba5b
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x4fa078]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esi + 0x30]
mov dword [esi], vtable.NCompress::NLzma::CDecoder.0
push 0x4fa124
push eax
mov dword [esi + 4], vtable.NCompress::NLzma::CDecoder.1.0
mov dword [esi + 8], vtable.NCompress::NLzma::CDecoder.2.0
mov dword [esi + 0xc], vtable.NCompress::NLzma::CDecoder.3.0
mov dword [esi + 0x10], vtable.NCompress::NLzma::CDecoder.4.0
mov dword [esi + 0x14], vtable.NCompress::NLzma::CDecoder.5.0
mov dword [esi + 0x18], vtable.NCompress::NLzma::CDecoder.6.0
call fcn.0047a6f0
push dword [esi + 0x24]
call fcn.0044bede
add esp, 0xc
and dword [ebp - 4], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x46607a
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
leave
ret

Function at 0x469a70
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cce20
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4fa078]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], vtable.ICompressSetFinishMode.0
mov dword [esi + 8], vtable.ICompressSetInStream2.0
mov dword [esi + 0xc], vtable.ISequentialInStream.0
mov dword [esi + 0x10], vtable.ICompressSetOutStreamSize.0
mov dword [esi + 0x14], vtable.ICompressSetBufSize.0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x44], 0x40000
mov dword [esi + 0x20], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x48], 0x40000
mov dword [esi + 0x24], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x4c], 0x40000
mov dword [esi + 0x28], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x50], 0x40000
mov dword [esi + 0x2c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x54], 0x40000
push 0x452fc4
push 0x469a60
push 4
push 4
lea eax, [esi + 0x98]
mov dword [ebp - 4], 0
push eax
mov dword [esi], vtable.NCompress::NBcj2::CDecoder.0
mov dword [esi + 4], vtable.NCompress::NBcj2::CDecoder.1.0
mov dword [esi + 8], vtable.NCompress::NBcj2::CDecoder.2.0
mov dword [esi + 0xc], vtable.NCompress::NBcj2::CDecoder.3.0
mov dword [esi + 0x10], vtable.NCompress::NBcj2::CDecoder.4.0
mov dword [esi + 0x14], vtable.NCompress::NBcj2::CDecoder.5.0
call fcn.004c53ff
mov word [esi + 0xa8], 0
mov eax, esi
mov dword [esi + 0xb0], 0
mov dword [esi + 0xb4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x46b563
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x18]
or dword [edi], 0xffffffff
cmp dword [eax], 0x23170f69
jne 0x46b63e
mov ecx, 0x40c1
cmp word [eax + 4], cx
jne 0x46b63e
mov ebx, dword [ebp + 0x14]
mov edx, 0x2790
mov byte [ebx], 1
movzx ecx, word [eax + 6]
cmp cx, dx
jne 0x46b5a7
mov byte [ebx], 0
jmp 0x46b5b5
mov edx, 0x2791
cmp cx, dx
jne 0x46b63e
mov ecx, dword [eax + 8]
xor esi, esi
mov eax, dword [eax + 0xc]
mov dword [ebp + 8], ecx
mov dword [ebp - 4], eax
cmp dword [0x5055a8], esi
jbe 0x46b63e
mov ch, byte [ebp + 0x10]
mov eax, dword [ebp + 8]
mov edx, dword [esi*4 + 0x5055b0]
cmp eax, dword [edx + 8]
jne 0x46b614
mov edi, dword [ebp - 4]
cmp edi, dword [edx + 0xc]
mov edi, dword [ebp + 0x18]
jne 0x46b614
xor eax, eax
cmp byte [ebx], al
je 0x46b5f3
cmp dword [edx + 4], eax
jmp 0x46b5f5
cmp dword [edx], eax
sete al
test eax, eax
jne 0x46b611
mov cl, byte [edx + 0x18]
test ch, ch
je 0x46b60a
test cl, cl
sete al
jmp 0x46b60d
movzx eax, cl
test eax, eax
je 0x46b61f
mov eax, dword [ebp + 8]
inc esi
cmp esi, dword [0x5055a8]
jb 0x46b5d1
jmp 0x46b63e
movzx eax, byte [ebp + 0xc]
movzx ecx, byte [ebp + 0xc]
xor eax, 1
cmp dword [edx + 0x14], 1
cmove eax, ecx
test eax, eax
je 0x46b63c
mov eax, 0x80004002
jmp 0x46b640
mov dword [edi], esi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x46b8b0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x20]
and esi, 0x3f
mov byte [esi + edi + 0x28], 0x80
inc esi
cmp esi, 0x38
je 0x46b8f2
push ebx
nop word [eax + eax]
and esi, 0x3f
jne 0x46b8e6
push edi
call fcn.0046baa0
add esp, 4
mov byte [edi + esi + 0x28], 0
inc esi
jmp 0x46b8d0
mov byte [esi + edi + 0x28], 0
inc esi
cmp esi, 0x38
jne 0x46b8d0
pop ebx
mov ecx, dword [edi + 0x20]
mov eax, dword [edi + 0x24]
shld eax, ecx, 3
push edi
shl ecx, 3
bswap eax
bswap ecx
mov dword [edi + 0x60], eax
mov dword [edi + 0x64], ecx
call fcn.0046baa0
mov esi, dword [ebp + 0xc]
add esp, 4
xor edx, edx
nop word [eax + eax]
mov ecx, dword [edi + edx*4 + 4]
lea esi, [esi + 8]
mov eax, dword [edi + edx*4]
add edx, 2
bswap eax
mov dword [esi - 8], eax
bswap ecx
mov dword [esi - 4], ecx
cmp edx, 8
jb 0x46b920
mov dword [edi], 0x6a09e667
mov dword [edi + 4], 0xbb67ae85
mov dword [edi + 8], 0x3c6ef372
mov dword [edi + 0xc], 0xa54ff53a
mov dword [edi + 0x10], 0x510e527f
mov dword [edi + 0x14], 0x9b05688c
mov dword [edi + 0x18], 0x1f83d9ab
mov dword [edi + 0x1c], 0x5be0cd19
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
pop edi
pop esi
pop ebp
ret

Function at 0x46b990
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
pop ebp
ret
Function at 0x46caa0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
xor ecx, ecx
lea esi, [edi + 0x1c]
shr edi, 2
mov eax, edi
mov dword [ebp - 0xc], esi
shr eax, 1
add eax, 3
mov dword [ebx], eax
add ebx, 0x10
mov dword [ebp - 8], ebx
test edi, edi
je 0x46cadd
nop dword [eax]
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [ebx + ecx*4], eax
inc ecx
cmp ecx, edi
jb 0x46cad0
cmp ecx, esi
jae 0x46cbbe
mov eax, ecx
sub eax, edi
lea esi, [ebx + eax*4]
mov dword [ebp + 8], esi
lea eax, [ebx - 4]
mov ebx, dword [eax + ecx*4]
xor edx, edx
mov eax, ecx
div edi
mov dword [ebp - 4], eax
test edx, edx
jne 0x46cb54
movzx edx, bl
movzx esi, byte [edx + str.cw]
mov edx, ebx
shr edx, 0x18
shl esi, 8
movzx eax, byte [edx + str.cw]
or esi, eax
mov eax, ebx
shr eax, 0x10
movzx eax, al
shl esi, 8
shr ebx, 8
movzx eax, byte [eax + str.cw]
or esi, eax
movzx eax, bl
shl esi, 8
movzx ebx, byte [eax + str.cw]
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x4d4cd8]
xor ebx, eax
or ebx, esi
mov esi, dword [ebp + 8]
jmp 0x46cba1
cmp edi, 6
jbe 0x46cba1
cmp edx, 4
jne 0x46cba1
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx edx, byte [eax + str.cw]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or edx, eax
mov eax, ebx
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
movzx eax, bl
shl edx, 8
movzx ebx, byte [eax + str.cw]
or ebx, edx
mov eax, dword [esi]
add esi, 4
mov edx, dword [ebp - 8]
xor eax, ebx
mov dword [ebp + 8], esi
mov dword [edx + ecx*4], eax
inc ecx
lea eax, [edx - 4]
cmp ecx, dword [ebp - 0xc]
jb 0x46caf2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x46fc9b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor edx, edx
push esi
mov esi, dword [ebp + 0xc]
push edi
cmp esi, 8
jb 0x46fcc4
mov edi, esi
shr edi, 3
mov eax, dword [ecx + 4]
sub esi, 8
xor eax, dword [ecx]
add ecx, 8
xor edx, eax
sub edi, 1
jne 0x46fcb2
cmp esi, 4
jb 0x46fcce
xor edx, dword [ecx]
add ecx, 4
and esi, 3
cmp esi, 2
jbe 0x46fce1
movzx eax, byte [ecx]
shl eax, 0x10
xor edx, eax
inc ecx
jmp 0x46fcea
mov eax, edx
mov edi, ecx
cmp esi, 1
jbe 0x46fcf5
movzx eax, byte [ecx]
shl eax, 8
xor edx, eax
inc ecx
jmp 0x46fcfd
mov edx, eax
mov ecx, edi
test esi, esi
je 0x46fd02
movzx ecx, byte [ecx]
xor edx, ecx
pop edi
mov eax, edx
pop esi
pop ebp
ret
Function at 0x47621a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [edx + 4]
mov ecx, dword [edx]
add esi, 2
lea esi, [edx + esi*4]
mov dword [ebp - 4], esi
test edi, edi
je 0x4762b0
push ebx
mov ebx, dword [ebp + 0xc]
cmp ecx, 0x10
je 0x476255
mov al, byte [esi + ecx]
xor byte [ebx], al
inc ecx
inc ebx
sub edi, 1
je 0x476252
cmp ecx, 0x10
jne 0x476241
mov dword [ebp + 0x10], edi
cmp edi, 0x10
jb 0x47627e
mov ecx, dword [ebp - 4]
mov esi, edi
shr esi, 4
add ecx, 0x10
push esi
mov edx, ebx
call dword [0x5099c4]
shl esi, 4
add ebx, esi
sub edi, esi
mov esi, dword [ebp - 4]
push 0x10
mov dword [ebp + 0x10], edi
pop ecx
test edi, edi
je 0x4762aa
xor eax, eax
lea ecx, [esi + 0x10]
mov edi, esi
mov edx, esi
push 1
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call dword [0x5099c4]
mov edx, dword [ebp + 0x10]
xor ecx, ecx
sub esi, ebx
mov al, byte [esi + ebx]
xor byte [ebx], al
inc ecx
inc ebx
sub edx, 1
jne 0x47629e
mov eax, dword [ebp + 8]
pop ebx
mov dword [eax], ecx
pop edi
pop esi
leave
ret

Function at 0x4765e0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
jbe 0x476647
mov edx, dword [eax + 8]
push esi
mov esi, dword [eax + 0x10]
push edi
mov edi, dword [eax + 0xc]
nop dword [eax]
mov ecx, dword [ebp + 0xc]
movzx ecx, byte [ebx + ecx]
inc ebx
xor ecx, edx
shr edx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x5099e0]
movzx ecx, dl
add ecx, edi
mov dword [eax + 8], edx
imul edi, ecx, 0x8088405
inc edi
mov ecx, edi
mov dword [eax + 0xc], edi
shr ecx, 0x18
xor ecx, esi
shr esi, 8
movzx ecx, cl
xor esi, dword [ecx*4 + 0x5099e0]
mov dword [eax + 0x10], esi
cmp ebx, dword [ebp + 0x10]
jb 0x476600
pop edi
pop esi
mov dword [eax + 0x14], 0x12345678
mov dword [eax + 0x18], 0x23456789
mov dword [eax + 0x1c], 0x34567890
xor eax, eax
pop ebx
pop ebp
ret 0xc
Function at 0x476670
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov ecx, dword [ebp + 8]
push edi
xor edi, edi
mov eax, dword [ecx + 0xc]
mov dword [ebp + 8], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4766fd
push ebx
push esi
mov esi, dword [ecx + 0x14]
mov eax, esi
mov edx, dword [ecx + 0xc]
or eax, 2
mov ebx, eax
xor ebx, 1
imul ebx, eax
mov eax, dword [ebp + 0xc]
shr ebx, 8
xor bl, byte [edi + eax]
movzx eax, bl
xor eax, edx
shr edx, 8
movzx eax, al
xor edx, dword [eax*4 + 0x5099e0]
movzx eax, dl
add eax, dword [ecx + 0x10]
imul eax, eax, 0x8088405
mov dword [ecx + 0xc], edx
inc eax
mov dword [ecx + 0x10], eax
shr eax, 0x18
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [eax*4 + 0x5099e0]
mov eax, dword [ebp + 0xc]
mov dword [ecx + 0x14], esi
mov byte [edi + eax], bl
inc edi
mov eax, dword [ebp + 0x10]
cmp edi, eax
jb 0x476697
pop esi
pop ebx
mov edx, dword [ebp + 8]
mov dword [ecx + 0xc], edx
mov edx, dword [ebp - 4]
mov dword [ecx + 0x10], edx
mov edx, dword [ebp - 8]
mov dword [ecx + 0x14], edx
pop edi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x476720
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov ecx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
mov eax, dword [ecx + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ecx + 0x14]
mov dword [ebp + 8], eax
test edi, edi
je 0x4767b5
mov edx, eax
push ebx
nop dword [eax]
mov eax, dword [ebp + 0xc]
or edx, 2
mov bl, byte [esi + eax]
mov eax, edx
xor eax, 1
imul eax, edx
mov edx, dword [ebp + 0xc]
shr eax, 8
xor al, bl
mov byte [esi + edx], al
inc esi
mov edx, dword [ecx + 0xc]
movzx eax, bl
xor eax, edx
shr edx, 8
movzx eax, al
xor edx, dword [eax*4 + 0x5099e0]
movzx eax, dl
add eax, dword [ecx + 0x10]
imul eax, eax, 0x8088405
mov dword [ecx + 0xc], edx
mov edx, dword [ecx + 0x14]
inc eax
mov dword [ecx + 0x10], eax
shr eax, 0x18
xor eax, edx
shr edx, 8
movzx eax, al
xor edx, dword [eax*4 + 0x5099e0]
mov dword [ecx + 0x14], edx
cmp esi, edi
jb 0x476750
mov eax, dword [ebp + 8]
pop ebx
mov edx, dword [ebp - 4]
mov dword [ecx + 0x14], eax
mov eax, edi
mov dword [ecx + 0xc], edx
mov edx, dword [ebp - 8]
pop edi
mov dword [ecx + 0x10], edx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x476910
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x4fa078]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, byte [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push 0x40
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.004a4a80
mov edx, dword [ebp + 8]
add esp, 0xc
movups xmm0, xmmword [ebp - 0x44]
mov eax, 0x10
movups xmm1, xmmword [edx]
xorps xmm1, xmm0
movups xmmword [ebp - 0x44], xmm1
mov cl, byte [eax + edx]
xor byte [ebp + eax - 0x44], cl
inc eax
cmp eax, 0x14
jb 0x476950
lea eax, [ebp - 0xa4]
push eax
call fcn.00480b00
push 0x40
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.00480b40
lea eax, [ebp - 0xa4]
push esi
push eax
call fcn.00480130
mov ecx, dword [ebp - 4]
add esp, 0x18
xor ecx, ebp
pop esi
call fcn.0044b735
mov esp, ebp
pop ebp
ret

Function at 0x4786c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
push edi
xor edi, edi
mov esi, dword [esi]
and esi, 7
cmp eax, 5
jae 0x4786e0
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
add dword [ebp + 0x10], 5
mov ecx, dword [ebp + 8]
push ebx
lea ebx, [eax - 4]
add ebx, ecx
mov dword [ebp - 4], ebx
lea eax, [edi + ecx]
cmp eax, ebx
jae 0x478709
mov cl, byte [eax]
and cl, 0xfe
cmp cl, 0xe8
je 0x478706
inc eax
cmp eax, ebx
jb 0x4786f7
mov ecx, dword [ebp + 8]
mov edx, eax
sub edx, edi
mov edi, eax
sub edx, ecx
sub edi, ecx
cmp eax, ebx
jae 0x47880d
cmp edx, 2
jbe 0x478792
xor esi, esi
movzx edx, byte [eax + 4]
lea ecx, [edx + 1]
test cl, 0xfe
jne 0x4787f9
movzx ecx, byte [eax + 3]
mov ebx, dword [ebp + 0x10]
shl edx, 8
add ebx, edi
or edx, ecx
movzx ecx, byte [eax + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax + 1]
shl edx, 8
or edx, ecx
mov ecx, edx
add edx, ebx
sub ecx, ebx
cmp dword [ebp + 0x18], 0
cmove edx, ecx
mov dword [ebp + 0xc], edx
mov ebx, edx
test esi, esi
je 0x4787c9
and esi, 6
shl esi, 2
mov ecx, esi
shr edx, cl
inc edx
test dl, 0xfe
jne 0x4787c7
mov ebx, 0x100
shl ebx, cl
mov ecx, dword [ebp + 0x10]
dec ebx
xor ebx, dword [ebp + 0xc]
add ecx, edi
cmp dword [ebp + 0x18], 0
je 0x4787c5
add ebx, ecx
jmp 0x4787c7
mov ecx, edx
shr esi, cl
test esi, esi
je 0x478722
cmp esi, 4
ja 0x4787b7
cmp esi, 3
je 0x4787b7
mov ecx, esi
shr ecx, 1
movzx ecx, byte [ecx + eax + 1]
inc ecx
test cl, 0xfe
jne 0x478722
mov ecx, dword [ebp + 8]
or esi, 8
shr esi, 1
inc edi
jmp 0x4786f0
sub ebx, ecx
xor esi, esi
mov ecx, ebx
mov byte [eax + 1], bl
shr ecx, 8
mov byte [eax + 2], cl
mov ecx, ebx
shr ebx, 0x18
and bl, 1
shr ecx, 0x10
neg bl
mov byte [eax + 3], cl
mov ecx, dword [ebp + 8]
mov byte [eax + 4], bl
mov eax, 5
mov ebx, dword [ebp - 4]
add edi, eax
jmp 0x4786f0
mov ecx, dword [ebp + 8]
or esi, 8
mov eax, 1
shr esi, 1
add edi, eax
jmp 0x4786f0
mov eax, dword [ebp + 0x14]
mov ecx, edx
shr esi, cl
xor ecx, ecx
cmp edx, 2
pop ebx
cmovbe ecx, esi
mov dword [eax], ecx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x47bf75
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push esi
call fcn.004af616
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
jne 0x47bfa1
call fcn.0047beb9
mov esi, eax
mov eax, esi
pop esi
leave
ret

Function at 0x47bfa6
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x4fa078]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x138]
mov dword [ebp - 0x138], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x47bffb
cmp dword [ebp - 0x134], 5
sbb eax, eax
add eax, 1
je 0x47bffb
lea eax, [ebp - 0x24]
push eax
call fcn.0047c106
pop ecx
test eax, eax
je 0x47bffb
mov eax, dword [ebp - 0xc]
shr eax, 0x19
and eax, 1
jmp 0x47bffd
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044b735
leave
ret

Function at 0x47ffe0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x18]
lea ebx, [edi + 0x20]
and esi, 0xf
mov dword [edi + esi*4 + 0x20], SysReAllocStringLen
inc esi
cmp esi, 0xe
je 0x480025
and esi, 0xf
jne 0x480017
push edi
push ebx
push edi
call fcn.00480210
add esp, 0xc
mov dword [edi + esi*4 + 0x20], esi
inc esi
jmp 0x480000
mov dword [edi + esi*4 + 0x20], 0
inc esi
cmp esi, 0xe
jne 0x480000
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 0x1c]
push dword [ebp + 0xc]
shld eax, ecx, 5
push ebx
shl ecx, 5
push edi
mov dword [edi + 0x58], eax
mov dword [edi + 0x5c], ecx
call fcn.00480210
add esp, 0xc
mov dword [edi], 0x67452301
mov dword [edi + 4], 0xefcdab89
mov dword [edi + 8], 0x98badcfe
mov dword [edi + 0xc], 0x10325476
mov dword [edi + 0x10], 0xc3d2e1f0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x480130
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov esi, dword [edi + 0x18]
and esi, 0x3f
mov ecx, esi
shr esi, 2
and ecx, 3
je 0x48014f
mov ebx, dword [edi + esi*4 + 0x20]
shl ecx, 3
mov eax, SysReAllocStringLen
shr eax, cl
or eax, ebx
lea ebx, [edi + 0x20]
mov dword [edi + esi*4 + 0x20], eax
inc esi
cmp esi, 0xe
je 0x48018d
and esi, 0xf
jne 0x48017f
push edi
push ebx
push edi
call fcn.00480210
add esp, 0xc
mov dword [edi + esi*4 + 0x20], esi
inc esi
jmp 0x480168
mov dword [edi + esi*4 + 0x20], 0
inc esi
cmp esi, 0xe
jne 0x480168
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 0x1c]
shld eax, ecx, 3
push edi
shl ecx, 3
push ebx
push edi
mov dword [edi + 0x58], eax
mov dword [edi + 0x5c], ecx
call fcn.00480210
mov eax, dword [edi]
add esp, 0xc
mov ecx, dword [ebp + 0xc]
bswap eax
mov dword [ecx], eax
mov eax, dword [edi + 4]
bswap eax
mov dword [ecx + 4], eax
mov eax, dword [edi + 8]
bswap eax
mov dword [ecx + 8], eax
mov eax, dword [edi + 0xc]
bswap eax
mov dword [ecx + 0xc], eax
mov eax, dword [edi + 0x10]
bswap eax
mov dword [ecx + 0x10], eax
mov dword [edi], 0x67452301
mov dword [edi + 4], 0xefcdab89
mov dword [edi + 8], 0x98badcfe
mov dword [edi + 0xc], 0x10325476
mov dword [edi + 0x10], 0xc3d2e1f0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x480b00
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
pop ebp
ret

Function at 0x480d50
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x4fa078]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x44]
push edi
push 5
mov ebx, ecx
push eax
push ebx
call fcn.00480080
push 5
lea ecx, [ebp - 0x84]
lea eax, [ebx + 0x60]
push ecx
push eax
call fcn.00480080
mov eax, dword [esi]
add esp, 0x18
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x44], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x40], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x3c], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x34], eax
test edi, edi
je 0x480dfa
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x44]
push eax
push ebx
call fcn.00480210
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebx + 0x60]
push eax
call fcn.00480210
mov eax, dword [ebp - 0x44]
add esp, 0x18
xor dword [esi], eax
mov eax, dword [ebp - 0x40]
xor dword [esi + 4], eax
mov eax, dword [ebp - 0x3c]
xor dword [esi + 8], eax
mov eax, dword [ebp - 0x38]
xor dword [esi + 0xc], eax
mov eax, dword [ebp - 0x34]
xor dword [esi + 0x10], eax
sub edi, 1
jne 0x480db0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044b735
mov esp, ebp
pop ebp
ret 8

Function at 0x481cf9
Capabilities:
Terminate process

Disassembly:
push esi
push edi
mov edi, ecx
xor esi, esi
lea eax, [edi + 8]
cmp dword [eax], esi
jne 0x481d11
push eax
call fcn.0047bdf9
pop ecx
test eax, eax
jne 0x481d23
lea eax, [edi + 0xc]
cmp dword [eax], esi
jne 0x481d21
push eax
call fcn.0047bdf9
pop ecx
mov esi, eax
mov eax, esi
pop edi
pop esi
ret
Function at 0x482158
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x1c]
mov dword [esi + 8], eax
xor eax, eax
mov dword [esi + 0xc], ecx
mov word [esi], ax
cmp byte [edi + 1], al
je 0x4821d2
mov bl, byte [edi + 2]
lea eax, [edi + 0x20]
push eax
lea ecx, [esi + 0x20]
call fcn.0046023d
movzx eax, byte [edi + 4]
mov ecx, esi
push eax
push 0x800
call fcn.00482237
mov eax, dword [edi + 0x10]
mov dword [esi + 0x3c], eax
mov eax, dword [edi + 0x14]
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x2c]
mov ecx, dword [edi + 0x30]
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], ecx
mov eax, dword [edi + 0x34]
mov ecx, dword [edi + 0x38]
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], ecx
mov eax, dword [edi + 0x3c]
mov ecx, dword [edi + 0x40]
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], ecx
mov al, byte [edi + 3]
mov byte [esi + 0x78], al
jmp 0x4821db
mov ecx, esi
call fcn.004771b1
mov bl, al
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x38]
mov ecx, dword [ecx + 0x3c]
mov dword [esi + 0x44], ecx
xor ecx, ecx
mov dword [esi + 0x40], edx
mov dword [esi + 0x38], 0x3f
mov byte [esi + 5], cl
test bl, bl
jne 0x482206
mov eax, dword [ebp + 0xc]
mov byte [ebp + 0x14], 1
cmp byte [eax + 0x24], cl
jne 0x482209
mov byte [ebp + 0x14], cl
push dword [ebp + 0x14]
mov ecx, esi
push 1
call fcn.00482237
test bl, bl
je 0x482232
xor eax, eax
mov byte [esi + 4], 0x14
mov word [esi + 2], ax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x1c], eax
pop edi
pop esi
pop ebx
pop ebp
ret