joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4153d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
imul ecx, eax
push edi
mov dword [esi + 8], ecx
test ebx, ebx
jne 0x4153f0
mov ebx, edx
mov ecx, dword [esi + 4]
xor edi, edi
test cl, cl
jns 0x415466
test edx, edx
jne 0x415429
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042174b
mov edi, eax
mov eax, dword [esi + 0x1c]
add eax, eax
push eax
push ebx
push edi
call fcn.00420960
add esp, 0x10
mov edx, edi
mov ebx, edi
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x415442
movzx ecx, word [edx + eax*2 - 2]
dec eax
rol cx, 8
mov word [edx + eax*2], cx
test eax, eax
jne 0x415430
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov eax, esp
push ecx
mov dword [eax], 0
mov eax, esp
lea ecx, [esi + 0x20]
push ecx
mov dword [eax], str.endian_swap
call fcn.00417970
add esp, 0x18
mov edx, dword [esi]
mov eax, dword [esi + 8]
push edx
push 1
push eax
push ebx
call fcn.0042218d
add esp, 0x10
cmp eax, 1
sete bl
test edi, edi
je 0x41548b
push edi
call fcn.0041fbfc
add esp, 4
test bl, bl
je 0x4154c3
mov edx, dword [esi + 0x1c]
mov ecx, dword [esi + 8]
add dword [esi + 0x14], ecx
push 0xffffffffffffffff
push edx
push 0x18
push ecx
mov ecx, dword [esi + 0x24]
mov eax, esp
push ecx
mov dword [eax], ecx
mov eax, esp
add esi, 0x20
push esi
mov dword [eax], str.write
call fcn.00417970
add esp, 0x18
mov al, bl
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov ecx, esi
call fcn.00415210
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret 8
Function at 0x417e60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov eax, dword [esi]
mov ecx, dword [esi + 8]
push eax
push 1
push ecx
push edi
call fcn.00422718
mov ecx, dword [esi + 8]
add esp, 0x10
cmp eax, 1
mov eax, ecx
sete bl
cdq
idiv dword [esi + 0x18]
mov byte [ebp - 1], bl
mov dword [esi + 0x1c], eax
test bl, bl
je 0x417fb8
mov edx, dword [esi + 0x24]
add dword [esi + 0x14], ecx
push 0xffffffffffffffff
push eax
push 0x18
push ecx
mov eax, esp
mov dword [eax], edx
push ecx
mov eax, esp
mov dword [eax], str.read
lea eax, [esi + 0x20]
push eax
mov dword [ebp - 0xc], eax
call fcn.00417970
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
mov dword [ebp - 8], eax
add esp, 0x18
xor ebx, ebx
xor eax, eax
cmp ecx, 1
sete byte [ebp - 2]
cmp dword [ebp - 8], eax
je 0x417f6c
dec dword [ebp - 8]
xor edx, edx
cmp byte [ebp - 2], dl
je 0x417ef0
cmp byte [edi], dl
jmp 0x417ef3
cmp word [edi], dx
sete dl
test edx, edx
je 0x417f1d
test eax, eax
je 0x417f16
cmp edi, eax
je 0x417f16
imul ecx, ebx
mov edx, edi
sub edx, eax
push edx
push eax
sub eax, ecx
push eax
call fcn.00421760
add esp, 0xc
mov ecx, dword [esi + 0x18]
lea eax, [ecx + edi]
inc ebx
add edi, ecx
cmp dword [ebp - 8], 0
jne 0x417ee2
test eax, eax
je 0x417f42
cmp edi, eax
je 0x417f42
mov ecx, dword [esi + 0x18]
imul ecx, ebx
sub edi, eax
push edi
push eax
sub eax, ecx
push eax
call fcn.00421760
add esp, 0xc
test ebx, ebx
je 0x417f6c
mov edx, dword [ebp - 0xc]
push 0xffffffffffffffff
push ebx
push 1
push ecx
mov eax, esp
push ecx
mov dword [eax], 0
mov eax, esp
push edx
mov dword [eax], str.nulls_removed
call fcn.00417970
add esp, 0x18
sub dword [esi + 0x1c], ebx
cmp dword [esi + 0x18], 1
jle 0x417fac
test byte [esi + 4], 0x80
je 0x417fac
mov eax, dword [esi + 0x1c]
mov ecx, dword [ebp + 8]
push eax
push ecx
call fcn.00412580
mov edx, dword [ebp - 0xc]
add esp, 8
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov eax, esp
push ecx
mov dword [eax], 0
mov eax, esp
push edx
mov dword [eax], str.endian_swap
call fcn.00417970
add esp, 0x18
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, esi
call fcn.00415210
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x419990
Capabilities:
Hash data with md5

Disassembly:
mov eax, ecx
xor ecx, ecx
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
mov dword [eax + 0x58], ecx
mov byte [eax + 0x5c], cl
ret

Function at 0x4199c0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x43fb24]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp byte [esi + 0x5c], 0
jne 0x419b3a
mov ecx, dword [esi + 0x58]
lea eax, [ecx*8]
add dword [esi + 0x10], eax
mov eax, dword [esi + 0x10]
add ecx, ecx
add ecx, ecx
add ecx, ecx
cmp eax, ecx
jae 0x4199fa
inc dword [esi + 0x14]
movzx ecx, byte [esi + 0x11]
movzx edx, byte [esi + 0x10]
mov byte [ebp - 0xb], cl
movzx ecx, byte [esi + 0x13]
mov byte [ebp - 0xc], dl
movzx edx, byte [esi + 0x12]
mov byte [ebp - 9], cl
movzx ecx, byte [esi + 0x15]
mov byte [ebp - 0xa], dl
movzx edx, byte [esi + 0x14]
mov byte [ebp - 7], cl
movzx ecx, byte [esi + 0x17]
shr eax, 3
mov byte [ebp - 8], dl
movzx edx, byte [esi + 0x16]
and eax, 0x3f
mov byte [ebp - 5], cl
mov byte [ebp - 6], dl
mov ecx, 0x38
cmp eax, 0x38
jb 0x419a47
mov ecx, 0x78
sub ecx, eax
push ebx
push edi
test ecx, ecx
je 0x419a75
mov ebx, ecx
mov edi, 0x43f930
mov al, byte [edi]
mov edx, dword [esi + 0x58]
mov byte [esi + edx + 0x18], al
inc dword [esi + 0x58]
dec ebx
inc edi
cmp dword [esi + 0x58], 0x40
jb 0x419a71
mov ecx, esi
call fcn.004191c0
test ebx, ebx
jne 0x419a56
mov ebx, 8
lea edi, [ebp - 0xc]
lea ecx, [ecx]
mov ecx, dword [esi + 0x58]
mov dl, byte [edi]
mov byte [esi + ecx + 0x18], dl
inc dword [esi + 0x58]
dec ebx
inc edi
cmp dword [esi + 0x58], 0x40
jb 0x419a9b
mov ecx, esi
call fcn.004191c0
xor eax, eax
cmp ebx, eax
jne 0x419a80
movzx ecx, byte [esi]
movzx edx, byte [esi + 1]
mov byte [esi + 0x5d], cl
movzx ecx, byte [esi + 2]
mov byte [esi + 0x5e], dl
movzx edx, byte [esi + 3]
mov byte [esi + 0x5f], cl
movzx ecx, byte [esi + 4]
mov byte [esi + 0x60], dl
movzx edx, byte [esi + 5]
mov byte [esi + 0x61], cl
movzx ecx, byte [esi + 6]
mov byte [esi + 0x62], dl
movzx edx, byte [esi + 7]
mov byte [esi + 0x63], cl
movzx ecx, byte [esi + 8]
mov byte [esi + 0x64], dl
movzx edx, byte [esi + 9]
mov byte [esi + 0x65], cl
movzx ecx, byte [esi + 0xa]
mov byte [esi + 0x66], dl
movzx edx, byte [esi + 0xb]
mov byte [esi + 0x67], cl
movzx ecx, byte [esi + 0xc]
mov byte [esi + 0x68], dl
movzx edx, byte [esi + 0xd]
mov byte [esi + 0x69], cl
movzx ecx, byte [esi + 0xe]
mov byte [esi + 0x6a], dl
movzx edx, byte [esi + 0xf]
mov byte [esi + 0x6b], cl
mov byte [esi + 0x6c], dl
pop edi
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], eax
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x58], eax
mov byte [esi + 0x5c], 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041fef9
mov esp, ebp
pop ebp
ret
Function at 0x41abe0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test esi, esi
jne 0x41abf9
lea eax, [esi + 0xd]
pop esi
mov esp, ebp
pop ebp
ret 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
xor edi, edi
push esi
call ebx
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x41ac03
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
push edi
push eax
mov eax, dword [edx]
push 7
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x41b160
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x43fb24]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push edi
or ecx, 0x2001f
push ecx
xor ebx, ebx
push eax
push edx
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0x10c], ebx
mov dword [ebp - 0x108], ebx
call fcn.0041aac0
mov edi, eax
cmp edi, ebx
je 0x41b1da
mov eax, dword [ebp - 0x110]
cmp eax, ebx
je 0x41b1c5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041fef9
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x120]
push eax
mov eax, dword [ebp - 0x110]
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x114]
push ecx
lea edx, [ebp - 0x104]
push edx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
mov dword [ebp - 0x114], 0x100
call ebx
test eax, eax
jne 0x41b258
lea ecx, [ebp - 0x104]
push ecx
lea ecx, [ebp - 0x110]
call fcn.0041b160
mov edi, eax
test edi, edi
jne 0x41b291
lea edx, [ebp - 0x120]
push edx
mov edx, dword [ebp - 0x110]
push eax
push eax
push eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x104]
push ecx
push edi
push edx
mov dword [ebp - 0x114], 0x100
call ebx
test eax, eax
je 0x41b210
mov eax, dword [ebp - 0x110]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
cmp eax, edi
je 0x41b273
push eax
call ebx
mov dword [ebp - 0x110], edi
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x10c], edi
push eax
cmp ecx, edi
je 0x41b2bb
mov edx, dword [esi]
push edx
call fcn.0041a890
jmp 0x41b2c4
mov eax, dword [ebp - 0x110]
test eax, eax
je 0x41b1c5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041fef9
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [ebp - 0x110]
cmp eax, edi
je 0x41b2d3
push eax
call ebx
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041fef9
mov esp, ebp
pop ebp
ret 4
Function at 0x41ea10
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4318b8
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x43fb24]
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
mov eax, dword [ebp + 8]
xor edi, edi
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x10c], edi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
test eax, eax
jle 0x41ec32
push 0x30
lea ecx, [ebp - 0x140]
push 0
push ecx
call fcn.00420270
push 0x90
lea edx, [ebp - 0x104]
push 0
push edx
mov dword [ebp - 0x140], 0x30
call fcn.00420270
add esp, 0x18
lea eax, [ebp - 0x108]
push eax
mov dword [ebp - 0x108], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x41eac5
mov eax, dword [ebp - 0x104]
cmp eax, 5
jae 0x41eacf
cmp eax, 4
jne 0x41eac5
cmp dword [ebp - 0x100], 0x5a
jae 0x41eacf
mov dword [ebp - 0x140], 0x2c
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x140]
push edx
push 1
push edi
lea ecx, [ebp - 0x74]
push eax
mov dword [ebp - 0x118], 0x64
mov dword [ebp - 0x13c], 0x3f
mov dword [ebp - 0x11c], ecx
call dword [sym.imp.USER32.dll_GetMenuItemInfoA]
test dword [ebp - 0x138], 0x100
jne 0x41ebfd
push 0x10
call fcn.00420e47
mov esi, eax
add esp, 4
test esi, esi
je 0x41ebfd
mov edx, dword [0x43faf0]
mov eax, dword [edx + 0xc]
mov ecx, 0x43faf0
call eax
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp - 0x138]
or eax, 0x100
mov dword [ebp - 0x138], eax
mov dword [esi + 4], eax
mov ecx, dword [ebp - 0x130]
lea eax, [ebp - 0x74]
mov dword [ebp - 0x110], esi
mov dword [esi + 8], ecx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41eb62
sub eax, edx
push eax
lea edx, [ebp - 0x74]
push edx
mov ecx, esi
call fcn.00402e20
mov dword [esi + 0xc], ebx
mov eax, dword [ebx + 0x1c]
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x120], esi
cmp ecx, eax
jae 0x41ebc1
mov ecx, dword [ebx + 0x18]
lea edx, [ebp - 0x110]
cmp ecx, edx
ja 0x41ebc1
mov esi, edx
sub esi, ecx
sar esi, 2
cmp eax, dword [ebx + 0x20]
jne 0x41ebb0
push 1
lea ecx, [ebx + 0x18]
call fcn.0041e7e0
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x41ebd9
mov ecx, dword [ebx + 0x18]
mov edx, dword [ecx + esi*4]
mov dword [eax], edx
jmp 0x41ebd9
cmp eax, dword [ebx + 0x20]
jne 0x41ebd0
push 1
lea ecx, [ebx + 0x18]
call fcn.0041e7e0
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x41ebd9
mov dword [eax], esi
mov ecx, dword [ebp - 0x10c]
mov edx, dword [ebp + 8]
add dword [ebx + 0x1c], 4
lea eax, [ebp - 0x140]
push eax
push 1
push ecx
push edx
call dword [sym.imp.USER32.dll_SetMenuItemInfoA]
mov edi, dword [ebp - 0x10c]
mov ecx, dword [ebp - 0x12c]
test ecx, ecx
je 0x41ec19
push ecx
mov eax, esp
mov dword [eax], ecx
mov ecx, ebx
mov dword [ebp - 0x10c], esp
call fcn.0041ea10
mov eax, dword [ebp + 8]
inc edi
push eax
mov dword [ebp - 0x10c], edi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
cmp edi, eax
jl 0x41ea61
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.0041fef9
mov esp, ebp
pop ebp
ret 4
Function at 0x41efb0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp byte [esi + 8], 0
jne 0x41eff2
mov eax, dword [ebp + 8]
lea ecx, [esi + 0x10]
push ecx
push 0
push esi
push 0x41ef80
push 0
push 0
mov dword [esi + 0xc], eax
call fcn.00422cf0
add esp, 0x18
mov dword [esi + 4], eax
test eax, eax
je 0x41eff2
cmp byte [esi + 9], 0
je 0x41efee
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esi + 8], 1
movzx eax, byte [esi + 8]
pop esi
pop ebp
ret 4

Function at 0x41f000
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 8], 0
je 0x41f029
cmp byte [esi + 9], 0
jne 0x41f029
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esi + 9], 1
pop esi
ret

Function at 0x41f030
Capabilities:
Suspend thread

Disassembly:
cmp byte [ecx + 8], 0
je 0x41f046
cmp byte [ecx + 9], 0
jne 0x41f046
mov eax, dword [ecx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
ret

Function at 0x41f050
Capabilities:
Resume thread

Disassembly:
cmp byte [ecx + 8], 0
je 0x41f066
cmp byte [ecx + 9], 0
jne 0x41f066
mov eax, dword [ecx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
ret

Function at 0x41f0b0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp byte [esi + 8], 0
mov dword [esi], vtable.Thread.0
je 0x41f0e2
cmp byte [esi + 9], 0
jne 0x41f0e2
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esi + 9], 1
test byte [ebp + 8], 1
je 0x41f0f1
push esi
call fcn.0041fba0
add esp, 4
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x41f100
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x43fb24]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0x124
lea eax, [ebp - 0x128]
push 0
push eax
mov dword [ebp - 0x12c], 0
call fcn.00420270
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x41f188
lea ecx, [ebp - 0x12c]
push ecx
push esi
mov dword [ebp - 0x12c], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x41f188
lea edx, [ebp - 0x108]
push edi
push edx
call fcn.00422f87
add esp, 8
test eax, eax
je 0x41f19b
lea eax, [ebp - 0x12c]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x41f163
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041fef9
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x124]
pop edi
xor ecx, ebp
pop esi
call fcn.0041fef9
mov esp, ebp
pop ebp
ret
Function at 0x41f1c0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x43fb24]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x41f1f5
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041fef9
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x10]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [ebp - 0x18]
push 0
push 0
push 0
lea edx, [ebp - 0x14]
push edx
push 0
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.0041fef9
mov esp, ebp
pop ebp
ret

Function at 0x41f240
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x43bec8
push 0x4200b0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x43fb24]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
xor edi, edi
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x20]
push eax
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41f2d0
call fcn.0041f1c0
test eax, eax
je 0x41f2d0
mov ecx, dword [ebp + 8]
push ecx
push edi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x1c], esi
cmp esi, edi
je 0x41f2d0
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x41f2d0
mov dword [ebp - 0x24], 1
mov dword [ebp - 4], 0xfffffffe
call fcn.0041f2f6
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41f3f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431998
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x43fb24]
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, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push 0x435b24
push eax
mov dword [ebp - 0xa0], ecx
call fcn.00422af0
mov esi, eax
add esp, 8
test esi, esi
jne 0x41f445
xor al, al
jmp 0x41f4e3
push 2
push 0
push esi
call fcn.004229b8
push esi
call fcn.004228c9
push 0
push 0
push esi
mov edi, eax
call fcn.004229b8
add esp, 0x1c
xor ebx, ebx
test edi, edi
je 0x41f47f
push edi
call fcn.0042174b
push esi
push edi
mov ebx, eax
push 1
push ebx
call fcn.00422718
add esp, 0x14
push esi
call fcn.00422274
add esp, 4
lea ecx, [ebp - 0x9c]
call fcn.00419990
push edi
push ebx
lea ecx, [ebp - 0x9c]
call fcn.00419950
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x9c]
call fcn.0041a0a0
mov ecx, dword [ebp - 0xa0]
push eax
mov dword [ebp - 4], 0
call fcn.00419f90
cmp dword [ebp - 0x18], 0x10
jb 0x41f4d4
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0041fba0
add esp, 4
test ebx, ebx
je 0x41f4e1
push ebx
call fcn.0041fbfc
add esp, 4
mov al, 1
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.0041fef9
mov esp, ebp
pop ebp
ret

Function at 0x41f65c
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4415c8], 0
push esi
push edi
jne 0x41f5d2
call fcn.0041f53e
test eax, eax
je 0x41f617
mov eax, dword [0x4415c8]
cmp eax, 1
jne 0x41f5f3
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x41f617
jmp 0x41f659
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x41f659
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x41f61b
xor eax, eax
jmp 0x41f659
mov eax, dword [esi]
push dword [0x4415c8]
call edi
mov edi, eax
test edi, edi
je 0x41f63d
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x41f659
lea edi, [esi + 0xff0]
push esi
push dword [0x4415c8]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x41f643
mov eax, esi
pop edi
pop esi
ret
jmp 0x41f5be

Function at 0x41fef9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43fb24]
jne 0x41ff03
repz ret
jmp fcn.00424853
Function at 0x42b2ae
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43fb24]
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.00425b13
and dword [ebp - 0x14], 0
cmp dword [0x44233c], 0
mov dword [ebp - 0x18], eax
jne 0x42b361
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x42b409
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x42b409
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x44233c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x442340], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x442344], eax
call edi
push eax
call esi
mov dword [0x44234c], eax
test eax, eax
je 0x42b361
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x442348], eax
mov eax, dword [0x442348]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x42b3ba
cmp dword [0x44234c], ecx
je 0x42b3ba
push eax
call esi
push dword [0x44234c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x42b3ba
test ebx, ebx
je 0x42b3ba
call edi
test eax, eax
je 0x42b3b1
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x42b3b1
test byte [ebp - 8], 1
jne 0x42b3ba
or dword [ebp + 0x10], 0x200000
jmp 0x42b3ed
mov eax, dword [0x442340]
cmp eax, dword [ebp - 0x18]
je 0x42b3ed
push eax
call esi
test eax, eax
je 0x42b3ed
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x42b3ed
mov eax, dword [0x442344]
cmp eax, dword [ebp - 0x18]
je 0x42b3ed
push eax
call esi
test eax, eax
je 0x42b3ed
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x44233c]
call esi
test eax, eax
je 0x42b409
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x42b40b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041fef9
leave
ret

Function at 0x4eccd4
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4eca52
mov ecx, 0x11047e80
call fcn.004ecd15
or ebx, ecx
mov ecx, 0xf4188cbf
xor dword [edi], eax
add ecx, 0x7c3d17c6
or ecx, ecx
add edi, 1
add ecx, 0xe7574bc7
mov ecx, ebx
add ecx, ebx
cmp edi, edx
jl fcn.004eccd4
and ecx, ebx
ret