joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a924
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
and dword [ebp - 0x10c], 0
movzx eax, byte [ebp + 8]
test eax, eax
je 0x40a9a9
push str.Rules
movzx eax, byte [ebp + 8]
push eax
push 0x417b04
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x40a97d
xor eax, eax
jmp 0x40aa3e
push 0x417530
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push 0x417530
push 1
push 0
push str.DirName
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x40aa2f
push str.Rules
push str.All_Drives_s
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x40a9e2
xor eax, eax
jmp 0x40aa3e
lea eax, [ebp - 0x10c]
push eax
call fcn.004049b7
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp - 0x10c]
push 1
push 0
push 0x4220c4
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0x110], eax
push dword [ebp - 0x110]
call fcn.0040b71d
pop ecx
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
leave
ret
Function at 0x40aa40
Capabilities:
Get disk size
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
push str.Switches
movzx eax, byte [ebp + 8]
push eax
push 0x417b04
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x120]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x40aa87
xor eax, eax
jmp 0x40abe4
push 2
push 0x41765a
push 3
push 0
push str.DaysToKeep
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
push 0x417660
push 3
push 0
push str.Reorganize
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
push 0x417661
push 3
push 0
push str.SaveArchive
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
push 0x417662
push 3
push 0
push str.Enabled
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
push 0x417663
push 3
push 0
push str.Available
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x18], 0x2800
mov eax, dword [0x41cda4]
mov dword [ebp - 8], eax
mov al, byte [ebp + 8]
mov byte [ebp - 8], al
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x40abc0
mov eax, dword [ebp - 4]
imul eax, dword [ebp - 0x10]
imul eax, dword [ebp - 0x1c]
mov dword [ebp - 0x130], eax
and dword [ebp - 0x12c], 0
fild qword [ebp - 0x130]
fstp qword [ebp - 0x128]
fld qword [ebp - 0x128]
fcomp qword [0x417b78]
fnstsw ax
sahf
je 0x40abc0
fld qword [ebp - 0x128]
fmul qword [0x417b70]
fdiv qword [0x417b68]
call fcn.0040f6e0
cmp eax, 0x2800
jbe 0x40ab9a
mov dword [ebp - 0x134], 0x2800
jmp 0x40abb7
fld qword [ebp - 0x128]
fmul qword [0x417b70]
fdiv qword [0x417b68]
call fcn.0040f6e0
mov dword [ebp - 0x134], eax
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0x18], eax
push 4
lea eax, [ebp - 0x18]
push eax
push 4
push 0
push str.DirKBSize
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
leave
ret
Function at 0x40abe6
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push str.SOFTWARESymantec
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x417afc
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x4173ec
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x417afc
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x417400
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp dword [ebp + 8], 0
je 0x40acae
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push 0
push 0x20007
push 0
push 0
push 0
push dword [ebp + 0xc]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40ac63
mov eax, 0xffff
jmp 0x40acb0
cmp dword [ebp - 4], 1
jne 0x40acae
push 1
push 0x417500
push 3
push 0
push str.TrackerSize
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40aca7
push 2
push 0x417502
push 3
push 0
push str.Version
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40acae
mov eax, 0xffff
jmp 0x40acb0
xor eax, eax
leave
ret
Function at 0x40ad50
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0x400
and dword [ebp - 0xc], 0
mov dword [ebp - 8], 0x50
and word [ebp - 0x24], 0
and dword [ebp - 4], 0
and dword [ebp - 0x1c], 0
and dword [ebp - 0x20], 0
and dword [ebp - 0x14], 0
push dword [ebp - 0x10]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40ada1
mov dword [ebp - 0x20], 1
jmp 0x40aed3
push 0x400
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x1c], eax
push dword [ebp - 8]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 0x1c], 0
je 0x40adcb
cmp dword [ebp - 4], 0
jne 0x40add7
mov dword [ebp - 0x20], 1
jmp 0x40aed1
push dword [ebp - 0x1c]
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x18]
push dword [ebp + 8]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
jne 0x40ae03
mov dword [ebp - 0x20], 1
jmp 0x40aecf
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov dword [ebp - 0xc], eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
jne 0x40ae28
mov dword [ebp - 0x20], 1
jmp 0x40aecd
mov eax, dword [ebp - 0xc]
add eax, 8
mov word [ebp - 0x24], ax
movzx eax, word [ebp - 0x24]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40ae51
mov dword [ebp - 0x20], 1
jmp 0x40aecb
movzx eax, word [ebp - 0x24]
push eax
push 0
push dword [ebp - 0x14]
call fcn.0040e8f0
add esp, 0xc
mov eax, dword [ebp - 0x14]
and byte [eax], 0
mov eax, dword [ebp - 0x14]
mov byte [eax + 1], 4
mov eax, dword [ebp - 0x14]
mov cx, word [ebp - 0x24]
mov word [eax + 2], cx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 4], ecx
push dword [ebp - 0xc]
push dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
add eax, 8
push eax
call fcn.0040efe0
add esp, 0xc
cmp dword [ebp - 0x18], 0
je 0x40aea8
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 4], 0
je 0x40aeb7
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x1c], 0
je 0x40aec6
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x14]
jmp 0x40aed5
jmp 0x40ae99
jmp 0x40ae99
jmp 0x40ae99
jmp 0x40ae99
jmp 0x40ae99
leave
ret
Function at 0x40b11f
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 0x18], 0
and byte [ebp - 0x14], 0
and byte [ebp - 0x13], 0
and byte [ebp - 0x12], 0
and byte [ebp - 0x11], 0
and byte [ebp - 0x10], 0
mov byte [ebp - 0xf], 5
lea eax, [ebp - 0xc]
push eax
push 8
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40b15b
xor eax, eax
jmp 0x40b278
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 2
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x40b182
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40b278
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x40b19d
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40b278
mov eax, dword [ebp - 0x20]
add eax, 3
and al, 0xfc
call fcn.0040f320
mov dword [ebp - 0x24], esp
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40b1c9
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40b278
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x18]
push 2
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x40b1f2
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40b278
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x40b226
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40b278
and dword [ebp - 4], 0
and dword [ebp - 8], 0
jmp 0x40b237
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax]
jae 0x40b263
push dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
push dword [ecx + eax*8 + 4]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x40b261
mov dword [ebp - 4], 1
jmp 0x40b263
jmp 0x40b230
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
lea esp, [ebp - 0x24]
leave
ret
Function at 0x40c418
Capabilities:
Access the windows event log
Get session user name
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1220
call fcn.0040f320
mov dword [ebp - 0x121c], ecx
mov dword [ebp - 0x1004], 0x1000
cmp dword [ebp + 0x24], 0
jne 0x40c4ec
mov dword [ebp - 0x1110], 0x100
mov dword [ebp - 0x1114], 0x100
push dword [ebp - 0x1110]
push 0
lea eax, [ebp - 0x110c]
push eax
call fcn.0040e8f0
add esp, 0xc
push dword [ebp - 0x1114]
push 0
lea eax, [ebp - 0x1214]
push eax
call fcn.0040e8f0
add esp, 0xc
push dword [ebp - 0x1004]
push 0
lea eax, [ebp - 0x1000]
push eax
call fcn.0040e8f0
add esp, 0xc
lea eax, [ebp - 0x1110]
push eax
lea eax, [ebp - 0x110c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [ebp - 0x100c]
push eax
lea eax, [ebp - 0x1114]
push eax
lea eax, [ebp - 0x1214]
push eax
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x1000]
push eax
lea eax, [ebp - 0x110c]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
cmp eax, 1
jne 0x40c4ec
lea eax, [ebp - 0x1000]
mov dword [ebp + 0x24], eax
and dword [ebp - 0x1008], 0
mov eax, dword [ebp - 0x121c]
add eax, 0x28
mov dword [ebp - 0x1218], eax
mov eax, dword [ebp - 0x1218]
cmp dword [eax + 4], 0
jne 0x40c51a
mov dword [ebp - 0x1220], 0x417b9c
jmp 0x40c529
mov eax, dword [ebp - 0x1218]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1220], eax
push 0
push dword [ebp - 0x1220]
mov eax, dword [ebp - 0x121c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x121c]
call dword [eax + 0x34]
mov eax, dword [ebp - 0x121c]
cmp dword [eax + 8], 0xffffffff
je 0x40c595
push dword [ebp + 0x20]
push dword [ebp + 0x18]
push dword [ebp + 0x1c]
push dword [ebp + 0x14]
push dword [ebp + 0x24]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov eax, dword [ebp - 0x121c]
push dword [eax + 8]
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
mov dword [ebp - 0x1008], eax
cmp dword [ebp - 0x1008], 1
je 0x40c593
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x121c]
mov dword [ecx + 0xc], eax
jmp 0x40c5a2
mov eax, dword [ebp - 0x121c]
mov dword [eax + 0xc], 6
mov eax, dword [ebp - 0x121c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x121c]
call dword [eax + 0x18]
mov eax, dword [ebp - 0x1008]
leave
ret 0x20
Function at 0x412e45
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41df80
cmp edx, dword [eax]
je 0x412e67
add eax, 8
inc ecx
cmp eax, 0x41e010
jl 0x412e58
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41df80]
jne 0x412f95
mov eax, dword [0x422130]
cmp eax, 1
je 0x412f6f
test eax, eax
jne 0x412e98
cmp dword [0x41d5b8], 1
je 0x412f6f
cmp edx, 0xfc
je 0x412f95
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x412ecf
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040e950
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040e470
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x412f12
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040e470
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4180c4
push edi
call fcn.0040f350
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040e950
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040e960
lea eax, [ebp - 0xa0]
push 0x4180a4
push eax
call fcn.0040e960
push dword [esi + 0x41df84]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040e960
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00415164
add esp, 0x2c
pop edi
jmp 0x412f95
lea eax, [ebp + 8]
lea esi, [esi + 0x41df84]
push 0
push eax
push dword [esi]
call fcn.0040e470
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x10003a70
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x1004f00c]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_PeekMessageW]
lea eax, [esp + 0xc]
push edi
push 1
push 0
push 0
push 0
push eax
xor bl, bl
call esi
mov edi, 1
test eax, eax
je 0x10003aff
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
nop dword [eax]
lea eax, [esp + 0x10]
push eax
call edi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [esp + 0x14], 0x12
mov eax, 1
push eax
push 0
push 0
movzx ebx, bl
cmove ebx, eax
lea eax, [esp + 0x1c]
push 0
push eax
call esi
test eax, eax
jne 0x10003ab0
test bl, bl
je 0x10003afa
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.1004437c
mov esp, ebp
pop ebp
ret
mov edi, 1
mov edx, dword [0x1004fc74]
test edx, edx
je 0x10003b9f
mov esi, dword [0x1004fcb0]
test esi, esi
je 0x10003b9f
mov ecx, dword [0x1004fc78]
test ecx, ecx
je 0x10003b41
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov edx, dword [0x1004fc74]
mov esi, dword [0x1004fcb0]
mov dword [0x1004fc78], 0
mov eax, dword [0x1004fcac]
push 0
push 0
push esi
mov ecx, dword [eax]
push edx
push 0
push eax
call dword [ecx + 0x34]
mov eax, dword [0x1004fcac]
lea edx, [esp + 0xc]
push edx
push 0x100464c0
push 0
mov ecx, dword [eax]
push eax
mov dword [0x1004fcb0], 0
mov dword [0x1004fc74], 0
call dword [ecx + 0x24]
mov eax, dword [0x1004fcb4]
push 0x1004fc78
push 0
push dword [esp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov esi, dword [0x1004fc68]
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_ScreenToClient]
movd xmm0, dword [esp + 0x2c]
cvtdq2ps xmm0, xmm0
push 1
movss dword [esi + 0xe00], xmm0
movd xmm0, dword [esp + 0x34]
cvtdq2ps xmm0, xmm0
movss dword [esi + 0xe04], xmm0
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
setne al
mov byte [esi + 0xe08], al
mov eax, dword [0x1004fc68]
test eax, eax
je 0x10003c03
mov eax, dword [eax + 0x78]
jmp 0x10003c05
xor eax, eax
cmp dword [eax + 0x24], 0
jne 0x10003c10
call fcn.100056e0
call fcn.10006850
call fcn.1000df70
mov ecx, dword [esp + 0x34]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1004437c
mov esp, ebp
pop ebp
ret
Function at 0x10005b40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1004f00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1004fcb8]
push ebx
mov ebx, dword [0x1004fcb4]
push esi
push edi
mov edi, dword [0x1004fc68]
push 0x40
mov dword [ebp - 0x1c], eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, dword [0x1004fc68]
add esp, 4
mov esi, eax
test ecx, ecx
je 0x10005bd5
movsx eax, word [ecx + 0x5ee4]
mov edx, dword [ecx + 0x3f08]
add eax, 0xbdd
mov dword [ebp - 0x14], edx
cmp dword [ecx + eax*8], edx
lea eax, [ecx + eax*8]
je 0x10005bcb
movsx eax, word [ecx + 0x5ee4]
inc eax
mov dword [ebp - 0x20], 6
cdq
idiv dword [ebp - 0x20]
movzx eax, dx
mov edx, dword [ebp - 0x14]
mov word [ecx + 0x5ee4], ax
cwde
add eax, 0xbdd
lea eax, [ecx + eax*8]
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 4]
inc dword [ecx + 0x5edc]
test esi, esi
je 0x10005c4a
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0x1388
mov dword [esi + 0x3c], 0x2710
jmp 0x10005c4c
xor esi, esi
or dword [edi + 0xc], 8
lea ecx, [ebp - 8]
push ecx
mov dword [edi + 0x78], esi
mov dword [edi + 0x70], str.imgui_impl_dx11
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov eax, dword [ebx]
push 0x1004afb4
push ebx
call dword [eax]
test eax, eax
jne 0x10005cbb
mov eax, dword [ebp - 8]
lea edx, [ebp - 0xc]
push edx
push 0x1004afc4
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
test eax, eax
jne 0x10005cbb
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x10]
push edx
push 0x1004afd4
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
test eax, eax
jne 0x10005cbb
mov eax, dword [ebp - 0x1c]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esi], ebx
mov dword [esi + 8], eax
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x10005cc8
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x10005cd5
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [esi]
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
mov eax, dword [esi + 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004437c
mov esp, ebp
pop ebp
ret
Function at 0x10005d00
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x1004f00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x1004fc68]
lea eax, [ebp - 0x10]
push esi
push edi
push eax
mov dword [ebp - 0x24], ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x10005edb
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x10005edb
push 0x38
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, dword [0x1004fc68]
add esp, 4
mov esi, eax
test edi, edi
je 0x10005da3
movsx edx, word [edi + 0x5ee4]
lea eax, [edi + 0x5ee8]
mov ecx, dword [edi + 0x3f08]
lea eax, [eax + edx*8]
cmp dword [eax], ecx
je 0x10005d99
lea eax, [edx + 1]
mov dword [ebp - 0x1c], 6
cdq
idiv dword [ebp - 0x1c]
movzx eax, dx
mov word [edi + 0x5ee4], ax
cwde
add eax, 0xbdd
lea eax, [edi + eax*8]
mov dword [eax], ecx
xor ecx, ecx
mov dword [eax + 4], ecx
inc word [eax + 4]
inc dword [edi + 0x5edc]
test esi, esi
je 0x10005de1
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
jmp 0x10005de3
xor esi, esi
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
or dword [ebx + 0xc], 6
mov dword [ebx + 0x74], esi
mov dword [ebx + 0x6c], 0x1004afe4
mov ebx, dword [ebp - 0x24]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x1c], ecx
mov ecx, dword [ebp - 0x14]
mov dword [esi], ebx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
mov dword [esi + 0x20], 9
test edi, edi
je 0x10005e1e
mov edi, dword [edi + 0x74]
jmp 0x10005e20
xor edi, edi
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 4
add edi, 0x24
shr eax, 0x10
push edi
push 0x20001004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x10005e43
mov dword [edi], eax
mov eax, dword [0x1004fc68]
xor edi, edi
mov dword [ebp - 0x38], str.xinput1_4.dll
mov dword [ebp - 0x34], str.xinput1_3.dll
mov dword [ebp - 0x30], str.xinput9_1_0.dll
mov eax, dword [eax + 0x4a34]
mov dword [ebp - 0x2c], str.xinput1_2.dll
mov dword [ebp - 0x28], str.xinput1_1.dll
mov eax, dword [eax]
mov dword [eax + 0x28], ebx
mov byte [esi + 0x29], 1
nop dword [eax]
push dword [ebp + edi*4 - 0x38]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
jne 0x10005ea9
inc edi
cmp edi, 5
jl 0x10005e80
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004437c
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.XInputGetCapabilities
push ebx
mov dword [esi + 0x2c], ebx
call edi
push str.XInputGetState
push ebx
mov dword [esi + 0x30], eax
call edi
mov dword [esi + 0x34], eax
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004437c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004437c
mov esp, ebp
pop ebp
ret
Function at 0x1000a400
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov eax, ebx
test edi, edi
je 0x1000a44c
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x1000a42f
cmp edi, 2
jb 0x1000a42f
cmp byte [esi], cl
jne 0x1000a42f
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10046760]
test edi, edi
jne 0x1000a415
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x1000a47b
cmp cl, 0x23
jne 0x1000a462
cmp byte [esi], cl
jne 0x1000a462
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x10046760]
test cl, cl
jne 0x1000a453
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x1000a580
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x1000a593
mov dword [edi], 0
mov edx, 0x1004bf08
call fcn.1000a490
mov esi, eax
test esi, esi
je 0x1000a64b
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push esi
call ebx
add esp, 4
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x1000a641
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x1000a641
push esi
call ebx
mov ebx, eax
add esp, 4
cmp ebx, 0xffffffff
je 0x1000a641
push 0
push dword [ebp + 8]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x1000a641
mov ecx, ebx
call fcn.1000d7f0
mov dword [ebp + 8], eax
test eax, eax
je 0x1000a641
push esi
push ebx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push esi
cmp eax, ebx
je 0x1000a62a
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov ecx, dword [ebp + 8]
add esp, 4
call fcn.1000d880
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test edi, edi
je 0x1000a639
mov dword [edi], ebx
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret