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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007cd1e
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x100bd024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, 0x100c3578
call fcn.10071035
lea eax, [ebp - 0x34]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x18], xmm0
xor esi, esi
mov dword [ebp - 0x18], esi
xor bl, bl
push 0x10043640
mov byte [ebp - 0x14], bl
push 6
mov dword [ebp - 0x34], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10033d2b
cmp dword [ebp - 0x34], esi
je 0x10033d2b
lea ecx, [ebp - 0x30]
call fcn.10004900
mov dword [ebp - 4], esi
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x30]
push str.9CDB4DA2_ACEA_446E_AA3A_D25628140939__d__p
push eax
call fcn.10047dc0
add esp, 0x10
lea eax, [ebp - 0x30]
cmp dword [ebp - 0x1c], 8
cmovae eax, dword [ebp - 0x30]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
jne 0x10033ced
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.10004d00
mov dword [ebp - 4], 0xffffffff
jmp 0x10033d24
push 0xffffffffffffffff
push esi
call edi
test eax, eax
jne 0x10033cfd
mov bl, 1
mov byte [ebp - 0x14], bl
jmp 0x10033d0e
xor bl, bl
push esi
mov byte [ebp - 0x14], bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x30]
call fcn.10004d00
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 9
cmp byte [0x100c1628], 0
jne 0x10033d64
mov ecx, dword [0x100c1608]
test ecx, ecx
je 0x10033d50
push 0xffffffffffffffff
push ecx
call edi
mov ecx, dword [0x100c1608]
mov eax, dword [0x100c1600]
mov edi, dword [eax]
test ecx, ecx
je 0x10033d66
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x10033d66
xor edi, edi
mov dword [ebp - 4], 0xffffffff
test bl, bl
je 0x10033d7e
test esi, esi
je 0x10033d91
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x10033d82
test esi, esi
je 0x10033d91
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call eax
mov dword [ebp - 0x18], 0
mov eax, edi
mov byte [ebp - 0x14], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006efdc
mov esp, ebp
pop ebp
ret
Function at 0x100421a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100814ac
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x100bd024]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov ecx, 0x100c3578
call fcn.10071035
mov eax, dword [esi + 4]
test eax, eax
je 0x10042301
cmp byte [eax + 0x54], 0
je 0x10042301
add eax, 0x1c
lea ecx, [ebp - 0x1c]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x1c], xmm0
call fcn.100407c0
mov dword [ebp - 4], 0
mov eax, dword [esi + 4]
cmp dword [eax + 0x14], 8
jb 0x10042214
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x100422ce
push ecx
mov edx, edi
lea ecx, [ebp - 0x34]
call fcn.100491e0
add esp, 4
mov byte [ebp - 4], 2
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x20], 0x10
lea ecx, [ebp - 0x38]
push 0
push ecx
push dword [ebp - 0x24]
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x20]
cmp edx, 0x10
jb 0x100422b4
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100422aa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100422aa
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1006f01d
add esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
mov byte [ebp - 4], 0
mov byte [ebp - 4], 0
mov dword [ebp - 4], 7
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x100422f3
cmp byte [ebp - 0x18], 0
je 0x100422f3
mov eax, dword [esi]
test eax, eax
je 0x100422ef
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [esi + 4], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1006efdc
mov esp, ebp
pop ebp
ret 4
Function at 0x100487b0
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x140
mov eax, dword [0x100bd024]
xor eax, esp
mov dword [esp + 0x13c], eax
push esi
mov esi, ecx
mov ecx, 0x100c3578
call fcn.10071035
push pe_nt_image_headers32
lea eax, [esi + 4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x100488fc
cmp dword [esi + 4], 6
push edi
ja 0x10048810
jne 0x10048898
cmp dword [esi + 8], 2
jb 0x10048898
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x10048898
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x10048898
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10048898
movups xmm0, xmmword [0x100915e0]
push eax
movups xmmword [esp + 0x128], xmm0
movups xmm0, xmmword [0x100915f0]
movups xmmword [esp + 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x10048898
lea eax, [esp + 0x124]
push eax
lea ecx, [edi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10048898
cmp word [edi + 2], ax
jbe 0x10048898
movzx edx, word [edi + 0x32]
movzx ecx, word [edi + 0x30]
movzx eax, word [edi + 0x36]
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x100488e3
push pe_nt_image_headers32
lea eax, [esp + 0x10]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 8], 0x11c
lea eax, [esp + 8]
push eax
call edi
test eax, eax
jne 0x100488e3
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.1006efdc
add esp, 0x140
ret
mov ecx, dword [esp + 0x140]
xor al, al
pop esi
xor ecx, esp
call fcn.1006efdc
add esp, 0x140
ret

Function at 0x10049d30
Capabilities:
Create directory

Disassembly:
push esi
mov esi, ecx
mov ecx, 0x100c3578
call fcn.10071035
mov ecx, esi
pop esi
jmp fcn.10050820
Function at 0x1004bb10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov ebx, ecx
mov ecx, 0x100c2aea
push edi
call fcn.10071035
cmp dword [ebx + 0x38], 0
je 0x1004bb48
push dword [ebp + 0x10]
mov ecx, ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x1004bb6a
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x1004bb6c
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x1004bbf1
jg 0x1004bb81
test esi, esi
je 0x1004bbf1
test ecx, ecx
jl 0x1004bbca
jg 0x1004bb8b
test eax, eax
je 0x1004bbca
cmp edi, ecx
jg 0x1004bb9f
jl 0x1004bb95
cmp esi, eax
jae 0x1004bb9f
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x1004bbcd
mov edx, dword [ebp + 8]
test edi, edi
jl 0x1004bbf1
jg 0x1004bbd7
test esi, esi
je 0x1004bbf1
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x1004bbf1
push eax
push esi
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1004bc10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
mov ecx, 0x100c2aea
call fcn.10071035
cmp dword [edi + 0x38], 0
je 0x1004bc48
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x1004bc6a
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x1004bc6c
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x1004bd0c
jg 0x1004bc89
test esi, esi
je 0x1004bd0c
test ecx, ecx
jl 0x1004bcd6
jg 0x1004bc93
test eax, eax
je 0x1004bcd6
cmp ebx, ecx
jg 0x1004bca7
jl 0x1004bc9d
cmp esi, eax
jae 0x1004bca7
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x1004bcdd
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x1004bd0c
jg 0x1004bce7
test esi, esi
je 0x1004bd0c
cmp dword [edi + 0x4c], 0
je 0x1004bd0c
mov ecx, edi
call fcn.1004cf50
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
pop edi
pop esi
sbb edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1004c0c0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x30
mov eax, dword [0x100bd024]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push esi
mov esi, ecx
mov ecx, 0x100c2aea
call fcn.10071035
mov ebx, dword [esp + 0x3c]
cmp ebx, 0xffffffff
jne 0x1004c0fa
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.1006efdc
add esp, 0x30
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x1004c12d
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x1004c12d
mov ecx, esi
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.1006efdc
add esp, 0x30
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x1004c233
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x1004c156
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1004c18b
push dword [esi + 0x4c]
movsx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.1006efdc
add esp, 0x30
ret 4
lea eax, [esp + 0xc]
mov byte [esp + 0x17], bl
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x2b]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
test eax, eax
js 0x1004c233
cmp eax, 1
jle 0x1004c1ef
cmp eax, 3
jne 0x1004c233
mov edx, dword [esi + 0x4c]
mov cl, byte [esp + 0x17]
call fcn.1004ad50
or ecx, 0xffffffff
test al, al
pop edi
cmovne ecx, ebx
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.1006efdc
add esp, 0x30
ret 4
mov edi, dword [esp + 0xc]
lea eax, [esp + 0x18]
sub edi, eax
je 0x1004c20f
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x1004c233
lea eax, [esp + 0x17]
mov byte [esi + 0x3d], 1
cmp dword [esp + 0x10], eax
je 0x1004c233
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.1006efdc
add esp, 0x30
ret 4
mov ecx, dword [esp + 0x38]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1006efdc
add esp, 0x30
ret 4
Function at 0x1004cfc0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x28
mov eax, dword [0x100bd024]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
mov esi, ecx
mov ecx, 0x100c2aea
push edi
call fcn.10071035
cmp dword [esi + 0x38], 0
je 0x1004d078
cmp byte [esi + 0x3d], 0
je 0x1004d078
mov eax, dword [esi]
mov ecx, esi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x1004d029
mov ecx, dword [esi + 0x38]
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x1004d03c
sub eax, 1
je 0x1004d040
sub eax, 2
je 0x1004d078
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.1006efdc
add esp, 0x28
ret
mov byte [esi + 0x3d], 0
mov edi, dword [esp + 8]
lea eax, [esp + 0xc]
sub edi, eax
je 0x1004d060
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x1004d029
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.1006efdc
add esp, 0x28
ret
mov ecx, dword [esp + 0x2c]
mov al, 1
pop edi
pop esi
xor ecx, esp
call fcn.1006efdc
add esp, 0x28
ret
Function at 0x1004f260
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x18
push esi
push edi
mov edi, ecx
mov ecx, 0x100c2ae7
call fcn.10071035
mov esi, dword [edi]
movzx eax, byte [esi]
cmp byte [eax + 0x10092010], 0
je 0x1004f28e
nop
movzx eax, byte [esi + 1]
inc esi
cmp byte [eax + 0x10092010], 0
jne 0x1004f280
mov dword [edi], esi
mov ecx, esi
mov dl, byte [esi]
movzx eax, dl
mov dword [esp + 8], ecx
cmp byte [eax + 0x10091c10], 0
je 0x1004f428
nop dword [eax + eax]
cmp dl, 0x26
jne case.0x1004f2d0.36
movsx eax, byte [esi + 1]
add eax, 0xffffffdd
cmp eax, 0x4e
ja case.0x1004f2d0.36
movzx eax, byte [eax + 0x1004f468]
jmp dword [eax*4 + 0x1004f450]
mov al, byte [esi + 2]
cmp al, 0x6d
jne 0x1004f2fe
cmp byte [esi + 3], 0x70
jne case.0x1004f2d0.36
cmp byte [esi + 4], 0x3b
jne case.0x1004f2d0.36
mov byte [ecx], 0x26
inc ecx
add esi, 5
jmp 0x1004f412
cmp al, 0x70
jne case.0x1004f2d0.36
cmp byte [esi + 3], 0x6f
jne case.0x1004f2d0.36
cmp byte [esi + 4], 0x73
jne case.0x1004f2d0.36
cmp byte [esi + 5], 0x3b
jne case.0x1004f2d0.36
mov byte [ecx], 0x27
inc ecx
add esi, 6
jmp 0x1004f412
cmp byte [esi + 2], 0x75
jne case.0x1004f2d0.36
cmp byte [esi + 3], 0x6f
jne case.0x1004f2d0.36
cmp byte [esi + 4], 0x74
jne case.0x1004f2d0.36
cmp byte [esi + 5], 0x3b
jne case.0x1004f2d0.36
mov byte [ecx], 0x22
inc ecx
add esi, 6
jmp 0x1004f412
cmp byte [esi + 2], 0x74
jne case.0x1004f2d0.36
cmp byte [esi + 3], 0x3b
jne case.0x1004f2d0.36
mov byte [ecx], 0x3e
inc ecx
add esi, 4
jmp 0x1004f412
cmp byte [esi + 2], 0x74
jne case.0x1004f2d0.36
cmp byte [esi + 3], 0x3b
jne case.0x1004f2d0.36
mov byte [ecx], 0x3c
inc ecx
add esi, 4
jmp 0x1004f412
mov cl, byte [esi + 2]
xor edx, edx
cmp cl, 0x78
jne 0x1004f3d0
movzx eax, byte [esi + 3]
add esi, 3
mov al, byte [eax + 0x10091910]
cmp al, 0xff
je 0x1004f3f7
inc esi
movzx eax, al
shl edx, 4
add edx, eax
movzx eax, byte [esi]
mov al, byte [eax + 0x10091910]
cmp al, 0xff
jne 0x1004f3b8
jmp 0x1004f3f7
movzx eax, cl
add esi, 2
mov al, byte [eax + 0x10091910]
cmp al, 0xff
je 0x1004f3f7
movzx eax, al
lea ecx, [edx + edx*4]
inc esi
lea edx, [eax + ecx*2]
movzx eax, byte [esi]
mov al, byte [eax + 0x10091910]
cmp al, 0xff
jne 0x1004f3e0
lea ecx, [esp + 8]
call fcn.1004f880
cmp byte [esi], 0x3b
jne 0x1004f432
mov ecx, dword [esp + 8]
inc esi
jmp 0x1004f416
mov al, byte [esi]
mov byte [ecx], al
inc ecx
inc esi
mov dword [esp + 8], ecx
mov dl, byte [esi]
movzx eax, dl
cmp byte [eax + 0x10091c10], 0
jne 0x1004f2b0
mov dword [edi], esi
mov eax, ecx
pop edi
pop esi
add esp, 0x18
ret
push esi
push str.expected__
lea ecx, [esp + 0x14]
call fcn.1004abc0
push 0x100b9fc8
lea eax, [esp + 0x10]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
popfd
add al, 16
xlatb
add al, 16
add al, 0x10
test bl, dh
add al, 16
xor bl, dh
add al, 16
or al, 0xf4
add al, 16
add byte [0x5050505], al
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215041
add eax, 84214277
add eax, 84214533
add eax, -859044859
int3
Function at 0x1005c570
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100b5608
push 0x1006fb3c
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x100bd024]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
mov dword [ebp - 0x438], esi
mov ecx, 0x100c3578
call fcn.10071035
mov dword [ebp - 4], 0
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x1005c5d3
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov edx, esi
call fcn.1005c6b0
mov bl, al
mov byte [ebp - 0x431], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x1005c60e
test bl, bl
jne 0x1005c68d
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x1005c623
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
push 0x410
push ecx
lea eax, [ebp - 0x430]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x207
lea eax, [ebp - 0x430]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [ebp - 0x430]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1005c660
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x430]
push eax
mov ecx, esi
call fcn.10004e60
movzx ebx, bl
mov eax, 1
cmp dword [esi + 0x10], 0
cmovne ebx, eax
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1006efdc
mov esp, ebp
pop ebp
ret

Function at 0x1005cb30
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x100bd024]
xor eax, esp
mov dword [esp + 0x128], eax
push esi
mov esi, ecx
mov ecx, 0x100c3578
call fcn.10071035
push 0x110
lea eax, [esp + 0x18]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x10], 0x114
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1005cbb8
cmp dword [esp + 0x14], 6
jb 0x1005cbb8
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x207
push eax
push esi
push str.Progid
mov edx, str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
mov ecx, connect
call fcn.1005c8e0
add esp, 0xc
test al, al
je 0x1005cbb8
cmp word [esi], 0
jne 0x1005cc10
lea eax, [esp + 8]
mov dword [esp + 8], 0x207
push eax
push esi
push 0
mov edx, str.http_shellopencommand
mov ecx, connect
call fcn.1005c8e0
add esp, 0xc
test al, al
je 0x1005cbe4
cmp word [esi], 0
jne 0x1005cc10
lea eax, [esp + 8]
mov dword [esp + 8], 0x207
push eax
push esi
push 0
mov edx, str.SoftwareClasses.html
mov ecx, connect
call fcn.1005c8e0
add esp, 0xc
test al, al
je 0x1005cc25
cmp word [esi], 0
je 0x1005cc25
mov al, 1
pop esi
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.1006efdc
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x12c]
xor al, al
pop esi
xor ecx, esp
call fcn.1006efdc
mov esp, ebp
pop ebp
ret
Function at 0x1005d150
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x283c]
mov eax, 0x283c
call fcn.10070200
push 0xffffffffffffffff
push 0x10085e9f
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x100bd024]
xor eax, ebp
mov dword [ebp + 0x2838], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, 0x100c3578
call fcn.10071035
push 0x2000
lea eax, [ebp + 0x630]
mov dword [ebp - 0x10], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, 0x22
mov word [ebp + 0x630], ax
test esi, esi
je 0x1005d379
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
cmp eax, 1
jl 0x1005d379
push esi
call edi
cmp eax, 0xffa
jge 0x1005d379
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp + 0x630]
push eax
call esi
push 0x100929f8
lea eax, [ebp + 0x630]
push eax
call esi
push str.Shell32.dll
lea ecx, [ebp - 0x30]
call fcn.10004850
mov dword [ebp - 4], 0
lea eax, [ebp - 0x30]
push eax
call fcn.10060da0
mov ecx, eax
call fcn.10060e90
mov esi, eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.10004d00
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x1005d379
push str.ShellExecuteW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x1005d379
lea ecx, [ebp]
call fcn.1005cc40
xor edi, edi
lea esi, [ebp]
cmp word [esi], 0
je 0x1005d296
push 1
push 0
lea eax, [ebp + 0x630]
push eax
push esi
push str.open
push 0
call ebx
cmp eax, 0x20
ja 0x1005d2a4
inc edi
add esi, 0x210
cmp edi, 3
jl 0x1005d276
jmp 0x1005d2c9
imul eax, edi, 0x210
cmp dword [ebp + eax + 0x208], 0
mov eax, dword [ebp + eax + 0x20c]
jne 0x1005d2be
add eax, 0x10
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x1005d37b
push 1
push 0
push 0
lea eax, [ebp + 0x630]
push eax
push str.open
push 0
call ebx
cmp eax, 0x20
jbe 0x1005d2ee
mov eax, 0x10
jmp 0x1005d37b
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor esi, esi
mov dword [ebp - 0x18], str._programfiles_x86__Internet_Exploreriexplore.exe
mov dword [ebp - 0x14], 0x10092a78
nop dword [eax]
nop dword [eax + eax]
push 0x208
lea eax, [ebp + 0x2630]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp + 0x2630]
push 0x103
push eax
push dword [ebp + esi*4 - 0x18]
call edi
lea eax, [ebp + 0x2630]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1005d36e
push 1
push 0
lea eax, [ebp + 0x630]
push eax
lea eax, [ebp + 0x2630]
push eax
push str.open
push 0
call ebx
cmp eax, 0x20
ja 0x1005d2e4
inc esi
cmp esi, 2
jb 0x1005d310
mov eax, dword [ebp - 0x10]
jmp 0x1005d37b
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2838]
xor ecx, ebp
call fcn.1006efdc
lea esp, [ebp + 0x283c]
pop ebp
ret