joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42e139
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
mov esi, eax
push edi
lea edi, [esi + 4]
mov eax, edi
call fcn.0042848a
test al, al
je 0x42e150
pop edi
xor al, al
pop esi
ret
push 0xc
call fcn.0042f519
test eax, eax
pop ecx
je 0x42e16b
push esi
push 0x42e0ec
mov esi, eax
call fcn.0040e9fc
jmp 0x42e16d
xor eax, eax
push ebx
mov ebx, eax
call fcn.0040b67c
mov eax, edi
call fcn.0041f84a
pop ebx
pop edi
pop esi
jmp fcn.0040eaa7

Function at 0x42f583
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44b4e8]
jne 0x42f58d
repz ret
jmp fcn.00432540

Function at 0x432e36
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x44b500]
je 0x432e51
inc edi
cmp edi, 0x17
jb 0x432e42
cmp edi, 0x17
jae 0x432fd1
push ebp
push 3
call fcn.00438ae1
cmp eax, 1
pop ecx
je 0x432f9d
push 3
call fcn.00438ae1
test eax, eax
pop ecx
jne 0x432e85
cmp dword [0x44b0e0], 1
je 0x432f9d
cmp ebx, 0xfc
je 0x432fd0
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x44f118
push ebp
call fcn.00435b6a
add esp, 0xc
test eax, eax
je 0x432ebb
push esi
push esi
push esi
push esi
push esi
call fcn.0042f350
add esp, 0x14
push 0x104
mov esi, 0x44f131
push esi
push 0
mov byte [0x44f235], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x432eff
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00435b6a
add esp, 0xc
test eax, eax
je 0x432eff
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0042f350
add esp, 0x14
push esi
call fcn.0042f6d0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x432f44
push esi
call fcn.0042f6d0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x44f42c
push 0x43ea64
sub ecx, eax
push ecx
push eax
call fcn.00433019
add esp, 0x14
test eax, eax
je 0x432f44
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0042f350
add esp, 0x14
jmp 0x432f46
xor esi, esi
push 0x43ea60
push ebx
push ebp
call fcn.00438a70
add esp, 0xc
test eax, eax
je 0x432f66
push esi
push esi
push esi
push esi
push esi
call fcn.0042f350
add esp, 0x14
push dword [edi*8 + 0x44b504]
push ebx
push ebp
call fcn.00438a70
add esp, 0xc
test eax, eax
je 0x432f88
push esi
push esi
push esi
push esi
push esi
call fcn.0042f350
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004388b3
add esp, 0xc
jmp 0x432fd0
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x432fd0
cmp ebp, 0xffffffff
je 0x432fd0
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x44b504]
push dword [esi]
call fcn.0042f6d0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4388b3
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00431df5
xor ebx, ebx
cmp dword [0x44f854], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x438989
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x438a69
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x438a69
push eax
call fcn.00431d87
mov dword [esp], 0x43f2e0
push edi
mov dword [0x44f854], eax
call esi
push eax
call fcn.00431d87
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x44f858], eax
call esi
push eax
call fcn.00431d87
mov dword [0x44f85c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004329cd
test eax, eax
pop ecx
pop ecx
je 0x438957
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042f350
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x438989
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00431d87
cmp eax, ebx
pop ecx
mov dword [0x44f864], eax
je 0x438989
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00431d87
pop ecx
mov dword [0x44f860], eax
mov eax, dword [0x44f860]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x438a0e
cmp dword [0x44f864], ecx
je 0x438a0e
push eax
call fcn.00431dfe
push dword [0x44f864]
mov esi, eax
call fcn.00431dfe
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x438a0e
cmp edi, ebx
je 0x438a0e
call esi
cmp eax, ebx
je 0x4389db
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4389db
test byte [ebp - 0x18], 1
jne 0x438a0e
lea eax, [ebp - 0x10]
push eax
call fcn.00432a04
test eax, eax
pop ecx
je 0x4389f6
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042f350
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x438a05
or dword [ebp + 0x10], 0x200000
jmp 0x438a49
or dword [ebp + 0x10], 0x40000
jmp 0x438a49
mov eax, dword [0x44f858]
cmp eax, dword [ebp - 8]
je 0x438a49
push eax
call fcn.00431dfe
cmp eax, ebx
pop ecx
je 0x438a49
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x438a49
mov eax, dword [0x44f85c]
cmp eax, dword [ebp - 8]
je 0x438a49
push eax
call fcn.00431dfe
cmp eax, ebx
pop ecx
je 0x438a49
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44f854]
call fcn.00431dfe
cmp eax, ebx
pop ecx
je 0x438a69
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x438a6b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408f6c
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0xdad5909
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e3d0
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x2b36198d
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x401960
Capabilities:
Delete file
Move file

Disassembly:
push esi
mov esi, ecx
push 0x8007
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x401950
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x40199a
call fcn.004192d0
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x401993
mov eax, dword [ecx]
push 1
call dword [eax + 0x20]
mov dword [esi + 0x10], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x4019ce
push edi
call fcn.00438150
mov ecx, dword [esi + 0x14]
call fcn.00437cb0
mov edi, dword [esi + 0x14]
test edi, edi
je 0x4019c6
mov ecx, edi
call fcn.00436ad0
push edi
call fcn.0043b3d0
add esp, 4
mov dword [esi + 0x14], 0
pop edi
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x4019ee
call fcn.00415bd0
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x4019e7
mov edx, dword [ecx]
push 1
call dword [edx]
mov dword [esi + 0x18], 0
lea ecx, [esi + 0x40]
call fcn.00434980
call fcn.00445e90
push 0xdc
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x4d7598
call fcn.0041e4d0
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x401a2b
push 4
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop esi
ret
Function at 0x4025d0
Capabilities:
Initialize iwebbrowser2

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4afc98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x828
push ebx
push esi
push edi
xor ebx, ebx
mov esi, dword [ebp + 8]
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x832]
mov word [ebp - 0x834], bx
mov dword [ebp - 0x10], esp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
push 0x4c8148
lea eax, [ebp - 0x834]
push 0x800
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
push 5
push ebx
push 0x4d74cc
push esi
push str.open
push ebx
call fcn.0043b390
add esp, 0x28
cmp eax, 0x20
jle 0x40265d
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 4], ebx
mov dword [ebp + 8], ebx
mov word [ebp - 0x34], bx
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
push ecx
push 0x4b7070
push 0x15
push ebx
push 0x4b7030
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x4026b5
lea edx, [ebp - 0x34]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp + 8]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x4026a0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x94]
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x4026e2
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edx, dword [ebp - 0x14]
push 3
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
jbe 0x402758
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x24]
push eax
mov word [ebp - 0x24], bx
call edi
cmp eax, ebx
jge 0x402707
mov dword [ebp - 0x1c], eax
push esi
mov word [ebp - 0x24], 8
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
cmp eax, ebx
mov dword [ebp - 0x1c], eax
jne 0x40272c
cmp esi, ebx
je 0x40272c
mov word [ebp - 0x24], 0xa
mov dword [ebp - 0x1c], 0x8007000e
lea edx, [ebp - 0x34]
mov eax, dword [ebp + 8]
push edx
lea edx, [ebp - 0x34]
push edx
mov ecx, dword [eax]
lea edx, [ebp - 0x34]
mov byte [ebp - 4], 3
push edx
lea edx, [ebp - 0x34]
push edx
lea edx, [ebp - 0x24]
push edx
push eax
call dword [ecx + 0xd0]
lea eax, [ebp - 0x24]
push eax
call edi
jmp 0x40275e
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [ebp - 0x34]
push ecx
call edi
mov eax, dword [ebp + 8]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x402774
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x402b20
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x4afcf1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
push esi
push edi
mov dword [esp + 0x10], ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
mov eax, dword [0x4c8080]
test esi, esi
mov dword [esp + 8], eax
je 0x402ba7
mov ecx, esi
shr ecx, 0x10
jne 0x402b6f
and esi, 0xffff
lea ecx, [esp + 8]
push esi
call fcn.004056a0
jmp 0x402ba7
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
test edi, edi
je 0x402ba7
push edi
lea ecx, [esp + 0xc]
call fcn.00405a70
test eax, eax
je 0x402ba7
lea ecx, [edi + edi]
lea edx, [edi + edi + 2]
cmp edx, ecx
jb 0x402ba7
mov edi, dword [esp + 8]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x4c8080]
mov dword [esp + 0x228], 0
mov dword [esp + 0xc], ecx
mov edx, dword [0x4d7448]
lea ecx, [esp + 0x20]
push 0x100
push ecx
mov eax, dword [edx + 8]
push 0xba
push eax
mov byte [esp + 0x238], 1
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x402bec
mov word [esp + 0x20], ax
mov edx, 0x100
sub edx, eax
cmp edx, 1
jle 0x402c1c
lea eax, [esp + 0x20]
test eax, eax
je 0x402c0b
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [esp + 0x20]
lea ecx, [esp + 0xc]
push edx
push eax
call fcn.00405ad0
jmp 0x402c6a
push 0x1ff
lea ecx, [esp + 0x10]
mov esi, 0x200
call fcn.004058b0
test eax, eax
je 0x402c5f
push esi
push eax
push 0xba
call fcn.00405e80
mov ecx, esi
sub ecx, eax
cmp ecx, 1
jg 0x402c5f
add esi, 0x100
lea ecx, [esp + 0xc]
lea edx, [esi - 1]
push edx
call fcn.004058b0
test eax, eax
jne 0x402c33
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
call fcn.00405970
mov eax, 0x4c8178
test eax, eax
je 0x402c7e
push 0x4c8178
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x4c8178
push eax
lea ecx, [esp + 0x10]
call fcn.00405b90
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [eax - 8]
push ecx
lea ecx, [esp + 0x10]
call fcn.00405b90
mov eax, dword [esp + 0x10]
lea edx, [esp + 8]
push edx
mov ecx, dword [eax + 0x14]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00407490
lea ecx, [esp + 0x14]
mov byte [esp + 0x228], 2
call fcn.004075e0
lea ecx, [esp + 0x14]
mov esi, eax
mov byte [esp + 0x228], 1
call fcn.004075a0
mov eax, dword [esp + 0xc]
mov ecx, dword [0x4c8084]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x402d0a
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x402d0a
mov eax, dword [esp + 0xc]
add eax, 0xfffffff4
push eax
call fcn.0043b3d0
add esp, 4
mov eax, dword [esp + 8]
mov edx, dword [0x4c8084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x402d35
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x402d35
mov edx, dword [esp + 8]
add edx, 0xfffffff4
push edx
call fcn.0043b3d0
add esp, 4
mov ecx, dword [esp + 0x220]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x224
ret
Function at 0x403900
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0x11c]
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [eax]
push edx
mov edx, dword [esp + 0x120]
push ecx
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 0x80
mov eax, dword [edx]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp dword [esp + 8], 1
jne 0x403a3f
cmp word [esp + 0x10], 0
je 0x403a3f
mov eax, dword [esp + 0xc]
test eax, eax
jbe 0x403a3f
mov ecx, dword [0x4c8080]
lea edx, [esp + 0x10]
test edx, edx
push esi
mov dword [esp + 8], ecx
je 0x4039e6
lea eax, [esp + 0x14]
shr eax, 0x10
jne 0x4039a6
xor ecx, ecx
lea edx, [esp + 0x14]
mov cx, dx
push ecx
lea ecx, [esp + 0xc]
call fcn.004056a0
jmp 0x4039e6
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x4039e6
push esi
lea ecx, [esp + 0xc]
call fcn.00405a70
test eax, eax
je 0x4039e6
lea ecx, [esi + esi]
lea edx, [esi + esi + 2]
cmp edx, ecx
jb 0x4039e6
mov edi, dword [esp + 8]
mov eax, ecx
lea esi, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x120]
mov eax, dword [esp + 8]
mov edx, dword [ecx]
lea ecx, [esp + 0x14]
push edx
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [0x4c8084]
pop esi
test eax, eax
mov eax, dword [esp + 4]
lea ecx, [eax - 0xc]
jne 0x403a4b
cmp ecx, edx
je 0x403a3f
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x403a3f
mov edx, dword [esp + 4]
add edx, 0xfffffff4
push edx
call fcn.0043b3d0
add esp, 4
xor eax, eax
pop edi
add esp, 0x10c
ret 0xc
cmp ecx, edx
je 0x403a6d
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x403a6d
mov edx, dword [esp + 4]
add edx, 0xfffffff4
push edx
call fcn.0043b3d0
add esp, 4
mov eax, 1
pop edi
add esp, 0x10c
ret 0xc

Function at 0x403ee0
Capabilities:
Delete file
Move file

Disassembly:
push esi
mov esi, ecx
call fcn.00445e90
push 0xdc
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x4d7598
call fcn.0041e4d0
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x403f18
push 4
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop esi
ret
Function at 0x403f30
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x22c
push ebp
push esi
xor ebp, ebp
push edi
push ebp
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x403f56
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x22c
ret
mov ecx, 0x8a
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x403f8d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x22c
ret
mov edi, dword [sym.imp.MSVCRT.dll__wcsicmp]
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_wcsstr]
lea ecx, [esp + 0x34]
push str.360Inst.exe
push ecx
call edi
add esp, 8
test eax, eax
je 0x403fc0
lea edx, [esp + 0x34]
push str.360Inst_
push edx
call ebx
add esp, 8
test eax, eax
je 0x403fc1
inc ebp
lea eax, [esp + 0x10]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x403f9a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov eax, ebp
pop esi
pop ebp
add esp, 0x22c
ret
Function at 0x4062b0
Capabilities:
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4b001b
push eax
mov eax, 0x12854
mov dword fs:[0], esp
call fcn.004a7630
mov ecx, dword [esp + 0x12864]
mov eax, dword [esp + 0x12868]
push ebx
push ebp
push esi
push edi
and ecx, 0xffff
push eax
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4063e7
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4063e7
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
lea eax, [esi*4]
push eax
mov dword [esp + 0x14], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
lea ecx, [esp + 0x18]
mov edi, eax
call fcn.00408b70
lea edx, [esp + 0x10]
lea ecx, [esp + 0x18]
push edx
push edi
push esi
push ebp
mov dword [esp + 0x1287c], 0
call fcn.00409990
mov esi, dword [esp + 0x1287c]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0
push 1
push 0
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
or ebp, 0xffffffff
cmp esi, ebp
jne 0x40639e
lea ecx, [esp + 0x18]
mov dword [esp + 0x1286c], ebp
call fcn.00408bc0
xor eax, eax
jmp 0x4063ec
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push 0
push eax
push ecx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
push edi
call fcn.0043b3d0
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x1286c], ebp
call fcn.00408bc0
mov eax, 1
mov ecx, dword [esp + 0x12864]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x12860
ret
Function at 0x406e70
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
xor edi, edi
mov eax, dword [eax]
push eax
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x406ea3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x406e9c
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret

Function at 0x4079b0
Capabilities:
Check os version

Disassembly:
sub esp, 0x140
push esi
push edi
mov ecx, 9
xor eax, eax
lea edi, [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
rep stosd dword es:[edi], eax
mov ecx, 0x47
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0x11c
push eax
call esi
test eax, eax
jne 0x4079fc
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], 0x114
push ecx
call esi
test eax, eax
je 0x407a3d
push str.GetNativeSystemInfo
push 0x4c8784
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x407a3d
lea edx, [esp + 8]
push edx
call eax
mov ax, word [esp + 8]
cmp ax, 9
je 0x407a2f
cmp ax, 6
jne 0x407a3d
pop edi
mov eax, 1
pop esi
add esp, 0x140
ret
pop edi
xor eax, eax
pop esi
add esp, 0x140
ret

Function at 0x407a50
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
lea eax, [esp]
mov dword [esp], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov ecx, dword [esp + 4]
xor eax, eax
cmp ecx, 5
sete al
add esp, 0x114
ret

Function at 0x407ab0
Capabilities:
Get disk size

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x224
push esi
xor esi, esi
cmp edx, esi
je 0x407b3e
push edi
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x22]
mov word [esp + 0x20], si
push esi
rep stosd dword es:[edi], eax
push esi
lea eax, [esp + 0x28]
push esi
push eax
push edx
call dword [sym.imp.MSVCRT.dll__wsplitpath]
add esp, 0x14
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
lea eax, [esp + 8]
push ecx
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
pop edi
je 0x407b3e
mov eax, dword [esp + 0x230]
mov edx, dword [esp + 4]
mov ecx, dword [esp + 8]
pop esi
mov dword [eax], edx
mov dword [eax + 4], ecx
mov eax, 1
add esp, 0x224
ret
xor eax, eax
pop esi
add esp, 0x224
ret