joyce8/EMBER2024-capa huggingface dataset:
Function at 0x471b20
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [0x57254c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, edx
xorps xmm0, xmm0
mov dword [ebp - 0xac], edi
mov dword [ebp - 0xa8], 0x67452301
mov dword [ebp - 0xa4], 0xefcdab89
movups xmmword [ebx], xmm0
mov dword [ebp - 0xa0], 0x98badcfe
movups xmmword [edi], xmm0
mov dword [ebp - 0x9c], 0x10325476
movups xmmword [edi + 0x10], xmm0
mov byte [edi + 0x20], 0
cmp dword [ecx + 0x14], 0x10
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0
jb 0x471ba3
mov ecx, dword [ecx]
mov edx, ecx
lea ecx, [ebp - 0xa8]
push eax
call fcn.00470c60
add esp, 4
lea ecx, [ebp - 0xa8]
mov edx, ebx
call fcn.00470d40
xor esi, esi
movzx eax, byte [ebx + esi]
push eax
push str._02x
push 2
push 3
push edi
call fcn.0041b8b0
inc esi
add esp, 0x14
add edi, 2
cmp esi, 0x10
jb 0x471bc3
mov eax, dword [ebp - 0xac]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov byte [eax + 0x20], 0
pop ebx
call fcn.004f8955
mov esp, ebp
pop ebp
ret
Function at 0x472370
Capabilities:
Copy file
Delete file
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52ef00
mov eax, dword fs:[0]
push eax
sub esp, 0x294
mov eax, dword [0x57254c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor dl, dl
lea ecx, [ebp - 0x48]
xor bl, bl
call fcn.00472670
push 0
push 0
push 3
push 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x48]
cmp dword [ebp - 0x34], 8
push 1
cmovae eax, dword [ebp - 0x48]
push accept
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x47249e
mov dl, 1
lea ecx, [ebp - 0x30]
call fcn.00472670
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x29c]
cmp dword [ebp - 0x34], 8
lea eax, [ebp - 0x48]
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmovae eax, dword [ebp - 0x48]
push ecx
push eax
call esi
cmp eax, 0xffffffff
je 0x472413
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x47246a
cmp dword [ebp - 0x1c], 8
lea ecx, [ebp - 0x29c]
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push ecx
push eax
call esi
cmp eax, 0xffffffff
je 0x47246a
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x34], 8
lea ecx, [ebp - 0x48]
push 0
cmovae ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x30]
cmp dword [ebp - 0x1c], 8
push ecx
cmovae eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x47246a
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
push 0
cmovae eax, dword [ebp - 0x30]
push 0
push 3
push 0
push 1
push accept
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
mov esi, eax
call fcn.00406140
cmp esi, 0xffffffff
je 0x4724e1
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x10
jb 0x4724da
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0x10
push 0x5764b0
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4724da
cmp dword [ebp - 0x18], 0x10
mov eax, 1
movzx ebx, bl
cmove ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0xffffffff
call fcn.00406140
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004f8955
mov esp, ebp
pop ebp
ret 4
Function at 0x472510
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52ef40
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x57254c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor dl, dl
lea ecx, [ebp - 0x48]
xor bl, bl
call fcn.00472670
push 0
push 0
push 2
push 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x48]
cmp dword [ebp - 0x34], 8
push 1
cmovae eax, dword [ebp - 0x48]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4725b6
mov dl, 1
lea ecx, [ebp - 0x30]
call fcn.00472670
push 0
push 0
push 2
push 0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x30]
cmp dword [ebp - 0x1c], 8
push 1
cmovae eax, dword [ebp - 0x30]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
mov esi, eax
call fcn.00406140
cmp esi, 0xffffffff
je 0x4725e4
push 0
lea eax, [ebp - 0x18]
push eax
push 0x10
push 0x5764b0
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4725dd
cmp dword [ebp - 0x18], 0x10
mov eax, 1
movzx ebx, bl
cmove ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0xffffffff
call fcn.00406140
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004f8955
mov esp, ebp
pop ebp
ret 4
Function at 0x472670
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52ef9a
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x57254c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov bl, dl
mov esi, ecx
mov dword [ebp - 0x238], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x234], 0
call fcn.00406290
push 0x208
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x234], 1
call fcn.004fb730
add esp, 0xc
call fcn.00405a90
mov edi, eax
mov eax, dword [edi + 4]
test eax, eax
je 0x472720
movaps xmm0, xmmword [0x55b370]
lea ecx, [ebp - 0x28]
push ecx
push eax
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0x61507265
mov dword [ebp - 0x14], 0x576874
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [edi + 0x20], eax
push 1
mov ecx, 0x1a
test bl, bl
mov eax, 0x23
cmovne eax, ecx
push eax
lea eax, [ebp - 0x230]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4727b5
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x28]
call fcn.00406240
mov dword [ebp - 4], 1
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x472765
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, esi
call fcn.00407ba0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00406140
mov ecx, esi
push 7
test bl, bl
je 0x47278b
push 0x55aff8
jmp 0x472790
push str.PHXDT
call fcn.00407ba0
mov ecx, esi
call fcn.004727e0
test al, al
jne 0x4727a7
mov ecx, esi
call fcn.00472940
push 0xa
push str.Global.db
mov ecx, esi
call fcn.00407ba0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f8955
mov esp, ebp
pop ebp
ret
Function at 0x473b40
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd40
mov eax, dword [0x57254c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor bl, bl
mov dword [ebp - 0xd24], edx
push edi
mov dword [ebp - 0xd20], ecx
xor esi, esi
mov dword [ebp - 0xd28], eax
nop
test bl, bl
jne 0x473d90
push 0x200
lea eax, [ebp - 0x50c]
push 0
push eax
call fcn.004fb730
add esp, 0xc
lea eax, [ebp - 0x50c]
push esi
push str..PhysicalDrive_d
push 0xffffffffffffffff
push 0xff
push eax
call fcn.00415090
add esp, 0x14
lea eax, [ebp - 0x50c]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x473d86
push 0x800
lea eax, [ebp - 0xd0c]
mov dword [ebp - 0xd10], 0
push 0
push eax
mov dword [ebp - 0xd14], 0
mov dword [ebp - 0xd1c], 0
mov dword [ebp - 0xd18], 0
call fcn.004fb730
add esp, 0xc
lea eax, [ebp - 0xd10]
push 0
push eax
push 0x800
lea eax, [ebp - 0xd0c]
push eax
push 0xc
lea eax, [ebp - 0xd1c]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x473d79
push 0x100
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.004fb730
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x100
push 0
push eax
call fcn.004fb730
add esp, 0xc
lea eax, [ebp - 0x30c]
push 0x100
push 0
push eax
call fcn.004fb730
mov edx, dword [ebp - 0xcfc]
lea eax, [ebp - 0x20c]
add esp, 0xc
lea ecx, [ebp - 0xd0c]
push eax
push 0
call fcn.00473560
mov edx, dword [ebp - 0xcf8]
lea eax, [ebp - 0x30c]
push eax
push 0
lea ecx, [ebp - 0xd0c]
call fcn.00473560
mov edx, dword [ebp - 0xcf4]
lea eax, [ebp - 0x10c]
push eax
push 1
lea ecx, [ebp - 0xd0c]
call fcn.00473560
movsx eax, byte [ebp - 0x10c]
push eax
call fcn.0050fad5
add esp, 0x1c
test eax, eax
jne 0x473cfa
movsx eax, byte [ebp - 0xf9]
push eax
call fcn.0050fad5
add esp, 4
test eax, eax
je 0x473d7f
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0xd40]
call fcn.00406470
mov ecx, dword [ebp - 0xd20]
push eax
call fcn.00419230
lea ecx, [ebp - 0xd40]
call fcn.004063b0
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0xd40]
call fcn.00406470
mov ecx, dword [ebp - 0xd24]
push eax
call fcn.00419230
lea ecx, [ebp - 0xd40]
call fcn.004063b0
lea eax, [ebp - 0x30c]
push eax
lea ecx, [ebp - 0xd40]
call fcn.00406470
mov ecx, dword [ebp - 0xd28]
push eax
call fcn.00419230
lea ecx, [ebp - 0xd40]
call fcn.004063b0
mov bl, 1
jmp 0x473d7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, 0x10
jl 0x473b70
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f8955
mov esp, ebp
pop ebp
ret
Function at 0x4740c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2aac
call fcn.004f9530
mov eax, dword [0x57254c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
lea eax, [ebp - 0x218]
mov ebx, ecx
push 0
push eax
call fcn.004fb730
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
call fcn.00405960
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov eax, dword [esi + 4]
test eax, eax
je 0x474137
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0x68746150
push ecx
push eax
mov dword [ebp - 0xc], 0x65707041
mov dword [ebp - 8], 0x57646e
call edi
mov dword [esi + 0x10], eax
push str.iphlpapi.dll
lea eax, [ebp - 0x218]
push eax
mov eax, dword [esi + 0x10]
call eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x2aac], eax
test eax, eax
je 0x474282
push str.GetAdaptersInfo
push eax
call edi
test eax, eax
je 0x474254
lea ecx, [ebp - 0x2a9c]
mov dword [ebp - 0x2a9c], 0x2880
push ecx
lea ecx, [ebp - 0x2a98]
push ecx
call eax
test eax, eax
jne 0x474254
mov eax, ebx
mov dword [ebp - 0x2aa4], 3
lea ecx, [ebp - 0xc]
sub eax, ecx
lea edi, [ebp - 0x2a98]
mov dword [ebp - 0x2aa8], eax
lea ecx, [edi + 8]
call fcn.004742b0
mov dword [ebp - 0x2aa0], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor ecx, ecx
mov word [ebp - 8], ax
mov eax, dword [ebp - 0x2aa8]
lea esi, [ebp - 0xc]
add esi, ecx
mov dl, byte [eax + esi]
cmp dl, byte [esi]
jne 0x4741eb
inc ecx
cmp ecx, 6
jb 0x4741d1
mov ecx, dword [ebp - 0x2aa0]
jmp 0x474209
mov eax, dword [edi + 0x1a0]
cmp eax, 6
je 0x4741fb
cmp eax, 0x17
jne 0x47424a
mov ecx, dword [ebp - 0x2aa0]
cmp dword [ebp - 0x2aa4], ecx
jle 0x47424a
movzx eax, byte [edi + 0x194]
mov byte [ebx], al
movzx eax, byte [edi + 0x195]
mov byte [ebx + 1], al
movzx eax, byte [edi + 0x196]
mov byte [ebx + 2], al
movzx eax, byte [edi + 0x197]
mov byte [ebx + 3], al
movzx eax, byte [edi + 0x198]
mov byte [ebx + 4], al
movzx eax, byte [edi + 0x199]
mov byte [ebx + 5], al
mov dword [ebp - 0x2aa4], ecx
mov edi, dword [edi]
test edi, edi
jne 0x4741b2
push dword [ebp - 0x2aac]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
xor edx, edx
mov dword [ebp - 0xc], eax
mov word [ebp - 8], ax
lea eax, [ebp - 0xc]
sub ebx, eax
lea ecx, [ebp - 0xc]
add ecx, edx
mov al, byte [ebx + ecx]
cmp al, byte [ecx]
jne 0x474295
inc edx
cmp edx, 6
jb 0x474270
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f8955
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f8955
mov esp, ebp
pop ebp
ret
Function at 0x474770
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52f25b
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x57254c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [0x5768e4]
xchg dword [ebp - 0x2c], eax
test ecx, ecx
jne 0x4748db
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x576a18]
cmp eax, dword [ecx + 4]
jle 0x474805
push 0x576a18
call fcn.004f8b23
add esp, 4
cmp dword [0x576a18], 0xffffffff
jne 0x474805
push 0x576a1c
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x531130
call fcn.004f8eaf
push 0x576a18
mov dword [ebp - 4], 0xffffffff
call fcn.004f8ad9
add esp, 8
push 0x576a1c
mov dword [ebp - 0x34], 0x576a1c
mov dword [ebp - 0x30], 1
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 1
mov esi, dword [0x5768e4]
test esi, esi
jne 0x4748c5
push 0xc
call fcn.004f8c17
mov esi, eax
add esp, 4
mov dword [ebp - 0x2c], esi
mov byte [ebp - 4], 2
xorps xmm0, xmm0
movq qword [esi], xmm0
mov dword [esi + 8], 0
mov dword [esi], vtable.NSstc::CStc_class_CNetapi32_.0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x28]
push eax
mov dword [esi], vtable.CNetapi32.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [ebp - 0x28], 0x6174656e
mov dword [ebp - 0x24], 0x32336970
mov dword [ebp - 0x20], 0x6c6c642e
mov byte [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi + 4], eax
test eax, eax
je 0x4748b8
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0x6274654e
push ecx
push eax
mov dword [ebp - 0x14], 0x736f69
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 8], eax
mov byte [ebp - 4], 1
xchg dword [ebp - 0x2c], eax
mov dword [0x5768e4], esi
push 0x576a1c
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
jmp 0x4748dd
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f8955
mov esp, ebp
pop ebp
ret
Function at 0x474e40
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x57254c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x474e74
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x474e74
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x474f3c
push esi
mov esi, ebx
mov ecx, ebx
mov edx, eax
cmp dx, 0x2f
je 0x474e93
cmp dx, 0x5c
jne 0x474e95
mov esi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x474e87
cmp esi, ebx
je 0x474ee3
sub esi, ebx
lea eax, [ebp - 0x414]
and esi, 0xfffffffe
push esi
push ebx
push eax
call fcn.004fb890
add esp, 0xc
cmp esi, 0x208
jae 0x474f4c
xor eax, eax
mov word [ebp + esi - 0x414], ax
lea eax, [ebp - 0x414]
push eax
push edi
call fcn.00474e40
add esp, 8
xor eax, eax
mov word [ebp - 0x20c], ax
pop esi
test edi, edi
je 0x474f06
push edi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00500067
add esp, 0xc
push ebx
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.005000cb
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x474f3c
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004f8955
mov esp, ebp
pop ebp
ret
call fcn.004f9082
int3
Function at 0x4759c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
mov dword [ebp - 8], ebx
cmp dword [ebx], 0
jne 0x475b64
cmp dword [ebx + 4], 0xffffffff
jne 0x475b64
push esi
lea esi, [ebx + 0x244]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4759f7
sub ecx, edx
sar ecx, 1
movzx eax, word [ebx + ecx*2 + 0x242]
cmp eax, 0x5c
je 0x475a2b
cmp eax, 0x2f
je 0x475a2b
push 0x555afc
push 0x104
push esi
call fcn.005000cb
add esp, 0xc
push edi
mov edi, dword [ebp + 0x10]
cmp edi, 1
jne 0x475a56
mov esi, dword [ebp + 8]
push edi
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x475a71
pop edi
pop esi
mov eax, 0x2000000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp edi, 2
je 0x475a6e
cmp edi, 3
je 0x475a6e
pop edi
pop esi
mov eax, 0x10000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp + 8]
xor ebx, ebx
xor al, al
mov byte [ebp - 1], al
mov byte [ebp + 0x13], bl
cmp edi, 1
je 0x475ab7
cmp edi, 2
jne 0x475ad3
push ebx
push 0x80
push 3
push ebx
push 1
push accept
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x475ab1
pop edi
pop esi
mov eax, 0x200
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov byte [ebp + 0x13], 1
jmp 0x475abd
mov ebx, esi
mov byte [ebp + 0x13], 0
push 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
setne al
mov byte [ebp - 1], al
push 0x20
call fcn.004f8c17
add esp, 4
mov esi, eax
cmp edi, 1
je 0x475b0e
cmp edi, 2
je 0x475b0e
mov eax, dword [ebp + 8]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0xc]
mov word [esi], 0x100
mov byte [esi + 0x10], 0
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 0
mov dword [esi + 0xc], 0
jmp 0x475b3f
mov al, byte [ebp + 0x13]
mov byte [esi + 0x10], al
mov al, byte [ebp - 1]
mov byte [esi], 1
mov byte [esi + 1], al
mov dword [esi + 4], ebx
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
test al, al
je 0x475b3f
push 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0xc], eax
push esi
call fcn.00478b50
mov ecx, dword [ebp - 8]
add esp, 4
mov edx, 0x200
mov dword [ecx], eax
xor ecx, ecx
test eax, eax
pop edi
cmove ecx, edx
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, 0x1000000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x476250
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
movsx eax, byte [ebp + 0xc]
mov ecx, dword [edx]
xor eax, ecx
movzx eax, al
shr ecx, 8
mov eax, dword [eax*4 + 0x534ca0]
xor eax, ecx
mov ecx, dword [edx + 8]
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, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x534ca0]
mov dword [edx + 8], ecx
pop ebp
ret
Function at 0x478710
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, esi
imul ebx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
cmp byte [edi], 0
je 0x47874e
push 0
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x478742
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
pop edi
div esi
pop esi
pop ebx
pop ebp
ret
mov edx, dword [edi + 0x1c]
mov esi, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
sub esi, edx
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x18]
cmovbe esi, ebx
add ecx, edx
push esi
push ecx
push dword [ebp + 8]
call fcn.004fb890
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x47878e
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not eax
cmp esi, 8
jb 0x47884d
push edi
mov edi, esi
shr edi, 3
movzx ecx, byte [edx]
sub esi, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x534ca0]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x534ca0]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x534ca0]
movzx ecx, byte [edx + 3]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x534ca0]
movzx ecx, byte [edx + 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x534ca0]
movzx ecx, byte [edx + 5]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x534ca0]
movzx ecx, byte [edx + 6]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x534ca0]
movzx ecx, byte [edx + 7]
add edx, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x534ca0]
sub edi, 1
jne 0x4787a6
pop edi
test esi, esi
je 0x47886b
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x534ca0]
sub esi, 1
jne 0x478851
not eax
pop esi
pop ebp
ret
Function at 0x479640
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, 1
cmp byte [esi], 0
je 0x479674
push 0
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xb]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x47966f
mov byte [esi + 8], 1
mov edi, dword [ebp - 4]
jmp 0x4796a0
mov ecx, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea eax, [ebx + 1]
cmp eax, ecx
jbe 0x479686
mov edi, ecx
sub edi, ebx
mov eax, dword [esi + 0x14]
add eax, ebx
push edi
push eax
lea eax, [ebp + 0xb]
push eax
call fcn.004fb890
add esp, 0xc
lea eax, [ebx + edi]
mov dword [esi + 0x1c], eax
pop ebx
cmp edi, 1
jne 0x4796b6
mov eax, dword [ebp + 0xc]
movzx ecx, byte [ebp + 0xb]
mov dword [eax], ecx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x4796ae
cmp byte [esi + 8], 0
je 0x4796ae
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x47aa60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52f3a1
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x57254c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [ebp + 8]
lea ebx, [edi + 0x38]
mov dword [edi], 0
mov ecx, ebx
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [ebp + 8], ebx
mov dword [ebx], 0
mov dword [ebx + 4], 0
call fcn.0047fc70
mov dword [ebx], eax
lea esi, [edi + 0x40]
mov dword [ebp - 4], 0
mov ecx, esi
mov dword [ebp + 8], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00474900
mov dword [esi], eax
add edi, 0x48
mov byte [ebp - 4], 1
mov ecx, edi
mov dword [ebp + 8], edi
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.0047fc90
mov dword [edi], eax
mov eax, dword [ebp - 0x10]
mov ecx, ebx
mov dword [eax + 0x50], 0
call fcn.004806b0
mov ecx, esi
call fcn.00474960
mov esi, dword [edi]
mov ecx, edi
mov byte [ebp - 4], 3
push dword [esi + 4]
call fcn.0047ff00
mov eax, dword [edi]
mov byte [ebp - 4], 2
mov dword [eax + 4], esi
mov eax, dword [edi]
mov dword [eax], esi
mov eax, dword [edi]
mov dword [eax + 8], esi
mov dword [edi + 4], 0
call fcn.00486160
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x28], eax
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4