joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50efb7
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
mov eax, dword [0x5f7350]
xor eax, esp
mov dword [esp + 0x198], eax
push ebx
push esi
xor ebx, ebx
push edi
mov esi, ecx
cmp dword [0x602778], ebx
jne 0x50f012
lea eax, [esp + 0x10]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x50eff8
xor al, al
jmp 0x50f01a
cmp byte [esp + 0x10], 2
jne 0x50f00a
mov eax, dword [esp + 0x10]
shr eax, 8
cmp al, 2
je 0x50f012
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x50eff4
inc dword [0x602778]
mov al, 1
mov byte [esi + 0x1c], al
cmp al, bl
jne 0x50f036
xor ecx, ecx
push 0x5c23ac
inc ecx
call fcn.00492b4d
pop ecx
push 0xffffffffffffffff
call fcn.0051ec46
or dword [esi + 0x64], 0xffffffff
push 0x10
lea edi, [esi + 0x20]
push ebx
push edi
mov byte [esi + 0x1d], bl
mov dword [esi + 8], ebx
call fcn.00517e90
add esp, 0xc
push 2
pop eax
mov word [edi], ax
mov dword [esi + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x10
mov dword [esi + 0x6c], eax
push ebx
add esi, 0x30
push esi
call fcn.00517e90
mov ecx, dword [esp + 0x1b0]
add esp, 0xc
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0051497f
mov esp, ebp
pop ebp
ret

Function at 0x50f273
Capabilities:
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5f7350]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebx + 0x64], 0xffffffff
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
jne 0x50f2b0
mov eax, dword [ebx + 0x5c]
mov ecx, eax
xor edx, edx
dec ecx
je 0x50f2a0
dec ecx
jne 0x50f2a3
push 0x11
jmp 0x50f2a2
push 6
pop edx
push edx
push eax
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebx + 0x64], eax
mov eax, dword [ebx + 0x64]
cmp eax, 0xffffffff
jne 0x50f2bf
xor al, al
jmp 0x50f344
cmp byte [ebx + 0x68], 0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x50f2f2
push 1
lea ecx, [ebp - 0x15]
push ecx
push 4
push 0xffff
push eax
mov byte [ebx + 0x68], 1
mov byte [ebp - 0x15], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x50f2f2
call edi
mov dword [ebx + 0x60], eax
push esi
push 0x10
pop esi
push esi
push dword [ebp - 0x1c]
push dword [ebx + 0x64]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x50f30f
call edi
mov dword [ebx + 0x60], eax
jmp 0x50f328
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebx + 0x64]
mov dword [ebp - 0x20], esi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x50f32c
xor al, al
jmp 0x50f342
cmp dword [ebx + 0x5c], 2
lea edi, [ebx + 0x20]
lea esi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jne 0x50f340
mov byte [ebx + 0x1d], 1
mov al, 1
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051497f
leave
ret 4
Function at 0x50f352
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns

Disassembly:
push 0xe8
mov eax, 0x557df3
call fcn.00523c97
mov esi, ecx
cmp byte [esi + 0x1c], 0
mov edi, edx
jne 0x50f372
xor al, al
jmp 0x50f483
cmp dword [esi + 0x64], 0xffffffff
jne 0x50f387
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x64], eax
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x50f440
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x50f439
lea eax, [ebp - 0x5c]
push edi
push eax
call fcn.0048eebc
pop ecx
pop ecx
mov edi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 0xf4]
push eax
call fcn.004036c8
mov esi, eax
push str.updtSocket::Connect:_Unknown_hostname_
push esi
mov byte [ebp - 4], 1
call fcn.00405d7d
push esi
mov ecx, edi
call fcn.0041193b
add esp, 0xc
push 0x27
push esi
call fcn.00411d4f
pop ecx
pop ecx
lea eax, [ebp - 0x40]
push eax
mov eax, esi
call fcn.00403732
mov byte [ebp - 4], 2
cmp dword [ebp - 0x2c], 8
mov eax, dword [ebp - 0x40]
jae 0x50f405
lea eax, [ebp - 0x40]
push eax
push 2
pop ecx
call fcn.00492b4d
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0x40]
call fcn.00404145
lea eax, [ebp - 0xf4]
mov byte [ebp - 4], 0
call fcn.00402669
push 1
lea esi, [ebp - 0x5c]
call fcn.00404145
jmp 0x50f36b
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
push 2
pop ecx
push dword [ebp + 8]
mov word [ebp - 0x24], cx
mov dword [ebp - 0x20], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x22], ax
push 0x10
lea eax, [ebp - 0x24]
push eax
push dword [esi + 0x64]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x50f47d
push dword [esi + 0x64]
call dword [sym.imp.WS2_32.dll_closesocket]
or dword [esi + 0x64], 0xffffffff
jmp 0x50f36b
mov byte [esi + 0x1d], 1
mov al, 1
call fcn.00523d1a
ret 4

Function at 0x50f523
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5f7350]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [edi + 0x64]
mov dword [ebp - 0x104], eax
mov dword [ebp - 0x208], eax
mov eax, dword [ebp + 0xc]
cdq
mov ecx, 0x3e8
idiv ecx
push ebx
push esi
xor esi, esi
inc esi
xor ebx, ebx
xor ecx, ecx
mov dword [ebp - 0x108], esi
mov dword [ebp - 0x20c], esi
imul edx, edx, 0x3e8
mov dword [ebp - 0x214], eax
xor eax, eax
mov dword [ebp - 0x210], edx
cmp byte [ebp + 8], bl
je 0x50f586
lea ecx, [ebp - 0x108]
jmp 0x50f58c
lea eax, [ebp - 0x108]
cmp dword [ebp + 0xc], ebx
jl 0x50f599
lea edx, [ebp - 0x214]
jmp 0x50f59b
xor edx, edx
push edx
lea edx, [ebp - 0x20c]
push edx
push ecx
push eax
push ebx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, ebx
jne 0x50f5b4
xor eax, eax
jmp 0x50f5e6
cmp eax, 0xffffffff
jne 0x50f5be
or eax, 0xffffffff
jmp 0x50f5e6
mov ebx, dword [sym.imp.WS2_32.dll___WSAFDIsSet]
lea eax, [ebp - 0x20c]
push eax
push dword [edi + 0x64]
call ebx
test eax, eax
je 0x50f5e4
lea eax, [ebp - 0x108]
push eax
push dword [edi + 0x64]
call ebx
test eax, eax
je 0x50f5b9
mov eax, esi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0051497f
leave
ret 8
Function at 0x50f5f6
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
and dword [ebp - 8], 0
push ebx
push esi
push edi
lea esi, [ebp - 0x18]
mov edi, eax
call fcn.00497d0b
mov ebx, dword [sym.imp.WS2_32.dll_send]
mov byte [ebp - 1], 1
jmp 0x50f683
jle 0x50f626
add dword [ebp - 8], eax
sub dword [ebp + 0xc], eax
add dword [ebp + 8], eax
jmp 0x50f633
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x50f69e
cmp dword [ebp + 0xc], 0
je 0x50f694
cmp byte [ebp - 1], 0
mov ecx, dword [ebp + 0x10]
jne 0x50f671
test ecx, ecx
js 0x50f671
lea esi, [ebp - 0x10]
call fcn.00497d0b
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
sbb ecx, dword [ebp - 0x14]
push 0
push 0x2710
push ecx
push eax
call fcn.00531db0
mov ecx, dword [ebp + 0x10]
sub ecx, eax
test ecx, ecx
jle 0x50f694
push ecx
push 1
call fcn.0050f523
mov byte [ebp - 1], 0
test eax, eax
js 0x50f69e
je 0x50f694
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x64]
call ebx
test eax, eax
jne 0x50f619
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0xc
or eax, 0xffffffff
jmp 0x50f697

Function at 0x50f6a3
Capabilities:
Parse pe header

Disassembly:
push 0x24
push 0x5c8bf0
call fcn.00517ca0
push 0x1c
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov edx, dword [ebp - 0x30]
cmp word [edx], 0x5a4d
jne 0x50f708
mov eax, dword [edx + 0x3c]
add eax, edx
cmp dword [eax], 0x4550
jne 0x50f708
mov ecx, dword [eax + 0xd8]
lea esi, [ecx + edx]
cmp dword [ebp + 0xc], esi
jb 0x50f708
mov eax, dword [eax + 0xdc]
add eax, ecx
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x50f708
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x50f711
mov dword [ebp - 4], 0xfffffffe
xor al, al
call fcn.00517ce5
ret
Function at 0x50f801
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, 0x7ff80000
push edi
jbe 0x50f820
lea eax, [esi - 0x7ff80000]
mov dword [ebp - 4], eax
jmp 0x50f827
mov dword [ebp - 4], 0x10000
cmp esi, 0x80000000
jae 0x50f83a
lea eax, [esi + 0x7ff80000]
mov dword [ebp - 8], eax
jmp 0x50f841
mov dword [ebp - 8], 0xfff80000
mov eax, dword [0x5ffe04]
test eax, eax
mov ecx, dword [0x5ffe00]
jne 0x50f85b
test ecx, ecx
je 0x50f870
mov eax, ecx
mov dword [0x5ffe04], eax
mov edx, dword [eax + 8]
test edx, edx
je 0x50f870
cmp edx, dword [ebp - 4]
jb 0x50f870
cmp edx, dword [ebp - 8]
jbe 0x50f99b
mov eax, ecx
test ecx, ecx
jmp 0x50f894
test eax, eax
je 0x50f88f
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x50f88f
cmp ecx, dword [ebp - 4]
jb 0x50f88f
cmp ecx, dword [ebp - 8]
jbe 0x50f99b
mov eax, dword [eax + 4]
test eax, eax
mov dword [0x5ffe04], eax
jne 0x50f876
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, esi
and eax, 0xffff
sub esi, eax
cmp esi, dword [ebp - 4]
mov dword [ebp + 8], esi
mov ebx, 0x3000
jbe 0x50f95d
lea eax, [esi - 0x70000000]
cmp eax, 0x10000000
ja 0x50f8cd
mov esi, 0x6fff0000
push 0x1c
lea eax, [ebp - 0x40]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x50f90d
mov eax, 0x10000
cmp dword [ebp - 0x30], eax
jne 0x50f8ed
cmp dword [ebp - 0x34], eax
jae 0x50f8fd
mov esi, dword [ebp - 0x3c]
add esi, 0xffff0000
cmp esi, dword [ebp - 4]
ja 0x50f8bb
jmp 0x50f90d
push 0x40
push ebx
push eax
push esi
call edi
test eax, eax
mov dword [0x5ffe04], eax
jne 0x50f969
mov esi, dword [ebp + 8]
jmp 0x50f95d
lea eax, [esi - 0x70000000]
cmp eax, 0x10000000
ja 0x50f924
mov esi, 0x80010000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x50f962
mov eax, 0x10000
cmp dword [ebp - 0x14], eax
jne 0x50f954
cmp dword [ebp - 0x18], eax
jb 0x50f954
push 0x40
push ebx
push eax
push esi
call edi
test eax, eax
mov dword [0x5ffe04], eax
jne 0x50f969
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
lea esi, [eax + ecx]
cmp esi, dword [ebp - 8]
jb 0x50f912
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov ecx, dword [0x5ffe00]
xor edx, edx
mov dword [eax + 4], ecx
mov dword [eax], 0x52727464
mov dword [eax + 8], edx
mov dword [0x5ffe00], eax
lea ecx, [eax + 0xffe0]
mov esi, 0x7fd
mov dword [ecx + 0x18], edx
mov edx, ecx
sub ecx, 0x20
dec esi
jne 0x50f98d
mov dword [eax + 8], edx
mov esi, dword [eax + 8]
cmp esi, dword [ebp - 4]
jb 0x50f962
cmp esi, dword [ebp - 8]
ja 0x50f962
mov ecx, dword [esi + 0x18]
push 0x20
push 0xcc
push esi
mov dword [eax + 8], ecx
call fcn.00517e90
add esp, 0xc
mov eax, esi
jmp 0x50f964
Function at 0x50f9e3
Capabilities:
Parse pe header

Disassembly:
push 0x24
push 0x5c8c10
call fcn.00517ca0
push 0x1c
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x50fa3b
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x30]
cmp word [eax], 0x5a4d
jne 0x50fa34
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x50fa34
cmp word [ecx + 0x14], 0
je 0x50fa34
mov dword [ebp - 4], 0xfffffffe
jmp 0x50fa3d
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
call fcn.00517ce5
ret

Function at 0x50fa55
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push edi
xor edi, edi
cmp dword [0x5ffe0c], edi
je 0x50fa68
mov eax, 0x10dd
jmp 0x50fac3
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x5ffe0c
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x50fa61
push esi
mov esi, dword [0x5ffe00]
mov dword [0x5ffe08], edi
mov dword [0x5ffe1c], edi
mov dword [0x5ffe18], edi
mov dword [0x5ffe10], edi
mov dword [0x5ffe14], edi
jmp 0x50fabc
lea eax, [esp + 8]
push eax
push 0x40
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [esi + 4]
cmp esi, edi
jne 0x50faa6
xor eax, eax
pop esi
pop edi
pop ecx
ret

Function at 0x50fac6
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x5ffe0c], eax
je 0x50fadc
mov eax, 0x10dd
pop ecx
ret
push ebx
push esi
mov esi, dword [0x5ffe1c]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x50fb27
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 0x10]
push dword [esi + 0x14]
movzx eax, byte [eax + 0x17]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [esi + 4], ebx
jne 0x50fb18
mov edi, dword [esi + 0x10]
cmp edi, ebx
je 0x50fb18
call fcn.0050f9c2
mov dword [esi + 0x10], ebx
mov edi, dword [esi]
push esi
call fcn.00515a19
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x50faeb
mov dword [0x5ffe1c], ebx
call fcn.0050f7da
mov esi, dword [0x5ffe18]
cmp esi, ebx
je 0x50fb54
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, dword [esi]
push esi
call fcn.00515a19
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x50fb3c
pop edi
pop esi
mov dword [0x5ffe18], ebx
mov dword [0x5ffe0c], ebx
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x50fdab
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x5ffe10]
test eax, eax
jne 0x50fe1b
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [esp + 8]
cmp edi, eax
jne 0x50fdc7
xor eax, eax
jmp 0x50fe1a
push esi
push 8
call fcn.00515ac7
mov esi, eax
test esi, esi
pop ecx
jne 0x50fddb
push 8
pop edi
jmp 0x50fdf6
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x50fe07
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.00515a19
pop ecx
and dword [0x5ffe14], 0
mov dword [0x5ffe10], edi
mov eax, edi
jmp 0x50fe19
mov eax, dword [0x5ffe18]
mov dword [esi], eax
mov dword [esi + 4], edi
mov dword [0x5ffe18], esi
xor eax, eax
pop esi
pop edi
ret 4
Function at 0x51497f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5f7350]
jne 0x514989
repz ret
jmp fcn.0051b86b

Function at 0x52ddac
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5f7350]
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.0051c38e
and dword [ebp - 0x14], 0
cmp dword [0x602304], 0
mov dword [ebp - 0x18], eax
jne 0x52de5f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x52df07
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x52df07
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x602304], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x602308], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x60230c], eax
call edi
push eax
call esi
mov dword [0x602314], eax
test eax, eax
je 0x52de5f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x602310], eax
mov eax, dword [0x602310]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x52deb8
cmp dword [0x602314], ecx
je 0x52deb8
push eax
call esi
push dword [0x602314]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x52deb8
test ebx, ebx
je 0x52deb8
call edi
test eax, eax
je 0x52deaf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x52deaf
test byte [ebp - 8], 1
jne 0x52deb8
or dword [ebp + 0x10], 0x200000
jmp 0x52deeb
mov eax, dword [0x602308]
cmp eax, dword [ebp - 0x18]
je 0x52deeb
push eax
call esi
test eax, eax
je 0x52deeb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x52deeb
mov eax, dword [0x60230c]
cmp eax, dword [ebp - 0x18]
je 0x52deeb
push eax
call esi
test eax, eax
je 0x52deeb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x602304]
call esi
test eax, eax
je 0x52df07
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x52df09
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051497f
leave
ret

Function at 0x536e50
Capabilities:
Encode data using xor

Disassembly:
movzx ecx, word [edx]
xor eax, eax
test cx, cx
je 0x536e76
lea ebx, [ebx]
imul eax, eax, 0xf4243
movzx ecx, cx
add edx, 2
xor eax, ecx
movzx ecx, word [edx]
test cx, cx
jne 0x536e60
ret
Function at 0x549140
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, edx
test esi, esi
not eax
je 0x549172
lea esp, [esp]
test cl, 3
je 0x549172
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x580fc8]
add ecx, 1
sub esi, 1
jne 0x549150
cmp esi, 0x20
push ebx
push edi
jb 0x54935c
mov edi, esi
shr edi, 5
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x5813c8]
xor edx, dword [ebx*4 + 0x5817c8]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x580fc8]
add ecx, 4
xor edx, dword [eax*4 + 0x581bc8]
add ecx, 4
xor edx, dword [ecx - 8]
add ecx, 4
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x5813c8]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x5817c8]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x580fc8]
add ecx, 4
xor eax, dword [edx*4 + 0x581bc8]
add ecx, 4
xor eax, dword [ecx - 0x10]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x5813c8]
xor edx, dword [ebx*4 + 0x5817c8]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x580fc8]
xor edx, dword [eax*4 + 0x581bc8]
xor edx, dword [ecx - 0xc]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x5813c8]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x5817c8]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x580fc8]
xor eax, dword [edx*4 + 0x581bc8]
xor eax, dword [ecx - 8]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x5813c8]
xor edx, dword [ebx*4 + 0x5817c8]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x580fc8]
xor edx, dword [eax*4 + 0x581bc8]
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x5813c8]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x5817c8]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x580fc8]
and edx, 0xff
xor eax, dword [edx*4 + 0x581bc8]
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x5813c8]
xor edx, dword [ebx*4 + 0x5817c8]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x580fc8]
add ecx, 4
xor edx, dword [eax*4 + 0x581bc8]
sub esi, 0x20
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x5813c8]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x5817c8]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x580fc8]
and edx, 0xff
xor eax, dword [edx*4 + 0x581bc8]
sub edi, 1
jne 0x549182
cmp esi, 4
jb 0x5493a9
mov edx, esi
shr edx, 2
xor eax, dword [ecx]
add ecx, 4
mov edi, eax
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x5813c8]
movzx ebx, ah
xor edi, dword [ebx*4 + 0x5817c8]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x580fc8]
and eax, 0xff
xor edi, dword [eax*4 + 0x581bc8]
sub esi, 4
sub edx, 1
mov eax, edi
jne 0x549366
test esi, esi
pop edi
pop ebx
je 0x5493cd
nop
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x580fc8]
add ecx, 1
sub esi, 1
jne 0x5493b0
not eax
pop esi
ret
Function at 0x549800
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [edi + 0x2c]
push ebp
push esi
mov ebp, dword [edi + 0x3c]
sub ebp, dword [edi + 0x74]
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x2c]
lea edx, [ebx + ecx - 0x106]
sub ebp, eax
cmp eax, edx
jb 0x54987e
mov eax, dword [edi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.00517f10
mov edx, dword [edi + 0x4c]
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
add esp, 0xc
sub dword [edi + 0x5c], ebx
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebx
jb 0x549851
sub eax, ebx
jmp 0x549853
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x549842
mov ecx, dword [edi + 0x40]
mov edx, ebx
lea ecx, [ecx + ebx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebx
jb 0x549872
sub eax, ebx
jmp 0x549874
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x549863
add ebp, ebx
mov esi, dword [edi]
cmp dword [esi + 4], 0
je 0x549952
mov edx, dword [edi + 0x74]
add edx, dword [edi + 0x6c]
mov ecx, ebp
add edx, dword [edi + 0x38]
push edx
call fcn.00549580
add dword [edi + 0x74], eax
mov edx, dword [edi + 0x74]
add esp, 4
cmp edx, 3
jb 0x5498c9
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x38]
lea esi, [eax + ecx]
movzx eax, byte [esi]
mov ecx, dword [edi + 0x58]
mov dword [edi + 0x48], eax
shl eax, cl
movzx ecx, byte [esi + 1]
xor eax, ecx
and eax, dword [edi + 0x54]
mov dword [edi + 0x48], eax
cmp edx, 0x106
jae 0x5498dd
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x549806
mov eax, dword [edi + 0x16c0]
mov ecx, dword [edi + 0x3c]
cmp eax, ecx
jae 0x549952
mov esi, dword [edi + 0x6c]
add esi, edx
cmp eax, esi
jae 0x549921
sub ecx, esi
mov ebx, ecx
cmp ebx, 0x102
jbe 0x549904
mov ebx, 0x102
mov ecx, dword [edi + 0x38]
push ebx
add ecx, esi
push 0
push ecx
call fcn.00517e90
add esp, 0xc
add ebx, esi
pop esi
pop ebp
mov dword [edi + 0x16c0], ebx
pop ebx
ret
lea edx, [esi + 0x102]
cmp eax, edx
jae 0x549952
sub esi, eax
add esi, 0x102
sub ecx, eax
cmp esi, ecx
jbe 0x54993b
mov esi, ecx
mov ecx, dword [edi + 0x38]
push esi
add ecx, eax
push 0
push ecx
call fcn.00517e90
add esp, 0xc
add dword [edi + 0x16c0], esi
pop esi
pop ebp
pop ebx
ret
Function at 0x4020a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x414
mov eax, dword [0x4cb08c]
xor eax, esp
mov dword [esp + 0x410], eax
push esi
xor esi, esi
push 0x206
lea eax, [esp + 0xa]
push esi
push eax
mov word [esp + 0x10], si
call fcn.00475320
add esp, 0xc
push 0x104
lea ecx, [esp + 8]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x402119
lea edx, [esp + 4]
push 0x5c
push edx
call fcn.004716a0
add esp, 8
cmp eax, esi
je 0x40212a
mov word [eax + 2], si
lea eax, [esp + 4]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x402102
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 8]
push eax
jmp 0x402120
push 2
push 0x4ab208
mov ecx, 0x4ccc04
call fcn.00403110
push 0x206
lea ecx, [esp + 0x212]
push esi
push ecx
mov word [esp + 0x218], si
call fcn.00475320
add esp, 0xc
lea edx, [esp + 0x20c]
push edx
push esi
push esi
push 0x1a
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, esi
jl 0x4021fb
cmp eax, 1
je 0x4021fb
lea eax, [esp + 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x402176
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x210]
push eax
mov ecx, 0x4ccc20
call fcn.00403110
mov eax, dword [0x4ccc34]
lea esi, [eax - 1]
cmp esi, eax
jbe 0x4021a9
call fcn.00471ad5
cmp dword [0x4ccc38], 8
mov eax, dword [0x4ccc24]
jae 0x4021bc
mov eax, 0x4ccc24
cmp word [eax + esi*2], 0x5c
je 0x4021d4
push 1
push 0x4ab210
mov ecx, 0x4ccc20
call fcn.00403010
push 0x14
push 0x4ab214
mov ecx, 0x4ccc20
call fcn.00403010
pop esi
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.00471497
add esp, 0x414
ret
push 2
push 0x4ab208
mov ecx, 0x4ccc20
call fcn.00403110
mov ecx, dword [esp + 0x414]
pop esi
xor ecx, esp
call fcn.00471497
add esp, 0x414
ret