joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4335ff
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b84fa
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x6300f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
xor edi, edi
mov dword [ebx], vtable.CMainWnd.5.0
mov dword [ebx + 0x10], vtable.CMainWnd.4.0
mov dword [ebx + 0x20], vtable.CMainWnd.3.0
mov dword [ebx + 0x24], vtable.CMainWnd.2.0
mov dword [ebx + 0x28], vtable.CMainWnd.1.0
mov dword [ebx + 0x2c], vtable.CMainWnd.0
cmp dword [ebx + 0x988], edi
je 0x433675
push edi
lea esi, [ebx + 0x984]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, esi
call fcn.0043a670
mov eax, dword [ebx + 0x994]
test eax, eax
je 0x43368d
mov ecx, dword [eax + 0x44]
test ecx, ecx
je 0x43368d
push edi
push eax
call fcn.004c048e
mov eax, dword [ebx + 0x878]
cmp eax, 0xa
je 0x433751
mov esi, dword [ebx + 0x87c]
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
jmp 0x4336ba
cmp byte [eax + 0x50], 0
je 0x4336c3
lea ecx, [ebp - 0x14]
call fcn.0040c706
mov eax, dword [ebp - 0x14]
cmp eax, esi
jne 0x4336a9
jmp 0x433751
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
lea ecx, [ebp - 0x20]
push 0x2001f
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov edi, str.SoftwareTencent
mov dword [ebp - 0x20], eax
push edi
push closesocket
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
call fcn.0040cc86
mov esi, 0x5f5a74
lea ecx, [ebp - 0x20]
push esi
call fcn.0042d0d2
push 0x2001f
push edi
push closesocket
lea ecx, [ebp - 0x20]
call fcn.0040cc86
push esi
lea ecx, [ebp - 0x20]
call fcn.0042d0d2
push 0x62
push str.CMainWnd::CMainWnd
push str.MainWnd.cpp
push str.MainWnd
push 1
lea ecx, [ebp - 0x50]
call fcn.0041138d
push str.install_failed._clear_all_runtime_register_key.
mov ecx, eax
call fcn.004116b0
lea ecx, [ebp - 0x50]
call fcn.005b3223
lea ecx, [ebp - 0x20]
call fcn.0040ccff
xor edi, edi
mov eax, dword [ebx + 0x878]
push edi
push edi
push edi
push edi
push edi
push edi
cdq
push edx
push eax
push 0x3eb
push ecx
call fcn.0042f2f5
pop ecx
mov ecx, eax
call fcn.0042f363
lea ecx, [ebx + 0x9ac]
call fcn.00437bcd
lea ecx, [ebx + 0x9a0]
call fcn.0040663e
lea esi, [ebx + 0x98c]
mov ecx, esi
call fcn.0042b801
push 0xe8
push 1
push dword [esi]
call fcn.00411a53
add esp, 0xc
cmp dword [ebx + 0x988], edi
je 0x4337b4
call fcn.00599e57
lea ecx, [ebx + 0x970]
call fcn.00436894
lea eax, [ebx + 0x940]
push eax
call fcn.0055ccc8
pop ecx
lea ecx, [ebx + 0x898]
call fcn.004021e0
lea esi, [ebx + 0x888]
lea ecx, [esi + 8]
call fcn.0042aca9
mov ecx, esi
call fcn.0042aca9
lea ecx, [ebx + 0x87c]
call fcn.004364da
mov ecx, ebx
call fcn.0043a6d7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0057086f
mov esp, ebp
pop ebp
ret
Function at 0x433e86
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x64
mov eax, 0x5b8623
call fcn.005718de
lea ecx, [ebp - 0x28]
call fcn.005b2f5b
and dword [ebp - 4], 0
mov eax, dword [0x63a024]
test eax, eax
push 0x5f7a88
cmove eax, dword [0x63a018]
push 0x85
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x433fad
mov ecx, dword [0x63a024]
test ecx, ecx
push esi
cmove ecx, dword [0x63a018]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
push esi
test edi, edi
jne 0x433ef0
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x433fad
mov eax, dword [0x63a024]
test eax, eax
cmove eax, dword [0x63a018]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x433fad
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, ebx
mov ecx, eax
call fcn.004bd2cd
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
call fcn.004bd28b
lea eax, [ebp - 0x70]
push eax
call fcn.00411721
mov ecx, eax
call fcn.0043a630
push eax
mov edx, str.locale_
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.00438cab
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
mov edx, eax
mov dword [esp], str..xml
call fcn.00420942
pop ecx
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x433f7c
mov eax, dword [eax]
push eax
call fcn.0043a8b7
mov ecx, eax
call fcn.004bb0f3
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.0041164f
push 0
push 1
lea ecx, [ebp - 0x58]
call fcn.0041164f
push 0
push 1
lea ecx, [ebp - 0x70]
call fcn.0041164f
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.0041164f
call fcn.00571888
ret
Function at 0x434f39
Capabilities:
Set registry value

Disassembly:
push 0x44
mov eax, 0x5b8981
call fcn.005718de
mov esi, ecx
mov eax, dword [esi + 0x9a4]
sub eax, dword [esi + 0x9a0]
cmp eax, 4
jb 0x435069
mov eax, dword [esi + 0x9a4]
xor ebx, ebx
mov ecx, dword [esi + 0x9a0]
mov edx, eax
and dword [ebp - 0x14], ebx
sub edx, ecx
add edx, 3
xor edi, edi
shr edx, 2
cmp ecx, eax
cmova edx, dword [ebp - 0x14]
test edx, edx
je 0x434f8d
add ebx, dword [ecx]
inc edi
lea ecx, [ecx + 4]
cmp edi, edx
jne 0x434f83
mov ecx, eax
lea edi, [ebp - 0x20]
sub ecx, dword [esi + 0x9a0]
mov eax, ebx
sar ecx, 2
xor edx, edx
div ecx
xor esi, esi
mov ebx, eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
push esi
sub esp, 0x10
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x20]
push str.SoftwareTencentMobileGamePCGameDownload
push closesocket
call fcn.00430522
test eax, eax
je 0x434ffb
push 0x212
push str.CMainWnd::RecordDownloadAverageSpeed
push str.MainWnd.cpp
push str.Download
push 3
lea ecx, [ebp - 0x50]
call fcn.0041138d
mov byte [ebp - 4], 1
mov ecx, eax
push str.record_average_speed_failed:_cant_open_user_reg_path
jmp 0x435054
push 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
push 4
push esi
push str.DownloadSpeed
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x217
push str.CMainWnd::RecordDownloadAverageSpeed
push str.MainWnd.cpp
push str.Download
push 1
lea ecx, [ebp - 0x50]
call fcn.0041138d
mov esi, eax
push str.record_download_average_speed__
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.004116b0
push ebx
mov ecx, esi
call fcn.0042d1cf
push str._kb_s__success
mov ecx, esi
call fcn.004116b0
lea ecx, [ebp - 0x50]
call fcn.005b3223
lea ecx, [ebp - 0x20]
call fcn.0040ccff
call fcn.00571888
ret
Function at 0x43bc6e
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push 0x6c
mov eax, 0x5b96f0
call fcn.005718de
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x64], 7
xor ebx, ebx
mov word [ebp - 0x78], ax
mov edi, str.0C196968_D540_49D0_A765_8F113FBECF04_TGBDownloader
mov dword [ebp - 0x68], ebx
cmp word [str.0C196968_D540_49D0_A765_8F113FBECF04_TGBDownloader], ax
je 0x43bca3
push edi
call fcn.0058e083
pop ecx
push eax
push edi
lea ecx, [ebp - 0x78]
call fcn.004107ce
lea edx, [ebp - 0x78]
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x2c]
call fcn.0043bbdc
push ebx
push 1
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 2
call fcn.0041164f
push 0x30
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.00589540
sub esp, 0x1c
mov ecx, esp
push dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0042ef06
push ebx
lea ecx, [ebp - 0x5c]
call fcn.0042ee6c
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
push ebx
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [ebp - 0x5c], eax
test eax, eax
jne 0x43bdae
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 2
jne 0x43bdae
lea ecx, [ebp - 0x5c]
call fcn.0042f07c
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
jne 0x43bda1
push 0xb7
push str.CheckSingleton
push str.TGBDownloader.cpp
push str.Main
push 3
lea ecx, [ebp - 0x5c]
call fcn.0041138d
mov esi, eax
push str.Create_singleton_mutex
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.004116b0
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call fcn.00411573
push str._failed._error_code:
mov ecx, esi
call fcn.004116b0
call edi
push eax
mov ecx, esi
call fcn.0042d1cf
lea ecx, [ebp - 0x5c]
call fcn.005b3223
call edi
cmp eax, 0xb7
je 0x43bdb6
mov bl, 1
jmp 0x43bdb6
lea ecx, [ebp - 0x5c]
call fcn.0042f07c
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0041164f
mov al, bl
call fcn.00571888
ret
Function at 0x43d65b
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x6300f4]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test edi, edi
je 0x43d6ed
cmp dword [esi + 0x10], 0
je 0x43d6ed
push 0x5f7fb8
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x43d6ed
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x43d6ed
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x43d6ed
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x43d6ed
cmp dword [esi + 0x14], 8
jb 0x43d6c6
mov esi, dword [esi]
push 0
push 0x80
push 2
push 0
push 1
push 0x10000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x43d700
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057086f
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x43d725
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x43d6ed
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x43d6ef
Function at 0x43d98c
Capabilities:
Check if file exists
Delete file
Get common file path
Get startup folder

Disassembly:
push 0x278
mov eax, 0x5b9b6e
call fcn.005718de
mov dword [ebp - 0x238], edx
mov esi, ecx
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x23c], eax
xor eax, eax
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], ecx
mov word [ebp - 0x234], ax
push 0x208
push ecx
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], ecx
push eax
call fcn.00589540
push 0x104
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.00589540
add esp, 0x18
lea eax, [ebp - 0x21c]
push 1
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x43db2a
and dword [ebp - 0x244], 0
xor eax, eax
mov dword [ebp - 0x240], 7
mov word [ebp - 0x254], ax
cmp word [ebp - 0x21c], ax
je 0x43da43
lea eax, [ebp - 0x21c]
push eax
call fcn.0058e083
pop ecx
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x254]
call fcn.004107ce
push 0x5f5a10
lea edx, [ebp - 0x254]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x284]
call fcn.00420942
push dword [ebp - 0x238]
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x26c]
call fcn.00420942
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x234]
call fcn.0040d5cc
push 0
push 1
lea ecx, [ebp - 0x26c]
call fcn.0041164f
push 0
push 1
lea ecx, [ebp - 0x284]
call fcn.0041164f
push 0
push 1
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 0
call fcn.0041164f
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
cmovae eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43db00
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
cmovae eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x23c]
cmp dword [ebp - 0x220], 8
lea edx, [ebp - 0x234]
push ebx
cmovae edx, dword [ebp - 0x234]
mov ecx, esi
push edi
call fcn.0043db44
add esp, 0xc
mov esi, eax
jmp 0x43db2d
xor esi, esi
inc esi
push 0
push 1
lea ecx, [ebp - 0x234]
call fcn.0041164f
mov eax, esi
call fcn.00571888
ret
Function at 0x43dc09
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x6300f4]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
push 0x41
mov edx, eax
mov dword [esp + 0x18], esi
mov eax, dword [0x5fa3dc]
mov edi, dword [esp + 0x18]
pop ebx
mov dword [esp + 0x2c], eax
mov eax, dword [0x5fa3e0]
push 2
mov dword [esp + 0x14], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x34], eax
pop esi
xor eax, eax
mov ecx, esi
inc eax
shl eax, cl
test edx, eax
je 0x43dce4
lea eax, [esi + 0x41]
mov word [esp + 0x2c], ax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x43dce0
mov ecx, dword [esp + 0x2c]
call fcn.0043dd17
test eax, eax
jne 0x43dce0
mov ecx, dword [esp + 0x2c]
call fcn.0043ddf1
test eax, eax
je 0x43dce0
push 0
push 0
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x43dce0
cmp edi, dword [esp + 0x24]
ja 0x43dce0
jb 0x43dccf
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x20]
ja 0x43dce0
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
movzx ebx, word [esp + 0x2c]
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0xc]
inc esi
cmp esi, 0x1a
jl 0x43dc68
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x2c]
push eax
mov word [esp + 0x30], bx
call fcn.0041086e
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0057086f
mov esp, ebp
pop ebp
ret
Function at 0x43dd17
Capabilities:
Get storage device properties

Disassembly:
push 0x28
mov eax, 0x5b9ba6
call fcn.005718de
mov si, cx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
call fcn.0040cabf
push eax
lea ecx, [ebp - 0x14]
call fcn.00403c09
mov dword [ebp - 4], ebx
lea edi, [ebp - 0x20]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
xor eax, eax
inc eax
mov byte [ebp - 4], al
movzx eax, si
push eax
lea eax, [ebp - 0x14]
push str.__c:
push eax
call fcn.004044af
mov esi, dword [ebp - 0x14]
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 3
push closesocket
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x34], eax
cmp eax, 0xffffffff
je 0x43ddd9
push 0x229
lea ecx, [ebp - 0x20]
call fcn.00403993
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x24]
push ebx
push eax
mov ecx, 0x228
lea eax, [ebp - 0x30]
push ecx
push edi
push 0xc
push eax
push 0x2d1400
push dword [ebp - 0x34]
mov dword [edi + 4], ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x43ddd0
cmp dword [edi + 0x1c], 7
push 1
pop eax
cmove ebx, eax
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x20]
call fcn.00403d44
lea ecx, [esi - 0x10]
call fcn.0040cb81
mov eax, ebx
call fcn.00571888
ret

Function at 0x43ddf1
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x5b9bdb
call fcn.005718de
mov si, cx
xor edi, edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x20], edi
call fcn.0040cabf
push eax
lea ecx, [ebp - 0x20]
call fcn.00403c09
mov dword [ebp - 4], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
movzx eax, si
push eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 1
push str._c:_test.tmp
push eax
call fcn.004044af
mov esi, dword [ebp - 0x20]
mov dword [esp], 0x4000000
push 2
push ecx
push 0xc0000000
push esi
lea ecx, [ebp - 0x1c]
call fcn.00401e30
test eax, eax
jne 0x43dec5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
push eax
push 4
lea eax, [ebp - 0x28]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x43de7d
call fcn.00411c92
jmp 0x43de7f
xor eax, eax
test eax, eax
jne 0x43dec8
push eax
push ecx
push ecx
lea ecx, [ebp - 0x1c]
call fcn.0041e9da
and dword [ebp - 0x24], 0
lea eax, [ebp - 0x24]
push ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401e80
test eax, eax
jne 0x43dec5
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x28]
jne 0x43dec5
cmp dword [ebp - 0x1c], 0
mov dword [ebp - 0x30], 1
je 0x43ded3
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
jmp 0x43dec8
mov edi, dword [ebp - 0x1c]
test edi, edi
je 0x43ded3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi - 0x10]
call fcn.0040cb81
mov eax, dword [ebp - 0x30]
call fcn.00571888
ret
Function at 0x43e654
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x6300f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x3c]
push esi
push edi
push 0x38
push 0
push eax
mov esi, edx
mov edi, ecx
call fcn.00589540
and dword [ebp - 0x38], 0
add esp, 0xc
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x34], str.open
jb 0x43e698
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x30], edi
jb 0x43e6a3
mov esi, dword [esi]
xor ecx, ecx
mov dword [ebp - 0x2c], esi
cmp byte [ebp + 8], cl
push 5
pop eax
cmovne eax, ecx
mov dword [ebp - 0x3c], 0x540
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x43e6cd
xor al, al
jmp 0x43e6f7
cmp dword [ebp - 8], 0
je 0x43e6f5
test ebx, ebx
je 0x43e6f5
push 0xffffffffffffffff
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057086f
mov esp, ebp
pop ebp
ret

Function at 0x43ea81
Capabilities:
Get file version info

Disassembly:
push 0x14
mov eax, 0x5b9d4d
call fcn.005718de
mov esi, ecx
xor ecx, ecx
xorps xmm0, xmm0
cmp dword [esi + 0x14], 8
movlpd qword [ebp - 0x20], xmm0
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
jb 0x43eaa9
mov eax, dword [esi]
jmp 0x43eaab
mov eax, esi
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x43eb1d
push edi
call fcn.0058e699
mov ebx, eax
pop ecx
test ebx, ebx
je 0x43eb1d
push edi
push 0
push ebx
call fcn.00589540
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x43eada
mov esi, dword [esi]
push ebx
push edi
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x43eb0e
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x5f5a10
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x43eb0e
mov eax, dword [ebp - 0x18]
xor esi, esi
mov edi, dword [eax + 8]
or esi, dword [eax + 0xc]
jmp 0x43eb14
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
push ebx
call fcn.0058e253
pop ecx
jmp 0x43eb23
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
mov eax, esi
mov edx, edi
call fcn.00571888
ret
Function at 0x43ebbe
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x6300f4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x18]
xor ebx, ebx
xor esi, esi
push 0xc
push ebx
push eax
mov dword [ebp - 0xc], ebx
inc esi
call fcn.00589540
push 0xc
lea eax, [ebp - 0x30]
mov dword [ebp - 0x14], ebx
push ebx
push eax
mov dword [ebp - 0x18], 8
mov dword [ebp - 0xc], ebx
call fcn.00589540
add esp, 0x18
lea eax, [ebp - 0xc]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push eax
push 0xc
lea eax, [ebp - 0x30]
push eax
push 0xc
lea eax, [ebp - 0x18]
push eax
push 0x2d1400
push edi
call ebx
test eax, eax
je 0x43ec36
cmp dword [ebp - 0xc], 0xc
jne 0x43ec36
movzx eax, byte [ebp - 0x28]
and esi, eax
push 0xc
lea eax, [ebp - 0x24]
push 0
push eax
call fcn.00589540
xor eax, eax
mov dword [ebp - 0x24], 7
push 0xc
push eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00589540
add esp, 0x18
lea eax, [ebp - 0xc]
push 0
push eax
push 0xc
lea eax, [ebp - 0x3c]
push eax
push 0xc
lea eax, [ebp - 0x24]
push eax
push 0x2d1400
push edi
call ebx
test eax, eax
je 0x43ec8f
cmp dword [ebp - 0xc], 0xc
jne 0x43ec8f
xor eax, eax
cmp byte [ebp - 0x34], al
sete al
and esi, eax
and dword [ebp - 0xc], 0
lea eax, [ebp - 0x264]
push 0x228
push 0
push eax
call fcn.00589540
add esp, 0xc
mov dword [ebp - 0x258], 5
mov dword [ebp - 0x25c], 0x200
mov byte [ebp - 0x23e], 0xec
push 0x28
pop eax
push 2
pop ecx
push 0
mov word [ebp - 0x264], ax
mov dword [ebp - 0x250], eax
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0x262], cx
lea eax, [ebp - 0x264]
mov ecx, 0x228
push ecx
push eax
push ecx
push eax
push 0x4d02c
push edi
call ebx
test eax, eax
je 0x43ed18
cmp dword [ebp - 0xc], 0x228
jne 0x43ed18
push 2
pop eax
cmp word [ebp - 0x8a], ax
sbb ecx, ecx
neg ecx
and esi, ecx
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057086f
mov esp, ebp
pop ebp
ret 4
Function at 0x43ed2d
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x6300f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x5fa4f4]
and dword [ebp - 0x1c], 0
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ax, word [0x5fa4f8]
mov word [ebp - 8], ax
xor eax, eax
and dword [ebx + 4], eax
push esi
mov word [ebx], ax
lea eax, [ebp + 0xc]
push edi
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0043f380
mov edi, dword [ebp - 0x24]
mov esi, dword [edi + 0xc]
mov edi, dword [edi + 0x10]
jmp 0x43edca
movzx eax, word [esi]
push 8
mov dword [ebp - 0x20], eax
mov word [ebp - 0xc], ax
lea eax, [ebp - 0x18]
push 0
push eax
call fcn.00589540
add esp, 0xc
lea eax, [ebp - 0x18]
push 0
push 0
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x43edc7
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
shrd ecx, eax, 0x1e
shr eax, 0x1e
cmp dword [ebp - 0x1c], ecx
jae 0x43edc7
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], ecx
mov word [ebx], ax
mov dword [ebx + 4], ecx
add esi, 2
cmp esi, edi
jne 0x43ed79
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057086f
mov esp, ebp
pop ebp
ret 8

Function at 0x43eef4
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x6300f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
movzx eax, cx
xor esi, esi
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], esi
push str.._c:
push eax
call fcn.0043f361
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push esi
push 3
push esi
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x43efa1
push 0xc
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.00589540
add esp, 0xc
lea eax, [ebp - 0x210]
push esi
push eax
push 0xc
lea eax, [ebp - 0x21c]
push eax
push esi
push esi
push 0x2d1080
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x43efa1
cmp dword [ebp - 0x210], 0xc
jne 0x43efa1
mov eax, dword [ebp - 0x218]
mov dword [ebx], eax
xor eax, eax
inc eax
jmp 0x43efa3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057086f
mov esp, ebp
pop ebp
ret 4