joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457a02
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], 0
jmp 0x457a1d
mov eax, dword [ebp - 0x40]
add eax, 1
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 7
jge 0x457a6f
push 0x3c
push 0
lea ecx, [ebp - 0x3c]
push ecx
call fcn.004b9030
add esp, 0xc
mov edx, dword [ebp - 0x40]
add edx, 1
push edx
push str.ITEM_d
lea eax, [ebp - 0x3c]
push eax
call fcn.004b953d
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 0
lea edx, [ebp - 0x3c]
push edx
push str.QCCHECK
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x44]
mov dword [edx + ecx*4 + 0x778], eax
jmp 0x457a14
push 0x58
push 0
mov eax, dword [ebp - 0x44]
add eax, 0x794
push eax
call fcn.004b9030
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 0x29
mov edx, dword [ebp - 0x44]
add edx, 0x794
push edx
push 0
push str.MODELNAME
push 0x5282d4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp + 8]
push eax
push 0x15
mov ecx, dword [ebp - 0x44]
add ecx, 0x7bd
push ecx
push 0
push 0x5282e0
push 0x5282e4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edx, dword [ebp + 8]
push edx
push 9
mov eax, dword [ebp - 0x44]
add eax, 0x7d2
push eax
push 0
push str.FWVERSION
push 0x5282fc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [ebp + 8]
push ecx
push 0
push str.BADBLOCK
push 0x528314
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edx, dword [ebp - 0x44]
mov dword [edx + 0x7e0], eax
mov eax, dword [ebp + 8]
push eax
push 0
push str.SATASPEED
push 0x52832c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 0x44]
mov dword [ecx + 0x7e4], eax
mov edx, dword [ebp + 8]
push edx
push 0
push str.DISKSIZETYPE
push 0x528348
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 0x44]
mov byte [ecx + 0x7db], al
mov edx, dword [ebp + 8]
push edx
push 0
push str.CAPACITY
push 0x528360
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 0x44]
mov dword [ecx + 0x7dc], eax
mov edx, dword [ebp + 8]
push edx
push 0
push 0x52836c
push str.QCCONFIG
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 0x44]
mov dword [ecx + 0x7e8], eax
mov esp, ebp
pop ebp
ret 4
Function at 0x46678c
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
jmp 0x4667a2
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 8
jge 0x4667bd
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax*4 + 0x4fc634]
mov dword [edx + ecx*4], eax
jmp 0x466799
mov esp, ebp
pop ebp
ret
Function at 0x46d436
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
jmp 0x46d45f
mov eax, dword [ebp - 0x48]
add eax, 1
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0x40
jae 0x46d56d
mov ecx, dword [ebp - 0x48]
push ecx
push 0x5304d8
lea edx, [ebp - 0x44]
push edx
call fcn.004b953d
add esp, 0xc
mov eax, dword [ebp - 0x50]
add eax, 0x8ec
push eax
push 0x40
lea ecx, [ebp - 0x40]
push ecx
push 0
lea edx, [ebp - 0x44]
push edx
push 0x5304dc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x46d4ac
jmp 0x46d56d
push str.0_255
lea eax, [ebp - 0x40]
push eax
call fcn.004b9e90
add esp, 8
test eax, eax
jne 0x46d4d7
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x50]
mov dword [edx + ecx*4 + 0x112c], 0x100
jmp 0x46d568
push 0x5304f4
lea eax, [ebp - 0x40]
push eax
call fcn.004b9e90
add esp, 8
test eax, eax
jne 0x46d4ff
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x50]
mov dword [edx + ecx*4 + 0x112c], 0x101
jmp 0x46d568
push 0x530500
lea eax, [ebp - 0x40]
push eax
call fcn.004b9e90
add esp, 8
test eax, eax
jne 0x46d527
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x50]
mov dword [edx + ecx*4 + 0x112c], 0x102
jmp 0x46d568
push 0x53050c
lea eax, [ebp - 0x40]
push eax
call fcn.004b9e90
add esp, 8
test eax, eax
jne 0x46d54f
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x50]
mov dword [edx + ecx*4 + 0x112c], 0x103
jmp 0x46d568
lea eax, [ebp - 0x40]
push eax
call fcn.004a070d
add esp, 4
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x50]
mov dword [edx + ecx*4 + 0x112c], eax
jmp 0x46d456
mov esp, ebp
pop ebp
ret
Function at 0x496046
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov dword [ebp - 0x110], ecx
mov eax, dword [ebp - 0x110]
add eax, 0x4dc
push eax
push 0
push str.ENABLEAUTOTEST
push 0x536384
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 0x110]
mov dword [ecx + 0xcfc], eax
cmp dword [0x53c1e4], 0
jne 0x4960a3
cmp dword [0x53c1e0], 0
jne 0x4960a3
cmp dword [0x53bec8], 0
jne 0x4960a3
cmp dword [0x53bf08], 0
je 0x4960cc
mov edx, dword [ebp - 0x110]
mov dword [edx + 0xcfc], 0
push 0
push 0x54f
mov ecx, dword [ebp - 0x110]
call fcn.004dc934
mov ecx, eax
call fcn.004dcd52
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax + 0xcfc]
push ecx
push 0x54f
mov ecx, dword [ebp - 0x110]
call fcn.004dc934
mov ecx, eax
call fcn.00404c70
mov ecx, dword [ebp - 0x110]
call fcn.00495b27
mov dword [ebp - 0x108], 1
jmp 0x496116
mov edx, dword [ebp - 0x108]
add edx, 1
mov dword [ebp - 0x108], edx
cmp dword [ebp - 0x108], 0x11
jge 0x4961a4
push 0x104
push 0
lea eax, [ebp - 0x104]
push eax
call fcn.004b9030
add esp, 0xc
mov ecx, dword [ebp - 0x108]
push ecx
push str.InitialPort_d
lea edx, [ebp - 0x104]
push edx
call fcn.004b953d
add esp, 0xc
mov eax, dword [ebp - 0x110]
add eax, 0x4dc
push eax
push 1
lea ecx, [ebp - 0x104]
push ecx
push 0x53639c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x10c], eax
mov edx, dword [ebp - 0x10c]
push edx
mov eax, dword [ebp - 0x108]
add eax, 0x608
push eax
mov ecx, dword [ebp - 0x110]
call fcn.004dc934
mov ecx, eax
call fcn.00404c70
jmp 0x496107
mov ecx, dword [ebp - 0x110]
add ecx, 0x4dc
push ecx
push 0x14
push str.MinProgSpeed
push 0x5363b4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edx, dword [ebp - 0x110]
mov dword [edx + 0x2200], eax
push 0x104
push 0
lea eax, [ebp - 0x104]
push eax
call fcn.004b9030
add esp, 0xc
mov ecx, dword [ebp - 0x110]
mov edx, dword [ecx + 0x2200]
push edx
push 0x5363bc
lea eax, [ebp - 0x104]
push eax
call fcn.004b953d
add esp, 0xc
lea ecx, [ebp - 0x104]
push ecx
push 0x898
mov ecx, dword [ebp - 0x110]
call fcn.004dca5d
cmp dword [0x53be94], 0
je 0x496251
mov edx, dword [ebp - 0x110]
add edx, 0x4dc
push edx
push 0
push 0x5363c0
push 0x5363d4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 0x110]
mov dword [ecx + 0x220c], eax
mov edx, dword [ebp - 0x110]
mov eax, dword [edx + 0x220c]
push eax
push 0x418
mov ecx, dword [ebp - 0x110]
call fcn.004dc934
mov ecx, eax
call fcn.00404c70
mov ecx, dword [ebp - 0x110]
call fcn.0049fe10
mov esp, ebp
pop ebp
ret
Function at 0x4962a4
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x51c
mov dword [ebp - 0x51c], ecx
push 0x104
push 0
lea eax, [ebp - 0x208]
push eax
call fcn.004b9030
add esp, 0xc
mov ecx, dword [ebp - 0x51c]
add ecx, 0x2d4
push ecx
lea edx, [ebp - 0x208]
push edx
call fcn.004b9290
add esp, 8
push 0x104
push 0
lea eax, [ebp - 0x518]
push eax
call fcn.004b9030
add esp, 0xc
mov ecx, dword [ebp + 0xc]
push ecx
push str.Config_s.ini
lea edx, [ebp - 0x518]
push edx
call fcn.004b953d
add esp, 0xc
lea eax, [ebp - 0x518]
push eax
lea ecx, [ebp - 0x208]
push ecx
call fcn.004b92a0
add esp, 8
lea edx, [ebp - 0x208]
push edx
push 0
push str.BYPASSCHECKB16A
push 0x5363fc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 0x51c]
mov dword [ecx + 0x1028], eax
cmp dword [0x53bec8], 0
je 0x496372
mov edx, dword [ebp - 0x51c]
mov eax, dword [edx + 0x2db4]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x496372
jmp 0x4963bc
lea edx, [ebp - 0x208]
push edx
push 1
push str.DOWNLOADISP
push 0x536410
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 0x51c]
mov dword [ecx + 0x104c], eax
lea edx, [ebp - 0x208]
push edx
push 0
push 0x536418
push 0x536420
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 0x51c]
mov dword [ecx + 0x1050], eax
push 0x104
push 0
lea edx, [ebp - 0x30c]
push edx
call fcn.004b9030
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
push 0x104
lea ecx, [ebp - 0x30c]
push ecx
push 0
push str.FLASHNAME
push 0x536434
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x104
push 0
lea edx, [ebp - 0x414]
push edx
call fcn.004b9030
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
push 0
push str.RDTTEST
push 0x536444
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x310], eax
cmp dword [ebp - 0x310], 0
je 0x496479
cmp dword [0x53b4b8], 0x979
jne 0x496457
push str.ISP2258RDT.bin
lea ecx, [ebp - 0x414]
push ecx
call fcn.004b9290
add esp, 8
jmp 0x496477
cmp dword [0x53b4b8], 0x97a
jne 0x496477
push str.ISP2256RDT.bin
lea edx, [ebp - 0x414]
push edx
call fcn.004b9290
add esp, 8
jmp 0x4964bb
cmp dword [0x53b4b8], 0x979
jne 0x49649b
push str.ISP2258.bin
lea eax, [ebp - 0x414]
push eax
call fcn.004b9290
add esp, 8
jmp 0x4964bb
cmp dword [0x53b4b8], 0x97a
jne 0x4964bb
push str.ISP2256.bin
lea ecx, [ebp - 0x414]
push ecx
call fcn.004b9290
add esp, 8
lea edx, [ebp - 0x30c]
push edx
push str.________________________Current_Parameter_setting__r_nFlash:____s_r_n
mov eax, dword [ebp + 8]
push eax
call fcn.004b953d
add esp, 0xc
push 0x104
push 0
lea ecx, [ebp - 0x104]
push ecx
call fcn.004b9030
add esp, 0xc
lea edx, [ebp - 0x414]
push edx
push str.Firmware:____s_n
lea eax, [ebp - 0x104]
push eax
call fcn.004b953d
add esp, 0xc
lea ecx, [ebp - 0x104]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004b92a0
add esp, 8
mov esp, ebp
pop ebp
ret 8
Function at 0x497001
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov dword [ebp - 0x108], ecx
push 0x208
push 0
mov eax, dword [ebp - 0x108]
add eax, 0x1630
push eax
call fcn.004b9030
add esp, 0xc
mov ecx, dword [ebp - 0x108]
add ecx, 0x6e4
push ecx
push 0x208
mov edx, dword [ebp - 0x108]
add edx, 0x1630
push edx
push 0
push str.MESLOGDIR
push 0x536688
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp - 0x108]
movsx ecx, byte [eax + 0x1630]
test ecx, ecx
jne 0x4970a8
mov edx, dword [ebp - 0x108]
add edx, 0x2d4
push edx
mov eax, dword [ebp - 0x108]
add eax, 0x1630
push eax
call fcn.004b9290
add esp, 8
push str.Log_file
mov ecx, dword [ebp - 0x108]
add ecx, 0x1630
push ecx
call fcn.004b92a0
add esp, 8
push 0x104
push 0
lea edx, [ebp - 0x104]
push edx
call fcn.004b9030
add esp, 0xc
mov eax, dword [ebp - 0x108]
xor ecx, ecx
mov cx, word [eax + 0x21f0]
push ecx
mov edx, dword [ebp - 0x108]
xor eax, eax
mov ax, word [edx + 0x21ec]
push eax
mov ecx, dword [ebp - 0x108]
xor edx, edx
mov dx, word [ecx + 0x21ea]
push edx
push str._04d_02d_02d_000.txt
lea eax, [ebp - 0x104]
push eax
call fcn.004b953d
add esp, 0x14
push 0x5366b0
mov ecx, dword [ebp - 0x108]
add ecx, 0x1630
push ecx
call fcn.004b92a0
add esp, 8
lea edx, [ebp - 0x104]
push edx
mov eax, dword [ebp - 0x108]
add eax, 0x1630
push eax
call fcn.004b92a0
add esp, 8
mov ecx, dword [ebp - 0x108]
mov dword [ecx + 0x162c], 0
mov esp, ebp
pop ebp
ret
Function at 0x499320
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc18
mov dword [ebp - 0xc14], ecx
mov eax, 1
test eax, eax
je 0x499344
mov dword [ebp - 0xc18], 0
jmp 0x499357
push str._TCPIP_:_Report_BadCnt_Result_n
call fcn.00411ec0
add esp, 4
mov dword [ebp - 0xc18], eax
mov dword [ebp - 0x810], 1
jmp 0x499372
mov ecx, dword [ebp - 0x810]
add ecx, 1
mov dword [ebp - 0x810], ecx
mov edx, dword [ebp - 0xc14]
xor eax, eax
mov al, byte [edx + 0x15c8]
add eax, 1
cmp dword [ebp - 0x810], eax
jge 0x499514
push 0x800
push 0
lea ecx, [ebp - 0x80c]
push ecx
call fcn.004b9030
add esp, 0xc
push str._TEST_ACK
lea edx, [ebp - 0x80c]
push edx
call fcn.004b9290
add esp, 8
push 0xa
push 0
lea eax, [ebp - 0xc]
push eax
call fcn.004b9030
add esp, 0xc
mov ecx, dword [ebp - 0xc14]
mov edx, dword [ecx + 0x15c4]
push edx
push 0x536d40
lea eax, [ebp - 0xc]
push eax
call fcn.004b953d
add esp, 0xc
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x80c]
push edx
call fcn.004b92a0
add esp, 8
push 0xa
push 0
lea eax, [ebp - 0xc]
push eax
call fcn.004b9030
add esp, 0xc
mov ecx, dword [ebp - 0x810]
push ecx
push str.__02d
lea edx, [ebp - 0xc]
push edx
call fcn.004b953d
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x80c]
push ecx
call fcn.004b92a0
add esp, 8
mov edx, dword [ebp - 0x810]
mov eax, dword [ebp - 0xc14]
cmp dword [eax + edx*4 + 0x15dc], 0
je 0x499461
push str._FFFF
lea ecx, [ebp - 0x80c]
push ecx
call fcn.004b92a0
add esp, 8
jmp 0x4994a6
push 0x400
push 0
lea edx, [ebp - 0xc10]
push edx
call fcn.004b9030
add esp, 0xc
lea eax, [ebp - 0xc10]
push eax
mov ecx, dword [ebp - 0x810]
push ecx
mov ecx, dword [ebp - 0xc14]
call fcn.00499535
lea edx, [ebp - 0xc10]
push edx
lea eax, [ebp - 0x80c]
push eax
call fcn.004b92a0
add esp, 8
push 0x536d58
lea ecx, [ebp - 0x80c]
push ecx
call fcn.004b92a0
add esp, 8
lea edx, [ebp - 0x80c]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0
lea eax, [ebp - 0x80c]
push eax
call fcn.004b9f20
add esp, 4
push eax
lea ecx, [ebp - 0x80c]
push ecx
mov ecx, dword [ebp - 0xc14]
add ecx, 0x137c
mov edx, dword [ebp - 0xc14]
mov eax, dword [edx + 0x137c]
call dword [eax + 0x18]
push 1
lea ecx, [ebp - 0x80c]
push ecx
mov ecx, dword [ebp - 0xc14]
call fcn.00498b88
jmp 0x499363
mov edx, dword [ebp - 0xc14]
mov dword [edx + 0x1620], 0
mov eax, dword [ebp - 0xc14]
mov byte [eax + 0x15c8], 0
mov esp, ebp
pop ebp
ret
Function at 0x49e4c5
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov dword [ebp - 0x20c], ecx
cmp dword [0x53b430], 0
je 0x49e565
push 0x104
push 0
lea eax, [ebp - 0x104]
push eax
call fcn.004b9030
add esp, 0xc
push 0x104
push 0
lea ecx, [ebp - 0x208]
push ecx
call fcn.004b9030
add esp, 0xc
push str.C:SMI_Port_InfoBypassVol.map
lea edx, [ebp - 0x104]
push edx
call fcn.004b9290
add esp, 8
lea eax, [ebp - 0x104]
push eax
push 0x104
lea ecx, [ebp - 0x208]
push ecx
push 0x53c73c
push 0x537990
push 0x537994
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0
push 5
lea edx, [ebp - 0x208]
push edx
mov ecx, dword [ebp - 0x20c]
add ecx, 0xd4
call fcn.004a02a0
mov esp, ebp
pop ebp
ret

Function at 0x49fb96
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x28], ecx
push 0x208
push 0
mov eax, dword [ebp - 0x28]
add eax, 0x2420
push eax
call fcn.004b9030
add esp, 0xc
mov ecx, dword [ebp - 0x28]
add ecx, 0x2d4
push ecx
mov edx, dword [ebp - 0x28]
add edx, 0x2420
push edx
call fcn.004b9290
add esp, 8
push str.Layout.set
mov eax, dword [ebp - 0x28]
add eax, 0x2420
push eax
call fcn.004b92a0
add esp, 8
push 0x22
push 0
mov ecx, dword [ebp - 0x28]
add ecx, 0x2628
push ecx
call fcn.004b9030
add esp, 0xc
mov edx, dword [ebp - 0x28]
add edx, 0x2420
push edx
push 0
push str.PackageNo
push 0x537b80
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 0x28]
mov byte [ecx + 0x2629], al
mov edx, dword [ebp - 0x28]
add edx, 0x2420
push edx
push 2
push str.CeNoByPackage
push 0x537b98
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 0x28]
mov byte [ecx + 0x2628], al
mov dword [ebp - 0x20], 0
jmp 0x49fc5b
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0x20], 0x10
jge 0x49fd06
mov dword [ebp - 0x24], 0
jmp 0x49fc77
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 2
jge 0x49fd01
push 0xa
push 0
lea ecx, [ebp - 0xc]
push ecx
call fcn.004b9030
add esp, 0xc
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x20]
add eax, 1
push eax
push str.F_d__d
lea ecx, [ebp - 0xc]
push ecx
call fcn.004b953d
add esp, 0x10
mov edx, dword [ebp - 0x28]
add edx, 0x2420
push edx
push 0xa
lea eax, [ebp - 0x18]
push eax
push 0
lea ecx, [ebp - 0xc]
push ecx
push str.LAYOUT
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
movsx edx, byte [ebp - 0x18]
test edx, edx
je 0x49fcfc
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.004a0599
add esp, 8
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
lea ecx, [eax + edx*2]
mov edx, dword [ebp - 0x28]
mov al, byte [ebp - 0x1c]
mov byte [edx + ecx + 0x262a], al
jmp 0x49fc6e
jmp 0x49fc52
mov ecx, dword [ebp - 0x28]
call fcn.0049fd12
mov esp, ebp
pop ebp
ret
Function at 0x4a229f
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov dword [ebp - 0x220], 0
cmp dword [ebp + 8], 0xffffffff
jne 0x4a22ca
push str._Send_Genesys_ScanDevice_:_CreateHandle_failed
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
jmp 0x4a23b6
push 0x200
push 0
lea eax, [ebp - 0x200]
push eax
call fcn.004b9030
add esp, 0xc
push 0x10
push 0
lea ecx, [ebp - 0x210]
push ecx
call fcn.004b9030
add esp, 0xc
mov byte [ebp - 0x210], 0xf8
mov byte [ebp - 0x20f], 0xff
mov byte [ebp - 0x205], 1
mov edx, dword [ebp + 8]
push edx
push 0x1e
lea eax, [ebp - 0x200]
push eax
push 0x200
push 0x10
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x21c]
push edx
call fcn.004a9ea3
add esp, 0x1c
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x4a23b4
mov eax, dword [ebp - 0x180]
and eax, 0xff
cmp eax, 0x53
jne 0x4a23b4
mov ecx, dword [ebp - 0x17f]
and ecx, 0xff
cmp ecx, 0x4d
jne 0x4a23b4
mov edx, dword [ebp - 0x17e]
and edx, 0xff
cmp edx, 0x49
jne 0x4a23b4
cmp dword [ebp + 0x10], 0x200
ja 0x4a2395
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x200]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.004b96d0
add esp, 0xc
jmp 0x4a23ad
push 0x200
lea eax, [ebp - 0x200]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004b96d0
add esp, 0xc
mov eax, 1
jmp 0x4a23b6
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4a2acc
Capabilities:
Unmount volume via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push 0x104
push 0
lea eax, [ebp - 0x108]
push eax
call fcn.004b9030
add esp, 0xc
cmp dword [0x53b450], 0
je 0x4a2b3b
mov ecx, dword [ebp + 8]
mov edx, dword [ecx*4 + 0x53c9a4]
push edx
lea eax, [ebp - 0x108]
push eax
call fcn.004a2f69
add esp, 8
test eax, eax
jne 0x4a2b39
mov ecx, dword [ebp + 8]
sub ecx, 1
imul ecx, ecx, 0xff
add ecx, 0x53ce60
push ecx
push 0x537fe8
lea edx, [ebp - 0x108]
push edx
call fcn.004b953d
add esp, 0xc
jmp 0x4a2b8a
mov eax, dword [ebp + 8]
movsx ecx, byte [eax + 0x53ca20]
cmp ecx, 0x43
jl 0x4a2b6b
mov edx, dword [ebp + 8]
movsx eax, byte [edx + 0x53ca20]
push eax
push 0x537fec
lea ecx, [ebp - 0x108]
push ecx
call fcn.004b953d
add esp, 0xc
jmp 0x4a2b8a
mov edx, dword [ebp + 8]
movsx eax, byte [edx + 0x53ca20]
push eax
push 0x537ff4
lea ecx, [ebp - 0x108]
push ecx
call fcn.004b953d
add esp, 0xc
mov edx, dword [ebp + 0xc]
mov dword [edx], 0xffffffff
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0xffffffff
jne 0x4a2bc0
xor eax, eax
jmp 0x4a2c20
cmp dword [ebp + 0x10], 0
jne 0x4a2bcd
mov eax, 1
jmp 0x4a2c20
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
push 0
push 0x90018
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [eax + 0x53c9e8]
cmp ecx, 1
jne 0x4a2c1b
push 0
lea edx, [ebp - 4]
push edx
push 0
push 0
push 0
push 0
push 0x90020
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x4a2e54
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 4], 0
push 0
push 0
push 3
push 0
push 3
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x4a2eca
push 0
lea ecx, [ebp - 8]
push ecx
push 0xc
lea edx, [ebp - 0x14]
push edx
push 0
push 0
push 0x2d1080
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4a2ec0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
mov dword [ecx], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4a2ed1
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push 0x104
push 0
lea eax, [ebp - 0x108]
push eax
call fcn.004b9030
add esp, 0xc
movsx ecx, byte [ebp + 8]
push ecx
push 0x53800c
lea edx, [ebp - 0x108]
push edx
call fcn.004b953d
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 5
jne 0x4a2f23
xor eax, eax
jmp 0x4a2f65
push 0x104
push 0
lea ecx, [ebp - 0x108]
push ecx
call fcn.004b9030
add esp, 0xc
movsx edx, byte [ebp + 8]
push edx
push 0x538010
lea eax, [ebp - 0x108]
push eax
call fcn.004b953d
add esp, 0xc
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x108]
push edx
call fcn.004a2e54
add esp, 8
mov esp, ebp
pop ebp
ret

Function at 0x4a3014
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov dword [0x53cd1c], 0xff
mov dword [0x53cd18], 0xff
mov dword [ebp - 0x11c], 0
jmp 0x4a304c
mov eax, dword [ebp - 0x11c]
add eax, 1
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0x18
jge 0x4a30a4
mov ecx, dword [ebp - 0x11c]
mov edx, dword [ebp - 0x11c]
mov dword [ecx*8 + 0x53c8e8], edx
mov dword [ebp - 0x124], 0
jmp 0x4a3083
mov eax, dword [ebp - 0x124]
add eax, 1
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 4
jge 0x4a30a2
mov ecx, dword [ebp - 0x11c]
mov edx, dword [ebp - 0x124]
mov byte [edx + ecx*8 + 0x53c8ec], 0xff
jmp 0x4a3074
jmp 0x4a303d
mov byte [ebp - 0x128], 0
push 0x104
push 0
lea eax, [ebp - 0x118]
push eax
call fcn.004b9030
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4a30e3
mov dl, byte [ebp - 0x118]
mov byte [ebp - 0x128], dl
mov byte [ebp - 0x10], 0
push 0x104
push 0
lea eax, [ebp - 0x22c]
push eax
call fcn.004b9030
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x22c]
push ecx
call fcn.004a0867
add esp, 8
mov dl, byte [ebp - 0x22c]
mov byte [ebp - 0x10], dl
mov dword [ebp - 0x11c], 0
jmp 0x4a3135
mov eax, dword [ebp - 0x11c]
add eax, 1
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0x18
jge 0x4a31e0
mov ecx, dword [ebp - 0x11c]
add ecx, 0x43
mov byte [ebp - 0x120], cl
push 8
push 0
lea edx, [ebp - 8]
push edx
call fcn.004b9030
add esp, 0xc
lea eax, [ebp - 8]
push eax
mov cl, byte [ebp - 0x120]
push ecx
call fcn.004a2ed1
add esp, 8
test eax, eax
je 0x4a31db
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 4]
sub eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 4
jl 0x4a318f
jmp 0x4a3126
cmp dword [ebp - 0x14], 0
jge 0x4a3197
jmp 0x4a3126
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
mov al, byte [ebp - 0x120]
mov byte [edx + ecx*8 + 0x53c8ec], al
movsx ecx, byte [ebp - 0x120]
movsx edx, byte [ebp - 0x128]
cmp ecx, edx
jne 0x4a31c4
mov eax, dword [ebp - 0xc]
mov dword [0x53cd1c], eax
movsx ecx, byte [ebp - 0x120]
movsx edx, byte [ebp - 0x10]
cmp ecx, edx
jne 0x4a31db
mov eax, dword [ebp - 0xc]
mov dword [0x53cd18], eax
jmp 0x4a3126
mov esp, ebp
pop ebp
ret