joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c0a9c
Capabilities:
Enumerate processes
Terminate process
Terminate process by name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004046a0
lea esi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x4c0c1b
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x4c0beb
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov ebx, eax
mov dword [esi], 0x128
push esi
push ebx
call sub.kernel32.dll_Process32First
jmp 0x4c0bd9
lea eax, [ebp - 0x138]
lea edx, [esi + 0x24]
mov ecx, 0x104
call fcn.00404460
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.00409018
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.004c01c8
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.004c01c8
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.004045fc
je 0x4c0bbd
lea eax, [ebp - 0x144]
lea edx, [esi + 0x24]
mov ecx, 0x104
call fcn.00404460
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.004c01c8
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.004c01c8
mov edx, dword [ebp - 0x148]
pop eax
call fcn.004045fc
jne 0x4c0bd2
push 0
mov eax, dword [esi + 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
push esi
push ebx
call sub.kernel32.dll_Process32Next
test eax, eax
jne 0x4c0b1e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c0bf5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c0c22
lea eax, [ebp - 0x148]
mov edx, 7
call fcn.00404214
lea eax, [ebp - 4]
call fcn.004041f0
ret
Function at 0x4c0c2c
Capabilities:
Create process on windows
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.004046a0
mov eax, dword [ebp - 8]
call fcn.004046a0
xor eax, eax
push ebp
push 0x4c0e1b
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x4c0df6
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov ebx, eax
mov dword [ebp - 0x130], 0x128
lea eax, [ebp - 0x130]
push eax
push ebx
call sub.kernel32.dll_Process32First
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x4c0dde
cmp esi, dword [ebp - 0x128]
jne 0x4c0dcb
call fcn.0040ac04
add esp, 0xfffffff8
fstp qword [esp]
wait
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004b33cc
cmp eax, 0x1f4
jge 0x4c0de6
cmp eax, 0xa
jge 0x4c0cd9
mov edx, 0xa
sub edx, eax
push edx
call sub.kernel32.dll_Sleep
mov eax, dword [ebp - 8]
mov edx, 0x4c0e34
call fcn.004045fc
jne 0x4c0cf2
mov eax, dword [ebp - 8]
call fcn.004c0a9c
jmp 0x4c0d0a
push 0
mov eax, dword [ebp - 0x128]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
push 0x1f4
call sub.kernel32.dll_Sleep
mov eax, dword [ebp - 8]
mov edx, 0x4c0e4c
call fcn.004045fc
je 0x4c0d32
mov eax, dword [ebp - 8]
mov edx, 0x4c0e64
call fcn.004045fc
jne 0x4c0d5d
push 1
push 0
mov eax, dword [0x4d3a38]
mov eax, dword [eax]
call fcn.004046b0
push eax
mov eax, dword [ebp - 4]
call fcn.004046b0
push eax
push 0x4c0e78
push 0
call sub.shell32.dll_ShellExecuteA
jmp 0x4c0de6
mov eax, dword [ebp - 8]
mov edx, 0x4c0e88
call fcn.004045fc
je 0x4c0d7b
mov eax, dword [ebp - 8]
mov edx, 0x4c0ea4
call fcn.004045fc
jne 0x4c0da3
push 1
push 0
mov eax, dword [0x4d3a58]
mov eax, dword [eax]
call fcn.004046b0
push eax
mov eax, dword [ebp - 4]
call fcn.004046b0
push eax
push 0x4c0e78
push 0
call sub.shell32.dll_ShellExecuteA
jmp 0x4c0de6
push 1
push 0
mov eax, dword [0x4d3a14]
mov eax, dword [eax]
call fcn.004046b0
push eax
mov eax, dword [ebp - 4]
call fcn.004046b0
push eax
push 0x4c0e78
push 0
call sub.shell32.dll_ShellExecuteA
jmp 0x4c0de6
lea eax, [ebp - 0x130]
push eax
push ebx
call sub.kernel32.dll_Process32Next
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4c0c99
push ebx
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c0e00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c0e22
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404214
ret
Function at 0x4c6b74
Capabilities:
Link many functions at runtime

Disassembly:
mov byte [0x4d3848], 0
mov eax, dword [0x4d3fec]
cmp dword [eax], 2
jne 0x4c6d4d
mov eax, dword [0x4d3b1c]
cmp dword [eax], 5
jl 0x4c6d4d
call fcn.004c3d10
test al, al
jne 0x4c6ba5
call fcn.004c3d1c
call fcn.004c3d08
mov dword [0x4d3850], eax
push 0x4c6d50
mov eax, dword [0x4d3850]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d3814], eax
cmp dword [0x4d3814], 0
jne 0x4c6c00
mov edx, 0x8000
mov eax, 0x4c6d64
call fcn.0040e6ec
mov dword [0x4d384c], eax
mov eax, dword [0x4d384c]
mov dword [0x4d3850], eax
push 0x4c6d50
mov eax, dword [0x4d3850]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d3814], eax
cmp dword [0x4d3814], 0
je 0x4c6d48
push 0x4c6d70
mov eax, dword [0x4d3850]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d3818], eax
cmp dword [0x4d3818], 0
je 0x4c6d48
push 0x4c6d7c
mov eax, dword [0x4d3850]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d381c], eax
cmp dword [0x4d381c], 0
je 0x4c6d48
mov byte [0x4d3848], 1
push 0x4c6d8c
mov eax, dword [0x4d3850]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d3820], eax
push 0x4c6d98
mov eax, dword [0x4d3850]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d3824], eax
push 0x4c6da4
mov eax, dword [0x4d3850]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d3828], eax
push 0x4c6db4
mov eax, dword [0x4d3850]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d382c], eax
push 0x4c6dc4
mov eax, dword [0x4d3850]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d3830], eax
mov edx, 0x8000
mov eax, 0x4c6ddc
call fcn.0040e6ec
mov dword [0x4d3854], eax
cmp dword [0x4d3854], 0
je 0x4c6d4d
push 0x4c6dec
mov eax, dword [0x4d3854]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d3834], eax
push 0x4c6e08
mov eax, dword [0x4d3854]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d3838], eax
push 0x4c6e28
mov eax, dword [0x4d3854]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d383c], eax
push 0x4c6e44
mov eax, dword [0x4d3854]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d3840], eax
push 0x4c6e5c
mov eax, dword [0x4d3854]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d3844], eax
ret
call fcn.004c6af4
ret
Function at 0x4c9480
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4c95a8
push dword fs:[eax]
mov dword fs:[eax], esp
mov ax, word [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.004c936c
mov eax, dword [esi]
call fcn.004052d4
add eax, 0x28
push eax
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x4c28b4]
call fcn.00405490
add esp, 4
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x1c]
mov ecx, 0x1c
call fcn.004029b8
mov ebx, 0x1c
mov eax, dword [ebp - 8]
lea edx, [eax + ebx]
lea eax, [ebp - 0x2c]
mov ecx, 0x1c
call fcn.004029b8
add ebx, 0x1c
mov eax, dword [esi]
call fcn.004052d4
mov dword [ebp - 0xc], eax
mov eax, dword [0x4d3ef0]
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x30]
lea edx, [ebp - 8]
mov ecx, ebx
call fcn.004c2b48
add ebx, 4
mov eax, dword [ebp - 8]
add eax, ebx
xor ecx, ecx
mov edx, 3
call fcn.00402dd0
add ebx, 3
mov eax, dword [ebp - 8]
mov byte [eax + ebx], 0x3a
inc ebx
mov eax, dword [esi]
mov byte [eax + 2], 0
mov eax, dword [esi]
mov byte [eax + 3], 0
push ebx
mov eax, dword [esi]
call fcn.004052d4
push eax
lea ecx, [ebp - 8]
mov eax, dword [esi]
xor edx, edx
call fcn.004c2a78
mov edx, dword [ebp - 8]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x94]
mov ebx, eax
mov eax, ebx
call fcn.004c2a74
mov edx, esi
mov ecx, dword [ebp + 0x10]
call fcn.004c2b40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c95af
lea eax, [ebp - 8]
mov edx, dword [0x4c28b4]
call fcn.0040549c
ret

Function at 0x4cacc4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4cad33
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x105]
push eax
push 0x105
call sub.kernel32.dll_GetTempPathA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
mov ecx, 0x105
call fcn.00404460
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.0040d718
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cad3a
lea eax, [ebp - 0x10c]
call fcn.004041f0
ret
Function at 0x403f4c
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [0x4188d4], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
jne 0x403f90
call ebx
test eax, eax
jns 0x403f86
push 0x40155c
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x401550
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x4188d0], eax
mov dword [0x4188d4], 1
mov eax, dword [0x4188d0]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x403fac
push dword [ebp + 0x10]
push eax
call esi
test eax, eax
mov dword [ebp - 4], eax
jne 0x403fdc
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
jne 0x403fd2
call ebx
test eax, eax
mov eax, dword [ebp + 8]
jns 0x403fc6
push dword [eax + 8]
call dword [eax]
jmp 0x403fcc
push dword [eax + 0xc]
call dword [eax + 4]
test eax, eax
je 0x403fdb
mov dword [edi], eax
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0xc

Function at 0x404cb6
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
push 0xd
mov edx, ecx
pop ecx
xor eax, eax
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x34]
push eax
push 0
push 0x104b
push dword [edx + 4]
mov dword [ebp - 0x34], 4
call dword [sym.imp.USER32.dll_SendMessageW]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x14]
pop edi
leave
ret 4

Function at 0x404d44
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
mov esi, ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x404d8f
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp + 0xc]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [esi + 4]
call fcn.0040421d
test eax, eax
je 0x404d8f
push 1
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 8]
call fcn.004041f3
jmp 0x404d91
xor eax, eax
pop esi
leave
ret 8
Function at 0x405edc
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x4146b1
call fcn.004144c0
sub esp, 0x3c
push ebx
push esi
mov esi, ecx
and dword [ebp - 4], 0
push 0x1c
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x10], eax
test eax, eax
mov byte [ebp - 4], 1
je 0x405f0f
mov ecx, eax
call fcn.00404059
mov ebx, eax
jmp 0x405f11
xor ebx, ebx
test ebx, ebx
mov byte [ebp - 4], 0
mov dword [ebp - 0x10], ebx
jne 0x405f21
or esi, 0xffffffff
jmp 0x405f7e
push edi
lea eax, [ebp + 8]
push eax
mov ecx, ebx
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::operator_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__]
lea ecx, [esi + 0x30]
mov eax, dword [ecx + 4]
lea edx, [ebp - 0x10]
push edx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004114b9
push 0xd
pop ecx
xor eax, eax
push eax
push eax
push 0x1004
push dword [esi + 4]
lea edi, [ebp - 0x48]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x48], 4
call edi
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0x104d
push dword [esi + 4]
mov dword [ebp - 0x28], ebx
call edi
mov esi, eax
pop edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x405f9d
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x4146c3
call fcn.004144c0
sub esp, 0x10
mov eax, dword [0x417020]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], eax
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
and dword [ebp - 4], 0
and dword [ebp - 0x18], 0
push 1
push dword [esi + 4]
call edi
push 2
push dword [esi + 4]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
call edi
push dword [esi + 4]
mov dword [ebp - 0x14], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4060dd
test ebx, ebx
je 0x4060dd
cmp dword [ebp - 0x14], 0
je 0x4060dd
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.0040587c
test eax, eax
je 0x4060c5
push 1
push ebx
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
call ebx
push 0
push dword [ebp - 0x14]
call ebx
push 1
push dword [ebp - 0x1c]
push 0x28
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x130
push dword [esi + 4]
call edi
test eax, eax
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
je 0x40604c
push 0
push eax
call ebx
push 0x138
push dword [esi + 4]
call edi
test eax, eax
je 0x40605f
push 0
push eax
call ebx
push 0x131
push dword [esi + 4]
call edi
test eax, eax
je 0x406072
push 0
push eax
call ebx
push 0x139
push dword [esi + 4]
call edi
test eax, eax
je 0x406085
push 0
push eax
call ebx
cmp dword [ebp - 0x18], 0
lea ecx, [ebp - 0x10]
jne 0x406095
push 0x1f4
jmp 0x40609a
push 0x1f5
call fcn.0040532d
test eax, eax
je 0x4060dd
push dword [ebp - 0x10]
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
test edi, edi
je 0x4060dd
lea eax, [esi + 0x1c]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x34]
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x4060dd
mov edi, dword [sym.imp.USER32.dll_EnableWindow]
push 0
push ebx
call edi
test byte [esi + 0x4c], 2
je 0x4060dd
push 1
push dword [ebp - 0x14]
call edi
lea ecx, [ebp - 0x10]
call fcn.00404493
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4069ee
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x418898]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 8
pop ecx
push 0xf0000000
push 0x18
push 0x4017b8
xor ebx, ebx
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x3c]
mov byte [ebp - 0x30], cl
mov byte [ebp - 0x2f], 2
mov word [ebp - 0x2e], bx
mov dword [ebp - 0x2c], 0x6610
mov dword [ebp - 0x28], 0x20
lea edi, [ebp - 0x24]
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x406adb
lea eax, [ebp + 0xc]
push eax
push ebx
push ebx
push 0x2c
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
xor edi, edi
test eax, eax
je 0x406acf
mov esi, dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
push ebx
lea eax, [ebp - 0x34]
push eax
push 4
push dword [ebp + 0xc]
inc edi
mov dword [ebp - 0x34], edi
call esi
test eax, eax
jne 0x406a7d
xor edi, edi
jmp 0x406ac6
push ebx
lea eax, [ebp - 0x34]
push eax
push 3
push dword [ebp + 0xc]
mov dword [ebp - 0x34], edi
call esi
test eax, eax
je 0x406a79
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::size_void_const]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCP60.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::data_void_const]
push eax
push ebx
push edi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x406a79
push dword [ebp - 0x38]
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::resize_unsigned_int_]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push ebx
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.00414168
leave
ret 8
Function at 0x406dca
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
test byte [0x418988], 1
push ebx
push esi
push edi
jne 0x406ded
or dword [0x418988], 1
call fcn.00406d76
mov dword [0x418984], eax
push 4
pop eax
call fcn.00414550
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x406e82
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x48]
lea edi, [eax - 1]
not edi
and edi, esi
sub edi, eax
mov dword [ebp - 8], eax
mov eax, dword [0x4188bc]
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xffff1000
add esi, 0x11000
add esi, ebx
cmp edi, esi
jb 0x406e82
cmp eax, 1
je 0x406ea3
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x406e82
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x406e4f
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x406e7e
xor eax, eax
inc eax
jmp 0x406ec2
cmp edi, eax
jae 0x406e86
xor eax, eax
jmp 0x406ec2
cmp eax, esi
jae 0x406e8d
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4188bc]
jmp 0x406ea6
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x407077
Capabilities:
Set registry value

Disassembly:
push esi
push dword [esp + 8]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0xc]
push 1
push 0
push dword [esp + 0x1c]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
ret 8

Function at 0x4073dc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword [esp + 8]
cmp word [ecx], 0
mov eax, dword [esp + 4]
push ebx
mov ebx, eax
je 0x40746a
cmp word [eax], 0
push ebp
push esi
push edi
je 0x407465
mov ebp, dword [sym.imp.USER32.dll_CharNextW]
cmp word [ebx], 0
mov edi, dword [esp + 0x18]
mov esi, ebx
je 0x407454
mov ax, word [edi]
test ax, ax
je 0x40746e
movzx ecx, word [esi]
movzx eax, ax
sub ecx, eax
jne 0x407454
push esi
call ebp
push edi
mov dword [esp + 0x18], eax
call ebp
mov ecx, eax
mov eax, dword [esp + 0x14]
mov edx, eax
sub ecx, edi
sub edx, esi
xor ecx, edx
test ecx, 0xfffffffe
jne 0x407454
jmp 0x40744a
inc esi
inc esi
movzx edx, word [esi]
inc edi
inc edi
movzx ecx, word [edi]
sub edx, ecx
je 0x40744e
cmp esi, eax
jb 0x40743c
cmp word [esi], 0
jne 0x407408
cmp word [edi], 0
je 0x40746e
push ebx
call ebp
mov ebx, eax
cmp word [ebx], 0
jne 0x4073fc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov eax, ebx
jmp 0x407467
Function at 0x40761e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov eax, 0x200c
lea ebp, [esp - 0x1f8c]
call fcn.00414550
mov eax, dword [0x418898]
push esi
xor esi, esi
push esi
push esi
push esi
push esi
mov dword [ebp + 0x1f88], eax
lea eax, [ebp - 0x7c]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 0x1f94]
mov dword [ebp - 0x7c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x407692
cmp dword [ebp - 0x7c], 1
jne 0x407696
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push esi
push dword [ebp + 0x1f94]
mov dword [ebp - 0x80], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x407692
cmp word [ebp - 0x78], si
je 0x407692
inc eax
jmp 0x40769f
xor eax, eax
jmp 0x40769f
xor eax, eax
cmp eax, dword [ebp - 0x7c]
sbb eax, eax
neg eax
mov ecx, dword [ebp + 0x1f88]
pop esi
call fcn.00414168
add ebp, 0x1f8c
leave
ret 4

Function at 0x407c9a
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x4146ee
call fcn.004144c0
sub esp, 0x214
mov eax, dword [0x418898]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x10], eax
mov ebx, ecx
mov dword [ebp - 0x214], esi
push 0x2001f
push dword [ebp + 8]
lea ecx, [ebp - 0x214]
push dword [ebx]
mov dword [ebp - 4], esi
call fcn.00407028
cmp eax, esi
jne 0x407d39
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x407cf3
lea eax, [ebp - 0x210]
push eax
call fcn.00407c9a
cmp eax, esi
jne 0x407d38
lea eax, [ebp - 0x220]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 0x100
call edi
test eax, eax
lea ecx, [ebp - 0x214]
je 0x407ce3
call fcn.00406fc3
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.00406fc3
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.00414168
leave
ret 4