joyce8/EMBER2024-capa huggingface dataset:
Function at 0x58e4c5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x665c30], ebx
push esi
push edi
jne 0x58e545
push 0x5dde40
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x58e580
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x5dde34
push edi
call esi
test eax, eax
mov dword [0x665c30], eax
je 0x58e580
push 0x5dde24
push edi
call esi
push 0x5dde10
push edi
mov dword [0x665c34], eax
call esi
cmp dword [0x66573c], 2
mov dword [0x665c38], eax
jne 0x58e545
push 0x5dddf4
push edi
call esi
test eax, eax
mov dword [0x665c40], eax
je 0x58e545
push 0x5ddddc
push edi
call esi
mov dword [0x665c3c], eax
mov eax, dword [0x665c3c]
test eax, eax
je 0x58e58a
call eax
test eax, eax
je 0x58e571
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x665c40]
test eax, eax
je 0x58e571
test byte [ebp - 8], 1
jne 0x58e58a
cmp dword [0x665748], 4
jb 0x58e584
or byte [ebp + 0x12], 0x20
jmp 0x58e5a9
xor eax, eax
jmp 0x58e5b9
or byte [ebp + 0x12], 4
jmp 0x58e5a9
mov eax, dword [0x665c34]
test eax, eax
je 0x58e5a9
call eax
mov ebx, eax
test ebx, ebx
je 0x58e5a9
mov eax, dword [0x665c38]
test eax, eax
je 0x58e5a9
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x665c30]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x58f34b
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0057caf0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x58f3e6
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x66573c]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x58f3e6
cmp eax, 1
je 0x58f407
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x58f3e6
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x58f3b3
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x58f3e2
xor eax, eax
inc eax
jmp 0x58f426
cmp edi, eax
jae 0x58f3ea
xor eax, eax
jmp 0x58f426
cmp eax, esi
jae 0x58f3f1
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov eax, dword [0x66573c]
jmp 0x58f40a
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x58f66e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0xc], ebx
mov byte [ebp - 1], bl
je 0x58f699
cmp eax, 1
je 0x58f699
jle 0x58f6a1
cmp eax, 3
jle 0x58f699
cmp eax, 4
jne 0x58f6a1
mov byte [ebp - 1], 1
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
jmp 0x58f6cc
call fcn.00582484
mov dword [eax], 0x16
call fcn.0058248d
mov dword [eax], ebx
or eax, 0xffffffff
jmp 0x58f845
inc eax
cmp byte [eax], bl
jne 0x58f6bb
lea ecx, [eax + 1]
cmp byte [ecx], bl
je 0x58f6cc
mov byte [eax], 0x20
mov eax, ecx
cmp byte [eax], bl
jne 0x58f6bb
push esi
push 0x44
pop esi
push esi
lea eax, [ebp - 0x68]
push ebx
push eax
call fcn.00587c80
mov dword [ebp - 0x68], esi
mov esi, dword [0x667130]
add esp, 0xc
cmp esi, ebx
je 0x58f712
lea ecx, [esi - 1]
mov edx, ecx
mov eax, ecx
sar edx, 5
mov edx, dword [edx*4 + 0x667140]
and eax, 0x1f
lea eax, [eax + eax*8]
cmp byte [edx + eax*4 + 4], bl
jne 0x58f712
dec esi
dec ecx
cmp esi, ebx
jne 0x58f6f2
lea eax, [esi + esi*4 + 4]
mov word [ebp - 0x36], ax
push edi
movzx eax, ax
push 1
push eax
call fcn.0057dc5b
cmp esi, ebx
mov dword [ebp - 0x34], eax
pop ecx
mov dword [eax], esi
mov eax, dword [ebp - 0x34]
pop ecx
mov dword [ebp - 8], ebx
lea ecx, [eax + 4]
lea edx, [eax + esi + 4]
jle 0x58f779
mov eax, dword [ebp - 8]
mov edi, eax
sar edi, 5
mov edi, dword [edi*4 + 0x667140]
and eax, 0x1f
lea eax, [eax + eax*8]
lea edi, [edi + eax*4]
mov al, byte [edi + 4]
test al, 0x10
jne 0x58f765
mov byte [ecx], al
mov eax, dword [edi]
mov dword [edx], eax
jmp 0x58f76a
mov byte [ecx], bl
or dword [edx], 0xffffffff
inc dword [ebp - 8]
inc ecx
add edx, 4
cmp dword [ebp - 8], esi
jl 0x58f73e
mov eax, dword [ebp - 0x34]
cmp byte [ebp - 1], bl
je 0x58f7aa
lea ecx, [eax + 4]
xor edx, edx
lea eax, [eax + esi + 4]
cmp esi, 3
jge 0x58f790
mov edi, esi
jmp 0x58f793
push 3
pop edi
cmp edx, edi
jge 0x58f7a3
mov byte [ecx], bl
or dword [eax], 0xffffffff
inc edx
inc ecx
add eax, 4
jmp 0x58f787
mov dword [ebp - 0xc], 8
call fcn.00582484
mov dword [eax], ebx
call fcn.0058248d
mov dword [eax], ebx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
push dword [ebp + 0x14]
push dword [ebp - 0xc]
push 1
push ebx
push ebx
push dword [ebp - 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push dword [ebp - 0x34]
mov edi, eax
call fcn.0057cfc7
cmp esi, ebx
pop ecx
jne 0x58f7fa
push edi
call fcn.00582496
pop ecx
or eax, 0xffffffff
jmp 0x58f843
cmp dword [ebp + 8], 2
jne 0x58f806
push ebx
call fcn.0057deca
cmp dword [ebp + 8], ebx
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
jne 0x58f833
push 0xffffffffffffffff
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
mov ebx, dword [ebp - 0x14]
push dword [ebp - 0x24]
call esi
jmp 0x58f83c
cmp dword [ebp + 8], 4
je 0x58f82c
mov ebx, dword [ebp - 0x24]
push dword [ebp - 0x20]
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x59078d
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0057caf0
mov eax, dword [0x620368]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00583669
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x5908c2
push 2
push esi
push dword [ebp + 8]
call fcn.00583669
add esp, 0xc
cmp eax, ebx
je 0x5908c2
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x590862
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00587c80
push 0x8000
push dword [ebp + 8]
call fcn.00590efc
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x590818
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.00582c38
add esp, 0xc
cmp eax, 0xffffffff
je 0x590838
sub edi, eax
test edi, edi
jg 0x590810
jmp 0x590850
call fcn.0058248d
cmp dword [eax], 5
jne 0x59084d
call fcn.00582484
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.00590efc
pop ecx
pop ecx
jmp 0x5908aa
jge 0x5908aa
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00583669
push dword [ebp + 8]
call fcn.0058eca1
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x5908aa
call fcn.00582484
mov dword [eax], 0xd
call fcn.0058248d
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.00583669
add esp, 0xc
mov eax, esi
pop edi
jmp 0x5908c4
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0057b3d4
leave
ret
Function at 0x590d26
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x590d3f
or eax, 0xffffffff
jmp 0x590da0
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x590d9c
push 0x3d
push esi
call fcn.0058f5f3
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x590d9c
cmp esi, eax
je 0x590d9c
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x66575c]
sete cl
cmp eax, dword [0x665760]
mov dword [ebp - 4], ecx
jne 0x590d82
mov edi, eax
call fcn.00590cc5
mov dword [0x66575c], eax
cmp eax, ebx
jne 0x590ddb
cmp dword [ebp + 0xc], ebx
je 0x590da4
cmp dword [0x665764], ebx
je 0x590da4
call fcn.0058fa91
test eax, eax
je 0x590ddb
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
je 0x590dad
xor eax, eax
jmp 0x590d9f
push 4
call fcn.0057d0df
cmp eax, ebx
pop ecx
mov dword [0x66575c], eax
je 0x590d9c
mov dword [eax], ebx
cmp dword [0x665764], ebx
jne 0x590ddb
push 4
call fcn.0057d0df
cmp eax, ebx
pop ecx
mov dword [0x665764], eax
je 0x590d9c
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
mov ebx, dword [0x66575c]
sub edi, esi
push esi
call fcn.00590c78
mov edi, eax
test edi, edi
pop ecx
jl 0x590e42
cmp dword [ebx], 0
je 0x590e42
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.0057cfc7
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x590e22
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x590e83
mov ecx, dword [esi + 4]
inc edi
mov dword [esi], ecx
lea esi, [ebx + edi*4]
cmp dword [esi], eax
jne 0x590e19
mov eax, edi
shl eax, 2
push eax
push dword [0x66575c]
call fcn.00580ddc
test eax, eax
mov esi, dword [ebp - 8]
pop ecx
pop ecx
je 0x590e83
jmp 0x590e7e
cmp dword [ebp - 4], 0
jne 0x590eea
test edi, edi
jge 0x590e52
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x66575c]
call fcn.00580ddc
test eax, eax
pop ecx
pop ecx
je 0x590d9c
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov ecx, dword [ebp + 8]
and dword [ecx], 0
mov dword [0x66575c], eax
cmp dword [ebp + 0xc], 0
je 0x590ed5
push esi
call fcn.0057e3f0
inc eax
inc eax
push eax
call fcn.0057d0df
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x590ed5
push esi
push edi
call fcn.00581230
mov eax, edi
sub eax, esi
add eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov byte [eax], 0
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableA]
test eax, eax
jne 0x590ece
or dword [ebp - 0x10], 0xffffffff
push edi
call fcn.0057cfc7
pop ecx
cmp dword [ebp - 4], 0
je 0x590ee2
push esi
call fcn.0057cfc7
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x590d9f
push esi
call fcn.0057cfc7
mov eax, dword [ebp + 8]
and dword [eax], 0
pop ecx
jmp 0x590da9
Function at 0x594730
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5b84c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push esi
mov esi, ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov byte [esp + 0x10], 0
push 1
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0xc]
push 0x5de1f8
push eax
mov dword [esp + 0x40], 2
call fcn.00541240
add esp, 0x10
mov ecx, dword [esp + 0x38]
mov edx, dword [esi]
push eax
mov eax, dword [esp + 0x40]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x3c], 3
call dword [edx + 0x18]
mov ecx, dword [esp + 8]
test ecx, ecx
mov byte [esp + 0x30], 2
pop esi
je 0x5947bc
mov edx, dword [ecx]
push 1
call dword [edx]
push edi
xor edi, edi
push edi
xor ecx, ecx
xor eax, eax
call fcn.0057cfc7
mov ecx, dword [esp + 0x2c]
add esp, 4
pop edi
mov dword fs:[0], ecx
add esp, 0x30
ret 0x10

Function at 0x5955e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5b8568
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [esp + 0x2c]
push esi
push 0x5de5f4
mov esi, ecx
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.00409b50
add esp, 0xc
push eax
push 0
mov ecx, esi
mov dword [esp + 0x30], 0
call fcn.0053f1d0
cmp dword [esp + 0x1c], 0x10
mov dword [esi], vtable.CryptoPP::NotImplemented.0
jb 0x59563e
mov edx, dword [esp + 8]
push edx
call fcn.0057ad56
add esp, 4
mov ecx, dword [esp + 0x20]
mov dword [esi], vtable.CryptoPP::BufferedTransformation::BlockingInputOnly.0
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 4
Function at 0x5958c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5b85e9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push ebx
mov dword [esp + 0xc], esi
call fcn.00593880
mov dword [esi + 0xc], ebx
mov dword [esi + 0x14], ebx
mov dword [esp + 0x14], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov cl, byte [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x2c]
mov byte [esi + 0x28], cl
push 0xffffffffffffffff
lea ecx, [esi + 0x34]
mov dword [esi], vtable.CryptoPP::HashFilter.1.0
mov dword [esi + 4], vtable.CryptoPP::HashFilter.0
mov dword [esi + 0x24], eax
push ebx
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push edx
mov byte [esp + 0x20], 2
mov byte [ecx + 4], bl
call fcn.00403eb0
mov eax, dword [esp + 0x30]
push 0xffffffffffffffff
lea ecx, [esi + 0x50]
push ebx
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push eax
mov byte [esp + 0x20], 3
mov byte [ecx + 4], bl
call fcn.00403eb0
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov byte [esp + 0x14], 4
jge 0x59596a
mov ecx, dword [esi + 0x24]
mov edx, dword [ecx]
call dword [edx + 0x1c]
mov dword [esi + 0x2c], eax
mov ecx, dword [esi + 0xc]
cmp ecx, ebx
je 0x595996
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [esp + 0x20]
mov dword [esi + 0xc], ecx
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 0x18
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0xc]
mov dword [esi + 0xc], edx
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x18

Function at 0x595a30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5b8621
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
lea ecx, [esp + 8]
mov dword [esp + 4], 0
call fcn.0059db00
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push ecx
mov ecx, eax
mov dword [esp + 0x28], 1
call fcn.00595780
mov esi, dword [esp + 0x24]
push eax
mov ecx, esi
call fcn.0059db20
mov ecx, dword [esp + 0xc]
test ecx, ecx
mov dword [esp + 4], 1
mov byte [esp + 0x1c], 0
je 0x595a9f
mov edx, dword [ecx]
push 1
call dword [edx]
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret

Function at 0x595bf0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5b8638
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push 0
mov esi, ecx
call fcn.00593880
mov eax, dword [esp + 0x18]
mov dword [esi + 0xc], eax
mov dword [esi + 0x14], 0
mov ecx, dword [esp + 8]
mov dword [esi], vtable.CryptoPP::FilterWithBufferedInput.1.0
mov dword [esi + 4], vtable.CryptoPP::FilterWithBufferedInput.0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x417a10
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0
push 0
push 3
push 0
push 3
push 0x40000000
push str.CONOUT_
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test eax, eax
je 0x417a5f
mov ecx, dword [0x4c3a9c]
push 0x4c378c
push ecx
mov dword [0x4c0064], edi
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x43ba03
Capabilities:
Encode data using xor

Disassembly:
inc ebx
scasd eax, dword es:[edi]
jne 0x43ba44
shr dword [0x64a6a476], 1
pop ebx
mov al, byte [0xca0dd041]
and eax, ecx
sti
loope 0x43ba81
aad 0x96
retf
outsd dx, dword [esi]
xchg al, dh
pop es
inc edx
int3
mov esi, 0x25eca5fe
out 0xa4, al
jno 0x43ba90
push cs
sub al, 0x7d
mov eax, dword [0x8a447ee9]
mov eax, dword [0xa6854d6b]
stc
mov dword [ecx - 0x73], ecx
mov ch, byte [ecx]
test dword [edi + esi - 0x12], ecx
dec ecx
lea ecx, [edx + 0x374c8529]
out dx, al
xchg edx, eax
jne 0x43ba79
or cl, byte [edx + 0x22932851]
sub dword gs:[edi - 0x30], ebp
jno 0x43bb0b
push ebp
cwde
adc byte [edi - 0xb30e817], bh
invalid
adc al, 0xdc
inc ebx
call 0x4a41ebfb
xor esp, dword [ebp + ecx - 0x1f]
xor dl, byte [edi + 0x79c9de02]
aaa
xlatb
mov byte [0x6520a982], al
inc edi
lds esi, [edi - 0x381109f1]
scasd eax, dword es:[edi]
add dl, byte [ecx + 0x4d]
sahf
sbb eax, 0x29573761
mov al, byte [0x506ab6b]
mov dword [0xbdad3c98], eax
cwde
leave
adc al, byte [edx]
pop ebp
add al, byte es:[esi]
insd dword es:[edi], dx
pop es
invalid

Function at 0x46970b
Capabilities:
Encode data using xor

Disassembly:
jo 0x46971b
and dl, ah
inc ebp
dec ecx
push ss
xor eax, 0xf72b338d
leave
outsb dx, byte [esi]
mov dl, 2
mov esp, 0xcf2612c3
lahf
test byte [ecx + 0x21296db], bh
popfd
lahf
jnp 0x469766
xchg ebx, eax
invalid
sub edi, edx
mov dword [0x97a28351], eax
inc ecx
enter 0x533f, 0xffffffffffffffc9
xchg cl, ah
xor esp, ebp
inc eax
xor dword [ebx + 0x3d458365], esp
pop es
stc
adc dword [ecx - 0x33687970], 0xf
xchg esp, eax
scasd eax, dword es:[edi]
cmp al, byte [ebx + 0x47]
stosd dword es:[edi], eax
or eax, 0x10f6f15c
invalid

Function at 0x49f62f
Capabilities:
Encode data using xor

Disassembly:
fmul qword [esi - 0x4e]
jno 0x49f5ee
push esp
mov esi, 0xab555488
push ebp
stosd dword es:[edi], eax
push esp
add ch, byte [ebp + 0x5c3441bc]
pop esp
aam 0x9d
sal dword [esi], 1
mov esp, 0xb50216d4
invalid
mov ch, 0xc6
push 0x24ed91b4
push ss
sbb dword [ecx - 0x11beaa3e], 0x70
mov ah, 0xee
jecxz 0x49f5b6
sti
imul esi, dword [esi - 0x1f], 0xa2260f2f
and ebx, dword [ebx - 0x39bef7f6]
Function at 0x4b8e95
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c0350
cmp edx, dword [eax]
je 0x4b8eb7
add eax, 8
inc ecx
cmp eax, 0x4c03e0
jl 0x4b8ea8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c0350]
jne 0x4b8fe5
mov eax, dword [0x4c4cdc]
cmp eax, 1
je 0x4b8fbf
test eax, eax
jne 0x4b8ee8
cmp dword [0x4c0278], 1
je 0x4b8fbf
cmp edx, 0xfc
je 0x4b8fe5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4b8f1f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004b9880
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004b9d10
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4b8f62
lea eax, [ebp - 0x1a4]
push eax
call fcn.004b9d10
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4be6bc
push edi
call fcn.004bbbe0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004b9880
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004b9890
lea eax, [ebp - 0xa0]
push 0x4be69c
push eax
call fcn.004b9890
push dword [esi + 0x4c0354]
lea eax, [ebp - 0xa0]
push eax
call fcn.004b9890
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004bbb54
add esp, 0x2c
pop edi
jmp 0x4b8fe5
lea eax, [ebp + 8]
lea esi, [esi + 0x4c0354]
push 0
push eax
push dword [esi]
call fcn.004b9d10
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x10001b00
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, edx
mov eax, 0x55555556
imul esi
mov dword [ebp - 8], esi
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
lea edx, [ebx + 1]
mov dword [ebp - 0xc], edx
test edx, edx
jle 0x10001ca7
push edi
mov edi, dword [ebp + 8]
lea esi, [ecx + 2]
add edi, 2
mov dword [ebp - 4], edx
mov cl, byte [esi - 2]
shr cl, 2
cmp cl, 0x19
ja 0x10001b46
add cl, 0x41
jmp 0x10001b86
lea eax, [ecx - 0x1a]
cmp al, 0x19
ja 0x10001b52
add cl, 0x47
jmp 0x10001b86
lea eax, [ecx - 0x34]
cmp al, 9
ja 0x10001b5e
sub cl, 4
jmp 0x10001b86
cmp cl, 0x3e
jne 0x10001b67
mov cl, 0x2b
jmp 0x10001b86
cmp cl, 0x3f
jne 0x10001b70
mov cl, 0x2f
jmp 0x10001b86
push 0
mov edx, 0x24
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXBase64.cpp
call fcn.10024152
add esp, 4
mov cl, 0x3d
mov byte [edi - 2], cl
mov cl, byte [esi - 2]
mov al, byte [esi - 1]
and cl, 3
shl cl, 4
shr al, 4
add cl, al
cmp cl, 0x19
ja 0x10001ba4
add cl, 0x41
jmp 0x10001be4
lea eax, [ecx - 0x1a]
cmp al, 0x19
ja 0x10001bb0
add cl, 0x47
jmp 0x10001be4
lea eax, [ecx - 0x34]
cmp al, 9
ja 0x10001bbc
sub cl, 4
jmp 0x10001be4
cmp cl, 0x3e
jne 0x10001bc5
mov cl, 0x2b
jmp 0x10001be4
cmp cl, 0x3f
jne 0x10001bce
mov cl, 0x2f
jmp 0x10001be4
push 0
mov edx, 0x24
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXBase64.cpp
call fcn.10024152
add esp, 4
mov cl, 0x3d
mov byte [edi - 1], cl
mov al, byte [esi - 1]
mov cl, byte [esi]
and al, 0xf
shl al, 2
shr cl, 6
add al, cl
cmp al, 0x19
ja 0x10001bfe
add al, 0x41
jmp 0x10001c3c
lea ecx, [eax - 0x1a]
cmp cl, 0x19
ja 0x10001c0a
add al, 0x47
jmp 0x10001c3c
lea ecx, [eax - 0x34]
cmp cl, 9
ja 0x10001c16
sub al, 4
jmp 0x10001c3c
cmp al, 0x3e
jne 0x10001c1e
mov al, 0x2b
jmp 0x10001c3c
cmp al, 0x3f
jne 0x10001c26
mov al, 0x2f
jmp 0x10001c3c
push 0
mov edx, 0x24
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXBase64.cpp
call fcn.10024152
add esp, 4
mov al, 0x3d
mov byte [edi], al
mov cl, byte [esi]
and cl, 0x3f
cmp cl, 0x19
ja 0x10001c4d
add cl, 0x41
jmp 0x10001c8d
lea eax, [ecx - 0x1a]
cmp al, 0x19
ja 0x10001c59
add cl, 0x47
jmp 0x10001c8d
lea eax, [ecx - 0x34]
cmp al, 9
ja 0x10001c65
sub cl, 4
jmp 0x10001c8d
cmp cl, 0x3e
jne 0x10001c6e
mov cl, 0x2b
jmp 0x10001c8d
cmp cl, 0x3f
jne 0x10001c77
mov cl, 0x2f
jmp 0x10001c8d
push 0
mov edx, 0x24
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXBase64.cpp
call fcn.10024152
add esp, 4
mov cl, 0x3d
mov byte [edi + 1], cl
add esi, 3
add edi, 4
sub dword [ebp - 4], 1
jne 0x10001b36
mov esi, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
pop edi
lea eax, [ebx + ebx*2]
sub esi, eax
cmp esi, 1
jne 0x10001cbd
mov eax, dword [ebp + 8]
mov word [eax + ebx*4 + 2], 0x3d3d
jmp 0x10001cca
cmp esi, 2
jne 0x10001ccc
mov eax, dword [ebp + 8]
mov byte [eax + ebx*4 + 3], 0x3d
mov ebx, edx
mov ecx, dword [ebp + 8]
lea eax, [ebx*4]
pop esi
pop ebx
mov byte [eax + ecx], 0
mov esp, ebp
pop ebp
ret