joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4637f0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x463802
add esp, 0xfffffff0
call fcn.00403c84
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00423618
mov eax, dword [0x4f2e3c]
mov dword [eax + 4], ebx
mov dword [eax], 0x463b94
mov eax, dword [0x4f2e4c]
mov dword [eax + 4], ebx
mov dword [eax], 0x463ba0
mov eax, ebx
call fcn.00463bac
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x417e84]
call fcn.004038f0
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x417e84]
call fcn.004038f0
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x417e84]
call fcn.004038f0
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x417e84]
call fcn.004038f0
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x417e84]
call fcn.004038f0
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x45f644
push eax
push 0
push 0
mov eax, dword [0x4f2fcc]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x427290]
call fcn.00428ae4
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x427290]
call fcn.00428ae4
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x427290]
call fcn.00428ae4
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00464024
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x463ef4
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x463ef4
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x463ef4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46393f
call fcn.00403cdc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x463cd8
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x463e83
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x463e64
mov dl, 1
mov eax, dword [0x418554]
call fcn.004038f0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.0040478c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x463e53
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004561d0
test al, al
je 0x463e46
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x463e94
lea eax, [ebp - 0x254]
call fcn.00409bb0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x463e46
xor eax, eax
push ebp
push 0x463e3f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x463ecc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x463e28
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004049fc
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x463e28
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004049fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x463e46
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x463d49
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.0041d068
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x463e8a
lea eax, [ebp - 0x260]
call fcn.0040478c
ret

Function at 0x4647fc
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4f75b0]
cmp byte [eax + 0xad], 0
jne 0x46486d
cmp dword [0x4f75c8], 0
jne 0x46482e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4647b8
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4f75c8], eax
cmp dword [0x4f75c4], 0
jne 0x464849
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4f75c4], eax
cmp dword [0x4f75cc], 0
jne 0x46486d
push esp
push 0
push 0
push 0x46475c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4f75cc], eax
pop edx
ret
Function at 0x464a9c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x464ab3
add esp, 0xfffffff0
call fcn.00403c84
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00423618
mov eax, dword [0x4f2fb4]
cmp word [eax + 2], 0
jne 0x464adb
mov eax, dword [0x4f2fb4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00466564
mov eax, dword [0x4f307c]
cmp word [eax + 2], 0
jne 0x464af5
mov eax, dword [0x4f307c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00466770
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x417e84]
call fcn.004038f0
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x417e84]
call fcn.004038f0
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x417e84]
call fcn.004038f0
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x427da0]
call fcn.0042f734
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x464cac
mov eax, dword [0x4f2eb8]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042fb08
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x466e30
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4f2eb8]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040d480
test eax, eax
je 0x464bfc
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409554
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d4b4
test eax, eax
je 0x464c10
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004049fc
mov byte [ebx + 0xd4], 0
push ebx
push 0x4660ac
call fcn.004247a8
mov dword [ebx + 0xc8], eax
mov eax, dword [0x4f2d54]
cmp byte [eax], 0
jne 0x464c61
mov eax, ebx
call fcn.00464df0
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.0046700c
mov eax, ebx
call fcn.00467b6c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x464ca1
call fcn.00403cdc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x465070
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4f75b0]
cmp dword [eax + 0x30], 0
je 0x46511a
cmp dword [ebx + 0x94], 0
jne 0x465114
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x465000
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x465114
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4650da
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x465114
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041a804
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4650e9
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x465e34
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x465e69
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040487c
jmp 0x465e76
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004047e0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4671f0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x46725e
mov eax, esi
call fcn.00450e4c
test al, al
je 0x46725e
mov eax, dword [ebx + 0x84]
call fcn.00450aac
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46725e
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x467252
push 0
mov eax, dword [ebx + 0x84]
call fcn.00450aac
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00448e88
jmp 0x46725e
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0046702c
pop esi
pop ebx
ret
Function at 0x4012d0
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0
push 1
push 0
push 0
lea eax, [esp + 0x14]
push eax
call esi
test eax, eax
jne 0x401310
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
je 0x4012fd
xor al, al
pop esi
pop ecx
ret
push 8
push 1
push 0
push 0
lea ecx, [esp + 0x14]
push ecx
call esi
test eax, eax
je 0x4012f8
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 4]
push ebx
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov edx, dword [esp + 8]
push 0
test eax, eax
push edx
setne bl
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, bl
pop ebx
pop esi
pop ecx
ret

Function at 0x401650
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
or eax, 0xffffffff
test ecx, ecx
je 0x40167c
push esi
jmp 0x401660
movsx esi, byte [edx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x501a80]
dec ecx
inc edx
test ecx, ecx
jne 0x401660
pop esi
not eax
ret

Function at 0x401680
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x54
mov eax, dword [0x4ffeb0]
xor eax, esp
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x5c]
push esi
push edi
mov edi, edx
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea edx, [esp + 8]
lea eax, [esp + 0x18]
call fcn.00403720
mov esi, dword [esp + 0x60]
lea edx, [esp + 0x18]
mov eax, edx
xor ecx, ecx
sub esi, edx
sub edi, eax
lea ebx, [ebx]
lea eax, [esp + ecx + 0x18]
mov dl, byte [esi + eax]
xor dl, byte [eax]
inc ecx
cmp ecx, 0x30
mov byte [edi + eax], dl
jl 0x4016d0
mov ecx, dword [esp + 0x58]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.004a0e91
add esp, 0x54
ret

Function at 0x4017b0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x80
push ebx
push ebp
mov ebp, dword [esp + 0x8c]
push esi
push edi
push ebp
mov ecx, 0x20
mov esi, ebp
lea edi, [esp + 0x14]
push ebp
mov ebx, 0x4e0990
rep movsd dword es:[edi], dword [esi]
call fcn.00401700
mov ecx, dword [ebp + 0x7c]
shr ecx, 7
and ecx, 1
lea edi, [esp + 0x18]
lea ebx, [esp + 0x1c]
add esp, 8
neg ecx
xor edx, edx
sub edi, ebp
lea eax, [ebp + 8]
sub ebx, ebp
lea esp, [esp]
mov esi, dword [eax - 8]
mov ebp, dword [esp + edx*4 + 0x10]
xor ebp, esi
and ebp, ecx
xor ebp, esi
mov esi, dword [eax - 4]
mov dword [eax - 8], ebp
mov ebp, dword [esp + edx*4 + 0x14]
xor ebp, esi
and ebp, ecx
xor ebp, esi
mov esi, dword [eax]
mov dword [eax - 4], ebp
mov ebp, dword [edi + eax]
xor ebp, esi
and ebp, ecx
xor ebp, esi
mov esi, dword [eax + 4]
mov dword [eax], ebp
mov ebp, dword [ebx + eax]
xor ebp, esi
and ebp, ecx
xor ebp, esi
mov dword [eax + 4], ebp
add edx, 4
add eax, 0x10
cmp edx, 0x20
jb 0x401800
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret
Function at 0x402460
Capabilities:
Encrypt data using curve25519

Disassembly:
sub esp, 0x1a4
mov eax, dword [0x4ffeb0]
xor eax, esp
mov dword [esp + 0x1a0], eax
mov eax, dword [esp + 0x1a8]
push 0x20
push eax
lea ecx, [esp + 0x188]
push ecx
call fcn.004a0ea0
mov dl, byte [esp + 0x1ab]
and byte [esp + 0x18c], 0xf8
and dl, 0x3f
or dl, 0x40
add esp, 0xc
mov byte [esp + 0x19f], dl
xor eax, eax
lea esp, [esp]
movzx ecx, byte [eax + edi]
mov dword [esp + eax*4], ecx
inc eax
cmp eax, 0x20
jb 0x4024b0
lea edx, [esp + 0x180]
push edx
lea eax, [esp + 4]
push eax
call fcn.00401c30
lea ecx, [esp + 0x88]
push ecx
mov eax, ecx
call fcn.00402070
lea edx, [esp + 0x8c]
push edx
lea eax, [esp + 0x110]
push eax
lea edx, [esp + 0x14]
call fcn.00401860
lea ecx, [esp + 0x114]
push ecx
call fcn.004017b0
add esp, 0x18
xor eax, eax
lea esp, [esp]
mov dl, byte [esp + eax*4 + 0x100]
mov byte [esi + eax], dl
inc eax
cmp eax, 0x20
jb 0x402510
mov ecx, dword [esp + 0x1a0]
xor ecx, esp
xor eax, eax
call fcn.004a0e91
add esp, 0x1a4
ret

Function at 0x402540
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
sub esp, 0x44
push ebx
push esi
push edi
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0xc], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x10], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x18], edx
mov edx, dword [eax + 0x14]
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x20], edx
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x24], ecx
mov ecx, dword [eax + 0x20]
mov dword [esp + 0x28], edx
mov edx, dword [eax + 0x24]
mov dword [esp + 0x2c], ecx
mov ecx, dword [eax + 0x28]
mov dword [esp + 0x30], edx
mov edx, dword [eax + 0x2c]
mov dword [esp + 0x34], ecx
mov ecx, dword [eax + 0x30]
mov dword [esp + 0x38], edx
mov edx, dword [eax + 0x34]
mov dword [esp + 0x3c], ecx
mov ecx, dword [eax + 0x38]
mov dword [esp + 0x40], edx
mov edx, dword [eax + 0x3c]
mov dword [esp + 0x44], ecx
mov ecx, dword [eax + 0x40]
mov dword [esp + 0x48], edx
xor edx, edx
mov esi, 0x4e0938
mov dword [esp + 0x4c], ecx
mov ecx, eax
sub esi, eax
lea edi, [edx + 0x11]
lea ebx, [ebx]
mov ebx, dword [esi + ecx]
add ebx, dword [ecx]
add ecx, 4
add edx, ebx
movzx ebx, dl
mov dword [ecx - 4], ebx
shr edx, 8
sub edi, 1
jne 0x4025d0
mov edx, dword [eax + 0x40]
shr edx, 7
lea esi, [esp + 0xc]
neg edx
sub esi, eax
mov edi, 0x11
jmp 0x402600
mov ecx, dword [eax]
mov ebx, dword [esi + eax]
xor ebx, ecx
and ebx, edx
xor ebx, ecx
mov dword [eax], ebx
add eax, 4
sub edi, 1
jne 0x402600
pop edi
pop esi
pop ebx
add esp, 0x44
ret
Function at 0x402fb0
Capabilities:
Encode data using xor
Encrypt data using aes

Disassembly:
push esi
mov esi, ecx
test esi, esi
je 0x40314e
test eax, eax
je 0x40314e
mov dword [eax + 0xf0], 0xa
mov ecx, dword [esi]
push edi
mov edx, ecx
ror edx, 8
and edx, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or edx, ecx
mov dword [eax], edx
mov edx, dword [esi + 4]
mov edi, edx
ror edi, 8
and edi, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
or edi, edx
mov dword [eax + 4], edi
mov edx, dword [esi + 8]
mov edi, edx
ror edi, 8
and edi, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
or edi, edx
mov dword [eax + 8], edi
mov edx, dword [esi + 0xc]
lea ecx, [eax + 4]
mov esi, edx
ror esi, 8
and esi, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
or esi, edx
mov dword [eax + 0xc], esi
mov edx, esi
shr edx, 0x10
and edx, 0xff
mov edx, dword [edx*4 + 0x4df010]
xor edx, 0x1000000
mov edi, esi
shr edi, 8
and edi, 0xff
mov edi, dword [edi*4 + 0x4df410]
and edi, 0xff0000
and edx, 0xff000000
xor edx, edi
mov edi, esi
shr edi, 0x18
movzx edi, byte [edi*4 + 0x4dec10]
xor edx, edi
mov edi, esi
and edi, 0xff
mov edi, dword [edi*4 + 0x4de810]
and edi, 0xff00
xor edx, edi
xor edx, dword [eax]
mov edi, dword [ecx]
xor edi, edx
mov dword [eax + 0x10], edx
mov edx, dword [eax + 8]
xor edx, edi
mov dword [eax + 0x18], edx
xor edx, esi
mov dword [eax + 0x14], edi
mov dword [eax + 0x1c], edx
mov esi, 0x4e0914
jmp 0x4030c0
mov edx, dword [ecx + 0x18]
add ecx, 0x10
mov eax, edx
shr eax, 8
mov edi, edx
and eax, 0xff
mov eax, dword [eax*4 + 0x4df410]
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x4df010]
and eax, 0xff0000
and edi, 0xff000000
xor eax, edi
mov edi, edx
and edx, 0xff
mov edx, dword [edx*4 + 0x4de810]
shr edi, 0x18
movzx edi, byte [edi*4 + 0x4dec10]
xor eax, edi
and edx, 0xff00
xor eax, edx
xor eax, dword [ecx - 4]
add esi, 4
xor eax, dword [esi - 4]
mov dword [ecx + 0xc], eax
mov edx, dword [ecx]
xor edx, eax
mov dword [ecx + 0x10], edx
mov eax, dword [ecx + 4]
xor eax, edx
mov dword [ecx + 0x14], eax
mov edx, dword [ecx + 8]
xor edx, eax
mov dword [ecx + 0x18], edx
cmp esi, 0x4e0938
jne 0x4030c0
pop edi
xor eax, eax
pop esi
ret
or eax, 0xffffffff
pop esi
ret
Function at 0x404900
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x404919
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404954
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x404950
lea ebx, [ebx]
cmp esi, eax
jae 0x404954
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x404940
cmp esi, eax
jb 0x40495a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x4063b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x4ffeb0]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
mov esi, dword [esp + 0x21c]
push 0x208
lea eax, [esp + 0x10]
push 0
push eax
mov dword [esp + 0x10], 0
call fcn.004a0bd0
add esp, 0xc
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0xc]
push eax
push 0x4e0bc8
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsQHSafeMain.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], 0x208
mov dword [esp + 0x1c], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x406454
mov eax, dword [esp + 8]
shr eax, 1
dec eax
cmp eax, 0x104
jae 0x406454
cmp word [esp + eax*2 + 0xc], 0x5c
je 0x40644e
cmp eax, 0x103
jae 0x406454
mov ecx, 0x5c
xor edx, edx
mov word [esp + eax*2 + 0xc], cx
mov word [esp + eax*2 + 0xe], dx
lea eax, [esp + 0xc]
jmp 0x406459
mov eax, 0x4e0c80
push eax
mov ecx, esi
call fcn.00404030
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.004a0e91
add esp, 0x214
ret

Function at 0x407f80
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4ffeb0]
xor eax, esp
mov dword [esp + 0x208], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call fcn.004a0bd0
add esp, 0xc
push 0x104
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x407fd9
xor eax, eax
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004a0e91
add esp, 0x20c
ret
push str.ntdll.dll
lea eax, [esp + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x407fc2
push str.RtlGetVersion
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004a0e91
add esp, 0x20c
ret
Function at 0x408020
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4ffeb0]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
push 0
push eax
call fcn.004a0bd0
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 4], 5
jne 0x40806c
mov eax, 1
cmp dword [esp + 8], eax
je 0x40806e
xor eax, eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004a0e91
add esp, 0x118
ret

Function at 0x408090
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4ffeb0]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
push 0
push eax
call fcn.004a0bd0
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 4], 6
mov ecx, dword [esp + 0x114]
sbb eax, eax
xor ecx, esp
inc eax
call fcn.004a0e91
add esp, 0x118
ret

Function at 0x4080f0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4ffeb0]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
push 0
push eax
call fcn.004a0bd0
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x408157
cmp dword [esp + 4], 6
jne 0x408140
mov eax, 1
cmp dword [esp + 8], eax
je 0x408159
xor eax, eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004a0e91
add esp, 0x118
ret
xor al, al
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004a0e91
add esp, 0x118
ret

Function at 0x408170
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x4ffeb0]
xor eax, esp
mov dword [esp + 0x11c], eax
push 0x118
lea eax, [esp + 8]
push 0
push eax
call fcn.004a0bd0
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4081c5
mov al, 1
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.004a0e91
add esp, 0x120
ret
cmp dword [esp + 4], 6
jb 0x4081d7
mov eax, 1
cmp dword [esp + 8], eax
jae 0x4081d9
xor al, al
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.004a0e91
add esp, 0x120
ret