joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407e90
Capabilities:
Enumerate disk volumes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x43d004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x110]
mov dword [ebp - 0x144], edx
mov esi, ecx
push 0
push eax
mov dword [ebp - 0x138], esi
call fcn.00418c40
mov ecx, dword [ebp + 8]
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov edx, ecx
mov ebx, eax
shld ebx, edx, 9
push ebx
shl edx, 9
push edx
push eax
push ecx
push esi
push str.GetVentoyVolumeName_PhyDrive__d_SectorStart:_llu_PartOffset:_llu
mov dword [ebp - 0x140], ebx
mov dword [ebp - 0x13c], edx
call fcn.0040f530
add esp, 0x18
lea eax, [ebp - 0x110]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
mov dword [ebp - 0x134], eax
cmp eax, 0xffffffff
jne 0x407f30
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417710
mov esp, ebp
pop ebp
ret
lea esi, [ebp - 0x110]
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x407f40
lea eax, [ebp - 0x110]
sub esi, ecx
push eax
push str.Find_volume:_s
call fcn.0040f530
lea eax, [esi - 1]
add esp, 8
cmp eax, 0x104
jae 0x4080e3
push 0
push 0x80
push 3
push 0
push 3
mov byte [ebp + eax - 0x110], 0
lea eax, [ebp - 0x110]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40804c
push 0
lea eax, [ebp - 0x148]
push eax
push 0x20
lea eax, [ebp - 0x130]
push eax
push 0
push 0
push 0x560000
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS_bRet:_u_code:_u
call fcn.0040f530
add esp, 0xc
push dword [ebp - 0x128]
push dword [ebp - 0x130]
push str.NumberOfDiskExtents:_u_DiskNumber:_u
call fcn.0040f530
add esp, 0xc
test edi, edi
je 0x408045
cmp dword [ebp - 0x130], 1
jne 0x408045
push dword [ebp - 0x11c]
push dword [ebp - 0x120]
push dword [ebp - 0x128]
push str.This_volume_DiskNumber:_u_offset:_llu
call fcn.0040f530
mov eax, dword [ebp - 0x138]
add esp, 0x10
cmp dword [ebp - 0x128], eax
jne 0x408045
mov eax, dword [ebp - 0x13c]
cmp dword [ebp - 0x120], eax
jne 0x408045
mov eax, dword [ebp - 0x140]
cmp dword [ebp - 0x11c], eax
je 0x40809e
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x104
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x134]
call dword [sym.imp.KERNEL32.dll_FindNextVolumeA]
test eax, eax
jne 0x407f30
mov esi, 0x490
push dword [ebp - 0x134]
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
push esi
push str.GetVentoyVolumeName_return__u
call fcn.0040f530
mov ecx, dword [ebp - 4]
add esp, 8
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00417710
mov esp, ebp
pop ebp
ret
push str.This_volume_match
call fcn.0040f530
add esp, 4
cmp dword [ebp + 0x14], 0
jne 0x4080b9
mov byte [ebp + esi - 0x111], 0x5c
lea eax, [ebp - 0x110]
push eax
push 0x436cc0
push 0x104
push dword [ebp - 0x144]
call fcn.00401010
add esp, 0x10
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x408071
call fcn.00417840
int3
Function at 0x4080f0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], edx
push edi
push edi
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov dword [ebp - 8], eax
lea esi, [eax + 1]
push esi
call fcn.0041c36a
mov esi, eax
add esp, 4
mov dword [ebp - 4], esi
test esi, esi
jne 0x40812a
lea eax, [edi + 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov eax, esi
cmp byte [eax], 0
je 0x408189
nop dword [eax + eax]
cmp edi, 0x104
jge 0x408171
movsx ecx, byte [esi]
xor edx, edx
call fcn.00408490
cmp ebx, eax
jne 0x408171
movsx eax, byte [esi]
push ebx
push eax
push str._C:_is_belong_to_phydrive_d
call fcn.0040f530
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov al, byte [esi]
mov byte [edi + ecx], al
inc edi
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408176
sub eax, edx
inc esi
add esi, eax
cmp byte [esi], cl
jne 0x408140
mov eax, dword [ebp - 4]
push eax
call fcn.0041bffb
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409d20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
push str.WriteGrubStage1ToPhyDrive_...
mov dword [ebp - 0x14], edx
mov edi, ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
call fcn.0040f530
add esp, 4
push 0x100000
call fcn.0041c36a
mov esi, eax
add esp, 4
test esi, esi
je 0x409d93
lea eax, [ebp - 8]
xor edx, edx
push eax
lea eax, [ebp - 4]
mov ecx, str.bootcore.img.xz
push eax
call fcn.0040f6f0
add esp, 8
test eax, eax
je 0x409d9e
push str.Failed_to_read_stage1_img
call fcn.0040f530
add esp, 4
push esi
call fcn.0041bffb
add esp, 4
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x10]
push ecx
push eax
push esi
push 0
push ecx
mov ecx, dword [ebp - 4]
call fcn.00417370
add esp, 0x14
cmp dword [ebp - 0x14], 0
je 0x409dec
push str.Write_GPT_stage1_...
call fcn.0040f530
add esp, 4
mov byte [esi + 0x1f4], 0x23
push 0
push 0
push 0x4400
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0xc]
push eax
push 0xfbc00
jmp 0x409e14
push str.Write_MBR_stage1_...
call fcn.0040f530
add esp, 4
push 0
push 0
push 0x200
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0xc]
push eax
push 0xffe00
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0xc]
push edi
push str.WriteFile_Ret:_u_dwSize:_u_ErrCode:_u
call fcn.0040f530
push esi
call fcn.0041bffb
add esp, 0x14
push dword [ebp - 4]
call fcn.0041bffb
add esp, 4
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40ca90
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x43d004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
lea eax, [ebp - 0x218]
mov esi, ecx
push eax
push 0
push 0xfee00
xorps xmm0, xmm0
push esi
movlpd qword [ebp - 0x218], xmm0
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x40cc26
cmp dword [ebp - 0x218], 0xfee00
jne 0x40cc26
cmp dword [ebp - 0x214], 0
jne 0x40cc26
push 0
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x20c], 0
push eax
push 0x200
lea eax, [ebp - 0x208]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
test edi, edi
je 0x40cbf9
cmp dword [ebp - 0x20c], 0x200
jne 0x40cbf9
push 0
lea eax, [ebp - 0x218]
xorps xmm0, xmm0
push eax
push 0
push 0xfee00
push esi
movlpd qword [ebp - 0x218], xmm0
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x40cbeb
cmp dword [ebp - 0x218], 0xfee00
jne 0x40cbeb
cmp dword [ebp - 0x214], 0
jne 0x40cbeb
push 0
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x20c], 0
push eax
push 0x200
lea eax, [ebp - 0x208]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
test esi, esi
je 0x40cbbe
cmp dword [ebp - 0x20c], 0x200
jne 0x40cbbe
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417710
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x20c]
push esi
push str.Failed_to_write__d__u__u
call fcn.0040f530
add esp, 0x10
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417710
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetFilePointer2_Failed__u
jmp 0x40cc32
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x20c]
push edi
push str.Failed_to_read__d__u_0x_x
call fcn.0040f530
add esp, 0x10
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417710
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetFilePointer1_Failed__u
call fcn.0040f530
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00417710
mov esp, ebp
pop ebp
ret
Function at 0x40f6f0
Capabilities:
Read file on windows

Disassembly:
add edx, edi
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
call fcn.0040d516
loopne 0x40f77d
jae 0x40f749
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, edi
mov eax, 0x50746547
cmp dword [esi], eax
jne 0x40f703
mov eax, 0x41636f72
cmp dword [esi + 4], eax
jne 0x40f703
call fcn.0040d516
pushfd
lidt [ecx]
mov ebx, dword [edx + 0x24]
add ebx, edi
mov cx, word [ebx + ecx*2]
mov ebx, dword [edx + 0x1c]
add ebx, edi
mov eax, dword [ebx + ecx*4]
add eax, edi
push eax
call fcn.0040d516
fcom dword [esi + ecx*4 + 0x13]
push dword [ebp + 8]
push dword [ebp + 4]
push dword [ebp]
jne 0x40f74b
call fcn.0040dd16
or al, 0x3e
push ecx
call fcn.0041c36a
mov edi, eax
add esp, 4
test edi, edi
jne 0x40f775
push dword [ebp - 4]
call fcn.0041cd8c
add esp, 4
lea eax, [edi + 1]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
push dword [ebp - 4]
call fcn.0041d865
in al, 0xe0
add byte [eax], al
add esp, 0xc
push dword [ebp - 4]
push esi
push 1
push edi
call fcn.0041dc05
push dword [ebp - 4]
call fcn.0041cd8c
mov eax, dword [ebp + 8]
add esp, 0x14
mov dword [eax], edi
mov eax, dword [ebp + 0xc]
pop edi
mov dword [eax], esi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40fce0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x43d004]
xor eax, ebp
mov dword [ebp - 4], eax
mov ax, word [0x439848]
movq xmm0, qword [str.SOFTWARE_]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push 0x104
mov word [ebp - 8], ax
lea eax, [ebp - 0x114]
push 0
push eax
movq qword [ebp - 0x10], xmm0
call fcn.00418c40
add esp, 0xc
mov dword [ebp - 0x120], 0xffffffff
xor edi, edi
mov dword [ebp - 0x124], 4
mov dword [ebp - 0x11c], edi
mov esi, 0x30
mov dword [ebp - 0x118], edi
mov dword [ebx], edi
nop
cmp byte [esi + str.SoftwareMicrosoftWindows_NTCurrentVersionUBR], 0x5c
je 0x40fd8e
sub esi, 1
jne 0x40fd50
lea eax, [ebp - 0x11c]
push eax
push 0x2001d
push esi
push str.SOFTWARE
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40fe5e
mov dword [ebp - 0x11c], edi
jmp 0x40feb2
push 9
lea eax, [ebp - 0x10]
push eax
push str.SoftwareMicrosoftWindows_NTCurrentVersionUBR
call fcn.0041d880
add esp, 0xc
test eax, eax
je 0x40fdf5
lea eax, [esi + 0xa]
cmp eax, 0x104
jae 0x40fdfd
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.0041c016
push str.SoftwareMicrosoftWindows_NTCurrentVersionUBR
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.0041d9b6
lea eax, [esi + 9]
add esp, 0x18
cmp eax, 0x104
jae 0x40fed6
mov byte [ebp + eax - 0x114], 0
jmp 0x40fe31
cmp esi, 0x104
jb 0x40fe10
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417710
mov esp, ebp
pop ebp
ret
push str.SoftwareMicrosoftWindows_NTCurrentVersionUBR
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.0041c016
add esp, 0xc
mov byte [ebp + esi - 0x114], 0
lea eax, [ebp - 0x118]
inc esi
push eax
push 0x20019
push 0
lea eax, [ebp - 0x114]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40fe5e
mov dword [ebp - 0x118], edi
jmp 0x40fea1
lea eax, [ebp - 0x124]
push eax
push ebx
lea eax, [ebp - 0x120]
push eax
push 0
lea eax, [esi + str.SoftwareMicrosoftWindows_NTCurrentVersionUBR]
push eax
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 2
je 0x40fe9c
test eax, eax
jne 0x40fea1
cmp dword [ebp - 0x120], 4
jne 0x40fea1
cmp dword [ebp - 0x124], edi
jbe 0x40fea1
mov edi, 1
mov eax, dword [ebp - 0x11c]
test eax, eax
je 0x40feb2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x118]
test ecx, ecx
je 0x40fec3
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417710
mov esp, ebp
pop ebp
ret
call fcn.00417840
int3
Function at 0x410b80
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
mov ebx, edx
push esi
push edi
lea esi, [ecx + 0x200]
mov edi, ebx
mov ecx, 0x80
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x18]
lea edi, [ebx + 0x10]
mov edx, dword [ebx + 0x20]
mov esi, dword [ebx + 0x24]
mov ecx, dword [ebx + 0x1c]
mov dword [ebx + 0x18], edx
add edx, 0xffffffe0
mov dword [ebx + 0x1c], esi
adc esi, 0xffffffff
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x4c], esi
or eax, 0xffffffff
mov esi, dword [ebx + 0xc]
mov dword [ebx + 0x24], ecx
mov dword [ebx + 0x48], edx
mov dword [edi], 0
test esi, esi
je 0x410bea
nop dword [eax + eax]
movzx edx, byte [ebx]
lea ebx, [ebx + 1]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x432ec0]
sub esi, 1
jne 0x410bd0
not eax
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x412590
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x43d004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x43a394
lea eax, [ebp - 0x108]
push 0x40
push eax
call fcn.00401230
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add esp, 0xc
xor edi, edi
xor esi, esi
nop word [eax + eax]
push edi
push 0x43a3b0
lea eax, [ebp - 0x88]
push 0x40
push eax
call fcn.00401230
mov eax, dword [0x43e388]
add esp, 0x10
add eax, 0x304
add eax, esi
push str.._ventoylanguages.ini
push 0x80
push eax
push 0x43a3e8
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x108]
push eax
call ebx
sub esi, 0xffffff80
inc edi
cmp esi, 0x1800
jl 0x4125d0
push 0x100000
call fcn.0041c36a
mov esi, eax
add esp, 4
mov dword [ebp - 0x118], esi
test esi, esi
je 0x412816
push str.._ventoylanguages.ini
push 0x80000
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
cmp word [esi], 0
mov ebx, esi
mov edi, dword [0x43e388]
mov dword [ebp - 0x10c], esi
je 0x4127fa
nop word [eax + eax]
cmp dword [0x43e378], 0xc8
jge 0x4127f4
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 9
jl 0x4127d7
mov ecx, 0x43a3ec
mov edx, ebx
mov esi, 0xe
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4127d7
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4126a0
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x4127d7
lea eax, [ebx + 0x12]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.._ventoylanguages.ini
push 0x100
lea eax, [edi + 0x200]
push eax
push 0x43a3e8
push 0x43a400
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push str.._ventoylanguages.ini
push 0xa
push 0x43a418
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
xor ebx, ebx
mov dword [edi + 0x300], eax
xor ecx, ecx
mov dword [ebp - 0x114], ebx
mov dword [ebp - 0x110], ecx
nop word [eax + eax]
mov eax, dword [0x43e388]
lea esi, [ebx + 0x1b04]
push str.._ventoylanguages.ini
push 0x800
add esi, edi
add eax, 0x304
push esi
push 0x43a3e8
add eax, ecx
push eax
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [esi], 0
je 0x41279e
mov ecx, ebx
mov eax, ebx
nop dword [eax + eax]
movzx edx, word [ecx + edi + 0x1b06]
test dx, dx
je 0x412798
cmp word [ecx + edi + 0x1b04], 0x23
jne 0x412788
cmp edx, 0x40
jne 0x412788
mov dword [ecx + edi + 0x1b04], 0xa000d
add eax, 2
mov ecx, eax
cmp word [edi + eax + 0x1b04], 0
jne 0x412760
mov ebx, dword [ebp - 0x114]
mov ecx, dword [ebp - 0x110]
add ebx, 0x800
sub ecx, 0xffffff80
mov dword [ebp - 0x114], ebx
mov dword [ebp - 0x110], ecx
cmp ecx, 0x1800
jl 0x412720
inc dword [0x43e378]
add edi, 0x19b04
mov ebx, dword [ebp - 0x10c]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [ebx + eax*2]
add ebx, 2
mov dword [ebp - 0x10c], ebx
cmp word [ebx], 0
jne 0x412670
mov esi, dword [ebp - 0x118]
push esi
call fcn.0041bffb
add esp, 4
push dword [0x43e378]
push str.Total__d_languages_...
call fcn.0040f530
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417710
mov esp, ebp
pop ebp
ret
Function at 0x413c30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
cmp dword [0x43e368], 0
mov eax, dword [0x43e36c]
push ebx
mov ebx, dword [sym.imp.USER32.dll_MessageBoxW]
push esi
push edi
je 0x413c60
lea ecx, [eax + 0x2b04]
add eax, 0x15b04
push 0x144
jmp 0x413c98
push 0x134
lea ecx, [eax + 0x2304]
add eax, 0x7b04
push ecx
push eax
push dword [0x43fc50]
call ebx
cmp eax, 6
jne 0x413e17
mov eax, dword [0x43e36c]
push 0x134
lea ecx, [eax + 0x2304]
add eax, 0x8304
push ecx
push eax
push dword [0x43fc50]
call ebx
cmp eax, 6
jne 0x413e17
cmp dword [0x43e384], 0
je 0x413cc8
push str.Another_thread_is_runing
call fcn.0040f530
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0x147
push dword [0x43fc20]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x413cf8
push str.Failed_to_get_combox_sel
call fcn.0040f530
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [0x43e364]
xor eax, eax
test edx, edx
je 0x413e17
mov edi, dword [0x43e360]
nop
mov ecx, dword [edi]
test ecx, ecx
js 0x413d1a
cmp ecx, esi
je 0x413d2c
inc eax
add edi, 0x4920
cmp eax, edx
jb 0x413d10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x43e380], 0
jne 0x413d6b
cmp dword [edi + 0x14], 0x200
jb 0x413d6b
ja 0x413d46
cmp dword [edi + 0x10], 0
jbe 0x413d6b
mov ecx, dword [0x43e36c]
push 0x10
lea eax, [ecx + 0x1b04]
push eax
lea eax, [ecx + 0x10b04]
push eax
push dword [0x43fc50]
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x43f3bc], 0
je 0x413d88
cmp dword [0x43d8bc], 0
mov esi, dword [0x43d8c0]
je 0x413d8a
shl esi, 0xa
jmp 0x413d8a
xor esi, esi
mov ebx, dword [edi + 0x10]
mov eax, dword [edi + 0x14]
shrd ebx, eax, 0x14
push ebx
push esi
push str.SpaceMB:_d_SizeInMB:_d
call fcn.0040f530
add esp, 0xc
cmp ebx, esi
jle 0x413de8
sub ebx, esi
cmp ebx, 0x20
jle 0x413de8
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push 0
push dword [0x43fc2c]
call esi
push 0
push dword [0x43fbd4]
call esi
push 0
push 0
push edi
push 0x413420
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x43e384], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x43e36c]
push 0x10
lea eax, [ecx + 0x1b04]
push eax
lea eax, [ecx + 0xe304]
push eax
push dword [0x43fc50]
call dword [sym.imp.USER32.dll_MessageBoxW]
push str.Invalid_space_value_...
call fcn.0040f530
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415b30
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
or edx, 0xffffffff
push edi
add dword [esi + 0xa4], 0xfffffffc
lea edi, [esi + 0xa8]
mov ebx, dword [esi + 0xa4]
test ebx, ebx
je 0x415b6a
nop
movzx eax, byte [edi]
lea edi, [edi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x43f7b8]
sub ebx, 1
jne 0x415b50
mov edi, dword [esi + 0xa4]
not edx
movzx ecx, byte [edi + esi + 0xab]
movzx eax, byte [edi + esi + 0xaa]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + esi + 0xa9]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + esi + 0xa8]
shl ecx, 8
or ecx, eax
cmp edx, ecx
jne 0x415d68
lea ebx, [esi + 0xa0]
mov dword [ebx], 2
mov al, byte [esi + 0xa9]
test al, 0x3f
jne 0x415d5f
test al, 0x40
je 0x415bf2
push edi
lea edi, [esi + 0xa8]
mov ecx, esi
push ebx
mov edx, edi
call fcn.00415a30
add esp, 8
cmp eax, 1
jne 0x415d68
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov al, byte [esi + 0xa9]
jmp 0x415bfe
or ecx, 0xffffffff
lea edi, [esi + 0xa8]
or edx, 0xffffffff
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], edx
test al, al
jns 0x415c2c
push dword [esi + 0xa4]
mov edx, edi
mov ecx, esi
push ebx
call fcn.00415a30
add esp, 8
cmp eax, 1
jne 0x415d68
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
jmp 0x415c32
or eax, 0xffffffff
or ecx, 0xffffffff
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], ecx
mov edx, dword [esi + 0xa4]
mov eax, edx
mov ecx, dword [ebx]
sub eax, ecx
cmp eax, 2
jb 0x415d68
mov al, byte [ecx + esi + 0xa8]
inc ecx
mov dword [ebx], ecx
cmp al, 0x21
jne 0x415d5f
mov al, byte [ecx + esi + 0xa8]
inc ecx
mov dword [ebx], ecx
cmp al, 1
jne 0x415d5f
sub edx, ecx
cmp edx, 1
jb 0x415d68
mov dl, byte [ecx + esi + 0xa8]
lea eax, [ecx + 1]
mov edi, dword [esi + 0x4a8]
mov dword [ebx], eax
cmp dl, 0x27
ja 0x415d5f
movzx eax, dl
mov ecx, eax
and eax, 1
shr ecx, 1
add eax, 2
add ecx, 0xb
shl eax, cl
mov ecx, dword [edi + 0x3c]
mov dword [edi + 0x30], eax
test ecx, ecx
je 0x415cfd
cmp eax, dword [edi + 0x34]
jbe 0x415cc1
pop edi
pop esi
mov eax, 4
pop ebx
ret
mov dword [edi + 0x2c], eax
cmp ecx, 2
jne 0x415cfd
cmp dword [edi + 0x38], eax
jae 0x415cfd
mov ecx, dword [edi + 0x18]
test ecx, ecx
je 0x415ce1
push ecx
call fcn.0041bffb
mov eax, dword [edi + 0x30]
add esp, 4
push eax
call fcn.0041c36a
add esp, 4
mov dword [edi + 0x18], eax
test eax, eax
jne 0x415cfd
mov dword [edi + 0x38], eax
mov eax, 3
pop edi
pop esi
pop ebx
ret
mov dword [edi + 0x68], 0
mov dword [edi + 0x40], 0
mov byte [edi + 0x50], 1
mov dword [edi + 0x6ee4], 0
mov edx, dword [esi + 0xa4]
mov ecx, dword [ebx]
cmp ecx, edx
jae 0x415d37
mov al, byte [ecx + esi + 0xa8]
inc ecx
mov dword [ebx], ecx
test al, al
jne 0x415d5f
cmp ecx, edx
jb 0x415d25
pop edi
mov dword [esi + 0x40], 0
xor eax, eax
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
pop esi
mov dword [ebx], 0
pop ebx
ret
pop edi
pop esi
mov eax, 6
pop ebx
ret
pop edi
pop esi
mov eax, 7
pop ebx
ret
Function at 0x42390b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00423781
Function at 0x402230
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push esi
push edi
call fcn.0042267f
mov esi, dword [eax + 0xc]
movzx eax, word [esp + 0x10]
push 0x444a14
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x402259
pop edi
pop esi
pop ecx
ret 8
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x402279
pop ebx
pop edi
pop esi
pop ecx
ret 8
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push esi
push eax
call fcn.00428cc0
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push 0
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ebx, dword [esp + 0xc]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x4022da
lea edx, [esp + 0x14]
push edx
push ebx
mov dword [esi], vtable.Gdiplus::Bitmap.0
mov dword [esp + 0x1c], 0
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov dword [esi + 8], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 4], eax
jmp 0x4022dc
xor esi, esi
mov ecx, dword [esp + 0x18]
push edi
mov dword [ecx], esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
pop ebx
pop edi
mov eax, 1
pop esi
pop ecx
ret 8
Function at 0x4040e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4040f9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404134
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x404130
lea ebx, [ebx]
cmp esi, eax
jae 0x404134
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x404120
cmp esi, eax
jb 0x40413a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret