joyce8/EMBER2024-capa huggingface dataset:
Function at 0x802a32
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2002c
call fcn.00841f50
push ebx
push esi
push edi
lea ecx, [esp + 0x28]
call fcn.0080a961
lea eax, [esp + 0x38]
xor ebx, ebx
push eax
push 0x7fff
mov byte [esp + 0x19], bl
mov byte [esp + 0x1a], bl
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [esp + 0x13]
push eax
push dword [ebp + 8]
call fcn.00802e37
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x842b2d
mov eax, dword [0x8d1400]
test eax, eax
je 0x842b45
xor edi, edi
mov esi, 0x8d2390
inc edi
cmp eax, edi
je 0x842b51
lea eax, [esp + 0x11]
push eax
push ecx
push 0x8d1400
push 0x8d1418
mov ecx, esi
call fcn.00802de3
test al, al
je 0x842b70
mov al, byte [0x8d2390]
mov byte [0x8d1404], al
mov al, byte [0x8d2391]
mov byte [esp + 0x12], al
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1003c]
push eax
push 0x7fff
push dword [0x8d1418]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
push dword [esp + 0x14]
mov ecx, 0x8d13f0
call fcn.00806b57
mov bl, byte [esp + 0x11]
push dword [0x8d1400]
push 0x8d1418
call fcn.00801cd0
test eax, eax
jne 0x842b7b
cmp byte [esp + 0x12], 1
je 0x842b98
call fcn.00802b83
call fcn.00802c63
cmp byte [0x8d1404], 0
mov ebx, 0x8d1990
jne 0x802b44
mov ecx, ebx
call fcn.00803837
push edi
mov ecx, 0x8d1430
call fcn.0080d760
cmp byte [0x8d1404], 0
jne 0x802b5f
mov ecx, ebx
call fcn.008030f2
mov ecx, esi
call fcn.00803d1b
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [esp + 0x28]
call fcn.0080988f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x10
push 0x8c5998
push str.This_is_a_third_party_compiled_AutoIt_script.
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x802b71
or dword [0x8d135c], 0xffffffff
jmp 0x802b66
push 0xffffffffffffffff
push dword [0x8d1408]
mov ecx, esi
push edi
call fcn.008075ac
mov al, byte [0x8d1364]
mov byte [0x8d2392], al
jmp 0x802b02
mov dword [0x8d135c], edi
jmp 0x802b66
mov ecx, esi
call fcn.00803d1b
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [0x8d135c], edi
jmp 0x802b71
call fcn.00861663
test al, al
jne 0x802b25
cmp byte [esp + 0x13], al
jne 0x802b25
lea ecx, [esp + 0x28]
call fcn.00803a5a
push 0x8c2224
lea ecx, [esp + 0x1c]
call fcn.00809cb3
lea ecx, [esp + 0x18]
test bl, bl
je 0x842bf5
mov edi, 0x8c59cc
push edi
call fcn.008033c6
push 0x8d1418
lea ecx, [esp + 0x1c]
call fcn.00806350
push edi
lea ecx, [esp + 0x1c]
call fcn.008033c6
push 1
jmp 0x842bfe
push dword [ebp + 8]
call fcn.008033c6
push edi
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x20]
push dword [esp + 0x34]
push 0x8c59d0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [esp + 0x18]
call fcn.0080988f
jmp 0x802b5f
Function at 0x803b1c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
push ebx
push esi
je 0x803b99
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x803b99
xor eax, eax
xor ebx, ebx
mov word [esi], ax
lea eax, [ebp - 8]
push eax
push 1
push ebx
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x803b99
mov eax, dword [ebp + 0xc]
push edi
lea edi, [eax + eax]
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push esi
push ebx
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x803b80
mov eax, dword [ebp - 4]
shr eax, 1
mov dword [ebp - 4], eax
cmp eax, dword [ebp + 0xc]
jae 0x803b90
xor ecx, ecx
mov word [esi + eax*2], cx
mov bl, 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret
xor eax, eax
mov word [edi + esi - 2], ax
jmp 0x803b7e
xor al, al
jmp 0x803b8c

Function at 0x8042a2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x10]
push ebx
push 1
push 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
js 0x8042da
push edi
push 0
push 0x89cbb8
push 0xa
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov edi, eax
test edi, edi
jne 0x8435ba
pop edi
pop esi
pop ebx
leave
ret
push edi
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x8042d9
push edi
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x8042d9
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x8042d9
mov ecx, dword [ebx]
push 0
push edi
push eax
mov edx, dword [ecx]
push ecx
call dword [edx + 0x10]
mov eax, dword [ebx]
xor edx, edx
push edx
push edx
push edx
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x14]
mov byte [esi + 0x14], 1
jmp 0x8042d9
Function at 0x8050f5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp byte [ecx + 0x14], 0
jne 0x843d70
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0082e8c4
add esp, 0x10
leave
ret 0x10
mov ecx, dword [ecx + 0x10]
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
mov edx, dword [ecx]
push eax
push dword [ebp + 8]
push ecx
call dword [edx + 0xc]
mov eax, dword [ebp - 4]
jmp 0x80511b

Function at 0x80693c
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
xor esi, esi
mov edx, dword [eax + 4]
mov edi, dword [eax]
add edx, edx
mov eax, 0x1505
test edx, edx
jle 0x806964
movzx ecx, byte [esi + edi]
imul eax, eax, 0x21
add eax, ecx
inc esi
cmp esi, edx
jl 0x806956
pop edi
pop esi
pop ebp
ret 4
Function at 0x809a40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 8], 0
je 0x809abb
mov ebx, dword [ebp + 0xc]
xor edi, edi
test ebx, ebx
je 0x809a7c
mov ecx, dword [esi + 0xc]
lea ebx, [ebx]
cmp ecx, dword [esi + 8]
je 0x809a8c
mov eax, dword [esi + 4]
mov al, byte [ecx + eax]
mov ecx, dword [ebp + 8]
mov byte [edi + ecx], al
inc edi
inc dword [esi + 0xc]
mov ecx, dword [esi + 0xc]
cmp edi, ebx
jb 0x809a60
add dword [esi + 0x10], edi
mov eax, edi
pop edi
adc dword [esi + 0x14], 0
pop esi
pop ebx
pop ebp
ret 8
push 0
lea eax, [ebp + 0xc]
push eax
push 0x10000
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x809a7c
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x809a7c
mov dword [esi + 8], eax
xor ecx, ecx
mov dword [esi + 0xc], 0
jmp 0x809a65
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
call fcn.0081e40f
jmp 0x809a4e
Function at 0x81912d
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
mov ebx, ecx
mov esi, dword [edi]
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x16c], eax
mov eax, dword [ebp - 0x10]
mov dword [edi + 0x170], eax
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
cmp ecx, dword [edi + 0x174]
jne 0x8191f1
cmp eax, dword [edi + 0x178]
jne 0x8191f1
push dword [ebx + 0x18]
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
call esi
mov ecx, 0x8000
and ax, cx
push 0
mov word [ebp + 0xa], ax
pop eax
push dword [ebx + 0x1c]
setne al
mov dword [ebp - 0xc], eax
call esi
mov esi, dword [ebp - 0xc]
mov cx, ax
mov eax, 0x8000
and cx, ax
push 0
pop eax
setne al
mov word [ebp - 2], cx
mov dword [ebp - 8], eax
cmp esi, dword [edi + 0x17c]
jne 0x857104
cmp dword [ebp + 0xc], 0
je 0x8191d2
mov dword [edi + 0x17c], esi
cmp eax, dword [edi + 0x180]
jne 0x857177
cmp dword [ebp + 0xc], 0
je 0x8191ea
mov dword [edi + 0x180], eax
pop edi
pop esi
pop ebx
leave
ret 8
cmp dword [ebp + 0xc], 1
mov dword [edi + 0x174], ecx
mov dword [edi + 0x178], eax
jl 0x81917a
jmp 0x8570f3
push eax
push ecx
push edi
push 0xfffffffffffffff5
mov ecx, ebx
call fcn.00892c93
jmp 0x81917a
cmp dword [ebp + 0xc], 1
jl 0x8191c6
cmp byte [edi + 0x1a8], 0
je 0x8191c6
cmp word [ebp + 0xa], 0
mov ecx, ebx
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push edi
je 0x85712f
push 0xfffffffffffffff9
jmp 0x85715f
push 0xfffffffffffffff8
call fcn.00892c93
cmp byte [edi + 0x184], 0
je 0x857164
push 0xfffffffffffffff0
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, ebx
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push edi
test eax, 0x1000000
je 0x85715d
push 0xfffffffffffffffa
jmp 0x85715f
push 0xfffffffffffffff4
call fcn.00892c93
mov eax, dword [ebp - 8]
mov cx, word [ebp - 2]
mov byte [edi + 0x184], 0
jmp 0x8191c6
cmp dword [ebp + 0xc], 1
jl 0x8191de
push dword [ebp - 0x10]
test cx, cx
mov ecx, ebx
push dword [ebp - 0x14]
push edi
je 0x857193
push 0xfffffffffffffff7
jmp 0x857195
push 0xfffffffffffffff6
call fcn.00892c93
mov eax, dword [ebp - 8]
jmp 0x8191de
Function at 0x81e187
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov edx, dword [ebp + 8]
xor eax, eax
push ebx
xor ebx, ebx
mov dword [ebp - 4], eax
push esi
xor esi, esi
inc ebx
push edi
mov dword [ebp - 0xc], esi
cmp dword [edx + 4], eax
je 0x81e29e
mov ecx, dword [ebp + 0x1c]
xor edx, edx
mov edi, dword [ebp + 0xc]
mov dword [ebp - 8], 0x23
mov byte [ecx], dl
mov ecx, dword [ebp + 0x18]
mov dword [edi], edx
mov edi, dword [ebp + 8]
mov byte [ecx], dl
mov ecx, dword [ebp + 0x14]
mov byte [ecx], dl
mov ecx, dword [ebp + 0x10]
mov byte [ecx], dl
push eax
mov ecx, edi
call fcn.00803a3f
push 0x2b
pop ecx
push 0x5e
movzx eax, word [eax]
cmp ax, cx
pop ecx
push 0x21
pop edx
je 0x85e773
cmp ax, cx
je 0x85e773
cmp ax, dx
je 0x85e773
cmp ax, word [ebp - 8]
je 0x85e773
lea eax, [esi + 1]
mov ecx, edi
push esi
mov dword [ebp + 0x1c], eax
call fcn.00803a3f
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp + 0xc]
movzx eax, word [eax]
cmp eax, 0x7b
jne 0x85e820
push 0x40
lea ecx, [ebp - 0x1c]
call fcn.00806270
mov edx, dword [ebp + 8]
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x7d
pop eax
mov ecx, eax
call fcn.0081e2a2
pop ecx
pop ecx
test al, al
je 0x81e29a
push dword [ebp - 0x1c]
push dword [esi*4 + 0x8b11e0]
call fcn.00824a28
pop ecx
pop ecx
test eax, eax
je 0x81e267
inc esi
cmp esi, 0x63
jl 0x81e24c
cmp esi, 0x63
je 0x85e7af
cmp byte [esi + 0x8b1178], 0
jne 0x81e29a
movzx eax, byte [esi + str._f_b_b..__reepqrstuvwxyz________t___]
mov dword [edi], eax
lea ecx, [ebp - 0x1c]
call fcn.0080988f
mov eax, dword [edi]
movzx ecx, al
mov al, bl
mov dword [edi], ecx
pop edi
pop esi
pop ebx
leave
ret 0x18
xor bl, bl
jmp 0x81e282
xor al, al
jmp 0x81e293
push 0x2b
pop esi
cmp ax, si
jne 0x85e780
mov eax, dword [ebp + 0x10]
jmp 0x85e79f
cmp ax, cx
jne 0x85e78a
mov eax, dword [ebp + 0x14]
jmp 0x85e79f
cmp ax, dx
jne 0x85e794
mov eax, dword [ebp + 0x18]
jmp 0x85e79f
push 0x23
pop ecx
cmp ax, cx
jne 0x85e7a1
mov eax, dword [ebp + 0x1c]
mov byte [eax], bl
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov esi, eax
jmp 0x81e1ce
cmp dword [ebp + 0x1c], 2
jne 0x85e7ca
mov ecx, dword [ebp + 8]
push 2
call fcn.00803a3f
push 0x7d
pop ecx
cmp word [eax], cx
jne 0x85e7ca
push ecx
jmp 0x85e7d8
push 0
lea ecx, [ebp - 0x1c]
call fcn.00804c6d
movzx eax, word [eax]
push eax
call dword [sym.imp.USER32.dll_VkKeyScanW]
cwde
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x85e7f3
lea ecx, [ebp - 0x1c]
call fcn.0080988f
jmp 0x81e29e
test eax, 0x200
je 0x85e7ff
mov ecx, dword [ebp + 0x14]
mov byte [ecx], bl
test eax, 0x400
je 0x85e80b
mov ecx, dword [ebp + 0x18]
mov byte [ecx], bl
test eax, 0x100
je 0x81e282
mov eax, dword [ebp + 0x10]
mov byte [eax], bl
jmp 0x81e282
push eax
call dword [sym.imp.USER32.dll_VkKeyScanW]
cwde
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x81e29e
test eax, 0x200
je 0x85e83f
mov ecx, dword [ebp + 0x14]
mov byte [ecx], bl
test eax, 0x400
je 0x85e84b
mov ecx, dword [ebp + 0x18]
mov byte [ecx], bl
test eax, 0x100
je 0x81e28c
mov ecx, dword [ebp + 0x10]
mov byte [ecx], bl
jmp 0x81e28c
Function at 0x81f4d4
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov al, byte [0x8d1363]
push ebx
push esi
push edi
mov edi, ecx
mov byte [ebp - 1], al
push 0x8000
push edi
mov esi, edx
call fcn.0082d955
pop ecx
push eax
call fcn.0082d776
cmp dword [esi + 0xc], 0xb
mov ebx, eax
pop ecx
pop ecx
je 0x85f274
lea ecx, [ebp - 0x18]
call fcn.00809ad3
mov ecx, esi
call fcn.00807510
mov ecx, dword [esi + 8]
lea edx, [ebp - 0x18]
call fcn.0081f6c9
push dword [ebp - 0x18]
push 0x89d158
push edi
call fcn.0081f574
add esp, 0xc
mov dword [ebp - 8], eax
cmp byte [ebp - 1], 0
jne 0x85f294
lea ecx, [ebp - 0x18]
call fcn.0080988f
mov esi, dword [ebp - 8]
push edi
call fcn.0082dd99
push edi
call fcn.0082d955
pop ecx
pop ecx
cmp ebx, 0xffffffff
jne 0x81f564
mov ebx, 0x4000
push ebx
push eax
call fcn.0082d776
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
push edi
mov ecx, esi
call fcn.00871f06
push eax
push 1
call fcn.00871e96
push eax
call fcn.0082dbb3
add esp, 0x10
mov esi, eax
jmp 0x81f54c
mov ecx, esi
call fcn.00807510
mov eax, dword [esi + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x81f541
Function at 0x81f8d8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x85f379
mov ecx, dword [0x8d191c]
push esi
push edi
cmp ecx, 0xffffffff
je 0x81f98a
mov eax, dword [0x8d1910]
xor edx, edx
mov eax, dword [eax + ecx*4]
mov esi, dword [eax]
mov ecx, dword [esi]
mov dword [ebp + 0xc], ecx
cmp byte [esi + 0x3a], dl
je 0x81f91b
mov byte [esi + 0x3a], dl
cmp dword [esi + 0x18c], edx
jge 0x85f393
mov edi, dword [ebp + 8]
cmp edi, 8
jg 0x85f3ed
je 0x81f94b
test edi, edi
je 0x85f3dc
cmp edi, 1
je 0x81f94b
cmp edi, 2
je 0x81f981
cmp edi, 3
je 0x81f978
jle 0x81f96f
cmp edi, 5
jg 0x85f3bb
cmp byte [esi + 0x38], 0
jne 0x81f98a
push edi
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
cmp edi, 8
je 0x81f96b
cmp edi, 4
je 0x81f96b
mov ecx, dword [ebp + 0xc]
call fcn.0081f98e
mov byte [esi + 0x38], 1
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret 8
mov byte [esi + 0x38], 1
jmp 0x85f448
mov byte [esi + 0x38], 1
jmp 0x85f3c4
xor eax, eax
jmp 0x81f972
push dword [ebp + 0xc]
mov ecx, 0x8d18b0
call fcn.00819ba1
mov ecx, eax
mov dword [0x8d191c], ecx
jmp 0x81f8eb
cmp byte [esi + 0x198], dl
je 0x81f91b
push dword [esi + 0x194]
push esi
call fcn.008981db
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov byte [esi + 0x198], dl
jmp 0x81f91b
cmp edi, 6
jne 0x81f96f
cmp byte [esi + 0x38], 0
je 0x81f98a
push 6
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x81f96f
push edx
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov byte [esi + 0x38], 0
jmp 0x81f96f
mov eax, edi
sub eax, 9
je 0x85f448
sub eax, 0x37
je 0x85f43a
sub eax, 1
je 0x85f437
sub eax, 1
je 0x85f427
sub eax, 1
jne 0x81f96f
push edx
mov byte [esi + 0x39], dl
call dword [sym.imp.USER32.dll_LockWindowUpdate]
push 1
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x81f96f
push ecx
mov byte [esi + 0x39], 1
call dword [sym.imp.USER32.dll_LockWindowUpdate]
jmp 0x81f96f
push edx
jmp 0x85f43c
push 1
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x81f96f
cmp byte [esi + 0x38], 0
je 0x81f98a
push edi
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp + 0xc]
call fcn.0081f98e
jmp 0x81f96f
Function at 0x81f98e
Capabilities:
Find taskbar
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov ebx, ecx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
cmp ebx, esi
jne 0x85f467
xor eax, eax
inc eax
pop esi
pop ebx
leave
ret
push edi
xor edi, edi
test esi, esi
jne 0x85f47c
push edi
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
push ebx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x85f490
push 9
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
mov dword [ebp - 0x10], edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x85f56b
push edi
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call esi
mov edi, eax
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push ebx
mov dword [ebp - 4], eax
call esi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push eax
push dword [ebp - 4]
mov dword [ebp - 8], eax
call esi
push 1
push edi
push dword [ebp - 4]
call esi
push 1
push dword [ebp - 8]
push edi
call esi
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x85f547
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push eax
push eax
push 0x12
call edi
mov esi, dword [sym.imp.USER32.dll_keybd_event]
push eax
push 0x12
call esi
push 0
push 2
push 0
push 0x12
call edi
push eax
push 0x12
call esi
xor eax, eax
push eax
push eax
push eax
push 0x12
call edi
push eax
push 0x12
call esi
push 0
push 2
push 0
push 0x12
call edi
push eax
push 0x12
call esi
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
mov edi, dword [ebp - 0xc]
test eax, eax
je 0x85f54c
push 4
jmp 0x85f549
push 3
pop ebx
jmp 0x85f54f
mov ebx, dword [ebp - 0x10]
push 0
push dword [ebp - 8]
push dword [ebp - 4]
call esi
push 0
push edi
push dword [ebp - 4]
call esi
push 0
push dword [ebp - 8]
push edi
call esi
jmp 0x85f56e
push 2
pop ebx
mov eax, ebx
pop edi
jmp 0x81f9ab

Function at 0x83927b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.008390fa

Function at 0x83d1d0
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0083ce90
Function at 0x8606de
Capabilities:
Connect network resource
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x10], ebx
mov edi, edx
mov dword [ebp - 0xc], ebx
call fcn.0080a961
lea ecx, [ebp - 0x20]
call fcn.0080a961
lea ecx, [ebp - 0x40]
call fcn.0080a961
push 0x8c5950
lea ecx, [ebp - 0x30]
call fcn.00806b57
push esi
lea ecx, [ebp - 0x30]
call fcn.008033c6
push str.CLSID
lea ecx, [ebp - 0x30]
call fcn.008033c6
lea ecx, [ebp - 0x20]
call fcn.0080a6c3
test edi, edi
je 0x860761
push 0x5c
pop eax
cmp word [edi], ax
je 0x860761
cmp word [edi + 2], ax
je 0x860761
push 0x8c5984
lea ecx, [ebp - 0x20]
call fcn.00806b57
push edi
lea ecx, [ebp - 0x20]
call fcn.008033c6
cmp dword [ebp + 0xc], ebx
je 0x8607b2
push 0x20
lea eax, [ebp - 0x60]
push ebx
push eax
call fcn.00822340
add esp, 0xc
mov dword [ebp - 0x5c], ebx
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x40]
push eax
call fcn.0080a8c7
push str.IPC_
lea ecx, [ebp - 0x40]
call fcn.008033c6
mov eax, dword [ebp - 0x40]
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x60]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.MPR.dll_WNetAddConnection2W]
mov esi, eax
test esi, esi
js 0x86083e
lea eax, [ebp - 0x10]
push eax
push reloc.WSOCK32.dll_bind
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
mov esi, eax
test esi, esi
jne 0x86083e
lea eax, [ebp - 0xc]
push eax
push 0x20019
push ebx
push dword [ebp - 0x30]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
test esi, esi
jne 0x860839
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x1fe
push eax
lea eax, [ebp - 0x26c]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x860834
mov eax, dword [ebp - 8]
xor ecx, ecx
push dword [ebp + 8]
shr eax, 1
mov dword [ebp - 8], eax
mov word [ebp + eax*2 - 0x26c], cx
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
mov esi, eax
push dword [ebp - 0xc]
call edi
push dword [ebp - 0x10]
call edi
lea ecx, [ebp - 0x40]
call fcn.0080988f
lea ecx, [ebp - 0x20]
call fcn.0080988f
lea ecx, [ebp - 0x30]
call fcn.0080988f
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x861014
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ebx, ecx
push edi
push esi
push 0
push dword [eax]
push 3
push ebx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov edi, eax
test edi, edi
jne 0x86106c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x86106a
push dword [esi]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
test eax, eax
je 0x86106a
push esi
push dword [esi]
push eax
push 3
push ebx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov edi, eax
test edi, edi
pop edi
pop esi
setne al
pop ebx
pop ebp
ret
Function at 0x8614ce
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
test byte [ebp + 0x14], 1
mov eax, ebx
push edi
mov dword [ebp - 4], eax
mov edi, ebx
je 0x8614e6
inc edi
jmp 0x8614ef
test byte [ebp + 0x14], 2
je 0x8614ef
push 2
pop edi
test byte [ebp + 0x14], 4
je 0x86152e
push esi
lea eax, [ebp + 0x14]
mov dword [ebp + 0x14], ebx
push eax
push 0xa
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push 1
push dword [ebp + 0x14]
lea eax, [ebp - 4]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
push dword [ebp + 0x14]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
pop esi
je 0x86155a
mov eax, dword [ebp - 4]
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push eax
mov eax, dword [ebp + 0x20]
or eax, 0x400
push eax
push dword [ebp + 0x1c]
push ebx
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
setne bl
cmp dword [ebp - 4], 0
je 0x861569
push dword [ebp - 4]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
pop edi
mov al, bl
pop ebx
leave
ret 0x28

Function at 0x861663
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
mov word [ebp - 0xc], 0x500
lea eax, [ebp - 8]
mov dword [ebp - 0x10], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 4], eax
test eax, eax
je 0x8616ba
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 8]
neg eax
sbb eax, eax
and dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 4]
cmp eax, 1
pop ebx
sete al
leave
ret

Function at 0x861803
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push 0xc
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, eax
push 2
push 0
push 0
push ebx
call edi
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 2
push 0
push 0
lea eax, [ebx + 8]
push eax
call edi
push eax
mov eax, dword [ebp + 0x10]
push dword [eax]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebx + 4], eax
xor eax, eax
push eax
push eax
push ebx
push 0x861874
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop ebx
pop ebp
ret 0xc