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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
test dl, dl
je 0x4d31d7
add esp, 0xfffffff0
call fcn.004036f0
mov esi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0040335c
mov byte [ebx + 4], 0
cmp dword [esi + 0x5c], 0
jne 0x4d31fd
cmp dword [esi + 0x58], 0x40
jb 0x4d33e3
jmp 0x4d3203
jl 0x4d33e3
lea eax, [ebx + 0xc]
mov edx, 0x40
call fcn.004079c8
push 0
push 0
push 0
push 0x40
lea edx, [ebx + 0xc]
mov eax, esi
call fcn.004d2ac8
cmp word [ebx + 0xc], 0x5a4d
jne 0x4d33e3
mov ecx, dword [ebx + 0x48]
test ecx, ecx
jle 0x4d33e3
cmp ecx, 0x10000
jge 0x4d33e3
mov eax, ecx
add eax, 4
add eax, 0x14
cdq
cmp edx, dword [esi + 0x5c]
jne 0x4d325e
cmp eax, dword [esi + 0x58]
ja 0x4d33e3
jmp 0x4d3264
jg 0x4d33e3
lea eax, [ebx + 0x4c]
mov edx, 4
call fcn.004079c8
mov eax, dword [ebx + 0x48]
cdq
push edx
push eax
push 0
push 4
lea edx, [ebx + 0x4c]
mov eax, esi
call fcn.004d2ac8
cmp dword [ebx + 0x4c], 0x4550
jne 0x4d33e3
lea eax, [ebx + 0x50]
mov edx, 0x14
call fcn.004079c8
mov eax, dword [ebx + 0x48]
add eax, 4
cdq
push edx
push eax
push 0
push 0x14
lea edx, [ebx + 0x50]
mov eax, esi
call fcn.004d2ac8
mov ax, word [ebx + 0x50]
cmp ax, 0x8664
jne 0x4d331b
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
add eax, 0xf0
cdq
cmp edx, dword [esi + 0x5c]
jne 0x4d32df
cmp eax, dword [esi + 0x58]
ja 0x4d336c
jmp 0x4d32e5
jg 0x4d336c
lea eax, [ebx + 0x144]
mov edx, 0xf0
call fcn.004079c8
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
cdq
push edx
push eax
push 0
push 0xf0
lea edx, [ebx + 0x144]
mov eax, esi
call fcn.004d2ac8
mov byte [ebx + 4], 1
jmp 0x4d336c
cmp ax, 0x14c
jne 0x4d336c
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
add eax, 0xe0
cdq
cmp edx, dword [esi + 0x5c]
jne 0x4d333c
cmp eax, dword [esi + 0x58]
ja 0x4d336c
jmp 0x4d333e
jg 0x4d336c
lea eax, [ebx + 0x64]
mov edx, 0xe0
call fcn.004079c8
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
cdq
push edx
push eax
push 0
push 0xe0
lea edx, [ebx + 0x64]
mov eax, esi
call fcn.004d2ac8
mov byte [ebx + 4], 1
cmp byte [ebx + 4], 0
je 0x4d33e3
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
movzx edx, word [ebx + 0x60]
add eax, edx
mov di, word [ebx + 0x52]
movzx edx, di
shl edx, 3
lea edx, [edx + edx*4]
add eax, edx
cdq
cmp edx, dword [esi + 0x5c]
jne 0x4d339d
cmp eax, dword [esi + 0x58]
ja 0x4d33e3
jmp 0x4d339f
jg 0x4d33e3
movzx eax, di
push eax
lea eax, [ebx + 8]
mov ecx, 1
mov edx, dword [0xa92550]
call fcn.0040599c
add esp, 4
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
movzx edx, word [ebx + 0x60]
add eax, edx
cdq
push edx
push eax
movzx eax, word [ebx + 0x52]
shl eax, 3
lea eax, [eax + eax*4]
xor edx, edx
push edx
push eax
mov edx, dword [ebx + 8]
mov eax, esi
call fcn.004d2ac8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4d33fa
call fcn.00403748
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4d40e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0xa9419f
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x4d4191
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x4d417a
test esi, esi
jbe 0x4d4191
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a644
test eax, eax
jne 0x4d416c
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x4d4191
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x4d4149
jmp 0x4d4191
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x4d4191
mov eax, ecx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xa941a6
ret
Function at 0x4d4bc0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0xa94d6f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404980
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x4d4bfb
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4d4c14
lea eax, [ebp - 0x10]
mov edx, dword [0xaf4c48]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.004049e0
jmp 0x4d4c27
lea eax, [ebp - 0x10]
mov edx, dword [0xaf4c48]
mov edx, dword [edx]
mov edx, dword [edx + 0x14]
call fcn.004049e0
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x4d4c33
adc edx, 0
mov edx, dword [edx*4 + 0xae28ac]
call fcn.00404bec
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404bd0
push eax
call fcn.00406b4c
mov esi, eax
cmp esi, 0xffffffff
je 0x4d4d41
mov eax, 0x40
call fcn.00402714
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406f5c
test eax, eax
je 0x4d4d34
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x4d4d34
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406fcc
mov eax, edi
call fcn.00402734
mov eax, 0x18
call fcn.00402714
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406f5c
test eax, eax
je 0x4d4d34
mov eax, edi
cmp dword [eax], 0x4550
jne 0x4d4d34
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x4d4d34
cmp dx, 0x150
ja 0x4d4d34
mov eax, edi
call fcn.00402734
mov eax, 0xe0
call fcn.00402714
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406f5c
test eax, eax
je 0x4d4d34
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x4d4d34
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.004049bc
mov eax, edi
call fcn.00402734
push esi
call fcn.00406b04
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.00404cf8
jne 0x4d4d59
inc ebx
cmp ebx, 0x19
jne 0x4d4bed
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xa94d76
lea eax, [ebp - 0x10]
call fcn.00404980
ret
Function at 0x509568
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0xb01594
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x50958a
shr eax, 1
xor eax, 0xedb88320
jmp 0x50958c
shr eax, 1
dec edx
jne 0x509578
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x509571
mov byte [0xb01994], 1
pop esi
pop ebx
ret

Function at 0x5095a8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0xb01994], 0
jne 0x5095bf
call fcn.00509568
mov eax, edi
dec eax
test eax, eax
jl 0x5095e8
inc eax
xor edx, edx
xor ecx, ecx
mov cl, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0xb01594]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x5095c9
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x78c20860
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4330d2
mov ebx, 0x4304d8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x2f79b9
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x401132
Capabilities:
Query or enumerate registry key
Set registry value

Disassembly:
mov eax, 0x1038
call fcn.00407110
mov eax, dword [0x412014]
xor eax, esp
mov dword [esp + 0x1034], eax
push ebx
push ebp
xor ebp, ebp
lea ecx, [esp + 0x30]
push esi
push edi
mov ebx, 0x20019
mov dword [esp + 0x38], ebp
push ebx
push 0x40b034
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x48], ebp
mov edi, ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
call fcn.00402d8d
mov esi, eax
test esi, esi
jne 0x4012ac
push ebx
push 0x409280
push dword [esp + 0x40]
lea ecx, [esp + 0x38]
call fcn.00402d8d
mov esi, eax
test esi, esi
jne 0x4012ac
push ebx
push 0x409294
push dword [esp + 0x34]
lea ecx, [esp + 0x1c]
call fcn.00402d8d
mov esi, eax
test esi, esi
jne 0x4012ac
mov ebx, 0x800
lea eax, [esp + 0x44]
push ebx
push ebp
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x44]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push eax
push ebp
jmp 0x401256
inc edi
lea eax, [esp + 0x44]
mov ecx, str.11.281.2
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401232
test dx, dx
je 0x40122e
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401232
add eax, 4
add ecx, 4
test dx, dx
jne 0x40120c
mov eax, ebp
jmp 0x401237
sbb eax, eax
or eax, 1
test eax, eax
lea eax, [esp + 0x44]
je 0x401264
mov esi, 0x800
push esi
push ebp
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x44]
push esi
push eax
push edi
push dword [esp + 0x1c]
call ebx
mov esi, eax
test esi, esi
je 0x401202
jmp 0x4012ac
push 0x2001f
push eax
push dword [esp + 0x18]
lea ecx, [esp + 0x28]
call fcn.00402d8d
mov esi, eax
test esi, esi
jne 0x4012ac
mov eax, dword [esp + 0x104c]
push 4
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
push eax
push 4
push ebp
push str.UseNewJavaPlugin
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.00402913
lea ecx, [esp + 0x1c]
call fcn.00402913
lea ecx, [esp + 0x10]
call fcn.00402913
lea ecx, [esp + 0x2c]
call fcn.00402913
lea ecx, [esp + 0x38]
call fcn.00402913
mov ecx, dword [esp + 0x1044]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00407028
add esp, 0x1038
ret
Function at 0x403031
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x21c
mov eax, dword [0x412014]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
mov ebx, dword [esp + 0x224]
push ebp
push esi
push edi
mov edi, ecx
xor ebp, ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov eax, dword [edi + 4]
or eax, 0x2001f
push eax
push ebx
push dword [edi]
call fcn.00402d8d
mov esi, eax
test esi, esi
jne 0x4030e0
lea eax, [esp + 0x20]
push eax
push ebp
push ebp
push ebp
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x4030bb
lea eax, [esp + 0x28]
push eax
call fcn.00403031
mov esi, eax
test esi, esi
jne 0x4030e0
lea eax, [esp + 0x20]
xor ecx, ecx
push eax
push ecx
push ecx
push ecx
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
push ecx
push dword [esp + 0x30]
mov dword [esp + 0x30], pe_nt_image_headers32
call ebp
lea ecx, [esp + 0x14]
test eax, eax
je 0x403096
call fcn.00402913
push ebx
mov ecx, edi
call fcn.0040299c
mov esi, eax
lea ecx, [esp + 0x14]
call fcn.00402913
mov ecx, dword [esp + 0x228]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00407028
add esp, 0x21c
ret 4
Function at 0x40333f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x4085d6
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x412014]
xor eax, ebp
mov dword [ebp + 0x404], 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 + 0x414]
xor ebx, ebx
mov esi, dword [ebp + 0x410]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x418]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], ebx
mov dword [ebp], ebx
push 0x60
push ebx
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x1c], edi
test edi, edi
jne 0x4033da
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x1c], eax
test edi, edi
jne 0x4033da
call fcn.0040280f
mov esi, eax
jmp 0x4034a6
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4033f7
call fcn.0040280f
jmp 0x403499
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4033ed
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x18], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x403421
mov esi, 0x8007000e
jmp 0x40349b
push 2
push eax
mov byte [ebp - 4], 2
call fcn.00401d5e
pop ecx
pop ecx
cmp eax, 0x400
jbe 0x403441
push eax
lea ecx, [ebp]
call fcn.0040268a
jmp 0x403457
lea eax, [ebp + 4]
mov dword [ebp], eax
jmp 0x403457
cmp dword [ebp], 0
mov dword [ebp - 4], 1
je 0x40341a
push esi
push dword [ebp]
push esi
push dword [ebp - 0x14]
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x4033ed
mov eax, dword [ebp]
xor edx, edx
push dword [ebp + 0x41c]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x28]
push dword [ebp]
call fcn.0040320f
mov esi, eax
test edi, edi
je 0x4034a6
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x4034b6
lea ecx, [ebp]
call fcn.00402ab6
lea ecx, [ebp - 0x20]
call fcn.00401fd9
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.00407028
add ebp, 0x408
leave
ret 0x10
Function at 0x403bb3
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x403bcd
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ebx, ecx
test edx, edx
jne 0x403bdd
push 0xd
pop eax
jmp 0x403c22
push ebp
push esi
xor eax, eax
push edi
mov dword [esp + 0x18], eax
mov esi, eax
mov edi, edx
mov ecx, edi
lea ebp, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x18]
jne 0x403bef
sub ecx, ebp
sar ecx, 1
inc ecx
lea edi, [edi + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x403bea
push esi
push edx
push 7
xor eax, eax
push eax
push dword [esp + 0x24]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x403c26
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
push esi
mov esi, ecx
test edx, edx
jne 0x403c36
push 0xd
pop eax
jmp 0x403c6a
mov ecx, edx
push ebx
push edi
xor ebx, ebx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x403c3f
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push dword [esp + 0x20]
push ebx
push dword [esp + 0x20]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
pop esi
ret 0xc

Function at 0x404588
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x412014]
xor eax, ebp
mov dword [ebp + 0x9c], eax
cmp dword [0x4122c8], 0
je 0x4045b3
mov eax, dword [0x4122cc]
jmp 0x40460e
push esi
push 0x118
xor esi, esi
lea eax, [ebp - 0x7c]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x80], 0x11c
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor eax, eax
inc eax
cmp dword [ebp - 0x70], 2
jne 0x404600
cmp dword [ebp - 0x7c], 6
jne 0x404600
cmp dword [ebp - 0x78], esi
jne 0x404600
cmp byte [ebp + 0x9a], al
jne 0x404600
cmp word [ebp + 0x94], si
jne 0x404600
mov esi, eax
mov dword [0x4122c8], eax
mov eax, esi
mov dword [0x4122cc], esi
pop esi
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
call fcn.00407028
add ebp, 0xa0
leave
ret
Function at 0x4049c8
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x408681
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x412014]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 0x214]
xor eax, eax
xor esi, esi
mov dword [ebp - 4], esi
mov word [ebx], ax
lea eax, [ebp]
push eax
push esi
push esi
push 0x1a
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
test edi, edi
js 0x404ab5
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.00401f8e
mov eax, dword [eax]
test eax, eax
je 0x404a41
mov esi, dword [eax]
push 0x104
push esi
push dword [ebp + 0x218]
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov ecx, dword [ebp - 0x14]
add esp, 0x10
test ecx, ecx
je 0x404a8b
call fcn.00403a4c
jmp 0x404a8b
xor eax, eax
test edi, edi
setns al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.00407028
add ebp, 0x20c
leave
ret
push edi
push str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__szPath_
call fcn.004069ee
pop ecx
pop ecx
push esi
push edi
call fcn.00407e30
int3

Function at 0x404aca
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x4086a9
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x412014]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 0x214]
xor eax, eax
xor esi, esi
mov dword [ebp - 4], esi
mov word [ebx], ax
lea eax, [ebp]
push eax
push esi
push esi
push 0x23
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
test edi, edi
js 0x404bb7
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.00401f8e
mov eax, dword [eax]
test eax, eax
je 0x404b43
mov esi, dword [eax]
push 0x104
push esi
push dword [ebp + 0x218]
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov ecx, dword [ebp - 0x14]
add esp, 0x10
test ecx, ecx
je 0x404b8d
call fcn.00403a4c
jmp 0x404b8d
xor eax, eax
test edi, edi
setns al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.00407028
add ebp, 0x20c
leave
ret
push edi
push str.Error:_08x_in_::SHGetFolderPathW_0__CSIDL_COMMON_APPDATA__NULL__SHGFP_TYPE_CURRENT__szPath_
call fcn.004069ee
pop ecx
pop ecx
push esi
push edi
call fcn.00407e30
int3
Function at 0x404d32
Capabilities:
Get common file path

Disassembly:
push 0x14
mov eax, 0x4086d1
call fcn.004070ca
mov ebx, dword [ebp + 8]
xor edi, edi
xor eax, eax
mov dword [ebp - 4], edi
mov esi, edi
mov dword [ebp - 0x14], esi
mov word [ebx], ax
call fcn.00404c48
test eax, eax
je 0x404d63
call fcn.00404c3a
mov esi, eax
mov dword [ebp - 0x14], eax
push 0x104
push ebx
push esi
push edi
push 0x40b048
call dword [sym.imp.SHELL32.dll_SHGetFolderPathEx]
mov esi, eax
test esi, esi
js 0x404e79
jmp 0x404db3
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x404dc1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
test esi, esi
jns 0x404e71
push ebx
push edi
push edi
push 0x1a
push edi
mov dword [ebp - 4], 2
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
jns 0x404e22
push esi
push str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__pPath_
jmp 0x404e7f
or dword [ebp - 4], 0xffffffff
test esi, esi
jns 0x404e71
push 1
push 0x1a
push ebx
push edi
mov dword [ebp - 4], 4
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, eax
test esi, esi
jns 0x404e71
push esi
push str.Error:_08x_in_SHGetSpecialFolderPathW_NULL__pPath__CSIDL_APPDATA__TRUE_
jmp 0x404e7f
mov eax, esi
call fcn.00407039
ret
push esi
push str.Error:_08x_in_SHGetFolderPathEx_FOLDERID_LocalAppDataLow__0__hToken__pPath__MAX_PATH_
call fcn.004069ee
pop ecx
pop ecx
push edi
push esi
call fcn.00407e30
int3

Function at 0x40530a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x412014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
mov ebx, 0x208
push ebx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
mov edi, 0x104
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x405390
cmp eax, edi
ja 0x405390
push ebx
lea eax, [ebp - 0x414]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push 0x40c00c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x405392
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407028
leave
ret
Function at 0x405432
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
push 0x44
pop esi
push esi
xor ebx, ebx
lea eax, [ebp - 0x58]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [ebp - 0x58], esi
lea edi, [ebp - 0x14]
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov word [ebp - 0x28], ax
xor edi, edi
lea eax, [ebp - 4]
inc edi
push eax
push 0x2000000
mov dword [ebp - 0x2c], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4054ca
cmp dword [ebp + 8], ebx
je 0x4054ca
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
push 0x8000008
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x4054ca
push dword [ebp + 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
mov eax, edi
jmp 0x4054cc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4057f8
Capabilities:
Query environment variable

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
je 0x40581c
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0x40c48c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor ecx, ecx
inc ecx
test eax, eax
cmovne esi, ecx
mov eax, esi
pop esi
ret