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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x50a826
add esp, 0xfffffff0
call fcn.00404974
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0049b110
mov eax, dword [0x693830]
mov dword [eax + 4], ebx
mov dword [eax], 0x50ac28
mov eax, dword [0x69384c]
mov dword [eax + 4], ebx
mov dword [eax], 0x50ac34
mov eax, ebx
call fcn.0050ac40
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x48aefc]
call fcn.00404460
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x48aefc]
call fcn.00404460
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x48aefc]
call fcn.00404460
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x48aefc]
call fcn.00404460
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x48aefc]
call fcn.00404460
mov dword [ebx + 0x74], 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, 0x505c48
push eax
push 0
push 0
mov eax, dword [0x693d38]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4a2e24]
call fcn.004a4cd0
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x4a2e24]
call fcn.004a4cd0
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x4a2e24]
call fcn.004a4cd0
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x4a2e24]
call fcn.004a4cd0
mov dword [ebx + 0x84], eax
mov eax, ebx
call fcn.0050b1d4
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x50b05c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x50b05c
mov eax, dword [ebx + 0x78]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x50b05c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x50b05c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x50a979
call fcn.004049cc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x50adfc
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x50afa9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x50af8a
mov dl, 1
mov eax, dword [0x48b8c0]
call fcn.00491c08
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
xor edx, edx
call fcn.00406ba8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x50af79
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.004fa874
test al, al
je 0x50af6c
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x50afb8
lea eax, [ebp - 0x394]
call fcn.00472e70
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x50af6c
xor eax, eax
push ebp
push 0x50af65
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x50b028
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x50af4e
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00406db8
mov edx, dword [ebp - 0x3a0]
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 0x50af4e
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00406db8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50af6c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x50ae6f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x29], 0
mov dl, 1
call fcn.004919f4
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 0x50afb0
lea eax, [ebp - 0x3a0]
call fcn.00406b98
ret

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

Disassembly:
push ecx
mov eax, dword [0x69b430]
cmp byte [eax + 0xa9], 0
jne 0x50ba5a
cmp dword [0x69b448], 0
jne 0x50ba1a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x68916c]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x69b448], eax
cmp dword [0x69b444], 0
jne 0x50ba35
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x69b444], eax
cmp dword [0x69b44c], 0
jne 0x50ba5a
push esp
push 0
push 0
mov eax, dword [0x689168]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x69b44c], eax
pop edx
ret
Function at 0x50bc9c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x50bcb3
add esp, 0xfffffff0
call fcn.00404974
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0049b110
mov eax, dword [0x693520]
cmp byte [eax], 0
jne 0x50bce0
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x17c], al
mov eax, dword [0x693ce0]
cmp word [eax + 2], 0
jne 0x50bcfa
mov eax, dword [0x693ce0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0050dc00
mov eax, dword [0x693fb0]
cmp word [eax + 2], 0
jne 0x50bd14
mov eax, dword [0x693fb0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0050de10
mov byte [ebx + 0x31], 0
mov dl, 1
mov eax, dword [0x4a2e24]
call fcn.004a4cd0
mov esi, eax
mov dword [ebx + 0x38], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x50e2a4
mov dl, 1
mov eax, dword [0x48aefc]
call fcn.00404460
mov dword [ebx + 0x8c], eax
mov dl, 1
mov eax, dword [0x48aefc]
call fcn.00404460
mov dword [ebx + 0xac], eax
xor eax, eax
mov dword [ebx + 0x5c], eax
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x58], 0xff000018
mov dword [ebx + 0x74], 0x1f4
mov byte [ebx + 0x78], 1
xor eax, eax
mov dword [ebx + 0x7c], eax
mov dword [ebx + 0x70], 0x9c4
mov byte [ebx + 0x84], 0
mov byte [ebx + 0xa1], 1
mov byte [ebx + 0xb8], 1
mov dl, 1
mov eax, dword [0x4a3a84]
call fcn.004acf00
mov esi, eax
mov dword [ebx + 0x9c], esi
push 0x50bef0
mov eax, dword [0x6939a8]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.004ad304
mov eax, dword [ebx + 0x9c]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x50e554
mov dl, 1
mov eax, dword [0x48aefc]
call fcn.00404460
mov dword [ebx + 0x94], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x6939a8]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.00472804
test eax, eax
je 0x50be22
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.00472494
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.004727ec
test eax, eax
je 0x50be3a
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW_1
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0x88]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.00406db8
push ebx
push 0x50d5fc
call fcn.00502410
mov dword [ebx + 0x178], eax
mov byte [ebx + 0xcc], 0
mov eax, dword [0x693520]
cmp byte [eax], 0
jne 0x50be8b
mov eax, ebx
call fcn.0050c064
mov byte [ebx + 0x55], 1
mov byte [ebx + 0x56], 1
mov byte [ebx + 0x57], 1
mov byte [ebx + 0xa2], 1
mov byte [ebx + 0xcd], 0
mov byte [ebx + 0xd8], 0
xor eax, eax
mov dword [ebx + 0xd0], eax
mov byte [ebx + 0xcf], 0
xor eax, eax
mov dword [ebx + 0xa4], eax
mov eax, ebx
call fcn.0050e77c
mov eax, ebx
call fcn.0050f340
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x50bee8
call fcn.004049cc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50c30c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x50c3ae
cmp dword [ebx + 0x90], 0
jne 0x50c3a8
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x50c284
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x8c]
cmp dword [eax + 8], 0
je 0x50c3a8
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_GetWindowLongW
test al, 8
je 0x50c36e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x8c]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x50c3a8
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x8c]
call fcn.0048dfd0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x50c37d
inc dword [ebx + 0x90]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x50c5cc
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x69b430]
cmp dword [eax + 0x170], 0
je 0x50c731
test bl, bl
jne 0x50c67f
cmp dword [esi + 0x98], 0
jne 0x50c674
mov eax, esi
call fcn.0050f190
push eax
push 0x50c4d8
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x40], 0
je 0x50c645
mov eax, dword [0x69b430]
cmp byte [eax + 0xcf], 0
je 0x50c645
mov eax, dword [esi + 0xd4]
call fcn.0040832c
mov edi, eax
cmp edi, 0
jl 0x50c645
push 0
mov eax, dword [esi + 0xd4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x50c62e
mov eax, dword [esi + 0x94]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x50c674
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x94]
call fcn.0048dfd0
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x50c654
inc dword [esi + 0x98]
jmp 0x50c731
cmp dword [esi + 0x98], 0
jle 0x50c731
dec dword [esi + 0x98]
cmp dword [esi + 0x98], 0
jne 0x50c731
cmp dword [esi + 0x40], 0
je 0x50c6dc
mov eax, dword [0x69b430]
cmp byte [eax + 0xcf], 0
je 0x50c6dc
mov eax, dword [esi + 0xd4]
call fcn.0040832c
mov edi, eax
cmp edi, 0
jl 0x50c6dc
push 5
mov eax, dword [esi + 0xd4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x50c6c5
mov eax, dword [esi + 0x94]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x50c70b
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x94]
call fcn.0048dfd0
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x50c6eb
mov eax, dword [esi + 0x94]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd4]
mov ecx, 1
mov edx, dword [0x501e1c]
call fcn.004084ec
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x50d2ec
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa8], 0
je 0x50d357
cmp byte [ebx + 0xcf], 0
jne 0x50d357
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00406ce4
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x50d344
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x50d364
mov eax, esi
mov edx, dword [ebx + 0x88]
call fcn.00406ba8
jmp 0x50d364
mov eax, esi
mov edx, dword [ebx + 0x88]
call fcn.00406ba8
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x50e950
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x80]
test esi, esi
je 0x50e9be
mov eax, esi
call fcn.004f5130
test al, al
je 0x50e9be
mov eax, dword [ebx + 0x80]
call fcn.004f4d84
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x50e9be
mov eax, dword [ebx + 0x80]
mov edx, dword [eax]
call dword [edx + 0xec]
test al, al
je 0x50e9b2
push 0
mov eax, dword [ebx + 0x80]
call fcn.004f4d84
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x80]
call fcn.004ec278
jmp 0x50e9be
mov cl, 1
mov edx, dword [ebx + 0x70]
mov eax, ebx
call fcn.0050e79c
pop esi
pop ebx
ret
Function at 0x50fd4c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406b90
xor eax, eax
push ebp
push 0x50fe9b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
call fcn.00406c34
mov ebx, eax
push ebx
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x50fe78
mov eax, dword [ebp - 0xc]
call fcn.00403230
mov dword [ebp - 0x18], eax
xor edx, edx
push ebp
push 0x50fe71
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push ebx
call sub.version.dll_GetFileVersionInfoW
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x50feac
mov eax, dword [ebp - 0x18]
push eax
call sub.version.dll_VerQueryValueW
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax + 8]
shr ebx, 0x10
movzx esi, word [eax + 8]
and si, 0xffff
mov edi, dword [eax + 0xc]
shr edi, 0x10
movzx eax, word [eax + 0xc]
and ax, 0xffff
mov word [ebp - 0x1e], ax
lea edx, [ebp - 0x24]
movzx eax, bx
call fcn.004712b0
push dword [ebp - 0x24]
push 0x50febc
lea edx, [ebp - 0x28]
movzx eax, si
call fcn.004712b0
push dword [ebp - 0x28]
push 0x50febc
lea edx, [ebp - 0x2c]
movzx eax, di
call fcn.004712b0
push dword [ebp - 0x2c]
push 0x50febc
lea edx, [ebp - 0x30]
movzx eax, word [ebp - 0x1e]
call fcn.004712b0
push dword [ebp - 0x30]
mov eax, dword [ebp - 8]
mov edx, 7
call fcn.0040705c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50fe78
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
call fcn.0040324c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50fea2
lea eax, [ebp - 0x30]
mov edx, 4
call fcn.00406ba0
lea eax, [ebp - 4]
call fcn.00406b98
ret
Function at 0x51176c
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x14]
mov edx, dword [0x4348fc]
call fcn.00407644
xor eax, eax
push ebp
push 0x51192d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x6891d4], 0
jne 0x5117c0
mov ecx, dword [0x693580]
mov dl, 1
mov eax, dword [0x46ec48]
call fcn.00478ebc
call fcn.00405328
lea eax, [ebp - 0x2c]
xor ecx, ecx
mov edx, 0x10
call fcn.00403bd8
mov eax, ebx
call fcn.0040688c
mov dword [ebp - 0x28], eax
push esi
mov esi, 0x51193c
lea edi, [ebp - 0x3c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
call fcn.00408de8
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, ebx
test eax, eax
je 0x511807
sub eax, 4
mov eax, dword [eax]
shr eax, 1
test eax, eax
jle 0x5118d3
mov dword [ebp - 0x1c], 0x20
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x5c]
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x5118bf
lea eax, [ebp - 4]
lea edx, [ebp - 0x5c]
mov ecx, 0x10
call fcn.00406db8
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00406e20
mov eax, dword [ebp - 4]
test eax, eax
je 0x511862
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x511862
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00405d0c
mov ebx, eax
test ebx, ebx
je 0x51186d
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [ebp - 8]
test eax, eax
je 0x51188a
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x51188a
lea eax, [ebp - 8]
mov edx, dword [ebp - 8]
call fcn.00405d0c
mov edi, eax
test edi, edi
je 0x511895
sub edi, 4
mov edi, dword [edi]
push edi
mov eax, dword [ebp - 8]
call fcn.00406c34
push eax
push ebx
mov eax, dword [ebp - 4]
call fcn.00406c34
push eax
push 1
push 0x400
call sub.kernel32.dll_CompareStringW_1
sub eax, 2
test eax, eax
sete al
jmp 0x5118c1
xor eax, eax
test al, al
je 0x5118cc
mov ebx, 0x15
jmp 0x5118d8
mov ebx, 0x10
jmp 0x5118d8
mov ebx, 0x15
lea eax, [ebp - 0x14]
push eax
push 1
lea eax, [ebp - 0x2c]
push eax
push ebx
push 0
push esi
call dword [0x6891d4]
call fcn.0051157c
mov eax, dword [ebp - 0xc]
call fcn.0051157c
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
call fcn.00408e00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x511934
lea eax, [ebp - 0x14]
mov edx, dword [0x4348fc]
call fcn.0040771c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406ba0
ret

Function at 0x512bb8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, dword [ebp + 8]
mov eax, ebx
xor edx, edx
call fcn.00406ba8
push 0
push edi
lea eax, [ebp - 0x20a]
push eax
push esi
call sub.shell32.dll_SHGetSpecialFolderPathW
mov eax, ebx
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406db8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x512c00
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffe00
mov ebx, edx
push 0xff
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.00406db8
add esp, 0x200
pop ebx
ret

Function at 0x512c30
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffe00
mov ebx, edx
push esp
push 0xff
call sub.kernel32.dll_GetTempPathW
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.00406db8
add esp, 0x200
pop ebx
ret

Function at 0x512c5c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffe00
mov ebx, edx
push 0xff
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.00406db8
add esp, 0x200
pop ebx
ret

Function at 0x512c8c
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
mov ebx, eax
mov eax, ebx
xor edx, edx
call fcn.00406ba8
mov dword [ebp - 4], 0x104
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20c]
push eax
call sub.advapi32.dll_GetUserNameW
test eax, eax
je 0x512cc9
mov eax, ebx
lea edx, [ebp - 0x20c]
call fcn.00406d64
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x512cd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
xor edx, edx
mov dword [ebp - 0x20c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x512d4c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x208]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
test eax, eax
jbe 0x512d33
push ebx
lea eax, [ebp - 0x20c]
lea edx, [ebp - 0x208]
mov ecx, 0x104
call fcn.00406db8
mov eax, dword [ebp - 0x20c]
mov ecx, 2
mov edx, 1
call fcn.0040720c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x512d53
lea eax, [ebp - 0x20c]
call fcn.00406b98
ret
Function at 0x513830
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffddc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x220], edx
mov dword [ebp - 0x224], edx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x513993
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x5138ae
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x23
lea eax, [ebp - 0x212]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_SHGetSpecialFolderPathW
mov eax, dword [ebp - 4]
add eax, 8
lea edx, [ebp - 0x212]
mov ecx, 0x105
call fcn.00406db8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5138d9
xor eax, eax
push ebp
push 0x51391b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x1a
lea eax, [ebp - 0x212]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_SHGetSpecialFolderPathW
mov eax, dword [ebp - 4]
add eax, 4
lea edx, [ebp - 0x212]
mov ecx, 0x105
call fcn.00406db8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x513946
lea edx, [ebp - 0x224]
xor eax, eax
call fcn.00403634
mov eax, dword [ebp - 0x224]
lea edx, [ebp - 0x220]
call fcn.00471f48
mov edx, dword [ebp - 0x220]
mov eax, dword [ebp - 4]
add eax, 0xc
call fcn.00406ba8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51399a
lea eax, [ebp - 0x224]
mov edx, 4
call fcn.00406ba0
ret

Function at 0x5143fc
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x514478
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xff
mov edx, dword [ebp - 8]
inc edx
lea eax, [ebp - 4]
call fcn.00406af4
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0040688c
push eax
call sub.advapi32.dll_GetUserNameW
test eax, eax
je 0x514459
mov edx, dword [ebp - 8]
dec edx
lea eax, [ebp - 4]
call fcn.00406af4
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00406e20
jmp 0x514462
mov eax, ebx
xor edx, edx
call fcn.00406ba8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51447f
lea eax, [ebp - 4]
call fcn.004066a8
ret