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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
test byte [esi + 4], 1
push edi
mov dword [ebp - 4], ebx
je 0x4908ce
mov edi, dword [esi + 0xc]
jmp 0x49090e
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4908e7
call fcn.00489e0a
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4908fc
call fcn.00489e0a
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x49090e
call fcn.00489e0a
call fcn.0048e2ab
cmp dword [eax + 0x3c], 0
je 0x490923
push edi
mov ecx, ebx
call fcn.004901d0
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.00490ae6
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x7c]
test ecx, ecx
je 0x490946
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x7c], 0
test ebx, ebx
je 0x49094f
mov edi, ebx
mov dword [eax + 0x7c], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x49314d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov esi, edi
mov eax, ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], esi
je 0x493197
call fcn.0048e2ab
mov ebx, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x493194
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x4931d0
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov eax, dword [ebp - 4]
xor ebx, ebx
inc ebx
test edi, edi
je 0x4931b9
push dword [ebp + 0x10]
mov edx, dword [eax]
push edi
push dword [ebp + 8]
mov ecx, eax
call dword [edx + 0x20]
mov ebx, eax
test esi, esi
je 0x4931b9
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x68]
test ecx, ecx
je 0x4931ce
mov eax, dword [ecx]
push dword [ebp + 0x10]
call dword [eax + 0xa0]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4a1399
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x65a000]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x20], eax
mov eax, dword [0x6f677c]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], ebx
test eax, eax
jne 0x4a13f2
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4a140f
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov dword [0x6f677c], eax
jmp 0x4a13fb
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x4a140f
mov eax, dword [ebp - 0x20]
push ebx
push edi
push eax
push dword [ebp + 8]
call esi
jmp 0x4a154c
mov eax, dword [ebp - 0x20]
and dword [eax], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ecx, ax
mov ebx, ecx
push 7
lea eax, [ebp - 0x14]
and ecx, 0xfc00
and ebx, 0x3ff
push eax
or ecx, ebx
push ecx
call fcn.005bf1da
lea eax, [ebp - 0x14]
push eax
call fcn.005a77ca
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push dword [eax]
push edi
call fcn.005a9294
push 7
lea eax, [ebp - 0x14]
push eax
push ebx
lea edi, [esi + 1]
call fcn.005bf1da
lea eax, [ebp - 0x14]
push eax
call fcn.005a77ca
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.005a9294
add esp, 0x38
add edi, esi
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx ecx, ax
mov ebx, ecx
push 7
lea eax, [ebp - 0x14]
and ecx, 0xfc00
and ebx, 0x3ff
push eax
or ecx, ebx
push ecx
call fcn.005bf1da
lea eax, [ebp - 0x14]
push eax
call fcn.005a77ca
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.005a9294
push 7
lea eax, [ebp - 0x14]
push eax
push ebx
add edi, esi
call fcn.005bf1da
lea eax, [ebp - 0x14]
push eax
call fcn.005a77ca
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
mov ebx, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
sub ecx, edi
push ecx
lea ecx, [ebx + edi*2]
push ecx
call fcn.005a9294
push 7
lea eax, [ebp - 0x14]
push eax
push 0x800
add edi, esi
call fcn.005bf1da
add esp, 0x44
lea eax, [ebp - 0x14]
push eax
call fcn.005a77ca
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
sub ecx, edi
push ecx
lea ecx, [ebx + edi*2]
push ecx
call fcn.005a9294
lea eax, [edi + esi]
xor ecx, ecx
mov word [ebx + eax*2 + 2], cx
xor eax, eax
add esp, 0x10
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005a4646
leave
ret
Function at 0x4c9325
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test esi, esi
jne 0x4c933d
call fcn.0048e2ab
mov esi, dword [eax + 0xc]
push 0x5e2164
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x4c9393
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4c9392
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x4c9373
xor esi, esi
jmp 0x4c9389
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push dword [ebp + 0xc]
call fcn.004c9399
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x537f7b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
xchg ebx, esi
dec esp
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x3c]
add esi, edi
mov ebx, dword [esi + 0x78]
call fcn.00537e79
and eax, dword [esi]
lds esi, [ebx + 0x67e85356]
invalid
mov ebx, dword [esi + edi + 0x24]
add esi, edi
add ebx, edi
call fcn.00537e79
jo 0x537f34
inc ecx
pop ecx
mov eax, dword [esi + 0x20]
add eax, edi
mov edi, dword [esi + 0x1c]
add edi, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
shr eax, 0x10
test ax, ax
je 0x53801b
and dword [ebp - 4], 0
mov eax, dword [edi]
pop es
mov dword [ebp - 0x10], eax
call fcn.00537e79
cmp eax, 0x83a044a1
jge 0x537faa
add byte [ebx + eax*2 - 0x75], dh
inc ebp
in al, dx
and dword [ebp - 0x10], 0
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
movzx eax, word [eax]
cmp eax, dword [ebp - 4]
jne 0x537fec
mov eax, dword [ebp - 0xc]
push dword [ebp + 0xc]
mov eax, dword [eax]
add eax, dword [ebp + 8]
push eax
call fcn.00537e0f
pop ecx
test eax, eax
pop ecx
je 0x538013
mov eax, dword [esi + 0x18]
inc dword [ebp - 0x10]
add dword [ebp - 8], 2
add dword [ebp - 0xc], 4
dec eax
cmp dword [ebp - 0x10], eax
jbe 0x537fca
mov eax, dword [esi + 0x14]
inc dword [ebp - 4]
dec eax
cmp dword [ebp - 4], eax
jbe 0x537fa9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp - 4]
mov eax, dword [edi + eax*4]
jmp 0x538050
xor ebx, ebx
mov dword [ebp - 0x10], edi
mov eax, dword [esi + 0x10]
add eax, ebx
cmp dword [ebp + 0xc], eax
jne 0x53803b
call fcn.00537e79
push edi
leave
mov byte [esi], bh
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
jne 0x53804a
mov eax, dword [esi + 0x14]
add dword [ebp - 0x10], 4
inc ebx
dec eax
cmp ebx, eax
jbe 0x538020
jmp 0x53800c
mov eax, dword [edi + ebx*4]
shl eax, 6
add eax, dword [ebp + 8]
jmp 0x53800e
Function at 0x5380ae
Capabilities:
Contain obfuscated stackstrings

Disassembly:
aaa
mov ax, word [edi + 6]
cmp ax, bx
jbe 0x5380d3
lea ecx, [esi + 0xc]
movzx edx, ax
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
add eax, esi
cmp dword [ebp - 8], eax
jae 0x5380cd
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x5380be
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], 0x58
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.00537e79
scasb al, byte es:[edi]
xchg bl, al
or dword [ebp - 0x17af57bb], 0xfffffd5f
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.00537e3e
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x538167
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.00537e79
invalid
Function at 0x538b63
Capabilities:
Contain obfuscated stackstrings

Disassembly:
cmp dword [ebp + 0xc], 1
je 0x538d37
cmp dword [ebp + 0xc], 8
jne 0x538cff
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
mov byte [ebp - 0x6b4], 0x33
mov byte [ebp - 0x6b3], 0x16
mov byte [ebp - 0x6b2], 0xd
mov byte [ebp - 0x6b1], 0x10
mov byte [ebp - 0x6b0], 1
mov byte [ebp - 0x6af], 0x34
mov byte [ebp - 0x6ae], 0x16
stc
invalid
call dword [esi]
mov byte [ebp - 0x6ad], 0xb
mov byte [ebp - 0x6ac], 7
mov byte [ebp - 0x6ab], 1
mov byte [ebp - 0x6aa], 0x17
stc
invalid
call dword [edi]
mov byte [ebp - 0x6a9], 0x17
mov byte [ebp - 0x6a8], 0x29
mov byte [ebp - 0x6a7], 1
mov byte [ebp - 0x6a6], 9
invalid
test dword [ebx - 7], ebx
invalid

Function at 0x575a13
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00539d77
Function at 0x5ba07d
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x65a000]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.005acd22
mov dword [ebp - 0x14], eax
cmp dword [0x6faed4], edi
jne 0x5ba16e
push 0x800
push edi
push 0x607f10
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x5ba0fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x5ba24e
push 0x607f10
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x5ba24e
push 0x607f28
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5ba24e
push eax
call ebx
push 0x607f34
push esi
mov dword [0x6faed4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x607f44
push esi
mov dword [0x6faed8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x6faedc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x6faee4], eax
test eax, eax
je 0x5ba16b
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x6faee0], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x5ba193
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x5ba186
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x5ba1a8
push 4
pop eax
jmp 0x5ba250
cmp dword [ebp - 0x14], edi
je 0x5ba1a8
push dword [0x6faed4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x5ba18d
mov eax, dword [0x6faee0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x5ba206
cmp dword [0x6faee4], esi
je 0x5ba206
push eax
call ebx
push dword [0x6faee4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x5ba206
test eax, eax
je 0x5ba206
call ecx
test eax, eax
je 0x5ba1fb
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x5ba1fb
test byte [ebp - 8], 1
jne 0x5ba206
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x5ba236
mov eax, dword [0x6faed8]
cmp eax, esi
je 0x5ba233
push eax
call ebx
test eax, eax
je 0x5ba233
call eax
mov edi, eax
test edi, edi
je 0x5ba233
mov eax, dword [0x6faedc]
cmp eax, esi
je 0x5ba233
push eax
call ebx
test eax, eax
je 0x5ba233
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x6faed4]
call ebx
test eax, eax
je 0x5ba24e
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x5ba250
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005a4646
leave
ret
Function at 0x1000c134
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x1000c16f
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x1000c156
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x1000c167
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x1000c171
inc edi
add eax, 0x28
cmp edi, esi
jb 0x1000c14c
xor eax, eax
pop edi
pop esi
ret
Function at 0x10010f50
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x100
push ebx
push esi
push edi
push ebp
push ecx
call fcn.1002f910
add esp, 4
test eax, eax
jge 0x10010f75
mov eax, 0xfffffff3
jmp 0x10011102
mov eax, dword [0x1004a4ac]
mov ecx, dword [esp + 0x114]
mov edx, dword [eax + ecx*4]
mov ebp, dword [edx + 0x2c]
mov ax, word [ebp + 0xe]
cmp ax, 4
jg 0x10010f9e
cmp dword [0x1004e2f4], 0
jne 0x10011100
cmp ax, 1
jne 0x10010fbc
mov eax, dword [0x1004e2fc]
sub eax, 2
cmp eax, 1
sbb ebx, ebx
and ebx, 0xfe
add ebx, 2
jmp 0x10010fd2
sub ax, 4
cmp ax, 1
sbb ebx, ebx
and ebx, 0xffffff10
add ebx, 0x100
lea esi, [ebp + 0x28]
lea eax, [ebx + ebx*2]
push eax
call fcn.100365b0
add esp, 4
mov edi, eax
test edi, edi
jne 0x10010ff1
mov eax, 0xffffffff
jmp 0x10011102
cmp dword [0x1004e2fc], 2
jne 0x10011024
cmp word [ebp + 0xe], 1
jne 0x10011024
xor eax, eax
xor ecx, ecx
test ebx, ebx
jle 0x100110dd
mov byte [edi + eax], cl
inc eax
inc eax
mov byte [edi + eax - 1], cl
mov byte [edi + eax], cl
inc eax
inc ecx
cmp ecx, ebx
jl 0x1001100d
jmp 0x100110dd
mov ax, word [ebp + 0xe]
cmp ax, 0x18
je 0x10011037
cmp dword [0x1004e2f4], 0
je 0x10011093
cmp ax, 4
je 0x10011093
xor ebp, ebp
xor esi, esi
mov eax, esi
mov cl, 0x55
and al, 3
inc ebp
imul cl
mov byte [edi + ebp - 1], al
inc ebp
mov eax, esi
inc ebp
and eax, 0x1c
shr eax, 2
mov ecx, eax
shl eax, 8
sub eax, ecx
mov ecx, 7
cdq
idiv ecx
mov byte [edi + ebp - 2], al
mov eax, esi
and eax, 0xe0
inc esi
shr eax, 5
mov ecx, eax
shl eax, 8
sub eax, ecx
mov ecx, 7
cdq
idiv ecx
mov byte [edi + ebp - 1], al
cmp esi, 0x100
jl 0x10011041
jmp 0x100110dd
lea eax, [esp + 0x10]
mov ecx, dword [esp + 0x114]
push eax
push ecx
call fcn.100250e0
add esp, 8
xor edx, edx
test ebx, ebx
jle 0x100110dd
mov eax, ebx
xor ecx, ecx
inc edx
mov cl, byte [esi]
inc edx
inc edx
add esi, 4
mov cl, byte [esp + ecx + 0x10]
dec eax
mov byte [edi + edx - 3], cl
movzx ebp, byte [esi - 3]
mov cl, byte [esp + ebp + 0x10]
mov byte [edi + edx - 2], cl
movzx ebp, byte [esi - 2]
mov cl, byte [esp + ebp + 0x10]
mov byte [edi + edx - 1], cl
jne 0x100110b0
mov eax, dword [esp + 0x118]
mov ecx, dword [esp + 0x114]
push eax
push ebx
push edi
push ecx
call fcn.10036280
add esp, 0x10
push edi
call fcn.10036640
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x100
ret 8
Function at 0x10025410
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0x1c]
sub esp, 4
mov edx, dword [esp + 0xc]
push ebx
mov bx, word [edx]
push esi
push edi
push ebp
mov edi, dword [esp + 0x2c]
add edi, eax
cmp bx, di
jae 0x100254aa
mov esi, dword [esp + 0x20]
test eax, eax
mov dword [esp + 0x10], esi
je 0x10025457
xor ecx, ecx
cmp bx, ax
jae 0x1002544b
add edx, 2
xor ecx, 1
cmp word [edx], ax
jb 0x10025440
test ecx, ecx
je 0x10025457
mov word [esi], 0
add esi, 2
xor ebx, ebx
cmp word [edx], di
jae 0x1002548c
and eax, 0xffff
xor ebp, ebp
add edx, 2
mov bp, word [edx - 2]
add esi, 2
sub ebp, eax
imul ebp, dword [esp + 0x28]
lea ecx, [ebp + ebx]
mov ebx, ecx
sar ebx, 0x10
mov word [esi - 2], bx
mov ebx, ebp
sub ebx, ecx
cmp word [edx], di
jb 0x10025463
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
mov word [esi], cx
push eax
mov word [esi + 2], cx
mov edx, dword [esp + 0x14]
push edx
push ecx
call fcn.10034f03
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret

Function at 0x100254c0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0x1c]
sub esp, 4
mov edx, dword [esp + 0xc]
push ebx
mov bx, word [edx]
push esi
push edi
push ebp
mov edi, dword [esp + 0x2c]
add edi, eax
cmp bx, di
jae 0x1002559d
mov esi, dword [esp + 0x20]
test eax, eax
mov dword [esp + 0x10], esi
je 0x1002550b
xor ecx, ecx
cmp bx, ax
jae 0x100254ff
add edx, 2
xor ecx, 1
cmp word [edx], ax
jb 0x100254f4
test ecx, ecx
je 0x1002550b
mov word [esi], 0
add esi, 2
xor ebx, ebx
cmp word [edx], di
jae 0x10025540
and eax, 0xffff
xor ebp, ebp
add edx, 2
mov bp, word [edx - 2]
add esi, 2
sub ebp, eax
imul ebp, dword [esp + 0x28]
lea ecx, [ebp + ebx]
mov ebx, ecx
sar ebx, 0x10
mov word [esi - 2], bx
mov ebx, ebp
sub ebx, ecx
cmp word [edx], di
jb 0x10025517
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x34]
mov word [esi], cx
cmp eax, 0x5a
mov word [esi + 2], cx
jne 0x10025579
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x14]
push edx
push ebx
push eax
push ecx
call fcn.10035107
add esp, 0x14
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp eax, 0x10e
jne 0x1002559d
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x14]
push edx
push ebx
push eax
push ecx
call fcn.100350a2
add esp, 0x14
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x100255b0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [esp + 0x2c]
push edi
mov ebx, dword [esp + 0x1c]
push ebp
mov bp, word [ebx]
add dword [esp + 0x30], esi
cmp bp, word [esp + 0x30]
jae 0x10025716
mov eax, dword [0x1004d9ec]
mov ecx, 0x64
shl eax, 0x10
xor edi, edi
cdq
idiv ecx
mov edx, dword [esp + 0x24]
test esi, esi
mov dword [esp + 0x14], edx
je 0x10025611
cmp bp, si
jae 0x100255ff
add ebx, 2
xor edi, 1
cmp word [ebx], si
jb 0x100255f4
test edi, edi
je 0x10025611
mov ecx, dword [esp + 0x24]
add dword [esp + 0x24], 2
mov word [ecx], 0
mov dx, word [esp + 0x30]
xor ebp, ebp
xor ecx, ecx
cmp word [ebx], dx
jae 0x1002568f
mov edx, esi
and edx, 0xffff
mov dword [esp + 0x10], edx
xor esi, esi
add ebx, 2
mov si, word [ebx - 2]
sub esi, dword [esp + 0x10]
imul esi, dword [esp + 0x2c]
test edi, edi
je 0x10025662
mov edx, esi
sar edx, 0x10
cmp edx, ebp
jg 0x10025662
mov edx, esi
and edx, 0xffff
add edx, eax
cmp edx, 0x10000
jb 0x10025662
add esi, 0x10000
lea edx, [esi + ecx]
xor edi, 1
mov ecx, edx
sar ecx, 0x10
mov ebp, ecx
mov ecx, dword [esp + 0x24]
and ebp, 0xffff
add dword [esp + 0x24], 2
mov word [ecx], bp
mov ecx, esi
sub ecx, edx
mov dx, word [esp + 0x30]
cmp word [ebx], dx
jb 0x1002562b
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov word [ecx], dx
mov eax, dword [esp + 0x38]
mov word [ecx + 2], dx
test eax, eax
je 0x10025703
cmp eax, 0xb4
je 0x10025703
cmp eax, 0x5a
jne 0x100256d7
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x18]
push ecx
push ebx
push eax
push edx
call fcn.100351ce
add esp, 0x14
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret
cmp eax, 0x10e
jne 0x10025716
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x18]
push ecx
push ebx
push eax
push edx
call fcn.1003516c
add esp, 0x14
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
push eax
push ecx
push edx
call fcn.10034f03
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x10025720
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0x14]
push ebx
push esi
push edi
mov esi, dword [esp + 0x1c]
push ebp
add esi, ecx
test ecx, ecx
je 0x10025774
xor eax, eax
mov edx, dword [esp + 0x14]
cmp word [edx], cx
jae 0x10025748
add edx, 2
xor eax, 1
cmp word [edx], cx
jb 0x1002573d
test eax, eax
je 0x10025778
xor eax, eax
add edx, 2
mov ax, word [edx - 2]
mov edi, dword [esp + 0x18]
cmp ecx, eax
jge 0x1002577c
lea ebp, [edi + ecx*4]
sub eax, ecx
mov ebx, dword [esp + 0x1c]
mov ecx, dword [ebp]
add ebp, 4
inc byte [ecx + ebx]
dec eax
jne 0x10025766
jmp 0x10025780
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
cmp word [edx], si
jae 0x100257b5
xor ecx, ecx
add edx, 2
mov cx, word [edx - 2]
xor ebp, ebp
mov bp, word [edx]
add edx, 2
cmp esi, ebp
jge 0x1002579c
mov ebp, esi
cmp ebp, ecx
jle 0x100257b0
lea eax, [edi + ecx*4]
sub ebp, ecx
mov ecx, dword [eax]
add eax, 4
inc byte [ecx + ebx]
dec ebp
jne 0x100257a5
cmp word [edx], si
jb 0x10025785
pop ebp
pop edi
pop esi
pop ebx
ret