joyce8/EMBER2024-capa huggingface dataset:
Function at 0x55e7a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
not eax
je 0x55e7d2
jmp 0x55e7b0
test cl, 3
je 0x55e7d2
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x6bcbc8]
add ecx, 1
sub esi, 1
jne 0x55e7b0
cmp esi, 0x20
push ebx
push edi
jb 0x55e9bc
mov edi, esi
shr edi, 5
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x6bcfc8]
xor edx, dword [ebx*4 + 0x6bd3c8]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x6bcbc8]
add ecx, 4
xor edx, dword [eax*4 + 0x6bd7c8]
add ecx, 4
xor edx, dword [ecx - 8]
add ecx, 4
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x6bcfc8]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x6bd3c8]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x6bcbc8]
add ecx, 4
xor eax, dword [edx*4 + 0x6bd7c8]
add ecx, 4
xor eax, dword [ecx - 0x10]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x6bcfc8]
xor edx, dword [ebx*4 + 0x6bd3c8]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x6bcbc8]
xor edx, dword [eax*4 + 0x6bd7c8]
xor edx, dword [ecx - 0xc]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x6bcfc8]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x6bd3c8]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x6bcbc8]
xor eax, dword [edx*4 + 0x6bd7c8]
xor eax, dword [ecx - 8]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x6bcfc8]
xor edx, dword [ebx*4 + 0x6bd3c8]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x6bcbc8]
xor edx, dword [eax*4 + 0x6bd7c8]
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x6bcfc8]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x6bd3c8]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x6bcbc8]
and edx, 0xff
xor eax, dword [edx*4 + 0x6bd7c8]
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x6bcfc8]
xor edx, dword [ebx*4 + 0x6bd3c8]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x6bcbc8]
add ecx, 4
xor edx, dword [eax*4 + 0x6bd7c8]
sub esi, 0x20
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x6bcfc8]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x6bd3c8]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x6bcbc8]
and edx, 0xff
xor eax, dword [edx*4 + 0x6bd7c8]
sub edi, 1
jne 0x55e7e2
cmp esi, 4
jb 0x55ea09
mov edx, esi
shr edx, 2
xor eax, dword [ecx]
add ecx, 4
mov edi, eax
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x6bcfc8]
movzx ebx, ah
xor edi, dword [ebx*4 + 0x6bd3c8]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x6bcbc8]
and eax, 0xff
xor edi, dword [eax*4 + 0x6bd7c8]
sub esi, 4
sub edx, 1
mov eax, edi
jne 0x55e9c6
test esi, esi
pop edi
pop ebx
je 0x55ea2d
nop
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x6bcbc8]
add ecx, 1
sub esi, 1
jne 0x55ea10
not eax
pop esi
ret
Function at 0x56fd30
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0
push 0
push 0x570760
push 0x10000
push 0
call fcn.004a9a93
add esp, 0x18
test eax, eax
jne 0x56fd59
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x56fd67
mov ecx, dword [esp]
mov dword [0x8b49d0], eax
mov dword [0x8b49cc], ecx
mov edx, dword [0x8b49d0]
push 1
push edx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
call fcn.005871e0
mov eax, dword [0x93d92c]
mov ecx, dword [0x93d928]
push 0
push 0x3e8
push eax
push ecx
call fcn.004aea00
mov dword [0x93dd50], eax
mov dword [0x93dd54], edx
pop ecx
ret
Function at 0x578d40
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
sub esp, 8
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jl 0x578e15
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jl 0x578e15
lea eax, [esp]
push eax
push 0x697fe8
push 1
push 0
push 0x6980b8
mov dword [esp + 0x14], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x578e15
push esi
push edi
lea edi, [esp + 0xc]
call fcn.0041c3e0
mov eax, dword [eax]
test eax, eax
je 0x578dae
mov ecx, dword [eax]
jmp 0x578db0
xor ecx, ecx
mov eax, dword [esp + 8]
mov edx, dword [eax]
push 0x8b49a4
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [esp + 0xc]
mov esi, eax
call fcn.0041c390
pop edi
test esi, esi
pop esi
jl 0x578e0a
mov eax, dword [0x8b49a4]
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jge 0x578e15
mov eax, dword [0x8b49a4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
add esp, 8
ret

Function at 0x578e50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x10
mov edi, 1
mov esi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x578e8d
add eax, 0x29
and eax, 0xfffffffc
mov eax, dword [eax + 0x10]
mov dword [0x7106d0], eax
call fcn.00587160
mov ecx, dword fs:[0x2c]
mov esi, dword [ecx]
add esi, 8
or dword [esi], edi
call fcn.005871e0
mov edx, dword [0x93d92c]
mov eax, dword [0x93d928]
push 0
push 0x3e8
push edx
push eax
call fcn.004aea00
mov dword [esi + 4], eax
call fcn.00578d40
mov eax, 2
mov dword [0x890330], edi
mov dword [0x890334], edi
mov dword [0x890340], edi
mov dword [0x890344], edi
mov dword [0x89034c], edi
mov dword [0x890354], edi
pop edi
mov dword [0x890338], eax
mov dword [0x89033c], 0
mov dword [0x890348], eax
mov dword [0x890350], 0
mov dword [0x890358], eax
pop esi
pop ecx
ret
Function at 0x57c980
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x408
lea eax, [esp]
push eax
push 0x20019
push 0
push 0x6c1f9c
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x57cad2
push esi
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x10]
push edx
push eax
push eax
mov eax, dword [esp + 0x14]
push str.language
push eax
mov dword [esp + 0x20], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 4]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x57cad2
lea edx, [esp + 8]
push edx
push str.GERMAN
call fcn.004a9ccb
add esp, 8
test eax, eax
jne 0x57ca06
mov eax, 3
add esp, 0x408
ret
lea eax, [esp + 8]
push eax
push str.ITALIAN
call fcn.004a9ccb
add esp, 8
test eax, eax
jne 0x57ca28
mov eax, 2
add esp, 0x408
ret
lea ecx, [esp + 8]
push ecx
push str.FRENCH
call fcn.004a9ccb
add esp, 8
test eax, eax
jne 0x57ca4a
mov eax, 1
add esp, 0x408
ret
lea edx, [esp + 8]
push edx
push str.SPANISH
call fcn.004a9ccb
add esp, 8
test eax, eax
jne 0x57ca6c
mov eax, 4
add esp, 0x408
ret
lea eax, [esp + 8]
push eax
push str.RUSSIAN
call fcn.004a9ccb
add esp, 8
test eax, eax
jne 0x57ca8e
mov eax, 8
add esp, 0x408
ret
lea ecx, [esp + 8]
push ecx
push 0x6c1fec
call fcn.004a9ccb
add esp, 8
test eax, eax
jne 0x57cab0
mov eax, 0xa
add esp, 0x408
ret
lea edx, [esp + 8]
push edx
push 0x6c1ff4
call fcn.004a9ccb
add esp, 8
test eax, eax
jne 0x57cad2
mov eax, 9
add esp, 0x408
ret
xor eax, eax
add esp, 0x408
ret

Function at 0x57f370
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x93d980]
sub esp, 8
test eax, eax
jne 0x57f3e8
mov dword [0x93d980], 0x7831c5
mov eax, 0x822350
jmp 0x57f390
mov dword [eax], 0
add eax, 0x1d0
cmp eax, 0x82d890
jl 0x57f390
lea eax, [esp + 4]
push eax
push 0
lea ecx, [esp + 8]
push ecx
push 0x57f0f0
push 0
push 0
mov dword [esp + 0x18], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 1
push eax
mov dword [0x710734], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0xfa0
push 0xa03a40
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov eax, dword [0x93d980]
add esp, 8
ret
Function at 0x57f710
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
push 0
mov esi, eax
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x1cc]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x57f748
mov edx, dword [esi + 0x28]
push edx
add esi, 0x3c
push esi
push str.FILE_SYSTEM__ERROR_:_Failed_to_seek___s__to__d._n
call fcn.00408d10
add esp, 0xc
xor eax, eax
pop esi
pop ecx
ret
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x38]
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 0x1cc]
push ecx
push edx
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esi + 0x2c]
cmp ecx, dword [esp + 4]
je 0x57f7d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi + 0x2c]
push eax
mov eax, dword [esi + 0x28]
push edx
push eax
add esi, 0x3c
push esi
push str.FILE_SYSTEM__ERROR_:_Failed_to_read___s__from__d_size__d_ReturnError__d_._n
call fcn.00408d10
add esp, 0x14
mov dword [0x8b499c], 0
mov dword [0x8b4998], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x93d948]
jne 0x57f7cf
cmp dword [0x805bac], 0
jne 0x57f7c9
cmp dword [0x805ba8], 0
jne 0x57f7cf
call dword [sym.imp.KERNEL32.dll_DebugBreak]
xor eax, eax
pop esi
pop ecx
ret
mov eax, 1
pop esi
pop ecx
ret

Function at 0x57f7e0
Capabilities:
Get file size

Disassembly:
sub esp, 0xc8
lea eax, [edi + 0x3c]
push eax
push 0x93d988
push 0x6c7130
lea ecx, [esp + 0xc]
push 0xc8
push ecx
call fcn.004a96d3
add esp, 0x14
cmp byte [esp], 0
lea eax, [esp]
je 0x57f820
nop
cmp byte [eax], 0x2f
jne 0x57f818
mov byte [eax], 0x5c
add eax, 1
cmp byte [eax], 0
jne 0x57f810
cmp byte [esp], 0
lea eax, [esp]
mov ecx, eax
je 0x57f84d
jmp 0x57f830
mov dl, byte [eax]
mov byte [ecx], dl
cmp byte [eax], 0x5c
jne 0x57f842
cmp byte [eax + 1], 0x5c
jne 0x57f842
add eax, 1
add eax, 1
add ecx, 1
cmp byte [eax], 0
jne 0x57f830
push 0
push 0x8000001
push 3
push 0
push 1
push connect
lea eax, [esp + 0x18]
push eax
mov byte [ecx], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [edi + 0x1cc], eax
je 0x57f8e1
mov ecx, dword [edi + 0x14]
test ecx, ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSize]
jne 0x57f894
mov edx, dword [edi + 0x1cc]
push 0
push edx
call esi
mov dword [edi + 0x14], eax
mov eax, dword [edi + 0x1cc]
push 0
push eax
call esi
test eax, eax
pop esi
je 0x57f8b0
mov eax, 1
add esp, 0xc8
ret
lea ecx, [esp]
push ecx
push str.FILE_SYSTEM__ERROR_:_Failed_to_open___s_____Zero_sized_file_._n
call fcn.00408d10
mov edx, dword [edi + 0x1cc]
add esp, 8
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x1cc], 0
xor eax, eax
add esp, 0xc8
ret
lea eax, [esp]
push eax
push str.FILE_SYSTEM__ERROR_:_Failed_to_open___s_._n
call fcn.00408d10
add esp, 8
mov dword [0x8b499c], 0
mov dword [0x8b4998], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x93d948]
jne 0x57f92c
cmp dword [0x805bac], 0
jne 0x57f926
cmp dword [0x805ba8], 0
jne 0x57f92c
call dword [sym.imp.KERNEL32.dll_DebugBreak]
xor eax, eax
add esp, 0xc8
ret
Function at 0x582ed0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub esp, 0x100
test ecx, ecx
push edi
mov edi, eax
jne 0x582ee8
or eax, 0xffffffff
pop edi
add esp, 0x100
ret
push esi
or esi, 0xffffffff
cmp dword [esp + 0x10c], 0
jne 0x582f5d
mov eax, ecx
push ebx
lea ebx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x582f00
sub eax, ebx
add eax, 1
push eax
push ecx
lea eax, [esp + 0x14]
push eax
call fcn.004a9840
lea ecx, [esp + 0x18]
push ecx
call fcn.00582e90
add esp, 0x10
xor eax, eax
test edi, edi
pop ebx
jbe 0x582f80
mov edi, edi
movzx edx, byte [esp + eax + 8]
mov ecx, esi
and ecx, 0xff
xor edx, ecx
shr esi, 8
xor esi, dword [edx*4 + 0x710748]
add eax, 1
cmp eax, edi
jb 0x582f30
mov eax, esi
pop esi
not eax
pop edi
add esp, 0x100
ret
test edi, edi
je 0x582f80
movzx edi, byte [ecx]
mov edx, esi
and edx, 0xff
xor edx, edi
shr esi, 8
xor esi, dword [edx*4 + 0x710748]
add ecx, 1
sub eax, 1
jne 0x582f61
mov eax, esi
pop esi
not eax
pop edi
add esp, 0x100
ret

Function at 0x5837c0
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x6c
push ebx
push ebp
mov ebp, dword [esp + 0x7c]
push esi
push edi
push eax
mov eax, dword [esp + 0x84]
lea ecx, [esp + 0x14]
mov byte [esp + 0x7c], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x14], 0x67452301
mov dword [esp + 0x18], 0xefcdab89
mov dword [esp + 0x1c], 0x98badcfe
mov dword [esp + 0x20], 0x10325476
call fcn.00574670
lea esi, [esp + 0x10]
call fcn.00574720
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x70]
mov dword [ebp], ecx
mov ecx, dword [esp + 0x74]
mov dword [ebp + 4], edx
mov dword [ebp + 8], eax
mov esi, 0x80a6a8
mov dword [ebp + 0xc], ecx
xor eax, eax
mov dword [esp + 0x84], esi
jmp 0x583850
cmp dword [eax*4 + 0x8096a8], 0
je 0x5838e0
mov ecx, 0x10
mov edx, ebp
mov edi, dword [esi]
cmp edi, dword [edx]
jne 0x58387d
sub ecx, 4
add edx, 4
add esi, 4
cmp ecx, 4
jae 0x583865
test ecx, ecx
je 0x5838da
movzx ebx, byte [edx]
movzx edi, byte [esi]
sub edi, ebx
jne 0x5838cc
sub ecx, 1
add edx, 1
add esi, 1
test ecx, ecx
je 0x5838da
movzx ebx, byte [edx]
movzx edi, byte [esi]
sub edi, ebx
jne 0x5838cc
sub ecx, 1
add edx, 1
add esi, 1
test ecx, ecx
je 0x5838da
movzx ebx, byte [edx]
movzx edi, byte [esi]
sub edi, ebx
jne 0x5838cc
sub ecx, 1
add edx, 1
add esi, 1
test ecx, ecx
je 0x5838da
movzx edx, byte [edx]
movzx edi, byte [esi]
sub edi, edx
je 0x5838da
test edi, edi
mov ecx, 1
jg 0x5838dc
or ecx, 0xffffffff
jmp 0x5838dc
xor ecx, ecx
test ecx, ecx
je 0x583909
mov esi, dword [esp + 0x84]
add eax, 1
add esi, 0x10
cmp eax, 0x400
mov dword [esp + 0x84], esi
jb 0x583850
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x6c
ret
add dword [eax*4 + 0x8096a8], 1
imul eax, eax, 0x2c
mov ecx, dword [esp + 0x80]
add dword [0x8096a0], 1
add dword [0x808c94], ecx
pop edi
pop esi
pop ebp
add eax, 0x80e6a8
pop ebx
add esp, 0x6c
ret
Function at 0x5849a0
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
xor edi, edi
cmp eax, edi
mov esi, ecx
jne 0x5849b2
mov eax, str.SPU_Group
push eax
push str.Creating_a_thread_group__s_n
call fcn.00408d10
add esp, 8
mov dword [esi], 2
mov dword [esi + 0x34], edi
lea ebp, [esi + 4]
add esi, 0x40
nop
push edi
push str.Initializing_SPU_thread__d_n
call fcn.00408d10
add esp, 8
push 0
push 0
push 0
push 0
lea ebx, [esi - 8]
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 1
push 1
push 0
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi - 4], eax
xor eax, eax
lea ecx, [esp + 0x10]
push ecx
push eax
push ebx
mov dword [esi], edi
push 0x672fd0
mov dword [esi + 4], eax
push 0x10000
mov dword [esi + 8], eax
push eax
mov dword [esi + 0xc], eax
call fcn.004a9a93
add esp, 0x18
test eax, eax
jne 0x584a35
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x584a3f
mov edx, dword [esp + 0x10]
mov dword [ebp + 4], eax
mov dword [ebp], edx
mov eax, dword [edi*4 + 0x6f7f18]
mov ecx, dword [ebp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadIdealProcessor]
add edi, 1
add esi, 0x1c
add ebp, 8
cmp edi, 2
jb 0x5849d0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret

Function at 0x584b90
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x24
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, dword [esp + 0xc]
xor eax, eax
cmp eax, dword [esp + 0x2c]
jb 0x584bc2
ja 0x584bb1
cmp ecx, dword [esp + 0x28]
jb 0x584bc2
mov dword [esi], 1
mov eax, 1
add esp, 0x24
ret 8
mov dword [esi], 2
xor eax, eax
add esp, 0x24
ret 8

Function at 0x584c50
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push ecx
push esi
push 0
push 0x80
push 3
push 0
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x584ca1
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push 0
lea ecx, [esp + 8]
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0x16
mov eax, 1
pop esi
pop ecx
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 2
sete cl
xor eax, eax
pop esi
lea ecx, [ecx + ecx + 0x1c]
mov dword [edi], ecx
pop ecx
ret 8

Function at 0x584cc0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x584d11
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push 0
lea ecx, [esp + 8]
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0x18
mov eax, 1
pop esi
pop ecx
ret 8
mov dword [edi], 0x11
xor eax, eax
pop esi
pop ecx
ret 8
Function at 0x587620
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x8020
call fcn.004ad330
push ebx
mov ebx, dword [esp + 0x8028]
push esi
push edi
push 0x2c
lea esi, [ebx + 4]
push 0
push esi
mov word [ebx], 0xffff
mov word [ebx + 2], 0
call fcn.004ae0b0
mov eax, dword [esp + 0x8040]
add esp, 0xc
push eax
push 0x8000
lea ecx, [esp + 0x30]
push ecx
push 0
push str.Mapping
push str.GameController
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 0x64
jne 0x5877a0
lea ecx, [esp + 0x28]
call fcn.00587480
xor ecx, ecx
mov ch, al
mov word [esp + 0x12], cx
lea ecx, [esp + 0x2a]
call fcn.00587480
movzx ecx, word [esp + 0x12]
mov cl, al
mov word [ebx], cx
lea ecx, [esp + 0x2c]
call fcn.00587480
xor ecx, ecx
mov ch, al
mov word [esp + 0x12], cx
lea ecx, [esp + 0x2e]
call fcn.00587480
movzx ecx, word [esp + 0x12]
mov cl, al
mov word [ebx + 2], cx
lea ecx, [esp + 0x30]
call fcn.00587480
xor ecx, ecx
mov ch, al
mov word [esp + 0x12], cx
lea ecx, [esp + 0x32]
call fcn.00587480
movzx ecx, word [esp + 0x12]
mov cl, al
mov word [esi], cx
lea ecx, [esp + 0x34]
call fcn.00587480
xor ecx, ecx
mov ch, al
mov word [esp + 0x12], cx
lea ecx, [esp + 0x36]
call fcn.00587480
movzx ecx, word [esp + 0x12]
mov cl, al
lea edi, [esp + 0x38]
lea esi, [esp + 0x18]
mov word [ebx + 6], cx
call fcn.00587540
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ebx + 8], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ebx + 0xc], ecx
mov dword [ebx + 0x10], edx
lea ecx, [esp + 0x5c]
mov dword [ebx + 0x14], eax
call fcn.00587480
xor ecx, ecx
mov ch, al
mov word [esp + 0x12], cx
lea ecx, [esp + 0x5e]
call fcn.00587480
movzx ecx, word [esp + 0x12]
mov cl, al
lea esi, [esp + 0x60]
lea edi, [ebx + 0x1a]
mov dword [esp + 0x14], 0xb
mov word [ebx + 0x18], cx
jmp 0x587770
lea ecx, [esi + 2]
call fcn.00587480
movzx ax, al
mov ecx, esi
mov word [esp + 0x12], ax
call fcn.00587480
mov cx, word [esp + 0x12]
mov ch, al
add edi, 2
add esi, 4
sub dword [esp + 0x14], 1
mov word [edi - 2], cx
jne 0x587770
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x8020
ret 8

Function at 0x5877b0
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x8014
call fcn.004ad330
push ebx
mov ebx, dword [esp + 0x801c]
push esi
push edi
xor eax, eax
push ecx
push 0x8000
lea edx, [esp + 0x28]
push edx
push eax
push str.DriverGUID
push 0x6c807c
mov dword [ebx], eax
mov word [ebx + 4], ax
mov word [ebx + 6], ax
mov byte [ebx + 8], al
mov byte [ebx + 9], al
mov byte [ebx + 0xa], al
mov byte [ebx + 0xb], al
mov byte [ebx + 0xc], al
mov byte [ebx + 0xd], al
mov byte [ebx + 0xe], al
mov byte [ebx + 0xf], al
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 0x24
jne 0x58782c
lea edi, [esp + 0x20]
lea esi, [esp + 0x10]
call fcn.00587540
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebx], ecx
mov ecx, dword [eax + 8]
mov dword [ebx + 4], edx
mov edx, dword [eax + 0xc]
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x8014
ret 4
Function at 0x589a20
Capabilities:
Terminate process

Disassembly:
sub esp, 0x200
push ebx
mov ebx, dword [esp + 0x208]
push ebp
mov ebp, dword [esp + 0x210]
push esi
mov esi, dword [esp + 0x218]
xor edx, edx
cmp ebp, edx
push edi
mov ecx, 8
mov edi, ebx
mov dword [ebx + 0x30], edx
mov dword [ebx + 0xc0], edx
rep movsd dword es:[edi], dword [esi]
mov byte [ebx + 0x20], al
mov dword [ebx + 0x28], edx
je 0x589a70
lea ecx, [ebp + 0xfff]
push ecx
call fcn.004abdf2
add esp, 4
xor edx, edx
jmp 0x589a72
xor eax, eax
cmp eax, edx
mov dword [ebx + 0x24], eax
je 0x589ac6
lea edx, [ebx + 0x4c]
lea ecx, [eax + 0xfff]
push edx
and ecx, 0xfffff000
mov edx, 8
mov edi, ebp
mov dword [ebx + 0x28], ebp
call fcn.0057aed0
push 0xfa0
lea eax, [ebx + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov edx, dword [ebx + 0xc4]
pop edi
and edx, 0xfffffffd
pop esi
or edx, 1
pop ebp
mov dword [ebx + 0xc4], edx
pop ebx
add esp, 0x200
ret 0xc
cmp ebp, edx
je 0x589aa7
mov eax, 0xa
call fcn.00578cc0
mov ecx, dword [esp + 0x21c]
push ecx
push ebp
push eax
lea edx, [esp + 0x1c]
push 0x200
push edx
call fcn.004a96d3
add esp, 0x14
xor eax, eax
call fcn.00578cc0
mov ecx, dword [0x9cdcb8]
push 0
push eax
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xffffffffffffffff
call fcn.004abd17
int3