joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4073a0
Capabilities:
Start service

Disassembly:
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x4073c7
push str.CWFP::_StartService___failed_to_open_SCM_n
call fcn.00402a00
add esp, 4
xor al, al
pop edi
ret
mov eax, dword [esp + 8]
cmp dword [eax + 0x18], 0x10
jb 0x4073d6
mov eax, dword [eax + 4]
jmp 0x4073d9
add eax, 4
push esi
push 0x10
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x40740a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CWFP::_StartService___failed_to_open_service_with_error_code:__i_n
call fcn.00402a00
add esp, 8
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
xor al, al
pop edi
ret
push ebx
push 0
push 0
push esi
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x407430
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov bl, 1
call esi
push edi
call esi
mov al, bl
pop ebx
pop esi
pop edi
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x41bef8
call fcn.00402a00
add esp, 8
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov al, bl
pop ebx
pop esi
pop edi
ret

Function at 0x407460
Capabilities:
Query service status

Disassembly:
sub esp, 0x24
push ebp
mov ebp, dword [esp + 0x30]
push edi
push 4
push 0
push 0
mov byte [ebp], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x407494
push str.CWFP::_IsServiceUp___failed_to_open_SCM_n
call fcn.00402a00
add esp, 4
pop edi
xor al, al
pop ebp
add esp, 0x24
ret
mov eax, dword [esp + 0x30]
cmp dword [eax + 0x18], 0x10
jb 0x4074a3
mov eax, dword [eax + 4]
jmp 0x4074a6
add eax, 4
push esi
push 4
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x4074db
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CWFP::_IsServiceUp___failed_to_open_service_with_error_code:__i_n
call fcn.00402a00
add esp, 8
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop edi
xor al, al
pop ebp
add esp, 0x24
ret
push ebx
lea eax, [esp + 0x3c]
push eax
push 0x24
lea ecx, [esp + 0x18]
push ecx
push 0
push esi
xor bl, bl
mov dword [esp + 0x50], 0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x407518
mov eax, dword [esp + 0x14]
cmp eax, 4
sete bl
test bl, bl
jne 0x40752c
cmp eax, 2
sete dl
mov byte [ebp], dl
jmp 0x40752c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CWFP::_IsServiceUp___failed_to_query_service_with_error_code:__i_n
call fcn.00402a00
add esp, 8
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov al, bl
pop ebx
pop esi
pop edi
pop ebp
add esp, 0x24
ret
Function at 0x407c30
Capabilities:
Delete service

Disassembly:
push 0xffffffffffffffff
push 0x41a020
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x421110]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov esi, dword [esp + 0x58]
cmp dword [esi + 0x14], 0
jne 0x407c85
push str.CWFP::UninstallWFP___Wrong_data_n
call fcn.00402a00
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x44
ret
push esi
call fcn.00407550
add esp, 4
test al, al
jne 0x407cf3
lea eax, [esp + 0x10]
push eax
call fcn.00407c00
add esp, 4
mov esi, 0x10
mov dword [esp + 0x50], 0
cmp dword [eax + 0x18], esi
jb 0x407cb6
mov eax, dword [eax + 4]
jmp 0x407cb9
add eax, 4
push eax
push str._s_isnt_installed__cant_uninstall_n
call fcn.00402a00
add esp, 8
cmp dword [esp + 0x28], esi
jb 0x407e03
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00408f5f
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x44
ret
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x407d28
push str.CWFP::UninstallWFP___Failed_to_open_SCM
call fcn.00402a00
add esp, 4
lea eax, [edi + 1]
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x44
ret
cmp dword [esi + 0x18], 8
jb 0x407d33
mov eax, dword [esi + 4]
jmp 0x407d36
lea eax, [esi + 4]
push 0xf01ff
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x407d7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
push str.CWFP::UninstallWFP___Failed_to_open_service_with_error:__i_n
call fcn.00402a00
add esp, 8
mov eax, 1
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x44
ret
push esi
xor ebx, ebx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x407d93
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
test ebx, ebx
je 0x407dc9
push ebx
push str.CWFP::UninstallWFP___Failed_to_delete_service_with_error:__i_n
call fcn.00402a00
add esp, 8
mov eax, 1
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x44
ret
lea edx, [esp + 0x2c]
push edx
call fcn.00407c00
add esp, 4
cmp dword [eax + 0x18], 0x10
mov dword [esp + 0x50], 1
jb 0x407de9
mov eax, dword [eax + 4]
jmp 0x407dec
add eax, 4
push eax
push str._s_uninstalled_successfuly_n
call fcn.00402960
add esp, 8
lea ecx, [esp + 0x2c]
call fcn.00401440
xor eax, eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x44
ret
Function at 0x409a5b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x421110]
jne 0x409a65
repz ret
jmp fcn.0040d83c

Function at 0x413e5c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040c3d4
and dword [ebp - 4], 0
cmp dword [0x423008], 0
mov ebx, eax
jne 0x413f0d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x413fbe
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x413fbe
push eax
call fcn.0040c362
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x423008], eax
call esi
push eax
call fcn.0040c362
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42300c], eax
call esi
push eax
call fcn.0040c362
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x423010], eax
call esi
push eax
call fcn.0040c362
pop ecx
mov dword [0x423018], eax
test eax, eax
je 0x413f0d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040c362
pop ecx
mov dword [0x423014], eax
mov eax, dword [0x423014]
cmp eax, ebx
je 0x413f65
cmp dword [0x423018], ebx
je 0x413f65
push eax
call fcn.0040c3dd
push dword [0x423018]
mov esi, eax
call fcn.0040c3dd
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x413f65
test edi, edi
je 0x413f65
call esi
test eax, eax
je 0x413f5c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x413f5c
test byte [ebp - 0xc], 1
jne 0x413f65
or dword [ebp + 0x10], 0x200000
jmp 0x413f9e
mov eax, dword [0x42300c]
cmp eax, ebx
je 0x413f9e
push eax
call fcn.0040c3dd
pop ecx
test eax, eax
je 0x413f9e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x413f9e
mov eax, dword [0x423010]
cmp eax, ebx
je 0x413f9e
push eax
call fcn.0040c3dd
pop ecx
test eax, eax
je 0x413f9e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x423008]
call fcn.0040c3dd
pop ecx
test eax, eax
je 0x413fbe
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x413fc0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1e3f489
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov ecx, dword [0x1e3f028]
mov eax, dword [ecx + 0x3c]
push ebx
push esi
push edi
mov edi, dword [0x1e3f024]
add eax, ecx
cmp dword [edi + 0x78], ecx
mov dword [ebp - 0x18], eax
je 0x1e3f596
mov esi, dword [edi + 0x88]
test esi, esi
je 0x1e3f596
add esi, ecx
jmp 0x1e3f58a
and dword [ebp - 0x10], 0
lea eax, [esi + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 4]
sub eax, 8
cdq
sub eax, edx
sar eax, 1
test eax, eax
jle 0x1e3f587
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
mov ebx, eax
and ebx, 0xfff
add ebx, dword [esi]
add ebx, ecx
shr eax, 0xc
mov dword [ebp - 0x20], ebx
je 0x1e3f56c
cmp eax, 3
jne 0x1e3f59e
mov eax, dword [ebx]
mov dword [ebp - 4], eax
mov eax, ecx
sub eax, dword [edi + 0x78]
add dword [ebp - 4], eax
cmp dword [ebp - 4], ecx
jb 0x1e3f59e
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x50]
add eax, ecx
cmp dword [ebp - 4], eax
ja 0x1e3f59e
lea eax, [ebp - 8]
push eax
push 0x40
push 4
pop esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], esi
mov esi, dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
cld
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [0x1e3f028]
mov edi, dword [0x1e3f024]
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + 4]
add dword [ebp - 0xc], 2
inc dword [ebp - 0x10]
sub eax, 8
cdq
sub eax, edx
sar eax, 1
cmp dword [ebp - 0x10], eax
jl 0x1e3f4e1
add esi, dword [esi + 4]
cmp dword [esi], 0
mov dword [ebp - 0x14], esi
jne 0x1e3f4c4
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
xor eax, eax
jmp 0x1e3f599

Function at 0x1e3f5a2
Capabilities:
Check mutex on windows

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x8c
push ebx
push esi
push edi
push 6
pop ecx
mov esi, 0x1e3f0fc
lea edi, [ebp + 0x50]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [ebp + 0x50]
movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1e3f5c6
sub eax, edx
mov edx, eax
mov eax, dword [0x1e3f024]
add eax, 0x34
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1e3f5dc
sub eax, esi
mov ebx, eax
lea eax, [ebp + 0x50]
mov dword [ebp + 0x74], eax
lea eax, [ebp - 0x14]
mov dword [ebp + 0x6c], eax
mov dword [ebp + 0x70], edx
mov esi, dword [ebp + 0x74]
mov edi, dword [ebp + 0x6c]
mov ecx, dword [ebp + 0x70]
cld
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x1e3f024]
add eax, 0x34
push ebx
push eax
lea eax, [ebp + edx - 0x14]
push eax
call fcn.01e3f41c
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push 0
add ebx, edx
push 0
mov byte [ebp + ebx - 0x14], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
pop edi
pop esi
pop ebx
je 0x1e3f647
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1e3f647
xor eax, eax
inc eax
jmp 0x1e3f649
xor eax, eax
add ebp, 0x78
leave
ret
Function at 0x402f40
Capabilities:
Create new key via cryptacquirecontext
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 4]
mov dword [ebp - 4], esi
push 0x400
lea ecx, [esi + 0x10]
mov dword [esi], vtable.CCrypto.0
mov dword [edi], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
call fcn.0045e7b4
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0
push 1
push 0
push str.Container
push edi
call ebx
test eax, eax
jne 0x402fad
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x402fad
push 8
push 1
push 0
push str.Container
push edi
call ebx
test eax, eax
je 0x402fc2
lea eax, [esi + 0xc]
push eax
push 0
push 0
push 0x8003
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4030f0
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 4], 0
je 0x403176
mov eax, dword [esi + 0xc]
lea edi, [esi + 0xc]
test eax, eax
je 0x403176
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push edi
push 0
push 0
push 0x8003
push dword [esi + 4]
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x403176
mov eax, dword [esi + 8]
lea ebx, [esi + 8]
test eax, eax
je 0x403143
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov dword [ebx], 0
mov eax, dword [ebp + 8]
push 0
mov ecx, dword [eax - 0xc]
add ecx, ecx
push ecx
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x403176
push ebx
push 1
push dword [edi]
push 0x6602
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x403176
mov bl, 1
jmp 0x403178
xor bl, bl
mov eax, dword [ebp + 8]
or ecx, 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x403193
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret 4
Function at 0x403500
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x64dff0]
xor eax, esp
mov dword [esp + 0x10], eax
mov eax, ecx
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [esp + 0xc], eax
lea esi, [eax + 0x10]
mov dword [esp + 0x10], ecx
mov eax, dword [esi]
mov ecx, esi
push edi
mov eax, dword [eax + 0x34]
call eax
mov ecx, dword [esp + 0x10]
mov ebx, eax
mov esi, dword [esi]
mov edi, ebx
shld edx, edi, 1
push edx
add edi, edi
lea ecx, [ecx + 0x10]
push edi
call dword [esi + 0x30]
mov esi, dword [esp + 0x10]
lea ecx, [esi + 0x10]
call fcn.0045e933
push edi
mov dword [esp + 0x14], eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x18]
push ebx
push 0
push 1
push 0
push dword [esi + 8]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x403599
push ebx
call fcn.0045dc22
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.005a3521
mov esp, ebp
pop ebp
ret 4
mov esi, dword [esp + 0x14]
mov ecx, esi
push 0xffffffffffffffff
push 0
call fcn.0045fae2
push 0xffffffffffffffff
push dword [esp + 0x1c]
mov ecx, esi
call fcn.0045fae2
push dword [esp + 0x18]
push ebx
push dword [esi + 4]
call fcn.005a74a0
push ebx
call fcn.0045dc22
mov ecx, dword [esp + 0x2c]
add esp, 0x10
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005a3521
mov esp, ebp
pop ebp
ret 4

Function at 0x4035f0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [0x64dff0]
xor eax, esp
mov dword [esp + 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
push 0
push 0
mov eax, dword [edi + 0x10]
lea ecx, [edi + 0x10]
call dword [eax + 0x30]
push dword [esi + 8]
mov eax, dword [edi + 0x10]
lea ecx, [edi + 0x10]
push dword [esi + 4]
call dword [eax + 0x3c]
mov eax, dword [edi + 0x10]
lea ecx, [edi + 0x10]
call dword [eax + 0x4c]
lea ecx, [edi + 0x10]
call fcn.0045e933
mov ecx, dword [esi + 8]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x10]
mov esi, dword [esp + 0xc]
push eax
push esi
push 0
push 1
push 0
push dword [edi + 8]
mov dword [esp + 0x28], ecx
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x403680
push esi
call fcn.0045dc22
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.005a3521
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 0x10]
lea ecx, [edi + 0x10]
push 0
push dword [esp + 0x14]
call dword [eax + 0x30]
push dword [esp + 0x10]
mov eax, dword [edi + 0x10]
lea ecx, [edi + 0x10]
push esi
call dword [eax + 0x3c]
mov eax, dword [edi + 0x10]
lea ecx, [edi + 0x10]
call dword [eax + 0x4c]
mov eax, dword [edi + 0x10]
lea ecx, [edi + 0x10]
push 0
push 0
push 0
call dword [eax + 0x2c]
push esi
call fcn.0045dc22
mov ecx, dword [esp + 0x18]
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005a3521
mov esp, ebp
pop ebp
ret 4
Function at 0x404800
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
call fcn.0046c424
mov ecx, esi
call fcn.00404930
push 0
push 0
xorps xmm0, xmm0
mov dword [esi + 0x220], 0
push 0
push 0
mov dword [esi + 0x20c], 0
movsd qword [esi + 0x210], xmm0
movsd qword [esi + 0x1f8], xmm0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push esi
push 0x404230
push 0
push 0
mov dword [0x707178], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x20c], eax
mov eax, 1
pop esi
ret
Function at 0x4054b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.0046bc87

Function at 0x4059f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x405a05
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x405a46
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x405a42
nop word [eax + eax]
cmp esi, edx
jae 0x405a46
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x405a30
cmp esi, edx
jb 0x405a4b
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret

Function at 0x4064f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cd0b8
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x64dff0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
lea ecx, [esi + 4]
call fcn.004068f0
push 0
push 0
push esi
push 0x405cc0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp + 8]
call fcn.00406110
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x2c
Function at 0x4095f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cd3f8
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x64dff0]
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 dword [ebp - 4], 0
push dword [ebp + 8]
movzx eax, cx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4096dc
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x4096dc
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x4096dc
push esi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x4096dc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4096d5
push esi
push ebx
push eax
call fcn.005a74a0
add esp, 0xc
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
push 0
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x4096ce
mov ecx, dword [ebp - 0x14]
call fcn.0040c420
mov esi, eax
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test esi, esi
je 0x4096ce
mov eax, dword [esi + 8]
mov dword [esi + 8], 0
test eax, eax
je 0x4096de
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor esi, esi
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x409700
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
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.005a3521
mov esp, ebp
pop ebp
ret
Function at 0x40e3d0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cd700
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x64dff0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], edx
mov ebx, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 4], 0
push ebx
mov dword [ebp - 0x18], 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x40e464
push edi
call fcn.0045dc27
add esp, 4
mov esi, eax
push edi
push 0
push esi
call fcn.005a7a20
add esp, 0xc
push esi
push edi
push dword [ebp - 0x18]
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x40e482
push esi
call fcn.0045dc22
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005a3521
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], 0
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], 0
push eax
push 0x61b530
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
push esi
test eax, eax
je 0x40e45c
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
movzx eax, word [ecx + 0xa]
mov word [edx], ax
movzx eax, word [ecx + 8]
mov edx, dword [ebp - 0x28]
mov word [edx], ax
movzx eax, word [ecx + 0xe]
mov edx, dword [ebp - 0x2c]
mov word [edx], ax
movzx eax, word [ecx + 0xc]
mov ecx, dword [ebp - 0x30]
mov word [ecx], ax
call fcn.0045dc22
add esp, 4
mov al, 1
jmp 0x40e466

Function at 0x40e4f0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x64dff0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0xf003f
push 0
push dword [ebp + 8]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40e53e
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 8]
test eax, eax
je 0x40e588
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor bl, bl
mov edx, dword [ebp + 8]
push esi
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e55e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
pop esi
jg 0x40e577
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.005a3521
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
jmp 0x40e540