joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420284
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x5f289f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x4202bf
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4202d8
lea eax, [ebp - 0x10]
mov edx, dword [0x60f348]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x4202eb
lea eax, [ebp - 0x10]
mov edx, dword [0x60f348]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x4202f7
adc edx, 0
mov edx, dword [edx*4 + 0x60e178]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x420471
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420464
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420464
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420464
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420464
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x420402
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x420402
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420402
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420402
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x420464
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420464
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420464
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420464
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420464
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420489
inc ebx
cmp ebx, 0x19
jne 0x4202b1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f28a6
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x40f430
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40f45d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40f45d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40f87c
Capabilities:
Encode data using base64

Disassembly:
sub esp, 0x10
push ebx
push esi
mov esi, edx
mov dword [esp + 8], ecx
push 3
pop ecx
xor edx, edx
lea eax, [esi + 2]
div ecx
mov ebx, eax
shl ebx, 2
lea ecx, [ebx + 0xa]
push ecx
call fcn.0040570b
pop ecx
mov ecx, eax
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x40f97a
test esi, esi
je 0x40f96a
mov eax, dword [esp + 8]
xor edx, edx
push ebp
push edi
push 3
lea edi, [eax + 2]
not eax
mov dword [esp + 0x14], eax
lea ebp, [ecx + 2]
pop ecx
lea eax, [esi - 1]
div ecx
push 2
inc eax
mov dword [esp + 0x18], eax
pop edx
mov eax, dword [esp + 0x10]
movzx ecx, byte [edi - 2]
add eax, edi
shl ecx, 0x10
cmp eax, esi
jae 0x40f8f4
movzx eax, byte [edi - 1]
shl eax, 8
add ecx, eax
cmp edx, esi
jae 0x40f8fd
movzx eax, byte [edi]
add ecx, eax
mov eax, ecx
shr eax, 0x12
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp - 2], al
mov eax, ecx
shr eax, 0xc
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp - 1], al
mov eax, dword [esp + 0x10]
add eax, edi
cmp eax, esi
jae 0x40f936
mov eax, ecx
shr eax, 6
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x40f938
mov al, 0x3d
mov byte [ebp], al
cmp edx, esi
jae 0x40f94a
and ecx, 0x3f
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x40f94c
mov al, 0x3d
mov byte [ebp + 1], al
add ebp, 4
push 3
pop eax
add edi, eax
add edx, eax
sub dword [esp + 0x14], 1
jne 0x40f8da
mov ecx, dword [esp + 0x1c]
pop edi
pop ebp
mov eax, dword [esp + 0x1c]
mov byte [ecx + ebx], 0
test eax, eax
je 0x40f978
mov dword [eax], ebx
mov eax, ecx
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x414ac0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x290
push ebx
push ebp
push esi
push edi
push 7
mov dword [esp + 0x2c], ecx
xor esi, esi
mov dword [esp + 0x20], edx
mov ecx, 0xff
mov dword [esp + 0x14], 0x556c651e
mov byte [esp + 0x18], 0x23
pop edi
movzx eax, byte [esp + esi + 0x10]
add ax, di
and ax, cx
mov word [esp + esi*2 + 0x34], ax
inc esi
cmp esi, 5
jl 0x414ae9
push dword [esp + 0x2a4]
xor eax, eax
mov word [esp + 0x42], ax
lea eax, [esp + 0x38]
push eax
call fcn.0041b73b
mov esi, eax
mov dword [esp + 0x18], esi
pop ecx
pop ecx
test esi, esi
je 0x414c67
lea eax, [esp + 0x50]
xor ecx, ecx
push eax
push esi
mov edx, 0x54e1cc7b
inc ecx
call fcn.00412ca7
call eax
mov ebx, eax
cmp ebx, 0xffffffff
je 0x414c60
xor ecx, ecx
mov edx, 0x17299c7b
inc ecx
call fcn.00412ca7
mov esi, dword [esp + 0x1c]
mov ebp, eax
mov word [esp + 0x18], 0x5a5a
push 0x2e
pop eax
mov word [esp + 0x1c], ax
mov edx, 0xff
xor eax, eax
xor ecx, ecx
mov word [esp + 0x1e], ax
movzx eax, byte [esp + ecx + 0x18]
sub ax, 0x2c
and ax, dx
mov word [esp + ecx*2 + 0x2c], ax
inc ecx
cmp ecx, 2
jl 0x414b77
xor eax, eax
mov word [esp + 0x30], ax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x80]
push eax
call fcn.00405af6
pop ecx
pop ecx
test eax, eax
je 0x414c3c
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x80]
push eax
call fcn.00405af6
pop ecx
pop ecx
test eax, eax
je 0x414c3c
test byte [esp + 0x50], 0x10
je 0x414c3c
mov dword [esp + 0x20], 0x93bca3ea
xor ecx, ecx
mov word [esp + 0x24], 0xa3ea
mov byte [esp + 0x26], 0xbc
mov al, byte [esp + ecx + 0x20]
xor al, 0xcf
movzx eax, al
mov word [esp + ecx*2 + 0x40], ax
inc ecx
cmp ecx, edi
jl 0x414be6
xor eax, eax
mov word [esp + 0x4e], ax
lea eax, [esp + 0x7c]
push eax
push dword [esp + 0x2a8]
lea eax, [esp + 0x48]
push eax
call fcn.0041b73b
mov edi, eax
add esp, 0xc
test edi, edi
je 0x414c39
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x7c]
push eax
push edi
mov edx, esi
call fcn.00414c72
push edi
call fcn.004056f0
add esp, 0xc
push 7
pop edi
lea eax, [esp + 0x50]
push eax
push ebx
call ebp
test eax, eax
jne 0x414b61
xor ecx, ecx
mov edx, 0x83fbc401
push ebx
inc ecx
call fcn.00412ca7
call eax
mov esi, dword [esp + 0x10]
push esi
call fcn.004056f0
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x290
ret
Function at 0x417dc4
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov ebp, edx
mov edi, ecx
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x10]
xor bl, bl
call fcn.0041ba01
mov esi, eax
test esi, esi
je 0x417e5c
mov dword [esp + 0x14], 0xb8b1b4bb
xor ecx, ecx
mov dword [esp + 0x18], 0xb8b0bcb3
mov al, byte [esp + ecx + 0x14]
xor al, 0xdd
mov byte [esp + ecx + 0x1c], al
inc ecx
cmp ecx, 8
jl 0x417df6
push dword [esp + 0x10]
lea edx, [esp + 0x20]
mov byte [esp + 0x28], bl
push esi
mov ecx, edi
call fcn.00417e66
mov bl, al
pop ecx
pop ecx
test bl, bl
je 0x417e55
mov dword [esp + 0x10], 0x6d74716e
xor ecx, ecx
mov al, byte [esp + ecx + 0x10]
sub al, 8
mov byte [esp + ecx + 0x14], al
inc ecx
cmp ecx, 4
jl 0x417e2c
push dword [esp + 0x2c]
lea edx, [esp + 0x18]
mov byte [esp + 0x1c], 0
push ebp
mov ecx, edi
call fcn.00417e66
pop ecx
pop ecx
mov bl, al
push esi
call fcn.004056f0
pop ecx
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x18
ret
Function at 0x419ecf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
cmp byte [0x424dc0], 0
push ebx
push esi
push edi
mov esi, 0x424dc0
jne 0x419fdd
xor ebx, ebx
mov dword [ebp - 0x10], 0xf7a3abbe
mov dword [ebp - 0xc], 0xafabbec3
mov ecx, ebx
mov dword [ebp - 8], 0xf7bec3f7
mov byte [ebp - 4], 0xee
mov al, byte [ebp + ecx - 0x10]
xor al, 0x9b
mov byte [ebp + ecx - 0x34], al
inc ecx
cmp ecx, 0xd
jl 0x419f0a
mov edi, 0x104
mov byte [ebp - 0x27], bl
lea eax, [ebp - 0x140]
mov dword [ebp - 0x14], ebx
xor ecx, ecx
xorps xmm0, xmm0
push edi
push eax
mov edx, 0xd2fe083d
movlpd qword [ebp - 0xc], xmm0
inc ecx
call fcn.00412ca7
call eax
movzx ecx, byte [ebp - 0x140]
test eax, eax
push 0x43
pop edx
push ebx
push ebx
push ebx
push ebx
cmove ecx, edx
mov word [ebp - 0xb], 0x5c3a
lea eax, [ebp - 0x14]
mov byte [ebp - 0x140], cl
push eax
mov byte [ebp - 0xc], cl
lea eax, [ebp - 0xc]
push ebx
xor ecx, ecx
mov byte [ebp - 9], bl
push ebx
push eax
mov edx, 0x980ded59
inc ecx
call fcn.00412ca7
call eax
imul eax, dword [ebp - 0x14], 0x342167
mov ecx, 0x24cc3240
add eax, 0x3c3a468
mov dword [ebp - 0x24], eax
imul eax, eax, 0x69cc488f
sub ecx, eax
mov word [ebp - 0x1e], cx
imul ecx, ecx, 0x342167
add ecx, 0x3c3a468
mov byte [ebp + ebx - 0x1c], cl
inc ebx
cmp ebx, 8
jl 0x419fa2
push dword [ebp - 0x1a]
movzx eax, word [ebp - 0x1e]
mov edx, 0x534fbfb6
push eax
push dword [ebp - 0x24]
lea eax, [ebp - 0x34]
mov dword [ebp - 0x14], ecx
push eax
push edi
push esi
xor ecx, ecx
call fcn.00412ca7
call eax
add esp, 0x18
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41b3f5
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
sub esp, 0xc0
push ebx
push ebp
push edi
xor edi, edi
mov dword [esp + 0xc], 0x6d6a6b68
mov ebp, ecx
mov dword [esp + 0x10], 0x616e6f6c
mov ebx, edx
mov dword [esp + 0x14], 0x65626360
mov dword [esp + 0x18], 0x79666764
mov ecx, edi
mov dword [esp + 0x1c], 0x7d7a7b78
mov dword [esp + 0x20], 0x717e7f7c
mov dword [esp + 0x24], 0x4b487370
mov dword [esp + 0x28], 0x4f4c4d4a
mov dword [esp + 0x2c], 0x4340414e
mov dword [esp + 0x30], 0x47444542
mov dword [esp + 0x34], 0x5b585946
mov dword [esp + 0x38], 0x5f5c5d5a
mov dword [esp + 0x3c], 0x5350515e
mov dword [esp + 0x40], 0x3a3b3839
mov dword [esp + 0x44], 0x3e3f3c3d
mov word [esp + 0x48], 0x3031
mov al, byte [esp + ecx + 0xc]
xor al, 9
movzx eax, al
mov word [esp + ecx*2 + 0x4c], ax
inc ecx
cmp ecx, 0x3e
jl 0x41b485
xor eax, eax
push edi
mov word [esp + 0xcc], ax
call fcn.00405e33
push eax
call fcn.00405e21
pop ecx
pop ecx
test ebx, ebx
je 0x41b4dc
push esi
lea eax, [esp + 0x50]
push eax
call fcn.0040581e
pop ecx
mov esi, eax
call fcn.00405e00
xor edx, edx
div esi
mov ax, word [esp + edx*2 + 0x50]
mov word [ebp + edi*2], ax
inc edi
cmp edi, ebx
jb 0x41b4b6
pop esi
xor eax, eax
pop edi
mov word [ebp + ebx*2], ax
pop ebp
pop ebx
add esp, 0xc0
ret
Function at 0x42ffb0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.NOS1
lea edi, [esi - 0x1c000]
push edi
or ebp, 0xffffffff
jmp 0x42ffd2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42ffd9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42ffc8
mov eax, 1
add ebx, ebx
jne 0x42ffeb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42ffe0
jne 0x42fffc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42ffe0
xor ecx, ecx
sub eax, 3
jb 0x430010
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x430082
mov ebp, eax
add ebx, ebx
jne 0x43001b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x430028
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x43004c
inc ecx
add ebx, ebx
jne 0x430038
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x43002d
jne 0x430049
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43002d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43006c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43005d
jmp 0x42ffce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43006c
add edi, ecx
jmp 0x42ffce
pop esi
mov edi, esi
mov ecx, 0x738
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43008a
cmp byte [edi], 0x13
jne 0x43008a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x43008f
lea edi, [esi + 0x2d000]
mov eax, dword [edi]
or eax, eax
je 0x430107
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x31480]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x31520]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4300bc
mov ecx, edi
jns 0x4300eb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x31524]
or eax, eax
je 0x430101
mov dword [ebx], eax
add ebx, 4
jmp 0x4300d9
call dword [esi + 0x31528]
popal
jmp 0x412114
Function at 0x401300
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x402f1c
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x40601c]
xor eax, esp
mov dword [esp + 0x224], eax
push esi
mov eax, dword [0x40601c]
xor eax, esp
push eax
lea eax, [esp + 0x230]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 4], 0
jne 0x4013cf
push 0x206
lea eax, [esp + 0x2a]
push 0
push eax
mov word [esp + 0x30], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea ecx, [esp + 0x28]
push ecx
push str.QPlusBinPath
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x4013ee
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0xc]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
push str.performancelog.dll
lea ecx, [esp + 0xc]
mov dword [esp + 0x23c], 0
call dword [0x40406c]
cmp dword [esp + 0x20], 8
mov eax, dword [esp + 0xc]
jae 0x4013b0
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea ecx, [esp + 8]
mov dword [esi + 4], eax
mov dword [esp + 0x238], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, dword [esi + 4]
test eax, eax
je 0x4013e5
push str.InitPerfLog
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x24], eax
mov esi, dword [esi + 0x24]
test esi, esi
je 0x4013ee
call esi
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.0040256a
add esp, 0x234
ret

Function at 0x4015e0
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x402fa3
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x40601c]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
mov eax, dword [0x40601c]
xor eax, esp
push eax
lea eax, [esp + 0x21c]
mov dword fs:[0], eax
push 0x104
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x22c], 0
mov esi, ecx
push str.QPlusBinPath
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov dword [esp + 0x224], 0
push 0x40446c
mov ecx, esi
mov dword [esp + 0xc], 1
call dword [0x40406c]
call fcn.00401480
mov eax, esi
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0040256a
add esp, 0x220
ret
Function at 0x401b90
Capabilities:
Query environment variable
Set environment variable

Disassembly:
mov eax, 0x1004
call fcn.00402e90
mov eax, dword [0x40601c]
xor eax, esp
mov dword [esp + 0x1000], eax
mov eax, dword [esp + 0x1008]
push edi
mov edi, dword [sym.imp.MSVCR80.dll_wcsncat]
push 0x104
push eax
push esi
call edi
push 0x104
push str.Bin_
push esi
call edi
add esp, 0x18
push 0x800
lea eax, [esp + 8]
push eax
push str.PATH
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push 0x820
lea ecx, [esp + 8]
push ecx
push esi
call edi
add esp, 0xc
push esi
push str.PATH
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ecx, dword [esp + 0x1004]
pop edi
xor ecx, esp
call fcn.0040256a
add esp, 0x1004
ret
Function at 0x401c20
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0xa80
mov eax, dword [0x40601c]
xor eax, esp
mov dword [esp + 0xa7c], eax
push ebx
push ebp
mov ebp, dword [esp + 0xa8c]
push esi
mov esi, ecx
xor ebx, ebx
cmp esi, ebx
push edi
je 0x401e48
cmp ebp, ebx
je 0x401e48
push 0x250
lea eax, [esp + 0x1c]
push ebx
push eax
call sub.MSVCR80.dll_memset
push 0x206
lea ecx, [esp + 0x27a]
push ebx
push ecx
mov word [esp + 0x280], bx
call sub.MSVCR80.dll_memset
mov edi, dword [sym.imp.MSVCR80.dll_wcscpy_s]
push esi
lea edx, [esp + 0x284]
push 0x104
push edx
call edi
push 0x206
lea eax, [esp + 0x8aa]
push ebx
push eax
mov word [esp + 0x8b0], bx
call sub.MSVCR80.dll_memset
push esi
lea ecx, [esp + 0x8b4]
push 0x104
push ecx
call edi
lea eax, [esp + 0x2a4]
add esp, 0x3c
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401cd0
mov edi, dword [sym.imp.MSVCR80.dll_wcsncat]
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x266], 0x5c
je 0x401d07
push 0x104
lea edx, [esp + 0x26c]
push 0x40446c
push edx
call edi
add esp, 0xc
push 0x104
lea eax, [esp + 0x26c]
push 0x4044bc
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x26c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x14], esi
je 0x401e41
mov ebx, dword [sym.imp.MSVCR80.dll_wcsncmp]
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x401e3b
test byte [esp + 0x18], 0x10
je 0x401d46
lea esi, [esp + 0x44]
call fcn.00401e70
test eax, eax
je 0x401d46
push 0x104
mov ecx, esi
push ebp
push ecx
call ebx
add esp, 0xc
test eax, eax
je 0x401d46
xor esi, esi
push 0x206
lea edx, [esp + 0x67e]
push esi
push edx
mov word [esp + 0x684], si
call sub.MSVCR80.dll_memset
push 0x104
lea eax, [esp + 0x688]
push ebp
push eax
call edi
lea ecx, [esp + 0x5c]
push ebp
push ecx
call fcn.00401f00
push 0x206
lea edx, [esp + 0x496]
push esi
push edx
mov word [esp + 0x49c], si
call sub.MSVCR80.dll_memset
push 0x104
lea eax, [esp + 0x8b0]
push eax
lea ecx, [esp + 0x4a4]
push ecx
call edi
push 0x104
lea edx, [esp + 0x80]
push ebp
push edx
call ebx
add esp, 0x44
test eax, eax
push 0x104
jne 0x401e24
lea eax, [esp + 0x67c]
push eax
lea ecx, [esp + 0x478]
push ecx
call edi
add esp, 0xc
jmp 0x401d46
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x478]
push eax
call edi
add esp, 0xc
jmp 0x401d46
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0xa8c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040256a
add esp, 0xa80
ret
Function at 0x4021d0
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, dword [esp + 8]
test ebp, ebp
je 0x40227e
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4021e2
sub eax, edx
sar eax, 1
push edi
mov edi, eax
je 0x40227d
xor ecx, ecx
lea eax, [edi + 0x14]
mov edx, 2
mul edx
seto cl
push ebx
push esi
neg ecx
or ecx, eax
push ecx
call fcn.00402509
push ebp
add edi, 1
mov esi, eax
push edi
push esi
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
add esp, 0x10
push 0x4045dc
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
push str.QPlusBinPath
call ebx
push str...Features
push esi
call edi
push esi
push str.QPlusFeaturesPath
call ebx
push str.....
push esi
call edi
push esi
push str.QPlusExePath
call ebx
push str.apps
push esi
call edi
push esi
push str.QPlusAppsPath
call ebx
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
pop esi
pop ebx
pop edi
pop ebp
ret

Function at 0x40256a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40601c]
jne 0x402574
repz ret
jmp fcn.00402a13
Function at 0x4a1270
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section..Ray_1
lea edi, [esi - 0x9c000]
push edi
jmp 0x4a128a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4a1291
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4a1280
mov eax, 1
add ebx, ebx
jne 0x4a12a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4a12b4
jne 0x4a12d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4a12d3
dec eax
add ebx, ebx
jne 0x4a12c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4a1298
add ebx, ebx
jne 0x4a12cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4a1325
xor ecx, ecx
sub eax, 3
jb 0x4a12eb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4a135a
sar eax, 1
mov ebp, eax
jmp 0x4a12f6
add ebx, ebx
jne 0x4a12f6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4a12c4
inc ecx
add ebx, ebx
jne 0x4a1304
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4a12c4
add ebx, ebx
jne 0x4a1311
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4a1306
jne 0x4a1322
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4a1306
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4a1344
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4a1336
jmp 0x4a1286
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4a1344
add edi, ecx
jmp 0x4a1286
pop esi
mov edi, esi
mov ecx, 0x234
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4a1362
cmp byte [edi], 1
jne 0x4a1362
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4a1367
lea edi, [esi + 0x9f000]
mov eax, dword [edi]
or eax, eax
je 0x4a13df
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xa53d4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xa5488]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4a1394
mov ecx, edi
jns 0x4a13c3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xa548c]
or eax, eax
je 0x4a13d9
mov dword [ebx], eax
add ebx, 4
jmp 0x4a13b1
call dword [esi + 0xa549c]
mov ebp, dword [esi + 0xa5490]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4a1413
sub esp, 0xffffff80
jmp 0x403325

Function at 0x403204
Capabilities:
Encode data using xor

Disassembly:
call 0x4030f5
mov ecx, 0x1bf
call 0x403204
rcr dword [esi + 0x30], 0x4c
push cs
pop es
xor byte [esi + ecx + 7], cl
loop 0x403207
xor cl, bl
sub ch, 0x93
out dx, al
clc
div esi
cmc
retf