joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405440
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
push ebp
mov eax, 0x20ac
push edi
push esi
push ebx
call fcn.0040b420
sub esp, eax
mov eax, dword [esp + 0x20c0]
lea edi, [esp + 0xa0]
lea ebp, [esp + 0x5c]
mov dword [esp + 8], 0x1000
mov dword [esp], edi
mov dword [esp + 4], eax
mov dword [esp + 0x3c], 0
call fcn.00405a10
mov dword [esp + 4], 1
mov dword [esp], 0x16
call sub.msvcrt.dll_signal
mov dword [esp + 4], 1
mov dword [esp], 2
call sub.msvcrt.dll_signal
mov dword [esp + 4], 1
mov dword [esp], 0xf
call sub.msvcrt.dll_signal
mov dword [esp + 4], 1
mov dword [esp], 0x15
call sub.msvcrt.dll_signal
mov dword [esp + 0x40], 0xc
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 1
mov dword [esp], ebp
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, 1
mov esi, dword [fcn.0040bf20]
sub esp, 4
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x88], 0x101
mov word [esp + 0x8c], ax
mov dword [esp], 0
call esi
mov dword [esp], eax
call sub.msvcrt.dll__fileno
mov ebx, dword [sym.imp.msvcrt.dll__get_osfhandle]
mov dword [esp], eax
call ebx
mov dword [esp], 1
mov dword [esp + 0x94], eax
call esi
mov dword [esp], eax
call sub.msvcrt.dll__fileno
mov dword [esp], eax
call ebx
mov dword [esp], 2
mov dword [esp + 0x98], eax
call esi
mov dword [esp], eax
call sub.msvcrt.dll__fileno
mov dword [esp], eax
call ebx
mov dword [esp + 0x9c], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea edx, [esp + 0x4c]
mov dword [esp], edi
mov dword [esp + 0x24], edx
lea edx, [esp + 0x40]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
sub esp, 0x28
test eax, eax
je 0x405620
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
lea eax, [esp + 0x3c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
sub esp, 8
mov eax, dword [esp + 0x3c]
add esp, 0x20ac
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], str.Error_creating_child_process__n
mov dword [esp], str.CreateProcessW
call fcn.004020c0
add esp, 0x20ac
mov eax, 0xffffffff
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x405d40
Capabilities:
Create directory

Disassembly:
push ebp
mov eax, 0x203c
push edi
push esi
push ebx
call fcn.0040b420
sub esp, eax
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x24], 0
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edx, [esp + 0x20]
mov dword [esp + 4], 8
mov dword [esp + 8], edx
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
sub esp, 0xc
lea edi, [esp + 0x24]
test eax, eax
jne 0x405e60
xor ebx, ebx
lea esi, [esp + 0x30]
mov dword [esp], ebx
call sub.msvcrt.dll_free
mov eax, dword [esp + 0x20]
cmp eax, 0xffffffff
je 0x405db9
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov ebx, dword [esp + 0x30]
mov eax, str.S_1_3_4
mov dword [esp], esi
mov dword [esp + 8], str.D:_A__FA____s_
test ebx, ebx
mov dword [esp + 4], 0x1000
cmovne eax, ebx
mov dword [esp + 0xc], eax
call dword [sym.imp.msvcrt.dll__snwprintf]
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
sub esp, 4
lea eax, [esp + 0x28]
mov dword [esp + 0x24], 0xc
mov dword [esp + 0x2c], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
sub esp, 0x10
test eax, eax
je 0x405f08
mov eax, dword [esp + 0x2050]
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
sub esp, 8
test eax, eax
sete al
movzx eax, al
neg eax
add esp, 0x203c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], eax
call esi
sub esp, 0x14
test eax, eax
jne 0x405ea1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x405d96
mov ebp, dword [esp + 0x24]
mov dword [esp], 1
mov dword [esp + 4], ebp
call sub.msvcrt.dll_calloc
mov ebx, eax
mov eax, dword [esp + 0x20]
test ebx, ebx
je 0x405d96
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ebp
mov dword [esp + 8], ebx
mov dword [esp + 4], 1
mov dword [esp], eax
call esi
sub esp, 0x14
lea esi, [esp + 0x30]
test eax, eax
je 0x405d9c
mov dword [esp + 4], esi
mov eax, dword [ebx]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
sub esp, 8
jmp 0x405d9c
mov eax, 0xffffffff
jmp 0x405e4d
Function at 0x40a7d0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.0040bf20
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.0040bf20
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x40a830
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x41b51c]
test esi, esi
jle 0x40a930
mov eax, dword [0x41b520]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x40a860
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x40a8df
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x40a850
mov dword [esp], ebx
call fcn.0040b1a0
mov edi, eax
test eax, eax
je 0x40a957
mov eax, dword [0x41b520]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.0040b2b0
mov edx, dword [0x41b520]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x40a937
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x40a8d8
sub eax, 4
and eax, 0xfffffffb
jne 0x40a8e6
add dword [0x41b51c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
add ebx, dword [0x41b520]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x40a8d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.0040a7d0
xor esi, esi
jmp 0x40a86a
mov eax, dword [0x41b520]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.0040a7d0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.0040a7d0
lea esi, [esi]
nop
Function at 0x40ae10
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x41b538
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x41b530]
sub esp, 4
test ebx, ebx
je 0x40ae65
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40ae5e
test esi, esi
je 0x40ae5e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40ae40
mov dword [esp], 0x41b538
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x406360
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x426d8c], 0
push esi
jne 0x406397
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 0x406371
mov dword [ecx*4 + 0x426d88], eax
inc ecx
cmp ecx, 0x100
jl 0x40636c
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4063c8
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 + 0x426d88]
xor eax, esi
inc ecx
dec edx
jne 0x4063aa
pop edi
not eax
pop esi
ret 0xc

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x38683ebd
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x5c337822
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x403170
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x429570
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x439008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
lea eax, [ebp + 0x20]
cmp dword [ebp + 0x34], 0x10
mov ecx, 0x43a02c
push dword [ebp + 0x30]
cmovae eax, dword [ebp + 0x20]
push eax
call fcn.00417b50
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
mov ecx, 0x439a14
push eax
call fcn.00417b50
mov esi, dword [0x43a03c]
xor ebx, ebx
mov edi, dword [0x43a040]
nop word [eax + eax]
cmp edi, 0x10
mov byte [ebx + 0x43b230], bl
mov eax, ebx
mov ecx, 0x43a02c
cmovae ecx, dword [0x43a02c]
cdq
idiv esi
mov al, byte [edx + ecx]
mov byte [ebx + 0x43b338], al
inc ebx
cmp ebx, 0x100
jl 0x4031f0
xor edi, edi
xor esi, esi
mov dl, byte [esi + 0x43b230]
movzx eax, byte [esi + 0x43b338]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x403244
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [edi + 0x43b230]
mov byte [esi + 0x43b230], al
inc esi
mov byte [edi + 0x43b230], dl
cmp esi, 0x100
jl 0x403220
mov esi, dword [ebp - 0x10]
mov ecx, esi
call fcn.00402ed0
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x403299
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40328f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4032ef
push edx
push ecx
call fcn.004191df
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x4032db
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4032d1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4032ef
push edx
push ecx
call fcn.004191df
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0041d83c
int3
Function at 0x404b40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
mov eax, dword [0x439008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x108]
mov esi, ecx
push eax
push 0
call dword [0x42f0d0]
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x404d5d
mov edi, dword [esi + 0x3c]
add edi, esi
cmp dword [edi], 0x4550
jne 0x404d5d
push 0x44
lea eax, [ebp - 0x14c]
push 0
push eax
call fcn.0041a230
add esp, 0xc
lea eax, [ebp - 0x160]
xorps xmm0, xmm0
movups xmmword [ebp - 0x160], xmm0
push eax
lea eax, [ebp - 0x14c]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x108]
push eax
call dword [0x42f07c]
test eax, eax
je 0x404d5d
push 4
push 0x1000
push 4
push 0
call dword [0x42f0bc]
mov ebx, eax
push ebx
mov dword [ebp - 0x16c], ebx
mov dword [ebx], 0x10007
push dword [ebp - 0x15c]
call dword [0x42f060]
test eax, eax
je 0x404d5d
push 0
push 4
lea eax, [ebp - 0x150]
push eax
push 0x434ed4
push dword [ebp - 0x160]
call dword [0x42f074]
mov eax, dword [edi + 0x34]
cmp dword [ebp - 0x150], eax
jne 0x404c5c
push 0x434ed8
push 0x434ef0
call dword [0x42f0a4]
push eax
call dword [0x42f064]
push dword [ebp - 0x150]
push dword [ebp - 0x160]
call eax
mov eax, dword [edi + 0x34]
push 0x40
push 0x3000
push dword [edi + 0x50]
push eax
push dword [ebp - 0x160]
call dword [0x42f068]
mov dword [ebp - 0x168], eax
test eax, eax
je 0x404d5d
push 0
push dword [edi + 0x54]
push esi
push eax
push dword [ebp - 0x160]
call dword [0x42f0cc]
xor eax, eax
mov dword [ebp - 0x164], 0
cmp ax, word [edi + 6]
jae 0x404cf6
xor ebx, ebx
lea ecx, [ebx + esi]
add ecx, dword [esi + 0x3c]
push 0
push dword [ecx + 0x108]
mov eax, dword [ecx + 0x10c]
add eax, esi
push eax
mov eax, dword [ecx + 0x104]
add eax, dword [ebp - 0x168]
push eax
push dword [ebp - 0x160]
call dword [0x42f0cc]
mov ecx, dword [ebp - 0x164]
lea ebx, [ebx + 0x28]
movzx eax, word [edi + 6]
inc ecx
mov dword [ebp - 0x164], ecx
cmp ecx, eax
jl 0x404ca8
mov ebx, dword [ebp - 0x16c]
push 0
push 4
lea eax, [edi + 0x34]
push eax
mov eax, dword [ebx + 0xa4]
add eax, 8
push eax
push dword [ebp - 0x160]
call dword [0x42f0cc]
mov eax, dword [edi + 0x28]
add eax, dword [ebp - 0x168]
push ebx
mov dword [ebx + 0xb0], eax
push dword [ebp - 0x15c]
call dword [0x42f084]
push dword [ebp - 0x15c]
call dword [0x42f0a8]
push 0x8000
push 0
push esi
call dword [0x42f0c4]
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418d52
mov esp, ebp
pop ebp
ret
push 0x8000
push 0
push esi
call dword [0x42f0c4]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418d52
mov esp, ebp
pop ebp
ret
Function at 0x4091f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push fcn.00429ec0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x439008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x43a194
lea ecx, [ebp - 0x40]
call fcn.00417690
mov dword [ebp - 4], 0
xor edx, edx
mov ecx, 7
mov dword [ebp - 0x18], edx
xor eax, eax
mov dword [ebp - 0x14], ecx
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 1
xor esi, esi
mov ebx, dword [ebp - 0x40]
cmp dword [ebp - 0x30], esi
jbe 0x4092a2
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, ebx
movsx ax, byte [eax + esi]
movzx edi, ax
cmp edx, ecx
jae 0x409283
lea eax, [edx + 1]
cmp ecx, 8
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
xor ecx, ecx
mov word [eax + edx*2], di
mov word [eax + edx*2 + 2], cx
jmp 0x409294
push edi
mov byte [ebp - 0x44], 0
push dword [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00418650
mov ecx, dword [ebp - 0x14]
inc esi
cmp esi, dword [ebp - 0x30]
jae 0x4092a2
mov edx, dword [ebp - 0x18]
jmp 0x409250
cmp ecx, 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0
push 0
call dword [0x42f0b8]
call dword [0x42f044]
cmp eax, 0xb7
je 0x40935d
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4092fe
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4092f4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409364
push edx
push ecx
call fcn.004191df
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], 7
cmp eax, 0x10
jb 0x409341
lea ecx, [eax + 1]
mov eax, ebx
cmp ecx, 0x1000
jb 0x409337
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409364
push ecx
push ebx
call fcn.004191df
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00418d52
mov esp, ebp
pop ebp
ret
push 0
call fcn.0041c5ff
call fcn.0041d83c
int3
Function at 0x4017e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
test eax, eax
je 0x401850
cmp byte [esi + eax - 1], 0xa
mov ebx, eax
je 0x401848
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4060a4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov eax, 1
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
xor eax, eax
jmp 0x40180d
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret
Function at 0x402220
Capabilities:
Accept command line arguments
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete dl
movzx edx, dl
inc edx
mov dword [esp], edx
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop

Function at 0x402290
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x68
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test eax, eax
je 0x402321
cmp eax, 9
je 0x402310
cmp eax, 0x20
je 0x402310
xor edi, edi
xor esi, esi
jmp 0x4022d0
cmp eax, 0x5c
je 0x402388
cmp eax, 0x22
je 0x402370
xor esi, esi
movzx eax, word [ebx + 2]
add ebx, 2
test eax, eax
je 0x402321
cmp eax, 9
sete cl
cmp eax, 0x20
sete dl
or cl, dl
je 0x4022d0
test edi, 1
jne 0x4022d0
mov esi, esi
lea edi, [edi]
movzx eax, word [ebx + 2]
add ebx, 2
cmp eax, 9
je 0x402310
cmp eax, 0x20
je 0x402310
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x30], 1
je 0x402390
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
xor edx, edx
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._wWinMain_16
sub esp, 0x10
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
and esi, 1
jne 0x4022e2
xor edi, 1
jmp 0x4022e4
inc esi
jmp 0x4022e4
mov word [ebp - 0x2c], 1
mov esi, 1
jmp 0x40233a
Function at 0x401060
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebx
push esi
push edi
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
push eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
mov ecx, dword [sym.imp.USER32.dll_GetCursorPos]
add esp, 8
cmp dword [0x403018], 1
mov edi, dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov ebx, dword [sym.imp.USER32.dll_DrawIcon]
mov esi, dword [sym.imp.USER32.dll_GetDC]
jle 0x4011a0
nop word [eax + eax]
push 0x403384
call ecx
call edi
cdq
mov ecx, 5
idiv ecx
push 0
mov dword [0x403390], edx
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov edi, eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdq
idiv edi
push 1
mov dword [0x403394], edx
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov edi, eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdq
idiv edi
mov eax, dword [0x403390]
mov dword [0x40338c], edx
cmp eax, 1
jne 0x4010fa
push 0x7f01
jmp 0x401128
cmp eax, 2
jne 0x401106
push 0x7f03
jmp 0x401128
cmp eax, 3
jne 0x401112
push 0x7f05
jmp 0x401128
cmp eax, 4
jne 0x40111e
push 0x7f02
jmp 0x401128
cmp eax, 5
jne 0x401145
push 0x7f04
mov eax, dword [sym.imp.USER32.dll_LoadIconW]
push 0
call eax
push eax
push dword [0x40338c]
push dword [0x403394]
push 0
call esi
push eax
call ebx
push 0x7f03
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
push eax
push dword [0x403388]
push dword [0x403384]
push 0
call esi
push eax
call ebx
push dword [0x403018]
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x403018]
mov edi, dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
sub eax, 0x21
mov ecx, dword [sym.imp.USER32.dll_GetCursorPos]
mov dword [0x403018], eax
cmp eax, 1
jg 0x4010a0
mov ecx, dword [sym.imp.USER32.dll_GetCursorPos]
mov edi, dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
push 0x403384
call ecx
call edi
cdq
mov ecx, 5
idiv ecx
push 0
mov dword [0x403390], edx
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov edi, eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdq
idiv edi
push 1
mov dword [0x403394], edx
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov edi, eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdq
idiv edi
mov eax, dword [0x403390]
mov dword [0x40338c], edx
cmp eax, 1
jne 0x4011fa
push 0x7f01
jmp 0x401228
cmp eax, 2
jne 0x401206
push 0x7f03
jmp 0x401228
cmp eax, 3
jne 0x401212
push 0x7f05
jmp 0x401228
cmp eax, 4
jne 0x40121e
push 0x7f02
jmp 0x401228
cmp eax, 5
jne 0x401244
push 0x7f04
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
push eax
push dword [0x40338c]
push dword [0x403394]
push 0
call esi
push eax
call ebx
push 0x7f03
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
push eax
push dword [0x403388]
push dword [0x403384]
push 0
call esi
push eax
call ebx
jmp 0x401194