joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001cdb0
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x10044811
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
push esi
push edi
xor edi, edi
push 0x10046c94
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
cmp esi, edi
mov dword [esp + 8], esi
jne 0x1001cdf6
push 0x8007000e
call fcn.10001100
push ebp
mov eax, dword [esp + 0x134]
mov eax, dword [eax]
push edi
push 0x80
push 3
push edi
push edi
push SysReAllocStringLen
push eax
mov dword [esp + 0x144], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x1001cf14
push ebx
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, edi
jbe 0x1001cf0c
mov al, byte [esp + 0x13c]
test al, al
je 0x1001ce4f
test bl, 7
jne 0x1001cf0c
lea edi, [ebx + 8]
push edi
call fcn.10035f23
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
mov ecx, edi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
push 0
rep stosb byte es:[edi], al
lea eax, [esp + 0x18]
push eax
push ebx
push esi
push ebp
mov byte [esp + 0x140], 1
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x14], ebx
jne 0x1001cef7
mov al, byte [esp + 0x13c]
test al, al
je 0x1001ceb5
mov ecx, dword [esp + 0x18]
push ebx
push esi
push esi
add ecx, 0x38
call fcn.10034d50
lea ecx, [esp + 0x24]
push 0xfde9
mov dword [esp + 0x24], ecx
push esi
lea ecx, [esp + 0x28]
call fcn.10014500
mov edx, dword [esp + 0x20]
push edx
lea ecx, [esp + 0x14]
mov byte [esp + 0x130], 2
call fcn.10008580
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x24]
cmp eax, ecx
je 0x1001cef7
push eax
call fcn.10036373
add esp, 4
push esi
mov byte [esp + 0x130], 0
call fcn.1003673d
mov esi, dword [esp + 0x14]
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
test esi, esi
pop ebp
jne 0x1001cf1d
xor eax, eax
jmp 0x1001cf2c
push esi
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
push eax
push esi
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
test esi, esi
mov edi, dword [esp + 0x12c]
mov dword [edi], eax
je 0x1001cf47
test eax, eax
jne 0x1001cf47
push 0x8007000e
call fcn.10001100
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [esp + 0x11c]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x120
ret 0xc
Function at 0x1001eef0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x10044a61
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
mov eax, dword [esi]
push edi
mov edi, ecx
lea ecx, [esi + 4]
push ecx
lea ecx, [edi + 4]
mov dword [esp + 0xc], edi
mov dword [edi], eax
call fcn.1001dcf0
lea edx, [esi + 0x14]
push edx
lea ecx, [edi + 0x14]
mov dword [esp + 0x18], 0
call fcn.1001e820
lea eax, [esi + 0x24]
push eax
lea ecx, [edi + 0x24]
mov byte [esp + 0x18], 1
call fcn.1001cb80
mov eax, dword [esi + 0x30]
test eax, eax
mov byte [esp + 0x14], 2
je 0x1001ef65
push eax
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
mov ecx, dword [esi + 0x30]
push eax
push ecx
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
mov dword [edi + 0x30], eax
mov ecx, dword [esi + 0x30]
test ecx, ecx
je 0x1001ef7d
test eax, eax
jne 0x1001ef7d
push 0x8007000e
call fcn.10001100
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x100202e0
Capabilities:
Access peb ldr_data
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x10044c20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 4]
mov ecx, edi
mov dword [esp + 0x10], esi
mov dword [esi], 0x100489f4
call fcn.1001d0d0
mov dword [edi + 4], eax
mov byte [eax + 0x1d], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
xor ebx, ebx
mov dword [eax + 8], eax
mov dword [edi + 8], ebx
lea edi, [esi + 0x10]
mov ecx, edi
mov dword [esp + 0x1c], ebx
call fcn.1001d110
mov dword [edi + 4], eax
mov byte [eax + 0x75], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebx
lea edi, [esi + 0x1c]
mov ecx, edi
mov byte [esp + 0x1c], 1
call fcn.1001d110
mov dword [edi + 4], eax
mov byte [eax + 0x75], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebx
mov eax, dword [0x100555f8]
mov ecx, 0x100555f8
mov byte [esp + 0x1c], 2
lea edi, [esi + 0x28]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov edx, dword [0x100555f8]
mov ecx, 0x100555f8
mov byte [esp + 0x1c], 3
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x2c], eax
mov eax, dword [0x100555f8]
mov ecx, 0x100555f8
mov byte [esp + 0x1c], 4
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x30], eax
lea ecx, [esi + 0x38]
mov byte [esp + 0x1c], 5
mov byte [esi + 0x35], bl
mov byte [esi + 0x36], bl
call fcn.10034de0
mov dword [esi + 0x40], ebx
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 7
push ecx
call fcn.10018700
mov edx, dword [esp + 0x10]
push str.Data
push edx
push 0x100481d0
push edi
mov byte [esp + 0x30], 8
call fcn.10005730
mov edi, dword [edi]
add esp, 0x14
push ebx
push edi
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x1c], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1002043c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x14]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x10022300
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x10044e41
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
push ebp
push edi
xor ebp, ebp
push 0x10046c94
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], ebp
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
cmp edi, ebp
mov dword [esp + 8], edi
jne 0x10022346
push 0x8007000e
call fcn.10001100
push ebx
push esi
mov eax, dword [esp + 0x138]
mov eax, dword [eax]
push ebp
push 0x80
push 3
push ebp
push ebp
push SysReAllocStringLen
push eax
mov dword [esp + 0x148], ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1002244e
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebp
jbe 0x10022447
lea edi, [esi + 1]
push edi
call fcn.10035f23
mov ebp, eax
add esp, 4
mov dword [esp + 0x1c], ebp
mov ecx, edi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
push 0
rep stosb byte es:[edi], al
lea eax, [esp + 0x18]
push eax
push esi
push ebp
push ebx
mov byte [esp + 0x140], 1
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x14], esi
jne 0x10022432
mov al, byte [esp + 0x13c]
test al, al
je 0x100223f0
mov ecx, dword [esp + 0x18]
push esi
push ebp
add ecx, 0x6d
call fcn.10034e10
lea ecx, [esp + 0x24]
push 0xfde9
mov dword [esp + 0x24], ecx
push ebp
lea ecx, [esp + 0x28]
call fcn.10014500
mov edx, dword [esp + 0x20]
push edx
lea ecx, [esp + 0x14]
mov byte [esp + 0x130], 2
call fcn.10008580
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x24]
cmp eax, ecx
je 0x10022432
push eax
call fcn.10036373
add esp, 4
push ebp
mov byte [esp + 0x130], 0
call fcn.1003673d
mov edi, dword [esp + 0x14]
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x10022456
xor eax, eax
jmp 0x10022465
push edi
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
push eax
push edi
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
test edi, edi
mov esi, dword [esp + 0x134]
mov dword [esi], eax
je 0x10022480
test eax, eax
jne 0x10022480
push 0x8007000e
call fcn.10001100
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [esp + 0x124]
mov eax, esi
pop esi
pop ebx
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x120
ret 0xc
Function at 0x10024dd0
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x20]
mov dword [esi], 0
push eax
mov byte [ebx], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
mov dword [esp + 0x20], ecx
je 0x10024e76
cmp word [ecx + 8], 2
push ebp
push edi
jne 0x10024e49
cmp word [ecx + 0xa], 4
jne 0x10024e49
mov edi, dword [ecx + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x10024e49
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
lea esp, [esp]
mov ecx, dword [eax]
mov edx, dword [esp + 0x20]
push ecx
push edx
push ebx
push ebp
call fcn.10024d60
test eax, eax
mov dword [esi], eax
je 0x10024e6a
add edi, 4
lea esi, [eax + 0x1c]
mov eax, dword [edi]
test eax, eax
jne 0x10024e20
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
mov eax, dword [ecx]
push 0x400
push eax
push ebx
call fcn.100386d0
add esp, 0xc
pop edi
pop ebp
pop esi
mov byte [ebx + 0x400], 0
xor eax, eax
pop ebx
ret 0x18
pop edi
pop ebp
pop esi
mov eax, 8
pop ebx
ret 0x18
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x10024e86.11001
jmp dword [eax*4 + 0x10024eac]
pop esi
mov eax, 0x2af9
pop ebx
ret 0x18
pop esi
mov eax, 0x2afa
pop ebx
ret 0x18
pop esi
mov eax, 0x2afb
pop ebx
ret 0x18

Function at 0x100256e0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x230
mov eax, dword [0x1005454c]
xor eax, esp
mov dword [esp + 0x22c], eax
mov eax, dword [0x100555a0]
test eax, eax
mov dword [esp], str.getaddrinfo
mov dword [esp + 4], 0x10025130
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x10025420
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], fcn.100250e0
jne 0x10025842
push 0x104
lea ecx, [esp + 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x10025838
xor eax, eax
lea ecx, [ecx]
mov cl, byte [esp + eax + 0x124]
mov byte [esp + eax + 0x18], cl
inc eax
test cl, cl
jne 0x10025750
push edi
lea edi, [esp + 0x1c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10025766
mov edx, dword [str.ws2_32]
Function at 0x10025960
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
mov esi, ecx
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0xc]
push eax
push ecx
call ebx
test eax, eax
je 0x1002598c
mov dword [esi + 0x48], 0x2749
pop esi
xor al, al
pop ebx
add esp, 0x14
ret 0xc
mov edx, dword [esi + 8]
push 0
push edx
call ebx
cmp eax, 0x102
jne 0x100259ac
mov dword [esi + 0x48], 0x2734
pop esi
xor al, al
pop ebx
add esp, 0x14
ret 0xc
push ebp
push edi
mov edi, dword [esp + 0x30]
lea ebp, [esi + 0x28]
push ebp
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 8]
push eax
mov dword [esp + 0x24], eax
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push 0
lea eax, [esp + 0x14]
push eax
mov eax, dword [esi + 0x40]
push 0
push edi
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
je 0x100259ff
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x10025a47
mov ecx, dword [esi + 0x4c]
mov edx, dword [esi + 8]
push ecx
push edx
call ebx
test eax, eax
jne 0x10025a4a
mov edx, dword [esi + 0x40]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x30]
push eax
push 0
push edi
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
je 0x10025a41
push ebp
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebp
pop esi
mov al, bl
pop ebx
add esp, 0x14
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x48], eax
push ebp
xor bl, bl
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebp
pop esi
mov al, bl
pop ebx
add esp, 0x14
ret 0xc
Function at 0x10025a60
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x20
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
mov esi, ecx
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0xc]
push eax
push ecx
call ebx
test eax, eax
je 0x10025a8c
mov dword [esi + 0x48], 0x2749
pop esi
xor al, al
pop ebx
add esp, 0x20
ret 8
mov edx, dword [esi + 4]
push 0
push edx
call ebx
cmp eax, 0x80
jne 0x10025aac
mov dword [esi + 0x48], 0x2734
pop esi
xor al, al
pop ebx
add esp, 0x20
ret 8
mov eax, dword [esp + 0x2c]
xor edx, edx
mov dword [esp + 0x14], edx
push ebp
mov dword [esp + 0x1c], edx
push edi
mov edi, dword [esp + 0x38]
mov ecx, dword [edi]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edx
lea ebp, [esi + 0x10]
push ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
mov dword [edi], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x30], edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 4]
push eax
mov dword [esp + 0x30], eax
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
push 0
lea eax, [esp + 0x20]
push eax
mov eax, dword [esi + 0x40]
lea ecx, [esp + 0x18]
push ecx
push edi
push 1
lea edx, [esp + 0x28]
push edx
push eax
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x10025b2b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x10025b74
mov ecx, dword [esi + 0x4c]
mov edx, dword [esp + 0x2c]
push ecx
push edx
call ebx
test eax, eax
jne 0x10025b77
mov edx, dword [esi + 0x40]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push 0
push edi
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
je 0x10025b6e
push ebp
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebp
pop esi
mov al, bl
pop ebx
add esp, 0x20
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x48], eax
push ebp
xor bl, bl
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebp
pop esi
mov al, bl
pop ebx
add esp, 0x20
ret 8
Function at 0x10027f10
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x100451bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x42c
mov eax, dword [0x1005454c]
xor eax, esp
push esi
push edi
mov esi, dword [esp + 0x444]
xor edi, edi
mov dword [esp + 8], edi
mov dword [esp + 0x430], eax
mov eax, dword [esp + 0x448]
movzx ecx, word [eax + 0xc]
movzx edx, word [eax + 0xa]
mov dword [esp + 0xc], ecx
movzx ecx, word [eax + 8]
mov dword [esp + 0x10], edx
movzx edx, word [eax + 6]
mov dword [esp + 0x14], ecx
movzx ecx, word [eax + 2]
mov dword [esp + 0x18], edx
movzx edx, word [eax]
movzx eax, word [eax + 4]
dec ecx
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0xc]
push ecx
sub edx, 0x76c
push str._a___d__b__Y__H:_M:_S
mov dword [esp + 0x28], edx
lea edx, [esp + 0x38]
push 0x200
push edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
call fcn.100377d7
add esp, 0x10
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0xc]
call fcn.10001f40
mov eax, dword [esp + 8]
add eax, 0xfffffff0
push eax
mov dword [esp + 0x440], edi
call fcn.100022c0
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
add esp, 4
mov dword [esp + 0x43c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10028004
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x434]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x42c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1003609d
add esp, 0x438
ret

Function at 0x1002a940
Capabilities:
Check mutex on windows

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi - 0xc]
test eax, eax
mov esi, ecx
je 0x1002a968
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [esp + 0x10]
push ecx
push eax
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [edi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1002a982
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
mov eax, esi
pop esi
ret 8
Function at 0x1002b7a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x1002b7ab
xor eax, eax
ret
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x18]
cmp edi, 8
not esi
jb 0x1002b8a3
mov ebp, edi
shr ebp, 3
xor edx, edx
mov dl, byte [ecx]
mov eax, esi
shr eax, 8
sub edi, 8
xor edx, esi
and edx, 0xff
mov esi, dword [edx*4 + 0x1004a3f0]
xor edx, edx
mov dl, byte [ecx + 1]
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x1004a3f0]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x1004a3f0]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x1004a3f0]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x1004a3f0]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x1004a3f0]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x1004a3f0]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x1004a3f0]
shr eax, 8
xor eax, esi
inc ecx
dec ebp
mov esi, eax
jne 0x1002b7c6
test edi, edi
je 0x1002b8c2
xor eax, eax
mov al, byte [ecx]
xor eax, esi
and eax, 0xff
mov ebp, dword [eax*4 + 0x1004a3f0]
shr esi, 8
xor esi, ebp
inc ecx
dec edi
jne 0x1002b8a7
pop edi
mov eax, esi
pop esi
not eax
pop ebp
ret

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

Disassembly:
mov edx, dword [esp + 4]
mov ecx, dword [edx]
xor eax, eax
mov al, byte [esp + 8]
push esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x1004a3f0]
shr ecx, 8
xor eax, ecx
mov ecx, dword [edx + 4]
mov dword [edx], eax
and eax, 0xff
add eax, ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
mov esi, dword [eax*4 + 0x1004a3f0]
shr ecx, 8
xor ecx, esi
mov dword [edx + 8], ecx
pop esi
ret

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

Disassembly:
push esi
mov esi, dword [esp + 8]
mov edx, dword [esi + 8]
mov eax, edx
and eax, 0xfffd
or eax, 2
mov ecx, eax
xor ecx, 1
imul ecx, eax
mov al, byte [esp + 0xc]
shr ecx, 8
xor al, cl
xor ecx, ecx
push edi
mov edi, dword [esi]
mov cl, al
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x1004a3f0]
shr edi, 8
xor ecx, edi
mov edi, dword [esi + 4]
mov dword [esi], ecx
and ecx, 0xff
add ecx, edi
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 4], ecx
shr ecx, 0x18
xor ecx, edx
and ecx, 0xff
mov edi, dword [ecx*4 + 0x1004a3f0]
shr edx, 8
xor edx, edi
pop edi
mov dword [esi + 8], edx
pop esi
ret
Function at 0x1002bdc0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
mov cl, byte [ebx]
push ebp
mov ebp, dword [esp + 0x10]
mov eax, ebp
imul eax, dword [esp + 0x14]
test cl, cl
je 0x1002be01
mov edx, dword [esp + 0xc]
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
mov eax, dword [ebx + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1002bdf6
mov byte [ebx + 8], 1
mov eax, dword [esp + 0x10]
xor edx, edx
div ebp
pop ebp
pop ebx
ret
mov edx, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x18]
push esi
lea esi, [edx + eax]
cmp esi, ecx
push edi
jbe 0x1002be14
sub ecx, edx
mov eax, ecx
mov esi, dword [ebx + 0x14]
mov edi, dword [esp + 0x14]
add esi, edx
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x1c]
pop edi
add ecx, eax
pop esi
xor edx, edx
div ebp
pop ebp
mov dword [ebx + 0x1c], ecx
pop ebx
ret

Function at 0x1002cf00
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x41c
mov eax, dword [0x1005454c]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
xor eax, ebp
test esi, esi
mov dword [esp + 0x420], eax
push edi
mov dword [esp + 0xc], esi
je 0x1002cf40
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1002cf40
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor eax, eax
mov ax, word [ebx]
test ax, ax
je 0x1002cff6
mov ecx, ebx
mov edx, ebx
cmp ax, 0x2f
je 0x1002cf5e
cmp ax, 0x5c
jne 0x1002cf60
mov ecx, edx
mov ax, word [edx + 2]
add edx, 2
test ax, ax
jne 0x1002cf52
cmp ecx, ebx
je 0x1002cfb2
sub ecx, ebx
sar ecx, 1
shl ecx, 1
mov eax, ecx
mov edx, ecx
shr ecx, 2
mov esi, ebx
lea edi, [esp + 0x218]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0xc]
mov word [esp + eax + 0x218], 0
lea eax, [esp + 0x218]
push eax
push ecx
call fcn.1002cf00
mov esi, dword [esp + 0x14]
add esp, 8
test esi, esi
mov word [esp + 0x10], 0
je 0x1002cfcb
lea edx, [esp + 0x10]
push esi
push edx
call fcn.100376f6
add esp, 8
lea eax, [esp + 0x10]
push ebx
push eax
call fcn.100376cc
add esp, 8
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1002cff6
push 0
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 0x424]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003609d
mov esp, ebp
pop ebp
ret