joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a378c
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 0x10], 0
jne 0x4a37bd
mov eax, dword [ebp + 0x14]
add eax, 2
cdq
mov ecx, 3
idiv ecx
lea edx, [eax*4 + 1]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00494688
add esp, 8
mov dword [ebp + 0x10], eax
cmp dword [ebp + 0x10], 0
jne 0x4a37ca
xor eax, eax
jmp 0x4a3945
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0x10]
mov byte [edx], 0
cmp dword [ebp + 0xc], 0
jne 0x4a37e4
mov eax, dword [ebp - 4]
jmp 0x4a3945
jmp 0x4a37f8
mov eax, dword [ebp + 0x14]
sub eax, 3
mov dword [ebp + 0x14], eax
mov ecx, dword [ebp + 0xc]
add ecx, 3
mov dword [ebp + 0xc], ecx
cmp dword [ebp + 0x14], 2
jle 0x4a3873
mov edx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [edx]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
shl ecx, 8
mov edx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [edx + 1]
or ecx, eax
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0xc]
shl ecx, 8
mov edx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [edx + 2]
or ecx, eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 4
jmp 0x4a3840
mov ecx, dword [ebp - 0xc]
shr ecx, 6
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 8], 0
jle 0x4a3865
mov edx, dword [ebp - 0xc]
and edx, 0x3f
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x10]
add ecx, dword [ebp - 8]
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
jmp 0x4a3837
mov eax, dword [ebp + 0x10]
add eax, 4
mov dword [ebp + 0x10], eax
jmp 0x4a37e6
mov ecx, dword [ebp + 0x10]
mov byte [ecx], 0
cmp dword [ebp + 0x14], 0
jle 0x4a3942
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
jmp 0x4a389c
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x14]
jge 0x4a38c1
mov ecx, dword [ebp - 0xc]
shl ecx, 8
mov edx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [edx]
or ecx, eax
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
jmp 0x4a3893
jmp 0x4a38cc
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 3
jge 0x4a38dd
mov eax, dword [ebp - 0xc]
shl eax, 8
mov dword [ebp - 0xc], eax
jmp 0x4a38c3
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
jmp 0x4a38f1
mov edx, dword [ebp - 0xc]
shr edx, 6
mov dword [ebp - 0xc], edx
cmp dword [ebp - 8], 0
jle 0x4a3916
mov eax, dword [ebp - 0xc]
and eax, 0x3f
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp - 8]
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx], al
jmp 0x4a38e8
mov dword [ebp - 8], 3
jmp 0x4a3928
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0x14]
jle 0x4a393b
mov eax, dword [ebp + 0x10]
add eax, dword [ebp - 8]
mov byte [eax], 0x3d
jmp 0x4a391f
mov ecx, dword [ebp + 0x10]
mov byte [ecx + 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x698150
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov esi, dword [ebp + 0xc]
mov ebx, 4
lea eax, [edi + ecx]
sub esi, ecx
lea edx, [ebp + edx - 0x14]
add edi, ebx
mov cl, byte [esi + eax]
mov byte [edx], cl
mov byte [eax], cl
add edx, 4
inc eax
dec ebx
jne 0x698177
mov eax, dword [ebp - 4]
inc eax
cmp eax, 4
mov dword [ebp - 4], eax
jl 0x69815e
cmp edi, 0xb0
jge 0x698237
mov esi, 0x629cd0
jmp 0x6981a7
mov esi, dword [ebp + 0xc]
xor eax, eax
lea ecx, [ebp - 0x14]
inc eax
mov edx, eax
and edx, 0x80000003
jns 0x6981bc
dec edx
or edx, 0xfffffffc
inc edx
xor ebx, ebx
add ecx, 4
mov bl, byte [ebp + edx*4 - 0x11]
mov dl, byte [ebx + 0x629ad0]
mov bl, byte [ecx - 4]
xor bl, dl
cmp eax, 4
mov byte [ecx - 4], bl
jl 0x6981ac
mov al, byte [esi]
mov cl, byte [ebp - 0x14]
xor cl, al
add esi, 4
mov dword [ebp + 0xc], esi
mov byte [ebp - 0x14], cl
mov esi, 1
lea eax, [ebp + esi - 0x14]
mov ecx, 4
mov dl, byte [eax - 1]
mov bl, byte [eax]
xor bl, dl
mov byte [eax], bl
add eax, 4
dec ecx
jne 0x6981f6
inc esi
cmp esi, 4
jl 0x6981ed
xor esi, esi
lea eax, [ebp + esi - 0x14]
mov ecx, 4
mov ebx, dword [ebp + 8]
mov dl, byte [eax]
add eax, 4
mov byte [edi + ebx], dl
inc edi
dec ecx
jne 0x698216
inc esi
cmp esi, 4
jl 0x69820d
cmp edi, 0xb0
jl 0x6981a4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x6986e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0x10]
push esi
cmp ebx, 0x10
push edi
jae 0x698742
mov al, bl
lea edx, [ebp - 0x10]
mov cl, al
push edx
mov ch, cl
mov eax, ecx
shl eax, 0x10
mov ax, cx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.00698240
add esp, 8
test ebx, ebx
jbe 0x698795
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
sub ecx, edx
mov esi, ebx
lea eax, [edx + ebx]
mov dl, byte [ecx + eax - 1]
mov bl, byte [eax - 1]
dec eax
xor bl, dl
dec esi
mov byte [eax], bl
jne 0x69872c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebx - 4]
xor edx, edx
mov ecx, 0xc
mov edi, dword [ebp + 8]
div ecx
mov esi, edx
test esi, esi
jle 0x69876a
mov edx, dword [ebp + 0xc]
lea eax, [edx + ebx - 0x10]
push eax
push edi
call fcn.00698450
add esp, 8
sub ebx, esi
cmp ebx, 0x10
jb 0x698795
mov ecx, dword [ebp + 0xc]
mov eax, 0xaaaaaaab
lea esi, [ecx + ebx - 0x10]
add ebx, 0xfffffffc
mul ebx
mov ebx, edx
shr ebx, 3
push esi
push edi
call fcn.00698450
add esp, 8
sub esi, 0xc
dec ebx
jne 0x698785
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x6987c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
lea eax, [0x698802]
lea ecx, [0x69880a]
sub ecx, eax
mov dword [ebp - 4], ecx
lea eax, [ebp - 8]
push eax
push 0x40
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x698826
mov edi, dword [ebp + 8]
lea esi, [0x698802]
mov ecx, dword [ebp - 4]
rep movsb byte es:[edi], byte [esi]
jmp 0x698821
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x698830
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov cl, 0x65
mov al, 0x6d
mov byte [ebp - 0xa], cl
mov byte [ebp - 9], al
mov byte [ebp - 8], al
mov byte [ebp - 6], cl
mov byte [ebp - 5], al
mov byte [ebp - 4], al
mov cl, 0x6a
mov al, 0x66
push esi
mov dl, 0x75
push edi
mov byte [ebp - 0x1c], cl
mov byte [ebp - 0x1a], al
mov byte [ebp - 0x16], al
mov byte [ebp - 0x13], al
mov byte [ebp - 0x10], cl
mov byte [ebp - 0xb], dl
mov byte [ebp - 0x17], dl
lea edi, [ebp - 0xc]
or ecx, 0xffffffff
xor eax, eax
mov byte [ebp - 0xc], 0x6f
mov byte [ebp - 7], 0x2f
mov byte [ebp - 3], 0
xor edx, edx
mov byte [ebp - 0x20], 0x45
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [ebp - 0x1f], 0x63
mov byte [ebp - 0x1e], 0x68
mov byte [ebp - 0x1d], 0x56
mov byte [ebp - 0x1b], 0x53
mov byte [ebp - 0x19], 0x6e
mov byte [ebp - 0x18], 0x70
mov byte [ebp - 0x15], 0x43
mov byte [ebp - 0x14], 0x73
mov byte [ebp - 0x12], 0x62
mov byte [ebp - 0x11], 0x6c
mov byte [ebp - 0xf], 0x6f
mov byte [ebp - 0xe], 0
je 0x6988d6
mov cl, byte [ebp + edx - 0xc]
lea edi, [ebp - 0xc]
dec cl
xor eax, eax
mov byte [ebp + edx - 0xc], cl
or ecx, 0xffffffff
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jb 0x6988ba
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x6988ec
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea edi, [ebp - 0x20]
or ecx, 0xffffffff
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x698919
mov al, byte [ebp + edx - 0x20]
lea edi, [ebp - 0x20]
dec al
or ecx, 0xffffffff
mov byte [ebp + edx - 0x20], al
xor eax, eax
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jb 0x6988fd
lea ecx, [ebp - 0x20]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x698931
push eax
call fcn.006987c0
add esp, 4
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x69be60
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
xor eax, eax
mov ecx, 0x10
lea edi, [ebp - 0x44]
mov dword [ebp - 0x60], 0x67452301
mov dword [ebp - 0x5c], 0xefcdab89
mov dword [ebp - 0x58], 0x98badcfe
mov dword [ebp - 0x54], 0x10325476
mov dword [ebp - 0x50], 0xc3d2e1f0
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x4c]
mov ebx, eax
add eax, ecx
and ebx, 0x3f
cmp eax, ecx
mov dword [ebp - 0x4c], eax
jae 0x69bebb
inc dword [ebp - 0x48]
add ecx, ebx
cmp ecx, 0x40
mov dword [ebp + 0x14], ecx
jb 0x69bf19
shr ecx, 6
mov dword [ebp - 4], ecx
mov esi, dword [ebp + 0x10]
mov ecx, 0x40
sub ecx, ebx
lea edi, [ebp + ebx - 0x44]
mov edx, ecx
lea eax, [ebp - 0x60]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0069a970
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
mov ecx, 0x40
add esp, 4
sub ecx, ebx
xor ebx, ebx
add edx, ecx
mov ecx, dword [ebp + 0x14]
sub ecx, 0x40
dec eax
mov dword [ebp + 0x10], edx
mov dword [ebp + 0x14], ecx
mov dword [ebp - 4], eax
jne 0x69becb
mov eax, dword [ebp - 0x4c]
cmp ecx, ebx
jbe 0x69bf37
mov esi, dword [ebp + 0x10]
sub ecx, ebx
mov edx, ecx
lea edi, [ebp + ebx - 0x44]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp + 8]
mov ebx, eax
mov dword [ebp + 0x10], ecx
mov ecx, dword [ebp + 0xc]
add eax, ecx
and ebx, 0x3f
cmp eax, ecx
mov dword [ebp - 0x4c], eax
jae 0x69bf51
inc dword [ebp - 0x48]
add ecx, ebx
cmp ecx, 0x40
mov dword [ebp + 0x14], ecx
jb 0x69bfac
shr ecx, 6
mov dword [ebp + 8], ecx
mov esi, dword [ebp + 0x10]
mov ecx, 0x40
sub ecx, ebx
lea edi, [ebp + ebx - 0x44]
mov edx, ecx
lea eax, [ebp - 0x60]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0069a970
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov ecx, 0x40
add esp, 4
sub ecx, ebx
xor ebx, ebx
add edx, ecx
mov ecx, dword [ebp + 0x14]
sub ecx, 0x40
dec eax
mov dword [ebp + 0x10], edx
mov dword [ebp + 0x14], ecx
mov dword [ebp + 8], eax
jne 0x69bf61
cmp ecx, ebx
jbe 0x69bfc7
mov esi, dword [ebp + 0x10]
sub ecx, ebx
mov edx, ecx
lea edi, [ebp + ebx - 0x44]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x18]
lea eax, [ebp - 0x60]
push eax
push esi
call fcn.0069bd70
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x69fe70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
xor eax, eax
push ebx
mov dword [ebp - 0xf], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0xb], eax
mov dword [ebp - 7], eax
mov byte [ebp - 0xf], 0x10
mov word [ebp - 3], ax
mov byte [ebp - 0x10], 1
mov byte [ebp - 1], al
call esi
sub al, 0x10
mov byte [ebp - 4], al
call esi
shr eax, 4
sub al, 0x33
mov byte [ebp - 3], al
call esi
shr eax, 8
sub al, 0x55
mov byte [ebp - 2], al
call esi
shr eax, 0xc
add al, 0x12
mov ecx, 0xa
mov byte [ebp - 1], al
xor eax, eax
mov bl, byte [eax + 0x629e28]
mov edx, eax
shr edx, 2
mov dl, byte [ebp + edx - 4]
xor dl, bl
mov byte [ebp + eax - 0xe], dl
inc eax
dec ecx
jne 0x69fec4
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
pop esi
mov dword [eax], ecx
mov ecx, dword [ebp - 8]
pop ebx
mov dword [eax + 4], edx
mov edx, dword [ebp - 4]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov esp, ebp
pop ebp
ret

Function at 0x69ff00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x17], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x13], ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0xf], ecx
xor ebx, ebx
mov dword [ebp - 0x20], eax
mov word [ebp - 0xb], cx
cmp esi, 0xffffffff
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], bl
mov byte [ebp - 9], cl
jne 0x69ff43
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x2c]
lea eax, [ebp - 8]
push edx
push eax
lea ecx, [ebp - 0x18]
push 0x10
push ecx
push esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call fcn.0069d080
test eax, eax
jne 0x69ff79
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x69ff79
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 8]
push 1
lea eax, [ebp - 0x2c]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
cmp dword [ebp - 8], 0x10
je 0x69ff9b
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x18]
xor eax, eax
mov dword [ebp - 4], edx
mov ecx, 0xa
mov esi, eax
shr esi, 2
mov bl, byte [ebp + esi - 0xc]
xor byte [ebp + eax - 0x16], bl
inc eax
dec ecx
jne 0x69ffa8
push edi
mov ecx, 0xa
mov edi, 0x629e28
lea esi, [ebp - 0x16]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
pop edi
je 0x69ffd3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x69ffdf
mov ecx, dword [ebp + 0x10]
mov byte [ecx], 0x10
jmp 0x6a0025
mov al, byte [ebp + 0xc]
xor esi, esi
cmp al, 1
jne 0x6a0006
cmp dl, 0xca
jne 0x69fffe
cmp dh, 0xfe
jne 0x69fffe
cmp byte [ebp - 2], 0xba
jne 0x69fffe
cmp byte [ebp - 1], 0xbe
je 0x6a002a
mov edx, dword [ebp + 0x10]
mov byte [edx], 0
jmp 0x6a0025
cmp al, 2
jne 0x6a002a
cmp byte [ebp - 2], 0x53
jne 0x6a001f
cmp dh, 0x57
jne 0x6a001f
cmp dl, 0x46
je 0x6a002a
cmp dl, 0x43
je 0x6a002a
mov eax, dword [ebp + 0x10]
mov byte [eax], 0
mov esi, 1
mov ecx, dword [ebp + 8]
push 0
push 0
push 0
push ecx
call fcn.0069d140
xor eax, eax
cmp esi, 1
pop esi
pop ebx
setne al
mov esp, ebp
pop ebp
ret
Function at 0x6a07c0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push edi
xor edi, edi
test eax, eax
je 0x6a086b
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x6a086b
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x6a086b
xor eax, eax
lea ecx, [edx + 8]
mov byte [ecx + eax], al
inc eax
cmp eax, 0x100
jl 0x6a07ed
mov eax, 0xfffffff8
push ebx
sub eax, edx
push esi
mov dword [ebp - 4], eax
add eax, ecx
mov esi, dword [ebp + 8]
cdq
idiv dword [ebp + 0xc]
mov bl, byte [ecx]
xor eax, eax
mov al, byte [edx + esi]
mov edx, ebx
and edx, 0xff
add edi, eax
add edi, edx
and edi, 0x800000ff
jns 0x6a0830
dec edi
or edi, 0xffffff00
inc edi
mov eax, dword [ebp + 0x10]
inc ecx
mov dl, byte [eax + edi + 8]
lea esi, [eax + 8]
mov eax, dword [ebp - 4]
mov byte [ecx - 1], dl
mov byte [esi + edi], bl
lea edx, [eax + ecx]
cmp edx, 0x100
jl 0x6a0804
mov eax, dword [ebp + 0x10]
mov ecx, 0x40
lea edi, [eax + 0x108]
mov dword [eax + 0x208], 0
rep movsd dword es:[edi], dword [esi]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x6a0870
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
test eax, eax
je 0x6a09d3
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x6a09d3
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x6a09d3
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebx + 0x208]
push esi
cmp ecx, eax
push edi
je 0x6a090d
lea edi, [ebx + 8]
lea esi, [ebx + 0x108]
mov ecx, 0x40
xor edx, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, 0xffff
mov dword [ebx + 0x208], eax
div ecx
mov dword [ebx], 0
mov dword [ebx + 4], 0
test edx, edx
jbe 0x6a090a
mov edi, edx
mov eax, dword [ebx]
mov esi, dword [ebx + 4]
inc eax
xor ecx, ecx
and eax, 0xff
mov dword [ebx], eax
mov dl, byte [eax + ebx + 8]
add esi, edx
and esi, 0xff
dec edi
mov dword [ebx + 4], esi
mov cl, byte [eax + ebx + 8]
mov dl, byte [esi + ebx + 8]
mov byte [eax + ebx + 8], dl
mov eax, dword [ebx + 4]
mov byte [ebx + eax + 8], cl
jne 0x6a08d6
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
test edx, edx
jbe 0x6a09c0
mov ecx, dword [ebp + 0xc]
lea edi, [ebx + 8]
sub eax, ecx
mov dword [ebp + 0x14], ecx
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], edx
jmp 0x6a092e
mov eax, dword [ebp + 8]
add eax, ecx
xor edx, edx
mov ecx, 0xffff
div ecx
test edx, edx
jne 0x6a094f
lea esi, [ebx + 0x108]
mov ecx, 0x40
mov dword [ebx], edx
mov dword [ebx + 4], edx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx]
mov esi, dword [ebx + 4]
inc eax
lea edi, [ebx + 8]
and eax, 0xff
mov dword [ebx], eax
mov dl, byte [eax + edi]
add esi, edx
xor edx, edx
and esi, 0xff
mov dword [ebx + 4], esi
mov dl, byte [eax + edi]
mov cl, byte [esi + edi]
mov byte [eax + edi], cl
mov eax, dword [ebx + 4]
mov byte [ebx + eax + 8], dl
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
xor edx, edx
mov dl, byte [ecx + ebx + 8]
xor ecx, ecx
mov cl, byte [ebx + eax + 8]
add edx, ecx
and edx, 0x800000ff
jns 0x6a09a2
dec edx
or edx, 0xffffff00
inc edx
mov ecx, dword [ebp + 0x14]
mov dl, byte [edx + ebx + 8]
mov al, byte [ecx]
xor al, dl
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
inc ecx
dec eax
mov dword [ebp + 0x14], ecx
mov dword [ebp + 0xc], eax
jne 0x6a092b
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebx + 0x208]
add ecx, eax
pop edi
mov dword [ebx + 0x208], ecx
pop esi
pop ebx
pop ebp
ret
Function at 0x6a4530
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0x10]
test esi, esi
jle 0x6a4552
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push ebx
sub ecx, eax
mov dl, byte [ecx + eax]
mov bl, byte [eax]
xor bl, dl
mov byte [eax], bl
inc eax
dec esi
jne 0x6a4544
pop ebx
pop esi
ret

Function at 0x6a4560
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
mov ecx, dword [esp + 4]
push ebx
push ebp
push esi
mov edx, dword [ecx + 4]
mov ecx, dword [ecx]
mov esi, dword [esp + 0x1c]
xor eax, eax
push edi
xor ecx, esi
mov esi, dword [esp + 0x1c]
mov edi, 0x20
mov ebx, edx
mov ebp, edx
shr ebx, 5
shl ebp, 4
xor ebx, ebp
mov ebp, eax
and ebp, 3
add ebx, edx
mov ebp, dword [esi + ebp*4]
add ebp, eax
sub eax, 0x61c88647
xor ebx, ebp
add ecx, ebx
mov ebx, ecx
mov ebp, ecx
shr ebx, 5
shl ebp, 4
xor ebx, ebp
mov ebp, eax
shr ebp, 0xb
and ebp, 3
add ebx, ecx
mov ebp, dword [esi + ebp*4]
add ebp, eax
xor ebx, ebp
add edx, ebx
dec edi
jne 0x6a457e
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov dword [eax], ecx
mov dword [eax + 4], edx
pop ebx
ret

Function at 0x6a45d0
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov esi, dword [esp + 0x18]
push edi
mov eax, 0xc6ef3720
mov edi, 0x20
mov ebx, ecx
mov ebp, ecx
shr ebx, 5
shl ebp, 4
xor ebx, ebp
mov ebp, eax
shr ebp, 0xb
and ebp, 3
add ebx, ecx
mov ebp, dword [esi + ebp*4]
add ebp, eax
add eax, 0x61c88647
xor ebx, ebp
sub edx, ebx
mov ebx, edx
mov ebp, edx
shr ebx, 5
shl ebp, 4
xor ebx, ebp
mov ebp, eax
and ebp, 3
add ebx, edx
mov ebp, dword [esi + ebp*4]
add ebp, eax
xor ebx, ebp
sub ecx, ebx
dec edi
jne 0x6a45eb
mov eax, dword [esp + 0x20]
pop edi
xor ecx, eax
mov eax, dword [esp + 0x14]
pop esi
pop ebp
mov dword [eax], ecx
mov dword [eax + 4], edx
pop ebx
ret
Function at 0x6a5580
Capabilities:
Parse pe header

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
cmp word [ebp], 0x5a4d
je 0x6a5597
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov ebx, dword [ebp + 0x3c]
add ebx, ebp
cmp dword [ebx], 0x4550
je 0x6a55ab
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, dword [ebx + 0x50]
mov ecx, dword [ebx + 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x3000
push eax
push ecx
call esi
mov edi, eax
test edi, edi
jne 0x6a55e1
mov edx, dword [ebx + 0x50]
push 4
push 0x3000
push edx
push eax
call esi
mov edi, eax
test edi, edi
jne 0x6a55e1
pop edi
pop esi
pop ebp
pop ebx
ret
push 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
xor eax, eax
push 4
push 0x1000
mov dword [esi + 4], edi
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
mov eax, dword [ebx + 0x50]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebx + 0x54]
push 4
push 0x1000
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [ebp + 0x3c]
mov ecx, dword [ebx + 0x54]
add edx, ecx
mov dword [esp + 0x14], eax
push edx
push ebp
push eax
call fcn.006a4120
mov eax, dword [ebp + 0x3c]
mov ecx, dword [esp + 0x20]
add eax, ecx
push esi
push ebx
mov dword [esi], eax
push ebp
mov dword [eax + 0x34], edi
call fcn.006a56c0
mov ecx, dword [ebx + 0x34]
mov eax, edi
add esp, 0x18
sub eax, ecx
je 0x6a5666
push eax
push esi
call fcn.006a58e0
add esp, 8
push esi
call fcn.006a5960
add esp, 4
test eax, eax
je 0x6a5696
push esi
call fcn.006a5780
mov edx, dword [esi]
add esp, 4
mov eax, dword [edx + 0x28]
test eax, eax
je 0x6a56ad
add eax, edi
test eax, eax
je 0x6a5696
push 0
push 1
push edi
call eax
test eax, eax
jne 0x6a56a6
push esi
call fcn.006a4870
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov dword [esi + 0x10], 1
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x6a56c0
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
xor ecx, ecx
push esi
mov ebx, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 8], 0
mov cx, word [eax + 0x14]
cmp word [eax + 6], 0
lea esi, [ecx + eax + 0x18]
jbe 0x6a5770
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
add esi, 0x10
cmp dword [esi], 0
jne 0x6a5725
mov edx, dword [esp + 0x1c]
mov edi, dword [edx + 0x38]
test edi, edi
jle 0x6a5752
mov eax, dword [esi - 4]
push 4
push 0x1000
add eax, ebx
push edi
push eax
call ebp
push edi
push 0
push eax
mov dword [esi - 8], eax
call fcn.006a4140
add esp, 0xc
jmp 0x6a5752
mov edx, dword [esi - 4]
mov ecx, dword [esi]
push 4
push 0x1000
add edx, ebx
push ecx
push edx
call ebp
mov ecx, dword [esi + 4]
mov edi, eax
mov eax, dword [esi]
push eax
mov eax, dword [esp + 0x1c]
add ecx, eax
push ecx
push edi
call fcn.006a4120
add esp, 0xc
mov dword [esi - 8], edi
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
inc eax
add esi, 0x28
mov ecx, dword [edx]
xor edx, edx
mov dword [esp + 0x10], eax
mov dx, word [ecx + 6]
cmp eax, edx
jl 0x6a56f4
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret