joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419975
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x433a50]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4199bb
cmp word [ebx], dx
jne 0x4199bb
or byte [eax + edi + 0x28], 4
jmp 0x4199c0
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x419b23
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x419b03
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x419a01
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x419a37
cmp eax, edx
jae 0x419a45
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x4199dc
jmp 0x419b23
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x419afe
cmp dword [ebp - 0x18], 0
je 0x419afe
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x433a50]
test byte [eax + edi + 0x28], 0x48
je 0x419ad4
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x419a98
mov word [esi], cx
jmp 0x419acf
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x433a50]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x433a50]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x433a50]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x419b23
pop eax
cmp word [ebp - 4], ax
jne 0x419ae4
cmp esi, ebx
jne 0x419ae4
mov word [esi], ax
jmp 0x419b20
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041a3ae
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x419b23
push 0xd
pop eax
jmp 0x419adf
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x433a50]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x419b1d
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x419b23
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41ccb4
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41cd51
push ebx
push esi
call fcn.0041cc7d
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041b96f
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41ccfe
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41cd50
push edi
push eax
call fcn.00416c52
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41cd1e
call fcn.0041686e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41cd4f
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041b96f
add esp, 0x20
test eax, eax
jne 0x41cd3d
push edi
call fcn.0041686e
jmp 0x41cd45
push ebx
call fcn.0041686e
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x41f523
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0041570f
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41f592
cmp esi, dword [ebp - 4]
je 0x41f58d
cmp dword [ebp + 0xc], 0
je 0x41f58d
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x41f56a
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0041f075
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x41f594
xor eax, eax
inc eax
jmp 0x41f594
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x41f5f9
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x432064]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0041570f
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0041570f
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x41f670
cmp word [ecx], dx
je 0x41f670
mov eax, dword [0x42b5c4]
push edi
dec eax
push eax
push 0x42b4b0
call fcn.0041f598
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x41f6e3
cmp word [eax], dx
je 0x41f6e3
mov eax, dword [edi]
test eax, eax
je 0x41f694
cmp word [eax], dx
je 0x41f694
lea eax, [ebp - 0x10]
push eax
call fcn.0041ef7b
jmp 0x41f69d
lea eax, [ebp - 0x10]
push eax
call fcn.0041f016
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x41f70d
mov eax, dword [0x42b4ac]
push dword [ebp - 0x14]
dec eax
push eax
push 0x42b1a0
call fcn.0041f598
add esp, 0xc
test al, al
je 0x41f70d
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x41f6d8
cmp word [eax], di
je 0x41f6d8
lea eax, [ebp - 0x10]
push eax
call fcn.0041ef7b
pop ecx
jmp 0x41f70f
lea eax, [ebp - 0x10]
push eax
call fcn.0041f016
jmp 0x41f6d5
mov eax, dword [edi]
test eax, eax
je 0x41f6fa
cmp word [eax], dx
je 0x41f6fa
lea eax, [ebp - 0x10]
push eax
call fcn.0041ef30
pop ecx
jmp 0x41f70d
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x41f7d8
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0041f41d
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x41f7d8
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x41f7d8
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x41f7d8
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41f765
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0041845f
test ebx, ebx
je 0x41f7d3
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0041845f
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41f7d8
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41f7d8
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004236c7
add esp, 0x10
xor eax, eax
inc eax
jmp 0x41f7da
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004087b2
leave
ret
Function at 0x423e35
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00423db1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x423fa4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x423fa4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x423f59
jg 0x423e91
test eax, eax
je 0x423f4f
push 1
push 0x1000
call fcn.00415bec
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x423eb4
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x423f46
push 0x8000
push ebx
call fcn.004132d3
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x423edd
jg 0x423ed8
cmp ecx, 0x1000
jb 0x423edd
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00416652
add esp, 0x10
cmp eax, 0xffffffff
je 0x423f22
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x423ed8
jl 0x423f09
test ecx, ecx
jne 0x423eca
push dword [ebp - 0xc]
push ebx
call fcn.004132d3
push esi
call fcn.0041686e
add esp, 0xc
xor ebx, ebx
jmp 0x423fb2
cmp byte [edi + 0x24], 0
je 0x423f39
cmp dword [edi + 0x20], 5
jne 0x423f39
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x423f44
mov ebx, dword [edi + 0x18]
jmp 0x423f46
xor ebx, ebx
push esi
call fcn.0041686e
pop ecx
jmp 0x423fb2
test ecx, ecx
jg 0x423f1b
jl 0x423f59
test eax, eax
jae 0x423f1b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041a3ae
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x423f79
cmp byte [edi + 0x1c], 0
je 0x423f1b
jmp 0x423faa
push ebx
call fcn.0041d4f4
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x423f1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x423fb2
cmp byte [edi + 0x1c], 0
je 0x423faf
mov ebx, dword [edi + 0x18]
jmp 0x423fb2
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041a3ae
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x425300
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42532d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42532d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x100308d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x100308df
pop dword [ebp - 0x18]
mov eax, 0xb22ac0c8
add eax, 0x5dd84817
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0xa6e841b2
add dword [ebp - 0x28], 0xa76a0399
mov dword [ebp - 0x24], 0xd2d4c783
sub dword [ebp - 0x24], 0xa0a17b3e
mov dword [ebp - 0x20], 0xa7942188
sub dword [ebp - 0x20], 0x5b47dd5a
mov dword [ebp - 0x1c], 0x83e36677
sub dword [ebp - 0x1c], 0x83e36677
lea eax, [ebp - 0x28]
push eax
mov eax, 0x951b6809
add eax, 0x7ae908bf
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0xe125e74d
add dword [ebp - 0x28], 0x934c8209
mov dword [ebp - 0x24], 0x9d5431ee
sub dword [ebp - 0x24], 0x5be7d079
mov dword [ebp - 0x20], 0x97bf9cf3
add dword [ebp - 0x20], 0xcbafcf79
mov dword [ebp - 0x1c], 0x881bae5
add dword [ebp - 0x1c], 0xf77e451b
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0x8bd36455
add eax, 0x84310c8f
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x421fb
push 0
call eax
mov ecx, 0xcc3a5ac3
add ecx, 0x33c5ebf2
mov esi, eax
mov edx, 0x10063000
add edx, dword [ebp - 0x18]
mov ebx, 0x112048da
add ebx, 0xbccd0392
mov dword [ebp - 0x14], 0x806aa304
mov edi, dword [edx]
sub dword [ebp - 0x14], ecx
add edi, ebx
xor dword [ebp - 4], ecx
mov dword [esi], edi
sub dword [ebp - 0x10], eax
add esi, 4
add edx, 0x67f36f0d
add edx, 0x980c90f7
loop 0x100309fb
add eax, 0x10da7
xor ebx, ebx
add ebx, eax
add eax, 0xfa3bd1d0
add eax, 0x5c42e35
mov ecx, 0xf8a16926
sub ecx, 0xe8a16926
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x401000
Capabilities:
Create process memory minidump

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x41c], 0
mov edx, 0x7ffe0018
mov edi, 0x7ffe0014
mov ebx, 0x7ffe001c
jmp 0x401040
mov eax, dword [edx]
mov ecx, dword [edi]
cmp eax, dword [ebx]
jne 0x401040
sub ecx, 0xd53e8000
push 0
push 0x989680
sbb eax, 0x19db1de
push eax
push ecx
call fcn.00425b00
push edx
push eax
push 0x42ce3c
push ecx
call fcn.00401a60
add esp, 4
push eax
push str._s_s__lld.dmp
lea eax, [ebp - 0x408]
push 0x200
push eax
call fcn.00409bc0
add esp, 0x1c
lea eax, [ebp - 0x41c]
mov edx, 5
push eax
push ecx
push 0
push 0
push 0x80
push 1
push 0x40000000
lea ecx, [ebp - 0x408]
call fcn.00408b20
test eax, eax
js 0x40110a
mov eax, dword fs:[0x18]
push 0
push 0
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x414], eax
lea eax, [ebp - 0x414]
push eax
mov eax, dword fs:[0x18]
push 0
push dword [ebp - 0x41c]
mov dword [ebp - 0x410], esi
mov dword [ebp - 0x40c], 0
push dword [eax + 0x20]
push 0xffffffffffffffff
call dword [sym.imp.dbghelp.dll_MiniDumpWriteDump]
push dword [ebp - 0x41c]
call dword [sym.imp.ntdll.dll_NtClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414c55
mov esp, ebp
pop ebp
ret
Function at 0x401320
Capabilities:
Identify system language via api

Disassembly:
mov edx, dword [0x433494]
push ebx
push esi
or ebx, 0xffffffff
push edi
test edx, edx
je 0x401366
lea edi, ds:[edx - 8]
mov ecx, ebx
lea eax, [edi + 4]
lock xadd dword [eax], ecx
lea eax, [ecx - 1]
test eax, eax
jne 0x401366
mov esi, dword [edi]
test esi, esi
je 0x401355
push edx
mov ecx, esi
call dword [0x427534]
call esi
call fcn.00407de0
push edi
push 0
push eax
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ecx, 0x7ffffffe
mov eax, str.English
cmp word [eax], 0
je 0x40137e
add eax, 2
sub ecx, 1
jne 0x401370
lea eax, [ecx + ecx]
mov edi, 0xfffffffc
sub edi, eax
mov eax, 2
cmove edi, eax
call fcn.00407de0
lea ecx, ds:[edi + 0x12]
push ecx
push 0xc
push eax
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
lock inc dword [eax + 4]
lea esi, [eax + 8]
mov dword [eax], 0
push edi
lea eax, [esi + 8]
mov dword [esi], edi
push str.English
push eax
mov dword [esi + 4], eax
call fcn.00416670
mov ecx, dword [esi]
xor edx, edx
mov eax, dword [esi + 4]
add esp, 0xc
mov word [ecx + eax], dx
mov ecx, dword [0x433494]
mov dword [0x433490], esi
mov dword [0x433494], edx
test ecx, ecx
je 0x40141e
lea edi, [ecx - 8]
lea eax, [edi + 4]
lock xadd dword [eax], ebx
lea eax, [ebx - 1]
test eax, eax
jne 0x40141e
mov esi, dword ds:[edi]
test esi, esi
je 0x40140f
push ecx
mov ecx, esi
call dword [0x427534]
call esi
call fcn.00407de0
push edi
push 0
push eax
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push 0x433494
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ecx, ax
call fcn.0040a980
test eax, eax
je 0x401445
push 0x433494
mov ecx, 0x800
call fcn.0040a980
cmp dword [0x43347c], 0
jne 0x40145e
push str.TaskbarCreated
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
mov dword [0x43347c], eax
mov edi, edi
call fcn.00407de0
push 0x1c
push 0xc
push eax
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
lock inc dword [eax + 4]
lea esi, [eax + 8]
mov dword [eax], 0x40e7a0
mov dword [esi + 4], 2
mov dword [esi], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0x20
call fcn.00407de0
push 0x40
push 0xc
push eax
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [esi + 0x10], eax
mov dword [0x43349c], esi
call fcn.00407de0
push 0x1c
push 0xc
push eax
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
lock inc dword [eax + 4]
lea esi, [eax + 8]
mov dword [eax], 0x40e7a0
mov dword [esi + 4], 2
mov dword [esi], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0xc
call fcn.00407de0
push 0x18
push 0xc
push eax
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [esi + 0x10], eax
pop edi
mov dword [0x4334c0], esi
pop esi
pop ebx
ret
Function at 0x403a00
Capabilities:
Check for peb beingdebugged flag
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x10]
mov edi, ecx
push eax
push 0x20006
mov bl, dl
mov dword [ebp - 0x14], edi
call fcn.0040d380
test eax, eax
js 0x403b60
test bl, bl
je 0x403aed
mov eax, dword fs:[0x18]
push str.___minimized
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x10]
push dword [eax + 0x3c]
push 0x42d688
push 3
call fcn.00408110
mov ebx, eax
add esp, 0x10
mov eax, 0x7ffffffe
mov ecx, 0x42ce20
mov edx, dword [ebx]
add edx, 2
lea esp, [esp]
cmp word [ecx], 0
je 0x403a7e
add ecx, 2
sub eax, 1
jne 0x403a70
add eax, eax
mov dword [ebp - 8], 0x42ce20
push edx
push dword [ebx + 4]
mov ecx, 0xfffffffc
sub ecx, eax
movzx eax, cx
mov word [ebp - 0xc], ax
add eax, 2
push 1
mov word [ebp - 0xa], ax
lea eax, [ebp - 0xc]
push 0
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ntdll.dll_NtSetValueKey]
mov esi, eax
lea ecx, [ebx - 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
lea ecx, [edx - 1]
test ecx, ecx
jne 0x403b3e
mov edi, dword [ebx - 8]
test edi, edi
je 0x403ad6
push ebx
mov ecx, edi
call dword [0x427534]
call edi
call fcn.00407de0
lea ecx, [ebx - 8]
push ecx
push 0
push eax
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov edi, dword [ebp - 0x14]
jmp 0x403b3e
mov ecx, 0x7ffffffe
mov eax, 0x42ce20
cmp word [eax], 0
je 0x403b05
add eax, 2
sub ecx, 1
jne 0x403af7
lea eax, [ecx + ecx]
mov dword [ebp - 8], 0x42ce20
mov ecx, 0xfffffffc
sub ecx, eax
movzx eax, cx
mov word [ebp - 0xc], ax
add eax, 2
mov word [ebp - 0xa], ax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ntdll.dll_NtDeleteValueKey]
mov esi, eax
xor eax, eax
cmp esi, 0xc0000034
cmove esi, eax
push dword [ebp - 0x10]
call dword [sym.imp.ntdll.dll_NtClose]
test edi, edi
je 0x403b5e
test esi, esi
jns 0x403b5e
push 0
push 0
push ecx
push esi
xor edx, edx
mov ecx, edi
call fcn.00405dc0
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414c55
mov esp, ebp
pop ebp
ret
Function at 0x4052a0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xfc
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0xf8], eax
push ebx
mov ebx, dword [ebp + 0x14]
lea eax, [esp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
push 0x60
push 0
push eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], ecx
call fcn.00415be0
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [0x433478]
or eax, 0x1010008
mov dword [esp + 0x24], eax
mov eax, dword [edx + 8]
test eax, eax
mov dword [esp + 0x18], 0x60
cmovne ecx, eax
mov eax, dword fs:[0x18]
mov dword [esp + 0x1c], ecx
test esi, esi
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], eax
mov eax, 0x64
cmovne eax, esi
mov dword [esp + 0x6c], 0x405000
mov dword [esp + 0x30], eax
test edi, edi
mov eax, dword [esp + 0x34]
cmovne eax, edi
mov dword [esp + 0x70], edx
mov dword [esp + 0x34], eax
test ebx, ebx
mov eax, dword [esp + 0x38]
cmovne eax, ebx
mov dword [esp + 0x2c], 0x42ce20
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x40538c
push eax
push eax
push str.Status:__ld__0x_X_
lea eax, [esp + 0x8c]
push 0x40
push eax
call fcn.00409bc0
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x94]
add esp, 0x14
mov dword [esp + 0x58], eax
test byte [esp + 0x14], 2
je 0x4053a5
test byte [edx + 0x14], 4
mov eax, str.Automatically_install_non_executable_updates
cmove eax, dword [esp + 0x54]
mov dword [esp + 0x54], eax
mov eax, dword [edx + 4]
test eax, eax
je 0x4053d6
lea ecx, [esp + 0x18]
push ecx
push 0
push 0x465
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xf8]
xor ecx, esp
call fcn.00414c55
mov esp, ebp
pop ebp
ret 0x14
lea eax, [esp + 0x7c]
push eax
push 0
push 0
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.COMCTL32.dll_Ordinal_345]
mov ecx, dword [esp + 0x104]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00414c55
mov esp, ebp
pop ebp
ret 0x14
Function at 0x406100
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x68]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push 0x60
push 0
push eax
mov dword [ebp - 0x6c], edx
call fcn.00415be0
mov eax, dword fs:[0x18]
add esp, 0xc
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x68], 0x60
mov dword [ebp - 0x5c], 0x1010009
mov dword [ebp - 0x64], esi
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov dword [ebp - 0x60], eax
mov eax, edx
and eax, 0xf0
mov dword [ebp - 0x14], 0x408960
mov dword [ebp - 0x54], 0x42ce20
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], ebx
cmp eax, 0x80
jne 0x40617c
mov dword [ebp - 0x50], 0x64
jmp 0x4061b1
lea esp, [esp]
cmp eax, 0x30
jne 0x40618e
mov dword [ebp - 0x50], 0xffff
jmp 0x4061b1
cmp eax, 0x10
jne 0x40619c
mov dword [ebp - 0x50], 0xfffe
jmp 0x4061b1
lea esp, [esp]
cmp eax, 0x40
je 0x4061aa
cmp eax, 0x20
jne 0x4061b1
mov dword [ebp - 0x50], 0xfffd
mov ecx, edx
and ecx, 0xf
cmp ecx, 4
jne 0x4061c4
mov dword [ebp - 0x58], 6
jmp 0x4061f5
cmp ecx, 3
jne 0x4061d2
mov dword [ebp - 0x58], 0xe
jmp 0x4061f5
cmp ecx, 1
jne 0x4061e2
mov dword ds:[ebp - 0x58], 9
jmp 0x4061f5
cmp ecx, 5
mov eax, 1
mov esi, 0x18
cmove eax, esi
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x10]
test edx, 0x40000
mov ecx, 0x10000
cmovne eax, ecx
push 0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push 0
push eax
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.COMCTL32.dll_Ordinal_345]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00414c55
mov esp, ebp
pop ebp
ret 8
Function at 0x407640
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x408
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x404], eax
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [esp + 0xc]
push 0x1ff
push eax
call fcn.00407630
mov ecx, dword ds:[eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.00419daa
or ecx, 0xffffffff
add esp, 0x1c
test eax, eax
cmovs eax, ecx
cmp eax, ecx
je 0x40769b
cmp eax, 0x1ff
jb 0x4076a5
xor eax, eax
mov word [esp + 0x3fe], ax
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esp + 0x404]
xor ecx, esp
call fcn.00414c55
mov esp, ebp
pop ebp
ret

Function at 0x408ec0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
push esi
mov esi, dword [ebp + 8]
test ecx, ecx
jne 0x408f03
mov eax, 0xc000000d
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00414c55
mov esp, ebp
pop ebp
ret 4
push 5
push 0x18
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
push ecx
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
js 0x408f36
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00414c55
mov esp, ebp
pop ebp
ret 4
xor ecx, ecx
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 8]
xor ecx, ebp
pop esi
call fcn.00414c55
mov esp, ebp
pop ebp
ret 4