joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405dc0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
cmp dword [ebp + 0x14], 0
jne 0x405dd3
xor eax, eax
jmp 0x405ef7
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0xc]
push ecx
movzx edx, word [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x405e1a
xor eax, eax
jmp 0x405ef7
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 4], eax
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x405e57
xor eax, eax
jmp 0x405ef7
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp - 4]
sub ecx, 0x9480
push ecx
call fcn.00408821
add esp, 4
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
sub edx, 0x9480
push edx
mov eax, dword [ebp - 8]
add eax, 0x9480
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0040f2b0
add esp, 0xc
push 0x84
push 0x143
mov edx, dword [ebp - 4]
sub edx, 0x9480
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.00404920
add esp, 0x10
push 0
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 4]
sub edx, 0x9480
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x18]
push edx
call fcn.00404d30
add esp, 4
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
sub ecx, 0x9480
xor eax, eax
cmp ecx, dword [ebp - 0x20]
sete al
mov esp, ebp
pop ebp
ret

Function at 0x405f40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x41a084]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x2c
lea eax, [ebp - 0x30]
push 0
push eax
mov dword [ebp - 0x34], 0
call fcn.0040e3a0
add esp, 0xc
lea ecx, [ebp - 0x34]
call fcn.00407f40
test eax, eax
je 0x405faa
push ebx
lea edx, [ebp - 0x34]
or eax, 0xffffffff
mov ecx, 0x30
push edi
movzx ebx, byte [edx]
mov edi, eax
and edi, 0xff
xor edi, ebx
shr eax, 8
xor eax, dword [esi + edi*4 + 8]
inc edx
dec ecx
jne 0x405f80
pop edi
not eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408266
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.00408266
mov esp, ebp
pop ebp
ret
Function at 0x405fc0
Capabilities:
Encode data using xor
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
xor edi, edi
push edi
push edi
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 8]
push edx
push edi
push edi
push 0x417a84
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x405ffe
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
cmp eax, edi
jne 0x40600b
lea ecx, [ebp - 4]
call fcn.00408040
cmp dword [ebp - 4], edi
je 0x406040
lea edx, [ebp - 4]
or eax, 0xffffffff
mov ecx, 4
push ebx
jmp 0x406020
movzx ebx, byte [edx]
mov edi, eax
and edi, 0xff
xor edi, ebx
shr eax, 8
xor eax, dword [esi + edi*4 + 8]
inc edx
dec ecx
jne 0x406020
pop ebx
not eax
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x406050
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x41a084]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push edi
lea edi, [ebp - 0xc]
mov dword [ebp - 0xc], eax
mov word [ebp - 8], ax
call fcn.00407950
test eax, eax
je 0x4060da
cmp byte [ebp - 0xc], 0
jne 0x40609a
cmp byte [ebp - 0xb], 0
jne 0x40609a
cmp byte [ebp - 0xa], 0
jne 0x40609a
cmp byte [ebp - 9], 0
jne 0x40609a
cmp byte [ebp - 8], 0
jne 0x40609a
cmp byte [ebp - 7], 0
je 0x4060da
lea edx, [ebp - 0xc]
or eax, 0xffffffff
mov ecx, 6
push ebx
jmp 0x4060b0
movzx ebx, byte [edx]
mov edi, eax
and edi, 0xff
xor edi, ebx
shr eax, 8
xor eax, dword [esi + edi*4 + 8]
inc edx
dec ecx
jne 0x4060b0
pop ebx
not eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408266
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop edi
call fcn.00408266
mov esp, ebp
pop ebp
ret

Function at 0x4061b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x41a084]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.RPCRT4.dll_UuidCreateSequential]
test eax, eax
jne 0x40623e
mov eax, dword [ebp - 0x16]
mov cx, word [ebp - 0x12]
mov dword [ebp - 0xc], eax
mov word [ebp - 8], cx
test al, al
jne 0x406209
mov edx, eax
shr edx, 8
test dl, dl
jne 0x406209
mov ecx, eax
shr ecx, 0x10
test cl, cl
jne 0x406209
shr eax, 0x18
test al, al
jne 0x406209
mov eax, dword [ebp - 0x12]
test al, al
jne 0x406209
shr eax, 8
test al, al
je 0x40623e
lea edx, [ebp - 0xc]
or eax, 0xffffffff
mov ecx, 6
movzx ebx, byte [edx]
mov edi, eax
and edi, 0xff
xor edi, ebx
shr eax, 8
xor eax, dword [esi + edi*4 + 8]
inc edx
dec ecx
jne 0x406214
not eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408266
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00408266
mov esp, ebp
pop ebp
ret
Function at 0x406250
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x41a084]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push edi
lea edi, [ebp - 0xc]
mov dword [ebp - 0xc], eax
mov word [ebp - 8], ax
call fcn.00407b20
test eax, eax
je 0x4062da
cmp byte [ebp - 0xc], 0
jne 0x40629a
cmp byte [ebp - 0xb], 0
jne 0x40629a
cmp byte [ebp - 0xa], 0
jne 0x40629a
cmp byte [ebp - 9], 0
jne 0x40629a
cmp byte [ebp - 8], 0
jne 0x40629a
cmp byte [ebp - 7], 0
je 0x4062da
lea edx, [ebp - 0xc]
or eax, 0xffffffff
mov ecx, 6
push ebx
jmp 0x4062b0
movzx ebx, byte [edx]
mov edi, eax
and edi, 0xff
xor edi, ebx
shr eax, 8
xor eax, dword [esi + edi*4 + 8]
inc edx
dec ecx
jne 0x4062b0
pop ebx
not eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408266
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop edi
call fcn.00408266
mov esp, ebp
pop ebp
ret

Function at 0x4062f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x41a084]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0xff
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.0040e3a0
add esp, 0xc
lea ebx, [ebp - 0x108]
call fcn.00407d50
test eax, eax
jne 0x406350
mov ecx, ebx
push ecx
call fcn.00407ea0
add esp, 4
test eax, eax
jne 0x406350
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408266
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x108]
or eax, 0xffffffff
mov ecx, 0x100
movzx ebx, byte [edx]
mov edi, eax
and edi, 0xff
xor edi, ebx
shr eax, 8
xor eax, dword [esi + edi*4 + 8]
inc edx
dec ecx
jne 0x40635e
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
not eax
pop ebx
call fcn.00408266
mov esp, ebp
pop ebp
ret
Function at 0x406390
Capabilities:
Encode data using xor
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push edi
xor edi, edi
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], 0x100
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
mov edx, dword [ebp - 8]
neg edx
sbb edx, edx
and edx, 0xffffff00
lea ecx, [ebp - 4]
push ecx
add edx, 0x200
or edx, 0xf003f
push edx
push edi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406417
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x14]
push edx
push edi
push str.InstallDate
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40641e
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x10]
or eax, 0xffffffff
lea edx, [ebp - 0xc]
cmp ecx, edi
je 0x406459
push ebx
jmp 0x406440
movzx ebx, byte [edx]
mov edi, eax
and edi, 0xff
xor edi, ebx
shr eax, 8
xor eax, dword [esi + edi*4 + 8]
inc edx
dec ecx
jne 0x406440
pop ebx
not eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x406460
Capabilities:
Encode data using xor
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x41a084]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push 0x7f
lea eax, [ebp - 0x83]
push ebx
push eax
mov byte [ebp - 0x84], bl
call fcn.0040e3a0
add esp, 0xc
lea ecx, [ebp - 0x90]
push ecx
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x8c], 0x80
mov dword [ebp - 0x90], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
mov eax, dword [ebp - 0x90]
neg eax
sbb eax, eax
and eax, 0xffffff00
lea edx, [ebp - 0x88]
push edx
add eax, 0x200
or eax, 0xf003f
push eax
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4065ba
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 0x8c]
push ecx
mov ecx, dword [ebp - 0x88]
lea edx, [ebp - 0x84]
push edx
lea eax, [ebp - 0x94]
push eax
push ebx
push str.BuildGUID
push ecx
call edi
test eax, eax
je 0x406568
lea edx, [ebp - 0x8c]
push edx
mov edx, dword [ebp - 0x88]
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x94]
push ecx
push ebx
push str.ProductId
push edx
call edi
test eax, eax
je 0x406568
mov eax, dword [ebp - 0x88]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408266
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x88]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x8c]
or eax, 0xffffffff
lea edx, [ebp - 0x84]
cmp ecx, ebx
je 0x4065a8
jmp 0x406590
movzx ebx, byte [edx]
mov edi, eax
and edi, 0xff
xor edi, ebx
shr eax, 8
xor eax, dword [esi + edi*4 + 8]
inc edx
dec ecx
jne 0x406590
pop edi
not eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408266
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00408266
mov esp, ebp
pop ebp
ret
Function at 0x4065d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b4
mov eax, dword [0x41a084]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push edi
push 0x1a8
xor esi, esi
lea eax, [ebp - 0x1b4]
push esi
push eax
call fcn.0040e3a0
mov edi, dword [sym.imp.USER32.dll_EnumDisplayDevicesA]
add esp, 0xc
push esi
lea ecx, [ebp - 0x1b4]
push ecx
push esi
push esi
mov dword [ebp - 0x1b4], 0x1a8
call edi
test eax, eax
je 0x40663c
lea esp, [esp]
test byte [ebp - 0x110], 4
jne 0x406650
push 0
lea edx, [ebp - 0x1b4]
push edx
inc esi
push esi
push 0
call edi
test eax, eax
jne 0x406620
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00408266
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406660
sub eax, edx
mov ecx, eax
xor eax, eax
test ecx, ecx
jle 0x40663c
cmp byte [ebp + eax - 0x10c], 0
jne 0x406694
inc eax
cmp eax, ecx
jl 0x406671
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00408266
mov esp, ebp
pop ebp
ret 4
or eax, 0xffffffff
lea edx, [ebp - 0x10c]
test ecx, ecx
je 0x4066bc
movzx edi, byte [edx]
mov esi, eax
and esi, 0xff
xor esi, edi
mov edi, dword [ebp + 8]
shr eax, 8
xor eax, dword [edi + esi*4 + 8]
inc edx
dec ecx
jne 0x4066a1
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
not eax
pop esi
call fcn.00408266
mov esp, ebp
pop ebp
ret 4
Function at 0x4066d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x368
mov eax, dword [0x41a084]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
xor ebx, ebx
xor eax, eax
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x348], ebx
mov dword [ebp - 0x344], eax
mov dword [ebp - 0x340], eax
mov dword [ebp - 0x33c], eax
mov dword [ebp - 0x338], eax
mov dword [ebp - 0x334], eax
mov dword [ebp - 0x330], eax
mov dword [ebp - 0x32c], eax
mov byte [ebp - 0x328], al
push 0x103
lea eax, [ebp - 0x113]
push 0
push eax
mov byte [ebp - 0x114], 0
call fcn.0040e3a0
push 0x210
lea ecx, [ebp - 0x324]
push 0
push ecx
call fcn.0040e3a0
push ebx
lea edx, [ebp - 0x114]
push str..PHYSICALDRIVE_d
push edx
call fcn.00408ad6
add esp, 0x24
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4067fe
push 0
lea ecx, [ebp - 0x364]
push ecx
push 0x18
lea edx, [ebp - 0x360]
push edx
push 0
push 0
push 0x74080
push esi
call edi
test eax, eax
je 0x4067f4
mov al, byte [ebp - 0x35d]
and al, 0x10
push 0
neg al
sbb al, al
lea ecx, [ebp - 0x364]
push ecx
push 0x210
and al, 0xb5
add al, 0xec
lea edx, [ebp - 0x324]
push edx
push 0x20
mov byte [ebp - 0x33e], al
lea eax, [ebp - 0x348]
push eax
push 0x7c088
push esi
call edi
push esi
test eax, eax
jne 0x406813
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, 5
jb 0x406726
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00408266
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x300]
or eax, 0xffffffff
mov ecx, 0x14
jmp 0x406830
movzx edi, byte [edx]
mov esi, eax
and esi, 0xff
xor esi, edi
mov edi, dword [ebp + 8]
shr eax, 8
xor eax, dword [edi + esi*4 + 8]
inc edx
dec ecx
jne 0x406830
not eax
mov esi, eax
lea edx, [ebp - 0x2de]
or eax, 0xffffffff
mov ecx, 0x28
movzx ebx, byte [edx]
mov edi, eax
and edi, 0xff
xor edi, ebx
mov ebx, dword [ebp + 8]
shr eax, 8
xor eax, dword [ebx + edi*4 + 8]
inc edx
dec ecx
jne 0x40685d
mov ecx, dword [ebp - 8]
not eax
pop edi
add eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408266
mov esp, ebp
pop ebp
ret 4
Function at 0x406890
Capabilities:
Encode data using xor
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x41a084]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.0040e3a0
add esp, 0xc
lea ecx, [ebp - 0x10c]
push ecx
lea edx, [ebp - 0x108]
push edx
mov dword [ebp - 0x10c], 0x104
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x40693a
lea eax, [ebp - 0x108]
lea edx, [eax + 1]
jmp 0x4068f0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4068f0
sub eax, edx
mov ecx, eax
or eax, 0xffffffff
lea edx, [ebp - 0x108]
test ecx, ecx
je 0x40692a
push ebx
push edi
lea ebx, [ebx]
movzx ebx, byte [edx]
mov edi, eax
and edi, 0xff
xor edi, ebx
shr eax, 8
xor eax, dword [esi + edi*4 + 8]
inc edx
dec ecx
jne 0x406910
pop edi
pop ebx
not eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408266
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.00408266
mov esp, ebp
pop ebp
ret

Function at 0x407780
Capabilities:
Hash data using crc32b

Disassembly:
push ebx
push esi
xor ebx, ebx
push edi
add edx, 4
xor eax, eax
test bl, 1
je 0x407794
mov eax, 0x80
mov ecx, ebx
shr ecx, 1
test cl, 1
je 0x4077a0
or eax, 0x40
shr ecx, 1
test cl, 1
je 0x4077aa
or eax, 0x20
shr ecx, 1
test cl, 1
je 0x4077b4
or eax, 0x10
shr ecx, 1
test cl, 1
je 0x4077be
or eax, 8
shr ecx, 1
test cl, 1
je 0x4077c8
or eax, 4
shr ecx, 1
test cl, 1
je 0x4077d2
or eax, 2
test cl, 2
je 0x4077da
or eax, 1
shl eax, 0x18
mov ecx, eax
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
xor esi, esi
mov dword [edx], ecx
mov eax, ecx
lea ecx, [esi + 0x1f]
mov edi, edi
test al, 1
je 0x40789d
mov edi, 1
shl edi, cl
or esi, edi
dec ecx
shr eax, 1
cmp ecx, 0xffffffff
jg 0x407890
mov dword [edx], esi
inc ebx
add edx, 4
cmp ebx, 0xff
jle 0x407788
pop edi
pop esi
pop ebx
ret

Function at 0x4078c0
Capabilities:
Encode data using xor

Disassembly:
or eax, 0xffffffff
test ecx, ecx
je 0x4078ea
push ebx
push edi
lea esp, [esp]
movzx ebx, byte [edx]
mov edi, eax
and edi, 0xff
xor edi, ebx
shr eax, 8
xor eax, dword [esi + edi*4 + 4]
inc edx
dec ecx
jne 0x4078d0
pop edi
pop ebx
not eax
ret
Function at 0x4078f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
xor eax, eax
test esi, esi
je 0x407946
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x407946
cmp dword [ebp + 0x10], eax
je 0x407946
cmp dword [ebp + 0x14], 4
jb 0x407946
or eax, 0xffffffff
test edx, edx
je 0x40793a
push ebx
push edi
jmp 0x407920
movzx ebx, byte [esi]
mov edi, eax
and edi, 0xff
xor edi, ebx
shr eax, 8
xor eax, dword [ecx + edi*4 + 4]
inc esi
dec edx
jne 0x407920
pop edi
pop ebx
mov ecx, dword [ebp + 0x10]
not eax
mov dword [ecx], eax
mov eax, 1
pop esi
pop ebp
ret 0x10

Function at 0x407950
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
mov dword [ebp - 4], 4
test edi, edi
je 0x4079de
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x4079de
mov ecx, dword [ebp - 4]
push esi
push ecx
call fcn.00408434
mov esi, eax
add esp, 4
test esi, esi
je 0x4079dd
lea edx, [ebp - 4]
push edx
push esi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x4079d4
movzx eax, byte [esi + 0x194]
mov byte [edi], al
movzx ecx, byte [esi + 0x195]
mov byte [edi + 1], cl
movzx edx, byte [esi + 0x196]
mov byte [edi + 2], dl
movzx eax, byte [esi + 0x197]
mov byte [edi + 3], al
movzx ecx, byte [esi + 0x198]
mov byte [edi + 4], cl
movzx edx, byte [esi + 0x199]
mov byte [edi + 5], dl
mov ebx, 1
push esi
call fcn.0040825b
add esp, 4
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407b20
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x520
mov eax, dword [0x41a084]
xor eax, ebp
mov dword [ebp - 4], eax
test edi, edi
je 0x407d3c
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea eax, [ebp - 0x50c]
push eax
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push 0x80000002
call esi
test eax, eax
jne 0x407ba0
push 0xff
push eax
lea ecx, [ebp - 0x203]
push ecx
mov byte [ebp - 0x204], al
call fcn.0040e3a0
mov eax, dword [ebp - 0x50c]
add esp, 0xc
push 0x100
lea edx, [ebp - 0x204]
push edx
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov ecx, dword [ebp - 0x50c]
test eax, eax
je 0x407bb1
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408266
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x510]
push edx
lea eax, [ebp - 0x204]
push eax
push ecx
call esi
test eax, eax
je 0x407bcf
mov edx, dword [ebp - 0x50c]
push edx
jmp 0x407b9a
mov eax, dword [ebp - 0x50c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
push 0x1ff
lea ecx, [ebp - 0x403]
push 0
push ecx
mov dword [ebp - 0x518], 1
mov byte [ebp - 0x404], 0
call fcn.0040e3a0
add esp, 0xc
lea edx, [ebp - 0x51c]
push edx
mov edx, dword [ebp - 0x510]
lea eax, [ebp - 0x404]
push eax
lea ecx, [ebp - 0x518]
push ecx
push 0
push str.ServiceName
push edx
mov dword [ebp - 0x51c], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x407c56
mov eax, dword [ebp - 0x510]
push eax
call esi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408266
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x510]
push ecx
call esi
lea edx, [ebp - 0x404]
push edx
lea eax, [ebp - 0x508]
push str.__.__s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
lea ecx, [ebp - 0x508]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x407ba0
push 0xff
lea edx, [ebp - 0x103]
push 0
push edx
mov byte [ebp - 0x104], 0
call fcn.0040e3a0
add esp, 0xc
push 0
lea eax, [ebp - 0x520]
push eax
push 0x100
lea ecx, [ebp - 0x104]
push ecx
push 4
lea edx, [ebp - 0x514]
push edx
push 0x170002
push esi
mov dword [ebp - 0x514], 0x1010101
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
test eax, eax
jne 0x407d0f
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408266
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x104]
mov cx, word [ebp - 0x100]
mov dword [edi], eax
mov word [edi + 4], cx
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408266
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.00408266
mov esp, ebp
pop ebp
ret
Function at 0x407d50
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x41a084]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov ecx, 0xb
mov esi, str.DevicePhysicalMemory
lea edi, [ebp - 0x34]
rep movsd dword es:[edi], dword [esi]
push str.ZwOpenSection
movsw word es:[edi], word [esi]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.ntdll.dll
mov dword [ebp - 0x3c], 0xffff
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.ZwMapViewOfSection
push str.ntdll.dll
mov dword [0x41eafc], eax
call esi
push eax
call edi
push str.ZwUnmapViewOfSection
push str.ntdll.dll
mov dword [0x41eb00], eax
call esi
push eax
call edi
push str.RtlInitUnicodeString
push str.ntdll.dll
mov dword [0x41eb04], eax
call esi
push eax
call edi
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x68]
push edx
mov dword [0x41eb08], eax
call eax
lea ecx, [ebp - 0x60]
push ecx
xor esi, esi
push 4
lea edx, [ebp - 0x40]
lea eax, [ebp - 0x68]
push edx
mov dword [ebp - 0x60], 0x18
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x54], 0x40
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
call dword [0x41eafc]
test eax, eax
jns 0x407e25
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408266
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x3c]
push 2
push esi
push 1
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x48]
push ecx
mov ecx, dword [ebp - 0x40]
push edx
push esi
lea eax, [ebp - 0x38]
push eax
push 0xffffffffffffffff
push ecx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x48], 0xfec71
mov dword [ebp - 0x44], esi
call dword [0x41eb00]
test eax, eax
js 0x407e13
mov eax, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x38]
cmp eax, 0x100
jae 0x407e68
push eax
jmp 0x407e6d
push 0x100
push esi
push ebx
call fcn.0040f2b0
add esp, 0xc
push esi
push 0xffffffffffffffff
call dword [0x41eb04]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.00408266
mov esp, ebp
pop ebp
ret