joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424f1d
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x424f26
xor eax, eax
jmp 0x424f8f
cmp dword [esp + 8], 0
jne 0x424f32
call fcn.004232a7
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.0043e3e2
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x424f6d
push dword [esi + 0x10]
call fcn.0043e127
test eax, eax
pop ecx
jne 0x424f6d
mov esi, dword [esi + 0xc]
call fcn.0043bebb
push esi
push dword [eax]
push 1
call fcn.0042d2d7
push dword [esi + 0x10]
call fcn.0043e156
test eax, eax
pop ecx
je 0x424f8c
push dword [esi + 0x10]
call fcn.0043e07b
push eax
call fcn.004025c0
pop ecx
pop ecx
jmp 0x424f5b
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x424f98
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x424fa2
call fcn.004232a7
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.0043e517
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x424fcf
mov esi, dword [esi + 0xc]
call fcn.0043bebb
push esi
push dword [eax]
push 1
call fcn.0042d2d7
pop esi
ret 8

Function at 0x425984
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x4259ca
call fcn.0042767b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4259ca
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x425a0d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x4259f6
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4259f6
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x425a0a
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x428b8b
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x428bb4
call fcn.0042767b
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
test eax, eax
mov dword [esi + 8], eax
jne 0x428bd7
push eax
push dword [esi + 4]
call fcn.00428b16
push esi
push eax
mov ecx, 0x470a70
call fcn.004287e9
mov eax, esi
pop esi
pop ebp
ret 0x18
Function at 0x42ad14
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x42ad42
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42ad60
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0042ac7e
jmp 0x42ad60
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42ad60
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0042ac7e
test edi, edi
mov eax, edi
jne 0x42ad4a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x470ab0]
test ecx, ecx
je 0x42ae23
jmp 0x42ad13
ret 8

Function at 0x438dc7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46d750]
jne 0x438dd1
repz ret
jmp fcn.00441255
Function at 0x44d057
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00440c3c
xor ebx, ebx
cmp dword [0x471920], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x44d12c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x44d097
xor eax, eax
jmp 0x44d1f0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x44d090
push eax
call fcn.00440bd9
mov dword [esp], 0x45cd40
push edi
mov dword [0x471920], eax
call esi
push eax
call fcn.00440bd9
mov dword [esp], 0x45cd2c
push edi
mov dword [0x471924], eax
call esi
push eax
call fcn.00440bd9
mov dword [0x471928], eax
lea eax, [ebp - 8]
push eax
call fcn.0043a3a6
test eax, eax
pop ecx
pop ecx
je 0x44d0fa
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043a97c
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x44d12c
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00440bd9
cmp eax, ebx
pop ecx
mov dword [0x471930], eax
je 0x44d12c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00440bd9
pop ecx
mov dword [0x47192c], eax
mov eax, dword [0x47192c]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x44d1a5
cmp dword [0x471930], esi
je 0x44d1a5
push eax
call fcn.00440c45
pop ecx
call eax
cmp eax, ebx
je 0x44d172
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x471930]
call fcn.00440c45
pop ecx
call eax
test eax, eax
je 0x44d172
test byte [ebp - 0x18], 1
jne 0x44d1a5
lea eax, [ebp - 0xc]
push eax
call fcn.0043a3dd
test eax, eax
pop ecx
je 0x44d18d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043a97c
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x44d19c
or dword [ebp + 0x10], 0x200000
jmp 0x44d1d6
or dword [ebp + 0x10], 0x40000
jmp 0x44d1d6
mov eax, dword [0x471924]
cmp eax, esi
je 0x44d1d6
push eax
call fcn.00440c45
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x44d1d6
mov eax, dword [0x471928]
cmp eax, esi
je 0x44d1d6
push dword [ebp - 4]
push eax
call fcn.00440c45
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x471920]
call fcn.00440c45
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4538f6
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x46d750]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0045388b
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0043b620
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x453945
cmp dword [ebp - 0x1c], 5
jb 0x45395d
jmp 0x453959
cmp dword [ebp - 0x10], 1
jne 0x45395d
cmp dword [ebp - 0x1c], 4
ja 0x453959
jne 0x45395d
cmp dword [ebp - 0x18], 0
jbe 0x45395d
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x45dd74
call fcn.0045375f
test eax, eax
jge 0x45397e
mov byte [0x471d94], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00438dc7
add ebp, 0x78
leave
ret
Function at 0x401061
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
push dword [0x43b030]
mov esi, ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4010c9
lea eax, [ebp - 0x20c]
push 0x208
push eax
mov ecx, esi
call fcn.004010ce
test eax, eax
je 0x4010c9
lea eax, [ebp - 0x20c]
push str.safemon_safemon.dll
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4010c9
push 1
pop eax
jmp 0x4010cb
xor eax, eax
pop esi
leave
ret

Function at 0x401123
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push 0
push str.Q360SafeMonClass
call dword [sym.imp.USER32.dll_FindWindowW]
push 4
mov esi, eax
pop eax
mov dword [ebp - 4], 1
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
neg esi
sbb esi, esi
push str.SOFTWARE360Safe_safemon
push reloc.OLEAUT32.dll_SysReAllocString
neg esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp dword [ebp - 4], 0
je 0x40117d
test esi, esi
je 0x40117d
push 1
pop eax
jmp 0x40117f
xor eax, eax
pop esi
leave
ret 4

Function at 0x40120e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 4
mov dword [ebp - 4], 2
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push str.update
push str.SOFTWARE360Safe_setting
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov eax, dword [ebp - 4]
cmp eax, 1
jb 0x401252
cmp eax, 3
jbe 0x401255
push 2
pop eax
leave
ret

Function at 0x401257
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
mov esi, ecx
call fcn.00401061
cmp dword [ebp + 8], eax
jne 0x401272
push 1
pop eax
jmp 0x4012c1
lea eax, [ebp - 0x208]
push 0x208
push eax
mov ecx, esi
call fcn.004010ce
test eax, eax
je 0x4012bf
lea eax, [ebp - 0x208]
push str.safemon_safemon.dll
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4012bf
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call fcn.0040630f
pop ecx
pop ecx
jmp 0x4012c1
xor eax, eax
pop esi
leave
ret 4
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 0x466054
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 0x406a4a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call sub.MSVCRT.dll_strlen
mov ebx, dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
lea eax, [edi + 1]
push eax
call ebx
pop ecx
mov dword [ebp + 8], eax
test eax, eax
pop ecx
je 0x406abf
test edi, edi
jle 0x406a84
sub esi, eax
mov ecx, edi
mov dl, byte [esi + eax]
xor dl, 0x13
mov byte [eax], dl
inc eax
dec ecx
jne 0x406a78
lea esi, [edi + edi]
lea eax, [esi + 1]
push eax
call ebx
mov ebx, eax
lea eax, [esi + 1]
push eax
push 0
push ebx
call sub.MSVCRT.dll_memset
add esp, 0x10
test ebx, ebx
je 0x406ab3
push ebx
push edi
push dword [ebp + 8]
call fcn.004069be
add esp, 0xc
and byte [esi + ebx], 0
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x406ac4
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call sub.MSVCRT.dll_strlen
mov edi, eax
push esi
push edi
push esi
call fcn.004069ff
mov eax, edi
add esp, 0x10
cdq
sub eax, edx
xor ecx, ecx
sar eax, 1
test eax, eax
jle 0x406af3
xor byte [ecx + esi], 0x13
inc ecx
cmp ecx, eax
jl 0x406aea
and byte [eax + esi], 0
pop edi
pop esi
ret
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.004241da
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.00432300
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 [0x466054]
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.00432250
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 0x466054
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 0x435320
push 0x15
push ebx
push 0x4352e0
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, 0x4674c8
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, 0x4678c8
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 0x40a41e
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov dword [ecx], 0x67452301
mov byte [ecx + 0x68], al
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret