joyce8/EMBER2024-capa huggingface dataset:
Function at 0x78821555
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push esi
push dword [0x78918190]
call dword [sym.imp.kernel32.dll_TlsGetValue]
push dword [0x7891e34c]
and dword [0x7891e360], 0
mov esi, eax
mov byte [0x7891e358], 1
call dword [sym.imp.kernel32.dll_ResetEvent]
push esi
mov dword [0x7891e1f0], 0x788b0c9a
mov dword [0x7891e1ec], 0x78821685
call fcn.78814c2e
mov esi, dword [0x7891e340]
test esi, esi
mov eax, dword [0x7891e348]
mov dword [0x7891e350], esi
mov dword [0x7891e1e8], eax
je 0x788215fa
push edi
cmp byte [esi + 0x44], 0
jne 0x7888f924
lea edi, [esi + 0xc]
push edi
call fcn.788fe6ae
push esi
call fcn.788fe6ae
cmp dword [esi + 0x2c], 0
mov dword [edi], eax
mov dword [esi + 4], esi
mov byte [esi + 0x18], 1
je 0x788215f2
inc dword [0x7891e360]
mov byte [esi + 0x19], 1
mov eax, dword [0x7891e348]
add dword [0x7891e1e8], eax
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x788215b5
pop edi
push dword [0x7891e34c]
mov dword [0x7891e1f0], 0x78809ed9
call dword [sym.imp.kernel32.dll_SetEvent]
pop esi
ret
push esi
call fcn.78814c2e
jmp 0x788215bf
Function at 0x7887e74c
Capabilities:
Get thread local storage value

Disassembly:
push 0x34
push 0x7887e850
call fcn.78801330
mov esi, ecx
mov byte [ebp - 0x1c], 0
mov edi, dword [esi + 0x34]
mov dword [ebp - 0x24], edi
mov ebx, dword [edi + 0xb4]
xor ecx, ecx
cmp dword [ebp + 8], ecx
jne 0x7887e781
mov ecx, edi
call fcn.78809024
mov dword [ebp + 8], eax
mov byte [ebp - 0x1c], 1
xor ecx, ecx
mov eax, dword [edi + 0xbc]
cmp eax, 4
jne 0x788a73f0
mov eax, dword [edi + 0x54]
shr eax, 0xa
test al, 1
jne 0x788a73fa
mov ecx, dword [edi + 0x60]
mov dword [ebp - 0x20], ecx
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [edi + 0xbc], 2
and dword [ebp - 4], 0
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x7887e83f
test ebx, ebx
je 0x7887e7d9
mov byte [esi + 0x2f], 1
push edi
mov eax, dword [0x7891e2a4]
push eax
push eax
push ebx
mov ecx, esi
call fcn.788fe6ae
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
test al, 0x20
jne 0x788a744d
test al, 0x1f
jne 0x788a7477
cmp byte [ebp - 0x1c], 0
je 0x7887e814
push dword [0x78918190]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], ebx
mov ecx, dword [ebx + 0x50]
test ecx, ecx
jne 0x788a7459
push dword [ebp - 0x1c]
push edi
push dword [ebp + 8]
push esi
call fcn.7887e6c4
mov dword [edi + 0xbc], 4
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx]
call dword [eax + 0x10]
call fcn.78801370
ret 4
cmp byte [ebp - 0x1c], 0
je 0x7887e7d9
jmp 0x788a7417
push 0xc00ce212
call fcn.788fe6ae
cmp dword [esi + 0x5c], ecx
je 0x7887e79e
push ecx
push ecx
push ecx
push ecx
push 0xc00ce23d
push 0x80004005
push ecx
call fcn.788fe6ae
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x2c], eax
push eax
mov ecx, esi
call fcn.788fe6ae
push eax
mov ecx, esi
call fcn.788fe6ae
mov eax, dword [esi + 0x54]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x7887e7d9
mov dword [ebp - 0x34], eax
mov ecx, eax
call fcn.78815218
jmp 0x7887e7d9
push ecx
push esi
call fcn.7890c629
jmp 0x7887e821
cmp dword [ecx + 0x10], esi
jne 0x7887e814
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], ecx
mov eax, dword [ecx]
push 1
call dword [eax]
and dword [ebx + 0x50], 0
jmp 0x7887e814
push ecx
call fcn.788fe6ae
push 0
push dword [ebp - 0x14]
call fcn.788fe6ae
ret

Function at 0x788ccafe
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x7891e1e4]
mov dword [ebp - 4], eax
mov eax, dword [0x7892a46c]
cmp eax, 0xffffffff
jne 0x788ccb67
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.kernel32.dll_GetVersionExW]
test eax, eax
je fcn.788b0842
xor eax, eax
inc eax
cmp dword [ebp - 0x108], 2
jne 0x788ccb4f
cmp dword [ebp - 0x114], 5
jae 0x788ccb62
cmp dword [ebp - 0x108], eax
jne 0x788ccb60
cmp dword [ebp - 0x110], 0x5a
jae 0x788ccb62
xor eax, eax
mov dword [0x7892a46c], eax
mov ecx, dword [ebp - 4]
call fcn.78809964
leave
ret
Function at 0x788fe6ae
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x788fe6bd
pop dword [ebp - 0x34]
mov eax, 0x37b4f2ee
sub eax, 0xbf250c31
sub dword [ebp - 0x34], eax
push 0x40
push 0x1000
push 0x964b4
push 0
mov eax, 0x2f6c72dc
sub eax, 0xb6ec61f0
add eax, dword [ebp - 0x34]
call dword [eax]
mov ecx, 0x80b5e1a6
add ecx, 0x7f4a6c3f
mov edx, eax
mov ebx, 0x7895c000
add ebx, dword [ebp - 0x34]
mov edi, 0xd77e832c
add edi, 0x76a18842
mov esi, dword [ebx]
xor dword [ebp - 0x20], edi
sub esi, edi
xor dword [ebp - 4], 0xebf5ddb8
mov dword [edx], esi
add edx, 0x344ccd0f
sub edx, 0x344ccd0b
add ebx, 4
loop 0x788fe716
add eax, 0x6efe7095
add eax, 0x9102b9d2
mov ebx, eax
add eax, 5
mov ecx, 0x22e8379
add ecx, 0x76517c87
add ecx, dword [ebp - 0x34]
call ebx
leave
ret

Function at 0x78914aa1
Capabilities:
Encrypt data using dpapi

Disassembly:
push 0x18
push 0x78914b90
call fcn.78801330
xor esi, esi
mov dword [ebp - 0x24], esi
cmp byte [0x7892ccc8], 0
je 0x78914b35
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], esi
push dword [ebp + 0xc]
push 5
push esi
push esi
push esi
cmp byte [ebp + 0x10], 0
je 0x78914adf
push 0x78914b78
push dword [ebp + 8]
call dword [sym.imp.CRYPT32.dll_CryptProtectData]
jmp 0x78914aec
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
mov dword [ebp - 0x20], eax
cmp eax, esi
jne 0x78914b0d
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x28], eax
cmp eax, esi
jle 0x78914b0a
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x24], eax
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], esi
je 0x78914b6b
push dword [ebp - 0x1c]
call dword [sym.imp.kernel32.dll_LocalFree]
jmp 0x78914b6b
mov ebx, dword [ebp + 8]
push dword [ebx]
push esi
call dword [sym.imp.kernel32.dll_LocalAlloc]
mov edx, dword [ebp + 0xc]
mov dword [edx + 4], eax
cmp eax, esi
jne 0x78914b52
mov eax, 0x8007000e
jmp 0x78914b6e
mov ecx, dword [ebx]
mov esi, dword [ebx + 4]
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx]
mov dword [edx], eax
mov eax, dword [ebp - 0x24]
call fcn.78801370
ret 0xc
Function at 0x10005250
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x5c
push 0
push esi
call fcn.1006c120
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov eax, 1
pop esi
ret

Function at 0x10006320
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x108
call fcn.1006d450
mov eax, dword [0x100adb80]
xor eax, esp
mov dword [esp + 0x104], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x10006385
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x10006385
mov ecx, dword [esp + 0x10c]
lea eax, [esp + 0x110]
push eax
push ecx
call fcn.1006e2cb
add eax, 0x40
push eax
call fcn.1006e103
add esp, 0xc
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.1006bd1f
add esp, 0x108
ret
mov eax, dword [esp + 0x10c]
lea edx, [esp + 0x110]
push edx
push eax
lea ecx, [esp + 0xc]
push 0xff
push ecx
call fcn.1006e03c
add esp, 0x10
mov byte [esp + 0x103], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x10006414
call fcn.100061e0
test eax, eax
jle 0x10006414
push esi
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
mov esi, eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
lea edx, [esp + 0x28]
push esi
mov dword [esp + 0x28], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.1006bd1f
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.1006bd1f
add esp, 0x108
ret

Function at 0x10007912
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 0x1000794d
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x10007934
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x10007945
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x1000794f
inc edi
add eax, 0x28
cmp edi, esi
jb 0x1000792a
xor eax, eax
pop edi
pop esi
ret
Function at 0x10008000
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x10007fa9
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x10007fc7
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
invalid
invalid
push dword [ebx]
ror byte [ecx - 0x3e7443bb], cl
push dword [ebx]
ror byte [ecx - 0x3e7443bb], cl
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x10008025
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
invalid
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x1000800c
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x10008015
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x1000801f
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x10008001
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x10007f8b
mov dword [ebp + 8], esi
xor edi, edi

Function at 0x10008100
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add dh, al
test dword [eax + 0x62fffffc], esi
mov byte [ebp - 0x34f], 0x40
mov byte [ebp - 0x34e], 0x51
mov byte [ebp - 0x34d], 0x75
mov byte [ebp - 0x34c], 0x57
mov byte [ebp - 0x34b], 0x4a
mov byte [ebp - 0x34a], 0x46
mov byte [ebp - 0x349], 0x40
mov byte [ebp - 0x348], 0x56
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.100078e2
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
invalid
invalid

Function at 0x100085c0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
je 0x10008790
cmp dword [ebp + 0xc], 8
jne 0x10008758
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
mov byte [ebp - 0x6ad], 0xb
mov byte [ebp - 0x6ac], 7
mov byte [ebp - 0x6ab], 1
mov byte [ebp - 0x6aa], 0x17
mov byte [ebp - 0x6a9], 0x17
mov byte [ebp - 0x6a8], 0x29
mov byte [ebp - 0x6a7], 1
mov byte [ebp - 0x6a6], 9
mov byte [ebp - 0x6a5], 0xb
mov byte [ebp - 0x6a4], 0x16
mov byte [ebp - 0x6a3], 0x1d
mov byte [ebp - 0x6a2], 0x64
lea eax, fs:[ebp - 0x6b8]
call fcn.100078d2
fistp qword [edx + eax*4 - 0x51]
scasd eax, dword es:[edi]

Function at 0x10008760
Capabilities:
Contain obfuscated stackstrings

Disassembly:
scasd eax, dword es:[edi]
and byte [ebp - 0x544], 0
push 0
call dword [ebp - 0x340]
mov dword [ebp + 8], eax
push 0x104
lea eax, [ebp - 0x334]
push eax
push 0
call dword [ebp - 0x538]
call fcn.100078d2
xlatb
in al, dx
lodsd eax, dword [esi]
and byte [ebp - 0x230], 0
push 0x40
pop ecx
xor eax, eax
invalid
invalid
sar ebp, 1
Function at 0x10045660
Capabilities:
Encode data using base64

Disassembly:
mov ecx, dword [esp + 4]
push ebp
push edi
mov edi, dword [esp + 0x14]
xor ebp, ebp
test edi, edi
jle 0x10045743
push esi
mov esi, dword [esp + 0x14]
inc esi
lea ebx, [ebx]
movzx edx, byte [esi - 1]
cmp edi, 3
jl 0x100456dd
movzx eax, byte [esi]
shl edx, 8
or edx, eax
movzx eax, byte [esi + 1]
shl edx, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
mov eax, edx
shr eax, 6
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 2], al
and edx, 0x3f
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 3], dl
jmp 0x1004572e
shl edx, 0x10
cmp edi, 2
jne 0x100456ed
movzx eax, byte [esi]
shl eax, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
cmp edi, 1
jne 0x1004571a
lea edx, [edi + 0x3c]
jmp 0x10045727
shr edx, 6
and edx, 0x3f
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 2], dl
mov byte [ecx + 3], 0x3d
sub edi, 3
add ecx, 4
add ebp, 4
add esi, 3
test edi, edi
jg 0x10045680
pop esi
pop edi
mov eax, ebp
mov byte [ecx], 0
pop ebp
ret

Function at 0x10061ea0
Capabilities:
Create thread

Disassembly:
push esi
push 0
push 0x400
mov dword [0x100b1b2c], 0
mov dword [0x100b1b20], 1
push 0x10061e70
call fcn.10071eb5
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0xc
push 0x10
call esi
mov dword [0x100b1b20], 0
push 1
call esi
mov ecx, dword [0x100b1b2c]
mov eax, dword [0x100b1b2c]
shr ecx, 3
xor eax, ecx
mov ecx, dword [0x100b1b28]
shr eax, 3
xor ecx, eax
xor dword [0x100b1b2c], ecx
and dword [0x100b1b2c], 7
mov eax, dword [0x100b1b2c]
mov dword [0x100b1b28], eax
mov eax, dword [0x100b1b24]
mov ecx, dword [0x100b1b2c]
add eax, eax
add eax, eax
add eax, eax
xor ecx, eax
mov dword [0x100b1b24], ecx
mov eax, dword [0x100b1b24]
pop esi
ret
call 0x10061ea0
call 0x10061ea0
call 0x10061ea0
call 0x10061ea0
call 0x10061ea0
call 0x10061ea0
call 0x10061ea0
call 0x10061ea0
call 0x10061ea0
call 0x10061ea0
jmp 0x10061ea0
Function at 0x5b0b10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x577015
lea edi, [esi - 0x176015]
call dword [edi - 0x7d]
int 0xff
jmp 0x5b0b32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5b0b39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5b0b28
mov eax, 1
add ebx, ebx
jne 0x5b0b4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5b0b5c
jne 0x5b0b7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5b0b7b
dec eax
add ebx, ebx
jne 0x5b0b68
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5b0b40
add ebx, ebx
jne 0x5b0b77
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5b0bcd
xor ecx, ecx
sub eax, 3
jb 0x5b0b93
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5b0c02
sar eax, 1
mov ebp, eax
jmp 0x5b0b9e
add ebx, ebx
jne 0x5b0b9e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5b0b6c
inc ecx
add ebx, ebx
jne 0x5b0bac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5b0b6c
add ebx, ebx
jne 0x5b0bb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5b0bae
jne 0x5b0bca
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5b0bae
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5b0bec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5b0bde
jmp 0x5b0b2e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5b0bec
add edi, ecx
jmp 0x5b0b2e
pop esi
mov edi, esi
mov ecx, 0x7a7e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5b0c0a
cmp byte [edi], 0xc
jne 0x5b0c0a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x5b0c0f
lea edi, [esi + 0x1ae000]
mov eax, dword [edi]
or eax, eax
je 0x5b0c87
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1b09b0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1b09ec]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5b0c3c
mov ecx, edi
jns 0x5b0c6b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1b09f4]
or eax, eax
je 0x5b0c81
mov dword [ebx], eax
add ebx, 4
jmp 0x5b0c59
call dword [esi + 0x1b09f0]
mov ebp, dword [esi + 0x1b09f8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x5b0cbb
sub esp, 0xffffff80
jmp 0x402408
Function at 0x401610
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
and eax, 0x8000000f
jns 0x401625
dec eax
or eax, 0xfffffff0
inc eax
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x401633
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x401639
xor eax, eax
mov esp, ebp
pop ebp
ret
push esi
push edi
movq mm6, qword [0x481050]
pxor mm7, mm7
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
shr ecx, 4
jne 0x401655
jmp 0x401697
movq mm0, qword [esi]
movq mm1, qword [esi + 8]
movq mm2, mm0
movq mm3, mm1
movq mm4, qword [edi]
movq mm5, qword [edi + 8]
pcmpeqb mm0, mm7
pcmpeqb mm1, mm7
pand mm4, mm0
pand mm5, mm1
pxor mm0, mm6
pxor mm1, mm6
pand mm2, mm0
pand mm3, mm1
por mm2, mm4
por mm3, mm5
movq qword [edi], mm2
movq qword [edi + 8], mm3
lea esi, [esi + 0x10]
lea edi, [edi + 0x10]
dec ecx
jne 0x401655
mov dword [ebp - 4], esi
mov dword [ebp - 8], edi
emms
test eax, eax
je 0x4016bd
jle 0x4016bd
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov esi, eax
lea ecx, [ecx]
mov al, byte [ecx]
test al, al
je 0x4016b8
mov byte [edx], al
inc edx
inc ecx
dec esi
jne 0x4016b0
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4016d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4811e8]
push ebx
mov ebx, dword [ebp + 0x10]
and ebx, 0x80000007
mov dword [ebp - 4], eax
jns 0x4016ef
dec ebx
or ebx, 0xfffffff8
inc ebx
mov eax, dword [ebp + 8]
test eax, eax
je 0x4016fd
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x40170c
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
call fcn.00457925
mov esp, ebp
pop ebp
ret
mov dl, byte [ebp + 0x14]
push esi
lea eax, [ebp - 0xc]
push edi
mov dword [ebp - 0x18], eax
mov byte [ebp - 0xc], dl
mov byte [ebp - 0xb], dl
mov byte [ebp - 0xa], dl
mov byte [ebp - 9], dl
mov byte [ebp - 8], dl
mov byte [ebp - 7], dl
mov byte [ebp - 6], dl
mov byte [ebp - 5], dl
movq mm6, qword [0x481058]
pxor mm7, mm7
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
shr ecx, 3
mov eax, dword [ebp - 0x18]
movq mm1, qword [eax]
jne 0x40174f
jmp 0x401773
movq mm0, qword [esi]
movq mm2, mm1
movq mm4, qword [edi]
pcmpeqb mm0, mm7
pand mm4, mm0
pxor mm0, mm6
pand mm2, mm0
por mm2, mm4
movq qword [edi], mm2
lea esi, [esi + 8]
lea edi, [edi + 8]
dec ecx
jne 0x40174f
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], edi
emms
test ebx, ebx
pop edi
pop esi
je 0x40179c
jle 0x40179c
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
lea esp, [esp]
cmp byte [ecx], 0
je 0x401797
mov byte [eax], dl
inc eax
inc ecx
dec ebx
jne 0x401790
mov ecx, dword [ebp - 4]
mov eax, 1
pop ebx
call fcn.00457925
mov esp, ebp
pop ebp
ret

Function at 0x402790
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ecx
push esi
push edi
rdtsc
mov dword [esp + 8], eax
mov esi, dword [0x47436c]
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0x64
jb 0x4027a3
rdtsc
sub eax, dword [esp + 8]
mov dword [esp + 8], eax
fild dword [esp + 8]
mov eax, dword [esp + 8]
test eax, eax
jge 0x4027c8
fadd qword [0x4747e0]
fmul qword [0x4747d8]
pop edi
pop esi
pop ecx
ret
Function at 0x404480
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x17e4
call fcn.00457940
mov eax, dword [0x4811e8]
mov ecx, dword [0x4753d8]
mov edx, dword [0x4753dc]
mov dword [esp + 0x17e0], eax
mov eax, dword [str.EAGLS_SYSTEM]
mov dword [esp + 0xc], eax
mov al, byte [0x4753e0]
push ebx
mov byte [esp + 0x1c], al
push esi
push edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
xor esi, esi
xor ebx, ebx
xor eax, eax
mov ecx, 0x1c
lea edi, [esp + 0x25]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4044e0
mov edi, dword [ebp + 0xc]
push 0x174b
lea ecx, [esp + 0x9c]
sub eax, edx
push edi
push ecx
mov dword [esp + 0x18], eax
call fcn.00401450
mov edx, dword [ebp + 0x10]
movzx eax, byte [edi + edx - 1]
push eax
push 0x41cf90
push 0x41cd90
call fcn.0041cfe0
add esp, 0x18
xor edi, edi
call fcn.0041d000
cdq
idiv dword [esp + 0xc]
mov cl, byte [esp + edx + 0x18]
xor byte [esp + edi + 0x98], cl
inc edi
cmp edi, 0x174b
jl 0x404520
mov eax, dword [ebp + 0xc]
push 0x174b
lea edx, [esp + 0x9c]
push edx
push eax
call fcn.00401450
add esp, 0xc
mov ecx, 0x3fb
xor eax, eax
lea edi, [esp + 0x98]
rep stosd dword es:[edi], eax
mov edx, 0xfee
mov dword [esp + 0xc], 0
stosw word es:[edi], ax
mov eax, dword [esp + 0xc]
shr eax, 1
mov dword [esp + 0xc], eax
test ah, 1
mov eax, dword [ebp + 0xc]
jne 0x404597
movzx ecx, byte [esi + eax]
inc esi
or ecx, 0xff00
mov dword [esp + 0xc], ecx
test byte [esp + 0xc], 1
je 0x4045ba
movzx eax, byte [esi + eax]
mov ecx, dword [ebp + 8]
inc esi
mov byte [ebx + ecx], al
mov byte [esp + edx + 0x98], al
inc ebx
inc edx
and edx, 0xfff
jmp 0x40461d
movzx edi, byte [esi + eax]
movzx eax, byte [esi + eax + 1]
inc esi
mov ecx, eax
and ecx, 0xf0
shl ecx, 4
or edi, ecx
and eax, 0xf
inc esi
add eax, 2
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov ecx, 0
js 0x40461d
jmp 0x4045f0
mov edi, dword [esp + 0x14]
lea ecx, [ecx]
lea eax, [ecx + edi]
mov edi, dword [ebp + 8]
and eax, 0xfff
mov al, byte [esp + eax + 0x98]
mov byte [ebx + edi], al
inc ebx
mov byte [esp + edx + 0x98], al
mov eax, dword [esp + 0x10]
inc ecx
inc edx
and edx, 0xfff
cmp ecx, eax
jle 0x4045e9
cmp esi, dword [ebp + 0x10]
jl 0x404576
mov ecx, dword [esp + 0x17ec]
mov eax, ebx
call fcn.00457925
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret