joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4023a0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor ecx, ecx
mov eax, 0x404420
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [eax], edx
je 0x4023c7
add eax, 8
inc ecx
cmp eax, 0x4044b0
jb 0x4023b8
cmp dword [ecx*8 + 0x404420], edx
lea ebx, [ecx*8]
jne 0x40258b
cmp dword [0x4040f8], 1
je 0x402547
cmp dword [0x4040f8], 0
jne 0x4023fe
cmp dword [0x4040fc], 1
je 0x402547
cmp edx, 0xfc
je 0x40258b
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x40243b
mov esi, 0x4032e4
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x40247f
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x4032e0
push ebp
call fcn.00402ea0
add esp, 0xc
mov esi, 0x4032c4
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4032c0
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x404424]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push 0x403298
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.00402e00
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
cmp dword [0x405240], 0
je 0x40255d
mov eax, dword [0x405240]
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x402567
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x404424]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x4014b0
Capabilities:
Delete service
Query service status
Stop service
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x443e60
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x455638]
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
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
push eax
lea eax, [ebp - 0x68]
push eax
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
call fcn.00402d40
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x68]
cmp eax, ebx
je 0x40161d
mov ecx, dword [str.APNMCP]
push 0xf003f
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push esi
push eax
lea edx, [ebp - 0x58]
push edx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
call fcn.00402d40
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x58]
cmp edi, ebx
je 0x4015ea
lea eax, [ebp - 0x2c]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
cmp eax, ebx
jne 0x4015e3
lea ecx, [ebp - 0x6c]
push ecx
push 0x24
lea edx, [ebp - 0x50]
push edx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
cmp eax, ebx
je 0x4015e3
mov eax, dword [ebp - 0x34]
cmp eax, ebx
je 0x4015e3
push eax
push ebx
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
push eax
lea edx, [ebp - 0x60]
push edx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
call fcn.00402e00
mov esi, dword [ebp - 0x60]
cmp esi, ebx
je 0x4015b3
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [ebp - 0x5c]
cmp esi, ebx
je 0x4015e3
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4015e3
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4015e3
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov byte [ebp - 4], bl
mov esi, dword [ebp - 0x54]
cmp esi, ebx
je 0x40161d
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x40161d
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x40161d
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x64]
cmp esi, ebx
je 0x401654
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x401654
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x401654
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
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.0041d92c
mov esp, ebp
pop ebp
ret
Function at 0x40a660
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov ecx, str.regsvr32.exe__u__s_WEB.DE_MailCheck.dll
call fcn.0040a360
mov esi, eax
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
mov edi, 1
cmp eax, edi
jne 0x40a6a3
cmp dword [ebp - 4], edi
jne 0x40a6a3
test esi, esi
js 0x40a709
mov ecx, str.regsvr32.exe__u__s_WEB.DE_MailCheck.dll
call fcn.0040a4e0
mov esi, eax
test esi, esi
js 0x40a709
lea ecx, [ebp - 4]
push ecx
push 2
xor esi, esi
push esi
push str.SOFTWARE11_Mail__Media_GmbHToolbar_IE8
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a6e8
mov esi, dword [ebp - 4]
test eax, eax
jne 0x40a6e8
push 4
lea edx, [ebp - 8]
push edx
push 4
push eax
push 0x44b7a0
push esi
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jle 0x40a6f4
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test esi, esi
je 0x40a701
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40a720
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov ecx, str.regsvr32.exe__s_WEB.DE_MailCheck.dll
call fcn.0040a360
mov esi, eax
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp eax, 1
jne 0x40a75c
cmp dword [ebp - 4], eax
jne 0x40a75c
test esi, esi
js 0x40a7b7
mov ecx, str.regsvr32.exe__s_WEB.DE_MailCheck.dll
call fcn.0040a4e0
mov esi, eax
test esi, esi
js 0x40a7b7
lea ecx, [ebp - 4]
push ecx
push 2
xor esi, esi
push esi
push str.SOFTWARE11_Mail__Media_GmbHToolbar_IE8
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a793
mov esi, dword [ebp - 4]
test eax, eax
jne 0x40a793
push 0x44b7a0
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push edi
test eax, eax
jle 0x40a7a2
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test esi, esi
je 0x40a7af
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40b0f0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x445bcd
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x455638]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x34]
xor ebx, ebx
push ecx
mov dword [ebp - 4], ebx
push eax
mov dword [ebp - 0x34], ebx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
cmp esi, ebx
je 0x40b225
cmp dword [ebp - 0x34], 1
jne 0x40b225
call fcn.004177e0
cmp al, bl
je 0x40b1ff
lea edx, [ebp - 0x35]
push edx
call fcn.0040be10
mov byte [ebp - 4], 1
mov eax, dword [esi]
push str.8635E4E195894BCFA64D8E42420D6B3B
push eax
call fcn.0041dd60
add esp, 8
test eax, eax
jne 0x40b18a
call fcn.0040a660
mov esi, eax
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
jmp 0x40b22a
mov ecx, dword [esi]
push str.06DDA8B5E5BF4E36A9BCD7477713777E
push ecx
call fcn.0041dd60
add esp, 8
test eax, eax
jne 0x40b1af
call fcn.0040a720
mov esi, eax
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
jmp 0x40b22a
mov edx, dword [esi]
push str.3D43E0D2368B4D94BCDCFCFE80BDEACA
push edx
call fcn.0041dd60
add esp, 8
test eax, eax
jne 0x40b1f0
lea eax, [ebp - 0x30]
push eax
call fcn.0040aee0
add esp, 4
push eax
mov byte [ebp - 4], 2
call fcn.00401f80
add esp, 4
lea ecx, [ebp - 0x30]
mov esi, eax
call fcn.0040aea0
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
jmp 0x40b22a
mov esi, 0xa0c80004
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
jmp 0x40b22a
mov eax, 0xa0c80003
jmp 0x40b22a
mov eax, 0xa0c80004
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041d92c
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40b510
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x455638]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push edi
lea eax, [ebp - 0xa0]
push eax
mov byte [esi], bl
mov dword [esi + 4], 1
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0x98], ebx
call fcn.00415a40
mov edi, dword [ebp - 0xa0]
test eax, eax
jne 0x40b62f
lea ecx, [ebp - 0x8c]
push ecx
lea edx, [ebp - 0x88]
push edx
lea eax, [ebp - 0x94]
push eax
push ebx
push str.WarnOnClose
push edi
mov dword [ebp - 0x8c], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40b609
mov eax, dword [ebp - 0x94]
dec eax
je 0x40b5a5
sub eax, 3
jne 0x40b609
mov ecx, dword [ebp - 0x88]
mov dword [esi + 4], ecx
jmp 0x40b609
mov eax, dword [ebp - 0x8c]
cmp eax, 0x80
jae 0x40b609
shr eax, 1
xor edx, edx
mov word [ebp + eax*2 - 0x88], dx
lea eax, [ebp - 0x88]
push str.false
push eax
call fcn.0041dd60
add esp, 8
test eax, eax
je 0x40b606
lea ecx, [ebp - 0x88]
push 0x44bc9c
push ecx
call fcn.0041dd60
add esp, 8
test eax, eax
je 0x40b606
lea edx, [ebp - 0x88]
push 0x44bca4
push edx
call fcn.0041dd60
add esp, 8
test eax, eax
jne 0x40b609
mov dword [esi + 4], ebx
cmp dword [esi + 4], ebx
je 0x40b62f
push 4
lea eax, [ebp - 0x90]
push eax
push 4
push ebx
push str.WarnOnClose
push edi
mov byte [esi], 1
mov dword [ebp - 0x90], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp edi, ebx
je 0x40b63a
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, esi
pop ebx
call fcn.0041d92c
mov esp, ebp
pop ebp
ret

Function at 0x40b810
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push str.iexplore.exe
push str.iexplore.exe
call fcn.0041dd60
add esp, 8
test eax, eax
sete al
xor ebx, ebx
mov dword [ebp - 0x18], str.iexplore.exe
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov byte [ebp - 4], al
mov byte [ebp - 3], 1
call fcn.00418370
mov edi, eax
mov esi, edx
add edi, 0x989680
adc esi, ebx
mov ebx, dword [sym.imp.USER32.dll_EnumWindows]
lea eax, [ebp - 0x18]
push eax
push 0x40b650
mov byte [ebp - 3], 1
call ebx
mov ecx, edi
or ecx, esi
je 0x40b89b
call fcn.00418370
cmp esi, edx
jb 0x40b89b
ja 0x40b884
cmp edi, eax
jbe 0x40b89b
cmp byte [ebp - 3], 0
jne 0x40b89b
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [ebp - 3], 0
je 0x40b860
mov esi, dword [ebp - 8]
mov bl, byte [ebp - 3]
test esi, esi
je 0x40b8ce
lea edx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x40b8ce
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x40b8ce
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b8e0
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444a08
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
mov eax, dword [0x455638]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov byte [ebp - 0xd], bl
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
push str.iexplore.exe
lea esi, [ebp - 0x24]
mov dword [ebp - 4], ebx
call fcn.0040c310
mov esi, dword [ebp - 0x24]
add esp, 4
test al, al
je 0x40b999
cmp esi, dword [ebp - 0x20]
je 0x40b995
lea eax, [ebp - 0x24]
push eax
mov ecx, 0x1388
call fcn.00416320
add esp, 4
test al, al
jne 0x40b96e
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x14], esp
push ecx
lea ecx, [ebp - 0x24]
call fcn.00402100
push 0x1388
call fcn.004165e0
add esp, 0x14
mov byte [ebp - 0xd], bl
cmp al, bl
je 0x40b972
mov byte [ebp - 0xd], 1
push 0x44bca8
push ebx
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, dword [sym.imp.USER32.dll_UpdateWindow]
push eax
call esi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call esi
mov esi, dword [ebp - 0x24]
jmp 0x40b999
mov byte [ebp - 0xd], 1
mov dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x40b9be
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x20]
push edx
mov eax, esi
call fcn.00402ec0
add esp, 4
push esi
call fcn.0041d921
add esp, 4
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40bfd0
Capabilities:
Create process on windows
Create process suspended
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x68
mov eax, dword [ebp + 0x10]
push ebx
push esi
push 0x40
lea ecx, [esp + 0x30]
push 0
push ecx
mov dword [eax], 0xffffffff
mov dword [esp + 0x34], 0x44
call fcn.0041eac0
add esp, 0xc
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov eax, edi
mov dword [esp + 0x18], 0
lea edx, [eax + 2]
jmp 0x40c020
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c020
sub eax, edx
sar eax, 1
lea esi, [eax + 1]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00419020
add esp, 4
mov byte [esp + 0xc], 0
mov ecx, dword [esp + 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], eax
call fcn.0040e1d0
push edi
push esi
mov esi, dword [esp + 0x18]
push esi
call fcn.0041e8a1
mov ecx, dword [ebp + 8]
add esp, 0xc
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x2c]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, 1
sete bl
test bl, bl
je 0x40c0fb
mov edx, dword [ebp + 0xc]
mov eax, dword [esp + 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40c0ca
cmp eax, 0x102
jne 0x40c0e7
mov ecx, dword [esp + 0x18]
push 0
push ecx
xor bl, bl
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x40c0e7
mov eax, dword [esp + 0x18]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40c0e7
mov ecx, dword [esp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
mov eax, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x1c]
push ecx
call esi
mov esi, dword [esp + 0x14]
test esi, esi
je 0x40c12d
lea edx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x40c12d
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x40c12d
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c310
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4449d6
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x455638]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 4]
mov dword [ebp - 0x24c], eax
mov eax, dword [esi]
cmp eax, ecx
je 0x40c375
mov edx, dword [ebp - 0x24c]
push edx
push ecx
call fcn.0040e800
mov ebx, dword [esi + 4]
mov edi, eax
mov eax, dword [ebp - 0x24c]
push eax
mov eax, edi
call fcn.00402ec0
add esp, 0xc
mov dword [esi + 4], edi
xor ebx, ebx
cmp dword [ebp - 0x24c], ebx
je 0x40c3f9
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
cmp eax, 0xffffffff
je 0x40c3f9
mov ecx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
push eax
lea edx, [ebp - 0x254]
push edx
mov dword [ebp - 0x254], ebx
mov dword [ebp - 0x250], ebx
call fcn.00402e00
push 0x228
lea eax, [ebp - 0x240]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0041eac0
mov edx, dword [ebp - 0x254]
add esp, 0xc
lea ecx, [ebp - 0x244]
push ecx
push edx
mov dword [ebp - 0x244], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x40c400
lea eax, [ebp - 0x254]
mov dword [ebp - 4], 0xffffffff
call fcn.004021c0
xor al, al
jmp 0x40c4df
mov byte [ebp - 0x245], 1
mov eax, dword [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x220]
push ecx
call fcn.0041dd60
add esp, 8
test eax, eax
jne 0x40c4ab
mov edx, dword [ebp - 0x23c]
push edx
push ebx
push 0x100401
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
je 0x40c4a5
mov ecx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
push eax
lea edx, [ebp - 0x25c]
push edx
mov dword [ebp - 0x25c], ebx
mov dword [ebp - 0x258], ebx
call fcn.00402e00
lea eax, [ebp - 0x25c]
mov edi, esi
mov byte [ebp - 4], 1
call fcn.0040d190
mov byte [ebp - 4], bl
mov edi, dword [ebp - 0x258]
cmp edi, ebx
je 0x40c4ab
lea eax, [edi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x40c4ab
mov edx, dword [edi]
mov eax, dword [edx]
mov ecx, edi
call eax
lea ecx, [edi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x40c4ab
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov ecx, edi
call edx
jmp 0x40c4ab
mov byte [ebp - 0x245], bl
mov ecx, dword [ebp - 0x254]
lea eax, [ebp - 0x244]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x40c407
lea eax, [ebp - 0x254]
mov dword [ebp - 4], 0xffffffff
call fcn.004021c0
mov al, byte [ebp - 0x245]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041d92c
mov esp, ebp
pop ebp
ret
Function at 0x40c500
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x445130
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x455638]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp dword [eax + 0x14], 8
mov dword [eax + 0x10], ebx
jb 0x40c53e
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
mov byte [esp + 0x13], bl
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
lea edx, [esp + 0x14]
push edx
or esi, 1
push esi
push ebx
push eax
mov dword [esp + 0x58], ebx
push ecx
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x40c648
mov edi, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
push ebx
lea eax, [esp + 0x24]
push eax
and esi, 0x300
push ebx
mov dword [esp + 0x34], esi
mov esi, dword [ebp + 0x14]
push esi
push edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x40c63d
mov eax, dword [esp + 0x1c]
cmp eax, 1
je 0x40c5be
cmp eax, 2
jne 0x40c63d
mov eax, dword [esp + 0x18]
shr eax, 1
mov dword [esp + 0x18], eax
mov byte [esp + 0x13], 1
cmp eax, 1
jbe 0x40c63d
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x4c], 1
call fcn.0040d320
push esi
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x24]
push ecx
lea edi, [esp + 0x20]
call fcn.00415880
test eax, eax
jne 0x40c62c
mov eax, dword [esp + 0x18]
cmp eax, 1
jbe 0x40c62c
push eax
lea ecx, [esp + 0x30]
call fcn.0040d320
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
add eax, 0xfffffffe
push eax
mov eax, dword [ebp + 8]
push esi
call fcn.0040dd90
cmp esi, ebx
je 0x40c639
push esi
call fcn.0041d921
add esp, 4
mov edi, dword [esp + 0x14]
cmp edi, ebx
je 0x40c648
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40c660
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
lea eax, [ebp - 4]
push eax
push 2
xor esi, esi
push esi
push str.SoftwareMicrosoftInternet_ExplorerMain
push SysReAllocString
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40c6b4
mov esi, dword [ebp - 4]
test eax, eax
jne 0x40c6b4
push str.about:blank
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
push str.about:blank
push 1
push 0
push str.Start_Page
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
test esi, esi
je 0x40c6c2
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret