joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402a32
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.00441fa0
push ebx
push esi
push edi
lea ecx, [esp + 0x28]
call fcn.0040a971
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.00402e37
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x442b7d
mov eax, dword [0x4d1400]
test eax, eax
je 0x442b95
xor edi, edi
mov esi, 0x4d2390
inc edi
cmp eax, edi
je 0x442ba1
lea eax, [esp + 0x11]
push eax
push ecx
push 0x4d1400
push 0x4d1418
mov ecx, esi
call fcn.00402de3
test al, al
je 0x442bc0
mov al, byte [0x4d2390]
mov byte [0x4d1404], al
mov al, byte [0x4d2391]
mov byte [esp + 0x12], al
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1003c]
push eax
push 0x7fff
push dword [0x4d1418]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
push dword [esp + 0x14]
mov ecx, 0x4d13f0
call fcn.00406b67
mov bl, byte [esp + 0x11]
push dword [0x4d1400]
push 0x4d1418
call fcn.00401cd0
test eax, eax
jne 0x442bcb
cmp byte [esp + 0x12], 1
je 0x442be8
call fcn.00402b83
call fcn.00402c63
cmp byte [0x4d1404], 0
mov ebx, 0x4d1990
jne 0x402b44
mov ecx, ebx
call fcn.00403837
push edi
mov ecx, 0x4d1430
call fcn.0040d770
cmp byte [0x4d1404], 0
jne 0x402b5f
mov ecx, ebx
call fcn.004030f2
mov ecx, esi
call fcn.00403d1b
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [esp + 0x28]
call fcn.0040989f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x10
push 0x4c5998
push str.This_is_a_third_party_compiled_AutoIt_script.
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x402b71
or dword [0x4d135c], 0xffffffff
jmp 0x402b66
push 0xffffffffffffffff
push dword [0x4d1408]
mov ecx, esi
push edi
call fcn.004075bc
mov al, byte [0x4d1364]
mov byte [0x4d2392], al
jmp 0x402b02
mov dword [0x4d135c], edi
jmp 0x402b66
mov ecx, esi
call fcn.00403d1b
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [0x4d135c], edi
jmp 0x402b71
call fcn.00461734
test al, al
jne 0x402b25
cmp byte [esp + 0x13], al
jne 0x402b25
lea ecx, [esp + 0x28]
call fcn.00403a5a
push 0x4c2224
lea ecx, [esp + 0x1c]
call fcn.00409cc3
lea ecx, [esp + 0x18]
test bl, bl
je 0x442c45
mov edi, 0x4c59cc
push edi
call fcn.004033c6
push 0x4d1418
lea ecx, [esp + 0x1c]
call fcn.00406358
push edi
lea ecx, [esp + 0x1c]
call fcn.004033c6
push 1
jmp 0x442c4e
push dword [ebp + 8]
call fcn.004033c6
push edi
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x20]
push dword [esp + 0x34]
push 0x4c59d0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [esp + 0x18]
call fcn.0040989f
jmp 0x402b5f
Function at 0x403b1c
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 0x403b99
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x403b99
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 0x403b99
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 0x403b80
mov eax, dword [ebp - 4]
shr eax, 1
mov dword [ebp - 4], eax
cmp eax, dword [ebp + 0xc]
jae 0x403b90
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 0x403b7e
xor al, al
jmp 0x403b8c

Function at 0x4042a2
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 0x4042da
push edi
push 0
push 0x49cbb8
push 0xa
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov edi, eax
test edi, edi
jne 0x44360a
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 0x4042d9
push edi
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x4042d9
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4042d9
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 0x4042d9
Function at 0x4050f5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp byte [ecx + 0x14], 0
jne 0x443dc0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042e914
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 0x40511b

Function at 0x40694c
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 0x406974
movzx ecx, byte [esi + edi]
imul eax, eax, 0x21
add eax, ecx
inc esi
cmp esi, edx
jl 0x406966
pop edi
pop esi
pop ebp
ret 4
Function at 0x409a50
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 0x409acb
mov ebx, dword [ebp + 0xc]
xor edi, edi
test ebx, ebx
je 0x409a8c
mov ecx, dword [esi + 0xc]
lea ebx, [ebx]
cmp ecx, dword [esi + 8]
je 0x409a9c
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 0x409a70
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 0x409a8c
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x409a8c
mov dword [esi + 8], eax
xor ecx, ecx
mov dword [esi + 0xc], 0
jmp 0x409a75
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
call fcn.0041e4c8
jmp 0x409a5e
Function at 0x41912d
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 0x4191f1
cmp eax, dword [edi + 0x178]
jne 0x4191f1
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 0x457192
cmp dword [ebp + 0xc], 0
je 0x4191d2
mov dword [edi + 0x17c], esi
cmp eax, dword [edi + 0x180]
jne 0x457205
cmp dword [ebp + 0xc], 0
je 0x4191ea
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 0x41917a
jmp 0x457181
push eax
push ecx
push edi
push 0xfffffffffffffff5
mov ecx, ebx
call fcn.00492d67
jmp 0x41917a
cmp dword [ebp + 0xc], 1
jl 0x4191c6
cmp byte [edi + 0x1a8], 0
je 0x4191c6
cmp word [ebp + 0xa], 0
mov ecx, ebx
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push edi
je 0x4571bd
push 0xfffffffffffffff9
jmp 0x4571ed
push 0xfffffffffffffff8
call fcn.00492d67
cmp byte [edi + 0x184], 0
je 0x4571f2
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 0x4571eb
push 0xfffffffffffffffa
jmp 0x4571ed
push 0xfffffffffffffff4
call fcn.00492d67
mov eax, dword [ebp - 8]
mov cx, word [ebp - 2]
mov byte [edi + 0x184], 0
jmp 0x4191c6
cmp dword [ebp + 0xc], 1
jl 0x4191de
push dword [ebp - 0x10]
test cx, cx
mov ecx, ebx
push dword [ebp - 0x14]
push edi
je 0x457221
push 0xfffffffffffffff7
jmp 0x457223
push 0xfffffffffffffff6
call fcn.00492d67
mov eax, dword [ebp - 8]
jmp 0x4191de
Function at 0x41e240
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 0x41e357
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.00403a3f
push 0x2b
pop ecx
push 0x5e
movzx eax, word [eax]
cmp ax, cx
pop ecx
push 0x21
pop edx
je 0x45e88a
cmp ax, cx
je 0x45e88a
cmp ax, dx
je 0x45e88a
cmp ax, word [ebp - 8]
je 0x45e88a
lea eax, [esi + 1]
mov ecx, edi
push esi
mov dword [ebp + 0x1c], eax
call fcn.00403a3f
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp + 0xc]
movzx eax, word [eax]
cmp eax, 0x7b
jne 0x45e937
push 0x40
lea ecx, [ebp - 0x1c]
call fcn.00406278
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.0041e35b
pop ecx
pop ecx
test al, al
je 0x41e353
push dword [ebp - 0x1c]
push dword [esi*4 + 0x4b11e0]
call fcn.00424a78
pop ecx
pop ecx
test eax, eax
je 0x41e320
inc esi
cmp esi, 0x63
jl 0x41e305
cmp esi, 0x63
je 0x45e8c6
cmp byte [esi + 0x4b1178], 0
jne 0x41e353
movzx eax, byte [esi + str._f_b_b..__reepqrstuvwxyz________t___]
mov dword [edi], eax
lea ecx, [ebp - 0x1c]
call fcn.0040989f
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 0x41e33b
xor al, al
jmp 0x41e34c
push 0x2b
pop esi
cmp ax, si
jne 0x45e897
mov eax, dword [ebp + 0x10]
jmp 0x45e8b6
cmp ax, cx
jne 0x45e8a1
mov eax, dword [ebp + 0x14]
jmp 0x45e8b6
cmp ax, dx
jne 0x45e8ab
mov eax, dword [ebp + 0x18]
jmp 0x45e8b6
push 0x23
pop ecx
cmp ax, cx
jne 0x45e8b8
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 0x41e287
cmp dword [ebp + 0x1c], 2
jne 0x45e8e1
mov ecx, dword [ebp + 8]
push 2
call fcn.00403a3f
push 0x7d
pop ecx
cmp word [eax], cx
jne 0x45e8e1
push ecx
jmp 0x45e8ef
push 0
lea ecx, [ebp - 0x1c]
call fcn.00404c6d
movzx eax, word [eax]
push eax
call dword [sym.imp.USER32.dll_VkKeyScanW]
cwde
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x45e90a
lea ecx, [ebp - 0x1c]
call fcn.0040989f
jmp 0x41e357
test eax, 0x200
je 0x45e916
mov ecx, dword [ebp + 0x14]
mov byte [ecx], bl
test eax, 0x400
je 0x45e922
mov ecx, dword [ebp + 0x18]
mov byte [ecx], bl
test eax, 0x100
je 0x41e33b
mov eax, dword [ebp + 0x10]
mov byte [eax], bl
jmp 0x41e33b
push eax
call dword [sym.imp.USER32.dll_VkKeyScanW]
cwde
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x41e357
test eax, 0x200
je 0x45e956
mov ecx, dword [ebp + 0x14]
mov byte [ecx], bl
test eax, 0x400
je 0x45e962
mov ecx, dword [ebp + 0x18]
mov byte [ecx], bl
test eax, 0x100
je 0x41e345
mov ecx, dword [ebp + 0x10]
mov byte [ecx], bl
jmp 0x41e345
Function at 0x41f532
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov al, byte [0x4d1363]
push ebx
push esi
push edi
mov edi, ecx
mov byte [ebp - 1], al
push 0x8000
push edi
mov esi, edx
call fcn.0042d9a5
pop ecx
push eax
call fcn.0042d7c6
cmp dword [esi + 0xc], 0xb
mov ebx, eax
pop ecx
pop ecx
je 0x45f345
lea ecx, [ebp - 0x18]
call fcn.00409ae3
mov ecx, esi
call fcn.00407520
mov ecx, dword [esi + 8]
lea edx, [ebp - 0x18]
call fcn.0041f727
push dword [ebp - 0x18]
push 0x49d158
push edi
call fcn.0041f5d2
add esp, 0xc
mov dword [ebp - 8], eax
cmp byte [ebp - 1], 0
jne 0x45f365
lea ecx, [ebp - 0x18]
call fcn.0040989f
mov esi, dword [ebp - 8]
push edi
call fcn.0042dde9
push edi
call fcn.0042d9a5
pop ecx
pop ecx
cmp ebx, 0xffffffff
jne 0x41f5c2
mov ebx, 0x4000
push ebx
push eax
call fcn.0042d7c6
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
push edi
mov ecx, esi
call fcn.00471fd6
push eax
push 1
call fcn.00471f66
push eax
call fcn.0042dc03
add esp, 0x10
mov esi, eax
jmp 0x41f5aa
mov ecx, esi
call fcn.00407520
mov eax, dword [esi + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x41f59f
Function at 0x41f936
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x45f44a
mov ecx, dword [0x4d191c]
push esi
push edi
cmp ecx, 0xffffffff
je 0x41f9e8
mov eax, dword [0x4d1910]
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 0x41f979
mov byte [esi + 0x3a], dl
cmp dword [esi + 0x18c], edx
jge 0x45f464
mov edi, dword [ebp + 8]
cmp edi, 8
jg 0x45f4be
je 0x41f9a9
test edi, edi
je 0x45f4ad
cmp edi, 1
je 0x41f9a9
cmp edi, 2
je 0x41f9df
cmp edi, 3
je 0x41f9d6
jle 0x41f9cd
cmp edi, 5
jg 0x45f48c
cmp byte [esi + 0x38], 0
jne 0x41f9e8
push edi
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
cmp edi, 8
je 0x41f9c9
cmp edi, 4
je 0x41f9c9
mov ecx, dword [ebp + 0xc]
call fcn.0041f9ec
mov byte [esi + 0x38], 1
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret 8
mov byte [esi + 0x38], 1
jmp 0x45f519
mov byte [esi + 0x38], 1
jmp 0x45f495
xor eax, eax
jmp 0x41f9d0
push dword [ebp + 0xc]
mov ecx, 0x4d18b0
call fcn.00419bff
mov ecx, eax
mov dword [0x4d191c], ecx
jmp 0x41f949
cmp byte [esi + 0x198], dl
je 0x41f979
push dword [esi + 0x194]
push esi
call fcn.004982d5
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov byte [esi + 0x198], dl
jmp 0x41f979
cmp edi, 6
jne 0x41f9cd
cmp byte [esi + 0x38], 0
je 0x41f9e8
push 6
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x41f9cd
push edx
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov byte [esi + 0x38], 0
jmp 0x41f9cd
mov eax, edi
sub eax, 9
je 0x45f519
sub eax, 0x37
je 0x45f50b
sub eax, 1
je 0x45f508
sub eax, 1
je 0x45f4f8
sub eax, 1
jne 0x41f9cd
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 0x41f9cd
push ecx
mov byte [esi + 0x39], 1
call dword [sym.imp.USER32.dll_LockWindowUpdate]
jmp 0x41f9cd
push edx
jmp 0x45f50d
push 1
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x41f9cd
cmp byte [esi + 0x38], 0
je 0x41f9e8
push edi
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp + 0xc]
call fcn.0041f9ec
jmp 0x41f9cd
Function at 0x41f9ec
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 0x45f538
xor eax, eax
inc eax
pop esi
pop ebx
leave
ret
push edi
xor edi, edi
test esi, esi
jne 0x45f54d
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 0x45f561
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 0x45f63c
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 0x45f618
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 0x45f61d
push 4
jmp 0x45f61a
push 3
pop ebx
jmp 0x45f620
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 0x45f63f
push 2
pop ebx
mov eax, ebx
pop edi
jmp 0x41fa09

Function at 0x4392cb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043914a
Function at 0x4607af
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.0040a971
lea ecx, [ebp - 0x20]
call fcn.0040a971
lea ecx, [ebp - 0x40]
call fcn.0040a971
push 0x4c5950
lea ecx, [ebp - 0x30]
call fcn.00406b67
push esi
lea ecx, [ebp - 0x30]
call fcn.004033c6
push str.CLSID
lea ecx, [ebp - 0x30]
call fcn.004033c6
lea ecx, [ebp - 0x20]
call fcn.0040a6d3
test edi, edi
je 0x460832
push 0x5c
pop eax
cmp word [edi], ax
je 0x460832
cmp word [edi + 2], ax
je 0x460832
push 0x4c5984
lea ecx, [ebp - 0x20]
call fcn.00406b67
push edi
lea ecx, [ebp - 0x20]
call fcn.004033c6
cmp dword [ebp + 0xc], ebx
je 0x460883
push 0x20
lea eax, [ebp - 0x60]
push ebx
push eax
call fcn.00422390
add esp, 0xc
mov dword [ebp - 0x5c], ebx
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x40]
push eax
call fcn.0040a8d7
push str.IPC_
lea ecx, [ebp - 0x40]
call fcn.004033c6
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 0x46090f
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 0x46090f
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 0x46090a
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 0x460905
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.0040989f
lea ecx, [ebp - 0x20]
call fcn.0040989f
lea ecx, [ebp - 0x30]
call fcn.0040989f
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x4610e5
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 0x46113d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x46113b
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 0x46113b
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 0x46159f
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 0x4615b7
inc edi
jmp 0x4615c0
test byte [ebp + 0x14], 2
je 0x4615c0
push 2
pop edi
test byte [ebp + 0x14], 4
je 0x4615ff
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 0x46162b
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 0x46163a
push dword [ebp - 4]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
pop edi
mov al, bl
pop ebx
leave
ret 0x28

Function at 0x461734
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 0x46178b
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 0x4618d4
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 0x461945
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop ebx
pop ebp
ret 0xc