joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418f40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b1da6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x4d7064]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push edi
mov byte [ebp - 4], 1
call ebx
mov esi, eax
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x418fec
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], eax
test esi, esi
jne 0x418fec
call fcn.00417500
mov edi, eax
jmp 0x41910b
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x41900f
call fcn.00417500
jmp 0x4190fe
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x41902d
call fcn.00417500
jmp 0x4190fe
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x41c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x41904e
mov edi, 0x8007000e
jmp 0x419100
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x419144
jb 0x41906c
cmp eax, 0xffffffff
ja 0x419144
cmp eax, 0x400
jbe 0x419081
push eax
lea ecx, [ebp - 0x418]
call fcn.00417420
jmp 0x4190a7
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x4190a7
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x4190be
mov edi, 0x8007000e
jmp 0x419100
push edi
push dword [ebp - 0x418]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x4190de
call fcn.00417500
jmp 0x4190fe
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.00418da0
mov edi, eax
test esi, esi
je 0x41910b
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x419124
lea ecx, [ebp - 0x418]
call fcn.00417790
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043427a
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.00401de0
int3
Function at 0x41d5d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x4c], 0x4f0053
push edi
mov dword [ebp - 0x48], 0x540046
mov dword [ebp - 0x44], 0x410057
mov dword [ebp - 0x40], 0x450052
mov dword [ebp - 0x3c], 0x4d005c
mov dword [ebp - 0x38], 0x630069
mov dword [ebp - 0x34], 0x6f0072
mov dword [ebp - 0x30], 0x6f0073
mov dword [ebp - 0x2c], 0x740066
mov dword [ebp - 0x28], 0x49005c
mov dword [ebp - 0x24], 0x74006e
mov dword [ebp - 0x20], 0x720065
mov dword [ebp - 0x1c], 0x65006e
mov dword [ebp - 0x18], 0x200074
mov dword [ebp - 0x14], 0x780045
mov dword [ebp - 0x10], 0x6c0070
mov dword [ebp - 0xc], 0x72006f
mov dword [ebp - 8], 0x720065
mov word [ebp - 4], ax
call fcn.004059e0
mov ecx, eax
test ecx, ecx
je 0x41d6b8
mov eax, dword [ecx]
push 2
push 0x24
call dword [eax]
test eax, eax
je 0x41d6c2
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
cmp dword [eax - 8], 0x24
jl 0x41d6ae
mov dword [eax - 0xc], 0x24
xor eax, eax
mov ecx, dword [esi]
push 0x24
mov word [ecx + 0x48], ax
lea eax, [ebp - 0x4c]
push eax
push 0x24
push dword [esi]
call fcn.00407bc0
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00401de0
push 0x80004005
call fcn.00401de0
call fcn.004023d0
int3

Function at 0x41d6d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
mov dword [ebp - 0x34], 0x450046
mov dword [ebp - 0x30], 0x540041
mov dword [ebp - 0x2c], 0x520055
mov dword [ebp - 0x28], 0x5f0045
mov dword [ebp - 0x24], 0x520042
mov dword [ebp - 0x20], 0x57004f
mov dword [ebp - 0x1c], 0x450053
mov dword [ebp - 0x18], 0x5f0052
mov dword [ebp - 0x14], 0x4d0045
mov dword [ebp - 0x10], 0x4c0055
mov dword [ebp - 0xc], 0x540041
mov dword [ebp - 8], 0x4f0049
mov dword [ebp - 4], 0x4e
call fcn.004059e0
mov ecx, eax
test ecx, ecx
je 0x41d78f
mov eax, dword [ecx]
push 2
push 0x19
call dword [eax]
test eax, eax
je 0x41d799
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
cmp dword [eax - 8], 0x19
jl 0x41d785
mov dword [eax - 0xc], 0x19
xor eax, eax
mov ecx, dword [esi]
push 0x19
mov word [ecx + 0x32], ax
lea eax, [ebp - 0x34]
push eax
push 0x19
push dword [esi]
call fcn.00407bc0
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00401de0
push 0x80004005
call fcn.00401de0
call fcn.004023d0
int3
Function at 0x41d7a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
mov dword [ebp - 0x34], 0x450046
mov dword [ebp - 0x30], 0x540041
mov dword [ebp - 0x2c], 0x520055
mov dword [ebp - 0x28], 0x5f0045
mov dword [ebp - 0x24], 0x520042
mov dword [ebp - 0x20], 0x57004f
mov dword [ebp - 0x1c], 0x450053
mov dword [ebp - 0x18], 0x5f0052
mov dword [ebp - 0x14], 0x4d0045
mov dword [ebp - 0x10], 0x4c0055
mov dword [ebp - 0xc], 0x540041
mov dword [ebp - 8], 0x4f0049
mov dword [ebp - 4], 0x4e
call fcn.004059e0
mov ecx, eax
test ecx, ecx
je 0x41d85f
mov eax, dword [ecx]
push 2
push 0x19
call dword [eax]
test eax, eax
je 0x41d869
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
cmp dword [eax - 8], 0x19
jl 0x41d855
mov dword [eax - 0xc], 0x19
xor eax, eax
mov ecx, dword [esi]
push 0x19
mov word [ecx + 0x32], ax
lea eax, [ebp - 0x34]
push eax
push 0x19
push dword [esi]
call fcn.00407bc0
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00401de0
push 0x80004005
call fcn.00401de0
call fcn.004023d0
int3

Function at 0x41d870
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
mov dword [ebp - 0x34], 0x450046
mov dword [ebp - 0x30], 0x540041
mov dword [ebp - 0x2c], 0x520055
mov dword [ebp - 0x28], 0x5f0045
mov dword [ebp - 0x24], 0x520042
mov dword [ebp - 0x20], 0x57004f
mov dword [ebp - 0x1c], 0x450053
mov dword [ebp - 0x18], 0x5f0052
mov dword [ebp - 0x14], 0x4d0045
mov dword [ebp - 0x10], 0x4c0055
mov dword [ebp - 0xc], 0x540041
mov dword [ebp - 8], 0x4f0049
mov dword [ebp - 4], 0x4e
call fcn.004059e0
mov ecx, eax
test ecx, ecx
je 0x41d92f
mov eax, dword [ecx]
push 2
push 0x19
call dword [eax]
test eax, eax
je 0x41d939
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
cmp dword [eax - 8], 0x19
jl 0x41d925
mov dword [eax - 0xc], 0x19
xor eax, eax
mov ecx, dword [esi]
push 0x19
mov word [ecx + 0x32], ax
lea eax, [ebp - 0x34]
push eax
push 0x19
push dword [esi]
call fcn.00407bc0
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00401de0
push 0x80004005
call fcn.00401de0
call fcn.004023d0
int3
Function at 0x41d940
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
mov dword [ebp - 0x34], 0x450046
mov dword [ebp - 0x30], 0x540041
mov dword [ebp - 0x2c], 0x520055
mov dword [ebp - 0x28], 0x5f0045
mov dword [ebp - 0x24], 0x520042
mov dword [ebp - 0x20], 0x57004f
mov dword [ebp - 0x1c], 0x450053
mov dword [ebp - 0x18], 0x5f0052
mov dword [ebp - 0x14], 0x4d0045
mov dword [ebp - 0x10], 0x4c0055
mov dword [ebp - 0xc], 0x540041
mov dword [ebp - 8], 0x4f0049
mov dword [ebp - 4], 0x4e
call fcn.004059e0
mov ecx, eax
test ecx, ecx
je 0x41d9ff
mov eax, dword [ecx]
push 2
push 0x19
call dword [eax]
test eax, eax
je 0x41da09
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
cmp dword [eax - 8], 0x19
jl 0x41d9f5
mov dword [eax - 0xc], 0x19
xor eax, eax
mov ecx, dword [esi]
push 0x19
mov word [ecx + 0x32], ax
lea eax, [ebp - 0x34]
push eax
push 0x19
push dword [esi]
call fcn.00407bc0
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00401de0
push 0x80004005
call fcn.00401de0
call fcn.004023d0
int3

Function at 0x41da10
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
mov dword [ebp - 0x34], 0x450046
mov dword [ebp - 0x30], 0x540041
mov dword [ebp - 0x2c], 0x520055
mov dword [ebp - 0x28], 0x5f0045
mov dword [ebp - 0x24], 0x520042
mov dword [ebp - 0x20], 0x57004f
mov dword [ebp - 0x1c], 0x450053
mov dword [ebp - 0x18], 0x5f0052
mov dword [ebp - 0x14], 0x4d0045
mov dword [ebp - 0x10], 0x4c0055
mov dword [ebp - 0xc], 0x540041
mov dword [ebp - 8], 0x4f0049
mov dword [ebp - 4], 0x4e
call fcn.004059e0
mov ecx, eax
test ecx, ecx
je 0x41dacf
mov eax, dword [ecx]
push 2
push 0x19
call dword [eax]
test eax, eax
je 0x41dad9
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
cmp dword [eax - 8], 0x19
jl 0x41dac5
mov dword [eax - 0xc], 0x19
xor eax, eax
mov ecx, dword [esi]
push 0x19
mov word [ecx + 0x32], ax
lea eax, [ebp - 0x34]
push eax
push 0x19
push dword [esi]
call fcn.00407bc0
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00401de0
push 0x80004005
call fcn.00401de0
call fcn.004023d0
int3
Function at 0x41e660
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b22ab
mov eax, dword fs:[0]
push eax
sub esp, 0x548
mov eax, dword [0x4d7064]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push 0xd8
mov dword [ebp - 0x544], eax
lea eax, [ebp - 0xf0]
push 0
push eax
mov byte [ebp - 0x531], 0
call fcn.00460000
add esp, 0xc
lea eax, [ebp - 0xf0]
push eax
push 0x6c
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 0x53c], eax
cmp eax, 0x6c
jae 0x41e781
xor esi, esi
test eax, eax
je 0x41e781
nop
push 0x410
lea eax, [ebp - 0x500]
push 0
push eax
call fcn.00460000
mov eax, dword [0x4bbe20]
add esp, 0xc
mov dword [ebp - 0x18], eax
movzx eax, word [0x4bbe24]
mov word [ebp - 0x14], ax
movzx eax, word [ebp + esi*2 - 0xf0]
add esi, 4
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x500]
push 0x207
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x538], esi
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x41e775
lea esi, [ebp - 0x500]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x41e741
sub esi, ecx
mov eax, edi
sar esi, 1
cmp dword [edi + 0x14], 8
jb 0x41e75a
mov eax, dword [edi]
push esi
lea ecx, [ebp - 0x500]
push ecx
push eax
call fcn.0048cf2f
add esp, 0xc
test eax, eax
je 0x41e7a2
mov esi, dword [ebp - 0x538]
cmp esi, dword [ebp - 0x53c]
jb 0x41e6e0
mov al, byte [ebp - 0x531]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043427a
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 0x520], 0
mov word [ebp - 0x530], ax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x51c], 7
cmp eax, esi
jb 0x41e8c2
sub eax, esi
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [edi + 0x14], 8
jb 0x41e7dd
mov edi, dword [edi]
push ecx
lea eax, [edi + esi*2]
push eax
lea ecx, [ebp - 0x530]
call fcn.00407550
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41e800
sub ecx, edx
lea eax, [ebp - 0x18]
sar ecx, 1
push ecx
push eax
push 0
lea ecx, [ebp - 0x530]
call fcn.00420490
mov esi, dword [ebp - 0x544]
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x554], xmm0
movups xmmword [ebp - 0x518], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea eax, [ebp - 0x518]
movq qword [ebp - 0x540], xmm0
movq qword [ebp - 0x508], xmm0
cmp esi, eax
je 0x41e8a5
mov ecx, esi
call fcn.0041fff0
movups xmm0, xmmword [ebp - 0x554]
xor eax, eax
mov dword [ebp - 0x508], 0
mov dword [ebp - 0x504], 7
movups xmmword [esi], xmm0
mov word [ebp - 0x518], ax
movq xmm0, qword [ebp - 0x540]
movq qword [esi + 0x10], xmm0
lea ecx, [ebp - 0x518]
call fcn.00404f20
lea ecx, [ebp - 0x530]
call fcn.00404f20
mov al, 1
jmp 0x41e787
call fcn.00420140
int3
Function at 0x41e8d0
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b2301
mov eax, dword fs:[0]
push eax
sub esp, 0x464
mov eax, dword [0x4d7064]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x470], esi
mov dword [ebp - 0x470], edi
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
push 0x410
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x420]
push eax
call fcn.00460000
add esp, 0xc
test edi, edi
je 0x41eae8
cmp edi, 4
je 0x41eae8
push edi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x41e9d7
push 0x207
lea eax, [ebp - 0x420]
push eax
push 0
push edi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x41e9f4
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41e990
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x438]
call fcn.00407550
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x438]
mov ecx, esi
push eax
call fcn.0041d310
lea ecx, [ebp - 0x438]
call fcn.00404f20
jmp 0x41eb0d
push dword [ebp - 0x470]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x41ea99
push 0x207
lea eax, [ebp - 0x420]
push eax
push edi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x41ea92
xor eax, eax
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 7
mov word [ebp - 0x450], ax
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x468]
call fcn.0041d350
lea eax, [ebp - 0x450]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x468]
push eax
call fcn.0041e660
add esp, 8
mov byte [ebp - 0x469], al
lea ecx, [ebp - 0x468]
call fcn.00404f20
cmp byte [ebp - 0x469], 0
je 0x41ea87
lea eax, [ebp - 0x450]
push eax
lea ecx, [ebp - 0x438]
call fcn.0041d590
lea ecx, [ebp - 0x450]
call fcn.00404f20
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movups xmm0, xmmword [ebp - 0x438]
mov dword [esi + 0x10], 0
lea ecx, [ebp - 0x438]
mov dword [esi + 0x14], 0
xor eax, eax
movups xmmword [esi], xmm0
mov word [ebp - 0x438], ax
movq xmm0, qword [ebp - 0x428]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 7
call fcn.00404f20
jmp 0x41eb0d
movups xmm0, xmmword [ebp - 0x438]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x428]
movq qword [esi + 0x10], xmm0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043427a
mov esp, ebp
pop ebp
ret
Function at 0x41f390
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b23c8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4d7064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41f40b
test al, 0x10
je 0x41f40b
push esi
mov edi, 1
call fcn.00425540
add esp, 4
test eax, eax
jne 0x41f42e
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x41f42e
push esi
test edi, edi
jne 0x41f426
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x41f42e
push esi
push 0x4bbc30
call fcn.004217c0
add esp, 8
jmp 0x41f42e
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x41f3dc
push esi
push 0x4bbc30
call fcn.004217c0
add esp, 8
jmp 0x41f42e
call fcn.00425540
add esp, 4
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41f4a2
push esi
lea ecx, [ebp - 0x10]
call fcn.00404d40
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
push ecx
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
je 0x41f465
mov ecx, eax
call fcn.0041a8a0
add dword [esi + 4], 4
jmp 0x41f46d
push eax
mov ecx, esi
call fcn.0041d060
mov edx, dword [ebp - 0x10]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41f48f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41fc10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b24e0
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4d7064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x14], edi
call fcn.004059e0
mov ecx, eax
test ecx, ecx
je 0x41fd02
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push str.SoftwareMicrosoftInternet_ExplorerMainFeatureControl_
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
call fcn.00405440
test al, al
jne 0x41fc77
push str.SoftwareMicrosoftInternet_ExplorerMainFeatureControl_
lea ecx, [ebp - 0x10]
call fcn.0040d610
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 1
call fcn.0041dae0
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
push esi
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x41fcc2
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
push str.Anything.exe
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov ecx, 1
cmove edi, ecx
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x41fcd0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41fcef
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00401de0
int3
Function at 0x421380
Capabilities:
Check if file exists
Delete file
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 8
push esi
lea esi, [ecx + 0x2c]
mov ecx, dword [eax]
mov eax, dword [esi]
push edi
lea edx, [ecx - 0x10]
lea edi, [eax - 0x10]
cmp edx, edi
je 0x4213e4
cmp dword [edi + 0xc], 0
push ebx
lea ebx, [edi + 0xc]
jl 0x4213d6
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x4213d6
push edx
call fcn.00405570
add esp, 4
mov dword [ebp + 8], eax
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x4213cf
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
jmp 0x4213e3
push dword [ecx - 0xc]
push ecx
mov ecx, esi
call fcn.00406e60
mov eax, dword [esi]
pop ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42144a
mov eax, dword [esi]
xorps xmm0, xmm0
movlpd qword [ebp - 8], xmm0
cmp dword [eax - 0xc], 0
je 0x42144a
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x421431
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
jl 0x42144a
jg 0x421442
cmp dword [ebp - 8], 0x40000000
jbe 0x42144a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x422a50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b28a1
mov eax, dword fs:[0]
push eax
sub esp, 0x820
mov eax, dword [0x4d7064]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp word [0x4dbeb0], 0
jne 0x422cac
cmp word [0x4db6b0], 0
jne 0x422b96
push 0x20219
push str.SOFTWAREAnything
push SysStringLen
lea ecx, [ebp - 0x82c]
mov dword [ebp - 0x82c], 0
mov dword [ebp - 0x828], 0
mov dword [ebp - 0x824], 0
call fcn.00418780
mov edi, dword [ebp - 0x82c]
test eax, eax
jne 0x422b8b
lea eax, [ebp - 0x818]
mov dword [ebp - 0x818], 0x800
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x820]
push eax
push 0
push str.Setup_Path
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x422b8b
mov eax, dword [ebp - 0x820]
cmp eax, 1
je 0x422b20
cmp eax, 2
jne 0x422b8b
mov eax, dword [ebp - 0x818]
test eax, eax
je 0x422b3d
test al, 1
jne 0x422b8b
shr eax, 1
cmp word [ebp + eax*2 - 0x812], 0
je 0x422b46
jmp 0x422b8b
xor eax, eax
mov word [ebp - 0x810], ax
mov ecx, 0x4db6b0
lea esi, [ebp - 0x810]
mov edx, 0x3ff
sub esi, ecx
nop dword [eax + eax]
lea eax, [edx + 0x7ffffbff]
test eax, eax
je 0x422b7e
movzx eax, word [esi + ecx]
test ax, ax
je 0x422b7e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x422b60
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
test edi, edi
je 0x422b96
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.0041c870
mov ecx, eax
test ecx, ecx
je 0x422ccc
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x814], eax
push 0x4db6b0
lea ecx, [ebp - 0x814]
mov dword [ebp - 4], 0
call fcn.00405440
test al, al
jne 0x422bf6
mov ecx, 0x4db6b0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x422bd6
sub ecx, edx
sar ecx, 1
push ecx
push 0x4db6b0
lea ecx, [ebp - 0x814]
call fcn.00406e60
push 1
push 0x4b7690
lea ecx, [ebp - 0x814]
mov dword [ebp - 4], 1
call fcn.00421c90
push 0xc
push str.Anything.exe
lea ecx, [ebp - 0x814]
call fcn.00421c90
call fcn.0041c870
mov ecx, eax
test ecx, ecx
je 0x422cd6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x81c], eax
lea eax, [ebp - 0x81c]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x814]
push eax
call fcn.00422cf0
mov esi, dword [ebp - 0x81c]
add esp, 8
push 0x3f
push esi
push 0x4dbeb0
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea edx, [esi - 0x10]
mov byte [ebp - 4], 1
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x422c8a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x814]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x422cac
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 0x4dbeb0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043427a
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00401de0
push 0x80004005
call fcn.00401de0
int3