joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47d0b4
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push 0x64
mov eax, 0x50585b
call fcn.004ec766
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x68], ebx
mov dword [ebp - 4], ebx
push 8
pop ecx
mov esi, str.0123456789abcdef
lea edi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
xor eax, eax
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
movsw word es:[edi], word [esi]
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], ebx
mov word [ebp - 0x5c], ax
push 0xf0000000
xor edi, edi
inc edi
push edi
push ebx
push ebx
lea eax, [ebp - 0x70]
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x47d12b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x64]
push 0x525140
call fcn.004076aa
jmp 0x47d1fb
lea eax, [ebp - 0x6c]
push eax
push ebx
push ebx
push 0x8003
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x47d155
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x47d119
cmp dword [ebp + 0x24], 8
mov eax, dword [ebp + 0x10]
jae 0x47d161
lea eax, [ebp + 0x10]
mov ecx, dword [ebp + 0x20]
push ebx
add ecx, ecx
push ecx
push eax
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push ebx
test eax, eax
jne 0x47d18b
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x47d119
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x20]
push eax
push 2
push dword [ebp - 0x6c]
mov dword [ebp - 0x68], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x47d1ce
xor esi, esi
cmp dword [ebp - 0x68], ebx
jbe 0x47d1dc
movzx eax, byte [ebp + esi - 0x20]
and eax, 0xf
movzx eax, word [ebp + eax*2 - 0x44]
push eax
lea eax, [ebp - 0x60]
call fcn.004227af
inc esi
cmp esi, dword [ebp - 0x68]
jb 0x47d1b0
jmp 0x47d1dc
push 0x525140
lea eax, [ebp - 0x60]
push eax
call fcn.00407685
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push ebx
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov esi, dword [ebp - 0x64]
lea eax, [ebp - 0x60]
push eax
call fcn.00405639
push ebx
push edi
lea esi, [ebp - 0x60]
call fcn.0040754f
push ebx
push edi
lea esi, [ebp + 0xc]
call fcn.0040754f
mov eax, dword [ebp - 0x64]
call fcn.004ec7e9
ret
Function at 0x485f66
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50d2dd
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x571268]
xor eax, esp
mov dword [esp + 0x240], eax
push ebx
push esi
push edi
mov eax, dword [0x571268]
xor eax, esp
push eax
lea eax, [esp + 0x258]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
xor eax, eax
mov dword [esp + 0x260], ebx
push str.SoftwareMicrosoftInternet_Explorer
mov word [esp + 0x48], ax
push reloc.OLEAUT32.dll_SysReAllocString
mov eax, 0x20019
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], 0x104
call fcn.00411b36
cmp eax, ebx
jne 0x486002
push str.Version
lea eax, [esp + 0x18]
push eax
lea esi, [esp + 0x18]
lea edi, [esp + 0x4c]
call fcn.00412630
lea esi, [esp + 0x14]
call fcn.00411b1f
lea eax, [esp + 0x44]
push eax
call fcn.004e87c6
pop ecx
mov dword [esp + 0x10], eax
cmp eax, 9
jne 0x4860e7
lea eax, [esp + 0x28]
push str.ProgramFiles
push eax
call fcn.0041f51b
pop ecx
pop ecx
push str.Internet_Exploreriexplore.exe
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0x268], 1
call fcn.0040512d
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x24], ebx
jae 0x486055
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x24]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
jbe 0x4860db
push esi
call fcn.004e63c0
mov edi, eax
pop ecx
cmp edi, ebx
je 0x4860db
push esi
push ebx
push edi
call fcn.004ef370
mov eax, dword [esp + 0x38]
add esp, 0xc
cmp dword [esp + 0x40], 8
jae 0x48608d
lea eax, [esp + 0x2c]
push edi
push esi
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4860d4
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
push 0x524c94
push edi
mov dword [esp + 0x30], 0x104
mov dword [esp + 0x2c], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4860d4
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x4860d4
movzx eax, word [eax + 0xa]
cmp eax, 9
jle 0x4860d4
mov dword [esp + 0x10], eax
push edi
call fcn.004e7ea6
pop ecx
push ebx
push 1
lea esi, [esp + 0x30]
call fcn.0040754f
lea esi, [esp + 0x14]
call fcn.00411b1f
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.004e6e1c
mov esp, ebp
pop ebp
ret

Function at 0x493f7c
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp dword [esp + 4], eax
jle 0x493fa5
push esi
movzx edx, byte [ecx]
movzx edx, byte [edx + 0x539468]
mov esi, eax
shl esi, 3
xor edx, esi
xor eax, edx
inc ecx
dec dword [esp + 8]
cmp dword [esp + 8], 0
jg 0x493f85
pop esi
ret
Function at 0x49458a
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x20]
push esi
push edi
test eax, eax
je 0x4945ca
cdq
mov esi, eax
add eax, dword [ebp + 0xc]
mov edi, edx
mov ecx, edx
adc ecx, dword [ebp + 0x10]
push edi
sub eax, 1
push esi
sbb ecx, 0
push ecx
push eax
call fcn.004f6110
push edi
push esi
push edx
push eax
call fcn.004faa00
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], edx
push dword [ebp + 0x10]
mov edi, ebx
push dword [ebp + 0xc]
call fcn.0049442b
pop ecx
pop ecx
test eax, eax
jne 0x4945f3
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4945fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x10], eax
mov dword [ebp - 4], 0x60a
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x494626
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp + 8]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x494656
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x494656
mov dword [esi + 0x10], eax
mov eax, 0x70a
jmp 0x494676
push 1
push 0
push 0
push dword [ebp + 8]
call fcn.004faa00
mov ecx, eax
xor eax, eax
add ecx, edi
adc edx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov dword [eax + 4], edx
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x495062
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
mov eax, dword [0x571268]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x575130]
push ebx
push esi
test eax, eax
je 0x49509c
push eax
push 0x5429b4
lea eax, [ebp - 0x110]
push eax
push 0xe6
call fcn.00492c7b
add esp, 0x10
jmp 0x495114
call fcn.00494242
mov esi, 0xe6
test eax, eax
je 0x4950dc
lea eax, [ebp - 0x318]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x318]
push eax
call fcn.004942ef
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x4950f8
push 7
pop eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004e6e1c
leave
ret
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x218]
push eax
call fcn.004943b0
jmp 0x4950c4
push ebx
push 0x5429b4
lea eax, [ebp - 0x110]
push eax
push esi
call fcn.00492c7b
push ebx
call fcn.004e735e
add esp, 0x14
mov ecx, str.etilqs_
call fcn.0049341f
lea ecx, [ebp - 0x110]
mov edx, eax
call fcn.0049341f
lea eax, [edx + eax + 0x11]
cmp eax, 0x105
jl 0x49513b
xor eax, eax
inc eax
jmp 0x4950ce
lea ecx, [ebp - 0x110]
call fcn.0049341f
test eax, eax
jbe 0x495154
dec ecx
cmp byte [ecx + eax], 0x5c
jne 0x495154
dec eax
jne 0x49514b
mov byte [ebp + eax - 0x110], 0
lea eax, [ebp - 0x110]
push eax
push str._setilqs_
push edi
push 0xf4
call fcn.00492c7b
mov ecx, edi
call fcn.0049341f
mov esi, eax
lea eax, [edi + esi]
push eax
push 0xf
call fcn.00492e7a
add esp, 0x18
push 0xf
pop ecx
movzx eax, byte [edi + esi]
xor edx, edx
push 0x3e
pop ebx
div ebx
mov al, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [edi + esi], al
inc esi
dec ecx
jne 0x49518d
mov byte [edi + esi], cl
xor eax, eax
jmp 0x4950ce

Function at 0x495433
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebx
push ebp
push edi
push dword [esp + 0x14]
xor ebp, ebp
xor ebx, ebx
call fcn.0049502b
mov edi, eax
pop ecx
test edi, edi
jne 0x495452
push 7
pop eax
jmp 0x4954db
push esi
call fcn.00494242
test eax, eax
je 0x49548e
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x49547e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 5
jne 0x4954c0
inc ebp
cmp ebp, 5
jge 0x4954c0
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x49545c
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4954b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 5
jne 0x4954c0
inc ebp
cmp ebp, 5
jge 0x4954c0
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x49548e
push edi
call fcn.004e735e
pop ecx
cmp esi, 0xffffffff
pop esi
jne 0x4954d6
cmp ebx, 2
jne 0x4954d6
xor eax, eax
jmp 0x4954db
mov eax, 0xa0a
pop edi
pop ebp
pop ebx
ret
Function at 0x495673
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x571268]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
lea ecx, [ebp - 0x110]
push ecx
push 0x104
push eax
push dword [ebp + 8]
mov dword [ebp - 0x118], 0x200
call fcn.0049559b
add esp, 0x10
test eax, eax
jne 0x495754
lea eax, [ebp - 0x110]
push eax
call fcn.0049502b
mov esi, eax
xor ebx, ebx
pop ecx
cmp esi, ebx
je 0x49574a
call fcn.00494242
test eax, eax
mov eax, esi
je 0x49570e
cmp word [esi], bx
je 0x4956ef
cmp word [eax], 0x5c
je 0x4956ea
inc eax
inc eax
cmp word [eax], bx
jne 0x4956db
jmp 0x4956ef
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x114]
push eax
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
jmp 0x49573d
cmp byte [esi], bl
je 0x495720
cmp byte [eax], 0x5c
je 0x49571e
inc eax
cmp byte [eax], bl
jne 0x495712
jmp 0x495720
mov byte [eax], bl
lea eax, [ebp - 0x114]
push eax
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
push esi
mov edi, eax
call fcn.004e735e
pop ecx
cmp edi, ebx
jne 0x495754
mov dword [ebp - 0x118], 0x200
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x118]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e6e1c
leave
ret
Function at 0x4986c3
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov edx, dword [ebx + 0x3c]
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [edx], edi
jne 0x4986fa
mov eax, dword [ebx + 0x78]
mov ecx, dword [ebx]
or eax, 0x1e
push edi
and eax, 0x87f3f
push eax
push edx
push edi
push ecx
call dword [ecx + 0x18]
add esp, 0x14
mov dword [ebp - 4], eax
cmp eax, edi
jne 0x4987b7
mov ecx, dword [ebx + 0x18]
cmp ecx, dword [ebx + 0x24]
jbe 0x498734
mov eax, dword [ebx + 0x80]
push edi
cdq
push ecx
push edx
push eax
call fcn.004faa00
mov dword [ebp - 0xc], edx
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x3c]
mov ecx, dword [eax]
push 5
push eax
call dword [ecx + 0x28]
mov eax, dword [ebx + 0x18]
add esp, 0xc
mov dword [ebx + 0x24], eax
jmp 0x498734
xor edi, edi
mov esi, dword [ebp + 8]
cmp esi, edi
je 0x4987b7
mov edi, dword [esi + 0xc]
mov dword [ebp - 0xc], edi
cmp edi, dword [ebx + 0x18]
ja 0x4987a7
test byte [esi + 0x14], 0x20
jne 0x4987a7
mov eax, dword [ebx + 0x80]
cdq
push edx
push eax
lea ecx, [edi - 1]
push 0
push ecx
call fcn.004faa00
mov ecx, dword [esi]
push edx
push eax
push dword [ebx + 0x80]
mov eax, dword [ebx + 0x3c]
push ecx
mov dword [ebp - 8], ecx
call fcn.00491017
add esp, 0x10
mov dword [ebp - 4], eax
cmp edi, 1
jne 0x498794
mov esi, dword [ebp - 8]
add esi, 0x18
lea edi, [ebx + 0x64]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
cmp edi, dword [ebx + 0x20]
jbe 0x49879c
mov dword [ebx + 0x20], edi
push dword [esi]
mov eax, dword [ebx + 0x58]
call fcn.004a21af
pop ecx
cmp dword [ebp - 4], 0
mov eax, dword [esi + 8]
mov dword [ebp + 8], eax
je 0x498732
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret
Function at 0x4ae300
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x4ae312
xor eax, eax
jmp 0x4ae401
push esi
mov esi, dword [ebp + 8]
push 0x44
call fcn.00491bca
mov esi, eax
pop ecx
test esi, esi
je 0x4ae400
push ebx
push dword [ebp + 0x10]
mov ebx, dword [edi]
push dword [ebp + 8]
call fcn.004ae08a
push dword [ebp + 0x10]
mov dword [esi], eax
push dword [edi + 8]
push dword [ebp + 8]
call fcn.004ae14d
push 0
push dword [ebp + 0x10]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push eax
push dword [ebp + 8]
call fcn.004ade3a
push dword [ebp + 0x10]
mov dword [esi + 0xc], eax
push dword [ebp + 8]
mov ebx, dword [edi + 0x10]
call fcn.004ae08a
push 0
push dword [ebp + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x14]
push eax
push dword [ebp + 8]
call fcn.004ade3a
push dword [ebp + 0x10]
mov dword [esi + 0x14], eax
push dword [ebp + 8]
mov ebx, dword [edi + 0x18]
call fcn.004ae08a
add esp, 0x44
push dword [ebp + 0x10]
mov dword [esi + 0x18], eax
mov al, byte [edi + 4]
mov byte [esi + 4], al
push dword [edi + 0x1c]
push dword [ebp + 8]
call fcn.004ae300
xor ebx, ebx
push ebx
push dword [ebp + 0x10]
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0x28]
push eax
push dword [ebp + 8]
call fcn.004ade3a
push ebx
push dword [ebp + 0x10]
mov dword [esi + 0x28], eax
mov eax, dword [edi + 0x2c]
push eax
push dword [ebp + 8]
call fcn.004ade3a
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov ax, word [edi + 6]
or dword [esi + 0x38], 0xffffffff
or dword [esi + 0x3c], 0xffffffff
mov ecx, 0xfff7
and ax, cx
add esp, 0x2c
or dword [esi + 0x40], 0xffffffff
mov word [esi + 6], ax
mov dword [esi + 0x24], ebx
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4b03bd
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
test edi, edi
je 0x4b04d5
test esi, esi
je 0x4b04d5
movzx edx, word [edi + 2]
mov eax, 0x800
mov ecx, edx
and ecx, eax
mov ebx, eax
cmp cx, bx
je 0x4b0479
movzx ecx, word [esi + 2]
mov ebx, ecx
and ebx, eax
cmp bx, ax
je 0x4b0479
xor cl, dl
test cl, 0x10
jne 0x4b0479
mov al, byte [edi]
cmp al, byte [esi]
jne 0x4b0479
push dword [esi + 8]
push dword [edi + 8]
call fcn.004b03bd
pop ecx
pop ecx
test eax, eax
jne 0x4b0479
push dword [esi + 0xc]
push dword [edi + 0xc]
call fcn.004b03bd
pop ecx
pop ecx
test eax, eax
jne 0x4b0479
mov ebx, dword [esi + 0x10]
mov edi, dword [edi + 0x10]
call fcn.004b04e4
test eax, eax
jne 0x4b0479
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 0x18]
cmp eax, dword [esi + 0x18]
jne 0x4b0479
mov ax, word [edi + 0x1c]
cmp ax, word [esi + 0x1c]
jne 0x4b0479
movzx eax, word [edi + 2]
mov ecx, eax
mov eax, 0x400
and ecx, eax
mov edx, eax
cmp cx, dx
jne 0x4b047e
mov cx, word [esi + 2]
and cx, dx
cmp cx, ax
jne 0x4b0479
mov eax, dword [edi + 4]
cmp eax, dword [esi + 4]
je 0x4b04a8
push 2
pop eax
jmp 0x4b04e0
cmp byte [edi], 0x98
je 0x4b04a8
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x4b04a8
mov dx, word [esi + 2]
mov ebx, eax
and dx, bx
cmp dx, ax
je 0x4b0479
mov edx, dword [esi + 4]
test edx, edx
je 0x4b0479
call fcn.0049353b
test eax, eax
jne 0x4b0479
movzx ecx, word [edi + 2]
mov dx, word [esi + 2]
mov eax, 0x100
and ecx, eax
and dx, ax
cmp cx, dx
je 0x4b04c4
xor eax, eax
inc eax
jmp 0x4b04e0
test cx, cx
je 0x4b04d1
mov eax, dword [edi + 0x14]
cmp eax, dword [esi + 0x14]
jne 0x4b0479
xor eax, eax
jmp 0x4b04e0
mov eax, esi
sub eax, edi
neg eax
sbb eax, eax
and eax, 2
pop edi
pop esi
pop ebx
ret
Function at 0x4c60a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1bc
push ebx
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx + 0x18]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [esp + 0x3c], eax
push eax
mov eax, dword [esi + 4]
call fcn.004c4f44
mov edi, dword [esi + 0x1c]
mov dword [esp + 0x30], edx
mov edx, dword [esi + 0x14]
imul edx, edx, 0x28
add edx, edi
cmp byte [ebx + 0x16], 0
pop ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x38], edx
jne 0x4c628e
jmp 0x4c6282
mov eax, 0x100
cmp word [edi + 0x10], ax
jne 0x4c627f
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
not eax
and eax, dword [edi + 0x20]
not ecx
and ecx, dword [edi + 0x24]
and eax, dword [ebp + 0x14]
and ecx, dword [ebp + 0x18]
or eax, ecx
jne 0x4c627f
mov ecx, dword [edi + 0xc]
mov eax, dword [ecx + 0x160]
mov esi, dword [ecx + 0x164]
and eax, dword [esp + 0x28]
and esi, dword [esp + 0x2c]
or eax, esi
je 0x4c627f
mov esi, dword [ecx + 0x14]
fldz
mov ebx, dword [ecx + 0x1c]
imul esi, esi, 0x28
fst qword [esp + 0x20]
fstp qword [esp + 0x30]
and dword [esp + 0x10], 0
add esi, ebx
and dword [esp + 0x14], 0
jmp 0x4c621e
mov eax, 0x200
cmp word [ebx + 0x10], ax
jne 0x4c617f
lea eax, [esp + 0x40]
push eax
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebx + 0xc]
jmp 0x4c61cc
mov eax, dword [esp + 0x3c]
cmp dword [ebx + 8], eax
jne 0x4c621b
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x40]
push eax
push dword [ebp + 0x20]
lea eax, [esp + 0x70]
push dword [ebp + 0x1c]
mov dword [esp + 0x74], ecx
push dword [ebp + 0x18]
mov byte [esp + 0x88], 0x45
push dword [ebp + 0x14]
mov dword [esp + 0x98], ebx
mov dword [esp + 0x90], 1
push eax
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
call fcn.004c708b
fld qword [esp + 0x68]
fadd qword [esp + 0x38]
mov ecx, dword [ebp + 0x28]
mov eax, dword [esp + 0x78]
or dword [esp + 0x28], eax
mov eax, dword [esp + 0x7c]
fstp qword [esp + 0x38]
fld qword [esp + 0x70]
or dword [esp + 0x2c], eax
fadd qword [esp + 0x48]
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x50]
add esp, 0x18
fstp qword [esp + 0x30]
fld qword [ecx + 0x10]
fcomp qword [esp + 0x20]
fnstsw ax
test ah, 0x41
jnp 0x4c6229
add ebx, 0x28
cmp ebx, esi
jb 0x4c615e
mov ecx, dword [ebp + 0x28]
cmp dword [ebp + 0x24], 0
je 0x4c624c
fld qword [esp + 0x30]
push ecx
push ecx
fstp qword [esp]
call fcn.004c6062
fmul qword [esp + 0x38]
add esp, 8
fadd qword [esp + 0x20]
fstp qword [esp + 0x20]
fld qword [ecx + 0x10]
fcomp qword [esp + 0x20]
fnstsw ax
test ah, 0x41
jne 0x4c627f
mov eax, dword [esp + 0x10]
fld qword [esp + 0x20]
fstp qword [ecx + 0x10]
mov dword [ecx + 0x20], eax
fld qword [esp + 0x30]
mov eax, dword [esp + 0x14]
fstp qword [ecx + 0x18]
mov dword [ecx + 0x24], eax
mov dword [ecx], 0x10000000
mov dword [ecx + 8], edi
add edi, 0x28
mov dword [esp + 0x1c], edi
cmp edi, edx
jb 0x4c60ec
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d2638
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x506c99
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x571268]
xor eax, esp
mov dword [esp + 0xb8], eax
push ebx
mov eax, dword [0x571268]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
lea ecx, [esp + 0xc]
xor bl, bl
call fcn.004e0ee0
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x30]
call fcn.004e11f0
and dword [esp + 0xd0], 0
push esi
lea ecx, [esp + 0x14]
call fcn.004d27b9
mov byte [esp + 0xd0], 1
cmp dword [esp + 0x24], 0
je 0x4d26d6
push 1
push edi
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x38]
call fcn.004e1280
test al, al
je 0x4d26d4
mov ecx, edi
call fcn.004d8010
test al, al
jne 0x4d26d4
inc bl
jmp 0x4d26d6
xor bl, bl
push 0
push 1
lea ecx, [esp + 0x18]
call fcn.004065f9
lea eax, [esp + 0x2c]
call fcn.004d2710
mov al, bl
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.004e6e1c
mov esp, ebp
pop ebp
ret
Function at 0x4e6e1c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x571268]
jne 0x4e6e26
repz ret
jmp fcn.004f155c

Function at 0x4fe8f9
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004f1812
and dword [ebp - 4], 0
cmp dword [0x574ce8], 0
mov ebx, eax
jne 0x4fe9aa
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4fea5b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4fea5b
push eax
call fcn.004f17a0
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x574ce8], eax
call esi
push eax
call fcn.004f17a0
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x574cec], eax
call esi
push eax
call fcn.004f17a0
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x574cf0], eax
call esi
push eax
call fcn.004f17a0
pop ecx
mov dword [0x574cf8], eax
test eax, eax
je 0x4fe9aa
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004f17a0
pop ecx
mov dword [0x574cf4], eax
mov eax, dword [0x574cf4]
cmp eax, ebx
je 0x4fea02
cmp dword [0x574cf8], ebx
je 0x4fea02
push eax
call fcn.004f181b
push dword [0x574cf8]
mov esi, eax
call fcn.004f181b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4fea02
test edi, edi
je 0x4fea02
call esi
test eax, eax
je 0x4fe9f9
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4fe9f9
test byte [ebp - 0xc], 1
jne 0x4fea02
or dword [ebp + 0x10], 0x200000
jmp 0x4fea3b
mov eax, dword [0x574cec]
cmp eax, ebx
je 0x4fea3b
push eax
call fcn.004f181b
pop ecx
test eax, eax
je 0x4fea3b
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4fea3b
mov eax, dword [0x574cf0]
cmp eax, ebx
je 0x4fea3b
push eax
call fcn.004f181b
pop ecx
test eax, eax
je 0x4fea3b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x574ce8]
call fcn.004f181b
pop ecx
test eax, eax
je 0x4fea5b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4fea5d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret