joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42aea4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x43a650], ebx
push esi
push edi
jne 0x42af24
push 0x4331a8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x42af5f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x43319c
push edi
call esi
test eax, eax
mov dword [0x43a650], eax
je 0x42af5f
push 0x43318c
push edi
call esi
push 0x433178
push edi
mov dword [0x43a654], eax
call esi
cmp dword [0x43a338], 2
mov dword [0x43a658], eax
jne 0x42af24
push 0x43315c
push edi
call esi
test eax, eax
mov dword [0x43a660], eax
je 0x42af24
push 0x433144
push edi
call esi
mov dword [0x43a65c], eax
mov eax, dword [0x43a65c]
test eax, eax
je 0x42af69
call eax
test eax, eax
je 0x42af50
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x43a660]
test eax, eax
je 0x42af50
test byte [ebp - 8], 1
jne 0x42af69
cmp dword [0x43a344], 4
jb 0x42af63
or byte [ebp + 0x12], 0x20
jmp 0x42af88
xor eax, eax
jmp 0x42af98
or byte [ebp + 0x12], 4
jmp 0x42af88
mov eax, dword [0x43a654]
test eax, eax
je 0x42af88
call eax
mov ebx, eax
test ebx, ebx
je 0x42af88
mov eax, dword [0x43a658]
test eax, eax
je 0x42af88
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x43a650]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42b8c3
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x4331b8
call fcn.00421dbc
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x43a664], edi
jne 0x42b907
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x42b8f2
mov dword [0x43a664], ebx
jmp 0x42b907
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x42b907
mov dword [0x43a664], 2
mov eax, dword [0x43a664]
cmp eax, ebx
jne 0x42b927
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x42b9ea
cmp eax, 2
je 0x42b930
cmp eax, edi
jne 0x42b958
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x42b943
mov eax, dword [0x43a584]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x42b95f
xor eax, eax
jmp 0x42b9ea
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.00427490
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x42b992
cmp esi, edi
jne 0x42b9a8
push dword [ebp - 0x20]
call fcn.004212a4
pop ecx
mov esi, eax
cmp esi, edi
je 0x42b958
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x42b9db
cmp dword [ebp + 0x14], edi
jne 0x42b9c5
push edi
push edi
jmp 0x42b9cb
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x42b9e7
push esi
call fcn.0041e379
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.00421df7
ret
Function at 0x42b9f3
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x4331c8
call fcn.00421dbc
xor esi, esi
cmp dword [0x43a668], esi
jne 0x42ba37
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x42ba22
mov dword [0x43a668], edi
jmp 0x42ba37
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x42ba37
mov dword [0x43a668], 2
mov eax, dword [0x43a668]
cmp eax, 2
je 0x42bb18
cmp eax, esi
je 0x42bb18
cmp eax, 1
jne 0x42ba7c
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x42ba65
mov eax, dword [0x43a584]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x42ba83
xor eax, eax
jmp 0x42bb2a
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.00427490
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x42bab9
cmp edi, esi
jne 0x42bad4
lea eax, [ebx + ebx]
push eax
call fcn.004212a4
pop ecx
mov edi, eax
cmp edi, esi
je 0x42ba7c
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x42bb07
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x42baf1
push esi
push esi
jmp 0x42baf7
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x42bb13
push edi
call fcn.0041e379
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x42bb2a
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.00421df7
ret
Function at 0x42c981
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00427490
mov eax, dword [0x438f6c]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.004257b4
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x42cab4
push 2
push esi
push dword [ebp + 8]
call fcn.004257b4
add esp, 0xc
cmp eax, ebx
je 0x42cab4
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x42ca54
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00422df0
push 0x8000
push dword [ebp + 8]
call fcn.0042cffd
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x42ca0a
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.00424eb7
add esp, 0xc
cmp eax, 0xffffffff
je 0x42ca2a
sub edi, eax
test edi, edi
jg 0x42ca02
jmp 0x42ca42
call fcn.00421f1a
cmp dword [eax], 5
jne 0x42ca3f
call fcn.00421f11
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.0042cffd
pop ecx
pop ecx
jmp 0x42ca9c
jge 0x42ca9c
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004257b4
push dword [ebp + 8]
call fcn.0042a975
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x42ca9c
call fcn.00421f11
mov dword [eax], 0xd
call fcn.00421f1a
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.004257b4
add esp, 0xc
mov eax, esi
pop edi
jmp 0x42cab6
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0041ef4c
leave
ret
Function at 0x42ce28
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x42ce41
or eax, 0xffffffff
jmp 0x42cea2
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x42ce9e
push 0x3d
push esi
call fcn.0042d094
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x42ce9e
cmp esi, eax
je 0x42ce9e
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x43a358]
sete cl
cmp eax, dword [0x43a35c]
mov dword [ebp - 8], ecx
jne 0x42ce84
mov edi, eax
call fcn.0042cdc7
mov dword [0x43a358], eax
cmp eax, ebx
jne 0x42cedd
cmp dword [ebp + 0xc], ebx
je 0x42cea6
cmp dword [0x43a360], ebx
je 0x42cea6
call fcn.0042c887
test eax, eax
je 0x42cedd
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x42ceaf
xor eax, eax
jmp 0x42cea1
push 4
call fcn.004212a4
cmp eax, ebx
pop ecx
mov dword [0x43a358], eax
je 0x42ce9e
mov dword [eax], ebx
cmp dword [0x43a360], ebx
jne 0x42cedd
push 4
call fcn.004212a4
cmp eax, ebx
pop ecx
mov dword [0x43a360], eax
je 0x42ce9e
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x43a358]
call fcn.0042cd7a
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x42cf3e
cmp dword [esi], ebx
je 0x42cf3e
lea esi, [esi + edi*4]
push dword [esi]
call fcn.0041e379
cmp dword [ebp - 8], ebx
pop ecx
jne 0x42cf21
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x42cf7f
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x42cf18
mov eax, edi
shl eax, 2
push eax
push dword [0x43a358]
call fcn.00422a52
cmp eax, ebx
pop ecx
pop ecx
je 0x42cf7f
jmp 0x42cf7a
cmp dword [ebp - 8], ebx
jne 0x42cfea
cmp edi, ebx
jge 0x42cf4d
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x43a358]
call fcn.00422a52
cmp eax, ebx
pop ecx
pop ecx
je 0x42ce9e
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x43a358], eax
cmp dword [ebp + 0xc], ebx
je 0x42cfd4
push dword [ebp - 4]
call fcn.00422060
inc eax
inc eax
push eax
call fcn.004212a4
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x42cfd4
push dword [ebp - 4]
push esi
call fcn.004249a0
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x42cfcd
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.0041e379
pop ecx
cmp dword [ebp - 8], ebx
je 0x42cfe2
push dword [ebp - 4]
call fcn.0041e379
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x42cea1
push dword [ebp - 4]
call fcn.0041e379
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x42ceab
Function at 0x42d1f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x320
mov eax, dword [0x438f6c]
push esi
mov esi, dword [esp + 0x328]
push esi
mov dword [esp + 0x324], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42d22e
xor eax, eax
pop esi
mov ecx, dword [esp + 0x31c]
call fcn.0041ef4c
add esp, 0x320
ret 0xc
push 0
lea eax, [esp + 0x18]
push eax
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov esi, eax
test esi, esi
je 0x42d3bd
cmp esi, 0x104
jb 0x42d275
push 0x6f
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
mov eax, esi
pop esi
mov ecx, dword [esp + 0x31c]
call fcn.0041ef4c
add esp, 0x320
ret 0xc
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
jl 0x42d3bd
push 0x104
lea edx, [esp + 0x11c]
push edx
push 0xffffffffffffffff
lea eax, [esp + 0x20]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_AreFileApisANSI]
neg eax
sbb eax, eax
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x42d2ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x42d2c7
push 0x6f
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x42d3b3
mov eax, dword [esp + 4]
mov ecx, dword [eax]
push 0
lea edx, [esp + 0x10]
push edx
lea edx, [esp + 0x18]
push edx
lea edx, [esp + 0x124]
push edx
push 0
push 0
push eax
call dword [ecx + 0xc]
test eax, eax
jge 0x42d326
mov ecx, eax
and ecx, 0x1fff0000
cmp ecx, 0x70000
jne 0x42d317
and eax, 0xffff
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x42d3b3
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x42d3b3
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov esi, eax
test esi, esi
jne 0x42d34e
mov al, byte [esp + 0x14]
test al, al
je 0x42d34e
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x42d38b
push edi
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov eax, dword [esp + 0x334]
lea edi, [esi + 1]
cmp edi, eax
jbe 0x42d376
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, edi
jmp 0x42d38a
push eax
mov eax, dword [esp + 0x334]
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
pop edi
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x42d3b3
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x14]
mov eax, dword [esp + 8]
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x320]
mov eax, esi
pop esi
call fcn.0041ef4c
add esp, 0x320
ret 0xc
Function at 0x42d770
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x42f1f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, dword [esp + 0x48]
cmp dword [edi + 0x18], 0x10
mov esi, ecx
mov dword [esp + 0xc], esi
lea ebx, [edi + 4]
jb 0x42d7a2
mov eax, dword [ebx]
jmp 0x42d7a4
mov eax, ebx
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
jne 0x42d7cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x14]
call fcn.00408b20
push 0x434958
lea eax, [esp + 0x14]
push eax
call fcn.0041e519
push eax
mov ecx, esi
call fcn.00409780
mov dword [esi], 0x4306d8
cmp dword [edi + 0x18], 0x10
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov dword [esp + 0x40], 0
jb 0x42d7f3
mov ebx, dword [ebx]
push eax
push ecx
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x42d820
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x28]
call fcn.00408b20
push 0x434958
lea ecx, [esp + 0x28]
push ecx
call fcn.0041e519
mov ecx, dword [esp + 0x38]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4

Function at 0x1000125c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0xc], 0
call sub.KERNEL32.DLL_GetEnvironmentStringsA
mov ebx, eax
mov dword [ebp - 0x10], ebx
jmp 0x10001299
cmp byte [ebx], 0x3d
je 0x10001285
inc dword [ebp - 0xc]
mov edi, ebx
xor eax, eax
stc
sbb ecx, ecx
repne scasb al, byte es:[edi]
neg ecx
lea eax, [ecx - 2]
mov edi, eax
inc edi
lea ebx, [ebx + edi]
cmp byte [ebx], 0
jne 0x10001278
mov edi, dword [ebp - 0xc]
inc edi
lea edi, [edi*4]
mov dword [ebp - 0x14], edi
push dword [ebp - 0x14]
call sub.CRTDLL.DLL_malloc
pop ecx
mov dword [ebp - 8], eax
mov dword [0x10003010], eax
cmp dword [ebp - 8], 0
jne 0x100012cc
xor eax, eax
jmp 0x10001342
mov ebx, dword [ebp - 0x10]
jmp 0x10001325
mov edi, ebx
xor eax, eax
stc
sbb ecx, ecx
repne scasb al, byte es:[edi]
neg ecx
lea eax, [ecx - 2]
mov edi, eax
inc edi
mov dword [ebp - 4], edi
cmp byte [ebx], 0x3d
je 0x1000131f
push dword [ebp - 4]
call sub.CRTDLL.DLL_malloc
pop ecx
mov esi, dword [ebp - 8]
mov dword [esi], eax
or eax, eax
jne 0x10001308
jmp 0x10001342
push ebx
mov edi, dword [ebp - 8]
push dword [edi]
call sub.CRTDLL.DLL_strcpy
add esp, 8
add dword [ebp - 8], 4
mov edx, dword [ebp - 4]
lea ebx, [ebx + edx]
cmp byte [ebx], 0
jne 0x100012d1
mov edx, dword [ebp - 8]
mov dword [edx], 0
mov eax, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402190
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x44c00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x44c448]
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 0x40236d
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x40236d
push 0x38
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, dword [0x44c448]
add esp, 4
mov esi, eax
test edi, edi
je 0x402234
movsx edx, word [edi + 0x6028]
lea eax, [edi + 0x602c]
mov ecx, dword [edi + 0x3f70]
lea eax, [eax + edx*8]
cmp dword [eax], ecx
je 0x40222a
lea eax, [edx + 1]
mov dword [ebp - 0x1c], 6
cdq
idiv dword [ebp - 0x1c]
movzx eax, dx
mov word [edi + 0x6028], ax
cwde
lea eax, [eax*8 + 0x602c]
add eax, edi
mov dword [eax], ecx
xor ecx, ecx
mov dword [eax + 4], ecx
inc word [eax + 4]
inc dword [edi + 0x6020]
test esi, esi
je 0x402272
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 0x402274
xor esi, esi
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
or dword [ebx + 0xc], 6
mov dword [esi], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x1c], ecx
mov ecx, dword [ebp - 0x14]
mov dword [ebx + 0x78], esi
mov dword [ebx + 0x70], 0x44389c
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
mov dword [esi + 0x20], 9
test edi, edi
je 0x4022af
mov edi, dword [edi + 0x78]
jmp 0x4022b1
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 0x4022d4
mov dword [edi], eax
mov eax, dword [0x44c448]
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 + 0x4acc]
mov dword [ebp - 0x2c], str.xinput1_2.dll
mov dword [ebp - 0x28], str.xinput1_1.dll
mov ecx, dword [eax]
mov eax, dword [esi]
mov dword [ecx + 0x2c], eax
mov dword [ecx + 0x28], eax
mov byte [esi + 0x29], 1
push dword [ebp + edi*4 - 0x38]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
jne 0x40233b
inc edi
cmp edi, 5
jl 0x402312
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00441be2
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.00441be2
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.00441be2
mov esp, ebp
pop ebp
ret
Function at 0x406ab0
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 0x406afc
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x406adf
cmp edi, 2
jb 0x406adf
cmp byte [esi], cl
jne 0x406adf
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 + 0x444d48]
test edi, edi
jne 0x406ac5
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x406b2b
cmp cl, 0x23
jne 0x406b12
cmp byte [esi], cl
jne 0x406b12
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 + 0x444d48]
test cl, cl
jne 0x406b03
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x406c30
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 0x406c43
mov dword [edi], 0
mov edx, 0x4448e4
call fcn.00406b40
mov esi, eax
test esi, esi
je 0x406cfb
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 0x406cf1
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 0x406cf1
push esi
call ebx
mov ebx, eax
add esp, 4
cmp ebx, 0xffffffff
je 0x406cf1
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 0x406cf1
mov ecx, ebx
call fcn.0040a810
mov dword [ebp + 8], eax
test eax, eax
je 0x406cf1
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 0x406cda
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov ecx, dword [ebp + 8]
add esp, 4
call fcn.0040a8a0
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 0x406ce9
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
Function at 0x40d8c0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x44c00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [0x44c448]
push edi
mov edi, ecx
mov dword [ebp - 0x14], edx
mov ebx, dword [esi + 0x4004]
or dword [esi + 0x49e8], 0x100
mov dword [esi + 0x4a20], 1
mov ecx, dword [ebx + 0x1a0]
test ecx, ecx
jne 0x40d90f
mov eax, 0x23c
cmp dword [esi + 0x4d7c], ecx
je 0x40d914
mov eax, 0x20c
movss xmm6, dword [ebx + eax]
xorps xmm2, xmm2
movss xmm7, dword [ebx + eax + 4]
xorps xmm4, xmm4
mov eax, dword [ebp + 8]
xorps xmm5, xmm5
movss xmm3, dword [ebx + 0x100]
subss xmm7, dword [ebx + 0x104]
subss xmm6, xmm3
movss xmm1, dword [eax]
comiss xmm2, xmm1
movss xmm0, dword [eax + 4]
ja 0x40d952
comiss xmm2, xmm0
jbe 0x40d97f
test ecx, ecx
jne 0x40d963
mov eax, 0x23c
cmp dword [esi + 0x4d7c], ecx
je 0x40d968
mov eax, 0x20c
movss xmm4, dword [ebx + eax]
movss xmm5, dword [ebx + eax + 4]
subss xmm4, xmm3
subss xmm5, dword [ebx + 0x104]
movss xmm3, dword [0x4499d4]
ucomiss xmm1, xmm2
lahf
test ah, 0x44
jp 0x40d995
movaps xmm1, xmm6
jmp 0x40d9a6
comiss xmm2, xmm1
jbe 0x40d9a6
addss xmm1, xmm4
comiss xmm3, xmm1
jb 0x40d9a6
movaps xmm1, xmm3
ucomiss xmm0, xmm2
lahf
test ah, 0x44
jp 0x40d9b4
movaps xmm0, xmm7
jmp 0x40d9c5
comiss xmm2, xmm0
jbe 0x40d9c5
addss xmm0, xmm5
comiss xmm3, xmm0
jb 0x40d9c5
movaps xmm0, xmm3
or dword [esi + 0x49e8], 2
movss dword [esi + 0x4a08], xmm1
movss dword [esi + 0x4a0c], xmm0
mov dword [esi + 0x49f0], 1
mov eax, dword [ebx + 4]
push edx
test edi, edi
je 0x40da05
push edi
push eax
push str._s__s__08X
lea eax, [ebp - 0x10]
push 0
push eax
call fcn.00406980
add esp, 0x18
jmp 0x40da19
push eax
push str._s__08X
lea eax, [ebp - 0x10]
push 0
push eax
call fcn.00406980
add esp, 0x14
movss xmm0, dword [esi + 0x38f8]
xor edx, edx
mov ecx, dword [ebp - 0x10]
push 0x1000107
movss dword [ebp - 0xc], xmm0
call fcn.00410a20
mov edi, dword [esi + 0x4004]
add esp, 4
movss xmm0, dword [ebp - 0xc]
movss dword [esi + 0x38f8], xmm0
mov byte [ebp - 5], al
cmp word [edi + 0xc8], 1
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], edi
mov dword [edi + 0x80], eax
jne 0x40da76
mov ecx, dword [edi + 0x18]
mov edx, dword [edi + 0x1c]
mov dword [ebx + 0x100], ecx
mov dword [ebx + 0x104], edx
mov edi, eax
mov edx, 0x443c31
not edi
mov al, 0x23
mov ebx, edi
cmp al, 0x23
jne 0x40da91
cmp byte [edx], al
jne 0x40da91
cmp byte [edx + 1], al
cmove ebx, edi
movzx ecx, bl
movzx eax, al
xor ecx, eax
shr ebx, 8
mov al, byte [edx]
inc edx
xor ebx, dword [ecx*4 + 0x444d48]
test al, al
jne 0x40da83
mov edi, dword [ebp - 0xc]
not ebx
cmp dword [esi + 0x4058], ebx
jne 0x40dac0
xor edx, edx
xor ecx, ecx
call fcn.0040a0c0
mov eax, dword [ebp - 0x14]
cmp dword [esi + 0x4ae0], eax
jne 0x40db05
cmp word [edi + 0x15c], 0
jne 0x40dade
cmp byte [edi + 0x162], 0
je 0x40db05
xor edx, edx
mov ecx, edi
call fcn.004135d0
xor dl, dl
mov ecx, edi
call fcn.004196c0
mov edx, edi
mov ecx, ebx
call fcn.0040a0c0
mov eax, dword [esi + 0x4b0c]
mov dword [esi + 0x407c], eax
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 5]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00441be2
mov esp, ebp
pop ebp
ret