joyce8/EMBER2024-capa huggingface dataset:
Function at 0x530d40
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
mov dword [eax + 0x14], 0
mov eax, dword [0x80fe3c]
cmp eax, 0xb
jne 0x530d74
mov ecx, dword [0x83a870]
push 1
push 0
push 0
push str.http:__www.ragnarok.co.in_index.php
push str.open
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [esi], 0
pop esi
ret

Function at 0x534170
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x72d678
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov al, byte [ebp - 0xd]
push ebx
push esi
mov esi, ecx
push edi
push 0xc
lea edi, [esi + 0xf8]
mov dword [ebp - 0x14], edi
mov byte [edi], al
call fcn.0070dddb
xor ebx, ebx
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
mov cl, byte [ebp - 0xd]
push 0xc
mov dword [ebp - 4], ebx
mov byte [edi + 0xc], cl
call fcn.0070dddb
mov ecx, dword [ebp - 0xc]
add esp, 8
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ebx
mov dword [esi], 0x73ee74
mov dword [esi + 0x30], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1bc], ebx
mov dword [esi + 0x18], ebx
mov byte [esi + 0x10], bl
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x534fd0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x72d774
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov al, byte [ebp - 0xd]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
push ebx
mov dword [ebp - 0x14], esi
mov byte [esi], al
call fcn.00420210
mov dl, byte [ebp - 0xd]
lea ecx, [esi + 0x10]
push ebx
mov dword [ebp - 4], ebx
mov byte [ecx], dl
call fcn.00420210
mov al, byte [ebp - 0xd]
lea ecx, [esi + 0x20]
push ebx
mov byte [ebp - 4], 1
mov byte [ecx], al
call fcn.00420210
mov dl, byte [ebp - 0xd]
lea ecx, [esi + 0x30]
push ebx
mov byte [ebp - 4], 2
mov byte [ecx], dl
call fcn.00420210
mov al, byte [ebp - 0xd]
lea ecx, [esi + 0x54]
push ebx
mov byte [ebp - 4], 3
mov byte [ecx], al
call fcn.00420210
mov cl, byte [ebp - 0xd]
push 0x2c
mov byte [ebp - 4], 4
mov byte [esi + 0xac], cl
call fcn.0070dddb
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 0xb0], eax
mov dword [esi + 0xb4], ebx
mov dl, byte [ebp - 0xd]
push 0x64
mov byte [ebp - 4], 5
mov byte [esi + 0xb8], dl
call fcn.0070dddb
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 0xbc], eax
mov dword [esi + 0xc0], ebx
mov al, byte [ebp - 0xd]
push 0x20
mov byte [ebp - 4], 6
mov byte [esi + 0xc4], al
call fcn.0070dddb
mov dword [eax], eax
mov dword [eax + 4], eax
add esp, 0xc
mov dword [esi + 0xc8], eax
mov dword [esi + 0xcc], ebx
mov cl, byte [ebp - 0xd]
lea edi, [esi + 0xd0]
push ebx
push ebx
mov byte [edi], cl
mov ecx, edi
mov byte [ebp - 4], 7
call fcn.00536540
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
mov dl, byte [ebp - 0xd]
lea edi, [esi + 0xdc]
push ebx
push ebx
mov ecx, edi
mov byte [ebp - 4], 8
mov byte [edi], dl
call fcn.005365d0
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
mov al, byte [ebp - 0xd]
mov dl, byte [ebp - 0xd]
lea ecx, [esi + 0xe8]
mov byte [ebp - 4], 9
mov byte [ecx], al
mov byte [ecx + 1], dl
mov byte [ecx + 8], bl
call fcn.00536dc0
lea eax, [ebp - 0xd]
lea edx, [ebp - 0xe]
push eax
push ebx
lea ecx, [esi + 0xf8]
push edx
mov byte [ebp - 4], 0xa
call fcn.00536750
lea eax, [ebp - 0xf]
lea edx, [ebp - 0x10]
push eax
push ebx
lea ecx, [esi + 0x108]
push edx
mov byte [ebp - 4], 0xb
call fcn.00536780
mov ecx, esi
mov byte [ebp - 4], 0xc
call fcn.005354e0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x543eb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, ecx
push ebx
push esi
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x543edf
mov edx, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push 0
push eax
mov eax, dword [ebp + 8]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
pop edi
pop esi
setne al
pop ebx
pop ebp
ret 8
mov edi, dword [eax + 4]
test edi, edi
je 0x543f1c
mov esi, dword [eax + 8]
mov edx, dword [ebp + 0xc]
mov ebx, dword [eax + 0xc]
lea ecx, [esi + edx]
cmp ecx, ebx
ja 0x543f1c
mov ecx, edx
add esi, edi
mov edi, dword [ebp + 8]
mov ebx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [eax + 8]
pop edi
add ecx, edx
pop esi
mov dword [eax + 8], ecx
mov al, 1
pop ebx
pop ebp
ret 8
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 8
Function at 0x544570
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using rc4 via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x72e160
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov ecx, dword [ebp + 0x18]
push ebx
mov dword [ebp - 0x30], ecx
push esi
mov esi, dword [ebp + 0x10]
mov eax, ecx
push edi
mov edi, dword [ebp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [ebp - 0x10], esp
and ecx, 3
xor ebx, ebx
rep movsb byte es:[edi], byte [esi]
push 0xf0000000
push 1
push ebx
lea ecx, [ebp - 0x18]
push ebx
push ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp + 0x18], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x5445ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x20]
push 0x759018
push edx
mov dword [ebp - 0x20], eax
call fcn.00710828
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push 0x8003
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x54461a
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x24]
push 0x759018
push edx
mov dword [ebp - 0x24], eax
call fcn.00710828
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
push ebx
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x544648
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push 0x759018
push eax
call fcn.00710828
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x1c]
push ecx
push 1
push edx
push 0x6801
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x54467c
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x2c]
push 0x759018
push ecx
mov dword [ebp - 0x2c], eax
call fcn.00710828
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x30]
push edx
push eax
push ebx
push 1
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x5446bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x34]
push 0x759018
push edx
mov dword [ebp - 0x34], eax
call fcn.00710828
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0x18], eax
mov eax, 0x5446b9
ret
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x5446c9
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x5446d7
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x5446e6
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x544eb0
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
push str.kernel32.dll
mov dword [esi + 0x20], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esi + 0x1c], eax
je 0x544f4b
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateToolhelp32Snapshot
push eax
mov dword [esi], 0
mov dword [esi + 4], 0
call edi
mov dword [esi + 8], eax
mov eax, dword [esi + 0x1c]
push str.Module32First
push eax
call edi
mov ecx, dword [esi + 0x1c]
push str.Module32Next
push ecx
mov dword [esi + 0x14], eax
call edi
mov edx, dword [esi + 0x1c]
push str.Process32First
push edx
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x1c]
push str.Process32Next
push eax
call edi
mov ecx, dword [esi + 8]
mov dword [esi + 0x10], eax
test ecx, ecx
pop edi
je 0x544f4b
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x544f4b
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x544f4b
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x544f4b
test eax, eax
je 0x544f4b
mov dword [esi + 0x20], 0
pop esi
ret

Function at 0x5454a0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
push ebx
push 0x80
push 3
push ebx
push 1
push Ordinal_4
mov esi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x5454d8
mov dword [esi + 4], ebx
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 4
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
push ebx
mov dword [esi + 0xc], eax
mov eax, dword [esi + 4]
push ebx
push 2
push ebx
push eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
mov dword [esi + 8], eax
je 0x545509
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret 4
mov dword [esi + 0x18], ebx
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 4

Function at 0x545730
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push esi
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 8]
mov dword [esi + 0x18], 0x20000000
neg ecx
xor eax, eax
mov dword [esi + 0x1c], ecx
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x546f50
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
lea ebx, [ecx + 4]
mov edi, 0x7bd64c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0072137e
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, 0x1505
mov edx, 0
je 0x546fb4
movsx esi, byte [ebx + edx]
mov edi, eax
shl edi, 5
add edi, eax
add esi, edi
inc edx
cmp edx, ecx
mov eax, esi
jb 0x546fa0
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov dword [ecx], eax
mov eax, ecx
mov esp, ebp
pop ebp
ret

Function at 0x546fd0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ecx
lea ebx, [ecx + 4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0072137e
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, 0x1505
mov edx, 0
je 0x547032
movsx esi, byte [ebx + edx]
mov edi, eax
shl edi, 5
add edi, eax
add esi, edi
inc edx
cmp edx, ecx
mov eax, esi
jb 0x54701e
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov dword [ecx], eax
mov eax, ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x547050
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ecx
lea ebx, [ecx + 4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0072137e
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, 0x1505
mov edx, 0
je 0x5470c0
movsx esi, byte [ebx + edx]
mov edi, eax
shl edi, 5
add edi, eax
add esi, edi
inc edx
cmp edx, ecx
mov eax, esi
jb 0x54709e
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov dword [ecx], eax
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov dword [edx], eax
mov esp, ebp
pop ebp
ret 4
Function at 0x5556d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 4], ebx
mov esi, 0x810f78
mov edx, ebx
mov ecx, ebx
and edx, 0xf
xor eax, eax
shr ecx, 4
mov al, byte [edx + 0x7720c0]
and ecx, 0xf
mov edi, eax
mov dword [ebp - 8], eax
xor edi, ecx
xor eax, eax
add esi, 4
mov al, byte [edi + 0x7720d0]
mov edi, dword [ebp - 8]
xor eax, edx
xor edx, edx
mov dl, byte [eax + 0x7720e0]
xor edx, edi
xor edx, ecx
shl edx, 4
or eax, edx
mov ecx, eax
mov byte [ebx + 0x831884], al
shl ecx, 8
add ecx, eax
mov byte [eax + 0x831984], bl
shl ecx, 8
add ecx, eax
shl ecx, 8
add ecx, eax
mov edx, ecx
and ecx, 0xf3fc3fcf
and edx, 0x3fcff3fc
mov dword [esi - 0x804], edx
mov edx, dword [ebp - 4]
mov edi, edx
and edi, 0xfc3fcff3
mov dword [eax*4 + 0x810b78], edi
mov dword [esi - 4], ecx
mov ecx, edx
add edx, 0x1010101
and ecx, 0xcff3fc3f
inc ebx
cmp esi, 0x811378
mov dword [eax*4 + 0x811378], ecx
mov dword [ebp - 4], edx
jl 0x5556e3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x558560
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
cmp eax, 2
push edi
jne 0x558619
mov edi, dword [ebp + 8]
mov edx, dword [0x8105d0]
xor ecx, ecx
mov eax, dword [ebp + 0xc]
mov cl, byte [edi]
mov esi, ecx
mov ecx, dword [ebp + 0x14]
shl edx, 8
mov ebx, ecx
add ebx, edx
mov dl, byte [esi + ebx + 0x14]
mov bl, byte [edi + 1]
xor dl, bl
mov ebx, ecx
mov byte [eax + 1], dl
mov esi, dword [0x8105d0]
inc esi
xor edx, edx
mov dword [0x8105d0], esi
mov dl, byte [eax + 1]
shl esi, 8
add ebx, esi
mov dl, byte [edx + ebx + 0x14]
mov bl, byte [edi]
xor dl, bl
mov edi, ecx
mov byte [eax], dl
mov esi, dword [0x8105d0]
inc esi
xor edx, edx
mov dword [0x8105d0], esi
mov dl, byte [eax]
mov bl, byte [eax + 1]
shl esi, 8
add edi, esi
mov dl, byte [edx + edi + 0x14]
pop edi
xor bl, dl
xor edx, edx
mov byte [eax + 1], bl
mov esi, dword [0x8105d0]
inc esi
mov dword [0x8105d0], esi
mov dl, byte [eax + 1]
shl esi, 8
add ecx, esi
pop esi
pop ebx
mov cl, byte [edx + ecx + 0x14]
mov dl, byte [eax]
xor dl, cl
mov byte [eax], dl
mov eax, dword [0x8105d0]
inc eax
mov dword [0x8105d0], eax
xor eax, eax
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0x14]
cdq
sub eax, edx
push ebx
mov esi, eax
mov eax, dword [ebp + 8]
sar esi, 1
lea edx, [ebp - 8]
push esi
push edx
push eax
call fcn.00558560
mov edi, dword [ebp + 0xc]
add esp, 0x10
xor ecx, ecx
test esi, esi
jle 0x558658
mov edx, dword [ebp + 8]
lea eax, [esi + edi]
sub edx, edi
mov bl, byte [edx + eax]
xor bl, byte [ebp + ecx - 8]
inc ecx
mov byte [eax], bl
inc eax
cmp ecx, esi
jl 0x558646
mov ebx, dword [ebp + 0x14]
push ebx
lea ecx, [ebp - 8]
lea eax, [esi + edi]
push esi
push ecx
push eax
call fcn.00558560
add esp, 0x10
xor ecx, ecx
test esi, esi
jle 0x5586a5
mov edx, dword [ebp + 8]
lea eax, [ebp - 8]
sub edx, eax
mov eax, edi
lea ebx, [ebp - 8]
mov dword [ebp + 8], edx
sub eax, ebx
mov dword [ebp + 0xc], eax
jmp 0x55868a
mov edx, dword [ebp + 8]
mov bl, byte [ebp + ecx - 8]
lea eax, [ebp + ecx - 8]
mov dl, byte [edx + eax]
xor dl, bl
mov ebx, dword [ebp + 0xc]
inc ecx
cmp ecx, esi
mov byte [ebx + eax], dl
jl 0x558687
mov ebx, dword [ebp + 0x14]
push ebx
lea eax, [ebp - 8]
push esi
push eax
push edi
call fcn.00558560
add esp, 0x10
xor eax, eax
test esi, esi
jle 0x5586c9
mov dl, byte [ebp + eax - 8]
lea ecx, [esi + edi]
xor byte [ecx + eax], dl
inc eax
cmp eax, esi
jl 0x5586ba
push ebx
lea eax, [ebp - 8]
push esi
push eax
lea eax, [esi + edi]
push eax
call fcn.00558560
add esp, 0x10
test esi, esi
jle 0x5586f3
lea ecx, [ebp - 8]
mov eax, edi
sub ecx, edi
mov dl, byte [ecx + eax]
mov bl, byte [eax]
xor bl, dl
mov byte [eax], bl
inc eax
dec esi
jne 0x5586e6
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x558700
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, dword [ebp + 0x14]
test esi, esi
jle 0x558729
mov ecx, dword [ebp + 8]
mov edx, esi
xor eax, eax
mov byte [ecx + eax], al
inc eax
cmp eax, 0x100
jl 0x558715
add ecx, 0x100
dec edx
jne 0x558713
mov eax, dword [ebp + 0x10]
xor edx, edx
test esi, esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], edx
jle 0x5587f2
xor esi, esi
push ebx
push edi
mov dword [ebp - 0xc], esi
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], 0
add esi, ecx
mov dword [ebp - 0x14], 8
mov eax, dword [ebp - 8]
xor ecx, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
and eax, 0x800000ff
jns 0x55876f
dec eax
or eax, 0xffffff00
inc eax
mov edi, dword [ebp - 0xc]
xor ebx, ebx
add eax, edi
mov edi, dword [ebp + 8]
mov bl, byte [eax + edi]
mov edi, dword [ebp + 0xc]
xor eax, eax
mov al, byte [edx + edi]
mov edi, dword [ebp - 0x10]
add edi, ebx
add edi, eax
and edi, 0x800000ff
jns 0x55879b
dec edi
or edi, 0xffffff00
inc edi
mov bl, byte [esi + edi]
mov al, byte [esi + ecx]
mov byte [esi + ecx], bl
mov byte [esi + edi], al
lea eax, [edx + 1]
mov dword [ebp - 0x10], edi
mov edi, dword [ebp - 4]
cdq
idiv dword [ebp + 0x10]
inc ecx
inc edi
cmp ecx, 0x100
mov dword [ebp - 4], edi
jl 0x55875e
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
add edi, eax
dec ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], ecx
jne 0x558756
mov esi, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x14]
inc eax
add esi, 0x100
cmp eax, ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], esi
jl 0x558743
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x5651e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x58]
test ecx, ecx
je 0x565201
mov edx, dword [ebp + 0xc]
mov dword [ecx + 0x44], edx
mov eax, dword [eax + 0x58]
add eax, 4
push 1
push eax
call fcn.00711318
mov ecx, dword [eax + 0x10]
push eax
call dword [ecx + 0x28]
add esp, 4
push 1
call fcn.00711204
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x565c30
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
inc word [esi + 0x2e]
mov ax, word [esi + 0x2e]
cmp ax, 0xc8
jb 0x565c59
jne 0x565d4f
push str.C_stack_overflow
push esi
call fcn.00565140
add esp, 8
mov edx, dword [ebp + 0xc]
push edx
push esi
call fcn.005656f0
add esp, 8
test eax, eax
jne 0x565c73
push esi
call fcn.00578880
add esp, 4
mov cl, byte [esi + 0x30]
push ebx
mov ebx, dword [ebp + 0x10]
push edi
test cl, 2
mov edi, eax
mov dword [ebp + 8], ebx
je 0x565cd5
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
sub eax, edx
push 1
push esi
mov dword [ebp + 0xc], eax
call fcn.005654f0
mov eax, dword [esi + 0x14]
add esp, 0xc
test byte [eax + 8], 1
jne 0x565ccd
mov ecx, dword [eax + 0x14]
test ecx, ecx
lea edx, [ecx - 1]
mov dword [eax + 0x14], edx
je 0x565ccd
push 0xffffffffffffffff
push 4
push esi
call fcn.005654f0
mov eax, dword [esi + 0x14]
add esp, 0xc
mov ecx, dword [eax + 0x14]
test ecx, ecx
lea edx, [ecx - 1]
mov dword [eax + 0x14], edx
jne 0x565cb0
mov edi, dword [esi + 0x1c]
mov eax, dword [ebp + 0xc]
add edi, eax
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0xc]
add edx, 0xffffffe8
sub eax, 0x10
mov ecx, edx
mov dword [esi + 0x14], edx
test ebx, ebx
mov ecx, dword [ecx]
mov dword [esi + 0xc], ecx
je 0x565d17
cmp edi, dword [esi + 8]
jae 0x565d17
mov ecx, edi
mov edx, eax
add edi, 0x10
add eax, 0x10
mov ebx, dword [ecx]
mov dword [edx], ebx
mov ebx, dword [ecx + 8]
mov dword [edx + 8], ebx
mov ebx, dword [ebp + 8]
mov ecx, dword [ecx + 0xc]
dec ebx
mov dword [edx + 0xc], ecx
mov dword [ebp + 8], ebx
jne 0x565cef
mov edx, ebx
dec ebx
test edx, edx
jle 0x565d2d
lea ecx, [ebx + 1]
mov dword [eax], 0
add eax, 0x10
dec ecx
jne 0x565d21
dec word [esi + 0x2e]
mov dword [esi + 8], eax
mov eax, dword [esi + 0x10]
pop edi
pop ebx
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x20]
cmp ecx, edx
jb 0x565d4c
push esi
call fcn.00567490
add esp, 4
pop esi
pop ebp
ret
cmp ax, 0xe1
jb 0x565c59
mov eax, dword [esi + 0x58]
test eax, eax
je 0x565d75
mov dword [eax + 0x44], 5
mov eax, dword [esi + 0x58]
add eax, 4
push 1
push eax
call fcn.00711318
mov ecx, dword [esi + 0x10]
push esi
call dword [ecx + 0x28]
add esp, 4
push 1
call fcn.00711204
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x572ff0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov eax, esi
mov edi, esi
shr eax, 5
inc eax
mov dword [ebp - 4], edi
cmp esi, eax
mov ecx, esi
jb 0x57302d
mov ebx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ebx + ecx - 1]
mov ebx, edi
shl ebx, 5
add edx, ebx
mov ebx, edi
shr ebx, 2
add edx, ebx
sub ecx, eax
xor edi, edx
cmp ecx, eax
jae 0x57300b
mov dword [ebp - 4], edi
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + 8]
mov eax, dword [eax]
dec ecx
and ecx, edi
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x573065
cmp dword [eax + 0xc], esi
jne 0x57305f
mov ecx, esi
mov esi, dword [ebp + 0xc]
lea edi, [eax + 0x10]
xor ebx, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x5730e9
mov edi, dword [ebp - 4]
mov esi, dword [ebp + 0x10]
mov eax, dword [eax]
test eax, eax
jne 0x573042
lea ecx, [esi + 0x11]
push ecx
push 0
push 0
push edx
call fcn.0056c0d0
mov ebx, eax
mov ecx, esi
mov edx, ecx
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0xc], esi
mov esi, dword [ebp + 0xc]
mov dword [ebx + 8], edi
lea edi, [ebx + 0x10]
shr ecx, 2
mov byte [ebx + 5], 0
mov byte [ebx + 4], 4
mov byte [ebx + 6], 0
add esp, 0x10
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [ebp + 8]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 4]
mov byte [ebx + eax + 0x10], 0
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + 8]
dec ecx
and ecx, esi
mov esi, dword [eax]
mov esi, dword [esi + ecx*4]
mov dword [ebx], esi
mov esi, dword [eax]
mov dword [esi + ecx*4], ebx
mov edi, dword [eax + 4]
inc edi
mov dword [eax + 4], edi
mov eax, dword [eax + 8]
mov ecx, edi
cmp ecx, eax
jle 0x5730e7
cmp eax, 0x3ffffffe
jg 0x5730e7
lea ecx, [eax + eax]
push ecx
push edx
call fcn.00572f50
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret