joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403803
Capabilities:
Create shortcut via ishelllink

Disassembly:
mov eax, 0x41df70
call fcn.0040699c
sub esp, 0x410
push ebx
xor ebx, ebx
cmp dword [0x42b898], ebx
push edi
jne 0x403830
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [0x42b898], 1
lea eax, [ebp - 0x10]
push eax
push 0x41fb68
push 1
push ebx
push 0x41fb78
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
cmp edi, ebx
jl 0x4039c4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x14]
push edx
push 0x41fb88
mov ecx, dword [eax]
push eax
call dword [ecx]
mov edi, eax
cmp edi, ebx
jl 0x4039bb
mov eax, dword [ebp + 8]
cmp byte [eax], 0x22
jne 0x403875
inc eax
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.00406fd0
pop ecx
lea eax, [ebp - 0x214]
pop ecx
push eax
call fcn.004070c0
cmp byte [ebp + eax - 0x215], 0x22
pop ecx
jne 0x4038af
lea eax, [ebp - 0x214]
push eax
call fcn.004070c0
pop ecx
mov byte [ebp + eax - 0x215], bl
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x214]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
test eax, eax
jge 0x4038cf
push ebx
push ebx
push str.SetPath_failed_
call fcn.0041b982
mov eax, dword [ebp - 0x10]
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
test eax, eax
jge 0x4038eb
push ebx
push ebx
push str.SetDescription_failed_
call fcn.0041b982
lea eax, [ebp - 0x41c]
push 0x104
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp dword [ebp + 0x14], 1
je 0x403916
mov eax, dword [ebp - 0x10]
push dword [ebp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x3c]
cmp dword [ebp + 0x18], ebx
je 0x403927
mov eax, dword [ebp - 0x10]
push dword [ebp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
cmp dword [ebp + 0x1c], ebx
je 0x403938
mov eax, dword [ebp - 0x10]
push dword [ebp + 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x41c]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov edi, eax
cmp edi, ebx
jl 0x4039b2
push esi
push str.Shell_Link:
lea ecx, [ebp + 0x1c]
call fcn.0041948a
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp + 0x18]
push eax
call fcn.00419624
mov esi, dword [eax]
push str.HprUnInst.log
lea eax, [ebp + 0x14]
push 0x42b86c
push eax
mov byte [ebp - 4], 1
call fcn.00419624
mov eax, dword [eax]
push esi
push eax
call fcn.00402c3d
pop ecx
pop ecx
lea ecx, [ebp + 0x14]
call fcn.0041941c
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], bl
call fcn.0041941c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x1c]
call fcn.0041941c
pop esi
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40452d
Capabilities:
Create process on windows
Persist via run registry key
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x10
push 0x12
call fcn.0041b9ba
xor eax, eax
push 5
push eax
push eax
push str.http:__www.hyperionics.com
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 1
call fcn.0040766c
Function at 0x40561a
Capabilities:
Get system information on windows

Disassembly:
push 0xffffffffffffffff
push 0x41e361
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x4c]
lea ebp, [esi + 4]
xor ebx, ebx
push eax
mov ecx, ebp
mov dword [esp + 0x48], ebx
call fcn.0041948a
mov ecx, dword [esp + 0x50]
push ebp
mov dword [esi + 0xc], ecx
mov edx, dword [str.COXInstanceManager_InstanceList_Mutex_]
lea eax, [esp + 0x54]
push edx
push eax
mov byte [esp + 0x50], 1
call fcn.00419698
mov eax, dword [eax]
push ebx
push eax
push ebx
lea ecx, [esi + 0x10]
mov byte [esp + 0x50], 2
call fcn.00406128
lea ecx, [esp + 0x50]
mov byte [esp + 0x44], 4
call fcn.0041941c
mov ecx, dword [str.COXInstanceManager_Additional_Mutex_]
push ebp
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.00419698
mov eax, dword [eax]
push ebx
push eax
push ebx
lea ecx, [esi + 0x18]
mov byte [esp + 0x50], 5
call fcn.00406128
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], 7
call fcn.0041941c
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esi + 0x20], ebx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
mov dword [esi + 0x24], ebx
push eax
mov dword [esi + 0x28], ebx
mov dword [esi], 0x41fc28
mov dword [esi + 8], 0xfa8
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x34]
xor edx, edx
div ecx
cmp edx, ebx
je 0x4056e6
add eax, ecx
mov dword [esi + 8], eax
mov eax, dword [esi + 0xc]
xor edx, edx
div ecx
cmp edx, ebx
je 0x4056f6
add eax, ecx
mov ecx, dword [esi + 8]
mov edi, eax
mov dword [esi + 0xc], eax
add edi, ecx
mov ecx, dword [str.COXInstanceManager_FileMap_]
push ebp
lea edx, [esp + 0x50]
push ecx
push edx
call fcn.00419698
mov eax, dword [esp + 0x4c]
mov byte [esp + 0x44], 8
push eax
push edi
push ebx
push 0x8000004
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esi + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
sete cl
mov eax, ecx
cmp eax, ebx
jne 0x40574c
mov ecx, esi
call fcn.00405a20
call sub.KERNEL32.dll_GetCurrentProcessId
push eax
mov ecx, esi
call fcn.00405a80
lea ecx, [esp + 0x4c]
mov byte [esp + 0x44], 7
call fcn.0041941c
mov ecx, dword [esp + 0x3c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 8

Function at 0x4058e0
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
lea ecx, [esp]
push ecx
push 0x405c10
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 4]
add esp, 8
ret

Function at 0x4059d0
Capabilities:
Read file via mapping

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
test eax, eax
jne 0x4059dc
pop esi
ret
mov ecx, dword [esi + 8]
push ecx
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
xor edx, edx
mov dword [esi + 0x24], eax
test eax, eax
setne dl
mov eax, edx
pop esi
ret
Function at 0x406dcf
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x406def
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00409122
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x406e12
test byte [esp + 8], 2
je 0x406e12
call fcn.00409195
mov dword [eax], 0xd
call fcn.0040919e
mov dword [eax], 5
jmp 0x406deb
xor eax, eax
ret

Function at 0x40d453
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x429688
cmp edx, dword [eax]
je 0x40d475
add eax, 8
inc ecx
cmp eax, 0x429718
jl 0x40d466
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x429688]
jne 0x40d5a3
mov eax, dword [0x42d8c4]
cmp eax, 1
je 0x40d57d
test eax, eax
jne 0x40d4a6
cmp dword [0x426ee4], 1
je 0x40d57d
cmp edx, 0xfc
je 0x40d5a3
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40d4dd
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00406fd0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004070c0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40d520
lea eax, [ebp - 0x1a4]
push eax
call fcn.004070c0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x421584
push edi
call fcn.0040f2a0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00406fd0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00406fe0
lea eax, [ebp - 0xa0]
push 0x421564
push eax
call fcn.00406fe0
push dword [esi + 0x42968c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00406fe0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040f8a3
add esp, 0x2c
pop edi
jmp 0x40d5a3
lea eax, [ebp + 8]
lea esi, [esi + 0x42968c]
push 0
push eax
push dword [esi]
call fcn.004070c0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x414240
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00407610
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41430b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41430b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4142be
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4142c9
or bh, 8
and edi, 0x8000000
je 0x4142e4
mov eax, dword [0x42f03c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41430b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4146e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41470b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41472f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41474a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x416ebd
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x416ef5
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00419821
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004197f9
jmp 0x416f01
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x418413
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x418455
call fcn.0041ca43
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x418455
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41844c
xor eax, eax
jmp 0x41845d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00418463
pop edi
pop esi
pop ebx
ret 4

Function at 0x41d240
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x41d26e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41d28c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041d1a6
jmp 0x41d28c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41d28c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0041d1a6
test edi, edi
mov eax, edi
jne 0x41d276
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x520590
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b8268
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebp
push edi
mov edi, ecx
xor ebp, ebp
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x48]
push ebp
push eax
push ecx
lea ecx, [edi + 0x104]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
call fcn.0051b490
test eax, eax
jne 0x5205fc
push ebp
push 0x4faf8c
mov ecx, edi
call fcn.0051f810
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
pop edi
pop ebp
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x10
mov edx, dword [esp + 0x48]
push ebx
mov ebx, dword [esp + 0x50]
push esi
push ebp
push ebp
push ebx
lea ecx, [edx + 0x14]
call fcn.0051aec0
lea ecx, [esp + 0x2c]
mov esi, eax
call fcn.00509450
push ebx
mov dword [esp + 0x4c], ebp
call fcn.0051b640
add esp, 4
test eax, eax
je 0x52069f
add esi, 0x18
push esi
call fcn.00509ee0
add esi, eax
push esi
call fcn.00509ee0
mov ecx, dword [esp + 0x60]
add esp, 8
cmp ecx, 3
lea eax, [esi + eax + 8]
ja 0x5209a2
jmp dword [ecx*4 + 0x454de0]
mov eax, dword [esi]
push ebp
push eax
mov ecx, edi
call fcn.0051f950
mov ebx, dword [esp + 0x58]
mov ebp, eax
lea edi, [esi + 0x18]
mov edx, dword [ebp + 0x28]
lea ecx, [ebx + ebx*4]
mov esi, edi
lea eax, [edx + ecx*4]
push esi
mov dword [esp + 0x5c], eax
call fcn.00509ee0
add esi, eax
push esi
call fcn.00509ee0
add esi, eax
add esp, 8
mov esi, dword [esi]
test esi, esi
je 0x5206f0
mov ecx, dword [esi + 0x1c]
push ecx
call dword [fcn.004bc444]
test eax, eax
je 0x5206f0
mov eax, 1
jmp 0x5206f2
xor eax, eax
cmp ebx, 8
jge 0x520957
cmp ebx, 7
ja 0x5209a2
jmp dword [ebx*4 + 0x454df0]
test eax, eax
jne 0x52096a
mov ecx, dword [esp + 0x10]
push eax
push 0x4faf78
call fcn.0051f810
push 6
call dword [ebp + 0x2c]
lea edx, [esp + 0x1c]
xor ecx, ecx
add ebx, 0xfffffff8
push edx
mov dword [esp + 0x20], ecx
push ebx
push esi
mov dword [esp + 0x2c], ecx
call eax
mov edx, dword [esp + 0x5c]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
call fcn.00520eb0
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
mov esi, eax
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x2c], 0x4e1c20
call fcn.00509650
mov ecx, dword [esp + 0x40]
mov eax, esi
pop esi
mov edx, edi
pop ebx
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x10
Function at 0x529680
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x512c58]
xor edx, edx
cmp eax, edx
jne 0x5296a6
xor eax, eax
mov byte [eax + 0x512b58], al
inc eax
cmp eax, 0x100
jl 0x52968e
mov dword [0x512c58], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x512b58
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x529737
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x52970a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x5296d8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x5297b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x529803
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x5297ea
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x52daa0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x68
mov eax, dword [esp + 0x78]
push ebx
push esi
cmp eax, 1
push edi
mov dword [esp + 0x14], ecx
jl 0x52dcc1
cmp eax, 8
jg 0x52dcc1
cmp dword [esp + 0x8c], 2
jl 0x52dcc1
mov eax, dword [esp + 0x7c]
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ecx, dword [eax + 8]
mov dword [esp + 0x6c], ecx
sub ecx, esi
mov ebx, dword [eax + 0xc]
mov dword [esp + 0x7c], ecx
test ecx, ecx
mov dword [esp + 0x70], ebx
jle 0x52dcc1
sub ebx, edi
test ebx, ebx
mov dword [esp + 0x20], ebx
jle 0x52dcc1
mov eax, dword [esp + 0x80]
test eax, eax
je 0x52db27
mov edx, dword [eax]
mov dword [esp + 0x44], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x48], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x4c], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x50], eax
xor edx, edx
push ebp
test ebx, ebx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x14], edx
jle 0x52dcaa
mov ebp, dword [0x4bc4cc]
mov eax, ebx
mov dword [esp + 0x10], 0x32
sub eax, edx
cmp eax, 0x32
jg 0x52db59
mov dword [esp + 0x10], eax
xor eax, eax
test ecx, ecx
jle 0x52dc91
mov ebx, dword [esp + 0x10]
add ebx, edx
mov dword [esp + 0x20], ebx
sub ecx, eax
cmp ecx, 0x32
jle 0x52db79
mov ecx, 0x32
lea ebx, [ecx + eax]
mov ecx, dword [esp + 0x20]
push ecx
push ebx
push edx
lea edx, [esp + 0x34]
push eax
push edx
call dword [0x4bc4dc]
push edi
lea eax, [esp + 0x2c]
push esi
push eax
call ebp
mov eax, dword [esp + 0x84]
test eax, eax
je 0x52dbb8
lea ecx, [esp + 0x48]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
call dword [0x4bc4d8]
lea ecx, [esp + 0x28]
push ecx
call dword [0x4bc498]
test eax, eax
jne 0x52dc78
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x40], ecx
mov eax, edi
mov ecx, esi
mov dword [esp + 0x44], edx
neg eax
neg ecx
push eax
lea edx, [esp + 0x3c]
push ecx
push edx
call ebp
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x60], edx
lea edx, [esp + 0x58]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x94]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x94]
sub ecx, edi
sub eax, esi
push edx
push ecx
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x9c]
push eax
call fcn.0052d0b0
cmp eax, 1
jne 0x52dca2
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x80]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x28]
call fcn.0052d960
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x14]
mov eax, ebx
cmp eax, ecx
jl 0x52db6d
mov ebx, dword [esp + 0x24]
add edx, dword [esp + 0x10]
cmp edx, ebx
mov dword [esp + 0x14], edx
jge 0x52dcaa
jmp 0x52db44
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x18]
call fcn.0052ccb0
mov eax, dword [esp + 0x1c]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x68
ret 0x1c
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x68
ret 0x1c