joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40595e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x40596d
pop dword [ebp - 0x38]
mov eax, 0x3b76b15d
add eax, 0xc4c9a810
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0x74607b93
add dword [ebp - 0x48], 0xd9f1c9b8
mov dword [ebp - 0x44], 0x80910e95
sub dword [ebp - 0x44], 0x4e5dc250
mov dword [ebp - 0x40], 0x572383e2
add dword [ebp - 0x40], 0xf528c04c
mov dword [ebp - 0x3c], 0x1c96fa52
add dword [ebp - 0x3c], 0xe36905ae
lea eax, [ebp - 0x48]
push eax
mov eax, 0xbcbf539
add eax, 0xf4747b27
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0x256ec8d4
add dword [ebp - 0x48], 0x4f03a082
mov dword [ebp - 0x44], 0xbafcbd60
sub dword [ebp - 0x44], 0x79905beb
mov dword [ebp - 0x40], 0xf281081b
sub dword [ebp - 0x40], 0x8f119baf
mov dword [ebp - 0x3c], 0x9aef11c0
sub dword [ebp - 0x3c], 0x9aef11c0
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, 0xbacd0358
sub eax, 0xba8c9258
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x3746b
push 0
call eax
mov ecx, 0x4a3d
mov edi, eax
mov ebx, 0x12fe6c11
sub ebx, 0x12bd6c11
add ebx, dword [ebp - 0x38]
mov edx, 0x4fd1905f
sub edx, 0x7e4451d9
xor dword [ebp - 4], ecx
mov esi, dword [ebx]
mov dword [ebp - 0x28], 0x21db5a0a
xor esi, edx
xor dword [ebp - 0x1c], eax
mov dword [edi], esi
add dword [ebp - 8], 0x91cc37ba
add edi, 4
add ebx, 4
loop 0x405a89
add eax, 0x3575aac4
sub eax, 0x35748efd
mov ebx, eax
add eax, 5
mov ecx, 0xb20f442d
sub ecx, 0xb1cf442d
add ecx, dword [ebp - 0x38]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x406937
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x40b138
call fcn.00406c3c
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x40dbfc
push 0
push esi
push edi
call dword [sym.imp.kernel32.dll_InterlockedCompareExchange]
test eax, eax
je 0x4066d6
cmp eax, esi
jne 0x4066c9
xor esi, esi
inc esi
mov ebx, esi
jmp 0x4066d9
push 0x3e8
call dword [sym.imp.kernel32.dll_Sleep]
jmp 0x4066b0
xor esi, esi
inc esi
mov eax, dword [0x40dbf8]
cmp eax, esi
jne 0x4066ec
push 0x1f
call sub.MSVCR80.dll__amsg_exit
pop ecx
jmp 0x40671b
mov eax, dword [0x40dbf8]
test eax, eax
jne 0x406715
mov dword [0x40dbf8], esi
push 0x4072cc
push 0x4072c4
call sub.MSVCR80.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x40671b
jmp 0x406843
mov dword [0x40c2cc], esi
mov eax, dword [0x40dbf8]
cmp eax, esi
jne 0x40673f
push 0x4072c0
push 0x4072b8
call sub.MSVCR80.dll__initterm
pop ecx
pop ecx
mov dword [0x40dbf8], 2
test ebx, ebx
jne 0x40674b
push ebx
push edi
call dword [sym.imp.kernel32.dll_InterlockedExchange]
cmp dword [0x40dc08], 0
je 0x40676f
push 0x40dc08
call fcn.00406bc2
pop ecx
test eax, eax
je 0x40676f
push 0
push 2
push 0
call dword [0x40dc08]
mov eax, dword [sym.imp.MSVCR80.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x4067cb
test al, al
je 0x406789
cmp dword [ebp - 0x1c], 0
jne 0x4067cb
mov al, byte [esi]
test al, al
je 0x406799
cmp al, 0x20
ja 0x406799
inc esi
mov dword [ebp - 0x20], esi
jmp 0x406789
test byte [ebp - 0x3c], 1
je 0x4067a5
movzx eax, word [ebp - 0x38]
jmp 0x4067a8
push 0xa
pop eax
push eax
push esi
push 0
push 0x400000
call main
mov dword [0x40c2c8], eax
cmp dword [0x40c2bc], 0
jne 0x40681f
push eax
call dword [sym.imp.MSVCR80.dll_exit]
cmp al, 0x22
jne 0x4067da
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR80.dll__ismbblead]
pop ecx
test eax, eax
je 0x4067ed
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x406776
cmp dword [0x40c2cc], 0
jne 0x40682e
call dword [sym.imp.MSVCR80.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x40c2c8]
jmp 0x40684f
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.00406c81
ret
call fcn.0040595e
jmp 0x406676

Function at 0x1001408
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x100144b
push esi
lea ecx, [eax + 8]
call dword [sym.imp.ulib.dll_public:_class_WSTRING____thiscall_PATH::QueryFullPathString_void_const]
mov esi, eax
cmp esi, ebx
je 0x100144a
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x1001442
cmp word [eax], bx
je 0x1001442
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1001442
test ah, 0x10
je 0x1001442
mov bl, 1
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
pop esi
mov al, bl
pop ebx
ret 4
Function at 0x40a220
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x426458]
jne 0x40a22a
repz ret
jmp fcn.0040cf4b

Function at 0x40c363
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x426458]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004084d9
and dword [ebp - 0x14], 0
cmp dword [0x428a00], 0
mov dword [ebp - 0x18], eax
jne 0x40c416
push 0x403e34
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40c4be
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403e28
push ebx
call edi
test eax, eax
je 0x40c4be
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403e18
push ebx
mov dword [0x428a00], eax
call edi
push eax
call esi
push 0x403e04
push ebx
mov dword [0x428a04], eax
call edi
push eax
call esi
push 0x403de8
push ebx
mov dword [0x428a08], eax
call edi
push eax
call esi
mov dword [0x428a10], eax
test eax, eax
je 0x40c416
push 0x403dd0
push ebx
call edi
push eax
call esi
mov dword [0x428a0c], eax
mov eax, dword [0x428a0c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40c46f
cmp dword [0x428a10], ecx
je 0x40c46f
push eax
call esi
push dword [0x428a10]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40c46f
test ebx, ebx
je 0x40c46f
call edi
test eax, eax
je 0x40c466
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40c466
test byte [ebp - 8], 1
jne 0x40c46f
or dword [ebp + 0x10], 0x200000
jmp 0x40c4a2
mov eax, dword [0x428a04]
cmp eax, dword [ebp - 0x18]
je 0x40c4a2
push eax
call esi
test eax, eax
je 0x40c4a2
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40c4a2
mov eax, dword [0x428a08]
cmp eax, dword [ebp - 0x18]
je 0x40c4a2
push eax
call esi
test eax, eax
je 0x40c4a2
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x428a00]
call esi
test eax, eax
je 0x40c4be
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40c4c0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a220
leave
ret
Function at 0x4226e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
mov eax, 0x6b
mov edx, 0x72
mov word [0x7aca90], ax
mov word [0x7aca94], dx
mov ecx, 0x6e
mov edx, 0x65
xor eax, eax
push 0x7aca90
mov dword [0x7aca9c], 0x320033
mov dword [0x7acaa4], 0x6c006c
mov word [0x7aca96], cx
mov dword [0x7aca98], 0x6c0065
mov dword [0x7acaa0], 0x64002e
mov word [0x7aca92], dx
mov word [0x7acaa8], ax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, dword [0x7aca8c]
lea ecx, [esp]
push ecx
push 0x40
mov dword [0x7aca88], eax
mov eax, dword [0x42dadc]
push edx
push eax
mov byte [0x428d53], 0x65
mov dword [0x428d49], 0x75747269
mov word [0x428d4d], 0x6c61
mov byte [0x428d48], 0x56
mov word [0x428d54], 0x7463
mov byte [0x428d56], 0
mov dword [0x428d4f], 0x746f7250
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop ecx
ret

Function at 0x4227d0
Capabilities:
Delete directory
Get common file path
Manipulate console buffer

Disassembly:
mov eax, 0x108c
call fcn.0040cf20
cmp dword [0x7aca8c], 0x37
jne 0x4228a5
push 0
call dword [sym.imp.KERNEL32.dll_DebugActiveProcess]
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
push 0x4046b4
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
mov ecx, dword [esp + 4]
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_MapUserPhysicalPages]
push 0
lea edx, [esp + 0x8c]
push edx
push 0x4046c4
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
lea eax, [esp + 0x48c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea edx, [esp + 0xc]
push edx
push 0x4046d8
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
lea eax, [esp + 0x10]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessIoCounters]
push 0
lea ecx, [esp + 0x88c]
push ecx
push 0
push 0x4046e4
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push 0
push 0
push 0
push 0x404710
push 0x40472c
push 0x40473c
call dword [sym.imp.KERNEL32.dll_ReplaceFileA]
mov edx, dword [0x7ada80]
mov dword [esp + 4], edx
mov eax, 0x5d1
add dword [esp + 4], eax
mov eax, dword [esp + 4]
mov cl, byte [eax + esi]
mov edx, dword [0x42dadc]
mov byte [edx + esi], cl
add esp, 0x108c
ret
Function at 0x422a40
Capabilities:
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0x7aca8c]
sub esp, 0x2dc
push ebx
push ebp
push esi
mov esi, dword [0x42dadc]
shr eax, 3
push edi
test eax, eax
je 0x422bec
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], eax
jmp 0x422a74
mov esi, dword [esp + 0x18]
cmp dword [0x7aca8c], 0x1c
jne 0x422a91
lea eax, [esp + 0x38]
push eax
push 0
lea ecx, [esp + 0x44]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov edx, dword [0x427200]
mov ecx, dword [0x427204]
mov eax, dword [esi]
mov edi, dword [esi + 4]
mov dword [esp + 0x28], edx
mov edx, dword [0x427208]
mov dword [esp + 0x2c], ecx
mov ecx, dword [0x42720c]
mov dword [esp + 0x14], eax
mov ebx, 0xc6ef3720
mov dword [esp + 0x24], edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x1c], 0x20
jmp 0x422ad5
mov eax, dword [esp + 0x14]
mov edx, eax
mov ecx, eax
shr edx, 5
add edx, dword [esp + 0x34]
shl ecx, 4
add ecx, dword [esp + 0x24]
add eax, ebx
xor edx, ecx
xor edx, eax
sub edi, edx
mov ecx, edi
shl ecx, 4
mov dword [0x7ac9fc], 0
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x28]
add dword [esp + 0x10], eax
cmp dword [0x7aca8c], 0x1be
lea ebp, [ebx + edi]
jne 0x422b2a
lea edx, [esp + 0x30]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov esi, edi
shr esi, 5
add esi, dword [esp + 0x2c]
cmp dword [0x7aca8c], 0x979
mov dword [0x7aca00], 0xff6b3619
mov dword [0x7aca04], 0xffffffff
jne 0x422b6a
mov eax, dword [esp + 0x30]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
xor esi, ebp
xor dword [esp + 0x10], esi
mov eax, dword [esp + 0x10]
sub dword [esp + 0x14], eax
add ebx, 0x61c88647
dec dword [esp + 0x1c]
jne 0x422ad1
cmp dword [0x7aca8c], 0x8d4
jne 0x422b9f
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov dword [esi], edx
mov dword [esi + 4], edi
cmp dword [0x7aca8c], 0x17
jne 0x422bdb
push 0
push 0
push 0
push 0x404690
push 0x4046a0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressA]
lea eax, [esp + 0x98]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
add esi, 8
dec dword [esp + 0x20]
mov dword [esp + 0x18], esi
jne 0x422a70
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2dc
ret
Function at 0x41e100
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x17c
mov eax, dword [0x5a6008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0x17c], edx
xor edi, edi
mov edx, ecx
movzx esi, byte [edi + str.80_]
movzx ecx, byte [edi + 0x561541]
mov eax, esi
shr eax, 3
and esi, 7
movzx eax, byte [eax + edx]
test byte [esi*2 + 0x561500], al
setne al
mov byte [ebp + edi - 0x3c], al
mov eax, ecx
shr eax, 3
and ecx, 7
movzx eax, byte [eax + edx]
test byte [ecx*2 + 0x561500], al
movzx ecx, byte [edi + 0x561542]
setne al
mov byte [ebp + edi - 0x3b], al
mov eax, ecx
shr eax, 3
and ecx, 7
movzx eax, byte [eax + edx]
test byte [ecx*2 + 0x561500], al
movzx ecx, byte [edi + 0x561543]
setne al
mov byte [ebp + edi - 0x3a], al
mov eax, ecx
shr eax, 3
and ecx, 7
movzx eax, byte [eax + edx]
test byte [ecx*2 + 0x561500], al
setne al
mov byte [ebp + edi - 0x39], al
add edi, 4
cmp edi, 0x38
jl 0x41e120
mov ecx, 0x1e
xor ebx, ebx
mov dword [ebp - 0x178], ecx
nop dword [eax]
cmp dword [ebp - 0x17c], 1
lea eax, [ebx + ebx]
lea edi, [ebp - 0xf4]
cmovne ecx, eax
xor eax, eax
lea esi, [ebp + ecx*4 - 0xf0]
lea edi, [edi + ecx*4]
mov dword [esi], 0
movzx ecx, byte [ebx + 0x5617c0]
mov dword [edi], 0
cmp ecx, 0x1c
jge 0x41e1fd
mov dl, byte [ebp + ecx - 0x3c]
jmp 0x41e201
mov dl, byte [ebp + ecx - 0x58]
mov byte [ebp + eax - 0x74], dl
inc ecx
inc eax
cmp eax, 0x1c
jl 0x41e1f2
movzx eax, byte [ebx + 0x5617c0]
mov ecx, 0x1c
add eax, ecx
nop word [eax + eax]
cmp eax, 0x38
jge 0x41e22b
mov dl, byte [ebp + eax - 0x3c]
jmp 0x41e22f
mov dl, byte [ebp + eax - 0x58]
mov byte [ebp + ecx - 0x74], dl
inc eax
inc ecx
cmp ecx, 0x38
jl 0x41e220
xor eax, eax
nop dword [eax]
movzx ecx, byte [eax + 0x561510]
cmp byte [ebp + ecx - 0x74], 0
je 0x41e257
mov ecx, dword [eax*4 + 0x5612a0]
or dword [edi], ecx
movzx ecx, byte [eax + 0x561528]
cmp byte [ebp + ecx - 0x74], 0
je 0x41e26e
mov ecx, dword [eax*4 + 0x5612a0]
or dword [esi], ecx
inc eax
cmp eax, 0x18
jl 0x41e240
mov ecx, dword [ebp - 0x178]
inc ebx
sub ecx, 2
mov dword [ebp - 0x178], ecx
cmp ecx, 0xfffffffe
jg 0x41e1c0
lea eax, [ebp - 0x174]
mov dword [ebp - 0x17c], 0x10
lea ebx, [ebp - 0xf4]
mov dword [ebp - 0x178], eax
nop dword [eax]
mov edi, dword [ebx + 4]
lea ebx, [ebx + 8]
mov esi, dword [ebx - 8]
mov edx, edi
shr edx, 4
mov eax, edi
and eax, 0xfc0
and edx, 0xfc000
or edx, eax
mov ecx, esi
and ecx, 0xfc0
shr edx, 6
shl ecx, 4
mov eax, esi
and eax, 0xfc0000
or ecx, eax
mov eax, dword [ebp - 0x178]
shl ecx, 6
or edx, ecx
mov ecx, esi
and ecx, 0x3f
and esi, 0x3f000
mov dword [eax], edx
mov edx, eax
shl ecx, 4
mov eax, edi
or ecx, esi
shr eax, 4
shl ecx, 0xc
and eax, 0x3f00
or ecx, eax
and edi, 0x3f
or ecx, edi
mov dword [edx + 4], ecx
add edx, 8
sub dword [ebp - 0x17c], 1
mov dword [ebp - 0x178], edx
jne 0x41e2b0
mov ecx, 0x20
lea esi, [ebp - 0x174]
mov edi, 0x5b6ed0
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00511339
mov esp, ebp
pop ebp
ret
Function at 0x41f6a0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
mov eax, dword [0x5a6008]
xor eax, esp
mov dword [esp + 0x250], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [esp + 0xc], eax
xor esi, esi
push 0x104
lea eax, [esp + 0x154]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x41f7ba
lea eax, [esp + 0x150]
push 0x5c
push eax
call fcn.005128c0
add esp, 8
test eax, eax
je 0x41f7ba
lea ecx, [esp + 0x150]
mov byte [eax], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41f710
sub ecx, edx
cmp byte [esp + ecx + 0x14f], 0x5c
je 0x41f73d
push 0x58e428
lea eax, [esp + 0x154]
push 0x104
push eax
call fcn.005173c8
add esp, 0xc
push str..dsm
lea eax, [esp + 0x154]
push 0x104
push eax
call fcn.005173c8
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x41f7ba
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [esp + 0x3c]
push eax
push 0
push 0x143
push dword [esp + 0x18]
call ebx
lea eax, [esp + 0x10]
inc esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41f777
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.00511339
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x25c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00511339
mov esp, ebp
pop ebp
ret 4
Function at 0x420340
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
cmp byte [edi + 0x19], 0
mov dword [edi + 0x14], 1
je 0x420493
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x4e
call esi
push 0x4f
mov ebx, eax
call esi
cmp eax, dword [ebp + 0x14]
jne 0x420377
mov byte [ebp + 0x14], 0
cmp ebx, dword [ebp + 0x10]
je 0x42037b
mov byte [ebp + 0x14], 1
mov ecx, dword [edi + 0x24]
test ecx, ecx
je 0x4203b6
mov eax, 0x3e8
cdq
idiv dword [ebp + 0x1c]
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call ecx
add esp, 0xc
test al, al
jne 0x4203e4
push str.DeskDupEngine::videoDriver_start_:_DDengine_V2_failed__not_supported_by_video_driver_n
push 8
push 0x5a6c48
call fcn.0041d720
add esp, 0xc
pop esi
pop ebx
pop edi
pop ebp
ret 0x18
mov eax, dword [edi + 0x20]
test eax, eax
je 0x4203e4
push dword [ebp + 0x14]
call eax
add esp, 4
test al, al
jne 0x4203e4
push str.DeskDupEngine::videoDriver_start_:_DDengine_failed__not_supported_by_video_driver_n
push 8
push 0x5a6c48
call fcn.0041d720
add esp, 0xc
pop esi
pop ebx
pop edi
pop ebp
ret 0x18
cmp dword [edi + 0x3c], 0
jne 0x420491
mov esi, dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
push 0x58e524
push 0
push 6
call esi
mov dword [edi + 0x3c], eax
test eax, eax
je 0x420491
mov ebx, dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push 0
push 0
push 0
push 6
push eax
call ebx
mov dword [edi + 0x40], eax
test eax, eax
je 0x420491
cmp dword [edi + 0x44], 0
mov dword [edi + 0x10], eax
jne 0x420491
push 0x58e54c
push 0
push 6
call esi
mov dword [edi + 0x44], eax
test eax, eax
je 0x420491
push 0
push 0
push 0
push 6
push eax
call ebx
mov dword [edi + 0x48], eax
test eax, eax
je 0x420491
cmp dword [edi + 0x4c], 0
jne 0x420491
mov esi, dword [sym.imp.KERNEL32.dll_OpenEventA]
push 0x58e574
push 0
push 0x1f0003
call esi
mov dword [edi + 0x4c], eax
test eax, eax
je 0x420491
cmp dword [edi + 0x50], 0
jne 0x420491
push 0x58e59c
push 0
push 0x1f0003
call esi
mov dword [edi + 0x50], eax
test eax, eax
je 0x420491
mov eax, dword [edi + 0x48]
mov dword [edi + 0xc], eax
pop esi
pop ebx
pop edi
pop ebp
ret 0x18
Function at 0x420a90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x20119
push 0
push str.SystemCurrentControlSetControlProductOptions
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x420bd3
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push str.ProductSuite
push dword [ebp - 4]
call esi
test eax, eax
jne 0x420bc9
push ebx
push dword [ebp - 8]
call fcn.0051138a
add esp, 4
mov ebx, eax
lea eax, [ebp - 8]
mov dword [ebp - 0x10], ebx
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push 0
push str.ProductSuite
push dword [ebp - 4]
call esi
test eax, eax
jne 0x420bbf
mov esi, ebx
cmp byte [ebx], al
je 0x420bbf
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
mov edi, dword [ebp + 8]
nop dword [eax]
push str.Terminal_Server
push esi
call fcn.0051e0b8
add esp, 8
test eax, eax
jne 0x420b4b
or dword [edi + 0x130], 0x10
jmp 0x420bac
push 0x58e850
push esi
call fcn.0051e0b8
add esp, 8
test eax, eax
je 0x420ba5
push str.Small_Business
push esi
call fcn.0051e0b8
add esp, 8
test eax, eax
je 0x420ba5
push str.Enterprise
push esi
call fcn.0051e0b8
add esp, 8
test eax, eax
jne 0x420b8a
or dword [edi + 0x130], 2
jmp 0x420bac
push str.Personal
push esi
call fcn.0051e0b8
add esp, 8
test eax, eax
jne 0x420bac
or dword [edi + 0x130], 0x40
jmp 0x420bac
or dword [edi + 0x130], 1
push esi
call ebx
inc esi
add esi, eax
cmp byte [esi], 0
jne 0x420b30
mov ebx, dword [ebp - 0x10]
pop edi
push ebx
call fcn.00511347
add esp, 4
pop ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x420be0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x20119
push 0
push str.SystemCurrentControlSetControlTerminal_Server
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x420c55
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 1
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push str.TSAppCompat
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x420c4c
cmp dword [ebp - 8], eax
jne 0x420c4c
mov eax, dword [ebp + 8]
or dword [eax + 0x130], 0x200
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 4
Function at 0x423e10
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x5a6008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x104
lea eax, [ebp - 0x20c]
mov esi, ecx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x56192c
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.0051736e
push 0x58f878
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.005173c8
push esi
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.005173c8
xorps xmm0, xmm0
mov dword [ebp - 0x248], 0x3c
add esp, 0x24
movlpd qword [ebp - 0x224], xmm0
movlpd qword [ebp - 0x21c], xmm0
movlpd qword [ebp - 0x214], xmm0
mov dword [ebp - 0x244], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x240], eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x238], eax
lea eax, [ebp - 0x108]
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x248]
push eax
mov dword [ebp - 0x23c], str.runas
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 1
mov dword [ebp - 0x228], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00511339
mov esp, ebp
pop ebp
ret