joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402ae9
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1250
call fcn.00413b10
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x250]
push edi
or edi, 0xffffffff
mov ebx, 0x800
push eax
cmp esi, edi
jne 0x402b75
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, edi
jne 0x402b90
push ebx
lea eax, [ebp - 0x1250]
push eax
push dword [ebp + 0xc]
call fcn.00403543
test al, al
je 0x402b4c
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x1250]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, edi
jne 0x402b90
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x402b65
cmp eax, 3
je 0x402b65
cmp eax, 0x12
je 0x402b65
mov al, 1
jmp 0x402b67
xor al, al
mov edi, dword [ebp + 0x10]
mov byte [edi + 0x1044], al
jmp 0x402c52
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402b90
mov esi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
jmp 0x402b67
mov edi, dword [ebp + 0x10]
push ebx
push dword [ebp + 0xc]
push edi
call fcn.004068bd
push ebx
lea eax, [ebp - 0x224]
push eax
push edi
call fcn.00403932
mov ecx, dword [ebp - 0x234]
xor eax, eax
add eax, dword [ebp - 0x230]
mov dword [edi + 0x1000], eax
mov eax, dword [ebp - 0x250]
adc ecx, 0
mov dword [edi + 0x1008], eax
mov eax, dword [ebp - 0x24c]
mov dword [edi + 0x1004], ecx
mov ecx, dword [ebp - 0x248]
mov dword [edi + 0x1028], eax
mov eax, dword [ebp - 0x244]
mov dword [edi + 0x102c], ecx
mov ecx, dword [ebp - 0x240]
mov dword [edi + 0x1030], eax
mov eax, dword [ebp - 0x23c]
mov dword [edi + 0x1034], ecx
mov ecx, dword [ebp - 0x238]
mov dword [edi + 0x1038], eax
lea eax, [ebp - 0x23c]
mov dword [edi + 0x103c], ecx
lea ecx, [edi + 0x1010]
push eax
call fcn.00407348
lea eax, [ebp - 0x24c]
push eax
lea ecx, [edi + 0x1018]
call fcn.00407348
lea eax, [ebp - 0x244]
push eax
lea ecx, [edi + 0x1020]
call fcn.00407348
and dword [edi + 0x1040], 0
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x403543
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00413b10
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp word [esi], 0
je 0x4036c4
push esi
call fcn.004036cd
push esi
call fcn.004186b3
pop ecx
push esi
mov edi, eax
call fcn.004036f8
test al, al
je 0x4035f8
push esi
call fcn.004036cd
test al, al
je 0x4035b2
lea eax, [edi + 4]
cmp dword [ebp + 0x10], eax
jbe 0x4036c4
push dword [ebp + 0x10]
push 0x4285a8
push dword [ebp + 0xc]
call fcn.004068bd
push dword [ebp + 0x10]
push esi
push dword [ebp + 0xc]
call fcn.00406895
mov al, 1
jmp 0x4036c6
push 0x5c
pop eax
cmp word [esi], ax
jne 0x4036c4
lea ebx, [esi + 2]
cmp word [ebx], ax
jne 0x4036c4
mov esi, dword [ebp + 0x10]
lea eax, [edi + 6]
cmp esi, eax
jbe 0x4036c4
push esi
push 0x4285a8
push dword [ebp + 0xc]
call fcn.004068bd
push esi
push 0x4285b4
push dword [ebp + 0xc]
call fcn.00406895
push esi
push ebx
jmp 0x4035a3
lea eax, [ebp - 0x1000]
mov ebx, 0x7ff
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4036c4
cmp eax, ebx
ja 0x4036c4
movzx eax, word [esi]
push eax
call fcn.0040372d
test al, al
je 0x403663
lea eax, [edi + 6]
mov edi, dword [ebp + 0x10]
cmp edi, eax
jbe 0x4036c4
push edi
push 0x4285a8
push dword [ebp + 0xc]
call fcn.004068bd
xor eax, eax
mov word [ebp - 0xffc], ax
lea eax, [ebp - 0x1000]
push edi
push eax
push dword [ebp + 0xc]
call fcn.00406895
push edi
jmp 0x4035a2
push 0x800
lea eax, [ebp - 0x1000]
push eax
call fcn.0040315f
lea eax, [ebp - 0x1000]
push eax
call fcn.004186b3
add edi, 4
add eax, edi
mov edi, dword [ebp + 0x10]
pop ecx
cmp edi, eax
jbe 0x4036c4
push edi
push 0x4285a8
push dword [ebp + 0xc]
call fcn.004068bd
push edi
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 0xc]
call fcn.00406895
cmp word [esi], 0x2e
jne 0x40365d
movzx eax, word [esi + 2]
push eax
call fcn.0040372d
test al, al
je 0x40365d
add esi, 4
jmp 0x40365d
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x404d05
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ecx
push ecx
push ebx
push ebp
xor ebp, ebp
push edi
mov ecx, ebp
movzx eax, byte [ecx + str.cw]
mov byte [eax + 0x439eb8], cl
inc ecx
cmp ecx, 0x100
jl 0x404d0e
mov al, byte [ebp + str.cw]
mov byte [esp + 0x10], al
push 2
push dword [esp + 0x14]
mov byte [ebp*4 + 0x43abb9], al
mov byte [ebp*4 + 0x43abb8], al
mov byte [ebp*4 + 0x43a7bb], al
mov byte [ebp*4 + 0x43a7b8], al
mov byte [ebp*4 + 0x43a3bb], al
mov byte [ebp*4 + 0x43a3ba], al
mov byte [ebp*4 + 0x439fba], al
mov byte [ebp*4 + 0x439fb9], al
call fcn.004054ca
push 3
push dword [esp + 0x14]
mov byte [ebp*4 + 0x43abbb], al
mov byte [ebp*4 + 0x43a7ba], al
mov byte [ebp*4 + 0x43a3b9], al
mov byte [ebp*4 + 0x439fb8], al
call fcn.004054ca
mov bl, byte [ebp + 0x439eb8]
push 0xb
mov byte [esp + 0x10], bl
push dword [esp + 0x10]
mov byte [ebp*4 + 0x43abba], al
mov byte [ebp*4 + 0x43a7b9], al
mov byte [ebp*4 + 0x43a3b8], al
mov byte [ebp*4 + 0x439fbb], al
call fcn.004054ca
movzx edi, bl
push 9
push dword [esp + 0x10]
mov byte [ebp*4 + 0x43bbba], al
mov byte [ebp*4 + 0x43b7b9], al
mov byte [ebp*4 + 0x43b3b8], al
mov byte [ebp*4 + 0x43afbb], al
mov byte [edi*4 + 0x43cbba], al
mov byte [edi*4 + 0x43c7b9], al
mov byte [edi*4 + 0x43c3b8], al
mov byte [edi*4 + 0x43bfbb], al
call fcn.004054ca
push 0xd
push dword [esp + 0x10]
mov byte [ebp*4 + 0x43bbb8], al
mov byte [ebp*4 + 0x43b7bb], al
mov byte [ebp*4 + 0x43b3ba], al
mov byte [ebp*4 + 0x43afb9], al
mov byte [edi*4 + 0x43cbb8], al
mov byte [edi*4 + 0x43c7bb], al
mov byte [edi*4 + 0x43c3ba], al
mov byte [edi*4 + 0x43bfb9], al
call fcn.004054ca
push 0xe
push dword [esp + 0x10]
mov byte [ebp*4 + 0x43bbb9], al
mov byte [ebp*4 + 0x43b7b8], al
mov byte [ebp*4 + 0x43b3bb], al
mov byte [ebp*4 + 0x43afba], al
mov byte [edi*4 + 0x43cbb9], al
mov byte [edi*4 + 0x43c7b8], al
mov byte [edi*4 + 0x43c3bb], al
mov byte [edi*4 + 0x43bfba], al
call fcn.004054ca
mov byte [ebp*4 + 0x43bbbb], al
mov byte [ebp*4 + 0x43b7ba], al
mov byte [ebp*4 + 0x43b3b9], al
mov byte [ebp*4 + 0x43afb8], al
inc ebp
mov byte [edi*4 + 0x43cbbb], al
mov byte [edi*4 + 0x43c7ba], al
mov byte [edi*4 + 0x43c3b9], al
mov byte [edi*4 + 0x43bfb8], al
cmp ebp, 0x100
jl 0x404d24
pop edi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x405445
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push ecx
cmp dword [esp + 0xc], 0
movups xmm1, xmmword [ecx + 8]
push esi
mov esi, dword [esp + 0xc]
push edi
lea edi, [ecx + 0x18]
jbe 0x4054c0
mov edx, dword [esp + 0x18]
mov eax, esi
add esi, 0x10
cmp byte [ecx + 1], 0
movups xmm0, xmmword [eax]
je 0x405470
pxor xmm0, xmm1
movups xmm1, xmmword [edi]
mov eax, dword [ecx + 4]
pxor xmm1, xmm0
cmp eax, 1
jle 0x4054a2
lea edx, [edi + 0x10]
lea edi, [eax - 1]
mov dword [esp + 8], edi
lea edi, [ecx + 0x18]
sub dword [esp + 8], 1
movups xmm0, xmmword [edx]
lea edx, [edx + 0x10]
aesenc xmm1, xmm0
jne 0x40548c
mov edx, dword [esp + 0x18]
add eax, eax
movups xmm0, xmmword [edi + eax*8]
mov eax, edx
add edx, 0x10
sub dword [esp + 0x14], 1
aesenclast xmm1, xmm0
mov dword [esp + 0x18], edx
movups xmmword [eax], xmm1
jne 0x40545e
pop edi
movups xmmword [ecx + 8], xmm1
pop esi
pop ecx
ret 0xc

Function at 0x4054f4
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
push ebp
push edi
mov ebp, ecx
xor edi, edi
inc edi
mov dword [esp + 0x14], ebp
mov dword [esp + 8], edi
cmp dword [ebp + 4], edi
jle 0x4055a2
push ebx
lea ebx, [ebp + 0x28]
push esi
mov dword [esp + 0x14], ebx
lea eax, [ebx + 2]
xor esi, esi
mov dword [esp + 0x18], eax
lea edi, [esp + 0x20]
mov ebp, eax
push 4
add edi, esi
pop ebx
movzx eax, byte [ebp + 1]
movzx ecx, byte [ebp - 1]
mov dl, byte [esi + eax*4 + 0x43cbb8]
movzx eax, byte [ebp - 2]
xor dl, byte [esi + ecx*4 + 0x43c3b8]
xor dl, byte [esi + eax*4 + 0x43bfb8]
movzx eax, byte [ebp]
lea ebp, [ebp + 4]
xor dl, byte [esi + eax*4 + 0x43c7b8]
mov byte [edi], dl
lea edi, [edi + 4]
sub ebx, 1
jne 0x40552c
mov eax, dword [esp + 0x18]
inc esi
cmp esi, 4
jl 0x405521
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push 0x10
push eax
push ebx
call fcn.00415140
mov edi, dword [esp + 0x1c]
add esp, 0xc
mov ebp, dword [esp + 0x1c]
inc edi
add ebx, 0x10
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ebx
cmp edi, dword [ebp + 4]
jl 0x405518
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x20
ret
Function at 0x4055a8
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
mov ebp, ecx
lea eax, [esp + 0x1c]
push edi
push 0x20
push dword [esp + 0x48]
mov esi, dword [ebp + 4]
sub esi, 6
mov dword [esp + 0x18], ebp
push eax
mov dword [esp + 0x24], esi
call fcn.00415140
add esp, 0xc
xor ebx, ebx
xor edx, edx
xor edi, edi
test esi, esi
jle 0x405628
cmp ebx, dword [ebp + 4]
jg 0x40578c
cmp edi, esi
jge 0x405615
lea ebp, [esp + 0x20]
lea ebp, [ebp + edi*4]
cmp edx, 4
jge 0x405611
mov esi, dword [esp + 0x10]
lea ecx, [edx + ebx*4]
mov eax, dword [ebp]
inc edi
add ebp, 4
inc edx
mov dword [esi + ecx*4 + 0x18], eax
mov esi, dword [esp + 0x18]
cmp edi, esi
jl 0x4055f1
mov ebp, dword [esp + 0x10]
cmp edx, 4
jne 0x40561b
inc ebx
lea eax, [edx - 4]
neg eax
sbb eax, eax
and edx, eax
cmp edi, esi
jl 0x4055dc
cmp ebx, dword [ebp + 4]
jg 0x40578c
mov edi, 0x433108
movzx eax, byte [esp + esi*4 + 0x1d]
mov cl, byte [esp + 0x20]
xor cl, byte [eax + str.cw]
mov byte [esp + 0x20], cl
movzx eax, byte [esp + esi*4 + 0x1e]
mov al, byte [eax + str.cw]
xor byte [esp + 0x21], al
movzx eax, byte [esp + esi*4 + 0x1f]
mov al, byte [eax + str.cw]
xor byte [esp + 0x22], al
movzx eax, byte [esp + esi*4 + 0x1c]
mov al, byte [eax + str.cw]
xor byte [esp + 0x23], al
mov al, byte [edi]
xor al, cl
inc edi
mov byte [esp + 0x20], al
mov dword [esp + 0x1c], edi
cmp esi, 8
je 0x4056b9
cmp esi, 1
jle 0x4056ad
lea eax, [esi - 1]
lea ecx, [esp + 0x24]
mov dword [esp + 0x14], eax
push 4
pop edi
mov al, byte [ecx - 4]
xor byte [ecx], al
inc ecx
sub edi, 1
jne 0x40569b
sub dword [esp + 0x14], 1
jne 0x405698
xor edi, edi
test esi, esi
jle 0x40577f
jmp 0x405737
lea ecx, [esp + 0x24]
mov dword [esp + 0x14], 3
push 4
pop edi
mov al, byte [ecx - 4]
xor byte [ecx], al
inc ecx
sub edi, 1
jne 0x4056c8
sub dword [esp + 0x14], 1
jne 0x4056c5
movzx eax, byte [esp + 0x2c]
lea ecx, [esp + 0x34]
mov dword [esp + 0x14], 3
mov al, byte [eax + str.cw]
xor byte [esp + 0x30], al
movzx eax, byte [esp + 0x2d]
mov al, byte [eax + str.cw]
xor byte [esp + 0x31], al
movzx eax, byte [esp + 0x2e]
mov al, byte [eax + str.cw]
xor byte [esp + 0x32], al
movzx eax, byte [esp + 0x2f]
mov al, byte [eax + str.cw]
xor byte [esp + 0x33], al
push 4
pop edi
mov al, byte [ecx - 4]
xor byte [ecx], al
inc ecx
sub edi, 1
jne 0x405725
sub dword [esp + 0x14], 1
jne 0x405722
cmp ebx, dword [ebp + 4]
jg 0x405782
cmp edi, esi
jge 0x40576c
lea ebp, [esp + 0x20]
lea ebp, [ebp + edi*4]
cmp edx, 4
jge 0x405768
mov esi, dword [esp + 0x10]
lea ecx, [edx + ebx*4]
mov eax, dword [ebp]
inc edi
add ebp, 4
inc edx
mov dword [esi + ecx*4 + 0x18], eax
mov esi, dword [esp + 0x18]
cmp edi, esi
jl 0x405748
mov ebp, dword [esp + 0x10]
cmp edx, 4
jne 0x405772
inc ebx
lea eax, [edx - 4]
neg eax
sbb eax, eax
and edx, eax
cmp edi, esi
jl 0x405737
cmp ebx, dword [ebp + 4]
mov edi, dword [esp + 0x1c]
jle 0x405636
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 4
Function at 0x40589a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [0x43cfc0]
test esi, esi
jne 0x4058b8
mov ecx, 0x43cfb8
call fcn.0040581b
mov esi, dword [0x43cfc0]
mov eax, dword [ebp + 0xc]
movzx ecx, byte [ebp + 0x14]
and eax, 0xfffffff0
cmp byte [ebp + 0x10], 0
je 0x405903
test esi, esi
je 0x405927
push ecx
push eax
push dword [ebp + 8]
mov ecx, esi
call dword [0x428220]
call esi
test eax, eax
jne 0x40594b
push str.CryptProtectMemory_failed
mov esi, 0x452b1c
push esi
call fcn.00401789
pop ecx
pop ecx
mov ecx, esi
call fcn.0040192c
push 2
mov ecx, esi
call fcn.00401784
jmp 0x40594b
mov esi, dword [0x43cfc4]
test esi, esi
je 0x405927
push ecx
push eax
push dword [ebp + 8]
mov ecx, esi
call dword [0x428220]
call esi
test eax, eax
jne 0x40594b
push str.CryptUnprotectMemory_failed
jmp 0x4058e4
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ebx, eax
cmp dword [ebp + 0xc], edx
jbe 0x40594a
mov esi, dword [ebp + 8]
lea eax, [ebx + 0x4b]
add al, dl
lea ecx, [edx + esi]
xor byte [ecx], al
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x40593a
pop ebx
pop esi
pop ebp
ret 0x10
Function at 0x4062f2
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x18], 0
and dword [eax + 0x1c], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret 4
Function at 0x40a36d
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x44d630], 0
je 0x40a37a
or eax, 0xffffffff
ret
mov eax, dword [0x43d50c]
push ebx
push ebp
xor ebp, ebp
cmp eax, ebp
jg 0x40a3b8
mov ecx, dword [0x43d508]
jl 0x40a393
cmp ecx, ebp
ja 0x40a3b8
or ebx, 0xffffffff
mov dword [0x44d550], ebp
add ecx, ebx
mov dword [0x44d554], ebp
mov dword [0x43d508], ecx
adc eax, ebx
mov dword [0x43d50c], eax
mov eax, ebx
jmp 0x40a4c2
push esi
push edi
mov edi, dword [0x44d554]
or ebx, 0xffffffff
cmp edi, ebp
jg 0x40a41d
jl 0x40a3d3
mov esi, dword [0x44d550]
cmp esi, ebp
ja 0x40a423
mov esi, 0x2000
push esi
push dword [0x44d544]
call fcn.0040a69c
cdq
mov ecx, eax
mov dword [0x44d550], eax
or ecx, edx
mov dword [0x44d554], edx
je 0x40a45f
and eax, edx
cmp eax, ebx
je 0x40a450
add dword [0x44d588], esi
mov eax, dword [0x44d544]
adc dword [0x44d58c], ebp
mov dword [0x44d548], eax
call fcn.00409df4
mov edi, dword [0x44d554]
mov esi, dword [0x44d550]
mov eax, dword [0x43d538]
test byte [eax + 0x40], 1
je 0x40a4a2
cmp byte [0x44e7e5], 0
mov eax, esi
je 0x40a46f
or eax, edi
je 0x40a4a2
push 0x44e7f0
push esi
push dword [0x44d548]
call fcn.0040d90d
jmp 0x40a496
push 0x45ceb2
mov ecx, 0x452b1c
call fcn.004018ae
mov dword [0x44d550], ebp
mov eax, ebx
mov dword [0x44d554], ebp
jmp 0x40a4c0
or eax, edi
mov ebp, dword [0x44d548]
je 0x40a4a2
add esi, ebx
adc edi, ebx
call fcn.0040d57f
xor byte [ebp], al
movzx eax, byte [ebp]
push eax
call fcn.0040d68a
mov eax, esi
inc ebp
or eax, edi
jne 0x40a479
mov esi, dword [0x44d550]
mov edi, dword [0x44d554]
mov eax, dword [0x44d548]
add esi, ebx
mov dword [0x44d550], esi
adc edi, ebx
mov dword [0x44d554], edi
movzx eax, byte [eax]
inc dword [0x44d548]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x40d5e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push dword [ebp + 0xc]
call fcn.0040d59d
push 0xc
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00415140
add esp, 0xc
xor esi, esi
call fcn.0040d57f
xor byte [ebp + esi - 0xc], al
movzx eax, byte [ebp + esi - 0xc]
push eax
call fcn.0040d68a
inc esi
cmp esi, 0xc
jl 0x40d602
mov eax, dword [0x43d538]
movzx edx, byte [ebp - 1]
movzx ecx, byte [0x44d5a7]
test byte [eax + 0x40], 2
jne 0x40d639
movzx ecx, byte [0x44d5af]
cmp edx, ecx
je 0x40d642
or eax, 0xffffffff
jmp 0x40d685
mov ecx, dword [0x44d550]
mov eax, ecx
cdq
cmp edx, dword [0x43d50c]
jl 0x40d65f
mov esi, dword [0x43d508]
jg 0x40d661
cmp eax, esi
ja 0x40d661
mov esi, ecx
push edi
mov edi, dword [0x44d548]
test esi, esi
je 0x40d682
call fcn.0040d57f
xor byte [edi], al
movzx eax, byte [edi]
push eax
call fcn.0040d68a
inc edi
sub esi, 1
jne 0x40d66c
xor eax, eax
pop edi
pop esi
leave
ret 8
Function at 0x40d68a
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov ecx, dword [0x44e670]
mov eax, dword [esp + 4]
mov edx, dword [0x44e678]
xor eax, ecx
movzx eax, al
shr ecx, 8
xor ecx, dword [eax*4 + 0x43d0e0]
movzx eax, cl
add eax, dword [0x44e674]
mov dword [0x44e670], ecx
imul ecx, eax, 0x8088405
mov eax, dword [esp + 4]
inc ecx
mov dword [0x44e674], ecx
shr ecx, 0x18
xor ecx, edx
shr edx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x43d0e0]
mov dword [0x44e678], edx
ret 4

Function at 0x40d6e4
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x2f4
push ebx
push esi
mov esi, 0xa8
lea eax, [esp + 0x44]
push esi
xor ebx, ebx
push ebx
push eax
call fcn.00414af0
add esp, 0xc
lea eax, [esp + 0x44]
push eax
push dword [esp + 0x308]
push dword [esp + 0x308]
call fcn.0040dba5
push esi
lea eax, [esp + 0x48]
mov byte [esp + 0xe], bl
push eax
lea eax, [esp + 0x1fc]
mov byte [esp + 0x13], bl
push eax
call fcn.00415140
add esp, 0xc
lea eax, [esp + 0xa]
push eax
lea eax, [esp + 0x198]
push eax
lea eax, [esp + 0x1fc]
push eax
push dword [esp + 0x318]
push dword [esp + 0x318]
call fcn.0040da31
mov eax, dword [esp + 0x318]
xor edx, edx
push 0x14
dec eax
pop ecx
div ecx
add eax, 1
mov dword [esp + 0x18], eax
je 0x40d8aa
push ebp
push edi
mov edi, ebx
lea ebp, [esp + 0x38]
inc ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebx
push ecx
lea eax, [esp + 0x3c]
mov dword [esp + 0x20], ebx
push 0
push eax
call fcn.00414af0
push esi
lea eax, [esp + 0x20c]
push eax
lea eax, [esp + 0x108]
push eax
call fcn.00415140
mov eax, ebx
mov byte [esp + 0x3f], bl
shr eax, 0x18
add esp, 0x18
mov byte [esp + 0x24], al
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x25], al
mov eax, ebx
shr eax, 8
cmp dword [esp + 0x318], 0
push 4
mov byte [esp + 0x2a], al
pop esi
jbe 0x40d85e
mov ebp, dword [esp + 0x318]
lea eax, [esp + 0x12]
push eax
lea eax, [esp + 0x1a0]
push eax
lea eax, [esp + 0xfc]
push eax
push esi
lea eax, [esp + 0x34]
push eax
call fcn.0040da31
lea eax, [esp + 0x13]
push eax
lea eax, [esp + 0x2a8]
push eax
lea eax, [esp + 0xfc]
push eax
push 0x14
lea eax, [esp + 0x34]
push eax
call fcn.0040daeb
xor esi, esi
mov al, byte [esp + esi + 0x24]
xor byte [esp + esi + 0x38], al
inc esi
cmp esi, 0x14
jb 0x40d82d
push 0xa8
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0xfc]
push eax
call fcn.00415140
add esp, 0xc
sub ebp, 1
jne 0x40d7ea
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x31c]
xor edx, edx
mov ebx, dword [esp + 0x320]
mov ecx, edi
cmp ecx, ebx
jae 0x40d881
mov al, byte [ecx + ebp]
inc edx
mov byte [ecx + esi], al
inc ecx
cmp edx, 0x14
jb 0x40d870
mov ebx, dword [esp + 0x14]
mov esi, 0xa8
mov eax, dword [esp + 0x1c]
inc ebx
push 0x14
pop ecx
sub ebp, ecx
mov dword [esp + 0x14], ebx
add edi, ecx
mov dword [esp + 0x18], ebp
cmp eax, dword [esp + 0x20]
jb 0x40d78d
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x2f4
ret 0x1c
Function at 0x40da31
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ecx, dword [ebx + 0xa0]
lea ebp, [ebx + 0x40]
cmp ecx, 0xffffffff
je 0x40dad1
push esi
push edi
push 0x40
pop edi
cmp ecx, edi
jbe 0x40da62
push ebx
push ebp
call fcn.0040dc0c
push 0x14
pop ecx
mov dword [ebx + 0xa0], ecx
cmp dword [esp + 0x20], 0
je 0x40da7f
mov eax, dword [esp + 0x24]
cmp byte [eax], 0
je 0x40da7f
mov esi, dword [esp + 0x20]
mov edi, ebp
push 0x18
pop ecx
rep movsd dword es:[edi], dword [esi]
jmp 0x40dab5
mov eax, edi
xor esi, esi
sub eax, ecx
push eax
lea eax, [ecx + ebx]
push esi
push eax
call fcn.00414af0
add esp, 0xc
xor byte [esi + ebx], 0x36
inc esi
cmp esi, edi
jb 0x40da93
push ebp
call fcn.004062f2
push edi
push ebx
push ebp
call fcn.00406323
cmp dword [esp + 0x20], 0
je 0x40dac8
mov eax, dword [esp + 0x24]
cmp byte [eax], 0
jne 0x40dac8
mov edi, dword [esp + 0x20]
mov esi, ebp
push 0x18
pop ecx
rep movsd dword es:[edi], dword [esi]
mov byte [eax], 1
or dword [ebx + 0xa0], 0xffffffff
pop edi
pop esi
cmp dword [esp + 0x10], 0
je 0x40dae6
push dword [esp + 0x10]
push dword [esp + 0x10]
push ebp
call fcn.00406323
pop ebp
pop ebx
ret 0x14

Function at 0x40daeb
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x30]
xor esi, esi
cmp dword [edi + 0xa0], 0xffffffff
je 0x40db0b
push esi
push esi
push edi
push esi
push esi
call fcn.0040da31
lea eax, [esp + 0x10]
push eax
lea ebx, [edi + 0x40]
push ebx
call fcn.0040dc0c
mov ebp, dword [esp + 0x34]
test ebp, ebp
je 0x40db35
mov eax, dword [esp + 0x38]
cmp byte [eax], 0
je 0x40db35
push 0x18
pop ecx
mov esi, ebp
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
jmp 0x40db56
xor byte [esi + edi], 0x6a
inc esi
cmp esi, 0x40
jb 0x40db35
push ebx
call fcn.004062f2
push 0x40
push edi
push ebx
call fcn.00406323
test ebp, ebp
je 0x40db67
mov eax, dword [esp + 0x38]
cmp byte [eax], 0
jne 0x40db67
push 0x18
pop ecx
mov esi, ebx
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov byte [eax], 1
push 0x14
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.00406323
lea eax, [esp + 0x10]
push eax
push ebx
call fcn.0040dc0c
cmp dword [esp + 0x2c], 0
pop edi
pop esi
pop ebp
pop ebx
jbe 0x40db9f
push dword [esp + 0x1c]
lea eax, [esp + 4]
push eax
push dword [esp + 0x20]
call fcn.00415140
add esp, 0xc
add esp, 0x14
ret 0x14
Function at 0x40ded3
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
push ebx
push ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x428220]
mov ecx, edi
call esi
mov eax, dword [edi]
lea ecx, [ebp - 0x108]
push 0x40
push ecx
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x428220]
mov ecx, edi
call esi
cmp eax, 0x40
jne 0x40dfd4
cmp byte [ebp - 0x108], 0x4d
jne 0x40dfd4
cmp byte [ebp - 0x107], 0x5a
jne 0x40dfd4
mov eax, dword [edi]
push ebx
push ebx
push dword [ebp - 0xcc]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x428220]
mov ecx, edi
call esi
mov eax, dword [edi]
lea ecx, [ebp - 0x108]
mov ebx, 0x108
push ebx
push ecx
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x428220]
mov ecx, edi
call esi
cmp eax, ebx
jne 0x40dfd4
cmp byte [ebp - 0x108], 0x50
jne 0x40dfd4
cmp byte [ebp - 0x107], 0x45
jne 0x40dfd4
cmp byte [ebp - 0x106], 0
jne 0x40dfd4
cmp byte [ebp - 0x105], 0
jne 0x40dfd4
cmp byte [ebp - 0xf0], 0xb
jne 0x40dfd4
cmp byte [ebp - 0xef], 1
jne 0x40dfb4
cmp dword [ebp - 0x94], 4
jbe 0x40dfb4
mov eax, dword [ebp - 0x70]
jmp 0x40dfd6
cmp byte [ebp - 0xf0], 0xb
jne 0x40dfd4
cmp byte [ebp - 0xef], 2
jne 0x40dfd4
cmp dword [ebp - 0x84], 4
jbe 0x40dfd4
mov eax, dword [ebp - 0x60]
jmp 0x40dfd6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4