joyce8/EMBER2024-capa huggingface dataset:
Function at 0x110b5640
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x110ba4cc]
cmp dword [eax + 0x28], 0
jne 0x110b5658
xor eax, eax
jmp 0x110b5787
mov ecx, dword [0x110ba43c]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
add edx, 0xe
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov dword [0x110ba430], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
mov dword [0x110ba42c], eax
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x10], eax
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x18], eax
mov ecx, dword [0x110ba430]
mov dword [ebp - 0x40], ecx
mov edx, dword [0x110ba42c]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x40]
shr eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 8]
shr ecx, 1
mov dword [ebp - 0x1c], ecx
push 0
mov edx, dword [0x110ba4b8]
push edx
push 0
push 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0x80000000
push 0x110b965c
push 0x110b9678
push 0x88
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [0x110ba428], ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.110b5580
push 5
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x110b5610
mov edx, dword [0x110ba4cc]
mov eax, dword [edx + 0x34]
imul eax, eax, 0x3e8
push eax
push 0
push 0
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [0x110ba434], eax
push 1
push 0
push 0
push 0
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x110b5787
cmp dword [ebp - 0x38], 0x12
jne 0x110b577b
mov dword [0x110ba444], 0
call fcn.110b5790
xor eax, eax
jmp 0x110b5787
lea edx, [ebp - 0x3c]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x110b574c
mov esp, ebp
pop ebp
ret 4

Function at 0x110b6b40
Capabilities:
Read .ini file
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebp
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
pop ebp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x110b766c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edi, 0x110b915c
sub eax, eax
test esi, esi
je 0x110b7744
sub eax, 1
test ecx, ecx
je 0x110b7742
test esi, 3
je 0x110b76aa
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x110b768f
mov edx, ecx
and edx, 7
shr ecx, 3
je 0x110b7729
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x110b76b4
mov ecx, edx
test ecx, ecx
je 0x110b7742
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x110b772f
not eax
mov dword [esp + 0x1c], eax
popal
ret

Function at 0x110b774c
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.110b77cf
jae 0x110b775a
xor ecx, ecx
call fcn.110b77cf
jae 0x110b7789
xor eax, eax
call fcn.110b77cf
jae 0x110b7799
mov bl, 2
inc ecx
mov al, 0x10
call fcn.110b77cf
adc al, al
jae 0x110b777b
jne 0x110b77c5
stosb byte es:[edi], al
jmp 0x110b775d
call fcn.110b77db
sub ecx, ebx
jne 0x110b77a2
call fcn.110b77d9
jmp 0x110b77c1
lodsb al, byte [esi]
shr eax, 1
je 0x110b77eb
adc ecx, ecx
jmp 0x110b77be
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.110b77d9
cmp eax, 0x7d00
jae 0x110b77be
cmp ah, 5
jae 0x110b77bf
cmp eax, 0x7f
ja 0x110b77c0
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x110b775d
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret

Function at 0x110b811c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x110ba000]
jne 0x110b8126
repz ret
jmp fcn.110b83cd
Function at 0x401920
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x664
mov eax, dword [0x41f19c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x412]
push ecx
mov word [ebp - 0x414], ax
call fcn.004072b0
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x20a]
push eax
mov word [ebp - 0x20c], dx
call fcn.004072b0
add esp, 0x18
push 0x104
lea ecx, [ebp - 0x414]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x401a02
push esi
push edi
lea edx, [ebp - 0x664]
push edx
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4019d9
mov ecx, dword [ebp - 0x660]
mov edx, dword [ebp - 0x65c]
push ecx
push edx
push str._d_d
lea eax, [ebp - 0x20c]
push 0x103
push eax
call fcn.0040787a
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4019f2
push 0x104
mov ecx, 0x420304
call fcn.00403560
push eax
lea ecx, [ebp - 0x20c]
push ecx
call edi
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x20c]
push eax
push ebx
call edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00407299
mov esp, ebp
pop ebp
ret

Function at 0x401a20
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x41f19c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
push str.TBHInstall_Entering...
call fcn.00402fa0
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.004072b0
lea edx, [ebp - 0x20c]
push 0x104
push edx
call fcn.00401920
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
mov dword [ebp - 0x624], esi
test esi, esi
je 0x401aa8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401aa8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401b47
mov ecx, dword [ebp + 8]
push 0
mov dword [0x4202b8], ecx
call fcn.00401740
add esp, 4
lea ecx, [ebp - 0x620]
call fcn.004023c0
test ebx, ebx
je 0x401b11
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [eax + 1]
cmp edi, 0x3fffffff
jg 0x401b11
lea eax, [edi + edi]
call fcn.00407330
mov esi, esp
test esi, esi
je 0x401b0b
push edi
push esi
push 0xffffffffffffffff
xor edx, edx
push ebx
push edx
push 3
mov word [esi], dx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, esi
mov esi, dword [ebp - 0x624]
jmp 0x401b13
mov esi, dword [ebp - 0x624]
xor eax, eax
push eax
lea ecx, [ebp - 0x620]
call fcn.00402580
call fcn.00401380
test esi, esi
je 0x401b2f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.TBHInstall_Leaving...
call fcn.00402fa0
add esp, 4
lea ecx, [ebp - 0x620]
call fcn.00402400
xor eax, eax
lea esp, [ebp - 0x630]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407299
mov esp, ebp
pop ebp
ret 0x10
Function at 0x402410
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x41f19c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
mov edi, ecx
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.004072b0
add esp, 0xc
lea edx, [ebp - 0x20c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0
call fcn.00408041
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
add esp, 4
push eax
lea eax, [ebp - 0x20c]
push eax
call ebx
push 0
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x104
lea edx, [ebp - 0x20c]
push edx
lea esi, [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0x104
lea eax, [ebp - 0x20c]
push eax
add edi, 0x20c
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push str.TBH.cab
push esi
call ebx
push str.InstallDll.cab
push edi
call ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call ebx
push edi
call ebx
mov ecx, dword [0x4202b8]
push esi
push 0x419ebc
push 0x6b
push ecx
call fcn.00404d50
add esp, 0x10
test eax, eax
je 0x402518
mov edx, dword [0x4202b8]
push edi
push 0x419ebc
push 0x6a
push edx
call fcn.00404d50
add esp, 0x10
test eax, eax
je 0x402518
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407299
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00407299
mov esp, ebp
pop ebp
ret

Function at 0x402580
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x41f19c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [ebp - 0x20a]
push ecx
xor ebx, ebx
mov word [ebp - 0x20c], ax
call fcn.004072b0
add esp, 0xc
mov ecx, esi
call fcn.00402410
test eax, eax
je 0x4025d7
push edi
mov ecx, esi
call fcn.00402530
test eax, eax
je 0x4025d7
mov ebx, 1
lea edi, [esi + 4]
push 1
push edi
call fcn.00405760
push 1
add esi, 0x20c
push esi
call fcn.00405760
add esp, 0x10
push 0x104
push edi
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x402634
push eax
lea edx, [ebp - 0x20c]
push edx
call fcn.00405760
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00407299
mov esp, ebp
pop ebp
ret 4
Function at 0x402b20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x41f19c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x412]
push edx
mov dword [ebp - 0x418], eax
xor ebx, ebx
mov word [ebp - 0x414], cx
call fcn.004072b0
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.004072b0
add esp, 0x18
cmp dword [0x420518], ebx
jne 0x402b9d
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407299
mov esp, ebp
pop ebp
ret 0x10
push 0x104
lea edx, [ebp - 0x414]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x402c40
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.dllcache
lea ecx, [ebp - 0x20c]
push ecx
call esi
lea edx, [ebp - 0x414]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp - 0x20c]
push eax
call esi
push 1
push 0
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x402c40
push edi
push esi
call fcn.00402a60
test eax, eax
je 0x402c39
mov ecx, dword [ebp + 0x14]
lea edx, [ebp - 0x41c]
push edx
mov edx, dword [ebp - 0x418]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00407299
mov esp, ebp
pop ebp
ret 0x10

Function at 0x402f20
Capabilities:
Check os version
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x41f19c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x402f80
cmp dword [ebp - 0x114], 6
jb 0x402f80
push 0x104
push esi
push str._USERPROFILE_AppDataLocalLowDTLog.txt
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407299
mov esp, ebp
pop ebp
ret
push 0x104
push str.C:DTLog.txt
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00407299
mov esp, ebp
pop ebp
ret
Function at 0x402fa0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2104
call fcn.004089a0
mov eax, dword [0x41f19c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 1
call fcn.00402ef0
add esp, 4
test eax, eax
je 0x4031ff
push str.977B4CC2_9D55_4B84_B7E3_FBABFCDB022B
push 0
mov ecx, 0x4206f8
call fcn.00405ad0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
test ebx, ebx
je 0x4031ff
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4031f8
push 0x1ffe
push eax
lea ecx, [ebp - 0x2102]
push ecx
mov word [ebp - 0x2104], ax
call fcn.004072b0
add esp, 0xc
cmp byte [0x4205e0], 0
jne 0x403031
push 0x4205e0
call fcn.00402f20
add esp, 4
xor edx, edx
push 0xfe
push edx
lea eax, [ebp - 0x102]
push eax
mov word [ebp - 0x104], dx
call fcn.004072b0
lea ecx, [ebp - 0x104]
push ecx
call fcn.00408979
push eax
push 0x41a138
lea edx, [ebp - 0x104]
push 0x80
push edx
call fcn.00408892
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebp - 0x2104]
push 0x1000
push ecx
call fcn.00408208
xor edx, edx
push 0xfe
push edx
lea eax, [ebp - 0x102]
push eax
mov word [ebp - 0x104], dx
call fcn.004072b0
lea ecx, [ebp - 0x104]
push ecx
call fcn.00408876
push eax
push 0x41a138
lea edx, [ebp - 0x104]
push 0x80
push edx
call fcn.00408892
add esp, 0x4c
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebp - 0x2104]
push 0x1000
push ecx
call fcn.00408208
xor edx, edx
push 0xfe
push edx
lea eax, [ebp - 0x102]
push eax
mov word [ebp - 0x104], dx
call fcn.004072b0
add esp, 0x18
push 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x41a118
lea ecx, [ebp - 0x104]
push 0x80
push ecx
call fcn.00408892
lea edx, [ebp - 0x104]
push edx
lea eax, [ebp - 0x2104]
push 0x1000
push eax
call fcn.00408208
lea eax, [ebp - 0x2104]
add esp, 0x24
lea edx, [eax + 2]
jmp 0x403150
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403150
sub eax, edx
mov edx, dword [ebp + 8]
lea ecx, [ebp + 0xc]
push ecx
push edx
sar eax, 1
mov ecx, 0x1000
push 0xffffffffffffffff
sub ecx, eax
push ecx
lea edx, [ebp + eax*2 - 0x2104]
push edx
call fcn.00408796
push 0x41a114
lea eax, [ebp - 0x2104]
push 0x1000
push eax
call fcn.00408208
push 0x41a110
push 0x4205e0
call fcn.00408520
mov esi, eax
add esp, 0x28
test esi, esi
je 0x4031f1
lea ecx, [ebp - 0x2104]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x4031c5
xor eax, eax
jmp 0x4031e1
lea edi, [eax + eax]
mov eax, edi
call fcn.00407330
mov eax, esp
push 3
push edi
lea edx, [ebp - 0x2104]
push edx
push eax
call fcn.00402680
push esi
push eax
call fcn.0040835e
push esi
call fcn.004082ea
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esp, [ebp - 0x2110]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407299
mov esp, ebp
pop ebp
ret
Function at 0x4034e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
push edi
test ecx, ecx
je 0x40355a
mov edi, dword [ebp + 0x18]
push edi
call fcn.004034d0
add esp, 4
cmp ecx, eax
jl 0x40355a
push esi
mov esi, dword [ebp + 0xc]
xor eax, eax
mov word [esi], ax
mov byte [ebp + 0x13], al
mov al, 0x40
add al, 0x40
mov byte [ebp + 0x13], al
nop
xor eax, eax
test edi, edi
jle 0x403550
mov dl, byte [ebp + 8]
push ebx
lea esp, [esp]
nop
nop
mov ecx, dword [ebp + 0x14]
mov cl, byte [eax + ecx]
xor cl, byte [ebp + 0x13]
nop
mov ebx, eax
and ebx, 3
mov bl, byte [ebx + 0x41a1e0]
add bl, dl
xor bl, cl
movzx ecx, bl
mov word [esi + eax*2], cx
nop
xor ecx, ecx
mov word [esi + eax*2 + 2], cx
inc eax
cmp eax, edi
jl 0x403520
pop ebx
nop
pop esi
mov eax, 1
pop edi
pop ebp
ret
xor eax, eax
pop edi
pop ebp
ret
Function at 0x404320
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4171ab
mov eax, dword fs:[0]
push eax
mov eax, 0x2744
call fcn.004089a0
mov eax, dword [0x41f19c]
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 eax, dword [0x41f014]
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0x274c], ebx
mov dword [ebp - 0x2748], eax
push ebx
lea ecx, [ebp - 0x2748]
push str..PhysicalDrive_d
push ecx
mov dword [ebp - 4], ebx
call fcn.00404300
mov edx, dword [ebp - 0x2748]
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4044f2
xor eax, eax
push ebx
mov dword [ebp - 0x2740], eax
mov dword [ebp - 0x273c], eax
mov dword [ebp - 0x2738], eax
mov dword [ebp - 0x2734], eax
mov dword [ebp - 0x2730], eax
lea eax, [ebp - 0x2750]
push eax
push 0x18
lea ecx, [ebp - 0x2744]
push ecx
push ebx
push ebx
push 0x70000
push esi
mov dword [ebp - 0x2744], ebx
mov dword [ebp - 0x2750], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, 1
jne 0x4044e3
mov edx, dword [ebp - 0x273c]
push edx
push 0x41a2b8
push edi
call fcn.00404300
xor eax, eax
mov dword [ebp - 0x272c], eax
mov dword [ebp - 0x2728], eax
push 0x270f
mov dword [ebp - 0x2724], eax
lea eax, [ebp - 0x271f]
push ebx
push eax
mov dword [ebp - 0x272c], ebx
mov dword [ebp - 0x2728], ebx
mov byte [ebp - 0x2720], bl
call fcn.004072b0
add esp, 0x18
push ebx
lea ecx, [ebp - 0x2750]
push ecx
push 0x2710
lea edx, [ebp - 0x2720]
push edx
push 0xc
lea eax, [ebp - 0x272c]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4044e3
mov eax, dword [ebp - 0x2710]
cmp eax, ebx
je 0x404487
lea ecx, [ebp + eax - 0x2720]
push ecx
lea ecx, [edi + 4]
call fcn.00403b40
mov eax, dword [ebp - 0x2708]
cmp eax, ebx
je 0x4044a1
lea edx, [ebp + eax - 0x2720]
push edx
lea ecx, [edi + 8]
call fcn.00403b40
mov eax, dword [ebp - 0x2714]
cmp eax, ebx
je 0x4044bb
lea eax, [ebp + eax - 0x2720]
push eax
lea ecx, [edi + 0xc]
call fcn.00403b40
mov eax, dword [ebp - 0x270c]
cmp eax, ebx
je 0x4044d5
lea ecx, [ebp + eax - 0x2720]
push ecx
lea ecx, [edi + 0x10]
call fcn.00403b40
push esi
mov edi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4044f8
mov edi, dword [ebp - 0x274c]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4044f8
mov edi, dword [ebp - 0x274c]
mov eax, dword [ebp - 0x2748]
lea edx, [eax - 0xc]
cmp edx, dword [0x41f010]
je 0x404520
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x404520
push esi
call fcn.00407c23
add esp, 4
mov eax, edi
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.00407299
mov esp, ebp
pop ebp
ret
Function at 0x404d50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
cmp esi, ebx
je 0x404daa
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_IsBadStringPtrW]
test eax, eax
jne 0x404daa
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404d73
sub eax, edx
sar eax, 1
je 0x404daa
mov edx, dword [ebp + 0x10]
lea eax, [ebp + 0x14]
push eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
push ecx
mov dword [ebp - 4], ebx
mov dword [ebp + 0x14], ebx
call fcn.00404cc0
add esp, 0x14
test eax, eax
jne 0x404db2
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebp + 0x14]
cmp edi, ebx
jbe 0x404e2b
push ebx
push 0x20
push 2
push ebx
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 0x14], eax
cmp eax, 0xffffffff
je 0x404e2b
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 4]
jmp 0x404de3
mov eax, dword [ebp + 0x14]
mov esi, 0x1000
cmp edi, 0x1000
ja 0x404df2
mov esi, edi
push 0
lea edx, [ebp - 8]
push edx
push esi
push ebx
push eax
sub edi, esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404e21
add ebx, esi
test edi, edi
jne 0x404de0
mov ecx, dword [ebp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi + 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407299
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41f19c]
jne 0x4072a3
repz ret
jmp fcn.0040a270

Function at 0x40dd43
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x40dd6a
call fcn.0040cbff
mov dword [eax], esi
call fcn.0040cbec
push 0x16
pop esi
mov dword [eax], esi
call fcn.0040cb9a
mov eax, esi
jmp 0x40ddbf
test dword [ebp + 0xc], 0xfffffff9
jne 0x40dd50
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40dd97
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040cc12
pop ecx
call fcn.0040cbec
mov eax, dword [eax]
jmp 0x40ddbf
test al, 0x10
jne 0x40ddbd
test al, 1
je 0x40ddbd
test byte [ebp + 0xc], 2
je 0x40ddbd
call fcn.0040cbff
mov dword [eax], 5
call fcn.0040cbec
mov dword [eax], 0xd
jmp 0x40dd8e
xor eax, eax
pop esi
pop ebp
ret