joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40780d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40ba68
cmp edx, dword [eax]
je 0x40782f
add eax, 8
inc ecx
cmp eax, 0x40baf8
jl 0x407820
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40ba68]
jne 0x40795d
mov eax, dword [0x40c298]
cmp eax, 1
je 0x407937
test eax, eax
jne 0x407860
cmp dword [0x40b734], 1
je 0x407937
cmp edx, 0xfc
je 0x40795d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407897
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00404ad0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00405020
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4078da
lea eax, [ebp - 0x1a4]
push eax
call fcn.00405020
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40a464
push edi
call fcn.004088d0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00404ad0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00404ae0
lea eax, [ebp - 0xa0]
push 0x40a444
push eax
call fcn.00404ae0
push dword [esi + 0x40ba6c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00404ae0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00408845
add esp, 0x2c
pop edi
jmp 0x40795d
lea eax, [ebp + 8]
lea esi, [esi + 0x40ba6c]
push 0
push eax
push dword [esi]
call fcn.00405020
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401060
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.MSVCR100.dll_malloc]
push 0x11
mov dword [ebp - 4], 4
call edi
push 0x288
mov ebx, eax
call edi
mov esi, eax
add esp, 8
test esi, esi
jne 0x401098
push str.Error_allocating_memory_needed_to_call_GetAdaptersinfo_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x4010c5
mov ecx, dword [ebp - 4]
push ecx
call edi
mov esi, eax
add esp, 4
test esi, esi
jne 0x4010c5
push str.Error_allocating_memory_needed_to_call_GetAdaptersinfo_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
lea edx, [ebp - 4]
push edx
push esi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x40112f
movzx eax, byte [esi + 0x197]
movzx ecx, byte [esi + 0x196]
movzx edx, byte [esi + 0x199]
push eax
movzx eax, byte [esi + 0x198]
push ecx
movzx ecx, byte [esi + 0x195]
push edx
movzx edx, byte [esi + 0x194]
push eax
push ecx
push edx
push str._02X_02X_02X_02X_02X_02X
push ebx
call dword [sym.imp.MSVCR100.dll_sprintf]
push ebx
add esi, 0x1b0
push esi
push str.Address:__s__mac:__s_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 0x2c
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401140
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Reference http user-agent string
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x40d018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0
push 0
push 0
push str.Mozilla_5.0__Windows_NT_6.3__
mov esi, ecx
mov ebx, edx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ecx, dword [0x4093a0]
mov edx, dword [0x4093a4]
mov edi, eax
mov eax, dword [str.Accept:___r_n_r_n]
push 0
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], eax
mov eax, dword [0x4093a8]
push 0x4000000
lea ecx, [ebp - 0x14]
push ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea edx, [ebp - 0x14]
push edx
push esi
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
test esi, esi
je 0x401213
push 0x4093ac
push ebx
call dword [sym.imp.MSVCR100.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x401213
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
lea eax, [ebp - 0x18]
push eax
push 0x32
lea ecx, [ebp - 0x7c]
push ecx
push esi
call ebx
test eax, eax
je 0x401209
mov edi, edi
mov eax, dword [ebp - 0x18]
push edi
test eax, eax
je 0x401226
push eax
lea edx, [ebp - 0x7c]
push 1
push edx
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
lea eax, [ebp - 0x18]
push eax
push 0x32
lea ecx, [ebp - 0x7c]
push ecx
push esi
call ebx
test eax, eax
jne 0x4011e0
push edi
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040745c
mov esp, ebp
pop ebp
ret
call dword [sym.imp.MSVCR100.dll_fflush]
push edi
call dword [sym.imp.MSVCR100.dll_fclose]
mov ecx, dword [ebp - 4]
add esp, 8
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0040745c
mov esp, ebp
pop ebp
ret
Function at 0x401760
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x40d018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, str.lostsaga.exe
push 0x5c
push ebx
call dword [sym.imp.MSVCR100.dll_strrchr]
add esp, 8
test eax, eax
je 0x40178e
lea ebx, [eax + 1]
push 0
push 2
mov dword [ebp - 0x130], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x401866
lea eax, [ebp - 0x130]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32First]
lea ecx, [ebp - 0x10c]
mov eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4017e3
test dl, dl
je 0x4017df
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4017e3
add eax, 2
add ecx, 2
test dl, dl
jne 0x4017c3
xor eax, eax
jmp 0x4017e8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40180a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x128]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040745c
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_Process32Next]
lea ecx, [ebp - 0x130]
push ecx
push edi
call esi
test eax, eax
je 0x40185f
mov edi, edi
lea ecx, [ebp - 0x10c]
mov eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401848
test dl, dl
je 0x401844
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401848
add eax, 2
add ecx, 2
test dl, dl
jne 0x401828
xor eax, eax
jmp 0x40184d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4017ec
lea edx, [ebp - 0x130]
push edx
push edi
call esi
test eax, eax
jne 0x401820
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0040745c
mov esp, ebp
pop ebp
ret

Function at 0x401880
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x40d018]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0xef
xor eax, eax
mov dl, byte [eax + 0x409660]
xor dl, cl
inc ecx
and ecx, 0x800000ff
mov byte [ebp + eax - 0x34], dl
jns 0x4018b4
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0x2c
jl 0x401897
push esi
mov esi, dword [sym.imp.MSVCR100.dll_system]
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 8], 0
call esi
add esp, 4
mov ecx, 0x36
xor eax, eax
mov dl, byte [eax + str._TYZVH]
xor dl, cl
inc ecx
and ecx, 0x800000ff
mov byte [ebp + eax - 0x44], dl
jns 0x4018f2
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0x3c
jl 0x4018d5
lea eax, [ebp - 0x44]
push eax
mov byte [ebp - 8], 0
call esi
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop esi
call fcn.0040745c
mov esp, ebp
pop ebp
ret
Function at 0x401920
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x40d018]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0xd1
xor eax, eax
mov dl, byte [eax + 0x4096d0]
xor dl, cl
inc ecx
and ecx, 0x800000ff
mov byte [ebp + eax - 0x34], dl
jns 0x401954
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0x2c
jl 0x401937
push esi
mov esi, dword [sym.imp.MSVCR100.dll_system]
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 8], 0
call esi
add esp, 4
mov ecx, 0x5e
xor eax, eax
mov dl, byte [eax + 0x409700]
xor dl, cl
inc ecx
and ecx, 0x800000ff
mov byte [ebp + eax - 0x44], dl
jns 0x401992
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0x3c
jl 0x401975
lea eax, [ebp - 0x44]
push eax
mov byte [ebp - 8], 0
call esi
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop esi
call fcn.0040745c
mov esp, ebp
pop ebp
ret
Function at 0x401d30
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x40d018]
xor eax, ebp
mov dword [ebp - 4], eax
push str.IsWow64Process
push str.kernel32
mov dword [ebp - 0x58], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x40d700], eax
test eax, eax
je 0x401d78
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x40d700]
cmp dword [ebp - 0x58], 0
push ebx
push esi
push edi
je 0x401dde
call fcn.00401920
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, 0x409808
sub edi, 0x20dd94f7
lea esi, [ebp - 0x54]
call fcn.00404fa0
mov edi, 0x1e0c9d6
lea esi, [ebp - 0x2c]
mov ebx, eax
call fcn.00404f60
push ebx
mov ebx, dword [sym.imp.MSVCR100.dll_rename]
push eax
call ebx
add esp, 8
lea esi, [ebp - 0x54]
call fcn.00404f60
mov edi, 0x1afe83fd
lea esi, [ebp - 0x28]
mov dword [ebp - 0x58], eax
call fcn.00404fe0
mov ecx, dword [ebp - 0x58]
push ecx
jmp 0x401e39
call fcn.00401880
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, 0x62eccad1
lea esi, [ebp - 0x2c]
call fcn.00405060
mov edi, 0x4098a0
sub edi, 0x6fee6282
lea esi, [ebp - 0x54]
mov ebx, eax
call fcn.00405020
push ebx
mov ebx, dword [sym.imp.MSVCR100.dll_rename]
push eax
call ebx
add esp, 8
lea esi, [ebp - 0x54]
call fcn.00405020
mov edi, 0xdf51c34
lea esi, [ebp - 0x28]
mov dword [ebp - 0x58], eax
call fcn.004050a0
mov edx, dword [ebp - 0x58]
push edx
push eax
call ebx
mov ecx, dword [ebp - 4]
add esp, 8
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040745c
mov esp, ebp
pop ebp
ret
Function at 0x402ec0
Capabilities:
Create thread
Delete file
Execute command
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x40d018]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.MSVCR100.dll_system]
push 0x40955c
call edi
add esp, 4
xor ebx, ebx
mov ecx, 5
xor eax, eax
mov dl, byte [eax + str.F____doczSChagqx__DPtoyopL]
xor dl, cl
inc ecx
and ecx, 0x800000ff
mov byte [esp + eax + 0x10], dl
jns 0x402f0d
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0x20
jl 0x402ef0
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x10]
push eax
mov byte [esp + 0x34], bl
call esi
mov ecx, 0x59
xor eax, eax
jmp 0x402f30
mov dl, byte [eax + 0x409be4]
xor dl, cl
inc ecx
and ecx, 0x800000ff
mov byte [esp + eax + 0x10], dl
jns 0x402f4d
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0x22
jl 0x402f30
lea eax, [esp + 0x10]
push eax
mov byte [esp + 0x36], bl
call esi
mov ecx, 0xf4
xor eax, eax
mov dl, byte [eax + 0x409a04]
xor dl, cl
inc ecx
and ecx, 0x800000ff
mov byte [esp + eax + 0x10], dl
jns 0x402f82
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0x16
jl 0x402f65
lea eax, [esp + 0x10]
push eax
mov byte [esp + 0x2a], bl
call esi
mov ecx, 0x90
xor eax, eax
lea ebx, [ebx]
mov dl, byte [eax + 0x409ed0]
xor dl, cl
inc ecx
and ecx, 0x800000ff
mov byte [esp + eax + 0x10], dl
jns 0x402fbd
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0x14
jl 0x402fa0
lea eax, [esp + 0x10]
push eax
mov byte [esp + 0x28], bl
call esi
mov ecx, 0xf3
xor eax, eax
mov dl, byte [eax + 0x409ee8]
xor dl, cl
inc ecx
and ecx, 0x800000ff
mov byte [esp + eax + 0x10], dl
jns 0x402ff2
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0x14
jl 0x402fd5
lea eax, [esp + 0x10]
push eax
mov byte [esp + 0x28], bl
call esi
push str.Serial.log
call esi
push ebx
push ebx
push ebx
push 0x402100
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea ebx, [ebx]
call fcn.00401760
test eax, eax
je 0x403020
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xfa0
call esi
push 0x40955c
call edi
add esp, 4
push 0x12c
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x404280
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4080d8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x40d018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x404412
cmp byte [ebx + 0x49], 0
je 0x404412
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x404406
lea esi, [ebp - 0x2c]
call fcn.00403ed0
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x4042f3
lea edx, [ebp - 0x2c]
mov eax, edx
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x1c]
add ecx, edx
push ecx
mov ecx, dword [ebx + 0x44]
push eax
lea eax, [ebx + 0x4c]
push eax
call dword [sym.imp.MSVCP100.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x40432b
dec eax
je 0x40432f
sub eax, 2
lea esi, [ebp - 0x2c]
je 0x40440d
call fcn.00403050
xor al, al
jmp 0x404414
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x40433f
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x40436d
cmp edi, 0x10
jae 0x40434e
lea eax, [ebp - 0x2c]
mov edx, dword [ebx + 0x54]
push edx
push esi
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x4043fe
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x40440a
test esi, esi
jne 0x4042e7
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x40442f
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x40442f
cmp edi, esi
jae 0x4043e7
push ecx
push esi
lea eax, [ebp - 0x2c]
push eax
call fcn.00404710
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x4042e7
mov ecx, eax
cmp edi, 0x10
jae 0x4043c3
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x4043de
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x4042e1
test esi, esi
jne 0x4043b9
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x4043f6
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x4042e1
lea esi, [ebp - 0x2c]
call fcn.00403050
xor al, al
jmp 0x404414
lea esi, [ebp - 0x2c]
call fcn.00403050
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040745c
mov esp, ebp
pop ebp
ret
push str.string_too_long
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
int3
Function at 0x4064f0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x408218
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x40d018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 4], eax
cmp dword [ebp + 0x1c], 0x10
mov byte [ebp - 0x7c], al
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], 0x67452301
mov dword [ebp - 0x2c], 0xefcdab89
mov dword [ebp - 0x28], 0x98badcfe
mov dword [ebp - 0x24], 0x10325476
jae 0x406553
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 0x18]
lea esi, [ebp - 0x7c]
call fcn.004062b0
mov ecx, esi
call fcn.00406360
mov ecx, edi
mov ebx, esi
call fcn.00406440
cmp dword [ebp + 0x1c], 0x10
jb 0x406582
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040745c
mov esp, ebp
pop ebp
ret
Function at 0x406aa0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x37d4
call fcn.00407e80
mov eax, dword [0x40d018]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push esi
push edi
push eax
push str..PhysicalDrive_d
lea edx, [ebp - 0x10c]
xor esi, esi
call fcn.00407440
add esp, 8
push esi
push esi
push 3
push esi
push 3
push esi
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x37cc], edi
cmp edi, 0xffffffff
je 0x406cdd
xor eax, eax
push 0x2710
push eax
lea edx, [ebp - 0x37bc]
mov dword [ebp - 0x37c8], eax
mov dword [ebp - 0x37c4], eax
push edx
mov dword [ebp - 0x37d0], esi
mov dword [ebp - 0x37c0], eax
mov dword [ebp - 0x37c8], eax
mov dword [ebp - 0x37c4], eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push esi
lea eax, [ebp - 0x37d0]
push eax
push 0x2710
lea ecx, [ebp - 0x37bc]
push ecx
push 0xc
lea edx, [ebp - 0x37c8]
push edx
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x406cd0
mov eax, dword [ebp - 0x37b0]
push esi
lea edi, [ebp - 0x8dc]
lea ecx, [ebp - 0x37bc]
call fcn.00406930
mov eax, dword [ebp - 0x37ac]
push esi
lea edi, [ebp - 0xcc4]
lea ecx, [ebp - 0x37bc]
call fcn.00406930
mov eax, dword [ebp - 0x37a8]
push esi
lea edi, [ebp - 0x10ac]
lea ecx, [ebp - 0x37bc]
call fcn.00406930
mov eax, dword [ebp - 0x37a4]
push 1
lea edi, [ebp - 0x4f4]
lea ecx, [ebp - 0x37bc]
call fcn.00406930
add esp, 0x10
cmp byte [0x4110c8], 0
jne 0x406c87
movsx eax, byte [ebp - 0x4f4]
mov edi, dword [sym.imp.MSVCR100.dll_isalnum]
push eax
call edi
add esp, 4
test eax, eax
jne 0x406c03
movsx ecx, byte [ebp - 0x4e1]
push ecx
call edi
add esp, 4
test eax, eax
je 0x406c87
xor eax, eax
jmp 0x406c10
mov cl, byte [ebp + eax - 0x8dc]
mov byte [eax + 0x410cc8], cl
inc eax
test cl, cl
jne 0x406c10
xor eax, eax
jmp 0x406c30
mov cl, byte [ebp + eax - 0xcc4]
mov byte [eax + 0x4108c8], cl
inc eax
test cl, cl
jne 0x406c30
xor eax, eax
jmp 0x406c50
mov cl, byte [ebp + eax - 0x4f4]
mov byte [eax + 0x4110c8], cl
inc eax
test cl, cl
jne 0x406c50
xor eax, eax
jmp 0x406c70
mov cl, byte [ebp + eax - 0x10ac]
mov byte [eax + 0x4104c8], cl
inc eax
test cl, cl
jne 0x406c70
mov esi, 1
push 0x2710
lea edx, [ebp - 0x37bc]
push 0
push edx
call sub.MSVCR100.dll_memset
mov edx, dword [ebp - 0x37cc]
add esp, 0xc
push 0
lea eax, [ebp - 0x37d0]
push eax
push 0x2710
lea ecx, [ebp - 0x37bc]
push ecx
push 0
push 0
push 0x700a0
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, dword [ebp - 0x37cc]
jmp 0x406cd6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040745c
mov esp, ebp
pop ebp
ret 4
Function at 0x407390
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x40d018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x94
xor edi, edi
lea eax, [ebp - 0xa0]
push edi
push eax
mov esi, ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0xa0]
push ecx
mov dword [ebp - 0xa0], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 2
jne 0x407413
call fcn.00406780
test eax, eax
jne 0x40742a
push esi
call fcn.00406eb0
test eax, eax
jne 0x40742a
push esi
call fcn.00406aa0
test eax, eax
jne 0x40742a
push esi
call fcn.00406610
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040745c
mov esp, ebp
pop ebp
ret
xor ebx, ebx
test edi, edi
jne 0x407428
mov ecx, esi
call fcn.00406d50
inc ebx
mov edi, eax
cmp ebx, 0xa
jl 0x407415
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040745c
mov esp, ebp
pop ebp
ret

Function at 0x40745c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40d018]
jne 0x407466
repz ret
jmp fcn.0040782c
Function at 0x4024a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43cd50
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x446040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
push 0x2c
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
push 0
push esi
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
call sub.VCRUNTIME140.dll_memset
lea edi, [esi + 0x3c]
add esp, 0xc
lea eax, [edi + 0x10]
mov dword [ebp - 0x10], edi
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov byte [edi], 0
mov dword [edi + 0xc], 0
mov dword [edi + 8], 0
mov dword [edi + 4], 0
mov ecx, dword [eax + 4]
test ecx, ecx
jns 0x402598
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [edi + 0x10]
call fcn.0041bc10
lea eax, [edi + 0x10]
mov dword [eax], 0
xorps xmm0, xmm0
mov dword [edi + 0x2c], 0
mov eax, esi
mov dword [edi + 0x30], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x34], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x84], 0
movups xmmword [esi + 0x74], xmm0
mov dword [esi + 0x84], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x8c], 0
mov dword [esi + 0x90], 0
mov dword [esi + 0x94], 0
mov dword [esi + 0x98], 0
mov dword [esi + 0x9c], 0
mov dword [esi + 0xa0], 0
mov dword [esi + 0xa4], 0
mov dword [esi + 0x30], 0xffffffff
mov dword [esi + 0x2c], 0xffffffff
mov dword [esi + 0x38], 0
mov dword [esi + 0x34], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret