joyce8/EMBER2024-capa huggingface dataset:
Function at 0x53ac50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x42c
push ebx
push ebp
mov eax, dword [esp + 0x438]
push esi
push edi
mov edi, dword [esp + 0x448]
mov ecx, dword [eax + 0x78]
mov dword [esp + 0x18], closesocket
lea ebp, [edi + 0x1c]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x444]
mov ebx, dword [esp + 0x1c]
lea edx, [edi + ebp]
mov dword [esp + 0x10], 0
sar edx, 1
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x44c]
lea esi, [ecx + ecx + 0x18]
lea edx, [edx + edx + 0x18]
sar esi, 1
sar edx, 1
test ebx, ebx
mov dword [esp + 0x28], esi
mov dword [esp + 0x34], edx
jle 0x53ae0b
mov eax, dword [eax + 0x7c]
lea edx, [esp + 0x3c]
mov dword [esp + 0x14], edx
mov edx, dword [eax]
mov dword [esp + 0x20], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x38], edx
mov dword [esp + 0x24], eax
jmp 0x53ace5
mov ecx, dword [esp + 0x444]
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x10]
xor eax, eax
mov al, byte [edx + ebx]
cmp eax, ecx
jge 0x53ad2c
mov edx, eax
sub edx, ecx
shl edx, 1
imul edx, edx
add ecx, 0x18
sub eax, ecx
mov esi, dword [esp + 0x38]
mov ebx, dword [esp + 0x10]
xor ecx, ecx
mov cl, byte [esi + ebx]
shl eax, 1
imul eax, eax
cmp ecx, edi
jge 0x53ad48
mov esi, ecx
sub esi, edi
lea esi, [esi + esi*2]
mov ebx, esi
imul ebx, esi
add edx, ebx
sub ecx, ebp
jmp 0x53ad5c
lea ebx, [ecx + 0x18]
cmp eax, ebx
jle 0x53ad3e
mov edx, eax
sub edx, ebx
shl edx, 1
imul edx, edx
jmp 0x53ad02
xor edx, edx
cmp eax, esi
jg 0x53ad02
sub eax, ebx
jmp 0x53ad04
cmp ecx, ebp
jle 0x53ad97
mov esi, ecx
sub esi, ebp
lea esi, [esi + esi*2]
mov ebx, esi
imul ebx, esi
add edx, ebx
sub ecx, edi
lea ecx, [ecx + ecx*2]
mov ebx, dword [esp + 0x10]
mov esi, ecx
imul esi, ecx
add eax, esi
mov esi, dword [esp + 0x24]
xor ecx, ecx
mov cl, byte [esi + ebx]
mov ebx, dword [esp + 0x44c]
cmp ecx, ebx
jge 0x53ada1
mov esi, ecx
sub esi, ebx
mov ebx, esi
imul ebx, esi
mov esi, dword [esp + 0x44c]
add edx, ebx
add esi, 0x18
sub ecx, esi
jmp 0x53add2
cmp ecx, dword [esp + 0x30]
jg 0x53ad5a
sub ecx, ebp
jmp 0x53ad5c
lea esi, [ebx + 0x18]
cmp ecx, esi
mov dword [esp + 0x2c], esi
jle 0x53adc6
mov ebx, dword [esp + 0x2c]
mov esi, ecx
sub esi, ebx
mov ebx, esi
imul ebx, esi
mov esi, dword [esp + 0x44c]
add edx, ebx
sub ecx, esi
jmp 0x53add2
cmp ecx, dword [esp + 0x34]
jg 0x53add0
sub ecx, esi
jmp 0x53add2
sub ecx, ebx
mov esi, ecx
imul esi, ecx
mov ecx, dword [esp + 0x14]
add eax, esi
mov dword [ecx], edx
mov ecx, dword [esp + 0x18]
cmp eax, ecx
jge 0x53adeb
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
inc eax
add edx, 4
cmp eax, ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
jl 0x53acda
xor eax, eax
xor ecx, ecx
test ebx, ebx
jle 0x53ae34
mov esi, dword [esp + 0x450]
lea edx, [esp + 0x3c]
mov edi, dword [esp + 0x18]
mov ebp, dword [edx]
cmp ebp, edi
jg 0x53ae2c
mov byte [eax + esi], cl
inc eax
inc ecx
add edx, 4
cmp ecx, ebx
jl 0x53ae1e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x42c
ret
Function at 0x54daf0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x5c43dc]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.005517d0
mov esp, ebp
pop ebp
ret
Function at 0x54df70
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x15fcd]
push edi
xor edi, edi
test eax, eax
jle 0x54e03f
push edi
push eax
mov eax, dword [esi]
lea ebx, [esi + 0x755b]
push ebx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
cmp edi, 0xffffffff
jne 0x54e007
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x54dff6
test byte [esi + 0xe], 4
je 0x54dfcb
mov eax, dword [esi + 0x15fd1]
test eax, eax
jne 0x54dfd2
mov ecx, dword [ebp + 0xc]
add ecx, 0xa
mov dword [esi + 0x15fd1], ecx
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
cmp dword [ebp + 0xc], eax
jle 0x54dfcb
push 0xff10000b
call fcn.0054db80
add esp, 4
pop edi
pop esi
mov dword [0x6914c0], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
push eax
call fcn.0054db80
add esp, 4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret
test byte [esi + 0xe], 4
je 0x54e017
mov dword [esi + 0x15fd1], 0
test edi, edi
je 0x54dfcb
mov eax, dword [esi + 0x15fcd]
sub eax, edi
test eax, eax
jle 0x54e039
push eax
lea edx, [edi + esi + 0x755b]
push edx
push ebx
call fcn.00551a10
add esp, 0xc
sub dword [esi + 0x15fcd], edi
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x5517d0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5c43dc]
jne 0x5517da
repz ret
jmp fcn.0055654e

Function at 0x56141d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5c43dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.005581c5
and dword [ebp - 0x14], 0
cmp dword [0x692314], 0
mov dword [ebp - 0x18], eax
jne 0x5614d0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x561578
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x561578
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x692314], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x692318], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x69231c], eax
call edi
push eax
call esi
mov dword [0x692324], eax
test eax, eax
je 0x5614d0
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x692320], eax
mov eax, dword [0x692320]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x561529
cmp dword [0x692324], ecx
je 0x561529
push eax
call esi
push dword [0x692324]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x561529
test ebx, ebx
je 0x561529
call edi
test eax, eax
je 0x561520
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x561520
test byte [ebp - 8], 1
jne 0x561529
or dword [ebp + 0x10], 0x200000
jmp 0x56155c
mov eax, dword [0x692318]
cmp eax, dword [ebp - 0x18]
je 0x56155c
push eax
call esi
test eax, eax
je 0x56155c
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x56155c
mov eax, dword [0x69231c]
cmp eax, dword [ebp - 0x18]
je 0x56155c
push eax
call esi
test eax, eax
je 0x56155c
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x692314]
call esi
test eax, eax
je 0x561578
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x56157a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005517d0
leave
ret

Function at 0x565ee0
Capabilities:
Get common file path

Disassembly:
mov edx, dword [0x69307c]
push 0x692f7c
or edx, 0x80000000
mov dword [0x69307c], edx
call fcn.00565e60
push 0x692f7c
call fcn.00568980
add esp, 8
push 0x692e7c
push pe_nt_image_headers32
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x692e7c
call fcn.00568980
pop ecx
ret
Function at 0x5661d0
Capabilities:
Get system information on windows

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x44
mov byte [eax], 0
mov eax, dword [esp + 0x50]
push ebx
push ebp
push esi
cmp eax, 0x14
push edi
jle 0x56633a
lea ecx, [esp + 0x30]
mov edi, 0x4e20
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [esp + 0x58]
xor edx, edx
mov eax, esi
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualQuery]
div dword [esp + 0x34]
sub esi, edx
lea edx, [esp + 0x14]
push 0x1c
push edx
push esi
call ebp
cmp eax, 0x1c
je 0x566244
dec edi
test edi, edi
jle 0x56633a
mov eax, dword [esp + 0x34]
sub esi, eax
cmp esi, eax
jbe 0x56633a
lea eax, [esp + 0x14]
push 0x1c
push eax
push esi
call ebp
cmp eax, 0x1c
jne 0x56621e
mov eax, dword [esp + 0x24]
cmp eax, 0x1000
je 0x566263
cmp eax, 0x2000
je 0x566263
cmp eax, 0x10000
jne 0x56626b
mov ebx, dword [esp + 0x14]
jmp 0x566267
mov ebx, dword [esp + 0x18]
test ebx, ebx
jne 0x566284
mov eax, dword [esp + 0x34]
sub esi, eax
cmp esi, eax
jbe 0x56633a
dec edi
test edi, edi
jle 0x56633a
jmp 0x56620f
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x56633a
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x10]
push 3
push ecx
push ebx
call ebp
test eax, eax
je 0x56633a
mov eax, dword [esp + 0x64]
mov edi, 0x5c5a7c
test eax, eax
je 0x5662bf
mov edi, str.Error_module:
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [esp + 0x5c]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x5c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x60]
mov edi, edx
not ecx
dec ecx
sub eax, ecx
or ecx, 0xffffffff
dec eax
push eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, edx
push ecx
push ebx
call ebp
mov edi, 0x5c5a68
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [esp + 0x5c]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret

Function at 0x566bd0
Capabilities:
Read file on windows

Disassembly:
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push 0
push eax
mov eax, dword [esp + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x566bf1
ret
mov eax, dword [esp + 0xc]
ret

Function at 0x566c00
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push 0
push eax
mov eax, dword [esp + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x566c21
ret
mov eax, dword [esp + 0xc]
ret
Function at 0x566c80
Capabilities:
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call fcn.00566c60
add esp, 4
pop esi
ret

Function at 0x566d50
Capabilities:
Create directory

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x104
push esi
xor esi, esi
test eax, eax
je 0x566dc1
push edi
push 0x103
push eax
lea eax, [esp + 0x10]
push eax
call fcn.00553cc0
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
mov dl, byte [esp + ecx + 3]
lea eax, [esp + ecx + 4]
cmp dl, 0x3a
je 0x566dc1
cmp ecx, 2
jle 0x566da5
cmp dl, 0x5c
jne 0x566da5
cmp byte [eax - 2], 0x3a
je 0x566da5
mov byte [eax - 1], 0
lea ecx, [esp + 4]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x566dc1
or eax, 0xffffffff
pop esi
add esp, 0x104
ret
mov eax, esi
pop esi
add esp, 0x104
ret

Function at 0x566f20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x566f3a
test al, 0x10
jne 0x566f3a
mov eax, 1
ret
xor eax, eax
ret

Function at 0x567220
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x20
lea eax, [esp]
mov dword [esp], 0x20
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 8]
mov eax, dword [esp + 0x28]
mov dword [ecx], edx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x2c]
mov dword [eax], ecx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
mov dword [edx], eax
mov edx, dword [esp + 0x1c]
mov dword [ecx], edx
add esp, 0x20
ret

Function at 0x567960
Capabilities:
Get disk information

Disassembly:
mov edx, dword [esp + 4]
sub esp, 8
or ecx, 0xffffffff
xor eax, eax
push esi
push edi
mov edi, edx
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jl 0x5679a6
cmp byte [edx + 1], 0x3a
jne 0x5679a6
mov cl, byte [edx]
mov eax, dword [0x5c5ff4]
lea edx, [esp + 8]
mov dword [esp + 8], eax
push edx
mov byte [esp + 0xc], cl
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
mov eax, 1
je 0x5679a8
mov eax, esi
pop edi
pop esi
add esp, 8
ret

Function at 0x568530
Capabilities:
Hide graphical window

Disassembly:
mov al, byte [0x69253c]
test al, al
je 0x568578
push 1
call dword [sym.imp.USER32.dll_ShowCursor]
mov eax, dword [0x693098]
test eax, eax
jne 0x568558
mov eax, dword [0x6930a8]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.00567c30
push 0x30
push str.Message
push 0x69253c
call fcn.00566070
add esp, 0xc
mov byte [0x69253c], 0
ret

Function at 0x568af0
Capabilities:
Log keystrokes

Disassembly:
mov eax, dword [0x693154]
push esi
lea esi, [eax + 1]
mov eax, dword [0x693150]
and esi, 0xff
cmp esi, eax
je 0x568b37
xor ecx, ecx
push 1
mov cl, byte [esp + 0xe]
push ecx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
and eax, 0xffff
xor edx, edx
mov dl, byte [esp + 0xc]
mov dh, al
mov eax, dword [0x693154]
mov dword [0x693154], esi
mov word [eax*2 + 0x697bc0], dx
pop esi
ret
Function at 0x5696fa
Capabilities:
Encode data using xor

Disassembly:
enter 0, 0
push esi
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
xor byte [esi], al
inc esi
dec ecx
jne 0x569708
pop esi
leave
ret

Function at 0x56980b
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov ecx, 8
xor esi, esi
mov eax, dword [esi + 0x693110]
mov edx, eax
xor eax, dword [esi + 0x6930f0]
and eax, dword [esi + 0x693110]
mov dword [esi + 0x6930f0], edx
mov dword [esi + 0x693130], eax
add esi, 4
dec ecx
jne 0x569814
pop edi
pop esi
ret

Function at 0x56ba60
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
push edi
call fcn.00565f40
mov edi, eax
mov eax, dword [0x6931a4]
push eax
call fcn.0056ba50
add esp, 4
test eax, eax
je 0x56baa6
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00565f40
sub eax, edi
cmp eax, 0x2710
jg 0x56baa6
push 0xa
call esi
mov ecx, dword [0x6931a4]
push ecx
call fcn.0056ba50
add esp, 4
test eax, eax
jne 0x56ba81
pop edi
pop esi
ret
Function at 0x5711b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor edx, edx
cmp ecx, edx
je 0x571246
push ebx
push esi
mov esi, dword [ecx]
mov byte [esi + 0x16], dl
mov esi, dword [ecx]
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov byte [esi + 0x18], dl
mov esi, dword [ecx]
mov byte [esi + 0x19], dl
mov esi, dword [ecx + 4]
xor eax, eax
push edi
cmp esi, edx
jle 0x5711fe
mov edi, dword [ecx]
movzx edi, byte [edi + edx]
mov ebx, eax
shr ebx, 0x18
xor edi, ebx
shl eax, 8
xor eax, dword [edi*4 + 0x5c6090]
inc edx
cmp edx, esi
jl 0x5711e0
xor edx, edx
mov esi, dword [ecx + 0xc]
cmp esi, edx
jle 0x571222
mov edi, dword [ecx + 8]
movzx edi, byte [edi + edx]
mov ebx, eax
shr ebx, 0x18
xor edi, ebx
shl eax, 8
xor eax, dword [edi*4 + 0x5c6090]
inc edx
cmp edx, esi
jl 0x571205
mov edx, dword [ecx]
mov byte [edx + 0x16], al
mov esi, dword [ecx]
mov edx, eax
shr edx, 8
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov edx, eax
shr edx, 0x10
mov byte [esi + 0x18], dl
mov ecx, dword [ecx]
pop edi
shr eax, 0x18
pop esi
mov byte [ecx + 0x19], al
pop ebx
pop ebp
ret
Function at 0x5836a0
Capabilities:
Encode data using xor

Disassembly:
call fcn.00565f40
mov edx, dword [0x693220]
mov ecx, eax
sub eax, edx
cdq
xor eax, edx
sub eax, edx
mov edx, dword [0x693224]
add eax, edx
mov edx, dword [0x69321c]
cmp eax, edx
jl fcn.005836a0
mov dword [0x5d59ec], eax
sub eax, edx
mov dword [0x693220], ecx
mov dword [0x693224], eax
ret

Function at 0x5836e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
call fcn.00565f40
mov ecx, dword [0x693220]
mov edx, eax
mov eax, dword [0x693224]
sub eax, ecx
mov ecx, dword [0x69321c]
add eax, edx
cmp eax, ecx
mov dword [0x5d59ec], eax
jge 0x58371a
call fcn.005836a0
mov dword [0x693228], 0
mov eax, 1
ret
sub eax, ecx
mov dword [0x693220], edx
cmp eax, ecx
jge 0x58373b
mov dword [0x693224], eax
mov dword [0x693228], 0
mov eax, 1
ret
mov edx, dword [0x693228]
push esi
mov esi, dword [esp + 8]
inc edx
cmp edx, esi
mov dword [0x693228], edx
pop esi
jle 0x58376b
cdq
idiv ecx
mov dword [0x693228], 0
mov eax, 1
mov dword [0x693224], edx
ret
mov dword [0x693224], eax
xor eax, eax
ret

Function at 0x598f10
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [0x6a9d10]
mov edx, dword [esp + 4]
mov eax, ecx
and edx, 0xff
and eax, 0xff
xor eax, edx
shr ecx, 8
mov eax, dword [eax*4 + 0x62b244]
xor eax, ecx
mov ecx, dword [0x6a9d14]
mov dword [0x6a9d10], eax
and eax, 0xff
add eax, ecx
mov ecx, dword [0x6a9d18]
imul eax, eax, 0x8088405
inc eax
mov edx, ecx
mov dword [0x6a9d14], eax
and edx, 0xff
shr eax, 0x18
xor eax, edx
shr ecx, 8
mov eax, dword [eax*4 + 0x62b244]
xor eax, ecx
mov dword [0x6a9d18], eax
ret

Function at 0x598ff0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0xc
lea eax, [esp]
push 0xc
push eax
push ecx
call fcn.00566bd0
add esp, 0xc
cmp eax, 0xc
jne 0x599043
push ebx
push esi
xor esi, esi
call fcn.00598f80
mov cl, byte [esp + esi + 8]
mov bl, al
xor bl, cl
mov byte [esp + 0x18], bl
mov edx, dword [esp + 0x18]
push edx
call fcn.00598f10
add esp, 4
mov byte [esp + esi + 8], bl
inc esi
cmp esi, 0xc
jl 0x599010
pop esi
mov eax, 0xc
pop ebx
add esp, 0xc
ret
xor eax, eax
add esp, 0xc
ret

Function at 0x599050
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, eax
dec eax
test ecx, ecx
jle 0x59908a
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
lea edi, [eax + 1]
call fcn.00598f80
mov cl, byte [esi]
mov bl, al
xor bl, cl
mov byte [esp + 0x14], bl
mov edx, dword [esp + 0x14]
push edx
call fcn.00598f10
add esp, 4
mov byte [esi], bl
inc esi
dec edi
jne 0x599065
pop edi
pop esi
pop ebx
ret
Function at 0x599cd0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x20]
push esi
xor esi, esi
cmp eax, esi
mov word [esp + 0xc], si
mov word [esp + 0xe], si
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], esi
mov word [esp + 0x18], si
jne 0x599d09
mov dword [esp + 4], 0x6054b50
mov word [esp + 8], si
mov word [esp + 0xa], si
jmp 0x599d36
mov dword [esp + 4], 0x605444f
mov dword [esp + 8], 1
mov ecx, 4
mov al, cl
mov dl, 3
imul dl
mov dl, byte [esp + ecx + 4]
sub al, 0x4d
xor dl, al
mov byte [esp + ecx + 4], dl
inc ecx
cmp ecx, 0x16
jb 0x599d1e
mov ecx, dword [esp + 0x20]
lea eax, [esp + 4]
push 0x16
push eax
push ecx
call fcn.00566c00
add esp, 0xc
cmp eax, 0x16
mov eax, 1
je 0x599d56
mov eax, esi
pop esi
add esp, 0x18
ret

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

Disassembly:
mov eax, dword [esp + 4]
push ebx
push edi
mov edi, dword [esp + 0x14]
cmp edi, 8
not eax
jl 0x59a72d
push esi
mov esi, edi
shr esi, 3
mov ecx, esi
neg ecx
lea edi, [edi + ecx*8]
mov ecx, dword [esp + 0x14]
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x62b244]
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x62b244]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x62b244]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x62b244]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x62b244]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x62b244]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x62b244]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x62b244]
xor eax, edx
inc ecx
dec esi
jne 0x59a646
pop esi
jmp 0x59a731
mov ecx, dword [esp + 0x10]
test edi, edi
je 0x59a753
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x62b244]
xor eax, edx
inc ecx
dec edi
jne 0x59a735
pop edi
pop ebx
not eax
ret

Function at 0x59a7b0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [0x6a9e60]
mov edx, dword [esp + 4]
mov eax, ecx
and edx, 0xff
and eax, 0xff
xor eax, edx
shr ecx, 8
mov eax, dword [eax*4 + 0x62b244]
xor eax, ecx
mov ecx, dword [0x6a9e64]
mov dword [0x6a9e60], eax
and eax, 0xff
add eax, ecx
mov ecx, dword [0x6a9e68]
imul eax, eax, 0x8088405
inc eax
mov edx, ecx
mov dword [0x6a9e64], eax
and edx, 0xff
shr eax, 0x18
xor eax, edx
shr ecx, 8
mov eax, dword [eax*4 + 0x62b244]
xor eax, ecx
mov dword [0x6a9e68], eax
ret
Function at 0x59a840
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, eax
dec eax
test ecx, ecx
jle 0x59a87e
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
lea edi, [eax + 1]
mov dl, byte [esi]
mov byte [esp + 0x14], dl
call fcn.0059a820
mov bl, al
mov eax, dword [esp + 0x14]
push eax
call fcn.0059a7b0
mov dl, byte [esp + 0x18]
add esp, 4
xor bl, dl
mov byte [esi], bl
inc esi
dec edi
jne 0x59a855
pop edi
pop esi
pop ebx
ret