joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f4a5
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
mov eax, 0x41d3a2
call sub.msvcrt.dll__EH_prolog
sub esp, 0x28
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [ebp - 4], esi
push esi
push esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
push esi
push esi
push esi
push 3
push esi
push esi
push esi
push 0xffffffffffffffff
push esi
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x18]
push eax
push 0x422928
push 1
push esi
push 0x4229f8
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push esi
push esi
push esi
push esi
push esi
push esi
push str.rootSecurityCenter2
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x40f5ac
push esi
push esi
push 3
push 3
push esi
push esi
push 0xa
push dword [ebp - 0x14]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
lea edx, [ebp - 0x1c]
push edx
push esi
push 0x20
push str.Select__From_AntiVirusProduct
push 0x421914
push eax
call dword [ecx + 0x50]
test eax, eax
js 0x40f5ac
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x1c]
cmp eax, esi
je 0x40f5a8
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 0x24]
push edx
push 1
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
cmp dword [ebp - 0x20], esi
je 0x40f5a8
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
push esi
push esi
lea edx, [ebp - 0x34]
push edx
push esi
push str.displayName
push eax
call dword [ecx + 0x10]
push dword [ebp - 0x2c]
call fcn.0040f7cd
pop ecx
push eax
mov ecx, dword [ebp + 8]
call fcn.0040e58f
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x40f5b9
or dword [ebp - 4], 0xffffffff
push str.Unknown
mov ecx, dword [ebp + 8]
call fcn.0040e58f
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40fdc7
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, 0x41e266
xor ecx, ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 6], eax
lea eax, [ebp - 0x20]
mov edx, 0x414
push eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], 3
mov word [ebp - 0x10], dx
mov dword [ebp - 0xe], ecx
mov dword [ebp - 0xa], ecx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
leave
ret
Function at 0x4100c2
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push ebx
push esi
push edi
sub esp, 0xc
mov ecx, esp
mov esi, 0x41e266
push esi
call fcn.0040e58f
sub esp, 0xc
lea eax, [ebp + 0x70]
mov ecx, esp
push eax
call fcn.0040e5c6
call fcn.004044ff
xor edi, edi
add esp, 0x18
mov ebx, eax
mov dword [ebp - 4], edx
cmp dword [ebp + 0x7c], edi
je 0x410243
push esi
lea ecx, [ebp - 0xc]
call fcn.0040e58f
push str..exe
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x18]
push 6
push eax
call fcn.0040f6c3
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x48]
push eax
push 0x41e264
lea eax, [ebp - 0x30]
push eax
push dword [0x628a38]
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0xc]
call fcn.0040e6e6
mov ecx, eax
call fcn.0040e6e6
mov ecx, eax
call fcn.0040e694
mov ecx, eax
call fcn.0040e6e6
push eax
lea ecx, [ebp - 0xc]
call fcn.0040e64d
lea ecx, [ebp - 0x3c]
call fcn.0040e5fa
lea ecx, [ebp - 0x48]
call fcn.0040e5fa
lea ecx, [ebp - 0x30]
call fcn.0040e5fa
lea ecx, [ebp - 0x24]
call fcn.0040e5fa
lea ecx, [ebp - 0x18]
call fcn.0040e5fa
push dword [0x427a38]
lea eax, [ebp - 0xc]
push 0x426038
sub esp, 0xc
mov ecx, esp
push eax
call fcn.0040e5c6
call fcn.0040fcc2
push 0x10
lea eax, [ebp - 0x58]
push edi
push eax
call sub.msvcrt.dll_memset
push 0x44
lea eax, [ebp - 0x9c]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0x2c
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x421424
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0xc]
call fcn.0040e6e6
mov ecx, eax
call fcn.0040e694
push eax
lea ecx, [ebp - 0xc]
call fcn.0040e64d
lea ecx, [ebp - 0x18]
call fcn.0040e5fa
lea ecx, [ebp - 0x24]
call fcn.0040e5fa
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x9c]
push eax
push edi
push edi
push 0x20
push 1
push edi
push edi
lea ecx, [ebp - 0xc]
call fcn.0040e778
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
lea ecx, [ebp - 0xc]
call fcn.0040e5fa
xor edi, edi
inc edi
lea ecx, [ebp + 8]
call fcn.00401301
lea ecx, [ebp + 0x70]
call fcn.0040e5fa
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
mov dword [ebp + 0x7c], edi
push esi
push ebx
push str.C:WindowsSystem32cmd.exe
call fcn.0040dd15
add esp, 0xc
cmp eax, edi
ja 0x410229
inc dword [ebp + 0x7c]
cmp dword [ebp + 0x7c], 0x64
jl 0x410246
jmp 0x41022c
Function at 0x41296a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
lea ecx, [ebp - 0x44]
call fcn.004119e7
test byte [0x63961c], 1
mov eax, dword [ebp + 0x30]
je 0x412987
mov eax, dword [ebp + 0x34]
push ebx
push esi
mov dword [ebp - 0x44], eax
push edi
lea eax, [ebp + 0x74]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040e64d
mov eax, dword [ebp + 0x84]
mov ebx, dword [ebp + 0x80]
mov dword [ebp - 0xc], eax
lea eax, [ebp + 0x38]
xor esi, esi
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call fcn.0040e64d
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x34]
call fcn.0040e64d
lea eax, [ebp + 0x18]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040e64d
mov edi, 0x3e8
jmp 0x4129e5
push edi
call dword [0x639698]
cmp dword [0x63961c], 2
jae 0x4129de
inc dword [0x63961c]
cmp dword [0x639618], esi
je 0x412a1a
push dword [ebp + 0x84]
lea ecx, [ebp + 0x74]
push ebx
call fcn.0040e778
push eax
push dword [0x639620]
call fcn.0041a321
add esp, 0x10
push esi
push esi
lea eax, [ebp - 0x44]
push eax
push 0x4118d1
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp + 8]
push 0x41e266
call fcn.0040e58f
lea ecx, [ebp - 0x44]
call fcn.00411a0e
lea ecx, [ebp + 0xc]
call fcn.00401301
lea ecx, [ebp + 0x74]
call fcn.0040e5fa
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41391c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push str._DRIVE_FIXED_
lea ecx, [ebp + 0x7c]
xor edi, edi
mov dword [ebp - 4], ebx
call fcn.0040e778
push eax
call dword [0x63979c]
xor esi, esi
inc esi
test eax, eax
je 0x41394d
mov edi, esi
push ebx
push str._DRIVE_REMOVABLE_
lea ecx, [ebp + 0x7c]
call fcn.0040e778
push eax
call dword [0x63979c]
test eax, eax
je 0x41396b
mov edi, esi
mov dword [ebp - 4], esi
cmp edi, ebx
je 0x413a78
lea eax, [ebp - 0x68]
push eax
push 0x64
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
lea esi, [ebp - 0x68]
cmp byte [ebp - 0x68], bl
je 0x413ad5
push 0x3e8
lea eax, [ebp - 0x450]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp dword [ebp - 4], ebx
je 0x4139cf
cmp eax, 2
jne 0x4139cf
lea ecx, [ebp + 0x7c]
call fcn.0040e778
push eax
lea eax, [ebp - 0x450]
push eax
call dword [0x6398b8]
push esi
push 0x421db0
jmp 0x4139eb
lea ecx, [ebp + 0x7c]
call fcn.0040e778
push eax
lea eax, [ebp - 0x450]
push eax
call dword [0x6398b8]
push esi
push 0x421da0
lea eax, [ebp - 0x450]
push eax
call fcn.0040f9e2
add esp, 0xc
push eax
lea eax, [ebp - 0x450]
push eax
call dword [0x6398b8]
push ebx
push dword [ebp + 0xa0]
lea ecx, [ebp + 0x88]
push edi
push dword [ebp + 0x98]
push ebx
push dword [ebp + 0x94]
call fcn.0040e778
push eax
lea eax, [ebp - 0x450]
push eax
lea ecx, [ebp + 0x70]
call fcn.0040e778
push eax
push 0x41e266
lea ecx, [ebp + 0xa4]
call fcn.0040e778
push eax
sub esp, 0x68
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00401324
call fcn.00413540
add esp, 0x94
push esi
call dword [0x639724]
lea esi, [esi + eax + 1]
cmp byte [esi], bl
jne 0x41398b
jmp 0x413ad5
push ebx
push dword [ebp + 0xa0]
lea ecx, [ebp + 0x88]
push ebx
push dword [ebp + 0x98]
push ebx
push dword [ebp + 0x94]
call fcn.0040e778
push eax
lea ecx, [ebp + 0x7c]
call fcn.0040e778
push eax
lea ecx, [ebp + 0x70]
call fcn.0040e778
push eax
push 0x41e266
lea ecx, [ebp + 0xa4]
call fcn.0040e778
push eax
sub esp, 0x68
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00401324
call fcn.00413540
add esp, 0x94
mov eax, dword [ebp + 0xb0]
lea ecx, [ebp + 8]
mov dword [eax], ebx
call fcn.00401301
lea ecx, [ebp + 0x70]
call fcn.0041143b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x415e38
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
leave
ret
Function at 0x417f83
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x417f91
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
not eax
mov ecx, 0xff
cmp edi, 8
jb 0x41804c
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x422180]
movzx ebx, byte [edx + 1]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x422180]
movzx ebx, byte [edx + 2]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x422180]
movzx ebx, byte [edx + 3]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x422180]
movzx ebx, byte [edx + 4]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x422180]
movzx ebx, byte [edx + 5]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x422180]
movzx ebx, byte [edx + 6]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x422180]
movzx ebx, byte [edx + 7]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x422180]
add edx, 8
sub edi, 8
dec esi
jne 0x417faf
pop ebx
test edi, edi
je 0x418065
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x422180]
inc edx
dec edi
jne 0x418050
pop edi
not eax
pop esi
pop ebp
ret

Function at 0x41806b
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
movsx edx, byte [ebp + 0xc]
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x422180]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x422180]
pop esi
mov dword [ecx + 8], eax
pop ebp
ret
Function at 0x418216
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x4c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x418239
mov eax, 0x200
jmp 0x4183c0
mov ecx, dword [ebp - 0x4c]
xor eax, eax
push ebx
xor ebx, ebx
mov edx, ecx
inc eax
and edx, eax
push esi
mov dword [ebp - 8], ebx
je 0x41824f
mov dword [ebp - 8], eax
test cl, 2
je 0x418258
or dword [ebp - 8], 2
test cl, 4
je 0x418261
or dword [ebp - 8], 4
mov eax, ecx
and eax, 0x10
je 0x41826c
or dword [ebp - 8], 0x10
test cl, 0x20
je 0x418275
or dword [ebp - 8], 0x20
cmp eax, ebx
je 0x418282
or dword [ebp - 8], 0x40000000
jmp 0x418289
or dword [ebp - 8], 0x80000000
or dword [ebp - 8], 0x1000000
cmp edx, ebx
jne 0x41829b
or dword [ebp - 8], 0x800000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
cmp eax, 0x28
jbe 0x41833c
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push ebx
push ebx
push edi
call esi
push ebx
lea eax, [ebp - 0xc]
push eax
push 2
lea eax, [ebp - 4]
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
call edi
push ebx
push ebx
push 0x24
push dword [ebp + 8]
call esi
push ebx
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call edi
mov eax, 0x54ad
cmp word [ebp - 4], ax
jne 0x41833c
mov eax, dword [ebp - 0x14]
lea ecx, [eax + 0x34]
cmp dword [ebp - 0x10], ecx
jbe 0x41833c
push ebx
push ebx
push eax
push dword [ebp + 8]
call esi
push ebx
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call edi
mov eax, dword [ebp - 0x18]
cmp eax, 0x5a4d
je 0x418335
cmp eax, 0x454e
je 0x418335
cmp eax, 0x454c
je 0x418335
cmp eax, 0x4550
jne 0x41833c
or dword [ebp - 8], 0x400000
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x418348
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x418354
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov esi, dword [ebp + 0x14]
cmp esi, ebx
je 0x418390
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
call fcn.00418199
push dword [ebp - 0x34]
mov dword [esi], eax
push dword [ebp - 0x38]
mov dword [esi + 4], edx
call fcn.00418199
push dword [ebp - 0x44]
mov dword [esi + 8], eax
push dword [ebp - 0x48]
mov dword [esi + 0xc], edx
call fcn.00418199
add esp, 0x18
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov esi, dword [ebp + 0x18]
cmp esi, ebx
je 0x4183bc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x34]
push dword [ebp - 0x38]
call fcn.004181bd
movzx eax, word [ebp - 4]
movzx ecx, word [ebp - 8]
shl eax, 0x10
add esp, 0x10
or eax, ecx
mov dword [esi], eax
pop esi
xor eax, eax
pop ebx
pop edi
leave
ret
Function at 0x41858b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
cmp byte [esi + 0x2d], 0
push edi
mov edi, dword [ebp + 0xc]
je 0x418600
mov eax, dword [esi + 0x3c]
xor ebx, ebx
cmp eax, ebx
je 0x4185b7
cmp dword [esi + 0x40], edi
jae 0x4185b7
push eax
call fcn.0040fe99
pop ecx
mov dword [esi + 0x3c], ebx
cmp dword [esi + 0x3c], ebx
jne 0x4185cc
lea eax, [edi + edi]
push eax
call fcn.0040f5d5
pop ecx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
push edi
push dword [ebp + 8]
push dword [esi + 0x3c]
call sub.msvcrt.dll_memcpy
add esp, 0xc
test edi, edi
je 0x4185fd
mov eax, dword [esi + 0x3c]
movzx eax, byte [ebx + eax]
push eax
lea eax, [esi + 0x30]
push eax
call fcn.004180d8
pop ecx
pop ecx
mov ecx, dword [esi + 0x3c]
mov byte [ebx + ecx], al
inc ebx
cmp ebx, edi
jb 0x4185df
mov edx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x41862f
mov eax, dword [esi + 0x24]
lea ebx, [eax + edi]
cmp ebx, dword [esi + 0x28]
jb 0x41861b
mov dword [esi + 0x14], 0x30000
jmp 0x418651
push edi
push edx
add eax, ecx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
add dword [esi + 0x24], edi
mov eax, edi
jmp 0x418653
mov eax, dword [esi + 4]
test eax, eax
je 0x41864a
push 0
lea ecx, [ebp + 8]
push ecx
push edi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 8]
jmp 0x418653
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x418913
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov ecx, dword [esi + 0x84]
push edi
test ecx, ecx
je 0x418969
mov eax, dword [esi + 0x8c]
mov edi, dword [esi + 0x88]
cmp eax, edi
jae 0x4189a5
sub edi, eax
cmp edi, dword [ebp + 0xc]
jbe 0x41893e
mov edi, dword [ebp + 0xc]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call sub.msvcrt.dll_memcpy
add dword [esi + 0x8c], edi
add dword [esi + 0x74], edi
push edi
push dword [ebp + 8]
push dword [esi + 0x78]
call fcn.00417f83
add esp, 0x18
mov dword [esi + 0x78], eax
mov eax, edi
jmp 0x4189a7
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x41899e
push 0
lea ecx, [ebp + 0xc]
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4189a5
mov edi, dword [ebp + 0xc]
add dword [esi + 0x74], edi
push edi
push dword [ebp + 8]
push dword [esi + 0x78]
call fcn.00417f83
add esp, 0xc
jmp 0x418962
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
pop ebp
ret 8
Function at 0x419005
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [esi + 0x6af78], edi
cmp dword [esi + 0x6af70], edi
jne 0x419032
mov dword [esi + 0x6af78], 1
mov dword [esi + 0x6af70], 0x10000
push 0x1fffc
lea eax, [esi + 0x4af70]
push edi
push eax
mov dword [esi + 0x6af6c], edi
call sub.msvcrt.dll_memset
mov ecx, dword [ebp + 0xc]
mov eax, ecx
movzx edx, word [eax*8 + 0x422132]
mov dword [esi + 0x6af98], edx
movzx edx, word [eax*8 + 0x422130]
mov dword [esi + 0x6af9c], edx
movzx edx, word [eax*8 + 0x422134]
mov dword [esi + 0x6afa0], edx
movzx eax, word [eax*8 + 0x422136]
add esp, 0xc
mov dword [esi + 0x6af94], eax
cmp ecx, 2
jg 0x419098
mov eax, dword [ebp + 0x10]
or word [eax], 4
jmp 0x4190a4
cmp ecx, 8
jl 0x4190a4
mov eax, dword [ebp + 0x10]
or word [eax], 2
push 0x10000
lea ebx, [esi + 0x1af70]
push ebx
push esi
mov dword [esi + 0x6af84], edi
mov dword [esi + 0x6af74], edi
call dword [esi + 0xc]
add esp, 0xc
mov dword [esi + 0x6af90], eax
cmp eax, edi
je 0x41910b
cmp eax, 0xffffffff
je 0x41910b
mov dword [esi + 0x6af8c], edi
cmp eax, 0x106
jae 0x4190e6
push esi
call fcn.004176a7
pop ecx
mov dword [esi + 0x6af7c], edi
xor eax, eax
movzx ecx, byte [ebx + eax]
shl edi, 5
xor edi, ecx
and edi, 0x7fff
inc eax
mov dword [esi + 0x6af7c], edi
cmp eax, 2
jb 0x4190ee
jmp 0x41911b
mov dword [esi + 0x6af8c], 1
mov dword [esi + 0x6af90], edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4196b7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x6af80], 2
cmp dword [esi + 0x6af90], ebx
je 0x4198bf
push edi
mov edi, 0x7fff
cmp dword [esi + 0x6af90], 3
jb 0x419731
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [ecx + esi + 0x1af72]
mov edx, dword [esi + 0x6af7c]
shl edx, 5
xor eax, edx
and eax, edi
mov dword [esi + 0x6af7c], eax
mov eax, dword [esi + eax*4 + 0x4af70]
and ecx, edi
mov dword [esi + ecx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af84]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x6af7c]
mov dword [esi + eax*4 + 0x4af70], ecx
cmp dword [ebp - 4], 0
je 0x419774
mov eax, dword [esi + 0x6af84]
sub eax, dword [ebp - 4]
cmp eax, 0x7efa
ja 0x419774
mov ecx, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], ecx
jbe 0x41975b
mov dword [esi + 0x6afa0], ecx
push dword [ebp - 4]
push esi
call fcn.00417563
mov ebx, eax
mov eax, dword [esi + 0x6af90]
pop ecx
pop ecx
cmp ebx, eax
jbe 0x419774
mov ebx, eax
cmp ebx, 3
jb 0x419839
lea eax, [ebx - 3]
push eax
mov eax, dword [esi + 0x6af84]
sub eax, dword [esi + 0x6af88]
push eax
push esi
call fcn.004170e8
sub dword [esi + 0x6af90], ebx
add esp, 0xc
mov dword [ebp + 8], eax
mov eax, dword [esi + 0x6af90]
cmp ebx, dword [esi + 0x6af98]
ja 0x419806
cmp eax, 3
jb 0x419806
dec ebx
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [esi + edx + 0x1af72]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
xor ecx, eax
and ecx, edi
mov dword [esi + 0x6af7c], ecx
mov ecx, dword [esi + ecx*4 + 0x4af70]
and edx, edi
dec ebx
mov dword [esi + edx*4 + 0x2af70], ecx
mov eax, dword [esi + 0x6af7c]
mov dword [ebp - 4], ecx
mov ecx, dword [esi + 0x6af84]
mov dword [esi + eax*4 + 0x4af70], ecx
jne 0x4197b4
jmp 0x41985c
add dword [esi + 0x6af84], ebx
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [edx + esi + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx edx, byte [edx + esi + 0x1af71]
shl ecx, 5
xor edx, ecx
xor ebx, ebx
and edx, edi
mov dword [esi + 0x6af7c], edx
jmp 0x419862
mov eax, dword [esi + 0x6af84]
movzx eax, byte [eax + esi + 0x1af70]
push eax
push 0
push esi
call fcn.004170e8
add esp, 0xc
dec dword [esi + 0x6af90]
mov dword [ebp + 8], eax
inc dword [esi + 0x6af84]
cmp dword [ebp + 8], 0
je 0x41989e
mov eax, dword [esi + 0x6af74]
test eax, eax
js 0x41987b
lea ecx, [eax + esi + 0x1af70]
jmp 0x41987d
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push 0
sub edx, eax
push edx
push ecx
push esi
call fcn.00419534
mov eax, dword [esi + 0x6af84]
add esp, 0x10
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x4198b1
push esi
call fcn.004176a7
pop ecx
cmp dword [esi + 0x6af90], 0
jne 0x4196e1
pop edi
mov eax, dword [esi + 0x6af74]
test eax, eax
js 0x4198d2
lea ecx, [eax + esi + 0x1af70]
jmp 0x4198d4
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push 1
sub edx, eax
push edx
push ecx
push esi
call fcn.00419534
add esp, 0x10
pop esi
pop ebx
leave
ret

Function at 0x41ad5f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x427b80]
jne 0x41ad69
repz ret
jmp fcn.0041b67b
Function at 0x41ba4b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x427b80]
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.0041b4f7
and dword [ebp - 0x14], 0
cmp dword [0x63a460], 0
mov dword [ebp - 0x18], eax
jne 0x41bafe
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41bba6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41bba6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x63a460], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x63a464], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x63a468], eax
call edi
push eax
call esi
mov dword [0x63a470], eax
test eax, eax
je 0x41bafe
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x63a46c], eax
mov eax, dword [0x63a46c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41bb57
cmp dword [0x63a470], ecx
je 0x41bb57
push eax
call esi
push dword [0x63a470]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41bb57
test ebx, ebx
je 0x41bb57
call edi
test eax, eax
je 0x41bb4e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41bb4e
test byte [ebp - 8], 1
jne 0x41bb57
or dword [ebp + 0x10], 0x200000
jmp 0x41bb8a
mov eax, dword [0x63a464]
cmp eax, dword [ebp - 0x18]
je 0x41bb8a
push eax
call esi
test eax, eax
je 0x41bb8a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41bb8a
mov eax, dword [0x63a468]
cmp eax, dword [ebp - 0x18]
je 0x41bb8a
push eax
call esi
test eax, eax
je 0x41bb8a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x63a460]
call esi
test eax, eax
je 0x41bba6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41bba8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ad5f
leave
ret