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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x632b20]
xor eax, ebp
mov dword [ebp - 8], eax
push 0x5f9e4c
mov eax, dword [0x129029c]
mov ecx, dword [eax*4 + 0x1290274]
shl ecx, 8
add ecx, 0x128d040
push ecx
push 0x5f9e58
lea edx, [ebp - 0x408]
push edx
call fcn.005cc4f5
add esp, 0x10
push 0x5f9e60
lea eax, [ebp - 0x408]
push eax
call fcn.005cd6b5
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x5cada5
mov ecx, dword [ebp - 4]
push ecx
push 1
push 0x1050
push 0x12a8bb0
call fcn.005cdb90
add esp, 0x10
mov edx, dword [ebp - 4]
push edx
call fcn.005cd459
add esp, 4
jmp 0x5cada9
xor eax, eax
jmp 0x5cadae
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.005cbcfe
mov esp, ebp
pop ebp
ret

Function at 0x5cadc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x632b20]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push edi
push str.profile.dat
mov eax, dword [0x129029c]
mov ecx, dword [eax*4 + 0x1290274]
shl ecx, 8
add ecx, 0x128d040
push ecx
push str._s_s
lea edx, [ebp - 0x408]
push edx
call fcn.005cc4f5
add esp, 0x10
push 0x5f9e78
lea eax, [ebp - 0x408]
push eax
call fcn.005cd6b5
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x5cae47
mov ecx, dword [ebp - 4]
push ecx
push 1
push 0x1050
push 0x12a8bb0
call fcn.005cdfc1
add esp, 0x10
mov edx, dword [ebp - 4]
push edx
call fcn.005cd459
add esp, 4
jmp 0x5cae4b
xor eax, eax
jmp 0x5cae6f
movsx esi, word [0x120df74]
imul esi, esi, 0x828
add esi, 0x12a8bb0
mov ecx, 0x20a
mov edi, 0x12b9e28
rep movsd dword es:[edi], dword [esi]
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.005cbcfe
mov esp, ebp
pop ebp
ret

Function at 0x5cae80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x632b20]
xor eax, ebp
mov dword [ebp - 8], eax
push 0x5f9e7c
push 0x5f9e8c
lea eax, [ebp - 0x408]
push eax
call fcn.005cc4f5
add esp, 0xc
push 0x5f9e94
lea ecx, [ebp - 0x408]
push ecx
call fcn.005cd6b5
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x5caeef
mov edx, dword [ebp - 4]
push edx
push 1
push 0x13ed4
push 0x12919d0
call fcn.005cdb90
add esp, 0x10
mov eax, dword [ebp - 4]
push eax
call fcn.005cd459
add esp, 4
jmp 0x5caef3
xor eax, eax
jmp 0x5caef8
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.005cbcfe
mov esp, ebp
pop ebp
ret

Function at 0x5caf10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x632b20]
xor eax, ebp
mov dword [ebp - 8], eax
push str.category.dat
push str.bin_s
lea eax, [ebp - 0x408]
push eax
call fcn.005cc4f5
add esp, 0xc
push 0x5f9eb0
lea ecx, [ebp - 0x408]
push ecx
call fcn.005cd6b5
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x5caf7f
mov edx, dword [ebp - 4]
push edx
push 1
push 0x13ed4
push 0x12919d0
call fcn.005cdfc1
add esp, 0x10
mov eax, dword [ebp - 4]
push eax
call fcn.005cd459
add esp, 4
jmp 0x5caf83
xor eax, eax
jmp 0x5caf88
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.005cbcfe
mov esp, ebp
pop ebp
ret
Function at 0x5cb090
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x12ba6a0], 0
je 0x5cb0f1
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
mov al, byte [edx]
mov byte [ebp - 9], al
add dword [ebp - 4], 1
cmp byte [ebp - 9], 0
jne 0x5cb0ae
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 8]
mov dword [ebp - 0x10], ecx
mov edx, dword [0x12ba6a0]
push edx
push 1
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.005cdb90
add esp, 0x10
mov edx, dword [0x12ba6a0]
push edx
call fcn.005cd386
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x5cbcfe
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x632b20]
jne 0x5cbd08
repz ret
jmp fcn.005d2bcc

Function at 0x5de194
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.005d26a1
and dword [ebp - 4], 0
cmp dword [0x12c0f30], 0
mov ebx, eax
jne 0x5de245
push str.USER32.DLL
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x5de2f6
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push 0x5fc598
push edi
call esi
test eax, eax
je 0x5de2f6
push eax
call fcn.005d262f
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x12c0f30], eax
call esi
push eax
call fcn.005d262f
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x12c0f34], eax
call esi
push eax
call fcn.005d262f
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x12c0f38], eax
call esi
push eax
call fcn.005d262f
pop ecx
mov dword [0x12c0f40], eax
test eax, eax
je 0x5de245
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.005d262f
pop ecx
mov dword [0x12c0f3c], eax
mov eax, dword [0x12c0f3c]
cmp eax, ebx
je 0x5de29d
cmp dword [0x12c0f40], ebx
je 0x5de29d
push eax
call fcn.005d26aa
push dword [0x12c0f40]
mov esi, eax
call fcn.005d26aa
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x5de29d
test edi, edi
je 0x5de29d
call esi
test eax, eax
je 0x5de294
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x5de294
test byte [ebp - 0xc], 1
jne 0x5de29d
or dword [ebp + 0x10], 0x200000
jmp 0x5de2d6
mov eax, dword [0x12c0f34]
cmp eax, ebx
je 0x5de2d6
push eax
call fcn.005d26aa
pop ecx
test eax, eax
je 0x5de2d6
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x5de2d6
mov eax, dword [0x12c0f38]
cmp eax, ebx
je 0x5de2d6
push eax
call fcn.005d26aa
pop ecx
test eax, eax
je 0x5de2d6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x12c0f30]
call fcn.005d26aa
pop ecx
test eax, eax
je 0x5de2f6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x5de2f8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402b08
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov eax, dword [eax + 4]
mov edx, dword [eax]
cmp eax, edx
mov dword [ebp - 4], edx
je 0x402b56
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
cmp dword [edx + 0x2c], 0
je 0x402b5a
mov ecx, dword [ebp - 8]
lea eax, [edx + 0x1c]
add edx, 0xc
push eax
push edx
push ebx
call fcn.00403015
lea ecx, [ebp - 4]
call fcn.0040516b
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
cmp dword [eax + 4], edx
jne 0x402b29
pop edi
pop esi
pop ebx
leave
ret 8
mov eax, dword [edx + 0x20]
mov esi, dword [eax]
mov dword [ebp + 8], esi
cmp dword [edx + 0x20], esi
je 0x402b40
and word [ebp - 0x210], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20e]
rep stosd dword es:[edi], eax
mov ecx, 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]
stosw word es:[edi], ax
mov eax, dword [ebx + 4]
test eax, eax
jne 0x402b8f
mov eax, ecx
mov esi, dword [esi + 0x10]
test esi, esi
jne 0x402b98
mov esi, ecx
mov edx, dword [edx + 0x10]
test edx, edx
je 0x402ba1
mov ecx, edx
push eax
lea eax, [ebp - 0x210]
push 0x103
push eax
push 0x465a24
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x402be3
mov eax, dword [ebp + 8]
lea esi, [eax + 0x1c]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
push eax
lea eax, [ebp - 0x210]
push eax
mov ecx, esi
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_]
lea ecx, [ebp + 8]
call fcn.0040501f
mov esi, dword [ebp + 8]
mov edx, dword [ebp - 4]
jmp 0x402b62
Function at 0x4071c4
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
xor eax, eax
cmp dword [ebp + 8], eax
jne 0x4071d6
leave
ret
push ebx
push esi
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
push edi
mov dword [ebp - 4], str.extensions
mov ebx, 0x103
jmp 0x4071ef
xor eax, eax
cmp dword [ebp - 4], eax
je 0x407314
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x208], eax
je 0x4072d8
push dword [ebp - 4]
mov word [ebp - 0x414], ax
mov ecx, 0x81
xor eax, eax
push dword [ebp + 8]
lea edi, [ebp - 0x412]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x43c530
lea eax, [ebp - 0x414]
push ebx
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x407314
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x407314
and word [ebp - 0x20c], ax
push dword [ebp - 4]
mov ecx, 0x81
lea edi, [ebp - 0x20a]
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str._s_s.bak
lea eax, [ebp - 0x20c]
push ebx
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4072ad
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x407314
push 4
lea eax, [ebp - 0x20c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x407314
push dword [ebp - 4]
mov word [ebp - 0x61c], ax
mov ecx, 0x81
xor eax, eax
push dword [ebp + 8]
lea edi, [ebp - 0x61a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x43c530
lea eax, [ebp - 0x61c]
push ebx
push eax
call esi
lea eax, [ebp - 0x61c]
push eax
call fcn.00423f26
add esp, 0x18
add dword [ebp - 4], 0x20c
cmp dword [ebp - 4], 0x43c51c
jl 0x4071ed
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40737a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x22ec
call fcn.00431de0
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, esi
je 0x407496
cmp word [ebx], si
je 0x407496
mov ax, word [0x465a24]
push edi
mov word [ebp - 0x25c], ax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x25a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x25c]
push 0x103
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, 0x411
xor eax, eax
lea edi, [ebp - 0x12a2]
mov word [ebp - 0x12a4], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll__snwprintf]
push 0x43baa0
lea eax, [ebp - 0x12a4]
push 0x823
push eax
call ebx
mov ecx, 0x411
xor eax, eax
lea edi, [ebp - 0x22ea]
mov word [ebp - 0x22ec], si
rep stosd dword es:[edi], eax
add esp, 0x10
stosw word es:[edi], ax
lea eax, [ebp - 0x12a4]
push eax
lea eax, [ebp - 0x25c]
push str._post
push eax
push str.__s___s_s
lea eax, [ebp - 0x22ec]
push 0x823
push eax
call ebx
add esp, 0x18
xor eax, eax
lea edi, [ebp - 0x50]
mov dword [ebp - 0x10], esi
push 0x10
pop ecx
rep stosd dword es:[edi], eax
lea edi, [ebp - 0xc]
mov dword [ebp - 0x54], 0x44
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
mov word [ebp - 0x24], si
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x22ec]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
pop edi
je 0x407496
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
pop esi
pop ebx
leave
ret

Function at 0x407741
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
and word [ebp - 0x210], 0
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20e]
mov dword [ebp - 4], 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x103
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
pop edi
jne 0x4077be
cmp word [ebp - 0x210], ax
je 0x4077be
lea eax, [ebp - 0x210]
push eax
push 0x43baa0
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
push 1
pop eax
leave
ret
xor eax, eax
leave
ret
Function at 0x407de4
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
push edi
xor edi, edi
cmp eax, edi
mov dword [esp + 0x10], edi
jne 0x407e00
cmp word [eax], di
je 0x407f46
push edi
push 0x20
push 3
push edi
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x407f46
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 2
jb 0x407f3f
cmp ebx, 0xffffffff
je 0x407f3f
lea ebp, [ebx + 2]
mov dword [esp + 0x18], edi
push ebp
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
pop ecx
test edi, edi
je 0x407f3f
push ebp
push 0
push edi
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [esp + 0x18]
push 0
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ah, byte [edi + 1]
mov al, byte [edi]
cmp ax, 0xfeff
jne 0x407edf
lea eax, [edi + 2]
test eax, eax
je 0x407f32
mov ebx, dword [sym.imp.MSVCRT.dll_wcstok]
mov ebp, 0x43c7e8
push ebp
push eax
call ebx
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x407f32
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
cmp eax, 0xe
pop ecx
jl 0x407eda
cmp eax, 0x14
jge 0x407eda
cmp word [esi + 8], 0x5f
jne 0x407eda
push 5
add esi, 0x12
push 0x43c7dc
push esi
call dword [sym.imp.MSVCRT.dll_wcsncmp]
add esp, 0xc
test eax, eax
je 0x407f2a
push ebp
push 0
jmp 0x407e9b
mov ebx, dword [sym.imp.MSVCRT.dll_strtok]
mov ebp, 0x43c7d8
push ebp
push edi
call ebx
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x407f32
push esi
call sub.MSVCRT.dll_strlen
cmp eax, 0xe
pop ecx
jl 0x407f25
cmp eax, 0x14
jge 0x407f25
cmp byte [esi + 4], 0x5f
jne 0x407f25
push 5
add esi, 9
push str._auth
push esi
call dword [sym.imp.MSVCRT.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x407f2a
push ebp
push 0
jmp 0x407eec
mov dword [esp + 0x10], 1
push edi
call fcn.00431d38
mov eax, dword [esp + 0x14]
pop ecx
jmp 0x407f48
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x40800a
Capabilities:
Check if file exists
Create process on windows
Get common file path
Get program files directory
Initialize iwebbrowser2
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
je 0x4081bd
push dword [ebp + 8]
mov esi, dword [sym.imp.MSVCRT.dll_wcslen]
call esi
test eax, eax
pop ecx
je 0x4081bd
mov edx, 0x81
push edi
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x236]
mov word [ebp - 0x238], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x43e]
mov word [ebp - 0x440], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
lea eax, [ebp - 0x440]
push 0x26
push eax
push ebx
mov dword [ebp - 0xc], 1
mov dword [ebp - 0x10], 0x208
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x440]
push eax
push str._sInternet_Exploreriexplore.exe
lea eax, [ebp - 0x238]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x10
lea eax, [ebp - 0x238]
push eax
call edi
test eax, eax
jne 0x4080ef
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x465a24
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsIEXPLORE.EXE
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [ebp - 0x238]
push eax
call edi
test eax, eax
jne 0x4080ef
mov word [ebp - 0x238], bx
lea eax, [ebp - 0x238]
push eax
call esi
pop ecx
pop edi
test eax, eax
jbe 0x408122
push 0xa
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0x238]
push eax
push str.open
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x4081b8
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
push 0x435310
push 0x15
push ebx
push 0x4352d0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4081bd
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x4081b8
lea edx, [ebp - 4]
mov dword [ebp - 4], ebx
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x94]
cmp dword [ebp - 4], ebx
je 0x408170
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 1
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp + 8]
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea edx, [ebp - 0x20]
mov esi, eax
push edx
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x20]
mov word [ebp - 0x20], bx
push edx
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 0x30]
mov word [ebp - 0x30], 8
mov dword [ebp - 0x28], esi
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xd0]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push 1
pop eax
jmp 0x4081bf
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x408ed0
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor edx, edx
mov ecx, 0x466e98
push 8
mov eax, edx
pop esi
test al, 1
je 0x408eea
shr eax, 1
xor eax, 0xedb88320
jmp 0x408eec
shr eax, 1
dec esi
jne 0x408edd
mov dword [ecx], eax
add ecx, 4
inc edx
cmp ecx, 0x467298
jl 0x408ed8
pop esi
ret

Function at 0x409287
Capabilities:
Check mutex on windows

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, ecx
and byte [esi], 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4092e3
push dword [esp + 0xc]
push 0
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
test edi, edi
je 0x4092e3
push edi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x4092d2
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push edi
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov byte [esi], 1
mov eax, esi
pop edi
pop esi
ret 4
Function at 0x411cf0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x411cfe
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x10], 8
push esi
push edi
not eax
mov ecx, 0xff
jb 0x411ddf
mov edi, dword [ebp + 0x10]
push ebx
shr edi, 3
movzx ebx, byte [edx]
mov esi, eax
sub dword [ebp + 0x10], 8
and esi, ecx
xor esi, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [esi*4 + 0x434d00]
xor eax, ebx
inc edx
mov esi, eax
movzx ebx, byte [edx]
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x434d00]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x434d00]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x434d00]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x434d00]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x434d00]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x434d00]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
shr eax, 8
mov esi, dword [esi*4 + 0x434d00]
xor eax, esi
inc edx
dec edi
jne 0x411d1b
pop ebx
cmp dword [ebp + 0x10], 0
je 0x411e00
movzx edi, byte [edx]
mov esi, eax
and esi, ecx
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x434d00]
xor eax, esi
inc edx
dec dword [ebp + 0x10]
jne 0x411de5
pop edi
pop esi
not eax
pop ebp
ret

Function at 0x412626
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x41265a
lea eax, [ebp + 8]
push 0
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x412655
mov byte [esi + 8], 1
mov eax, dword [ebp + 8]
jmp 0x412682
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x41266b
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x10]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add dword [esi + 0x18], edi
mov eax, edi
xor edx, edx
pop edi
div dword [ebp + 0xc]
pop esi
pop ebp
ret
Function at 0x413591
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x41360e
cmp dword [esi + 4], 0xffffffff
jne 0x41360e
push edi
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x43e5ac
push edi
call dword [sym.imp.MSVCRT.dll_wcscat]
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop edi
jne 0x4135e0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x4135e0
mov eax, 0x2000000
jmp 0x413613
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00412407
add esp, 0x10
test eax, eax
jne 0x4135fe
mov eax, dword [ebp - 4]
jmp 0x413613
push eax
call fcn.00412901
mov dword [esi], eax
mov eax, dword [0x469098]
pop ecx
jmp 0x413613
mov eax, 0x1000000
pop esi
leave
ret 0xc

Function at 0x4139fe
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x413aa1
mov cx, word [edi]
test cx, cx
je 0x413aa1
mov eax, edi
mov edx, edi
cmp cx, 0x2f
je 0x413a2f
cmp cx, 0x5c
jne 0x413a31
mov eax, edx
inc edx
inc edx
mov cx, word [edx]
test cx, cx
jne 0x413a23
cmp eax, edi
je 0x413a71
sub eax, edi
push esi
mov esi, eax
lea eax, [ebp - 0x208]
sar esi, 1
push esi
push edi
push eax
call dword [sym.imp.MSVCRT.dll_wcsncpy]
and word [ebp + esi*2 - 0x208], 0
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
call fcn.004139fe
add esp, 0x14
pop esi
push dword [ebp + 8]
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
lea eax, [ebp - 0x410]
push edi
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 0x10
lea eax, [ebp - 0x410]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
leave
ret