joyce8/EMBER2024-capa huggingface dataset:
Function at 0x66201f57
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov eax, 0x6621b3e0
call fcn.6620cf84
sub esp, 0x300
push esi
lea eax, [ebp + 8]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0xbc]
call fcn.66202f50
lea eax, [ebp - 0x30c]
mov byte [ebp - 4], 2
push eax
push dword [ebp + 0xb8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
push 0
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x2e0]
push eax
push 1
lea ecx, [ebp - 0xbc]
call fcn.662033a0
push dword [ebp - 0xbc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0xbc]
call fcn.66203f20
lea eax, [ebp - 0x30c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x66201f97
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 1
call fcn.66203210
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call fcn.66203210
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xb8]
call fcn.66203210
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x66202017
Capabilities:
Delete file
Enumerate files on windows
Move file

Disassembly:
mov eax, 0x6621b41e
call fcn.6620cf84
sub esp, 0x460
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp + 8]
inc ebx
lea ecx, [ebp - 0xbc]
push eax
mov dword [ebp - 4], ebx
call fcn.66202f50
lea eax, [ebp - 0x46c]
mov byte [ebp - 4], 2
push eax
push dword [ebp + 0xb8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
push 0
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x440]
push eax
push ebx
lea ecx, [ebp - 0xbc]
call fcn.662033a0
lea eax, [ebp - 0xbc]
push eax
lea ecx, [ebp - 0x21c]
call fcn.66202f50
mov esi, dword [ebp - 0xb8]
push 0x6621c4c0
mov byte [ebp - 4], 3
call fcn.6620cca1
pop ecx
sub esi, eax
lea ecx, [ebp - 0xbc]
push esi
lea eax, [ebp - 0x16c]
push eax
call fcn.662043a0
push ebx
push dword [ebp - 0x16c]
mov byte [ebp - 4], 4
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0xbc]
call fcn.66203f20
lea ecx, [ebp - 0x16c]
mov byte [ebp - 4], 3
call fcn.66203210
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 2
call fcn.66203210
lea eax, [ebp - 0x46c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x66202058
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], bl
call fcn.66203210
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call fcn.66203210
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xb8]
call fcn.66203210
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x66202141
Capabilities:
Create process on windows
Create process suspended
Set environment variable
Terminate process

Disassembly:
mov eax, 0x6621b451
call fcn.6620cf84
sub esp, 0x368
push ebx
push esi
xor ebx, ebx
lea ecx, [ebp - 0x214]
mov dword [ebp - 4], ebx
call fcn.66203190
mov esi, str.TS_UPDATE_CMDLINE
mov byte [ebp - 4], 1
lea eax, [ebp - 0x214]
push esi
push eax
call fcn.662045b0
pop ecx
pop ecx
lea ecx, [ebp - 0x114]
call fcn.66203190
push ebx
lea eax, [ebp - 0x114]
mov byte [ebp - 4], 2
push eax
push dword [ebp - 0x214]
call fcn.66203d80
add esp, 0xc
test eax, eax
js 0x66202205
push 0xffffffffffffffff
push 0x6621c3d8
lea ecx, [ebp - 0x374]
call fcn.662030f0
push ebx
push eax
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 3
call fcn.66203660
mov ebx, eax
mov byte [ebp - 4], 2
neg ebx
lea ecx, [ebp - 0x374]
sbb bl, bl
call fcn.66203210
inc bl
je 0x662021fb
xor esi, esi
push esi
push 0x6621c3dc
push str.Your_application_was_updated._____________Please_relaunch_to_use_the_new_version
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
xor ebx, ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x44
pop esi
push esi
lea eax, [ebp - 0x64]
push ebx
push eax
call fcn.6620d410
add esp, 0xc
mov dword [ebp - 0x64], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x2c4]
call fcn.66202f50
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [ebp - 0x10]
push 2
push 1
push ebx
push eax
call esi
push eax
call esi
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push dword [ebp - 0x10]
lea eax, [ebp - 0x164]
push 0x6621c494
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x164]
push eax
push str.TS_PARENT_HANDLE
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push dword [ebp - 0x2c4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x662022a5
push ebx
jmp 0x662021f5
lea ecx, [ebp - 0x2c4]
call fcn.66203210
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 1
call fcn.66203210
lea ecx, [ebp - 0x214]
mov byte [ebp - 4], bl
call fcn.66203210
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.66203210
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x662022e9
Capabilities:
Set environment variable

Disassembly:
mov eax, 0x6621b489
call fcn.6620cf84
sub esp, 0x168
push esi
push edi
and dword [ebp - 4], 0
lea ecx, [ebp + 8]
or edi, 0xffffffff
push edi
push 0
call fcn.662037d0
push eax
lea ecx, [ebp + 8]
call fcn.66204280
push eax
lea ecx, [ebp + 8]
call fcn.66203cb0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0xc4]
call fcn.66202f50
push 0
push 0
push edi
mov esi, 0x6621c540
mov byte [ebp - 4], 1
push esi
push 1
lea ecx, [ebp - 0xc4]
call fcn.662033a0
push 0
push 0
push edi
push str..ase
push 1
lea ecx, [ebp - 0xc4]
call fcn.662033a0
sub esp, 0xb0
lea eax, [ebp - 0xc4]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.66202f50
sub esp, 0xb0
mov byte [ebp - 4], 2
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.66202f50
mov byte [ebp - 4], 1
call fcn.66201f57
add esp, 0x160
lea eax, [ebp + 8]
lea ecx, [ebp - 0xc4]
push eax
call fcn.66203f20
push 0
push 0
push edi
push esi
push 1
lea ecx, [ebp - 0xc4]
call fcn.662033a0
push 0
push 0
push edi
push str..asd
push 1
lea ecx, [ebp - 0xc4]
call fcn.662033a0
sub esp, 0xb0
lea eax, [ebp - 0xc4]
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
call fcn.66202f50
sub esp, 0xb0
mov byte [ebp - 4], 3
mov ecx, esp
lea eax, [ebp + 8]
push eax
call fcn.66202f50
mov byte [ebp - 4], 1
call fcn.66201f57
add esp, 0x160
lea ecx, [ebp - 0x174]
call fcn.66203190
lea eax, [ebp - 0x174]
mov byte [ebp - 4], 4
push str.TS_UPDATE_COMPLETE
push eax
call fcn.662045b0
pop ecx
pop ecx
push dword [ebp + 8]
push dword [ebp - 0x174]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea ecx, [ebp - 0x174]
mov byte [ebp - 4], 1
call fcn.66203210
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 0
call fcn.66203210
lea ecx, [ebp + 8]
mov dword [ebp - 4], edi
call fcn.66203210
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x662024e1
Capabilities:
Check if file exists
Copy file
Delete file
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp dword [edi + 4], ebx
jne 0x66202500
mov eax, dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
inc eax
jmp 0x66202578
push esi
mov esi, dword [ebp + 0xc]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x6620251f
push 1
push dword [esi]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x66202570
mov eax, dword [ebp + 0x10]
push dword [eax]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x66202558
mov edi, dword [ebp + 0x10]
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0x96
je 0x66202555
push dword [edi]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x66202533
mov edi, dword [ebp + 8]
push 1
push dword [esi]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x66202575
push esi
mov ecx, edi
call fcn.66203f20
xor eax, eax
inc eax
jmp 0x66202577
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x662028f0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
call fcn.662029e0
test al, al
je 0x66202992
push esi
mov ecx, edi
call fcn.66202c80
push 0x2c
lea esi, [edi + 0x120]
push 0
push esi
call fcn.6620d410
add esp, 0xc
push 0
push 0x2c
push esi
mov esi, dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
push 0
call esi
push 0
lea eax, [edi + 0x14c]
xorps xmm0, xmm0
push 0xc
push eax
movq qword [eax], xmm0
push 1
mov dword [eax + 8], 0
call esi
push 0
push 4
lea eax, [ebp - 4]
push eax
push 0x1a
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
pop esi
test eax, eax
js 0x6620296f
cmp dword [ebp - 4], 0
je 0x6620296f
mov eax, 1
jmp 0x66202971
xor eax, eax
mov ecx, edi
mov byte [edi + 0x164], al
mov byte [edi + 0x165], al
call fcn.66202b30
mov ecx, 2
mov eax, 1
lock cmpxchg dword [edi], ecx
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x66202c80
Capabilities:
Check os version

Disassembly:
push esi
push edi
mov edi, ecx
push 0x11c
push 0
lea esi, [edi + 4]
push esi
call fcn.6620d410
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.ntdll.dll_RtlGetVersion]
cmp dword [edi + 8], 5
jne 0x66202cf6
cmp dword [edi + 0xc], 0
jne 0x66202cf6
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov edx, dword [eax + 0x1e0]
test edx, edx
je 0x66202d00
cmp word [eax + 0x1dc], 0
je 0x66202d00
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x66202cd2
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
lea eax, [edi + 0x18]
push eax
call fcn.6620d5b0
add esp, 0xc
mov byte [edi + 0x11f], 0
pop edi
pop esi
ret
xor eax, eax
mov word [edi + 0x18], ax
mov byte [edi + 0x11f], al
pop edi
pop esi
ret
Function at 0x66204bc0
Capabilities:
Map section object

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6621b6bb
push eax
mov dword fs:[0], esp
sub esp, 0x198
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
test ebx, ebx
je 0x66204bf4
mov byte [ebp + 0xb], 1
cmp esi, 0xffffffff
je 0x66204bf8
mov byte [ebp + 0xb], 0
push 1
push 0xffffffffffffffff
lea ecx, [ebp - 0x84]
call fcn.66207c60
mov dword [ebp - 4], 0
cmp byte [ebp + 0xb], 0
je 0x66204c4d
push 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x1a4]
push eax
push 0
mov eax, ebx
lea ecx, [ebp - 0x84]
cdq
push edx
push eax
call fcn.66208a40
mov edi, eax
test edi, edi
js 0x66204d61
lea ecx, [ebp - 0x1a4]
call fcn.66208c20
mov esi, dword [ebp - 0x154]
cmp byte [ebp + 0x20], 0
mov ecx, 4
push 0
push 0x8000000
mov eax, 0x40
mov dword [ebp - 0x24], esi
cmovne eax, ecx
mov dword [ebp - 0x20], 0
push eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
push 0
push 0xf
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntdll.dll_NtCreateSection]
mov edi, eax
test edi, edi
js 0x66204d61
push dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], 0
push 0x100000
push 2
push eax
push 0
push 0
push 1
lea eax, [ebp - 0x10]
mov dword [ebp - 0x18], 0
push eax
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov edi, eax
test edi, edi
js 0x66204cf4
cmp byte [ebp + 0xb], 0
je 0x66204cff
push dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x1a4]
push ebx
push eax
call fcn.662086a0
mov edi, eax
add esp, 0x10
test edi, edi
jns 0x66204d26
push dword [ebp - 0x10]
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
push dword [ebp - 0x14]
call dword [sym.imp.ntdll.dll_NtClose]
jmp 0x66204d61
test ebx, ebx
je 0x66204d26
mov eax, dword [ebp + 0xc]
push esi
test eax, eax
je 0x66204d1a
push dword [ebp - 0x10]
push eax
push ebx
call fcn.6620b470
add esp, 0x10
jmp 0x66204d26
push ebx
push dword [ebp - 0x10]
call fcn.6620d5b0
add esp, 0xc
mov ecx, dword [ebp + 0x14]
test ecx, ecx
jne 0x66204d38
push dword [ebp - 0x14]
call dword [sym.imp.ntdll.dll_NtClose]
jmp 0x66204d3d
mov eax, dword [ebp - 0x14]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x18]
test ecx, ecx
jne 0x66204d51
push dword [ebp - 0x10]
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
jmp 0x66204d56
mov eax, dword [ebp - 0x10]
mov dword [ecx], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x66204d5f
mov dword [eax], esi
xor edi, edi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x84]
call fcn.66207e40
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x66205600
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6621b79b
push eax
mov dword fs:[0], esp
sub esp, 0xec
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [edi + 0x178]
call fcn.66207570
cmp dword [edi + 0x160], 0
jne 0x66205743
cmp dword [edi + 4], 0
je 0x66205711
lea ecx, [ebp - 0xf8]
call fcn.66203190
mov dword [ebp - 4], 0
lea eax, [ebp - 0xf8]
push eax
push dword [edi]
call fcn.6620adc0
add esp, 8
lea ecx, [ebp - 0xf8]
call fcn.66204330
mov dword [ebp - 0x20], eax
lea ebx, [edi + 0x170]
xor ecx, ecx
mov dword [ebp - 0x28], 0x18
cmp byte [edi + 0x18c], cl
mov eax, 0x20
mov dword [ebp - 0x24], 0
cmovne eax, ecx
mov dword [ebp - 0x1c], 0x40
or eax, 0x40
mov dword [ebp - 0x18], 0
push eax
push 1
lea eax, [ebp - 0x30]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x28]
push eax
push dword [edi + 0x188]
push ebx
call dword [sym.imp.ntdll.dll_NtOpenFile]
mov dword [ebp - 0x10], eax
test eax, eax
jns 0x662056ff
mov dword [ebx], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf8]
call fcn.66203210
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf8]
call fcn.66203210
push 5
push 0x18
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [edi + 0x170]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
js 0x662057ff
mov eax, dword [ebp - 0x40]
mov dword [edi + 0x168], eax
mov eax, dword [ebp - 0x3c]
mov dword [edi + 0x16c], eax
mov ecx, edi
call fcn.662059c0
mov ebx, eax
test ebx, ebx
jns 0x66205777
lea ecx, [edi + 0x178]
call fcn.66207570
mov ecx, edi
call fcn.66204b30
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
cmp byte [ebp + 8], 0
je 0x66205792
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [edi + 0x178]
mov ecx, esi
call fcn.66204970
test al, al
je 0x6620577d
cmp byte [ebp + 0xc], 0
je 0x6620577d
mov eax, dword [edi + 0x170]
mov dword [edi + 0x174], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x170], 0
test eax, eax
je 0x662057d2
push 0xffffffffffffffff
push eax
mov ecx, edi
call fcn.662041d0
jmp 0x662057f2
mov ecx, esi
call fcn.66204950
mov ecx, edi
mov esi, eax
call fcn.66203eb0
push 0
push 0
push 0xffffffffffffffff
push esi
push 1
mov ecx, eax
call fcn.662033a0
push 0
push 0
push 1
mov ecx, edi
call fcn.66205600
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x66205890
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
sub esp, 8
xor eax, eax
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, ecx
mov ecx, ebx
add ecx, edx
adc eax, dword [ebp + 0xc]
cmp dword [esi + 0x16c], eax
jg 0x662058c8
jl 0x662058bb
cmp dword [esi + 0x168], ecx
jae 0x662058c8
pop esi
mov eax, 0xc000007b
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [esi + 0x160]
test eax, eax
je 0x662058eb
push ebx
add eax, edx
push eax
push dword [ebp + 0x10]
call fcn.6620d5b0
add esp, 0xc
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp dword [esi + 0x170], 0
jne 0x66205901
pop esi
mov eax, 0xc0000008
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp byte [esi + 0x18c], 0
push edi
mov dword [ebp + 0x14], 0
je 0x66205944
mov edi, dword [ebp + 0x18]
test edi, edi
jne 0x66205930
push edi
push edi
push edi
push 0x100002
lea eax, [ebp + 0x14]
push eax
call dword [sym.imp.ntdll.dll_NtCreateEvent]
mov edi, dword [ebp + 0x14]
jmp 0x66205937
push edi
call dword [sym.imp.ntdll.dll_NtClearEvent]
test eax, eax
jns 0x66205946
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
xor edi, edi
push 0
lea eax, [ebp + 8]
push eax
push ebx
push dword [ebp + 0x10]
lea eax, [ebp - 8]
push eax
push 0
push 0
push edi
push dword [esi + 0x170]
call dword [sym.imp.ntdll.dll_NtReadFile]
mov esi, eax
cmp esi, 0x103
jne 0x6620598c
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov esi, eax
test esi, esi
je 0x66205989
js 0x6620599b
mov esi, 0xc0000001
jmp 0x6620599b
mov esi, dword [ebp - 8]
test esi, esi
js 0x6620599b
cmp dword [ebp - 4], ebx
mov eax, 0xc000007b
cmovne esi, eax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x662059a9
push eax
call dword [sym.imp.ntdll.dll_NtClose]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x662069d0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov eax, dword fs:[0x18]
mov ecx, dword [eax + 0x30]
xor eax, eax
cmp byte [ecx + 2], al
setne al
ret
Function at 0x662099b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x662236e8
push 0x6620ebb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x1c], ecx
mov esi, dword [ebp + 8]
mov eax, esi
mov edi, dword [ebp + 0xc]
or eax, edi
je 0x66209bde
cmp esi, 0xffffffff
jne 0x662099f6
test edi, edi
je 0x66209bde
mov eax, esi
and eax, edi
cmp eax, 0xffffffff
je 0x66209bde
cmp dword [ebp + 0x20], 0
ja 0x66209a2b
jb 0x66209a13
mov ebx, dword [ebp + 0x1c]
cmp ebx, 0x40
jae 0x66209a2e
mov eax, 0xc000007b
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov ebx, dword [ebp + 0x1c]
mov dword [ebp - 4], 0
push 0
push 2
lea eax, [ebp + 0xc]
push eax
push edi
push esi
call fcn.66208e70
test eax, eax
jns 0x66209a62
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov eax, 0x5a4d
cmp word [ebp + 0xc], ax
jne 0x66209bbf
push 0
push 4
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
add ecx, 0x3c
mov eax, edi
adc eax, 0
push eax
push ecx
mov ecx, dword [ebp - 0x1c]
call fcn.66208e70
test eax, eax
js 0x66209a48
mov eax, dword [ebp - 0x20]
xor edx, edx
mov ecx, dword [ebp + 0x20]
cmp edx, ecx
ja 0x66209bbf
jb 0x66209aab
cmp eax, ebx
jae 0x66209bbf
lea edx, [eax + 0x18]
cmp edx, eax
jb 0x66209bbf
mov dword [ebp + 0x20], 0
cmp dword [ebp + 0x20], ecx
ja 0x66209bbf
jb 0x66209ad0
cmp edx, ebx
jae 0x66209bbf
cmp eax, 0x10000000
jae 0x66209bbf
add eax, esi
mov ecx, 0
adc ecx, edi
push 0
push 4
lea edx, [ebp - 0x24]
push edx
push ecx
push eax
mov ecx, dword [ebp - 0x1c]
call fcn.66208e70
test eax, eax
js 0x66209a48
cmp dword [ebp - 0x24], 0x4550
jne 0x66209bbf
mov ebx, dword [ebp - 0x20]
xor ecx, ecx
add ebx, esi
adc ecx, edi
mov dword [ebp + 0x20], ecx
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x66209b23
mov dword [eax], ebx
mov dword [eax + 4], ecx
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x66209b9a
mov dword [edx + 0x108], ebx
mov dword [edx + 0x10c], ecx
mov dword [edx + 0x110], esi
mov dword [edx + 0x114], edi
mov al, byte [ebp + 0x10]
mov byte [edx + 0x118], al
push 0
push 0x18
push edx
push ecx
push ebx
mov esi, dword [ebp - 0x1c]
mov ecx, esi
call fcn.66208e70
test eax, eax
js 0x66209a48
mov ecx, dword [ebp + 0x18]
movzx edx, word [ecx + 0x14]
mov eax, edx
mov edi, 0xf0
cmp di, ax
jae 0x66209b79
mov eax, edi
push 0
push eax
lea eax, [ecx + 0x18]
push eax
add ebx, 0x18
mov eax, dword [ebp + 0x20]
adc eax, 0
push eax
push ebx
mov ecx, esi
call fcn.66208e70
test eax, eax
js 0x66209a48
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov dword [ebp - 4], 0xffffffff
mov eax, 0xc000007b
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov eax, 0xc000000d
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x408f6d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
mov ecx, dword [ebp + 8]
add ecx, eax
push ebx
push edi
mov edi, dword [ecx]
add eax, 4
mov dword [esi], eax
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00455667
mov ecx, dword [esi]
add ecx, dword [ebp + 8]
lea ebx, [edi + edi]
push ebx
push ecx
push eax
mov dword [ebp - 4], eax
call fcn.00454ef0
mov eax, dword [ebp - 4]
add dword [esi], ebx
xor ecx, ecx
add esp, 0x10
mov word [ebx + eax], cx
test edi, edi
jle 0x408fc6
xor word [eax + ecx*2], di
inc ecx
cmp ecx, edi
jl 0x408fbd
pop edi
pop ebx
leave
ret 4
Function at 0x40e21c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
mov edi, eax
xor esi, esi
mov byte [0x4803ce], bl
cmp edi, ebx
je 0x40e262
mov byte [0x4803cf], 1
call dword [0x46b160]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push 0x40e2a5
push ebx
push ebx
mov dword [ebp - 8], edi
call fcn.00457e0f
add esp, 0x18
mov esi, eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x46b65c]
mov edi, eax
cmp esi, ebx
je 0x40e290
push 0xffffffffffffffff
push esi
mov byte [0x4803cf], bl
call dword [0x46b2f4]
push esi
call dword [0x46b304]
cmp byte [0x4803ce], 1
jne 0x40e29e
or eax, 0xffffffff
jmp 0x40e2a0
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40fade
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
push ebx
mov bl, byte [0x4803c7]
push esi
push 0x8000
push dword [ebp + 8]
call fcn.004581c9
pop ecx
push eax
call fcn.004580de
cmp dword [edi + 8], 0xb
pop ecx
pop ecx
mov dword [esp + 8], eax
jne 0x40fb34
push dword [ebp + 8]
mov ecx, edi
call fcn.00412b6a
push eax
push 1
push ecx
mov eax, edi
call fcn.00412c01
pop ecx
push eax
call fcn.00458346
add esp, 0x10
mov dword [esp + 0xc], eax
jmp 0x40fb7f
lea esi, [esp + 0x10]
call fcn.00407c35
mov eax, edi
call fcn.00412bcc
mov ecx, esi
push ecx
call fcn.0040d228
push dword [esp + 0x10]
push 0x470a74
push dword [ebp + 8]
call fcn.004583c0
add esp, 0xc
mov dword [esp + 0xc], eax
test bl, bl
je 0x40fb76
mov eax, edi
call fcn.00412bb1
push eax
call dword [0x46b204]
lea esi, [esp + 0x10]
call fcn.00407c54
push dword [ebp + 8]
call fcn.00458656
cmp dword [esp + 0xc], 0xffffffff
pop ecx
jne 0x40fb96
push 0x4000
jmp 0x40fb9a
push dword [esp + 8]
push dword [ebp + 8]
call fcn.004581c9
pop ecx
push eax
call fcn.004580de
mov eax, dword [esp + 0x14]
pop ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x414bba
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
xor esi, esi
inc esi
mov dword [0x490420], eax
push edi
mov edx, esi
mov eax, 0x490420
mov ecx, dword [eax]
mov edi, ecx
shr edi, 0x1e
xor edi, ecx
imul edi, edi, 0x6c078965
add edi, edx
mov dword [eax + 4], edi
add eax, 4
inc edx
cmp eax, 0x490ddc
jl 0x414bcb
pop edi
mov dword [0x47b05c], esi
mov dword [0x490df0], esi
pop esi
ret