joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b661
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
call dword [sym.imp.USER32.DLL_GetFocus]
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
mov edi, eax
mov bl, pe_nt_image_headers32
test edi, edi
je 0x40b6dd
push 9
call esi
test bl, al
je 0x40b6dd
push 0x11
call esi
test bl, al
jne 0x40b6dd
push 0x10
call esi
test bl, al
jne 0x40b6dd
push 0x12
call esi
test bl, al
jne 0x40b6dd
push 5
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.USER32.DLL_GetClassNameA]
push 4
lea eax, [esp + 0x14]
push 0x41141c
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x40b6dd
push eax
push eax
push 0x44e
push edi
call dword [sym.imp.USER32.DLL_SendMessageA]
test eax, 0x800
jne 0x40b6dd
xor eax, eax
jmp 0x40b75f
push ebp
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x40b706
push 0x11
call esi
test bl, al
jne 0x40b6fe
push 0x10
call esi
test bl, al
jne 0x40b6fe
push 0x12
call esi
test bl, al
je 0x40b706
push 1
push ebp
call fcn.0040b61a
mov esi, dword [sym.imp.USER32.DLL_GetPropA]
test edi, edi
je 0x40b71c
push 0x411410
push edi
call esi
test eax, eax
jne 0x40b75c
push 0x4113a8
push ebp
call esi
mov esi, eax
test esi, esi
je 0x40b75c
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x40b75c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x10], eax
jne 0x40b75c
dec esi
push esi
push dword [0x413b08]
call fcn.0040e59a
test eax, eax
je 0x40b75c
mov eax, dword [eax + 8]
jmp 0x40b75e
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4

Function at 0x40b821
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
push edi
push 0x411468
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor edi, edi
mov dword [0x4139dc], eax
cmp eax, edi
je 0x40b854
push 0x41145c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4139e0], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [0x4139d8], 1
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40b892
cmp dword [ebp - 0xc], 1
je 0x40b8a3
cmp dword [ebp - 0xc], 2
jne 0x40b892
cmp dword [ebp - 0x18], 5
jb 0x40b8a3
jne 0x40b892
cmp dword [ebp - 0x14], edi
jne 0x40b892
mov dword [0x4139d8], edi
cmp dword [0x4139d8], edi
je 0x40b8a9
call fcn.0040b768
test eax, eax
jne 0x40b8a9
mov dword [0x4139d8], edi
pop edi
add ebp, 0x78
leave
ret

Function at 0x40c437
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
cmp dword [ebp + 8], 0
je 0x40c4a7
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strncpy
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 4], 0
call sub.MSVCRT.dll_strlen
add esp, 0x10
lea eax, [ebp + eax - 0x108]
jmp 0x40c489
mov dl, byte [eax - 1]
cmp dl, 0x20
je 0x40c488
cmp dl, 0x5c
je 0x40c488
cmp dl, 0x2f
jne 0x40c493
dec eax
lea ecx, [ebp - 0x108]
cmp eax, ecx
ja 0x40c476
mov byte [eax], 0
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x40c4a9
xor eax, eax
leave
ret 4
Function at 0x10006bb0
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x10006d41
pushal
mov esi, section.UPX1
lea edi, [esi - 0x5000]
push edi
or ebp, 0xffffffff
jmp 0x10006bda
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10006be1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10006bd0
mov eax, 1
add ebx, ebx
jne 0x10006bf3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10006be8
jne 0x10006c04
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10006be8
xor ecx, ecx
sub eax, 3
jb 0x10006c18
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x10006c8a
mov ebp, eax
add ebx, ebx
jne 0x10006c23
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x10006c30
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x10006c54
inc ecx
add ebx, ebx
jne 0x10006c40
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10006c35
jne 0x10006c51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10006c35
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x10006c74
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x10006c65
jmp 0x10006bd6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x10006c74
add edi, ecx
jmp 0x10006bd6
pop esi
mov edi, esi
mov ecx, 0x38
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x10006c92
cmp byte [edi], 0
jne 0x10006c92
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 al, bl
loop 0x10006c97
lea edi, [esi + 0x4000]
mov eax, dword [edi]
or eax, eax
je 0x10006d0f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x6000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x6078]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10006cc4
mov ecx, edi
jns 0x10006cf3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x607c]
or eax, eax
je 0x10006d09
mov dword [ebx], eax
add ebx, 4
jmp 0x10006ce1
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x10006d40
cmp al, 0xef
ja 0x10006d33
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x10006d15
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x10006d22
popal
jmp 0x10001dcd
Function at 0x10044860
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
ret

Function at 0x10044880
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
ret
Function at 0x1010368f
Capabilities:
Parse pe header

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

Function at 0x101067d0
Capabilities:
Parse pe header

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

Function at 0x10106c81
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10116b78
push 0x10116b70
push str.FlsAlloc
push 0x1f
call fcn.10106f64
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10106cb5
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x10106cbb
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10106cff
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10116b88
push 0x10116b80
push str.FlsGetValue
push 0x21
call fcn.10106f64
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10106d36
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10106d3e
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10116b90
push 0x10116b88
push str.FlsSetValue
push 0x22
call fcn.10106f64
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10106d78
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1010a936
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1010a9d3
push ebx
push esi
call fcn.1010a9d6
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1010a83a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1010a980
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1010a9d2
push edi
push eax
call fcn.10108b26
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1010a9a0
call fcn.101081c9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1010a9d1
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1010a83a
add esp, 0x20
test eax, eax
jne 0x1010a9bf
push edi
call fcn.101081c9
jmp 0x1010a9c7
push ebx
call fcn.101081c9
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x10111e74
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x10122ce8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10111eb4
cmp byte [ebx], 0xa
jne 0x10111eb4
or byte [edi + eax + 0x28], 4
jmp 0x10111eb9
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x10111fb8
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10111f9b
inc eax
cmp dl, 0xd
je 0x10111ee5
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10111f0b
cmp eax, ecx
jae 0x10111f19
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x10111ecd
jmp 0x10111fb8
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10111f96
cmp dword [ebp - 0x10], 0
je 0x10111f96
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10122ce8]
test byte [eax + edi + 0x28], 0x48
je 0x10111f70
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10111f5b
mov byte [esi], dl
jmp 0x10111f6c
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10122ce8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10111fb8
cmp byte [ebp - 1], 0xa
jne 0x10111f7f
cmp esi, ebx
jne 0x10111f7f
mov byte [esi], 0xa
jmp 0x10111fb7
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10111598
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10111fb8
mov byte [esi], 0xd
jmp 0x10111fb7
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10122ce8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10111fb5
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10111fb8
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10111fc1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x10122ce8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10112007
cmp word [ebx], dx
jne 0x10112007
or byte [eax + edi + 0x28], 4
jmp 0x1011200c
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x1011216f
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x1011214f
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1011204d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10112083
cmp eax, edx
jae 0x10112091
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x10112028
jmp 0x1011216f
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1011214a
cmp dword [ebp - 0x18], 0
je 0x1011214a
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10122ce8]
test byte [eax + edi + 0x28], 0x48
je 0x10112120
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x101120e4
mov word [esi], cx
jmp 0x1011211b
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10122ce8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x10122ce8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10122ce8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1011216f
pop eax
cmp word [ebp - 4], ax
jne 0x10112130
cmp esi, ebx
jne 0x10112130
mov word [esi], ax
jmp 0x1011216c
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10111598
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1011216f
push 0xd
pop eax
jmp 0x1011212b
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10122ce8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10112169
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1011216f
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x101130b8
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1011324f
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10113227
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10113227
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x101131dc
jg 0x10113114
test eax, eax
je 0x101131d2
push 1
push 0x1000
call fcn.101089de
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10113137
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x101131c9
push 0x8000
push ebx
call fcn.10110737
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10113160
jg 0x1011315b
cmp ecx, 0x1000
jb 0x10113160
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1010d032
add esp, 0x10
cmp eax, 0xffffffff
je 0x101131a5
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1011315b
jl 0x1011318c
test ecx, ecx
jne 0x1011314d
push dword [ebp - 0xc]
push ebx
call fcn.10110737
push esi
call fcn.101081c9
add esp, 0xc
xor ebx, ebx
jmp 0x10113235
cmp byte [edi + 0x24], 0
je 0x101131bc
cmp dword [edi + 0x20], 5
jne 0x101131bc
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x101131c7
mov ebx, dword [edi + 0x18]
jmp 0x101131c9
xor ebx, ebx
push esi
call fcn.101081c9
pop ecx
jmp 0x10113235
test ecx, ecx
jg 0x1011319e
jl 0x101131dc
test eax, eax
jae 0x1011319e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10111598
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x101131fc
cmp byte [edi + 0x1c], 0
je 0x1011319e
jmp 0x1011322d
push ebx
call fcn.1010c740
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1011319e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10113235
cmp byte [edi + 0x1c], 0
je 0x10113232
mov ebx, dword [edi + 0x18]
jmp 0x10113235
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10111598
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4016b9
Capabilities:
Clear file content
Get common file path
Get keyboard layout

Disassembly:
sub esp, 0x400
push esi
push edi
xor esi, esi
xor edi, edi
cmp edi, 0xaca
jge 0x4016d4
push esi
call dword [sym.imp.USER32.dll_GetSysColorBrush]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp edi, 0x45be4d9
jg 0x4016ee
inc edi
cmp edi, 0x332fe31
jl 0x4016c5
cmp dword [0x20a4a4c], 0x400
jne 0x401753
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
push esi
push esi
call dword [sym.imp.USER32.dll_SetCursorPos]
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push esi
call fcn.00401cc2
call fcn.00401b51
push esi
call fcn.0040217a
push esi
call fcn.00401fda
pop ecx
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00401ec0
fstp st(0)
mov eax, esp
mov dword [eax], esi
push ecx
mov dword [eax + 4], esi
push ecx
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00401b90
fstp st(0)
add esp, 0x10
xor edi, edi
cmp edi, 0xd036
jge 0x401765
push esi
push esi
call dword [sym.imp.USER32.dll_SetCaretPos]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_LocalCompact]
cmp edi, 0xd2ced2
jg 0x40178b
inc edi
cmp edi, 0x263ff
jl 0x401755
mov eax, dword [0x457da4]
mov dword [0x20a4a4c], eax
call fcn.0040143c
mov edi, 0x3078f
cmp dword [0x20a4a4c], 0x51f
jne 0x4017b7
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
dec edi
jne 0x40179f
pop edi
xor eax, eax
pop esi
add esp, 0x400
ret 0x10

Function at 0x405860
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43d440]
jne 0x40586a
repz ret
jmp fcn.0040858a
Function at 0x406fe5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43d440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00404a88
and dword [ebp - 0x14], 0
cmp dword [0x4628c8], 0
mov dword [ebp - 0x18], eax
jne 0x407098
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x407140
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x407140
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4628c8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4628cc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4628d0], eax
call edi
push eax
call esi
mov dword [0x4628d8], eax
test eax, eax
je 0x407098
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4628d4], eax
mov eax, dword [0x4628d4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4070f1
cmp dword [0x4628d8], ecx
je 0x4070f1
push eax
call esi
push dword [0x4628d8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4070f1
test ebx, ebx
je 0x4070f1
call edi
test eax, eax
je 0x4070e8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4070e8
test byte [ebp - 8], 1
jne 0x4070f1
or dword [ebp + 0x10], 0x200000
jmp 0x407124
mov eax, dword [0x4628cc]
cmp eax, dword [ebp - 0x18]
je 0x407124
push eax
call esi
test eax, eax
je 0x407124
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x407124
mov eax, dword [0x4628d0]
cmp eax, dword [ebp - 0x18]
je 0x407124
push eax
call esi
test eax, eax
je 0x407124
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4628c8]
call esi
test eax, eax
je 0x407140
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x407142
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405860
leave
ret
Function at 0x401000
Capabilities:
Create process on windows

Disassembly:
push esi
push edi
push 0x409
push 1
push 0x50
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
push str.Peacock
call fcn.0040108d
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteA]
add esp, 4
push 9
push 0
push 0
push str.Start_Server.cmd
push str.runas
push 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call edi
push 9
push 0
push 0
push str.PeacockPatcher.exe
push str.runas
push 0
call esi
push 0x3e8
call edi
push 0x407868
call fcn.0040108d
add esp, 4
push 9
push 0
push 0
push str.steamclient_loader_x64.exe
push str.runas
push 0
call esi
pop edi
xor eax, eax
pop esi
ret

Function at 0x4017c8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x409178]
jne 0x4017d2
repz ret
jmp fcn.00403a9a

Function at 0x40432b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x409178]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004024c3
and dword [ebp - 0x14], 0
cmp dword [0x40a760], 0
mov dword [ebp - 0x18], eax
jne 0x4043de
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x404486
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x404486
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40a760], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40a764], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40a768], eax
call edi
push eax
call esi
mov dword [0x40a770], eax
test eax, eax
je 0x4043de
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40a76c], eax
mov eax, dword [0x40a76c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x404437
cmp dword [0x40a770], ecx
je 0x404437
push eax
call esi
push dword [0x40a770]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x404437
test ebx, ebx
je 0x404437
call edi
test eax, eax
je 0x40442e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40442e
test byte [ebp - 8], 1
jne 0x404437
or dword [ebp + 0x10], 0x200000
jmp 0x40446a
mov eax, dword [0x40a764]
cmp eax, dword [ebp - 0x18]
je 0x40446a
push eax
call esi
test eax, eax
je 0x40446a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40446a
mov eax, dword [0x40a768]
cmp eax, dword [ebp - 0x18]
je 0x40446a
push eax
call esi
test eax, eax
je 0x40446a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40a760]
call esi
test eax, eax
je 0x404486
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x404488
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004017c8
leave
ret