joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ec1f0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x4ec293
test eax, eax
jbe 0x4ec293
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x4ec293
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x4ec23e
xor esi, esi
jmp 0x4ec244
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x4ec26f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.004709c0
add esi, eax
push esi
mov ebx, esi
call fcn.004709c0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x4ec250
pop ebp
test edi, edi
pop edi
jne 0x4ec293
test ebx, ebx
je 0x4ec293
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00521280
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x4ec3b5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4ec4cd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4ec4cd
mov eax, dword [esi + 0x3c]
push eax
call fcn.0053712b
mov esi, eax
test esi, esi
je 0x4ec4cd
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x4ec4cd
mov ecx, esi
call fcn.004ec340
cmp edi, eax
jge 0x4ec4cd
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x4ec453
mov dword [esp + 0x34], 1
jmp 0x4ec4ae
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4ec4cd
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.004eb8f0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x4f47e0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + 0x5c9674]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x5c9604]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x4f47f3
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x4f4834
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x5c96ac]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x4f4866
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4f486a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x4f485b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x4f4888
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4f488c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x4f487d
xor ecx, ecx
mov eax, 0x5c9614
xor ebx, ebx
mov bl, byte [ecx + 0x5c96bc]
cmp byte [esp + ebx + 0x14], 0
je 0x4f48b7
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x5c96d4]
cmp byte [esp + ebx + 0x14], 0
je 0x4f48ce
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, 0x5c9674
jl 0x4f489e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x4f4827
lea edx, [esp + 0x84]
push edx
call fcn.004f4910
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x501fc0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x408
push ebx
push ebp
push esi
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
xor esi, esi
push eax
push 0x400
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, dword [esp + 0x420]
lea edi, [esp + 0x18]
push ecx
or ecx, 0xffffffff
xor eax, eax
push 0x60b014
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + ecx + 0x20]
push edx
call fcn.005225cb
mov ebp, dword [esp + 0x428]
mov al, byte [esp + 0x1f]
lea edi, [esp + 0x24]
or ecx, 0xffffffff
mov byte [ebp], al
xor eax, eax
add esp, 0xc
mov dword [ebp + 4], esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp + 8], esi
mov ebx, ecx
mov dword [ebp + 0xc], esi
cmp ebx, 0xfffffffd
jbe 0x50204e
call fcn.0052ebfc
mov ecx, dword [ebp + 4]
cmp ecx, esi
je 0x502080
mov al, byte [ecx - 1]
test al, al
je 0x502080
cmp al, 0xff
je 0x502080
cmp ebx, esi
jne 0x5020b1
dec al
push esi
mov byte [ecx - 1], al
mov ecx, ebp
call fcn.00501b90
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x408
ret 8
cmp ebx, esi
jne 0x50209c
push 1
mov ecx, ebp
call fcn.00501b90
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x408
ret 8
mov eax, dword [ebp + 0xc]
cmp eax, 0x1f
ja 0x5020a8
cmp eax, ebx
jae 0x5020b9
push 1
mov ecx, ebp
call fcn.00501b90
push ebx
mov ecx, ebp
call fcn.00502ce0
mov edi, dword [ebp + 4]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 4]
mov dword [ebp + 8], ebx
pop edi
pop esi
mov byte [eax + ebx], 0
mov eax, ebp
pop ebp
pop ebx
add esp, 0x408
ret 8
Function at 0x502480
Capabilities:
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x546af8
push eax
mov dword fs:[0], esp
sub esp, 0x10
xor al, al
push ebx
push ebp
push esi
mov esi, ecx
mov cl, byte [esi + 0xc]
test cl, cl
je 0x5025a4
mov ecx, dword [esi + 4]
xor ebp, ebp
sub ecx, ebp
je 0x5025b6
dec ecx
je 0x5024fc
dec ecx
jne 0x5025a4
mov eax, dword [esi + 8]
cmp eax, ebp
je 0x5025cb
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp eax, 1
jne 0x5025cb
mov dword [esi + 8], ebp
mov eax, dword [esi + 0x18]
cmp eax, ebp
je 0x5024f5
mov eax, dword [0x5a5e94]
lea ecx, [esi + 0x10]
push eax
push ebp
call fcn.005029c0
mov bl, 1
jmp 0x502597
mov edx, dword [0x5a5e94]
mov cl, byte [esi + 0x10]
push edi
lea edi, [esi + 0x10]
push edx
mov byte [esp + 0x14], cl
push ebp
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
call fcn.005027c0
mov eax, dword [esi + 8]
mov dword [esp + 0x28], ebp
cmp eax, ebp
je 0x502585
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp eax, 1
jne 0x502585
mov dword [esi + 8], ebp
mov eax, dword [esi + 0x18]
cmp eax, ebp
je 0x502554
mov eax, dword [0x5a5e94]
mov ecx, edi
push eax
push ebp
call fcn.005029c0
mov eax, dword [esp + 0x14]
mov bl, 1
cmp eax, ebp
jne 0x502563
mov eax, 0x5a5e90
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x14]
pop edi
cmp ecx, ebp
je 0x502593
mov al, byte [ecx - 1]
test al, al
je 0x502589
cmp al, 0xff
je 0x502589
dec al
mov byte [ecx - 1], al
jmp 0x502593
xor bl, bl
jmp 0x50256a
dec ecx
push ecx
call fcn.00535456
add esp, 4
test bl, bl
je 0x5025a2
mov dword [esi + 4], 0xffffffff
mov byte [esi + 0xc], 0
mov al, bl
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
mov eax, dword [esi]
cmp eax, ebp
je 0x5025cb
push eax
call fcn.00503540
add esp, 4
mov dword [esi], ebp
mov bl, 1
jmp 0x502597
mov ecx, dword [esp + 0x1c]
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x502e70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceA]
push ebp
push esi
push edi
xor edi, edi
push 0x60b034
push str.E2EE_IDR_DLL
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x502ebf
call fcn.0053f4fc
mov edi, dword [eax + 0xc]
test edi, edi
jne 0x502ea4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
push 0x60b034
push str.E2EE_IDR_DLL
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x502ebf
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
jne 0x502ed5
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x502ee9
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x10], ebp
jne 0x502f02
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
mov edi, dword [esp + 0x18]
push edi
push ebx
push ebp
call fcn.00503640
add esp, 0xc
test al, al
jne 0x502fa1
mov eax, dword [edi + 8]
cmp eax, ebx
jb 0x502fa9
mov esi, dword [0x5a5e9c]
jae 0x502f31
call fcn.0052ee1b
mov ecx, edi
call fcn.005031d0
mov eax, dword [edi + 8]
mov ecx, eax
sub ecx, ebx
cmp ecx, esi
jae 0x502f45
mov esi, ecx
test esi, esi
jbe 0x502f83
mov ecx, dword [edi + 4]
sub eax, esi
sub eax, ebx
push eax
lea eax, [ecx + esi]
add eax, ebx
add ecx, ebx
push eax
push ecx
call fcn.00520d00
mov ebp, dword [edi + 8]
add esp, 0xc
sub ebp, esi
mov ecx, edi
push 0
push ebp
call fcn.005030b0
test al, al
je 0x502f7f
mov ecx, dword [edi + 4]
mov dword [edi + 8], ebp
mov byte [ecx + ebp], 0
mov ebp, dword [esp + 0x10]
mov edi, dword [edi + 4]
test edi, edi
jne 0x502f8f
mov edi, 0x5a5e98
mov ecx, ebx
mov esi, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
pop ecx
ret
mov edx, ebx
push 0
sub edx, eax
mov ecx, edi
push edx
call fcn.00502fc0
jmp 0x502f83
Function at 0x50b9b0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x644330]
xor edx, edx
cmp eax, edx
jne 0x50b9d6
xor eax, eax
mov byte [eax + 0x644230], al
inc eax
cmp eax, 0x100
jl 0x50b9be
mov dword [0x644330], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x644230
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x50ba67
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x50ba3a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x50ba08
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x50ba70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x50bac3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x50baaa
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x512470
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x546d0e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.00512d90
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x5a9684
call fcn.0053542d
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x512503
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0053542d
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x5124fc
push 0
mov ecx, eax
call fcn.005095e0
mov dword [esi + 0xc], eax
jmp 0x512505
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x512505
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x522f14
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x522f34
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00521eba
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x522f57
test byte [esp + 8], 2
je 0x522f57
call fcn.00521f2d
mov dword [eax], 0xd
call fcn.00521f36
mov dword [eax], 5
jmp 0x522f30
xor eax, eax
ret

Function at 0x537acf
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x537b07
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00535b47
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00535b1f
jmp 0x537b13
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x5392ca
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x53930c
call fcn.0053f4fc
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x53930c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x539303
xor eax, eax
jmp 0x539314
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0053931a
pop edi
pop esi
pop ebx
ret 4

Function at 0x53fa2c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x53fa5a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x53fa78
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0053f992
jmp 0x53fa78
mov eax, dword [esi + 0x14]
test eax, eax
je 0x53fa78
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0053f992
test edi, edi
mov eax, edi
jne 0x53fa62
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4010e0
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x27c
mov eax, dword [0x415010]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0
push eax
push 0
push 0x20119
push 0
push 0
push 0
push ecx
push 0x80000002
mov esi, edx
mov dword [ebp - 0x218], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x401253
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x214]
mov dword [ebp - 0x220], 0x208
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
push str.Path
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401247
cmp dword [ebp - 0x21c], 1
jne 0x401247
push 0x40
push eax
lea eax, [ebp - 0x278]
mov dword [ebp - 0x27c], 0x44
push eax
call fcn.00402fe0
push esi
lea eax, [ebp - 0x214]
xorps xmm0, xmm0
push 0x104
push eax
movups xmmword [ebp - 0x230], xmm0
call fcn.0040492f
add esp, 0x18
lea eax, [ebp - 0x214]
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x401247
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
push str.__exit
lea eax, [ebp - 0x214]
push 0x104
push eax
call fcn.0040492f
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x27c]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
lea eax, [ebp - 0x214]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x401247
push dword [ebp - 0x22c]
call esi
push 0x1388
push dword [ebp - 0x230]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x230]
call esi
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push edi
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x401270
push 0
push 0
push 0x303
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0040179d
mov esp, ebp
pop ebp
ret
Function at 0x401290
Capabilities:
Accept command line arguments
Extract resource via kernel32 functions
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
lea eax, [esp]
push esi
push eax
push dword [ebp + 0x10]
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
test esi, esi
je 0x4012ee
cmp dword [esp + 4], 0
jle 0x4012ee
push str.exitSM
push dword [esi]
call fcn.0040482e
add esp, 8
test eax, eax
je 0x4013a9
push str.fixVersion
push dword [esi]
call fcn.0040482e
add esp, 8
test eax, eax
je 0x4012fa
mov eax, dword [esp + 4]
add esi, 4
dec eax
mov dword [esp + 4], eax
test eax, eax
jg 0x4012b4
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0x10
push 0
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
push 0
push 0x2011f
push 0
push 0
push 0
push str.SOFTWAREOpenShellOpenShell
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4013a0
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x10
mov esi, eax
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x40134a
xor ecx, ecx
jmp 0x401378
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, eax
test edx, edx
je 0x401346
movzx eax, word [edx + 0x38]
movzx ecx, al
movzx eax, word [edx + 0x3a]
shl eax, 8
or ecx, eax
movzx eax, word [edx + 0x3e]
shl ecx, 0x10
or ecx, eax
push 4
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ecx
push eax
push 4
push 0
push str.WinVersion
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
push str.OpenShellUpdate.COwnerWindow
mov edx, str.StartMenu.exe
mov ecx, str.SOFTWAREOpenShellOpenShell
call fcn.004010e0
push str.ClassicShellUpdate.COwnerWindow
mov edx, str.ClassicStartMenu.exe
mov ecx, str.SOFTWAREIvoSoftClassicShell
call fcn.004010e0
add esp, 8
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4021ba
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4021f9
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4021f9
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4021f9
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4021f9
cmp dword [ecx + 0x74], 0xe
jbe 0x4021f9
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x407c64
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x415010]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x407caf
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00407dff
test al, al
jne 0x407ca9
sub edx, 2
cmp edx, edi
jne 0x407c8f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x407cd1
lea eax, [edi + 2]
cmp edx, eax
je 0x407cd1
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00407bb0
add esp, 0x10
jmp 0x407dcb
push esi
lea ecx, [ebp - 0x255]
call fcn.00407dff
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x407d14
push dword [ebp - 0x25c]
jmp 0x407cc1
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x407d51
cmp word [ebp - 0x226], 0
je 0x407d72
cmp word [ebp - 0x226], ax
jne 0x407d51
cmp word [ebp - 0x224], 0
je 0x407d72
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00407bb0
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x407dbe
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x407d2b
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x407da6
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x407dcb
push 0x4079e0
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040af70
add esp, 0x10
jmp 0x407d9b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040179d
leave
ret

Function at 0x408b99
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41035c
push 0x410354
push str.FlsAlloc
push 0x1f
call fcn.00408ad4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408bcd
push dword [ebp + 8]
mov ecx, esi
call dword [0x40e14c]
call esi
jmp 0x408bd3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x408c17
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41036c
push 0x410364
push str.FlsGetValue
push 0x21
call fcn.00408ad4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408c4e
push dword [ebp + 8]
mov ecx, esi
call dword [0x40e14c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x408c56
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x410374
push 0x41036c
push str.FlsSetValue
push 0x22
call fcn.00408ad4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408c90
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x40e14c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]