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

Disassembly:
push ecx
mov ecx, dword [esp + 8]
mov edx, dword [ecx + 4]
push ebx
push ebp
push esi
push edi
mov edi, eax
mov eax, dword [ecx]
mov ecx, eax
shr ecx, 4
xor ecx, edx
and ecx, 0xf0f0f0f
xor edx, ecx
shl ecx, 4
xor eax, ecx
mov ecx, eax
shr ecx, 0x10
xor ecx, edx
and ecx, 0xffff
xor edx, ecx
shl ecx, 0x10
xor eax, ecx
mov ecx, edx
shr ecx, 2
xor ecx, eax
and ecx, 0x33333333
xor eax, ecx
shl ecx, 2
xor edx, ecx
mov ecx, edx
shr ecx, 8
xor ecx, eax
and ecx, 0xff00ff
xor eax, ecx
shl ecx, 8
xor edx, ecx
mov ecx, edx
add edx, edx
shr ecx, 0x1f
or ecx, edx
mov edx, ecx
xor edx, eax
and edx, 0xaaaaaaaa
xor eax, edx
xor ecx, edx
mov edx, eax
shr edx, 0x1f
add eax, eax
or edx, eax
mov dword [esp + 0x10], 8
mov ebx, dword [edi]
mov eax, ecx
shl eax, 0x1c
mov esi, ecx
shr esi, 4
or eax, esi
xor eax, ebx
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
mov ebp, dword [ebx*4 + 0x426718]
mov esi, eax
shr esi, 0x18
and esi, 0x3f
mov esi, dword [esi*4 + 0x426518]
or esi, ebp
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or esi, dword [ebx*4 + 0x426918]
and eax, 0x3f
mov ebx, dword [eax*4 + 0x426b18]
mov eax, dword [edi + 4]
or esi, ebx
xor eax, ecx
add edi, 4
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x426618]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x426818]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x426a18]
and eax, 0x3f
or ebx, dword [eax*4 + 0x426c18]
or ebx, esi
xor edx, ebx
mov ebx, dword [edi + 4]
add edi, 4
mov eax, edx
shl eax, 0x1c
mov esi, edx
shr esi, 4
or eax, esi
xor eax, ebx
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
mov ebp, dword [ebx*4 + 0x426718]
mov esi, eax
shr esi, 0x18
and esi, 0x3f
mov esi, dword [esi*4 + 0x426518]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or esi, ebp
mov ebp, dword [ebx*4 + 0x426918]
and eax, 0x3f
mov ebx, dword [eax*4 + 0x426b18]
mov eax, dword [edi + 4]
add edi, 4
or esi, ebp
or esi, ebx
xor eax, edx
mov ebx, eax
shr ebx, 0x18
mov ebp, eax
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x426618]
shr ebp, 0x10
and ebp, 0x3f
add edi, 4
or ebx, dword [ebp*4 + 0x426818]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x426a18]
and eax, 0x3f
mov ebp, dword [eax*4 + 0x426c18]
mov eax, dword [esp + 0x10]
or ebx, ebp
or ebx, esi
xor ecx, ebx
dec eax
mov dword [esp + 0x10], eax
jne 0x411fa8
mov eax, ecx
shr ecx, 1
shl eax, 0x1f
or eax, ecx
mov ecx, eax
xor ecx, edx
and ecx, 0xaaaaaaaa
xor edx, ecx
xor eax, ecx
mov ecx, edx
shr edx, 1
shl ecx, 0x1f
or ecx, edx
mov edx, ecx
shr edx, 8
xor edx, eax
and edx, 0xff00ff
xor eax, edx
shl edx, 8
xor ecx, edx
mov edx, ecx
shr edx, 2
xor edx, eax
and edx, 0x33333333
xor eax, edx
shl edx, 2
xor ecx, edx
mov edx, eax
shr edx, 0x10
xor edx, ecx
and edx, 0xffff
xor ecx, edx
shl edx, 0x10
xor eax, edx
mov edx, eax
shr edx, 4
xor edx, ecx
and edx, 0xf0f0f0f
mov esi, edx
shl esi, 4
xor esi, eax
mov eax, dword [esp + 0x18]
pop edi
mov dword [eax], esi
pop esi
xor edx, ecx
pop ebp
mov dword [eax + 4], edx
pop ebx
pop ecx
ret
Function at 0x412fd0
Capabilities:
Encode data using base64

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push ebp
push esi
xor eax, eax
xor esi, esi
xor bl, bl
xor ebp, ebp
cmp ecx, 0x7fffffff
push edi
jb 0x412ffd
mov ecx, dword [esp + 0x14]
lea edi, [ecx + 1]
nop
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x412ff0
sub ecx, edi
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0x24]
test edx, edx
je 0x41300f
mov esi, dword [edx]
mov bl, byte [edx]
and esi, 3
and bl, 0xfc
mov ecx, dword [esp + 0x18]
test ecx, ecx
jbe 0x4130d7
mov edi, dword [esp + 0x1c]
nop
cmp eax, dword [esp + 0x20]
jae 0x4130d7
mov ecx, dword [esp + 0x14]
mov cl, byte [ecx + ebp]
cmp cl, 0x2b
je 0x41308c
cmp cl, 0x2f
je 0x413088
cmp cl, 0x3d
je 0x413084
cmp cl, 0x30
jl 0x4130ca
cmp cl, 0x39
jg 0x413066
add cl, 4
cmp cl, 0xff
je 0x4130ca
test esi, esi
jne 0x413090
shl cl, 2
mov bl, cl
mov esi, 1
jmp 0x4130ca
cmp cl, 0x41
jl 0x4130ca
cmp cl, 0x5a
jg 0x413075
sub cl, 0x41
jmp 0x413051
cmp cl, 0x61
jl 0x4130ca
cmp cl, 0x7a
jg 0x4130ca
sub cl, 0x47
jmp 0x413051
xor esi, esi
jmp 0x4130ca
mov cl, 0x3f
jmp 0x413056
mov cl, 0x3e
jmp 0x413056
mov edx, esi
dec edx
je 0x4130b1
dec edx
je 0x4130a0
or cl, bl
mov dl, cl
xor esi, esi
jmp 0x4130c2
mov dl, cl
shr dl, 2
or dl, bl
shl cl, 6
mov esi, 3
jmp 0x4130c0
mov dl, cl
shr dl, 4
or dl, bl
shl cl, 4
mov esi, 2
mov bl, cl
mov byte [eax + edi], dl
mov edx, dword [esp + 0x24]
inc eax
mov ecx, dword [esp + 0x18]
inc ebp
cmp ebp, ecx
jb 0x413020
test edx, edx
je 0x4130e2
movzx ecx, bl
or ecx, esi
mov dword [edx], ecx
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x4130ec
mov dword [ecx], ebp
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4135a0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
mov ecx, dword [ebp]
push esi
mov esi, dword [ebp + 0x2c]
push edi
lea eax, [esp + 0x14]
push eax
push 0
push ecx
call fcn.00414040
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x2c]
mov edx, ecx
sub edx, esi
lea eax, [edx + ebp + 0x18]
mov edx, dword [esp + 0x28]
add esp, 0xc
cmp edx, esi
ja 0x413607
sub esi, edx
test edx, edx
mov dword [ebp + 0x2c], esi
je 0x4136a3
mov esi, ebx
mov ecx, edi
sub esi, ecx
lea ecx, [ecx]
mov cl, byte [edi]
mov bl, byte [eax]
xor bl, cl
mov byte [eax], bl
mov cl, bl
mov byte [esi + edi], cl
inc edi
inc eax
dec edx
jne 0x4135f0
pop edi
pop esi
pop ebp
pop ebx
ret
sub edx, esi
test esi, esi
mov dword [esp + 0x1c], edx
je 0x413624
mov cl, byte [edi]
xor byte [eax], cl
mov cl, byte [eax]
inc ebx
mov byte [ebx - 1], cl
inc edi
inc eax
dec esi
jne 0x413611
mov ecx, dword [esp + 0x14]
cmp edx, ecx
jbe 0x413669
push ecx
lea eax, [ebp + 4]
push eax
lea esi, [ebp + 0x18]
push esi
call fcn.004153e0
mov edx, dword [ebp]
push esi
push esi
push edx
call fcn.00413ff0
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
add esp, 0x18
sub eax, ecx
mov edx, ecx
mov dword [esp + 0x1c], eax
mov al, byte [edi]
xor byte [esi], al
mov al, byte [esi]
inc ebx
mov byte [ebx - 1], al
inc edi
inc esi
dec edx
jne 0x413654
cmp dword [esp + 0x1c], ecx
ja 0x413628
push ecx
lea ecx, [ebp + 4]
push ecx
lea esi, [ebp + 0x18]
push esi
call fcn.004153e0
mov edx, dword [ebp]
push esi
push esi
push edx
call fcn.00413ff0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
add esp, 0x18
sub eax, ecx
mov dword [ebp + 0x2c], eax
mov dl, byte [edi]
mov al, byte [esi]
xor al, dl
mov byte [esi], al
inc ebx
mov byte [ebx - 1], al
inc edi
inc esi
dec ecx
jne 0x413692
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4136b0
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
mov esi, dword [esp + 0x14]
mov ecx, dword [esi]
mov ebp, dword [esi + 0x2c]
push edi
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push eax
push 0
push ecx
call fcn.00414040
mov edx, dword [esp + 0x1c]
sub edx, ebp
lea esi, [edx + esi + 0x18]
mov edx, dword [esp + 0x2c]
add esp, 0xc
cmp edx, ebp
ja 0x413716
mov eax, dword [esp + 0x18]
sub ebp, edx
test edx, edx
mov dword [eax + 0x2c], ebp
je 0x4137c9
mov eax, edi
sub ebx, eax
lea ecx, [ecx]
mov al, byte [edi]
mov cl, byte [esi]
mov byte [esi], al
xor al, cl
inc esi
mov byte [ebx + edi], al
inc edi
dec edx
jne 0x413700
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
sub edx, ebp
test ebp, ebp
mov dword [esp + 0x20], edx
je 0x413731
mov al, byte [edi]
mov cl, byte [esi]
mov byte [esi], al
xor al, cl
inc ebx
mov byte [ebx - 1], al
inc esi
inc edi
dec ebp
jne 0x413720
cmp edx, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
jbe 0x41378b
jmp 0x413740
push 8
lea eax, [ebp + 4]
push eax
lea esi, [ebp + 0x18]
push esi
call fcn.004153e0
mov ecx, dword [ebp]
push esi
push esi
push ecx
call fcn.00413ff0
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x28]
add esp, 0x18
sub eax, edx
mov dword [esp + 0x20], eax
jmp 0x413770
mov al, byte [edi]
mov cl, byte [esi]
mov byte [esi], al
xor al, cl
inc ebx
mov byte [ebx - 1], al
inc esi
inc edi
dec edx
jne 0x413770
mov edx, dword [esp + 0x10]
cmp dword [esp + 0x20], edx
ja 0x413740
mov eax, dword [esp + 0x10]
push eax
lea ecx, [ebp + 4]
push ecx
lea esi, [ebp + 0x18]
push esi
call fcn.004153e0
mov edx, dword [ebp]
push esi
push esi
push edx
call fcn.00413ff0
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x38]
add esp, 0x18
sub eax, edx
mov dword [ebp + 0x2c], eax
mov al, byte [edi]
mov cl, byte [esi]
mov byte [esi], al
xor al, cl
inc ebx
mov byte [ebx - 1], al
inc esi
inc edi
dec edx
jne 0x4137b8
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x413900
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
mov ecx, dword [edi + 0x14]
push ebp
push esi
lea eax, [esp + 0xc]
push eax
push 0
push ecx
call fcn.00414040
mov edx, dword [esp + 0x20]
mov esi, dword [edi + 0x14]
push ebx
push edx
push esi
mov dword [esp + 0x20], esi
call fcn.00413fb0
add esp, 0x18
xor eax, eax
xor ebp, ebp
test ebx, ebx
jbe 0x413963
lea esi, [edi + 0x2c]
mov ecx, dword [esp + 0x14]
mov dl, byte [ecx + ebp]
xor byte [esi + eax], dl
mov ecx, dword [esp + 0xc]
inc eax
cmp eax, ecx
jne 0x41395a
mov eax, dword [esp + 8]
push esi
push esi
push eax
call fcn.00413ff0
add esp, 0xc
xor eax, eax
inc ebp
cmp ebp, ebx
jb 0x413936
mov esi, dword [esp + 8]
mov ecx, dword [esp + 0xc]
cmp eax, ecx
jae 0x413979
jmp 0x413970
xor byte [edi + eax + 0x2c], bl
inc eax
cmp eax, ecx
jb 0x413970
lea eax, [edi + 0x2c]
push eax
push eax
push esi
call fcn.00413ff0
add esp, 0xc
pop esi
mov dword [edi + 0x40], 0
pop ebp
add esp, 8
ret
Function at 0x4147b0
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 8]
push ebx
xor ebx, ebx
xor ecx, ecx
cmp eax, 2
jne 0x41486b
push esi
push 0x404
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x414860
mov eax, dword [esp + 0xc]
push eax
call fcn.0040e450
add esp, 4
push 0x400
push esi
mov dword [esi + 0x400], eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x414803
mov word [esi], 0x2e
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x414808
sub eax, edx
cmp byte [eax + esi - 1], 0x5c
push edi
je 0x414832
mov edi, esi
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x414820
mov cx, word [0x422e20]
mov word [edi], cx
mov edi, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x414835
mov edx, dword [str.randseed.rnd]
mov dword [edi], edx
mov eax, dword [0x422e14]
mov dword [edi + 4], eax
mov ecx, dword [0x422e18]
mov dword [edi + 8], ecx
mov dl, byte [0x422e1c]
mov byte [edi + 0xc], dl
pop edi
mov eax, dword [esp + 0x14]
mov dword [eax], esi
pop esi
mov eax, ebx
pop ebx
ret
mov edx, dword [esp + 0x10]
mov eax, 0xffffd120
mov dword [edx], ecx
pop ebx
ret

Function at 0x414880
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
xor ebp, ebp
xor eax, eax
test ebx, ebx
je 0x414890
mov dword [ebx], eax
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jbe 0x4148cc
mov ecx, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 8]
push eax
push edi
push 1
push ecx
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
cmp eax, edi
je 0x4148bc
mov ebp, 0xffffd12c
mov edx, dword [esi]
mov ecx, dword [esi + 4]
add edx, eax
adc ecx, 0
mov dword [esi], edx
mov dword [esi + 4], ecx
pop esi
test ebx, ebx
pop edi
je 0x4148d3
mov dword [ebx], eax
mov eax, ebp
pop ebp
pop ebx
ret

Function at 0x4148e0
Capabilities:
Write file on windows

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0x10]
xor ebx, ebx
test edi, edi
jbe 0x41491f
mov ecx, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 8]
push eax
push edi
push 1
push ecx
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
cmp eax, edi
je 0x41490f
mov ebx, 0xffffd12b
mov ecx, dword [esi]
add ecx, eax
mov eax, dword [esi + 4]
adc eax, 0
mov dword [esi], ecx
mov dword [esi + 4], eax
pop esi
pop edi
mov eax, ebx
pop ebx
ret
Function at 0x41c118
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x4240a0
call fcn.0041c430
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or edi, 0xffffffff
mov dword [ebp - 4], edi
cmp word [0x400000], 0x5a4d
jne 0x41c16c
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x41c16c
movzx ecx, word [eax + 0x400018]
cmp ecx, 0x10b
je 0x41c184
cmp ecx, 0x20b
je 0x41c171
mov dword [ebp - 0x1c], ebx
jmp 0x41c19b
cmp dword [eax + 0x400084], 0xe
jbe 0x41c16c
xor ecx, ecx
cmp dword [eax + 0x4000f8], ebx
jmp 0x41c195
cmp dword [eax + 0x400074], 0xe
jbe 0x41c16c
xor ecx, ecx
cmp dword [eax + 0x4000e8], ebx
setne cl
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 1
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
mov dword [0x4280f0], edi
mov dword [0x4280f4], edi
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x427d54]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x427d50]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x4280f8], eax
call fcn.0041c42c
cmp dword [0x426e80], ebx
jne 0x41c1f8
push fcn.0041c42c
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0041c41a
push 0x41d254
push 0x41d250
call sub.msvcrt.dll__initterm
mov eax, dword [0x427d4c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x427d48]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x41d24c
push 0x41d244
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
cmp byte [eax], 0x22
jne 0x41c283
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x41c263
cmp cl, 0x22
jne 0x41c254
cmp byte [eax], 0x22
jne 0x41c26c
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x41c277
cmp cl, 0x20
jbe 0x41c268
test byte [ebp - 0x54], 1
je 0x41c28e
movzx ecx, word [ebp - 0x50]
jmp 0x41c291
cmp byte [eax], 0x20
jbe 0x41c26c
inc eax
mov dword [ebp - 0x20], eax
jmp 0x41c283
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x400000
call fcn.00405e0d
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x41c2af
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], edi
jmp 0x41c2eb
mov eax, esi
jmp 0x41c2ff
call fcn.0041c46b
ret

Function at 0x41c4f6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x426e88]
jne 0x41c507
test ecx, 0xffff0000
jne 0x41c507
ret
jmp fcn.0041c50c
Function at 0x401350
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x804
mov esi, dword [esp + 0x818]
mov ebp, esp
push 0x801
push str.4E7B0123756789:_8_____URSP__Y__._
push ebp
call sub.msvcrt.dll_memcpy
add esp, 0xc
xor eax, eax
nop dword [eax + eax]
nop
test eax, eax
nop
mov ecx, eax
add cl, 0xfb
cmp eax, 5
movzx ecx, cl
cmovb ecx, eax
xor byte [esp + eax], cl
nop
test eax, eax
nop
inc eax
cmp eax, 0x800
jne 0x401380
nop
test eax, eax
nop
nop
test eax, eax
nop
push ebp
call main
add esp, 4
cmp eax, 0xfffffff0
jae 0x40140b
mov ebx, eax
cmp eax, 0xa
ja 0x4013cd
mov eax, ebx
add al, bl
mov byte [esi], al
mov edi, esi
inc edi
jmp 0x4013ef
mov ebp, ebx
or ebx, 0xf
lea eax, [ebx + 1]
push eax
call fcn.00409960
add esp, 4
mov edi, eax
mov dword [esi + 8], eax
add ebx, 2
mov dword [esi], ebx
mov ebx, ebp
mov ebp, esp
mov dword [esi + 4], ebx
push ebx
push ebp
push edi
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov byte [edi + ebx], 0
mov eax, esi
add esp, 0x804
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
call fcn.004054c0
int3

Function at 0x401420
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, 0x6124
call fcn.0042e374
mov esi, dword [esp + 0x6138]
mov ebp, esp
push 0x6121
push 0x459e69
push ebp
call sub.msvcrt.dll_memcpy
add esp, 0xc
xor eax, eax
nop dword [eax]
nop
test eax, eax
nop
lea ecx, [eax + 0xf3]
lea edx, [eax + 0x20]
cmp eax, 0xd
cmovb ecx, edx
xor byte [esp + eax], cl
nop
test eax, eax
nop
inc eax
cmp eax, 0x6120
jne 0x401450
nop
test eax, eax
nop
nop
test eax, eax
nop
push ebp
call main
add esp, 4
cmp eax, 0xfffffff0
jae 0x4014dc
mov ebx, eax
cmp eax, 0xa
ja 0x40149e
mov eax, ebx
add al, bl
mov byte [esi], al
mov edi, esi
inc edi
jmp 0x4014c0
mov ebp, ebx
or ebx, 0xf
lea eax, [ebx + 1]
push eax
call fcn.00409960
add esp, 4
mov edi, eax
mov dword [esi + 8], eax
add ebx, 2
mov dword [esi], ebx
mov ebx, ebp
mov ebp, esp
mov dword [esi + 4], ebx
push ebx
push ebp
push edi
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov byte [edi + ebx], 0
mov eax, esi
add esp, 0x6124
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
call fcn.004054c0
int3
Function at 0x4018e0
Capabilities:
Get file attributes

Disassembly:
push edi
push esi
cmp byte [0x46ab09], 0
je 0x4018fa
mov esi, dword [esp + 0x14]
mov eax, dword [0x46ab28]
test eax, eax
jne 0x401933
jmp 0x401944
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x40191f
push str.___.___
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push str.Unicows.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x46ab28], eax
mov byte [0x46ab09], 1
mov esi, dword [esp + 0x14]
mov eax, dword [0x46ab28]
test eax, eax
je 0x401944
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401944
pop esi
pop edi
ret 0xc
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
test eax, eax
jne 0x40196d
mov edi, dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetVersion]
lea ecx, [edi + 8]
test eax, eax
cmovns ecx, edi
shr eax, 0x1f
push dword [edi + eax*8 + 4]
call dword [ecx]
test eax, eax
je 0x40197a
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
pop esi
pop edi
ret 0xc
xor eax, eax
pop esi
pop edi
ret 0xc

Function at 0x401bc0
Capabilities:
Print debug messages

Disassembly:
push ebx
push edi
push esi
push eax
mov dword [esp], 0
cmp byte [0x46ab08], 0
je 0x401c4f
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
cmp byte [0x46ab08], 0
jne 0x401c44
xor edi, edi
test esi, esi
jne 0x401bf7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp dword [0x46ab2c], 0
je 0x401c37
cmp dword [0x46ab30], 0
je 0x401c37
mov ebx, dword [esp]
mov eax, dword [0x46ab14]
test eax, eax
jne 0x401c32
push str.DeactivateActCtx
push 0x46ab30
push 0x46ab2c
call fcn.004018e0
mov dword [0x46ab14], eax
test eax, eax
je 0x401c37
push ebx
push 0
call eax
test esi, esi
jne 0x401c44
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
ret 4
cmp byte [section..data], 0
je 0x401c79
push str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp byte [0x46ab08], 0
jne 0x401bd4
cmp byte [section..data], 0
jne 0x401c82
call fcn.00401990
test eax, eax
je 0x401cc2
movzx ecx, byte [0x46ab10]
mov esi, dword [0x46ab04]
test ecx, ecx
jne 0x401cb4
push str.ActivateActCtx
push 0x46ab30
push 0x46ab2c
call fcn.004018e0
mov ecx, eax
test eax, eax
setne byte [0x46ab10]
je 0x401cc2
mov eax, esp
push eax
push esi
call ecx
test eax, eax
jne 0x401bd4
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0xffffff88
cmp eax, 7
ja 0x401c44
mov ecx, 0xc1
bt ecx, eax
jae 0x401c44
mov byte [0x46ab08], 1
jmp 0x401bd4
Function at 0x401e80
Capabilities:
Encode data using xor
Execute command

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xb8
mov edi, dword [esp + 0x138]
mov byte [esp], 0xc
mov dword [esp + 1], 0x72617473
mov word [esp + 5], 0x2074
mov byte [esp + 7], 0
push edi
call main
add esp, 4
mov ecx, esp
push eax
push edi
call fcn.0040ade0
test byte [esp], 1
je 0x401ec7
mov eax, dword [esp + 8]
jmp 0x401ecb
lea eax, [esp + 1]
push eax
call sub.msvcrt.dll_system
add esp, 4
push edi
call main
add esp, 4
cmp eax, 0xfffffff0
jae 0x402073
mov ebx, eax
cmp eax, 0xa
ja 0x401efb
mov eax, ebx
add al, bl
mov byte [esp + 0x18], al
lea esi, [esp + 0x19]
jmp 0x401f1b
mov ebp, ebx
or ebp, 0xf
inc ebp
push ebp
call fcn.00409960
add esp, 4
mov esi, eax
mov dword [esp + 0x20], eax
or ebp, 1
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebx
push ebx
push edi
push esi
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov byte [esi + ebx], 0
vmovups ymm0, ymmword [0x46030a]
vmovups ymmword [esp + 0x96], ymm0
vmovups ymm0, ymmword [0x4602f8]
vmovups ymmword [esp + 0x84], ymm0
vmovups ymm0, ymmword [0x4602d8]
vmovups ymmword [esp + 0x64], ymm0
vmovups ymm0, ymmword [0x4602b8]
vmovups ymmword [esp + 0x44], ymm0
vmovups ymm0, ymmword [0x460298]
vmovups ymmword [esp + 0x24], ymm0
xor eax, eax
nop dword [eax + eax]
nop
test eax, eax
nop
lea ecx, [eax + 0xfc]
lea edx, [eax + 0x91]
cmp eax, 4
cmovb ecx, edx
xor byte [esp + eax + 0x24], cl
nop
test eax, eax
nop
inc eax
cmp eax, 0x91
jne 0x401f80
nop
test eax, eax
nop
nop
test eax, eax
nop
lea edi, [esp + 0x24]
push edi
vzeroupper
call main
add esp, 4
cmp eax, 0xfffffff0
jae 0x40207c
mov ebx, eax
cmp eax, 0xa
ja 0x401fe0
mov eax, ebx
add al, bl
mov byte [esp + 0xc], al
lea esi, [esp + 0xd]
jmp 0x402000
mov ebp, ebx
or ebp, 0xf
inc ebp
push ebp
call fcn.00409960
add esp, 4
mov esi, eax
mov dword [esp + 0x14], eax
or ebp, 1
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebx
push ebx
push edi
push esi
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov byte [esi + ebx], 0
lea eax, [esp + 0xc]
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.00401cf0
add esp, 8
test byte [esp + 0xc], 1
jne 0x40204c
test byte [esp + 0x18], 1
jne 0x40205f
test byte [esp], 1
je 0x402041
push dword [esp + 8]
call fcn.004099d0
add esp, 4
add esp, 0xb8
pop esi
pop edi
pop ebx
pop ebp
ret
push dword [esp + 0x14]
call fcn.004099d0
add esp, 4
test byte [esp + 0x18], 1
je 0x40202f
push dword [esp + 0x20]
call fcn.004099d0
add esp, 4
test byte [esp], 1
jne 0x402035
jmp 0x402041
lea ecx, [esp + 0x18]
call fcn.004054c0
lea ecx, [esp + 0xc]
call fcn.004054c0
mov esi, eax
test byte [esp + 0xc], 1
jne 0x4020a1
test byte [esp + 0x18], 1
jne 0x4020bf
test byte [esp], 1
jne 0x4020db
push esi
call fcn.0042e970
push dword [esp + 0x14]
call fcn.004099d0
add esp, 4
test byte [esp + 0x18], 1
je 0x402095
jmp 0x4020bf
push dword [esp + 0x20]
call fcn.004099d0
add esp, 4
test byte [esp], 1
je 0x40209b
jmp 0x4020db
push dword [esp + 8]
call fcn.004099d0
add esp, 4
push esi
call fcn.0042e970
int3
Function at 0x405310
Capabilities:
Hide graphical window
Query or enumerate registry value

Disassembly:
push ebx
push edi
push esi
sub esp, 0x10
mov edi, dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [esp], 0
mov dword [esp + 8], 4
lea eax, [esp + 4]
push eax
push 1
push 0
push str.SoftwareAdobeAdobe_Acrobat10.0Security
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405386
lea eax, [esp + 8]
mov ecx, esp
lea edx, [esp + 0xc]
push eax
push ecx
push edx
push 0
push 0x4592f7
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov ebx, dword [esp]
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or ebx, esi
je 0x4053e5
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4053ad
push str.SetProcessDEPPolicy
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4053ad
push 1
call eax
test eax, eax
jne 0x4053e5
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4053e5
push str.NtSetInformationProcess
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4053e5
mov esi, eax
mov dword [esp], 0xd
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, esp
push 4
push ecx
push 0x22
push eax
call esi
push edi
call fcn.004020f0
add esp, 4
xor eax, eax
add esp, 0x10
pop esi
pop edi
pop ebx
ret 0x10