joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4121be
Capabilities:
Encrypt data using dpapi

Disassembly:
push 0x60
mov eax, 0x44fe01
call fcn.0043c7da
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x5c], eax
xor eax, eax
mov dword [ebp - 0x54], ebx
lea edi, [ebp - 0x50]
stosd dword es:[edi], eax
lea eax, [ebp - 0x54]
push eax
push 1
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x60]
mov esi, edx
push eax
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x60], ecx
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
jne 0x41223c
call dword [sym.imp.kernel32.dll_GetLastError]
push ebx
push eax
lea esi, [ebp - 0x30]
call fcn.00445858
push eax
lea eax, [ebp - 0x4c]
push str.decryption_failed__sysError
push eax
mov dword [ebp - 4], ebx
call fcn.00445858
add esp, 0x14
lea esi, [ebp - 0x6c]
mov byte [ebp - 4], 1
call fcn.00445858
push 0x466a80
mov eax, esi
push eax
call fcn.00445858
mov edi, dword [ebp - 0x58]
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov esi, dword [ebp - 0x54]
mov eax, edi
call fcn.0040d4f9
push dword [ebp - 0x54]
mov eax, dword [edi]
push dword [ebp - 0x50]
push eax
call fcn.00445858
add esp, 0xc
push dword [ebp - 0x50]
call dword [sym.imp.kernel32.dll_LocalFree]
mov eax, edi
call fcn.0043c85d
ret

Function at 0x4122e5
Capabilities:
Encode data using base64 via winapi

Disassembly:
push 0x6c
mov eax, 0x44fdcc
call fcn.0043c7da
mov eax, dword [ebp + 8]
mov edi, ecx
xor ecx, ecx
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], ecx
cmp dword [ebp + 0xc], ecx
jne 0x412314
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ecx
mov byte [edi], cl
jmp 0x41240d
mov esi, dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
lea edx, [ebp - 0x68]
push edx
push ecx
mov ebx, 0x40000001
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x68], ecx
push eax
call esi
test eax, eax
jne 0x412372
call dword [sym.imp.kernel32.dll_GetLastError]
push 0
push eax
lea esi, [ebp - 0x64]
call fcn.00445858
and dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x48]
push str.binary2string__phase1__failed__sysError
push eax
call fcn.00445858
add esp, 0x14
mov byte [ebp - 4], 1
lea esi, [ebp - 0x78]
call fcn.00445858
push 0x466a80
mov eax, esi
push eax
call fcn.00445858
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x68]
lea ecx, [ebp - 0x2c]
call fcn.00412690
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x41239f
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x68]
push ecx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp - 0x6c]
call esi
test eax, eax
jne 0x4123e1
call dword [sym.imp.kernel32.dll_GetLastError]
push 0
push eax
lea esi, [ebp - 0x48]
call fcn.00445858
push eax
lea eax, [ebp - 0x64]
push str.binary2string__phase2__failed__sysError
push eax
mov byte [ebp - 4], 3
call fcn.00445858
add esp, 0x14
mov byte [ebp - 4], 4
jmp 0x41235d
mov eax, dword [ebp - 0x68]
lea ecx, [ebp - 0x2c]
call fcn.00412690
and dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
lea esi, [ebp - 0x2c]
mov byte [edi], 0
call fcn.00405ca7
push 0
push 1
mov ecx, esi
call fcn.00405e00
mov eax, edi
call fcn.0043c85d
ret
Function at 0x412415
Capabilities:
Decode data using base64 via winapi

Disassembly:
push 0x98
mov eax, 0x44fd7c
call fcn.0043c7da
mov eax, dword [ebp + 8]
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0x84], ebx
mov ecx, dword [edi + 0x10]
mov dword [ebp - 0x88], eax
cmp ecx, ebx
jne 0x41244b
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
jmp 0x412585
cmp dword [edi + 0x14], 0x10
mov dword [ebp - 0x84], ebx
jb 0x41245b
mov eax, dword [edi]
jmp 0x41245d
mov eax, edi
push ebx
push ebx
lea edx, [ebp - 0x84]
push edx
push ebx
push 1
push ecx
push eax
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x4124b6
call dword [sym.imp.kernel32.dll_GetLastError]
push ebx
push eax
lea esi, [ebp - 0x48]
call fcn.00445858
push eax
lea eax, [ebp - 0x80]
push str.string2binary__phase1__failed__sysError
push eax
mov dword [ebp - 4], ebx
call fcn.00445858
add esp, 0x14
lea esi, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.00445858
push 0x466a80
mov eax, esi
push eax
call fcn.00445858
mov esi, dword [ebp - 0x84]
lea eax, [ebp - 0x98]
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x90], ebx
call fcn.0040d4f9
mov dword [ebp - 4], 2
cmp dword [edi + 0x14], 0x10
mov eax, dword [edi + 0x10]
jb 0x4124eb
mov edi, dword [edi]
push ebx
push ebx
lea ecx, [ebp - 0x84]
push ecx
push dword [ebp - 0x98]
push 1
push eax
push edi
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x412549
call dword [sym.imp.kernel32.dll_GetLastError]
push ebx
push eax
lea esi, [ebp - 0x64]
call fcn.00445858
push eax
lea eax, [ebp - 0x2c]
push str.string2binary__phase2__failed__sysError
push eax
mov byte [ebp - 4], 3
call fcn.00445858
add esp, 0x14
lea esi, [ebp - 0xa4]
mov byte [ebp - 4], 4
call fcn.00445858
push 0x466a80
mov eax, esi
jmp 0x4124b0
mov esi, dword [ebp - 0x84]
lea eax, [ebp - 0x98]
call fcn.0040d4f9
mov eax, dword [ebp - 0x88]
lea edi, [ebp - 0x98]
call fcn.004126ab
cmp dword [ebp - 0x98], ebx
je 0x41257f
push dword [ebp - 0x98]
call fcn.00445858
pop ecx
mov eax, dword [ebp - 0x88]
call fcn.0043c85d
ret
Function at 0x413970
Capabilities:
Create process on windows

Disassembly:
push 0x2c
mov eax, 0x451ab4
call fcn.0043c7da
cmp dword [0x475304], 1
mov ebx, ecx
jg 0x4139cb
lea eax, [ebp - 0x30]
push str.Executor.exec__:
lea edi, [ebx + 0x38]
push eax
call fcn.00410c44
pop ecx
pop ecx
and dword [ebp - 4], 0
push str.Executor::startExecution
push 0x93
push str.c:_workspace_8_2_build_windows_i586_cygwin_jdk8u181_11358_install_src_windows_common_Executor.cpp
push 1
mov edx, eax
mov ecx, 0x475304
call fcn.0041299a
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.00405e00
push 0x44
pop esi
push esi
lea edi, [ebx + 0x7c]
push 0
push edi
call fcn.004360a0
add esp, 0xc
push 0x10
lea eax, [ebx + 0x6c]
push 0
push eax
mov dword [edi], esi
call fcn.004360a0
add esp, 0xc
cmp dword [ebx + 0xc0], 1
jne 0x413a0f
or dword [ebx + 0xa8], 1
xor eax, eax
mov word [ebx + 0xac], ax
mov dword [ebx + 0x60], 0x8000000
cmp byte [ebx + 0xcd], 0
je 0x413a1f
mov esi, ebx
call fcn.00413eb0
lea eax, [ebx + 0x38]
mov edx, dword [eax + 0x14]
cmp edx, 0x10
jb 0x413a2e
mov esi, dword [eax]
jmp 0x413a30
mov esi, eax
mov ecx, dword [eax + 0x10]
add ecx, esi
cmp edx, 0x10
jb 0x413a3c
mov eax, dword [eax]
push dword [ebp - 0x35]
xor edx, edx
push ecx
push eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
call fcn.0040fc91
mov dword [ebp - 4], 1
lea eax, [ebp - 0x31]
lea esi, [ebp - 0x24]
mov byte [ebp - 0x31], 0
call fcn.0040a801
cmp dword [ebx + 0x14], 0x10
jb 0x413a75
mov ecx, dword [ebx]
jmp 0x413a77
mov ecx, ebx
lea eax, [ebx + 0x6c]
push eax
push edi
push dword [ebx + 0x68]
push dword [ebx + 0x64]
push dword [ebx + 0x60]
push dword [ebx + 0x5c]
push dword [ebx + 0x58]
push dword [ebx + 0x54]
push dword [ebp - 0x24]
push ecx
call dword [sym.imp.kernel32.dll_CreateProcessA]
test eax, eax
setne bl
cmp dword [ebp - 0x24], 0
je 0x413aac
push dword [ebp - 0x24]
call fcn.00445858
pop ecx
mov al, bl
call fcn.0043c85d
ret
Function at 0x4196c8
Capabilities:
Get common file path

Disassembly:
push 0x38
mov eax, 0x44f396
call fcn.0043c7da
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x30], eax
mov esi, 0x104
lea eax, [ebp - 0x40]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edi
call fcn.004140ac
mov dword [ebp - 4], edi
mov esi, dword [ebp - 0x40]
mov edi, dword [ebp - 0x3c]
mov ebx, dword [sym.imp.kernel32.dll_GetTempPathA]
push esi
sub edi, esi
push edi
call ebx
cmp eax, edi
jbe 0x419724
mov esi, eax
lea eax, [ebp - 0x40]
call fcn.004140ac
mov esi, dword [ebp - 0x40]
mov eax, dword [ebp - 0x3c]
push esi
sub eax, esi
push eax
call ebx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00405b78
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0041fc9f
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00405e00
test esi, esi
je 0x419753
push esi
call fcn.00445858
pop ecx
mov eax, dword [ebp - 0x30]
call fcn.0043c85d
ret

Function at 0x419ef4
Capabilities:
Identify system language via api

Disassembly:
push 4
mov eax, 0x44ebf7
call fcn.0043c771
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 1
call dword [sym.imp.kernel32.dll_GetThreadLocale]
push eax
mov eax, esi
call fcn.00445858
pop ecx
call dword [sym.imp.kernel32.dll_GetUserDefaultUILanguage]
movzx eax, ax
push eax
mov eax, esi
call fcn.00445858
pop ecx
call dword [sym.imp.kernel32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
push eax
mov eax, esi
call fcn.00445858
mov eax, esi
mov dword [esp], 0x409
call fcn.00445858
pop ecx
mov eax, esi
call fcn.0043c849
ret
Function at 0x41fd59
Capabilities:
Get file version info

Disassembly:
push 0xf0
mov eax, 0x4529a6
call fcn.0043c7da
mov eax, dword [ebp + 8]
push eax
mov esi, ebx
mov dword [ebp - 0x54], ebx
call fcn.00406f18
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebx + 0x1c], esi
mov dword [ebx + 0x20], esi
mov dword [ebx + 0x24], esi
mov byte [ebp - 4], 1
cmp dword [ebx + 0x14], 0x10
mov dword [ebp - 0x40], esi
jb 0x41fd95
mov eax, dword [ebx]
jmp 0x41fd97
mov eax, ebx
lea ecx, [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.version.dll_GetFileVersionInfoSizeA]
cmp eax, esi
jne 0x41fe4f
push str.System_error
mov dword [ebp - 0x4c], str.c:_workspace_8_2_build_windows_i586_cygwin_jdk8u181_11358_install_src_windows_common_FileUtils.cpp
mov dword [ebp - 0x48], str.VersionResource::VersionResource
mov dword [ebp - 0x44], 0x461
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x50], esp
push ebx
call fcn.00406f18
lea eax, [ebp - 0xfc]
push eax
mov byte [ebp - 4], 2
call fcn.00409bf6
lea eax, [ebp - 0xfc]
push str.GetFileVersionInfoSize_
push eax
mov byte [ebp - 4], 3
call fcn.0040bad0
pop ecx
pop ecx
lea esi, [ebp - 0xfc]
mov byte [ebp - 4], 4
call fcn.0040b809
mov esi, eax
push 0x46140c
push esi
call fcn.0040bad0
pop ecx
pop ecx
mov ecx, dword [sym.imp.version.dll_GetFileVersionInfoSizeA]
push esi
lea edi, [ebp - 0x60]
call fcn.0042503b
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x3c]
push ecx
lea esi, [ebp - 0x4c]
mov ecx, eax
call fcn.00419a34
lea eax, [ebp - 0x3c]
mov dword [esp], 0x466c7c
push eax
call fcn.00445858
mov esi, eax
lea eax, [ebx + 0x1c]
call fcn.0040d4f9
mov ecx, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x20]
sub eax, ecx
cmp dword [ebx + 0x14], 0x10
jb 0x41fe6b
mov edx, dword [ebx]
jmp 0x41fe6d
mov edx, ebx
mov edi, dword [sym.imp.version.dll_GetFileVersionInfoA]
push ecx
push eax
push dword [ebp - 0x40]
push edx
call edi
test eax, eax
jne 0x41ff0b
push str.System_error
mov dword [ebp - 0x4c], str.c:_workspace_8_2_build_windows_i586_cygwin_jdk8u181_11358_install_src_windows_common_FileUtils.cpp
mov dword [ebp - 0x48], str.VersionResource::VersionResource
mov dword [ebp - 0x44], 0x46a
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x50], esp
push ebx
call fcn.00406f18
lea eax, [ebp - 0xfc]
push eax
mov byte [ebp - 4], 6
call fcn.00409bf6
lea eax, [ebp - 0xfc]
push str.GetFileVersionInfo_
push eax
mov byte [ebp - 4], 7
call fcn.0040bad0
pop ecx
pop ecx
lea esi, [ebp - 0xfc]
mov byte [ebp - 4], 8
call fcn.0040b809
mov esi, eax
push 0x46140c
push esi
call fcn.0040bad0
pop ecx
pop ecx
mov ecx, edi
push esi
lea edi, [ebp - 0x60]
call fcn.0042503b
mov byte [ebp - 4], 9
jmp 0x41fe31
mov eax, ebx
call fcn.0043c85d
ret 4
Function at 0x425c35
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x120
mov eax, 0x452cd2
call fcn.0043c7da
mov eax, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x78], eax
mov eax, esi
call fcn.00425c17
mov edi, eax
test edi, edi
jne 0x425ced
push str.cannot_find_resource
lea ecx, [ebp - 0x30]
call fcn.00405b78
and dword [ebp - 4], edi
lea eax, [ebp - 0x74]
push eax
lea edx, [ebp - 0x30]
mov ecx, esi
call fcn.00425b62
mov edi, eax
lea esi, [ebp - 0x12c]
mov byte [ebp - 4], 1
call fcn.004151a7
push str.System_error
mov byte [ebp - 4], 2
call dword [sym.imp.kernel32.dll_GetLastError]
mov ecx, dword [sym.imp.kernel32.dll_FindResourceA]
push eax
mov eax, esi
push eax
lea edi, [ebp - 0x90]
call fcn.0042503b
mov byte [ebp - 4], 3
mov dword [ebp - 0x84], str.c:_workspace_8_2_build_windows_i586_cygwin_jdk8u181_11358_install_src_windows_common_Resources.cpp
mov dword [ebp - 0x80], str.Resource::getPtr
mov dword [ebp - 0x7c], 0x41
lea ecx, [ebp - 0x58]
push ecx
lea esi, [ebp - 0x84]
mov ecx, eax
call fcn.00419a34
lea eax, [ebp - 0x58]
mov dword [esp], 0x466c7c
push eax
call fcn.00445858
mov ebx, dword [sym.imp.kernel32.dll_LoadResource]
push edi
push dword [esi + 0x40]
call ebx
test eax, eax
jne 0x425d71
push str.cannot_load_resource
lea ecx, [ebp - 0x30]
call fcn.00405b78
lea eax, [ebp - 0x74]
push eax
lea edx, [ebp - 0x30]
mov ecx, esi
mov dword [ebp - 4], 4
call fcn.00425b62
mov edi, eax
lea esi, [ebp - 0x12c]
mov byte [ebp - 4], 5
call fcn.004151a7
push str.System_error
mov byte [ebp - 4], 6
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
mov eax, esi
push eax
mov ecx, ebx
lea edi, [ebp - 0x90]
call fcn.0042503b
mov byte [ebp - 4], 7
mov dword [ebp - 0x84], str.c:_workspace_8_2_build_windows_i586_cygwin_jdk8u181_11358_install_src_windows_common_Resources.cpp
mov dword [ebp - 0x80], str.Resource::getPtr
mov dword [ebp - 0x7c], 0x46
jmp 0x425ccc
push eax
call dword [sym.imp.kernel32.dll_LockResource]
cmp dword [esi + 0x3c], 6
mov ebx, eax
jne 0x425da1
mov esi, dword [esi + 0x1c]
and esi, 0xf
jbe 0x425d92
dec esi
movzx ecx, word [eax]
lea eax, [eax + ecx*2 + 2]
jne 0x425d88
movzx ecx, word [eax]
mov edx, dword [ebp - 0x78]
add ecx, ecx
mov dword [edx], ecx
lea ebx, [eax + 2]
jmp 0x425db0
push edi
push dword [esi + 0x40]
call dword [sym.imp.kernel32.dll_SizeofResource]
mov ecx, dword [ebp - 0x78]
mov dword [ecx], eax
mov eax, ebx
call fcn.0043c85d
ret 4
Function at 0x42e890
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x240
lea ebp, [esp - 4]
mov eax, dword [0x47162c]
xor eax, ebp
mov dword [ebp + 0x240], eax
push 0x14
mov eax, 0x450872
call fcn.0043c771
xor esi, esi
lea eax, [ebp + 0x38]
push eax
push esi
push esi
push 0x2c
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.shell32.dll_SHGetFolderPathW]
cmp eax, esi
je 0x42e8e6
push 0xc8
lea esi, [ebp - 0x20]
call fcn.00445858
push 0x466f8c
mov eax, esi
push eax
call fcn.00445858
lea eax, [ebp + 0x38]
push eax
lea eax, [ebp]
call fcn.00412f5a
push 0x462d7c
push eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 4], esi
call fcn.00445858
push ebx
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0042d5db
add esp, 0xc
push 1
xor edi, edi
lea esi, [ebp + 0x1c]
call fcn.0041302c
push 1
lea esi, [ebp]
call fcn.0041302c
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x240]
xor ecx, ebp
call fcn.00434c4e
add ebp, 0x244
leave
ret

Function at 0x434c4e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x47162c]
jne 0x434c58
repz ret
jmp fcn.0043ef82

Function at 0x445858
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x445867
pop dword [ebp - 0x2c]
mov eax, 0x445867
sub dword [ebp - 0x2c], eax
push 0x40
push 0x1000
push 0x421cb
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x2c]
call dword [eax]
mov ecx, 0x13c57c0f
add ecx, 0xec3abdbd
mov edx, eax
mov esi, 0x8bee1645
sub esi, 0x8ba4a845
add esi, dword [ebp - 0x2c]
mov ebx, 0xa90bffb3
add ebx, 0xfbe054d3
xor dword [ebp - 0x24], 0x42b3ec77
mov edi, dword [esi]
xor dword [ebp - 0xc], edx
sub edi, ebx
xor dword [ebp - 0x18], 0x769fe2df
mov dword [edx], edi
add dword [ebp - 0x20], esi
add edx, 0x1f503fd
add edx, 0xfe0afc07
add esi, 4
loop 0x4458bc
add eax, 0x30951086
add eax, 0xcf6bc97d
xor ebx, ebx
add ebx, eax
add eax, 0x827332b9
add eax, 0x7d8ccd4c
mov ecx, 0x400000
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x40c110
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424e30
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x42d520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
lea eax, [ebp - 0x18]
push 0x463a70
xor edi, edi
push eax
xor esi, esi
mov dword [ebp - 4], edi
call fcn.0040a4c0
mov ecx, dword [ebp - 0x18]
add esp, 8
cmp dword [ecx - 0xc], edi
je 0x40c1e5
cmp edi, 2
jge 0x40c1e5
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x14]
push edx
push 0
xor eax, eax
push 2
test edi, edi
push 0
setne al
push 0
push 0
push ecx
mov dword [ebp - 0x14], 0
add eax, 0x80000001
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40c1dc
mov esi, dword [ebp - 0x14]
mov ecx, esi
mov dword [ebp - 0x28], ecx
test ebx, ebx
jne 0x40c1a8
lea eax, [ebx + 0xd]
jmp 0x40c1c8
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push ebx
push 1
push 0
push 0x429d10
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x28]
xor edx, edx
test eax, eax
sete dl
mov esi, edx
test ecx, ecx
je 0x40c1dc
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x18]
inc edi
jmp 0x40c161
lea eax, [ecx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c225
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40c240
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42516e
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x42d520]
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
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x21a]
mov dword [ebp - 4], 0
push ecx
mov word [ebp - 0x21c], ax
call fcn.00415110
add esp, 0xc
push 0
push 0x1a
lea edx, [ebp - 0x21c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40c6ac
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00406970
mov byte [ebp - 4], 1
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x220], eax
lea ecx, [ebp - 0x224]
push 0x463710
push ecx
mov byte [ebp - 4], 2
call fcn.0040a4c0
add esp, 8
lea edx, [ebp - 0x238]
push 0x463738
push edx
mov byte [ebp - 4], 3
jmp loc.0047ec8c
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.00412e17
mov esp, ebp
pop ebp
ret
Function at 0x412e17
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42d520]
jne 0x412e21
repz ret
jmp fcn.0041935a

Function at 0x42194c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42d520]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00418b84
and dword [ebp - 0x14], 0
cmp dword [0x4658b8], 0
mov dword [ebp - 0x18], eax
jne 0x4219ff
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x421aa7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x421aa7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4658b8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4658bc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4658c0], eax
call edi
push eax
call esi
mov dword [0x4658c8], eax
test eax, eax
je 0x4219ff
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4658c4], eax
mov eax, dword [0x4658c4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x421a58
cmp dword [0x4658c8], ecx
je 0x421a58
push eax
call esi
push dword [0x4658c8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x421a58
test ebx, ebx
je 0x421a58
call edi
test eax, eax
je 0x421a4f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x421a4f
test byte [ebp - 8], 1
jne 0x421a58
or dword [ebp + 0x10], 0x200000
jmp 0x421a8b
mov eax, dword [0x4658bc]
cmp eax, dword [ebp - 0x18]
je 0x421a8b
push eax
call esi
test eax, eax
je 0x421a8b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x421a8b
mov eax, dword [0x4658c0]
cmp eax, dword [ebp - 0x18]
je 0x421a8b
push eax
call esi
test eax, eax
je 0x421a8b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4658b8]
call esi
test eax, eax
je 0x421aa7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x421aa9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412e17
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx