joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406445
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 4], 0x800
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004063e4
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x4064b5
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and word [esi + 0x7fe], 0
test edi, edi
pop edi
jne 0x4064b5
cmp dword [ebp + 0xc], 1
je 0x4064b9
cmp dword [ebp + 0xc], 2
je 0x4064b9
and word [esi], 0
pop esi
leave
ret 0x14
Function at 0x4068fb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x40691f
xor eax, eax
test eax, eax
je 0x406932
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406932
xor ecx, ecx
jmp 0x406935
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406a58
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43110c], 0
push esi
jne 0x406a8f
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406a69
mov dword [ecx*4 + 0x431108], eax
inc ecx
cmp ecx, 0x100
jl 0x406a64
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406ac0
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x431108]
xor eax, esi
inc ecx
dec edx
jne 0x406aa2
pop edi
not eax
pop esi
ret 0xc
Function at 0x401bc3
Capabilities:
Log keystrokes

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
xor ebx, ebx
push edi
mov edi, ecx
push 5
pop eax
push ebx
mov dword [edi], eax
mov dword [edi + 4], eax
mov word [edi + 8], 1
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
push 0x5b
mov dword [edi + 0xc], 4
call esi
push ebx
push 0x10
mov byte [edi + 0x29], al
call esi
push ebx
push 0xa0
mov byte [edi + 0x26], al
call esi
push ebx
push 0xa1
mov byte [edi + 0x27], al
call esi
push ebx
push 0x11
mov byte [edi + 0x28], al
call esi
push ebx
push 0x12
mov byte [edi + 0x24], al
call esi
mov byte [edi + 0x25], al
pop edi
pop esi
pop ebx
ret
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.00441f50
push ebx
push esi
push edi
lea ecx, [esp + 0x28]
call fcn.0040a961
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 0x442b2d
mov eax, dword [0x4d1400]
test eax, eax
je 0x442b45
xor edi, edi
mov esi, 0x4d2390
inc edi
cmp eax, edi
je 0x442b51
lea eax, [esp + 0x11]
push eax
push ecx
push 0x4d1400
push 0x4d1418
mov ecx, esi
call fcn.00402de3
test al, al
je 0x442b70
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.00406b57
mov bl, byte [esp + 0x11]
push dword [0x4d1400]
push 0x4d1418
call fcn.00401cd0
test eax, eax
jne 0x442b7b
cmp byte [esp + 0x12], 1
je 0x442b98
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.0040d760
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.0040988f
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.004075ac
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.00461663
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.00409cb3
lea ecx, [esp + 0x18]
test bl, bl
je 0x442bf5
mov edi, 0x4c59cc
push edi
call fcn.004033c6
push 0x4d1418
lea ecx, [esp + 0x1c]
call fcn.00406350
push edi
lea ecx, [esp + 0x1c]
call fcn.004033c6
push 1
jmp 0x442bfe
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.0040988f
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 0x4435ba
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 0x443d70
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042e8c4
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 0x40693c
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 0x406964
movzx ecx, byte [esi + edi]
imul eax, eax, 0x21
add eax, ecx
inc esi
cmp esi, edx
jl 0x406956
pop edi
pop esi
pop ebp
ret 4
Function at 0x409a40
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 0x409abb
mov ebx, dword [ebp + 0xc]
xor edi, edi
test ebx, ebx
je 0x409a7c
mov ecx, dword [esi + 0xc]
lea ebx, [ebx]
cmp ecx, dword [esi + 8]
je 0x409a8c
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 0x409a60
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 0x409a7c
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x409a7c
mov dword [esi + 8], eax
xor ecx, ecx
mov dword [esi + 0xc], 0
jmp 0x409a65
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
call fcn.0041e40f
jmp 0x409a4e
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 0x457104
cmp dword [ebp + 0xc], 0
je 0x4191d2
mov dword [edi + 0x17c], esi
cmp eax, dword [edi + 0x180]
jne 0x457177
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 0x4570f3
push eax
push ecx
push edi
push 0xfffffffffffffff5
mov ecx, ebx
call fcn.00492c93
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 0x45712f
push 0xfffffffffffffff9
jmp 0x45715f
push 0xfffffffffffffff8
call fcn.00492c93
cmp byte [edi + 0x184], 0
je 0x457164
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 0x45715d
push 0xfffffffffffffffa
jmp 0x45715f
push 0xfffffffffffffff4
call fcn.00492c93
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 0x457193
push 0xfffffffffffffff7
jmp 0x457195
push 0xfffffffffffffff6
call fcn.00492c93
mov eax, dword [ebp - 8]
jmp 0x4191de
Function at 0x41e187
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 0x41e29e
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 0x45e773
cmp ax, cx
je 0x45e773
cmp ax, dx
je 0x45e773
cmp ax, word [ebp - 8]
je 0x45e773
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 0x45e820
push 0x40
lea ecx, [ebp - 0x1c]
call fcn.00406270
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.0041e2a2
pop ecx
pop ecx
test al, al
je 0x41e29a
push dword [ebp - 0x1c]
push dword [esi*4 + 0x4b11e0]
call fcn.00424a28
pop ecx
pop ecx
test eax, eax
je 0x41e267
inc esi
cmp esi, 0x63
jl 0x41e24c
cmp esi, 0x63
je 0x45e7af
cmp byte [esi + 0x4b1178], 0
jne 0x41e29a
movzx eax, byte [esi + str._f_b_b..__reepqrstuvwxyz________t___]
mov dword [edi], eax
lea ecx, [ebp - 0x1c]
call fcn.0040988f
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 0x41e282
xor al, al
jmp 0x41e293
push 0x2b
pop esi
cmp ax, si
jne 0x45e780
mov eax, dword [ebp + 0x10]
jmp 0x45e79f
cmp ax, cx
jne 0x45e78a
mov eax, dword [ebp + 0x14]
jmp 0x45e79f
cmp ax, dx
jne 0x45e794
mov eax, dword [ebp + 0x18]
jmp 0x45e79f
push 0x23
pop ecx
cmp ax, cx
jne 0x45e7a1
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 0x41e1ce
cmp dword [ebp + 0x1c], 2
jne 0x45e7ca
mov ecx, dword [ebp + 8]
push 2
call fcn.00403a3f
push 0x7d
pop ecx
cmp word [eax], cx
jne 0x45e7ca
push ecx
jmp 0x45e7d8
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 0x45e7f3
lea ecx, [ebp - 0x1c]
call fcn.0040988f
jmp 0x41e29e
test eax, 0x200
je 0x45e7ff
mov ecx, dword [ebp + 0x14]
mov byte [ecx], bl
test eax, 0x400
je 0x45e80b
mov ecx, dword [ebp + 0x18]
mov byte [ecx], bl
test eax, 0x100
je 0x41e282
mov eax, dword [ebp + 0x10]
mov byte [eax], bl
jmp 0x41e282
push eax
call dword [sym.imp.USER32.dll_VkKeyScanW]
cwde
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x41e29e
test eax, 0x200
je 0x45e83f
mov ecx, dword [ebp + 0x14]
mov byte [ecx], bl
test eax, 0x400
je 0x45e84b
mov ecx, dword [ebp + 0x18]
mov byte [ecx], bl
test eax, 0x100
je 0x41e28c
mov ecx, dword [ebp + 0x10]
mov byte [ecx], bl
jmp 0x41e28c
Function at 0x41f4d4
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.0042d955
pop ecx
push eax
call fcn.0042d776
cmp dword [esi + 0xc], 0xb
mov ebx, eax
pop ecx
pop ecx
je 0x45f274
lea ecx, [ebp - 0x18]
call fcn.00409ad3
mov ecx, esi
call fcn.00407510
mov ecx, dword [esi + 8]
lea edx, [ebp - 0x18]
call fcn.0041f6c9
push dword [ebp - 0x18]
push 0x49d158
push edi
call fcn.0041f574
add esp, 0xc
mov dword [ebp - 8], eax
cmp byte [ebp - 1], 0
jne 0x45f294
lea ecx, [ebp - 0x18]
call fcn.0040988f
mov esi, dword [ebp - 8]
push edi
call fcn.0042dd99
push edi
call fcn.0042d955
pop ecx
pop ecx
cmp ebx, 0xffffffff
jne 0x41f564
mov ebx, 0x4000
push ebx
push eax
call fcn.0042d776
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
push edi
mov ecx, esi
call fcn.00471f06
push eax
push 1
call fcn.00471e96
push eax
call fcn.0042dbb3
add esp, 0x10
mov esi, eax
jmp 0x41f54c
mov ecx, esi
call fcn.00407510
mov eax, dword [esi + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x41f541
Function at 0x41f8d8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x45f379
mov ecx, dword [0x4d191c]
push esi
push edi
cmp ecx, 0xffffffff
je 0x41f98a
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 0x41f91b
mov byte [esi + 0x3a], dl
cmp dword [esi + 0x18c], edx
jge 0x45f393
mov edi, dword [ebp + 8]
cmp edi, 8
jg 0x45f3ed
je 0x41f94b
test edi, edi
je 0x45f3dc
cmp edi, 1
je 0x41f94b
cmp edi, 2
je 0x41f981
cmp edi, 3
je 0x41f978
jle 0x41f96f
cmp edi, 5
jg 0x45f3bb
cmp byte [esi + 0x38], 0
jne 0x41f98a
push edi
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
cmp edi, 8
je 0x41f96b
cmp edi, 4
je 0x41f96b
mov ecx, dword [ebp + 0xc]
call fcn.0041f98e
mov byte [esi + 0x38], 1
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret 8
mov byte [esi + 0x38], 1
jmp 0x45f448
mov byte [esi + 0x38], 1
jmp 0x45f3c4
xor eax, eax
jmp 0x41f972
push dword [ebp + 0xc]
mov ecx, 0x4d18b0
call fcn.00419ba1
mov ecx, eax
mov dword [0x4d191c], ecx
jmp 0x41f8eb
cmp byte [esi + 0x198], dl
je 0x41f91b
push dword [esi + 0x194]
push esi
call fcn.004981db
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov byte [esi + 0x198], dl
jmp 0x41f91b
cmp edi, 6
jne 0x41f96f
cmp byte [esi + 0x38], 0
je 0x41f98a
push 6
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x41f96f
push edx
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov byte [esi + 0x38], 0
jmp 0x41f96f
mov eax, edi
sub eax, 9
je 0x45f448
sub eax, 0x37
je 0x45f43a
sub eax, 1
je 0x45f437
sub eax, 1
je 0x45f427
sub eax, 1
jne 0x41f96f
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 0x41f96f
push ecx
mov byte [esi + 0x39], 1
call dword [sym.imp.USER32.dll_LockWindowUpdate]
jmp 0x41f96f
push edx
jmp 0x45f43c
push 1
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x41f96f
cmp byte [esi + 0x38], 0
je 0x41f98a
push edi
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp + 0xc]
call fcn.0041f98e
jmp 0x41f96f
Function at 0x41f98e
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 0x45f467
xor eax, eax
inc eax
pop esi
pop ebx
leave
ret
push edi
xor edi, edi
test esi, esi
jne 0x45f47c
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 0x45f490
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 0x45f56b
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 0x45f547
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 0x45f54c
push 4
jmp 0x45f549
push 3
pop ebx
jmp 0x45f54f
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 0x45f56e
push 2
pop ebx
mov eax, ebx
pop edi
jmp 0x41f9ab

Function at 0x43927b
Capabilities:
Read file on windows

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

Function at 0x43d1d0
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043ce90
Function at 0x4606de
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.0040a961
lea ecx, [ebp - 0x20]
call fcn.0040a961
lea ecx, [ebp - 0x40]
call fcn.0040a961
push 0x4c5950
lea ecx, [ebp - 0x30]
call fcn.00406b57
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.0040a6c3
test edi, edi
je 0x460761
push 0x5c
pop eax
cmp word [edi], ax
je 0x460761
cmp word [edi + 2], ax
je 0x460761
push 0x4c5984
lea ecx, [ebp - 0x20]
call fcn.00406b57
push edi
lea ecx, [ebp - 0x20]
call fcn.004033c6
cmp dword [ebp + 0xc], ebx
je 0x4607b2
push 0x20
lea eax, [ebp - 0x60]
push ebx
push eax
call fcn.00422340
add esp, 0xc
mov dword [ebp - 0x5c], ebx
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x40]
push eax
call fcn.0040a8c7
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 0x46083e
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 0x46083e
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 0x460839
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 0x460834
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.0040988f
lea ecx, [ebp - 0x20]
call fcn.0040988f
lea ecx, [ebp - 0x30]
call fcn.0040988f
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x461014
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 0x46106c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x46106a
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 0x46106a
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