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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x84
push ebx
xor ebx, ebx
cmp byte [0x1073094], bl
je 0x103c747
lea ecx, [ebp - 0x84]
call fcn.0101e0db
lea eax, [ebp - 0x84]
push eax
push 1
push 0x12
call fcn.01021e0e
test eax, eax
lea ecx, [ebp - 0x84]
jl 0x103c742
push 0xffffffffffffffff
push dword [ebp + 0x14]
call fcn.0101e50d
test eax, eax
jl 0x103c73c
lea ecx, [ebp - 0x1c]
call fcn.01019631
lea eax, [ebp - 0x1c]
push eax
push ebx
lea ecx, [ebp - 0x84]
call fcn.0101ef8b
test eax, eax
jl 0x103c734
push ebx
push 0x80
push 3
push ebx
push 3
push 0x40000000
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 0x14], eax
jne 0x103c638
mov byte [0x1073094], bl
jmp 0x103c734
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea ecx, [ebp - 0x28]
call fcn.01019631
cmp dword [ebp + 0x10], ebx
movzx eax, word [ebp - 2]
je 0x103c699
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
movzx eax, word [ebp - 4]
push eax
movzx eax, word [ebp - 6]
push eax
movzx eax, word [ebp - 8]
push eax
movzx eax, word [ebp - 0x10]
push eax
movzx eax, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xe]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x28]
push 0x1015a38
push eax
call fcn.0101a365
add esp, 0x30
jmp 0x103c6cf
push dword [ebp + 0xc]
push eax
movzx eax, word [ebp - 4]
push eax
movzx eax, word [ebp - 6]
push eax
movzx eax, word [ebp - 8]
push eax
movzx eax, word [ebp - 0x10]
push eax
movzx eax, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xe]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x28]
push 0x10159e8
push eax
call fcn.0101a365
add esp, 0x2c
cmp eax, ebx
jl 0x103c723
push esi
mov esi, dword [sym.imp.msvcrt.dll_wcstombs]
push ebx
push dword [ebp - 0x28]
push ebx
call esi
add esp, 0xc
cmp eax, ebx
mov dword [ebp + 0x10], eax
jbe 0x103c722
push edi
push eax
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
mov edi, eax
cmp edi, ebx
pop ecx
je 0x103c721
push dword [ebp + 0x10]
push dword [ebp - 0x28]
push edi
call esi
add esp, 0xc
push ebx
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x10]
mov dword [ebp + 0xc], ebx
push edi
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
pop edi
pop esi
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x28]
call fcn.01019f33
lea ecx, [ebp - 0x1c]
call fcn.01019f33
lea ecx, [ebp - 0x84]
call fcn.0101c265
pop ebx
leave
ret 0x10
Function at 0x103e51e
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xa0
mov eax, dword [0x10570e4]
mov dword [ebp + 0x74], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], 0x9c
call esi
test eax, eax
jne 0x103e556
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], 0x94
call esi
xor eax, eax
xor ecx, ecx
inc eax
cmp dword [ebp - 0x18], eax
pop esi
sete cl
cmp dword [ebp - 0x24], 5
mov dword [0x1074d0c], ecx
jb 0x103e573
mov dword [0x1074d10], eax
mov ecx, dword [ebp + 0x74]
call fcn.0101897b
add ebp, 0x78
leave
ret

Function at 0x103f144
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0103f117
mov esi, eax
add esp, 0xc
test esi, esi
jl 0x103f177
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x103f177
push dword [ebp + 0x10]
call fcn.0103e957
pop ecx
mov esi, eax
mov eax, esi
pop esi
pop ebp
ret

Function at 0x103f181
Capabilities:
Get file size

Disassembly:
push esi
xor esi, esi
push esi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov ecx, dword [esp + 0xc]
mov dword [ecx], eax
jne 0x103f1a6
push dword [esp + 0x10]
call fcn.0103e957
pop ecx
mov esi, eax
mov eax, esi
pop esi
ret

Function at 0x103f1af
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push dword [ebp + 0x18]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0103f117
mov esi, eax
add esp, 0xc
test esi, esi
jl 0x103f1f7
push edi
mov edi, dword [ebp + 0x10]
push 0
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 0x14]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x103f1eb
cmp dword [ebp - 4], edi
je 0x103f1f6
push dword [ebp + 0x18]
call fcn.0103e957
pop ecx
mov esi, eax
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x103f201
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push dword [ebp + 0x18]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0103f117
mov esi, eax
add esp, 0xc
test esi, esi
jl 0x103f249
push edi
mov edi, dword [ebp + 0x10]
push 0
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 0x14]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x103f23d
cmp dword [ebp - 4], edi
je 0x103f248
push dword [ebp + 0x18]
call fcn.0103e957
pop ecx
mov esi, eax
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x103f856
Capabilities:
Create thread

Disassembly:
push edi
xor edi, edi
cmp dword [0x1074d48], edi
je 0x103f865
xor eax, eax
pop edi
ret
push esi
mov esi, 0x1074d5c
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x1074d48], edi
jne 0x103f8b2
push 0x1074d4c
push edi
push edi
push 0x103f78d
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [0x1074d48], eax
jne 0x103f8a5
push dword [esp + 0xc]
call fcn.0103e957
pop ecx
mov edi, eax
jmp 0x103f8b2
push dword [0x1074d54]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov eax, edi
pop edi
ret

Function at 0x103ff2d
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
xor edi, edi
cmp dword [0x1074d0c], edi
jne 0x103ff48
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x103ff7d
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.0103c7f0
mov ebx, esp
push edi
push edi
push esi
push ebx
push 0xffffffffffffffff
push dword [ebp + 8]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x103ff7d
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x103ff8a
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
xor edi, edi
cmp dword [0x1074d0c], edi
jne 0x103ffa5
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
jmp 0x103ffda
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.0103c7f0
mov ebx, esp
push edi
push edi
push esi
push ebx
push 0xffffffffffffffff
push dword [ebp + 8]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x103ffda
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x103ffe7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x10570e4]
mov ecx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
cmp dword [0x1074d0c], esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov dword [ebp - 0x218], ecx
jne 0x1040027
push ecx
push dword [ebp + 0x10]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov edi, eax
jmp 0x10400b3
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
push esi
push 0x105
lea ecx, [ebp - 0x214]
push ecx
push 0xffffffffffffffff
push eax
push esi
push esi
call edi
test eax, eax
je 0x10400a8
push esi
push esi
push 4
lea eax, [ebp - 0x21c]
push eax
push 0xffffffffffffffff
push ebx
push esi
push esi
call edi
test eax, eax
je 0x10400a8
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, esi
mov ebx, eax
je 0x10400a8
push 0x104
push dword [ebp - 0x218]
lea eax, [ebp - 0x10c]
push 0xffffffffffffffff
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x10400ac
xor eax, eax
jmp 0x10400b5
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0101897b
leave
ret

Function at 0x10400c7
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
xor edi, edi
cmp dword [0x1074d0c], edi
jne 0x10400e2
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x104011c
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.0103c7f0
mov ebx, esp
push edi
push edi
push esi
push ebx
push 0xffffffffffffffff
push dword [ebp + 8]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x1040115
or eax, 0xffffffff
jmp 0x104011c
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x104019b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor ecx, ecx
or eax, 0xffffffff
cmp dword [esp + 8], ecx
jbe 0x10401c7
mov edx, dword [esp + 4]
movzx edx, byte [ecx + edx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x1016dd0]
inc ecx
cmp ecx, dword [esp + 8]
jb 0x10401a6
not eax
ret
Function at 0x104020e
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x18c]
sub esp, 0x20c
mov eax, dword [0x10570e4]
push esi
push edi
xor esi, esi
mov dword [ebp + 0x188], eax
mov eax, dword [ebp + 0x194]
mov edi, ecx
cmp dword [edi], esi
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], esi
je 0x1040257
mov eax, dword [edi + 4]
cmp eax, esi
je 0x1040257
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1040261
mov esi, 0x80004005
jmp 0x1040310
push esi
push esi
push 0x200
lea eax, [ebp - 0x78]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x80]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, esi
mov dword [ebp - 0x7c], eax
je 0x10402e5
cmp dword [edi + 8], 0xffffffff
je 0x10402ba
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x10402e5
mov ecx, dword [ebp - 0x7c]
add eax, ecx
cmp eax, dword [edi + 8]
jbe 0x10402ba
push esi
push esi
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x10402e5
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x10402e5
push 2
push esi
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x10402e5
push esi
lea eax, [ebp - 0x7c]
push eax
mov eax, dword [ebp - 0x7c]
dec eax
push eax
lea eax, [ebp - 0x78]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1040307
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x10402f7
call esi
mov esi, eax
jmp 0x1040307
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp + 0x188]
pop edi
mov eax, esi
pop esi
call fcn.0101897b
add ebp, 0x18c
leave
ret 4

Function at 0x1041eb7
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
mov esi, dword [esp + 0xc]
cmp dword [esi], 0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
jne 0x1041ecc
call edi
mov dword [esi], eax
call edi
sub eax, dword [esi]
pop edi
cmp eax, dword [esp + 8]
pop esi
jb 0x1041edd
xor eax, eax
inc eax
jmp 0x1041ef1
call sub.msvcrt.dll_rand
push 0x64
cdq
pop ecx
idiv ecx
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
ret 8
Function at 0x40267e
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
push 0x4013cc
push 0x40179c
mov esi, 0x408094
push 1
mov ecx, esi
call fcn.00406ba9
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
mov edi, eax
cmp edi, ebx
jl 0x4027bb
push ebx
push dword [ebp + 8]
mov ecx, 0x4080bc
push ebx
call fcn.004025cf
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push 0x401768
push ebx
push 0x64
push esi
mov dword [ebp + 8], eax
call fcn.00406f56
add esp, 0x14
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
mov dword [ebp - 8], edi
cmp edi, ebx
jne 0x402726
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x402713
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
push edi
push 0x401710
push ebx
push 0x3c
push esi
call fcn.00406f56
jmp 0x4027a4
cmp dword [ebp - 4], 1
jg 0x40273b
push dword [ebp + 8]
mov edi, 0x80070057
push 0x4016c8
jmp 0x40271b
mov eax, dword [edi + 4]
mov ecx, 0x4016b8
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402769
cmp dx, bx
je 0x402765
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402769
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x402743
xor eax, eax
jmp 0x40276e
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40278e
cmp dword [ebp - 4], 3
jl 0x40278e
push dword [edi + 8]
call fcn.00402435
mov edi, eax
cmp edi, ebx
jge 0x4027a7
push edi
push 0x401680
jmp 0x40271b
push dword [ebp + 8]
push 0x401638
push ebx
push 0x3c
push esi
call fcn.00406f56
mov edi, 0x80070057
add esp, 0x14
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [ebp - 8], ebx
je 0x4027bb
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x402cce
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ebx, ecx
test esi, esi
jne 0x402ce9
push 0x80004005
call fcn.0040294b
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x402ceb
push edi
push dword [ebp + 0xc]
push 7
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x403317
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov eax, ecx
mov ecx, dword [ebp + 8]
push 0x2001f
push ecx
push dword [eax]
xor esi, esi
mov dword [ebp - 0x21c], ecx
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], esi
call fcn.00402c2c
mov edi, eax
cmp edi, esi
je 0x403389
lea ecx, [ebp - 0x214]
call fcn.00402bb9
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040626f
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x4033a7
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x214]
call fcn.00403317
cmp eax, esi
jne 0x4033f2
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x208], 0x100
call edi
test eax, eax
je 0x403391
lea ecx, [ebp - 0x214]
call fcn.00402bb9
push dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x218]
call fcn.00402b33
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.00402bb9
mov eax, esi
jmp 0x403379
Function at 0x404442
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
push 2
push edi
push eax
mov dword [ebp - 0x410], edi
mov dword [ebp - 0x414], ecx
mov dword [ebp - 0x418], edi
mov dword [ebp - 0x408], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x40c], eax
cmp eax, edi
jne 0x40449d
call fcn.00402a19
mov esi, eax
jmp 0x40457e
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
jne 0x4044b6
call fcn.00402a19
jmp 0x404570
push esi
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
cmp ebx, edi
je 0x4044ac
push esi
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x40451b
lea eax, [ebp - 0x404]
cmp dword [ebp - 0x408], eax
je 0x4044f8
lea ecx, [ebp - 0x408]
call fcn.004032b6
mov esi, 0x8007000e
lea ecx, [ebp - 0x410]
call fcn.004031c5
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040626f
leave
ret 0x10
push eax
lea ecx, [ebp - 0x408]
call fcn.0040383e
cmp dword [ebp - 0x408], edi
jne 0x404536
mov esi, 0x8007000e
jmp 0x404572
push esi
push dword [ebp - 0x408]
push esi
push ebx
push edi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, edi
je 0x4044ac
mov edx, dword [ebp - 0x408]
push dword [ebp + 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
push dword [ebp - 0x408]
lea ecx, [ebp - 0x418]
call fcn.00404305
mov esi, eax
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x404]
cmp dword [ebp - 0x408], eax
je 0x4044fd
lea ecx, [ebp - 0x408]
call fcn.004032b6
jmp 0x4044fd
Function at 0x4056d4
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
xor esi, esi
mov ebx, ecx
push 7
xor eax, eax
pop ecx
lea edi, [ebp - 0x30]
mov dword [ebp - 0x34], esi
rep stosd dword es:[edi], eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], esi
cmp dword [ebp + 8], esi
jne 0x40570d
mov dword [ebp - 4], 0x80004003
jmp 0x4058b1
push dword [ebp + 8]
lea ecx, [ebx + 0x30]
call fcn.004054e8
cmp eax, esi
mov dword [ebp - 4], eax
jl 0x405897
xor edi, edi
inc edi
cmp eax, edi
jne 0x405744
push edi
push 0x401f00
push esi
push 0x64
add ebx, 4
push ebx
call fcn.00406f56
add esp, 0x14
jmp 0x405897
push dword [ebp + 8]
lea ecx, [ebp - 8]
call fcn.00404fe8
cmp eax, esi
mov dword [ebp - 4], eax
jl 0x405897
push dword [ebp - 8]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
inc eax
push eax
push dword [ebp - 8]
call fcn.00405465
cmp eax, esi
mov dword [ebp - 4], eax
jl 0x405897
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
je 0x4057ae
cmp eax, 3
je 0x4057ae
push dword [ebp + 8]
add ebx, 4
push 0x401ea8
push esi
push 0x50
push ebx
call fcn.00406f56
add esp, 0x14
mov dword [ebp - 4], 0x800710ff
jmp 0x405897
push dword [ebp - 8]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push dword [ebp + 8]
lea ecx, [ebp - 8]
mov dword [ebp - 8], esi
call fcn.00404fe8
cmp eax, esi
mov dword [ebp - 4], eax
jl 0x405897
push dword [ebx + 0x2c]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_BuildTrusteeWithSidW]
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push 4
push edi
push dword [ebp - 8]
mov dword [ebp - 0x34], 0x10000000
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], 3
mov dword [ebp - 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
cmp eax, esi
je 0x405826
jle 0x405818
and eax, 0xffff
or eax, 0x80070000
push dword [ebp - 8]
mov dword [ebp - 4], eax
push eax
push 0x401e48
jmp 0x405888
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x14]
lea eax, [ebp - 0x34]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
cmp eax, esi
je 0x405856
jle 0x405848
and eax, 0xffff
or eax, 0x80070000
push dword [ebp + 8]
mov dword [ebp - 4], eax
push eax
push 0x401df8
jmp 0x405888
push esi
push edi
push esi
push edi
push esi
push dword [ebp - 0xc]
push esi
push esi
push 4
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_TreeSetNamedSecurityInfoW]
cmp eax, esi
je 0x405897
jle 0x40587c
and eax, 0xffff
or eax, 0x80070000
push dword [ebp + 8]
mov dword [ebp - 4], eax
push eax
push 0x401d90
push esi
push 0x50
add ebx, 4
push ebx
call fcn.00406f56
add esp, 0x18
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x10], esi
je 0x4058a7
push dword [ebp - 0x10]
call edi
cmp dword [ebp - 0xc], esi
je 0x4058b1
push dword [ebp - 0xc]
call edi
push dword [ebp - 8]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x405da9
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.00405d3e
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x405e1c
cmp dword [ebp - 0x94], 5
jb 0x405e3d
jmp 0x405e39
cmp dword [ebp - 0x88], 1
jne 0x405e3d
cmp dword [ebp - 0x94], 4
ja 0x405e39
jne 0x405e3d
cmp dword [ebp - 0x90], 0
jbe 0x405e3d
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x402204
call fcn.0040257f
test eax, eax
jge 0x405e5e
mov byte [0x408054], 1
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040626f
leave
ret
Function at 0x40619a
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x407148
call fcn.004061c4
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x408508
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x405f55
cmp eax, esi
jne 0x405f48
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x405f58
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x405f2f
xor esi, esi
inc esi
mov eax, dword [0x408504]
cmp eax, esi
jne 0x405f6b
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x405f9a
mov eax, dword [0x408504]
test eax, eax
jne 0x405f94
mov dword [0x408504], esi
push 0x4011f8
push 0x4011ec
call fcn.00405e91
pop ecx
pop ecx
test eax, eax
je 0x405f9a
jmp 0x4060be
mov dword [0x4081d0], esi
mov eax, dword [0x408504]
cmp eax, esi
jne 0x405fbe
push 0x4011e8
push 0x4011cc
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x408504], 2
cmp dword [ebp - 0x20], ebx
jne 0x405fcb
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x408514], ebx
je 0x405fec
push 0x408514
call fcn.00406569
pop ecx
test eax, eax
je 0x405fec
push ebx
push 2
push ebx
call dword [0x408514]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x4060be
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x406056
cmp cx, bx
je 0x406011
cmp dword [ebp - 0x1c], ebx
jne 0x406056
movzx ecx, word [eax]
cmp cx, bx
je 0x406026
cmp cx, 0x20
ja 0x406026
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x406011
test byte [ebp - 0x40], 1
je 0x406032
movzx ecx, word [ebp - 0x3c]
jmp 0x406035
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x400000
call main
mov dword [0x4081cc], eax
cmp dword [0x4081c0], ebx
jne 0x40609b
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x406067
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x405ffb
cmp dword [0x4081d0], ebx
jne 0x4060a9
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x4081cc]
jmp 0x4060ca
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.00406209
ret
call fcn.004066b6
jmp 0x405ef2