joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f047
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x45f1a9
call fcn.004367f8
sub esp, 0x74
mov eax, dword [0x48ed30]
push ebx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x64]
push esi
push eax
call fcn.0040ef86
mov dword [esp], 0x471238
push eax
lea eax, [ebp - 0x48]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0040519a
push dword [ebp + 8]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004051e8
add esp, 0x18
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.0040117c
push ebx
push 1
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 3
call fcn.0040117c
mov eax, dword [ebp - 0x28]
push 0x10
pop esi
cmp dword [ebp - 0x14], esi
jae 0x40f0b9
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40f115
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x80]
call fcn.004015d2
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.0041fc42
push ebx
push 1
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 3
call fcn.0040117c
cmp dword [ebp - 0x14], esi
mov ecx, dword [ebp - 0x28]
jae 0x40f0f5
lea ecx, [ebp - 0x28]
push 0x20
push 1
push 3
mov edx, 0xc0000000
call fcn.0041f95a
cmp eax, 0xffffffff
jne 0x40f10e
xor bl, bl
jmp 0x40f15f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], esi
mov ebx, dword [ebp - 0x28]
jae 0x40f120
lea ebx, [ebp - 0x28]
mov eax, dword [ebp + 0x14]
cmp dword [eax + 0x18], esi
jb 0x40f12d
mov edx, dword [eax + 4]
jmp 0x40f130
lea edx, [eax + 4]
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x18], esi
jb 0x40f13d
mov ecx, dword [eax + 4]
jmp 0x40f140
lea ecx, [eax + 4]
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], esi
jb 0x40f14d
mov eax, dword [eax + 4]
jmp 0x40f150
add eax, 4
push ebx
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
test eax, eax
setne bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040117c
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
mov al, bl
pop ebx
call fcn.004366f8
leave
ret
Function at 0x40f183
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x45f1d9
call fcn.004367f8
sub esp, 0x47c
mov eax, dword [0x48ed30]
push ebx
push esi
mov dword [ebp - 0x10], eax
push edi
lea eax, [ebp - 0x488]
xor edi, edi
mov esi, 0x400
push eax
mov dword [ebp - 0x450], edi
mov dword [ebp - 0x44c], esi
call fcn.0040ef86
mov dword [esp], 0x471238
push eax
lea eax, [ebp - 0x46c]
push eax
mov dword [ebp - 4], edi
call fcn.0040519a
push dword [ebp + 0xc]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004051e8
add esp, 0x18
push edi
push 1
lea ecx, [ebp - 0x46c]
call fcn.0040117c
push edi
push 1
lea ecx, [ebp - 0x488]
mov byte [ebp - 4], 3
call fcn.0040117c
mov eax, dword [ebp - 0x28]
push 0x10
pop edi
cmp dword [ebp - 0x14], edi
jae 0x40f216
lea eax, [ebp - 0x28]
mov dword [ebp - 0x450], eax
mov eax, dword [ebp + 0x18]
cmp dword [eax + 0x18], edi
jb 0x40f22b
add eax, 4
mov edx, dword [eax]
jmp 0x40f230
add eax, 4
mov edx, eax
mov eax, dword [ebp + 0x14]
cmp dword [eax + 0x18], edi
jb 0x40f23f
add eax, 4
mov ecx, dword [eax]
jmp 0x40f244
add eax, 4
mov ecx, eax
mov ebx, dword [ebp + 0x10]
cmp dword [ebx + 0x18], edi
jb 0x40f251
mov eax, dword [ebx + 4]
jmp 0x40f254
lea eax, [ebx + 4]
push dword [ebp - 0x450]
lea edi, [ebp - 0x448]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push edx
push ecx
push eax
call edi
lea ecx, [eax + 1]
cmp ecx, esi
jne 0x40f34a
push 0
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x30], 0xf
call fcn.00401160
mov byte [ebp - 4], 5
jmp 0x40f292
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x44c]
add eax, eax
push eax
mov dword [ebp - 0x44c], eax
call fcn.0045356b
mov esi, eax
mov byte [esi], 0
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
pop ecx
jae 0x40f2b8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x450], eax
mov eax, dword [ebp + 0x18]
cmp dword [eax + 0x18], 0x10
jb 0x40f2ce
add eax, 4
mov edx, dword [eax]
jmp 0x40f2d3
add eax, 4
mov edx, eax
mov eax, dword [ebp + 0x14]
cmp dword [eax + 0x18], 0x10
jb 0x40f2e3
add eax, 4
mov ecx, dword [eax]
jmp 0x40f2e8
add eax, 4
mov ecx, eax
cmp dword [ebx + 0x18], 0x10
lea eax, [ebx + 4]
jb 0x40f2f3
mov eax, dword [eax]
push dword [ebp - 0x450]
push dword [ebp - 0x44c]
push esi
push edx
push ecx
push eax
call edi
push esi
lea ecx, [ebp - 0x48]
mov ebx, eax
call fcn.00401575
push esi
call fcn.00453566
cmp dword [ebp - 0x44c], 0x989680
pop ecx
jg 0x40f330
inc ebx
cmp ebx, dword [ebp - 0x44c]
je 0x40f28f
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x48]
push eax
call fcn.00404ec1
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.0040117c
jmp 0x40f364
test eax, eax
mov ecx, dword [ebp + 8]
jbe 0x40f35a
lea eax, [ebp - 0x448]
push eax
jmp 0x40f35f
push 0x470898
call fcn.004015b0
push 0
lea ecx, [ebp - 0x2c]
push 1
call fcn.0040117c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.004366f8
leave
ret
Function at 0x411c6b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [ecx + 4], 0
jne 0x411c92
push 0x48d368
lea ecx, [ebp - 0xc]
call fcn.00437aea
push 0x484938
lea eax, [ebp - 0xc]
push eax
call fcn.00436f2d
push esi
xor esi, esi
cmp dword [ecx + 0x3cc], esi
jle 0x411cb4
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dl, byte [edi]
xor byte [eax], dl
inc edi
inc eax
inc esi
cmp esi, dword [ecx + 0x3cc]
jl 0x411ca4
pop edi
pop esi
leave
ret 8
Function at 0x4136b7
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x45fc62
call fcn.004367f8
mov eax, 0x2960
call fcn.004374f0
mov al, byte [ebp + 8]
push ebx
xor ebx, ebx
cmp al, bl
mov byte [ebp - 0xd], bl
jne 0x4136dd
call fcn.00413520
movsx eax, al
push eax
lea eax, [ebp - 0x25c]
push str.._c:
push eax
call fcn.004378fb
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x4138f3
push esi
push 0xc
lea eax, [ebp - 0x24]
push ebx
push eax
mov dword [ebp - 0x14], ebx
call fcn.00436f70
mov esi, 0x2710
push esi
lea eax, [ebp - 0x296c]
push ebx
push eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call fcn.00436f70
add esp, 0x18
push ebx
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x296c]
push eax
push 0xc
lea eax, [ebp - 0x24]
push eax
push 0x2d1400
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4138e9
cmp dword [ebp - 0x2954], esi
jae 0x4138e9
cmp dword [ebp - 0x295c], esi
jae 0x4138e9
mov eax, esi
sub eax, dword [ebp - 0x2954]
push 0x64
pop ecx
cmp eax, ecx
jle 0x413794
mov eax, ecx
sub esi, dword [ebp - 0x295c]
dec eax
cmp esi, ecx
mov dword [ebp - 0x18], eax
jle 0x4137a4
mov esi, ecx
push edi
xor edi, edi
inc edi
dec esi
cmp eax, edi
jl 0x4138e8
cmp esi, edi
jl 0x4138e8
push ecx
lea eax, [ebp - 0xf8]
push ebx
push eax
call fcn.00436f70
push 0x64
lea eax, [ebp - 0x15c]
push ebx
push eax
call fcn.00436f70
mov eax, dword [ebp - 0x2954]
push dword [ebp - 0x18]
lea eax, [ebp + eax - 0x296c]
push eax
lea eax, [ebp - 0xf8]
push eax
call fcn.004133d6
add esp, 0x24
test eax, eax
je 0x4138e8
mov eax, dword [ebp - 0x295c]
lea eax, [ebp + eax - 0x296c]
push esi
push eax
lea eax, [ebp - 0x15c]
push eax
call fcn.00439590
movsx eax, byte [ebp - 0xf8]
push eax
call fcn.00438762
add esp, 0x10
test eax, eax
jne 0x413843
movsx eax, byte [ebp - 0xe5]
push eax
call fcn.00438762
test eax, eax
pop ecx
je 0x4138e8
lea eax, [ebp - 0xf8]
push eax
lea ecx, [ebp - 0x40]
call fcn.004015b0
push eax
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 4], ebx
call fcn.00413625
pop ecx
pop ecx
mov esi, dword [ebp + 0xc]
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0040144d
push ebx
push edi
lea ecx, [ebp - 0x78]
call fcn.0040117c
or dword [ebp - 4], 0xffffffff
push ebx
push edi
lea ecx, [ebp - 0x40]
call fcn.0040117c
lea eax, [ebp - 0x15c]
push eax
lea ecx, [ebp - 0x94]
call fcn.004015b0
push eax
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 4], 2
call fcn.00413625
pop ecx
pop ecx
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
push ebx
push eax
mov byte [ebp - 4], 3
call fcn.0040144d
push ebx
push edi
lea ecx, [ebp - 0x5c]
call fcn.0040117c
push ebx
push edi
lea ecx, [ebp - 0x94]
call fcn.0040117c
cmp dword [esi + 0x14], ebx
jne 0x4138e4
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x14], ebx
je 0x4138e8
mov byte [ebp - 0xd], 1
pop edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x413903
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2904
call fcn.004374f0
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x2904]
push eax
mov dword [ebp - 4], 0x2800
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
je 0x413941
mov ecx, dword [ebp + 8]
push 0x470898
call fcn.004015b0
jmp 0x4139f6
lea eax, [ebp - 0x2904]
xor ecx, ecx
push esi
movzx edx, byte [eax + 0x196]
movzx esi, byte [eax + 0x197]
shl edx, 8
add edx, esi
movzx esi, byte [eax + 0x198]
shl edx, 8
add edx, esi
movzx esi, byte [eax + 0x199]
shl edx, 8
add edx, esi
je 0x4139d8
cmp dword [ebp + 0xc], 0
jl 0x413982
cmp dword [ebp + 0xc], ecx
jne 0x4139dd
movzx ecx, byte [eax + 0x199]
push ecx
movzx ecx, byte [eax + 0x198]
push ecx
movzx ecx, byte [eax + 0x197]
push ecx
movzx ecx, byte [eax + 0x196]
push ecx
movzx ecx, byte [eax + 0x195]
movzx eax, byte [eax + 0x194]
push ecx
push eax
push str._02X__02X__02X__02X__02X__02X
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.0043a0c2
add esp, 0x24
lea eax, [ebp - 0x104]
mov byte [ebp - 5], 0
push eax
jmp 0x4139ed
cmp dword [ebp + 0xc], ecx
je 0x4139e8
mov eax, dword [eax]
inc ecx
test eax, eax
jne 0x41394a
push 0x470898
mov ecx, dword [ebp + 8]
call fcn.004015b0
pop esi
mov eax, dword [ebp + 8]
leave
ret

Function at 0x4139fb
Capabilities:
Get disk information

Disassembly:
mov eax, 0x45fc74
call fcn.004367f8
sub esp, 0x120
push ebx
xor ebx, ebx
cmp byte [ebp + 8], bl
push edi
mov edi, dword [ebp + 0xc]
mov dword [edi], ebx
jne 0x413a21
call fcn.00413520
mov byte [ebp + 8], al
push esi
push ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x10], 0xf
call fcn.00401160
push dword [ebp + 8]
lea ecx, [ebp - 0x28]
push 1
mov dword [ebp - 4], ebx
call fcn.00404913
push 0x4767ec
lea ecx, [ebp - 0x28]
call fcn.004048f6
mov esi, 0x104
push esi
lea eax, [ebp - 0x12c]
push ebx
push eax
call fcn.00436f70
mov eax, dword [ebp - 0x24]
add esp, 0xc
cmp dword [ebp - 0x10], 0x10
jae 0x413a71
lea eax, [ebp - 0x24]
push ebx
push ebx
push ebx
push ebx
push edi
push esi
lea ecx, [ebp - 0x12c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
pop esi
je 0x413a99
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x12c]
push eax
call fcn.00401575
push ebx
lea ecx, [ebp - 0x28]
push 1
call fcn.0040117c
mov ecx, dword [ebp - 0xc]
pop edi
mov al, 1
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x413e6d
Capabilities:
Check os version
Connect to wmi namespace via wbemlocator
Reference wmi statements

Disassembly:
mov eax, 0x45fd35
call fcn.004367f8
sub esp, 0xf0
push ebx
lea eax, [ebp - 0xfc]
push eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0xfc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor ebx, ebx
cmp dword [ebp - 0xf8], 5
ja 0x413eb3
jne 0x413eae
cmp dword [ebp - 0xf4], 1
jae 0x413eb3
mov byte [ebp - 0xd], bl
jmp 0x413eb7
mov byte [ebp - 0xd], 1
push ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jl 0x414050
push ebx
push ebx
push ebx
push 3
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
cmp eax, ebx
jl 0x41404a
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x18]
push eax
push 0x47f4b4
push 1
push ebx
push 0x47f584
mov dword [ebp - 4], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x414039
mov dword [ebp - 0x14], ebx
push str.rootcimv2
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.0040b104
mov eax, dword [eax]
cmp eax, ebx
mov byte [ebp - 4], 2
je 0x413f27
mov edx, dword [eax]
jmp 0x413f29
xor edx, edx
push edi
mov ecx, dword [ebp - 0x18]
mov edi, dword [ecx]
lea eax, [ebp - 0x14]
push eax
mov al, byte [ebp - 0xd]
neg al
push ebx
push ebx
sbb eax, eax
and eax, 0x80
push eax
push ebx
push ebx
push ebx
push edx
push ecx
call dword [edi + 0xc]
mov ecx, dword [ebp - 0x20]
cmp ecx, ebx
mov edi, eax
mov byte [ebp - 4], 1
je 0x413f5c
call fcn.00409f47
cmp edi, ebx
pop edi
jl 0x414029
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push dword [ebp - 0x14]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov eax, str.SerialNumber
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x24], eax
push 3
lea eax, [ebp - 0x30]
push eax
push str.SELECT__FROM_Win32_BIOS
push dword [ebp - 0x14]
lea eax, [ebp - 0x68]
push eax
mov dword [ebp - 0x2c], str.Caption
mov dword [ebp - 0x28], str.Manufacturer
mov dword [ebp - 0x20], str.Model
call fcn.00413b9c
add esp, 0x14
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x68]
push eax
push 3
mov byte [ebp - 4], 3
call fcn.0041359b
mov ecx, dword [ebp - 0x1c]
push ebx
lea eax, [ebp - 0x4c]
push eax
call fcn.00413d39
cmp dword [eax + 0x14], ebx
push ebx
push 1
lea ecx, [ebp - 0x4c]
sete byte [ebp - 0xd]
call fcn.0040117c
cmp byte [ebp - 0xd], bl
je 0x41401e
push 2
lea eax, [ebp - 0x24]
push eax
push str.SELECT__FROM_Win32_PhysicalMedia
push dword [ebp - 0x14]
lea eax, [ebp - 0x4c]
push eax
call fcn.00413b9c
add esp, 0x14
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x4c]
push eax
push ebx
mov byte [ebp - 4], 4
call fcn.0041359b
push ebx
push 1
lea ecx, [ebp - 0x4c]
call fcn.0040117c
push ebx
push 1
lea ecx, [ebp - 0x68]
call fcn.0040117c
mov eax, dword [ebp - 0x14]
cmp eax, ebx
mov byte [ebp - 4], bl
je 0x414039
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x41404a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 0xc]
xor al, al
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x41527d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
add eax, ecx
push esi
mov esi, dword [eax + 0x78]
add esi, ecx
cmp word [eax + 0x18], 0x10b
je 0x41529c
xor eax, eax
jmp 0x4152be
mov eax, dword [esi + 0x24]
and dword [ebp - 4], 0
push ebx
mov ebx, dword [esi + 0x1c]
push edi
mov edi, dword [esi + 0x20]
add eax, ecx
add ebx, ecx
add edi, ecx
cmp dword [esi + 0x18], 0
mov dword [ebp - 8], eax
ja 0x4152c4
xor eax, eax
pop edi
pop ebx
pop esi
leave
ret
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov eax, dword [edi + eax*4]
push dword [ebp + 0xc]
add eax, ecx
push eax
call fcn.00437530
test eax, eax
pop ecx
pop ecx
je 0x4152e8
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x18]
jb 0x4152c1
jmp 0x4152ba
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
movzx eax, word [eax + ecx*2]
mov eax, dword [ebx + eax*4]
jmp 0x4152bc

Function at 0x4152f7
Capabilities:
Check for software breakpoints
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x3c]
add eax, edx
mov ecx, dword [eax + 0x78]
add ecx, edx
cmp word [eax + 0x18], 0x10b
je 0x415315
xor eax, eax
leave
ret
mov eax, dword [ecx + 0x20]
push ebx
push esi
mov esi, dword [ecx + 0x1c]
push edi
mov edi, dword [ecx + 0x24]
xor ebx, ebx
add eax, edx
add esi, edx
add edi, edx
cmp dword [ecx + 0x18], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
jbe 0x4153a9
jmp 0x415339
mov eax, dword [ebp - 8]
mov edx, dword [eax + ebx*4]
movzx eax, word [edi + ebx*2]
mov eax, dword [esi + eax*4]
add edx, dword [ebp + 8]
add eax, dword [ebp + 8]
cmp dword [0x491e08], 0
jne 0x415363
cmp byte [eax], 0xb8
jne 0x41539d
cmp byte [eax + 9], 0xcd
jne 0x41539d
cmp byte [eax + 0xa], 0x2e
jmp 0x41538d
cmp dword [0x491e08], 1
jne 0x41539d
cmp byte [eax], 0xb8
jne 0x41539d
cmp byte [eax + 5], 0xba
jne 0x41539d
cmp byte [eax + 6], 0
jne 0x41539d
cmp byte [eax + 7], 3
jne 0x41539d
cmp byte [eax + 8], 0xfe
jne 0x41539d
cmp byte [eax + 9], 0x7f
jne 0x41539d
mov eax, dword [eax + 1]
cmp eax, dword [ebp + 0x10]
jae 0x41539d
mov ebx, dword [ebp + 0xc]
mov dword [ebx + eax*4], edx
mov ebx, dword [ebp - 4]
inc ebx
cmp ebx, dword [ecx + 0x18]
mov dword [ebp - 4], ebx
jb 0x415336
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret
Function at 0x4153b1
Capabilities:
Link many functions at runtime

Disassembly:
push esi
push edi
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.RtlAnsiStringToUnicodeString
push edi
call esi
push str.RtlInitAnsiString
push edi
mov dword [0x491e04], eax
call esi
push str.RtlInitUnicodeString
push edi
mov dword [0x491e00], eax
call esi
push str.RtlFreeUnicodeString
push edi
mov dword [0x491dfc], eax
call esi
push str.NtOpenSection
push edi
mov dword [0x491df8], eax
call esi
push str.NtMapViewOfSection
push edi
mov dword [0x491df4], eax
call esi
push str.NtUnmapViewOfSection
push edi
mov dword [0x491df0], eax
call esi
push str.ZwQuerySystemInformation
push edi
mov dword [0x491dec], eax
call esi
xor ecx, ecx
cmp dword [0x491e04], ecx
pop edi
mov dword [0x491de8], eax
pop esi
je 0x415472
cmp dword [0x491e00], ecx
je 0x415472
cmp dword [0x491dfc], ecx
je 0x415472
cmp dword [0x491df8], ecx
je 0x415472
cmp dword [0x491df4], ecx
je 0x415472
cmp dword [0x491df0], ecx
je 0x415472
cmp dword [0x491dec], ecx
je 0x415472
cmp eax, ecx
je 0x415472
xor eax, eax
inc eax
ret
xor eax, eax
ret

Function at 0x4158df
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x45febe
call fcn.004367f8
push ecx
xor eax, eax
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [ebp - 4], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
lea ecx, [esi + 0x30]
call fcn.004011e9
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.004158a3
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x4161e2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 4]
push eax
push 1
xor ebx, ebx
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x416244
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push ebx
push str.ProgramFilesDir
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x416242
cmp esi, ebx
je 0x41623b
mov byte [edi + esi - 1], bl
mov dword [ebp - 8], 1
pop edi
pop esi
cmp dword [ebp - 4], ebx
pop ebx
je 0x416253
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
leave
ret

Function at 0x4162b7
Capabilities:
Get common file path
Get program files directory

Disassembly:
mov eax, 0x45ff67
call fcn.004367f8
sub esp, 0x124
push esi
xor esi, esi
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x10], 0xf
call fcn.00401160
push 1
push 0x26
lea eax, [ebp - 0x130]
push eax
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
lea eax, [ebp - 0x130]
je 0x416307
push eax
lea ecx, [ebp - 0x28]
call fcn.00401575
jmp 0x416343
push edi
mov edi, 0x104
push edi
push eax
call fcn.004161e2
pop ecx
test eax, eax
pop ecx
lea eax, [ebp - 0x130]
jne 0x416332
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x416335
lea eax, [ebp - 0x130]
push eax
jmp 0x41633a
push 0x476c2c
lea ecx, [ebp - 0x28]
call fcn.00401575
pop edi
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
call fcn.00404ec1
push esi
push 1
lea ecx, [ebp - 0x28]
call fcn.0040117c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x41656a
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ecx]
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jbe 0x416593
push ebx
push edi
movzx edi, byte [edx]
movzx ebx, al
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x4918f0]
inc edx
dec esi
jne 0x41657b
pop edi
pop ebx
mov dword [ecx], eax
pop esi
ret 8
Function at 0x4166f3
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x46003a
call fcn.004367f8
sub esp, 0x164
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], esi
push esi
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x20], 0xf
call fcn.00401160
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 4], esi
jb 0x41672f
mov eax, dword [eax + 4]
jmp 0x416732
add eax, 4
lea ecx, [ebp - 0x14]
push ecx
push 0x20019
push esi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [ebp + 0x10]
xor ebx, ebx
inc ebx
cmp dword [eax + 0x18], 0x10
mov byte [ebp - 4], bl
mov dword [ebp + 0xc], 0xff
mov dword [ebp - 0x18], ebx
jb 0x416766
mov eax, dword [eax + 4]
jmp 0x416769
add eax, 4
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x170]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push esi
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, esi
je 0x41679b
mov dword [ebp - 0x1c], str.Unable_to_get_the_value_from_the_registry
push 0x4855cc
lea eax, [ebp - 0x1c]
jmp 0x41681d
lea eax, [ebp - 0x170]
push eax
lea ecx, [ebp - 0x38]
call fcn.00401575
push dword [ebp - 0x14]
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x38]
push eax
call fcn.00404ec1
push esi
push ebx
lea ecx, [ebp - 0x38]
call fcn.0040117c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc
push eax
call fcn.00436f2d
int3

Function at 0x416829
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x46004c
call fcn.004367f8
sub esp, 0x128
push edi
xor edi, edi
mov dword [ebp - 0x10], edi
push edi
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x1c], 0xf
call fcn.00401160
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 4], edi
jb 0x416860
mov eax, dword [eax + 4]
jmp 0x416863
add eax, 4
lea ecx, [ebp - 0x14]
push ecx
push 0x20019
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 0x18], 0xff
mov dword [ebp - 0x10], 1
jb 0x416895
mov eax, dword [eax + 4]
jmp 0x416898
add eax, 4
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x134]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push edi
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
lea ecx, [ebp - 0x34]
je 0x4168c0
push 0x470898
jmp 0x4168c7
lea eax, [ebp - 0x134]
push eax
call fcn.00401575
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x34]
push eax
call fcn.00404ec1
push edi
push 1
lea ecx, [ebp - 0x34]
call fcn.0040117c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
mov dword fs:[0], ecx
leave
ret 0xc