joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4181f0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a7a88
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4d67e8]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
push edi
mov eax, dword [0x4d67e8]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x10], 0
mov eax, dword [ebp + 8]
jne 0x418239
xor al, al
jmp 0x4182f7
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00418b20
lea eax, [esi + 0x4c]
mov dword [esp + 0x38], 0
cmp dword [esp + 0x24], 8
lea ebx, [esi + 0x64]
push eax
lea eax, [esi + 0x66]
push eax
lea eax, [esi + 0x34]
push eax
push ebx
lea ecx, [esp + 0x20]
cmovae ecx, dword [esp + 0x20]
lea edi, [esi + 0x1c]
push edi
push ecx
call fcn.00418ca0
test al, al
jne 0x41828a
mov dword [esi + 0x6c], 0
xor bl, bl
mov dword [esi + 0x68], 0xfffffc18
jmp 0x4182e2
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41829f
push eax
call dword [0x4af4f8]
mov dword [esi + 0x14], 0
cmp dword [edi + 0x14], 8
jb 0x4182a7
mov edi, dword [edi]
movzx eax, word [ebx]
push 0
push eax
push edi
push dword [esi + 0x10]
call dword [0x4af4f4]
mov dword [esi + 0x14], eax
test eax, eax
jne 0x4182d2
call dword [0x4af1f0]
mov dword [esi + 0x6c], eax
xor bl, bl
mov dword [esi + 0x68], 0xffffffeb
jmp 0x4182e2
mov dword [esi + 0x6c], 0
mov bl, 1
mov dword [esi + 0x68], 0
cmp dword [esp + 0x24], 8
jb 0x4182f5
push dword [esp + 0x10]
call fcn.0045ec61
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.004735e9
mov esp, ebp
pop ebp
ret 4
Function at 0x41b0c0
Capabilities:
Access peb ldr_data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a7d06
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x4d67e8]
xor eax, esp
mov dword [esp + 0x240], eax
push esi
mov eax, dword [0x4d67e8]
xor eax, esp
push eax
lea eax, [esp + 0x250]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0x3c]
mov dword [esp + 0x34], vtable.fmt::BasicMemoryWriter_char__class_std::allocator_char__.0
mov dword [esp + 0x38], eax
lea eax, [esp + 0x4c]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0x1f4
mov dword [esp + 0x3c], vtable.fmt::internal::MemoryBuffer_char__500__class_std::allocator_char__.0
mov dword [esp + 0x258], 0
lea eax, [esp + 0x34]
movdqu xmm0, xmmword [ebp + 0xc]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], eax
movdqu xmmword [esp + 0xc], xmm0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov byte [esp + 0x258], 1
lea ecx, [esp + 0xc]
push dword [ebp + 8]
call fcn.00422610
mov eax, dword [esp + 0x28]
test eax, eax
je 0x41b193
push eax
call fcn.0045ec61
add esp, 4
mov eax, dword [esp + 0x38]
push esi
push dword [eax + 8]
push 1
push dword [eax + 4]
call fcn.00474989
mov eax, dword [esp + 0x50]
lea ecx, [esp + 0x5c]
add esp, 0x10
mov dword [esp + 0x3c], vtable.fmt::internal::MemoryBuffer_char__500__class_std::allocator_char__.0
cmp eax, ecx
je 0x41b1c5
push eax
call fcn.0045ec61
add esp, 4
mov ecx, dword [esp + 0x250]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.004735e9
mov esp, ebp
pop ebp
ret
Function at 0x41ee70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a8388
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4d67e8]
xor eax, esp
mov dword [esp + 0x3c], eax
mov eax, dword [0x4d67e8]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
xorps xmm0, xmm0
mov dword [esp + 4], 2
movlpd qword [esp + 0xc], xmm0
mov dword [esp + 0x14], 0
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], 0
mov dword [esp + 0x50], 0
lea eax, [esp + 4]
cmp dword [ecx + 0x70], 0
push eax
jne 0x41eeff
add ecx, 0x2c
call fcn.00420900
jmp 0x41ef07
add ecx, 0x2c
call fcn.004209e0
cmp dword [esp + 0x2c], 0x10
jb 0x41ef1a
push dword [esp + 0x18]
call fcn.0045ec61
add esp, 4
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.004735e9
mov esp, ebp
pop ebp
ret

Function at 0x41fad0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a8560
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x4d67e8]
xor eax, esp
mov dword [esp + 0x54], eax
push esi
push edi
mov eax, dword [0x4d67e8]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
push dword [edi + 8]
mov eax, dword [eax + 0x224]
mov esi, dword [eax + 8]
push esi
push 1
push dword [eax + 4]
call fcn.00474989
add esp, 0x10
cmp eax, esi
je 0x41fb76
lea edx, [edi + 0xc]
lea ecx, [esp + 0x48]
call fcn.0041b770
push eax
mov edx, str.Failed_writing_to_file
mov dword [esp + 0x74], 0
lea ecx, [esp + 0x34]
call fcn.00422390
add esp, 4
mov esi, eax
mov byte [esp + 0x70], 1
call fcn.004741af
lea ecx, [esp + 0xc]
push dword [eax]
push esi
call fcn.0041b280
push 0x4d2d10
lea eax, [esp + 0x10]
push eax
call fcn.004787ab
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.004735e9
mov esp, ebp
pop ebp
ret 4
Function at 0x428ed0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x4d67e8]
xor eax, esp
mov dword [esp + 0x1c], eax
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x28
call dword [0x4af194]
push eax
call dword [0x4af010]
test eax, eax
jne 0x428f25
push str.OpenProcessToken_error._n
call fcn.004774e1
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004735e9
mov esp, ebp
pop ebp
ret 4
lea eax, [esp + 4]
push eax
push str.SeDebugPrivilege
push 0
call dword [section..rdata]
test eax, eax
jne 0x428f48
push str.LookupPrivilege_error__n
call fcn.004774e1
add esp, 4
mov eax, dword [esp + 4]
push 0
push 0
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
push 0x10
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
push eax
push 0
push dword [esp + 0x14]
mov dword [esp + 0x24], 1
mov dword [esp + 0x30], 2
call dword [0x4af014]
test eax, eax
jne 0x428faf
push str.AdjustTokenPrivileges_error__n
call fcn.004774e1
add esp, 4
push dword [esp]
call dword [0x4af1b8]
mov eax, 1
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004735e9
mov esp, ebp
pop ebp
ret 4
push dword [esp]
call dword [0x4af1b8]
mov ecx, dword [esp + 0x1c]
xor eax, eax
xor ecx, esp
call fcn.004735e9
mov esp, ebp
pop ebp
ret 4

Function at 0x42db60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x14]
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 0x10]
call fcn.0047be1c
mulsd xmm0, qword [0x4c5658]
mov edx, dword [edi + 0x168]
mov ecx, dword [edi + 0x164]
movsd qword [ebp + 0x10], xmm0
call fcn.0047be1c
movsd xmm1, qword [ebp + 0x10]
mov ecx, 0x63
divsd xmm1, xmm0
push 0
cvttsd2si eax, xmm1
cmp eax, 0x64
cmovge eax, ecx
lea ecx, [edi - 0x36c]
push eax
push 0x465
call fcn.0043e2b5
cmp byte [edi + 0x150], 0
mov esi, dword [ebp + 0xc]
je 0x42dbee
mov eax, dword [edi + 0x154]
add eax, dword [edi + 0x15c]
push esi
push dword [ebp + 8]
push eax
call fcn.004780d0
add esp, 0xc
mov al, 1
add dword [edi + 0x15c], esi
pop edi
pop esi
pop ebp
ret 0x10
push dword [edi + 4]
push esi
push 1
push dword [ebp + 8]
call fcn.00474989
add esp, 0x10
xor ecx, ecx
cmp eax, esi
sete al
pop edi
pop esi
pop ebp
ret 0x10

Function at 0x434bd0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov ecx, edx
mov eax, edx
and ecx, 1
shr eax, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
dec eax
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
dec eax
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
dec eax
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
dec eax
not eax
and eax, 0xedb88320
xor eax, ecx
mov dword [edx*4 + 0x4e3c80], eax
inc edx
cmp edx, 0x100
jb 0x434bd2
ret
Function at 0x434c80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
or eax, 0xffffffff
test esi, esi
je 0x434cab
nop
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x4e3c80]
dec esi
jne 0x434c90
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4352e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov eax, dword [eax]
and eax, 7
cmp edx, 5
jae 0x435300
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push ebx
add edx, 0xfffffffc
or ebx, 0xffffffff
add edx, ecx
push esi
mov dword [ebp - 8], edx
lea ecx, [ecx]
lea esi, [edi + ecx]
cmp esi, edx
jae 0x435329
mov cl, byte [esi]
and cl, 0xfe
cmp cl, 0xe8
je 0x435326
inc esi
cmp esi, edx
jb 0x435317
mov ecx, dword [ebp - 4]
mov edi, esi
sub edi, ecx
mov ecx, edi
sub ecx, ebx
cmp esi, edx
jae 0x435431
cmp ecx, 3
jbe 0x435342
xor eax, eax
jmp 0x435380
dec ecx
shl eax, cl
and eax, 7
je 0x435380
movzx ecx, byte [eax + 0x4c242c]
mov edx, esi
sub edx, ecx
cmp byte [eax + 0x4c2424], 0
mov cl, byte [edx + 4]
je 0x43536a
test cl, cl
je 0x43536a
cmp cl, 0xff
jne 0x43537d
mov edx, dword [ebp - 8]
and eax, 3
mov ecx, dword [ebp - 4]
add eax, eax
mov ebx, edi
or eax, 1
inc edi
jmp 0x435310
mov edx, dword [ebp - 8]
mov cl, byte [esi + 4]
mov ebx, edi
mov dword [ebp - 0x10], ebx
test cl, cl
je 0x4353a2
cmp cl, 0xff
je 0x4353a2
mov ecx, dword [ebp - 4]
and eax, 3
add eax, eax
or eax, 1
inc edi
jmp 0x435310
movzx edx, cl
movzx ecx, byte [esi + 3]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 1]
shl edx, 8
or edx, ecx
sub edx, edi
lea ebx, [edx - 5]
test eax, eax
je 0x4353fe
movzx edx, byte [eax + 0x4c242c]
mov ecx, 0x18
shl edx, 3
sub ecx, edx
mov dword [ebp - 0xc], edx
mov edx, ebx
shr edx, cl
test dl, dl
je 0x4353ea
cmp dl, 0xff
jne 0x4353fe
mov ecx, 0x20
mov edx, 1
sub ecx, dword [ebp - 0xc]
shl edx, cl
dec edx
xor edx, ebx
jmp 0x4353c0
mov edx, dword [ebp - 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
mov byte [esi + 1], bl
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
mov ebx, dword [ebp - 0x10]
shr ecx, 8
add edi, 5
mov byte [esi + 2], cl
mov ecx, dword [ebp - 4]
jmp 0x435310
pop esi
pop ebx
cmp ecx, 3
jbe 0x435446
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov dword [ecx], eax
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
dec ecx
shl eax, cl
mov ecx, dword [ebp + 0xc]
and eax, 7
mov dword [ecx], eax
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x43b820
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ab178
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4d67e8]
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
cmp dword [ecx + 0x10], 0
jne 0x43b858
xor al, al
jmp 0x43b97d
xor eax, eax
mov dword [ebp - 0x14], 7
push 0xffffffffffffffff
push eax
push ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.0040e940
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
mov edx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x18]
cmovae eax, edx
cmp word [eax + esi*2 - 2], 0x5c
je 0x43b8b9
cmp ecx, 8
lea eax, [ebp - 0x28]
cmovae eax, edx
cmp word [eax + esi*2 - 2], 0x2f
je 0x43b8b9
push 0x5c
push 1
lea ecx, [ebp - 0x28]
call fcn.00419620
mov esi, dword [ebp - 0x18]
inc esi
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043c41d
mov edi, eax
add esp, 4
test edi, edi
je 0x43b968
push esi
push 0
push edi
call fcn.0047b4a0
cmp dword [ebp - 0x14], 8
lea eax, [esi - 1]
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
push eax
push ecx
push edi
call fcn.00473e30
add esp, 0x18
cmp word [edi], 0
je 0x43b952
cmp word [edi + 2], 0
lea esi, [edi + 2]
je 0x43b952
mov ebx, 0x2f
movzx eax, word [esi]
cmp eax, 0x2f
je 0x43b923
cmp eax, 0x5c
jne 0x43b949
cmp word [esi - 2], 0x3a
je 0x43b949
xor eax, eax
push edi
mov word [esi], ax
call fcn.00474cb6
add esp, 4
test eax, eax
jns 0x43b946
call fcn.004741af
cmp dword [eax], 0x11
jne 0x43b95f
mov word [esi], bx
add esi, 2
cmp word [esi], 0
jne 0x43b916
push edi
call fcn.0044e70f
add esp, 4
mov bl, 1
jmp 0x43b96a
push edi
call fcn.0044e70f
add esp, 4
xor bl, bl
cmp dword [ebp - 0x14], 8
jb 0x43b97b
push dword [ebp - 0x28]
call fcn.0045ec61
add esp, 4
mov al, bl
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.004735e9
mov esp, ebp
pop ebp
ret
Function at 0x45bfd9
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 8]
and edi, 7
je 0x45bffd
cmp dword [esi + 8], edi
jge 0x45bff5
push esi
call fcn.004583e1
pop ecx
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
mov edx, dword [esi + 8]
xor ecx, ecx
test edx, edx
jle 0x45c023
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx + 8], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x45c009
mov dword [esi + 8], edx
jmp 0x45c038
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jb 0x45c02e
xor dl, dl
jmp 0x45c033
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx + 8], dl
inc ecx
cmp ecx, 4
jl 0x45c023
mov eax, dword [ebp + 8]
movzx ecx, byte [ebp + 0xb]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp + 0xa]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x45c072
push str.zlib_corrupt
call fcn.0045830a
add esp, 4
jmp 0x45c0b2
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x45c082
push str.read_past_buffer
jmp 0x45c068
mov ecx, dword [esi + 0x10]
lea eax, [ecx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x45c09c
push edi
push ecx
push esi
call fcn.0045eb40
add esp, 0xc
test eax, eax
je 0x45c0b2
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.004780d0
add dword [esi], edi
xor eax, eax
add dword [esi + 0x10], edi
add esp, 0xc
inc eax
pop edi
pop esi
pop ebp
ret

Function at 0x461c51
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x461c5f
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
not ecx
mov ebx, 0xff
cmp esi, 8
jb 0x461d1a
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4b2eb0]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4b2eb0]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4b2eb0]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4b2eb0]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4b2eb0]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4b2eb0]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4b2eb0]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4b2eb0]
dec edi
jne 0x461c7d
pop edi
test esi, esi
je 0x461d33
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4b2eb0]
inc edx
dec esi
jne 0x461d1e
not ecx
pop esi
mov eax, ecx
pop ebx
pop ebp
ret
Function at 0x4ecc80
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
sub esp, 0x4c
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x4ecd8c
test eax, eax
je 0x4ecd8c
push esi
push edi
mov ecx, 0x10
mov esi, 0x507ff0
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x14]
mov esi, dword [esi]
add esi, eax
mov dword [ebp - 8], esi
xor esi, esi
mov dword [ebp - 4], 0
mov ecx, eax
test edx, edx
jbe 0x4ecd73
lea edi, [eax + 4]
jmp 0x4eccd7
mov ebx, dword [ebp + 8]
movzx eax, byte [esi + ebx]
inc esi
shl eax, 0x10
cmp esi, edx
jne 0x4eccec
mov dword [ebp - 4], 2
jmp 0x4ecd0d
movzx ebx, byte [esi + ebx]
shl ebx, 8
inc esi
or eax, ebx
cmp esi, edx
jne 0x4ecd03
mov dword [ebp - 4], 1
jmp 0x4ecd0d
mov edx, dword [ebp + 8]
movzx edx, byte [esi + edx]
or eax, edx
inc esi
mov edx, eax
and edx, 0x3f
cmp edi, dword [ebp - 8]
ja 0x4ecd83
mov ebx, eax
shr ebx, 0x12
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
mov byte [ecx], bl
mov ebx, eax
shr ebx, 0xc
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
inc ecx
inc edi
mov byte [ecx], bl
mov ebx, dword [ebp - 4]
inc ecx
inc edi
cmp ebx, 1
jbe 0x4ecd46
mov byte [ecx], 0x3d
jmp 0x4ecd52
shr eax, 6
and eax, 0x3f
mov al, byte [ebp + eax - 0x4c]
mov byte [ecx], al
inc ecx
inc edi
test ebx, ebx
jbe 0x4ecd5d
mov byte [ecx], 0x3d
jmp 0x4ecd63
mov dl, byte [ebp + edx - 0x4c]
mov byte [ecx], dl
mov edx, dword [ebp + 0xc]
inc ecx
inc edi
cmp esi, edx
jb 0x4eccd4
mov eax, dword [ebp + 0x10]
sub ecx, eax
mov eax, dword [ebp + 0x14]
pop edi
pop esi
mov dword [eax], ecx
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4028d0
Capabilities:
Terminate process

Disassembly:
call 0x54c000
push 0x18
push 0x4029f8
call fcn.004032a6
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
call dword [sym.imp.MSVCR120_CLR0400.dll___crtGetShowWindowMode]
movzx ebx, ax
mov dword [ebp - 4], esi
mov eax, dword fs:[0x18]
mov edx, dword [eax + 4]
mov edi, esi
mov esi, 0x4150e8
mov ecx, edx
xor eax, eax
lock cmpxchg dword [esi], ecx
test eax, eax
jne 0x404373
xor esi, esi
inc esi
cmp dword [0x4150ec], esi
je 0x404385
cmp dword [0x4150ec], 0
jne 0x402a1e
mov dword [0x4150ec], esi
push 0x4029f4
push 0x4029e4
call sub.MSVCR120_CLR0400.dll__initterm_e
pop ecx
pop ecx
test eax, eax
jne 0x404392
cmp dword [0x4150ec], esi
jne 0x402973
push 0x4029e0
push 0x4029cc
call sub.MSVCR120_CLR0400.dll__initterm
pop ecx
pop ecx
mov dword [0x4150ec], 2
test edi, edi
jne 0x402980
xor eax, eax
mov ecx, 0x4150e8
xchg dword [ecx], eax
cmp dword [0x4150f8], 0
jne 0x4043a3
mov eax, dword [sym.imp.MSVCR120_CLR0400.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov edi, dword [ebp - 0x24]
nop
nop
nop
nop
nop
nop
mov cl, byte [esi]
cmp cl, 0x20
jbe 0x402a14
cmp cl, 0x22
je 0x4043d1
movzx eax, cl
push eax
call dword [sym.imp.MSVCR120_CLR0400.dll__ismbblead]
pop ecx
test eax, eax
jne 0x4043e2
inc esi
mov dword [ebp - 0x20], esi
jmp 0x4029a0
test cl, cl
je 0x402a29
test edi, edi
je 0x402a29
jmp 0x4029a7
mov dword [0x415244], esi
jmp 0x402950
mov al, byte [esi]
test al, al
je 0x402a39
cmp al, 0x20
ja 0x402a39
inc esi
mov dword [ebp - 0x20], esi
jmp 0x402a29
push ebx
push esi
push 0
push 0x400000
call fcn.00403044
mov dword [0x415060], eax
cmp dword [0x415064], 0
jne 0x40441a
push eax
call dword [sym.imp.MSVCR120_CLR0400.dll_exit]
test ecx, ecx
je 0x402a82
push ecx
call fcn.0040117d
jmp 0x402a82
mov eax, esi
pop esi
pop ebp
ret 4
cmp eax, edx
jne 0x402905
xor esi, esi
inc esi
mov edi, esi
jmp 0x402918
push 0x1f
call sub.MSVCR120_CLR0400.dll__amsg_exit
pop ecx
jmp 0x402950
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x404435
push 0x4150f8
call fcn.0040fdd0
pop ecx
test eax, eax
je 0x40298d
push 0
push 2
push 0
mov esi, dword [0x4150f8]
mov ecx, esi
call dword [0x416268]
call esi
jmp 0x40298d
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [ebp - 0x24], edi
jmp 0x4029b0
inc esi
mov dword [ebp - 0x20], esi
jmp 0x4029c3
cmp dword [0x415244], 0
jne 0x40442e
call dword [sym.imp.MSVCR120_CLR0400.dll__cexit]
mov eax, dword [0x415060]
mov dword [ebp - 4], 0xfffffffe
call fcn.004032ee
ret
Function at 0x4049b0
Capabilities:
Get common file path
Get disk information
Get hostname
Manipulate console buffer
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2160
call fcn.00410530
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [0x44a138]
push ebx
push esi
push edi
mov edi, dword [eax + 4]
mov eax, dword [0x44a13c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0x9e3779b9
mov dword [ebp - 0x1c], edx
call fcn.004049a0
mov ecx, dword [0x44a140]
mov edx, dword [0x44a144]
add dword [ebp - 8], 0x23f
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrencyFormatW]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x14], 0x20
jmp 0x404a20
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov esi, dword [ebp - 0xc]
mov eax, dword [0x462254]
shl esi, 4
add esi, dword [ebp - 0x24]
cmp eax, 0xfa9
jne 0x404a4c
mov dword [0x462250], 0xedeb2e40
jmp 0x404a67
cmp eax, 0x3eb
jne 0x404a67
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [0x461ce0], 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x20]
add dword [ebp - 4], edx
xor esi, ecx
cmp dword [0x462254], 0x9e6
mov dword [0x46224c], 0xf4ea3dee
jne 0x404aa2
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
xor dword [ebp - 4], esi
cmp dword [0x462254], 0x213
jne 0x404b40
push 0
lea eax, [ebp - 0x1960]
push eax
push 0
push 0
push 0
push 0
call ebx
lea ecx, [ebp - 0x960]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x1160]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0
call dword [sym.imp.KERNEL32.dll_ClearCommBreak]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
push 0
push 0
lea ecx, [ebp - 0x2160]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
lea edx, [ebp - 0x30]
push edx
push 0
lea eax, [ebp - 0x4c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea ecx, [ebp - 0x160]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea edx, [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
sub edi, dword [ebp - 4]
cmp dword [0x462254], 0xc
jne 0x404b5e
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalUnWire]
mov eax, dword [ebp - 8]
mov edx, edi
shr edx, 5
lea ecx, [eax + edi]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov eax, edi
shl eax, 4
add eax, dword [ebp - 0x1c]
xor eax, dword [ebp - 4]
xor eax, ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
sub dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
sub dword [ebp - 8], eax
sub dword [ebp - 0x14], 1
jne 0x404a20
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], edi
pop edi
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4