joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4229f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [0x4f3238]
test eax, eax
je 0x422b58
cmp dword [eax], 1
je 0x422a0e
call sym.__pthread_once_raw.part.0.constprop.0
mov eax, dword [0x4f3234]
test eax, eax
je 0x422b80
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x422a40
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call sym._pop_pthread_mem
mov esi, eax
mov eax, dword [entry3]
test eax, eax
je 0x422a2f
test esi, esi
je 0x422a2f
mov dword [esi + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0x3c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x1c], 0xffffffff
mov dword [esi + 0x18], eax
sub esp, 0x10
lea eax, [esi + 0x38]
call sym._replace_spin_keys.constprop.0
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esi + 0x64], 0
mov dword [esi + 0x14], 0
call ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov ebx, eax
call ebp
lea edx, [esi + 0x14]
mov dword [esp + 8], edi
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
je sym.___pthread_self_lite.cold
mov eax, dword [esi + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], eax
movzx eax, byte [esi + 0x20]
sub esp, 4
and eax, 0xffffffcf
or eax, 0x10
mov byte [esi + 0x20], al
mov eax, dword [0x4f3234]
test eax, eax
je 0x422bb0
mov dword [esp + 4], esi
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je sym.___pthread_self_lite.cold
add esp, 0x2c
mov ebx, esi
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_once_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x4f3238], eax
jmp 0x422a04
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x4f3234], eax
jmp 0x422a1b
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x4f3234], eax
jmp 0x422b2e
Function at 0x424650
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov esi, dword [esp + 0x20]
call sym.___pthread_self_lite
mov dword [eax + 4], esi
mov ebx, eax
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x424672
call sym.__pthread_cleanup_dest.part.0
test byte [ebx + 0x20], 0x30
je 0x4246d4
mov eax, dword [0x4f3234]
test eax, eax
je 0x42475b
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x4246cb
cmp dword [ebx + 0x14], 0
mov eax, dword [eax + 0x18]
je 0x42472b
mov dword [ebx + 0x68], 1
mov esi, dword [ebx + 4]
test eax, eax
je 0x4246be
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
mov dword [ebx + 0x18], 0
test byte [ebx + 0x24], 4
jne 0x4246e8
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__endthreadex]
add ebx, 0x70
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_longjmp]
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
cmp dword [ebx + 0xb0], 0
mov dword [ebx + 0x14], 0
je 0x424752
mov eax, dword [0x4f3234]
test eax, eax
je 0x424781
mov dword [esp + 4], 0
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push eax
push eax
jmp 0x4246cb
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x42473f
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
cmp dword [ebx + 0xb0], 0
mov esi, dword [ebx + 4]
mov dword [ebx + 0x18], 0
jne 0x42470b
mov eax, ebx
call sym._push_pthread_mem.part.0
jmp 0x42470b
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x4f3234], eax
jmp 0x424685
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x4f3234], eax
jmp 0x424714
Function at 0x426170
Capabilities:
Check mutex on windows
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov esi, dword [ebp + 8]
mov dword [esp], esi
call sym._strlen
mov ebx, eax
add eax, 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebx + 0x40]
lea ecx, [ebx + 0x30]
shr eax, 4
mov dword [ebp - 0x20], ecx
shl eax, 4
call fcn.00413740
mov edx, 0x326d
sub esp, eax
lea eax, [esp + 0x1b]
mov dword [esp + 8], ebx
lea edi, [esp + 0xc]
mov dword [esp + 4], esi
mov dword [esp], eax
mov word [esp + 0x18], dx
mov dword [esp + 0xc], 0x2d636367
mov dword [esp + 0x10], 0x656d6873
mov dword [esp + 0x14], 0x64742d6d
mov byte [esp + 0x1a], 0x2d
call sym._memcpy
lea eax, [ebx + 0x10]
add eax, edi
mov dword [eax], 0x61616161
mov dword [eax + 4], 0x61616161
mov dword [eax + 8], 0x61616161
mov dword [eax + 0xc], 0x61616161
mov dword [eax + 0x10], 0x61616161
mov dword [eax + 0x14], 0x61616161
mov dword [eax + 0x18], 0x61616161
mov dword [eax + 0x1c], 0x61616161
mov byte [esp + ebx + 0x3c], 0
mov byte [esp + ebx + 0x1b], 0
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov byte [edi + ebx + 0xf], 0x2d
sub esp, 0xc
mov dword [ebp - 0x24], eax
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
test eax, eax
je 0x426264
int3
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_FindAtomA]
sub esp, 4
test ax, ax
je 0x4262b0
mov ecx, dword [ebp - 0x1c]
movzx eax, ax
mov edx, edi
mov dword [esp], ecx
mov ecx, dword [ebp - 0x20]
call sym._get_ptr_from_atom_1
mov ebx, eax
mov edi, dword [ebp - 0x24]
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
sub esp, 4
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
add ebx, edi
mov dword [esp], eax
call sym._malloc
mov edx, 0x20
mov esi, eax
lea esi, [esi]
bt esi, edx
jae 0x4262d6
mov eax, edx
neg eax
mov byte [ebx + eax + 0x30], 0x41
sub edx, 1
jne 0x4262c8
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_AddAtomA]
sub esp, 4
test ax, ax
jne 0x4262ed
int3
mov ecx, dword [ebp - 0x1c]
movzx eax, ax
mov edx, edi
mov dword [esp], ecx
mov ecx, dword [ebp - 0x20]
call sym._get_ptr_from_atom_1
mov ebx, eax
cmp esi, eax
je 0x426313
mov dword [esp], esi
call sym._free
jmp 0x42628a
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [esp + 8], eax
call sym._memset
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x42628a
mov dword [esp], ebx
call dword [ebp + 0x10]
jmp 0x42628a
Function at 0x41d323
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41d362
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41d362
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41d362
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41d362
cmp dword [ecx + 0x74], 0xe
jbe 0x41d362
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x42f490
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42f4bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42f4bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x401996
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [0x40c010]
test eax, eax
je 0x4019d5
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4019d5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4019d5
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4019d5
cmp dword [ecx + 0x74], 0xe
jbe 0x4019d5
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x43fa7e
Capabilities:
Terminate process

Disassembly:
push ebx
xor eax, eax
push eax
push eax
call fcn.005873a0
mov dword [section..data], 0x1700189
mov dword [section..data], 0x170018a
mov dword [esp], 0
mov dword [section..data], 0x170018b
mov dword [esp + 4], 0
mov dword [section..data], 0x170018c
push dword [esp + 0x10]
push 0
push 1
call sub.KERNEL32.dll_OpenProcess
mov dword [esp], eax
mov dword [section..data], 0x170018d
mov ebx, dword [esp]
and ebx, ebx
je 0x43fb30
mov dword [section..data], 0x170018e
push 1
push dword [esp + 4]
call sub.KERNEL32.dll_TerminateProcess
and eax, eax
je 0x43fb14
mov dword [section..data], 0x170018f
mov dword [esp + 4], 1
mov dword [section..data], 0x1700190
mov dword [section..data], 0x1700191
push dword [esp]
call sub.KERNEL32.dll_CloseHandle
mov dword [section..data], 0x1700192
mov dword [section..data], 0x1700193
mov eax, dword [esp + 4]
jmp 0x43fb56
add esp, 8
pop ebx
ret 4
Function at 0x44237d
Capabilities:
Get disk information

Disassembly:
push ebp
push ebx
push edi
mov edx, 7
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x442385
call fcn.005873a0
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
mov dword [section..data], 0xa001b7
mov dword [section..data], 0xa001bd
mov dword [esp + 0x14], 1
mov dword [section..data], 0xa001c0
call sub.KERNEL32.dll_GetLogicalDrives
mov dword [esp + 4], eax
mov dword [section..data], 0xa001c2
cmp dword [esp + 4], 0
je 0x442536
mov dword [section..data], 0xa001c5
mov dword [esp + 8], 1
mov dword [section..data], 0xa001c7
mov dword [esp + 0xc], 0
jmp 0x442412
mov dword [section..data], 0xa001c7
mov eax, 0x19
cmp eax, dword [esp + 0xc]
jl 0x44252a
mov dword [section..data], 0xa001c8
mov ebx, dword [esp + 4]
mov edi, dword [esp + 0xc]
mov ecx, edi
mov eax, 1
shl eax, cl
mov edi, eax
and ebx, edi
and ebx, ebx
je 0x44250c
mov dword [section..data], 0xa001c9
push edx
call fcn.00587290
pop edx
push eax
push edx
call fcn.00587290
pop edx
push eax
mov ebx, dword [esp + 0x14]
add ebx, 0x41
push ebx
call fcn.00575c90
mov edx, 0x6e043a
push edx
call fcn.00587330
lea eax, [esp + 0x14]
push eax
call fcn.005872c0
mov dword [section..data], 0xa001cc
push dword [esp + 0x10]
call sub.KERNEL32.dll_GetDriveTypeW
mov dword [esp + 0x18], eax
mov dword [section..data], 0xa001ce
mov ebx, dword [esp + 0x18]
cmp ebx, 5
je 0x4424ba
mov dword [section..data], 0xa001d0
jmp 0x442502
mov dword [section..data], 0xa001d0
mov dword [section..data], 0xa001d3
push dword [esp]
call fcn.00576bf3
mov dword [section..data], 0xa001d4
mov edx, dword [esp + 0x10]
push edx
call fcn.00587290
pop edx
push eax
push edx
call fcn.00587330
mov eax, dword [esp + 4]
mov ebp, dword [eax + 8]
lea eax, [ebp + 8]
push eax
call fcn.005872c0
mov dword [section..data], 0xa001d6
mov dword [section..data], 0xa001d7
mov dword [section..data], 0xa001d8
inc dword [esp + 0xc]
jno 0x442408
mov dword [section..data], 0xa001d9
jmp 0x442552
mov dword [section..data], 0xa001d9
mov dword [section..data], 0xa001da
mov dword [esp + 0x14], 0
mov dword [section..data], 0xa001db
mov dword [section..data], 0xa001dd
mov eax, dword [esp + 0x14]
jmp 0x442578
push dword [esp + 0x10]
call fcn.00587410
add esp, 0x1c
pop edi
pop ebx
pop ebp
ret 4
Function at 0x442f5b
Capabilities:
Get disk size

Disassembly:
push ebx
mov edx, 7
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x442f61
call fcn.005873a0
mov edx, dword [esp + 0x24]
lea ecx, [esp]
call fcn.004fc000
mov dword [section..data], 0xa00112
mov dword [section..data], 0xa0011b
push edx
call fcn.00587290
pop edx
push eax
push edx
call fcn.00587290
pop edx
push eax
push 1
push dword [esp + 0xc]
call fcn.005752e0
mov edx, 0x6dae4c
push edx
call fcn.00587330
lea eax, [esp + 4]
push eax
call fcn.005872c0
mov dword [section..data], 0xa0011d
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0xc]
push eax
push dword [esp + 0xc]
call sub.KERNEL32.dll_GetDiskFreeSpaceExW
and eax, eax
je 0x44309c
mov dword [section..data], 0xa0011f
push dword [esp + 0x28]
mov dword [section..data], 0xa00120
xor ebx, ebx
cmp ebx, dword [esp]
jne 0x443036
mov dword [section..data], 0xa00121
lea eax, [esp + 0x10]
mov edx, dword [eax + 4]
mov eax, dword [eax]
add esp, 4
jmp 0x4430ca
mov dword [section..data], 0xa00123
mov ebx, 1
cmp ebx, dword [esp]
jne 0x44306e
mov dword [section..data], 0xa00124
lea eax, [esp + 0x18]
mov edx, dword [eax + 4]
mov eax, dword [eax]
add esp, 4
jmp 0x4430ca
mov dword [section..data], 0xa00126
mov dword [section..data], 0xa00127
mov edx, 0xffffffff
mov eax, 0xfffffffe
add esp, 4
jmp 0x4430ca
mov dword [section..data], 0xa00129
mov dword [section..data], 0xa0012b
mov edx, 0xffffffff
mov eax, 0xffffffff
jmp 0x4430ca
push edx
push dword [esp + 4]
call fcn.00587410
pop edx
add esp, 0x1c
pop ebx
ret 8
Function at 0x484f5e
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov edx, 9
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x484f64
call fcn.005873a0
mov dword [section..data], 0x9c
mov dword [section..data], 0x9e
lea eax, [esp]
push eax
call sub.KERNEL32.dll_GetNativeSystemInfo
mov dword [section..data], 0x9f
lea ebp, [esp]
cmp word [ebp], 0
je 0x484fb8
mov dword [section..data], 0xa0
mov eax, 1
jmp 0x484fce
mov dword [section..data], 0xa1
mov dword [section..data], 0xa2
xor eax, eax
add esp, 0x24
pop ebp
ret
Function at 0x4a29a7
Capabilities:
Enumerate processes

Disassembly:
push ebp
push ebx
mov edx, 0x8d
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4a29ae
call fcn.005873a0
mov dword [section..data], 0x180011d
mov dword [section..data], 0x1800126
push dword [0x6fa230]
mov edx, 0x6bb5f6
pop ecx
call fcn.004fc340
je 0x4a2bad
mov dword [section..data], 0x1800127
call sub.KERNEL32.dll_GetCurrentProcessId
mov dword [esp + 0x230], eax
mov dword [section..data], 0x1800129
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [esp + 0x22c], eax
mov dword [section..data], 0x180012a
mov ebx, dword [esp + 0x22c]
cmp ebx, 0xffffffff
je 0x4a2ba3
mov dword [section..data], 0x180012b
lea ebp, [esp]
mov dword [ebp], 0x22c
mov dword [section..data], 0x180012c
lea eax, [esp]
push eax
push dword [esp + 0x230]
call sub.KERNEL32.dll_Process32FirstW
and eax, eax
je 0x4a2adc
mov dword [section..data], 0x180012d
mov dword [section..data], 0x180012e
lea ebp, [esp]
mov ebx, dword [ebp + 8]
cmp ebx, dword [esp + 0x230]
jne 0x4a2ab2
mov dword [section..data], 0x180012f
lea ebp, [esp]
push dword [ebp + 0x18]
pop eax
mov dword [0x6fa22c], eax
mov dword [section..data], 0x1800131
jmp 0x4a2adc
mov dword [section..data], 0x1800132
mov dword [section..data], 0x1800133
lea eax, [esp]
push eax
push dword [esp + 0x230]
call sub.KERNEL32.dll_Process32NextW
mov ebx, eax
and ebx, ebx
jne 0x4a2a6d
mov dword [section..data], 0x1800134
mov dword [section..data], 0x1800136
lea eax, [esp]
push eax
push dword [esp + 0x230]
call sub.KERNEL32.dll_Process32FirstW
and eax, eax
je 0x4a2b99
mov dword [section..data], 0x1800137
mov dword [section..data], 0x1800138
lea ebp, [esp]
mov ebx, dword [ebp + 8]
cmp ebx, dword [0x6fa22c]
jne 0x4a2b6b
mov dword [section..data], 0x1800139
push edx
call fcn.00587290
pop edx
push eax
push edx
call fcn.00587290
pop edx
push eax
lea ebp, [esp + 8]
push ebp
pop ebp
lea eax, [ebp + 0x24]
push eax
call fcn.005870b0
lea eax, [0x6fa230]
push eax
call fcn.005872c0
mov dword [section..data], 0x180013b
jmp 0x4a2b99
mov dword [section..data], 0x180013c
mov dword [section..data], 0x180013d
lea eax, [esp]
push eax
push dword [esp + 0x230]
call sub.KERNEL32.dll_Process32NextW
mov ebx, eax
and ebx, ebx
jne 0x4a2b08
mov dword [section..data], 0x180013e
mov dword [section..data], 0x180013f
mov dword [section..data], 0x1800140
mov dword [section..data], 0x1800142
push edx
call fcn.00587290
pop edx
push eax
push edx
call fcn.00587290
pop edx
push eax
push dword [0x6fa230]
call fcn.005750b0
call fcn.00587380
mov edx, str.cmd.exe
pop ecx
push ecx
call fcn.004fc330
mov ecx, eax
call fcn.004fc340
je 0x4a2bfd
mov eax, 1
jmp 0x4a2bff
xor eax, eax
jmp 0x4a2c0d
add esp, 0x234
pop ebx
pop ebp
ret
Function at 0x4a2e63
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
push ebx
push edi
mov edx, 7
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4a2e6b
call fcn.005873a0
mov dword [section..data], 0x18000d5
mov dword [section..data], 0x18000d9
mov ebp, dword [esp + 0x2c]
movsx ebx, word [ebp]
and ebx, ebx
jl 0x4a2eab
mov ebp, dword [esp + 0x2c]
movsx ebx, word [ebp + 2]
and ebx, ebx
jl 0x4a2eab
jmp 0x4a2eb2
mov eax, 1
jmp 0x4a2eb4
xor eax, eax
and eax, eax
je 0x4a2ec9
mov dword [section..data], 0x18000da
xor eax, eax
jmp 0x4a2f9b
mov dword [section..data], 0x18000db
mov dword [section..data], 0x18000dd
push 0xfffffff5
call sub.KERNEL32.dll_GetStdHandle
mov dword [esp + 0x18], eax
mov dword [section..data], 0x18000de
lea eax, [esp]
push eax
push dword [esp + 0x1c]
call sub.KERNEL32.dll_GetConsoleScreenBufferInfo
mov dword [section..data], 0x18000e0
mov ebp, dword [esp + 0x2c]
movsx ebx, word [ebp + 2]
lea ebp, [esp]
cmp bx, word [ebp + 2]
jge 0x4a2f30
mov ebp, dword [esp + 0x2c]
movsx ebx, word [ebp]
lea ebp, [esp]
cmp bx, word [ebp]
jge 0x4a2f30
jmp 0x4a2f37
mov eax, 1
jmp 0x4a2f39
xor eax, eax
and eax, eax
je 0x4a2f4b
mov dword [section..data], 0x18000e1
xor eax, eax
jmp 0x4a2f9b
mov dword [section..data], 0x18000e2
mov dword [section..data], 0x18000e4
mov ebp, dword [esp + 0x2c]
movsx ebx, word [ebp]
mov ebp, dword [esp + 0x2c]
movsx edi, word [ebp + 2]
shl edi, 0x10
add ebx, edi
push ebx
push dword [esp + 0x1c]
call sub.KERNEL32.dll_SetConsoleCursorPosition
mov dword [section..data], 0x18000e6
mov eax, 1
jmp 0x4a2f9b
add esp, 0x1c
pop edi
pop ebx
pop ebp
ret 4
Function at 0x4a396f
Capabilities:
Enumerate processes

Disassembly:
push ebp
push ebx
mov edx, 0x8d
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4a3976
call fcn.005873a0
mov dword [section..data], 0x1800300
mov dword [section..data], 0x1800304
mov dword [esp], 1
mov dword [section..data], 0x1800305
mov dword [esp + 4], 0
mov dword [section..data], 0x1800308
mov dword [section..data], 0x180030a
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [esp + 4], eax
mov dword [section..data], 0x180030c
mov ebx, dword [esp + 4]
cmp ebx, 0xffffffff
jne 0x4a3a35
mov dword [section..data], 0x180030d
push 0
mov eax, str.ERROR___invalid_handle
push eax
mov eax, str._GetParentPid
push eax
mov eax, str.common_console
push eax
call fcn.0049e102
mov dword [section..data], 0x180030e
mov dword [esp], 0xfffff570
mov dword [section..data], 0x180030f
jmp 0x4a3b50
mov dword [section..data], 0x1800310
mov dword [section..data], 0x1800312
lea ebp, [esp + 8]
mov dword [ebp], 0x22c
mov dword [section..data], 0x1800314
lea eax, [esp + 8]
push eax
push dword [esp + 8]
call sub.KERNEL32.dll_Process32FirstW
and eax, eax
je 0x4a3aef
mov dword [section..data], 0x1800315
mov dword [section..data], 0x1800316
lea ebp, [esp + 8]
mov ebx, dword [ebp + 8]
cmp ebx, dword [esp + 0x240]
jne 0x4a3ab0
mov dword [section..data], 0x1800318
lea ebp, [esp + 8]
push dword [ebp + 0x18]
mov ebp, dword [esp + 0x248]
pop eax
mov dword [ebp], eax
mov dword [section..data], 0x1800319
mov dword [section..data], 0x180031a
lea eax, [esp + 8]
push eax
push dword [esp + 8]
call sub.KERNEL32.dll_Process32NextW
and eax, eax
je 0x4a3ada
xor eax, eax
jmp 0x4a3adf
mov eax, 1
and eax, eax
je 0x4a3a70
mov dword [section..data], 0x180031b
jmp 0x4a3b3c
mov dword [section..data], 0x180031b
mov dword [section..data], 0x180031c
push 0
mov eax, str.ERROR___Process32First_failed
push eax
mov eax, str._GetParentPid
push eax
mov eax, str.common_console
push eax
call fcn.0049e102
mov dword [section..data], 0x180031d
mov dword [esp], 0xfffff572
mov dword [section..data], 0x180031e
jmp 0x4a3b50
mov dword [section..data], 0x180031f
mov dword [section..data], 0x1800321
mov dword [section..data], 0x1800323
cmp dword [esp + 4], 0
je 0x4a3b74
mov dword [section..data], 0x1800324
push dword [esp + 4]
call sub.KERNEL32.dll_CloseHandle
mov dword [section..data], 0x1800325
mov dword [section..data], 0x1800327
mov eax, dword [esp]
jmp 0x4a3b99
add esp, 0x234
pop ebx
pop ebp
ret 8
Function at 0x4fc580
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0x10]
xor eax, eax
mov dword [ebp + 0xc], ecx
mov byte [ebp + 0xb], al
cmp esi, eax
jbe 0x4fc5be
lea ecx, [ecx]
mov edx, dword [ebp + 0xc]
movzx edx, byte [edx + eax]
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx + eax]
xor ecx, edx
movzx edx, byte [ebp + 0xb]
or edx, ecx
inc eax
mov byte [ebp + 0xb], dl
cmp eax, esi
jb 0x4fc5a0
mov al, byte [ebp + 0xb]
movzx eax, al
dec eax
sar eax, 8
and eax, 1
dec eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4fc620
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x20]
mov dword [0x6fcc48], eax
cmp eax, 0x10
jb 0x4fc642
cmp eax, 4
jae 0x4fc647
call fcn.004fc480
push 0x10
push 0x6fcc38
call fcn.004fcb30
add esp, 8
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4fe780
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x6f63a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push 0
push 0x20
push ebx
push esi
call fcn.0050dd00
mov al, byte [esi + 0x1f]
and byte [esi], 0xf8
and al, 0x3f
lea ecx, [ebp - 0xa4]
or al, 0x40
push esi
push ecx
mov byte [esi + 0x1f], al
call fcn.005126f0
lea edx, [ebp - 0xa4]
push edx
push edi
call fcn.0051c6b0
push 0x20
push ebx
push esi
call fcn.0054d9b0
push 0x20
push edi
add esi, 0x20
push esi
call fcn.0054d9b0
mov ecx, dword [ebp - 4]
add esp, 0x38
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0052bc5f
mov esp, ebp
pop ebp
ret
Function at 0x503f00
Capabilities:
Hash data using sha256

Disassembly:
push 0x125
mov dword [eax], 0xf3bcc908
mov dword [eax + 4], 0x6a09e667
mov dword [eax + 8], 0x84caa73b
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0xfe94f82b
mov dword [eax + 0x14], 0x3c6ef372
mov dword [eax + 0x18], 0x5f1d36f1
mov dword [eax + 0x1c], 0xa54ff53a
mov dword [eax + 0x20], 0xade682d1
mov dword [eax + 0x24], 0x510e527f
mov dword [eax + 0x28], 0x2b3e6c1f
mov dword [eax + 0x2c], 0x9b05688c
mov dword [eax + 0x30], 0xfb41bd6b
mov dword [eax + 0x34], 0x1f83d9ab
mov dword [eax + 0x38], 0x137e2179
mov dword [eax + 0x3c], 0x5be0cd19
add eax, 0x40
push 0
push eax
call fcn.00541810
add esp, 0xc
xor eax, eax
ret