joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4789b0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x61f6dc]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x4789c3
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x478a04
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x61f784]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x478a36
mov bl, byte [esp + ecx + 0x4c]
jmp 0x478a3a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x478a2b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x478a58
mov bl, byte [esp + ecx + 0x4c]
jmp 0x478a5c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x478a4d
xor ecx, ecx
mov eax, 0x61f6ec
xor ebx, ebx
mov bl, byte [ecx + 0x61f794]
cmp byte [esp + ebx + 0x14], 0
je 0x478a87
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x61f7ac]
cmp byte [esp + ebx + 0x14], 0
je 0x478a9e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x478a6e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x4789f7
lea edx, [esp + 0x84]
push edx
call fcn.00478ae0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x47d740
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x47d7a6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x47d7a6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x47d787
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x47db30
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x47db68
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x47e7f0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x47e839
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x47ecb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a13d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0047e860
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0047e8e0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0047e8e0
lea ecx, [esi + 0xc]
call fcn.0049235a
lea ecx, [esi + 0x10]
call fcn.0049235a
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0047fe70
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0047fe70
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0047fe70
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004923cf
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004923cf
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x49479d
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4947d5
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0049282a
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00492802
jmp 0x4947e1
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x495e8e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x495ed0
call fcn.0049bc0d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x495ed0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x495ec7
xor eax, eax
jmp 0x495ed8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00495ede
pop edi
pop esi
pop ebx
ret 4

Function at 0x49c13d
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 0x49c16b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49c189
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049c0a3
jmp 0x49c189
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49c189
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0049c0a3
test edi, edi
mov eax, edi
jne 0x49c173
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x416960
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x417040]
xor eax, ebp
mov dword [ebp - 0xc], eax
push edi
push 0x104
lea eax, [ebp - 0x118]
push eax
call dword [fcn.00413054]
lea ecx, [ebp - 0x118]
add ecx, 0xffffffff
mov dword [ebp - 0x11c], ecx
mov edx, dword [ebp - 0x11c]
mov al, byte [edx + 1]
mov byte [ebp - 0x11d], al
add dword [ebp - 0x11c], 1
cmp byte [ebp - 0x11d], 0
jne 0x416995
mov edi, dword [ebp - 0x11c]
mov ecx, dword [0x415100]
mov dword [edi], ecx
mov edx, dword [0x415104]
mov dword [edi + 4], edx
lea eax, [ebp - 0x118]
add eax, 0xffffffff
mov dword [ebp - 0x124], eax
mov ecx, dword [ebp - 0x124]
mov dl, byte [ecx + 1]
mov byte [ebp - 0x125], dl
add dword [ebp - 0x124], 1
cmp byte [ebp - 0x125], 0
jne 0x4169da
mov edi, dword [ebp - 0x124]
mov eax, dword [0x415108]
mov dword [edi], eax
mov ecx, dword [0x41510c]
mov dword [edi + 4], ecx
mov edx, dword [0x415110]
mov dword [edi + 8], edx
push 0x415114
lea eax, [ebp - 0x118]
push eax
call fcn.0041c49c
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x416a37
jmp 0x416a60
mov dword [ebp - 8], 1
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.0041c95a
add esp, 0x10
mov ecx, dword [ebp - 4]
push ecx
call fcn.0041ce0d
add esp, 4
pop edi
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0041bdf8
mov esp, ebp
pop ebp
ret

Function at 0x416a70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x417040]
xor eax, ebp
mov dword [ebp - 0xc], eax
push edi
push 0x104
lea eax, [ebp - 0x118]
push eax
call dword [fcn.00413054]
lea ecx, [ebp - 0x118]
add ecx, 0xffffffff
mov dword [ebp - 0x11c], ecx
mov edx, dword [ebp - 0x11c]
mov al, byte [edx + 1]
mov byte [ebp - 0x11d], al
add dword [ebp - 0x11c], 1
cmp byte [ebp - 0x11d], 0
jne 0x416aa5
mov edi, dword [ebp - 0x11c]
mov ecx, dword [0x415118]
mov dword [edi], ecx
mov edx, dword [0x41511c]
mov dword [edi + 4], edx
lea eax, [ebp - 0x118]
add eax, 0xffffffff
mov dword [ebp - 0x124], eax
mov ecx, dword [ebp - 0x124]
mov dl, byte [ecx + 1]
mov byte [ebp - 0x125], dl
add dword [ebp - 0x124], 1
cmp byte [ebp - 0x125], 0
jne 0x416aea
mov edi, dword [ebp - 0x124]
mov eax, dword [0x415120]
mov dword [edi], eax
mov ecx, dword [0x415124]
mov dword [edi + 4], ecx
mov edx, dword [0x415128]
mov dword [edi + 8], edx
push 0x41512c
lea eax, [ebp - 0x118]
push eax
call fcn.0041c49c
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x416b47
jmp 0x416b70
mov dword [ebp - 8], 1
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.0041c753
add esp, 0x10
mov ecx, dword [ebp - 4]
push ecx
call fcn.0041ce0d
add esp, 4
pop edi
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0041bdf8
mov esp, ebp
pop ebp
ret
Function at 0x1001fb1
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [entry0]
Function at 0x1002918
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x100400c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x21c], eax
xor eax, eax
cmp dword [0x1004010], eax
push esi
push edi
mov dword [ebp - 0x218], eax
je 0x1002972
push 0x1004020
mov dword [0x1004010], eax
mov dword [0x1004020], 0x94
call dword [0x1001010]
test eax, eax
jne 0x1002972
mov dword [0x1004030], 1
cmp dword [0x1004030], 2
jne 0x1002a87
mov edi, dword [0x100107c]
mov esi, 0x104
push esi
lea eax, [ebp - 0x110]
push eax
push 0x1001ef0
call edi
test eax, eax
je 0x10029bb
push 0x1001ee0
lea eax, [ebp - 0x110]
push eax
push ebx
push esi
lea eax, [ebp - 0x214]
push eax
call fcn.0100286b
test eax, eax
jne 0x1002a26
cmp dword [0x1004024], 5
jb 0x10029f5
push esi
lea eax, [ebp - 0x110]
push eax
push 0x1001e94
call edi
test eax, eax
je 0x10029f5
push 0x1001ed0
lea eax, [ebp - 0x110]
push eax
push ebx
push esi
lea eax, [ebp - 0x214]
push eax
call fcn.0100286b
test eax, eax
jne 0x1002a26
push esi
lea eax, [ebp - 0x110]
push eax
push 0x1001ec4
call edi
test eax, eax
je 0x1002a5b
push 0x1001eb4
lea eax, [ebp - 0x110]
push eax
push ebx
push esi
lea eax, [ebp - 0x214]
push eax
call fcn.0100286b
test eax, eax
je 0x1002a5b
mov dword [ebp - 0x218], 1
lea ebx, [ebp - 0x214]
push dword [ebp + 0x10]
push ebx
push dword [ebp - 0x21c]
call dword [fcn.01001070]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x218]
pop edi
pop esi
pop ebx
call fcn.01002753
leave
ret 0xc
push 5
lea eax, [ebp - 0xc]
push eax
push 0x1001e88
call edi
test eax, eax
je 0x1002a87
push 0x1001ea4
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
lea eax, [ebp - 0x214]
push eax
call fcn.0100286b
test eax, eax
jne 0x1002a26
cmp dword [ebp - 0x21c], ebx
je 0x1002a46
jmp 0x1002a36
Function at 0x401bfc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401c11
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x401c23
xor eax, eax
jmp 0x401c55
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x401c47
cmp esi, eax
jae 0x401c1f
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401c39
cmp esi, eax
jae 0x401c1f
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret
Function at 0x40b44b
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x43c770
call fcn.0041aa98
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
mov eax, dword [esi + 0x28]
mov ecx, dword [eax]
cmp ecx, eax
mov dword [ebp - 4], 4
mov dword [ebp - 0x10], ecx
je 0x40b493
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x40b483
mov eax, dword [ecx]
push 1
call dword [eax + 4]
lea ecx, [ebp - 0x10]
call fcn.0040a07e
mov eax, dword [esi + 0x28]
cmp dword [ebp - 0x10], eax
jne 0x40b472
lea ebx, [esi + 0x24]
mov ecx, ebx
call fcn.0040a34e
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
jmp 0x40b4c2
mov ecx, dword [ecx + 0x10]
test ecx, ecx
je 0x40b4b4
mov eax, dword [ecx]
push 1
call dword [eax]
lea ecx, [ebp - 0x10]
call fcn.00409742
mov eax, dword [esi + 0x1c]
mov ecx, dword [ebp - 0x10]
cmp ecx, eax
jne 0x40b4a7
lea edi, [esi + 0x18]
mov ecx, edi
call fcn.0040a328
and dword [0x45319c], 0
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 3
call fcn.0040b329
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.0040b2fe
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.0040b1f8
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 0
call fcn.0040b0f2
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.0040afe0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40ba6e
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x43c7c2
call fcn.0041aa98
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.0040a40d
and dword [ebp - 4], 0
lea ecx, [esi + 0xc]
call fcn.0040a40d
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call fcn.0040a40d
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 2
call fcn.0040a3e8
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 3
call fcn.0040a40d
fldz
fstp dword [esi + 0x40]
mov ecx, esi
fldz
mov byte [ebp - 4], 4
fstp dword [esi + 0x44]
fld1
fstp dword [esi + 0x48]
call fcn.0040b826
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x40bbe4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, word [ebp + 0x10]
push esi
push dword [ebp + 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40bc7f
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x40bc7e
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x40bc26
xor eax, eax
jmp 0x40bc7d
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x40bc22
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40bc22
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40bc22
push ebx
push dword [ebp - 4]
push eax
call fcn.00419f50
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
and dword [ebp + 0x10], 0
lea eax, [ebp + 0x10]
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov eax, dword [ebp + 0x10]
pop edi
pop ebx
pop esi
leave
ret

Function at 0x40bc82
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 0x10]
push edi
push dword [ebp + 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x40bcf7
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
jne 0x40bcb2
xor eax, eax
jmp 0x40bcf6
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40bcae
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x40bcf5
mov eax, dword [ebp + 0x18]
push esi
mov dword [eax], esi
call fcn.0043192c
mov ecx, dword [ebp + 0x14]
push esi
push ebx
push eax
mov dword [ecx], eax
call fcn.00419f50
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
inc eax
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40bcfa
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [str.D__4]
push esi
xor esi, esi
cmp dword [ebp + 8], esi
mov dword [ebp - 4], eax
jne 0x40bd17
xor eax, eax
jmp 0x40bd7c
push edi
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x40bd2b
xor eax, eax
jmp 0x40bd7b
lea eax, [ebp - 0x230]
push eax
push edi
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_Process32FirstW
jmp 0x40bd66
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call fcn.0041b3c2
test eax, eax
pop ecx
pop ecx
je 0x40bd6c
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40bd44
jmp 0x40bd72
mov esi, dword [ebp - 0x228]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
mov ecx, dword [ebp - 4]
pop esi
call fcn.0041ab51
leave
ret
Function at 0x40bd87
Capabilities:
Terminate process

Disassembly:
push dword [esp + 4]
call fcn.0040bcfa
test eax, eax
pop ecx
jne 0x40bd97
inc eax
ret
push eax
push 1
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
jne 0x40bdaa
ret
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
neg eax
sbb eax, eax
neg eax
ret

Function at 0x40bdba
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [str.D__4]
push esi
push 0x114
mov dword [ebp + 0x94], eax
lea eax, [ebp - 0x80]
push 0
xor esi, esi
push eax
inc esi
call fcn.0041aac0
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40be16
cmp dword [ebp - 0x70], 2
jne 0x40be14
cmp dword [ebp - 0x7c], 4
jbe 0x40be14
cmp dword [ebp - 0x7c], 6
sbb esi, esi
inc esi
jmp 0x40be16
xor esi, esi
mov ecx, dword [ebp + 0x94]
mov eax, esi
pop esi
call fcn.0041ab51
add ebp, 0x98
leave
ret

Function at 0x40c4c4
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp + 0xc], 0
mov esi, dword [ebp + 8]
je 0x40c508
mov eax, dword [esi - 0xc]
shl eax, 1
push eax
push esi
push 1
push 0
push 0x440a94
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x40c516
push 0x440a94
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esi - 0x10]
call fcn.004010aa
pop esi
leave
ret

Function at 0x40c786
Capabilities:
Create directory

Disassembly:
mov eax, 0x43c814
call fcn.0041aa98
push ecx
push ebx
push esi
push edi
mov esi, 0x440f18
push esi
xor ebx, ebx
push 0x44151c
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.0040c52a
push ebx
jmp 0x40c7e9
lea eax, [edi + 1]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 8]
call fcn.0040c695
push ebx
push dword [ebp - 0x10]
call fcn.0041b4cd
cmp eax, 0xffffffff
pop ecx
pop ecx
jne 0x40c7da
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004010aa
add edi, 2
push edi
lea ecx, [ebp + 8]
push esi
call fcn.0040c42b
mov edi, eax
cmp edi, 0xffffffff
jg 0x40c7af
mov esi, dword [ebp + 8]
push ebx
push esi
call fcn.0041b4cd
cmp eax, 0xffffffff
pop ecx
pop ecx
jne 0x40c812
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [esi - 0x10]
call fcn.004010aa
mov ecx, dword [ebp - 0xc]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40c96a
Capabilities:
Create shortcut via ishelllink

Disassembly:
mov eax, 0x43c879
call fcn.0041aa98
sub esp, 0x224
mov eax, dword [str.D__4]
push ebx
push esi
push edi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x21c]
push eax
push 0x4471f8
push 1
xor esi, esi
push esi
push 0x447208
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, esi
jge 0x40c9ac
xor eax, eax
jmp 0x40cb30
mov eax, dword [ebp - 0x21c]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0x3c]
call fcn.00431677
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x22c], eax
mov dword [ebp - 4], esi
call fcn.00431677
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 1
call fcn.00431677
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x22c]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x230], esp
push dword [ebp + 8]
mov byte [ebp - 4], 2
call fcn.0040630c
call fcn.0040c82c
mov eax, dword [ebp - 0x21c]
mov ebx, dword [ebp - 0x22c]
mov ecx, dword [eax]
add esp, 0x10
push ebx
push eax
call dword [ecx + 0x24]
cmp dword [ebp + 0x10], 0x43ee58
je 0x40ca6d
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax]
push esi
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax]
lea edx, [ebp - 0x228]
push edx
push 0x447218
push eax
call dword [ecx]
test eax, eax
jge 0x40ca96
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40cb0a
push dword [ebp + 0x14]
lea eax, [ebp - 0x218]
push dword [ebp + 0xc]
push 0x441524
push eax
call fcn.0041b513
add esp, 0x10
lea eax, [ebp - 0x218]
push eax
mov ecx, 0x4531f4
call fcn.004300f7
mov eax, dword [ebp - 0x228]
mov ecx, dword [eax]
push esi
lea edx, [ebp - 0x218]
push edx
push eax
call dword [ecx + 0x18]
mov edi, eax
mov eax, dword [ebp - 0x228]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp edi, esi
jl 0x40cb0a
push esi
push dword [ebp + 0x14]
push 0x1005
push 0x7fffffff
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x220]
add ecx, 0xfffffff0
call fcn.004010aa
mov ecx, dword [ebp - 0x224]
add ecx, 0xfffffff0
call fcn.004010aa
lea ecx, [ebx - 0x10]
call fcn.004010aa
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.0041ab51
pop edi
pop esi
pop ebx
leave
ret