joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410551
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
push ebx
push esi
lea eax, [ebp - 8]
push edi
mov dword [ebp - 0xc], ecx
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov esi, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [ebp - 8]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
xor edi, edi
push eax
push edi
push 0x1111
push dword [esi]
call ebx
mov dword [ebp + 8], eax
lea eax, [ebp - 8]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_ClientToScreen]
cmp dword [ebp + 8], edi
je 0x41067c
cmp dword [ebp - 0x14], 4
jne 0x41067c
push dword [ebp + 8]
push 9
push 0x110b
push dword [esi]
call ebx
push 0x7f
mov word [ebp - 0x244], di
pop ecx
xor eax, eax
lea edi, [ebp - 0x242]
mov dword [ebp - 0x44], 7
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x244]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x44]
push eax
push edi
push 0x113e
mov dword [ebp - 0x30], 0x200
push dword [esi]
call ebx
test eax, eax
je 0x41067c
mov esi, dword [ebp - 0x20]
cmp esi, edi
je 0x41067c
cmp word [esi], di
je 0x41067c
push 0x6d
push dword [0x428fe4]
call dword [sym.imp.USER32.dll_LoadMenuW]
push 1
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
mov ebx, eax
mov ax, word [esi]
cmp ax, 1
jne 0x410649
push 0x400
push 1
jmp 0x410655
cmp ax, 2
jne 0x41065c
push 0x400
push edi
push ebx
call dword [sym.imp.USER32.dll_RemoveMenu]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [ebp - 0xc]
push edi
push dword [eax + 0x2c]
push edi
push dword [ebp - 4]
push dword [ebp - 8]
push edi
push ebx
call dword [sym.imp.USER32.dll_TrackPopupMenu]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x41243a
Capabilities:
Check if file exists
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
mov eax, dword [ebx]
xor esi, esi
mov dword [ebp - 0x10], eax
mov edi, 0x425b34
push esi
push 0x40000000
push 3
push esi
push esi
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x4124b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
mov dword [ebp - 4], eax
je 0x412497
cmp eax, 0xe7
jne 0x4124aa
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x4125a2
jmp 0x412452
push 0x426df0
push 3
call fcn.0040148c
pop ecx
pop ecx
jmp 0x4125a2
push 0x425a9c
jmp 0x41249c
push esi
lea ecx, [ebp - 0x14]
push esi
push ecx
push eax
mov dword [ebp - 0x14], 2
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
jne 0x4124d0
push 0x425a5c
jmp 0x41249c
lea eax, [ebp - 0x18]
push esi
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4124ef
push 0x425a38
jmp 0x41249c
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push esi
push esi
push 1
push esi
mov dword [ebx], esi
call edi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xc]
push eax
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x10]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
push dword [ebp + 0x10]
push dword [ebp - 8]
call ebx
cmp eax, esi
je 0x412553
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0xc]
add dword [ecx], edx
cmp eax, esi
jne 0x41259f
push esi
push esi
push 1
push esi
call edi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x24], esi
push dword [ebp - 0x10]
mov dword [ebp - 0x20], esi
push dword [ebp + 0x10]
push dword [ebp - 8]
jmp 0x41251e
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x26
mov dword [ebp - 4], eax
je 0x41259f
cmp eax, 0x3e5
jne 0x4125a2
push dword [ebp + 0x18]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4125a2
lea eax, [ebp - 0xc]
push esi
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x412597
call edi
cmp eax, 0x26
je 0x41259f
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0xc]
add dword [eax], ecx
mov dword [ebp - 4], esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x412d66
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60c
push esi
push 0x100
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.MSVCRT.dll_memset
mov esi, 0x200
lea eax, [ebp - 0x60c]
push esi
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push 0x4252f4
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x412e28
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x412e1f
cmp dword [ebp - 0xc], 1
jne 0x412e1f
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
shr ecx, 1
mov eax, dword [esi]
cmp eax, ecx
ja 0x412e01
or esi, 0xffffffff
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x412e2b
lea ecx, [ebp - 0x20c]
push ecx
push eax
push dword [ebp + 0xc]
call fcn.004129a4
mov eax, dword [ebp - 4]
add esp, 0xc
shr eax, 1
mov dword [esi], eax
xor esi, esi
jmp 0x412df4
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or eax, 0xffffffff
pop esi
leave
ret

Function at 0x412ef1
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push esi
push edi
xor esi, esi
push 0x200
lea eax, [ebp - 0x410]
push esi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x14
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, esi
jne 0x412f28
or eax, 0xffffffff
jmp 0x412f9c
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push esi
push esi
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x10]
push eax
push 0x20006
push esi
push esi
push esi
push 0x4252f4
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x10], 0xc
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x412f77
or esi, 0xffffffff
jmp 0x412f93
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x412f8a
or esi, 0xffffffff
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x412fa0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
and dword [ebp - 4], 0
push esi
push edi
xor edi, edi
and dword [ebp - 8], edi
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
test esi, esi
je 0x41305c
lea eax, [ebp - 0x234]
mov dword [ebp - 0x234], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x41300c
lea eax, [ebp - 0x210]
push 0x426e44
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x413006
lea eax, [ebp - 0x234]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
jmp 0x412fdd
mov edi, dword [ebp - 0x22c]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x413059
lea eax, [ebp - 4]
push eax
push 0xf00ff
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x413056
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x413051
mov dword [ebp - 8], 1
push dword [ebp - 4]
call esi
push edi
call esi
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret

Function at 0x413751
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60c
push esi
push 0x100
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.MSVCRT.dll_memset
mov esi, 0x200
lea eax, [ebp - 0x60c]
push esi
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push dword [ebp + 8]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x413811
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x413808
cmp dword [ebp - 0xc], 1
jne 0x413808
mov esi, dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
shr ecx, 1
mov eax, dword [esi]
cmp eax, ecx
ja 0x4137ea
or esi, 0xffffffff
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x413814
lea ecx, [ebp - 0x20c]
push ecx
push eax
push dword [ebp + 0x10]
call fcn.004129a4
mov eax, dword [ebp - 4]
add esp, 0xc
shr eax, 1
mov dword [esi], eax
xor esi, esi
jmp 0x4137dd
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or eax, 0xffffffff
pop esi
leave
ret
Function at 0x413817
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push ebx
push esi
xor esi, esi
push 0x200
lea eax, [ebp - 0x410]
push esi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x14
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
cmp ebx, esi
jne 0x413851
or eax, 0xffffffff
jmp 0x4138d4
push edi
push 1
pop edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push esi
push esi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x10]
push eax
push 0x20006
push esi
push esi
push esi
mov dword [ebp - 0x10], 0xc
push dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], edi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x41389c
or esi, 0xffffffff
jmp 0x4138ca
push dword [ebp + 0x10]
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
shl eax, 1
push eax
push dword [ebp + 0x10]
push edi
push esi
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4138c1
or esi, 0xffffffff
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4138d8
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push esi
push edi
xor esi, esi
push 0x200
lea eax, [ebp - 0x410]
push esi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x14
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, esi
jne 0x41390f
or eax, 0xffffffff
jmp 0x413981
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push esi
push esi
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x10]
push eax
push 0x20006
push esi
push esi
push esi
mov dword [ebp - 0x10], 0xc
push dword [ebp + 8]
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], 1
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x41395c
or esi, 0xffffffff
jmp 0x413978
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x41396f
or esi, 0xffffffff
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x413ab8
Capabilities:
Encrypt data using dpapi

Disassembly:
mov eax, 0x41d280
call fcn.0041c284
sub esp, 0x81c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push dword [ebp + 8]
call fcn.00412765
push eax
lea eax, [ebp - 0x410]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x410]
mov dword [ebp - 0x414], eax
lea eax, [ebp - 0x410]
push eax
call sub.MSVCRT.dll_strlen
add esp, 0x10
mov dword [ebp - 0x418], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x820]
push eax
push 1
push ebx
push ebx
push ebx
push 0x426e60
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.CRYPT32.dll_CryptProtectData]
test eax, eax
je 0x413b90
mov dword [ebp - 0x824], 0x3ff
push ebx
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x818]
push eax
push dword [ebp - 0x820]
push dword [ebp - 0x81c]
call fcn.0040fa82
add esp, 0x14
test eax, eax
je 0x413b90
mov eax, dword [ebp - 0x824]
mov byte [ebp + eax - 0x818], bl
lea eax, [ebp - 0x818]
push eax
call fcn.004127d1
push eax
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 0xc
or dword [ebp - 4], 0xffffffff
mov al, 1
jmp 0x413b92
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x413bcd
Capabilities:
Encrypt data using dpapi

Disassembly:
mov eax, 0x41d28c
call fcn.0041c284
sub esp, 0x81c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call fcn.00412765
push eax
lea eax, [ebp - 0x410]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 0xc
mov dword [ebp - 0x824], 0x3ff
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x410]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.00413cd0
add esp, 0x10
test eax, eax
je 0x413cbf
lea eax, [ebp - 0x818]
mov dword [ebp - 0x414], eax
mov eax, dword [ebp - 0x824]
mov dword [ebp - 0x418], eax
lea eax, [ebp - 0x820]
push eax
push 1
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x413cbf
push dword [ebp - 0x820]
push dword [ebp - 0x81c]
lea eax, [ebp - 0x818]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 0x820]
mov byte [ebp + eax - 0x818], bl
lea eax, [ebp - 0x818]
push eax
call fcn.004127d1
push eax
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 0x18
or dword [ebp - 4], 0xffffffff
mov al, 1
jmp 0x413cc1
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4153d2
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x429dfc]
push esi
push edi
push 0
push 0
push 0x130b
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
mov esi, eax
mov eax, dword [0x429dfc]
push 0
push dword [eax + 8]
call edi
mov eax, dword [0x429dfc]
mov eax, dword [eax + 4]
test eax, eax
je 0x415438
shl esi, 2
mov eax, dword [esi + eax]
test eax, eax
je 0x415438
push 1
push dword [eax]
call edi
mov ecx, dword [0x429dfc]
mov eax, dword [ecx + 4]
test eax, eax
je 0x415438
mov eax, dword [esi + eax]
test eax, eax
je 0x415438
mov eax, dword [eax]
push 1
mov dword [ecx + 8], eax
pop eax
jmp 0x41543a
xor eax, eax
pop edi
pop esi
ret

Function at 0x415966
Capabilities:
Acquire debug privileges

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
push 4
pop edi
push edi
push 0x4279a8
push esi
call fcn.00415a59
push edi
push 0x427984
push esi
mov ebx, eax
call fcn.00415a59
push edi
push 0x427950
push esi
call fcn.00415a59
push edi
push 0x427914
push esi
call fcn.00415a59
push edi
push 0x4278f0
push esi
call fcn.00415a59
push edi
push 0x4278c0
push esi
call fcn.00415a59
add esp, 0x48
push edi
push 0x427880
push esi
call fcn.00415a59
push edi
push 0x42784c
push esi
call fcn.00415a59
push edi
push 0x427820
push esi
call fcn.00415a59
push edi
push 0x4277f0
push esi
call fcn.00415a59
push edi
push 0x4277b0
push esi
call fcn.00415a59
push edi
push 0x42777c
push esi
call fcn.00415a59
add esp, 0x48
push edi
push 0x427754
push esi
call fcn.00415a59
push edi
push 0x42772c
push esi
call fcn.00415a59
push edi
push 0x4276f0
push esi
call fcn.00415a59
push edi
push 0x4276bc
push esi
call fcn.00415a59
push edi
push 0x427690
push esi
call fcn.00415a59
push edi
push 0x42765c
push esi
call fcn.00415a59
add esp, 0x48
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x416323
Capabilities:
Check if file exists
Delete file

Disassembly:
mov eax, 0x41d2f2
call fcn.0041c284
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp byte [ebx + 0x20c], 0
jne 0x416361
xor edi, edi
push 7
push edi
push 0x427a00
call fcn.0041b0b3
cmp eax, edi
jge 0x416358
xor al, al
jmp 0x4164f6
mov byte [ebx + 0x20c], 1
jmp 0x416363
xor edi, edi
push dword [ebp + 8]
and byte [ebp - 0xd], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x416388
push 1
mov ecx, ebx
push dword [ebp + 8]
call fcn.00418320
test al, al
je 0x416388
mov byte [ebp - 0xd], 1
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
call fcn.0040f465
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x4163a4
push 0x80004003
call fcn.0041c524
mov esi, dword [ebx]
push edi
push esi
mov eax, dword [esi]
call dword [eax + 0xfc]
cmp eax, edi
jge 0x4163c0
push 0x4279f0
push esi
push eax
call fcn.0041c532
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x28]
push eax
call fcn.0041b239
cmp dword [ebx], edi
mov byte [ebp - 4], 1
jne 0x4163de
push 0x80004003
call fcn.0041c524
lea edx, [ebp - 0x10]
lea esi, [ebp - 0x28]
push edx
mov eax, dword [ebx]
sub esp, 0x10
mov dword [ebp - 0x18], eax
mov edi, esp
mov ecx, dword [eax]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call dword [ecx + 0xe8]
test eax, eax
jge 0x41640e
push 0x4279f0
push dword [ebp - 0x18]
push eax
call fcn.0041c532
cmp word [ebp - 0x10], 0
lea eax, [ebp - 0x28]
push eax
sete byte [ebp - 0xf]
and byte [ebp - 4], 0
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
jge 0x41642f
push eax
call fcn.0041c524
cmp byte [ebp - 0xf], 0
je 0x41645d
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x416440
mov eax, dword [eax]
jmp 0x416442
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
mov ecx, ebx
push dword [ebp + 8]
call fcn.00418320
test al, al
je 0x41645d
mov byte [ebp - 0xd], 1
lea edx, [ebx + 4]
mov ecx, 0x82
mov eax, 0x300030
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x416479
mov eax, dword [eax]
jmp 0x41647b
xor eax, eax
push eax
push 0x104
push edx
call fcn.004129a4
add esp, 0xc
cmp byte [ebp - 0xd], 0
je 0x416497
mov ecx, ebx
call fcn.00418c18
mov ecx, dword [ebx + 0x214]
test ecx, ecx
je 0x4164a8
call fcn.004160d6
jmp 0x4164d0
push 0xc
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp + 8], eax
test eax, eax
mov byte [ebp - 4], 2
je 0x4164c4
mov ecx, eax
call fcn.00416005
jmp 0x4164c6
xor eax, eax
and byte [ebp - 4], 0
mov dword [ebx + 0x214], eax
push dword [ebx + 0x214]
mov ecx, ebx
call fcn.00416858
mov ecx, ebx
call fcn.0041a8e8
mov ecx, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x4164f4
call fcn.0040f500
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x405d9a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c574], 0
push esi
jne 0x405dd1
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 0x405dab
mov dword [ecx*4 + 0x42c570], eax
inc ecx
cmp ecx, 0x100
jl 0x405da6
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405e02
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 + 0x42c570]
xor eax, esi
inc ecx
dec edx
jne 0x405de4
pop edi
not eax
pop esi
ret 0xc

Function at 0x1001873
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x10011c0
call fcn.01001a94
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x10018ae
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10018ae
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x10018c6
cmp eax, 0x20b
je 0x10018b3
mov dword [ebp - 0x1c], edi
jmp 0x10018da
cmp dword [ecx + 0x84], 0xe
jbe 0x10018ae
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x10018d4
cmp dword [ecx + 0x74], 0xe
jbe 0x10018ae
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1003038], 0xffffffff
or dword [0x100303c], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1003034]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1003030]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1003040], eax
call fcn.01001a8e
cmp dword [0x1003020], edi
jne 0x1001935
push fcn.01001a8e
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01001a7c
push 0x10010dc
push 0x10010d8
call sub.msvcrt.dll__initterm
mov eax, dword [0x100302c]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x1003028]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x30], eax
push 0x10010d4
push 0x10010d0
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x24]
mov ecx, dword [sym.imp.msvcrt.dll___winitenv]
mov dword [ecx], eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.010017be
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x34], esi
cmp dword [ebp - 0x1c], edi
jne 0x10019ac
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x10019e1
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01001acd
ret
Function at 0x1001dcc0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
push ebx
mov ebx, dword [ecx]
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, eax
mov eax, dword [esp + 0x1c]
movzx edx, word [eax]
mov eax, dword [esp + 0x14]
sub eax, ebx
cmp ebp, eax
mov dword [esp + 0x18], ebx
jbe 0x1001dce6
mov ebp, eax
xor eax, eax
test ebp, ebp
jbe 0x1001dd28
sub ebx, esi
mov eax, ebp
mov dword [esp + 0x14], ebp
push edi
movzx edi, byte [ebx + esi]
mov ecx, edx
shr ecx, 8
xor ecx, edi
add edi, edx
imul edi, edi, 0x3193
mov edx, 0x58bf
sub edx, edi
mov byte [esi], cl
and edx, 0xffff
add esi, 1
sub eax, 1
jne 0x1001dcf5
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
pop edi
mov ecx, dword [esp + 0x10]
add ebx, ebp
mov dword [ecx], ebx
mov ecx, dword [esp + 0x1c]
pop esi
pop ebp
mov word [ecx], dx
pop ebx
ret