joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x1c
or ecx, 0xffffffff
xor eax, eax
push ebx
push esi
push edi
mov edi, str.Domino
repne scasb al, byte es:[edi]
mov ebx, dword [esp + 0x34]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, ebx
push 0x40bb64
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call 0x4153d2
push ebx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401063
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1c
ret 0x10
mov esi, dword [esp + 0x2c]
push esi
call fcn.00401190
mov ecx, dword [esp + 0x38]
push ecx
push esi
call fcn.004011f0
test eax, eax
jne 0x401085
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 0x10
push 0x6d
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
lea edx, [esp + 0x14]
push 0
push edx
mov esi, eax
call edi
test eax, eax
je 0x4010e9
mov ebx, dword [sym.imp.USER32.dll_TranslateAcceleratorA]
push ebp
mov ebp, dword [sym.imp.USER32.dll_TranslateMessage]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x10]
push eax
push esi
push ecx
call ebx
test eax, eax
jne 0x4010d7
lea edx, [esp + 0x10]
push edx
call ebp
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
lea ecx, [esp + 0x18]
push 0
push ecx
call edi
test eax, eax
jne 0x4010b4
pop ebp
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 0x10
Function at 0x4025b0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4071f8
push 0x4046f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x40c570], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x40c56c], ecx
shl ecx, 8
add ecx, edx
mov dword [0x40c568], ecx
shr eax, 0x10
mov dword [0x40c564], eax
call fcn.004046b0
test eax, eax
jne 0x40261a
push 0x1c
call fcn.00402780
add esp, 4
mov dword [ebp - 4], 0
call fcn.004044b0
call fcn.004044a0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40da94], eax
call fcn.00403e60
mov dword [0x40c534], eax
test eax, eax
je 0x40264d
mov eax, dword [0x40da94]
test eax, eax
jne 0x402657
push 0xffffffffffffffff
call fcn.004037c0
add esp, 4
call fcn.00403bb0
call fcn.00403ac0
call fcn.00403790
mov esi, dword [0x40da94]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x402736
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x40269e
test al, al
je 0x40269e
and eax, 0xff
push eax
call fcn.00403a60
add esp, 4
test eax, eax
je 0x402678
inc esi
mov dword [ebp - 0x64], esi
jmp 0x402678
cmp byte [esi], 0x22
jne 0x4026a7
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x4026b7
cmp al, 0x20
ja 0x4026b7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4026a7
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x4026d8
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x4026dd
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.004037c0
jmp 0x40271b
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x4026a7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x402736

Function at 0x402780
Capabilities:
Terminate process

Disassembly:
cmp dword [0x40c53c], 1
jne 0x40278e
call fcn.004047d0
mov eax, dword [esp + 4]
push eax
call fcn.00404810
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x403800
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x40c5a0]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x40381f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x40c59c], 1
mov byte [0x40c598], bl
jne 0x403879
mov ecx, dword [0x40da8c]
test ecx, ecx
je 0x403867
mov esi, dword [0x40da88]
sub esi, 4
cmp esi, ecx
jb 0x403867
mov eax, dword [esi]
test eax, eax
je 0x403860
call eax
mov ecx, dword [0x40da8c]
sub esi, 4
cmp esi, ecx
jae 0x403852
push 0x408020
push 0x408018
call fcn.004038b0
add esp, 8
push 0x40802c
push 0x408024
call fcn.004038b0
add esp, 8
test ebx, ebx
jne 0x4038a0
push ebp
mov dword [0x40c5a0], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret

Function at 0x403e60
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x40c6b0]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x403ea2
call edi
mov esi, eax
test esi, esi
je 0x403e8c
mov eax, 1
jmp 0x403e9d
call ebp
mov ebx, eax
test ebx, ebx
je 0x403faf
mov eax, 2
mov dword [0x40c6b0], eax
cmp eax, 1
jne 0x403f42
test esi, esi
jne 0x403ebb
call edi
mov esi, eax
test esi, esi
je 0x403faf
cmp word [esi], 0
mov eax, esi
je 0x403ed5
add eax, 2
cmp word [eax], 0
jne 0x403ec3
add eax, 2
cmp word [eax], 0
jne 0x403ec3
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x403f34
push edi
call fcn.00402800
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x403f34
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x403f26
push ebx
call fcn.004027b0
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x403faf
test ebx, ebx
jne 0x403f53
call ebp
mov ebx, eax
test ebx, ebx
je 0x403faf
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x403f6b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x403f5b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x403f5b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00402800
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x403f8d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x404810
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x408408
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x404834
add eax, 8
inc ebp
cmp eax, 0x408498
jb 0x404825
cmp ecx, dword [ebp*8 + 0x408408]
jne 0x4049db
mov eax, dword [0x40c53c]
cmp eax, 1
je 0x40499d
test eax, eax
jne 0x404860
cmp dword [0x408140], 1
je 0x40499d
cmp ecx, 0xfc
je 0x4049db
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40489b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x4048e4
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x407604
add ebx, ecx
push ebx
call fcn.00403690
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4075e4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x40840c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00405f30
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x40d980]
test eax, eax
je 0x4049ae
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x4049b8
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x40840c]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x401b2f
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1104
call fcn.00408900
and byte [ebp - 0x1104], 0
push ebx
push esi
push edi
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x1103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [ebp + 0x10]
push edi
call sub.MSVCRT.dll_strlen
pop ecx
mov ecx, 0xfff
cmp eax, ecx
jbe 0x401b6f
mov eax, ecx
jmp 0x401b76
push edi
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x1104]
push edi
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
lea eax, [ebp - 0x1104]
push eax
call fcn.00407d26
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x10
push str.WinMain_in_360start:_n
call esi
push edi
call esi
and byte [ebp - 0x104], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.00408613
push eax
lea eax, [ebp - 0x104]
push str.parent_d_n
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call esi
push str.WinMain_out_360start:_n
call esi
mov esi, 0x411818
push 0x104
push esi
call fcn.004071d0
mov eax, esi
pop ecx
test eax, eax
pop ecx
jne 0x401c02
xor ebx, ebx
jmp 0x401c2d
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
lea eax, [edi + edi]
add eax, 3
and al, 0xfc
call fcn.00408900
mov ebx, esp
push edi
push ebx
xor eax, eax
push 0xffffffffffffffff
push esi
push eax
push eax
mov word [ebx], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
push esi
call dword [sym.imp.MSVCRT.dll_wcscpy]
pop ecx
mov esi, 0x410080
pop ecx
push 0xffffffffffffffff
mov ecx, esi
call fcn.00403128
push dword [ebp + 8]
call fcn.00401c7d
mov dword [esp], str.360Start:InitInstance_n
call fcn.00404047
lea eax, [ebp - 0x1104]
push eax
call fcn.0040273d
pop ecx
pop ecx
mov ecx, esi
call fcn.004031a0
lea esp, [ebp - 0x1110]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x402f7a
Capabilities:
Get common file path
Read .ini file

Disassembly:
mov eax, 0x40a4fd
call fcn.00408940
sub esp, 0x21c
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x226]
mov word [ebp - 0x228], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 1
lea eax, [ebp - 0x228]
push 0x1a
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov al, byte [ebp - 0xd]
push ebx
lea ecx, [ebp - 0x20]
mov byte [ebp - 0x20], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov esi, dword [sym.imp.MSVCRT.dll_wcslen]
lea eax, [ebp - 0x228]
push eax
call esi
pop ecx
push eax
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
mov edi, str.360se360se.ini
mov dword [ebp - 4], ebx
push edi
call esi
pop ecx
push eax
push edi
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::append_unsigned_short_int_const___unsigned_int_]
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
jne 0x40300d
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
push ebx
push str.NotJoinPrivate
push str.option
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
xor ecx, ecx
cmp eax, 1
setne cl
or dword [ebp - 4], 0xffffffff
mov esi, ecx
push 1
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x403211
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
mov esi, ecx
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
je 0x403256
lea eax, [esi + 8]
push eax
push 4
push esi
push 0x4032c8
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 4], eax
test eax, eax
je 0x403256
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
test eax, eax
jne 0x40325a
xor eax, eax
pop esi
ret
push 1
pop eax
pop esi
ret
Function at 0x40325f
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 4], 0
je 0x403275
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x403279
xor eax, eax
pop esi
ret
cmp byte [esi + 0xc], 1
jne 0x403297
cmp byte [esi + 0xc], 0
je 0x403297
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x403297
and byte [esi + 0xc], 0
push 1
pop eax
pop esi
ret

Function at 0x403a0c
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x40a558
call fcn.00408940
mov eax, 0x205c
call fcn.00408900
mov edx, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
cmp edx, ebx
mov dword [ebp - 0x20], edx
setne al
mov byte [ebp - 0x24], al
cmp edx, ebx
mov dword [ebp - 4], ebx
je 0x403af7
push edi
mov ecx, 0x7ff
xor eax, eax
lea edi, [ebp - 0x2066]
mov word [ebp - 0x2068], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edx, dword [edx + 4]
cmp edx, ebx
jne 0x403a63
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
mov esi, 0x4105d0
push edx
push esi
push str.__s___s
lea eax, [ebp - 0x2068]
push 0xfff
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
push 0x10
xor eax, eax
pop ecx
lea edi, [ebp - 0x64]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push esi
mov dword [ebp - 0x68], 0x44
mov dword [ebp - 0x3c], 0x80
mov word [ebp - 0x38], 5
stosd dword es:[edi], eax
call fcn.00404789
add esp, 0x18
test eax, eax
pop edi
je 0x403af7
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
lea eax, [ebp - 0x2068]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, ebx
je 0x403af7
cmp dword [ebp - 0x18], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x403aea
push dword [ebp - 0x18]
call esi
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x1c], ebx
je 0x403af7
push dword [ebp - 0x1c]
call esi
mov dword [ebp - 0x1c], ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00403ba8
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4043dd
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4008
call fcn.00408900
and word [ebp - 0x4008], 0
push edi
mov ecx, 0xfff
xor eax, eax
lea edi, [ebp - 0x4006]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x40448c
cmp eax, 0x3fff
ja 0x40448c
lea ecx, [ebp - 0x4008]
push ecx
push eax
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40448c
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x4008]
push 0x40e750
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40448c
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
movzx ecx, word [eax + 0xc]
push ecx
mov ecx, dword [eax + 0xc]
shr ecx, 0x10
push ecx
movzx ecx, word [eax + 8]
mov eax, dword [eax + 8]
push ecx
shr eax, 0x10
push eax
push 0x40ea30
push esi
push edi
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x1c
and word [edi + esi*2 - 2], 0
push 1
pop eax
pop esi
jmp 0x40448e
xor eax, eax
pop edi
leave
ret

Function at 0x404491
Capabilities:
Create directory

Disassembly:
push esi
push 0
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
test esi, esi
jne 0x4044b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4044b6
push 1
pop eax
pop esi
ret
mov eax, esi
pop esi
ret

Function at 0x404789
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
je 0x4047a8
push ebx
push esi
call dword [sym.imp.MSVCRT.dll__waccess]
pop ecx
test eax, eax
pop ecx
je 0x4047ac
xor eax, eax
jmp 0x404807
push edi
xor eax, eax
lea edi, [ebp - 0xf]
mov byte [ebp - 0x10], bl
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x40ea4c
push esi
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll__wfopen]
mov edi, eax
pop ecx
cmp edi, ebx
pop ecx
je 0x4047e8
push edi
push 2
lea eax, [ebp - 0x10]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
lea eax, [ebp - 0x10]
push 0x40ea58
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
pop edi
jne 0x404805
push esi
call fcn.00408b9c
pop ecx
mov ebx, eax
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x405cdc
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call sub.MSVCRT.dll_memset
mov esi, dword [ebp + 0xc]
push 0x2448
push 0
push esi
call sub.MSVCRT.dll_memset
lea eax, [esi + 4]
lea ecx, [esi + 0x1246]
mov dword [ebp - 0x38], eax
lea eax, [esi + 0x44]
mov dword [ebp - 0x2c], eax
lea eax, [esi + 0x246]
mov dword [ebp - 0x10], eax
mov eax, 0x800
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
lea eax, [esi + 0x2346]
add esp, 0x18
mov dword [ebp - 8], ecx
mov dword [ebp - 0x20], eax
mov eax, 0x80
lea ecx, [esi + 0x2246]
push 0
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x34], 0x20
mov dword [ebp - 0x28], 0x100
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x405d9a
mov ax, word [ebp - 0x24]
push 1
mov word [esi + 0x244], ax
mov eax, dword [ebp - 0x30]
mov dword [esi], eax
pop eax
jmp 0x405da2
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop esi
leave
ret

Function at 0x406ad1
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2d10
call fcn.00408900
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x406bf2
cmp dword [ebp + 0xc], esi
je 0x406bf2
push ebx
push edi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov edi, 0x2710
push dword [ebp - 4]
lea eax, [ebp - 0x600]
push str..PhysicalDrive_d
push 0x200
push eax
call fcn.0040689c
add esp, 0x10
lea eax, [ebp - 0x600]
push esi
push esi
push 3
push esi
push 3
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406bde
push 0xc
lea eax, [ebp - 0x18]
push esi
push eax
mov dword [ebp - 0xc], esi
call sub.MSVCRT.dll_memset
push edi
lea eax, [ebp - 0x2d10]
push esi
push eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [ebp - 0xc]
push esi
push eax
lea eax, [ebp - 0x2d10]
push edi
push eax
lea eax, [ebp - 0x18]
push 0xc
push eax
push 0x2d1400
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x406bd2
push 0x3e8
lea eax, [ebp - 0x400]
push esi
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x400]
push eax
push 1
push dword [ebp - 0x2cf8]
lea eax, [ebp - 0x2d10]
push eax
call fcn.00404155
add esp, 0x1c
lea eax, [ebp - 0x400]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00406867
test eax, eax
jne 0x406bd2
mov dword [ebp - 8], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], esi
jne 0x406beb
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x10
jl 0x406b00
mov eax, dword [ebp - 8]
pop edi
pop ebx
jmp 0x406bf4
xor eax, eax
pop esi
leave
ret