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

Disassembly:
xor eax, eax
or edx, 0x100
push ebx
lea esp, [esp]
mov ecx, edx
and ecx, 1
shr edx, 1
movzx ebx, word [edi + edx*2]
neg ecx
shr ecx, 4
shr ebx, 4
and ecx, 0x7f
xor ebx, ecx
add eax, dword [esi + ebx*4]
cmp edx, 2
jae 0x100bdbd0
pop ebx
ret

Function at 0x100bdc00
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov esi, eax
mov edx, 0x100
xor eax, eax
or ecx, edx
mov edi, edi
add esi, esi
mov ebx, edx
and ebx, esi
add ebx, edx
mov ebp, ecx
shr ebp, 8
add ebp, ebx
mov ebx, dword [esp + 0x10]
movzx ebx, word [ebx + ebp*2]
mov ebp, ecx
shr ebp, 7
and ebp, 1
neg ebp
shr ebx, 4
shr ebp, 4
and ebp, 0x7f
xor ebx, ebp
add eax, dword [edi + ebx*4]
add ecx, ecx
mov ebx, ecx
xor ebx, esi
not ebx
and edx, ebx
cmp ecx, 0x10000
jb 0x100bdc10
pop esi
pop ebp
pop ebx
ret 4

Function at 0x100bdf10
Capabilities:
Encode data using xor

Disassembly:
push ebp
xor edx, edx
push esi
mov esi, edx
shr esi, 1
mov ebp, esi
and ebp, 1
mov eax, edx
shr eax, 2
movzx ecx, word [ebx + eax*2 + 4]
neg ebp
shr ebp, 4
neg eax
shr ecx, 4
and ebp, 0x7f
xor ecx, ebp
movzx ebp, word [ebx + 2]
mov ecx, dword [edi + ecx*4]
and eax, 0x7f0
xor eax, ebp
shr eax, 4
add ecx, dword [edi + eax*4]
movzx eax, word [ebx + esi*2 + 8]
add ecx, dword [esp + 0xc]
mov esi, eax
shr esi, 4
mov ebp, dword [edi + esi*4]
mov esi, dword [esp + 0x10]
xor eax, 0x7f0
add ebp, ecx
shr eax, 4
mov dword [esi + edx*4], ebp
mov eax, dword [edi + eax*4]
add eax, ecx
mov dword [esi + edx*4 + 4], eax
add edx, 2
cmp edx, 8
jb 0x100bdf14
pop esi
pop ebp
ret 8
Function at 0x100bdf90
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
mov edi, eax
movzx eax, word [ebp]
mov ecx, eax
xor ecx, 0x7f0
shr ecx, 4
mov edx, dword [edi + ecx*4]
movzx ecx, word [ebp + 0x10]
shr eax, 4
mov eax, dword [edi + eax*4]
mov dword [esp + 0x18], eax
shr ecx, 4
mov eax, dword [edi + ecx*4]
add eax, edx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x10], edx
test eax, eax
je 0x100be015
mov esi, dword [esp + 0x24]
add esi, 4
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x18]
push esi
push edx
mov ebx, ebp
call fcn.100bdf10
mov ecx, dword [esp + 0x1c]
lea eax, [esi + 0x20]
push eax
push ecx
lea ebx, [ebp + 0x10]
call fcn.100bdf10
add esi, 0x440
add ebp, 0x20
dec dword [esp + 0x14]
jne 0x100bdfe0
mov ebp, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
mov esi, dword [eax]
cmp esi, 0x10
jbe 0x100be0e7
movzx ecx, word [ebp + 0x10]
xor ecx, 0x7f0
add esi, 0xfffffff1
shr esi, 1
shr ecx, 4
add edx, dword [edi + ecx*4]
lea eax, [ebp + esi*2 + 0x300]
mov dword [esp + 0x10], edx
mov dword [esp + 0x2c], eax
jmp 0x100be054
mov edx, dword [esp + 0x10]
dec esi
sub dword [esp + 0x2c], 2
lea ecx, [esi + 0x80]
mov eax, ecx
and eax, 1
shr ecx, 1
movzx ebx, word [ebp + ecx*2 + 0x200]
neg eax
shr eax, 4
shr ebx, 4
and eax, 0x7f
xor ebx, eax
add edx, dword [edi + ebx*4]
cmp ecx, 2
jae 0x100be060
mov ecx, dword [esp + 0x2c]
movzx eax, word [ecx]
mov ebx, dword [esp + 0x24]
mov ecx, eax
shr ecx, 4
mov ecx, dword [edi + ecx*4]
xor eax, 0x7f0
add ebx, 0x44
add ecx, edx
shr eax, 4
mov dword [ebx + esi*8], ecx
mov eax, dword [edi + eax*4]
add eax, edx
mov dword [ebx + esi*8 + 4], eax
test esi, esi
jne 0x100be050
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov ebp, dword [ecx]
lea ebp, [ebp*4 - 0x40]
cmp eax, 1
jbe 0x100be0e7
lea esi, [ecx + 0x484]
lea edi, [eax - 1]
push ebp
push ebx
push esi
call sub.msvcrt.dll_memcpy
add esp, 0xc
add esi, 0x440
dec edi
jne 0x100be0d3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
Function at 0x100c0ba0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
mov edx, ecx
push ebx
xor ebx, ebx
mov dword [edx + 0x2c], ebx
push esi
push edi
mov edi, 1
mov dword [edx + 0x44], edi
mov dword [edx + 0x40], edi
mov dword [edx + 0x3c], edi
mov dword [edx + 0x38], edi
mov eax, dword [edx + 0x78]
mov dword [edx + 0x70], eax
mov eax, 0x400
movzx ecx, ax
mov dword [edx + 0x58], 0xffffffff
mov dword [edx + 0x5c], ebx
mov dword [edx + 0x60], ebx
mov dword [edx + 0x64], ebx
mov dword [edx + 0x68], ebx
mov dword [edx + 0x6c], ebx
mov dword [edx + 0x80], ebx
mov dword [edx + 0x84], ebx
mov dword [edx + 0x88], ebx
mov eax, ecx
shl ecx, 0x10
or eax, ecx
mov dword [edx + 0x1e1c], eax
mov dword [edx + 0x1e20], eax
mov dword [edx + 0x1e24], eax
mov dword [edx + 0x1e28], eax
mov dword [edx + 0x1e2c], eax
mov dword [edx + 0x1e30], eax
mov dword [edx + 0x1e34], eax
mov dword [edx + 0x1e38], eax
lea ecx, [edx + 0x1e54]
lea eax, [edx + 0x201c]
mov dword [esp + 0xc], 0xc
push ebp
mov edi, edi
mov esi, 0x10
jmp 0x100c0c50
mov ebp, 0x400
mov word [eax - 0x180], bp
mov word [eax], bp
add eax, 2
sub esi, edi
jne 0x100c0c50
mov esi, ebp
mov word [ecx - 0x18], si
mov word [ecx], si
mov word [ecx + 0x18], si
mov word [ecx + 0x30], si
add ecx, 2
sub dword [esp + 0x10], edi
jne 0x100c0c40
mov eax, esi
movzx esi, ax
mov eax, esi
shl esi, 0x10
or eax, esi
lea edi, [edx + 0x219c]
mov ecx, 0x80
rep stosd dword es:[edi], eax
mov eax, ebp
movzx esi, ax
mov eax, esi
shl esi, 0x10
or eax, esi
lea edi, [edx + 0x239c]
mov ecx, 0x40
rep stosd dword es:[edi], eax
mov ecx, dword [edx + 0x98]
add ecx, dword [edx + 0x94]
mov edi, dword [edx + 0x50]
mov eax, 0x300
shl eax, cl
cmp eax, ebx
jbe 0x100c0ce3
mov ecx, eax
mov eax, ebp
movzx esi, ax
mov eax, esi
shl esi, 0x10
or eax, esi
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov eax, ebp
movzx ebp, ax
mov eax, ebp
shl ebp, 0x10
or eax, ebp
mov ecx, 0x80
lea edi, [edx + 0x249c]
rep stosd dword es:[edi], eax
mov eax, 0x400
movzx esi, ax
mov eax, esi
shl esi, 0x10
or eax, esi
lea edi, [edx + 0x269c]
mov ecx, 0x80
rep stosd dword es:[edi], eax
mov eax, 0x400
movzx ebp, ax
mov eax, ebp
shl ebp, 0x10
or eax, ebp
mov ecx, 0x80
lea edi, [edx + 0x289c]
rep stosd dword es:[edi], eax
mov eax, 0x400
movzx esi, ax
mov eax, esi
shl esi, 0x10
or eax, esi
lea edi, [edx + 0x2a9c]
mov ecx, 0x80
rep stosd dword es:[edi], eax
mov dword [edx + 0x1c], ebx
mov dword [edx + 0x18], ebx
lea eax, [edx + 0xbca4]
mov ecx, 0x800
pop ebp
mov dword [eax], 0x40000000
add eax, 0x20
dec ecx
jne 0x100c0d62
mov ecx, dword [edx + 0x9c]
mov eax, 1
shl eax, cl
mov ecx, dword [edx + 0x98]
mov esi, 0x100
pop edi
dec eax
mov dword [edx + 0x4c], eax
mov eax, 0x100
shl eax, cl
mov ecx, dword [edx + 0x94]
shr esi, cl
mov dword [edx + 0x34], ebx
sub eax, esi
pop esi
mov dword [edx + 0x48], eax
pop ebx
pop ecx
ret
Function at 0x100c1f60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov eax, 1
push edi
mov dword [esi + 0x30], eax
mov dword [esi + 0x44], eax
or eax, 0xffffffff
xor edi, edi
mov dword [esi + 0x90], eax
mov dword [esi + 0x94], eax
mov eax, dword [esi + 4]
mov dword [esi + 0x78], edi
mov dword [esi + 0x68], edi
cmp eax, 0x20
mov dword [esi + 0x7c], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x88], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], edi
jbe 0x100c1fcb
mov eax, 0x20
mov ecx, dword [esi + 0x20]
mov dword [esi + 0x54], eax
mov eax, dword [esi]
mov dword [esi + 0x58], edi
cmp eax, ecx
je 0x100c200c
lea ebx, [esi + 0xc8]
mov ebp, 0x20
cmp dword [ebx + 8], edi
je 0x100c1ff1
mov ecx, ebx
call fcn.100c1c50
add ebx, 0x28
dec ebp
jne 0x100c1fe5
mov edx, dword [esi + 0x5c]
cmp edx, edi
je 0x100c2007
mov ecx, dword [esi + 0x14]
call dword [ecx + 4]
mov dword [esi + 0x5c], edi
mov ecx, dword [esi]
mov dword [esi + 0x20], ecx
mov edx, dword [esi + 0x10]
lea ecx, [esi + 0x98]
call fcn.100c1b20
mov eax, dword [esi + 0x58]
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
lea edx, [eax + eax*4 + 0x19]
inc eax
mov dword [esi + 0x58], eax
lea ebp, [esi + edx*8]
mov ecx, ebp
call fcn.100c20b0
mov ebx, eax
cmp ebx, edi
jne 0x100c206f
lea ecx, [ebp + 0x20]
call fcn.100c86b0
mov ebx, eax
cmp ebx, edi
jne 0x100c206f
lea ecx, [ebp + 0x1c]
call fcn.100c86b0
mov ebx, eax
cmp ebx, edi
jne 0x100c206f
push ebp
call fcn.100137a8
mov ebx, eax
cmp ebx, edi
je 0x100c2084
mov ecx, esi
mov dword [esi + 0x44], edi
call fcn.100c20e0
cmp ebx, edi
jle 0x100c207f
and ebx, 0xffff
or ebx, 0x80070000
cmp ebx, edi
je 0x100c2084
mov dword [esi + 0x40], ebx
cmp dword [esi + 0x38], edi
jne 0x100c2096
cmp dword [esi + 0x40], edi
jne 0x100c2096
cmp dword [esi + 0x3c], edi
jne 0x100c2096
mov dword [esi + 0x44], edi
mov eax, dword [esi + 0x44]
pop edi
neg eax
sbb eax, eax
pop esi
not eax
and eax, ebx
pop ebp
pop ebx
ret
Function at 0x100c6780
Capabilities:
Hash data using sha1

Disassembly:
xor eax, eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x10], 0xc3d2e1f0
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], eax
ret
Function at 0x100c76f0
Capabilities:
Hash data using sha1

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov edi, dword [esi + 0x18]
and edi, 0x3f
mov eax, edi
mov ebx, edx
and eax, 3
xor ebp, ebp
shr edi, 2
xor edx, edx
cmp eax, ebp
je 0x100c7712
mov edx, dword [esi + edi*4 + 0x20]
lea ecx, [eax*8]
mov eax, SysReAllocStringLen
shr eax, cl
inc edi
or eax, edx
mov dword [esi + edi*4 + 0x1c], eax
cmp edi, 0xe
je 0x100c774a
lea esp, [esp]
and edi, 0xf
jne 0x100c7740
push esi
lea edx, [esi + 0x20]
mov ecx, esi
call fcn.100c67b0
mov dword [esi + edi*4 + 0x20], ebp
inc edi
cmp edi, 0xe
jne 0x100c7730
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
shld ecx, eax, 3
add eax, eax
add eax, eax
add eax, eax
mov dword [esi + 0x58], ecx
push esi
lea edx, [esi + 0x20]
mov ecx, esi
mov dword [esi + 0x5c], eax
call fcn.100c67b0
xor eax, eax
lea ecx, [ecx]
mov ecx, dword [esi + eax*4]
bswap ecx
mov dword [ebx], ecx
inc eax
add ebx, 4
cmp eax, 5
jb 0x100c7770
pop edi
mov dword [esi + 0x18], ebp
mov dword [esi + 0x1c], ebp
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x10], 0xc3d2e1f0
pop esi
pop ebp
pop ebx
ret

Function at 0x100c7850
Capabilities:
Hash data using sha1

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov edi, dword [esi + 0x18]
and edi, 0xf
mov dword [esi + edi*4 + 0x20], SysReAllocStringLen
inc edi
xor ebx, ebx
mov ebp, edx
cmp edi, 0xe
je 0x100c788a
mov edi, edi
and edi, 0xf
jne 0x100c7880
push esi
lea edx, [esi + 0x20]
mov ecx, esi
call fcn.100c67b0
mov dword [esi + edi*4 + 0x20], ebx
inc edi
cmp edi, 0xe
jne 0x100c7870
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
shld ecx, eax, 5
shl eax, 5
mov dword [esi + 0x58], ecx
push ebp
lea edx, [esi + 0x20]
mov ecx, esi
mov dword [esi + 0x5c], eax
call fcn.100c67b0
pop edi
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x10], 0xc3d2e1f0
pop esi
pop ebp
pop ebx
ret

Function at 0x100c78e0
Capabilities:
Hash data using sha256

Disassembly:
xor eax, eax
mov dword [ecx], 0x6a09e667
mov dword [ecx + 4], 0xbb67ae85
mov dword [ecx + 8], 0x3c6ef372
mov dword [ecx + 0xc], 0xa54ff53a
mov dword [ecx + 0x10], 0x510e527f
mov dword [ecx + 0x14], 0x9b05688c
mov dword [ecx + 0x18], 0x1f83d9ab
mov dword [ecx + 0x1c], 0x5be0cd19
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], eax
ret
Function at 0x100c84b0
Capabilities:
Hash data using sha256

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov edi, dword [esi + 0x20]
and edi, 0x3f
mov byte [edi + esi + 0x28], 0x80
inc edi
xor ebx, ebx
mov ebp, edx
cmp edi, 0x38
je 0x100c84e5
jmp 0x100c84d0
and edi, 0x3f
jne 0x100c84db
push esi
call fcn.100c7920
mov byte [esi + edi + 0x28], bl
inc edi
cmp edi, 0x38
jne 0x100c84d0
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
shld ecx, eax, 3
add eax, eax
add eax, eax
add eax, eax
bswap ecx
bswap eax
push esi
mov dword [esi + 0x60], ecx
mov dword [esi + 0x64], eax
call fcn.100c7920
xor eax, eax
mov ecx, dword [esi + eax*4 + 4]
mov edx, dword [esi + eax*4]
bswap edx
bswap ecx
mov dword [ebp], edx
mov dword [ebp + 4], ecx
add eax, 2
add ebp, 8
cmp eax, 8
jb 0x100c8507
pop edi
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi], 0x6a09e667
mov dword [esi + 4], 0xbb67ae85
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
pop esi
pop ebp
pop ebx
ret

Function at 0x100c8670
Capabilities:
Create thread

Disassembly:
push esi
lea eax, [esp + 8]
push eax
push 0
mov esi, ecx
mov ecx, dword [esp + 0x10]
push ecx
push edx
push 0
push 0
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
mov dword [esi], eax
pop esi
test eax, eax
je 0x100c8699
xor eax, eax
ret 4
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x100c86a8
mov eax, 1
ret 4

Function at 0x100c8900
Capabilities:
Hash data using sha256

Disassembly:
mov eax, edx
mov dword [ecx], eax
dec eax
je 0x100c8923
sub eax, 3
je 0x100c8919
sub eax, 6
jne 0x100c892a
add ecx, 0x10
jmp fcn.100c78e0
or eax, 0xffffffff
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
ret
mov dword [ecx + 4], 0xffffffff
ret
Function at 0x100cd9c0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
lea ebp, [ebx + 0x1c]
shr ebx, 2
mov eax, ebx
shr eax, 1
push esi
add eax, 3
xor esi, esi
mov dword [esp + 0xc], ebp
mov dword [ecx], eax
test ebx, ebx
je 0x100cd9ef
mov eax, dword [edx]
mov dword [ecx + esi*4 + 0x10], eax
inc esi
add edx, 4
cmp esi, ebx
jb 0x100cd9e1
cmp esi, ebp
jae 0x100cdae0
mov edx, esi
sub edx, ebx
lea eax, [ecx + edx*4 + 0x10]
mov dword [esp + 0x14], eax
push edi
xor edx, edx
mov eax, esi
div ebx
mov edi, dword [ecx + esi*4 + 0xc]
test edx, edx
jne 0x100cda6d
movzx eax, byte [eax + 0x100e4500]
mov edx, edi
and edx, 0xff
movzx edx, byte [edx + str.cw]
mov ebp, edi
shr ebp, 0x18
movzx ebp, byte [ebp + str.cw]
shl edx, 8
or edx, ebp
mov ebp, edi
shr ebp, 0x10
shr edi, 8
and ebp, 0xff
movzx ebp, byte [ebp + str.cw]
and edi, 0xff
movzx edi, byte [edi + str.cw]
shl edx, 8
or edx, ebp
mov ebp, dword [esp + 0x10]
shl edx, 8
xor edi, eax
or edi, edx
jmp 0x100cdac3
cmp ebx, 6
jbe 0x100cdac3
cmp edx, 4
jne 0x100cdac3
mov edx, edi
shr edx, 0x10
and edx, 0xff
movzx eax, byte [edx + str.cw]
mov edx, edi
shr edx, 0x18
movzx edx, byte [edx + str.cw]
shl edx, 8
or eax, edx
mov edx, edi
shr edx, 8
and edx, 0xff
movzx edx, byte [edx + str.cw]
shl eax, 8
and edi, 0xff
movzx edi, byte [edi + str.cw]
or eax, edx
shl eax, 8
or edi, eax
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
xor edx, edi
mov dword [ecx + esi*4 + 0x10], edx
inc esi
add eax, 4
mov dword [esp + 0x18], eax
cmp esi, ebp
jb 0x100cda04
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x43cf56
Capabilities:
Encode data using xor

Disassembly:
push 0x43ccda
mov edx, dword [esp]
add esp, 4
push esi
mov eax, dword [esp]
add esp, 4
call fcn.0043cf8f
xor dword [edi], edx
or eax, esi
inc edi
push 0x99664c5c
pop esi
sub eax, 0xc51de005
cmp edi, ebx
jne fcn.0043cf56
ret
Function at 0x4018bf
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
shr edi, 2
xor ebx, ebx
mov eax, edi
mov dword [ebp - 4], 1
shr eax, 1
mov ecx, ebx
add eax, 3
mov dword [esi], eax
add esi, 0x10
test edi, edi
je 0x4018f6
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [esi + ecx*4], eax
inc ecx
cmp ecx, edi
jb 0x4018e9
mov edx, dword [esi + edi*4 - 4]
imul eax, edi, 0xc
add eax, 0x70
add eax, esi
mov dword [ebp + 8], eax
test ebx, ebx
jne 0x401964
movzx eax, dl
mov ebx, dword [ebp - 4]
push 0x1b
movzx ecx, byte [eax + 0xa5d5c0]
mov eax, edx
shr eax, 0x18
shl ecx, 8
movzx eax, byte [eax + 0xa5d5c0]
or ecx, eax
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
shl ecx, 8
movzx eax, byte [eax + 0xa5d5c0]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx edx, byte [eax + 0xa5d5c0]
xor edx, ebx
add ebx, ebx
or edx, ecx
test ebx, 0x100
pop eax
cmovne ebx, eax
mov dword [ebp - 4], ebx
mov ebx, edi
jmp 0x4019b1
cmp ebx, 4
jne 0x4019b4
cmp edi, 6
jbe 0x4019b4
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + 0xa5d5c0]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + 0xa5d5c0]
shl eax, 8
or ecx, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0xa5d5c0]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx edx, byte [eax + 0xa5d5c0]
or edx, ecx
mov eax, dword [ebp + 8]
xor edx, dword [esi]
dec ebx
mov dword [esi + edi*4], edx
add esi, 4
cmp esi, eax
jne 0x401905
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x402b17
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x368
mov eax, dword [0xa9706c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x368]
mov dword [ebp - 0x368], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x402b57
cmp dword [ebp - 0x364], 6
jne 0x402b57
cmp dword [ebp - 0x360], 0
je 0x402b81
push str.SetDefaultDllDirectories
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402b81
push 0xc00
call eax
test eax, eax
jne 0x402c16
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x402c16
cmp eax, 0x104
ja 0x402c16
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x2d6], cx
je 0x402bc1
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
cmp byte [str.UXTHEME], 0
push esi
mov esi, str.UXTHEME
je 0x402c15
push edi
lea edi, [ebp - 0x2d4]
lea edi, [edi + eax*2]
mov edx, edi
mov cl, byte [esi]
inc esi
movzx eax, cl
mov word [edx], ax
lea edx, [edx + 2]
test cl, cl
jne 0x402bdc
push str..dll
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 8
push 0
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp byte [esi], 0
jne 0x402bda
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.009e2c4a
leave
ret
Function at 0x408e03
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push esi
call fcn.00a37eb6
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
jne 0x408e2f
call fcn.00408d15
mov esi, eax
mov eax, esi
pop esi
leave
ret 0xc

Function at 0x40aee8
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push dword [ebp + 0x10]
xor ebx, ebx
lea ecx, [ebp - 4]
push 0x2002
mov dword [ebp - 4], ebx
call fcn.0040d996
test al, al
je 0x40af41
push esi
mov esi, dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40af40
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.00a34330
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x40af40
mov dword [ebp - 4], ebx
mov bl, 1
pop esi
lea ecx, [ebp - 4]
call fcn.0040d9b9
mov al, bl
pop ebx
leave
ret 0xc

Function at 0x40af50
Capabilities:
Open clipboard

Disassembly:
push 0x18
mov eax, 0xa58b02
call fcn.009e2eea
push dword [ebp + 8]
and dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
setne al
mov byte [ebp + 0xb], al
test al, al
je 0x40b011
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x40b00e
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 4]
lea eax, [eax*2 + 2]
push eax
push dword [esi]
push 0xd
call fcn.0040aee8
push 0
mov bl, al
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.0040a4c9
mov ecx, dword [ebp - 0x14]
xor eax, eax
inc eax
inc ecx
push ecx
push dword [ebp - 0x18]
mov byte [ebp - 4], al
push eax
call fcn.0040aee8
push 1
pop edi
push edi
test al, al
movzx ebx, bl
push esi
lea eax, [ebp - 0x24]
cmovne ebx, edi
push eax
call fcn.0040a4c9
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00409521
push dword [ebp - 0x24]
call fcn.009e2ea5
mov eax, dword [ebp - 0x14]
pop ecx
inc eax
push eax
push dword [ebp - 0x18]
push 7
call fcn.0040aee8
push dword [ebp - 0x18]
test al, al
movzx ebx, bl
cmovne ebx, edi
call fcn.009e2ea5
pop ecx
jmp 0x40b017
mov al, byte [ebp + 0xb]
xor bl, bl
test al, al
je 0x40b01d
call dword [sym.imp.USER32.dll_CloseClipboard]
mov al, bl
call fcn.009e2eb8
ret 8