joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401a70
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x501919
push eax
mov dword fs:[0], esp
sub esp, 0x25c
push ebx
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x401b2e
lea eax, [ebp - 0x268]
push eax
push esi
mov dword [ebp - 0x268], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x401b27
mov edi, dword [sym.imp.MSVCR80.dll__wcsupr_s]
lea ecx, [ebp - 0x244]
push ecx
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov dword [ebp - 4], 0
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x401ae9
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x14]
add edx, 1
push edx
push eax
call edi
mov ecx, dword [ebp + 8]
add esp, 8
lea eax, [ebp - 0x28]
push eax
push ecx
lea ebx, [ebp - 0x34]
call fcn.00401f50
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea edx, [ebp - 0x268]
push edx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x401ac6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x402d90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x50441c
push eax
mov dword fs:[0], esp
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [esi + 4], edi
mov dword [esi], vtable.CDSkin.0
mov dword [esi + 8], edi
mov dword [ebp - 4], edi
mov dword [esi + 0xc], 0xffffffff
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
call fcn.004076b0
mov dword [esi + 0x1c], eax
mov cl, 1
mov byte [eax + 0x2d], cl
mov eax, dword [esi + 0x1c]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x1c]
mov dword [eax], eax
mov eax, dword [esi + 0x1c]
mov dword [eax + 8], eax
mov dword [esi + 0x20], edi
mov byte [ebp - 4], cl
call fcn.00406310
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
pop edi
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40aba0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
push esi
push edi
mov edi, eax
mov esi, edx
jne 0x40abaf
pop edi
xor eax, eax
pop esi
ret
cmp edi, 8
not esi
jb 0x40ac97
push ebp
mov ebp, edi
shr ebp, 3
movzx edx, byte [ecx]
xor edx, esi
and edx, 0xff
add ecx, 1
mov eax, esi
shr eax, 8
xor eax, dword [edx*4 + 0x526578]
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x526578]
movzx edx, byte [ecx + 1]
xor edx, eax
and edx, 0xff
add ecx, 1
shr eax, 8
xor eax, dword [edx*4 + 0x526578]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x526578]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x526578]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x526578]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x526578]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x526578]
add ecx, 1
sub edi, 8
sub ebp, 1
mov esi, eax
jne 0x40abc0
pop ebp
test edi, edi
je 0x40acbc
jmp 0x40aca0
movzx eax, byte [ecx]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x526578]
add ecx, 1
sub edi, 1
jne 0x40aca0
mov eax, esi
pop edi
not eax
pop esi
ret

Function at 0x40acd0
Capabilities:
Hash data with crc32

Disassembly:
mov eax, dword [edx]
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x526578]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
add eax, 1
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x526578]
mov dword [edx + 8], ecx
ret

Function at 0x40ad20
Capabilities:
Hash data with crc32

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
xor al, bl
movzx ebx, al
xor ebx, edx
shr edx, 8
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x526578]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
add edx, 1
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x526578]
pop ebx
mov dword [esi + 8], ecx
ret

Function at 0x40b490
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ebx
imul esi, dword [esp + 8]
cmp byte [edi], 0
je 0x40b4c2
mov ecx, dword [edi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40b4b8
mov byte [edi + 8], 1
mov eax, dword [esp + 8]
xor edx, edx
div ebx
pop esi
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
push ebp
lea ebp, [ecx + esi]
cmp ebp, eax
pop ebp
jbe 0x40b4d5
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
push esi
add eax, ecx
push eax
push edx
call sub.MSVCR80.dll_memcpy
add dword [edi + 0x1c], esi
mov eax, esi
add esp, 0xc
xor edx, edx
div ebx
pop esi
ret
Function at 0x40b6a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
cmp byte [esi], 0
je 0x40b6e5
cmp byte [esi + 1], 0
je 0x40b6ed
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebp
je 0x40b702
cmp byte [esi + 1], 0
je 0x40b6f4
mov eax, dword [esi + 4]
push 1
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub eax, dword [esi + 0xc]
mov ebp, eax
mov dword [esp + 4], ebp
jmp 0x40b70b
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x40b6be
or eax, 0xffffffff
add esp, 0x18
ret
mov dword [esp + 4], 0
mov ebp, dword [esp + 4]
jmp 0x40b70b
mov edx, dword [esi + 0x1c]
mov dword [esp + 4], edx
mov ebp, edx
push edi
mov edi, 0xffff
cmp ebp, edi
mov dword [esp + 0xc], edi
jae 0x40b71f
mov dword [esp + 0xc], ebp
mov edi, ebp
push ebx
push 0x404
call dword [sym.imp.MSVCR80.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x40b73e
pop ebx
pop edi
or eax, 0xffffffff
pop ebp
add esp, 0x18
ret
mov eax, 4
cmp edi, eax
mov dword [esp + 0x18], 0xffffffff
jbe 0x40b863
jmp 0x40b76c
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0xc]
add eax, 0x400
cmp eax, edi
mov dword [esp + 0x14], edi
ja 0x40b77d
mov dword [esp + 0x14], eax
mov eax, ebp
sub eax, dword [esp + 0x14]
sub ebp, eax
cmp ebp, 0x404
mov dword [esp + 0x20], eax
jbe 0x40b796
mov ebp, 0x404
cmp byte [esi], 0
je 0x40b7bb
cmp byte [esi + 1], 0
je 0x40b863
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x40b7be
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebp
je 0x40b7e6
mov ecx, dword [esi + 4]
push 0
lea eax, [esp + 0x20]
push eax
push ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40b7e0
mov byte [esi + 8], 1
mov eax, dword [esp + 0x1c]
jmp 0x40b80c
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebp]
cmp edx, ecx
jbe 0x40b7f7
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
push edi
add ecx, eax
push ecx
push ebx
call sub.MSVCR80.dll_memcpy
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebp
cmp eax, 1
jne 0x40b863
lea eax, [ebp - 3]
test eax, eax
jl 0x40b84e
lea esp, [esp]
sub eax, 1
cmp byte [eax + ebx], 0x50
jne 0x40b83e
cmp byte [eax + ebx + 1], 0x4b
jne 0x40b83e
cmp byte [eax + ebx + 2], 5
jne 0x40b83e
cmp byte [eax + ebx + 3], 6
je 0x40b844
test eax, eax
jge 0x40b820
jmp 0x40b84e
mov edx, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0
jne 0x40b863
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jb 0x40b760
push ebx
call dword [sym.imp.MSVCR80.dll_free]
mov eax, dword [esp + 0x1c]
add esp, 4
pop ebx
pop edi
pop ebp
add esp, 0x18
ret
Function at 0x40bf90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
xor ebx, ebx
cmp ebp, ebx
jne 0x40bfaa
pop ebp
mov eax, 0xffffff9a
pop ebx
add esp, 8
ret
cmp dword [ebp + 0x18], ebx
je 0x40bf9f
cmp dword [ebp + 0x7c], ebx
je 0x40bfbd
mov ebx, ebp
call fcn.0040c380
xor ebx, ebx
push edi
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
mov edi, ebp
call fcn.0040bdb0
add esp, 0xc
test eax, eax
je 0x40bfe7
pop edi
pop ebp
mov eax, 0xffffff99
pop ebx
add esp, 8
ret
push esi
mov esi, dword [sym.imp.MSVCR80.dll_malloc]
push 0x84
call esi
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x40c029
push 0x4000
call esi
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
add esp, 4
cmp eax, ebx
mov dword [edi], eax
mov dword [edi + 0x44], ecx
mov dword [edi + 0x48], edx
mov dword [edi + 0x4c], ebx
jne 0x40c036
push edi
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
pop esi
pop edi
pop ebp
mov eax, 0xffffff98
pop ebx
add esp, 8
ret
mov dword [edi + 0x40], ebx
mov ecx, dword [ebp + 0x3c]
xor eax, eax
cmp dword [ebp + 0x34], ebx
mov dword [edi + 0x54], ecx
mov dword [edi + 0x50], ebx
mov edx, dword [ebp + 0x34]
sete al
mov dword [edi + 0x64], edx
mov ecx, dword [ebp]
mov dword [edi + 0x60], ecx
mov edx, dword [ebp + 0xc]
mov dword [edi + 0x68], edx
mov dword [edi + 0x18], ebx
cmp eax, ebx
jne 0x40c07f
lea esi, [edi + 4]
mov dword [edi + 0x24], ebx
mov dword [edi + 0x28], ebx
mov dword [edi + 0x2c], ebx
call fcn.0040af90
test eax, eax
jne 0x40c07f
mov dword [edi + 0x40], 1
mov eax, dword [ebp + 0x40]
mov dword [edi + 0x58], eax
mov ecx, dword [ebp + 0x44]
mov dword [edi + 0x5c], ecx
mov dl, byte [ebp + 0x30]
and dl, 1
mov byte [edi + 0x6c], dl
mov eax, dword [ebp + 0x30]
shr eax, 3
test al, 1
je 0x40c0a9
mov cl, byte [ebp + 0x39]
mov byte [edi + 0x80], cl
jmp 0x40c0b2
mov dl, byte [ebp + 0x3f]
mov byte [edi + 0x80], dl
mov al, byte [edi + 0x6c]
mov esi, dword [esp + 0x20]
neg al
lea edx, [edi + 0x70]
mov dword [edx], 0x12345678
mov dword [edi + 0x74], 0x23456789
mov dword [edi + 0x78], 0x34567890
sbb eax, eax
and eax, 0xc
cmp esi, ebx
mov dword [edi + 0x7c], eax
je 0x40c0f0
mov edi, edi
mov cl, byte [esi]
cmp cl, bl
je 0x40c0f0
call fcn.0040acd0
add esi, 1
jne 0x40c0e0
mov ecx, dword [ebp + 0x78]
mov edx, dword [esp + 0x14]
lea eax, [ecx + edx + 0x1e]
mov dword [edi + 0x3c], eax
mov dword [edi + 8], ebx
pop esi
mov dword [ebp + 0x7c], edi
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x40c400
Capabilities:
Get common file path

Disassembly:
push ecx
cmp dword [esi], 0
push edi
jne 0x40c49f
cmp dword [esi + 4], 0xffffffff
jne 0x40c49f
lea edi, [esi + 0x244]
push edi
push 0x103
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c430
sub eax, edx
sar eax, 1
movzx ecx, word [esi + eax*2 + 0x242]
cmp cx, 0x5c
je 0x40c467
cmp cx, 0x2f
je 0x40c467
mov word [esi + eax*2 + 0x244], 0x2f
mov word [esi + eax*2 + 0x246], 0
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x10]
call fcn.0040b3f0
add esp, 4
test eax, eax
jne 0x40c485
mov eax, dword [esp + 0xc]
pop edi
pop ecx
ret 4
call fcn.0040b880
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
pop ecx
ret 4
mov eax, 0x1000000
pop edi
pop ecx
ret 4
Function at 0x40ca80
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x410
push ebx
mov ebx, dword [esp + 0x418]
push ebp
xor ebp, ebp
cmp ebx, ebp
push esi
je 0x40cb03
push 0x104
lea eax, [esp + 0x218]
push ebx
push eax
call dword [sym.imp.MSVCR80.dll_wcsncpy]
lea eax, [esp + 0x220]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x40cab7
sub eax, edx
sar eax, 1
je 0x40cae1
lea ecx, [esp + eax*2 + 0x212]
movzx eax, word [ecx]
cmp ax, 0x2f
je 0x40cade
cmp ax, 0x5c
jne 0x40cae1
mov word [ecx], bp
lea ecx, [esp + 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40cb03
push ebp
lea edx, [esp + 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, dword [esp + 0x424]
movzx eax, word [esi]
cmp ax, bp
je 0x40cbea
mov ecx, esi
mov edx, esi
movzx eax, ax
lea ecx, [ecx]
cmp ax, 0x2f
je 0x40cb2c
cmp ax, 0x5c
jne 0x40cb2e
mov ecx, edx
movzx eax, word [edx + 2]
add edx, 2
cmp ax, bp
jne 0x40cb20
cmp ecx, esi
je 0x40cb70
sub ecx, esi
sar ecx, 1
push edi
add ecx, ecx
mov edi, ecx
push edi
lea eax, [esp + 0x21c]
push esi
push eax
call sub.MSVCR80.dll_memcpy
lea ecx, [esp + 0x224]
push ecx
push ebx
mov word [esp + edi + 0x22c], bp
call fcn.0040ca80
add esp, 0x14
pop edi
cmp ebx, ebp
mov word [esp + 0xc], bp
je 0x40cb8d
push 0x104
lea edx, [esp + 0x10]
push ebx
push edx
call dword [sym.imp.MSVCR80.dll_wcsncpy]
add esp, 0xc
lea eax, [esp + 0xc]
mov word [esp + 0x212], bp
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x40cba0
sub eax, edx
sar eax, 1
mov ecx, 0x104
sub ecx, eax
push ecx
lea edx, [esp + eax*2 + 0x10]
push esi
push edx
call dword [sym.imp.MSVCR80.dll_wcsncpy]
add esp, 0xc
lea eax, [esp + 0xc]
push eax
mov word [esp + 0x216], bp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40cbea
push ebp
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop esi
pop ebp
pop ebx
add esp, 0x410
ret
Function at 0x40f660
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x218
mov edx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
lea ecx, [esp + 0x10]
push ecx
push 0x2001f
push 0
push edx
push eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 8]
mov esi, eax
test esi, esi
jne 0x40f6c0
test ecx, ecx
je 0x40f6b2
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x10]
mov esi, eax
mov dword [esp + 8], ecx
je 0x40f6d9
test ecx, ecx
je 0x40f778
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x34]
push eax
push 0
push ecx
mov dword [esp + 0x2c], 0x100
call esi
test eax, eax
jne 0x40f743
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0xc]
call fcn.0040f660
mov edi, eax
test edi, edi
jne 0x40f782
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0xc]
push eax
push eax
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
push ecx
push edi
push edx
mov dword [esp + 0x2c], 0x100
call esi
test eax, eax
je 0x40f705
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 8]
test eax, eax
je 0x40f75a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 8], 0
mov eax, dword [ebp + 8]
mov ecx, dword [edi]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [esp + 8]
test eax, eax
je 0x40f778
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esp + 8]
test eax, eax
je 0x40f791
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40f7a0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
mov edi, ecx
jne 0x40f7b6
push 0x80004005
call fcn.0040e250
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
lea eax, [eax + eax + 2]
push eax
mov eax, dword [edi]
push esi
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc

Function at 0x40f880
Capabilities:
Set registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
mov dword [esp + 4], ecx
jne 0x40f898
push 0x80004005
call fcn.0040e250
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
add eax, 1
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x40f8a5
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret 8
Function at 0x40ffc0
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x6d0
push esi
push edi
mov esi, ecx
call dword [0x564660]
mov edi, dword [0x572a20]
push 0x104
lea eax, [esp + 0x220]
push eax
push edi
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x410004
call fcn.00410170
pop edi
pop esi
add esp, 0x6d0
ret
cmp eax, 0x104
jne 0x410022
lea ecx, [esp + 8]
call fcn.0040e290
pop edi
mov eax, 0x8007007a
pop esi
add esp, 0x6d0
ret
test edi, edi
je 0x41003b
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp edi, eax
je 0x41003b
lea edx, [esp + 0x21c]
jmp 0x410081
lea ecx, [esp + 0x21c]
push ecx
lea edx, [esp + 0x16]
push 0x105
mov edi, 0x22
push edx
mov word [esp + 0x1c], di
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
push eax
call fcn.0040f8e0
add esp, 0x10
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov word [esp + eax*2 + 0x10], di
mov word [esp + eax*2 + 0x12], 0
lea edx, [esp + 0x10]
mov ecx, dword [esi]
mov eax, dword [ecx + 0xc]
push edx
push str.Module
push esi
call eax
mov edi, eax
test edi, edi
jl 0x410157
mov ecx, dword [esi]
mov eax, dword [ecx + 0xc]
lea edx, [esp + 0x21c]
push edx
push str.Module_Raw
push esi
call eax
mov edi, eax
test edi, edi
jl 0x410157
lea ecx, [esp + 0xc]
push ecx
push 0x573014
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov edi, eax
test edi, edi
jl 0x410157
mov eax, dword [esp + 0xc]
mov edx, dword [esi]
mov ecx, dword [edx + 0xc]
push eax
push str.MODULEGUID
push esi
call ecx
mov edx, dword [esp + 0xc]
push edx
mov edi, eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
test edi, edi
jl 0x410157
push 0x2000
push 0x2b4
lea eax, [esp + 0x42c]
push eax
push 0
lea ecx, [esp + 0x22c]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
jne 0x41012f
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
push str.InprocServer32
push str.MODULETYPE
push esi
call eax
jmp 0x410141
mov ecx, dword [esi]
mov edx, dword [ecx + 0xc]
push str.LocalServer32
push str.MODULETYPE
push esi
call edx
mov edi, eax
test edi, edi
jl 0x410157
mov ecx, dword [0x573010]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
push esi
call edx
mov edi, eax
lea ecx, [esp + 8]
call fcn.0040e290
mov eax, edi
pop edi
pop esi
add esp, 0x6d0
ret
Function at 0x413d60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x50227d
push eax
mov dword fs:[0], esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_void_]
mov ecx, esi
call edi
lea ecx, [esi + 4]
mov dword [ebp - 4], 0
call edi
lea ecx, [esi + 8]
mov byte [ebp - 4], 1
call edi
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 2
call edi
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 3
call edi
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x20], 0
xor eax, eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
pop edi
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x417b40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x50227d
push eax
mov dword fs:[0], esp
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 4], 3
mov edi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [esi + 0x30]
call edi
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 2
call edi
lea ecx, [esi + 8]
mov byte [ebp - 4], 1
call edi
lea ecx, [esi + 4]
mov byte [ebp - 4], 0
call edi
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call edi
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x419170
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x50227d
push eax
mov dword fs:[0], esp
push ebx
mov ebx, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__]
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, esi
call ebx
lea eax, [edi + 4]
push eax
lea ecx, [esi + 4]
mov dword [ebp - 4], 0
call ebx
lea ecx, [edi + 8]
push ecx
lea ecx, [esi + 8]
mov byte [ebp - 4], 1
call ebx
lea edx, [edi + 0xc]
push edx
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 2
call ebx
mov byte [ebp - 4], 3
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
mov ecx, dword [edi + 0x14]
mov dword [esi + 0x14], ecx
mov edx, dword [edi + 0x18]
mov dword [esi + 0x18], edx
mov eax, dword [edi + 0x1c]
mov dword [esi + 0x1c], eax
mov ecx, dword [edi + 0x20]
mov dword [esi + 0x20], ecx
fld qword [edi + 0x28]
lea edx, [edi + 0x30]
fstp qword [esi + 0x28]
push edx
lea ecx, [esi + 0x30]
call ebx
mov eax, dword [edi + 0x34]
mov dword [esi + 0x34], eax
mov ecx, dword [edi + 0x38]
mov dword [esi + 0x38], ecx
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41b4a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x50305e
push eax
mov dword fs:[0], esp
push ebx
push esi
push edi
mov esi, ecx
lea eax, [esi - 1]
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
cmp dword [ebp + 0xc], esi
mov dword [ebp - 4], 0
jge 0x41b509
mov ecx, dword [ebp + 8]
mov eax, ebx
shl eax, 6
lea edx, [ebp + 0x10]
lea edi, [eax + ecx]
push edx
push edi
call dword [ebp + 0x50]
add esp, 8
test al, al
je 0x41b509
shl esi, 6
add esi, dword [ebp + 8]
call fcn.0041a0b0
lea eax, [ebx - 1]
cdq
sub eax, edx
mov esi, ebx
sar eax, 1
cmp dword [ebp + 0xc], esi
mov ebx, eax
jl 0x41b4d3
mov edi, dword [reloc.Common.dll___4CTXStringW__QAEAAV0_ABV0__Z]
shl esi, 6
add esi, dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
mov ecx, esi
call edi
lea ecx, [ebp + 0x14]
push ecx
lea ecx, [esi + 4]
call edi
lea edx, [ebp + 0x18]
push edx
lea ecx, [esi + 8]
call edi
lea eax, [ebp + 0x1c]
push eax
lea ecx, [esi + 0xc]
call edi
fld qword [ebp + 0x38]
mov ecx, dword [ebp + 0x20]
fstp qword [esi + 0x28]
mov edx, dword [ebp + 0x24]
mov eax, dword [ebp + 0x28]
mov dword [esi + 0x10], ecx
mov ecx, dword [ebp + 0x2c]
mov dword [esi + 0x14], edx
mov edx, dword [ebp + 0x30]
mov dword [esi + 0x18], eax
lea eax, [ebp + 0x40]
mov dword [esi + 0x1c], ecx
push eax
lea ecx, [esi + 0x30]
mov dword [esi + 0x20], edx
call edi
mov ecx, dword [ebp + 0x44]
mov edx, dword [ebp + 0x48]
mov dword [esi + 0x34], ecx
mov dword [esi + 0x38], edx
mov dword [ebp - 4], 4
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [ebp + 0x40]
call esi
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 3
call esi
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 2
call esi
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 1
call esi
lea ecx, [ebp + 0x10]
mov dword [ebp - 4], 0xffffffff
call esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret