joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f1c1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x48f550]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41f204
cmp word [esi], dx
jne 0x41f204
or byte [edi + eax + 0x28], 4
jmp 0x41f209
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41f35c
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41f33c
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41f24b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41f281
cmp eax, edx
jae 0x41f28d
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41f223
jmp 0x41f35c
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41f338
cmp dword [ebp - 0x14], 0
je 0x41f338
mov eax, dword [ebx*4 + 0x48f550]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41f310
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41f2d9
mov word [esi], cx
jmp 0x41f30c
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x48f550]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x48f550]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x48f550]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41f35c
pop ebx
cmp word [ebp - 4], bx
jne 0x41f321
cmp esi, dword [ebp + 0xc]
jne 0x41f321
mov word [esi], bx
jmp 0x41f359
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041fbf5
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41f35c
push 0xd
jmp 0x41f355
mov ecx, dword [ebx*4 + 0x48f550]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41f353
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41f35c
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x422ef0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x422f8d
push ebx
push esi
call fcn.00422eb9
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00421b3e
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x422f3a
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x422f8c
push edi
push eax
call fcn.0041fdd4
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x422f5a
call fcn.0041c44c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x422f8b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00421b3e
add esp, 0x20
test eax, eax
jne 0x422f79
push edi
call fcn.0041c44c
jmp 0x422f81
push ebx
call fcn.0041c44c
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x42a700
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42a72d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42a72d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402180
Capabilities:
Create process on windows
Set current directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x403620
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov ebx, dword [ebp + 0xa4]
test ebx, ebx
je 0x40234c
mov eax, ebx
mov ebx, dword [ebx]
lea ecx, [esp + 0x24]
lea esi, [eax + 8]
push esi
call sub.MFC42.DLL_CString::CString_2
add esi, 4
lea ecx, [esp + 0x28]
push esi
mov dword [esp + 0x38], 0
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x28]
mov dword [esp + 0x34], 1
call sub.MFC42.DLL_CString::MakeLower
mov edi, dword [ebp + 0xc4]
xor esi, esi
test edi, edi
jle 0x40223c
lea eax, [esp + 0x10]
push esi
push eax
lea ecx, [ebp + 0xbc]
call fcn.00402770
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 2
call sub.MFC42.DLL_CString::MakeLower
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
mov byte [esp + 0x34], 1
test eax, eax
lea ecx, [esp + 0x10]
je 0x40231d
call sub.MFC42.DLL_CString::CString
inc esi
cmp esi, edi
jl 0x4021ef
push ecx
lea eax, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, ebp
call fcn.004025a0
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_2
lea edx, [esp + 0x28]
lea ecx, [esp + 0x1c]
push edx
mov byte [esp + 0x38], 3
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 4
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
lea edx, [esp + 0x1c]
push str._s_s
push edx
mov byte [esp + 0x44], 5
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x28]
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [esp + 0x14]
push 5
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x1f
jbe 0x4022f8
sub esp, 8
lea edx, [esp + 0x2c]
mov esi, esp
mov dword [esp + 0x28], esp
push edx
mov ecx, esi
mov dword [esp + 0x2c], esi
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x30]
lea ecx, [esi + 4]
push eax
mov byte [esp + 0x40], 6
call sub.MFC42.DLL_CString::CString_2
mov ecx, ebp
mov byte [esp + 0x3c], 5
call fcn.00402360
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 3
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x34], 1
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov dword [esp + 0x34], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov dword [esp + 0x34], 0xffffffff
call sub.MFC42.DLL_CString::CString
test ebx, ebx
jne 0x4021ac
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x28
ret
Function at 0x10005463
Capabilities:
Contain obfuscated stackstrings
Get number of processors
Resolve function by parsing pe exports

Disassembly:
add esp, 4
pop ebx
mov ecx, dword [ebp - 0x504]
mov edx, dword [ecx]
mov dword [ebp - 0x504], edx
mov eax, dword [ebp - 0x504]
cmp eax, dword [ebp - 0xc98]
je 0x10005493
mov ecx, dword [ebp - 0x504]
cmp dword [ecx + 0x30], 0
jne 0x10005249
mov dword [ebp - 0x31c], 0
Function at 0x1000589c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push eax
push esi
add esp, 4
sub eax, 0xd561
pop eax
push esi
push edi
add esp, 4
sub esi, 0x63bc
pop esi
push eax
add eax, 0x6f83
sub eax, 0x9d59
jmp 0x10005706
add eax, 0x1418d
pop eax
lea edx, [ebp - 0x17a4]
mov dword [ebp - 0xca0], edx
mov eax, dword [ebp - 0x508]
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0xc9c], ecx
xor edx, edx
mov word [ebp - 0x214], dx
xor eax, eax
mov word [ebp - 0x110], ax
push edx
push edx
add esp, 4
or edx, 0x117c3
or edx, 0x3ce8
pop edx
push ecx
push ebx
add esp, 4
jmp 0x10005759
xor ecx, 0x21a5
or ecx, 0xddc7
or ecx, 0x9d59
pop ecx
mov ecx, dword [ebp - 0xc9c]
mov dx, word [ecx]
mov word [ebp - 0x1036], dx
mov eax, dword [ebp - 0xc9c]
add eax, 2
mov dword [ebp - 0xc9c], eax
mov cx, word [ebp - 0x1036]
mov word [ebp - 0x214], cx
mov edx, dword [ebp - 0xca0]
mov ax, word [edx]
mov word [ebp - 0x1038], ax
mov ecx, dword [ebp - 0xca0]
add ecx, 2
mov dword [ebp - 0xca0], ecx
mov dx, word [ebp - 0x1038]
mov word [ebp - 0x110], dx
push edx
jmp 0x100057cf
xor edx, 0x75a2
pop edx
push edx
push edi
add esp, 4
sub edx, 0x17edf
or edx, 0xc926
or edx, 0xa292
pop edx
push edx
jmp 0x100057f7
pop edx
movzx eax, word [ebp - 0x110]
test eax, eax
invalid
jne 0x1000581b
movzx ecx, word [ebp - 0x214]
movzx edx, word [ebp - 0x110]
sub ecx, edx
mov dword [ebp - 0x15ec], ecx
jmp 0x1000587e
movzx eax, word [ebp - 0x214]
movzx ecx, word [ebp - 0x110]
cmp eax, ecx
je 0x1000573a
movzx edx, word [ebp - 0x214]
xor edx, 0x20
movzx eax, word [ebp - 0x110]
cmp edx, eax
je 0x1000573a
movzx ecx, word [ebp - 0x214]
movzx edx, word [ebp - 0x110]
cmp ecx, edx
jge 0x10005868
mov dword [ebp - 0x15e8], 0xffffffff
jmp 0x10005872
mov dword [ebp - 0x15e8], 1
mov eax, dword [ebp - 0x15e8]
mov dword [ebp - 0x15ec], eax
cmp dword [ebp - 0x15ec], 0
jne 0x100058c7
push edx
push ebx
add esp, 4
call 0x1000589c
add byte [edi + 0x3b], cl
inc ebx
inc edx
inc edx
inc eax
aaa
dec eax
inc ecx
aas
add esp, 4
xor edx, 0x1576a
jmp 0x100058ac
pop edx
push esi
push eax
add esp, 4
sub esi, 0x128ed
pop esi
mov ecx, dword [ebp - 0x508]
mov dword [ebp - 0x750], ecx
jmp 0x1000592f
push esi
push ebx
add esp, 4
add esi, 0x160c
jmp 0x100058d8
add esi, 0xd183
pop esi
push edx
push ecx
add esp, 4
jmp 0x100058ea
pop edx
push esi
jmp 0x100058f2
jmp 0x100058f8
pop esi
mov edx, dword [ebp - 0x508]
mov eax, dword [edx]
mov dword [ebp - 0x508], eax
mov ecx, dword [ebp - 0x508]
invalid
invalid
pop esp
Function at 0x100058e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push eax
push esi
add esp, 4
sub eax, 0xd561
pop eax
push esi
push edi
add esp, 4
sub esi, 0x63bc
pop esi
push eax
add eax, 0x6f83
sub eax, 0x9d59
jmp 0x10005706
add eax, 0x1418d
pop eax
lea edx, [ebp - 0x17a4]
mov dword [ebp - 0xca0], edx
mov eax, dword [ebp - 0x508]
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0xc9c], ecx
xor edx, edx
mov word [ebp - 0x214], dx
xor eax, eax
mov word [ebp - 0x110], ax
push edx
push edx
add esp, 4
or edx, 0x117c3
or edx, 0x3ce8
pop edx
push ecx
push ebx
add esp, 4
jmp 0x10005759
xor ecx, 0x21a5
or ecx, 0xddc7
or ecx, 0x9d59
pop ecx
mov ecx, dword [ebp - 0xc9c]
mov dx, word [ecx]
mov word [ebp - 0x1036], dx
mov eax, dword [ebp - 0xc9c]
add eax, 2
mov dword [ebp - 0xc9c], eax
mov cx, word [ebp - 0x1036]
mov word [ebp - 0x214], cx
mov edx, dword [ebp - 0xca0]
mov ax, word [edx]
mov word [ebp - 0x1038], ax
mov ecx, dword [ebp - 0xca0]
add ecx, 2
mov dword [ebp - 0xca0], ecx
mov dx, word [ebp - 0x1038]
mov word [ebp - 0x110], dx
push edx
jmp 0x100057cf
xor edx, 0x75a2
pop edx
push edx
push edi
add esp, 4
sub edx, 0x17edf
or edx, 0xc926
or edx, 0xa292
pop edx
push edx
jmp 0x100057f7
pop edx
movzx eax, word [ebp - 0x110]
test eax, eax
invalid
jne 0x1000581b
movzx ecx, word [ebp - 0x214]
movzx edx, word [ebp - 0x110]
sub ecx, edx
mov dword [ebp - 0x15ec], ecx
jmp 0x1000587e
movzx eax, word [ebp - 0x214]
movzx ecx, word [ebp - 0x110]
cmp eax, ecx
je 0x1000573a
movzx edx, word [ebp - 0x214]
xor edx, 0x20
movzx eax, word [ebp - 0x110]
cmp edx, eax
je 0x1000573a
movzx ecx, word [ebp - 0x214]
movzx edx, word [ebp - 0x110]
cmp ecx, edx
jge 0x10005868
mov dword [ebp - 0x15e8], 0xffffffff
jmp 0x10005872
mov dword [ebp - 0x15e8], 1
mov eax, dword [ebp - 0x15e8]
mov dword [ebp - 0x15ec], eax
cmp dword [ebp - 0x15ec], 0
jne 0x100058c7
push edx
push ebx
add esp, 4
call 0x1000589c
add byte [edi + 0x3b], cl
inc ebx
inc edx
inc edx
inc eax
aaa
dec eax
inc ecx
aas
add esp, 4
xor edx, 0x1576a
jmp 0x100058ac
pop edx
push esi
push eax
add esp, 4
sub esi, 0x128ed
pop esi
mov ecx, dword [ebp - 0x508]
mov dword [ebp - 0x750], ecx
jmp 0x1000592f
push esi
push ebx
add esp, 4
add esi, 0x160c
jmp 0x100058d8
add esi, 0xd183
pop esi
push edx
push ecx
add esp, 4
jmp 0x100058ea
pop edx
push esi
jmp 0x100058f2
jmp 0x100058f8
pop esi
mov edx, dword [ebp - 0x508]
mov eax, dword [edx]
mov dword [ebp - 0x508], eax
mov ecx, dword [ebp - 0x508]
invalid
invalid
pop esp
Function at 0x10005e10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add byte [edx + 0x52], bl
sub edx, 0x102e7
pop edx
mov eax, dword fs:[0x18]
mov dword [ebp - 0x19ac], eax
mov ecx, dword [ebp - 0x19ac]
mov edx, dword [ecx + 0x30]
mov dword [ebp - 0x19b0], edx
mov eax, dword [ebp - 0x19b0]
invalid
test dword [edx + ebp*8], eax
invalid
Function at 0x10006d90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp edx, eax
jge 0x10006da0
mov dword [ebp - 0x1624], 0xffffffff
jmp 0x10006daa
mov dword [ebp - 0x1624], 1
mov ecx, dword [ebp - 0x1624]
mov dword [ebp - 0x1668], ecx

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

Disassembly:
pop ebx
mov edx, dword [ebp - 0x518]
mov dword [ebp - 0x774], edx
jmp 0x10006e67
Function at 0x100582f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov ebx, dword [ebp + 0x14]
test ebx, ebx
jle 0x100583b4
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
lea edx, [edi + 4]
lea ecx, [edi + 0x14]
add ebx, esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x10], ecx
lea edx, [edi + 0xc]
lea ecx, [edi + 0x12]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + 0x24]
test ecx, ecx
jne 0x1005835f
xor eax, eax
push eax
push eax
push 1
push dword [ebp - 0x20]
push dword [ebp - 0x10]
push dword [edi]
call fcn.100576b0
add esp, 0x18
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
inc byte [eax + 1]
jne 0x1005835c
cmp eax, ecx
lea eax, [eax - 1]
jae 0x10058350
mov ecx, dword [edi + 0x24]
mov edx, esi
mov eax, ecx
sub edx, ecx
add edx, 0x10
cmp edx, ebx
cmova edx, ebx
sub eax, esi
add eax, edx
and eax, 0xf
cmp esi, edx
mov dword [edi + 0x24], eax
jae 0x100583aa
add ecx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
mov eax, edx
mov dword [ebp - 0x28], edx
xor edx, edx
sub eax, esi
mov bl, byte [ecx + edx]
xor bl, byte [esi + edx]
mov byte [edi + edx], bl
inc edx
cmp eax, edx
jne 0x1005838a
add edi, edx
mov eax, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x14], edi
mov edi, dword [ebp + 8]
mov esi, eax
jmp 0x100583ac
mov eax, esi
cmp eax, ebx
jb 0x1005832d
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100599e0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov ebx, dword [ebp + 0x14]
xor esi, esi
cmp ebx, 0x3ffffffe
ja 0x10059acc
lea eax, [ebx + 2]
mov ecx, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax*4 + 1]
cmp eax, dword [ebp + 0xc]
jg 0x10059acc
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
cmp ebx, 4
jl 0x10059a79
push dword [esi]
call fcn.101eaef1
add esp, 4
mov ecx, eax
add esi, 3
shr ecx, 0x1a
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi], cl
mov ecx, eax
shr ecx, 0x14
and ecx, 0x3f
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + 1], cl
mov ecx, eax
shr eax, 8
shr ecx, 0xe
and eax, 0x3f
and ecx, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + 2], cl
mov byte [edi + 3], al
add edi, 4
cmp ebx, 6
lea ebx, [ebx - 3]
jg 0x10059a23
test ebx, ebx
je 0x10059ab8
xor eax, eax
mov ecx, ebx
mov edx, eax
movzx eax, byte [esi]
inc esi
shl edx, 8
or eax, edx
dec ecx
jne 0x10059a81
mov esi, dword [ebp + 8]
shl ebx, 3
test ebx, ebx
jle 0x10059ac1
shl eax, 6
mov edx, eax
mov ecx, ebx
shr edx, cl
and edx, 0x3f
mov cl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi], cl
inc edi
cmp ebx, 6
lea ebx, [ebx - 6]
jg 0x10059a9c
jmp 0x10059ac1
mov esi, dword [ebp + 8]
jmp 0x10059ac1
mov byte [edi], 0x3d
inc edi
mov eax, edi
sub eax, esi
test al, 3
jne 0x10059abd
mov byte [edi], 0
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1005ae10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov ecx, dword [ebp + 0x10]
mov eax, 0xffffffea
lea edx, [ecx - 8]
cmp edx, 0x18
ja 0x1005afcc
xor edx, edx
mov ebx, dword [ebp + 0x14]
xor edi, edi
xor esi, esi
inc edx
shld edi, edx, cl
shl edx, cl
test cl, 0x20
cmovne edi, edx
cmovne edx, esi
cmp ebx, edx
sbb esi, edi
jge 0x1005afcc
mov edx, dword [ebp + 0x18]
cmp edx, 0x1000
je 0x1005ae64
cmp edx, 0x404
jne 0x1005afcc
neg cl
shl ebx, cl
xor esi, esi
xor edi, edi
mov dword [ebp - 0x10], ebx
xor ebx, ebx
cmp dword [ebp + 0xc], 0
je 0x1005aee9
mov edx, dword [ebp + 0x14]
mov eax, edi
mov ecx, edi
and eax, 1
shr ecx, 1
neg eax
and eax, edx
xor eax, ecx
mov ecx, eax
and eax, 1
neg eax
shr ecx, 1
and eax, edx
xor eax, ecx
mov ecx, eax
and eax, 1
neg eax
shr ecx, 1
and eax, edx
xor eax, ecx
mov ecx, eax
and eax, 1
neg eax
shr ecx, 1
and eax, edx
xor eax, ecx
mov ecx, eax
and eax, 1
neg eax
shr ecx, 1
and eax, edx
xor eax, ecx
mov ecx, eax
and eax, 1
neg eax
shr ecx, 1
and eax, edx
xor eax, ecx
mov ecx, eax
and eax, 1
neg eax
shr ecx, 1
and eax, edx
xor eax, ecx
mov ecx, eax
and eax, 1
neg eax
shr ecx, 1
and eax, edx
mov edx, dword [ebp + 8]
xor eax, ecx
jmp 0x1005af47
mov edx, dword [ebp - 0x10]
mov eax, esi
sar eax, 0x1f
and eax, edx
xor eax, ebx
lea ecx, [eax + eax]
sar eax, 0x1f
and eax, edx
xor eax, ecx
lea ecx, [eax + eax]
sar eax, 0x1f
and eax, edx
xor eax, ecx
lea ecx, [eax + eax]
sar eax, 0x1f
and eax, edx
xor eax, ecx
lea ecx, [eax + eax]
sar eax, 0x1f
and eax, edx
xor eax, ecx
lea ecx, [eax + eax]
sar eax, 0x1f
and eax, edx
xor eax, ecx
lea ecx, [eax + eax]
sar eax, 0x1f
and eax, edx
xor eax, ecx
lea ecx, [eax + eax]
sar eax, 0x1f
and eax, edx
xor eax, ecx
push eax
call fcn.101eaef1
mov edx, dword [ebp + 8]
add esp, 4
mov dword [edx + edi*4], eax
inc edi
add ebx, 0x2000000
add esi, 0x1000000
cmp edi, 0x100
jne 0x1005ae71
xor eax, eax
cmp dword [ebp + 0x18], 0x1000
mov dword [edx + 0x400], 1
jb 0x1005afcc
mov ecx, 0xffffff00
mov edx, dword [ebp + 8]
mov edi, dword [ebp + 8]
mov edx, dword [edx + ecx*4 + 0x400]
movzx esi, dl
shr edx, 8
xor edx, dword [edi + esi*4]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 8]
mov dword [esi + ecx*4 + 0x800], edx
movzx esi, dl
shr edx, 8
xor edx, dword [edi + esi*4]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 8]
mov dword [esi + ecx*4 + 0xc00], edx
movzx esi, dl
shr edx, 8
xor edx, dword [edi + esi*4]
mov edi, dword [ebp + 8]
mov dword [edi + ecx*4 + 0x1000], edx
inc ecx
jne 0x1005af7d
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1005b260
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
cmp dword [edx + 0x400], 0
lea esi, [ecx + eax]
jne 0x1005b2e1
test eax, eax
jle 0x1005b29d
mov eax, ecx
and eax, 3
je 0x1005b29d
movzx edi, byte [ecx]
movzx eax, bl
shr ebx, 8
inc ecx
xor edi, eax
xor ebx, dword [edx + edi*4]
cmp ecx, esi
jb 0x1005b283
lea eax, [esi - 3]
cmp ecx, eax
jae 0x1005b2e1
mov dword [ebp - 0x10], eax
xor ebx, dword [ecx]
add ecx, 4
movzx eax, bh
movzx edi, bl
mov eax, dword [edx + eax*4 + 0x800]
xor eax, dword [edx + edi*4 + 0xc00]
mov edi, ebx
shr ebx, 0x18
shr edi, 0xe
and edi, 0x3fc
xor eax, dword [edx + edi + 0x400]
xor eax, dword [edx + ebx*4]
cmp ecx, dword [ebp - 0x10]
mov ebx, eax
jb 0x1005b2a7
jmp 0x1005b2e3
mov eax, ebx
cmp ecx, esi
jae 0x1005b2fa
movzx ebx, byte [ecx]
movzx edi, al
shr eax, 8
inc ecx
xor ebx, edi
xor eax, dword [edx + ebx*4]
cmp esi, ecx
jne 0x1005b2e7
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10065b90
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xa8
mov eax, dword [0x1026f864]
xor eax, ebp
cmp dword [0x10238e10], 0x79
mov dword [esp + 0xa0], eax
jae 0x10065d3f
mov eax, dword [0x10331a6c]
xor esi, esi
xor edi, edi
mov dword [esp + 0x10], eax
mov eax, dword [0x10331a68]
mov dword [esp + 0xc], eax
lfence
rdtsc
xor dword [0x10331aa4], eax
lfence
rdtsc
xor dword [0x10331b14], edx
mov dword [esp + 8], 0
call fcn.101f0c3d
lea ecx, [edi + esi*2]
mov esi, eax
sub esi, edi
cmp ecx, eax
jge 0x10065c89
mov ebx, dword [0x10331a68]
mov edi, esi
mov ecx, dword [0x10331a6c]
sub edi, 0xc46031b9
cmovb edi, esi
add ebx, 1
mov edx, ebx
adc ecx, 0
mov dword [0x10331a68], ebx
and edx, 0x1ff
mov dword [0x10331a6c], ecx
add dword [edx*4 + 0x10331a70], edi
mov edi, eax
sub edi, dword [esp + 8]
cmp edi, 0x1f
jl 0x10065cba
mov edx, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
or edx, edi
mov edx, 4
setne byte [esp + 7]
sub ebx, dword [esp + 0xc]
sbb ecx, edi
cmp edx, ebx
mov edx, 0
mov edi, 0
sbb edx, ecx
mov edx, 0x40
setb byte [esp + 6]
cmp edx, ebx
sbb edi, ecx
jb 0x10065cce
mov cl, byte [esp + 6]
and byte [esp + 7], cl
je 0x10065cba
jmp 0x10065cce
mov ecx, dword [0x10331a68]
mov edx, 0x1ff
mov edi, esi
and ecx, edx
imul edx, dword [ecx*4 + 0x10331a70], 0x19660d
sub edi, 0xc46031b9
cmovb edi, esi
lea edx, [edi + edx + 0x3c6ef35f]
mov dword [ecx*4 + 0x10331a70], edx
mov ecx, dword [esp + 8]
mov edi, eax
test ecx, ecx
cmove ecx, eax
mov dword [esp + 8], ecx
jmp 0x10065bee
lfence
rdtsc
add dword [0x10331c2c], eax
lea esi, [esp + 0x28]
push 0xa0
push esi
call fcn.1006682f
add esp, 8
push 0x800
push 0x10331a70
push esi
call fcn.10069f70
add esp, 0xc
lea edi, [esp + 0x14]
push edi
push esi
call fcn.1006a020
add esp, 8
push dword [edi]
call fcn.101eaef1
add esp, 4
mov esi, eax
push dword [edi + 0x10]
call fcn.101eaef1
add esp, 4
mov ecx, dword [esp + 0xa0]
mov edi, eax
add edi, esi
xor ecx, ebp
call fcn.101e05ab
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.101f01af
int3
Function at 0x100a501a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x50
cmp dword [ebp + 8], 0
jle 0x100a512b
cvtsi2sd xmm0, dword [ebp + 8]
mov edi, ecx
mov esi, edx
xor eax, eax
xorpd xmm1, xmm1
add edi, 4
movsd qword [esp + 0x20], xmm0
movsd qword [esp + 0x18], xmm1
addsd xmm1, qword [0x10210908]
mov ebx, 0xfffffff9
mov dword [esp + 0x14], eax
mulsd xmm1, qword [0x10210b40]
movsd qword [esp + 0x28], xmm1
lea eax, [ebx + 1]
xorps xmm1, xmm1
cvtsi2sd xmm1, eax
mulsd xmm1, qword [esp + 0x28]
divsd xmm1, xmm0
xorps xmm0, xmm0
cvtss2sd xmm0, dword [esi + ebx*4 + 0x1c]
movsd qword [esp + 8], xmm0
movsd qword [esp + 0x30], xmm1
movsd qword [esp], xmm1
call fcn.101f0d60
fstp qword [esp + 0x40]
movsd xmm0, qword [esp + 8]
movsd xmm1, qword [esp + 0x30]
mulsd xmm0, qword [esp + 0x40]
cvtsd2ss xmm0, xmm0
movss dword [edi + ebx*8 + 0x34], xmm0
xorps xmm0, xmm0
cvtss2sd xmm0, dword [esi + ebx*4 + 0x1c]
movsd qword [esp], xmm1
movsd qword [esp + 8], xmm0
call fcn.101f2710
fstp qword [esp + 0x38]
movapd xmm1, xmmword [0x102092f0]
movsd xmm0, qword [esp + 0x38]
xorpd xmm0, xmm1
mulsd xmm0, qword [esp + 8]
cvtsd2ss xmm0, xmm0
movss dword [edi + ebx*8 + 0x38], xmm0
movsd xmm0, qword [esp + 0x20]
inc ebx
jne 0x100a506d
mov eax, dword [esp + 0x14]
movsd xmm1, qword [esp + 0x18]
add edi, 0x40
inc eax
addsd xmm1, qword [0x10210b48]
cmp eax, dword [ebp + 8]
jne 0x100a5048
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret