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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ea20d
mov eax, dword fs:[0]
push eax
sub esp, 0x174
mov eax, dword [0x5383c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x168], eax
mov eax, dword [ebp + 0xc]
push eax
mov dword [ebp - 0x15c], eax
lea eax, [ebp - 0x34]
push 0x512554
push eax
movups xmmword [ebp - 0x34], xmm0
mov byte [ebp - 0x14], 0
movups xmmword [ebp - 0x24], xmm0
call fcn.00403860
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x4c], 0
add esp, 0xc
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x4c], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406050
sub ecx, edx
lea eax, [ebp - 0x34]
push ecx
push eax
lea ecx, [ebp - 0x4c]
call fcn.00403ee0
lea eax, [ebp - 0x4c]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x180]
call fcn.004034b0
cmp dword [ebp - 0x16c], 0x10
lea eax, [ebp - 0x180]
lea ecx, [ebp - 0x150]
mov edx, 0x100
cmovae eax, dword [ebp - 0x180]
mov dword [ebp - 0x164], eax
mov eax, dword [ebp - 0x170]
mov dword [ebp - 0x160], eax
xor eax, eax
nop
mov byte [ecx], al
inc eax
inc ecx
cmp ax, dx
jl 0x4060b0
xor dl, dl
mov word [ebp - 0x50], 0
xor cl, cl
mov dword [ebp - 0x158], 0x100
lea edi, [ebp - 0x150]
mov eax, dword [ebp - 0x164]
lea edi, [edi + 1]
movzx esi, dl
mov dl, byte [edi - 1]
movzx eax, byte [esi + eax]
add al, dl
add cl, al
movzx eax, cl
mov byte [ebp - 0x151], cl
lea ecx, [ebp - 0x150]
add ecx, eax
movzx eax, byte [ecx]
mov byte [edi - 1], al
lea eax, [esi + 1]
mov byte [ecx], dl
mov cl, byte [ebp - 0x151]
cdq
idiv dword [ebp - 0x160]
sub dword [ebp - 0x158], 1
jne 0x4060d3
mov dh, byte [ebp - 0x50]
xor edi, edi
mov cl, byte [ebp - 0x4f]
cmp dword [ebp - 0x15c], edi
jle 0x406192
mov dword [ebp - 0x158], edi
inc dh
lea esi, [ebp - 0x150]
movzx eax, dh
inc edi
add esi, eax
mov dl, byte [esi]
add cl, dl
movzx eax, cl
mov byte [ebp - 0x151], cl
lea ecx, [ebp - 0x150]
add ecx, eax
movzx eax, byte [ecx]
mov byte [esi], al
mov byte [ecx], dl
movzx eax, byte [esi]
mov ecx, dword [ebp - 0x158]
add al, dl
mov esi, dword [ebp - 0x168]
movzx eax, al
movzx eax, byte [ebp + eax - 0x150]
xor byte [ecx + esi], al
mov cl, byte [ebp - 0x151]
movsx eax, di
mov dword [ebp - 0x158], eax
cmp eax, dword [ebp - 0x15c]
jl 0x406132
mov ecx, dword [ebp - 0x16c]
cmp ecx, 0x10
jb 0x4061c8
mov edx, dword [ebp - 0x180]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4061be
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406217
push ecx
push edx
call fcn.004bec6b
add esp, 8
mov ecx, dword [ebp - 0x38]
cmp ecx, 0x10
jb 0x4061f8
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4061ee
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40621c
push ecx
push edx
call fcn.004bec6b
add esp, 8
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bebdd
mov esp, ebp
pop ebp
ret 8
call fcn.004c8fd6
call fcn.004c8fd6
int3
Function at 0x4064c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x4065a6
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x406595
jg 0x406500
test edx, edx
je 0x406595
nop dword [eax]
call fcn.00407c50
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x406554
jg 0x406517
test esi, esi
je 0x406554
cmp ebx, eax
jg 0x406527
jl 0x406521
cmp edi, esi
jae 0x406527
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.004c04e0
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x406579
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx]
movzx eax, byte [eax]
push eax
call dword [edx + 0xc]
cmp eax, 0xffffffff
je 0x40658f
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x406500
jl 0x40658f
test edi, edi
jne 0x406500
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov edx, dword [eax]
lea eax, [ecx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
test edx, edx
je 0x4065ce
mov eax, dword [eax]
mov edx, dword [eax]
jmp 0x4065d4
xor edx, edx
mov dword [esp + 0x18], eax
mov eax, edx
cdq
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
test edi, edi
jl 0x40663c
jg 0x4065e9
test esi, esi
je 0x40663c
test edx, edx
jl 0x406637
jg 0x4065f3
test eax, eax
je 0x406637
cmp edi, edx
jg 0x406607
jl 0x4065fd
cmp esi, eax
jae 0x406607
mov eax, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
mov ebx, dword [ebp + 8]
push eax
push ebx
push dword [esp + 0x24]
call fcn.004c04e0
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x14]
add ebx, edx
mov ecx, dword [esp + 0xc]
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x10]
sub dword [eax], edx
mov eax, dword [ecx + 0x20]
add dword [eax], edx
jmp 0x40663f
mov ebx, dword [ebp + 8]
jmp 0x406649
mov ebx, dword [ebp + 8]
test edi, edi
jl 0x406662
jg 0x406649
test esi, esi
je 0x406662
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x406662
push eax
push esi
push 1
push ebx
call fcn.004c8db7
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x406bb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x5383c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x406be0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bebdd
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x406c1c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x406c1c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bebdd
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x406d02
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x406c44
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x406c77
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.004c9728
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bebdd
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
sub eax, 0
je 0x406cd5
sub eax, 1
je 0x406cd5
sub eax, 2
jne 0x406d02
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.00405ef0
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bebdd
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x406cf2
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004c8db7
add esp, 0x10
cmp edi, eax
jne 0x406d02
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x406c07
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bebdd
mov esp, ebp
pop ebp
ret 4
Function at 0x407850
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x5383c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x40790a
cmp byte [esi + 0x3d], 0
je 0x40790a
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x4078f8
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4078c0
sub eax, 1
je 0x4078c4
sub eax, 2
jne 0x4078f8
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bebdd
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4078e1
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004c8db7
add esp, 0x10
cmp edi, eax
jne 0x4078f8
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bebdd
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bebdd
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.004bebdd
mov esp, ebp
pop ebp
ret
Function at 0x407b10
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ea3a0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5383c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004bec3b
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.0042424e
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
lea edi, [eax + 0x14]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x2c], edx
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov ebx, dword [ebp - 0x10]
mov dword [edi], 0
mov dword [edx], 0
mov dword [eax + 0x2c], edx
mov dword [ebx], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [ebx + 0x48], 0
mov byte [ebx + 0x3d], 0
mov ebx, dword [ebp - 0x14]
mov dword [eax + 0xc], ebx
mov ebx, dword [ebp - 0x10]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x4c], 0
mov eax, dword [0x53d880]
mov ecx, dword [0x53d884]
mov dword [edx + 0x40], eax
mov eax, edx
mov dword [edx + 0x44], ecx
mov dword [edx + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d700
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5383c4]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov edx, eax
mov ecx, eax
and edx, 1
shr ecx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [eax*4 + 0x53a090], ecx
inc eax
cmp eax, 0x100
jb 0x40d712
cmp eax, 0x800
jae 0x40d7e3
nop word [eax + eax]
mov edx, dword [eax*4 + 0x539c90]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x53a090]
mov dword [eax*4 + 0x53a090], edx
inc eax
cmp eax, 0x800
jb 0x40d7c0
lea eax, [ebp - 0x24]
mov dword [0x53c090], 0x4087b0
push eax
call fcn.0040edd0
add esp, 4
test eax, eax
je 0x40d8ad
push esi
push edi
mov edi, dword [ebp - 0x14]
xor ecx, ecx
mov esi, edi
mov eax, 0x538010
shr esi, 8
shr edi, 4
and esi, 0xff00f
and edi, 0xf00f
xor edx, edx
push ebx
mov ebx, dword [ebp - 0x20]
cmp dword [eax - 8], ebx
jne 0x40d83b
mov ebx, dword [ebp - 0x1c]
cmp dword [eax - 4], ebx
mov ebx, dword [ebp - 0x18]
jne 0x40d83b
cmp dword [eax], ebx
je 0x40d858
add edx, 0xc
inc ecx
add eax, 0xc
cmp edx, 0x24
jb 0x40d824
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bebdd
mov esp, ebp
pop ebp
ret
sub ecx, 0
je 0x40d891
sub ecx, 1
je 0x40d875
sub ecx, 1
jne 0x40d8aa
cmp esi, 6
jb 0x40d886
jne 0x40d8a0
cmp edi, 0xf
jae 0x40d8a0
jmp 0x40d886
cmp esi, 5
jb 0x40d886
jne 0x40d8a0
cmp edi, 6
jb 0x40d886
cmp edi, 0xa
jne 0x40d8a0
mov eax, 1
test eax, eax
jne 0x40d8aa
jmp 0x40d8a0
cmp esi, 6
jb 0x40d8aa
jne 0x40d8a0
cmp edi, 0x100c
je 0x40d8aa
mov dword [0x53c090], 0x408850
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bebdd
mov esp, ebp
pop ebp
ret
Function at 0x40ec20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
sub esp, 0x10
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax]
push ebx
xor ebx, ebx
and eax, 7
cmp ecx, 5
jae 0x40ec40
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
add dword [ebp + 0x10], 5
lea edx, [ecx - 4]
push esi
mov esi, dword [ebp + 8]
push edi
or edi, 0xffffffff
add edx, esi
mov dword [ebp + 0xc], edx
add esi, ebx
mov dword [ebp - 4], esi
cmp esi, edx
jae 0x40ec72
nop dword [eax]
mov cl, byte [esi]
and cl, 0xfe
cmp cl, 0xe8
je 0x40ec6f
inc esi
cmp esi, edx
jb 0x40ec60
mov dword [ebp - 4], esi
mov ebx, esi
sub ebx, dword [ebp + 8]
mov ecx, ebx
sub ecx, edi
cmp esi, edx
jae 0x40ed9a
cmp ecx, 3
jbe 0x40ecb2
xor eax, eax
mov cl, byte [esi + 4]
mov edi, ebx
mov dword [ebp - 0x10], edi
test cl, cl
je 0x40ecf0
cmp cl, 0xff
je 0x40ecf0
mov edx, dword [ebp + 0xc]
and eax, 3
mov esi, dword [ebp + 8]
add eax, eax
mov ecx, 1
or eax, 1
add ebx, ecx
jmp 0x40ec54
dec ecx
shl eax, cl
and eax, 7
je 0x40ec8a
cmp byte [eax + 0x4ef7f4], 0
je 0x40ecdd
movzx ecx, byte [eax + 0x4ef7fc]
mov edx, esi
sub edx, ecx
mov cl, byte [edx + 4]
test cl, cl
je 0x40ecda
cmp cl, 0xff
jne 0x40ec8a
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
and eax, 3
add eax, eax
mov edi, ebx
or eax, 1
inc ebx
jmp 0x40ec54
movzx edi, cl
movzx ecx, byte [esi + 3]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 2]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 1]
mov esi, dword [ebp + 0x10]
shl edi, 8
or edi, ecx
cmp dword [ebp + 0x18], 0
je 0x40ed1e
lea edx, [edi + ebx]
add edx, esi
jmp 0x40ed24
mov edx, edi
sub edx, ebx
sub edx, esi
test eax, eax
je 0x40ed62
movzx edi, byte [eax + 0x4ef7fc]
mov ecx, 0x18
shl edi, 3
sub ecx, edi
mov dword [ebp - 0xc], edi
mov edi, edx
shr edi, cl
mov ecx, edi
mov dword [ebp - 8], edi
test cl, cl
je 0x40ed4e
cmp cl, 0xff
jne 0x40ed62
mov ecx, 0x20
mov edi, 1
sub ecx, dword [ebp - 0xc]
shl edi, cl
dec edi
xor edi, edx
jmp 0x40ed11
mov esi, dword [ebp - 4]
mov ecx, edx
mov edi, dword [ebp - 0x10]
shr ecx, 0x18
and cl, 1
neg cl
mov byte [esi + 1], dl
mov byte [esi + 4], cl
mov ecx, edx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, edx
mov edx, dword [ebp + 0xc]
shr ecx, 8
mov byte [esi + 2], cl
mov ecx, 5
mov esi, dword [ebp + 8]
add ebx, ecx
jmp 0x40ec54
pop edi
pop esi
cmp ecx, 3
jbe 0x40edaf
mov ecx, dword [ebp + 0x14]
xor eax, eax
mov dword [ecx], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
dec ecx
shl eax, cl
mov ecx, dword [ebp + 0x14]
and eax, 7
mov dword [ecx], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40f890
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x48
mov edi, ecx
call fcn.004bec3b
mov esi, eax
add esp, 4
mov dword [ebp - 4], esi
test esi, esi
je 0x40f8c4
push 0x48
push 0
push esi
call fcn.004c0a60
add esp, 0xc
mov ecx, esi
call fcn.0040f290
mov edx, eax
jmp 0x40f8c6
xor edx, edx
mov esi, dword [ebp + 8]
mov ecx, esi
mov dword [edi + 0x68], edx
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f8d1
sub ecx, ebx
push ecx
push esi
lea ecx, [edx + 8]
call fcn.00403ee0
mov eax, dword [edi + 0x68]
push 9
push str.GET_test1
mov dword [eax + 4], 0
mov ecx, dword [edi + 0x68]
add ecx, 0x2c
call fcn.00403ee0
lea eax, [edi + 0x10]
push eax
push 0
push edi
push 0x40f750
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x14], eax
pop edi
pop esi
pop ebx
test eax, eax
je 0x40f92e
cmp eax, 0xffffffff
je 0x40f92e
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esp, ebp
pop ebp
ret 4

Function at 0x40fd50
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x5383c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov byte [edi + 0x68], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi], 0x67452301
mov dword [edi + 4], 0xefcdab89
mov dword [edi + 8], 0x98badcfe
mov dword [edi + 0xc], 0x10325476
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov eax, dword [eax + esi + 0xc]
test al, 6
jne 0x40fe22
test al, 1
jne 0x40fdef
nop dword [eax + eax]
push 0
push 0x400
lea eax, [ebp - 0x404]
mov ecx, esi
push eax
call fcn.004071a0
cmp dword [esi + 0xc], 0
mov eax, dword [esi + 8]
jl 0x40fde3
jg 0x40fdd4
test eax, eax
je 0x40fde3
push eax
lea eax, [ebp - 0x404]
mov ecx, edi
push eax
call fcn.00410a70
mov eax, dword [esi]
mov eax, dword [eax + 4]
test byte [eax + esi + 0xc], 1
je 0x40fdb0
lea ecx, [esi + 0x10]
call fcn.00407a10
test eax, eax
jne 0x40fe22
mov eax, dword [esi]
xor edx, edx
mov ecx, dword [eax + 4]
mov eax, 4
add ecx, esi
cmp dword [ecx + 0x38], edx
cmovne eax, edx
or eax, dword [ecx + 0xc]
and eax, 0x15
or eax, 2
mov dword [ecx + 0xc], eax
mov ecx, dword [ecx + 0x10]
and ecx, eax
jne 0x40fe36
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004bebdd
mov esp, ebp
pop ebp
ret 4
test cl, 4
je 0x40fe42
mov esi, str.ios_base::badbit_set
jmp 0x40fe52
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x40c]
push 1
push eax
call fcn.00405530
add esp, 8
lea ecx, [ebp - 0x420]
push eax
push esi
call fcn.00405cc0
push 0x51a5bc
lea eax, [ebp - 0x420]
push eax
call fcn.004c0c3c
int3

Function at 0x410b30
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
mov esi, ecx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
cmp eax, 0xb7
mov eax, esi
setne dl
mov dword [esi + 4], edx
pop esi
pop ebp
ret 4
Function at 0x410ba0
Capabilities:
Create new key via cryptacquirecontext
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5383c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
push edi
mov eax, dword [esi]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], eax
cmp al, 0x14
jne 0x410cda
cmp ah, 0xf
jne 0x410cda
cmp byte [ebp - 0x12], 0xb
jne 0x410cda
cmp byte [ebp - 0x11], 0xb
jne 0x410cda
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
lea eax, [ebp - 0x14]
push 0
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push 0
push eax
call edi
test eax, eax
jne 0x410c1a
push 8
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push eax
lea eax, [ebp - 0x14]
push eax
call edi
movzx eax, byte [esi + 4]
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 0xc], al
movzx eax, byte [esi + 5]
mov byte [ebp - 0xb], al
movzx eax, byte [esi + 6]
mov byte [ebp - 0xa], al
movzx eax, byte [esi + 7]
mov byte [ebp - 9], al
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x14]
mov byte [ebp - 8], 0
call fcn.00410d30
mov ecx, dword [ebp - 0x10]
mov ebx, eax
sub ecx, 8
mov dword [ebp - 0x10], ecx
inc ecx
push ecx
call fcn.004beca1
mov ecx, dword [ebp - 0x10]
mov edi, eax
inc ecx
push ecx
push 0
push edi
call fcn.004c0a60
xor ecx, ecx
add esp, 0x10
cmp dword [ebp - 0x10], ecx
jbe 0x410c81
mov al, byte [esi + ecx + 8]
mov byte [ecx + edi], al
inc ecx
cmp ecx, dword [ebp - 0x10]
jb 0x410c74
lea eax, [ebp - 0x10]
push eax
push edi
push 0
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x410cc5
test ebx, ebx
je 0x410ca6
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
test eax, eax
je 0x410cc5
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x410cba
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
je 0x410cc5
test edi, edi
je 0x410d11
mov eax, dword [ebp - 0x1c]
mov dword [eax], edi
jmp 0x410d11
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bebdd
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ecx + 1]
push eax
call fcn.004beca1
mov ecx, dword [ebp - 0x10]
mov edi, eax
inc ecx
push ecx
push 0
push edi
call fcn.004c0a60
xor edx, edx
add esp, 0x10
cmp dword [ebp - 0x10], edx
jbe 0x410d0f
mov ecx, edi
sub esi, edi
mov al, byte [esi + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
inc edx
cmp edx, dword [ebp - 0x10]
jb 0x410d00
mov dword [ebx], edi
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bebdd
mov esp, ebp
pop ebp
ret 0xc