joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40397a
Capabilities:
Encrypt data using rc4 prga

Disassembly:
lea edx, [0x4061dd]
mov ecx, edx
mov eax, dword [edx]
inc ecx
inc ecx
inc ecx
inc ecx
mov edi, dword [ecx]
mov ecx, eax
mov eax, dword [edi]
add edi, 4
mov esi, edi
mov ebx, esi
add edi, eax
mov edx, edi
dec edx
sub ecx, eax
dec ecx
dec ecx
dec ecx
dec ecx
lea eax, [0x4061dd]
mov dword [eax], ecx
inc eax
inc eax
inc eax
inc eax
mov dword [eax], edi
push ecx
mov ch, byte [edi]
mov al, byte [0x40612b]
add al, byte [esi]
xor al, ch
mov byte [edi], al
mov eax, edx
cmp esi, eax
je 0x4039ca
inc esi
pop ecx
inc edi
dec ecx
jne 0x4039ae
jmp 0x4039ce
mov esi, ebx
jmp 0x4039c3
mov edi, esi
push 0x39
push 0x4061dd
push 0x111
push dword [0x4061b9]
call dword [sym.imp.user32.dll_SendMessageA]
mov ecx, dword [0x4061dd]
mov edi, dword [0x4061e1]
mov esi, dword [0x4061d1]
mov al, byte [esi]
mov byte [edi], al
inc esi
inc edi
dec ecx
jne 0x4039fa
mov esi, dword [0x406126]
mov ecx, dword [0x406122]
push ecx
add ecx, esi
mov dword [0x40619d], ecx
pop ecx
mov eax, dword [esi]
inc esi
inc esi
nop
inc esi
inc esi
mov edi, dword [0x4061d1]
mov ebx, esi
add ebx, eax
mov dword [0x406199], ebx
mov edx, esi
add esi, eax
mov ecx, 0
movzx eax, byte [edx]
inc eax
cmp edx, ebx
jae 0x403aa1
cmp eax, ecx
jae 0x403a46
ret
sub eax, ecx
mov ecx, eax
test ecx, ecx
je 0x403a57
mov al, byte [esi]
mov byte [edi], al
inc esi
inc edi
dec ecx
jne 0x403a4e
inc edx
mov al, byte [edx]
inc edx
movzx ecx, byte [edx]
test ecx, ecx
je 0x403a6a
push ecx
mov byte [edi], al
inc edi
dec ecx
jne 0x403a63
pop ecx
inc edx
movzx eax, byte [edx]
inc cl
cmp cl, 0
jne 0x403a8b
inc al
cmp al, 0
jne 0x403a83
inc edx
movzx eax, word [edx]
inc edx
inc edx
jmp 0x403a87
mov al, 0
dec al
dec cl
jmp 0x403a9d
dec cl
inc al
cmp al, 0
jne 0x403a9b
inc edx
movzx eax, word [edx]
inc edx
inc edx
jmp 0x403a9d
dec al
jmp 0x403a3d
mov ecx, dword [0x40619d]
sub ecx, esi
test ecx, ecx
je 0x403ab6
mov al, byte [esi]
mov byte [edi], al
inc esi
inc edi
dec ecx
jne 0x403aad
mov edi, dword [0x4061d1]
mov dword [0x4061d1], edi
ret

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403e6a
nop
nop
sub eax, 0x403e10
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x431030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408ed0
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
mov esi, 0x3ff74e80
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
mov eax, str.__tf
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x91f17d6
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
popal
nop
nop
nop
jmp 0x401219

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x6986b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x21b000]
push edi
or ebp, 0xffffffff
jmp 0x6986d2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x6986d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6986c8
mov eax, 1
add ebx, ebx
jne 0x6986eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x6986fc
jne 0x69871b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x69871b
dec eax
add ebx, ebx
jne 0x698708
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x6986e0
add ebx, ebx
jne 0x698717
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x69876d
xor ecx, ecx
sub eax, 3
jb 0x698733
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x6987a2
sar eax, 1
mov ebp, eax
jmp 0x69873e
add ebx, ebx
jne 0x69873e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x69870c
inc ecx
add ebx, ebx
jne 0x69874c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x69870c
add ebx, ebx
jne 0x698759
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x69874e
jne 0x69876a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x69874e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x69878c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x69877e
jmp 0x6986ce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x69878c
add edi, ecx
jmp 0x6986ce
pop esi
mov edi, esi
mov ecx, 0x1b1a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x6987aa
cmp byte [edi], 0xb
jne 0x6987aa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x6987af
lea edi, [esi + 0x296000]
mov eax, dword [edi]
or eax, eax
je 0x698827
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x299030]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x29906c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x6987dc
mov ecx, edi
jns 0x69880b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x299070]
or eax, eax
je 0x698821
mov dword [ebx], eax
add ebx, 4
jmp 0x6987f9
call dword [esi + 0x299080]
mov ebp, dword [esi + 0x299074]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1df]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x69885b
sub esp, 0xffffff80
jmp 0x418af0
Function at 0x402495
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x4024c6
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x4024cd
cmp ebx, dword [ebp + 8]
jae 0x4024cd
xor eax, eax
jmp 0x4026b3
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4024de
xor eax, eax
inc eax
jmp 0x4026b2
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4024f0
cmp ecx, edx
jae 0x402554
cmp dword [eax + 4], 0
je 0x4024f9
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4024e5
cmp dword [ebp + 8], 0
je 0x402513
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x402554
cmp eax, esi
jae 0x402554
mov ecx, dword [0x40d270]
mov esi, ebx
and esi, 0xfffff000
xor eax, eax
test ecx, ecx
jle 0x402535
cmp dword [eax*4 + 0x40d278], esi
je 0x40255b
inc eax
cmp eax, ecx
jl 0x402527
lea eax, [ebp + 8]
push eax
push 0x1c
lea eax, [ebp - 0x20]
push eax
push 0
push ebx
or edi, 0xffffffff
push edi
call sub.ntdll.dll_NtQueryVirtualMemory
test eax, eax
jl 0x4025cb
mov eax, dword [ebp + 8]
jmp 0x4025cd
xor eax, eax
jmp 0x4026b2
test eax, eax
jle 0x4024d6
xor edx, edx
mov ebx, 0x40d2b8
inc edx
mov edi, ebx
xchg dword [edi], edx
test edx, edx
jne 0x4024d6
cmp dword [eax*4 + 0x40d278], esi
je 0x4025aa
lea eax, [ecx - 1]
test eax, eax
jl 0x402597
cmp dword [eax*4 + 0x40d278], esi
je 0x402593
dec eax
jns 0x402587
test eax, eax
jge 0x4025a8
cmp ecx, 0x10
jge 0x4025a3
inc ecx
mov dword [0x40d270], ecx
lea eax, [ecx - 1]
jmp 0x4025aa
je 0x4025c2
xor edx, edx
test eax, eax
jl 0x4025c2
lea ecx, [edx*4 + 0x40d278]
mov edi, dword [ecx]
inc edx
cmp edx, eax
mov dword [ecx], esi
mov esi, edi
jle 0x4025b0
xor eax, eax
xchg dword [ebx], eax
jmp 0x4024d6
xor eax, eax
test eax, eax
je 0x4026b0
cmp dword [ebp - 8], 0x1000000
jne 0x4026b0
test byte [ebp - 0xc], 0xcc
je 0x402642
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4026b0
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4026b0
cmp word [eax + 0x18], 0x10b
jne 0x4026b0
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4026b0
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x402642
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x402642
test byte [ecx + 0x27], 0x80
jne 0x402554
xor eax, eax
inc eax
mov ecx, eax
mov edx, 0x40d2b8
xchg dword [edx], ecx
test ecx, ecx
jne 0x4026b2
mov ecx, dword [0x40d270]
test ecx, ecx
mov edx, ecx
jle 0x402671
lea eax, [ecx*4 + 0x40d274]
cmp dword [eax], esi
je 0x402671
dec edx
sub eax, 4
test edx, edx
jg 0x402665
test edx, edx
jne 0x4026a2
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40267e
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x402696
lea eax, [edx*4 + 0x40d278]
mov edi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], esi
mov esi, edi
jle 0x402684
cmp ecx, 0x10
jge 0x4026a2
inc ecx
mov dword [0x40d270], ecx
xor eax, eax
mov ecx, 0x40d2b8
xchg dword [ecx], eax
jmp 0x4024d6
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402be5
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x118
lea eax, [esp]
push ebx
push esi
push edi
push eax
call fcn.00402949
push dword [esp + 0x130]
mov edi, dword [esp + 0x12c]
lea eax, [esp + 0x10]
push dword [esp + 0x130]
push eax
lea esi, [edi + 8]
mov dword [edi + 4], esi
call fcn.00402977
mov ebx, eax
test ebx, ebx
jne 0x402cd7
mov edx, dword [esp + 0xc]
mov dword [edi], edx
shl edx, 4
add edx, dword [esp + 0x10]
push 4
pop ecx
mov eax, dword [edx]
add edx, ecx
mov dword [esi], eax
add esi, ecx
mov eax, dword [edx]
add edx, ecx
mov dword [esi], eax
add esi, ecx
mov eax, dword [edx]
add edx, ecx
mov dword [esi], eax
add esi, ecx
mov eax, dword [edx]
sub edx, 0x1c
mov dword [esi], eax
add esi, ecx
mov edi, dword [edi]
dec edi
test edi, edi
jle 0x402cbd
push ebp
mov ebp, ecx
movzx eax, byte [edx + 3]
push 4
movzx ecx, byte [eax + 0x40ac40]
movzx eax, byte [edx + 2]
mov ecx, dword [ecx*4 + 0x40ca40]
movzx eax, byte [eax + 0x40ac40]
xor ecx, dword [eax*4 + 0x40c640]
movzx eax, byte [edx + 1]
movzx eax, byte [eax + 0x40ac40]
xor ecx, dword [eax*4 + 0x40c240]
movzx eax, byte [edx]
movzx eax, byte [eax + 0x40ac40]
xor ecx, dword [eax*4 + 0x40be40]
mov dword [esi], ecx
pop ecx
add esi, ecx
add edx, ecx
dec ebp
jne 0x402c61
dec edi
sub edx, 0x20
test edi, edi
jg 0x402c5f
pop ebp
mov eax, dword [edx]
mov dword [esi], eax
add esi, ecx
add edx, ecx
mov eax, dword [edx]
mov dword [esi], eax
mov eax, dword [edx + ecx]
mov dword [esi + ecx], eax
mov eax, dword [edx + ecx + 4]
mov dword [esi + ecx + 4], eax
lea eax, [esp + 0xc]
push eax
call fcn.0040295f
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x118
ret 0xc
Function at 0x403868
Capabilities:
Encode data using xor
Manually build aes constants

Disassembly:
sub esp, 0x804
push ebx
push ebp
push esi
push edi
mov edi, 0xff
xor ebx, ebx
xor esi, esi
inc ebx
mov dword [esp + 0x10], ebx
mov edx, ebx
lea ebp, [edi + 1]
mov eax, edx
mov dword [esp + esi*4 + 0x414], edx
and al, 0x80
mov dword [esp + edx*4 + 0x14], esi
movsx ecx, al
lea eax, [edx + edx]
neg ecx
sbb ecx, ecx
and ecx, 0x1b
xor ecx, eax
xor edx, ecx
and edx, edi
inc esi
cmp esi, ebp
jl 0x403885
mov esi, ebx
mov edx, 0x40ce40
mov eax, esi
mov dword [edx], esi
and al, 0x80
movsx ecx, al
neg ecx
sbb ecx, ecx
add esi, esi
and ecx, 0x1b
add edx, 4
xor esi, ecx
and esi, edi
cmp edx, 0x40ce68
jl 0x4038b3
mov byte [0x40ac40], 0x63
mov byte [0x40bda3], 0
mov ecx, dword [esp + ebx*4 + 0x14]
lea eax, [esp + 0x810]
shl ecx, 2
sub eax, ecx
mov ebx, dword [eax]
mov ecx, ebx
sar ecx, 7
lea eax, [ebx + ebx]
or ecx, eax
and ecx, edi
mov edx, ecx
xor ebx, ecx
sar edx, 7
lea eax, [ecx + ecx]
or edx, eax
and edx, edi
mov esi, edx
xor ebx, edx
sar esi, 7
lea eax, [edx + edx]
or esi, eax
and esi, edi
mov ecx, esi
sar ecx, 7
lea eax, [esi + esi]
or ecx, eax
mov eax, dword [esp + 0x10]
xor ecx, 0x63
and ecx, edi
xor ecx, esi
xor ebx, ecx
mov byte [eax + 0x40ac40], bl
mov byte [ebx + 0x40bd40], al
mov ebx, eax
inc ebx
mov dword [esp + 0x10], ebx
cmp ebx, ebp
jl 0x4038e2
xor esi, esi
movzx edx, byte [esi + 0x40ac40]
mov eax, edx
and al, 0x80
movsx ecx, al
neg ecx
lea eax, [edx + edx]
sbb ecx, ecx
and ecx, 0x1b
xor ecx, eax
and ecx, edi
mov eax, ecx
xor eax, edx
shl eax, 8
xor eax, edx
shl eax, 8
xor eax, edx
shl eax, 8
xor eax, ecx
movzx ecx, byte [esi + 0x40bd40]
mov dword [esi*4 + 0x40ad40], eax
rol eax, 8
mov dword [esi*4 + 0x40b140], eax
rol eax, 8
mov dword [esi*4 + 0x40b540], eax
rol eax, 8
mov dword [esi*4 + 0x40b940], eax
test ecx, ecx
je 0x4039bf
mov eax, dword [esp + ecx*4 + 0x14]
add eax, dword [esp + 0x4c]
cdq
idiv edi
mov ebp, dword [esp + edx*4 + 0x414]
jmp 0x4039c1
xor ebp, ebp
test ecx, ecx
je 0x4039d9
mov eax, dword [esp + ecx*4 + 0x14]
add eax, dword [esp + 0x38]
cdq
idiv edi
mov ebx, dword [esp + edx*4 + 0x414]
jmp 0x4039db
xor ebx, ebx
test ecx, ecx
je 0x4039f3
mov eax, dword [esp + ecx*4 + 0x14]
add eax, dword [esp + 0x48]
cdq
idiv edi
mov edi, dword [esp + edx*4 + 0x414]
jmp 0x4039f5
xor edi, edi
test ecx, ecx
je 0x403a12
mov eax, dword [esp + ecx*4 + 0x14]
mov ecx, 0xff
add eax, dword [esp + 0x40]
cdq
idiv ecx
mov eax, dword [esp + edx*4 + 0x414]
jmp 0x403a14
xor eax, eax
shl eax, 8
xor eax, edi
mov edi, 0xff
shl eax, 8
xor eax, ebx
shl eax, 8
xor eax, ebp
mov dword [esi*4 + 0x40be40], eax
rol eax, 8
mov dword [esi*4 + 0x40c240], eax
rol eax, 8
mov dword [esi*4 + 0x40c640], eax
rol eax, 8
mov dword [esi*4 + 0x40ca40], eax
inc esi
cmp esi, 0x100
jl 0x40394c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x804
ret
Function at 0x406c63
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x318
push ebx
mov ebx, dword [esp + 0x328]
cmp ebx, 0x180
jbe 0x406c81
push 0xffffffffffffffc8
pop eax
jmp 0x406df9
push ebp
push esi
push edi
push 0x1a0
lea eax, [esp + 0x74]
push 0
push eax
call fcn.00402707
add esp, 0xc
lea eax, [esp + 0x210]
push eax
call fcn.00402949
mov eax, ebx
mov byte [esp + 0x83], bl
shr eax, 0x18
mov byte [esp + 0x80], al
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x81], al
mov eax, ebx
shr eax, 8
push ebx
push dword [esp + 0x334]
mov byte [esp + 0x8a], al
lea eax, [esp + 0x90]
push eax
mov byte [esp + 0x93], 0x30
call fcn.004026e5
add esp, 0xc
mov byte [esp + ebx + 0x88], 0x80
lea ebp, [ebx + 0x19]
xor eax, eax
mov byte [esp + eax + 0x50], al
inc eax
cmp eax, 0x20
jl 0x406cfd
push 0x100
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x218]
push eax
call fcn.00402977
xor ebx, ebx
push 0x10
lea eax, [esp + 0x14]
push 0
push eax
call fcn.00402707
add esp, 0xc
mov edi, ebp
test ebp, ebp
je 0x406d79
lea esi, [esp + 0x70]
lea eax, [esp + 0x10]
sub esi, eax
xor edx, edx
lea ecx, [esp + 0x10]
add ecx, edx
push 0x10
mov al, byte [esi + ecx]
xor byte [ecx], al
inc edx
pop eax
cmp edx, eax
jl 0x406d43
add esi, eax
cmp edi, eax
jae 0x406d5e
mov eax, edi
sub edi, eax
lea eax, [esp + 0x10]
push eax
push eax
push 1
lea eax, [esp + 0x21c]
push eax
call fcn.00402cef
test edi, edi
jne 0x406d41
push 0x10
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x28]
add eax, ebx
push eax
call fcn.004026e5
add esp, 0xc
add ebx, 0x10
inc byte [esp + 0x73]
cmp ebx, 0x30
jl 0x406d20
push 0x100
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x218]
push eax
call fcn.00402977
mov esi, dword [esp + 0x32c]
push 3
pop edi
lea eax, [esp + 0x40]
push eax
push eax
push 1
lea eax, [esp + 0x21c]
push eax
call fcn.00402cef
push 0x10
lea eax, [esp + 0x44]
push eax
push esi
call fcn.004026e5
add esp, 0xc
add esi, 0x10
dec edi
jne 0x406dbc
lea eax, [esp + 0x210]
push eax
call fcn.0040295f
pop edi
pop esi
xor eax, eax
pop ebp
pop ebx
add esp, 0x318
ret 0xc

Function at 0x406e03
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x34
push ebx
push ebp
push esi
push edi
push 0x30
xor esi, esi
lea ebx, [esp + 0x18]
mov eax, ebx
mov dword [esp + 0x14], esi
push esi
push eax
call fcn.00402707
mov edi, dword [esp + 0x54]
xor ebp, ebp
inc ebp
mov dword [esp + 0x54], 3
add esp, 0xc
sub ebp, edi
lea eax, [edi + 0xf]
lea esi, [edi + 0x20]
mov ecx, eax
inc byte [ecx]
jne 0x406e47
dec ecx
lea eax, [ecx + ebp]
test eax, eax
jg 0x406e3b
push ebx
push edi
push 1
push esi
call fcn.00402cef
add ebx, 0x10
lea eax, [edi + 0xf]
dec dword [esp + 0x48]
jne 0x406e39
mov edx, dword [esp + 0x4c]
lea eax, [esp + 0x14]
mov esi, dword [esp + 0x10]
sub edx, eax
lea ecx, [esp + 0x14]
add ecx, esi
mov al, byte [edx + ecx]
xor byte [ecx], al
inc esi
cmp esi, 0x30
jl 0x406e6b
push 0x100
lea eax, [esp + 0x18]
push eax
lea eax, [edi + 0x20]
push eax
call fcn.00402977
push 0x10
lea eax, [esp + 0x38]
push eax
push edi
call fcn.004026e5
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 8
Function at 0x407386
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0x20
push esi
mov esi, dword [esp + 0x28]
test esi, esi
je 0x40744f
mov eax, dword [esi]
test eax, eax
je 0x40744f
cmp dword [esi + 8], 0
je 0x40744f
push ebx
mov ebx, dword [esp + 0x34]
push ebp
push edi
cmp ebx, dword [eax + 0xc]
jbe 0x4073e1
push dword [esi + 4]
call dword [eax + 0x10]
mov eax, dword [esi]
push ebx
push dword [esp + 0x3c]
push dword [esi + 4]
call dword [eax + 0x14]
mov eax, dword [esi]
lea ecx, [esp + 0x10]
push ecx
push dword [esi + 4]
call dword [eax + 0x18]
mov eax, dword [esi]
lea edi, [esp + 0x10]
mov ebx, dword [eax + 8]
jmp 0x4073e5
mov edi, dword [esp + 0x38]
mov ecx, dword [esi + 8]
mov eax, dword [eax + 0xc]
push eax
push 0x36
push ecx
mov dword [esp + 0x44], ecx
lea ebp, [ecx + eax]
call fcn.00402707
mov eax, dword [esi]
push dword [eax + 0xc]
push 0x5c
push ebp
call fcn.00402707
add esp, 0x18
test ebx, ebx
je 0x407425
mov ecx, dword [esp + 0x38]
sub ecx, edi
sub ebp, edi
mov al, byte [edi]
xor byte [ecx + edi], al
mov al, byte [edi]
xor byte [edi + ebp], al
inc edi
dec ebx
jne 0x407417
push 0x20
lea eax, [esp + 0x14]
push eax
call fcn.004075b7
mov eax, dword [esi]
push dword [esi + 4]
call dword [eax + 0x10]
mov eax, dword [esi]
push dword [eax + 0xc]
push dword [esp + 0x3c]
push dword [esi + 4]
call dword [eax + 0x14]
pop edi
pop ebp
xor eax, eax
pop ebx
jmp 0x407454
mov eax, 0xffffaf00
pop esi
add esp, 0x20
ret 0xc
Function at 0x4085bc
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [esp + 0x20], 1
push edi
mov edi, dword [esp + 0x18]
mov dword [esp + 8], ebx
mov dword [esp + 0x10], ebx
jne 0x4085e8
cmp dword [edi + 0xa4], ebx
je 0x4085e8
mov eax, 0xffffbf80
jmp 0x4087cd
mov ecx, dword [edi + 4]
push ebp
push esi
mov esi, dword [esp + 0x30]
mov dword [esp + 0x14], ecx
lea ebp, [ecx - 3]
test esi, esi
je 0x408641
push esi
call fcn.004071c7
mov dword [esp + 0x34], eax
test eax, eax
je 0x4087c6
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.00407811
test eax, eax
jne 0x4087c6
push 0xfffffffffffffff6
pop eax
sub eax, dword [esp + 0x10]
push dword [esp + 0x34]
add ebp, eax
call fcn.004072ca
mov ecx, dword [esp + 0x14]
movzx eax, al
jmp 0x408645
mov eax, dword [esp + 0x34]
sub ebp, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x14], ebp
cmp ebp, 8
jb 0x4087c6
cmp ebp, ecx
ja 0x4087c6
mov ebp, dword [esp + 0x3c]
push dword [esp + 0x14]
push 0xff
lea esi, [ebp + 1]
mov byte [ebp], bl
mov byte [esi], 1
inc esi
push esi
call fcn.00402707
add esi, dword [esp + 0x20]
add esp, 0xc
mov byte [esi], bl
inc esi
cmp dword [esp + 0x30], ebx
jne 0x4086a0
push dword [esp + 0x34]
push dword [esp + 0x3c]
push esi
call fcn.004026e5
add esp, 0xc
jmp 0x4086fe
mov byte [esi], 0x30
mov al, byte [esp + 0x10]
add al, 8
add al, byte [esp + 0x34]
mov byte [esi + 1], al
mov byte [esi + 2], 0x30
mov al, byte [esp + 0x10]
add al, 4
mov byte [esi + 3], al
mov byte [esi + 4], 6
mov al, byte [esp + 0x10]
mov byte [esi + 5], al
add esi, 6
push dword [esp + 0x10]
push dword [esp + 0x1c]
push esi
call fcn.004026e5
add esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x40]
push eax
push dword [esp + 0x48]
mov word [esi], 5
mov byte [esi + 2], 4
mov byte [esi + 3], al
lea eax, [esi + 4]
push eax
call fcn.004026e5
add esp, 0x18
cmp dword [esp + 0x2c], ebx
jne 0x408711
push ebp
push ebp
push edi
call fcn.00408020
jmp 0x4087cb
push dword [edi + 4]
push 1
call fcn.0040280b
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40873e
push dword [edi + 4]
push 1
call fcn.0040280b
mov dword [esp + 0x34], eax
pop ecx
pop ecx
push esi
test eax, eax
jne 0x408746
call fcn.00402825
pop ecx
push 0xfffffffffffffff0
pop eax
jmp 0x4087cb
push ebp
push dword [esp + 0x30]
push dword [esp + 0x30]
push edi
call fcn.004080ab
mov dword [esp + 0x38], eax
test eax, eax
jne 0x4087ad
push dword [esp + 0x2c]
push esi
push edi
call fcn.00408020
mov dword [esp + 0x38], eax
test eax, eax
jne 0x4087ad
mov edx, dword [edi + 4]
test edx, edx
je 0x40878e
mov edi, dword [esp + 0x2c]
mov ecx, ebp
sub edi, ebp
mov al, byte [edi + ecx]
xor al, byte [ecx]
or bl, al
inc ecx
dec edx
jne 0x40877f
mov edi, dword [esp + 0x20]
mov byte [esp + 0x30], bl
cmp byte [esp + 0x30], 0
je 0x4087a0
mov edi, 0xffffbd00
jmp 0x4087b1
push dword [edi + 4]
push esi
push ebp
call fcn.004026e5
add esp, 0xc
mov edi, dword [esp + 0x38]
push esi
call fcn.00402825
push dword [esp + 0x30]
call fcn.00402825
pop ecx
pop ecx
mov eax, edi
jmp 0x4087cb
mov eax, 0xffffbf80
pop esi
pop ebp
pop edi
pop ebx
add esp, 0xc
ret 0x20
Function at 0x408d30
Capabilities:
Hash data using sha224
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
and dword [eax], 0
and dword [eax + 4], 0
test ecx, ecx
jne 0x408d7d
mov dword [eax + 8], 0x6a09e667
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0x3c6ef372
mov dword [eax + 0x14], 0xa54ff53a
mov dword [eax + 0x18], 0x510e527f
mov dword [eax + 0x1c], 0x9b05688c
mov dword [eax + 0x20], 0x1f83d9ab
mov dword [eax + 0x24], 0x5be0cd19
jmp 0x408db5
mov dword [eax + 8], 0xc1059ed8
mov dword [eax + 0xc], 0x367cd507
mov dword [eax + 0x10], 0x3070dd17
mov dword [eax + 0x14], 0xf70e5939
mov dword [eax + 0x18], 0xffc00b31
mov dword [eax + 0x1c], 0x68581511
mov dword [eax + 0x20], 0x64f98fa7
mov dword [eax + 0x24], 0xbefa4fa4
mov dword [eax + 0x68], ecx
ret 8