joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4623f0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x50017b
push eax
mov eax, dword [0x55f988]
mov dword fs:[0], esp
sub esp, 0x80
push esi
xor esi, esi
cmp eax, esi
jne 0x46242f
xor eax, eax
pop esi
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
add esp, 0x8c
ret
mov eax, dword [0x55a6f0]
push edi
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x44]
rep stosd dword es:[edi], eax
mov ecx, 9
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x90], esi
push eax
call fcn.00471940
mov ecx, dword [esp + 0x98]
mov eax, dword [ecx + 0xc]
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ecx
mov esi, dword [eax + 4]
mov word [esp + 0x28], si
mov ecx, dword [eax + 8]
mov word [esp + 0x2a], cx
mov dword [esp + 0x30], 1
movsx eax, word [eax + 0xc]
cdq
and edx, 7
add eax, edx
mov ecx, eax
sar ecx, 3
movsx eax, si
movsx edx, cx
imul eax, edx
add eax, 3
lea ecx, [esp + 0x20]
cdq
and edx, 3
mov dword [esp + 0x70], ecx
add eax, edx
lea edx, [esp + 0x44]
sar eax, 2
shl eax, 2
push edx
mov word [esp + 0x30], ax
call fcn.004716d0
mov esi, dword [esp + 0x6c]
lea ecx, [esp + 8]
call fcn.004dc882
lea ecx, [esp + 0xc]
mov dword [esp + 0x90], 0xffffffff
call fcn.004dc882
mov ecx, dword [esp + 0x88]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x8c
ret
Function at 0x465410
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x50023e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 0x10], esi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x24], edi
mov eax, dword [0x55a6f0]
lea ebp, [esi + 0x38]
mov dword [ebp], eax
mov ecx, dword [0x55a6f0]
mov dword [esp + 0x34], edi
mov dword [esi + 0x3c], ecx
mov ebx, 1
mov ecx, esi
mov byte [esp + 0x34], bl
mov dword [esi], 0x50b68c
mov dword [esi + 0x18], edi
mov dword [esi + 8], edi
mov dword [esi + 4], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x20], 0xffffffff
call fcn.0045e4f0
push 0x55eb24
mov ecx, ebp
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
call fcn.004dca0b
mov dword [esi + 0x2c], edi
mov edx, dword [0x55a6f0]
mov dword [esi + 0x64], edx
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x34], 2
cmp eax, edi
mov dword [esi], 0x50b59c
mov dword [esi + 0x20], 0xffffffff
mov dword [esi + 0x1c], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x24], edi
je 0x465521
mov ebx, dword [eax + 4]
lea eax, [esp + 0x14]
push eax
push 0x18
push ebx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push 0xffffffffffffffff
push 0x18
push ecx
push edx
mov ecx, esi
call fcn.0045da60
push edi
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 8]
mov ebp, eax
mov eax, dword [esi + 0x1c]
push edi
push eax
push ecx
push edx
push edi
push ebx
push ebp
call dword [sym.imp.GDI32.dll_GetDIBits]
push ebp
push edi
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [esp + 0x2c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 4
Function at 0x469370
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x553948]
sub esp, 0x108
cmp eax, 2
jl 0x46938c
mov eax, 1
add esp, 0x108
ret
push esi
lea eax, [esp + 4]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
test eax, eax
je 0x4693c5
cmp byte [esp + eax + 3], 0x3a
je 0x4693c5
lea edx, [esp + 4]
push 0x551500
push edx
call esi
lea eax, [esp + 4]
push str.TWAIN_32.DLL
push eax
call esi
lea ecx, [esp + 0x84]
push 0x4000
lea edx, [esp + 8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_OpenFile]
cmp eax, 0xffffffff
pop esi
je 0x46942e
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x56b4ac], eax
je 0x469438
push str.DSM_Entry
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x56b828], eax
je 0x469457
push 2
mov dword [0x56b4b0], 1
call fcn.0046b010
add esp, 4
jmp 0x469442
mov dword [0x56b4ac], 0
mov dword [0x56b828], 0
mov ecx, dword [0x553948]
xor eax, eax
cmp ecx, 2
setge al
add esp, 0x108
ret
mov ecx, dword [0x56b4ac]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x56b4ac], 0
jmp 0x469442

Function at 0x469f80
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
sub esp, 0x400
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x46a02a
mov edx, dword [esp + 0x404]
lea eax, [esp]
mov cl, byte [edx]
test cl, cl
je 0x469fbe
inc edx
cmp cl, 0xa
jne 0x469fb5
mov byte [eax], 0xd
inc eax
mov byte [eax], cl
jmp 0x469fb7
mov byte [eax], cl
mov cl, byte [edx]
inc eax
test cl, cl
jne 0x469fa7
push ebx
push edi
mov byte [eax], 0
lea edi, [esp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x46a022
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
test edx, edx
je 0x46a022
lea edi, [esp + 8]
or ecx, 0xffffffff
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
pop esi
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebx
add esp, 0x400
ret
Function at 0x46ab00
Capabilities:
Print debug messages

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x10]
push edi
xor edi, edi
cmp esi, 2
mov word [0x56b6cc], 1
jne 0x46ab4d
cmp dword [esp + 0x18], 0x103
jne 0x46ab4d
cmp ebp, 1
jne 0x46ab4d
test ebx, ebx
je 0x46ab4d
or eax, 0xffffffff
mov word [ebx], 0xffff
mov dword [ebx + 2], eax
mov dword [ebx + 6], eax
mov dword [ebx + 0xa], eax
mov dword [ebx + 0xe], eax
mov dword [ebx + 0x12], eax
mov dword [ebx + 0x16], eax
mov eax, dword [0x56b828]
test eax, eax
je case.0x46ad03.2
mov eax, dword [0x56b4b8]
test eax, eax
je 0x46ab6e
push str.___blocked_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esp + 0x18]
mov edx, dword [0x56b4b8]
push ebx
push ebp
push eax
push esi
inc edx
push 0x56b788
push 0x553950
mov dword [0x56b4b8], edx
call dword [0x56b828]
mov edi, dword [0x56b4b8]
xor ecx, ecx
dec edi
mov word [0x56b6cc], ax
test ax, ax
sete cl
mov dword [0x56b4b8], edi
cmp esi, 1
mov edi, ecx
jne 0x46acd3
mov edx, dword [esp + 0x18]
lea ecx, [edx - 2]
cmp ecx, 7
ja case.0x46ad03.2
jmp dword [ecx*4 + 0x46ad90]
cmp ebp, 0x601
jne case.0x46ad03.2
cmp word [ebx + 4], 0x101
jne 0x46abf4
push 6
call fcn.0046b010
mov ax, word [0x56b6cc]
add esp, 4
xor ecx, ecx
cmp ax, 4
sete cl
mov edi, ecx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
cmp ebp, 0x701
jne 0x46ac35
test edi, edi
je case.0x46ad03.2
xor edx, edx
cmp word [ebx], dx
setne dl
add edx, 5
push edx
call fcn.0046b010
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
cmp ebp, 7
jne case.0x46ad03.2
test edi, edi
je case.0x46ad03.2
push 5
call fcn.0046b010
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
cmp ebp, 0x502
jne 0x46ac90
cmp ax, 1
push 5
jne 0x46ac7a
call fcn.0046b0c0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
call fcn.0046b010
add esp, 4
mov edi, 1
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
cmp ebp, 0x501
jne case.0x46ad03.2
test edi, edi
je case.0x46ad03.2
push 4
call fcn.0046b010
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
cmp ebp, 1
jne case.0x46ad03.2
test edi, edi
je case.0x46ad03.2
mov eax, edi
pop edi
pop esi
pop ebp
mov dword [0x56b4a0], 0
pop ebx
ret 0x10
cmp esi, 2
jne case.0x46ad03.2
mov ecx, dword [esp + 0x18]
cmp ecx, 0x104
je 0x46ad5f
cmp ecx, 0x105
je 0x46ad5f
cmp ecx, 0x103
jne case.0x46ad03.2
cmp ebp, 1
jne case.0x46ad03.2
movsx eax, ax
xor edi, edi
cmp eax, 6
ja case.0x46ad03.2
jmp dword [eax*4 + 0x46adb0]
mov edx, dword [0x56b4a0]
mov edi, 1
inc edx
mov dword [0x56b4a0], edx
push 7
call fcn.0046b010
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
mov esi, dword [0x56b4a0]
xor eax, eax
test esi, esi
setne al
add eax, 6
push eax
call fcn.0046b010
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
call fcn.00469730
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
cmp ebp, 1
jne case.0x46ad03.2
xor ecx, ecx
cmp ax, 6
movsx eax, ax
sete cl
cmp eax, 3
mov edi, ecx
je 0x46ad1c
cmp eax, 6
je 0x46ad1c
push 6
call fcn.0046b010
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
Function at 0x46f5f9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x46f651
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x55eb24
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x46f644
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x46f653
xor eax, eax
pop esi
leave
ret 4
Function at 0x46f870
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x50030e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.0046f780
xor ebx, ebx
lea ecx, [esi + 0x30]
mov dword [esp + 0x1c], ebx
call fcn.00471a10
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov dword [esi], 0x50bfd0
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], eax
mov ecx, dword [edi + 0x2c]
lea ebp, [esi + 4]
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x18], ebx
mov dword [esi + 0xc], ebx
mov dword [ebp], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x3c], ebx
mov edx, dword [edi + 0x2c]
push eax
mov ecx, dword [edx + 0x14]
mov dword [esi + 0x34], ecx
mov edx, dword [edi + 0x2c]
mov ecx, dword [edx + 0x1c]
mov dword [esi + 0x38], ecx
mov edx, dword [edi + 0x2c]
mov ecx, dword [edx + 0x18]
mov dword [esi + 0x48], ecx
mov edx, dword [edi + 0x2c]
mov ecx, dword [edx + 0x20]
mov dword [esi + 0x54], ebx
mov dword [esi + 0x4c], ecx
lea ecx, [esi + 0x30]
call fcn.00471aa0
mov eax, dword [edi + 0x30]
cmp eax, ebx
je 0x46f924
mov edx, dword [esp + 0x24]
mov ecx, esi
push edx
push 2
push eax
call fcn.0046fa90
cmp eax, ebx
je 0x46f924
mov dword [esi + 0x20], eax
jmp 0x46fa54
push 0xb10
call fcn.00471ed0
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, ebx
mov byte [esp + 0x1c], 1
je 0x46f947
mov ecx, eax
call fcn.00470580
jmp 0x46f949
xor eax, eax
cmp eax, ebx
mov byte [esp + 0x1c], bl
mov dword [esi + 8], eax
jne 0x46f960
mov dword [esi + 0x20], 6
jmp 0x46fa54
mov ecx, eax
call fcn.004707b0
test eax, eax
jne 0x46f977
mov dword [esi + 0x20], 6
jmp 0x46fa54
mov eax, dword [esi + 0x58]
cmp eax, ebx
je 0x46f987
mov ecx, dword [esi + 8]
push eax
call fcn.00470770
mov eax, dword [esi + 0x2c]
push ebp
push eax
lea ecx, [esi + 0x30]
mov dword [esi + 0x20], ebx
call fcn.00471ae0
cmp eax, ebx
mov dword [esi + 0x20], eax
jne 0x46fa54
push 0x3d0
call fcn.00471ed0
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, ebx
mov byte [esp + 0x1c], 2
je 0x46f9c5
mov ecx, eax
call fcn.00476be0
jmp 0x46f9c7
xor eax, eax
cmp eax, ebx
mov byte [esp + 0x1c], bl
mov dword [esi + 0xc], eax
jne 0x46f9db
mov dword [esi + 0x20], 6
jmp 0x46fa54
push eax
push edi
mov ecx, esi
call fcn.0046ff90
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [esi + 8]
mov ecx, dword [ebp]
mov dword [eax + 4], ecx
mov edx, dword [edi + 0x34]
push edx
lea ecx, [esi + 0x30]
call fcn.00471cf0
mov eax, dword [esi + 0x24]
mov ecx, dword [ebp]
fstp dword [esp + 0x24]
mov ax, word [eax + 0x38]
movsx edi, word [ecx + 0x54]
cmp ax, bx
jle 0x46fa2b
push eax
call fcn.00476b60
mov ecx, dword [ebp]
movsx eax, ax
push eax
call fcn.00472f50
push edi
mov ecx, esi
call fcn.0046ff40
fmul dword [esp + 0x24]
push ecx
mov ecx, dword [esi + 8]
fstp dword [esp]
call fcn.00470730
mov ecx, dword [esi + 8]
push edi
call fcn.00470810
mov ecx, dword [esi + 8]
call fcn.00470800
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x10
ret 8
Function at 0x476f10
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x7c
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 0x1a
xor eax, eax
lea edi, [esp + 0x24]
lea edx, [ebp + 0xc]
lea esi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov ecx, 0x1a
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x380]
mov ecx, dword [ebp + 0x384]
mov edi, dword [ebp + 0x398]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x394]
mov dword [esp + 0x20], edx
mov edx, dword [ebp + 0x390]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 4]
mov dword [esp + 0x14], edx
cmp eax, 2
jne 0x476f78
mov edx, dword [ebp + 0x388]
mov dword [esp + 0x10], edx
jmp 0x476f82
mov eax, dword [ebp + 0x38c]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x3b8]
xor ebx, ebx
test eax, eax
jle 0x476fb6
mov eax, ecx
cdq
xor eax, edx
sub eax, edx
and eax, 1
xor eax, edx
sub eax, edx
mov byte [esi], al
mov eax, ecx
cdq
sub eax, edx
inc esi
sar eax, 1
inc ebx
mov ecx, eax
mov eax, dword [ebp + 0x3b8]
movsx edx, bx
cmp edx, eax
jl 0x476f8e
mov ebx, dword [ebp + 0x3bc]
xor ecx, ecx
test ebx, ebx
jle 0x476fe4
mov eax, edi
cdq
xor eax, edx
sub eax, edx
and eax, 1
xor eax, edx
sub eax, edx
mov byte [esi], al
mov eax, edi
cdq
sub eax, edx
inc esi
sar eax, 1
inc ecx
mov edi, eax
movsx eax, cx
cmp eax, ebx
jl 0x476fc2
mov edi, dword [ebp + 0x3c0]
xor ecx, ecx
test edi, edi
jle 0x477018
mov eax, dword [esp + 0x10]
cdq
xor eax, edx
sub eax, edx
and eax, 1
xor eax, edx
sub eax, edx
mov byte [esi], al
mov eax, dword [esp + 0x10]
cdq
sub eax, edx
inc esi
sar eax, 1
inc ecx
mov dword [esp + 0x10], eax
movsx edx, cx
cmp edx, edi
jl 0x476ff0
mov edi, dword [ebp + 0x3c4]
xor ecx, ecx
test edi, edi
jle 0x47704c
mov eax, dword [esp + 0x14]
cdq
xor eax, edx
sub eax, edx
and eax, 1
xor eax, edx
sub eax, edx
mov byte [esi], al
mov eax, dword [esp + 0x14]
cdq
sub eax, edx
inc esi
sar eax, 1
inc ecx
mov dword [esp + 0x14], eax
movsx eax, cx
cmp eax, edi
jl 0x477024
mov edi, dword [ebp + 0x3c8]
xor ecx, ecx
test edi, edi
jle 0x477080
mov eax, dword [esp + 0x18]
cdq
xor eax, edx
sub eax, edx
and eax, 1
xor eax, edx
sub eax, edx
mov byte [esi], al
mov eax, dword [esp + 0x18]
cdq
sub eax, edx
inc esi
sar eax, 1
inc ecx
mov dword [esp + 0x18], eax
movsx edx, cx
cmp edx, edi
jl 0x477058
mov edi, dword [ebp + 0x3b4]
xor ecx, ecx
test edi, edi
jle 0x4770b4
mov eax, dword [esp + 0x1c]
cdq
xor eax, edx
sub eax, edx
and eax, 1
xor eax, edx
sub eax, edx
mov byte [esi], al
mov eax, dword [esp + 0x1c]
cdq
sub eax, edx
inc esi
sar eax, 1
inc ecx
mov dword [esp + 0x1c], eax
movsx eax, cx
cmp eax, edi
jl 0x47708c
lea esi, [ebp + 0x2b0]
push 0x68
push 4
mov ecx, esi
call fcn.0047f1a0
cmp dword [ebp + 0x2b4], 0x4c
je 0x4770d8
mov dword [ebp + 0x2ac], 1
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x24]
push ecx
push edx
mov ecx, esi
call fcn.0047f250
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov esi, 0x68
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
dec esi
jne 0x4770f6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret
Function at 0x4774c0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
mov edx, ecx
push ebx
push ebp
push esi
mov ebx, dword [edx + 8]
mov ebp, dword [edx + 4]
lea eax, [edx + 0x76]
push edi
mov dword [esp + 0x14], eax
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x14]
mov ecx, 6
rep stosd dword es:[edi], eax
mov ecx, dword [edx + 0x90]
xor edi, edi
test ecx, ecx
mov dword [esp + 0x10], edx
lea esi, [esp + 0x1c]
jle 0x477528
mov eax, ebx
cdq
xor eax, edx
sub eax, edx
and eax, 1
xor eax, edx
sub eax, edx
mov byte [esi], al
mov eax, ebx
cdq
sub eax, edx
inc esi
sar eax, 1
inc edi
mov ebx, eax
movsx edx, di
cmp edx, ecx
jl 0x477502
mov edx, dword [esp + 0x10]
mov edi, dword [edx + 0x94]
xor ecx, ecx
test edi, edi
jle 0x47755a
mov eax, ebp
cdq
xor eax, edx
sub eax, edx
and eax, 1
xor eax, edx
sub eax, edx
mov byte [esi], al
mov eax, ebp
cdq
sub eax, edx
inc esi
sar eax, 1
inc ecx
mov ebp, eax
movsx eax, cx
cmp eax, edi
jl 0x477534
mov edx, dword [esp + 0x10]
lea esi, [edx + 0x318]
push 0x18
push 2
mov ecx, esi
call fcn.0047f1a0
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x31c], 0xe
je 0x477582
mov dword [eax + 0x2ac], 1
lea ecx, [esp + 0x18]
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, esi
call fcn.0047f250
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov esi, 0x18
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
dec esi
jne 0x4775a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x4775c0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor eax, eax
lea edi, [esi + 0x318]
push 0x18
push 2
mov ecx, edi
lea ebx, [esi + 0x76]
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esp + 0x1c], eax
call fcn.0047f1a0
mov ebp, dword [esi + 0x31c]
lea eax, [esp + 0x12]
lea ecx, [esp + 0x18]
push eax
push ecx
push ebx
mov ecx, edi
call fcn.0047f410
test eax, eax
je 0x47761a
movsx edx, word [esp + 0x12]
mov dword [esi + 0x2a8], edx
mov dword [esp + 0x1c], 0
jmp 0x477659
mov eax, ebx
mov ecx, 0x18
mov dl, byte [eax]
xor dl, 1
mov byte [eax], dl
inc eax
dec ecx
jne 0x477621
lea eax, [esp + 0x12]
lea ecx, [esp + 0x18]
push eax
push ecx
push ebx
mov ecx, edi
call fcn.0047f410
test eax, eax
je 0x477746
movsx edx, word [esp + 0x12]
mov dword [esi + 0x2a8], edx
mov dword [esp + 0x1c], 1
xor ecx, ecx
test ebp, ebp
jle 0x477674
mov edi, dword [esp + 0x18]
xor eax, eax
mov dl, byte [edi + eax]
inc ecx
mov byte [esi + eax + 0x76], dl
movsx eax, cx
cmp eax, ebp
jl 0x477665
mov ebp, dword [esi + 0x90]
lea eax, [ebx + ebp]
xor ebx, ebx
test ebp, ebp
mov dword [esp + 0x20], eax
lea edi, [eax - 1]
jle 0x4776b4
mov ecx, dword [esi + 8]
xor eax, eax
shl ecx, 1
mov dword [esi + 8], ecx
mov al, byte [edi]
cdq
xor eax, edx
sub eax, edx
and eax, 1
xor eax, edx
sub eax, edx
add eax, ecx
dec edi
inc ebx
mov dword [esi + 8], eax
movsx eax, bx
cmp eax, ebp
jl 0x47768a
mov eax, dword [esp + 0x20]
mov ebx, dword [esi + 0x94]
xor edi, edi
test ebx, ebx
lea ecx, [ebx + eax - 1]
jle 0x4776e8
xor eax, eax
mov al, byte [ecx]
cdq
xor eax, edx
sub eax, edx
and eax, 1
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x14]
dec ecx
inc edi
lea eax, [eax + edx*2]
movsx edx, di
cmp edx, ebx
mov dword [esp + 0x14], eax
jl 0x4776c4
mov eax, dword [esp + 0x14]
mov dword [esi + 4], eax
mov eax, dword [esi + 8]
cmp eax, 1
jle 0x4776fe
mov dword [esi + 4], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x47770a
cmp eax, 5
jle 0x477727
mov cx, word [esi + 4]
mov dx, word [esi + 8]
mov word [esi + 0x3a6], cx
mov dword [esi + 4], 0
mov word [esi + 0x3a8], dx
mov eax, dword [esi + 4]
mov ecx, esi
push eax
call fcn.00476dc0
mov edx, dword [esp + 0x1c]
xor eax, eax
test edx, edx
setne al
inc eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov dword [esi + 0x2a8], 0x2710
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
Function at 0x47c230
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x8c
push ebx
push ebp
xor ecx, ecx
push esi
push edi
mov dword [esp + 0x10], ecx
lea eax, [esp + 0x58]
fild dword [esp + 0x10]
inc ecx
add eax, 4
cmp ecx, 0x10
mov dword [esp + 0x10], ecx
fmul dword [0x51c824]
fld st(0)
fmul st(1)
fld st(1)
fmul dword [0x51c82c]
fld st(2)
fxch st(2)
fmul dword [0x51c828]
fxch st(2)
fsub dword [0x51c7e0]
fxch st(1)
fsubp st(2)
fxch st(1)
fmul st(2)
fxch st(1)
fstp st(2)
fld st(1)
fmul dword [0x51c830]
fxch st(1)
fsub dword [0x51c7e0]
fxch st(1)
fsubr dword [0x51c82c]
fxch st(1)
fstp dword [eax - 0x44]
fmul st(1)
fsub dword [0x51c834]
fmul st(1)
fsub dword [0x51c838]
fstp dword [eax - 4]
fstp st(0)
jl 0x47c244
mov edi, dword [esp + 0xa0]
mov dword [esp + 0x98], 0
mov dword [esp + 0x10], 0
xor ebp, ebp
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], 4
lea ebx, [eax + 0x10]
mov eax, ebx
lea ecx, [ebp + 0x10]
cdq
xor eax, edx
mov esi, 4
sub eax, edx
fld dword [esp + eax*4 + 0x18]
mov eax, ecx
add edi, 4
cdq
xor eax, edx
sub ecx, 0x10
sub eax, edx
dec esi
fld dword [esp + eax*4 + 0x18]
fmul st(1)
fstp dword [edi - 4]
jne 0x47c2f5
mov eax, dword [esp + 0x14]
sub ebx, 0x10
dec eax
fstp st(0)
mov dword [esp + 0x14], eax
jne 0x47c2e2
inc ebp
cmp ebp, 0x10
jl 0x47c2d3
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 0x10
mov dword [esp + 0x10], eax
jl 0x47c2d1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret
Function at 0x47d8a0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x8c
push ebx
push ebp
xor edx, edx
push esi
push edi
mov dword [esp + 0x10], edx
lea eax, [esp + 0x58]
fild dword [esp + 0x10]
inc edx
add eax, 4
cmp edx, 0x10
mov dword [esp + 0x10], edx
fmul dword [0x51c8e4]
fld st(0)
fmul st(1)
fld st(1)
fmul dword [0x51c8ec]
fld st(2)
fxch st(2)
fmul dword [0x51c8e8]
fxch st(2)
fsub dword [0x51c8f0]
fxch st(1)
fsubp st(2)
fxch st(1)
fmul st(2)
fxch st(1)
fstp st(2)
fld st(1)
fmul dword [0x51c8f4]
fxch st(1)
fsub dword [0x51c8f0]
fxch st(1)
fsubr dword [0x51c8ec]
fxch st(1)
fstp dword [eax - 0x44]
fmul st(1)
fsub dword [0x51c8f8]
fmul st(1)
fsub dword [0x51c8fc]
fstp dword [eax - 4]
fstp st(0)
jl 0x47d8b4
mov edi, dword [ecx + 0xba0]
mov dword [esp + 0x98], 0
mov dword [esp + 0x10], 0
xor ebp, ebp
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], 4
lea ebx, [eax + 0x10]
mov eax, ebx
lea ecx, [ebp + 0x10]
cdq
xor eax, edx
mov esi, 4
sub eax, edx
fld dword [esp + eax*4 + 0x18]
mov eax, ecx
add edi, 4
cdq
xor eax, edx
sub ecx, 0x10
sub eax, edx
dec esi
fld dword [esp + eax*4 + 0x18]
fmul st(1)
fstp dword [edi - 4]
jne 0x47d964
mov eax, dword [esp + 0x14]
sub ebx, 0x10
dec eax
fstp st(0)
mov dword [esp + 0x14], eax
jne 0x47d951
inc ebp
cmp ebp, 0x10
jl 0x47d942
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 0x10
mov dword [esp + 0x10], eax
jl 0x47d940
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret
Function at 0x4810d0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x481103
push esi
call fcn.00486250
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4810fc
mov dword [esi + 0x14], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x481189
mov eax, dword [esi + 0x1b4]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x481172
mov eax, dword [esi + 8]
test eax, eax
je 0x481127
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b4]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x48116e
cmp eax, 2
je 0x481172
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x48111a
cmp eax, 3
je 0x48114d
cmp eax, 1
jne 0x48111a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x48111a
mov edx, dword [esi + 0x140]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x48111a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004811c0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4811a9
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.004811c0
add esp, 4
pop esi
ret