joyce8/EMBER2024-capa huggingface dataset:
Function at 0x494ff3
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x495184
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x30], eax
lea eax, [ebp + 0x28]
mov dword [ebp - 0x1c], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax]
test eax, eax
je 0x495148
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x34]
movzx eax, byte [eax]
test eax, eax
je 0x49513e
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x58]
mov dword [eax], 0xffff
mov eax, dword [ebp - 0x5c]
mov dword [eax], 0xffff
xor eax, eax
inc eax
cmp eax, 0x6941fc9a
je 0x4950c6
mov dword [ebp - 0xc], 1
jmp 0x4950ca
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jge 0x4950e7
mov dword [ebp - 8], 1
jmp 0x4950eb
and dword [ebp - 8], 0
mov eax, dword [ebp - 8]
sub eax, 0x177
cmp eax, 1
jne 0x495101
mov dword [ebp - 0x10], 1
jmp 0x495105
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
jl 0x495116
mov dword [ebp - 0x14], 1
jmp 0x49511a
and dword [ebp - 0x14], 0
cmp dword [ebp - 0x14], 0x780e
jge 0x49512c
mov dword [ebp - 0x18], 1
jmp 0x495130
and dword [ebp - 0x18], 0
imul eax, dword [ebp - 0x18], 0x9e88
mov ecx, dword [ebp - 0x60]
mov dword [ecx], eax
jmp 0x495146
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
jmp 0x495182
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x68], eax
push 1
push dword [ebp - 0x68]
push 0x194a
push 0x21a2
push 0x669b
push 0x675e
push 0x30d5
push 0
push 0x3b15
push 0x4368
push 0
call fcn.00490acd
add esp, 0x2c
jmp 0x4951a7
mov eax, dword [ebp + 8]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x70], eax
push dword [ebp - 0x6c]
push 0
push dword [ebp - 0x70]
push 0x45fe
push 1
call fcn.0048e1d6
add esp, 0x14
mov esp, ebp
pop ebp
ret
Function at 0x4c7e66
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4cd7c0]
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
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004ba80b
mov dword [ebp - 0x14], eax
cmp dword [0xac927c], esi
jne 0x4c7f59
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4c7ee6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4c8039
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4c8039
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4c8039
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0xac927c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0xac9280], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0xac9284], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0xac928c], eax
test eax, eax
je 0x4c7f56
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0xac9288], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4c7f7e
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4c7f71
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4c7f93
push 4
pop eax
jmp 0x4c803b
cmp dword [ebp - 0x14], esi
je 0x4c7f93
push dword [0xac927c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4c7f78
mov eax, dword [0xac9288]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4c7ff1
cmp dword [0xac928c], edi
je 0x4c7ff1
push eax
call ebx
push dword [0xac928c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4c7ff1
test eax, eax
je 0x4c7ff1
call ecx
test eax, eax
je 0x4c7fe6
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 0x4c7fe6
test byte [ebp - 8], 1
jne 0x4c7ff1
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4c8021
mov eax, dword [0xac9280]
cmp eax, edi
je 0x4c801e
push eax
call ebx
test eax, eax
je 0x4c801e
call eax
mov esi, eax
test esi, esi
je 0x4c801e
mov eax, dword [0xac9284]
cmp eax, edi
je 0x4c801e
push eax
call ebx
test eax, eax
je 0x4c801e
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0xac927c]
call ebx
test eax, eax
je 0x4c8039
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4c803b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b77eb
mov esp, ebp
pop ebp
ret
Function at 0x41c500
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x427850], 0
jne 0x41c581
cmp dword [0x427870], 0
jne 0x41c530
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x427870], eax
test eax, eax
jne 0x41c530
push str.GetEnvironmentStrings_failed
call fcn.0041bd1c
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x427870]
jmp 0x41c544
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004168a4
pop ecx
mov edi, eax
test eax, eax
jne 0x41c53c
lea edi, [ebp + 1]
push edi
call fcn.004161a8
pop ecx
mov ebx, eax
mov dword [0x427854], ebx
test ebx, ebx
jne 0x41c56e
xor eax, eax
jmp 0x41c644
push edi
mov edx, dword [0x427870]
push edx
push ebx
call fcn.00416754
add esp, 0xc
jmp 0x41c5a1
xor esi, esi
mov ebx, dword [0x427850]
jmp 0x41c59b
push eax
call fcn.004168a4
pop ecx
test eax, eax
jne 0x41c597
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41c58b
lea ebx, [esi + 4]
push 4
mov dword [0x427858], ebx
inc ebx
push ebx
call fcn.00415c80
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x41c5c4
xor eax, eax
jmp 0x41c644
cmp dword [0x427850], 0
jne 0x41c5f5
xor esi, esi
mov ebx, dword [0x427854]
mov eax, dword [esp]
mov ebp, eax
jmp 0x41c5e6
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004168a4
pop ecx
mov edi, eax
test eax, eax
jne 0x41c5dc
jmp 0x41c626
xor esi, esi
mov ebx, dword [0x427850]
mov eax, dword [esp]
mov edi, eax
jmp 0x41c620
push eax
call fcn.004168a4
pop ecx
test eax, eax
je 0x41c615
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x41c619
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41c604
mov eax, dword [0x427850]
test eax, eax
je 0x41c636
push eax
call fcn.004161b8
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x427850], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x10002d30
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x100a1040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xorps xmm0, xmm0
mov dword [ebp - 8], 0
mov edx, ecx
movq qword [ebp - 0x10], xmm0
push esi
lea ecx, [ebp - 0x10]
xor bl, bl
call fcn.10002c10
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
cmp esi, eax
je 0x10002d90
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [esi]
call edi
test eax, eax
movzx ebx, bl
mov eax, 1
cmovne ebx, eax
add esi, 4
cmp esi, dword [ebp - 0x14]
jne 0x10002d71
mov esi, dword [ebp - 0x10]
pop edi
test esi, esi
je 0x10002dc0
mov ecx, dword [ebp - 8]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x10002db6
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002dd2
push ecx
push esi
call fcn.1003b37c
add esp, 8
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.1003b025
mov esp, ebp
pop ebp
ret
call fcn.1003e756
int3
Function at 0x10003560
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x1000357e
push 0
push 0
push 0
push 0x10003550
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc
Function at 0x10019130
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0x18]
push esi
movzx esi, word [eax]
push edi
mov edi, dword [esp + 0x1c]
test ebx, ebx
jle 0x100191fb
push ebp
test edi, edi
je 0x100191bd
mov ebp, ebx
mov bx, word [esp + 0x1c]
mov eax, dword [edi + 4]
test eax, eax
jne 0x10019177
lea eax, [edi + 8]
push eax
call fcn.100059e0
mov edx, eax
add esp, 4
mov dword [edi], edx
mov ecx, 0x1f
shr edx, 0x1f
jmp 0x10019181
mov edx, dword [edi]
lea ecx, [eax - 1]
shr edx, cl
and edx, 1
mov dword [edi + 4], ecx
mov eax, esi
and eax, dword [esp + 0x18]
xor ecx, ecx
test ax, ax
setne cl
xor cx, dx
movzx eax, cx
test ax, ax
je 0x100191a0
movzx eax, bx
lea ecx, [esi + esi]
xor ecx, eax
movzx esi, cx
sub ebp, 1
jne 0x10019156
mov eax, dword [esp + 0x14]
pop ebp
pop edi
mov word [eax], si
mov eax, dword [esp + 0x1c]
pop esi
pop ebx
ret
mov di, word [esp + 0x1c]
mov edx, ebx
mov ebp, dword [esp + 0x18]
mov eax, esi
movzx ecx, di
and eax, ebp
mov dword [esp + 0x24], 0
test ax, ax
lea eax, [esi + esi]
cmove ecx, dword [esp + 0x24]
xor cx, ax
movzx esi, cx
sub edx, 1
jne 0x100191c8
mov eax, dword [esp + 0x14]
pop ebp
pop edi
mov word [eax], si
mov eax, ebx
pop esi
pop ebx
ret
pop edi
mov word [eax], si
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x10019210
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push ebp
mov ebp, dword [esp + 0x18]
push esi
movzx esi, word [eax]
mov eax, dword [esp + 0x20]
push edi
test ebp, ebp
je 0x100193ab
mov ecx, eax
sar ecx, 2
mov dword [esp + 0x10], ecx
push ebx
test ecx, ecx
jle 0x10019313
mov ecx, dword [ebp]
mov dword [esp + 0x10], ecx
mov edx, dword [ebp + 4]
mov edi, 0x20
sub edi, edx
mov dword [esp + 0x24], ecx
xor eax, eax
test edi, edi
jle 0x10019283
lea eax, [ebp + 8]
push eax
call fcn.100059e0
mov edx, dword [ebp + 4]
mov ecx, edi
mov dword [esp + 0x28], eax
add esp, 4
mov dword [ebp], eax
add edx, 0x20
mov eax, dword [esp + 0x10]
shl eax, cl
xor ecx, ecx
cmp edi, 0x20
cmove eax, ecx
mov edi, dword [esp + 0x24]
lea ecx, [edx - 0x20]
shr edi, cl
mov dword [ebp + 4], ecx
or edi, eax
and edi, dword [0x1006f378]
movzx ecx, si
mov eax, edi
shr eax, 0x18
shr ecx, 8
xor ecx, eax
shl esi, 8
mov eax, dword [esp + 0x20]
xor si, word [eax + ecx*2]
mov eax, edi
shr eax, 0x10
movzx edx, si
mov esi, dword [esp + 0x20]
mov ecx, edx
shr ecx, 8
xor ecx, eax
shl edx, 8
movzx eax, cl
mov ecx, edi
shr ecx, 8
xor dx, word [esi + eax*2]
movzx edx, dx
mov eax, edx
shl edx, 8
shr eax, 8
xor ecx, eax
movzx eax, cl
xor dx, word [esi + eax*2]
movzx ecx, dx
mov eax, ecx
shl ecx, 8
shr eax, 8
xor eax, edi
movzx eax, al
xor cx, word [esi + eax*2]
sub dword [esp + 0x14], 1
movzx esi, cx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
jne 0x10019246
mov eax, dword [esp + 0x28]
and eax, 3
lea edi, [eax*8]
test edi, edi
je 0x10019398
mov ecx, dword [ebp + 4]
mov eax, edi
sub eax, ecx
mov dword [esp + 0x24], 0
test eax, eax
jle 0x1001935a
cmp eax, 0x20
je 0x10019344
mov edx, dword [ebp]
mov ecx, eax
shl edx, cl
mov dword [esp + 0x24], edx
lea eax, [ebp + 8]
push eax
call fcn.100059e0
add esp, 4
mov dword [ebp], eax
add dword [ebp + 4], 0x20
mov ecx, dword [ebp + 4]
mov ebx, dword [ebp]
sub ecx, edi
shr ebx, cl
or ebx, dword [esp + 0x24]
mov dword [ebp + 4], ecx
and ebx, dword [edi*4 + 0x1006f2f8]
sub edi, 8
js 0x10019398
mov ebp, dword [esp + 0x20]
mov eax, esi
mov ecx, edi
mov edx, ebx
shr eax, 8
shr edx, cl
xor edx, eax
shl esi, 8
movzx eax, dl
xor si, word [ebp + eax*2]
sub edi, 8
movzx esi, si
jns 0x10019378
mov eax, dword [esp + 0x28]
pop ebx
mov ecx, dword [esp + 0x18]
pop edi
mov word [ecx], si
pop esi
pop ebp
add esp, 8
ret
test eax, eax
jle 0x1001939d
mov edi, dword [esp + 0x1c]
mov edx, eax
movzx ecx, si
shr ecx, 8
shl esi, 8
xor si, word [edi + ecx*2]
movzx esi, si
sub edx, 1
jne 0x100193b5
mov ecx, dword [esp + 0x18]
pop edi
mov word [ecx], si
pop esi
pop ebp
add esp, 8
ret
Function at 0x100193e0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
push ebx
mov ebx, dword [esp + 0x38]
push esi
push edi
mov edi, dword [esp + 0x38]
shl ebx, 4
add ebx, edi
movzx eax, word [edi + 0x44]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x3c]
cmp dword [eax + 0x24], 0
jne 0x10019476
movups xmm0, xmmword [eax]
movups xmmword [esp + 0xc], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [esp + 0x1c], xmm0
movq xmm0, qword [eax + 0x20]
movq qword [esp + 0x2c], xmm0
cmp dword [esp + 0x30], 0
jne 0x1001943a
push 0
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
call fcn.10005ab0
jmp 0x10019451
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10019454
push eax
push dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
call fcn.10005b10
add esp, 0xc
lea eax, [esp + 0x14]
mov dword [esp + 0x10], 0
push eax
mov dword [esp + 0x10], 0
call fcn.10005aa0
add esp, 4
sub eax, dword [ebx + 0xc]
jmp 0x100194a7
push dword [eax + 8]
push dword [eax + 0x1c]
push dword [eax + 0x18]
lea eax, [esp + 0x20]
push eax
call fcn.10005980
mov eax, dword [ebx + 0xc]
add esp, 0x10
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x30], 0
push eax
lea eax, [esp + 0x10]
push eax
call fcn.10019050
mov ecx, dword [ebx + 4]
add esp, 8
mov eax, ecx
cdq
mov esi, eax
xor esi, edx
sub esi, edx
test ecx, ecx
jle 0x100194d1
mov ebx, dword [ebx + 8]
mov ecx, ebx
and ecx, 0xfffffff8
cmp ecx, esi
jl 0x100194d3
mov ebx, esi
mov ecx, dword [edi + 0x30]
mov eax, ebx
sar eax, 3
and ebx, 7
test ecx, ecx
je 0x100194fb
push eax
lea eax, [esp + 0x10]
push eax
push ecx
lea eax, [esp + 0x44]
push eax
call fcn.10019210
add esp, 0x10
shl eax, 3
jmp 0x1001951b
shl eax, 3
push eax
lea eax, [esp + 0x10]
push eax
movzx eax, word [edi + 0x34]
push eax
movzx eax, word [edi + 0x36]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.10019130
add esp, 0x14
sub esi, eax
test ebx, ebx
je 0x10019540
push ebx
lea eax, [esp + 0x10]
push eax
movzx eax, word [edi + 0x34]
push eax
movzx eax, word [edi + 0x36]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.10019130
add esp, 0x14
sub esi, eax
test esi, esi
je 0x100195ae
mov ebx, dword [edi + 0x30]
test ebx, ebx
je 0x10019594
cmp esi, 8
jle 0x10019594
movzx ecx, word [esp + 0x38]
push ebp
mov ebp, esi
sar ebp, 3
test ebp, ebp
jle 0x10019576
mov edx, ebp
movzx eax, cx
shr eax, 8
shl ecx, 8
xor cx, word [ebx + eax*2]
movzx ecx, cx
sub edx, 1
jne 0x10019561
lea eax, [ebp*8]
movzx ecx, cx
mov dword [esp + 0x3c], ecx
pop ebp
sub esi, eax
jne 0x10019594
mov word [edi + 0x44], cx
pop edi
pop esi
pop ebx
add esp, 0x28
ret
movzx eax, word [edi + 0x34]
push esi
push 0
push eax
movzx eax, word [edi + 0x36]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.10019130
add esp, 0x14
mov ax, word [esp + 0x38]
mov word [edi + 0x44], ax
pop edi
pop esi
pop ebx
add esp, 0x28
ret
Function at 0x1001cad0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
cmp dword [esp + 0x18], 0
push ebp
mov ebp, dword [esp + 0x10]
jle 0x1001cb52
push ebx
mov ebx, dword [esp + 0x18]
sub dword [esp + 0x1c], ebx
push esi
push edi
nop word [eax + eax]
mov edi, dword [ebx + 4]
lea eax, [ebx + 4]
mov ecx, dword [ebx]
xor esi, esi
mov dword [esp + 0x10], eax
cmp ecx, edi
jge 0x1001cb17
mov eax, dword [ebp + ecx*4]
cdq
xor eax, edx
sub eax, edx
cmp esi, eax
cmovg eax, esi
inc ecx
mov esi, eax
cmp ecx, edi
jl 0x1001cb02
bsr eax, esi
mov esi, 0x1e
mov dword [esp + 0x14], 0
mov ecx, esi
setne dl
sub ecx, eax
test dl, dl
mov eax, 0x1f
cmovne eax, ecx
mov ecx, dword [esp + 0x24]
cmp eax, esi
cmovg eax, esi
sub dword [esp + 0x28], 1
mov dword [ecx + ebx], eax
mov ebx, dword [esp + 0x10]
jne 0x1001caf0
pop edi
pop esi
pop ebx
pop ebp
add esp, 8
ret
Function at 0x1001f8e0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
mov edx, dword [esp + 0x14]
mov ecx, edx
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
mov esi, dword [esp + 0x24]
mov eax, esi
push edi
sub eax, edx
xor edi, edi
mov dword [esp + 0x10], eax
cmp edx, esi
jge 0x1001f9cf
cmp eax, 8
jb 0x1001f980
cmp dword [0x100a1f0c], 2
jl 0x1001f980
and eax, 0x80000007
jns 0x1001f921
dec eax
or eax, 0xfffffff8
inc eax
mov edi, esi
xorps xmm1, xmm1
sub edi, eax
xorps xmm2, xmm2
nop dword [eax + eax]
movups xmm0, xmmword [ebx + ecx*4]
pabsd xmm0, xmm0
pmaxsd xmm1, xmm0
movups xmm0, xmmword [ebx + ecx*4 + 0x10]
add ecx, 8
mov eax, ecx
pabsd xmm0, xmm0
pmaxsd xmm2, xmm0
cmp ecx, edi
jl 0x1001f930
pmaxsd xmm1, xmm2
movaps xmm0, xmm1
psrldq xmm0, 8
pmaxsd xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 4
pmaxsd xmm1, xmm0
movd edi, xmm1
cmp eax, esi
jge 0x1001f998
nop dword [eax]
mov eax, dword [ebx + ecx*4]
cdq
xor eax, edx
sub eax, edx
cmp edi, eax
cmovg eax, edi
inc ecx
mov edi, eax
cmp ecx, esi
jl 0x1001f980
mov edx, dword [esp + 0x24]
test edi, edi
je 0x1001f9cf
mov eax, edi
mov dword [esp + 0x14], 0
not eax
mov ecx, 0x1f
cmovns eax, edi
mov ebp, 0x20
bsr eax, eax
setne dl
sub ecx, eax
test dl, dl
mov edx, dword [esp + 0x24]
mov edi, edx
cmovne ebp, ecx
dec ebp
movd xmm1, ebp
jmp 0x1001f9df
xor ebp, ebp
mov edi, edx
movd xmm1, ebp
cmp edx, esi
jge 0x1001fab2
cmp dword [esp + 0x10], 0x10
jb 0x1001fa8e
mov eax, dword [esp + 0x1c]
lea ecx, [esi - 1]
lea ecx, [eax + ecx*4]
mov dword [esp + 0x14], ecx
lea eax, [eax + edx*4]
lea ecx, [esi - 1]
lea ecx, [ebx + ecx*4]
cmp eax, ecx
ja 0x1001fa12
lea eax, [ebx + edx*4]
cmp dword [esp + 0x14], eax
jae 0x1001fa8e
mov eax, dword [esp + 0x10]
and eax, 0x8000000f
jns 0x1001fa22
dec eax
or eax, 0xfffffff0
inc eax
mov ecx, esi
add edx, 0xc
sub ecx, eax
mov esi, ebx
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x1c]
lea edx, [ebx + edx*4]
lea ecx, [ecx + eax*4]
add ecx, 0x10
sub esi, dword [esp + 0x1c]
movups xmm0, xmmword [edx - 0x30]
add edi, 0x10
lea ecx, [ecx + 0x40]
lea edx, [edx + 0x40]
mov eax, edi
pslld xmm0, xmm1
movups xmmword [ecx - 0x50], xmm0
movups xmm0, xmmword [esi + ecx - 0x40]
pslld xmm0, xmm1
movups xmmword [ecx - 0x40], xmm0
movups xmm0, xmmword [edx - 0x50]
pslld xmm0, xmm1
movups xmmword [ecx - 0x30], xmm0
movups xmm0, xmmword [edx - 0x40]
pslld xmm0, xmm1
movups xmmword [ecx - 0x20], xmm0
cmp edi, dword [esp + 0x14]
jl 0x1001fa44
mov esi, dword [esp + 0x28]
cmp eax, esi
jge 0x1001fab2
mov eax, dword [esp + 0x1c]
sub ebx, eax
sub esi, edi
lea edx, [eax + edi*4]
nop dword [eax]
mov eax, dword [ebx + edx]
lea edx, [edx + 4]
mov ecx, ebp
shl eax, cl
mov dword [edx - 4], eax
sub esi, 1
jne 0x1001faa0
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 8
ret
Function at 0x10020910
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 0x1c]
sub esp, 0x18
cmp dword [eax + 0x9c], 0
je 0x10020afb
mov eax, dword [esp + 0x3c]
push ebp
mov ebp, dword [esp + 0x3c]
add eax, 0x78
add ebp, 0x78
cmp dword [esp + 0x20], 0
jle 0x10020afa
push ebx
mov ebx, dword [esp + 0x34]
sub ebp, ebx
sub dword [esp + 0x2c], ebx
mov ecx, ebp
sub dword [esp + 0x38], ebx
push esi
mov esi, dword [esp + 0x34]
push edi
mov edi, dword [esp + 0x30]
sub esi, ebx
sub edi, ebx
mov dword [esp + 0x38], esi
sub eax, ebx
mov dword [esp + 0x30], edi
mov dword [esp + 0x44], ebp
mov edx, eax
mov dword [esp + 0x10], eax
mov ebp, dword [esi + ebx]
mov eax, dword [ebx]
sar ebp, 1
sar eax, 1
add ebp, eax
cmp ebp, 0xc0000000
jge 0x1002098b
xor eax, eax
jmp 0x10020ae3
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + ebx]
mov eax, dword [edi + ebx]
sar eax, 1
sar ecx, 1
add ecx, eax
mov eax, dword [esp + 0x40]
sar ecx, 1
mov edi, dword [eax + ebx]
sub edi, ecx
mov eax, edi
mov dword [esp + 0x24], edi
cdq
mov esi, eax
xor esi, edx
sub esi, edx
test esi, esi
jg 0x100209c1
mov esi, 0x80000000
jmp 0x10020ab3
bsr eax, esi
mov edx, 0x1e
mov dword [esp + 0x20], 0
mov edi, 0x80000000
setne cl
sub edx, eax
test cl, cl
mov eax, 0x1f
cmovne eax, edx
mov ecx, eax
neg ecx
mov dword [esp + 0x20], ecx
mov ecx, eax
shl esi, cl
mov ecx, 0x1007c610
sub edi, esi
xor esi, esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edi
movsx eax, word [ecx]
shl eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
imul dword [esp + 0x18]
mov dword [esp + 0x14], edx
add esi, dword [esp + 0x14]
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x14]
imul dword [esp + 0x1c]
shl edx, 1
mov dword [esp + 0x14], edx
mov edi, dword [esp + 0x14]
add ecx, 2
mov dword [esp + 0x18], edi
cmp ecx, 0x1007c624
jl 0x10020a02
mov dword [esp + 0x1c], 0x71547653
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x14]
imul dword [esp + 0x1c]
mov dword [esp + 0x14], edx
add esi, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
test edx, edx
je 0x10020a9b
mov eax, edx
mov dword [esp + 0x20], 0
not eax
cmovns eax, edx
bsr ecx, eax
setne al
test al, al
lea eax, [ecx - 0x1f]
jne 0x10020a86
mov eax, 0xffffffe0
add eax, 0x21
mov ecx, 0x1f
sub ecx, eax
shl edx, cl
lea ecx, [eax - 1]
sar esi, cl
add esi, edx
jmp 0x10020aa0
mov eax, 1
lea ecx, [eax - 6]
test ecx, ecx
jle 0x10020aab
shl esi, cl
jmp 0x10020aaf
neg ecx
sar esi, cl
mov edi, dword [esp + 0x24]
sub esi, ebp
add esi, 0x2000000
js 0x10020ac4
mov eax, 0x7fffffff
jmp 0x10020ad3
push esi
call fcn.100203e0
add esp, 4
test edi, edi
jns 0x10020ad3
neg eax
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x30]
mov dword [ecx + ebx], eax
mov dword [edx + ebx], eax
add ebx, 4
sub dword [esp + 0x2c], 1
jne 0x10020971
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x18
ret
Function at 0x100221c0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
mov edi, dword [esp + 0x18]
xor esi, esi
mov eax, edi
sub eax, ecx
cmp ecx, edi
jge 0x1002228c
cmp eax, 8
jb 0x10022250
cmp dword [0x100a1f0c], 2
jl 0x10022250
and eax, 0x80000007
jns 0x100221f7
dec eax
or eax, 0xfffffff8
inc eax
mov edx, edi
xorps xmm1, xmm1
sub edx, eax
xorps xmm2, xmm2
movups xmm0, xmmword [ebx + ecx*4]
pabsd xmm0, xmm0
pmaxsd xmm1, xmm0
movups xmm0, xmmword [ebx + ecx*4 + 0x10]
add ecx, 8
mov eax, ecx
pabsd xmm0, xmm0
pmaxsd xmm2, xmm0
cmp ecx, edx
jl 0x10022201
pmaxsd xmm1, xmm2
movaps xmm0, xmm1
psrldq xmm0, 8
pmaxsd xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 4
pmaxsd xmm1, xmm0
movd esi, xmm1
cmp eax, edi
jge 0x10022264
nop
mov eax, dword [ebx + ecx*4]
cdq
xor eax, edx
sub eax, edx
cmp esi, eax
cmovg eax, esi
inc ecx
mov esi, eax
cmp ecx, edi
jl 0x10022250
test esi, esi
je 0x1002228c
bsr eax, esi
mov ecx, 0x1f
mov dword [esp + 0x14], 0
pop edi
setne dl
sub ecx, eax
test dl, dl
mov eax, 0x20
pop esi
cmovne eax, ecx
dec eax
pop ebx
ret
pop edi
pop esi
mov eax, 0x1e
pop ebx
ret