joyce8/EMBER2024-capa huggingface dataset:
Function at 0x472250
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5042db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, edx
push esi
mov ecx, edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
call fcn.0045fe50
mov dword [ebp - 4], 2
lea eax, [esi + 0x18]
lea ecx, [edi + 0x18]
push eax
mov dword [ebp + 8], ecx
call fcn.0045fe50
mov dword [ebp - 4], 5
lea eax, [esi + 0x30]
lea ecx, [edi + 0x30]
push eax
mov dword [ebp - 0x18], ecx
call fcn.0045fe50
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x47b510
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x14], edx
test edi, edi
je 0x47b672
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x47b672
mov eax, dword [edi + 0x3c]
add eax, edi
cmp dword [eax], 0x4550
jne 0x47b672
mov ecx, 0x20b
cmp word [eax + 0x18], cx
jne 0x47b561
mov ecx, dword [eax + 0x8c]
mov eax, dword [eax + 0x88]
jmp 0x47b567
mov ecx, dword [eax + 0x7c]
mov eax, dword [eax + 0x78]
mov esi, dword [eax + edi + 0x1c]
lea ebx, [eax + edi]
mov eax, dword [ebx + 0x24]
add esi, edi
mov dword [ebp - 0xc], ecx
add eax, edi
mov ecx, dword [ebx + 0x20]
mov dword [ebp - 8], esi
add ecx, edi
xor esi, esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
cmp dword [ebx + 0x14], esi
jbe 0x47b6d0
cmp edx, 0xffff
ja 0x47b67b
mov ecx, dword [ebx + 0x10]
movzx eax, si
add ecx, eax
mov dword [ebp - 0x10], eax
movzx eax, dx
cmp eax, ecx
jne 0x47b6c0
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov esi, dword [eax + esi*4]
add esi, edi
cmp esi, ebx
jb 0x47b6d2
mov eax, dword [ebp - 0xc]
add eax, ebx
cmp esi, eax
ja 0x47b6d2
push 0x100
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.004d31f0
push esi
call fcn.004dff89
add esp, 0x10
mov byte [ebp - 9], 0
mov edi, eax
push 0xfffffffffffffff1
call fcn.00461130
mov byte [ebp - 0xa], al
lea eax, [ebp - 0xa]
push eax
push edi
call fcn.004d26a0
add esp, 8
mov esi, eax
lea eax, [ebp - 0x11c]
push edi
mov byte [esi], 0
inc esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 8], 0xb3b3bbf1
xor ecx, ecx
mov byte [ebp - 4], 0
nop dword [eax]
movzx eax, byte [ebp + ecx - 8]
push eax
call fcn.00461130
mov byte [ebp + ecx - 8], al
inc ecx
cmp ecx, 4
jb 0x47b630
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x47b6db
push edi
call fcn.004df828
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, dword [ebx + 0x18]
jae 0x47b672
movzx eax, word [eax + esi*2]
mov ecx, dword [ecx + esi*4]
mov dword [ebp - 0x10], eax
add ecx, edi
mov eax, edx
nop
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x47b6b0
test dl, dl
je 0x47b6ac
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x47b6b0
add ecx, 2
add eax, 2
test dl, dl
jne 0x47b690
xor eax, eax
jmp 0x47b6b5
sbb eax, eax
or eax, 1
test eax, eax
je 0x47b5b3
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
inc esi
mov ecx, dword [ebp - 0x1c]
cmp esi, dword [ebx + 0x14]
jb 0x47b591
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xfffffffffffffffc
mov byte [ebp - 0xd], 0
call fcn.00461130
mov byte [ebp - 0xe], al
lea eax, [ebp - 0xe]
push eax
push esi
call fcn.004d26a0
add esp, 8
test eax, eax
jne 0x47b6fe
mov edx, esi
jmp 0x47b70c
lea eax, [esi + 1]
push eax
call fcn.004deaf8
add esp, 4
mov edx, eax
mov ecx, ebx
call fcn.0047b510
push edi
mov esi, eax
call fcn.004df828
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47cf30
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
push edi
lea eax, [esp + 8]
mov dword [esp + 8], 0
mov edi, edx
mov dword [esp + 0xc], 0
push eax
lea edx, [esp + 0x10]
mov esi, ecx
call fcn.0047ce20
add esp, 4
test eax, eax
je 0x47cf6c
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0xc]
mov ecx, esi
push 0x7530
push str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_117.0.0.0_Safari_537.36_Edg_117.0.2045.36
push edi
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.0047cc40
mov ecx, dword [esp + 0x20]
add esp, 0x14
mov esi, eax
call fcn.0047cf10
test esi, esi
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x47d400
Capabilities:
Hash data with md5

Disassembly:
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov byte [ecx + 0x9c], 0
ret

Function at 0x47df40
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0047dcc0

Function at 0x47df70
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0047df50
Function at 0x484230
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
push edi
mov edi, edx
mov ecx, dword [ebx]
mov eax, ecx
xor eax, dword [ebp + 8]
mov edx, dword [ebx + 8]
movzx eax, al
shr ecx, 8
xor ecx, dword [edi + eax*4]
movzx eax, cl
add eax, dword [ebx + 4]
mov dword [ebx], ecx
imul ecx, eax, 0x8088405
mov eax, dword [ebp + 8]
inc ecx
mov dword [ebx + 4], ecx
shr ecx, 0x18
xor ecx, edx
shr edx, 8
movzx ecx, cl
xor edx, dword [edi + ecx*4]
pop edi
mov dword [ebx + 8], edx
pop ebx
pop ebp
ret

Function at 0x4857f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x100ac], ebx
je 0x485856
cmp dword [esi + 0x7c], ebx
jbe 0x485856
mov ecx, 0xffffff5c
lea eax, [esi + 0x100d0]
sub ecx, esi
lea edi, [esi + 0xa4]
mov dword [ebp - 4], ecx
nop
mov ecx, eax
call fcn.00484210
movzx ecx, byte [edi]
mov ebx, eax
mov edx, dword [esi + 0x100dc]
push ecx
lea ecx, [esi + 0x100d0]
call fcn.00484230
xor byte [edi], bl
add esp, 4
mov eax, dword [ebp - 4]
inc edi
add eax, edi
cmp eax, dword [esi + 0x7c]
lea eax, [esi + 0x100d0]
jb 0x485820
xor ebx, ebx
mov edi, dword [esi + 0x7c]
lea eax, [esi + 0xa4]
push edi
push eax
push dword [esi + 0x2c]
mov eax, dword [esi + 8]
push dword [esi + 0x1c]
call eax
add esp, 0x10
mov dword [esi + 0x7c], 0
or ecx, 0xffffffff
cmp eax, edi
cmovne ebx, ecx
add dword [esi + 0x100c0], edi
mov ecx, dword [esi + 0x48]
mov eax, ebx
adc dword [esi + 0x100c4], 0
add dword [esi + 0x100c8], ecx
pop edi
adc dword [esi + 0x100cc], 0
mov dword [esi + 0x48], 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x489ee0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, edx
xor esi, esi
mov ebx, ecx
test edi, edi
jle 0x489f0d
nop dword [eax]
movzx eax, byte [ebx]
lea ecx, [esi*8]
dec edi
lea ebx, [ebx + 1]
movzx edx, byte [eax + 0x51f838]
xor edx, ecx
xor esi, edx
test edi, edi
jg 0x489ef0
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x48ab60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x53bfa4]
sub esp, 0x31c
push ebx
push esi
push edi
mov edi, edx
test eax, eax
je 0x48ab93
push eax
push 0x523618
lea eax, [ebp - 0x110]
push eax
push 0xe6
call fcn.00488760
add esp, 0x10
jmp 0x48ac02
call fcn.0048a280
test eax, eax
je 0x48abbb
lea eax, [ebp - 0x318]
push eax
push 0xe6
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x318]
call fcn.0048a340
jmp 0x48abd8
lea eax, [ebp - 0x218]
push eax
push 0xe6
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0x218]
call fcn.0048a490
mov esi, eax
test esi, esi
je 0x48ace4
push esi
push 0x523618
lea eax, [ebp - 0x110]
push eax
push 0xe6
call fcn.00488760
push esi
call fcn.004df828
add esp, 0x14
lea ecx, [ebp - 0x110]
call fcn.00488ee0
test eax, eax
je 0x48ac20
cmp byte [ebp + eax - 0x111], 0x5c
jne 0x48ac20
sub eax, 1
jne 0x48ac11
mov byte [ebp + eax - 0x110], 0
lea eax, [ebp - 0x110]
push eax
push str._setilqs_
push edi
push 0xe7
call fcn.00488760
add esp, 0x10
mov ecx, edi
call fcn.00488ee0
mov ebx, eax
mov ecx, 0x14
lea esi, [ebx + edi]
mov edx, esi
call fcn.004888b0
add esi, 2
mov dword [ebp - 4], 0x3e
mov ecx, 4
nop dword [eax]
movzx eax, byte [esi - 2]
lea esi, [esi + 5]
xor edx, edx
div dword [ebp - 4]
movzx eax, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
xor edx, edx
mov byte [esi - 7], al
movzx eax, byte [esi - 6]
div dword [ebp - 4]
movzx eax, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
xor edx, edx
mov byte [esi - 6], al
movzx eax, byte [esi - 5]
div dword [ebp - 4]
movzx eax, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
xor edx, edx
mov byte [esi - 5], al
movzx eax, byte [esi - 4]
div dword [ebp - 4]
movzx eax, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
xor edx, edx
mov byte [esi - 4], al
movzx eax, byte [esi - 3]
div dword [ebp - 4]
movzx eax, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [esi - 3], al
sub ecx, 1
jne 0x48ac70
mov byte [ebx + edi + 0x14], cl
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 7
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48b140
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push esi
push edi
lea eax, [ebp - 0x110]
mov dword [ebp - 8], 0x200
push eax
push 0x104
push edx
push ecx
call fcn.0048b060
add esp, 0x10
test eax, eax
jne 0x48b216
lea ecx, [ebp - 0x110]
call fcn.0048ab40
mov esi, eax
test esi, esi
je 0x48b20b
call fcn.0048a280
mov ecx, esi
test eax, eax
je 0x48b1d1
movzx eax, word [esi]
test ax, ax
je 0x48b1bb
mov edx, eax
nop word [eax + eax]
cmp dx, 0x5c
je 0x48b1b6
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x48b1a0
jmp 0x48b1bb
xor eax, eax
mov word [ecx], ax
lea eax, [ebp - 4]
push eax
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
jmp 0x48b1fc
mov al, byte [esi]
test al, al
je 0x48b1e8
cmp al, 0x5c
je 0x48b1e5
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x48b1d7
jmp 0x48b1e8
mov byte [ecx], 0
lea eax, [ebp - 4]
push eax
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
push esi
mov edi, eax
call fcn.004df828
add esp, 4
test edi, edi
jne 0x48b216
mov eax, 0x200
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x49ed70
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, edx
mov eax, ecx
mov dword [esp + 4], eax
push esi
push edi
test ebx, ebx
je 0x49ee93
mov edx, 0x44
call fcn.00487330
mov edi, eax
test edi, edi
je 0x49ee93
mov esi, dword [ebp + 8]
mov edx, dword [ebx]
mov ecx, dword [esp + 0xc]
push esi
call fcn.0049ea90
mov ecx, dword [esp + 0x10]
add esp, 4
mov dword [edi], eax
mov edx, dword [ebx + 8]
push esi
call fcn.0049eb80
mov ecx, dword [esp + 0x10]
add esp, 4
mov dword [edi + 8], eax
mov edx, dword [ebx + 0xc]
push esi
call fcn.0049ea70
mov ecx, dword [esp + 0x10]
add esp, 4
mov dword [edi + 0xc], eax
mov edx, dword [ebx + 0x10]
push esi
call fcn.0049ea90
mov ecx, dword [esp + 0x10]
add esp, 4
mov dword [edi + 0x10], eax
mov edx, dword [ebx + 0x14]
push esi
call fcn.0049ea70
mov ecx, dword [esp + 0x10]
add esp, 4
mov dword [edi + 0x14], eax
mov edx, dword [ebx + 0x18]
push esi
call fcn.0049ea90
mov ecx, dword [esp + 0x10]
add esp, 4
mov dword [edi + 0x18], eax
mov al, byte [ebx + 4]
mov byte [edi + 4], al
mov edx, dword [ebx + 0x1c]
push esi
call fcn.0049ed70
mov ecx, dword [esp + 0x10]
add esp, 4
mov dword [edi + 0x1c], eax
mov edx, dword [ebx + 0x28]
push esi
call fcn.0049ea70
mov ecx, dword [esp + 0x10]
add esp, 4
mov dword [edi + 0x28], eax
mov edx, dword [ebx + 0x2c]
push esi
call fcn.0049ea70
mov dword [edi + 0x2c], eax
mov ecx, 0xfff7
mov dword [edi + 0x30], 0
add esp, 4
mov dword [edi + 0x34], 0
mov ax, word [ebx + 6]
and ax, cx
mov dword [edi + 0x24], 0
mov word [edi + 6], ax
mov eax, edi
mov dword [edi + 0x38], 0xffffffff
mov dword [edi + 0x3c], 0xffffffff
mov dword [edi + 0x40], 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b9704
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.004b96e0
pop esi
leave
ret 8

Function at 0x4bb8b5
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4bb8f4
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4bb8f4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4bb8f4
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4bb8f4
cmp dword [ecx + 0x74], 0xe
jbe 0x4bb8f4
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4bc090
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x20]
mov dword [0x539070], eax
cmp eax, 0x10
jb 0x4bc0b2
cmp eax, 4
jae 0x4bc0b7
call fcn.004bbe80
push 0x10
push 0x53b750
call fcn.004bbea0
add esp, 8
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4bc1d0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
call fcn.004bc220
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x4bc1ed
pop ebp
jmp fcn.004bbe80
pop ebp
ret
Function at 0x4bf7a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
lea ecx, [edx + 0x3f8]
lea esi, [eax + 0x3f8]
cmp eax, ecx
ja 0x4bf7dd
cmp esi, edx
jb 0x4bf7dd
sub edx, eax
mov esi, 0x80
mov ecx, dword [eax + edx]
lea eax, [eax + 8]
xor dword [eax - 8], ecx
mov ecx, dword [eax + edx - 4]
xor dword [eax - 4], ecx
sub esi, 1
jne 0x4bf7c5
pop esi
pop ebp
ret
lea esi, [edx + 0x30]
sub edx, eax
lea ecx, [eax + 0x10]
mov eax, 0x10
nop word [eax + eax]
lea ecx, [ecx + 0x40]
lea esi, [esi + 0x40]
movups xmm0, xmmword [ecx - 0x50]
movups xmm1, xmmword [esi - 0x70]
pxor xmm1, xmm0
movups xmmword [ecx - 0x50], xmm1
movups xmm0, xmmword [ecx - 0x40]
movups xmm1, xmmword [edx + ecx - 0x40]
pxor xmm1, xmm0
movups xmmword [ecx - 0x40], xmm1
movups xmm0, xmmword [ecx - 0x30]
movups xmm1, xmmword [esi - 0x50]
pxor xmm1, xmm0
movups xmmword [ecx - 0x30], xmm1
movups xmm0, xmmword [ecx - 0x20]
movups xmm1, xmmword [esi - 0x40]
pxor xmm1, xmm0
movups xmmword [ecx - 0x20], xmm1
sub eax, 1
jne 0x4bf7f0
pop esi
pop ebp
ret
Function at 0x4c2420
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x539048]
xor eax, ebp
mov dword [ebp - 4], eax
xor edx, edx
xor eax, eax
mov cl, dl
mov dword [ebp - 0xc], edx
mov byte [ebp - 0x10], cl
mov cl, byte [ebp - 9]
mov byte [ebp - 0xf], cl
mov cl, byte [ebp - 0xa]
push ebx
mov byte [ebp - 0xe], cl
mov bl, dl
mov cl, byte [ebp - 0xb]
push esi
mov esi, dword [ebp + 8]
mov word [ebp - 8], dx
mov ch, byte [ebp - 7]
mov byte [ebp - 0xd], cl
nop dword [eax]
mov cl, byte [esi + eax]
mov bh, byte [eax + 0x507b80]
xor bh, cl
or bh, bl
mov bl, byte [eax + 0x507ba0]
xor bl, cl
mov byte [ebp - 0x11], bh
or bl, byte [ebp - 0xd]
mov byte [ebp - 0x17], bl
mov byte [ebp - 0xd], bl
mov bl, byte [eax + 0x507bc0]
xor bl, cl
or bl, byte [ebp - 0xe]
mov byte [ebp - 0x16], bl
mov byte [ebp - 0xe], bl
mov bl, byte [eax + 0x507be0]
xor bl, cl
or bl, byte [ebp - 0xf]
mov byte [ebp - 0x15], bl
mov byte [ebp - 0xf], bl
mov bl, byte [eax + 0x507c00]
xor bl, cl
or bl, byte [ebp - 0x10]
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x10], bl
mov bl, byte [eax + 0x507c20]
xor bl, cl
or bl, ch
mov byte [ebp - 0x13], bl
mov ch, bl
mov bl, byte [eax + 0x507c40]
inc eax
xor bl, cl
or bl, dl
mov byte [ebp - 0x12], bl
mov dl, bl
mov bl, bh
cmp eax, 0x1f
jb 0x4c2460
mov bl, byte [eax + esi]
movzx esi, byte [eax + 0x507c40]
and bl, 0x7f
movzx ecx, bl
xor esi, ecx
movzx ecx, dl
movzx edx, byte [eax + 0x507c20]
or esi, ecx
movzx ecx, bl
dec esi
xor edx, ecx
movzx ecx, byte [ebp - 0x13]
or edx, ecx
movzx ecx, bl
dec edx
or esi, edx
movzx edx, byte [eax + 0x507c00]
xor edx, ecx
movzx ecx, byte [ebp - 0x14]
or edx, ecx
movzx ecx, bl
dec edx
or esi, edx
movzx edx, byte [eax + 0x507be0]
xor edx, ecx
movzx ecx, byte [ebp - 0x15]
or edx, ecx
movzx ecx, bl
dec edx
or esi, edx
movzx edx, byte [eax + 0x507bc0]
xor edx, ecx
movzx ecx, byte [ebp - 0x16]
or edx, ecx
movzx ecx, bl
dec edx
or esi, edx
movzx edx, byte [eax + 0x507ba0]
movzx eax, byte [eax + 0x507b80]
xor edx, ecx
movzx ecx, byte [ebp - 0x17]
or edx, ecx
movzx ecx, bl
xor eax, ecx
dec edx
movzx ecx, bh
or esi, edx
or eax, ecx
mov ecx, dword [ebp - 4]
dec eax
xor ecx, ebp
or eax, esi
shr eax, 8
pop esi
and eax, 1
pop ebx
call fcn.004bb355
mov esp, ebp
pop ebp
ret

Function at 0x4c2d80
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [edx], 0x61707865
mov dword [edx + 4], 0x3320646e
mov dword [edx + 8], 0x79622d32
mov dword [edx + 0xc], 0x6b206574
mov eax, dword [ecx]
mov dword [edx + 0x10], eax
mov eax, dword [ecx + 4]
mov dword [edx + 0x14], eax
mov eax, dword [ecx + 8]
mov dword [edx + 0x18], eax
mov eax, dword [ecx + 0xc]
mov dword [edx + 0x1c], eax
mov eax, dword [ecx + 0x10]
mov dword [edx + 0x20], eax
mov eax, dword [ecx + 0x14]
mov dword [edx + 0x24], eax
mov eax, dword [ecx + 0x18]
mov dword [edx + 0x28], eax
mov eax, dword [ecx + 0x1c]
mov dword [edx + 0x2c], eax
pop ebp
ret
Function at 0x4c57c0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov dword [edx + 0x14], eax
mov eax, dword [ecx + 4]
mov dword [edx + 0x28], eax
mov eax, dword [ecx + 8]
mov dword [edx + 0x3c], eax
mov eax, dword [ecx + 0xc]
mov dword [edx + 0x30], eax
mov eax, dword [ecx + 0x10]
mov dword [edx + 0x1c], eax
mov eax, dword [ecx + 0x14]
mov dword [edx + 0x10], eax
mov eax, dword [ecx + 0x18]
mov dword [edx + 0x24], eax
mov eax, dword [ecx + 0x1c]
mov dword [edx + 0x38], eax
mov dword [edx], 0x61707865
mov dword [edx + 4], 0x3320646e
mov dword [edx + 8], 0x79622d32
mov dword [edx + 0xc], 0x6b206574
pop ebp
ret

Function at 0x4d0550
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0xc], eax
xor eax, eax
mov dword [ebp + 8], 0
push esi
nop word [eax + eax]
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx + eax]
mov ecx, dword [ebp - 4]
movzx esi, byte [ecx + eax]
inc eax
mov ecx, dword [ebp + 8]
xor esi, edx
or ecx, esi
mov dword [ebp + 8], ecx
cmp eax, 0x10
jl 0x4d0570
mov eax, dword [ebp + 8]
dec eax
shr eax, 8
and eax, 1
dec eax
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
imul eax, dword [ebp + 0xc], 0x3c0
add eax, 0x507d80
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.004d1600
Function at 0x4d69ae
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004bbd10
mov eax, dword [0x539048]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004e7cd2
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4d69f0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4d6b4c
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004f67b0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x53bad8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004e01c5
mov ecx, dword [esi*4 + 0x53bad8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x4d6b45
cmp eax, dword [ecx + edi + 0x24]
jne 0x4d6b45
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4d6b45
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004e01c5
add esp, 0x14
test edx, edx
jl 0x4d6b45
jg 0x4d6abb
test eax, eax
jb 0x4d6b45
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4d6b45
jl 0x4d6ad5
cmp dword [ebp - 0x1008], eax
ja 0x4d6b45
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4d6af3
test ebx, ebx
je 0x4d6b2c
cmp ecx, edi
jae 0x4d6b2c
mov al, byte [ecx]
cmp al, 0xd
jne 0x4d6b0d
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4d6b19
cmp byte [ecx + 1], 0xa
jne 0x4d6b19
inc ecx
jmp 0x4d6b19
movzx eax, al
movsx eax, byte [eax + 0x539240]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4d6af3
cmp edx, ebx
jne 0x4d6af3
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4d6b4a
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004bb355
leave
ret