joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f8f0
Capabilities:
Get disk information via ioctl

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x46c
cmp eax, 2
push ebx
push ebp
push esi
push edi
jb 0x40fa8d
cmp eax, 3
jbe 0x40f91f
cmp eax, 5
jne 0x40fa8d
mov dword [esp + 0x10], 0x4ae160
jmp 0x40f927
mov dword [esp + 0x10], 0x4ae170
mov eax, dword [esp + 0x10]
push 0x12
push 0
push 0
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40fa8d
mov ebx, dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailA]
xor ebp, ebp
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x64]
rep stosd dword es:[edi], eax
mov eax, 0x1c
mov dword [esp + 0x60], eax
mov dword [esp + 0x44], eax
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
lea ecx, [esp + 0x60]
push ecx
push ebp
push edx
push 0
push esi
call edi
test eax, eax
je 0x40fa86
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x44]
push eax
push ebp
push ecx
push 0
push esi
call edi
lea edx, [esp + 0x14]
push 0
push edx
push 0
lea eax, [esp + 0x50]
push 0
push eax
push esi
mov dword [esp + 0x2c], 0
call ebx
mov edx, dword [esp + 0x14]
test edx, edx
je 0x40fa63
cmp edx, 0x400
ja 0x40fa63
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x28]
mov dword [esp + 0x7c], 5
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x14]
push ecx
push eax
push edx
lea ecx, [esp + 0x88]
lea edx, [esp + 0x50]
push ecx
push edx
push esi
mov dword [esp + 0x40], 0x1c
call ebx
test eax, eax
je 0x40fa63
push 0
push 0
push 3
push 0
push 3
lea eax, [esp + 0x94]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40fa63
lea ecx, [esp + 0x18]
push 0
push ecx
lea edx, [esp + 0x24]
push 0xc
push edx
push 0
push 0
push 0x2d1080
push edi
mov dword [esp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40fa5c
mov eax, dword [esp + 0x480]
mov ecx, dword [esp + 0x20]
cmp eax, ecx
je 0x40fa69
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebp
jmp 0x40f965
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x46c
ret
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x46c
ret
Function at 0x410750
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4a791b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x138
mov eax, dword [0x4e052c]
mov edx, dword [0x4e0528]
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0x18], eax
xor ecx, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 8], ecx
mov dword [esp + 0x20], eax
mov eax, dword [0x4e5bbc]
push esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], edx
xor edx, edx
push eax
mov eax, dword [0x4e04e8]
mov dword [esp + 0x18], ecx
mov ecx, dword [0x4e0524]
mov dword [esp + 0x30], edx
and eax, 0xff
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x34], edx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x154]
push 0x104
shl eax, 4
push ecx
push 0x4e5a9c
lea ecx, [esp + eax + 0x18]
xor esi, esi
push edx
push ecx
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x38]
push 0x4df2e0
push edx
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x41087c
lea eax, [esp + 0x38]
lea ecx, [esp + 4]
push eax
call sub.MFC42.DLL_CString::CString_2
push 0x4df2e0
push 0x4e0520
lea ecx, [esp + 0xc]
mov dword [esp + 0x14c], esi
call sub.MFC42.DLL_CString::Replace
push 0x4e051c
push 0x4e0518
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::Replace
push 0x4e00a0
push 0x4e0514
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::Replace
mov esi, dword [esp + 0x14c]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.004a57ee
lea ecx, [esp + 4]
mov dword [esp + 0x144], 0xffffffff
call sub.MFC42.DLL_CString::CString
jmp 0x41088f
mov esi, dword [esp + 0x14c]
lea edx, [esp + 0x38]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0x13c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x144
ret
Function at 0x411790
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4a7a1e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x220
push ebx
push esi
push edi
mov al, byte [0x4e5a9c]
mov ecx, 0x40
mov byte [esp + 0x128], al
xor eax, eax
lea edi, [esp + 0x129]
xor ebx, ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0xc]
mov dword [esp + 0x234], ebx
stosb byte es:[edi], al
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0x23c]
mov byte [esp + 0x234], 1
push ecx
push ebx
push str.Count
push str.FLASHLIST
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x18], esi
jbe 0x41193e
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x20]
push 0xa
push edx
push ebx
call dword [sym.imp.MSVCRT.dll__itoa]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x34]
add esp, 0xc
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x240]
lea ecx, [esp + 0x28]
push eax
push 0x104
lea edx, [esp + 0x134]
push ecx
push edx
lea eax, [esp + 0x30]
push str.FlashName
push eax
call ebp
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString_2
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x23c], 2
call fcn.004a5776
lea ecx, [esp + 0x24]
mov byte [esp + 0x238], 1
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x240]
lea eax, [esp + 0x28]
push edx
push 0x104
push eax
push 0x4e5a9c
lea ecx, [esp + 0x30]
push 0x4e0564
push ecx
call ebp
lea edx, [esp + 0x19]
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x1b]
push eax
lea edx, [esp + 0x1e]
push ecx
lea eax, [esp + 0x21]
push edx
lea ecx, [esp + 0x24]
push eax
push ecx
lea edx, [esp + 0x40]
push str.0x_02hx_0x_02hx_0x_02hx_0x_02hx_0x_02hx_0x_02hx
push edx
call dword [sym.imp.MSVCRT.dll_sscanf]
mov esi, dword [0x4e5bc8]
add esp, 0x20
cmp esi, esi
jl 0x4118f8
lea eax, [esi + 1]
push 0xffffffffffffffff
push eax
mov ecx, 0x4e5bc0
call fcn.00411c30
mov edx, dword [0x4e5bc4]
lea ecx, [esi + esi*2]
lea eax, [esp + 0x10]
lea esi, [edx + ecx*4]
push eax
mov ecx, esi
call fcn.004a5776
lea ecx, [esp + 0x10]
mov edi, 0xfffffffc
sub ecx, esi
lea eax, [esi + 4]
sub edi, esi
mov dl, byte [ecx + eax]
mov byte [eax], dl
inc eax
lea edx, [edi + eax]
cmp edx, 6
jb 0x411920
mov eax, dword [esp + 0x1c]
inc ebx
cmp ebx, eax
jb 0x411815
mov esi, eax
pop ebp
lea ecx, [esp + 0xc]
mov byte [esp + 0x234], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x23c]
mov dword [esp + 0x234], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x22c
ret
Function at 0x414cb0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4a7de3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], esi
lea edi, [esi + 0xc]
mov dword [esi + 8], ecx
mov ecx, edi
mov dword [esi + 4], eax
call sub.MFC42.DLL_CString::CString_1
xor ebx, ebx
lea ecx, [esi + 0x10]
mov dword [esp + 0x1c], ebx
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x14]
mov byte [esp + 0x1c], 1
call sub.MFC42.DLL_CString::CString_1
lea ebp, [esi + 0x9c]
mov byte [esp + 0x1c], 2
mov ecx, ebp
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0xb0]
mov byte [esp + 0x1c], 3
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0xbc]
mov byte [esp + 0x1c], 4
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0xc0]
mov byte [esp + 0x1c], 5
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0xd8]
mov byte [esp + 0x1c], 6
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0xdc]
mov byte [esp + 0x1c], 7
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0xe4]
mov byte [esp + 0x1c], 8
call sub.MFC42.DLL_CString::CString_1
push 1
push 0x4e6104
mov byte [esp + 0x24], 9
mov dword [esi], 0x4b6244
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0x4e5a9c
mov ecx, edi
call fcn.004a5764
push 0x4e5a9c
lea ecx, [esi + 0x10]
call fcn.004a5764
or eax, 0xffffffff
mov ecx, 0x18
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
xor eax, eax
lea edi, [esi + 0x35]
mov byte [esi + 0x18], 0x41
mov dword [esi + 0x2c], ebx
mov byte [esi + 0x24], 0xff
mov word [esi + 0x26], 0xffff
mov byte [esi + 0x34], bl
push 0x4e5a9c
rep stosd dword es:[edi], eax
mov ecx, ebp
call fcn.004a5764
mov dword [esi + 0x98], 0xffffffff
push 0x4e5a9c
mov ecx, ebp
call fcn.004a5764
mov byte [esi + 0xa0], bl
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xa8], ebx
mov dword [esi + 0xac], ebx
mov byte [esi + 0xb4], bl
push 0x4e5a9c
lea ecx, [esi + 0xbc]
mov dword [esi + 0xb8], ebx
call fcn.004a5764
push 0x4e5a9c
lea ecx, [esi + 0xd8]
mov dword [esi + 0xc8], ebx
mov dword [esi + 0xcc], ebx
mov byte [esi + 0xed], bl
call fcn.004a5764
push 0x4e5a9c
lea ecx, [esi + 0xdc]
call fcn.004a5764
push 0x4e5a9c
lea ecx, [esi + 0xe4]
mov dword [esi + 0xe0], ebx
call fcn.004a5764
lea ecx, [esi + 0x14]
mov dword [esi + 0x11c], ebx
mov dword [esi + 0x118], ebx
mov dword [esi + 0x10c], ebx
mov dword [esi + 0x110], ebx
call sub.MFC42.DLL_CString::Empty
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [esi + 0x30], ebx
mov edx, dword [0x4e5bb8]
push edx
push ebx
push str.Enable6913
push 0x4df17c
call edi
mov byte [esi + 0x114], al
mov eax, dword [0x4e5bb8]
push eax
push ebx
push str.EnableNewLLF
push 0x4df17c
call edi
mov byte [esi + 0x115], al
mov ecx, dword [0x4e5bb8]
push ecx
push 1
push str.OriginOSC
push 0x4df17c
call edi
mov ecx, dword [esp + 0x14]
mov byte [esi + 0x116], al
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4188a0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x2cc
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0xdc]
rep stosd dword es:[edi], eax
mov ecx, 0x10
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov ecx, 0x10
lea edi, [esp + 0x9c]
rep stosd dword es:[edi], eax
mov ecx, 0x10
lea edi, [esp + 0x5c]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
lea edx, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0x18], ebx
mov ecx, dword [eax + 0x118]
push ecx
push edx
call esi
mov eax, dword [ebx + 8]
lea edx, [esp + 0x64]
mov ecx, dword [eax + 0x11c]
push ecx
push edx
call esi
lea eax, [esp + 0xac]
push str.AlcorMicro
push eax
call esi
push 0
call dword [sym.imp.MSVCRT.dll_time]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
add esp, 0x20
call dword [sym.imp.MSVCRT.dll_rand]
mov dl, al
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x10], dl
cmp cl, 1
mov byte [esp + 0x14], cl
jne 0x418956
mov cl, 2
mov byte [esp + 0x14], cl
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
xor esi, esi
and ebp, 0xff
mov byte [esp + 0x15c], dl
mov byte [esp + 0x15d], cl
jle 0x418994
push 1
push esi
push ebx
call fcn.0041b640
mov cl, byte [esp + esi + 0x28]
add esp, 0xc
xor cl, al
mov byte [esp + esi + 0x15e], cl
inc esi
cmp esi, ebp
jl 0x418976
lea edi, [esp + 0x9c]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + ebp + 0x15e], 0xaa
repne scasb al, byte es:[edi]
not ecx
dec ecx
xor esi, esi
mov byte [esp + 0x14], cl
mov byte [esp + ebp + 0x15f], 0x55
mov edi, dword [esp + 0x14]
mov byte [esp + ebp + 0x160], cl
and edi, 0xff
jle 0x4189f2
push 1
push esi
push ebx
call fcn.0041b640
mov dl, byte [esp + esi + 0xa8]
add esp, 0xc
xor dl, al
lea eax, [esp + ebp + 0x161]
mov byte [eax + esi], dl
inc esi
cmp esi, edi
jl 0x4189ce
mov cl, byte [esp + 0x10]
lea eax, [edi + ebp]
lea edi, [esp + 0x5c]
mov byte [esp + eax + 0x161], 0xaa
mov byte [esp + eax + 0x162], 0x55
mov byte [esp + eax + 0x163], cl
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x10], cl
mov byte [esp + 0x1dc], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
jle 0x418a4e
mov edx, ecx
lea esi, [esp + 0x5c]
lea edi, [esp + 0x1dd]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xdc]
push eax
call fcn.0041bbf0
pop edi
pop esi
pop ebp
pop ebx
test eax, eax
jne 0x418a7e
lea ecx, [esp + 8]
push 0x4d8340
push ecx
mov dword [esp + 0x10], 0x92200
call sub.MSVCRT.dll__CxxThrowException
add esp, 0x2cc
ret
Function at 0x41b3a0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
push ebx
push ebp
push esi
mov ecx, dword [eax]
push edi
mov dword [esp + 0x10], 0x30400
mov dword [esp + 0x18], ecx
mov dx, word [eax + 4]
mov eax, dword [0x4e5c6c]
test eax, eax
mov word [esp + 0x1c], dx
je 0x41b46b
mov eax, dword [0x4e5c68]
mov esi, 0x4e5a9c
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x41b401
test cl, cl
je 0x41b3fd
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x41b401
add eax, 2
add esi, 2
test cl, cl
jne 0x41b3d9
xor eax, eax
jmp 0x41b406
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41b45a
mov ebx, dword [0x4e60e8]
xor edi, edi
test ebx, ebx
jbe 0x41b440
mov ebp, dword [sym.imp.MSVCRT.dll__stricmp]
xor esi, esi
mov ecx, dword [0x4e60e4]
mov eax, dword [0x4e5c68]
push eax
mov edx, dword [esi + ecx + 4]
push edx
call ebp
add esp, 8
test eax, eax
je 0x41b44c
inc edi
add esi, 0x10
cmp edi, ebx
jb 0x41b41e
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov dword [esp + 0x10], edi
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [0x4e5c64]
pop edi
pop esi
pop ebp
mov dword [esp + 4], eax
pop ebx
add esp, 0x10
ret
mov dl, byte [esp + 0x28]
mov ebp, dword [0x4e60e8]
test dl, dl
jne 0x41b490
lea ecx, [esp + 0x28]
push 0x4d8340
push ecx
mov dword [esp + 0x30], 0x30100
call sub.MSVCRT.dll__CxxThrowException
cmp dl, 1
je 0x41b4aa
cmp dl, 2
je 0x41b4aa
cmp dl, 4
je 0x41b4aa
cmp dl, 8
je 0x41b4aa
mov dl, 1
mov byte [esp + 0x28], dl
mov byte [esp + 0x14], 6
test dl, dl
mov byte [esp + 0x24], dl
jbe 0x41b510
xor edx, edx
test ebp, ebp
jbe 0x41b500
mov eax, dword [0x4e60e4]
add eax, 8
mov cl, byte [esp + 0x24]
mov bl, byte [eax + 6]
cmp cl, bl
jne 0x41b4e6
mov ecx, dword [esp + 0x14]
lea edi, [esp + 0x18]
and ecx, 0xff
mov esi, eax
xor ebx, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x41b4f0
inc edx
add eax, 0x10
cmp edx, ebp
jb 0x41b4c5
jmp 0x41b500
cmp edx, 0x30400
mov dword [esp + 0x10], edx
jne 0x41b440
mov al, byte [esp + 0x24]
shr al, 1
mov byte [esp + 0x24], al
jne 0x41b4b7
mov dl, byte [esp + 0x28]
mov al, byte [esp + 0x14]
dec al
cmp al, 4
mov byte [esp + 0x14], al
jae 0x41b4af
test dl, dl
jbe 0x41b571
mov esi, dword [0x4e60e4]
xor ecx, ecx
test ebp, ebp
jbe 0x41b55f
lea eax, [esi + 0xb]
mov bl, byte [eax - 1]
test bl, bl
jne 0x41b551
cmp byte [eax], 0
jne 0x41b551
cmp dl, byte [eax + 3]
jne 0x41b551
lea ebx, [eax - 3]
lea edi, [esp + 0x18]
mov bx, word [ebx]
cmp bx, word [edi]
je 0x41b55b
inc ecx
add eax, 0x10
cmp ecx, ebp
jb 0x41b531
jmp 0x41b55f
mov dword [esp + 0x10], ecx
cmp dword [esp + 0x10], 0x30400
jne 0x41b440
shr dl, 1
jne 0x41b528
lea edx, [esp + 0x28]
push 0x4d8340
push edx
mov dword [esp + 0x30], 0x30400
call sub.MSVCRT.dll__CxxThrowException
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x41be30
Capabilities:
Unmount volume via ioctl

Disassembly:
push 0xffffffffffffffff
push 0x4a8278
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
movsx eax, byte [esi + 0x18]
push eax
lea ecx, [esp + 0x18]
xor edi, edi
push str.._C:
push ecx
mov dword [esp + 0x30], edi
call sub.MFC42.DLL_CString::Format
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
add esp, 0xc
mov dword [esp + 0x18], edi
mov byte [esp + 0x13], 0
xor bl, bl
mov edx, dword [esp + 0x14]
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push edx
call ebp
cmp eax, 0xffffffff
mov dword [esi + 0x20], eax
jne 0x41beb5
push 0x12c
inc bl
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp bl, 5
jb 0x41be85
mov eax, dword [esi + 0x20]
cmp eax, 0xffffffff
je 0x41bf1f
lea ecx, [esp + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 0
push ecx
push 0
push 0
push 0
push 0
push 0x90018
push eax
call ebx
mov edi, eax
test edi, edi
jne 0x41bf45
lea edx, [esp + 0x18]
push eax
push edx
push eax
push eax
push eax
push eax
mov eax, dword [esi + 0x20]
push 0x90020
push eax
call ebx
mov edi, eax
test edi, edi
je 0x41bf45
mov ecx, dword [esi + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x13]
mov dword [esi + 0x20], 0xffffffff
cmp al, 1
jae 0x41bf45
inc al
mov byte [esp + 0x13], al
jmp 0x41be83
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x41e3a0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
xor al, al
push edi
mov ecx, dword [esi + 0x1026c]
mov byte [esp + 8], al
test ecx, ecx
je 0x41e3e2
xor ecx, ecx
mov edx, 0xffff
mov edi, ecx
and edi, edx
cmp word [esi + edi*2 + 0x10272], dx
je 0x41e5d0
inc al
inc ecx
cmp cx, 0x80
jb 0x41e3be
pop edi
pop esi
add esp, 0xc
ret 8
push ebx
push ebp
mov ebp, dword [esp + 0x24]
mov ecx, 0x20
or eax, 0xffffffff
mov edi, ebp
rep stosd dword es:[edi], eax
cmp byte [esi + 0x138], 2
jne 0x41e4ba
mov bl, byte [esi + 0x157]
xor eax, eax
mov al, byte [esi + 0x166]
mov ecx, ebx
cdq
and ecx, 0xff
idiv ecx
mov cl, byte [esp + 0x20]
shr al, cl
cmp al, 1
mov byte [esp + 0x20], al
ja 0x41e42d
mov byte [esp + 0x20], 1
mov al, byte [esp + 0x20]
xor dl, dl
test al, al
jbe 0x41e5ca
xor al, al
test bl, bl
jbe 0x41e4a2
xor ecx, ecx
mov dword [esp + 0x18], ecx
cmp byte [esi + 0xf2], 2
jne 0x41e464
mov ebp, 1
xor edi, edi
mov di, word [esi + 0xf4]
shl ebp, cl
test ebp, edi
je 0x41e493
xor cx, cx
mov ebp, dword [esp + 0x24]
movzx di, bl
mov cl, dl
imul ecx, edi
movzx di, al
add ecx, edi
mov edi, dword [esp + 0x10]
and edi, 0xff
mov word [ebp + edi*2], cx
mov cl, byte [esp + 0x10]
inc cl
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x18]
inc al
inc ecx
cmp al, bl
mov dword [esp + 0x18], ecx
jb 0x41e447
mov al, byte [esp + 0x20]
inc dl
cmp dl, al
jb 0x41e43b
mov al, byte [esp + 0x10]
pop ebp
pop ebx
pop edi
pop esi
add esp, 0xc
ret 8
mov al, byte [esi + 0xf2]
xor dl, dl
cmp al, 4
mov byte [esp + 0x24], 0
jne 0x41e52e
mov al, byte [esi + 0xf4]
and eax, 0xff
dec eax
cmp eax, 7
ja case.0x41e4dc.3
jmp dword [eax*4 + 0x41e5d8]
mov al, byte [esi + 0x166]
mov byte [esp + 0x24], 0
mov dl, 2
shr al, 1
jmp 0x41e53b
mov al, byte [esi + 0x166]
mov byte [esp + 0x24], 1
mov dl, 2
shr al, 1
jmp 0x41e53b
mov al, byte [esi + 0x166]
mov byte [esp + 0x24], 0
mov dl, 1
shr al, 1
jmp 0x41e53b
mov al, byte [esi + 0x166]
mov dl, 1
shr al, 1
mov byte [esp + 0x24], al
mov al, byte [esi + 0x166]
shr al, 1
jmp 0x41e53b
mov al, byte [esi + 0x166]
mov byte [esp + 0x24], 0
mov dl, 1
mov cl, byte [esp + 0x20]
mov bl, al
shr bl, 2
shr bl, cl
cmp bl, 2
mov cl, bl
ja 0x41e54f
mov cl, 2
mov bl, al
mov byte [esp + 0x18], cl
shr bl, 1
mov byte [esp + 0x20], bl
sub bl, cl
mov byte [esp + 0x15], bl
mov bl, byte [esp + 0x20]
sub al, cl
mov byte [esp + 0x14], 0
mov byte [esp + 0x16], bl
mov byte [esp + 0x17], al
lea esi, [esp + 0x14]
mov dword [esp + 0x20], 4
test cl, cl
jbe 0x41e5be
mov al, byte [esi]
mov bl, byte [esp + 0x24]
imul dl
mov ecx, dword [esp + 0x18]
add al, bl
and ecx, 0xff
mov ebx, dword [esp + 0x10]
movzx di, al
and ebx, 0xff
add al, dl
mov word [ebp + ebx*2], di
mov bl, byte [esp + 0x10]
inc bl
dec ecx
mov byte [esp + 0x10], bl
jne 0x41e598
mov cl, byte [esp + 0x18]
mov eax, dword [esp + 0x20]
inc esi
dec eax
mov dword [esp + 0x20], eax
jne 0x41e580
mov al, byte [esp + 0x10]
pop ebp
pop ebx
pop edi
pop esi
add esp, 0xc
ret 8
Function at 0x41f5f0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [0x4e5bb8]
sub esp, 0x200
push esi
push eax
push 0
push str.CheckFlashStatus
mov esi, ecx
push str.Other
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
je 0x41f65c
mov ecx, dword [0x4e6018]
push ecx
push 1
mov ecx, esi
call fcn.0042b4e0
lea edx, [esp + 4]
mov ecx, esi
push edx
call fcn.0042b520
mov al, byte [esp + 4]
mov cl, byte [esp + 5]
mov dl, byte [esp + 6]
mov byte [esi + 0xee], al
mov byte [esi + 0xef], cl
mov byte [esi + 0xf0], dl
mov eax, 1
pop esi
add esp, 0x200
ret
xor ecx, ecx
mov al, 1
mov cl, byte [esi + 0x34]
mov byte [esi + 0xef], 0
shl al, cl
mov byte [esi + 0xf0], 0
dec al
mov byte [esi + 0xee], al
mov eax, 1
pop esi
add esp, 0x200
ret
Function at 0x41f690
Capabilities:
Read .ini file

Disassembly:
push ecx
mov eax, dword [0x4e5bb8]
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push eax
push 0
push str.FlashCase
mov esi, ecx
push str.Scan
call edi
mov ecx, dword [esi + 0x124]
mov ebp, dword [sym.imp.MSVCRT.dll__stricmp]
push str.SM90_256MB
push ecx
mov bl, al
call ebp
add esp, 8
test eax, eax
je 0x41f89c
mov edx, dword [esi + 0x120]
push str.Spansion
push edx
call ebp
add esp, 8
test eax, eax
je 0x41f89c
cmp bl, 1
je 0x41f83a
mov al, byte [esi + 0xf0]
test al, al
jne 0x41f83a
mov al, byte [esi + 0xef]
test al, al
jne 0x41f83a
cmp byte [esi + 0x18d], 1
jbe 0x41f83a
mov eax, dword [0x4e5bb8]
push eax
push 0
push str.SetSortClass
push str.Debug
call edi
test eax, eax
je 0x41f774
mov ecx, dword [0x4e5bb8]
push ecx
push 1
push str.SetSortMain
push str.Debug
call edi
mov byte [esi + 0xf2], al
mov edx, dword [0x4e5bb8]
push edx
push 0xff
push str.SetSortSub
push str.Debug
call edi
mov word [esi + 0xf4], ax
jmp 0x41f873
mov cl, byte [esi + 0xa0]
xor eax, eax
mov al, byte [esi + 0x156]
mov ebp, eax
shl ebp, cl
xor ecx, ecx
mov cl, byte [esi + 0x166]
imul ebp, ecx
shl ebp, 9
push ebp
call sub.MFC42.DLL_operatornew
push ebp
mov dword [esi + 0x100], eax
call sub.MFC42.DLL_operatornew
mov edi, dword [esi + 0x100]
mov ecx, ebp
mov edx, ecx
mov dword [esi + 0xfc], eax
or eax, 0xffffffff
add esp, 8
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esi + 0xfc]
mov ecx, ebp
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov al, byte [esi + 0x18d]
xor edi, edi
cmp al, 8
mov dword [esi + 0xf8], edi
mov ecx, esi
jne 0x41f7f9
call fcn.004201a0
jmp 0x41f7fe
call fcn.0041f8c0
cmp dword [esi + 0xf8], edi
jne 0x41f873
mov eax, dword [esi + 0xfc]
cmp eax, edi
je 0x41f81f
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esi + 0xfc], edi
mov eax, dword [esi + 0x100]
cmp eax, edi
je 0x41f873
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esi + 0x100], edi
jmp 0x41f873
mov al, byte [esi + 0xf0]
test al, al
je 0x41f863
mov dl, byte [esi + 0xf1]
mov cl, 4
test cl, dl
je 0x41f863
movzx ax, al
mov byte [esi + 0xf2], cl
mov word [esi + 0xf4], ax
jmp 0x41f873
mov byte [esi + 0xf2], 1
mov word [esi + 0xf4], 0xff
cmp byte [esi + 0x156], 8
jne 0x41f8ac
cmp byte [esi + 0xf2], 1
jne 0x41f8ac
lea ecx, [esp + 0x10]
push 0x4d8340
push ecx
mov dword [esp + 0x18], 0x50f00
call sub.MSVCRT.dll__CxxThrowException
mov byte [esi + 0xf2], 1
mov word [esi + 0xf4], 0xff
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret