joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e560
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x664
mov eax, dword [0x42d018]
xor eax, esp
mov dword [esp + 0x660], eax
push ebx
mov ebx, ecx
push esi
xor eax, eax
test ebx, ebx
push edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0xc], 0x2a
je 0x40e753
push 0x400
push eax
lea eax, [esp + 0x270]
push eax
call sub.MSVCR80.dll_memset
push 0x250
lea ecx, [esp + 0x28]
push 0
push ecx
call sub.MSVCR80.dll_memset
push 0x1fe
lea edx, [esp + 0x284]
push ebx
push edx
call dword [sym.imp.MSVCR80.dll_wcsncpy]
lea eax, [esp + 0x30]
add esp, 0x24
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e5d6
lea edi, [esp + 0x268]
sub eax, edx
add edi, 0xfffffffe
lea ecx, [ecx]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40e5f0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x18]
rep movsb byte es:[edi], byte [esi]
push eax
lea ecx, [esp + 0x26c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x40e63f
or eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x660]
xor ecx, esp
call fcn.0041f208
mov esp, ebp
pop ebp
ret
mov eax, ebx
lea ebx, [esp + 0x268]
sub ebx, eax
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [ebx + eax], cx
add eax, 2
test cx, cx
jne 0x40e650
lea eax, [esp + 0x44]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e665
lea edi, [esp + 0x268]
sub eax, edx
add edi, 0xfffffffe
lea esp, [esp]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40e680
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x44]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.0040e430
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [esp + 0xc], eax
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x40e744
mov eax, dword [esp + 0x14]
lea esp, [esp]
movzx ecx, word [eax]
mov word [ebx + eax], cx
add eax, 2
test cx, cx
jne 0x40e6d0
lea eax, [esp + 0x44]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e6e5
lea edi, [esp + 0x268]
sub eax, edx
add edi, 0xfffffffe
lea esp, [esp]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40e700
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x268]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.0040e430
add dword [esp + 0x10], eax
mov ecx, dword [esp + 0x14]
add esp, 4
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40e6c5
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x66c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041f208
mov esp, ebp
pop ebp
ret
Function at 0x417e90
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x208
mov eax, dword [0x42d018]
xor eax, esp
mov dword [esp + 0x204], eax
push esi
push edi
push 0x428490
lea eax, [esp + 0xc]
push str.C:Import3DLogpmi_tess_trace.log
push eax
mov edi, ecx
mov dword [esp + 0x14], 0
call dword [sym.imp.MSVCR80.dll_fopen_s]
add esp, 0xc
cmp dword [esp + 8], 0
je 0x417f0f
push 0x200
lea ecx, [esp + 0x10]
push 0
push ecx
call sub.MSVCR80.dll_memset
push 0x200
lea esi, [esp + 0x1c]
call fcn.00417da0
mov eax, dword [esp + 0x18]
mov edx, esi
push edx
push str._s__n
push eax
call dword [sym.imp.MSVCR80.dll_fprintf]
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 0x20
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.PMI__
call esi
push edi
call esi
push 0x4284d0
call esi
mov ecx, dword [esp + 0x20c]
pop edi
pop esi
xor ecx, esp
call fcn.0041f208
add esp, 0x208
ret
Function at 0x41b440
Capabilities:
Read file via mapping

Disassembly:
sub esp, 0x28
mov eax, dword [0x42d018]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x4284d4
lea eax, [esp + 0x10]
push 0x10
push eax
call dword [sym.imp.MSVCR80.dll_swprintf_s]
add esp, 0x10
test esi, esi
mov word [esp + 0x28], 0
je 0x41b486
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
lea edx, [esp + 8]
push edx
push 0x800000
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push 0
push 0
push 0
mov esi, eax
push 2
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
lea eax, [esp + 8]
push eax
push 0x10
push 0xa5a34c
mov dword [0xa5a344], esi
mov dword [0xa5a348], edi
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
add esp, 0xc
mov eax, 0xa5a344
call fcn.0041b630
mov ecx, dword [esp + 0x2c]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.0041f208
add esp, 0x28
ret

Function at 0x41c500
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push esi
push 0x41c5c0
push 0x3e8
push 0
push 0
mov dword [0xa5a100], 0xa5a150
mov byte [0xa5a0fc], 0
mov dword [0xa5a190], 0xffffffff
call dword [sym.imp.USER32.dll_SetTimer]
cmp byte [0xa5a1ac], 0
mov dword [0xa5a190], eax
mov dword [0xa5a184], 0x1b7740
je 0x41c54e
or esi, 0xffffffff
jmp 0x41c579
push edi
mov dword [esp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea edi, [esp + 0xc]
call fcn.0041c850
cmp al, 1
pop edi
jne 0x41c573
call fcn.0041c970
jmp 0x41c577
mov eax, dword [esp + 4]
mov esi, eax
call fcn.0040e220
mov eax, dword [0xa5a190]
push eax
push 0
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, esi
mov dword [0xa5a190], 0xffffffff
pop esi
pop ecx
ret

Function at 0x41ca70
Capabilities:
Create thread

Disassembly:
push ecx
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
mov dword [0xa5a180], eax
jne 0x41ca8a
pop ecx
ret
push esi
lea eax, [esp + 4]
push eax
push 0
push 0xa5a150
push 0x41cac0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
jne 0x41cab9
mov ecx, dword [0xa5a180]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ecx
ret
Function at 0x41dce0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420cd6
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x42d018]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, ecx
mov ebx, edx
mov dword [ebp - 0x428], eax
call dword [0x42d030]
xor eax, eax
mov dword [ebp - 0x430], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 0x438], ecx
mov dword [ebp - 0x43c], eax
mov dword [ebp - 0x424], eax
push 2
push eax
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
mov dword [ebp - 0x42c], edi
jne 0x41dd6a
call fcn.00408e40
mov esi, eax
jmp 0x41de7a
mov edx, dword [ebp - 0x428]
push edx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x41dd89
call fcn.00408e40
jmp 0x41de71
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 0x434], eax
jne 0x41dda5
call fcn.00408e40
jmp 0x41de71
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
lea eax, [ebx + 1]
cmp eax, ebx
mov dword [ebp - 0x428], ebx
jae 0x41ddea
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x41ddd5
lea eax, [ebp - 0x424]
call fcn.00413f00
lea esi, [ebp - 0x430]
call fcn.004130a0
mov eax, 0x8007000e
jmp 0x41de95
lea esi, [ebp - 0x424]
mov byte [ebp - 4], 2
call fcn.00413170
mov dword [ebp - 4], 1
jmp 0x41de1b
mov esi, dword [ebp - 0x424]
test esi, esi
jne 0x41de2c
mov esi, 0x8007000e
jmp 0x41de73
call dword [0x42d030]
mov ecx, dword [ebp - 0x434]
push ebx
push esi
push ebx
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x41de50
call fcn.00408e40
jmp 0x41de71
mov edx, dword [ebp - 0x424]
mov word [edx + eax*2], 0
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x424]
push eax
lea edx, [ebp - 0x43c]
call fcn.0041dec0
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x420]
cmp dword [ebp - 0x424], ecx
je 0x41de93
lea eax, [ebp - 0x424]
call fcn.00413f00
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0041f208
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41f208
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42d018]
jne 0x41f212
repz ret
jmp fcn.0041f783
Function at 0x430c40
Capabilities:
Delete file
Get common file path

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x208
cmp eax, 1
push ebx
push edi
jne case.default.0x430c9a
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], bl
mov byte [esp + 0x10c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x10d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x218]
add eax, 0xfffff006
cmp eax, 5
ja case.default.0x430c9a
jmp dword [eax*4 + 0x430ddc]
mov ecx, dword [0x5c88a4]
push ebx
call fcn.00408d70
pop edi
pop ebx
add esp, 0x208
ret 0x10
mov ecx, dword [0x5c8890]
push ebx
call fcn.0048aca0
pop edi
pop ebx
add esp, 0x208
ret 0x10
mov ecx, dword [0x5c88bc]
push ebx
push 1
call fcn.00472d50
push 0x13
jmp 0x430dc4
mov ecx, dword [0x5c88bc]
push ebx
push 1
call fcn.00472d50
lea ecx, [esp + 8]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
lea edx, [esp + 8]
lea eax, [esp + 0x10c]
push edx
push str._sImageALLCOMBO.dat
push eax
call fcn.004b8784
add esp, 0xc
lea ecx, [esp + 0x10c]
push ecx
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
push 0x13
jmp 0x430dc4
cmp dword [0x5c899c], ebx
je 0x430d82
mov ecx, dword [0x5c8890]
call fcn.0048be20
mov ecx, 0x5ecbb8
call fcn.0046af40
mov edx, dword [0x5d339c]
xor eax, eax
mov ecx, 0x4b0
mov dword [0x5d9ed0], ebx
mov dword [edx*4 + 0x5d33a0], ebx
mov edx, dword [0x5d339c]
lea edx, [edx + edx*2]
lea edx, [edx + edx*4]
lea edi, [edx + edx*4]
shl edi, 6
add edi, 0x5c9d98
rep stosd dword es:[edi], eax
mov ecx, dword [0x5c88bc]
push ebx
push 1
call fcn.00472d50
mov ecx, dword [0x5c8884]
call fcn.0042b0b0
cmp eax, 1
jne 0x430dc2
mov eax, dword [0x5c8884]
mov dword [0x5d33c0], ebx
push ebx
mov ecx, dword [eax + 0xd40]
call fcn.004340e0
pop edi
pop ebx
add esp, 0x208
ret 0x10
push 9
mov ecx, dword [0x5c8884]
call fcn.0042b0e0
pop edi
pop ebx
add esp, 0x208
ret 0x10
Function at 0x48d230
Capabilities:
Check mutex on windows
Create process on windows

Disassembly:
sub esp, 0x100
push ebp
push esi
push edi
xor esi, esi
push str.OnceMutex
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
mov ebp, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
jne 0x48d2a6
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x110]
push 0x100
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
push 0x15
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
push esi
lea edx, [esp + 0x10]
push str.Info
push edx
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x100
ret 0x10
mov ecx, 0x41e5
xor eax, eax
mov edi, 0x5c8938
push 0x59c
rep stosd dword es:[edi], eax
call fcn.004b7e62
add esp, 4
test eax, eax
je 0x48d2cc
mov ecx, eax
call fcn.0048a690
mov edi, dword [sym.imp.KERNEL32.DLL_Sleep]
mov ecx, dword [0x5c8890]
push 1
call fcn.0048bf40
test eax, eax
jne 0x48d2f0
push 0x1f4
call edi
inc esi
cmp esi, 3
jl 0x48d2d2
mov ecx, dword [0x5c8890]
cmp dword [ecx + 0x578], 1
jne 0x48d359
test ecx, ecx
je 0x48d309
mov eax, dword [ecx]
push 1
call dword [eax]
push ebp
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [0x5c8890]
push 0x16
stosb byte es:[edi], al
call fcn.0048cd00
push 0
lea edx, [esp + 0x10]
push str.Info
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x100
ret 0x10
mov eax, dword [esp + 0x118]
push eax
call fcn.0048d1e0
add esp, 4
test eax, eax
jne 0x48d3b3
mov ecx, 0x3f
lea edi, [esp + 0xd]
mov byte [esp + 0xc], al
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [0x5c8890]
push 0x17
stosb byte es:[edi], al
call fcn.0048cd00
push 0
lea edx, [esp + 0x10]
push str.Info
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x100
ret 0x10
mov ecx, dword [0x5c8890]
call fcn.0048c7e0
mov eax, dword [esp + 0x11c]
mov ecx, dword [esp + 0x110]
push 6
push eax
push ecx
mov ecx, dword [0x5c8890]
call fcn.0048b400
test eax, eax
je 0x48d3ec
mov ecx, dword [0x5c8890]
call fcn.0048bb50
jmp 0x48d406
mov eax, dword [0x5c8890]
mov ecx, dword [eax + 0x10]
call fcn.00411390
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [0x5c8890]
push 0
call fcn.0048bf40
mov ecx, dword [0x5c8890]
test ecx, ecx
je 0x48d432
call fcn.0048b950
mov ecx, dword [0x5c8890]
test ecx, ecx
je 0x48d432
mov edx, dword [ecx]
push 1
call dword [edx]
push ebp
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 1
push 0
push 0
push str.http:__www.allcombo.com_exit.htm
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x100
ret 0x10
Function at 0x401029
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push edi
xor edi, edi
cmp dword [0x417820], edi
jne 0x401096
xor eax, eax
cmp dword [esp + 8], edi
push esi
setne al
push edi
add eax, 0x67
push eax
push 0x41194c
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov esi, eax
cmp esi, edi
je 0x401082
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
je 0x401082
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push edi
mov dword [0x417820], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, 0x200
je 0x401082
mov dword [0x417820], edi
cmp dword [0x417820], edi
pop esi
jne 0x401096
push str.Error_loading_MBR_from_internal_resource_n
call fcn.00402597
pop ecx
mov eax, dword [0x417820]
pop edi
ret

Function at 0x401130
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
push 3
push 1
push dword [ebp + 8]
call fcn.004010df
mov ebx, eax
add esp, 0xc
cmp ebx, 0xffffffff
je 0x40117a
and dword [ebp - 4], 0
push esi
push 0
lea eax, [ebp - 4]
push eax
mov esi, 0x200
push esi
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 4], esi
mov edi, eax
pop esi
je 0x401171
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40117c
xor edi, edi
test edi, edi
pop edi
pop ebx
je 0x401186
xor eax, eax
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
leave
ret

Function at 0x40118e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
push 1
push 2
push dword [ebp + 8]
call fcn.004010df
mov ebx, eax
add esp, 0xc
cmp ebx, 0xffffffff
je 0x4011d8
and dword [ebp - 4], 0
push esi
push 0
lea eax, [ebp - 4]
push eax
mov esi, 0x200
push esi
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 4], esi
mov edi, eax
pop esi
je 0x4011cf
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4011da
xor edi, edi
test edi, edi
pop edi
pop ebx
je 0x4011e4
xor eax, eax
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
leave
ret

Function at 0x401295
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x608
mov eax, dword [0x416768]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
lea eax, [ebp - 0x604]
push eax
push dword [ebp + 8]
call fcn.00401130
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x401330
test esi, esi
jne 0x4012e6
push dword [ebp + 8]
lea eax, [ebp - 0x404]
push str.mbr_d.bin
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea esi, [ebp - 0x404]
push 0x4119b0
lea eax, [ebp - 0x608]
push esi
push eax
call fcn.004029c5
add esp, 0xc
test eax, eax
jne 0x401328
push dword [ebp - 0x608]
lea eax, [ebp - 0x604]
push 1
push 0x200
push eax
call fcn.00402874
push dword [ebp - 0x608]
call fcn.004026de
add esp, 0x14
jmp 0x401330
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0040265c
leave
ret
Function at 0x401340
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x608
mov eax, dword [0x416768]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x401378
push dword [ebp + 8]
lea eax, [ebp - 0x404]
push str.mbr_d.bin
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x404]
push esi
push 0x4119c0
push eax
lea eax, [ebp - 0x608]
push eax
call fcn.004029c5
add esp, 0xc
test eax, eax
jne 0x4013dc
push dword [ebp - 0x608]
mov esi, 0x200
push esi
lea eax, [ebp - 0x604]
push 1
push eax
call fcn.00402c72
add esp, 0x10
cmp eax, esi
jne 0x4013c6
lea eax, [ebp - 0x604]
push eax
push dword [ebp + 8]
call fcn.0040118e
pop ecx
pop ecx
jmp 0x4013cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x608]
mov esi, eax
call fcn.004026de
pop ecx
jmp 0x4013e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040265c
leave
ret

Function at 0x4016f0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push 3
push 1
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x14], esi
call fcn.004010df
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
jne 0x40171a
xor eax, eax
jmp 0x40180a
push esi
push 0x200
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00403180
push esi
lea ecx, [ebp - 0x1c]
push ecx
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
mov dword [ebp - 0x20], eax
jne 0x401756
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4017fe
push 0x4119b0
push dword [ebp + 0x18]
lea eax, [ebp - 0x18]
push eax
call fcn.004029c5
add esp, 0xc
test eax, eax
jne 0x4017fe
push ebx
mov ebx, dword [ebp + 0x14]
shl ebx, 9
mov eax, 0x100000
cmp ebx, eax
push edi
mov dword [ebp - 4], ebx
jle 0x401789
mov dword [ebp - 4], eax
push dword [ebp - 4]
call fcn.0040310c
xor edi, edi
cmp ebx, esi
pop ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], esi
jle 0x4017ea
jmp 0x4017a2
xor esi, esi
mov dword [ebp - 8], esi
mov esi, ebx
sub esi, edi
cmp esi, dword [ebp - 4]
jbe 0x4017b1
mov esi, dword [ebp - 4]
push 0
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 8], esi
mov dword [ebp - 0x14], eax
jne 0x4017e6
push dword [ebp - 0x18]
push 1
push esi
push dword [ebp - 0xc]
call fcn.00402874
add edi, dword [ebp - 8]
add esp, 0x10
cmp edi, ebx
jl 0x4017a0
jmp 0x4017ea
and dword [ebp - 0x14], 0
push dword [ebp - 0xc]
call fcn.004030a9
push dword [ebp - 0x18]
call fcn.004026de
pop ecx
pop ecx
pop edi
pop ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
pop esi
leave
ret
Function at 0x40180d
Capabilities:
Get disk information
Get volume information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [0x416768]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x42c], eax
movsx eax, byte [ebp + 8]
push edi
push eax
push str._c:_
lea eax, [ebp - 0x24]
push 0x20
xor edi, edi
push eax
mov dword [ebp - 0x428], edi
call fcn.0040324b
push dword [ebp + 0x14]
push edi
push ebx
call fcn.00403000
mov esi, 0x400
push esi
lea eax, [ebp - 0x424]
push edi
push eax
call fcn.00403000
add esp, 0x28
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x43c]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0x24]
push ebx
push eax
call esi
test eax, eax
jne 0x4018ac
push edi
push edi
push edi
push edi
push edi
push dword [ebp + 0x14]
lea eax, [ebp - 0x24]
push ebx
push eax
call esi
push ebx
call fcn.004031c0
test eax, eax
pop ecx
ja 0x4018c8
lea eax, [ebp - 0x424]
push eax
call fcn.004031c0
test eax, eax
pop ecx
jbe 0x40192e
movsx eax, byte [ebp + 8]
push eax
push str._._c:
lea eax, [ebp - 0x24]
push 0x20
push eax
call fcn.0040324b
add esp, 0x10
push edi
push edi
push 3
push edi
push 3
push 0x180
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40192e
push edi
lea eax, [ebp - 0x430]
push eax
push 0x60
push dword [ebp - 0x42c]
mov dword [ebp - 0x430], edi
push edi
push edi
push 0x90064
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
mov dword [ebp - 0x428], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x428]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040265c
leave
ret

Function at 0x401bce
Capabilities:
Encode data using xor

Disassembly:
xor ecx, ecx
cmp dword [esp + 8], ecx
jle 0x401beb
mov dl, byte [esp + 0xc]
mov eax, dword [esp + 4]
add eax, ecx
xor byte [eax], dl
add dl, cl
inc ecx
cmp ecx, dword [esp + 8]
jl 0x401bda
ret

Function at 0x401d12
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x416768]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push dword [eax*4 + 0x416730]
push str.You_are_about_to__s__nare_you_sure__Y_N__
call fcn.00402597
lea eax, [ebp - 0x804]
push 0x800
push eax
mov byte [ebp - 0x804], 0x6e
call fcn.004039c6
add esp, 0x10
cmp byte [ebp - 0x804], 0x59
je 0x401d78
cmp byte [ebp - 0x804], 0x79
je 0x401d78
push str.Aborting_function._n
call fcn.00402597
pop ecx
push 0xffffffffffffffff
call fcn.004036e6
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
call fcn.0040265c
leave
ret