joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4080c3
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x408160
push ebx
push esi
call fcn.0040808c
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00408020
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40810d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40815f
push edi
push eax
call fcn.00408ce0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40812d
call fcn.00406b81
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40815e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00408020
add esp, 0x20
test eax, eax
jne 0x40814c
push edi
call fcn.00406b81
jmp 0x408154
push ebx
call fcn.00406b81
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x40945d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4142b8
push 0x4142b0
push str.FlsAlloc
push 0x1f
call fcn.0040931c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409491
push dword [ebp + 8]
mov ecx, esi
call dword [0x41212c]
call esi
jmp 0x409497
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4094db
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4142c8
push 0x4142c0
push str.FlsGetValue
push 0x21
call fcn.0040931c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409512
push dword [ebp + 8]
mov ecx, esi
call dword [0x41212c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40951a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4142d0
push 0x4142c8
push str.FlsSetValue
push 0x22
call fcn.0040931c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409554
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41212c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40e9b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40e9dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40e9dd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x40287f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x40288e
pop dword [ebp - 0x28]
mov eax, 0x40288e
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x1fede1a1
sub dword [ebp - 0x38], 0xd19b9c56
mov dword [ebp - 0x34], 0xcb9046b9
sub dword [ebp - 0x34], 0x995cfa74
mov dword [ebp - 0x30], 0x337c8749
add dword [ebp - 0x30], 0x18cfbce5
mov dword [ebp - 0x2c], 0x1825e5ba
add dword [ebp - 0x2c], 0xe7da1a46
lea eax, [ebp - 0x38]
push eax
mov eax, 0xbea6cddb
sub eax, 0xbe664d4f
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0x9ffee0b4
add dword [ebp - 0x38], 0xd47388a2
mov dword [ebp - 0x34], 0x31cfb850
sub dword [ebp - 0x34], 0xf06356db
mov dword [ebp - 0x30], 0x8b4a3113
sub dword [ebp - 0x30], 0x27dac4a7
mov dword [ebp - 0x2c], 0xb8633f8f
add dword [ebp - 0x2c], 0x479cc071
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0xec8f8006
add eax, 0x13b100ce
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x39986
push 0
call eax
mov ecx, 0x26cab04a
add ecx, 0xd935a3b5
mov ebx, eax
mov edi, 0x411000
add edi, dword [ebp - 0x28]
mov edx, 0xb0805f9a
sub edx, 0xa380be6c
sub dword [ebp - 0x20], esi
mov esi, dword [edi]
mov dword [ebp - 8], 0x6a19bf55
sub esi, edx
xor dword [ebp - 0x24], edi
mov dword [ebx], esi
add ebx, 4
add edi, 0x913cd47c
sub edi, 0x913cd478
loop 0x4029a5
add eax, 0x67ff5b05
sub eax, 0x67fe1836
mov ebx, eax
add eax, 0x49a25b8c
sub eax, 0x49a25b87
mov ecx, 0xee423e4b
sub ecx, 0xee023e4b
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x402f20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55d8d0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5b0514]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
call fcn.00402ee0
mov ecx, dword [ebp + 0xc]
mov esi, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], esi
mov word [esi + 0xc], 0
push dword [ecx]
lea ecx, [esi + 0x10]
call fcn.004061d0
mov dword [esi + 0x28], 0
mov eax, esi
mov dword [esi + 0x30], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x409170
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
mov esi, ecx
push dword [ebp + 8]
mov byte [esi + 0x68], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
call fcn.004092b0
mov eax, esi
pop esi
pop ebp
ret 8

Function at 0x409ed0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x5b0514]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x409f71
cmp byte [esi + 0x3d], 0
je 0x409f71
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x409f27
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x409f39
sub eax, 1
je 0x409f3d
sub eax, 2
je 0x409f71
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00497d40
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x409f5a
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0052ab01
add esp, 0x10
cmp edi, eax
jne 0x409f27
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00497d40
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00497d40
mov esp, ebp
pop ebp
ret
Function at 0x40d750
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55e4f8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5b0514]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov eax, dword [edi]
mov dword [ebp - 0x18], 0
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [edi]
mov edx, dword [eax + 4]
lea eax, [edx - 0x18]
mov dword [edx + edi - 4], eax
mov eax, dword [edi]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov esi, dword [eax + 4]
add esi, edi
mov ecx, esi
call fcn.0040f5d0
mov eax, dword [ebp + 8]
mov dword [esi + 0x38], eax
mov eax, dword [esi + 0x30]
mov dword [esi + 0x3c], 0
mov dword [ebp - 4], 1
mov ecx, dword [eax + 4]
mov dword [ebp - 0x1c], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 2
push eax
call fcn.0040e640
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
call dword [edx + 0x30]
movzx ebx, ax
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x40d818
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x40d818
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov byte [ebp - 4], 0
cmp dword [esi + 0x38], 0
mov word [esi + 0x40], bx
jne 0x40d836
mov eax, dword [esi + 0xc]
mov ecx, esi
push 0
or eax, 4
push eax
call fcn.00406b40
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4119f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55e8be
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5b0514]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
mov edx, eax
shr edx, 0x10
test edx, edx
je 0x411ad0
cmp word [eax], 0x3c
je 0x411ad0
mov ecx, dword fs:[0x2c]
mov edx, dword [ecx]
mov ecx, dword [0x5bab14]
cmp ecx, dword [edx + 4]
jle 0x411ab7
push 0x5bab14
call fcn.004982ba
add esp, 4
cmp dword [0x5bab14], 0xffffffff
jne 0x411ab4
push 0x1f8
mov dword [ebp - 4], 0
call fcn.004810d1
mov edi, eax
add esp, 4
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 1
test edi, edi
je 0x411a99
push 0x1f8
push 0
push edi
call fcn.00521a60
add esp, 0xc
mov ecx, edi
call fcn.004be8d0
jmp 0x411a9b
xor eax, eax
push 0x5bab14
mov dword [0x5bab18], eax
mov dword [ebp - 4], 0xffffffff
call fcn.00498270
add esp, 4
mov eax, dword [ebp + 8]
mov ecx, dword [0x5bab18]
push eax
call fcn.004beaf0
mov ecx, eax
mov eax, dword [ebp + 8]
test ecx, ecx
cmovne eax, ecx
mov dword [ebp + 8], eax
mov ecx, eax
shr ecx, 0x10
test ecx, ecx
je 0x411b2b
cmp word [eax], 0x3c
mov ecx, esi
jne 0x411b05
push eax
call fcn.004bcf30
test al, al
jne 0x411b95
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push 0
push eax
call fcn.004bcfa0
test al, al
jne 0x411b95
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov edi, dword [esi + 0x148]
test edi, edi
jne 0x411b3f
call fcn.004ab0b0
mov edi, eax
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x411aef
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x411aef
mov eax, dword [ebp + 0x10]
push 0
push ebx
push edi
mov dword [esi + 0x140], eax
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_LockResource]
push eax
mov ecx, esi
call fcn.004bd650
test al, al
je 0x411aef
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x144], eax
push dword [ebp + 0x18]
mov ecx, esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00411bc0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x413450
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x5b0514]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
lea eax, [ebp - 0x210]
mov edi, edx
push 0
push eax
mov esi, ecx
call fcn.00521a60
push 0x208
lea eax, [ebp - 0x418]
push 0
push eax
call fcn.00521a60
add esp, 0x18
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
js 0x4135b6
lea eax, [ebp - 0x41c]
push eax
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x4135aa
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x41c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x413598
push 0x104
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.DLL_GetShortPathNameW]
lea edx, [ebp - 0x210]
lea ecx, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x413500
sub edx, ecx
mov dword [ebp - 0x428], 0
xor eax, eax
sar edx, 1
mov word [ebp - 0x438], ax
lea ecx, [ebp - 0x210]
lea eax, [ebp - 0x210]
mov dword [ebp - 0x424], 7
lea eax, [eax + edx*2]
cmp ecx, eax
je 0x41354e
mov eax, ecx
lea ecx, [ebp - 0x438]
push edx
push eax
call fcn.00410900
lea eax, [ebp - 0x438]
mov ecx, edi
push eax
call fcn.0040be40
mov edx, dword [ebp - 0x424]
cmp edx, 8
jb 0x413598
mov ecx, dword [ebp - 0x438]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41358e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4135c6
push edx
push ecx
call fcn.00497d51
add esp, 8
mov eax, dword [ebp - 0x420]
push dword [ebp - 0x41c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x420]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00497d40
mov esp, ebp
pop ebp
ret
call fcn.00524a29
int3
Function at 0x414590
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55eb0d
mov eax, dword fs:[0]
push eax
mov eax, 0x29b4
call fcn.00498a90
mov eax, dword [0x5b0514]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x299c], edi
mov dword [ebp - 0x29a4], edi
mov dword [ebp - 0x29a0], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
lea eax, [ebp - 0x2994]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x2990]
mov dword [ebp - 0x29a0], 1
push eax
mov dword [ebp - 0x2994], 0x2880
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x414740
lea esi, [ebp - 0x2990]
mov dword [ebp - 0x2998], esi
nop
movzx eax, byte [esi + 0x199]
push eax
movzx eax, byte [esi + 0x198]
push eax
movzx eax, byte [esi + 0x197]
push eax
movzx eax, byte [esi + 0x196]
push eax
movzx eax, byte [esi + 0x195]
push eax
movzx eax, byte [esi + 0x194]
push eax
push str._02x_02x_02x_02x_02x_02x
lea eax, [ebp - 0x110]
push 0x100
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x24
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x29bc]
push 0x58c2cc
push eax
call fcn.004135d0
add esp, 0xc
mov dword [ebp - 4], 1
mov edx, eax
cmp dword [eax + 0x14], 0x10
jb 0x4146a6
mov edx, dword [eax]
mov ebx, dword [eax + 0x10]
mov eax, dword [edi + 0x14]
mov ecx, dword [edi + 0x10]
sub eax, ecx
cmp ebx, eax
ja 0x4146df
cmp dword [edi + 0x14], 0x10
lea eax, [ecx + ebx]
mov dword [edi + 0x10], eax
mov eax, edi
jb 0x4146c5
mov eax, dword [edi]
push ebx
lea esi, [eax + ecx]
push edx
push esi
call fcn.005214e0
mov byte [esi + ebx], 0
add esp, 0xc
mov esi, dword [ebp - 0x2998]
jmp 0x4146f6
push ebx
push edx
mov byte [ebp - 0x299c], 0
mov ecx, edi
push dword [ebp - 0x299c]
push ebx
call fcn.00406000
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x29a8]
cmp edx, 0x10
jb 0x414730
mov ecx, dword [ebp - 0x29bc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x414726
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41475e
push edx
push ecx
call fcn.00497d51
add esp, 8
mov esi, dword [esi]
mov dword [ebp - 0x2998], esi
test esi, esi
jne 0x414630
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00497d40
mov esp, ebp
pop ebp
ret
call fcn.00524a29
int3
Function at 0x417040
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x5b0514]
xor eax, ebp
mov dword [ebp - 8], eax
push edi
xor eax, eax
mov dword [ebp - 0x54], 0x44
mov word [ebp - 0x12], ax
xorps xmm0, xmm0
lea eax, [ebp - 0x64]
movlpd qword [ebp - 0x50], xmm0
push eax
lea eax, [ebp - 0x54]
movlpd qword [ebp - 0x48], xmm0
push eax
push 0
push 0
push 0x10
push 0
push 0
push 0
push ecx
push 0
movlpd qword [ebp - 0x40], xmm0
movlpd qword [ebp - 0x38], xmm0
movlpd qword [ebp - 0x30], xmm0
movlpd qword [ebp - 0x22], xmm0
movlpd qword [ebp - 0x1a], xmm0
movups xmmword [ebp - 0x64], xmm0
mov dword [ebp - 0x28], 1
mov word [ebp - 0x24], dx
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
mov edi, eax
test edi, edi
je 0x4170ca
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, edi
mov ecx, dword [ebp - 8]
xor ecx, ebp
pop edi
call fcn.00497d40
mov esp, ebp
pop ebp
ret

Function at 0x4170e0
Capabilities:
Get file size

Disassembly:
push edi
push 0
push 0
push 3
push 0
push 1
push 8
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x417113
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, esi
pop esi
pop edi
ret
xor eax, eax
pop edi
ret

Function at 0x417120
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55ecb8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x5b0514]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push str.UIDowner
lea eax, [ebp - 0x44]
mov dword [ebp - 0x14], edx
push str.Software_s_repeat
push eax
call fcn.00413710
add esp, 0xc
push esi
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0
push 0x58b64c
push eax
call fcn.00413710
add esp, 0xc
lea edx, [ebp - 0x14]
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x44]
cmovae ecx, dword [ebp - 0x2c]
cmp dword [ebp - 0x30], 8
push 4
cmovae eax, dword [ebp - 0x44]
push edx
push 4
push ecx
push eax
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov edx, dword [ebp - 0x18]
mov esi, eax
neg esi
sbb esi, esi
cmp edx, 8
jb 0x4171e4
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4171da
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41724b
push edx
push ecx
call fcn.00497d51
add esp, 8
mov edx, dword [ebp - 0x30]
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
cmp edx, 8
jb 0x41722e
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x417224
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417250
push edx
push ecx
call fcn.00497d51
add esp, 8
lea eax, [esi + 1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00497d40
mov esp, ebp
pop ebp
ret
call fcn.00524a29
call fcn.00524a29
int3
Function at 0x417280
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5b0514]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, edx
lea edx, [ebp - 0xc]
mov dword [ebp - 0x14], eax
push edx
push 0
lea edx, [ebp - 8]
mov dword [ebp - 0xc], 0
push edx
mov esi, ecx
mov ecx, dword [ebp + 8]
push ecx
push eax
push esi
mov dword [ebp - 0x10], ecx
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x417367
cmp dword [ebp - 8], 1
jne 0x417367
mov eax, dword [ebp - 0xc]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00481109
mov ecx, dword [ebp - 0xc]
mov ebx, eax
lea ecx, [ecx*2 + 2]
push ecx
push 0
push ebx
call fcn.00521a60
add esp, 0x10
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x417367
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x417325
mov ecx, dword [edi]
mov eax, dword [edi + 0x10]
push ebx
lea esi, [ecx + eax*2]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
shl eax, 2
mov ecx, edi
cmp dword [edi + 0x14], 8
jb 0x41733f
mov ecx, dword [edi]
sar eax, 1
sub esi, ecx
push eax
push ebx
push 0
sar esi, 1
mov ecx, edi
push esi
call fcn.0041bc50
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00497d40
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00497d40
mov esp, ebp
pop ebp
ret
Function at 0x418290
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x5b0514]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x58cf14
push ecx
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
mov edi, edx
call fcn.0052e332
mov eax, dword [ebp - 8]
add esp, 0xc
test eax, eax
jne 0x4182d2
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00497d40
mov esp, ebp
pop ebp
ret
push esi
push eax
push 1
push dword [ebp + 8]
xor esi, esi
push edi
call fcn.0052ab01
test eax, eax
mov ecx, 1
cmovne esi, ecx
push dword [ebp - 8]
call fcn.0052ad61
mov ecx, dword [ebp - 4]
add esp, 0x14
mov eax, esi
xor ecx, ebp
pop esi
pop edi
call fcn.00497d40
mov esp, ebp
pop ebp
ret