joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46f30e
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x6346c0], 0
push esi
jne 0x46f27c
call fcn.0046f190
test eax, eax
je 0x46f2bf
mov eax, dword [0x6346c0]
cmp eax, 1
jne 0x46f29d
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x46f2bf
pop esi
ret
push eax
call dword [0x6346c8]
test eax, eax
jne 0x46f307
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x46f2c3
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x6346c0]
call dword [0x6346c8]
mov edi, eax
test edi, edi
je 0x46f2e8
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x46f304
mov edi, esi
add esi, 0xff0
push edi
push dword [0x6346c0]
call dword [0x6346c4]
add edi, 0x10
cmp edi, esi
jb 0x46f2f0
mov eax, edi
pop edi
pop esi
ret
jmp 0x46f269

Function at 0x46f8a1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x633634]
jne 0x46f8ab
repz ret
jmp fcn.0047289b

Function at 0x47c5c3
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.00475831
and dword [ebp - 4], 0
cmp dword [0x6351d8], 0
mov ebx, eax
jne 0x47c674
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x47c725
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x47c725
push eax
call fcn.004757bf
mov dword [esp], 0x4932c4
push edi
mov dword [0x6351d8], eax
call esi
push eax
call fcn.004757bf
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x6351dc], eax
call esi
push eax
call fcn.004757bf
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x6351e0], eax
call esi
push eax
call fcn.004757bf
pop ecx
mov dword [0x6351e8], eax
test eax, eax
je 0x47c674
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004757bf
pop ecx
mov dword [0x6351e4], eax
mov eax, dword [0x6351e4]
cmp eax, ebx
je 0x47c6cc
cmp dword [0x6351e8], ebx
je 0x47c6cc
push eax
call fcn.0047583a
push dword [0x6351e8]
mov esi, eax
call fcn.0047583a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x47c6cc
test edi, edi
je 0x47c6cc
call esi
test eax, eax
je 0x47c6c3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x47c6c3
test byte [ebp - 0xc], 1
jne 0x47c6cc
or dword [ebp + 0x10], 0x200000
jmp 0x47c705
mov eax, dword [0x6351dc]
cmp eax, ebx
je 0x47c705
push eax
call fcn.0047583a
pop ecx
test eax, eax
je 0x47c705
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x47c705
mov eax, dword [0x6351e0]
cmp eax, ebx
je 0x47c705
push eax
call fcn.0047583a
pop ecx
test eax, eax
je 0x47c705
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x6351d8]
call fcn.0047583a
pop ecx
test eax, eax
je 0x47c725
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x47c727
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41ad50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x411015
lea edi, [esi - 0x10015]
push edi
or ebp, 0xffffffff
jmp 0x41ad72
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41ad79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41ad68
mov eax, 1
add ebx, ebx
jne 0x41ad8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41ad80
jne 0x41ad9c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41ad80
xor ecx, ecx
sub eax, 3
jb 0x41adb0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41ae22
mov ebp, eax
add ebx, ebx
jne 0x41adbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41adc8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41adec
inc ecx
add ebx, ebx
jne 0x41add8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41adcd
jne 0x41ade9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41adcd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41ae0c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41adfd
jmp 0x41ad6e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41ae0c
add edi, ecx
jmp 0x41ad6e
pop esi
mov edi, esi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41ae2a
cmp byte [edi], 5
jne 0x41ae2a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41ae2f
lea edi, [esi + 0x18000]
mov eax, dword [edi]
or eax, eax
je 0x41aea7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1a000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1a094]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41ae5c
mov ecx, edi
jns 0x41ae8b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1a09c]
or eax, eax
je 0x41aea1
mov dword [ebx], eax
add ebx, 4
jmp 0x41ae79
call dword [esi + 0x1a098]
mov ebp, dword [esi + 0x1a0a0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x41aedb
sub esp, 0xffffff80
jmp 0x404c20

Function at 0x40892d
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
mov esi, dword [esp]
add esp, 4
call fcn.0040895a
add ecx, ecx
xor dword [ebx], esi
and ecx, eax
inc ebx
push 0xbd9a9789
mov ecx, dword [esp]
add esp, 4
cmp ebx, edi
jne fcn.0040892d
ret
Function at 0x403cb6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40a400]
jne 0x403cc0
repz ret
jmp fcn.00405d35

Function at 0x4045c5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40a400]
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.004026f3
and dword [ebp - 0x14], 0
cmp dword [0x40b858], 0
mov dword [ebp - 0x18], eax
jne 0x404678
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x404720
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x404720
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40b858], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40b85c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40b860], eax
call edi
push eax
call esi
mov dword [0x40b868], eax
test eax, eax
je 0x404678
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40b864], eax
mov eax, dword [0x40b864]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4046d1
cmp dword [0x40b868], ecx
je 0x4046d1
push eax
call esi
push dword [0x40b868]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4046d1
test ebx, ebx
je 0x4046d1
call edi
test eax, eax
je 0x4046c8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4046c8
test byte [ebp - 8], 1
jne 0x4046d1
or dword [ebp + 0x10], 0x200000
jmp 0x404704
mov eax, dword [0x40b85c]
cmp eax, dword [ebp - 0x18]
je 0x404704
push eax
call esi
test eax, eax
je 0x404704
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x404704
mov eax, dword [0x40b860]
cmp eax, dword [ebp - 0x18]
je 0x404704
push eax
call esi
test eax, eax
je 0x404704
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40b858]
call esi
test eax, eax
je 0x404720
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x404722
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403cb6
leave
ret
Function at 0x40148e
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
add al, byte [eax]
add byte [ebx + 0x56], dl
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x472eb0]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x401523
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x4014e0
cmp dword [ebp + 0x10], ebx
jne 0x401517
push ebx
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 4]
call fcn.0040148e
test eax, eax
jne 0x4014f2
push edi
lea eax, [ebp - 0x210]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014c7
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.0040645a
cmp eax, ebx
je 0x40152a
push ebx
push dword [0x472eb0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x401523
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x472eb0], ebx
jne 0x401520
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x401520
jmp 0x401523
Function at 0x4036a2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
push 0x2004
mov esi, 0x4df0d8
push esi
add eax, 0x403e8
push ebx
mov dword [0x472e20], eax
call dword [0x8040809c]
push 3
push 0x80000000
push esi
ljmp 0xf88b

Function at 0x403a0a
Capabilities:
Accept command line arguments

Disassembly:
test esp, ebp
aam 2
add byte [eax], al
push ebx
push ecx
push esi
push edi
push 0x20
xor ebp, ebp
pop edx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x10], str.Error_writing_temporary_file._Make_sure_your_temp_folder_is_valid.
mov dword [esp + 0x14], ebp
std
adc eax, sym.imp.COMCTL32.dll_InitCommonControls
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push ebp
call dword [sym.imp.ole32.dll_OleInitialize]
push 8
mov dword [0x472eb8], eax
call fcn.0040645a
push ebp
push 0x2b4
mov dword [0x472dd0], eax
lea eax, [esp + 0x38]
push eax
push ebp
sub byte [ebx + edx*4], bl
inc edx
add bh, bh
adc eax, sym.imp.SHELL32.dll_SHGetFileInfoW
push str.NSIS_Error
push 0x468dc0
call fcn.00406167
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
mov edi, 0x6c30a0
push edi
call fcn.00406167
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp word [0x824c30a0], 0x22
mov dword [0x472dd8], eax
mov eax, edi
jne 0x403aaa
push 0x22
pop esi
mov eax, 0x4c30a2
push esi
push eax
call fcn.00405e66
push eax
call dword [sym.imp.USER32.dll_CharNextW]
mov esi, eax
mov dword [esp + 0x1c], esi
jmp 0x403b4f
push 0x20
pop ebx
cmp ax, bx
jne 0x403ad2
inc esi
inc esi
cmp word [esi], bx
push esp
stc
cmp word [esi], 0x2a
jno 0x403add
inc esi
push 0x22
inc esi
pop ebx
cmp word [esi], 0x2f
je 0x403b3e
inc esi
inc esi
cmp word [esi], 0x43
jne 0x403aff
movzx eax, word [esi + 2]
cmp ax, 0x20
je 0x403afa
cmp ax, bp
je 0x403aff
or dword [esp + 0x14], 2
push 4
sub al, bh
xchg edx, eax
inc esp
add byte [esi - 0x18], dl
cld
invalid
push ebx
push esi
call fcn.00405e66
mov esi, eax
cmp word [esi], 0x22
jne 0x403b4f
inc esi
inc esi
movzx eax, word [esi]
cmp ax, bp
jne 0x403ac3
jmp 0x403b7a
mov ebx, 0x4d70c8
push ebx
imul eax, dword [eax], 0x157f0400
mov al, 0x80
inc eax
add al, ch
invalid

Function at 0x405f91
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 6]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405fae
xor al, 0xbe
push eax
push dword [esp + 8]
call dword [0x8088]
ret 4

Function at 0x405fb1
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
inc ecx
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 4
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc
Function at 0x406beb
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x24098b8
mov edx, 0x45b2d8
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [esp + 0x1c]
xor ebp, ebp
cmp edi, ebp
mov esi, 0x400
je 0x406c39
push 1
push ebp
push edi
call fcn.00405fb1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x406db0
cmp eax, esi
jg 0x406db0
push esi
mov edi, 0x460930
push edi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x406db0
cmp eax, esi
jg 0x406db0
push ebp
push ebp
push esi
push 0x45bad8
push 0xffffffffffffffff
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebp
push ebp
call ebx
test eax, eax
je 0x406db0
push ebp
push ebp
push esi
mov esi, 0x45c128
push esi
push 0xffffffffffffffff
push edi
push ebp
push ebp
call ebx
test eax, eax
je 0x406db0
push esi
push 0x45bad8
push str._s_s_r_n
push 0x45c528
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x472ddc]
push dword [eax + 0x128]
push edi
call fcn.0040695a
push 4
push 0xc0000000
push edi
call fcn.00405fb1
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
je 0x406db0
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
cmp esi, ebp
je 0x406da6
push ebp
lea eax, [esp + 0x14]
push eax
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406da6
cmp edi, dword [esp + 0x10]
jne 0x406da6
push str._Rename__r_n
push esi
call fcn.00405f17
cmp eax, ebp
jne 0x406d3d
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x406d6e
push 0x4098ac
add eax, 0xa
push eax
call fcn.00405f17
mov ebp, eax
test ebp, ebp
je 0x406d6c
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x406d5f
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x406d59
sub ebp, esi
inc ebp
mov eax, ebp
xor ebp, ebp
jmp 0x406d70
xor ebp, ebp
mov eax, edi
push ebx
push 0x45c528
add eax, esi
push eax
call fcn.00405f6d
push ebp
push ebp
push ebp
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
lea eax, [esp + 0x14]
push eax
add edi, ebx
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x8ccbd5
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x8cc92e
or ebx, ebx
call fcn.008ccc10
and ebx, ebx
sub esp, 4
mov dword [esp], 0xd2785ccc
mov eax, dword [esp]
add esp, 4
xor dword [ecx], esi
and ebx, ebx
inc ebx
inc ecx
dec ebx
add ebx, 0xd71cd2cd
mov ebx, 0x64a8d4c7
cmp ecx, edi
jne fcn.008ccbd5
or eax, eax
add eax, ebx
ret
Function at 0x418160
Capabilities:
Get common file path

Disassembly:
sub esp, 0x218
mov eax, dword [0x425044]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push 0x206
lea eax, [esp + 0xe]
push 0
push eax
mov word [esp + 0x14], 0
call fcn.00405a30
add esp, 0xc
push 0x104
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx edx, word [esp + 8]
sub edx, 0x41
lea ebx, [esp + 4]
call fcn.00414a90
mov ebx, dword [esp + 4]
call fcn.00414b90
cmp eax, 0xffffffff
jne 0x4181df
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0040113c
add esp, 0x218
ret
push esi
call fcn.00417f30
mov ecx, dword [esp + 0x218]
add esp, 4
pop ebx
xor ecx, esp
call fcn.0040113c
add esp, 0x218
ret

Function at 0x467440
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40e015
lea edi, [esi - 0xd015]
push edi
or ebp, 0xffffffff
jmp 0x467462
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x467469
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x467458
mov eax, 1
add ebx, ebx
jne 0x46747b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x467470
jne 0x46748c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x467470
xor ecx, ecx
sub eax, 3
jb 0x4674a0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x467512
mov ebp, eax
add ebx, ebx
jne 0x4674ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4674b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4674dc
inc ecx
add ebx, ebx
jne 0x4674c8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4674bd
jne 0x4674d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4674bd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4674fc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4674ed
jmp 0x46745e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4674fc
add edi, ecx
jmp 0x46745e
pop esi
mov edi, esi
mov ecx, 5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x46751a
cmp byte [edi], 0
jne 0x46751a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x46751f
mov ebp, dword [esi + 0x676d4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x46757a
sub esp, 0xffffff80
jmp 0x407c28
Function at 0x4061c0
Capabilities:
Get token membership

Disassembly:
push ebp
push esp
pop ebp
push 0xfffffffffffffffe
push 0x432f28
push 0x419ba0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x43581c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0
mov word [ebp - 0x20], 0x500
lea eax, [ebp - 0x2c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x40626d
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x2c]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x28]
mov dword [ebp - 0x28], eax
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x28]
jmp 0x40626d
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0041191e
mov esp, ebp
pop ebp
ret
Function at 0x40a070
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a6b8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x43581c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, edx
mov dword [ebp - 0x1c], ecx
xor ebx, ebx
mov edx, 0x436c28
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call fcn.0040a6a0
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], ebx
je 0x40a17d
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
push ecx
push eax
push ecx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0040a2d0
mov edi, dword [ebp - 0x28]
or eax, eax
jne 0x40a16d
or edi, edi
je 0x40a17d
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push esi
lea eax, [ebp - 0x14]
push str.__s_
push eax
mov byte [ebp - 4], 3
call fcn.004071c0
mov esi, dword [ebp - 0x14]
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a120
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 2
push 0
push dword [ebp - 0x1c]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb ebx, ebx
lea edx, [esi - 0x10]
or esi, 0xffffffff
inc ebx
mov byte [ebp - 4], 2
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40a170
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40a170
or esi, 0xffffffff
test edi, edi
je 0x40a180
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40a180
or esi, 0xffffffff
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x40a1c2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ebx
pop eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, ebx
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 0x40a360
Capabilities:
Get common file path

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x670
mov eax, dword [0x43581c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x40
lea eax, [ebp - 0x66c]
push 0
push eax
call fcn.00413f20
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x640], ax
mov dword [ebp - 0x62c], eax
mov dword [ebp - 0x620], eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
xorps xmm0, xmm0
push eax
mov dword [ebp - 0x670], 0x44
movq qword [ebp - 0x628], xmm0
call fcn.00413f20
add esp, 0x18
lea eax, [ebp - 0x20c]
push 0
push 0x25
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x431d18
lea eax, [ebp - 0x20c]
push eax
call dword [0x42b194]
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [0x42b190]
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push eax
call fcn.00413f20
push esi
lea eax, [ebp - 0x20c]
push eax
push str.__s__start___s_
lea eax, [ebp - 0x61c]
push 0x208
push eax
call fcn.00412464
add esp, 0x20
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x670]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [0x42b04c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041191e
push ebp
pop esp
pop ebp
ret