joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e5591
Capabilities:
Parse credit card information

Disassembly:
push ecx
mov ecx, dword [esi + 0x40]
push ebx
xor al, al
push edi
mov bl, 1
cmp ecx, 0xffffffff
je 0x4e5727
mov edi, 0x10000000
cmp ecx, 0x7c
je 0x4e5727
cmp ecx, 0x29
jne 0x4e55d3
cmp dword [esi + 0x10], 0
jne 0x4e5727
test dword [esi + 0x44], edi
jne 0x4e55d3
push 5
call fcn.00545dca
pop ecx
jmp 0x4e5710
cmp ecx, 0x2e
jne 0x4e55ef
push 5
lea eax, [esi + 0x18]
push eax
call fcn.004e580a
mov eax, esi
call fcn.004e5569
jmp 0x4e5710
cmp ecx, 0x5c
jne 0x4e564e
mov eax, esi
call fcn.004e5569
mov eax, dword [esi + 0x44]
and eax, 0x80
je 0x4e5622
cmp byte [esi + 0x3e], 0x62
jne 0x4e5622
push 4
lea eax, [esi + 0x18]
push eax
call fcn.004e580a
mov eax, esi
call fcn.004e5569
jmp 0x4e5717
test eax, eax
je 0x4e5642
cmp byte [esi + 0x3e], 0x42
jne 0x4e5642
push 4
lea eax, [esi + 0x18]
push eax
call fcn.004e580a
mov eax, dword [esi + 0x1c]
add eax, 8
or dword [eax], 1
jmp 0x4e5616
mov eax, esi
call fcn.004e5f8f
jmp 0x4e5710
cmp ecx, 0x5b
jne 0x4e5678
mov eax, esi
call fcn.004e5569
mov eax, esi
call fcn.004e5f44
cmp dword [esi + 0x40], 0x5d
je 0x4e55e3
push 4
call fcn.00545dca
pop ecx
jmp 0x4e55e3
cmp ecx, 0x28
jne 0x4e56a4
mov eax, esi
call fcn.004e5569
mov eax, esi
call fcn.004e605b
cmp dword [esi + 0x40], 0x29
mov bl, al
je 0x4e569b
push 5
call fcn.00545dca
pop ecx
mov eax, esi
call fcn.004e5569
jmp 0x4e570c
cmp ecx, 0x5e
jne 0x4e56b0
push 2
jmp 0x4e560d
cmp ecx, 0x24
jne 0x4e56bc
push 3
jmp 0x4e560d
cmp ecx, 0x2a
je 0x4e5704
cmp ecx, 0x2b
je 0x4e5704
cmp ecx, 0x3f
je 0x4e5704
cmp ecx, 0x7b
je 0x4e5704
cmp ecx, 0x7d
jne 0x4e56e1
test dword [esi + 0x44], edi
jne 0x4e56e1
push 6
jmp 0x4e55c8
cmp ecx, 0x5d
jne 0x4e56f2
test dword [esi + 0x44], edi
jne 0x4e56f2
push 4
jmp 0x4e55c8
movzx eax, byte [esi + 0x3e]
push eax
lea eax, [esi + 0x18]
call fcn.004e61f1
jmp 0x4e55e3
push 0xa
call fcn.00545dca
pop ecx
test bl, bl
je 0x4e5717
mov eax, esi
call fcn.004e6129
mov ecx, dword [esi + 0x40]
mov al, 1
mov bl, al
cmp ecx, 0xffffffff
jne 0x4e55a9
pop edi
pop ebx
pop ecx
ret
Function at 0x4e81ef
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x57854c
mov eax, dword fs:[0]
push eax
sub esp, 0x860
mov eax, dword [0x601328]
xor eax, esp
mov dword [esp + 0x858], eax
push ebx
push esi
push edi
mov eax, dword [0x601328]
xor eax, esp
push eax
lea eax, [esp + 0x870]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x878], edi
mov eax, str.AVG_Secure_Search
lea ecx, [esp + 0x40]
mov dword [esp + 0x14], 0x3e8
call fcn.004066c0
mov eax, str.PARTNER_NAME
lea ecx, [esp + 0x5c]
mov byte [esp + 0x878], 1
call fcn.004066c0
mov eax, str.General
lea ecx, [esp + 0x24]
mov byte [esp + 0x878], 2
call fcn.004066c0
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x2c]
lea ebx, [esp + 0x80]
mov byte [esp + 0x880], 3
call fcn.004961d8
pop ecx
pop ecx
lea ecx, [esp + 0x24]
call fcn.00409c40
lea ecx, [esp + 0x5c]
call fcn.00409c40
lea ecx, [esp + 0x40]
mov byte [esp + 0x878], 7
call fcn.00409c40
push SysReAllocString
mov eax, 0x20019
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
lea esi, [esp + 0x1c]
call fcn.00415df0
cmp eax, edi
jne 0x4e8394
mov eax, esi
push str.Local_AppData
push eax
lea edi, [esp + 0x1c]
lea esi, [esp + 0x9c]
call fcn.00415d40
lea esi, [esp + 0x18]
call fcn.00415e50
lea esi, [esp + 0x14]
call fcn.00403ee0
mov byte [esp + 0x878], 8
cmp dword [esp + 0x90], 8
mov eax, dword [esp + 0x7c]
jae 0x4e8334
lea eax, [esp + 0x7c]
push eax
push str._sPaypal
lea edi, [esp + 0x1c]
call fcn.00405c00
mov eax, dword [esp + 0x1c]
pop ecx
pop ecx
mov edx, eax
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4e834b
sub eax, edx
lea edi, [esp + 0x94]
dec edi
dec edi
mov cx, word [edi + 2]
inc edi
inc edi
test cx, cx
jne 0x4e8360
push dword [esp + 0x20]
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x98]
rep movsb byte es:[edi], byte [esi]
call fcn.00406690
lea ecx, [esp + 0x14]
call fcn.00409cb0
lea ecx, [esp + 0x78]
call fcn.00409c40
lea esi, [esp + 0x18]
call fcn.00415e80
mov ecx, dword [esp + 0x870]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x858]
xor ecx, esp
call fcn.0054677c
mov esp, ebp
pop ebp
ret
Function at 0x4ef35b
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push 0x68
mov eax, 0x56904f
call fcn.0054d442
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x6c], 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 - 0x68], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
movsw word es:[edi], word [esi]
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], ebx
mov word [ebp - 0x5c], ax
push 0xf0000000
push 1
push ebx
push ebx
lea eax, [ebp - 0x68]
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x4ef3e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x64]
mov eax, 0x59672c
call fcn.004066c0
lea ecx, [ebp - 0x60]
call fcn.00409c40
lea ecx, [ebp + 0xc]
call fcn.00409c40
mov eax, dword [ebp - 0x64]
jmp 0x4ef505
lea eax, [ebp - 0x70]
push eax
push ebx
push ebx
push 0x8003
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x4ef40d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x4ef3be
cmp dword [ebp + 0x24], 8
mov eax, dword [ebp + 0x10]
jae 0x4ef419
lea eax, [ebp + 0x10]
mov ecx, dword [ebp + 0x20]
push ebx
add ecx, ecx
push ecx
push eax
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push ebx
test eax, eax
jne 0x4ef446
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x4ef3be
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x20]
push eax
push 2
push dword [ebp - 0x70]
mov dword [ebp - 0x6c], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x4ef4c6
mov dword [ebp - 0x74], ebx
cmp dword [ebp - 0x6c], ebx
jbe 0x4ef4d4
mov eax, dword [ebp - 0x74]
movzx eax, byte [ebp + eax - 0x20]
and eax, 0xf
movzx esi, word [ebp + eax*2 - 0x44]
or eax, 0xffffffff
sub eax, dword [ebp - 0x4c]
cmp eax, 1
ja 0x4ef48c
call fcn.0054551c
mov edi, dword [ebp - 0x4c]
inc edi
lea eax, [ebp - 0x60]
call fcn.00406ea0
test al, al
je 0x4ef4b9
cmp dword [ebp - 0x48], 8
mov eax, dword [ebp - 0x5c]
jae 0x4ef4a8
lea eax, [ebp - 0x5c]
mov ecx, dword [ebp - 0x4c]
mov word [eax + ecx*2], si
mov ecx, edi
lea eax, [ebp - 0x60]
call fcn.00409c20
inc dword [ebp - 0x74]
mov eax, dword [ebp - 0x74]
cmp eax, dword [ebp - 0x6c]
jb 0x4ef46c
jmp 0x4ef4d4
lea eax, [ebp - 0x60]
push eax
mov eax, 0x59672c
call fcn.00406690
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push ebx
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov esi, dword [ebp - 0x64]
lea eax, [ebp - 0x60]
push eax
call fcn.00406fb0
lea ecx, [ebp - 0x60]
call fcn.00409c40
lea ecx, [ebp + 0xc]
call fcn.00409c40
mov eax, esi
call fcn.0054d4c5
ret
Function at 0x4f54e2
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp dword [esp + 4], eax
jle 0x4f550b
push esi
movzx edx, byte [ecx]
movzx edx, byte [edx + 0x598838]
mov esi, eax
shl esi, 3
xor edx, esi
xor eax, edx
inc ecx
dec dword [esp + 8]
cmp dword [esp + 8], 0
jg 0x4f54eb
pop esi
ret

Function at 0x4f5af0
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 edi
test eax, eax
je 0x4f5b31
cdq
push esi
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.00553ed0
push edi
push esi
push edx
push eax
call fcn.0055af70
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], edx
pop esi
push dword [ebp + 0x10]
mov edi, ebx
push dword [ebp + 0xc]
call fcn.004f5991
pop ecx
pop ecx
test eax, eax
jne 0x4f5b5a
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4f5b61
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 ebx
leave
ret

Function at 0x4f5b8c
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 0x4f5bbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4f5bbc
mov dword [esi + 0x10], eax
mov eax, 0x70a
jmp 0x4f5bdc
push 1
push 0
push 0
push dword [ebp + 8]
call fcn.0055af70
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 0x4f65af
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
mov eax, dword [0x601328]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x605cf4]
push ebx
push esi
test eax, eax
je 0x4f65e9
push eax
push 0x5c18ac
lea eax, [ebp - 0x10c]
push eax
push 0xe6
call fcn.004f41d5
add esp, 0x10
jmp 0x4f6661
call fcn.004f57a8
mov esi, 0xe6
test eax, eax
je 0x4f6629
lea eax, [ebp - 0x314]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x314]
push eax
call fcn.004f5855
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x4f6645
push 7
pop eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0054677c
leave
ret
lea eax, [ebp - 0x210]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x210]
push eax
call fcn.004f5916
jmp 0x4f6611
push ebx
push 0x5c18ac
lea eax, [ebp - 0x10c]
push eax
push esi
call fcn.004f41d5
push ebx
call fcn.005472c2
add esp, 0x14
mov ecx, str.etilqs_
call fcn.004f4983
lea ecx, [ebp - 0x10c]
mov edx, eax
call fcn.004f4983
lea eax, [edx + eax + 0x11]
cmp eax, 0x105
jl 0x4f6688
xor eax, eax
inc eax
jmp 0x4f661b
lea ecx, [ebp - 0x10c]
call fcn.004f4983
test eax, eax
jbe 0x4f66a1
dec ecx
cmp byte [ecx + eax], 0x5c
jne 0x4f66a1
dec eax
jne 0x4f6698
mov byte [ebp + eax - 0x10c], 0
lea eax, [ebp - 0x10c]
push eax
push str._setilqs_
push edi
push 0xf4
call fcn.004f41d5
mov ecx, edi
call fcn.004f4983
mov esi, eax
lea eax, [edi + esi]
push eax
push 0xf
call fcn.004f43de
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 0x4f66da
mov byte [edi + esi], cl
xor eax, eax
jmp 0x4f661b

Function at 0x4f6975
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.004f6578
mov edi, eax
pop ecx
test edi, edi
jne 0x4f6994
push 7
pop eax
jmp 0x4f6a1d
push esi
call fcn.004f57a8
test eax, eax
je 0x4f69d0
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 0x4f69c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 5
jne 0x4f6a02
inc ebp
cmp ebp, 5
jge 0x4f6a02
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4f699e
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 0x4f69f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 5
jne 0x4f6a02
inc ebp
cmp ebp, 5
jge 0x4f6a02
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4f69d0
push edi
call fcn.005472c2
pop ecx
cmp esi, 0xffffffff
pop esi
jne 0x4f6a18
cmp ebx, 2
jne 0x4f6a18
xor eax, eax
jmp 0x4f6a1d
mov eax, 0xa0a
pop edi
pop ebp
pop ebx
ret
Function at 0x4f6bb3
Capabilities:
Get disk size

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x601328]
xor eax, ebp
mov dword [ebp + 0x90], eax
mov eax, dword [ebp + 0xa0]
lea ecx, [ebp - 0x78]
push ecx
push 0x104
push eax
push dword [ebp + 0x9c]
mov dword [ebp - 0x80], 0x200
call fcn.004f6add
add esp, 0x10
test eax, eax
jne 0x4f6c87
push ebx
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.004f6578
mov esi, eax
xor ebx, ebx
pop ecx
cmp esi, ebx
je 0x4f6c7e
push edi
call fcn.004f57a8
test eax, eax
mov eax, esi
je 0x4f6c4a
cmp word [esi], bx
je 0x4f6c34
cmp word [eax], 0x5c
je 0x4f6c2f
inc eax
inc eax
cmp word [eax], bx
jne 0x4f6c20
jmp 0x4f6c34
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x7c]
push eax
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
jmp 0x4f6c70
cmp byte [esi], bl
je 0x4f6c5c
cmp byte [eax], 0x5c
je 0x4f6c5a
inc eax
cmp byte [eax], bl
jne 0x4f6c4e
jmp 0x4f6c5c
mov byte [eax], bl
lea eax, [ebp - 0x7c]
push eax
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
push esi
mov edi, eax
call fcn.005472c2
pop ecx
cmp edi, ebx
pop edi
jne 0x4f6c85
mov dword [ebp - 0x80], 0x200
pop esi
pop ebx
mov ecx, dword [ebp + 0x90]
mov eax, dword [ebp - 0x80]
xor ecx, ebp
call fcn.0054677c
add ebp, 0x94
leave
ret
Function at 0x4f9bf6
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 0x4f9c2d
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 0x4f9cea
mov ecx, dword [ebx + 0x18]
cmp ecx, dword [ebx + 0x24]
jbe 0x4f9c67
mov eax, dword [ebx + 0x80]
push edi
cdq
push ecx
push edx
push eax
call fcn.0055af70
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 0x4f9c67
xor edi, edi
mov esi, dword [ebp + 8]
cmp esi, edi
je 0x4f9cea
mov edi, dword [esi + 0xc]
mov dword [ebp - 0xc], edi
cmp edi, dword [ebx + 0x18]
ja 0x4f9cda
test byte [esi + 0x14], 0x20
jne 0x4f9cda
mov eax, dword [ebx + 0x80]
cdq
push edx
push eax
lea ecx, [edi - 1]
push 0
push ecx
call fcn.0055af70
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.004f256c
add esp, 0x10
mov dword [ebp - 4], eax
cmp edi, 1
jne 0x4f9cc7
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 0x4f9ccf
mov dword [ebx + 0x20], edi
push dword [esi]
mov eax, dword [ebx + 0x58]
call fcn.0050368a
pop ecx
cmp dword [ebp - 4], 0
mov eax, dword [esi + 8]
mov dword [ebp + 8], eax
je 0x4f9c65
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret
Function at 0x50f7c8
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x50f7da
xor eax, eax
jmp 0x50f8c9
push esi
mov esi, dword [ebp + 8]
push 0x44
call fcn.004f311c
mov esi, eax
pop ecx
test esi, esi
je 0x50f8c8
push ebx
push dword [ebp + 0x10]
mov ebx, dword [edi]
push dword [ebp + 8]
call fcn.0050f552
push dword [ebp + 0x10]
mov dword [esi], eax
push dword [edi + 8]
push dword [ebp + 8]
call fcn.0050f615
push 0
push dword [ebp + 0x10]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push eax
push dword [ebp + 8]
call fcn.0050f302
push dword [ebp + 0x10]
mov dword [esi + 0xc], eax
push dword [ebp + 8]
mov ebx, dword [edi + 0x10]
call fcn.0050f552
push 0
push dword [ebp + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x14]
push eax
push dword [ebp + 8]
call fcn.0050f302
push dword [ebp + 0x10]
mov dword [esi + 0x14], eax
push dword [ebp + 8]
mov ebx, dword [edi + 0x18]
call fcn.0050f552
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.0050f7c8
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.0050f302
push ebx
push dword [ebp + 0x10]
mov dword [esi + 0x28], eax
mov eax, dword [edi + 0x2c]
push eax
push dword [ebp + 8]
call fcn.0050f302
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 0x511883
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 0x51199b
test esi, esi
je 0x51199b
movzx edx, word [edi + 2]
mov eax, 0x800
mov ecx, edx
and ecx, eax
mov ebx, eax
cmp cx, bx
je 0x51193f
movzx ecx, word [esi + 2]
mov ebx, ecx
and ebx, eax
cmp bx, ax
je 0x51193f
xor cl, dl
test cl, 0x10
jne 0x51193f
mov al, byte [edi]
cmp al, byte [esi]
jne 0x51193f
push dword [esi + 8]
push dword [edi + 8]
call fcn.00511883
pop ecx
pop ecx
test eax, eax
jne 0x51193f
push dword [esi + 0xc]
push dword [edi + 0xc]
call fcn.00511883
pop ecx
pop ecx
test eax, eax
jne 0x51193f
mov ebx, dword [esi + 0x10]
mov edi, dword [edi + 0x10]
call fcn.005119aa
test eax, eax
jne 0x51193f
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 0x18]
cmp eax, dword [esi + 0x18]
jne 0x51193f
mov ax, word [edi + 0x1c]
cmp ax, word [esi + 0x1c]
jne 0x51193f
movzx eax, word [edi + 2]
mov ecx, eax
mov eax, 0x400
and ecx, eax
mov edx, eax
cmp cx, dx
jne 0x511944
mov cx, word [esi + 2]
and cx, dx
cmp cx, ax
jne 0x51193f
mov eax, dword [edi + 4]
cmp eax, dword [esi + 4]
je 0x51196e
push 2
pop eax
jmp 0x5119a6
cmp byte [edi], 0x98
je 0x51196e
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x51196e
mov dx, word [esi + 2]
mov ebx, eax
and dx, bx
cmp dx, ax
je 0x51193f
mov edx, dword [esi + 4]
test edx, edx
je 0x51193f
call fcn.004f4aa1
test eax, eax
jne 0x51193f
movzx ecx, word [edi + 2]
mov dx, word [esi + 2]
mov eax, 0x100
and ecx, eax
and dx, ax
cmp cx, dx
je 0x51198a
xor eax, eax
inc eax
jmp 0x5119a6
test cx, cx
je 0x511997
mov eax, dword [edi + 0x14]
cmp eax, dword [esi + 0x14]
jne 0x51193f
xor eax, eax
jmp 0x5119a6
mov eax, esi
sub eax, edi
neg eax
sbb eax, eax
and eax, 2
pop edi
pop esi
pop ebx
ret
Function at 0x527512
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.005263b6
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 0x527700
jmp 0x5276f4
mov eax, 0x100
cmp word [edi + 0x10], ax
jne 0x5276f1
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 0x5276f1
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 0x5276f1
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 0x527690
mov eax, 0x200
cmp word [ebx + 0x10], ax
jne 0x5275f1
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 0x52763e
mov eax, dword [esp + 0x3c]
cmp dword [ebx + 8], eax
jne 0x52768d
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.005284fd
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 0x52769b
add ebx, 0x28
cmp ebx, esi
jb 0x5275d0
mov ecx, dword [ebp + 0x28]
cmp dword [ebp + 0x24], 0
je 0x5276be
fld qword [esp + 0x30]
push ecx
push ecx
fstp qword [esp]
call fcn.005274d4
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 0x5276f1
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 0x52755e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x52e22d
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56ad19
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x601328]
xor eax, esp
mov dword [esp + 0xb8], eax
push ebx
mov eax, dword [0x601328]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [esp + 8]
mov dword [esp + 0xc], eax
xor ebx, ebx
call fcn.005406c0
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x30]
call fcn.005409d0
push esi
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0xd8], ebx
call fcn.0052e3a2
mov byte [esp + 0xd0], 1
cmp dword [esp + 0x24], ebx
je 0x52e2d2
push 1
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x38]
call fcn.00540a60
test al, al
je 0x52e2d2
mov ecx, dword [esp + 0xc]
call fcn.00537ac0
test al, al
jne 0x52e2d2
mov bl, 1
lea ecx, [esp + 0x10]
call fcn.00408970
lea eax, [esp + 0x2c]
call fcn.0052e30a
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.0054677c
mov esp, ebp
pop ebp
ret 4