joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a050
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
xor eax, eax
push edi
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov dword [esi + 0x21868], eax
mov dword [esi + 0x21864], eax
mov al, byte [esi + 0xa]
cmp al, 0xf
mov ebp, 2
mov ebx, 1
jne 0x41a185
push 0x52
call edi
test ah, ah
jns 0x41a08d
or dword [esi + 0x21864], ebp
push 0x45
call edi
test ah, ah
jns 0x41a09b
or dword [esi + 0x21864], ebx
push 0x57
call edi
test ah, ah
jns 0x41a0a9
or dword [esi + 0x21868], ebp
push 0x51
call edi
test ah, ah
jns 0x41a0b7
or dword [esi + 0x21868], ebx
push 0x46
call edi
test ah, ah
jns 0x41a0cd
mov eax, dword [esi + 0x21864]
or al, 4
mov dword [esi + 0x21864], eax
push 0x44
call edi
test ah, ah
jns 0x41a0e3
mov eax, dword [esi + 0x21864]
or al, 0x10
mov dword [esi + 0x21864], eax
push 0x53
call edi
test ah, ah
jns 0x41a0f9
mov eax, dword [esi + 0x21864]
or al, 0x80
mov dword [esi + 0x21864], eax
push 0x41
call edi
test ah, ah
jns 0x41a10f
mov eax, dword [esi + 0x21868]
or al, 8
mov dword [esi + 0x21868], eax
push 0x56
call edi
test ah, ah
jns 0x41a125
mov eax, dword [esi + 0x21864]
or al, 8
mov dword [esi + 0x21864], eax
push 0x43
call edi
test ah, ah
jns 0x41a13b
mov eax, dword [esi + 0x21864]
or al, 0x20
mov dword [esi + 0x21864], eax
push 0x58
call edi
test ah, ah
jns 0x41a151
mov eax, dword [esi + 0x21864]
or al, 0x40
mov dword [esi + 0x21864], eax
push 0x5a
call edi
test ah, ah
jns 0x41a167
mov eax, dword [esi + 0x21868]
or al, 4
mov dword [esi + 0x21868], eax
push 0x54
call edi
test ah, ah
jns 0x41a176
or byte [esi + 0x21329], 8
push 0x47
call edi
test ah, ah
jns 0x41a185
or byte [esi + 0x21329], 4
cmp byte [esi + 0xa], 0x10
jne 0x41a295
push 0x51
call edi
test ah, ah
jns 0x41a19d
or dword [esi + 0x21864], ebp
push 0x57
call edi
test ah, ah
jns 0x41a1ab
or dword [esi + 0x21864], ebx
push 0x45
call edi
test ah, ah
jns 0x41a1b9
or dword [esi + 0x21868], ebp
push 0x52
call edi
test ah, ah
jns 0x41a1c7
or dword [esi + 0x21868], ebx
push 0x41
call edi
test ah, ah
jns 0x41a1dd
mov eax, dword [esi + 0x21864]
or al, 4
mov dword [esi + 0x21864], eax
push 0x53
call edi
test ah, ah
jns 0x41a1f3
mov eax, dword [esi + 0x21864]
or al, 0x10
mov dword [esi + 0x21864], eax
push 0x44
call edi
test ah, ah
jns 0x41a209
mov eax, dword [esi + 0x21864]
or al, 0x80
mov dword [esi + 0x21864], eax
push 0x46
call edi
test ah, ah
jns 0x41a21f
mov eax, dword [esi + 0x21868]
or al, 8
mov dword [esi + 0x21868], eax
push 0x5a
call edi
test ah, ah
jns 0x41a235
mov eax, dword [esi + 0x21864]
or al, 8
mov dword [esi + 0x21864], eax
push 0x58
call edi
test ah, ah
jns 0x41a24b
mov eax, dword [esi + 0x21864]
or al, 0x20
mov dword [esi + 0x21864], eax
push 0x43
call edi
test ah, ah
jns 0x41a261
mov eax, dword [esi + 0x21864]
or al, 0x40
mov dword [esi + 0x21864], eax
push 0x56
call edi
test ah, ah
jns 0x41a277
mov eax, dword [esi + 0x21868]
or al, 4
mov dword [esi + 0x21868], eax
push 0x54
call edi
test ah, ah
jns 0x41a286
or byte [esi + 0x21329], 8
push 0x47
call edi
test ah, ah
jns 0x41a295
or byte [esi + 0x21329], 4
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x41a410
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, ecx
mov al, byte [esi + 0xa]
mov dword [esi + 0x2186c], 0
cmp al, 0x11
jne 0x41a451
mov al, byte [esi + 0x21329]
push 2
and eax, 0xfc
mov dword [esi + 0x2186c], eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, dword [esi + 0x2186c]
shr eax, 0xe
and eax, 2
or ecx, eax
mov dword [esi + 0x2186c], ecx
pop esi
ret

Function at 0x41a5a0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0xa], 0x14
jne 0x41a6f1
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov al, byte [esi + 0x21329]
test ah, ah
jns 0x41a5c8
or al, 0x80
jmp 0x41a5ca
and al, 0x7e
mov byte [esi + 0x21329], al
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [esi + 0x21350]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [esi + 0x21350]
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [0x518028]
test eax, eax
je 0x41a618
mov edx, dword [0x518024]
mov eax, dword [esp + 0x28]
sub eax, edx
mov dword [esp + 0x28], eax
mov al, byte [0x528bba]
test al, al
jne 0x41a634
mov eax, dword [esi + 0xd0]
cmp byte [eax + 4], 2
je 0x41a634
mov eax, 8
jmp 0x41a636
xor eax, eax
fild dword [esp + 0x18]
fild dword [esp + 0x28]
lea ecx, [eax + eax]
mov edx, 0xf0
sub edx, ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
fidiv dword [esp + 0xc]
fdivp st(1)
call fcn.0048ae50
fild dword [esp + 0x14]
fild dword [esp + 0x24]
mov edi, eax
mov dword [esp + 0x18], edi
fmul dword [0x497748]
fdivp st(1)
call fcn.0048ae50
test eax, eax
mov dword [esp + 0x14], eax
jle 0x41a6f1
mov edx, 0xff
cmp eax, edx
jge 0x41a6f1
test edi, edi
jle 0x41a6f1
cmp edi, 0xef
jge 0x41a6f1
mov ebx, dword [esi + 0xdc]
mov ecx, edi
shl ecx, 4
add ecx, edi
shl ecx, 4
add ecx, ebx
mov al, byte [ecx + eax + 0x96e4]
and al, 0x3f
mov byte [esp + 0xc], al
mov eax, dword [esp + 0xc]
and eax, edx
lea ecx, [esi + eax*2]
add ecx, eax
cmp byte [ecx + 0xd], dl
jne 0x41a6ea
cmp byte [ecx + 0xe], dl
jne 0x41a6ea
lea ecx, [esi + eax*2 + 0xa]
cmp byte [eax + ecx + 5], dl
jne 0x41a6ea
mov al, byte [esi + 0x21329]
pop edi
or al, 0x40
mov byte [esi + 0x21329], al
pop esi
pop ebx
add esp, 0x20
ret
and byte [esi + 0x21329], 0xbf
pop edi
pop esi
pop ebx
add esp, 0x20
ret
Function at 0x41c160
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov bl, byte [esp + 0xc]
push esi
mov esi, ecx
mov ecx, dword [esi + 0xe8]
mov byte [esi + 0x2134c], bl
and bl, 0xf
mov eax, dword [ecx]
push ebx
call dword [eax + 0x3c]
cmp byte [esi + 0x21354], 2
jne 0x41c1b9
mov esi, dword [esi + 0x21364]
test esi, esi
je 0x41c1b9
lea ecx, [esp + 8]
push 0
push ecx
lea edx, [esp + 0x18]
push 3
push edx
mov byte [esp + 0x22], 0
push esi
mov byte [esp + 0x24], 0xff
mov byte [esp + 0x25], 1
mov byte [esp + 0x26], bl
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ecx
ret 4
Function at 0x41cb00
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 0x21364]
cmp eax, edi
je 0x41cbef
cmp byte [esi + 0x21354], 3
jne 0x41cbd7
mov cl, byte [esp + 0x24]
test cl, cl
jne 0x41cbd7
lea eax, [esp + 0x20]
push esi
push eax
mov dword [esp + 0x28], edi
mov byte [esp + 0x2c], 0xff
mov byte [esp + 0x2d], 2
call fcn.00438afd
add esp, 8
test eax, eax
jne 0x41cb63
mov ecx, esi
call fcn.0041c720
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
mov ecx, dword [esi + 0x21364]
push 1
push edi
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esi + 0x21364]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
lea edx, [esp + 0x14]
mov dword [esi + 0x21360], eax
push edi
push edx
lea eax, [esp + 0x2c]
push 2
push eax
push ecx
call ebx
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x14]
push edi
push edx
mov ecx, dword [eax + 4]
mov edx, dword [esi + 0x21364]
add ecx, 0x20
push ecx
push eax
push edx
call ebx
mov eax, dword [esp + 0x20]
cmp eax, edi
je 0x41cca8
push eax
call fcn.0048ace4
add esp, 4
mov byte [esi + 0x21354], 2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
cmp eax, edi
je 0x41cbef
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x21364], edi
mov byte [esi + 0x21354], 0
mov ebp, dword [esp + 0x20]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push edi
push 0x80
push 3
push edi
push edi
push 0xc0000000
push ebp
call ebx
cmp eax, 0xffffffff
mov dword [esi + 0x21364], eax
je 0x41ccaf
push edi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 8
push eax
call edi
mov edx, dword [esi + 0x21364]
lea eax, [esp + 0x18]
push 0
push eax
lea ecx, [esp + 0x1b]
push 1
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esi + 0x21364]
push 0
push 0
push 0x14
push eax
call edi
mov edx, dword [esi + 0x21364]
lea ecx, [esp + 0x18]
push 0
push ecx
push 4
push esi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 0x21364]
push 2
push 0
push 0
push eax
call edi
mov al, byte [esp + 0x13]
cmp al, 1
jne 0x41ccb9
push 0
push 0
mov ecx, esi
mov byte [esi + 0x21354], 3
call fcn.0041cb00
mov bl, byte [esp + 0x24]
and bl, 0xf0
mov dword [esi + 0x2135c], 0
mov byte [esi + 0x21355], bl
mov byte [esi + 0x21354], 2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
test al, al
jne 0x41cc91
push 0
mov ecx, esi
call fcn.00411b30
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebp
call ebx
cmp eax, 0xffffffff
mov dword [esi + 0x21364], eax
je 0x41ccaf
mov bl, byte [esp + 0x24]
mov dword [esi + 0x21360], 0
test bl, 1
je 0x41cd14
push 2
push 0
push 0
push eax
call edi
push 0
push 0
mov ecx, esi
mov byte [esi + 0x21354], 3
call fcn.0041cb00
mov ecx, dword [esi + 0x21364]
push 2
push 0
push 0
push ecx
call edi
jmp 0x41cc95
Function at 0x41ce20
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 0x21364]
test eax, eax
je 0x41cec3
cmp byte [esi + 0x21354], 1
jne 0x41cec3
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov eax, dword [esi + 0x21364]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0x10
push eax
call edi
mov eax, dword [esi + 0x21364]
lea ecx, [esp + 0xc]
push 0
push ecx
lea edx, [esp + 0x10]
push 4
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 8]
mov ecx, dword [esi + 0x21364]
push 0
push 0
inc eax
push 0x10
push ecx
mov dword [esp + 0x18], eax
call edi
mov ecx, dword [esi + 0x21364]
lea edx, [esp + 0xc]
push 0
push edx
lea eax, [esp + 0x10]
push 4
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esi + 0x21364]
push 2
push 0
push 0
push edx
call edi
mov byte [esi + 0x21354], 2
pop edi
pop esi
add esp, 8
ret
Function at 0x439590
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov al, byte [0x5167f5]
sub esp, 0x20
test al, al
push ebx
push ebp
push esi
push edi
jne 0x439697
mov eax, dword [0x517ff0]
mov ecx, dword [0x4a0c7c]
push 0x21
push 0x401
push eax
push ecx
call sub.WSOCK32.dll_WSAAsyncSelect
cmp eax, 0xffffffff
jne 0x4395da
pop edi
pop esi
pop ebp
mov byte [0x5167f5], 1
mov byte [0x5167f3], 0
xor al, al
pop ebx
add esp, 0x20
ret
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageA]
mov ebx, 1
push ebx
push 0
push 0
lea edx, [esp + 0x20]
push 0
push edx
call esi
test eax, eax
je 0x4395f1
mov eax, dword [esp + 0x18]
cmp eax, 0x111
je 0x4396a1
cmp eax, 0x401
je 0x439629
lea eax, [esp + 0x14]
push eax
call edi
lea ecx, [esp + 0x14]
push ecx
call ebp
jmp 0x4395f1
mov eax, dword [esp + 0x20]
mov edx, eax
shr edx, 0x10
jne 0x43968a
cmp ax, bx
jne 0x439680
mov ecx, dword [0x4a0c7c]
push 0
lea eax, [esp + 0x17]
push ebx
push eax
push ecx
call sub.WSOCK32.dll_recv
cmp eax, 0xffffffff
je 0x43968a
test eax, eax
jle 0x4395f1
mov edx, dword [0x517ff0]
mov eax, dword [0x4a0c7c]
push 0x20
push 0x401
push edx
push eax
call sub.WSOCK32.dll_WSAAsyncSelect
cmp eax, 0xffffffff
je 0x43968a
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
cmp ax, 0x20
jne 0x4395f1
mov byte [0x5167f5], bl
mov byte [0x5167f3], 0
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x20
ret
cmp word [esp + 0x1c], 0x9c4c
jmp 0x439684

Function at 0x4396b0
Capabilities:
Send data
Send data on socket

Disassembly:
mov al, byte [0x5167f5]
sub esp, 0x1c
test al, al
push ebx
push ebp
push esi
push edi
jne 0x439794
mov eax, dword [0x517ff0]
mov ecx, dword [0x4a0c7c]
push 0x22
push 0x401
push eax
push ecx
call sub.WSOCK32.dll_WSAAsyncSelect
cmp eax, 0xffffffff
je 0x439786
mov bl, byte [esp + 0x30]
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push 0
push 0
lea edx, [esp + 0x1c]
push 0
push edx
call esi
test eax, eax
je 0x4396fc
mov eax, dword [esp + 0x14]
cmp eax, 0x111
je 0x4397a8
cmp eax, 0x401
je 0x439735
lea eax, [esp + 0x10]
push eax
call edi
lea ecx, [esp + 0x10]
push ecx
call ebp
jmp 0x4396fc
mov eax, dword [esp + 0x1c]
mov edx, eax
shr edx, 0x10
jne 0x439786
cmp ax, 2
jne 0x43979c
mov ecx, dword [0x4a0c7c]
push 0
lea eax, [esp + 0x34]
push 1
push eax
push ecx
mov byte [esp + 0x40], bl
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
je 0x439786
test eax, eax
jle 0x4396fc
mov edx, dword [0x517ff0]
mov eax, dword [0x4a0c7c]
push 0x20
push 0x401
push edx
push eax
call sub.WSOCK32.dll_WSAAsyncSelect
cmp eax, 0xffffffff
jne 0x439794
mov byte [0x5167f5], 1
mov byte [0x5167f3], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
cmp ax, 0x20
jne 0x4396fc
jmp 0x439786
cmp word [esp + 0x18], 0x9c4c
jne 0x4396fc
jmp 0x439786
Function at 0x43a070
Capabilities:
Read .ini file

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
lea edi, [ebx + ebx + 1]
push edi
call fcn.0048ac32
mov esi, eax
add esp, 4
test esi, esi
mov dword [esp + 0x1c], esi
je 0x43a0d5
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push eax
push edi
push esi
push 0x5167f8
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x43a0cc
test ebx, ebx
jle 0x43a0cc
mov edi, dword [esp + 0x20]
push esi
call fcn.0043a020
add esp, 4
mov byte [edi], al
add esi, 2
inc edi
dec ebx
jne 0x43a0b6
mov esi, dword [esp + 0x1c]
push esi
call fcn.0048ace4
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x43a910
Capabilities:
Read .ini file

Disassembly:
sub esp, 0xa0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push esi
mov esi, dword [esp + 0xac]
push edi
mov edi, dword [esp + 0xb4]
push esi
push 0
push str.DisableCheat
push edi
call ebx
push esi
push 0
push str.ctcmpdtf1
push edi
mov dword [0x5201c8], eax
call ebx
push esi
push 0
push str.ctcmpdtf2
push edi
mov dword [0x520214], eax
call ebx
push esi
push 0
push str.ctcmpdtf3
push edi
mov dword [0x520218], eax
call ebx
push esi
push 0
push str.ctcmpdtf4
push edi
mov dword [0x52021c], eax
call ebx
push esi
push 0
push str.ctcmpdtf5
push edi
mov dword [0x520220], eax
call ebx
push esi
push 0
push str.ctcmpdtf6
push edi
mov dword [0x520224], eax
call ebx
push esi
push 0
push str.cc_clistedit1
push edi
mov dword [0x520228], eax
call ebx
push esi
push 0
push str.cc_clistedit2
push edi
mov dword [0x5201cc], eax
call ebx
push esi
push 0
push str.cc_csrchrb1
push edi
mov dword [0x5201d0], eax
call ebx
push esi
push 0
push str.cc_csrchrb2
push edi
mov dword [0x52022c], eax
call ebx
push esi
push 0
push str.cc_csrchrb3
push edi
mov dword [0x520230], eax
call ebx
push esi
mov dword [0x520234], eax
push 0
push str.FontColor
push edi
call ebx
mov dword [0x520398], eax
push esi
lea eax, [esp + 0x34]
push 0x79
push eax
push 0x5167f8
push str.LogFont
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x43aa48
lea ecx, [esp + 0x30]
xor ebx, ebx
mov dword [esp + 0xc], ecx
mov edx, dword [esp + 0xc]
push edx
call fcn.0043a020
mov ecx, dword [esp + 0x10]
add esp, 4
mov byte [ebx + 0x518174], al
inc ebx
add ecx, 2
cmp ebx, 0x3c
mov dword [esp + 0xc], ecx
jb 0x43aa24
push esi
lea eax, [esp + 0x14]
push 0x1d
push eax
push 0x5167f8
push str.CC_List_Order
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x43aa9c
lea ecx, [esp + 0x10]
mov ebx, 0x5201dc
mov dword [esp + 0xc], ecx
mov edx, dword [esp + 0xc]
push edx
call fcn.0043a020
mov edx, dword [esp + 0x10]
and eax, 0xff
mov dword [ebx], eax
add ebx, 4
add esp, 4
add edx, 2
cmp ebx, 0x5201f8
mov dword [esp + 0xc], edx
jl 0x43aa72
push esi
lea eax, [esp + 0x14]
push 0x1d
push eax
push 0x5167f8
push str.CC_List_Width
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x43aaf6
xor esi, esi
lea ebx, [esp + esi + 0x12]
lea ecx, [ebx - 2]
push ecx
call fcn.0043a020
and eax, 0xff
push ebx
mov edi, eax
shl edi, 8
mov dword [esi + 0x5201f8], edi
call fcn.0043a020
and eax, 0xff
add esi, 4
or eax, edi
add esp, 8
mov dword [esi + 0x5201f4], eax
cmp esi, 0x1c
jl 0x43aabb
pop edi
pop esi
pop ebx
add esp, 0xa0
ret
Function at 0x43c7b0
Capabilities:
Read .ini file

Disassembly:
mov ecx, dword [esp + 0xc]
sub esp, 0x124
push ebx
push ebp
push esi
push edi
call fcn.0047f041
mov edi, dword [esp + 0x13c]
mov ebp, dword [esp + 0x138]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
mov esi, 9
push esi
lea eax, [esp + 0x14]
push str.RECENT_i
push eax
call ebx
add esp, 0xc
lea ecx, [esp + 0x30]
lea edx, [esp + 0x10]
mov byte [esp + 0x30], 0
push ebp
push 0x104
push ecx
push 0x5167f8
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x43c822
mov ecx, dword [esp + 0x140]
lea eax, [esp + 0x30]
push eax
call fcn.0047f064
dec esi
jns 0x43c7dc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret

Function at 0x43c8b0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x28
push ebx
mov ebx, dword [esp + 0x30]
push ebp
mov ebp, dword [esp + 0x38]
push esi
push edi
mov edi, dword [esp + 0x44]
push ebx
push 0xffffffffffffffff
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x43c963
mov esi, dword [esp + 0x48]
mov ecx, dword [esp + 0x12]
mov edx, dword [esp + 0x13]
and eax, 0xff
mov dword [esi], eax
mov eax, dword [esp + 0x11]
and eax, 0xff
and ecx, 0xff
and edx, 0xff
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
mov al, byte [0x528b88]
test al, al
jne 0x43c963
mov al, byte [0x528b89]
test al, al
je 0x43c963
lea edx, [esp + 0x18]
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x43c926
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
add esi, 0x10
repne scasb al, byte es:[edi]
mov eax, dword [str._GUID]
mov cx, word [0x4a17a8]
dec edi
push esi
lea edx, [esp + 0x1c]
push 0x10
mov dword [edi], eax
push edx
push ebp
push ebx
mov word [edi + 4], cx
call fcn.0043a070
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x43c970
Capabilities:
Read .ini file

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x18]
push esi
push 0x4a1804
push edi
push ebx
call fcn.0043c8b0
lea eax, [esi + 0x20]
push eax
push str.DOUN
push edi
push ebx
call fcn.0043c8b0
lea ecx, [esi + 0x40]
push ecx
push str.LEFT
push edi
push ebx
call fcn.0043c8b0
lea edx, [esi + 0x60]
push edx
push str.RIGHT
push edi
push ebx
call fcn.0043c8b0
add esp, 0x40
lea eax, [esi + 0x80]
push eax
push str.SELECT
push edi
push ebx
call fcn.0043c8b0
lea ecx, [esi + 0xa0]
push ecx
push str.START
push edi
push ebx
call fcn.0043c8b0
lea edx, [esi + 0xc0]
push edx
push 0x4a17d8
push edi
push ebx
call fcn.0043c8b0
lea eax, [esi + 0xe0]
push eax
push 0x4a17d4
push edi
push ebx
call fcn.0043c8b0
add esp, 0x40
lea ecx, [esi + 0x100]
push ecx
push 0x4a17d0
push edi
push ebx
call fcn.0043c8b0
lea edx, [esi + 0x120]
push edx
push 0x4a17cc
push edi
push ebx
call fcn.0043c8b0
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
add esp, 0x20
push ebx
push 0x1e
push str.TBSPD
push edi
call ebp
push ebx
push 0x1e
push str.TASPD
push edi
mov dword [esi + 0x140], eax
call ebp
push ebx
push 0
push str.AutoFireToggle
push edi
mov dword [esi + 0x144], eax
call ebp
mov dword [esi + 0x148], eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x43cb60
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x104
lea eax, [esp]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp]
push str..ini
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionA]
mov eax, dword [esp + 0x108]
lea edx, [esp]
push edx
add eax, 0x1f80
push 0x104
push eax
push 0x5167f8
push str.FILENAME
push str.RESOURCE
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, 1
add esp, 0x104
ret

Function at 0x43cbc0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x104
lea eax, [esp]
push esi
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 4]
push str..ini
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionA]
mov esi, dword [esp + 0x10c]
lea edx, [esp + 4]
push edx
push 0x104
lea eax, [esi + 0x1448]
push eax
push 0x5167f8
push str.OpenPath
push 0x4a1888
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esi + 0x1550]
lea edx, [esp + 4]
push ecx
push str.PATH
push edx
call fcn.0043ade0
lea eax, [esi + 0xa1c]
lea ecx, [esp + 0x10]
push eax
push str.RECENT
push ecx
call fcn.0043c7b0
push esi
lea edx, [esp + 0x20]
push str.NESMAIN
push edx
call fcn.0043b270
lea eax, [esi + 0x40]
lea ecx, [esp + 0x28]
push eax
push str.Graphics
push ecx
call fcn.0043bdb0
lea edx, [esi + 0x18c]
lea eax, [esp + 0x34]
push edx
push str.SOUND
push eax
call fcn.0043b920
lea ecx, [esp + 0x40]
push str.CheatDlgState
push ecx
call fcn.0043a910
add esp, 0x44
add esi, 0x1c8
lea edx, [esp + 4]
push esi
push edx
call fcn.0043ca80
lea eax, [esp + 0xc]
push str.Preview
push eax
call fcn.0043a150
add esp, 0x10
mov al, 1
pop esi
add esp, 0x104
ret
Function at 0x43dbb7
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
lea eax, [ebp - 0x10c]
push 0x104
xor edi, edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [ebp - 0x10c]
push str.DISKSYS.ROM
push eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
push edi
push 0x80
push 3
push edi
push edi
lea eax, [ebp - 0x10c]
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x43dce5
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, 0x2000
cmp eax, esi
jae 0x43dc4d
push 0x30
push str.Error
push str.Incorrect_File_size.
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x43dc70
je 0x43dc62
push edi
push edi
push 0x6010
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x43dc70
push esi
call fcn.0048ac32
cmp eax, edi
pop ecx
mov dword [ebp - 8], eax
jne 0x43dc79
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x43dce5
lea ecx, [ebp - 4]
push edi
push ecx
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], esi
je 0x43dca1
push 0x30
push str.Error
push str.File_Read_Error.
jmp 0x43dcdc
push esi
push dword [ebp - 8]
call fcn.0045d8d0
pop ecx
cmp eax, 0x5e607dcf
pop ecx
mov dword [ebp - 4], eax
jne 0x43dcd0
push 0x40
push str.Pass
push str.FDS_BIOS_is_correct.
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
inc eax
jmp 0x43dce7
push 0x30
push str.Error
push str.FDS_BIOS_is_Incorrect.
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret