joyce8/EMBER2024-capa huggingface dataset:
Function at 0x478b50
Capabilities:
Get file size
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [edi + 0x80]
push ebx
push esi
lea esi, [edi + 0x70]
mov dword [ebp - 4], eax
cmp dword [esi + 0xc], eax
jbe 0x478b6e
call fcn.004ad751
mov ebx, dword [esi + 0xc]
mov eax, dword [esi]
mov dword [ebp - 0xc], eax
cmp ebx, dword [esi + 0x10]
jbe 0x478b80
call fcn.004ad751
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov eax, dword [esi]
push ecx
push edx
push ebx
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0047b250
xor ebx, ebx
cmp dword [edi + 0x10], ebx
je 0x478baa
mov ecx, dword [edi + 0x8c]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x478bba
push eax
call esi
mov edx, dword [edi + 0x10]
mov eax, dword [edi + 0x8c]
push ebx
push ebx
neg edx
push 3
sbb edx, edx
push ebx
and edx, 0x40000000
push 3
add edx, 0x80000000
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x478c93
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x478c0f
or eax, eax
or ecx, 0xffffffff
jmp 0x478c12
mov ecx, dword [ebp - 4]
mov dword [edi + 8], eax
mov eax, dword [edi + 4]
mov dword [edi + 0xc], ecx
cmp eax, ebx
je 0x478c29
push eax
call esi
mov dword [edi + 4], 0xffffffff
mov eax, dword [edi + 0x20]
cmp eax, ebx
je 0x478c3a
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [edi + 0x20], ebx
mov edx, dword [edi + 8]
push ebx
push edx
mov eax, edx
mov edx, dword [edi + 0xc]
mov cl, 0x20
call fcn.004c4990
mov ecx, dword [edi]
push eax
xor eax, eax
cmp dword [edi + 0x10], ebx
setne al
lea eax, [eax + eax + 2]
push eax
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [edi + 4], eax
cmp eax, ebx
jne 0x478c75
mov eax, 9
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea esi, [edi + 0x68]
cmp dword [edi + 0x3c], ebx
je 0x478c9e
mov edx, dword [edi + 0xc]
mov ecx, dword [edi + 8]
push esi
push edx
push ecx
push eax
call fcn.004781f0
add esp, 0x10
test eax, eax
jne 0x478ca3
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov edx, dword [edi + 0xc]
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x28], ebx
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x30], ebx
mov dword [edi + 0x34], ebx
cmp edx, dword [esi + 4]
jb 0x478ce4
ja 0x478cc6
mov eax, dword [edi + 8]
cmp eax, dword [esi]
jbe 0x478ce4
mov ecx, edi
call fcn.004792f0
test eax, eax
jne 0x478ce4
cmp dword [edi + 0x10], ebx
je 0x478ce4
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push ecx
push edx
mov esi, edi
call fcn.004788b0
pop esi
mov dword [edi + 0x38], ebx
mov dword [edi + 0x88], 1
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47ae50
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push 0xc0000000
push eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x47aeac
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47aea0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 4]
push ecx
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x47aec6
or eax, eax
or ecx, 0xffffffff
jmp 0x47aec9
mov ecx, dword [ebp - 4]
push ebx
push eax
push ecx
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
cmp edi, ebx
jne 0x47aee3
mov ebx, 8
jmp 0x47af5b
lea edx, [ebp - 4]
push edx
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x47aefd
or eax, eax
or ecx, 0xffffffff
jmp 0x47af00
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x10]
push edx
push ecx
push eax
push edi
call fcn.004781f0
add esp, 0x10
test eax, eax
je 0x47af4f
mov ebx, dword [ebp - 0x10]
mov eax, ebx
or eax, dword [ebp - 0xc]
je 0x47af4f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
push 0
lea edx, [ebp - 8]
push edx
push ebx
push esi
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x47af44
mov ebx, 0xc
jmp 0x47af5b
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
xor ebx, ebx
jmp 0x47af5b
push edi
mov ebx, 8
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47af81
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47c450
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cebf8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push edi
mov eax, dword [0x512f18]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x47c4bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 8]
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
push edx
push str.OpenWrite__s_:_error_opening__LE_d
push ecx
call fcn.00464a80
add esp, 0x10
jmp 0x47c5cb
push ebx
lea ecx, [ebp - 0x10]
push ecx
push 8
lea edi, [esi + 0x14]
push edi
push eax
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x47c5a8
cmp dword [ebp - 0x10], 8
jne 0x47c5a8
mov edx, dword [edi]
push edx
call fcn.0047c030
add esp, 4
push ecx
mov dword [esi + 0x10], eax
mov dword [ebp - 0x1c], esp
cmp eax, ebx
jne 0x47c531
mov ecx, dword [ebp + 8]
mov eax, esp
push ecx
push str._OpenWrite__s_:_unknown_encoder_
push eax
call fcn.00464a80
add esp, 0xc
call fcn.0047c360
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x47c5ea
mov edx, dword [eax + 8]
mov eax, dword [ebp + 8]
mov ecx, esp
push edx
push eax
push str.OpenWrite__s_:__s_encoding
push ecx
call fcn.00464a80
add esp, 0x10
call fcn.0047c360
mov edx, dword [esi]
lea ecx, [ebp - 0x14]
push ecx
push edx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 0x14]
mov dword [esi + 8], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [esi + 0xc], ecx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47c590
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x10]
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
mov eax, dword [ebp + 8]
push edx
push eax
push str.OpenWrite__s_:_cant_read_header__Read_only__d_bytes__LE_d
push ecx
call fcn.00464a80
add esp, 0x14
call fcn.0047c360
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47c5f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x47c8a0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cfeb8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x512f18]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 7
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0xc]
push 0x120089
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x47c94a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0xc]
push ecx
mov ecx, esp
mov dword [ebp + 0x14], esp
push eax
push edx
push str.AddFileName:_cannot_open__s__LE_d
push ecx
call fcn.00464a80
add esp, 0x10
call fcn.0047c360
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47c934
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [ebp - 0x10]
push ecx
push edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [ebp - 0x10]
cmp esi, ebx
mov dword [ebp - 0x18], eax
jl 0x47c9cf
jg 0x47c96b
cmp eax, ebx
jbe 0x47c9cf
push ebx
push ebx
push ebx
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
test ebx, ebx
jne 0x47c9ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov edx, esp
mov dword [ebp + 0x14], esp
push eax
mov eax, dword [ebp + 0xc]
push eax
push str.AddFileName:_cannot_map__s__LE_d
push edx
call fcn.00464a80
add esp, 0x10
call fcn.0047c360
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x47c90e
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push ecx
push edx
push eax
push ebx
call fcn.0047c610
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x47c9f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0xc]
push ecx
mov ecx, esp
mov dword [ebp + 0x14], esp
push eax
push edx
push str.AddFileName:_adding_0_bytes_file__s__LE_d
push ecx
call fcn.00464a80
add esp, 0x10
call fcn.0047c360
mov esi, 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47ca25
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x47d500
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0x18]
test edi, edi
jbe 0x47d534
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
sub ecx, eax
mov esi, edi
mov dl, byte [ecx + eax]
xor dl, 0x7b
mov byte [eax], dl
inc eax
sub esi, 1
jne 0x47d516
mov eax, dword [ebp + 0x1c]
mov dword [eax], edi
pop esi
mov eax, 1
pop edi
pop ebp
ret 0x18
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], edi
mov eax, 1
pop edi
pop ebp
ret 0x18

Function at 0x47d550
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0x18]
xor ecx, ecx
cmp dword [edi], ecx
jbe 0x47d575
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
sub esi, eax
mov dl, byte [esi + eax]
xor dl, 0x7b
mov byte [eax], dl
inc ecx
inc eax
cmp ecx, dword [edi]
jb 0x47d566
pop esi
mov eax, dword [edi]
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
mov eax, 1
pop edi
pop ebp
ret 0x18
Function at 0x47fa40
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push edi
push str.ntdll.dll
call esi
mov edi, eax
test edi, edi
je 0x47fad9
push str.GetFinalPathNameByHandleW
push str.Kernel32.dll
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
push str.NtQueryObject
push edi
mov dword [0x518c18], eax
call esi
push str.NtOpenSymbolicLinkObject
push edi
mov dword [0x518c50], eax
call esi
push str.NtQuerySymbolicLinkObject
push edi
mov dword [0x518c54], eax
call esi
push str.ZwClose
push edi
mov dword [0x518c58], eax
call esi
push 0x68
push 0xff
push 0x519080
mov dword [0x518c4c], eax
call fcn.004adf10
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
add esp, 0xc
push 0x519068
call esi
push 0x519050
call esi
mov dword [0x518c14], 1
pop edi
pop esi
ret
Function at 0x481a00
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cbc68
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x512f18]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
push eax
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
jbe 0x481aa1
push esi
call fcn.0049e811
mov edi, eax
add esp, 4
test edi, edi
je 0x481aa1
mov edx, dword [ebp + 8]
push edi
push esi
push 0
push edx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x481a98
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x481a85
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push edi
call fcn.0049e81c
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x481ac7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4837e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cec9a
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x512f18]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
push 0x4fd0ac
xor esi, esi
push eax
mov dword [ebp - 0x18], esi
call fcn.004b1edd
mov ebx, eax
add esp, 8
cmp ebx, esi
jne 0x483848
mov ecx, dword [0x519150]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
cmp ecx, esi
je 0x483836
inc dword [ecx + 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 2
push esi
push ebx
call fcn.004b2661
add esp, 0xc
push ebx
call fcn.004b2532
mov edi, eax
add esp, 4
mov dword [ebp - 0x10], esi
cmp edi, esi
jne 0x483899
push ebx
call fcn.004b275d
mov edx, dword [0x519150]
mov eax, dword [ebp + 8]
mov ecx, edx
add esp, 4
mov dword [eax], edx
cmp ecx, esi
je 0x4839b9
inc dword [ecx + 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push esi
push ebx
call fcn.004b2661
lea eax, [edi + 4]
add esp, 0xc
push eax
call fcn.004ade42
add esp, 4
push ebx
push edi
mov esi, eax
push 1
push esi
call fcn.004b2194
push ebx
mov edi, eax
call fcn.004b275d
add esp, 0x14
push 0
push edi
push esi
mov byte [esi + edi], 0
mov byte [esi + edi + 1], 0
mov byte [esi + edi + 2], 0
mov byte [esi + edi + 3], 0
call dword [sym.imp.ADVAPI32.dll_IsTextUnicode]
test al, al
jne 0x48392b
cmp byte [esi], 0xef
mov eax, 2
jne 0x483906
cmp byte [esi + 1], 0xbb
jne 0x483906
cmp byte [esi + 2], 0xbf
jne 0x483906
lea ecx, [eax + 1]
lea eax, [ecx - 2]
jmp 0x483909
mov ecx, dword [ebp - 0x10]
push eax
lea ebx, [esi + ecx]
call fcn.00482000
add esp, 4
push esi
mov edi, eax
call fcn.004add25
add esp, 4
mov esi, edi
mov dword [ebp - 0x10], 0
jmp 0x48394f
mov al, byte [esi]
cmp al, 0xef
jne 0x48393e
cmp byte [esi + 1], 0xff
jne 0x48393e
mov dword [ebp - 0x10], 2
cmp al, 0xff
jne 0x48394f
cmp byte [esi + 1], 0xfe
jne 0x48394f
mov dword [ebp - 0x10], 2
test esi, esi
jne 0x483977
mov ecx, dword [0x519150]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
test ecx, ecx
je 0x4839b9
inc dword [ecx + 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push 0
lea ecx, [esi + edx]
push eax
call fcn.00483600
push esi
call fcn.004add25
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp + 8]
add esp, 0xc
mov dword [esi], eax
test eax, eax
je 0x4839a0
inc dword [eax + 0x30]
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
push ecx
mov dword [ebp - 0x18], 1
call fcn.00484050
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x485250
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [edi + 8]
sub esp, 8
test eax, eax
je 0x485343
mov ecx, dword [edi + 0x10]
push ebx
push esi
push 1
push ecx
push 0x30
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
movzx edx, word [edi]
mov eax, dword [edi + 4]
push 5
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ecx, dword [edi + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, esi
mov dword [ebp - 8], esi
call fcn.00484cb0
mov ebx, eax
mov eax, esi
mov dword [ebp - 4], 0
call fcn.00484c90
xor edx, edx
cmp dx, word [eax]
jae 0x48532c
mov esi, dword [ebp - 8]
lea ebx, [ebx]
cmp dword [ebp - 4], 0
jne 0x4852ce
mov eax, dword [edi + 8]
push 5
push eax
jmp 0x4852d1
push 2
push esi
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
je 0x48532c
lea ecx, [ecx]
push esi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
cmp eax, dword [ebx + 0x14]
je 0x4852fd
push 2
push esi
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
jne 0x4852e0
jmp 0x48532c
test esi, esi
je 0x48532c
mov ecx, dword [edi + 0x10]
push 1
push ecx
push 0x30
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, ebx
call fcn.00484d50
inc dword [ebp - 4]
mov ebx, eax
mov eax, dword [ebp - 8]
call fcn.00484c90
movzx edx, word [eax]
cmp dword [ebp - 4], edx
jl 0x4852c0
mov eax, dword [edi + 0xc]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
xor eax, eax
pop esi
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x486dd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, eax
xor ebx, ebx
push edi
mov dword [ebp - 4], 0
mov dword [esi + 0x6af80], 2
cmp dword [esi + 0x6af90], ebx
je 0x486fef
lea ebx, [ebx]
cmp dword [esi + 0x6af90], 3
jb 0x486e57
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [ecx + esi + 0x1af72]
mov edx, dword [esi + 0x6af7c]
shl edx, 5
xor eax, edx
and eax, 0x7fff
mov dword [esi + 0x6af7c], eax
mov eax, dword [esi + eax*4 + 0x4af70]
and ecx, 0x7fff
mov dword [esi + ecx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af84]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x6af7c]
mov dword [esi + eax*4 + 0x4af70], ecx
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x486e97
mov edx, dword [esi + 0x6af84]
sub edx, ecx
cmp edx, 0x7efa
ja 0x486e97
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x486e82
mov dword [esi + 0x6afa0], eax
mov eax, ecx
call fcn.00486ae0
mov ebx, eax
mov eax, dword [esi + 0x6af90]
cmp ebx, eax
jbe 0x486e97
mov ebx, eax
mov eax, dword [esi + 0x6af84]
mov ecx, esi
cmp ebx, 3
jb 0x486f7c
sub eax, dword [esi + 0x6af88]
lea edx, [ebx - 3]
call fcn.004862d0
sub dword [esi + 0x6af90], ebx
mov ecx, dword [esi + 0x6af90]
mov dword [ebp - 8], eax
cmp ebx, dword [esi + 0x6af98]
ja 0x486f44
cmp ecx, 3
jb 0x486f44
mov edi, 1
sub ebx, edi
lea esp, [esp]
add dword [esi + 0x6af84], edi
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [esi + edx + 0x1af72]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
xor ecx, eax
and ecx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov ecx, dword [esi + ecx*4 + 0x4af70]
and edx, 0x7fff
sub ebx, edi
mov dword [esi + edx*4 + 0x2af70], ecx
mov edx, dword [esi + 0x6af84]
mov dword [ebp - 4], ecx
mov ecx, dword [esi + 0x6af7c]
mov dword [esi + ecx*4 + 0x4af70], edx
jne 0x486ee0
add dword [esi + 0x6af84], edi
mov eax, dword [ebp - 8]
jmp 0x486f97
add dword [esi + 0x6af84], ebx
mov ecx, dword [esi + 0x6af84]
lea edx, [ecx + esi]
movzx ecx, byte [edx + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx edx, byte [edx + 0x1af71]
shl ecx, 5
xor edx, ecx
xor ebx, ebx
and edx, 0x7fff
mov dword [esi + 0x6af7c], edx
jmp 0x486f97
movzx edx, byte [eax + esi + 0x1af70]
xor eax, eax
call fcn.004862d0
dec dword [esi + 0x6af90]
inc dword [esi + 0x6af84]
test eax, eax
je 0x486fd1
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
jl 0x486fae
lea edx, [ecx + esi + 0x1af70]
jmp 0x486fb0
xor edx, edx
mov eax, dword [esi + 0x6af84]
sub eax, ecx
push edx
xor edi, edi
mov ecx, esi
call fcn.00486130
mov ecx, dword [esi + 0x6af84]
add esp, 4
mov dword [esi + 0x6af74], ecx
cmp dword [esi + 0x6af90], 0x106
jae 0x486fe2
call fcn.00486c80
cmp dword [esi + 0x6af90], 0
jne 0x486e00
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
jl 0x487002
lea edx, [ecx + esi + 0x1af70]
jmp 0x487004
xor edx, edx
mov eax, dword [esi + 0x6af84]
sub eax, ecx
push edx
mov edi, 1
mov ecx, esi
call fcn.00486130
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x487cb0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x487cb7
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x487d94
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4fac48]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x4fac48]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x4fac48]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4fac48]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4fac48]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4fac48]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4fac48]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4fac48]
inc ecx
sub edx, 8
sub esi, 1
jne 0x487cd0
pop edi
test edx, edx
je 0x487dbb
jmp 0x487da0
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x4fac48]
inc ecx
sub edx, 1
jne 0x487da0
not eax
pop esi
ret

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

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4fac48]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], 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
shr ecx, 8
xor ecx, dword [eax*4 + 0x4fac48]
mov dword [edx + 8], ecx
ret