joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40870b
Capabilities:
Create directory
Get common file path
Get session user name

Disassembly:
push ebp
sub esp, 0x408
lea ebp, [esp - 4]
mov eax, dword [0x48d044]
xor eax, ebp
mov dword [ebp + 0x408], eax
push 0x14
mov eax, 0x464fa1
call fcn.00450d5a
xor ebx, ebx
mov dword [ebp - 4], ebx
push dword [ebp + 0x414]
push ebx
call fcn.00408501
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
cmp eax, ebx
jl 0x408827
mov word [ebp], bx
push 0x1fc
push ebx
lea eax, [ebp + 2]
push eax
call fcn.0044c8f0
add esp, 0xc
mov dword [ebp - 0x1c], 0xff
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp]
push eax
push dword [ebp - 0x1c]
lea esi, [ebp - 0x18]
call fcn.00405c51
mov byte [ebp - 4], 1
mov edi, 0x491ff8
call fcn.00404351
mov byte [ebp - 4], bl
push dword [ebp - 0x18]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov word [ebp + 0x200], bx
push 0x206
push ebx
lea eax, [ebp + 0x202]
push eax
call fcn.0044c8f0
add esp, 0xc
lea eax, [ebp + 0x200]
push eax
push ebx
push ebx
push 0x801a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [ebp - 0x14], eax
cmp eax, ebx
jl 0x408822
push str.PC_Suite_
lea eax, [ebp + 0x200]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push ebx
lea eax, [ebp + 0x200]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp + 0x200]
push eax
lea esi, [ebp - 0x18]
call fcn.004043af
mov byte [ebp - 4], 2
mov edi, 0x491ffc
call fcn.00404351
mov byte [ebp - 4], bl
push dword [ebp - 0x18]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
call fcn.004086f6
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x408]
xor ecx, ebp
call fcn.0044c8d7
add ebp, 0x40c
leave
ret
Function at 0x408899
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x48d044]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x10
mov eax, 0x465fa8
call fcn.00450d5a
mov ebx, ecx
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
cmp ebx, esi
je 0x4089aa
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
test eax, eax
jne 0x4089aa
push dword [0x491ffc]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
jne 0x408966
push esi
call fcn.0040870b
pop ecx
test eax, eax
jge 0x408966
mov word [ebp], si
push 0x206
push esi
lea eax, [ebp + 2]
push eax
call fcn.0044c8f0
add esp, 0xc
lea eax, [ebp]
push eax
push esi
push esi
push 0x23
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [ebp - 0x14], eax
cmp eax, esi
jl 0x408980
push str.PC_Suite_
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push esi
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp]
push eax
lea esi, [ebp - 0x18]
call fcn.004043af
mov byte [ebp - 4], 1
lea edi, [ebx + 8]
call fcn.00404351
mov byte [ebp - 4], 0
push dword [ebp - 0x18]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x408973
mov eax, 0x491ffc
lea edi, [ebx + 8]
call fcn.00404351
mov eax, 0x491ff8
lea edi, [ebx + 4]
call fcn.00404351
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0044c8d7
add ebp, 0x20c
leave
ret
mov eax, 0x80100012
jmp fcn.0040426a
Function at 0x409b89
Capabilities:
Delete file

Disassembly:
push 0x50
mov eax, 0x465f28
call fcn.00450d5a
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], ebx
mov byte [ebp - 4], 1
push 0x10000101
lea edi, [ebp - 0x1c]
call fcn.00405dad
mov byte [ebp - 4], 2
mov dword [esp], str.Click2Send.exe
mov eax, edi
push eax
call fcn.00405ae7
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x1c]
call fcn.0044e84e
pop ecx
pop ecx
test eax, eax
je 0x409bdd
mov eax, 0x80100024
jmp fcn.0040426a
lea esi, [ebp - 0x24]
call fcn.00408874
mov byte [ebp - 4], 3
push 0x10000104
lea edi, [ebp - 0x18]
call fcn.00405dad
pop ecx
mov byte [ebp - 4], 4
lea eax, [ebp + 8]
mov esi, edi
call fcn.00405c17
push str..lnk
mov eax, edi
push eax
call fcn.00405ae7
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 3
push dword [ebp - 0x18]
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call edi
mov byte [ebp - 4], 2
lea esi, [ebp - 0x24]
call fcn.00408884
mov byte [ebp - 4], 1
push dword [ebp - 0x1c]
call edi
mov dword [ebp - 4], ebx
or dword [ebp - 4], 0xffffffff
push dword [ebp + 8]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x20]
call fcn.00450dff
ret

Function at 0x40ae78
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x100
lea ebp, [esp - 4]
mov eax, dword [0x48d044]
xor eax, ebp
mov dword [ebp + 0x100], eax
push 0x1c
mov eax, 0x46270d
call fcn.00450d5a
mov esi, edx
mov eax, dword [ebp + 0x10c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], ecx
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
cmp dword [esi], ebx
je 0x40af99
cmp eax, ebx
je 0x40af99
push eax
mov edi, dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
call edi
test eax, eax
jne 0x40af99
cmp dword [ebp - 0x1c], ebx
je 0x40af99
push dword [ebp - 0x1c]
call edi
test eax, eax
jne 0x40af99
mov byte [ebp], bl
push 0xfe
push ebx
lea eax, [ebp + 1]
push eax
call fcn.0044c8f0
add esp, 0xc
mov dword [ebp - 0x24], 0xff
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
push dword [ebp - 0x14]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x40af66
cmp dword [ebp - 0x20], 1
jne 0x40af66
lea eax, [ebp]
push eax
lea esi, [ebp - 0x14]
call fcn.004043af
mov byte [ebp - 4], 1
push dword [ebp - 0x14]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x40af53
call fcn.0040437f
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], eax
jmp 0x40af58
mov eax, dword [ebp - 0x1c]
mov dword [eax], ebx
mov byte [ebp - 4], bl
push dword [ebp - 0x14]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x40af6d
mov dword [ebp - 0x18], 0x80100025
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x100]
xor ecx, ebp
call fcn.0044c8d7
add ebp, 0x104
leave
ret 4
mov eax, 0x80100013
call fcn.0040426a
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
or dword [ebp - 4], 0xffffffff
mov eax, 0x40afb3
ret
Function at 0x40afc6
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
sub esp, 0x200
lea ebp, [esp - 4]
mov eax, dword [0x48d044]
xor eax, ebp
mov dword [ebp + 0x200], eax
push 0x28
mov eax, 0x4626dd
call fcn.00450d5a
mov esi, ecx
mov dword [ebp - 0x30], esi
mov edi, edx
mov dword [ebp - 0x20], edi
mov eax, dword [ebp + 0x20c]
mov dword [ebp - 0x1c], eax
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
cmp dword [esi], ebx
je 0x40b10a
cmp edi, ebx
je 0x40b10a
push edi
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
test eax, eax
jne 0x40b10a
mov dword [ebp - 0x28], ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x28]
push eax
push ebx
push ebx
push ebx
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov dword [ebp - 0x24], eax
cmp eax, ebx
je 0x40b04e
mov eax, 0x80100010
call fcn.0040426a
mov eax, dword [ebp - 0x28]
imul eax, eax, 0xc
push eax
call fcn.0040b253
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], eax
cmp eax, ebx
jne 0x40b06b
mov eax, 0x80100015
jmp 0x40b049
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x24], ebx
jne 0x40b0de
mov word [ebp], bx
push 0x1fc
push ebx
lea eax, [ebp + 2]
push eax
call fcn.0044c8f0
add esp, 0xc
push 0xff
lea eax, [ebp]
push eax
push dword [ebp - 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov dword [ebp - 0x24], eax
cmp eax, ebx
jne 0x40b0d9
lea eax, [ebp]
push eax
lea esi, [ebp - 0x2c]
call fcn.004043af
mov byte [ebp - 4], 1
mov edi, dword [edi]
imul edi, edi, 0xc
mov ecx, dword [ebp - 0x1c]
add edi, dword [ecx]
call fcn.00404351
mov byte [ebp - 4], bl
push dword [ebp - 0x2c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x20]
inc dword [eax]
mov edi, eax
mov esi, dword [ebp - 0x30]
inc dword [ebp - 0x18]
jmp 0x40b06e
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x200]
xor ecx, ebp
call fcn.0044c8d7
add ebp, 0x204
leave
ret 4
mov eax, 0x80100013
jmp 0x40b049
Function at 0x40ca17
Capabilities:
Terminate process

Disassembly:
push 0x1c
mov eax, 0x4616f7
call fcn.00450d5a
mov esi, ecx
and dword [ebp - 4], 0
mov dword [ebp - 0x28], vtable.CPCCSAutoWait.0
lea eax, [esi + 0x15c]
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 1
push 0x7530
lea edi, [ebp - 0x28]
call fcn.0040b2bc
mov dword [ebp - 0x18], eax
test eax, eax
jge 0x40ca56
jmp fcn.0040426a
mov ecx, esi
call fcn.004120ee
mov dword [ebp - 0x18], eax
lea edi, [esi + 0x12c]
mov eax, dword [edi]
test eax, eax
je 0x40cb05
mov ebx, 0x103
mov dword [ebp - 0x14], ebx
cmp dword [esi + 0x130], 0
je 0x40cabf
and dword [ebp - 0x1c], 0
cmp dword [ebp - 0x1c], 0x28
jge 0x40cace
cmp dword [ebp - 0x14], ebx
jne 0x40cadd
push 0x1f4
push dword [esi + 0x130]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40caaa
and dword [ebp - 0x14], eax
jmp 0x40cadd
lea eax, [ebp - 0x14]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40cace
inc dword [ebp - 0x1c]
jmp 0x40ca85
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40cadd
cmp dword [ebp - 0x14], ebx
jne 0x40cadd
push 0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [edi]
test eax, eax
je 0x40caea
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [edi], 0
mov eax, dword [esi + 0x130]
test eax, eax
je 0x40cafe
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0x130], 0
push 0x10
push 0
push edi
call fcn.0044c8f0
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0040b338
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
call fcn.00450dff
ret
Function at 0x41162d
Capabilities:
Read file on windows

Disassembly:
push 0x14
mov eax, 0x4615fc
call fcn.00450d5a
mov esi, ecx
mov edi, edx
mov ebx, dword [ebp + 0xc]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
cmp ebx, 0xffffffff
je 0x411732
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x411732
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x80]
test eax, eax
je 0x411732
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
mov eax, dword [esi]
push edi
push esi
push eax
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x411723
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x41171c
push dword [ebp + 0x14]
push 0
lea eax, [ebp - 0x20]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x4116ce
push ebx
call dword [sym.imp.KERNEL32.dll_CancelIo]
mov dword [ebp - 0x14], 0x80100020
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x80]
test eax, eax
je 0x411723
push eax
jmp 0x4116f7
cmp eax, 1
jne 0x4116ff
push 0
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x4116ef
mov dword [ebp - 0x14], 0x80100026
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [edi + 0x10]
test edi, edi
je 0x411723
push edi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
jmp 0x411723
push ebx
cmp eax, 0x102
jne 0x411716
call dword [sym.imp.KERNEL32.dll_CancelIo]
mov dword [ebp - 0x14], 0x80100022
jmp 0x411723
call dword [sym.imp.KERNEL32.dll_CancelIo]
mov dword [ebp - 0x14], 0x80100026
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
call fcn.00450dff
ret 0x10
mov eax, 0x80100014
call fcn.0040426a
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
or dword [ebp - 4], 0xffffffff
mov eax, 0x41174c
ret

Function at 0x412265
Capabilities:
Terminate thread

Disassembly:
push 8
mov eax, 0x460344
call fcn.00450d5a
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
mov eax, dword [esi + 4]
cmp eax, edi
je 0x412289
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [esi + 0xc], edi
je 0x4122b9
push 0x2710
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4122ad
push edi
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xc], edi
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4122c7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], edi
mov eax, dword [esi + 0x10]
cmp eax, edi
je 0x4122d8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10], edi
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
call fcn.00450dff
ret
Function at 0x41231e
Capabilities:
Connect pipe

Disassembly:
push 0x30
mov eax, 0x461542
call fcn.00450d5a
mov esi, ecx
and dword [ebp - 4], 0
mov dword [ebp - 0x20], vtable.CPCCSAutoWait.0
lea eax, [esi + 0x18]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 1
mov ebx, 0x4e20
push ebx
lea edi, [ebp - 0x20]
call fcn.0040b2bc
mov dword [ebp - 0x14], eax
xor edi, edi
cmp eax, edi
jge 0x41235d
jmp fcn.0040426a
cmp dword [esi + 0x28], 0xffffffff
jne 0x41236a
mov eax, 0x80100014
jmp 0x412358
push 0x14
push edi
lea eax, [ebp - 0x3c]
push eax
call fcn.0044c8f0
add esp, 0xc
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x3c]
push eax
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x412412
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe8
jne 0x4123ae
mov dword [ebp - 0x14], 0x80100017
jmp 0x412417
cmp eax, 0x218
je 0x4123cc
cmp eax, 0x3e5
je 0x4123cc
cmp eax, 0x217
je 0x412412
mov dword [ebp - 0x14], 0x80100026
jmp 0x412417
mov eax, dword [esi + 0x80]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x24], eax
push ebx
push edi
lea eax, [ebp - 0x28]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, edi
jne 0x4123f6
mov dword [ebp - 0x14], 0x80100020
jmp 0x412417
cmp eax, 1
je 0x412412
cmp eax, 0x102
jne 0x41240b
mov dword [ebp - 0x14], 0x80100022
jmp 0x412417
mov dword [ebp - 0x14], 0x80100026
cmp dword [ebp - 0x14], edi
jge 0x41243c
mov eax, dword [esi + 0x28]
cmp eax, 0xffffffff
je 0x41243c
push eax
call dword [sym.imp.KERNEL32.dll_CancelIo]
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi + 0x28], 0xffffffff
cmp dword [ebp - 0x2c], edi
je 0x41244a
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0040b338
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
call fcn.00450dff
ret
Function at 0x4126dc
Capabilities:
Create thread

Disassembly:
push 0xc
mov eax, 0x46151f
call fcn.00450d5a
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
call fcn.00412265
push edi
push edi
push 1
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
call ebx
mov dword [esi + 4], eax
push edi
push edi
push 1
push edi
call ebx
mov dword [esi + 0x10], eax
lea eax, [esi + 0x14]
push eax
push edi
push esi
push 0x41276a
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xc], eax
cmp eax, edi
je 0x41273d
cmp dword [esi + 4], edi
je 0x41273d
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
call fcn.00450dff
ret
mov eax, 0x80100010
jmp fcn.0040426a

Function at 0x412856
Capabilities:
Terminate thread

Disassembly:
push 8
mov eax, 0x46030e
call fcn.00450d5a
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
mov eax, dword [esi + 4]
cmp eax, edi
je 0x41287a
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [esi + 0xc], edi
je 0x4128a8
push dword [ebp + 8]
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x41289c
push edi
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xc], edi
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4128b6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], edi
mov eax, dword [esi + 0x10]
cmp eax, edi
je 0x4128c7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10], edi
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
call fcn.00450dff
ret 4
Function at 0x412986
Capabilities:
Write file on windows

Disassembly:
push 0x14
mov eax, 0x4614e9
call fcn.00450d5a
mov esi, ecx
mov edi, edx
mov ebx, dword [ebp + 0xc]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
cmp ebx, 0xffffffff
je 0x412a80
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x412a80
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x80]
test eax, eax
je 0x412a80
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
push edi
push esi
push dword [esi]
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x412a71
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x412a6a
push dword [ebp + 0x14]
push 0
lea eax, [ebp - 0x20]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x412a22
push ebx
call dword [sym.imp.KERNEL32.dll_CancelIo]
mov dword [ebp - 0x14], 0x80100020
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x80]
test eax, eax
je 0x412a71
push eax
jmp 0x412a45
cmp eax, 1
jne 0x412a4d
push 0
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x412a3d
mov dword [ebp - 0x14], 0x80100026
mov edi, dword [edi + 0x10]
test edi, edi
je 0x412a71
push edi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
jmp 0x412a71
push ebx
cmp eax, 0x102
jne 0x412a64
call dword [sym.imp.KERNEL32.dll_CancelIo]
mov dword [ebp - 0x14], 0x80100022
jmp 0x412a71
call dword [sym.imp.KERNEL32.dll_CancelIo]
mov dword [ebp - 0x14], 0x80100026
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
call fcn.00450dff
ret 0x10
mov eax, 0x80100014
call fcn.0040426a
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
or dword [ebp - 4], 0xffffffff
mov eax, 0x412a9a
ret

Function at 0x412aad
Capabilities:
Create thread

Disassembly:
push 0xc
mov eax, 0x4614ce
call fcn.00450d5a
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
push 0x2710
call fcn.00412856
push edi
push edi
push 1
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
call ebx
mov dword [esi + 4], eax
push edi
push edi
push 1
push edi
call ebx
mov dword [esi + 0x10], eax
lea eax, [esi + 0x14]
push eax
push edi
push esi
push 0x41276a
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xc], eax
cmp eax, edi
je 0x412b13
cmp dword [esi + 4], edi
je 0x412b13
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
call fcn.00450dff
ret
mov eax, 0x80100010
jmp fcn.0040426a
Function at 0x4135f3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
sub esp, 0x404
lea ebp, [esp - 4]
mov eax, dword [0x48d044]
xor eax, ebp
mov dword [ebp + 0x404], eax
push 0x24
mov eax, 0x463e10
call fcn.00450d5a
mov esi, ecx
mov edi, edx
mov eax, dword [ebp + 0x414]
mov dword [ebp - 0x14], eax
call dword [section..data]
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0x410]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ebx
mov dword [ebp], ebx
mov byte [ebp - 4], 1
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x18], eax
cmp eax, ebx
jne 0x413662
call fcn.00405c7f
mov esi, eax
jmp 0x413768
push dword [ebp - 0x14]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x41367d
call fcn.00405c7f
jmp 0x41375d
push esi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x413673
push esi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x14], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x4136c5
mov byte [ebp - 4], bl
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x4136b7
lea eax, [ebp]
call fcn.004137a6
or dword [ebp - 4], 0xffffffff
mov eax, 0x8007000e
jmp 0x413781
mov byte [ebp - 4], 2
push 2
pop ecx
mul ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
cmp edx, ebx
ja 0x4136dd
cmp eax, 0xffffffff
jbe 0x4136e7
push 0x80070057
call fcn.00404397
cmp eax, 0x400
jbe 0x4136fa
push eax
lea eax, [ebp]
push eax
call fcn.0041481d
jmp 0x413700
lea eax, [ebp + 4]
mov dword [ebp], eax
mov dword [ebp - 4], 1
jmp 0x41371b
mov edi, dword [ebp]
cmp edi, ebx
jne 0x413729
mov esi, 0x8007000e
jmp 0x41375f
call dword [section..data]
push esi
push edi
push esi
push dword [ebp - 0x1c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x413673
mov ecx, dword [ebp]
mov word [ecx + eax*2], bx
push dword [ebp + 0x418]
mov ecx, dword [ebp]
lea edx, [ebp - 0x24]
call fcn.004137af
mov esi, eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], bl
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x41377b
lea eax, [ebp]
call fcn.004137a6
or dword [ebp - 4], 0xffffffff
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 + 0x404]
xor ecx, ebp
call fcn.0044c8d7
add ebp, 0x408
leave
ret 0xc
Function at 0x4147d3
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x4147e6
push 0x80004005
call fcn.00404397
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x4147ed
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4148cf
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push 0x220
mov eax, 0x4614a6
call fcn.00450d90
mov eax, ecx
mov ecx, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x214], esi
mov dword [ebp - 4], esi
mov eax, dword [eax]
lea edx, [ebp - 0x218]
push edx
push 0x2001f
push esi
push ecx
push eax
mov dword [ebp - 0x218], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
cmp ebx, esi
jne 0x4149ee
xor eax, eax
cmp dword [ebp - 0x214], esi
je 0x41493f
push dword [ebp - 0x214]
call edi
mov dword [ebp - 0x214], esi
cmp eax, esi
mov ecx, dword [ebp - 0x218]
mov ebx, eax
mov dword [ebp - 0x214], ecx
jne 0x4149ee
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x22c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push ecx
jmp 0x4149b2
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x214]
call fcn.004148cf
cmp eax, esi
mov dword [ebp - 0x218], eax
jne 0x414a12
lea eax, [ebp - 0x22c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x21c], 0x100
call ebx
test eax, eax
je 0x414977
cmp dword [ebp - 0x214], esi
je 0x4149d8
push dword [ebp - 0x214]
call edi
mov dword [ebp - 0x214], esi
push dword [ebp - 0x220]
mov eax, dword [ebp - 0x224]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x214], esi
je 0x414a08
push dword [ebp - 0x214]
call edi
mov dword [ebp - 0x214], esi
mov eax, ebx
call fcn.00450e13
ret 4
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x214], esi
je 0x414a2c
push dword [ebp - 0x214]
call edi
mov dword [ebp - 0x214], esi
mov eax, dword [ebp - 0x218]
jmp 0x414a0a