joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403b4b
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x40a5b0]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x403b7c
xor eax, eax
jmp 0x403d05
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x40b620]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x403bb8
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0040634a
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x403c93
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x403cd1
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x403c1c
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x403c0d
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x403bed
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403c5c
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x403c65
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x403bde
jmp 0x403c67
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x403d00
cmp dword [ebp - 0x6c], edi
je 0x403cd1
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x403cc6
call fcn.00402e41
mov dword [eax], 9
call fcn.00402e4a
mov dword [eax], esi
jmp 0x403cfb
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403cbb
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x403c67
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x403c67
push dword [ebp - 0x6c]
call fcn.00402e53
pop ecx
jmp 0x403cfb
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x403ce9
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x403ce9
xor eax, eax
jmp 0x403d03
call fcn.00402e41
mov dword [eax], 0x1c
call fcn.00402e4a
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x403d03
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0040403c
add ebp, 0x3a0
leave
ret
Function at 0x40561a
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x405648
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x40564f
cmp ebx, dword [eax + 4]
jae 0x40564f
xor eax, eax
jmp 0x40583f
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x405660
xor eax, eax
inc eax
jmp 0x40583e
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x405676
cmp ecx, edx
jae 0x4057bb
cmp dword [eax + 4], 0
je 0x40567f
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x405667
cmp dword [ebp + 8], 0
je 0x4056a1
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4057bb
cmp eax, esi
jae 0x4057bb
mov eax, dword [0x40b1e8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4056c6
cmp dword [esi*4 + 0x40b1f0], edi
je 0x4057bf
inc esi
cmp esi, eax
jl 0x4056b4
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40583b
cmp dword [ebp - 8], 0x1000000
jne 0x40583b
test byte [ebp - 0xc], 0xcc
je 0x405744
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40583b
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40583b
cmp word [eax + 0x18], 0x10b
jne 0x40583b
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40583b
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x405744
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x405744
test byte [ecx + 0x27], 0x80
jne 0x4057bb
push 1
push 0x40b230
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x405658
mov ecx, dword [0x40b1e8]
test ecx, ecx
mov edx, ecx
jle 0x405778
lea eax, [ecx*4 + 0x40b1ec]
cmp dword [eax], edi
je 0x405778
dec edx
sub eax, 4
test edx, edx
jg 0x40576c
test edx, edx
jne 0x4057a9
push 0xf
pop ebx
cmp ecx, ebx
jg 0x405785
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40579d
lea eax, [edx*4 + 0x40b1f0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40578b
cmp ecx, 0x10
jge 0x4057a9
inc ecx
mov dword [0x40b1e8], ecx
push 0
push 0x40b230
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x405658
xor eax, eax
jmp 0x40583e
test esi, esi
jle 0x405658
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x40b230
call ebx
test eax, eax
jne 0x405658
cmp dword [esi*4 + 0x40b1f0], edi
je 0x405815
mov eax, dword [0x40b1e8]
lea esi, [eax - 1]
test esi, esi
jl 0x405803
cmp dword [esi*4 + 0x40b1f0], edi
je 0x4057ff
dec esi
jns 0x4057f3
test esi, esi
jge 0x405813
cmp eax, 0x10
jge 0x40580e
inc eax
mov dword [0x40b1e8], eax
lea esi, [eax - 1]
jmp 0x405815
je 0x40582d
xor ecx, ecx
test esi, esi
jl 0x40582d
lea eax, [ecx*4 + 0x40b1f0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40581b
push 0
push 0x40b230
call ebx
jmp 0x405658
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405ac4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40b23c], ebx
push esi
push edi
jne 0x405b44
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x405b7f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x40b23c], eax
je 0x405b7f
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40b240], eax
call esi
cmp dword [0x40af20], 2
mov dword [0x40b244], eax
jne 0x405b44
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40b24c], eax
je 0x405b44
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40b248], eax
mov eax, dword [0x40b248]
test eax, eax
je 0x405b89
call eax
test eax, eax
je 0x405b70
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40b24c]
test eax, eax
je 0x405b70
test byte [ebp - 8], 1
jne 0x405b89
cmp dword [0x40af2c], 4
jb 0x405b83
or byte [ebp + 0x12], 0x20
jmp 0x405ba8
xor eax, eax
jmp 0x405bb8
or byte [ebp + 0x12], 4
jmp 0x405ba8
mov eax, dword [0x40b240]
test eax, eax
je 0x405ba8
call eax
mov ebx, eax
test ebx, ebx
je 0x405ba8
mov eax, dword [0x40b244]
test eax, eax
je 0x405ba8
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40b23c]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4076fe
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00401890
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x407799
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x40af20]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x407799
cmp eax, 1
je 0x4077ba
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x407799
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x407766
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x407795
xor eax, eax
inc eax
jmp 0x4077d9
cmp edi, eax
jae 0x40779d
xor eax, eax
jmp 0x4077d9
cmp eax, esi
jae 0x4077a4
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x40af20]
jmp 0x4077bd
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43fcae
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46b5d8
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x43fcf1
push str.SystemFunction040
push dword [0x46b5d8]
call edi
push str.SystemFunction041
push dword [0x46b5d8]
mov dword [0x46b5e0], eax
call edi
mov dword [0x46b5e4], eax
jmp 0x43fcf6
mov eax, dword [0x46b5e4]
cmp dword [0x46b5e0], 0
je 0x43fd07
test eax, eax
jne 0x43fdae
push 0x46b5dc
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x43fdb8
push str.CryptProtectMemory
push dword [0x46b5dc]
call edi
cmp dword [0x46b5e0], 0
mov dword [0x46b5e8], eax
jne 0x43fd6c
test eax, eax
jne 0x43fd6c
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43fd56
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43fd5d
mov esi, 0x80004005
push esi
push 0x28
push str.cryputil.cpp
call fcn.00403821
jmp 0x43fdb8
push str.CryptUnprotectMemory
push dword [0x46b5dc]
call edi
cmp dword [0x46b5e4], 0
mov dword [0x46b5ec], eax
jne 0x43fdae
test eax, eax
jne 0x43fdae
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43fda2
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43fda9
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x43fd60
mov dword [0x46b5f0], 1
pop edi
mov eax, esi
pop esi
ret

Function at 0x447b16
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x447b25
pop dword [ebp - 0x30]
mov eax, 0xda22e673
add eax, 0x262194b2
sub dword [ebp - 0x30], eax
push 0x40
push 0x1000
push 0x52da3
push 0
mov eax, 0xe9846c1a
add eax, 0x16c046a2
add eax, dword [ebp - 0x30]
call dword [eax]
mov ecx, 0xddc3e86
sub ecx, 0xddbeaa7
xor edx, edx
add edx, eax
mov esi, 0x487e00
add esi, dword [ebp - 0x30]
mov ebx, 0x924d2689
add ebx, 0xc8d04910
mov edi, dword [esi]
xor dword [ebp - 0x14], 0xa7255fff
add edi, ebx
xor dword [ebp - 4], edi
mov dword [edx], edi
sub dword [ebp - 0x2c], ecx
add edx, 0x5ffe328d
sub edx, 0x5ffe3289
add esi, 0x71e893b5
sub esi, 0x71e893b1
loop 0x447b80
add eax, 0x1424f
mov ebx, eax
add eax, 5
mov ecx, 0xdcafbf47
add ecx, 0x239040b9
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x430d50
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f251d
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [0x53b008]
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, ecx
mov dword [ebp - 0x154], esi
mov dword [ebp - 0x158], esi
mov dword [ebp - 0x150], 0
push 1
mov dword [ebp - 0x14], 0
call fcn.004e9692
mov dword [ebp - 0x14], eax
push pe_nt_image_headers32
push 0
mov byte [eax], 0
lea eax, [ebp - 0x144]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov dword [ebp - 0x148], 0x11c
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x430de9
cmp dword [ebp - 0x144], 6
mov eax, dword [ebp - 0x14]
setae cl
mov byte [eax], cl
mov dword [ebp - 4], 1
call fcn.004b9a40
mov dword [ebp - 0x154], eax
cmp eax, 0xffffffff
jne 0x430e22
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 0x150], 1
jmp 0x430f19
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 2
mov dword [ebp - 0x14c], eax
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x14c]
push eax
call fcn.004ba690
test al, al
mov eax, dword [ebp - 0x14c]
je 0x430ec5
push eax
lea eax, [ebp - 0x170]
push eax
call fcn.004ba750
mov edi, eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x2c]
cmp eax, edi
je 0x430eb0
mov ecx, eax
call fcn.0040b220
movups xmm0, xmmword [edi]
xor eax, eax
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [edi + 0x10]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
movq qword [ebp - 0x1c], xmm0
mov word [edi], ax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x170]
call fcn.0040b220
mov eax, dword [ebp - 0x14c]
test eax, eax
je 0x430ed0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movups xmm0, xmmword [ebp - 0x2c]
mov dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
mov word [ebp - 0x2c], ax
movq xmm0, qword [ebp - 0x1c]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x150], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.0040b220
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004b9900
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.004e9681
mov esp, ebp
pop ebp
ret
Function at 0x49d1e0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5005f8
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x53b008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 1
mov dword [ebp - 0x14], 0
call fcn.004e9692
mov dword [ebp - 0x14], eax
push pe_nt_image_headers32
push 0
mov byte [eax], 0
lea eax, [ebp - 0x12c]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov dword [ebp - 0x130], 0x11c
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x49d264
cmp dword [ebp - 0x12c], 6
mov eax, dword [ebp - 0x14]
setae cl
mov byte [eax], cl
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea ecx, [ebp - 0x14]
call fcn.004bade0
test al, al
je 0x49d291
lea ecx, [ebp - 0x14]
call fcn.004ba0b0
test al, al
jne 0x49d291
xor bl, bl
jmp 0x49d32f
lea esi, [edi + 4]
xor ecx, ecx
mov edx, esi
call fcn.004ace40
test al, al
jne 0x49d2b5
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x49d2b0
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
lea esi, [edi + 0x1c]
mov ecx, 0x1a
mov edx, esi
call fcn.004ace40
test al, al
jne 0x49d2dc
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x49d2d7
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
lea esi, [edi + 0x34]
mov ecx, 2
mov edx, esi
call fcn.004ace40
test al, al
jne 0x49d303
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x49d2fe
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
lea esi, [edi + 0x4c]
mov ecx, 0xb
mov edx, esi
call fcn.004ace40
test al, al
jne 0x49d32a
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x49d325
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
mov byte [edi], 1
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004b9900
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e9681
mov esp, ebp
pop ebp
ret
Function at 0x4a52e0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50117c
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x53b008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea edi, [ebx + 0x10]
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
lea esi, [edi + 0x18]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 4
lea ecx, [esi + 0x48]
call fcn.0040b220
mov byte [ebp - 4], 3
lea ecx, [esi + 0x30]
call fcn.0040b220
mov byte [ebp - 4], 2
lea ecx, [esi + 0x18]
call fcn.0040b220
mov byte [ebp - 4], 0
mov ecx, esi
call fcn.0040b220
mov dword [ebp - 4], 0xffffffff
mov ecx, edi
call fcn.0040b220
push 0x88
push ebx
call fcn.004e96c2
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4a6340
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x140
mov eax, dword [0x53b008]
xor eax, esp
mov dword [esp + 0x13c], eax
push esi
mov esi, ecx
push pe_nt_image_headers32
push 0
lea eax, [esi + 4]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4a6482
cmp dword [esi + 4], 6
push edi
ja 0x4a6396
jne 0x4a641e
cmp dword [esi + 8], 2
jb 0x4a641e
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x4a641e
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4a641e
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4a641e
movups xmm0, xmmword [0x515ee8]
push eax
movups xmmword [esp + 0x128], xmm0
movups xmm0, xmmword [0x515ef8]
movups xmmword [esp + 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4a641e
lea eax, [esp + 0x124]
push eax
lea ecx, [edi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4a641e
cmp word [edi + 2], ax
jbe 0x4a641e
movzx edx, word [edi + 0x32]
movzx ecx, word [edi + 0x30]
movzx eax, word [edi + 0x36]
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x4a6469
push pe_nt_image_headers32
lea eax, [esp + 0x10]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 8], 0x11c
lea eax, [esp + 8]
push eax
call edi
test eax, eax
jne 0x4a6469
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.004e9681
add esp, 0x140
ret
mov ecx, dword [esp + 0x140]
xor al, al
pop esi
xor ecx, esp
call fcn.004e9681
add esp, 0x140
ret
Function at 0x4b9880
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x53b008]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 1
mov esi, ecx
call fcn.004e9692
mov dword [esi], eax
push pe_nt_image_headers32
push 0
mov byte [eax], 0
lea eax, [esp + 0x14]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov dword [esp + 4], 0x11c
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x4b98dc
cmp dword [esp + 8], 6
mov ecx, dword [esi]
setae dl
mov byte [ecx], dl
mov ecx, dword [esp + 0x120]
pop esi
xor ecx, esp
call fcn.004e9681
add esp, 0x120
ret
Function at 0x4be750
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x503dbb
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x53b008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi], 0
je 0x4be789
call fcn.004be8f0
cmp byte [0x53ce48], 0
jne 0x4be79c
mov eax, 0x80000001
jmp 0x4be8cc
mov eax, dword [esi]
test eax, eax
jne 0x4be81c
push 8
call fcn.004e9692
mov edi, eax
add esp, 4
mov dword [ebp - 0x138], edi
mov dword [ebp - 4], 0
push 1
call fcn.004e9692
add esp, 4
mov dword [edi + 4], eax
mov byte [eax], 0
lea eax, [ebp - 0x130]
push pe_nt_image_headers32
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x134], 0x11c
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4be80b
cmp dword [ebp - 0x130], 6
mov eax, dword [edi + 4]
setae cl
mov byte [eax], cl
mov dword [ebp - 4], 0xffffffff
mov dword [esi], edi
mov dword [edi], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x4be8bb
call fcn.004ba5d0
test al, al
jne 0x4be856
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esi]
push eax
add ecx, 4
call fcn.004bade0
test al, al
je 0x4be8bb
mov ecx, dword [esi]
add ecx, 4
call fcn.004ba0b0
call fcn.004ba5d0
test al, al
je 0x4be8bb
push str.Advapi32.dll
lea ecx, [ebp - 0x150]
call fcn.0040a730
mov dword [ebp - 4], 2
lea eax, [ebp - 0x150]
push eax
call fcn.004bcdd0
mov ecx, eax
call fcn.004bce90
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x150]
call fcn.0040b220
test edi, edi
je 0x4be8bb
push str.RegOpenCurrentUser
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4be8bb
push dword [esi]
push dword [ebp + 8]
call eax
test eax, eax
je 0x4be8bb
mov eax, dword [esi]
mov dword [eax], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x4be8ca
mov dword [eax], 0x80000001
mov eax, dword [esi]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004e9681
mov esp, ebp
pop ebp
ret 4
Function at 0x930368
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x93036e
pop ebp
sub ebp, 6
sub ebp, 0x530368
jmp 0x9303cc
jmp 0x9303d5
mov eax, 0x530368
add eax, ebp
add eax, 0x93
mov ecx, 0x616
push es
add byte [eax], al
mov edx, 0x69b6a093
xor byte [eax], dl
inc eax
dec ecx
jne 0x9303ec
jmp 0x9303ff
stc
sar ebx, cl
xchg ebx, eax
adc dword [ebx + 0x5f93fb93], 0xffffffbf
xchg ebx, eax
mov al, byte [0x66cc353]
jmp 0x9303e4
Function at 0x11648
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 0x14], eax
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x1c]
push eax
push 0x20006
lea eax, [ebp + 8]
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x1c], 0x18
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], 0x240
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call dword [0x1d4e0]
cmp eax, esi
jl 0x116bd
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x1d4dc]
push dword [ebp + 8]
mov esi, eax
call dword [0x1d4d8]
push dword [ebp + 8]
call dword [0x1d610]
mov eax, esi
pop esi
leave
ret 0x14

Function at 0x116c8
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
xor esi, esi
push 0x20019
lea eax, [ebp + 8]
push eax
mov dword [ebp - 0x1c], 0x18
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], 0x240
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call dword [0x1d4e8]
cmp eax, esi
jl 0x1172f
push ebx
mov ebx, dword [ebp + 0x18]
mov esi, dword [ebx]
push edi
add esi, 0x10
push esi
call fcn.00015ab0
mov edi, eax
test edi, edi
jne 0x11734
mov esi, 0xc000009a
push dword [ebp + 8]
call dword [0x1d610]
pop edi
mov eax, esi
pop ebx
pop esi
leave
ret 0x14
push esi
push 0
push edi
call fcn.0001b954
add esp, 0xc
lea eax, [ebp - 4]
push eax
push esi
push edi
push 2
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x1d4e4]
mov esi, eax
cmp esi, 0xc0000023
je 0x11795
cmp esi, 0x80000005
je 0x11795
test esi, esi
jl 0x1179d
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x11776
mov ecx, dword [edi + 4]
mov dword [eax], ecx
mov eax, dword [ebx]
mov ecx, dword [edi + 8]
cmp eax, ecx
jb 0x11781
mov eax, ecx
push eax
mov dword [ebx], eax
lea eax, [edi + 0xc]
push eax
push dword [ebp + 0x14]
call fcn.0001b978
add esp, 0xc
jmp 0x1179d
mov eax, dword [ebp - 4]
add eax, 0xfffffff4
mov dword [ebx], eax
push edi
call fcn.00015aca
jmp 0x11722