joyce8/EMBER2024-capa huggingface dataset:
Function at 0x553400
Capabilities:
Parse credit card information

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x553573
movzx eax, byte [esp + 4]
lea ecx, [eax - 0x61]
cmp cl, 0x19
jbe 0x553433
lea ecx, [eax - 0x41]
cmp cl, 0x19
jbe 0x553433
lea ecx, [eax - 0x30]
cmp cl, 9
ja 0x553439
mov byte [esp + 0xc], 0
ret
mov ecx, dword [esp + 8]
cmp ecx, 3
je 0x553447
cmp ecx, 4
jne 0x553478
cmp al, 0x2c
ja 0x553460
lea edx, [eax - 0x21]
cmp dl, 1
jbe 0x553472
cmp al, 0x24
je 0x553472
cmp al, 0x26
jae 0x553472
jmp 0x553478
lea edx, [eax - 0x3a]
cmp dl, 4
jbe 0x553472
cmp al, 0x5b
je 0x553472
cmp al, 0x5d
jne 0x553478
mov byte [esp + 0xc], 0
ret
cmp al, 0x2f
ja 0x5534af
cmp al, 0x26
ja 0x553491
cmp al, 0x24
je 0x5534ce
cmp al, 0x26
je 0x5534ce
jmp 0x553555
lea edx, [eax - 0x2b]
cmp dl, 1
jbe 0x5534ce
lea edx, [eax - 0x2d]
cmp dl, 1
jbe 0x55354f
cmp al, 0x2f
je 0x5534ce
jmp 0x553555
cmp al, 0x3d
ja 0x5534c6
lea edx, [eax - 0x3a]
cmp dl, 1
jbe 0x5534ce
cmp al, 0x3d
je 0x5534ce
jmp 0x553555
lea edx, [eax - 0x3f]
cmp dl, 1
ja 0x553545
cmp ecx, 2
jg 0x553509
cmp ecx, 1
je 0x5534fe
cmp ecx, 2
jne 0x553555
cmp al, 0x2f
je 0x5534ec
cmp al, 0x3b
je 0x5534ec
cmp al, 0x2c
jne 0x5534f3
mov eax, 1
jmp 0x5534f9
cmp al, 0x3f
sete al
mov byte [esp + 0xc], al
ret
cmp al, 0x3f
sete al
mov byte [esp + 0xc], al
ret
cmp ecx, 5
jne 0x55352f
cmp al, 0x40
je 0x55351d
cmp al, 0x2f
je 0x55351d
cmp al, 0x3f
jne 0x553524
mov eax, 1
jmp 0x55352a
cmp al, 0x3a
sete al
mov byte [esp + 0xc], al
ret
cmp ecx, 6
je 0x55353f
cmp ecx, 7
jne 0x553555
mov byte [esp + 0xc], 0
ret
mov byte [esp + 0xc], 1
ret
cmp al, 0x5f
je 0x55354f
cmp al, 0x7e
jne 0x553555
mov byte [esp + 0xc], 0
ret
cmp ecx, 7
jne 0x55356d
cmp al, 0x21
je 0x553567
add eax, 0xffffffd8
cmp al, 2
ja 0x55356d
mov byte [esp + 0xc], 0
ret
mov byte [esp + 0xc], 1
ret
call fcn.00462450
jmp fcn.00553400
Function at 0x1002df80
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x1002e144
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1f000]
push edi
or ebp, 0xffffffff
jmp 0x1002dfaa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1002dfb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1002dfa0
mov eax, 1
add ebx, ebx
jne 0x1002dfc3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1002dfb8
jne 0x1002dfd4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1002dfb8
xor ecx, ecx
sub eax, 3
jb 0x1002dfe8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1002e05a
mov ebp, eax
add ebx, ebx
jne 0x1002dff3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x1002e000
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x1002e024
inc ecx
add ebx, ebx
jne 0x1002e010
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1002e005
jne 0x1002e021
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1002e005
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1002e044
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1002e035
jmp 0x1002dfa6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1002e044
add edi, ecx
jmp 0x1002dfa6
pop esi
mov edi, esi
mov ecx, 0xc42
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1002e062
cmp byte [edi], 0x11
jne 0x1002e062
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 0x1002e067
lea edi, [esi + 0x2a000]
mov eax, dword [edi]
or eax, eax
je 0x1002e0d6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2e44c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2e49c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1002e094
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2e4a0]
or eax, eax
je 0x1002e0d0
mov dword [ebx], eax
add ebx, 4
jmp 0x1002e0b1
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1002e107
cmp al, 0xef
ja 0x1002e0fa
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1002e0dc
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1002e0e9
mov ebp, dword [esi + 0x2e4a4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x1002e13b
sub esp, 0xffffff80
jmp 0x10013194

Function at 0x408949
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x4085d8
pop esi
call fcn.00408977
sub eax, 0xc09a71df
and ecx, eax
xor dword [ebx], esi
add ecx, 0x307684f
inc ebx
or ecx, ecx
sub ecx, 0x36d7c4d6
cmp ebx, edi
jne fcn.00408949
ret
Function at 0x417df0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x13000]
push edi
jmp 0x417e0a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x417e11
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x417e00
mov eax, 1
add ebx, ebx
jne 0x417e23
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x417e18
jne 0x417e34
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x417e18
xor ecx, ecx
sub eax, 3
jb 0x417e48
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x417eba
mov ebp, eax
add ebx, ebx
jne 0x417e53
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x417e60
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x417e84
inc ecx
add ebx, ebx
jne 0x417e70
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x417e65
jne 0x417e81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x417e65
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x417ea4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x417e95
jmp 0x417e06
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x417ea4
add edi, ecx
jmp 0x417e06
pop esi
mov edi, esi
mov ecx, 0x1ed
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x417ec2
cmp byte [edi], 1
jne 0x417ec2
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 0x417ec7
lea edi, [esi + 0x15000]
mov eax, dword [edi]
or eax, eax
je 0x417f3f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1bca0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1bd54]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x417ef4
mov ecx, edi
jns 0x417f23
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 + 0x1bd58]
or eax, eax
je 0x417f39
mov dword [ebx], eax
add ebx, 4
jmp 0x417f11
call dword [esi + 0x1bd68]
mov ebp, dword [esi + 0x1bd5c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
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 0x417f73
sub esp, 0xffffff80
jmp 0x405684
Function at 0x10015217
Capabilities:
Enumerate processes

Disassembly:
push 0x238
mov eax, 0x1002d711
call fcn.10017005
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x10015234
xor eax, eax
jmp 0x10015311
xor edi, edi
push edi
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov esi, eax
test esi, esi
je 0x1001530f
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0x22c
push eax
push esi
call sub.kernel32.dll_Process32FirstW
jmp 0x100152e5
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x244]
call fcn.1000128b
push ebx
lea ecx, [ebp - 0x240]
mov dword [ebp - 4], edi
call fcn.1000128b
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 1
call fcn.10001cc6
lea ecx, [ebp - 0x240]
call fcn.10001cc6
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.10020cc1
pop ecx
pop ecx
mov ecx, dword [ebp - 0x240]
lea ecx, [ecx - 0x10]
test al, al
jne 0x100152ef
call fcn.10001eb4
mov ecx, dword [ebp - 0x244]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.10001eb4
lea eax, [ebp - 0x23c]
push eax
push esi
call sub.kernel32.dll_Process32NextW
test eax, eax
jne 0x10015264
jmp 0x10015308
mov edi, dword [ebp - 0x234]
call fcn.10001eb4
mov ecx, dword [ebp - 0x244]
add ecx, 0xfffffff0
call fcn.10001eb4
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, edi
call fcn.10016faf
ret

Function at 0x10020cc1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x10020cd0
pop dword [ebp - 0xc]
mov eax, 0x10020cd0
sub dword [ebp - 0xc], eax
push 0x40
push 0x1000
push 0x40f59
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0xc]
call dword [eax]
mov ecx, 0x4a9e
xor esi, esi
add esi, eax
mov edi, 0xd5b763fd
sub edi, 0xc5b2b7fd
add edi, dword [ebp - 0xc]
mov ebx, 0x7deb605b
sub dword [ebp - 8], 0x5a01b8a1
mov edx, dword [edi]
xor edx, ebx
add dword [ebp - 4], edi
mov dword [esi], edx
add esi, 0x7fafa927
sub esi, 0x7fafa923
add edi, 0xde707b2d
add edi, 0x218f84d7
loop 0x10020d1b
add eax, 0x11d4b
xor ebx, ebx
add ebx, eax
add eax, 0x40220573
sub eax, 0x4022056e
mov ecx, 0x9a40882b
sub ecx, 0x8a40882b
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x409b38
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x409b47
pop dword [ebp - 0xc]
mov eax, 0x44d3ae5b
sub eax, 0x44931314
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x899940f0
add dword [ebp - 0x1c], 0xc4b9045b
mov dword [ebp - 0x18], 0xf396620
add dword [ebp - 0x18], 0x22f9e625
mov dword [ebp - 0x14], 0xc2ccb56a
sub dword [ebp - 0x14], 0x7680713c
mov dword [ebp - 0x10], 0x2c5660df
add dword [ebp - 0x10], 0xd3a99f21
lea eax, [ebp - 0x1c]
push eax
mov eax, 0x1234d2b
add eax, 0xff1d8329
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0xe73ff546
add dword [ebp - 0x1c], 0x8d327410
mov dword [ebp - 0x18], 0x7880e004
add dword [ebp - 0x18], 0xc8eb8171
mov dword [ebp - 0x14], 0x57af2f99
add dword [ebp - 0x14], 0xbc03cd3
mov dword [ebp - 0x10], 0xc6934622
sub dword [ebp - 0x10], 0xc6934622
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x3cca6
push 0
call eax
mov ecx, 0xbe53fc62
add ecx, 0x41ac589c
mov edi, eax
mov edx, 0x1d1547cc
sub edx, 0x1cd397cc
add edx, dword [ebp - 0xc]
mov esi, 0x30d963e7
xor dword [ebp - 4], 0xfe05c2e6
mov ebx, dword [edx]
xor dword [ebp - 8], ecx
add ebx, esi
mov dword [edi], ebx
xor dword [ebp - 8], 0xe1b97ef
add edi, 4
add edx, 0x81dbaf74
add edx, 0x7e245090
loop 0x409c5e
add eax, 0x146cb
mov ebx, eax
add eax, 5
mov ecx, 0x43bf3d04
add ecx, 0xbc80c2fc
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x403da0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403db9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403df4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x403df0
lea ebx, [ebx]
cmp esi, eax
jae 0x403df4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x403de0
cmp esi, eax
jb 0x403dfa
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x407c70
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push esi
mov esi, ecx
cmp dword [esi], 0xffffffff
je 0x407cbe
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.Process___d_
push esi
call fcn.00407e40
mov edx, dword [esi]
add esp, 0xc
push 0
lea eax, [esp + 0xc]
push eax
push 4
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x18], 0xa000d
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0xffffffff
pop esi
add esp, 8
ret

Function at 0x407c73
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push esi
mov esi, ecx
cmp dword [esi], 0xffffffff
je 0x407cbe
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.Process___d_
push esi
call fcn.00407e40
mov edx, dword [esi]
add esp, 0xc
push 0
lea eax, [esp + 0xc]
push eax
push 4
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x18], 0xa000d
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0xffffffff
pop esi
add esp, 8
ret
Function at 0x407cd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56b1d8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x5a53f4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
call fcn.00407f10
mov esi, dword [ebp + 8]
test esi, esi
je 0x407e1a
cmp word [esi], 0
je 0x407e1a
cmp dword [edi], 0xffffffff
je 0x407e1a
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edx, dword [0x5a9538]
mov eax, dword [edx + 0xc]
mov ecx, 0x5a9538
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
push esi
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
movzx ecx, word [esp + 0x26]
movzx edx, word [esp + 0x24]
push eax
movzx eax, word [esp + 0x26]
push ecx
movzx ecx, word [esp + 0x28]
push edx
push eax
push ecx
lea edx, [esp + 0x24]
push str._02d:_02d:_02d:_04d__0x_x__t_s_r_n
push edx
call fcn.00404aa0
mov esi, dword [esp + 0x2c]
mov ecx, dword [esi - 0xc]
lea eax, [ecx - 3]
add esp, 0x20
test eax, eax
jl 0x407e2e
cmp eax, ecx
jg 0x407e2e
movzx eax, word [esi + eax*2]
cmp ax, 0xa
jne 0x407dde
cmp dword [esi - 4], 1
jle 0x407db6
mov eax, ecx
push eax
lea ecx, [esp + 0x10]
call fcn.00404870
mov esi, dword [esp + 0xc]
mov eax, dword [esi - 0xc]
mov ecx, 0xd
mov word [esi + eax*2 - 6], cx
mov eax, dword [esi - 0xc]
mov edx, 0xa
mov word [esi + eax*2 - 4], dx
mov eax, dword [esi - 0xc]
dec eax
push eax
lea ecx, [esp + 0x10]
call fcn.00404800
mov eax, dword [esi - 0xc]
push 0
lea ecx, [esp + 0x14]
push ecx
lea edx, [eax + eax]
mov eax, dword [edi]
push edx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esi - 0x10]
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407e1a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00404da0
int3
Function at 0x408440
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x5a53f4]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
mov esi, dword [esp + 0x21c]
push 0x208
lea eax, [esp + 0x10]
push 0
push eax
mov dword [esp + 0x10], 0
call fcn.00534b20
add esp, 0xc
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0xc]
push eax
push 0x585eac
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsQHSafeMain.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], 0x208
mov dword [esp + 0x1c], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4084e4
mov eax, dword [esp + 8]
shr eax, 1
dec eax
cmp eax, 0x104
jae 0x4084e4
cmp word [esp + eax*2 + 0xc], 0x5c
je 0x4084de
cmp eax, 0x103
jae 0x4084e4
mov ecx, 0x5c
xor edx, edx
mov word [esp + eax*2 + 0xc], cx
mov word [esp + eax*2 + 0xe], dx
lea eax, [esp + 0xc]
jmp 0x4084e9
mov eax, 0x585ea4
push eax
mov ecx, esi
call fcn.00403220
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.005308cb
add esp, 0x214
ret

Function at 0x408510
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x5a53f4]
xor eax, esp
mov dword [esp + 0x210], eax
xor eax, eax
push 0x206
mov dword [esp + 4], 0
push eax
lea ecx, [esp + 0x12]
push ecx
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0x104
mov word [esp + 0x14], ax
call fcn.00534b20
add esp, 0xc
lea edx, [esp]
push edx
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
push 0x585eac
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsQHSafeMain.exe
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov ecx, esi
test eax, eax
je 0x4085b5
xor edx, edx
push edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
push 0x585ea4
mov word [esi + 4], dx
call fcn.0040ab80
mov eax, esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.005308cb
add esp, 0x214
ret
cmp dword [esp + 4], 1
je 0x4085c3
push 0x585ea4
jmp 0x4085c8
lea eax, [esp + 8]
push eax
call fcn.0040a750
mov ecx, dword [esp + 0x210]
xor ecx, esp
mov eax, esi
call fcn.005308cb
add esp, 0x214
ret

Function at 0x408620
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
cmp dword [eax + 0x14], 0
push esi
je 0x408652
cmp dword [eax + 0x18], 8
jb 0x408632
mov esi, dword [eax + 4]
jmp 0x408635
lea esi, [eax + 4]
test esi, esi
je 0x408652
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x408656
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40865a
xor eax, eax
pop esi
ret
test al, 0x10
je 0x408652
mov eax, 1
pop esi
ret
Function at 0x408670
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x567f7b
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x5a53f4]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push edi
mov eax, dword [0x5a53f4]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0xc], ebx
cmp edi, 0x23
je 0x4086cc
cmp edi, 0x1a
je 0x4086cc
push 0x585ea4
mov ecx, esi
call fcn.0040a750
jmp 0x4087d3
push 0x206
lea ecx, [esp + 0x32]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x38], ax
call fcn.00534b20
add esp, 0xc
lea edx, [esp + 0x2c]
push edx
push ebx
push ebx
push edi
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, ebx
jge 0x40871b
push ebx
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push 0x585ea4
mov ecx, esi
mov word [esi + 4], ax
call fcn.0040ab80
jmp 0x4087d3
mov edi, 7
xor ecx, ecx
lea eax, [esp + 0x2c]
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x408736
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x18]
call fcn.0040ab80
push 0x11
push str.360TotalSecurity
lea ecx, [esp + 0x18]
mov dword [esp + 0x248], ebx
call fcn.0040aa60
cmp byte [esp + 0x248], bl
jne 0x4087a5
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x18]
xor eax, eax
push ecx
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], ebx
mov ecx, esi
mov word [esi + 4], ax
call fcn.0040a900
cmp dword [esp + 0x28], 8
jb 0x4087d3
mov edx, dword [esp + 0x14]
push edx
call fcn.005303ae
add esp, 4
jmp 0x4087d3
lea eax, [esp + 0x10]
call fcn.00408620
mov ecx, esi
test al, al
je 0x4087c0
lea eax, [esp + 0x10]
push eax
call fcn.0040a790
jmp 0x4087ca
push 0x585ea4
call fcn.0040a750
lea ecx, [esp + 0x10]
call fcn.00406510
mov eax, esi
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.005308cb
add esp, 0x238
ret
Function at 0x408a40
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x569b62
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push edi
mov eax, dword [0x5a53f4]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2c]
push 0x585ea8
xor ebp, ebp
push eax
mov dword [esp + 0x2c], ebp
push esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x1c], ebp
call fcn.0040b0e0
add esp, 0xc
mov dword [esp + 0x24], ebp
mov ebx, 1
mov dword [esp + 0x10], ebx
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x408aac
cmp byte [esp + 0x30], 0
jne 0x408aac
mov edx, 0x585f78
jmp 0x408ac8
lea eax, [esp + 0x14]
push eax
call fcn.00434210
add esp, 4
mov dword [esp + 0x24], ebx
mov edx, dword [eax]
mov ebx, 3
mov dword [esp + 0x10], ebx
mov eax, edx
lea edi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x408ad0
sub eax, edi
sar eax, 1
push eax
push edx
mov ecx, esi
call fcn.0040aa60
mov dword [esp + 0x24], ebp
test bl, 2
je 0x408b18
mov eax, dword [esp + 0x14]
and ebx, 0xfffffffd
add eax, 0xfffffff0
mov dword [esp + 0x10], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408b18
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esi + 0x14], ebp
je 0x408b43
cmp dword [esi + 0x18], 8
jb 0x408b28
mov edi, dword [esi + 4]
jmp 0x408b2b
lea edi, [esi + 4]
cmp edi, ebp
je 0x408b43
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x408b43
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x18
ret

Function at 0x409950
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x569b08
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5a53f4]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov eax, dword [0x5a53f4]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x3c]
push str.Administrators
push eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x14], 0
call fcn.0040b0e0
add esp, 0xc
mov dword [esp + 0x34], 0
cmp dword [esp + 0x20], 0
je 0x4099d5
cmp dword [esp + 0x24], 8
mov esi, dword [esp + 0x10]
jae 0x4099bc
lea esi, [esp + 0x10]
test esi, esi
je 0x4099d5
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4099d5
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0xa
push str._virusscan
lea ecx, [esp + 0x14]
call fcn.0040aa60
cmp dword [esp + 0x24], 8
mov eax, dword [esp + 0x10]
jae 0x4099f4
lea eax, [esp + 0x10]
push eax
mov ecx, edi
call fcn.00403220
cmp dword [esp + 0x24], 8
jb 0x409a10
mov ecx, dword [esp + 0x10]
push ecx
call fcn.005303ae
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.005308cb
add esp, 0x30
ret