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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
add ecx, 8
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0
jmp 0x406c32
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x10]
jge 0x406ca4
mov ecx, dword [ebp - 0xc]
add ecx, 1
movzx edx, cl
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + eax*4]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x14]
movzx ecx, al
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + edx*4]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
mov dword [eax + edx*4], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx*4], ecx
mov edx, dword [ebp - 0x14]
add edx, dword [ebp - 0x18]
movzx eax, dl
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 8]
movzx edx, byte [ecx]
mov ecx, dword [ebp - 4]
xor edx, dword [ecx + eax*4]
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 8]
mov byte [eax], dl
jmp 0x406c29
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
mov dword [ecx], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 4], ecx
mov esp, ebp
pop ebp
ret

Function at 0x4123a1
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00412061
Function at 0x402740
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x42d040]
test eax, eax
je 0x40275f
push eax
call fcn.0040ad1f
add esp, 4
mov dword [0x42d040], 0
mov eax, dword [0x428d90]
test eax, eax
je 0x40277b
push eax
call fcn.0040ad1f
add esp, 4
mov dword [0x428d90], 0
mov eax, dword [ebp + 8]
push eax
call fcn.0040ac93
int3

Function at 0x403b30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [0x428dac]
push esi
mov esi, dword [0x42cc30]
push edi
xor edi, edi
test ebx, ebx
mov dword [0x42cc20], 2
je 0x403d20
mov ecx, dword [0x428db4]
lea ecx, [ecx]
movzx eax, byte [esi + 0x4450e2]
shl ecx, 5
xor eax, ecx
and eax, 0x7fff
movzx ecx, word [eax*2 + 0x469940]
mov edx, esi
and edx, 0x7fff
test ecx, ecx
mov word [edx*2 + 0x459940], cx
mov dword [0x428db4], eax
mov word [eax*2 + 0x469940], si
je 0x403bb6
mov eax, esi
sub eax, ecx
cmp eax, 0x7efa
ja 0x403bb6
push ecx
call fcn.004038a0
mov edi, eax
add esp, 4
cmp edi, ebx
jbe 0x403bb6
mov edi, ebx
cmp edi, 3
jb 0x403c6d
sub esi, dword [0x42cc28]
lea ecx, [edi - 3]
push ecx
push esi
call fcn.00404ab0
mov ebx, dword [0x428dac]
mov esi, dword [0x42cc30]
sub ebx, edi
add esp, 8
cmp edi, dword [0x428db0]
mov dword [ebp - 4], eax
mov dword [0x428dac], ebx
ja 0x403c46
mov ecx, dword [0x428db4]
sub edi, 1
lea ebx, [ebx]
movzx edx, byte [esi + 0x4450e3]
add esi, 1
shl ecx, 5
xor edx, ecx
and edx, 0x7fff
mov ecx, edx
mov dx, word [ecx*2 + 0x469940]
mov eax, esi
and eax, 0x7fff
sub edi, 1
mov word [eax*2 + 0x459940], dx
mov word [ecx*2 + 0x469940], si
jne 0x403c00
mov eax, dword [ebp - 4]
mov dword [0x428db4], ecx
jmp 0x403c9a
movzx ecx, byte [esi + edi + 0x4450e0]
movzx edx, byte [esi + edi + 0x4450e1]
add esi, edi
shl ecx, 5
xor ecx, edx
xor edi, edi
and ecx, 0x7fff
mov dword [0x428db4], ecx
jmp 0x403c9d
movzx eax, byte [esi + 0x4450e0]
push eax
push 0
call fcn.00404ab0
mov ebx, dword [0x428dac]
mov esi, dword [0x42cc30]
mov ecx, dword [0x428db4]
add esp, 8
sub ebx, 1
mov dword [0x428dac], ebx
add esi, 1
test eax, eax
mov dword [0x42cc30], esi
je 0x403ce1
mov ecx, dword [0x42cc2c]
test ecx, ecx
jl 0x403cb9
lea eax, [ecx + 0x4450e0]
jmp 0x403cbb
xor eax, eax
push 0
sub esi, ecx
push esi
push eax
call fcn.00405070
mov esi, dword [0x42cc30]
mov ebx, dword [0x428dac]
mov ecx, dword [0x428db4]
add esp, 0xc
mov dword [0x42cc2c], esi
cmp ebx, 0x106
jae 0x403d18
lea esp, [esp]
cmp dword [0x428da4], 0
jne 0x403d0c
call fcn.00403a20
mov ebx, dword [0x428dac]
cmp ebx, 0x106
jb 0x403cf0
mov ecx, dword [0x428db4]
mov esi, dword [0x42cc30]
test ebx, ebx
jne 0x403b60
mov ecx, dword [0x42cc2c]
test ecx, ecx
jl 0x403d32
lea eax, [ecx + 0x4450e0]
jmp 0x403d34
xor eax, eax
push 1
sub esi, ecx
push esi
push eax
call fcn.00405070
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404050
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp esi, 1
push edi
jl 0x404062
cmp esi, 9
jle 0x40406f
push str.bad_pack_level
call fcn.00406de0
add esp, 4
push 0x10000
xor edi, edi
push edi
push 0x469940
mov dword [0x428da8], esi
call fcn.0040b860
movzx eax, word [esi*8 + 0x427302]
movzx ecx, word [esi*8 + 0x427300]
movzx edx, word [esi*8 + 0x427304]
mov dword [0x428db0], eax
movzx eax, word [esi*8 + 0x427306]
add esp, 0xc
cmp esi, 1
mov dword [0x42cc1c], ecx
mov dword [0x42cc34], edx
mov dword [0x42cc24], eax
jne 0x4040ce
mov eax, dword [ebp + 0xc]
or word [eax], 4
jmp 0x4040da
cmp esi, 9
jne 0x4040da
mov eax, dword [ebp + 0xc]
or word [eax], 2
push 0x10000
push 0x4450e0
mov dword [0x42cc30], edi
mov dword [0x42cc2c], edi
call dword [0x42cc10]
add esp, 8
cmp eax, edi
mov dword [0x428dac], eax
je 0x40414e
cmp eax, 0xffffffff
je 0x40414e
mov esi, 0x106
cmp eax, esi
mov dword [0x428da4], edi
jae 0x40412b
cmp dword [0x428da4], edi
jne 0x40412b
call fcn.00403a20
cmp dword [0x428dac], esi
jb 0x404116
movzx ecx, byte [0x4450e0]
movzx edx, byte [0x4450e1]
shl ecx, 5
xor ecx, edx
and ecx, 0x7fff
pop edi
mov dword [0x428db4], ecx
pop esi
pop ebp
ret
mov dword [0x428dac], edi
pop edi
mov dword [0x428da4], 1
pop esi
pop ebp
ret
Function at 0x406cc0
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
test ecx, ecx
jne 0x406cd6
or eax, 0xffffffff
mov dword [0x42776c], eax
not eax
pop ebp
ret
mov eax, dword [0x42776c]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x406d00
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x427770]
add ecx, 1
sub esi, 1
jne 0x406ce3
mov dword [0x42776c], eax
pop esi
not eax
pop ebp
ret

Function at 0x409c91
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x428048]
jne 0x409c9b
repz ret
jmp fcn.0040fee7

Function at 0x41f38b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040f96e
xor ebx, ebx
cmp dword [0x42cbd4], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x41f460
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x41f3cb
xor eax, eax
jmp 0x41f524
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x41f3c4
push eax
call fcn.0040f90b
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42cbd4], eax
call esi
push eax
call fcn.0040f90b
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42cbd8], eax
call esi
push eax
call fcn.0040f90b
mov dword [0x42cbdc], eax
lea eax, [ebp - 8]
push eax
call fcn.0040a99e
test eax, eax
pop ecx
pop ecx
je 0x41f42e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040ce83
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x41f460
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040f90b
cmp eax, ebx
pop ecx
mov dword [0x42cbe4], eax
je 0x41f460
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040f90b
pop ecx
mov dword [0x42cbe0], eax
mov eax, dword [0x42cbe0]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x41f4d9
cmp dword [0x42cbe4], esi
je 0x41f4d9
push eax
call fcn.0040f977
pop ecx
call eax
cmp eax, ebx
je 0x41f4a6
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x42cbe4]
call fcn.0040f977
pop ecx
call eax
test eax, eax
je 0x41f4a6
test byte [ebp - 0x18], 1
jne 0x41f4d9
lea eax, [ebp - 0xc]
push eax
call fcn.0040aa4d
test eax, eax
pop ecx
je 0x41f4c1
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040ce83
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x41f4d0
or dword [ebp + 0x10], 0x200000
jmp 0x41f50a
or dword [ebp + 0x10], 0x40000
jmp 0x41f50a
mov eax, dword [0x42cbd8]
cmp eax, esi
je 0x41f50a
push eax
call fcn.0040f977
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x41f50a
mov eax, dword [0x42cbdc]
cmp eax, esi
je 0x41f50a
push dword [ebp - 4]
push eax
call fcn.0040f977
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x42cbd4]
call fcn.0040f977
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x421a75
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x421aa2
call fcn.00409bd6
mov dword [eax], esi
call fcn.00409bc3
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0040cfb7
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x421ac0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00409be9
pop ecx
jmp 0x421a9d
test byte [esp + 0xc], 0x80
je 0x421acc
and eax, 0xfffffffe
jmp 0x421acf
or eax, 1
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x421ab1
xor eax, eax
pop esi
ret
Function at 0x408c10
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ecx
mov esi, ecx
mov dword [esp], 0x4e67c6a7
dec edx
test edx, edx
jl 0x408c40
inc edx
xor ecx, ecx
mov ebx, dword [esp]
shl ebx, 5
movzx edi, byte [eax + ecx]
add ebx, edi
mov edi, dword [esp]
shr edi, 2
add ebx, edi
xor dword [esp], ebx
inc ecx
dec edx
jne 0x408c25
mov ecx, esi
mov eax, esp
mov edx, 4
call fcn.0040677c
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c8d8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404854
xor eax, eax
push ebp
push 0x40bd47
push dword fs:[eax]
mov dword fs:[eax], esp
or ebx, 0xffffffff
mov eax, dword [ebp - 4]
call fcn.00404664
test eax, eax
jle 0x40c92f
mov edx, 1
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx + edx - 1]
mov esi, ebx
and esi, 0xff
xor ecx, esi
mov ecx, dword [ecx*4 + 0x4158c8]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x40c90b
not ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bd4e
lea eax, [ebp - 4]
call fcn.004043e0
ret

Function at 0x40c958
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push ecx
mov dword [esp], eax
or eax, 0xffffffff
dec edx
test edx, edx
jl 0x40c98c
inc edx
xor ecx, ecx
mov ebx, dword [esp]
movzx ebx, byte [ebx + ecx]
mov esi, eax
and esi, 0xff
xor ebx, esi
mov ebx, dword [ebx*4 + 0x4158c8]
shr eax, 8
xor ebx, eax
mov eax, ebx
inc ecx
dec edx
jne 0x40c969
not eax
pop edx
pop esi
pop ebx
ret

Function at 0x40c994
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push ecx
mov dword [esp], eax
or eax, 0xffffffff
dec edx
test edx, edx
jl 0x40c9c8
inc edx
xor ecx, ecx
mov ebx, dword [esp]
movzx ebx, byte [ebx + ecx]
mov esi, eax
and esi, 0xff
xor ebx, esi
mov ebx, dword [ebx*4 + 0x4158c8]
shr eax, 8
xor ebx, eax
mov eax, ebx
inc ecx
dec edx
jne 0x40c9a5
not eax
pop edx
pop esi
pop ebx
ret
Function at 0x40ca70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404854
xor eax, eax
push ebp
push 0x40bfbc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.004043e0
mov eax, dword [ebp - 4]
call fcn.00404664
mov edi, eax
test edi, edi
je 0x40cba6
mov eax, esi
shr eax, 0x18
mov byte [ebp - 0xc], al
mov eax, esi
shr eax, 0x10
mov byte [ebp - 0xb], al
mov eax, esi
shr eax, 8
mov byte [ebp - 0xa], al
mov eax, esi
mov byte [ebp - 9], al
dec ebx
cmp ebx, 0
jb 0x40cb6d
mov dword [ebp - 8], ebx
mov esi, edi
dec esi
test esi, esi
jbe 0x40cb08
mov ebx, 1
lea eax, [ebp - 4]
call fcn.004048b4
mov edx, dword [ebp - 4]
mov dl, byte [edx + ebx - 1]
xor dl, byte [ebp - 0xa]
mov ecx, dword [ebp - 4]
mov cl, byte [ecx + ebx]
sub dl, cl
mov byte [eax + ebx - 1], dl
inc ebx
dec esi
jne 0x40cae6
lea eax, [ebp - 4]
call fcn.004048b4
mov edx, dword [ebp - 4]
mov dl, byte [edx + edi - 1]
mov cl, byte [ebp - 0xc]
sub dl, cl
mov byte [eax + edi - 1], dl
mov ebx, edi
cmp ebx, 2
jb 0x40cb4c
lea eax, [ebp - 4]
call fcn.004048b4
mov edx, dword [ebp - 4]
mov dl, byte [edx + ebx - 1]
xor dl, byte [ebp - 9]
mov ecx, dword [ebp - 4]
mov cl, byte [ecx + ebx - 2]
sub dl, cl
mov byte [eax + ebx - 1], dl
dec ebx
cmp ebx, 1
jne 0x40cb27
lea eax, [ebp - 4]
call fcn.004048b4
mov edx, dword [ebp - 4]
mov dl, byte [edx]
mov cl, byte [ebp - 0xb]
sub dl, cl
mov byte [eax], dl
dec dword [ebp - 8]
cmp dword [ebp - 8], 0xffffffff
jne 0x40cada
lea eax, [ebp - 4]
call fcn.004048b4
mov ebx, edi
sub ebx, 4
mov edx, ebx
call fcn.0040c958
mov esi, eax
lea eax, [ebp - 4]
call fcn.004048b4
add eax, ebx
cmp esi, dword [eax]
jne 0x40cba6
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
call fcn.00404434
mov edx, ebx
mov eax, dword [ebp + 8]
call fcn.004048fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bfc3
lea eax, [ebp - 4]
call fcn.004043e0
ret

Function at 0x40cca8
Capabilities:
Parse pe header

Disassembly:
add esp, 0xfffffff8
xor edx, edx
mov ecx, eax
mov dword [esp], ecx
mov ecx, dword [ecx + 0x3c]
add ecx, eax
mov dword [esp + 4], ecx
mov eax, dword [esp]
cmp word [eax], 0x5a4d
jne 0x40cce9
mov eax, dword [esp + 4]
cmp dword [eax], 0x4550
jne 0x40cce9
mov eax, dword [esp + 4]
mov ax, word [eax + 0x16]
test ah, 0x20
je 0x40cce9
and ax, 2
cmp ax, 2
sete dl
mov eax, edx
pop ecx
pop edx
ret

Function at 0x40ccf0
Capabilities:
Parse pe header

Disassembly:
add esp, 0xfffffff8
xor edx, edx
mov ecx, eax
mov dword [esp], ecx
mov ecx, dword [ecx + 0x3c]
add ecx, eax
mov dword [esp + 4], ecx
mov eax, dword [esp]
cmp word [eax], 0x5a4d
jne 0x40cd41
mov eax, dword [esp + 4]
cmp dword [eax], 0x4550
jne 0x40cd41
mov eax, dword [esp + 4]
mov ax, word [eax + 0x16]
test ah, 0x20
je 0x40cd41
mov ecx, dword [esp + 4]
movzx ecx, word [ecx + 0x14]
cmp ecx, 0xe0
je 0x40cd41
and ax, 2
cmp ax, 2
sete dl
mov eax, edx
pop ecx
pop edx
ret
Function at 0x40cd48
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe4
mov dword [esp], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [esp]
call fcn.0040cca8
test al, al
je 0x40ce7c
mov eax, dword [esp]
call fcn.0040cc58
mov ebx, eax
test ebx, ebx
je 0x40ce7c
mov eax, dword [esp]
mov eax, dword [eax + 0x3c]
add eax, dword [esp]
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add eax, 0x18
mov edx, dword [esp + 8]
movzx edx, word [edx + 0x14]
add eax, edx
mov dword [esp + 0xc], eax
push 0x40
push 0x3000
push ebx
push 0
call fcn.00405780
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], 0
je 0x40ce7c
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x14]
mov edx, dword [esp]
mov eax, dword [esp + 0x10]
call fcn.004090e0
mov eax, dword [esp + 8]
movzx edi, word [eax + 6]
dec edi
test edi, edi
jb 0x40ce74
inc edi
xor ebx, ebx
lea esi, [ebx + ebx*4]
mov eax, dword [esp + 0xc]
mov edx, dword [eax + esi*8 + 0xc]
mov eax, dword [esp + 0x10]
call fcn.0040cc0c
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xc]
mov edx, dword [eax + esi*8 + 0x14]
mov eax, dword [esp]
call fcn.0040cc0c
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xc]
mov eax, dword [eax + esi*8 + 0x10]
test eax, eax
jne 0x40ce51
mov edx, dword [esp + 0xc]
mov edx, dword [edx + esi*8 + 0x24]
and edx, 0x40
cmp edx, 0x40
jne 0x40ce31
mov eax, dword [esp + 8]
mov eax, dword [eax + 0x20]
jmp 0x40ce51
lea edx, [ebx + ebx*4]
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx + edx*8 + 0x24]
and edx, 0x80
cmp edx, 0x80
jne 0x40ce51
mov eax, dword [esp + 8]
mov eax, dword [eax + 0x24]
mov ecx, eax
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
call fcn.004090e0
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
mov dword [eax + esi*8 + 8], edx
inc ebx
dec edi
jne 0x40cde0
mov eax, dword [esp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add esp, 0x1c
pop edi
pop esi
pop ebx
ret
Function at 0x40da90
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov edi, ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40d0b3
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
je 0x40dabd
cmp dword [ebp - 4], 0
jg 0x40dac4
mov bl, 3
jmp 0x40dc9d
mov eax, dword [ebp - 4]
mov ecx, 3
cdq
idiv ecx
test edx, edx
jne 0x40dae2
mov eax, dword [ebp - 4]
mov ecx, 3
cdq
idiv ecx
mov ebx, eax
jmp 0x40daf0
mov eax, dword [ebp - 4]
mov ecx, 3
cdq
idiv ecx
mov ebx, eax
inc ebx
mov edx, ebx
shl edx, 2
mov eax, edi
call fcn.004048fc
dec ebx
test ebx, ebx
jl 0x40dc87
inc ebx
mov dword [ebp - 0xc], ebx
xor ebx, ebx
lea eax, [ebx + ebx*2]
add eax, 3
cmp eax, dword [ebp - 4]
jg 0x40db9a
lea eax, [ebx + ebx*2]
movzx eax, byte [esi + eax]
shr eax, 2
mov al, byte [eax + 0x4133b8]
mov byte [ebp - 5], al
lea eax, [ebx + ebx*2]
mov al, byte [esi + eax]
shl eax, 4
and al, 0x30
lea edx, [ebx + ebx*2]
inc edx
movzx edx, byte [esi + edx]
shr edx, 4
or al, dl
and eax, 0xff
mov al, byte [eax + 0x4133b8]
mov byte [ebp - 6], al
lea eax, [ebx + ebx*2]
inc eax
mov al, byte [esi + eax]
shl eax, 2
and al, 0x3c
lea edx, [ebx + ebx*2]
add edx, 2
movzx edx, byte [esi + edx]
shr edx, 6
or al, dl
and eax, 0xff
mov al, byte [eax + 0x4133b8]
mov byte [ebp - 7], al
lea eax, [ebx + ebx*2]
add eax, 2
mov al, byte [esi + eax]
and al, 0x3f
and eax, 0xff
mov al, byte [eax + 0x4133b8]
mov byte [ebp - 8], al
jmp 0x40dc32
lea eax, [ebx + ebx*2]
add eax, 2
cmp eax, dword [ebp - 4]
jg 0x40dbfe
lea eax, [ebx + ebx*2]
movzx eax, byte [esi + eax]
shr eax, 2
mov al, byte [eax + 0x4133b8]
mov byte [ebp - 5], al
lea eax, [ebx + ebx*2]
mov al, byte [esi + eax]
shl eax, 4
and al, 0x30
lea edx, [ebx + ebx*2]
inc edx
movzx edx, byte [esi + edx]
shr edx, 4
or al, dl
and eax, 0xff
mov al, byte [eax + 0x4133b8]
mov byte [ebp - 6], al
lea eax, [ebx + ebx*2]
inc eax
mov al, byte [esi + eax]
shl eax, 2
and al, 0x3c
and eax, 0xff
mov al, byte [eax + 0x4133b8]
mov byte [ebp - 7], al
mov byte [ebp - 8], 0x3d
jmp 0x40dc32
lea eax, [ebx + ebx*2]
movzx eax, byte [esi + eax]
shr eax, 2
mov al, byte [eax + 0x4133b8]
mov byte [ebp - 5], al
lea eax, [ebx + ebx*2]
mov al, byte [esi + eax]
shl eax, 4
and al, 0x30
and eax, 0xff
mov al, byte [eax + 0x4133b8]
mov byte [ebp - 6], al
mov byte [ebp - 7], 0x3d
mov byte [ebp - 8], 0x3d
mov eax, edi
call fcn.004048b4
mov edx, ebx
shl edx, 2
mov cl, byte [ebp - 5]
mov byte [eax + edx], cl
mov eax, edi
call fcn.004048b4
mov edx, ebx
shl edx, 2
mov cl, byte [ebp - 6]
mov byte [eax + edx + 1], cl
mov eax, edi
call fcn.004048b4
mov edx, ebx
shl edx, 2
mov cl, byte [ebp - 7]
mov byte [eax + edx + 2], cl
mov eax, edi
call fcn.004048b4
mov edx, ebx
shl edx, 2
mov cl, byte [ebp - 8]
mov byte [eax + edx + 3], cl
inc ebx
dec dword [ebp - 0xc]
jne 0x40db0b
lea edx, [ebp - 0x10]
mov eax, dword [edi]
call fcn.004065f8
mov edx, dword [ebp - 0x10]
mov eax, edi
call fcn.00404434
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d0ba
lea eax, [ebp - 0x10]
call fcn.004043e0
ret
Function at 0x40e0cc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x40d5fc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, ebx
call fcn.00404434
mov eax, dword [esi]
call fcn.00404664
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40e1e6
mov eax, edi
shr eax, 0x18
mov byte [ebp - 0x10], al
mov eax, edi
shr eax, 0x10
mov byte [ebp - 0xf], al
mov eax, edi
shr eax, 8
mov byte [ebp - 0xe], al
mov eax, edi
mov byte [ebp - 0xd], al
mov eax, dword [ebp - 4]
dec eax
cmp eax, 0
jl 0x40e1d2
mov dword [ebp - 8], eax
mov eax, esi
call fcn.004048b4
mov edx, dword [esi]
mov dl, byte [edx]
mov cl, byte [ebp - 0xf]
add dl, cl
mov byte [eax], dl
mov edi, dword [ebp - 0xc]
sub edi, 2
jl 0x40e17e
inc edi
mov ebx, 2
mov eax, esi
call fcn.004048b4
mov edx, dword [esi]
mov dl, byte [edx + ebx - 2]
mov ecx, dword [esi]
mov cl, byte [ecx + ebx - 1]
add dl, cl
mov cl, byte [ebp - 0xd]
xor dl, cl
mov byte [eax + ebx - 1], dl
inc ebx
dec edi
jne 0x40e15c
mov eax, esi
call fcn.004048b4
mov edx, dword [ebp - 0xc]
mov ecx, dword [esi]
mov ebx, dword [ebp - 0xc]
mov cl, byte [ecx + ebx - 1]
mov bl, byte [ebp - 0x10]
add cl, bl
mov byte [eax + edx - 1], cl
mov ebx, dword [ebp - 0xc]
dec ebx
cmp ebx, 1
jl 0x40e1c5
mov eax, esi
call fcn.004048b4
mov edx, dword [esi]
mov dl, byte [edx + ebx]
mov ecx, dword [esi]
mov cl, byte [ecx + ebx - 1]
add dl, cl
mov cl, byte [ebp - 0xe]
xor dl, cl
mov byte [eax + ebx - 1], dl
dec ebx
test ebx, ebx
jne 0x40e1a3
dec dword [ebp - 8]
cmp dword [ebp - 8], 0xffffffff
jne 0x40e13c
lea edx, [ebp - 0x14]
mov eax, dword [esi]
call fcn.0040dfac
mov edx, dword [ebp - 0x14]
mov eax, esi
call fcn.00404434
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d603
lea eax, [ebp - 0x14]
call fcn.004043e0
ret
Function at 0x40e20c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
mov edi, eax
mov esi, dword [ebp + 8]
mov edx, esi
mov eax, edi
call fcn.0040dfb4
mov eax, dword [esi]
call fcn.00404664
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40e2f8
mov eax, ebx
shr eax, 0x18
mov byte [ebp - 0x10], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp - 0xf], al
mov eax, ebx
shr eax, 8
mov byte [ebp - 0xe], al
mov byte [ebp - 0xd], bl
mov eax, dword [ebp - 4]
dec eax
cmp eax, 0
jl 0x40e2f8
mov dword [ebp - 8], eax
mov edi, dword [ebp - 0xc]
dec edi
test edi, edi
jle 0x40e293
mov ebx, 1
mov eax, esi
call fcn.004048b4
mov edx, dword [esi]
mov dl, byte [edx + ebx - 1]
xor dl, byte [ebp - 0xe]
mov ecx, dword [esi]
mov cl, byte [ecx + ebx]
sub dl, cl
mov byte [eax + ebx - 1], dl
inc ebx
dec edi
jne 0x40e274
mov eax, esi
call fcn.004048b4
mov edx, dword [ebp - 0xc]
mov ecx, dword [esi]
mov ebx, dword [ebp - 0xc]
mov cl, byte [ecx + ebx - 1]
mov bl, byte [ebp - 0x10]
sub cl, bl
mov byte [eax + edx - 1], cl
mov ebx, dword [ebp - 0xc]
cmp ebx, 2
jl 0x40e2d9
mov eax, esi
call fcn.004048b4
mov edx, dword [esi]
mov dl, byte [edx + ebx - 1]
xor dl, byte [ebp - 0xd]
mov ecx, dword [esi]
mov cl, byte [ecx + ebx - 2]
sub dl, cl
mov byte [eax + ebx - 1], dl
dec ebx
cmp ebx, 1
jne 0x40e2b7
mov eax, esi
call fcn.004048b4
mov edx, dword [esi]
mov dl, byte [edx]
mov cl, byte [ebp - 0xf]
sub dl, cl
mov byte [eax], dl
dec dword [ebp - 8]
cmp dword [ebp - 8], 0xffffffff
jne 0x40e267
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40f664
Capabilities:
Parse pe header

Disassembly:
add esp, 0xfffffff8
xor edx, edx
mov ecx, eax
mov dword [esp], ecx
mov ecx, dword [ecx + 0x3c]
add ecx, eax
mov dword [esp + 4], ecx
mov eax, dword [esp]
cmp word [eax], 0x5a4d
jne 0x40f6a0
mov eax, dword [esp + 4]
cmp dword [eax], 0x4550
jne 0x40f6a0
mov eax, dword [esp + 4]
mov ax, word [eax + 0x16]
and ax, 2
cmp ax, 2
sete dl
mov eax, edx
pop ecx
pop edx
ret