joyce8/EMBER2024-capa huggingface dataset:
Function at 0x481370
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c3c2d
mov eax, dword fs:[0]
push eax
sub esp, 0x454
mov eax, dword [0x4eb6b8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x450], ebx
mov eax, dword [eax]
mov dword [ebp - 0x460], edi
mov dword [ebp - 0x44c], eax
cmp eax, ebx
jne 0x4813c6
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x44c], eax
push 0x206
lea ecx, [ebp - 0x21a]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x21c], ax
call fcn.004a2b10
add esp, 0xc
push 0x206
lea eax, [ebp - 0x422]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x424], dx
call fcn.004a2b10
mov eax, 0x104
add esp, 0xc
mov dword [ebp - 0x458], eax
mov dword [ebp - 0x454], eax
xor ecx, ecx
push 0x10
mov eax, str.SeDebugPrivilege
lea esi, [ebp - 0x440]
mov dword [ebp - 0x448], ebx
mov dword [ebp - 0x444], ebx
mov dword [ebp - 0x42c], 7
mov dword [ebp - 0x430], ebx
mov word [ebp - 0x440], cx
call fcn.00415f60
mov dword [ebp - 4], 1
mov edx, esi
push edx
call fcn.004805a0
add esp, 4
mov byte [ebp - 4], bl
cmp dword [ebp - 0x42c], 8
jb 0x481477
mov eax, dword [ebp - 0x440]
push eax
call fcn.0049b30a
add esp, 4
mov edx, dword [ebp - 0x44c]
push edx
push ebx
xor ecx, ecx
push 0x400
mov dword [ebp - 0x42c], 7
mov dword [ebp - 0x430], ebx
mov word [ebp - 0x440], cx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
je 0x48155d
lea ecx, [ebp - 0x448]
push ecx
push 8
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x48155d
mov eax, dword [ebp - 0x444]
mov ecx, dword [ebp - 0x448]
lea edx, [ebp - 0x444]
push edx
push eax
push ebx
push 1
push ecx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x4814f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x48155d
mov edx, dword [ebp - 0x444]
push edx
call fcn.0049dacb
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x48155d
mov ecx, dword [ebp - 0x444]
mov edx, dword [ebp - 0x448]
lea eax, [ebp - 0x444]
push eax
push ecx
push esi
push 1
push edx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x481554
lea eax, [ebp - 0x45c]
push eax
lea ecx, [ebp - 0x458]
push ecx
lea edx, [ebp - 0x424]
push edx
mov edx, dword [esi]
lea eax, [ebp - 0x454]
push eax
lea ecx, [ebp - 0x21c]
push ecx
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
push esi
call fcn.0049b3dd
add esp, 4
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
mov word [edi], ax
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x481575
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
mov esi, edi
call fcn.00415f60
mov dword [ebp - 4], ebx
mov dword [ebp - 0x450], 1
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0049b315
mov esp, ebp
pop ebp
ret
Function at 0x482810
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c3b78
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x4eb6b8]
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 ebx, ecx
lea esi, [ebx + 0xa8]
mov edi, edx
mov dword [ebp - 0x254], 0
cmp dword [esi + 0x10], 0
mov dword [ebp - 0x260], ebx
mov dword [ebp - 0x25c], edi
mov dword [ebp - 0x258], esi
je 0x4828ac
cmp dword [esi + 0x14], 8
jb 0x482874
mov eax, dword [esi]
jmp 0x482876
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
test al, al
je 0x4828ac
xor ebx, ebx
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
push ebx
mov word [edi], ax
push esi
or eax, 0xffffffff
mov ecx, edi
call fcn.004138e0
mov dword [ebp - 4], ebx
jmp 0x482a69
cmp byte [ebx + 0x134], 0
je 0x48292d
cmp dword [ebx + 0x128], 0
je 0x48292d
call fcn.004878c0
mov ecx, esi
test eax, eax
je 0x4828fb
push 9
mov eax, str.C:Users_
call fcn.004137b0
push 0
mov esi, eax
add ebx, 0x118
push ebx
or eax, 0xffffffff
call fcn.004136c0
mov ecx, eax
push 0x13
mov eax, str.AppDataLocalTemp
call fcn.004137b0
jmp 0x482a43
push 0x1a
mov eax, str.C:Documents_and_Settings_
call fcn.004137b0
push 0
mov esi, eax
add ebx, 0x118
push ebx
or eax, 0xffffffff
call fcn.004136c0
mov ecx, eax
push 0x14
mov eax, str.Local_SettingsTemp
call fcn.004137b0
jmp 0x482a43
lea edx, [ebp - 0x234]
call fcn.00482aa0
mov dword [ebp - 4], 1
push eax
lea ebx, [ebp - 0x250]
call fcn.0046f050
add esp, 4
mov byte [ebp - 4], 2
mov edi, eax
call fcn.00413650
mov byte [ebp - 4], 1
cmp dword [ebp - 0x23c], 8
jb 0x482975
mov ecx, dword [ebp - 0x250]
push ecx
call fcn.0049b30a
add esp, 4
xor ebx, ebx
xor edx, edx
mov dword [ebp - 0x23c], 7
mov dword [ebp - 0x240], ebx
mov word [ebp - 0x250], dx
mov byte [ebp - 4], bl
cmp dword [ebp - 0x220], 0x10
jb 0x4829ab
mov eax, dword [ebp - 0x234]
push eax
call fcn.0049b30a
add esp, 4
mov ecx, dword [ebp - 0x260]
mov dword [ebp - 0x220], 0xf
mov dword [ebp - 0x224], ebx
mov byte [ebp - 0x234], bl
cmp dword [ecx + 0xb8], ebx
jne 0x482a3d
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x216]
push eax
mov word [ebp - 0x218], dx
call fcn.004a2b10
add esp, 0xc
lea ecx, [ebp - 0x218]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x482a3d
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x482a10
mov esi, dword [ebp - 0x258]
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
call fcn.00415f60
mov eax, 0x5c
mov ecx, esi
call fcn.0046fa00
mov edi, dword [ebp - 0x25c]
mov eax, dword [ebp - 0x258]
xor esi, esi
push esi
xor edx, edx
push eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], esi
or eax, 0xffffffff
mov ecx, edi
mov word [edi], dx
call fcn.004138e0
mov dword [ebp - 4], esi
mov dword [ebp - 0x254], 1
mov eax, edi
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.0049b315
mov esp, ebp
pop ebp
ret
Function at 0x4835f0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c7e43
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x4eb6b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov al, byte [esi + 0x14]
test al, al
jne 0x483755
xor ebx, ebx
push ebx
push 4
push esi
push 0x484900
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x18], eax
cmp eax, 0xffffffff
je 0x483755
mov ecx, dword [esi + 0x18]
push ecx
mov byte [esi + 0x14], 1
call dword [sym.imp.KERNEL32.dll_ResumeThread]
lea edx, [ebp - 0x100]
push edx
call fcn.00410ff0
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x100]
push str.CreateThread:RecvMsgThread_OK.
push eax
call fcn.00418890
add esp, 8
push 0x1c
mov esi, 0xf
push str.CAdapterBase::AdapterStartup
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.004159b0
mov byte [ebp - 4], 1
push esi
push str.AdapterBase.cpp
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
call fcn.004159b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x64]
push ecx
lea edx, [ebp - 0x100]
push edx
call fcn.004110f0
mov byte [ebp - 4], 3
push eax
push 0x2a
push 3
call fcn.004117f0
push eax
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x48]
call fcn.0047acf0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x50], 8
jb 0x4836f6
mov eax, dword [ebp - 0x64]
push eax
call fcn.0049b30a
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], cx
mov byte [ebp - 4], 1
cmp dword [ebp - 0x34], 0x10
jb 0x48371c
mov edx, dword [ebp - 0x48]
push edx
call fcn.0049b30a
add esp, 4
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
mov byte [ebp - 4], bl
cmp dword [ebp - 0x18], 0x10
jb 0x48373a
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0049b30a
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x100]
call fcn.004039f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049b315
mov esp, ebp
pop ebp
ret
Function at 0x485c60
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bf458
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x4eb6b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [esi], vtable.CAdapterChrome.0
xor ebx, ebx
mov dword [ebp - 4], ebx
mov al, byte [esi + 0x14]
test al, al
jne 0x485c9f
mov ecx, dword [esi + 0x18]
push ecx
jmp 0x485ccc
mov eax, dword [esi + 0x18]
mov byte [esi + 0x14], bl
cmp eax, ebx
je 0x485cd5
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x485cd5
mov edx, dword [esi + 0x18]
push 1
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x18], ebx
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.00483550
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4878c0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4eb6b8]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x114
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.004a2b10
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x48797a
mov eax, dword [ebp - 0x114]
cmp eax, 5
jne 0x487928
cmp dword [ebp - 0x110], 1
jne 0x48797a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049b315
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x48797a
mov eax, dword [ebp - 0x110]
test eax, eax
jne 0x48794a
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049b315
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x487962
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049b315
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x48797a
mov eax, 3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049b315
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
or eax, 0xffffffff
call fcn.0049b315
mov esp, ebp
pop ebp
ret

Function at 0x4880c0
Capabilities:
Hash data with md5

Disassembly:
xor ecx, ecx
mov byte [eax + 0x68], cl
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x490b40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [esi + 0x2c]
mov dword [ebp - 0xc], edi
jmp 0x490b53
mov edi, dword [ebp - 0xc]
mov ebx, dword [esi + 0x3c]
sub ebx, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub ebx, eax
lea edx, [edi + ecx - 0x106]
mov dword [ebp - 4], ebx
cmp eax, edx
jb 0x490bcd
mov eax, dword [esi + 0x38]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call fcn.004a0db0
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x44]
sub dword [esi + 0x70], edi
sub dword [esi + 0x6c], edi
add esp, 0xc
sub dword [esi + 0x5c], edi
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x490ba1
sub eax, edi
jmp 0x490ba3
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x490b92
mov ecx, dword [esi + 0x40]
mov edx, edi
lea ecx, [ecx + edi*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x490bc0
sub eax, edi
jmp 0x490bc2
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x490bb1
add ebx, edi
mov dword [ebp - 4], ebx
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x490c82
mov edx, dword [esi + 0x74]
add edx, dword [esi + 0x6c]
mov eax, dword [edi + 4]
add edx, dword [esi + 0x38]
mov ecx, dword [ebp - 4]
mov ebx, eax
mov dword [ebp - 8], edx
cmp ebx, ecx
jbe 0x490bf3
mov ebx, ecx
test ebx, ebx
je 0x490c46
sub eax, ebx
mov dword [edi + 4], eax
mov eax, dword [edi + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x490c15
mov edx, dword [edi]
mov ecx, dword [edi + 0x30]
mov eax, ebx
call fcn.00492e80
jmp 0x490c2e
cmp eax, 2
jne 0x490c34
mov ecx, dword [edi]
mov eax, dword [edi + 0x30]
test ecx, ecx
jne 0x490c27
xor eax, eax
jmp 0x490c31
mov edx, ebx
call fcn.004930f0
mov edx, dword [ebp - 8]
mov dword [edi + 0x30], eax
mov ecx, dword [edi]
push ebx
push ecx
push edx
call fcn.004a0db0
add dword [edi], ebx
add esp, 0xc
add dword [edi + 8], ebx
add dword [esi + 0x74], ebx
mov edi, dword [esi + 0x74]
cmp edi, 3
jb 0x490c6e
mov edx, dword [esi + 0x6c]
add edx, dword [esi + 0x38]
mov ecx, dword [esi + 0x58]
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edi, 0x106
jae 0x490c82
mov edx, dword [esi]
cmp dword [edx + 4], 0
jne 0x490b50
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49b315
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4eb6b8]
jne 0x49b31f
repz ret
jmp fcn.004a2bde

Function at 0x4ab290
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4eb6b8]
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.004a3341
and dword [ebp - 0x14], 0
cmp dword [0x4efd14], 0
mov dword [ebp - 0x18], eax
jne 0x4ab343
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4ab3eb
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4ab3eb
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4efd14], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4efd18], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4efd1c], eax
call edi
push eax
call esi
mov dword [0x4efd24], eax
test eax, eax
je 0x4ab343
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4efd20], eax
mov eax, dword [0x4efd20]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4ab39c
cmp dword [0x4efd24], ecx
je 0x4ab39c
push eax
call esi
push dword [0x4efd24]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4ab39c
test ebx, ebx
je 0x4ab39c
call edi
test eax, eax
je 0x4ab393
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4ab393
test byte [ebp - 8], 1
jne 0x4ab39c
or dword [ebp + 0x10], 0x200000
jmp 0x4ab3cf
mov eax, dword [0x4efd18]
cmp eax, dword [ebp - 0x18]
je 0x4ab3cf
push eax
call esi
test eax, eax
je 0x4ab3cf
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4ab3cf
mov eax, dword [0x4efd1c]
cmp eax, dword [ebp - 0x18]
je 0x4ab3cf
push eax
call esi
test eax, eax
je 0x4ab3cf
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4efd14]
call esi
test eax, eax
je 0x4ab3eb
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4ab3ed
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049b315
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
Function at 0x10014e6
Capabilities:
Create process on windows
Create process suspended
Create thread
Resume thread
Terminate process
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x478
push esi
xor esi, esi
push esi
push esi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
cmp eax, esi
mov dword [ebp - 0xc], eax
je 0x1001616
push ebx
push eax
call fcn.01001463
cmp eax, esi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], eax
je 0x1001610
lea ecx, [ebp - 0x24]
push ecx
push 4
push eax
push 0x10014ad
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
mov dword [ebp - 4], eax
je 0x100160b
push edi
xor eax, eax
mov dword [ebp - 0x20], esi
push 0x10
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
pop ecx
push dword [ebp + 8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x400
xor eax, eax
mov dword [ebp - 0x68], esi
lea edi, [ebp - 0x64]
push 0x10011f8
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x478]
push 0x208
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x14
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
push esi
push 4
push esi
push esi
push esi
lea eax, [ebp - 0x478]
push eax
push esi
mov dword [ebp - 0x68], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x10015fa
push dword [ebp - 0x20]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
je 0x10015e0
push dword [ebp - 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [ebp - 8], 1
call edi
push dword [ebp - 4]
call edi
cmp dword [ebp + 0xc], esi
je 0x10015eb
push 0x4ff
push 0xffffffffffffffff
push dword [ebp - 4]
push esi
call fcn.01002564
jmp 0x10015eb
push 5
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 0x20]
call ebx
push dword [ebp - 0x1c]
call ebx
cmp dword [ebp - 8], esi
jne 0x1001605
push 5
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [ebp - 4]
call ebx
pop edi
push dword [ebp - 0x10]
call ebx
push dword [ebp - 0xc]
call ebx
pop ebx
mov eax, dword [ebp - 8]
pop esi
leave
ret 8
Function at 0x1001687
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
push ebx
push esi
push edi
push 0xe
pop ecx
xor eax, eax
push 0x43
xor ebx, ebx
mov dword [ebp - 0x3c], ebx
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
push 0x106
lea eax, [ebp - 0x248]
push eax
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_Ordinal_653]
cmp eax, 0xffffffff
jne 0x10016ce
push dword [ebp + 8]
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.SHLWAPI.dll_PathGetArgsW]
mov esi, eax
cmp word [esi], bx
je 0x10016e6
mov word [esi - 2], bx
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
mov dword [ebp - 0x28], esi
xor esi, esi
inc esi
cmp dword [ebp + 0xc], ebx
lea eax, [ebp - 0x248]
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x38], 0x40
je 0x100171f
mov dword [ebp - 0x38], 0x440
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x1001754
cmp dword [ebp - 4], ebx
je 0x1001750
cmp dword [ebp + 0x10], ebx
je 0x1001747
push 0x4ff
push 0xffffffffffffffff
push dword [ebp - 4]
push ebx
call fcn.01002564
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x1001756
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1001a5e
Capabilities:
Persist via run registry key

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
xor ebx, ebx
xor edi, edi
jmp 0x1001acb
cmp ax, 0x2d
je 0x1001a81
cmp ax, 0x2f
je 0x1001a81
inc esi
inc esi
mov ax, word [esi]
cmp ax, bx
jne 0x1001a6b
cmp word [esi], bx
je 0x1001b39
inc esi
push 0x1001310
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1001ad5
push 0x10012f4
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1001afc
movzx eax, word [esi]
sub eax, 0x62
je 0x1001ac6
sub eax, 0x10
je 0x1001ac1
dec eax
jne 0x1001ac9
or edi, 4
jmp 0x1001ac9
or edi, 1
jmp 0x1001ac9
or edi, 2
inc esi
inc esi
mov ax, word [esi]
cmp ax, bx
jne 0x1001a6b
jmp 0x1001b39
push 0x1e
call dword [sym.imp.SHLWAPI.dll_IsOS]
test eax, eax
je 0x1001b39
push ebx
push 0x1001a17
push 3
push 0x1001260
push 0x80000002
call fcn.0100179f
mov edi, eax
jmp 0x1001b39
push 0x1e
call dword [sym.imp.SHLWAPI.dll_IsOS]
test eax, eax
je 0x1001b39
push 0x10012d8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
cmp esi, ebx
je 0x1001b39
push 0x10012c4
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x1001b32
push ebx
push ebx
push ebx
push ebx
call eax
xor edi, edi
inc edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x1001c65
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1001c98
push 0x1001328
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x1001c9a
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x62c
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x1001348
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x424]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1001dcd
push edi
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x62c]
push ecx
push eax
push dword [ebp - 4]
mov edi, 0x104
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], 0x208
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x1001dc3
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp dword [ebp - 0x14], 1
jne 0x1001d84
push 0x314
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
push 0x80
lea eax, [ebp - 0x62c]
push eax
push ebx
call esi
push edi
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebx + 0x108]
push eax
call esi
push ebx
push 0
push 0x180
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
je 0x1001d7d
cmp eax, 0xfffffffe
jne 0x1001d84
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
inc dword [ebp - 8]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x62c]
push eax
push dword [ebp - 8]
mov dword [ebp - 0xc], edi
push dword [ebp - 4]
mov dword [ebp - 0x10], 0x208
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x1001d2d
pop esi
pop ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
leave
ret 4