joyce8/EMBER2024-capa huggingface dataset:
Function at 0x453fc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x4a8800]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x60
push 0
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x410], eax
mov dword [ebp - 0x414], ecx
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x408], 0
call ebx
mov edi, eax
test edi, edi
jne 0x454030
push 2
push eax
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x454030
call fcn.0043e580
mov esi, eax
jmp 0x4540e9
push dword [ebp - 0x410]
push dword [ebp - 0x40c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x454053
call fcn.0043e580
jmp 0x4540dc
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x454068
call fcn.0043e580
jmp 0x4540dc
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x454080
mov esi, 0x8007000e
jmp 0x4540de
push eax
lea ecx, [ebp - 0x408]
call fcn.00452f90
cmp dword [ebp - 0x408], 0
jne 0x45409c
mov esi, 0x8007000e
jmp 0x4540de
push esi
push dword [ebp - 0x408]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x4540bc
call fcn.0043e580
jmp 0x4540dc
mov eax, dword [ebp - 0x408]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x418]
push dword [ebp - 0x408]
call fcn.00453e60
mov esi, eax
test edi, edi
je 0x4540e9
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x404]
cmp dword [ebp - 0x408], eax
je 0x454102
lea ecx, [ebp - 0x408]
call fcn.00453560
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045b1f5
mov esp, ebp
pop ebp
ret 0x10
Function at 0x454d40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x454d59
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x454d65
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x454d60
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x456ea0
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4a8800]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
movq qword [ebp - 0xc], xmm0
movdqu xmmword [ebp - 0x1c], xmm0
test esi, esi
je 0x456f61
cmp dword [esi + 0x10c], 0
je 0x456f61
mov eax, dword [esi + 0x110]
test eax, eax
je 0x456eee
push eax
call dword [sym.imp.KERNEL32.dll_CancelIo]
mov eax, dword [esi + 0x124]
test eax, eax
je 0x456eff
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x110]
test eax, eax
je 0x456f10
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x20]
mov dword [esi + 0x110], 0
push eax
mov eax, dword [esi + 0x10c]
push 1
push eax
mov dword [esi + 0x124], 0
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x456f61
lea eax, [ebp - 0x20]
push eax
mov eax, dword [esi + 0x10c]
push 1
push eax
call fcn.00457460
add esp, 0xc
test eax, eax
je 0x456f61
mov eax, dword [esi + 0x10c]
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0045b1f5
mov esp, ebp
pop ebp
ret

Function at 0x456f80
Capabilities:
Delete file

Disassembly:
call fcn.00456aa0
cmp byte [eax + 0x59], 0
jne 0x456f98
push 0xfffffffffffffff8
call fcn.00456a10
add esp, 4
xor eax, eax
ret
push esi
push 0x12c
call fcn.0045bf7a
mov esi, eax
add esp, 4
test esi, esi
jne 0x456fba
push 0xfffffffffffffffd
call fcn.00456a10
add esp, 4
xor eax, eax
pop esi
ret
push 0x12c
push 0
push esi
call fcn.0045c460
push esi
call fcn.004570a0
add esp, 0x10
test eax, eax
jne 0x456fe8
push esi
call fcn.0045a5bb
push 0xfffffffffffffff5
call fcn.00456a10
add esp, 8
xor eax, eax
pop esi
ret
push edi
push esi
call fcn.00457170
add esp, 4
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x457027
test edi, edi
jne 0x457027
mov eax, dword [esi + 0x128]
mov ecx, 0xfffffff7
test eax, eax
cmovne ecx, eax
push ecx
call fcn.00456a10
push esi
call fcn.0045a5bb
add esp, 8
xor eax, eax
pop edi
pop esi
ret
pop edi
mov eax, esi
pop esi
ret
Function at 0x4570a0
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x4570bc
xor eax, eax
pop esi
pop ebp
ret
lea ecx, [esi - 1]
nop
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x4570c0
mov eax, dword [0x4818ac]
mov dword [ecx], eax
mov eax, dword [0x4818b0]
mov dword [ecx + 4], eax
mov ax, word [0x4818b4]
mov word [ecx + 8], ax
mov al, byte [0x4818b6]
push 0x4818b8
push esi
mov byte [ecx + 0xa], al
call fcn.0045c94c
mov esi, eax
add esp, 8
test esi, esi
je 0x4570b7
push edi
push 0x481888
push str.kernel32
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x457131
lea eax, [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
cmp dword [ebp + 8], 0
pop edi
push esi
je 0x457148
push dword [0x4a209c]
push 1
push 0x4a5240
jmp 0x457155
push dword [0x4a2098]
push 1
push 0x4a20a0
call fcn.0045d567
add esp, 0x10
push esi
call fcn.0045c6d2
add esp, 4
mov eax, 1
pop esi
pop ebp
ret
Function at 0x457460
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4574c4
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push esi
mov esi, dword [ebp + 0x10]
push esi
push edi
call ebx
test eax, eax
je 0x4574bf
mov edi, edi
mov ecx, dword [ebp + 0xc]
cmp dword [esi + 4], ecx
je 0x4574bf
mov eax, 0xcccccccd
mul dword [esi + 0x18]
shr edx, 3
cmp edx, 0x3e8
jae 0x4574a2
mov edx, 0x3e8
jmp 0x4574b0
cmp edx, 0x2710
mov eax, 0x2710
cmova edx, eax
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push edi
call ebx
test eax, eax
jne 0x457480
pop esi
pop ebx
pop edi
pop ebp
ret
xor eax, eax
pop edi
pop ebp
ret
Function at 0x457c20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xec
mov eax, dword [0x4a8800]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x2c], 0x14
cmp dword [esi + 0x200], 0x80000001
mov dword [ebp - 0x28], 0x3a
mov dword [ebp - 0x24], 0x16
mov dword [ebp - 0x20], 0x37
mov dword [ebp - 0x1c], 0x19
mov dword [ebp - 0x18], 0x3b
mov dword [ebp - 0x14], 0x1e
mov dword [ebp - 0x10], 0x39
mov dword [ebp - 0xc], 0x1f
mov dword [ebp - 8], 0x38
mov dword [ebp - 0x8c], 1
mov dword [ebp - 0x88], 0x3f
mov dword [ebp - 0x84], 2
mov dword [ebp - 0x80], 0x40
mov dword [ebp - 0x7c], 5
mov dword [ebp - 0x78], 0x41
mov dword [ebp - 0x74], 6
mov dword [ebp - 0x70], 0x43
mov dword [ebp - 0x6c], 7
mov dword [ebp - 0x68], 0x42
mov dword [ebp - 0x64], 8
mov dword [ebp - 0x60], 0x44
mov dword [ebp - 0x5c], 9
mov dword [ebp - 0x58], 0x45
mov dword [ebp - 0x54], 0xa
mov dword [ebp - 0x50], 0x46
mov dword [ebp - 0x4c], 0xb
mov dword [ebp - 0x48], 0x53
mov dword [ebp - 0x44], 0xc
mov dword [ebp - 0x40], 0x48
mov dword [ebp - 0x3c], 0xd
mov dword [ebp - 0x38], 0x49
mov dword [ebp - 0x34], 0x10
mov dword [ebp - 0x30], 0x55
mov dword [ebp - 0xec], 0
mov dword [ebp - 0xe8], 0x4a
mov dword [ebp - 0xe4], 1
mov dword [ebp - 0xe0], 0x4b
mov dword [ebp - 0xdc], 2
mov dword [ebp - 0xd8], 0x4c
mov dword [ebp - 0xd4], 3
mov dword [ebp - 0xd0], 0x4d
mov dword [ebp - 0xcc], 4
mov dword [ebp - 0xc8], 0x4e
mov dword [ebp - 0xc4], 5
mov dword [ebp - 0xc0], 0x4f
mov dword [ebp - 0xbc], 6
mov dword [ebp - 0xb8], 0x50
mov dword [ebp - 0xb4], 7
mov dword [ebp - 0xb0], 0x51
mov dword [ebp - 0xac], 9
mov dword [ebp - 0xa8], 0x5a
mov dword [ebp - 0xa4], 0xa
mov dword [ebp - 0xa0], 0x5b
mov dword [ebp - 0x9c], 0xb
mov dword [ebp - 0x98], 0x5c
mov dword [ebp - 0x94], 0xc
mov dword [ebp - 0x90], 0x5d
jb 0x457e58
push edi
push dword [esi + 0x21c]
lea eax, [ebp - 0x2c]
push 5
push eax
call fcn.00456c60
push edi
push dword [esi + 0x218]
lea eax, [ebp - 0x8c]
push 0xc
push eax
call fcn.00456c60
add esp, 0x20
cmp dword [esi + 0x200], reloc.OLEAUT32.dll_VariantInit
jb 0x457e7c
push edi
push dword [esi + 0x27c]
lea eax, [ebp - 0xec]
push 0xc
push eax
call fcn.00456c60
add esp, 0x10
cmp dword [esi + 0x200], 0x8000001a
jb 0x457ea9
mov byte [edi + 0x160], 1
mov eax, 0x40
test byte [esi + 0x3a0], 1
mov ecx, 0x80
cmovne eax, ecx
mov dword [edi + 0x15c], eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0045b1f5
mov esp, ebp
pop ebp
ret
Function at 0x473536
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a8800]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00464985
mov dword [ebp - 0x14], eax
cmp dword [0x4acca4], esi
jne 0x473629
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4735b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x473709
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x473709
push 0x49383c
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x473709
push eax
call ebx
push 0x493848
push edi
mov dword [0x4acca4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4acca8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4accac], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4accb4], eax
test eax, eax
je 0x473626
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4accb0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x47364e
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x473641
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x473663
push 4
pop eax
jmp 0x47370b
cmp dword [ebp - 0x14], esi
je 0x473663
push dword [0x4acca4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x473648
mov eax, dword [0x4accb0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4736c1
cmp dword [0x4accb4], edi
je 0x4736c1
push eax
call ebx
push dword [0x4accb4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4736c1
test eax, eax
je 0x4736c1
call ecx
test eax, eax
je 0x4736b6
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4736b6
test byte [ebp - 8], 1
jne 0x4736c1
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4736f1
mov eax, dword [0x4acca8]
cmp eax, edi
je 0x4736ee
push eax
call ebx
test eax, eax
je 0x4736ee
call eax
mov esi, eax
test esi, esi
je 0x4736ee
mov eax, dword [0x4accac]
cmp eax, edi
je 0x4736ee
push eax
call ebx
test eax, eax
je 0x4736ee
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4acca4]
call ebx
test eax, eax
je 0x473709
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x47370b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045b1f5
mov esp, ebp
pop ebp
ret
Function at 0x4031c0
Capabilities:
Check if file exists
Create directory
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1730]
mov eax, 0x17b0
call fcn.00450330
mov eax, dword [0x59d680]
xor eax, ebp
mov dword [ebp + 0x172c], eax
mov eax, dword [ebp + 0x173c]
push ebx
push esi
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x1740]
mov esi, 0x206
xor ebx, ebx
push esi
mov dword [ebp - 0x74], eax
lea eax, [ebp + 0x1526]
push ebx
push eax
mov word [ebp + 0x1524], bx
call fcn.0044fd00
push esi
lea eax, [ebp + 0x131e]
push ebx
push eax
mov word [ebp + 0x131c], bx
call fcn.0044fd00
add esp, 0x18
push str.Dict
call fcn.00402f04
mov ecx, eax
call fcn.0040b5f3
push eax
lea eax, [ebp + 0x1524]
push 0x53de44
push eax
call fcn.0045025e
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x10
lea eax, [ebp + 0x1524]
push eax
call esi
test eax, eax
jne 0x40326e
push ebx
lea eax, [ebp + 0x1524]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str..zncel
push dword [ebp + 0x1738]
lea eax, [ebp + 0x1524]
push eax
lea eax, [ebp + 0x131c]
push str._s_d_s
push eax
call fcn.0045025e
add esp, 0x14
lea eax, [ebp + 0x131c]
push eax
call esi
test eax, eax
jne 0x403363
push edi
push ebx
push 0x80
push 2
push ebx
push 3
push 0x10000000
lea eax, [ebp + 0x131c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x403362
push 0x1387
lea eax, [ebp - 0x6b]
push ebx
push eax
mov byte [ebp - 0x6c], bl
call fcn.0044fd00
push ebx
call fcn.0044fdd8
add esp, 0x10
push eax
push ebx
mov dword [ebp - 0x7c], edx
call fcn.0044fdd8
pop ecx
push eax
push ebx
push ebx
push 1
push 1
push dword [ebp + 0x1738]
lea ecx, [ebp - 0x6c]
push 0x4e20
push str.__Dict__
push str.__GS__
call fcn.00403042
push dword [ebp - 0x78]
lea ecx, [ebp - 0x6c]
call fcn.0040309c
push dword [ebp - 0x74]
lea ecx, [ebp - 0x6c]
call fcn.0040309c
mov esi, 0x53de0c
push esi
lea ecx, [ebp - 0x6c]
call fcn.0040309c
push esi
lea ecx, [ebp - 0x6c]
call fcn.0040309c
push ebx
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x3c]
lea eax, [ebp - 0x6c]
push eax
push edi
mov dword [ebp - 0x70], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ecx, dword [ebp + 0x172c]
pop esi
xor ecx, ebp
pop ebx
call fcn.0044fa75
add ebp, 0x1730
leave
ret 0xc
Function at 0x403fc0
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push dword [ebp + 8]
mov dword [ebp - 0xc], ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4040c9
push edi
xor edi, edi
push edi
push 0x80
push 4
push edi
push 3
push 0x10000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x4040c8
push ebx
push 0x34
pop ebx
push edi
push eax
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebx
jae 0x40401e
mov dword [ebp - 4], edi
mov ebx, eax
push esi
push ebx
call fcn.00434345
mov esi, eax
cmp esi, edi
pop ecx
je 0x4040c6
push ebx
push edi
push esi
call fcn.0044fd00
add esp, 0xc
push edi
lea eax, [ebp - 8]
push eax
push ebx
push esi
push dword [ebp + 8]
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], edi
je 0x4040bf
push str.__GS__
push esi
call fcn.00450360
test eax, eax
pop ecx
pop ecx
jne 0x40407d
lea eax, [esi + 0xa]
push str.__Dict__
push eax
call fcn.00450360
pop ecx
pop ecx
cmp dword [esi + 0x18], edi
je 0x4040c6
push 0x28
call fcn.00434315
mov ebx, eax
cmp ebx, edi
pop ecx
je 0x40409c
lea ecx, [ebx + 0xc]
call fcn.004035d2
mov eax, ebx
jmp 0x40409e
xor eax, eax
cmp eax, edi
mov dword [ebp + 8], eax
je 0x4040c6
mov ecx, dword [esi + 0x18]
mov dword [eax], ecx
movzx ecx, byte [esi + 0x1c]
mov dword [eax + 8], ecx
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call fcn.00425805
push esi
call fcn.00434340
pop ecx
pop esi
pop ebx
pop edi
leave
ret 4
Function at 0x404ad9
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x59d680]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
push edi
xor ebx, ebx
push ebx
push ebx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], ebx
call esi
mov edi, eax
cmp edi, ebx
jne 0x404b0b
xor eax, eax
jmp 0x404b63
shl eax, 2
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x404b07
push ebx
push edi
call esi
mov esi, eax
test esi, esi
je 0x404b07
jbe 0x404b59
push 0x28
lea eax, [ebp - 0x2c]
push eax
dec esi
push dword [ebx + esi*4]
call sub.IMM32.dll_ImmGetIMEFileNameW
test eax, eax
je 0x404b4d
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x404b53
test esi, esi
ja 0x404b29
jmp 0x404b59
mov eax, dword [ebx + esi*4]
mov dword [ebp - 0x30], eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044fa75
leave
ret 4

Function at 0x404b90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x124]
sub esp, 0x1a4
mov eax, dword [0x59d680]
xor eax, ebp
mov dword [ebp + 0x120], eax
mov eax, dword [ebp + 0x12c]
push edi
mov edi, dword [ebp + 0x130]
push eax
push str.Control_PanelInput_MethodHot_Keys_
lea eax, [ebp - 0x70]
push 0x53ded0
push eax
call fcn.0045025e
add esp, 0x10
lea eax, [ebp - 0x74]
push eax
push 0xf003f
push 0
lea eax, [ebp - 0x70]
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x404bf2
xor ax, ax
jmp 0x404c63
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x80]
push eax
push 0
push str.Key_Modifiers
push dword [ebp - 0x74]
mov dword [ebp - 0x80], 3
mov dword [ebp - 0x7c], 4
call esi
test eax, eax
jne 0x404c50
mov ecx, dword [ebp - 0x78]
mov eax, 0xc004
and ecx, eax
cmp ecx, eax
sete al
mov byte [edi], al
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x80]
push eax
push 0
push str.Virtual_Key
push dword [ebp - 0x74]
call esi
test eax, eax
je 0x404c5e
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ax, ax
jmp 0x404c62
mov ax, word [ebp - 0x78]
pop esi
mov ecx, dword [ebp + 0x120]
xor ecx, ebp
pop edi
call fcn.0044fa75
add ebp, 0x124
leave
ret 8
Function at 0x405aed
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 4]
mov esi, ecx
push eax
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push dword [ebp - 4]
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
and dword [esi + 0x1c], 0
push 0
push 1
mov ecx, esi
call fcn.00401376
pop esi
leave
ret

Function at 0x405de7
Capabilities:
Check if file exists

Disassembly:
push ebp
sub esp, 0x68
lea ebp, [esp - 4]
mov eax, dword [0x59d680]
xor eax, ebp
mov dword [ebp + 0x68], eax
push 0x38
mov eax, 0x5366ec
call fcn.0044fa84
call fcn.00402f04
mov ecx, eax
call fcn.00401032
mov esi, eax
mov eax, dword [esi + 4]
push esi
push eax
lea ecx, [ebp + 0x44]
mov dword [ebp + 0x38], esi
call fcn.00403537
mov eax, dword [esi + 8]
push esi
push eax
lea ecx, [ebp + 0x3c]
call fcn.00403537
lea eax, [ebp + 0x3c]
push eax
lea ecx, [ebp + 0x44]
call fcn.0041fe07
xor ebx, ebx
inc ebx
jmp 0x405fa2
lea ecx, [ebp + 0x44]
call fcn.00402e2a
mov esi, dword [eax]
push 0x53ddc0
lea ecx, [ebp + 0x1c]
call fcn.00401a45
mov eax, dword [esi]
and dword [ebp - 4], 0
lea ecx, [ebp + 0x1c]
push ecx
mov ecx, esi
call dword [eax + 0x1c]
or dword [ebp - 4], 0xffffffff
push 0
push ebx
lea ecx, [ebp + 0x1c]
mov edi, eax
call fcn.00401376
call fcn.00402f04
mov ecx, eax
call fcn.0040b5f3
push eax
lea ecx, [ebp + 0x4c]
call fcn.00401a45
push str.Dict
lea ecx, [ebp + 0x4c]
mov dword [ebp - 4], ebx
call fcn.004039fd
push 0x53e180
lea ecx, [ebp + 0x4c]
call fcn.004039fd
cmp dword [edi + 0x18], 8
jb 0x405eb8
mov edi, dword [edi + 4]
jmp 0x405ebb
add edi, 4
push edi
lea ecx, [ebp + 0x4c]
call fcn.004039fd
push str..zncel
lea ecx, [ebp + 0x4c]
call fcn.004039fd
cmp dword [ebp + 0x64], 8
mov eax, dword [ebp + 0x50]
jae 0x405edd
lea eax, [ebp + 0x50]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405f29
push 0x53dec0
lea ecx, [ebp - 0x28]
call fcn.00401a45
push 0x53dd80
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 2
call fcn.00401a45
mov eax, dword [esi]
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp + 0x1c]
push ecx
mov ecx, esi
mov byte [ebp - 4], 3
call dword [eax + 8]
push 0
push ebx
lea ecx, [ebp + 0x1c]
call fcn.00401376
lea ecx, [ebp - 0x28]
jmp 0x405f68
push 0x53e17c
lea ecx, [ebp - 0x44]
call fcn.00401a45
push 0x53dd80
lea ecx, [ebp]
mov byte [ebp - 4], 4
call fcn.00401a45
mov eax, dword [esi]
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [ebp]
push ecx
mov ecx, esi
mov byte [ebp - 4], 5
call dword [eax + 8]
push 0
push ebx
lea ecx, [ebp]
call fcn.00401376
lea ecx, [ebp - 0x44]
push 0
push ebx
call fcn.00401376
or dword [ebp - 4], 0xffffffff
push 0
push ebx
lea ecx, [ebp + 0x4c]
call fcn.00401376
lea ecx, [ebp + 0x44]
call fcn.00404c8e
mov eax, dword [ebp + 0x38]
push eax
push dword [eax + 8]
lea ecx, [ebp + 0x3c]
call fcn.00403537
lea eax, [ebp + 0x3c]
push eax
lea ecx, [ebp + 0x44]
call fcn.0041fe07
test al, al
je 0x405e44
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x68]
xor ecx, ebp
call fcn.0044fa75
add ebp, 0x6c
leave
ret
Function at 0x40a17a
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x59d680]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push ebx
mov edi, ecx
mov dword [ebp - 0x210], eax
call fcn.0044f427
test eax, eax
pop ecx
mov esi, 0x53e998
jne 0x40a1b6
mov dword [edi], 1
jmp 0x40a1c6
push esi
push ebx
call fcn.0044fb8e
neg eax
sbb eax, eax
pop ecx
inc eax
pop ecx
mov dword [edi], eax
and word [ebp - 0x20c], 0
push 0x206
lea eax, [ebp - 0x20a]
push 0
push eax
call fcn.0044fd00
lea eax, [edi + 0x10]
push eax
lea eax, [ebp - 0x20c]
push str._sSkinSkin.xml
push eax
call fcn.0045025e
add esp, 0x18
cmp dword [edi], 0
jne 0x40a215
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40a215
mov dword [edi], 1
cmp dword [edi + 8], 0
jne 0x40a2bb
cmp dword [edi], 0
je 0x40a26d
call fcn.00404914
mov edx, dword [eax]
push 0
push 0x58
mov ecx, eax
call dword [edx + 0xc]
call fcn.00404914
mov edx, dword [eax]
push 0
push 0x58
mov ecx, eax
call dword [edx + 0x2c]
call fcn.00404914
mov edx, dword [eax]
push esi
mov esi, 0xa0
push esi
mov ecx, eax
call dword [edx + 8]
call fcn.00404914
mov edx, dword [eax]
push esi
mov ecx, eax
call dword [edx + 0x14]
call fcn.00404914
push 0x58
jmp 0x40a2b4
call fcn.00404914
mov edx, dword [eax]
push 1
push 0x58
mov ecx, eax
call dword [edx + 0xc]
call fcn.00404914
mov edx, dword [eax]
push 1
push 0x58
mov ecx, eax
call dword [edx + 0x2c]
call fcn.00404914
mov edx, dword [eax]
push ebx
mov esi, 0xa0
push esi
mov ecx, eax
call dword [edx + 8]
call fcn.00404914
mov edx, dword [eax]
push 0x58
mov ecx, eax
call dword [edx + 0x14]
call fcn.00404914
push esi
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x14]
and dword [edi + 8], 0
mov ecx, edi
call fcn.00409f6e
push dword [ebp - 0x210]
mov ecx, edi
call fcn.0040985d
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044fa75
leave
ret 8