joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e6e2c
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4e6f3d
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
mov word [ebp - 0xc], 0x3d
movzx eax, word [ebp - 4]
dec eax
add ax, 0x41
mov word [ebp - 0xa], ax
mov word [ebp - 8], 0x3a
mov word [ebp - 6], 0
xor ebx, ebx
lea eax, [ebp - 0xc]
call fcn.004d5e10
mov esi, eax
test esi, esi
je 0x4e6e8e
push esi
call sub.kernel32.dll_SetCurrentDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x4e6f18
test esi, esi
je 0x4e6ea3
push 1
call sub.kernel32.dll_SetErrorMode
mov edi, eax
movzx eax, word [ebp - 0xa]
mov word [ebp - 0x216], ax
movzx eax, word [ebp - 8]
mov word [ebp - 0x214], ax
mov word [ebp - 0x212], 0x5c
mov word [ebp - 0x210], 0
lea edx, [ebp - 0x216]
lea eax, [ebp - 0xc]
call fcn.004d6098
lea eax, [ebp - 0x216]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
test eax, eax
jne 0x4e6f0e
push 0xffffffffffffffff
lea edx, [ebp - 0x21c]
mov eax, dword [0x4f0f04]
call fcn.0040d7c0
mov eax, dword [ebp - 0x21c]
lea ecx, [ebp - 0x21c]
xor edx, edx
call fcn.004e6fc4
test esi, esi
je 0x4e6f18
push edi
call sub.kernel32.dll_SetErrorMode
mov eax, dword [0x4f1398]
xor edx, edx
call fcn.004d7e34
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e6f44
lea eax, [ebp - 0x21c]
call fcn.00409e68
ret
Function at 0x4e71ac
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe0
mov dword [esp + 4], ecx
mov esi, edx
mov dword [esp], eax
mov dword [esp + 0x1c], 0xffffffff
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0xc
mov eax, 3
and eax, esi
cmp eax, 2
ja 0x4e71f0
mov edx, 1
and edx, esi
mov ecx, 8
and ecx, esi
and edx, ecx
je 0x4e71f8
or eax, 0xffffffff
jmp 0x4e73cd
test eax, eax
je 0x4e7221
mov edi, 0x40000000
mov edx, 0x4e73d8
mov eax, dword [esp]
call fcn.0041ea44
test eax, eax
je 0x4e721a
mov dword [esp + 4], 1
mov ebp, 2
jmp 0x4e722b
mov edi, 0x80000000
mov ebp, 3
cmp esi, 0x10a
jne 0x4e72ac
push 0
push 0x80
push 3
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x14]
push eax
mov eax, 0x80000000
or eax, edi
push eax
mov eax, dword [esp + 0x18]
push eax
call sub.kernel32.dll_CreateFileW_1
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4e72f5
push 0
push 0x80
push ebp
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x14]
push eax
push edi
mov eax, dword [esp + 0x18]
push eax
call sub.kernel32.dll_CreateFileW_1
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4e72f5
call sub.kernel32.dll_GetLastError_2
mov dword [0x4f0a20], eax
cmp dword [0x4f0a20], 0x6e
jne 0x4e72a4
mov dword [0x4f0a20], 2
or eax, 0xffffffff
jmp 0x4e73cd
push 0
push 0x80
push ebp
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x14]
push eax
push edi
mov eax, dword [esp + 0x18]
push eax
call sub.kernel32.dll_CreateFileW_1
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4e72f5
call sub.kernel32.dll_GetLastError_2
mov dword [0x4f0a20], eax
cmp dword [0x4f0a20], 0x6e
jne 0x4e72ed
mov dword [0x4f0a20], 2
or eax, 0xffffffff
jmp 0x4e73cd
push 8
push ebx
call sub.msvcrt.dll__open_osfhandle
add esp, 8
mov edi, eax
test esi, 8
je 0x4e73c4
mov eax, edi
call fcn.004d7d14
test eax, eax
jne 0x4e73c4
push 0
push ebx
call sub.kernel32.dll_GetFileSize_1
test eax, eax
je 0x4e73c4
mov word [esp + 8], 0
mov dword [esp + 0x10], 0xffffffff
push 2
lea eax, [esp + 0x14]
push eax
push 0xffffffffffffffff
push ebx
call sub.kernel32.dll_SetFilePointer_1
mov ebp, eax
call sub.kernel32.dll_GetLastError_2
mov dword [0x4f0a20], eax
cmp ebp, 0xffffffff
jne 0x4e7376
cmp dword [0x4f0a20], 0
je 0x4e7376
cmp edi, 0xffffffff
je 0x4e7371
push edi
call sub.msvcrt.dll__close
pop ecx
or eax, 0xffffffff
jmp 0x4e73cd
push 0
lea eax, [esp + 0x10]
push eax
push 1
lea eax, [esp + 0x14]
push eax
push ebx
call sub.kernel32.dll_ReadFile_1
mov ebp, eax
test ebp, ebp
jne 0x4e73a5
xor eax, eax
mov dword [esp + 0x10], eax
push 2
lea eax, [esp + 0x14]
push eax
push 0
push ebx
call sub.kernel32.dll_SetFilePointer_1
cmp word [esp + 8], 0x1a
jne 0x4e73c4
mov dword [esp + 0x10], 0xffffffff
push 2
lea eax, [esp + 0x14]
push eax
push 0xffffffffffffffff
push ebx
call sub.kernel32.dll_SetFilePointer_1
mov eax, edi
call fcn.004e74f0
mov eax, edi
add esp, 0x20
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4e775c
Capabilities:
Get disk information

Disassembly:
add esp, 0xfffffff8
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0x5c
mov word [esp + 6], 0
push esp
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 1
ja 0x4e7788
xor eax, eax
pop ecx
pop edx
ret
mov al, 1
pop ecx
pop edx
ret

Function at 0x4e7790
Capabilities:
Get disk information

Disassembly:
add esp, 0xfffffddc
mov word [esp + 8], ax
mov word [esp + 0xa], 0x3a
mov word [esp + 0xc], 0x5c
mov word [esp + 0xe], 0
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 1
ja 0x4e77c3
mov al, 1
jmp 0x4e7808
cmp eax, 2
je 0x4e7806
cmp eax, 5
je 0x4e7806
push 0
push 0
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x10]
push eax
push 0x104
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x24]
push eax
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
jne 0x4e7806
call sub.kernel32.dll_GetLastError_2
cmp eax, 5
jne 0x4e7806
mov al, 1
jmp 0x4e7808
xor eax, eax
add esp, 0x224
ret

Function at 0x4e7ce0
Capabilities:
Set console window title

Disassembly:
push ebx
push esi
push ecx
mov ebx, eax
test ebx, ebx
je 0x4e7db2
mov eax, dword [0x4f0fb4]
cmp dword [eax], 0
jne 0x4e7db2
mov eax, dword [0x4f0e68]
cmp byte [eax], 0
jne 0x4e7db2
mov eax, 0x20c
call fcn.004066cc
mov dword [esp], eax
cmp dword [esp], 0
je 0x4e7db2
push 0x104
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_GetConsoleTitleW
mov esi, eax
test esi, esi
je 0x4e7db2
mov eax, ebx
call fcn.004d40f0
add eax, esi
add eax, dword [0x50aa80]
add eax, 0xa
mov edx, eax
add edx, edx
mov eax, esp
call fcn.00406700
cmp dword [esp], 0
je 0x4e7db2
mov eax, dword [0x4f107c]
cmp byte [eax], 0
je 0x4e7d75
mov eax, dword [0x50aa80]
add eax, eax
add eax, dword [esp]
mov edx, ebx
call fcn.004d4100
jmp 0x4e7da1
mov edx, 0x4e7db8
mov eax, dword [esp]
call fcn.004d4114
mov eax, dword [esp]
call fcn.004d40f0
mov dword [0x50aa80], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.004d4114
mov eax, dword [0x4f107c]
mov byte [eax], 1
mov eax, dword [esp]
push eax
call sub.kernel32.dll_SetConsoleTitleW
mov eax, dword [esp]
call fcn.004066e8
pop edx
pop esi
pop ebx
ret
Function at 0x4e834c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov dword [esp + 4], edx
mov dword [esp], eax
mov edi, dword [esp]
movzx edi, word [edi]
mov eax, dword [esp]
movzx eax, word [eax + 2]
mov word [esp + 8], ax
mov eax, dword [esp]
movzx eax, word [eax + 4]
mov word [esp + 0xa], ax
mov ebp, dword [esp]
movzx ebp, word [ebp + 6]
mov ebx, dword [esp + 4]
mov dword [esp + 0xc], 8
movzx edx, word [ebx]
mov eax, edi
call fcn.004e8308
mov edi, eax
add ebx, 2
movzx eax, word [ebx]
add word [esp + 8], ax
add ebx, 2
movzx eax, word [ebx]
add word [esp + 0xa], ax
add ebx, 2
movzx edx, word [ebx]
mov eax, ebp
call fcn.004e8308
mov ebp, eax
add ebx, 2
mov esi, edi
xor si, word [esp + 0xa]
movzx edx, word [ebx]
mov eax, esi
call fcn.004e8308
mov esi, eax
add ebx, 2
movzx eax, word [esp + 8]
xor ax, bp
add ax, si
movzx edx, word [ebx]
call fcn.004e8308
add ebx, 2
add si, ax
xor di, ax
xor bp, si
xor si, word [esp + 8]
xor ax, word [esp + 0xa]
mov word [esp + 8], ax
mov word [esp + 0xa], si
dec dword [esp + 0xc]
jne 0x4e838b
movzx edx, word [ebx]
mov eax, edi
call fcn.004e8308
mov edi, eax
add ebx, 2
mov eax, dword [esp]
mov word [eax], di
movzx eax, word [esp + 0xa]
add ax, word [ebx]
mov edx, dword [esp]
mov word [edx + 2], ax
add ebx, 2
movzx eax, word [esp + 8]
add ax, word [ebx]
mov edx, dword [esp]
mov word [edx + 4], ax
add ebx, 2
movzx edx, word [ebx]
mov eax, ebp
call fcn.004e8308
mov ebp, eax
mov eax, dword [esp]
mov word [eax + 6], bp
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4e8788
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
add esp, 0xfffffdf4
mov esi, eax
xor ebx, ebx
mov dword [esp + 4], 0xff
push esp
push 0x20019
push 0
push 0x4e8840
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x4e8820
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x10]
push eax
push 0
push 0x4e8880
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x4e87df
mov bl, 1
jmp 0x4e8820
push esp
push 0x20119
push 0
push 0x4e8840
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x4e8820
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x10]
push eax
push 0
push 0x4e8880
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x4e8820
mov bl, 1
test bl, bl
je 0x4e8834
mov eax, esi
lea edx, [esp + 0xc]
mov ecx, pe_nt_image_headers32
call fcn.0040aa64
add esp, 0x20c
pop esi
pop ebx
ret
Function at 0x4e8898
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov byte [ebp - 5], cl
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00409f4c
xor eax, eax
push ebp
push 0x4e8a65
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 6], 0
push 0x4e8a78
call sub.kernel32.dll_LoadLibraryW
mov edi, eax
mov dword [ebx + 0x34], edi
push 5
mov eax, dword [ebp - 4]
call fcn.0040a9c0
push eax
push edi
call sub.kernel32.dll_FindResourceW
mov esi, eax
mov dword [ebx + 4], esi
test esi, esi
je 0x4e8a47
push esi
mov eax, dword [ebx + 0x34]
push eax
call sub.kernel32.dll_LoadResource
mov edi, eax
mov dword [ebx + 8], edi
test edi, edi
je 0x4e8a47
lea eax, [ebp - 0xc]
call fcn.004e8788
mov eax, dword [ebp - 0xc]
call fcn.004e824c
call fcn.004e8240
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_LockResource
mov dword [ebx + 0xc], eax
mov eax, dword [ebx + 4]
push eax
mov eax, dword [ebx + 0x34]
push eax
call sub.kernel32.dll_SizeofResource
xor edx, edx
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], edx
cmp byte [ebp - 5], 0
je 0x4e89ee
mov eax, dword [ebx + 0x28]
call fcn.004066cc
mov dword [ebx + 0x38], eax
mov eax, dword [ebx + 0xc]
mov dword [ebx + 0x10], eax
mov eax, dword [ebx + 0x38]
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
jmp 0x4e89ab
lea edx, [ebx + 0x18]
mov eax, dword [ebx + 0x10]
mov ecx, 8
call fcn.00406870
lea eax, [ebx + 0x18]
call fcn.004e8468
mov edx, dword [ebx + 0x14]
lea eax, [ebx + 0x18]
mov ecx, 8
call fcn.00406870
add dword [ebx + 0x20], 8
adc dword [ebx + 0x24], 0
add dword [ebx + 0x10], 8
add dword [ebx + 0x14], 8
mov eax, dword [ebx + 0x28]
mov edx, dword [ebx + 0x2c]
sub eax, dword [ebx + 0x20]
sbb edx, dword [ebx + 0x24]
cmp edx, 0
jne 0x4e89c3
cmp eax, 8
jae 0x4e8973
jmp 0x4e89c5
jge 0x4e8973
call fcn.004e82fc
mov eax, dword [ebx + 0x28]
mov ecx, eax
add ecx, dword [ebx + 0x38]
dec ecx
mov dword [ebx + 0x10], ecx
movzx eax, byte [ecx]
mov byte [ebx + 0x30], al
mov byte [ebp - 6], 1
movzx eax, al
mov edx, dword [ebx + 0x28]
sub edx, eax
dec edx
mov dword [ebx + 0x3c], edx
jmp 0x4e8a12
mov eax, dword [ebx + 0x28]
call fcn.004066cc
mov esi, eax
mov dword [ebx + 0x38], esi
mov edx, esi
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x28]
call fcn.00406870
mov byte [ebp - 6], 1
mov eax, dword [ebx + 0x28]
mov dword [ebx + 0x3c], eax
push 0xff00
mov ecx, 0x4e8aa8
mov dl, 1
mov eax, dword [0x489938]
call fcn.004a6134
mov esi, eax
mov edx, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x3c]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x10]
mov eax, esi
call fcn.004085b4
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_FreeResource
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e8a6c
lea eax, [ebp - 0xc]
call fcn.00409e68
lea eax, [ebp - 4]
call fcn.00409e68
ret
Function at 0x40f080
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40b015
lea edi, [esi - 0xa015]
push edi
or ebp, 0xffffffff
jmp 0x40f0a2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40f0a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40f098
mov eax, 1
add ebx, ebx
jne 0x40f0bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40f0b0
jne 0x40f0cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f0b0
xor ecx, ecx
sub eax, 3
jb 0x40f0e0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40f152
mov ebp, eax
add ebx, ebx
jne 0x40f0eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40f0f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40f11c
inc ecx
add ebx, ebx
jne 0x40f108
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40f0fd
jne 0x40f119
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f0fd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40f13c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40f12d
jmp 0x40f09e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40f13c
add edi, ecx
jmp 0x40f09e
pop esi
mov edi, esi
mov ecx, 0x265
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40f15a
cmp byte [edi], 2
jne 0x40f15a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x40f15f
lea edi, [esi + 0xd000]
mov eax, dword [edi]
or eax, eax
je 0x40f1ce
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xf000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xf064]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40f18c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xf068]
or eax, eax
je 0x40f1c8
mov dword [ebx], eax
add ebx, 4
jmp 0x40f1a9
call dword [esi + 0xf06c]
popal
jmp 0x40354a

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0xb6f0b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00b6f200
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xb6f0d6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb6f0c2
add dl, dl
jne 0xb6f0e1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb6f134
xor eax, eax
add dl, dl
jne 0xb6f0ee
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb6f1d5
add dl, dl
jne 0xb6f0fd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb6f108
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb6f113
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb6f11e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xb6f12a
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xb6f0cd
mov eax, 1
add dl, dl
jne 0xb6f142
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb6f14d
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb6f139
sub eax, ebx
mov ebx, 1
jne 0xb6f180
mov ecx, 1
add dl, dl
jne 0xb6f166
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb6f171
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb6f15d
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb6f0cd
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xb6f197
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb6f1a2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb6f18e
cmp eax, 0x7d00
jae 0xb6f1c5
cmp eax, 0x500
jb 0xb6f1c0
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb6f0cd
cmp eax, 0x7f
ja 0xb6f1c8
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb6f0cd
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xb6f1f6
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xb6f0cd
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x77b1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.0077b140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.0077b140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.0077b140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.0077b140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x77bbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x77bc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x78d87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x77bc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x77bc52
xor eax, eax
pop esi
leave
ret 4
Function at 0x401940
Capabilities:
Check mutex on windows
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push str._RunProcess2023_
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
jne 0x401a4d
push str._RunProcess2023_
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
je 0x401a4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x401a4d
push esi
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
push edi
mov edi, dword [ebp + 8]
push 0x64
push 0x418388
push 0x67
push edi
call esi
push 0x64
push 0x4183f0
push 0x6d
push edi
call esi
push edi
call fcn.00401060
add esp, 4
push 0
push 0
push 0
push 0x4010e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x418384], eax
test eax, eax
je 0x4019e2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x418384], 0
push 0x6d
push edi
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
mov dword [ebp + 8], eax
lea eax, [ebp - 0x1c]
push 0
push eax
call esi
test eax, eax
je 0x401a42
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x401a31
lea eax, [ebp - 0x1c]
push eax
call edi
lea eax, [ebp - 0x1c]
push eax
call ebx
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call esi
test eax, eax
jne 0x401a11
pop ebx
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40c195
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x417010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00408293
mov dword [ebp - 0x14], eax
cmp dword [0x41922c], esi
jne 0x40c288
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40c215
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40c368
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40c368
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c368
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x41922c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x419230], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x419234], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x41923c], eax
test eax, eax
je 0x40c285
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x419238], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40c2ad
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40c2a0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40c2c2
push 4
pop eax
jmp 0x40c36a
cmp dword [ebp - 0x14], esi
je 0x40c2c2
push dword [0x41922c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40c2a7
mov eax, dword [0x419238]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40c320
cmp dword [0x41923c], edi
je 0x40c320
push eax
call ebx
push dword [0x41923c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40c320
test eax, eax
je 0x40c320
call ecx
test eax, eax
je 0x40c315
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40c315
test byte [ebp - 8], 1
jne 0x40c320
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40c350
mov eax, dword [0x419230]
cmp eax, edi
je 0x40c34d
push eax
call ebx
test eax, eax
je 0x40c34d
call eax
mov esi, eax
test esi, esi
je 0x40c34d
mov eax, dword [0x419234]
cmp eax, edi
je 0x40c34d
push eax
call ebx
test eax, eax
je 0x40c34d
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x41922c]
call ebx
test eax, eax
je 0x40c368
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40c36a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004025cd
mov esp, ebp
pop ebp
ret