joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e0515
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x53ff7c
call fcn.004eec88
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
mov eax, ebx
push esi
mov esi, ecx
push edi
shr eax, 0x10
test ax, ax
mov dword [esi + 0x40], ebx
jne 0x4e0543
cmp dword [esi + 0x3c], 0
jne 0x4e0543
movzx eax, bx
mov dword [esi + 0x3c], eax
call fcn.005245be
mov edi, dword [eax + 0xc]
push 5
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x4e056e
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4e0576
or eax, 0xffffffff
jmp 0x4e05f9
call fcn.0042e317
xor ecx, ecx
cmp eax, ecx
jle 0x4e0584
mov dword [esi + 0x5c], eax
cmp dword [esi + 0x5c], ecx
jle 0x4e05eb
mov eax, dword [0x5927d4]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], ecx
push eax
lea eax, [ebp + 8]
push eax
push ebx
mov dword [ebp - 0x10], ecx
call fcn.00510e5c
add esp, 0xc
test eax, eax
je 0x4e05df
push ebx
lea ecx, [ebp - 0x1c]
call fcn.00510cab
mov ax, word [esi + 0x5c]
lea ecx, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 1
push dword [ebp + 8]
call fcn.00510ecb
lea ecx, [ebp - 0x1c]
call fcn.00510d48
and byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
mov ebx, eax
call fcn.00510d3a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00509f90
push edi
push 0
push dword [ebp + 0xc]
mov ecx, esi
push ebx
call fcn.0050ed14
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x4e060a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x53ff98
call fcn.004eec88
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x48]
mov ebx, dword [esi + 0x44]
call fcn.005245be
cmp dword [esi + 0x40], 0
je 0x4e064b
call fcn.005245be
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4e0658
push ebx
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
test edi, edi
jne 0x4e0664
or eax, 0xffffffff
jmp 0x4e06e6
call fcn.0042e317
xor ebx, ebx
cmp eax, ebx
jle 0x4e0672
mov dword [esi + 0x5c], eax
cmp dword [esi + 0x5c], ebx
jle 0x4e06d9
mov eax, dword [0x5927d4]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x10]
push eax
push edi
mov dword [ebp - 0x14], ebx
call fcn.00510e5c
add esp, 0xc
test eax, eax
je 0x4e06cd
push edi
lea ecx, [ebp - 0x20]
call fcn.00510cab
mov ax, word [esi + 0x5c]
lea ecx, [ebp - 0x20]
push eax
mov byte [ebp - 4], 1
push dword [ebp - 0x10]
call fcn.00510ecb
lea ecx, [ebp - 0x20]
call fcn.00510d48
and byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
mov edi, eax
call fcn.00510d3a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00509f90
mov ecx, esi
mov dword [esi + 0x48], edi
mov dword [esi + 0x40], ebx
call fcn.0050f067
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4e5873
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x540618
call fcn.004eec88
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
mov eax, ebx
push esi
mov esi, ecx
push edi
shr eax, 0x10
test ax, ax
mov dword [esi + 0x40], ebx
jne 0x4e58a1
cmp dword [esi + 0x3c], 0
jne 0x4e58a1
movzx eax, bx
mov dword [esi + 0x3c], eax
call fcn.005245be
mov edi, dword [eax + 0xc]
push 5
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x4e58cc
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4e58d4
or eax, 0xffffffff
jmp 0x4e5960
call fcn.0042e317
xor ecx, ecx
cmp eax, ecx
jle 0x4e58e5
mov dword [esi + 0x8c], eax
cmp dword [esi + 0x8c], ecx
jle 0x4e5952
mov eax, dword [0x5927d4]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], ecx
push eax
lea eax, [ebp + 8]
push eax
push ebx
mov dword [ebp - 0x10], ecx
call fcn.00510e5c
add esp, 0xc
test eax, eax
je 0x4e5946
push ebx
lea ecx, [ebp - 0x1c]
call fcn.00510cab
mov ax, word [esi + 0x8c]
lea ecx, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 1
push dword [ebp + 8]
call fcn.00510ecb
lea ecx, [ebp - 0x1c]
call fcn.00510d48
and byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
mov ebx, eax
call fcn.00510d3a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00509f90
push edi
push 0
push dword [ebp + 0xc]
mov ecx, esi
push ebx
call fcn.0050ed14
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x4e5971
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x540634
call fcn.004eec88
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x40], 0
mov edi, dword [esi + 0x48]
mov ebx, dword [esi + 0x44]
je 0x4e59af
call fcn.005245be
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov ebx, eax
jmp 0x4e59b4
call fcn.005245be
test ebx, ebx
je 0x4e59c1
push ebx
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
test edi, edi
jne 0x4e59cd
or eax, 0xffffffff
jmp 0x4e5a58
call fcn.0042e317
xor ebx, ebx
cmp eax, ebx
jle 0x4e59de
mov dword [esi + 0x8c], eax
cmp dword [esi + 0x8c], ebx
jle 0x4e5a4b
mov eax, dword [0x5927d4]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x10]
push eax
push edi
mov dword [ebp - 0x14], ebx
call fcn.00510e5c
add esp, 0xc
test eax, eax
je 0x4e5a3f
push edi
lea ecx, [ebp - 0x20]
call fcn.00510cab
mov ax, word [esi + 0x8c]
lea ecx, [ebp - 0x20]
push eax
mov byte [ebp - 4], 1
push dword [ebp - 0x10]
call fcn.00510ecb
lea ecx, [ebp - 0x20]
call fcn.00510d48
and byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
mov edi, eax
call fcn.00510d3a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00509f90
mov ecx, esi
mov dword [esi + 0x48], edi
mov dword [esi + 0x40], ebx
call fcn.0050f067
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4f1613
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4f1633
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.004f2cef
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4f1656
test byte [esp + 8], 2
je 0x4f1656
call fcn.004f2d62
mov dword [eax], 0xd
call fcn.004f2d6b
mov dword [eax], 5
jmp 0x4f162f
xor eax, eax
ret
Function at 0x504660
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.004eef30
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x50472b
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 0x50472b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x5046de
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x5046e9
or bh, 8
and edi, 0x8000000
je 0x504704
mov eax, dword [0x5e80fc]
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 0x50472b
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 0x504b00
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 0x504b2b
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 0x504b4f
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 0x504b6a
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 0x50b6c7
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x50b6ff
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.0050a437
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0050a40f
jmp 0x50b70b
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x50b70f
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x5b4350
mov ecx, edi
call fcn.0050a119
cmp dword [esi + 0x34], 0
push dword [esp + 0xc]
jne 0x50b762
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x50b775
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.0050a437
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.0050a40f
jmp 0x50b775
mov ecx, esi
call fcn.0050e17d
test eax, eax
je 0x50b775
push edi
mov ecx, eax
call fcn.0050b6c7
mov eax, dword [edi]
pop edi
pop esi
mov eax, dword [eax - 8]
ret 8

Function at 0x50d2fa
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 0x50d33c
call fcn.005245be
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
cmp eax, edi
je 0x50d33c
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, edi
jne 0x50d333
xor eax, eax
jmp 0x50d344
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0050d34a
pop edi
pop esi
pop ebx
ret 4

Function at 0x50eca2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x50ecc4
cmp dword [edi + 0x3c], 0
jne 0x50ecc4
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.005245be
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.0050ecf1
pop edi
pop esi
pop ebx
ret 8

Function at 0x50ed3f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.005245be
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x50ed70
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.0050ed83
pop edi
pop esi
pop ebx
ret 8
Function at 0x522469
Capabilities:
Create http request

Disassembly:
mov eax, 0x541b04
call fcn.004eec88
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x5224a1
call fcn.005245be
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x5224c6
push eax
push dword [esi + 4]
call fcn.00523216
jmp 0x5224d2
push esi
push eax
mov ecx, 0x5b6068
call fcn.005224e3
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18

Function at 0x522643
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x541b3f
call fcn.004eec88
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.00511112
mov eax, dword [0x5927d4]
lea ebx, [esi + 0x24]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebx], eax
mov eax, dword [ebp + 0x10]
mov dword [esi], vtable.CInternetFile.0
mov ecx, 0x5b6068
mov byte [ebp - 4], 1
push dword [eax + 0xc]
push dword [ebp + 8]
call fcn.005224e3
push dword [ebp + 0xc]
lea ecx, [esi + 0xc]
call fcn.0050a119
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 8]
mov dword [esi + 0x1c], eax
lea eax, [ebp + 0x10]
push eax
call fcn.004e8c1e
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.0050a0c9
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 1
call fcn.00509f90
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x523ddd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.005245be
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
test eax, eax
je 0x523e1a
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x523e1a
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov esi, eax
test esi, esi
jne 0x523e1e
xor eax, eax
jmp 0x523e9c
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.00509cd1
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x523e56
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x523e40
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.00523f8d
push ebx
mov edi, eax
call fcn.00509cfa
test edi, edi
pop ecx
je 0x523e98
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.00523d56
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.00523ea1
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4

Function at 0x525ddc
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 0x525e0a
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
test eax, eax
je 0x525e28
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00525d42
jmp 0x525e28
mov eax, dword [esi + 0x14]
test eax, eax
je 0x525e28
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00525d42
test edi, edi
mov eax, edi
jne 0x525e12
pop edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x7a49a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c30d8
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.0079f8a0
test eax, eax
jne 0x7a4a0c
push ebp
push 0x61bfa0
mov ecx, edi
call fcn.007a3c20
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.0079f2d0
lea ecx, [esp + 0x2c]
mov esi, eax
call fcn.00791190
push ebx
mov dword [esp + 0x4c], ebp
call fcn.0079fa50
add esp, 4
test eax, eax
je 0x7a4aaf
add esi, 0x18
push esi
call fcn.00791b70
add esi, eax
push esi
call fcn.00791b70
mov ecx, dword [esp + 0x60]
add esp, 8
cmp ecx, 3
lea eax, [esi + eax + 8]
ja 0x7a4db2
jmp dword [ecx*4 + 0x45edf0]
mov eax, dword [esi]
push ebp
push eax
mov ecx, edi
call fcn.007a3d60
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.00791b70
add esi, eax
push esi
call fcn.00791b70
add esi, eax
add esp, 8
mov esi, dword [esi]
test esi, esi
je 0x7a4b00
mov ecx, dword [esi + 0x1c]
push ecx
call dword [0x4c7598]
test eax, eax
je 0x7a4b00
mov eax, 1
jmp 0x7a4b02
xor eax, eax
cmp ebx, 8
jge 0x7a4d67
cmp ebx, 7
ja 0x7a4db2
jmp dword [ebx*4 + 0x45ee00]
test eax, eax
jne 0x7a4d7a
mov ecx, dword [esp + 0x10]
push eax
push 0x61bf8c
call fcn.007a3c20
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.007a52c0
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], 0x603810
call fcn.00791390
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 0x7ad9c0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x633ec0]
xor edx, edx
cmp eax, edx
jne 0x7ad9e6
xor eax, eax
mov byte [eax + 0x633dc0], al
inc eax
cmp eax, 0x100
jl 0x7ad9ce
mov dword [0x633ec0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x633dc0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x7ada77
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 0x7ada4a
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 0x7ada18
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x7adaf0
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 0x7adb43
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 0x7adb2a
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