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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
push esi
push edi
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
xor eax, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], eax
lea edi, [eax + 1]
mov eax, edi
mov edx, edi
and eax, 0xfffffffc
add eax, 4
and dl, 3
cmovne edi, eax
mov ecx, edi
call fcn.00402ed0
mov esi, eax
mov dword [ebp - 0xc], esi
test esi, esi
je 0x402783
and dword [ebp - 4], 0
add ebx, 8
shr edi, 2
xor eax, eax
mov edx, esi
lea ecx, [ebx + edi*4]
mov edi, ecx
sub edi, ebx
add edi, 3
shr edi, 2
cmp ebx, ecx
cmova edi, eax
test edi, edi
je 0x40277c
mov esi, dword [ebp - 4]
mov ecx, dword [ebx]
lea ebx, [ebx + 4]
xor ecx, dword [ebp - 8]
mov byte [edx], cl
mov eax, ecx
shr eax, 8
lea edx, [edx + 4]
shr ecx, 0x10
mov byte [edx - 3], al
mov byte [edx - 2], cl
shr ecx, 8
inc esi
mov byte [edx - 1], cl
cmp esi, edi
jb 0x402753
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov byte [esi + eax], 0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402aaf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x34], 0x51368029
xor eax, eax
mov dword [ebp - 0x30], 0x6b9c259e
mov dword [ebp - 0x2c], 0x8a1a54f2
mov dword [ebp - 0x28], 0x5e906fe
mov dword [ebp - 0x24], 0x5be64c15
push ebx
push edi
mov ebx, ecx
lea edi, [ebp - 0x20]
push 6
pop ecx
rep stosd dword es:[edi], eax
mov dword [ebp - 4], 0x5b82
add dword [ebp - 4], 0xffff185e
or dword [ebp - 4], 0xa44776a
xor dword [ebp - 4], 0x2eaf379c
shl dword [ebp - 4], 0xc
xor dword [ebp - 4], 0x4076000
mov dword [ebp - 8], 0x3751
shr dword [ebp - 8], 4
shl dword [ebp - 8], 0xf
xor dword [ebp - 8], 0x683a6e48
xor dword [ebp - 8], 0x6980ee4e
mov dword [ebp - 8], 0x9f69
imul eax, dword [ebp - 8], 0x7a
mov dword [ebp - 8], eax
xor dword [ebp - 8], 0x4bf81a
cmp byte [ebx], 0
je 0x402ba0
push esi
mov edi, dword [ebp - 4]
mov dword [ebp - 8], 0x3751
shr dword [ebp - 8], 4
shl dword [ebp - 8], 0xf
xor dword [ebp - 8], 0x683a6e48
xor dword [ebp - 8], 0x6980ee4e
mov cl, byte [ebp - 8]
mov esi, dword [ebp - 4]
mov dword [ebp - 8], 0x9f69
imul eax, dword [ebp - 8], 0x7a
shl esi, cl
mov dword [ebp - 8], eax
xor dword [ebp - 8], 0x4bf81a
mov cl, byte [ebp - 8]
mov edx, dword [ebp - 4]
movsx eax, byte [ebx]
mov dword [ebp - 4], eax
add dword [ebp - 4], esi
shl edx, cl
add dword [ebp - 4], edx
sub dword [ebp - 4], edi
inc ebx
cmp byte [ebx], 0
jne 0x402b45
pop esi
mov eax, dword [ebp - 4]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402cbc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, ecx
mov dword [ebp - 8], edx
push esi
push edi
xor esi, esi
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], esi
mov edi, dword [eax + ebx + 0x78]
add edi, ebx
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x20]
add eax, ebx
mov dword [ebp - 0x14], eax
add ecx, ebx
mov eax, dword [edi + 0x24]
add eax, ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
mov eax, esi
cmp dword [edi + 0x18], esi
jbe 0x402d48
mov ecx, dword [ecx + eax*4]
add ecx, ebx
call fcn.00402aaf
xor eax, 0xa075651
cmp eax, dword [ebp - 8]
mov eax, dword [ebp - 4]
je 0x402d1f
mov ecx, dword [ebp - 0xc]
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [edi + 0x18]
jb 0x402cfa
jmp 0x402d48
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
movzx eax, word [ecx + eax*2]
mov esi, dword [esi + eax*4]
add esi, ebx
cmp esi, edi
jb 0x402d48
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + ebx + 0x7c]
add eax, edi
cmp esi, eax
jae 0x402d48
mov ecx, esi
call fcn.00402d88
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402d51
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
push ebx
push esi
push edi
mov edi, dword [eax + 0xc]
mov ebx, ecx
add edi, 0xc
mov esi, dword [edi]
jmp 0x402d79
mov ecx, dword [esi + 0x30]
call fcn.00402ba9
xor eax, 0x56278e1
cmp eax, ebx
je 0x402d83
mov esi, dword [esi]
cmp esi, edi
jne 0x402d66
xor eax, eax
pop edi
pop esi
pop ebx
ret
mov eax, dword [esi + 0x18]
jmp 0x402d7f

Function at 0x402f31
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, ecx
mov dword [ebp - 4], eax
push edi
cmp edx, 0x40
jb 0x40302e
call fcn.00403035
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
je 0x40302e
push esi
push 0x40
push 0x3000
push dword [edi + 0x50]
mov edx, 0x33d6f01b
mov ecx, 0x8a1c9e93
push 0
push 0xd0
call fcn.00402e14
pop ecx
call eax
mov esi, eax
test esi, esi
je 0x403029
movzx ecx, word [edi + 0x14]
lea eax, [edi + 0x18]
mov edx, dword [ebp - 4]
add eax, ecx
movzx ecx, word [edi + 6]
push ebx
push dword [edi + 0x54]
imul ebx, ecx, 0x28
mov ecx, esi
mov dword [ebp - 8], eax
add ebx, eax
call fcn.00402eac
pop ecx
mov ecx, dword [ebp - 8]
cmp ecx, ebx
jae 0x402ff2
sub ebx, ecx
mov edi, dword [ebp - 4]
lea eax, [ecx + 0x10]
xor edx, edx
mov dword [ebp - 0xc], eax
push 0x28
lea eax, [ebx - 1]
mov ebx, dword [ebp - 0xc]
pop ecx
div ecx
inc eax
mov dword [ebp - 8], eax
mov ecx, dword [ebx]
cmp dword [ebx - 8], ecx
mov edx, dword [ebx + 4]
cmovb ecx, dword [ebx - 8]
add edx, edi
push ecx
mov ecx, dword [ebx - 4]
add ecx, esi
call fcn.00402eac
dec dword [ebp - 8]
lea ebx, [ebx + 0x28]
pop ecx
jne 0x402fcd
mov edi, dword [ebp - 0x10]
mov edx, edi
mov ecx, esi
call fcn.00403113
mov edx, edi
mov ecx, esi
call fcn.0040305e
pop ebx
test eax, eax
jne 0x403029
push 0x8000
push eax
push esi
push 0x1ab
mov edx, 0xf0f58906
mov ecx, 0x8a1c9e93
call fcn.00402e14
pop ecx
call eax
xor esi, esi
mov eax, esi
pop esi
jmp 0x403030
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x403035
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x403042
xor eax, eax
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40303f
mov edx, 0x10b
xor ecx, ecx
cmp word [eax + 0x18], dx
cmovne eax, ecx
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x413950
Capabilities:
Check for software breakpoints

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x413b64
sub esp, 0x18
mov eax, dword [0x59fb14]
test eax, eax
jne 0x413b4d
nop
lea eax, [0x59fafc]
mov dword [esp], eax
call fcn.004091b0
mov eax, dword [0x59fb00]
test eax, eax
je 0x413999
cmp dword [eax + 8], 0xcc
jne 0x413a0f
mov edx, dword [0x59faf4]
test edx, edx
jne 0x4139f1
mov dword [esp], 0x1000
mov dword [esp + 4], 0
lea eax, [0x5a2330]
mov dword [esp + 8], eax
call fcn.0040b680
mov eax, dword [esp + 0xc]
mov dword [0x59faf4], eax
mov ecx, dword [0x59fab8]
mov dword [eax], ecx
mov eax, dword [0x59faf4]
mov dword [0x59fab8], eax
movzx eax, byte [0x59ff80]
test al, al
jne 0x4139f1
xor eax, eax
jmp 0x413af9
mov edx, dword [0x59faf4]
mov ebx, dword [edx + 4]
mov dword [0x59faf4], ebx
mov ebx, dword [0x59fb00]
mov dword [edx + 4], ebx
mov dword [0x59fb00], edx
mov edx, dword [0x59fb00]
mov eax, dword [edx + 8]
cmp eax, 0xcc
jae 0x413ae1
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
lea eax, [edx + 8]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.004020d0
mov eax, dword [esp + 0x10]
lea eax, [eax + eax*4]
mov ecx, dword [esp + 0x14]
lea edi, [ecx + eax*4 + 0x10]
mov edx, dword [0x59fca0]
lea ebx, [ecx + eax*4 + 0x1c]
lea ebp, [ecx + eax*4 + 0x20]
lea esi, [ecx + eax*4 + 0x14]
test edx, edx
jne 0x413a6d
mov edx, dword [esp + 0x20]
mov dword [ecx + eax*4 + 0x10], edx
jmp 0x413a7a
mov edx, eax
mov eax, dword [esp + 0x20]
call fcn.00460bc0
mov eax, edx
mov edx, dword [esp + 0x24]
mov dword [ecx + eax*4 + 0x18], edx
mov edx, dword [0x59fca0]
test edx, edx
jne 0x413aa6
mov edx, dword [esp + 0x28]
mov dword [ecx + eax*4 + 0x1c], edx
mov edx, dword [esp + 0x2c]
mov dword [ecx + eax*4 + 0x20], edx
mov edx, dword [esp + 0x1c]
mov dword [ecx + eax*4 + 0x14], edx
jmp 0x413ac7
mov edi, ebx
mov eax, dword [esp + 0x28]
call fcn.00460bc0
mov edi, ebp
mov eax, dword [esp + 0x2c]
call fcn.00460bc0
mov edi, esi
mov eax, dword [esp + 0x1c]
call fcn.00460bc0
mov byte [0x59fa86], 1
nop
lea eax, [0x59fafc]
mov dword [esp], eax
call fcn.004093b0
add esp, 0x18
ret
mov ecx, 0xcc
call fcn.00460c50
lea esi, [0x59ff80]
xchg ebp, eax
mov byte [esi + ebx], al
xchg ebp, eax
lea eax, [ebx + 1]
cmp eax, 0x80
jge 0x4139f1
mov ecx, eax
mov eax, 0xcccccccd
imul ecx
add edx, ecx
sar edx, 2
mov eax, ecx
sar ecx, 0x1f
sub edx, ecx
lea edx, [edx + edx*4]
mov ebx, eax
sub eax, edx
cmp eax, 5
jae 0x413b43
lea edx, [0x564298]
movzx ebp, byte [edx + eax]
cmp ebx, 0x80
jb 0x413aeb
mov eax, ebx
mov ecx, pe_nt_image_headers32
call fcn.00460c40
mov ecx, 5
call fcn.00460c40
lea eax, [0x4cdaaf]
mov dword [esp], eax
mov dword [esp + 4], 0x18
call fcn.00436260
nop
call fcn.0045f7f0
jmp fcn.00413950
Function at 0x427e90
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x428000
sub esp, 0x1c
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.00425c50
mov eax, dword [esp + 4]
test eax, eax
je 0x427fe9
mov dword [esp + 0xc], eax
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
mov edx, dword [ecx + 0x18]
nop
inc dword [edx + 0x7c]
mov ecx, dword [ecx + 0x18]
mov dword [esp + 0x14], ecx
mov dword [esp], eax
call fcn.00423b60
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0xc]
sub eax, dword [ecx + 0xc]
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x24]
movzx ebx, byte [edx + 6]
mov byte [esp + 0xb], bl
lea ebp, [ecx + 0x48]
mov dword [esp + 0x18], ebp
nop
mov dword [esp], ebp
call fcn.004091b0
mov eax, dword [esp + 0xc]
lea ecx, [eax + 0x4c]
movzx edx, byte [esp + 0xb]
mov ebx, dword [esp + 0x10]
jmp 0x427f27
mov ecx, ebp
mov ebp, dword [ecx]
test ebp, ebp
je 0x427f8d
movzx esi, word [ebp + 4]
cmp esi, ebx
jne 0x427f3c
cmp byte [ebp + 6], dl
je 0x427f47
cmp esi, ebx
ja 0x427f8d
jne 0x427f25
cmp byte [ebp + 6], dl
jbe 0x427f25
jmp 0x427f8d
nop
nop
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.004093b0
nop
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x7c]
lea ebx, [edx - 1]
mov dword [ecx + 0x7c], ebx
cmp edx, 1
jne 0x427f84
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x427f84
mov dword [eax + 8], 0xfffffade
mov byte [esp + 0x28], 0
add esp, 0x1c
ret
mov edx, dword [esp + 0x24]
mov word [edx + 4], bx
mov ebx, dword [ecx]
mov dword [edx], ebx
mov dword [ecx], edx
mov dword [esp], eax
call fcn.00427d90
nop
nop
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.004093b0
nop
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x7c]
lea ebx, [edx - 1]
mov dword [ecx + 0x7c], ebx
cmp edx, 1
jne 0x427fe0
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x427fe0
mov dword [eax + 8], 0xfffffade
mov byte [esp + 0x28], 1
add esp, 0x1c
ret
lea eax, [0x4ceda0]
mov dword [esp], eax
mov dword [esp + 4], 0x1d
call fcn.00436260
nop
call fcn.0045f7f0
jmp fcn.00427e90
Function at 0x428470
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x42858c
sub esp, 0x14
mov eax, dword [esp + 0x18]
movzx ecx, byte [eax + 6]
cmp cl, 1
je 0x428505
cmp cl, 2
je 0x4284ad
cmp cl, 3
jne 0x428575
mov byte [eax + 8], 1
jmp 0x428571
mov ecx, dword [eax + 8]
mov dword [esp], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 4], ecx
call fcn.0042dc00
nop
lea eax, [0x5840e4]
mov dword [esp], eax
call fcn.004091b0
nop
mov eax, dword [0x5840b0]
sub eax, dword [0x584094]
mov dword [0x5840b0], eax
mov eax, dword [0x5840a0]
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
mov dword [0x5840a0], ecx
nop
lea eax, [0x5840e4]
mov dword [esp], eax
call fcn.004093b0
jmp 0x428571
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov ebx, dword [eax + 0x10]
mov ebp, dword [eax + 0x14]
mov esi, dword [esp + 0x1c]
mov dword [esp], esi
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
call fcn.00413950
nop
lea eax, [0x5840e4]
mov dword [esp], eax
call fcn.004091b0
nop
mov eax, dword [0x584088]
sub eax, dword [0x58406c]
mov dword [0x584088], eax
mov eax, dword [0x584078]
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
mov dword [0x584078], ecx
nop
nop
lea eax, [0x5840e4]
mov dword [esp], eax
call fcn.004093b0
add esp, 0x14
ret
lea eax, [0x4cafe7]
mov dword [esp], eax
mov dword [esp + 4], 0x10
call fcn.00436260
nop
call fcn.0045f7f0
jmp fcn.00428470
Function at 0x451bb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x451d37
sub esp, 0x10
mov ecx, dword [esp + 0x18]
test ecx, ecx
jbe 0x451d2d
mov edx, dword [esp + 0x14]
movzx ebx, byte [edx]
test ebx, ebx
jne 0x451c0c
movzx ebp, byte [esp + 0x28]
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x451c0c
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov byte [esp + 0x38], 0
add esp, 0x10
ret
test ebx, 0x80
je 0x451c1f
xor eax, eax
xor ebx, ebx
xor ebp, ebp
jmp 0x451d02
mov eax, 1
mov ebp, ebx
and ebx, 1
neg ebx
shr ebp, 1
xor ebx, ebp
mov ebp, dword [esp + 0x24]
add dword [ebp], ebx
cmp ecx, eax
jb 0x451cf4
sub ecx, eax
mov ebx, dword [esp + 0x1c]
sub ebx, eax
mov ebp, ebx
neg ebx
sar ebx, 0x1f
and eax, ebx
lea ebx, [edx + eax]
test ecx, ecx
jbe 0x451ceb
movzx edx, byte [edx + eax]
test edx, 0x80
je 0x451c76
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebp
xor eax, eax
xor edx, edx
xor esi, esi
jmp 0x451cbf
mov eax, 1
cmp eax, ecx
ja 0x451cad
mov esi, dword [esp + 0x20]
add dword [esi], edx
sub ebp, eax
mov edx, ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, eax
add ebx, ebp
mov dword [esp + 0x2c], ebx
sub ecx, eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov byte [esp + 0x38], 1
add esp, 0x10
ret
call fcn.00460cb0
lea esi, [ecx + 7]
mov ecx, dword [esp + 8]
mov eax, ebp
mov ebp, dword [esp + 0xc]
cmp eax, ecx
jae 0x451ce6
movzx edi, byte [eax + ebx]
lea ebp, [eax + 1]
mov eax, edi
and edi, 0x7f
mov ecx, esi
shl edi, cl
or edx, edi
test al, 0x80
jne 0x451cb2
mov ecx, dword [esp + 8]
mov eax, ebp
mov ebp, dword [esp + 0xc]
jmp 0x451c7b
call fcn.00460c50
xor eax, eax
mov ecx, eax
call fcn.00460c40
call fcn.00460cb0
lea ebp, [ecx + 7]
mov ecx, dword [esp + 0x18]
mov eax, edi
cmp ecx, eax
jbe 0x451d28
movzx esi, byte [eax + edx]
lea edi, [eax + 1]
mov eax, esi
and esi, 0x7f
mov ecx, ebp
shl esi, cl
or ebx, esi
test al, 0x80
jne 0x451cf9
mov ecx, dword [esp + 0x18]
mov eax, edi
jmp 0x451c24
call fcn.00460c50
xor eax, eax
mov ecx, eax
call fcn.00460c40
nop
call fcn.0045f7f0
jmp fcn.00451bb0
Function at 0x459330
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4593cf
sub esp, 0x30
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
lea edi, [esp + 0xc]
xor eax, eax
call fcn.00460da7
lea ecx, [0x4593e0]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 8]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 4]
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0xc]
mov dword [esp], ecx
call fcn.0045f6e0
mov ecx, dword [esp + 4]
mov dword [esp + 0x44], ecx
add esp, 0x30
ret
call fcn.0045f7f0
jmp fcn.00459330
Function at 0x460ac0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
movd xmm0, dword [esp + 8]
pinsrw xmm0, ebx, 4
pshufhw xmm0, xmm0, 0
movdqa xmm1, xmm0
pxor xmm0, xmmword [0x59fd60]
aesenc xmm0, xmm0
cmp ebx, 0x10
jb 0x45f27b
je 0x45f2ce
cmp ebx, 0x20
jbe 0x45f2d4
cmp ebx, 0x40
jbe 0x45f31a
jmp 0x45f3bb
test ebx, ebx
je 0x45f2c4
add eax, 0x10
test ax, 0xff0
je 0x45f2b0
movdqu xmm1, xmmword [eax - 0x10]
add ebx, ebx
pand xmm1, xmmword [ebx*8 + 0x4f6680]
pxor xmm1, xmm0
aesenc xmm1, xmm1
aesenc xmm1, xmm1
aesenc xmm1, xmm1
movd dword [edx], xmm1
ret
movdqu xmm1, xmmword [eax + ebx - 0x20]
add ebx, ebx
pshufb xmm1, xmmword [ebx*8 + 0x4f6780]
jmp 0x45f298
aesenc xmm0, xmm0
movd dword [edx], xmm0
ret
movdqu xmm1, xmmword [eax]
jmp 0x45f298
pxor xmm1, xmmword [0x59fd70]
aesenc xmm1, xmm1
movdqu xmm2, xmmword [eax]
movdqu xmm3, xmmword [eax + ebx - 0x10]
pxor xmm2, xmm0
pxor xmm3, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
aesenc xmm2, xmm2
aesenc xmm3, xmm3
aesenc xmm2, xmm2
aesenc xmm3, xmm3
pxor xmm2, xmm3
movd dword [edx], xmm2
ret
movdqa xmm2, xmm1
movdqa xmm3, xmm1
pxor xmm1, xmmword [0x59fd70]
pxor xmm2, xmmword [0x59fd80]
pxor xmm3, xmmword [0x59fd90]
aesenc xmm1, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
movdqu xmm4, xmmword [eax]
movdqu xmm5, xmmword [eax + 0x10]
movdqu xmm6, xmmword [eax + ebx - 0x20]
movdqu xmm7, xmmword [eax + ebx - 0x10]
pxor xmm4, xmm0
pxor xmm5, xmm1
pxor xmm6, xmm2
pxor xmm7, xmm3
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
pxor xmm4, xmm6
pxor xmm5, xmm7
pxor xmm4, xmm5
movd dword [edx], xmm4
ret
movdqa xmm2, xmm1
movdqa xmm3, xmm1
pxor xmm1, xmmword [0x59fd70]
pxor xmm2, xmmword [0x59fd80]
pxor xmm3, xmmword [0x59fd90]
aesenc xmm1, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
movdqu xmm4, xmmword [eax + ebx - 0x40]
movdqu xmm5, xmmword [eax + ebx - 0x30]
movdqu xmm6, xmmword [eax + ebx - 0x20]
movdqu xmm7, xmmword [eax + ebx - 0x10]
aesenc xmm4, xmm0
aesenc xmm5, xmm1
aesenc xmm6, xmm2
aesenc xmm7, xmm3
dec ebx
shr ebx, 6
movdqu xmm0, xmmword [eax]
movdqu xmm1, xmmword [eax + 0x10]
movdqu xmm2, xmmword [eax + 0x20]
movdqu xmm3, xmmword [eax + 0x30]
aesenc xmm4, xmm0
aesenc xmm5, xmm1
aesenc xmm6, xmm2
aesenc xmm7, xmm3
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
add eax, 0x40
dec ebx
jne 0x45f41a
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
pxor xmm4, xmm6
pxor xmm5, xmm7
pxor xmm4, xmm5
movd dword [edx], xmm4
ret
cmp byte [0x59fa8e], 0
je 0x460ada
mov eax, dword [esp + 4]
mov ebx, dword [esp + 0xc]
lea edx, [esp + 0x10]
jmp 0x45f240
jmp fcn.00407d40
Function at 0x460ae0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4027ce
sub esp, 0x10
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.00407d40
mov eax, dword [esp + 0xc]
mov dword [esp + 0x1c], eax
add esp, 0x10
ret
call fcn.0045f7f0
jmp 0x402790
cmp byte [0x59fa8e], 0
je 0x460afb
mov eax, dword [esp + 4]
mov ebx, dword [eax + 4]
mov eax, dword [eax]
lea edx, [esp + 0xc]
jmp 0x45f240
jmp 0x402790
Function at 0x408000
Capabilities:
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x40
lea eax, [esp + 0x44]
lea ecx, [esp]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
push esi
mov esi, dword [esp + 0x50]
push edi
push 0
push eax
push 0x40
push ecx
push esi
call ebx
test eax, eax
je 0x408175
cmp dword [esp + 0x54], 0x40
jne 0x408175
cmp word [esp + 0x10], 0x5a4d
jne 0x408175
mov edx, dword [esp + 0x4c]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push edx
push esi
call ebp
cmp eax, 0xffffffff
je 0x408175
lea eax, [esp + 0x54]
push 0
push eax
push pe_nt_image_headers32
push 0x40e960
push esi
call ebx
test eax, eax
je 0x408175
cmp dword [esp + 0x54], 0xf8
jne 0x408175
cmp dword [0x40e960], 0x4550
jne 0x408175
mov eax, dword [0x40e976]
test ah, 0x20
jne 0x408175
mov edx, dword [0x40ea80]
xor eax, eax
mov ax, word [0x40e966]
add eax, edx
lea eax, [eax + eax*4]
shl eax, 3
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [0x40ea58], eax
je 0x408175
push 1
push 0
push 0
push esi
call ebp
mov dword [0x40ea6c], eax
xor eax, eax
mov ax, word [0x40e966]
mov edx, dword [0x40ea58]
lea ecx, [esp + 0x54]
push 0
lea edi, [eax + eax*4]
push ecx
shl edi, 3
push edi
push edx
push esi
call ebx
test eax, eax
je 0x408175
cmp dword [esp + 0x54], edi
jne 0x408175
push 1
push 0
push 0
push esi
call ebp
mov ecx, dword [0x40ea80]
lea ecx, [ecx + ecx*4]
lea edx, [eax + ecx*8]
mov eax, dword [0x40e9b4]
cmp edx, eax
ja 0x408175
mov edi, dword [0x40ea58]
mov ecx, dword [0x40e988]
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 0xc]
add eax, edx
cmp ecx, eax
jae 0x408175
xor eax, eax
push 2
mov ax, word [0x40e966]
push 0
push 0
push esi
lea ecx, [eax + eax*4]
mov ebx, dword [edi + ecx*8 - 0x18]
lea edi, [edi + ecx*8]
call ebp
mov edx, dword [edi - 0x14]
add edx, ebx
cmp eax, edx
jne 0x408175
cmp dword [edi - 0x20], ebx
ja 0x408175
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x40
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret
Function at 0x40a769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40e190
cmp edx, dword [eax]
je 0x40a78b
add eax, 8
inc ecx
cmp eax, 0x40e220
jl 0x40a77c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40e190]
jne 0x40a8b9
mov eax, dword [0x40ebb0]
cmp eax, 1
je 0x40a893
test eax, eax
jne 0x40a7bc
cmp dword [0x40e0e4], 1
je 0x40a893
cmp edx, 0xfc
je 0x40a8b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40a7f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040b670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040b490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40a836
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040b490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40d45c
push edi
call fcn.0040bf00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040b670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040b680
lea eax, [ebp - 0xa0]
push 0x40d43c
push eax
call fcn.0040b680
push dword [esi + 0x40e194]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040b680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040be75
add esp, 0x2c
pop edi
jmp 0x40a8b9
lea eax, [ebp + 8]
lea esi, [esi + 0x40e194]
push 0
push eax
push dword [esi]
call fcn.0040b490
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
jl 0x42e030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
popal
nop
nop
nop
jmp loc.00401219