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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ecx, 0x1427
lea esp, [esp]
mov eax, 0x42df9bb1
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x4010f0
mov ecx, 0xf7
mov edi, 0x534b
lea ecx, [ecx]
mov eax, 0x9c09c09d
imul edi
add edx, edi
sar edx, 6
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x401110
mov eax, dword [ebp + 8]
mov edi, 0x64
test eax, eax
je 0x401248
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x401248
cmp eax, edx
jae 0x401248
mov edx, 0x5a7
mov dword [ebp - 4], 0xd1
mov eax, 0x7d
lea esp, [esp]
cmp eax, 0xd1
cmovg eax, dword [ebp - 4]
dec edx
jne 0x401160
mov ebx, 0x40f4
mov eax, 0x84a9f9c9
imul ebx
add edx, ebx
sar edx, 7
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x401171
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp + 8]
mov edx, 0x7d75
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], 0x70
mov ebx, 0x61d2
mov eax, 0x6e
cmp eax, 0x70
cmovl eax, dword [ebp - 4]
dec edx
jne 0x4011a5
mov esi, 0x1af7
mov eax, 0x473c1ab7
imul esi
sar edx, 6
mov esi, edx
shr esi, 0x1f
add esi, edx
jne 0x4011b4
mov eax, 0x11c7
mov edx, 0x73
mov esi, 0x5b59
cmp ecx, edx
cmovg ecx, edx
dec eax
jne 0x4011d6
xor ecx, ecx
cmp dword [ebp + 0xc], ecx
jbe 0x401203
mov edx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
jmp 0x4011f0
mov al, byte [ecx + edx + 1]
add al, 0x40
xor byte [ecx + edx], al
inc ecx
cmp ecx, edi
jb 0x4011f0
mov edi, 0x64
mov eax, 0x82082083
imul ebx
add edx, ebx
sar edx, 6
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x401203
jmp 0x401220
mov eax, 0xb60b60b7
imul esi
add edx, esi
sar edx, 7
mov esi, edx
shr esi, 0x1f
add esi, edx
jne 0x401220
mov eax, 0x5e58
mov ecx, 0x34
nop
cmp edi, ecx
cmovl edi, ecx
dec eax
jne 0x401240
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402ee0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, 0x694b
mov esi, 0x1712
xor ecx, ecx
mov eax, 0x4bda12f7
imul ebx
sar edx, 4
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x402ef2
mov eax, 0x5397829d
imul esi
sar edx, 4
mov esi, edx
shr esi, 0x1f
add esi, edx
jne 0x402f05
mov esi, dword [ebp + 8]
inc byte [esi + 0x10f]
movzx eax, byte [esi + 0x10f]
lea ebx, [esi + 0xa]
add ebx, eax
movzx eax, byte [esi + 0x128]
movzx edx, byte [ebx]
add eax, edx
movzx edx, al
mov byte [esi + 0x128], al
movzx eax, byte [edx + esi + 0xa]
mov cl, byte [ebx]
mov byte [ebx], al
mov byte [ebp + 0xb], cl
mov byte [edx + esi + 0xa], cl
mov ecx, 0x2f23
jmp 0x402f60
mov eax, 0xfe03f81
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x402f60
mov bl, byte [ebx]
add bl, byte [ebp + 0xb]
mov edi, 0x265c
lea ecx, [ecx]
mov eax, 0x3a196b1f
imul edi
sar edx, 5
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x402f80
mov edi, 0xe
inc ecx
mov eax, 0x66666667
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, ecx
lea eax, [eax + eax*4]
sub edx, eax
jne 0x402fb3
inc ecx
cmp ecx, 0x39d1
jl 0x402f98
movzx eax, bl
mov edx, 0x72
mov cl, byte [eax + esi + 0xa]
mov eax, 0x3165
lea esp, [esp]
cmp edi, edx
cmovl edi, edx
dec eax
jne 0x402fd0
movzx eax, cl
movzx ecx, byte [ebp + 0xc]
pop edi
pop esi
xor eax, ecx
pop ebx
pop ebp
ret
Function at 0x405d6b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a0c], 0
push esi
jne 0x405da2
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405d7c
mov dword [ecx*4 + 0x422a08], eax
inc ecx
cmp ecx, 0x100
jl 0x405d77
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405dd3
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a08]
xor eax, esi
inc ecx
dec edx
jne 0x405db5
pop edi
not eax
pop esi
ret 0xc

Function at 0x433004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x249e24a2
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..rsrc
nop
nop
nop
nop
cmp eax, 0
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x34d64d4a
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4300c0
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x40291f
Capabilities:
Get file size

Disassembly:
push ecx
and dword [esp], 0
push ebp
push esi
push dword [esp + 0x10]
mov esi, ecx
call fcn.00409c82
mov ebp, eax
cmp ebp, 0xffffffff
pop ecx
je 0x402980
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
mov dword [esi + 0x10], eax
jbe 0x402979
push ebx
push edi
lea ebx, [esi + 4]
mov edi, eax
mov eax, ebx
call fcn.0040b5f5
push dword [esi + 0x10]
mov ebx, dword [ebx]
push ebx
push ebp
call fcn.0040a8ae
add esp, 0xc
test eax, eax
pop edi
pop ebx
je 0x402979
call fcn.004026c9
mov dword [esp + 8], 1
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 8]
pop esi
pop ebp
pop ecx
ret 4

Function at 0x40374f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.0044ddb0
push ebx
push esi
mov esi, 0x1fff
xor ebx, ebx
push esi
lea eax, [ebp - 0x2003]
push ebx
push eax
mov byte [ebp - 0x2004], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push ebx
push ebx
push esi
lea eax, [ebp - 0x2004]
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x2004]
push eax
call sub.msvcrt.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x2004]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
leave
ret

Function at 0x404683
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
push ebx
push esi
mov esi, eax
push edi
lea eax, [ecx + 0x10]
push eax
lea eax, [ecx + 8]
push eax
lea eax, [ebp - 0x308]
mov edi, edx
call fcn.00405fbf
push 8
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0x14
test esi, esi
jbe 0x4046fa
mov ebx, dword [ebp + 0xc]
sub ebx, edi
dec esi
shr esi, 3
inc esi
lea ecx, [ebp - 0x188]
lea eax, [edi + ebx]
push ecx
call fcn.0040603b
and dword [ebp + 8], 0
pop ecx
mov eax, edi
mov ecx, dword [ebp + 8]
lea ecx, [ebp + ecx - 8]
mov dl, byte [ecx]
xor byte [eax], dl
mov dl, byte [ebx + eax]
inc dword [ebp + 8]
inc eax
cmp dword [ebp + 8], 8
mov byte [ecx], dl
jb 0x4046db
dec esi
mov edi, eax
jne 0x4046c5
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x404e95
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
push dword [ebp + 8]
xor edi, edi
mov dword [esi + 0x3d8], edi
mov dword [ebp - 4], edi
call fcn.00409c82
cmp eax, 0xffffffff
pop ecx
mov dword [ebp + 8], eax
je 0x404f3c
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0x64
jbe 0x404ee3
lea ebx, [esi + 4]
mov eax, ebx
call fcn.0040b5f5
push edi
push dword [ebx]
push dword [ebp + 8]
call fcn.0040a8ae
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0x64
jbe 0x404f3c
mov eax, dword [esi + 4]
cmp dword [eax], 0x61150600
jne 0x404f3c
mov ecx, dword [eax + 0xc]
call fcn.00407a2c
mov ebx, eax
test ebx, ebx
jbe 0x404f3c
xor edx, edx
mov eax, edi
div ebx
cmp eax, 1
jbe 0x404f2f
mov dword [ebp + 8], ebx
lea edi, [eax - 1]
mov eax, dword [esi + 4]
add eax, dword [ebp + 8]
push ebx
push eax
push esi
call fcn.004044f8
add dword [ebp + 8], ebx
dec edi
jne 0x404f1b
push dword [ebp + 0xc]
mov eax, esi
call fcn.004049dd
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret 8

Function at 0x40523b
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
mov eax, dword [ebp + 8]
push ebx
push esi
push 0x14
pop esi
mov dword [ebp - 8], esi
call fcn.004053c0
cmp edi, esi
jae 0x40525b
mov dword [ebp - 8], edi
mov esi, 0xff
xor ebx, ebx
push esi
lea eax, [ebp - 0x20b]
push ebx
push eax
mov byte [ebp - 0x20c], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push esi
lea eax, [ebp - 0x10b]
push ebx
push eax
mov byte [ebp - 0x10c], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push esi
lea eax, [ebp - 0x30b]
push ebx
push eax
mov byte [ebp - 0x30c], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push dword [ebp - 8]
lea eax, [ebp - 0x20c]
push dword [ebp + 0xc]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push dword [ebp - 8]
lea eax, [ebp - 0x10c]
push dword [ebp + 0xc]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
xor eax, eax
cmp edi, ebx
jbe 0x4052ec
xor byte [ebp + eax - 0x20c], 0x5c
xor byte [ebp + eax - 0x10c], 0x36
inc eax
cmp eax, edi
jb 0x4052d7
lea eax, [ebp - 0x30c]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0x10c]
push dword [ebp + 0x10]
push edi
push eax
mov eax, dword [ebp + 8]
call fcn.0040532b
push dword [ebp + 0x18]
lea eax, [ebp - 0x30c]
push 0x14
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp + 8]
call fcn.0040532b
pop esi
pop ebx
leave
ret 0x14
Function at 0x405b22
Capabilities:
Encrypt data using des

Disassembly:
mov ecx, dword [eax]
mov edx, dword [0x45b530]
mov eax, dword [edx]
push ebx
push ebp
xor eax, ecx
mov ebx, eax
push edi
mov ebp, eax
shr ebx, 0x18
push 0x3f
pop edi
and ebx, edi
mov ebx, dword [ebx*4 + 0x45ab38]
shr ebp, 0x10
and ebp, edi
xor ebx, dword [ebp*4 + 0x45ad38]
mov ebp, eax
and eax, edi
shr ebp, 8
and ebp, edi
xor ebx, dword [ebp*4 + 0x45af38]
add edx, 4
xor ebx, dword [eax*4 + 0x45b138]
xor dword [esi], ebx
ror ecx, 4
xor ecx, dword [edx]
add edx, 4
mov dword [0x45b530], edx
mov eax, ecx
shr eax, 0x18
and eax, edi
mov eax, dword [eax*4 + 0x45aa38]
mov edx, ecx
shr edx, 0x10
and edx, edi
xor eax, dword [edx*4 + 0x45ac38]
mov edx, ecx
shr edx, 8
and edx, edi
xor eax, dword [edx*4 + 0x45ae38]
and ecx, edi
xor eax, dword [ecx*4 + 0x45b038]
pop edi
xor dword [esi], eax
pop ebp
pop ebx
ret
Function at 0x406e4f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
xor eax, eax
lea edi, [ebp - 0x17]
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
stosw word es:[edi], ax
stosb byte es:[edi], al
pop edi
push ebx
mov byte [ebp - 0x14], 0xc1
mov byte [ebp - 0x13], 0x7a
mov byte [ebp - 0x12], 0xd9
mov byte [ebp - 0x16], 0xad
mov byte [ebp - 0x15], 0x5e
mov byte [ebp - 0x18], 0x18
mov byte [ebp - 0x17], 0x18
mov byte [ebp - 0x11], 0x62
xor edx, edx
lea ecx, [ebp - 0x11]
push esi
mov al, dl
mov bl, 0xd
imul bl
xor al, byte [ebp + edx - 0x18]
xor al, byte [ecx]
inc edx
mov byte [ebp + edx - 0x11], al
dec ecx
cmp edx, 8
jl 0x406e8b
xor ecx, ecx
lea esi, [ebp - 0x11]
mov al, cl
mov dl, 0xe
imul dl
xor al, byte [esi]
xor al, 0x45
mov byte [ebp + ecx - 8], al
inc ecx
dec esi
cmp ecx, 8
jl 0x406ea7
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.00405fbf
pop ecx
pop ecx
pop esi
pop ebx
leave
ret 4

Function at 0x406ed7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x30c
push ebx
push esi
push edi
lea eax, [esp + 0x18]
push eax
call fcn.00406e4f
and dword [esp + 0xc], 0
cmp dword [ebp + 0xc], 0
mov byte [0x45b4e6], 0xf2
mov byte [0x45b4e7], 0x25
mov byte [0x45b4e5], 0xdf
mov byte [0x45b4e0], 0x7e
mov byte [0x45b4e3], 0xda
mov byte [0x45b4e4], 0x2a
mov byte [0x45b4e2], 0x1c
mov byte [0x45b4e1], 0x43
jbe 0x406f88
mov ebx, dword [ebp + 8]
lea eax, [esp + 0x198]
push eax
lea edi, [esp + 0x14]
mov eax, ebx
call fcn.0040603b
pop ecx
xor eax, eax
lea esi, [eax + 0x45b4e0]
mov cl, byte [esi]
xor cl, byte [esp + 0xc]
xor byte [esp + eax + 0x10], cl
mov cl, byte [ebx + eax]
inc eax
cmp eax, 8
mov byte [esi], cl
jb 0x406f4c
push 8
lea eax, [esp + 0x14]
push eax
push ebx
call sub.msvcrt.dll_memcpy
add dword [esp + 0x18], 8
mov eax, dword [esp + 0x18]
add esp, 0xc
add ebx, 8
cmp eax, dword [ebp + 0xc]
jb 0x406f36
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x406f91
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor edi, edi
cmp dword [0x45b4dc], edi
jg 0x407032
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x453dac
push 0x32
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
je 0x406feb
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x406feb
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
jmp 0x406fed
xor esi, esi
test esi, esi
je 0x407032
test edi, edi
jbe 0x407032
and dword [ebp - 0x10], 0
and dword [ebp - 0xc], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 8], 0x1388
call fcn.0040b5f5
push edi
push esi
push dword [ebp - 0x10]
call sub.msvcrt.dll_memcpy
add esp, 0xc
push edi
push dword [ebp - 0x10]
call fcn.00406ed7
mov ecx, dword [ebp - 0x10]
call fcn.00406dc5
lea esi, [ebp - 0x10]
call fcn.0040b671
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4075c7
Capabilities:
Link many functions at runtime

Disassembly:
push ecx
push esi
push edi
mov esi, eax
call fcn.00407670
push 0x453dc4
call fcn.0040ae2a
test eax, eax
pop ecx
mov dword [esi + 0x14], eax
je 0x407669
push 0xca
call fcn.00406c77
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
pop ecx
push eax
push dword [esi + 0x14]
call edi
push 0xc9
mov dword [esi + 8], eax
call fcn.00406c77
pop ecx
push eax
push dword [esi + 0x14]
call edi
push 0xcb
mov dword [esi], eax
call fcn.00406c77
pop ecx
push eax
push dword [esi + 0x14]
call edi
push 0xcc
mov dword [esi + 4], eax
call fcn.00406c77
pop ecx
push eax
push dword [esi + 0x14]
call edi
push 0xcd
mov dword [esi + 0xc], eax
call fcn.00406c77
pop ecx
push eax
push dword [esi + 0x14]
call edi
cmp dword [esi], 0
mov dword [esi + 0x10], eax
je 0x407664
cmp dword [esi + 8], 0
je 0x407664
mov dword [esi + 0x18], 1
jmp 0x407669
call fcn.00407670
mov eax, dword [esi + 0x18]
pop edi
pop esi
pop ecx
ret
Function at 0x409cb4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call sub.msvcrt.dll_wcslen
pop ecx
add eax, eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
leave
ret

Function at 0x409e39
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
xor esi, esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
test ebp, ebp
je 0x409e96
push ebx
push edi
push ebp
call sub.msvcrt.dll_wcslen
pop ecx
lea ebx, [eax + eax + 2]
push ebx
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x409e94
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push ebp
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
mov esi, eax
neg esi
sbb esi, esi
neg esi
pop edi
pop ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, esi
pop esi
pop ebp
ret

Function at 0x409ea1
Capabilities:
Get file size
Read file on windows
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_EmptyClipboard]
push dword [ebp + 8]
call fcn.00409c82
cmp eax, 0xffffffff
pop ecx
mov dword [ebp - 8], eax
je 0x409f33
push ebx
push esi
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea eax, [esi + 2]
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x409f1c
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0
mov edi, eax
lea eax, [ebp - 0xc]
push eax
push esi
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x409f1c
shr esi, 1
and word [edi + esi*2], 0
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
jmp 0x409f25
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
jmp 0x409f3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp - 4]
leave
ret

Function at 0x40a157
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret

Function at 0x40a394
Capabilities:
Get common file path

Disassembly:
cmp word [0x45ec58], 0
push esi
mov esi, 0x45ec58
jne 0x40a3b5
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov dword [0x45ee64], eax
push esi
push dword [esp + 0xc]
call sub.msvcrt.dll_wcscpy
mov eax, dword [0x45ee64]
pop ecx
pop ecx
pop esi
ret
Function at 0x40a6d5
Capabilities:
Create process on windows

Disassembly:
push 5
mov eax, 0x44f4cc
push eax
push eax
push dword [esp + 0x14]
push 0x453ea0
push dword [esp + 0x18]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x20
pop ecx
cmp ecx, eax
sbb eax, eax
neg eax
ret

Function at 0x40ade4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
xor eax, eax
shl esi, 0xd
lea esi, [esi + 0x45f398]
push edi
mov dl, 0xfd
mov edi, esi
mov bl, al
and bl, 0x3f
sub bl, 0x56
xor bl, dl
movsx dx, bl
mov word [edi], dx
mov dl, byte [eax + 0x44f509]
inc eax
inc edi
inc edi
test dl, dl
jne 0x40adf8
shl ecx, 0xc
add ecx, eax
and word [ecx*2 + 0x45f398], 0
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x40ae2a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
and word [ebp - 0x800], 0
push esi
push 0x7fe
lea eax, [ebp - 0x7fe]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
cmp word [0x45ee68], 0
mov esi, 0x45ee68
jne 0x40ae72
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [0x45f074], eax
lea eax, [ebp - 0x800]
push esi
push eax
call sub.msvcrt.dll_wcscpy
lea esi, [ebp - 0x800]
call fcn.00409cd8
push dword [ebp + 8]
mov eax, esi
push eax
call sub.msvcrt.dll_wcscat
mov eax, esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
add esp, 0x10
push eax
call esi
test eax, eax
jne 0x40aeac
push dword [ebp + 8]
call esi
pop esi
leave
ret

Function at 0x40b477
Capabilities:
Enumerate files on windows

Disassembly:
push esi
mov esi, eax
mov eax, dword [esi]
cmp eax, 0xffffffff
push edi
jne 0x40b4a1
lea eax, [esi + 0x28c]
push eax
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [esi], eax
mov edi, ecx
jmp 0x40b4ba
lea ecx, [esi + 0x28c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, eax
test edi, edi
jne 0x40b4be
call fcn.0040b4e4
test edi, edi
je 0x40b4df
lea ecx, [esi + 0x2b8]
push 0x143
lea eax, [esi + 0x4dc]
push ecx
add esi, 0x764
push esi
call fcn.0040a2de
add esp, 0xc
mov eax, edi
pop edi
pop esi
ret
Function at 0x40bd7c
Capabilities:
Get file size
Read file via mapping
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
push dword [ebp + 0xc]
xor esi, esi
mov eax, edi
mov word [ebx], si
call fcn.00407a50
cmp eax, esi
mov dword [ebp - 0x10], eax
jne 0x40bec9
cmp dword [edi + 0x414], 0x20
jne 0x40bec9
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push ebx
mov dword [ebp - 8], esi
call fcn.0040bae3
test eax, eax
je 0x40bec9
mov edi, 0x8000
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], 0x1388
call fcn.0040b5f5
push dword [ebp - 4]
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, esi
mov dword [ebp - 0xc], eax
je 0x40beb0
push esi
push esi
push 0x80000000
lea eax, [ebp + 0xc]
push eax
mov dword [ebp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
cmp dword [ebp + 0xc], esi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x40bea8
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, dword [ebp + 8]
push 0x453fe0
mov dword [ebp - 8], eax
call fcn.0040a004
pop ecx
push edi
call fcn.00409c9b
pop ecx
push esi
push esi
push esi
push 2
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, esi
mov dword [ebp - 0x18], eax
je 0x40be9e
push dword [ebp - 8]
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, esi
je 0x40be99
push esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
mov dword [ebp - 0x14], esi
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x18]
call ebx
push dword [ebp - 4]
call ebx
push dword [ebp + 0xc]
call ebx
push dword [ebp - 0xc]
call ebx
mov ebx, dword [ebp + 8]
cmp word [ebx], si
je 0x40bec1
mov eax, dword [ebp + 0x10]
push ebx
call fcn.00407a50
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x24]
call fcn.0040b671
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret 0xc