joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4327a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b125b
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x4e437c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x58], eax
test ebx, ebx
je 0x4329cb
push 0x2a
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.00486380
mov ecx, ebx
add esp, 0xc
xor esi, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4327f6
sub ecx, edx
sar ecx, 1
lea eax, [ecx - 0xd]
xor ecx, ecx
test eax, eax
cmovns ecx, eax
movzx eax, word [ebx + ecx*2]
lea edi, [ebx + ecx*2]
test ax, ax
je 0x432854
mov ecx, eax
lea ecx, [ecx]
movzx ecx, cx
lea edi, [edi + 2]
lea eax, [ecx - 0x41]
cmp eax, 0x19
lea edx, [ecx + 0x20]
movzx eax, word [edi]
cmova edx, ecx
shl esi, 4
add edx, esi
mov ecx, eax
mov esi, edx
shr esi, 0x17
and esi, 0x1e0
xor esi, edx
and esi, 0xfffffff
test ax, ax
jne 0x432820
push esi
push 0x4b8e34
lea eax, [ebp - 0x3c]
push 0x14
push eax
call fcn.0042c2c0
push 0
lea eax, [ebp - 0x3c]
push eax
push str.SoftwareKingsoftOffice6.0CommonResourceManagerImages
push 0x80000001
call fcn.00432600
add esp, 0x20
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
mov edi, eax
call fcn.00495040
push 0
push esi
push edx
push eax
call fcn.00495080
fld qword [0x4bc3a0]
add esp, 0x14
fcompi st(1)
jbe 0x4328d1
mov eax, 0x10624dd3
mul edi
shr edx, 6
mov dword [ebp - 0x64], edx
fild dword [ebp - 0x64]
test edx, edx
jns 0x4328bf
fadd qword [0x4bc3a8]
fstp qword [ebp - 0x68]
fld qword [ebp - 0x68]
fcompi st(1)
fstp st(0)
ja 0x4329cb
jmp 0x4328d3
fstp st(0)
call fcn.00432490
test al, al
jne 0x432967
lea ecx, [ebp - 0x98]
call fcn.00431920
mov esi, dword [ebp - 0x58]
mov dword [ebp - 4], 0
test esi, esi
je 0x43291e
cmp dword [esi + 4], 0
je 0x43291e
push ebx
lea ecx, [ebp - 0x54]
call fcn.00403570
push esi
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x98]
call fcn.004323e0
jmp 0x43293a
push ebx
lea ecx, [ebp - 0x54]
call fcn.00403570
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x98]
call fcn.00432010
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0
call fcn.00402420
lea ecx, [ebp - 0x98]
call fcn.00432430
lea ecx, [ebp - 0x98]
call fcn.004329f0
lea ecx, [ebp - 0x98]
call fcn.00431a70
push 0
call fcn.00495040
add esp, 4
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
push eax
lea eax, [ebp - 0x58]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push str.SoftwareKingsoftOffice6.0CommonResourceManagerImages
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4329cb
push 4
lea eax, [ebp - 0x60]
push eax
push 4
push 0
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046e5dc
mov esp, ebp
pop ebp
ret
Function at 0x435a60
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
xor dl, dl
mov ecx, dword [esp + 0x14]
push ebx
mov ebx, dword [esp + 0x10]
mov dword [esp + 8], eax
push ebp
push esi
push edi
test bl, 3
jne 0x435b91
test al, 3
jne 0x435b91
mov edi, ecx
mov dword [esp + 0x10], 0
shr edi, 2
xor esi, esi
test edi, edi
je 0x435b4c
cmp edi, 8
jb 0x435b15
mov ebp, dword [esp + 0x20]
mov edx, edi
mov dword [esp + 0x14], ebx
and edx, 0xfffffff8
add eax, 0x10
xorps xmm3, xmm3
sub dword [esp + 0x14], ebp
xorps xmm2, xmm2
mov ebp, dword [esp + 0x14]
movups xmm0, xmmword [eax - 0x10]
lea eax, [eax + 0x20]
movups xmm1, xmmword [ebx + esi*4]
add esi, 8
pxor xmm1, xmm0
por xmm3, xmm1
movups xmm1, xmmword [eax + ebp - 0x20]
movups xmm0, xmmword [eax - 0x20]
pxor xmm1, xmm0
por xmm2, xmm1
cmp esi, edx
jb 0x435ac4
mov eax, dword [esp + 0x20]
por xmm2, xmm3
movaps xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movd dword [esp + 0x10], xmm2
cmp esi, edi
jae 0x435b50
mov ebp, ebx
lea edx, [eax + esi*4]
sub ebp, eax
mov dword [esp + 0x14], ebp
mov ebp, edi
mov ebx, dword [esp + 0x14]
sub ebp, esi
mov esi, edi
mov edi, dword [esp + 0x10]
mov eax, dword [edx + ebx]
lea edx, [edx + 4]
xor eax, dword [edx - 4]
or edi, eax
sub ebp, 1
jne 0x435b32
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x10], edi
jmp 0x435b54
xor edi, edi
jmp 0x435b54
mov edi, dword [esp + 0x10]
shl esi, 2
sub ecx, esi
jne 0x435b68
test edi, edi
pop edi
pop esi
pop ebp
sete al
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x10]
add ebx, esi
mov ebp, dword [esp + 0x20]
mov edx, eax
shr eax, 0x10
add ebp, esi
shr edx, 0x18
or dl, al
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0x10]
shr eax, 8
or dl, al
mov eax, ebp
or dl, byte [esp + 0x10]
xor edi, edi
test ecx, ecx
je 0x435c54
cmp ecx, 0x20
jb 0x435c35
mov esi, ecx
add eax, 0x10
and esi, 0xffffffe0
xorps xmm3, xmm3
mov dword [esp + 0x1c], esi
xorps xmm2, xmm2
mov esi, ebx
sub esi, dword [esp + 0x14]
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x10]
nop dword [eax + eax]
movups xmm0, xmmword [eax - 0x10]
lea eax, [eax + 0x20]
movups xmm1, xmmword [edi + ebx]
add edi, 0x20
pxor xmm1, xmm0
por xmm3, xmm1
movups xmm1, xmmword [eax + ebp - 0x20]
movups xmm0, xmmword [eax - 0x20]
pxor xmm1, xmm0
por xmm2, xmm1
cmp edi, esi
jb 0x435bd0
por xmm2, xmm3
movaps xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 2
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 1
por xmm2, xmm0
movd eax, xmm2
or dl, al
mov ebp, dword [esp + 0x14]
cmp edi, ecx
jae 0x435c54
sub ebx, ebp
lea esi, [edi + ebp]
sub ecx, edi
mov al, byte [ebx + esi]
lea esi, [esi + 1]
xor al, byte [esi - 1]
or dl, al
sub ecx, 1
jne 0x435c44
pop edi
pop esi
test dl, dl
pop ebp
sete al
pop ebx
add esp, 8
ret
Function at 0x44e6b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4af2b0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4e437c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x34]
cmp eax, ecx
mov edx, dword [esi + 0x38]
mov edi, edx
cmovb ecx, eax
mov dword [ebp - 4], 0
xor al, al
rep stosb byte es:[edi], al
push edx
call fcn.00435a50
mov ecx, dword [esi + 0xc]
add esp, 4
test ecx, ecx
je 0x44e707
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [ebp + 8], 1
je 0x44e718
push 0x3c
push esi
call fcn.0046e36f
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x45a740
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b3360
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x4e437c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x58]
push 1
push eax
mov dword [ebp - 0x5c], esi
call fcn.00462150
push str.cfgs_setup.cfg
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push eax
call fcn.00401760
add esp, 0x14
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x45a7d2
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45a7c8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45a913
push edx
push ecx
call fcn.0046e36f
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
push eax
mov byte [ebp - 4], 3
call fcn.00402f10
push 0x208
mov byte [ebp - 4], 4
call fcn.0046e37d
add esp, 4
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov edi, eax
cmovae ecx, dword [ebp - 0x28]
push ecx
push 0x104
push edi
push 0x4b7708
push str.BuildId
push str.Info
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, edi
mov dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov word [esi], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45a853
sub ecx, edx
sar ecx, 1
push ecx
push edi
mov ecx, esi
call fcn.00402f10
push edi
call fcn.0046e386
mov edx, dword [ebp - 0x14]
add esp, 4
cmp edx, 8
jb 0x45a8aa
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45a8a0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45a918
push edx
push ecx
call fcn.0046e36f
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x45a8f4
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45a8ea
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45a918
push edx
push ecx
call fcn.0046e36f
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046e5dc
mov esp, ebp
pop ebp
ret 4
call fcn.0048f279
call fcn.0048f279
int3
Function at 0x45c930
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4e437c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov ecx, edx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
xor eax, eax
push edi
mov dword [ebp - 0xc], 0
lea edi, [ecx + 2]
mov dword [ebp - 8], 7
mov word [ebp - 0x1c], ax
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45c970
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x1c]
call fcn.00402f10
cmp dword [ebp - 8], 8
lea ecx, [ebp - 0x20]
push ecx
push 0x20219
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], 0
cmovae eax, dword [ebp - 0x1c]
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x45ca17
push dword [ebp - 0x20]
call edi
cmp dword [ebp - 8], 8
lea ecx, [ebp - 0x20]
push ecx
push 0x20119
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x45ca17
push dword [ebp - 0x20]
call edi
mov esi, 0x80004005
mov edx, dword [ebp - 8]
cmp edx, 8
jb 0x45ca65
mov ecx, dword [ebp - 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45ca5b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45ca77
jmp 0x45ca5b
mov eax, dword [ebp + 0x18]
add eax, eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
push eax
push 0
push dword [ebp - 0x30]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x20]
mov esi, eax
call edi
test esi, esi
jne 0x45c9e4
mov eax, dword [ebp - 0x24]
cmp eax, 1
je 0x45ca57
cmp eax, 2
jne 0x45c9e4
xor esi, esi
jmp 0x45c9e9
push edx
push ecx
call fcn.0046e36f
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0046e5dc
mov esp, ebp
pop ebp
ret
call fcn.0048f279
int3

Function at 0x45ca80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0x20006
push 0
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x45cab4
xor al, al
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [ebp + 0x14]
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x45cac4
mov ecx, dword [esi]
mov esi, ecx
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
sete al
mov esp, ebp
pop ebp
ret
Function at 0x45d220
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ecx]
cmp esi, 0x10
je 0x45d237
cmp esi, 0x20
jne 0x45d40b
shr esi, 2
mov edx, 4
cmp esi, edx
mov dword [ebp - 0xc], esi
mov eax, esi
cmovb eax, edx
push edi
mov edi, dword [ebp + 8]
lea eax, [eax*4 + 0x1c]
mov dword [ebp - 8], eax
test edi, edi
je 0x45d40a
mov dword [edi], 0x10
push ebx
mov dword [edi + 4], eax
xor ebx, ebx
add edi, 8
test esi, esi
je 0x45d2a2
lea edx, [ecx + 5]
movzx ecx, byte [edx - 1]
lea edx, [edx + 4]
movzx eax, byte [edx - 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 2]
shl ecx, 8
or ecx, eax
mov dword [edi + ebx*4], ecx
inc ebx
cmp ebx, esi
jl 0x45d275
mov eax, dword [ebp - 8]
mov ebx, dword [edi + ebx*4 - 4]
mov ecx, esi
cmp esi, eax
jge 0x45d38a
mov dword [ebp + 8], 0
mov dword [ebp - 4], edi
lea ebx, [ebx]
mov eax, ecx
cdq
idiv esi
test edx, edx
jne 0x45d320
mov eax, dword [ebp + 8]
cdq
idiv esi
mov dl, byte [eax + 0x4c07b8]
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx esi, byte [eax + str.cw]
movzx eax, dl
xor esi, eax
mov eax, ebx
shr eax, 8
movzx eax, al
shl esi, 8
movzx eax, byte [eax + str.cw]
xor esi, eax
movzx eax, bl
shl esi, 8
shr ebx, 0x18
movzx eax, byte [eax + str.cw]
xor esi, eax
movzx ebx, byte [ebx + str.cw]
shl esi, 8
xor ebx, esi
mov esi, dword [ebp - 0xc]
jmp 0x45d36d
cmp esi, 6
jbe 0x45d36d
cmp edx, 4
jne 0x45d36d
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx edx, byte [eax + str.cw]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
xor edx, eax
mov eax, ebx
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + str.cw]
xor edx, eax
movzx eax, bl
shl edx, 8
movzx ebx, byte [eax + str.cw]
xor ebx, edx
mov eax, dword [ebp - 4]
inc dword [ebp + 8]
xor ebx, dword [eax]
add eax, 4
mov dword [edi + ecx*4], ebx
inc ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
cmp ecx, eax
jl 0x45d2c0
xor esi, esi
sub ecx, 1
js 0x45d409
lea eax, [edi + eax*4]
mov dword [ebp + 8], eax
mov ebx, dword [edi + ecx*4]
cmp esi, 4
jl 0x45d3f9
cmp ecx, 4
jb 0x45d3f9
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx edx, byte [eax + str.cw]
mov eax, ebx
shr eax, 8
movzx eax, al
mov edx, dword [edx*4 + 0x4c1dd8]
movzx eax, byte [eax + str.cw]
xor edx, dword [eax*4 + 0x4c21d8]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
xor edx, dword [eax*4 + 0x4c19d8]
movzx eax, bl
movzx eax, byte [eax + str.cw]
xor edx, dword [eax*4 + 0x4c25d8]
mov eax, dword [ebp + 8]
jmp 0x45d3fb
mov edx, ebx
mov dword [eax], edx
inc esi
add eax, 4
sub ecx, 1
mov dword [ebp + 8], eax
jns 0x45d397
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x45d970
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b36cb
mov eax, dword fs:[0]
push eax
sub esp, 0x340
mov eax, dword [0x4e437c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x348], esi
cmp dword [esi + 0x18], 8
lea eax, [esi + 4]
jb 0x45d9b1
mov eax, dword [eax]
push 0x4c2a74
push eax
call fcn.0049711c
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x45dbc7
push 2
push 0
push ebx
call fcn.00494211
push ebx
call fcn.004977ca
add esp, 0x10
cmp eax, 0x201
jl 0x45dbba
push 0x202
lea eax, [ebp - 0x214]
push 0
push eax
call fcn.00486380
push 2
push 0xfffffdff
push ebx
call fcn.00494211
push ebx
push 0x201
lea eax, [ebp - 0x214]
push 1
push eax
call fcn.00493dc4
add esp, 0x28
cmp byte [ebp - 0x214], 0x3b
jne 0x45dbba
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 0xf
mov byte [ebp - 0x244], 0
push 0x210
mov dword [ebp - 4], 0
call fcn.0046e33f
add esp, 4
mov dword [ebp - 0x34c], eax
mov edi, eax
mov dword [ebp - 0x234], 0x200
mov ecx, 0x80
mov dword [ebp - 0x230], 0x20f
lea esi, [ebp - 0x213]
mov dword [ebp - 0x244], eax
rep movsd dword es:[edi], dword [esi]
push 0x10
push str.0123456789ABCDEF
lea ecx, [ebp - 0x22c]
mov byte [eax + 0x200], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x218], 0xf
mov byte [ebp - 0x22c], 0
call fcn.0041f8d0
cmp dword [ebp - 0x218], 0x10
lea eax, [ebp - 0x344]
mov edi, dword [ebp - 0x22c]
lea esi, [ebp - 0x22c]
push 0x100
push 0
push eax
cmovae esi, edi
call fcn.00486380
mov ecx, dword [ebp - 0x21c]
add esp, 0xc
add ecx, esi
cmp esi, ecx
je 0x45db10
jmp 0x45db00
movzx eax, byte [esi]
inc esi
mov byte [ebp + eax - 0x344], 1
cmp esi, ecx
jne 0x45db00
mov esi, dword [ebp - 0x34c]
mov ecx, esi
lea edx, [esi + 0x200]
cmp esi, edx
jae 0x45db34
movzx eax, byte [ecx]
cmp byte [ebp + eax - 0x344], 0
je 0x45db88
inc ecx
cmp ecx, edx
jb 0x45db22
or ecx, 0xffffffff
mov eax, dword [ebp - 0x348]
cmp ecx, 0xffffffff
je 0x45db8c
mov byte [eax + 0x3e], 1
mov eax, dword [ebp - 0x218]
cmp eax, 0x10
jb 0x45db78
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x45db6e
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45dbe3
push ecx
push edi
call fcn.0046e36f
add esp, 8
push 0x210
push esi
call fcn.0046e36f
add esp, 8
jmp 0x45dbbe
sub ecx, esi
jmp 0x45db37
mov byte [eax + 0x3e], 0
mov eax, dword [ebp - 0x218]
cmp eax, 0x10
jb 0x45db78
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x45db6e
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45dbe3
jmp 0x45db6e
mov byte [esi + 0x3e], 1
push ebx
call fcn.00493540
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046e5dc
mov esp, ebp
pop ebp
ret
call fcn.0048f279
int3
Function at 0x45e140
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 8
push ebx
push esi
push edi
test ecx, ecx
je 0x45e318
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x45e318
test bl, 3
jne 0x45e318
lea eax, [ebx - 1]
xor edx, edx
add eax, ecx
mov dword [ebp - 8], edx
cmp byte [eax], 0x3d
jne 0x45e18a
inc edx
dec eax
mov dword [ebp - 8], edx
cmp edx, 2
ja 0x45e318
cmp byte [eax], 0x3d
je 0x45e177
shr ebx, 2
xor edi, edi
mov dword [ebp + 8], edi
mov dword [ebp + 0x10], ebx
test ebx, ebx
je 0x45e30d
lea esi, [ecx + 2]
mov dword [ebp - 4], esi
mov al, byte [esi - 2]
lea ecx, [eax - 0x41]
cmp cl, 0x19
ja 0x45e1b2
sub al, 0x41
jmp 0x45e1e1
lea ecx, [eax - 0x61]
cmp cl, 0x19
ja 0x45e1be
sub al, 0x47
jmp 0x45e1e1
lea ecx, [eax - 0x30]
cmp cl, 9
ja 0x45e1ca
add al, 4
jmp 0x45e1e1
cmp al, 0x2b
jne 0x45e1d2
mov al, 0x3e
jmp 0x45e1e1
cmp al, 0x2f
jne 0x45e1da
mov al, 0x3f
jmp 0x45e1e1
cmp al, 0x3d
sete al
sub al, 1
mov dl, byte [esi - 1]
lea ecx, [edx - 0x41]
cmp cl, 0x19
ja 0x45e1f1
sub dl, 0x41
jmp 0x45e225
lea ecx, [edx - 0x61]
cmp cl, 0x19
ja 0x45e1fe
sub dl, 0x47
jmp 0x45e225
lea ecx, [edx - 0x30]
cmp cl, 9
ja 0x45e20b
add dl, 4
jmp 0x45e225
cmp dl, 0x2b
jne 0x45e214
mov dl, 0x3e
jmp 0x45e225
cmp dl, 0x2f
jne 0x45e21d
mov dl, 0x3f
jmp 0x45e225
cmp dl, 0x3d
sete dl
dec dl
mov bl, byte [esi]
lea ecx, [ebx - 0x41]
cmp cl, 0x19
ja 0x45e234
sub bl, 0x41
jmp 0x45e268
lea ecx, [ebx - 0x61]
cmp cl, 0x19
ja 0x45e241
sub bl, 0x47
jmp 0x45e268
lea ecx, [ebx - 0x30]
cmp cl, 9
ja 0x45e24e
add bl, 4
jmp 0x45e268
cmp bl, 0x2b
jne 0x45e257
mov bl, 0x3e
jmp 0x45e268
cmp bl, 0x2f
jne 0x45e260
mov bl, 0x3f
jmp 0x45e268
cmp bl, 0x3d
sete bl
dec bl
mov ah, byte [esi + 1]
mov cl, ah
sub cl, 0x41
cmp cl, 0x19
ja 0x45e27a
sub ah, 0x41
jmp 0x45e2b2
mov cl, ah
sub cl, 0x61
cmp cl, 0x19
ja 0x45e289
sub ah, 0x47
jmp 0x45e2b2
mov cl, ah
sub cl, 0x30
cmp cl, 9
ja 0x45e298
add ah, 4
jmp 0x45e2b2
cmp ah, 0x2b
jne 0x45e2a1
mov ah, 0x3e
jmp 0x45e2b2
cmp ah, 0x2f
jne 0x45e2aa
mov ah, 0x3f
jmp 0x45e2b2
cmp ah, 0x3d
sete ah
dec ah
cmp al, 0xff
je 0x45e318
cmp dl, 0xff
je 0x45e318
cmp bl, 0xff
je 0x45e318
cmp ah, 0xff
je 0x45e318
mov esi, dword [ebp + 0xc]
mov cl, dl
shl al, 2
shr cl, 4
or cl, al
shl dl, 4
mov byte [edi + esi], cl
mov al, bl
mov ecx, esi
shr al, 2
mov esi, dword [ebp - 4]
or al, dl
shl bl, 6
add esi, 4
or bl, ah
mov dword [ebp - 4], esi
mov byte [edi + ecx + 1], al
mov eax, dword [ebp + 8]
inc eax
mov byte [edi + ecx + 2], bl
add edi, 3
mov dword [ebp + 8], eax
cmp eax, dword [ebp + 0x10]
jb 0x45e1a3
mov edx, dword [ebp - 8]
sub edi, edx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45f560
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
push edi
je 0x45f6d3
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x45f6d3
mov eax, 0xaaaaaaab
mov ecx, edi
mul edi
push ebx
mov ebx, edx
shr ebx, 1
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebx + ebx*2]
sub ecx, eax
mov eax, 0
mov dword [ebp - 4], ecx
setne al
add eax, ebx
shl eax, 2
mov dword [ebp - 8], eax
test esi, esi
je 0x45f6cc
xor eax, eax
test ebx, ebx
je 0x45f630
mov edi, dword [ebp + 8]
add edi, 2
lea ebx, [ebx]
movzx ecx, byte [edi - 2]
lea edi, [edi + 3]
shr ecx, 2
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + esi], cl
movzx edx, byte [edi - 5]
movzx ecx, byte [edi - 4]
and edx, 3
shr ecx, 4
shl edx, 4
or edx, ecx
movzx ecx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + esi + 1], cl
movzx edx, byte [edi - 4]
movzx ecx, byte [edi - 3]
and edx, 0xf
shr ecx, 6
shl edx, 2
or edx, ecx
movzx ecx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + esi + 2], cl
movzx ecx, byte [edi - 3]
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + esi + 3], cl
add eax, 4
sub ebx, 1
jne 0x45f5c0
mov ecx, dword [ebp - 4]
mov edi, dword [ebp + 0x10]
sub ecx, 1
je 0x45f697
sub ecx, 1
jne 0x45f6c9
mov ebx, dword [ebp + 8]
movzx ecx, byte [ebx + edi - 2]
shr ecx, 2
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + esi], cl
movzx edx, byte [ebx + edi - 2]
movzx ecx, byte [ebx + edi - 1]
and edx, 3
shr ecx, 4
shl edx, 4
or edx, ecx
movzx ecx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + esi + 1], cl
lea ecx, [eax + 2]
movzx eax, byte [ebx + edi - 1]
and eax, 0xf
mov al, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi], al
mov eax, dword [ebp - 8]
mov byte [ecx + esi + 1], 0x3d
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
movzx ecx, byte [edx + edi - 1]
shr ecx, 2
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + esi], cl
movzx ecx, byte [edx + edi - 1]
and ecx, 3
shl ecx, 4
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + esi + 1], cl
mov word [eax + esi + 2], 0x3d3d
mov eax, dword [ebp - 8]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret