joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100faf61
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.100faedd
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100fb0d0
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100fb0d0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x100fb085
jg 0x100fafbd
test eax, eax
je 0x100fb07b
push 1
push 0x1000
call fcn.100ebf07
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100fafe0
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x100fb072
push 0x8000
push ebx
call fcn.100fae0e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100fb009
jg 0x100fb004
cmp ecx, 0x1000
jb 0x100fb009
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100ef0b1
add esp, 0x10
cmp eax, 0xffffffff
je 0x100fb04e
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x100fb004
jl 0x100fb035
test ecx, ecx
jne 0x100faff6
push dword [ebp - 0xc]
push ebx
call fcn.100fae0e
push esi
call fcn.100ebc05
add esp, 0xc
xor ebx, ebx
jmp 0x100fb0de
cmp byte [edi + 0x24], 0
je 0x100fb065
cmp dword [edi + 0x20], 5
jne 0x100fb065
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x100fb070
mov ebx, dword [edi + 0x18]
jmp 0x100fb072
xor ebx, ebx
push esi
call fcn.100ebc05
pop ecx
jmp 0x100fb0de
test ecx, ecx
jg 0x100fb047
jl 0x100fb085
test eax, eax
jae 0x100fb047
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100ef513
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x100fb0a5
cmp byte [edi + 0x1c], 0
je 0x100fb047
jmp 0x100fb0d6
push ebx
call fcn.100f8dee
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100fb047
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x100fb0de
cmp byte [edi + 0x1c], 0
je 0x100fb0db
mov ebx, dword [edi + 0x18]
jmp 0x100fb0de
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.100ef513
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100fbbb0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100fbbdd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100fbbdd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x406550
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x4334c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x4343bc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x24c], ebx
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x434100]
cmp eax, dword [ecx + 4]
jg 0x406717
cmp dword [0x433498], 0
jne 0x4066fa
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
call fcn.00407330
test al, al
jne 0x406609
push esi
lea eax, [ebp - 0x1c]
push str._05d
push eax
call fcn.00401250
mov esi, eax
add esp, 0xc
cmp esi, 0x433488
je 0x4066f1
mov ecx, dword [0x43349c]
cmp ecx, 0xf
jbe 0x4066ae
mov edx, dword [0x433488]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4066a4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40674d
jmp 0x4066a4
push edi
push 0
push 2
mov dword [ebp - 0x24c], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x228
mov edi, eax
lea eax, [ebp - 0x244]
push 0
push eax
call fcn.0040fb80
add esp, 0xc
mov dword [ebp - 0x248], 0x22c
lea eax, [ebp - 0x248]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x406677
cmp dword [ebp - 0x240], esi
je 0x40666b
lea eax, [ebp - 0x248]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x406650
jmp 0x406677
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x24c], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push dword [ebp - 0x24c]
lea eax, [ebp - 0x1c]
push str._05d__05d
push eax
call fcn.00401250
add esp, 0x10
mov esi, eax
cmp esi, 0x433488
pop edi
jmp 0x4065c6
push ecx
push edx
call fcn.0040e163
add esp, 8
mov dword [0x433498], 0
mov dword [0x43349c], 0xf
mov byte [0x433488], 0
movups xmm0, xmmword [esi]
movups xmmword [0x433488], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [0x433498], xmm0
mov dword [esi + 0x10], 0
mov byte [esi], 0
mov dword [esi + 0x14], 0xf
lea ecx, [ebp - 0x1c]
call fcn.004014b0
pop esi
push 0x433488
mov ecx, ebx
call fcn.004027e0
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0040e171
mov esp, ebp
pop ebp
ret
push 0x434100
call fcn.0040e444
add esp, 4
cmp dword [0x434100], 0xffffffff
jne 0x40658d
push 0x427320
call fcn.0040e3de
push 0x434100
call fcn.0040e3f3
add esp, 8
jmp 0x40658d
call fcn.0041156f
int3
Function at 0x406760
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426566
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x4334c0]
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]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
mov dword [ebp - 0x24c], esi
call fcn.0040fb80
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x218]
push 0x7e
push eax
call fcn.0040f880
lea ecx, [ebp - 0x218]
add esp, 8
mov edx, eax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4067e5
sub ecx, edi
mov dword [ebp - 0x220], 0
sar ecx, 1
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], 0
xorps xmm0, xmm0
push ecx
lea ecx, [ebp - 0x230]
movups xmmword [ebp - 0x230], xmm0
push eax
test edx, edx
je 0x4068de
call fcn.00401f10
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.0040b960
push eax
push esi
mov byte [ebp - 4], 1
call fcn.00406d70
mov ecx, dword [ebp - 0x234]
add esp, 0x10
cmp ecx, 0xf
jbe 0x40688f
mov edx, dword [ebp - 0x248]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406885
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406923
push ecx
push edx
call fcn.0040e163
add esp, 8
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
mov ecx, dword [ebp - 0x21c]
cmp ecx, 7
jbe 0x406906
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4068fc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406923
jmp 0x4068fc
call fcn.00401f10
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 2
push eax
push esi
call fcn.0040b960
add esp, 8
jmp 0x4068aa
push ecx
push edx
call fcn.0040e163
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.0040e171
mov esp, ebp
pop ebp
ret
call fcn.0041156f
int3
Function at 0x40ebbb
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40ebfa
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40ebfa
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40ebfa
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40ebfa
cmp dword [ecx + 0x74], 0xe
jbe 0x40ebfa
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x419cdb
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00419c5d

Function at 0x41c521
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x434a98]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41c561
cmp byte [ebx], 0xa
jne 0x41c561
or byte [eax + edi + 0x28], 4
jmp 0x41c566
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41c664
mov al, byte [edx]
cmp al, 0x1a
je 0x41c646
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41c595
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41c5ba
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41c5c4
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41c577
jmp 0x41c664
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41c641
cmp dword [ebp - 0xc], 0
je 0x41c641
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x434a98]
test byte [eax + edi + 0x28], 0x48
je 0x41c61b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41c606
mov byte [esi], dl
jmp 0x41c617
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x434a98]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41c664
cmp byte [ebp - 1], 0xa
jne 0x41c62a
cmp esi, ebx
jne 0x41c62a
mov byte [esi], 0xa
jmp 0x41c663
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041cf55
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41c664
mov byte [esi], 0xd
jmp 0x41c663
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x434a98]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41c660
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41c664
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41c66d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x434a98]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41c6b0
cmp word [esi], dx
jne 0x41c6b0
or byte [edi + eax + 0x28], 4
jmp 0x41c6b5
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41c7ee
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41c7ce
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41c6f7
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41c72d
cmp eax, edx
jae 0x41c739
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41c6cf
jmp 0x41c7ee
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41c7ca
cmp dword [ebp - 0x14], 0
je 0x41c7ca
mov eax, dword [ebx*4 + 0x434a98]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41c7a2
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x41c7e8
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x434a98]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x434a98]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x434a98]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x41c7eb
pop ebx
cmp word [ebp - 4], bx
jne 0x41c7b3
cmp esi, dword [ebp + 0xc]
jne 0x41c7b3
mov word [esi], bx
jmp 0x41c7eb
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041cf55
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41c7ee
push 0xd
jmp 0x41c7e7
mov ecx, dword [ebx*4 + 0x434a98]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41c7e5
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41c7ee
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41e306
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42c238
push 0x42c230
push str.FlsAlloc
push 0x1e
call fcn.0041e1a4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41e33a
push dword [ebp + 8]
mov ecx, esi
call dword [0x4281d0]
call esi
jmp 0x41e340
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41e384
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42c248
push 0x42c240
push str.FlsGetValue
push 0x20
call fcn.0041e1a4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41e3bb
push dword [ebp + 8]
mov ecx, esi
call dword [0x4281d0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41f6ba
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41f757
push ebx
push esi
call fcn.0041f683
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041dfa0
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41f704
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41f756
push edi
push eax
call fcn.0041a58d
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41f724
call fcn.0041a553
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41f755
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041dfa0
add esp, 0x20
test eax, eax
jne 0x41f743
push edi
call fcn.0041a553
jmp 0x41f74b
push ebx
call fcn.0041a553
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x424565
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004244e1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4246dd
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4246dd
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x42468c
jg 0x4245be
test eax, eax
je 0x424682
push 1
push 0x1000
call fcn.0041e6bd
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4245e4
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x424679
push 0x8000
push ebx
call fcn.00417c54
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x424610
jg 0x42460b
cmp ecx, 0x1000
jb 0x424610
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041d8a0
add esp, 0x10
cmp eax, 0xffffffff
je 0x424655
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x42460b
jl 0x42463c
test ecx, ecx
jne 0x4245fd
push dword [ebp - 0xc]
push ebx
call fcn.00417c54
push esi
call fcn.0041a553
add esp, 0xc
xor edi, edi
jmp 0x4246ee
cmp byte [edi + 0x24], 0
je 0x42466c
cmp dword [edi + 0x20], 5
jne 0x42466c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x424677
mov edi, dword [edi + 0x18]
jmp 0x424679
xor edi, edi
push esi
call fcn.0041a553
pop ecx
jmp 0x4246ee
test ecx, ecx
jg 0x42464e
jl 0x42468c
test eax, eax
jae 0x42464e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041cf55
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4246af
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x42464e
jmp 0x4246e6
push ebx
call fcn.0041fb24
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x42464e
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x4246ee
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4246eb
mov edi, dword [edi + 0x18]
jmp 0x4246ee
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041cf55
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x425ab0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x425add
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x425add
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x43a711
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x1c], 0xf
lea ecx, [ebp + 8]
mov edx, dword [ebp + 0x18]
cmova ecx, dword [ebp + 8]
push 6
push 0x421374
push 0
call fcn.00442da6
add esp, 0xc
cmp eax, 0xffffffff
je 0x43a73f
push 0x42137c
jmp 0x43a768
cmp dword [ebp + 0x1c], 0xf
lea ecx, [ebp + 8]
mov edx, dword [ebp + 0x18]
cmova ecx, dword [ebp + 8]
push 4
push 0x421398
push 0
call fcn.00442da6
add esp, 0xc
cmp eax, 0xffffffff
je 0x43a76f
push 0x4213a0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
pop ecx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp + 8]
pop ebp
jmp fcn.0043d60d
Function at 0x43d209
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4010c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x38], ebx
je 0x43d261
cmp byte [esi + 0x3d], bl
je 0x43d261
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x43d29b
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, ebx
je 0x43d272
sub eax, 1
je 0x43d275
dec eax
sub eax, 1
jne 0x43d29b
mov byte [esi + 0x3d], bl
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004caec8
leave
ret
mov byte [esi + 0x3d], bl
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x43d293
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x43d29b
cmp byte [esi + 0x3d], bl
sete al
jmp 0x43d263
xor al, al
jmp 0x43d263
Function at 0x4562b2
Capabilities:
Encrypt data using dpapi

Disassembly:
push 0x5c
mov eax, 0x4ce5af
call fcn.004cbf06
mov esi, ecx
push esi
lea ecx, [ebp - 0x68]
call fcn.0043884a
and dword [ebp - 4], 0
lea edi, [ebp - 0x1c]
imul ecx, dword [ebp - 0x58], 3
xor eax, eax
stosd dword es:[edi], eax
shr ecx, 2
stosd dword es:[edi], eax
push ecx
stosd dword es:[edi], eax
lea eax, [ecx + 1]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00456438
xor ebx, ebx
lea eax, [ebp - 0x68]
inc ebx
mov byte [ebp - 4], bl
cmp dword [ebp - 0x54], 0xf
push dword [ebp - 0x58]
cmova eax, dword [ebp - 0x68]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.libcrypto_3.dll_EVP_DecodeBlock]
pop ecx
pop ecx
push dword [ebp - 0x18]
lea ecx, [ebp - 0x40]
push dword [ebp - 0x1c]
call fcn.00442740
lea ecx, [ebp - 0x1c]
call fcn.0043bc45
lea ecx, [ebp - 0x68]
call fcn.0043d60d
push 0xffffffffffffffff
push 5
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 2
push eax
lea ecx, [ebp - 0x40]
call fcn.0043df01
push eax
lea ecx, [ebp - 0x40]
call fcn.0043bf1c
lea ecx, [ebp - 0x28]
call fcn.0043d60d
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x40]
cmova eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x50]
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x456399
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x28]
call fcn.004384ab
push eax
mov ecx, esi
call fcn.0043bf1c
lea ecx, [ebp - 0x28]
call fcn.0043d60d
jmp 0x45639b
xor bl, bl
lea ecx, [ebp - 0x40]
call fcn.0043d60d
mov al, bl
call fcn.004cbeb5
ret
Function at 0x45bccd
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.004c32c2
test eax, eax
jne 0x45be12
push esi
push 5
pop ecx
call fcn.00458e70
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
je 0x45bcf8
push esi
call dword [fcn.00401258]
pop ecx
mov ecx, dword [ebp + 8]
push edi
test ecx, ecx
jle 0x45be14
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x45be14
cmp dword [0x4d1298], 0
push ebx
jne 0x45bd91
xor ebx, ebx
push ebx
call fcn.00458b70
mov esi, 0x424ebc
mov edi, 0x4d1298
pop ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
test eax, eax
jne 0x45bd43
push 0x2c
push ebx
push 0x4d12a8
call sub.VCRUNTIME140.dll_memset
jmp 0x45bd6d
mov esi, dword [0x40131c]
test esi, esi
je 0x45bd62
push 0x2c
push ebx
push 0x4d12a8
call sub.VCRUNTIME140.dll_memset
mov dword [0x4d12a8], esi
jmp 0x45bd6d
push 0x4d12a8
push 0x2c
push eax
call dword [eax + 0x38]
mov eax, dword [0x4d12c8]
add esp, 0xc
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 0xc]
mov dword [0x4d12d4], eax
mov dword [0x4d12c8], ebx
mov byte [0x4d1318], bl
jmp 0x45bd97
mov bl, byte [0x4d1318]
movzx eax, bl
cmp ecx, eax
jle 0x45bde5
test bl, bl
je 0x45bdc0
movzx eax, bl
push eax
push 0x4d12d8
push edi
call sub.VCRUNTIME140.dll_memcpy
movzx eax, byte [0x4d1318]
add esp, 0xc
sub dword [ebp + 8], eax
add edi, eax
inc dword [0x4d12c8]
mov edx, 0x4d1298
mov ecx, 0x4d12d8
call fcn.0045b9a6
mov ecx, dword [ebp + 8]
mov bl, 0x40
mov byte [0x4d1318], bl
cmp ecx, 0x40
jg 0x45bd9e
movzx eax, bl
sub eax, ecx
push ecx
add eax, 0x4d12d8
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp + 8]
add esp, 0xc
sub byte [0x4d1318], cl
pop ebx
test esi, esi
je 0x45be10
push esi
call dword [fcn.00401260]
pop ecx
pop edi
pop esi
leave
ret
and dword [0x4d1298], 0
jmp 0x45be04

Function at 0x45be3e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov eax, ecx
mov edi, edx
push 0
push 0x14
mov dword [ebp - 4], edi
and dword [eax], 0
mov dword [ebp - 8], eax
call fcn.00459372
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x45be68
push 7
pop eax
jmp 0x45bed9
cmp byte [0x40120c], 0
push ebx
je 0x45beab
mov ecx, 0xc8
call fcn.0045c4f9
test eax, eax
jne 0x45beab
mov eax, dword [ebp + 8]
lea ebx, [esi + 8]
mov dword [ebx], edi
lea edi, [esi + 4]
push edi
mov dword [esi + 0xc], eax
xor eax, eax
push eax
push esi
push 0x45be1d
push eax
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x45beba
jmp 0x45beae
lea ebx, [esi + 8]
mov edi, esi
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea edi, [esi + 4]
cmp dword [ebx], 0
pop ebx
jne 0x45bed2
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push dword [ebp + 8]
mov dword [edi], eax
call dword [ebp - 4]
pop ecx
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [eax], esi
xor eax, eax
pop edi
pop esi
leave
ret