joyce8/EMBER2024-capa huggingface dataset:
Function at 0x458f64
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffd4
call fcn.00458f18
test eax, eax
je 0x4590b2
mov eax, 0x6c0690
call fcn.00458f3c
test eax, eax
jbe 0x4590b2
lea ecx, [esp + 4]
mov edx, esp
mov eax, 1
call fcn.00458f28
mov eax, dword [esp]
shr eax, 8
and al, 0xf
mov byte [0x6c069f], al
mov eax, dword [esp]
shr eax, 4
and al, 0xf
mov byte [0x6c06a0], al
mov eax, dword [esp + 4]
and eax, 0x8000
test eax, eax
je 0x458fcf
movzx eax, byte [0x4590cc]
or al, byte [0x6c069d]
mov byte [0x6c069d], al
mov eax, dword [esp + 4]
and eax, 0x800000
test eax, eax
je 0x458fee
movzx eax, byte [0x4590d0]
or al, byte [0x6c069d]
mov byte [0x6c069d], al
mov eax, dword [esp + 4]
and eax, 0x2000000
test eax, eax
je 0x45900d
movzx eax, byte [0x4590d4]
or al, byte [0x6c069d]
mov byte [0x6c069d], al
mov eax, dword [esp + 4]
and eax, 0x4000000
test eax, eax
je 0x45902c
movzx eax, byte [0x4590d8]
or al, byte [0x6c069d]
mov byte [0x6c069d], al
lea ecx, [esp + 4]
mov edx, esp
mov eax, 0x80000000
call fcn.00458f28
cmp dword [esp], 0x80000000
jbe 0x4590b2
lea ecx, [esp + 4]
mov edx, esp
mov eax, 0x80000001
call fcn.00458f28
mov eax, dword [esp + 4]
and eax, 0x400000
test eax, eax
je 0x459074
movzx eax, byte [0x4590dc]
or al, byte [0x6c069d]
mov byte [0x6c069d], al
mov eax, dword [esp + 4]
and eax, 0x80000000
test eax, eax
je 0x459093
movzx eax, byte [0x4590e0]
or al, byte [0x6c069d]
mov byte [0x6c069d], al
mov eax, dword [esp + 4]
and eax, 0x40000000
test eax, eax
je 0x4590b2
movzx eax, byte [0x4590e4]
or al, byte [0x6c069d]
mov byte [0x6c069d], al
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetSystemInfo
movzx eax, byte [esp + 0x1c]
mov byte [0x6c069e], al
add esp, 0x2c
ret

Function at 0x464924
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x20]
xor eax, eax
push ebp
push 0x464a04
push dword fs:[eax]
mov dword fs:[eax], esp
mov edi, ebx
add edi, edi
mov eax, edi
add eax, 2
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4649d6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GlobalLock
mov esi, eax
xor eax, eax
push ebp
push 0x4649c5
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, edi
mov edx, esi
mov eax, dword [ebp - 8]
call fcn.00403094
mov word [esi + ebx*2], 0
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
mov eax, dword [ebp - 0xc]
push eax
push 0xd
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4649cc
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
Function at 0x464a38
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x20]
xor edx, edx
push ebp
push 0x464b28
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
call fcn.004647fc
movzx eax, word [ebx + 0x46]
cmp ax, 8
ja 0x464a80
mov ecx, eax
mov esi, 1
shl esi, cl
add esi, esi
add esi, esi
add esi, 0x28
jmp 0x464aa2
movzx eax, word [ebx + 0x46]
cmp ax, 0x10
je 0x464a90
cmp ax, 0x20
jne 0x464a9d
cmp dword [ebx + 0x48], 3
jne 0x464a9d
mov esi, 0x34
jmp 0x464aa2
mov esi, 0x28
mov eax, dword [ebx + 0x4c]
add eax, esi
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov edi, eax
xor eax, eax
push ebp
push 0x464b0b
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, edi
lea eax, [ebx + 0x38]
mov ecx, esi
call fcn.00403094
mov ecx, dword [ebx + 0x4c]
mov edx, edi
add edx, esi
mov eax, dword [ebx + 0x30]
call fcn.00403094
mov eax, dword [ebp - 8]
push eax
push 8
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x464b12
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
Function at 0x464b38
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x20]
xor edx, edx
push ebp
push 0x464c8b
push dword fs:[edx]
mov dword fs:[edx], esp
push 8
call sub.user32.dll_GetClipboardData
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x464c75
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
xor edx, edx
push ebp
push 0x464c6e
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, ebx
mov eax, esi
call fcn.0043b640
movzx eax, word [ebx + 0xe]
cmp ax, 8
ja 0x464bae
mov ecx, eax
mov edi, 1
shl edi, cl
add edi, edi
add edi, edi
add edi, 0x28
jmp 0x464bd0
movzx eax, word [ebx + 0xe]
cmp ax, 0x10
je 0x464bbe
cmp ax, 0x20
jne 0x464bcb
cmp dword [ebx + 0x10], 3
jne 0x464bcb
mov edi, 0x34
jmp 0x464bd0
mov edi, 0x28
movzx eax, word [esi + 0x46]
cmp ax, 8
ja 0x464bf4
mov ecx, eax
mov eax, 1
shl eax, cl
mov ecx, eax
add ecx, ecx
add ecx, ecx
mov edx, dword [esi + 0x34]
lea eax, [ebx + 0x28]
call fcn.00403094
mov eax, dword [ebx + 0x10]
cmp eax, 1
jne 0x464c09
mov edx, ebx
add edx, edi
mov eax, esi
call fcn.0043bff0
jmp 0x464c57
cmp eax, 2
jne 0x464c1b
mov edx, ebx
add edx, edi
mov eax, esi
call fcn.0043beb4
jmp 0x464c57
mov eax, dword [ebx + 0x14]
test eax, eax
jne 0x464c4a
mov eax, dword [esi + 0x24]
test eax, eax
je 0x464c2e
imul dword [esi + 0x40]
jmp 0x464c4a
mov eax, ebx
mov edx, dword [eax + 4]
movzx ecx, word [eax + 0xe]
imul edx, ecx
add edx, 0x1f
shr edx, 5
add edx, edx
add edx, edx
imul edx, dword [eax + 8]
mov eax, edx
mov edx, dword [esi + 0x30]
add ebx, edi
mov ecx, ebx
xchg ecx, eax
call fcn.00403094
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x464c75
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x464c92
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x1c]
ret
Function at 0x477cd0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
test dl, dl
je 0x477ce3
add esp, 0xfffffff0
call fcn.004041f4
mov dword [ebp - 4], ecx
mov ebx, edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.004051d8
xor eax, eax
push ebp
push 0x477dc5
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [edi + 8], 0
mov eax, dword [ebp - 4]
call fcn.004051e8
push eax
call fcn.0040b6b8
mov esi, eax
mov dword [edi + 4], esi
test esi, esi
je 0x477daf
push 0x477dec
push esi
call sub.kernel32.dll_GetProcAddress_2
mov dword [edi + 0xc], eax
push 0x477dfc
mov eax, dword [edi + 4]
push eax
call sub.kernel32.dll_GetProcAddress_2
mov dword [edi + 0x10], eax
push 0x477e0c
mov eax, dword [edi + 4]
push eax
call sub.kernel32.dll_GetProcAddress_2
mov dword [edi + 0x14], eax
push 0x477e1c
mov eax, dword [edi + 4]
push eax
call sub.kernel32.dll_GetProcAddress_2
mov dword [edi + 0x18], eax
push 0x477e24
mov eax, dword [edi + 4]
push eax
call sub.kernel32.dll_GetProcAddress_2
mov dword [edi + 0x1c], eax
xor eax, eax
mov dword [edi + 0x20], eax
cmp dword [edi + 0xc], 0
je 0x477d94
cmp dword [edi + 0x10], 0
je 0x477d94
cmp dword [edi + 0x14], 0
je 0x477d94
cmp dword [edi + 0x18], 0
je 0x477d94
cmp dword [edi + 0x1c], 0
jne 0x477d98
xor eax, eax
jmp 0x477d9a
mov al, 1
mov byte [edi + 8], al
test al, al
jne 0x477daf
mov eax, dword [edi + 4]
push eax
call sub.kernel32.dll_FreeLibrary_1
xor eax, eax
mov dword [edi + 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x477dcc
lea eax, [ebp - 4]
call fcn.00404d84
ret

Function at 0x478674
Capabilities:
Resume thread

Disassembly:
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_ResumeThread
ret

Function at 0x47995c
Capabilities:
Terminate thread

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x38], 0
je 0x4799b9
mov eax, dword [ebx + 0x40]
push eax
call sub.kernel32.dll_SetEvent
push 0x3e8
mov eax, dword [ebx + 0x38]
push eax
call sub.kernel32.dll_WaitForSingleObject_1
cmp eax, 0x102
jne 0x4799a2
mov ecx, 0x15b
mov edx, 0x4799c4
mov eax, 0x479a08
call fcn.00404ccc
push 0
mov eax, dword [ebx + 0x38]
push eax
call sub.kernel32.dll_TerminateThread
mov eax, dword [ebx + 0x40]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebx + 0x38]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
mov dword [ebx + 0x38], eax
pop ebx
ret
Function at 0x489e14
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
mov esi, edx
lea edi, [ebp - 0x3c]
mov ecx, 0xf
rep movsd dword es:[edi], dword [esi]
mov ebx, eax
lea eax, [ebp - 0x3c]
mov edx, dword [0x48870c]
call fcn.00405cf8
xor eax, eax
push ebp
push 0x489ec9
push dword fs:[eax]
mov dword fs:[eax], esp
lea esi, [ebp - 0x38]
lea edi, [ebx + 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x28]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp - 0x24]
mov dword [ebx + 0x20], eax
movzx eax, byte [ebp - 0x20]
mov byte [ebx + 0x24], al
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0x28], eax
mov ax, word [ebp - 0x18]
mov word [ebx + 0x2c], ax
mov al, byte [ebp - 0x16]
mov byte [ebx + 0x2e], al
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x34], eax
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x30], eax
movzx eax, byte [ebp - 0xc]
mov byte [ebx + 0x38], al
movzx eax, byte [ebp - 0xb]
mov byte [ebx + 0x39], al
movzx eax, byte [ebp - 0xa]
mov byte [ebx + 0x3a], al
mov eax, dword [ebp - 8]
mov dword [ebx + 0x3c], eax
movzx eax, byte [ebp - 4]
mov byte [ebx + 0x40], al
movzx eax, byte [ebp - 3]
mov byte [ebx + 0x41], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x489ed0
lea eax, [ebp - 0x3c]
mov edx, dword [0x48870c]
call fcn.00405bc0
ret

Function at 0x48dab4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x48db1a
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404fb8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004036d0
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x48db04
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48db21
lea eax, [ebp - 0x10]
call fcn.00404d84
ret
Function at 0x4d63fc
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x4d642a
mov eax, ebx
call fcn.004d6ea0
cmp dword [ebx + 0x3c], 0
je 0x4d6423
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x4d649b
mov edx, dword [ebx + 0x1a6]
cmp dword [edx + 0x10], 0
je 0x4d648d
cmp dword [ebx + 8], 0
je 0x4d644c
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1a6]
call dword [edx]
test eax, eax
jne 0x4d645e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4d648d
cmp dword [ebx + 8], 0
je 0x4d643f
cmp eax, 3
je 0x4d6471
dec eax
jne 0x4d643f
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4d643f
mov edx, dword [ebx + 0x132]
add dword [eax + 8], edx
jmp 0x4d643f
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x4d64b9
cmp dword [ebx + 0x10], 0xcc
je 0x4d64b9
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004d64c4
pop ebx
ret
Function at 0x4f0274
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 5
push 0
push 0
dec ecx
jne 0x4f027d
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4f043c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x30]
mov ebx, eax
mov byte [ebp - 5], 0
test ebx, ebx
je 0x4f040a
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.00421a28
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.004115e4
mov eax, dword [ebp - 0xc]
mov edx, 0x4f0450
call fcn.0040584c
jne 0x4f0320
lea eax, [ebp - 0x14]
push eax
xor ecx, ecx
mov edx, 0x4f046c
mov eax, ebx
call fcn.0042170c
mov eax, dword [ebp - 0x14]
mov edx, 0x4f0480
call fcn.0040584c
je 0x4f03f7
mov eax, dword [edi + 0x10]
mov edx, ebx
call fcn.00417d3c
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
mov ecx, edi
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004f0274
jmp 0x4f03f7
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.00421a28
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
call fcn.004115e4
mov eax, dword [ebp - 0x18]
mov edx, 0x4f0488
call fcn.0040584c
jne 0x4f0353
mov eax, dword [edi + 0x10]
mov edx, ebx
call fcn.00417d3c
jmp 0x4f03f7
lea edx, [ebp - 0x24]
mov eax, ebx
call fcn.00421a28
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.004115e4
mov eax, dword [ebp - 0x20]
mov edx, 0x4f04a4
call fcn.0040584c
jne 0x4f03be
xor ecx, ecx
mov edx, 0x4f04c4
mov eax, ebx
call fcn.00423230
test eax, eax
setg al
mov byte [edi + 0x14], al
xor ecx, ecx
mov edx, 0x4f046c
mov eax, ebx
call fcn.00423230
test eax, eax
jle 0x4f03b5
mov ecx, 0x64
mov edx, 0x4f04dc
mov eax, ebx
call fcn.00423230
mov dword [edi + 0x18], eax
jmp 0x4f03f7
mov dword [edi + 0x18], 0x64
jmp 0x4f03f7
lea edx, [ebp - 0x2c]
mov eax, ebx
call fcn.00421a28
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
call fcn.004115e4
mov eax, dword [ebp - 0x28]
mov edx, 0x4f04f8
call fcn.0040584c
jne 0x4f03f7
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004f07ac
mov byte [ebp - 5], 1
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov ebx, eax
test ebx, ebx
jne 0x4f02b4
cmp byte [ebp - 5], 0
jne 0x4f0421
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004f07ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f0443
lea eax, [ebp - 0x2c]
mov edx, 9
call fcn.00405548
ret
Function at 0x4f4bd0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
test dl, dl
je 0x4f4be3
add esp, 0xfffffff0
call fcn.004041f4
mov esi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
test esi, esi
jne 0x4f4c02
mov ecx, 0x22f
mov edx, 0x4f4d38
mov eax, 0x4f4d84
call fcn.00404ccc
xor edx, edx
mov eax, ebx
call fcn.004eb6c8
mov dword [ebx + 0x70], 0xffc00000
mov dword [ebx + 0x74], 0x41dfffff
mov dl, 1
mov eax, dword [0x4105dc]
call fcn.00410e38
mov dword [ebx + 0x54], eax
mov dword [ebx + 0x20], esi
movzx eax, byte [ebp + 8]
mov byte [ebx + 0x24], al
mov eax, dword [ebx + 0x20]
mov eax, dword [eax + 0x10]
mov edx, dword [eax]
call dword [edx + 4]
mov dword [ebx + 0x28], eax
mov ecx, esi
mov dl, 1
mov eax, dword [0x4f1bac]
call fcn.004f1fd4
mov edi, eax
mov dword [ebx + 0x2c], edi
movzx eax, byte [edi + 0x11]
mov byte [ebx + 0x78], al
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x28]
call fcn.004f2f98
xor esi, esi
mov eax, dword [0x516b2c]
cmp dword [eax], 0
je 0x4f4c7d
mov esi, dword [0x516b2c]
mov esi, dword [esi]
call esi
mov esi, eax
test esi, esi
je 0x4f4c91
mov eax, esi
mov edx, dword [eax]
call dword [edx + 4]
test al, al
je 0x4f4c91
mov dword [ebx + 0x30], esi
jmp 0x4f4c98
mov eax, esi
call fcn.00403f90
mov eax, dword [ebx + 0x30]
push eax
mov eax, dword [ebx + 0x18]
push eax
mov ecx, dword [ebx + 0x28]
mov dl, 1
mov eax, dword [0x4f2df0]
call fcn.004f36c8
mov dword [ebx + 0x38], eax
mov dl, 1
mov eax, dword [0x4f2cb4]
call fcn.00403f60
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4177e0]
call fcn.00403f60
mov dword [ebx + 0x40], eax
mov esi, dword [ebx + 0x2c]
mov edi, dword [esi + 0x1c]
test edi, edi
je 0x4f4d01
push edi
movzx eax, byte [esi + 0x11]
push eax
movzx eax, byte [esi + 0x13]
push eax
mov ecx, ebx
mov dl, 1
mov eax, dword [0x4f3b28]
call fcn.004f4164
mov dword [ebx + 0x44], eax
mov eax, dword [ebx + 0x44]
xor edx, edx
mov dword [eax + 0x30], edx
mov dword [eax + 0x34], edx
push 0
push 0
xor edx, edx
mov eax, ebx
call fcn.004f5608
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4f4d25
call fcn.0040424c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x503a70
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov ebx, ecx
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x503b0f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x44
call fcn.004035c8
mov dword [ebp - 0x4c], 0x44
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.00503a40
test al, al
je 0x503ac0
mov dword [ebp - 0x20], 1
lea eax, [ebp - 4]
mov edx, edi
call fcn.00405594
push esi
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040dc4c
push eax
push 0
call sub.kernel32.dll_CreateProcessW
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x503b16
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405548
ret

Function at 0x503b20
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffbc
mov ebx, ecx
mov esi, edx
mov edi, eax
mov eax, esp
xor ecx, ecx
mov edx, 0x44
call fcn.004035c8
mov dword [esp], 0x44
lea edx, [esp + 0x30]
mov eax, ebx
call fcn.00503a40
test al, al
je 0x503b58
mov dword [esp + 0x2c], 1
push esi
lea eax, [esp + 4]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, edi
call fcn.004051e8
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb eax, eax
inc eax
add esp, 0x44
pop edi
pop esi
pop ebx
ret

Function at 0x50448c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
lea eax, [ebp - 4]
call fcn.00405adc
lea eax, [ebp - 8]
call fcn.00405adc
lea eax, [ebp + 0x10]
call fcn.00405adc
lea eax, [ebp + 0xc]
call fcn.00405adc
xor eax, eax
push ebp
push 0x504571
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
test esi, esi
je 0x5044fa
mov eax, dword [0x516c78]
mov eax, dword [eax]
mov cl, 0xec
mov edx, esi
call dword [eax + 0x54]
test al, 8
setne bl
test bl, bl
je 0x5044fa
push 0x13
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
push esi
call sub.user32.dll_SetWindowPos
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
call fcn.00405718
push eax
mov eax, dword [ebp + 0x10]
call fcn.00405718
push eax
mov eax, dword [ebp - 8]
call fcn.00405718
push eax
mov eax, dword [ebp - 4]
call fcn.00405718
push eax
push esi
call sub.shell32.dll_ShellExecuteW
mov edi, eax
cmp edi, 0x20
ja 0x504549
test esi, esi
je 0x504549
test bl, bl
je 0x504549
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push esi
call sub.user32.dll_SetWindowPos
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x504578
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405548
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.00405548
ret
Function at 0x10016c3
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100a1f4]
push ebx
xor ebx, ebx
cmp eax, 2
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], bl
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], 5
mov dword [ebp - 4], ebx
jne 0x10017e6
lea eax, [ebp - 4]
push eax
call fcn.0100162e
test eax, eax
jne 0x10017d4
lea eax, [ebp - 0xc]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x10017e6
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0xc]
call edi
test eax, eax
jne 0x10017c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10017c8
push esi
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
cmp esi, ebx
je 0x10017c7
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push esi
push 2
push dword [ebp - 0xc]
call edi
test eax, eax
je 0x10017c0
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x10017c0
cmp dword [esi], ebx
jbe 0x10017b7
lea edi, [esi + 4]
push dword [ebp - 0x10]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x10017ac
inc ebx
add edi, 8
cmp ebx, dword [esi]
jb 0x1001793
jmp 0x10017b7
xor eax, eax
inc eax
mov dword [0x100a1f4], eax
mov dword [ebp - 4], eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
jmp 0x10017e3
cmp dword [ebp - 4], ebx
je 0x10017e3
mov dword [0x100a1f4], 1
mov eax, dword [ebp - 4]
pop ebx
leave
ret

Function at 0x10018ed
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
xor esi, esi
test eax, eax
jne 0x1001919
push esi
push 0x10
push esi
push esi
push 0x4f5
jmp 0x100196e
lea eax, [ebp - 0x10]
push eax
push 0x1001258
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
push esi
jne 0x1001958
push 0x10
push esi
push esi
push 0x4f6
jmp 0x100196e
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x1001978
push esi
push 0x10
push esi
push esi
push 0x4f7
push esi
call fcn.010038f9
xor eax, eax
jmp 0x100197b
xor eax, eax
inc eax
pop esi
leave
ret
Function at 0x100197e
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [0x100a2e0], 0
je 0x10019c1
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10019c1
push 0x100a2e0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret