joyce8/EMBER2024-capa huggingface dataset:
Function at 0x468530
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x94
mov eax, dword [esp + 0x9c]
push esi
push 0x40
lea ecx, [esp + 0x1c]
xor esi, esi
push eax
push ecx
mov dword [esp + 0x24], 0x67452301
mov dword [esp + 0x28], 0xefcdab89
mov dword [esp + 0x2c], 0x98badcfe
mov dword [esp + 0x30], 0x10325476
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
call fcn.00468340
lea edx, [esp + 0x24]
lea eax, [esp + 0x10]
push edx
push eax
call fcn.00468470
mov esi, dword [esp + 0xb0]
add esp, 0x14
xor edx, edx
mov cl, byte [esp + edx + 4]
mov al, cl
and cl, 0xf
sar al, 4
and al, 0xf
cmp al, 0xa
movsx eax, al
jge 0x4685aa
add eax, 0x30
jmp 0x4685ad
add eax, 0x57
mov byte [esi], al
cmp cl, 0xa
movsx eax, cl
jge 0x4685bc
add eax, 0x30
jmp 0x4685bf
add eax, 0x57
mov byte [esi + 1], al
inc edx
add esi, 2
cmp edx, 0x10
jl 0x468590
pop esi
add esp, 0x94
ret

Function at 0x4685e0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x84
push ebx
mov ebx, dword [esp + 0x90]
push ebp
mov ebp, dword [esp + 0x90]
push esi
push edi
mov ecx, 0x10
xor eax, eax
mov edi, ebp
mov esi, dword [esp + 0xa0]
rep stosd dword es:[edi], eax
mov ecx, 8
mov edi, ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
test esi, esi
mov dword [esp + 0x14], 0x9d14e9a1
mov dword [esp + 0x18], 0x593b6b0e
je 0x46866b
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x28
jne 0x46864f
mov byte [esi + 0x20], al
mov ecx, 0x20
jmp 0x468659
cmp ecx, 0x38
jle 0x468659
mov ecx, 0x38
mov eax, ecx
lea edi, [esp + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x4d3584
test ecx, ecx
je 0x46869f
mov edi, ecx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x38
jle 0x46868a
mov ecx, 0x38
xor eax, eax
test ecx, ecx
jle 0x46869f
mov dl, byte [eax + 0x4d3584]
xor byte [esp + eax + 0x1c], dl
inc eax
cmp eax, ecx
jl 0x468690
lea eax, [esp + 0x14]
push eax
push ebp
call fcn.00468530
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, str.01d0a8e3
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea esi, [edx + ebp]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x10], esi
mov esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
cdq
and edx, 3
and ecx, 3
add eax, edx
rep movsb byte es:[edi], byte [esi]
sar eax, 2
xor ecx, ecx
test eax, eax
jle 0x468704
mov esi, ebp
mov dl, byte [esi]
add esi, 4
mov byte [ecx + ebx], dl
inc ecx
cmp ecx, eax
jl 0x4686f7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret
Function at 0x4692d0
Capabilities:
Encode data using base64
Terminate process

Disassembly:
sub esp, 0x118
mov ecx, 0x3f
mov eax, 0x80808080
push ebx
push ebp
push esi
push edi
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, 0x41
mov cl, al
sub cl, 0x41
mov byte [esp + eax + 0x28], cl
inc eax
cmp eax, 0x5a
jle 0x4692f2
mov eax, 0x61
mov dl, al
sub dl, 0x47
mov byte [esp + eax + 0x28], dl
inc eax
cmp eax, 0x7a
jle 0x469306
mov eax, 0x30
mov cl, al
add cl, 4
mov byte [esp + eax + 0x28], cl
inc eax
cmp eax, 0x39
jle 0x46931a
mov edi, dword [esp + 0x12c]
or ecx, 0xffffffff
xor eax, eax
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x53], 0x3e
mov byte [esp + 0x57], 0x3f
mov byte [esp + 0x65], 0
mov dword [esp + 0x18], ebp
je 0x4694ad
mov ebx, dword [esp + 0x130]
mov dword [esp + 0x10], 3
mov dword [esp + 0x14], 4
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x12c]
xor eax, eax
lea esi, [edx + ecx]
movsx ecx, byte [esi + eax]
mov dl, byte [esp + ecx + 0x28]
test dl, 0x80
jne 0x46947e
mov byte [esp + eax + 0x20], cl
mov byte [esp + eax + 0x1c], dl
inc eax
cmp eax, 4
jl 0x46937c
mov esi, dword [esp + 0x138]
mov edx, dword [esp + 0x10]
cmp edx, dword [esi]
jle 0x4693e6
mov eax, dword [esp + 0x14]
push eax
call fcn.004897f7
mov ecx, dword [esi]
mov esi, ebx
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
mov dword [esp + 0x2c], eax
rep movsb byte es:[edi], byte [esi]
call fcn.0048970e
mov ecx, dword [esp + 0x140]
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x2c]
add esp, 8
mov dword [ecx], eax
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov dl, ch
mov al, cl
sar dl, 4
shl al, 2
or dl, al
mov eax, dword [esp + 0x14]
mov byte [ebx + ebp], dl
inc ebp
inc eax
mov cl, ch
mov dword [esp + 0x14], eax
mov al, byte [esp + 0x1e]
mov dl, al
inc edi
sar dl, 2
shl cl, 4
or dl, cl
mov ecx, dword [esp + 0x14]
shl al, 6
or al, byte [esp + 0x1f]
mov byte [ebx + ebp], dl
inc ebp
mov edx, edi
inc ecx
inc edx
mov byte [ebx + ebp], al
mov al, byte [esp + 0x22]
inc ebp
inc ecx
inc edx
mov dword [esp + 0x10], edi
cmp al, 0x3d
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
je 0x469493
mov cl, byte [esp + 0x23]
xor eax, eax
cmp cl, 0x3d
setne al
add eax, 2
cmp eax, 3
jl 0x469493
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x12c]
or ecx, 0xffffffff
xor eax, eax
add edx, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x18], edx
cmp edx, ecx
jae 0x4694b4
jmp 0x46936c
push ecx
push str.Illegal_character__c_in_input._n
call fcn.0048b035
add esp, 8
push 1
call fcn.0048a4bd
mov eax, dword [esp + 0x134]
mov byte [ebx + ebp], 0
pop edi
pop esi
mov dword [eax], ebp
mov eax, ebx
pop ebp
pop ebx
add esp, 0x118
ret
mov ebx, dword [esp + 0x130]
mov ecx, dword [esp + 0x134]
mov byte [ebx + ebp], 0
pop edi
pop esi
mov dword [ecx], ebp
mov eax, ebx
pop ebp
pop ebx
add esp, 0x118
ret
Function at 0x46b300
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x46b34a
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x46b379
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x46b3bb
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x46f3f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a7fef
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [0x4f5028]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x18]
mov edi, 1
push ecx
mov dword [esp + 0x34], edi
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
je 0x46f448
mov esi, dword [esp + 0x38]
push 0x50ddb8
mov ecx, esi
call fcn.004997f4
mov dword [esp + 0x10], edi
jmp 0x46f4ae
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push eax
call dword [sym.imp.RPCRT4.dll_UuidToStringA]
test eax, eax
je 0x46f46e
mov esi, dword [esp + 0x38]
push 0x50ddb8
mov ecx, esi
call fcn.004997f4
jmp 0x46f4aa
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x10]
call fcn.004998c3
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.RPCRT4.dll_RpcStringFreeA]
push 0x50ddb8
push 0x4eec20
lea ecx, [esp + 0x14]
call fcn.00496fa7
mov esi, dword [esp + 0x38]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.004994fb
mov dword [esp + 0x10], edi
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], bl
call fcn.00499786
mov ecx, dword [esp + 0x28]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret

Function at 0x473f20
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x50decc]
xor edx, edx
cmp eax, edx
jne 0x473f46
xor eax, eax
mov byte [eax + 0x50ddcc], al
inc eax
cmp eax, 0x100
jl 0x473f2e
mov dword [0x50decc], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x50ddcc
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x473fd7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x473faa
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x473f78
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x474050
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4740a3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x47408a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x47aa20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a877e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.0047b340
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x4d3bf4
call fcn.004994c7
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x47aab3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004994c7
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x47aaac
push 0
mov ecx, eax
call fcn.00471b50
mov dword [esi + 0xc], eax
jmp 0x47aab5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x47aab5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x49bb2a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x49bb62
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00499be1
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00499bb9
jmp 0x49bb6e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x49d21b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x49d25d
call fcn.004a2e17
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x49d25d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x49d254
xor eax, eax
jmp 0x49d265
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0049d26b
pop edi
pop esi
pop ebx
ret 4
Function at 0x4a3347
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4a3375
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a3393
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004a32ad
jmp 0x4a3393
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a3393
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004a32ad
test edi, edi
mov eax, edi
jne 0x4a337d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x819553
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea esp, [esp + 2]
mov dword [esp + 0x28], ebp
call fcn.00819303
ja 0x819415
sub esp, 0x10
pushfd
jmp 0x819467
sub esp, 0x10
pushfd
mov word [esp + 5], bx
mov ah, dl
sub esp, 8
jmp 0x81944a
lea esp, [esp + 0x1c]
sub ebp, 0x4c860e35
lea eax, reloc.KERNEL32.dll_LCMapStringW
xor edx, 0x1ff044cb
jmp 0x819473
mov word [esp + 5], bx
mov ah, dl
sub esp, 8
jmp 0x81944a
jl 0x819489
setle dh
jmp 0x81948c
setle dh
ror ebp, 0
btr bx, bp
jmp 0x819506
xor edx, 0x42be451c
lea ebx, [ebx - 0x63]
call 0x8194a8
clc
not edx
jmp 0x8194ea
sub esp, 0x14
jle 0x8194d4
lea ebx, [ebx + esi]
mov word [esp], dx
push esp
lea eax, [edx + edi]
jmp 0x819517
lea ebx, [ebx + esi]
mov word [esp], dx
jmp 0x819513
mov dword [esp], ecx
lea esp, [esp + 4]
dec ebp
rdtsc
lea ebx, [edx + 0x86]
jmp 0x8194ac
jns 0x819499
xor edx, 0x42be451c
lea ebx, [ebx - 0x63]
jmp 0x8194a2
push esp
lea eax, [edx + edi]
lea esp, [esp + 0x18]
jmp 0x819571
lea edx, [esi - 0xd8]
jmp 0x819547
xchg ebx, edx
mov dl, 3
not ebp
call 0x819553
std
jmp 0x819585
lea eax, [edi - 0x13]
dec bh
js 0x819777
mov eax, 0x9d2950ea
jmp 0x819702
inc ebp
bswap eax
bsf edx, eax
jg 0x81951d
lea edx, [esi - 0xd8]
xchg ebx, edx
mov dl, 3
jmp 0x81954b
mov dl, 0x79
setno bh
lea eax, [eax*4]
add ebp, dword [edi]
mov dh, byte [esp]
jmp 0x819555
cmc
jmp 0x8195b0
setge al
mov edx, dword [esp]
stc
je 0x8195d6
cmc
bt eax, ebp
rdtsc
jmp 0x8195b5
mov edx, ebp
movzx ebx, byte [edx]
rdtsc
bswap eax
mov eax, ebx
jmp 0x819617
jmp 0x81967d
mov eax, 0x9d2950ea
jmp 0x819702
Function at 0x927f28
Capabilities:
Execute anti-debugging instructions

Disassembly:
std
shl cx, cl
add esp, 0x29
mov dl, 0xa3
jmp 0x927f4c
Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x48dcc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, edx
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0xc]
mov esi, ecx
mov ecx, dword [0x4925fc]
xor edx, edx
div ecx
push 0x27
push 0
mov dword [ebp - 0x38], edi
mov ebx, eax
imul ebx, ecx
lea eax, [ebp - 0x2b]
push eax
mov dword [edi], ebx
call fcn.00451d90
add esp, 0xc
push 7
pop ecx
lea edi, [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
push ebx
push dword [ebp + 0xc]
movsw word es:[edi], word [esi]
push dword [ebp - 0x30]
call fcn.0040113f
mov edi, dword [ebp - 0x38]
push dword [edi]
mov dword [ebp - 0x34], eax
call fcn.0043fb4f
push dword [0x4925fc]
mov dword [ebp - 0x30], eax
call fcn.0043fb4f
push dword [0x4925fc]
mov ebx, eax
push dword [ebp - 0x3c]
push ebx
call fcn.00452230
xor esi, esi
add esp, 0x14
cmp dword [edi], esi
jbe 0x40110e
mov edx, dword [0x4925fc]
xor eax, eax
test edx, edx
jbe 0x4010b5
mov ecx, dword [ebp - 0x34]
add ecx, esi
xor byte [ecx + eax], 0xaa
mov edx, dword [0x4925fc]
inc eax
cmp eax, edx
jb 0x4010a6
mov eax, dword [ebp - 0x34]
lea edi, [esi + eax]
push ebx
mov eax, edi
mov ecx, ebx
call fcn.00401687
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x2c]
push ecx
add eax, esi
push eax
push ebx
call fcn.00401162
push dword [0x4925fc]
mov eax, dword [ebp - 0x30]
add eax, esi
push eax
push ebx
call fcn.00452230
xor eax, eax
add esp, 0xc
cmp dword [0x4925fc], eax
jbe 0x401101
xor byte [edi + eax], 0xaa
inc eax
cmp eax, dword [0x4925fc]
jb 0x4010f4
add esi, dword [0x4925fc]
mov eax, dword [ebp - 0x38]
cmp esi, dword [eax]
jb 0x401095
push ebx
call fcn.0043fb5a
push dword [ebp - 0x34]
call fcn.0043fb5a
pop ecx
pop ecx
push 0x28
pop ecx
pop edi
pop esi
lea eax, [ebp - 0x2c]
pop ebx
mov byte [eax], 0
inc eax
dec ecx
jne 0x401127
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x30]
xor ecx, ebp
call fcn.0044e6cf
leave
ret 0xc

Function at 0x401486
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
xor edx, edx
mov edi, eax
xor esi, esi
cmp dword [0x4925f0], esi
jle 0x4014b2
mov eax, dword [esp + 0x10]
lea ecx, [edx + eax]
mov eax, dword [edi]
mov bl, byte [ecx]
add eax, esi
xor byte [eax], bl
inc esi
add ecx, 4
cmp esi, dword [0x4925f0]
jl 0x40149e
inc edx
add edi, 4
cmp edx, 4
jl 0x40148d
pop edi
pop esi
pop ebx
ret 4
Function at 0x4014f5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push 4
call fcn.0043fb4f
push 4
mov esi, eax
call fcn.0043fb4f
and dword [ebp - 4], 0
pop ecx
mov dword [ebp - 8], eax
mov eax, dword [0x4925f4]
pop ecx
mov ecx, eax
shl ecx, 2
test ecx, ecx
jle 0x401542
mov edx, dword [ebp + 8]
mov ecx, edi
sub edx, edi
mov al, byte [edx + ecx]
inc dword [ebp - 4]
mov byte [ecx], al
mov eax, dword [0x4925f4]
mov ebx, eax
shl ebx, 2
inc ecx
cmp dword [ebp - 4], ebx
jl 0x40152a
mov ebx, eax
shl ebx, 2
jmp 0x401659
mov al, byte [edi + ebx - 4]
mov byte [esi], al
mov al, byte [edi + ebx - 3]
mov byte [esi + 1], al
mov al, byte [edi + ebx - 2]
mov byte [esi + 2], al
mov al, byte [edi + ebx - 1]
mov byte [esi + 3], al
mov eax, ebx
cdq
and edx, 3
add eax, edx
sar eax, 2
cdq
idiv dword [0x4925f4]
test edx, edx
jne 0x4015e9
mov cl, byte [esi + 1]
mov al, byte [esi]
mov byte [esi], cl
mov cl, byte [esi + 2]
mov byte [esi + 1], cl
mov cl, byte [esi + 3]
push esi
mov byte [esi + 2], cl
mov byte [esi + 3], al
call fcn.004014c1
mov eax, dword [0x4925f4]
mov ecx, eax
shl ecx, 2
mov eax, ebx
cdq
idiv ecx
mov cl, 1
dec eax
test eax, eax
jle 0x4015c0
mov dl, cl
and dl, 0x80
add cl, cl
test dl, dl
je 0x4015bd
xor cl, 0x1b
dec eax
jne 0x4015af
mov eax, dword [ebp - 8]
mov byte [eax], cl
mov byte [eax + 3], 0
mov byte [eax + 2], 0
mov byte [eax + 1], 0
mov ecx, esi
sub eax, esi
mov dword [ebp + 8], 4
mov dl, byte [eax + ecx]
xor byte [ecx], dl
inc ecx
dec dword [ebp + 8]
jne 0x4015dc
jmp 0x4015fd
cmp dword [0x4925f4], 6
jle 0x4015fd
cmp edx, 4
jne 0x4015fd
push esi
call fcn.004014c1
mov eax, dword [0x4925f4]
shl eax, 2
mov ecx, ebx
sub ecx, eax
mov al, byte [ecx + edi]
xor al, byte [esi]
mov ecx, ebx
mov byte [edi + ebx], al
mov eax, dword [0x4925f4]
shl eax, 2
sub ecx, eax
mov al, byte [ecx + edi + 1]
xor al, byte [esi + 1]
mov ecx, ebx
mov byte [edi + ebx + 1], al
mov eax, dword [0x4925f4]
shl eax, 2
sub ecx, eax
mov al, byte [ecx + edi + 2]
xor al, byte [esi + 2]
mov ecx, ebx
mov byte [edi + ebx + 2], al
mov eax, dword [0x4925f4]
shl eax, 2
sub ecx, eax
mov al, byte [ecx + edi + 3]
xor al, byte [esi + 3]
add ebx, 4
mov byte [edi + ebx - 1], al
mov eax, dword [0x4925f8]
inc eax
imul eax, dword [0x4925f0]
shl eax, 2
cmp ebx, eax
jl 0x40154c
push dword [ebp - 8]
call fcn.0043fb5a
push esi
call fcn.0043fb5a
pop ecx
pop ecx
pop esi
pop ebx
leave
ret 4

Function at 0x401687
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, edx
test edi, edi
jbe 0x4016a4
push esi
mov esi, dword [esp + 0xc]
sub ecx, eax
sub esi, eax
mov dl, byte [ecx + eax]
xor dl, byte [eax]
mov byte [esi + eax], dl
inc eax
dec edi
jne 0x401697
pop esi
pop edi
ret 4
Function at 0x4016a8
Capabilities:
Encode data using base64

Disassembly:
push 0x5c
mov eax, 0x468a17
call fcn.00455fc1
and dword [ebp - 0x68], 0
mov eax, dword [ebp + 8]
push 0x10
pop ecx
mov esi, 0x47a8a0
lea edi, [ebp - 0x54]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, eax
mov dword [ebp - 0x60], eax
call fcn.00402711
and dword [ebp - 4], 0
xor ebx, ebx
inc ebx
xor esi, esi
mov dword [ebp - 0x68], ebx
cmp dword [ebp + 0x10], esi
je 0x4017fe
mov eax, dword [ebp + 0xc]
dec dword [ebp + 0x10]
mov al, byte [eax]
mov byte [ebp + esi - 0x58], al
inc esi
inc dword [ebp + 0xc]
cmp esi, 3
jne 0x401755
mov al, byte [ebp - 0x58]
mov cl, byte [ebp - 0x57]
shr al, 2
mov byte [ebp - 0x5c], al
mov al, byte [ebp - 0x58]
and al, 3
shl al, 4
shr cl, 4
add al, cl
mov cl, byte [ebp - 0x56]
mov byte [ebp - 0x5b], al
mov al, byte [ebp - 0x57]
and al, 0xf
shl al, 2
shr cl, 6
add al, cl
mov byte [ebp - 0x5a], al
mov al, byte [ebp - 0x56]
and al, 0x3f
mov byte [ebp - 0x59], al
xor esi, esi
movzx eax, byte [ebp + esi - 0x5c]
mov al, byte [ebp + eax - 0x54]
mov edi, dword [ebp - 0x60]
mov byte [ebp - 0x64], al
push dword [ebp - 0x64]
call fcn.00401d91
inc esi
cmp esi, 4
jl 0x401736
xor esi, esi
cmp dword [ebp + 0x10], 0
jne 0x4016e8
test esi, esi
je 0x4017fe
cmp esi, 3
jge 0x40177d
push 3
pop ecx
sub ecx, esi
push ecx
lea eax, [ebp + esi - 0x58]
push 0
push eax
call fcn.00451d90
add esp, 0xc
mov cl, byte [ebp - 0x58]
mov al, cl
shr al, 2
mov byte [ebp - 0x5c], al
mov al, byte [ebp - 0x57]
and cl, 3
mov dl, al
shl cl, 4
shr dl, 4
add cl, dl
mov byte [ebp - 0x5b], cl
mov cl, byte [ebp - 0x56]
and dword [ebp - 0x58], 0
and al, 0xf
mov dl, cl
shl al, 2
shr dl, 6
add al, dl
mov byte [ebp - 0x5a], al
and cl, 0x3f
lea eax, [esi + 1]
mov byte [ebp - 0x59], cl
test eax, eax
jle 0x4017e3
mov eax, dword [ebp - 0x58]
movzx eax, byte [ebp + eax - 0x5c]
mov al, byte [ebp + eax - 0x54]
mov edi, dword [ebp - 0x60]
mov byte [ebp - 0x64], al
push dword [ebp - 0x64]
call fcn.00401d91
inc dword [ebp - 0x58]
lea eax, [esi + 1]
cmp dword [ebp - 0x58], eax
jl 0x4017be
push 3
pop eax
cmp esi, eax
jge 0x4017fe
sub eax, esi
mov dword [ebp - 0x5c], eax
mov edi, dword [ebp - 0x60]
push 0x3d
call fcn.00401d91
dec dword [ebp - 0x5c]
jne 0x4017ef
mov eax, dword [ebp - 0x60]
call fcn.00456044
ret 0xc