joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10043030
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
jne 0x1004304b
pop edi
mov eax, 0xffffff9a
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x18], 0
je 0x10043040
cmp dword [edi + 0x7c], 0
je 0x1004305c
call fcn.100434a0
lea eax, [ebp - 8]
mov ecx, edi
push eax
lea eax, [ebp - 4]
push eax
lea edx, [ebp - 0xc]
call fcn.10042da0
add esp, 8
test eax, eax
je 0x10043080
pop edi
mov eax, 0xffffff99
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 0x84
call fcn.100d945e
mov esi, eax
add esp, 4
test esi, esi
je 0x100430c3
push 0x4000
call fcn.100d945e
mov ecx, dword [ebp - 4]
add esp, 4
mov dword [esi + 0x44], ecx
mov ecx, dword [ebp - 8]
mov dword [esi], eax
mov dword [esi + 0x48], ecx
mov dword [esi + 0x4c], 0
test eax, eax
jne 0x100430cf
push esi
call fcn.100d9469
add esp, 4
pop esi
pop edi
mov eax, 0xffffff98
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x40], 0
mov ecx, dword [edi + 0x34]
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x54], eax
mov dword [esi + 0x50], 0
mov eax, dword [edi + 0x34]
mov dword [esi + 0x64], eax
mov eax, dword [edi]
mov dword [esi + 0x60], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0x68], eax
mov dword [esi + 0x18], 0
test ecx, ecx
je 0x1004312a
lea ecx, [esi + 4]
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
call fcn.10041e00
test eax, eax
jne 0x1004312a
mov dword [esi + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [esi + 0x58], eax
mov eax, dword [edi + 0x44]
mov dword [esi + 0x5c], eax
mov al, byte [edi + 0x30]
and al, 1
mov byte [esi + 0x6c], al
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x1004314d
mov al, byte [edi + 0x39]
jmp 0x10043150
mov al, byte [edi + 0x3f]
mov byte [esi + 0x80], al
mov ecx, 0xc
xor eax, eax
cmp byte [esi + 0x6c], al
cmovne eax, ecx
mov dword [esi + 0x7c], eax
mov dword [esi + 0x70], 0x12345678
mov dword [esi + 0x74], 0x23456789
mov dword [esi + 0x78], 0x34567890
test ebx, ebx
je 0x100431ce
nop
mov al, byte [ebx]
test al, al
je 0x100431ce
mov ecx, dword [esi + 0x70]
movsx eax, al
xor eax, dword [esi + 0x70]
movzx eax, al
shr ecx, 8
mov eax, dword [eax*4 + 0x101246f8]
xor eax, ecx
mov ecx, dword [esi + 0x78]
mov dword [esi + 0x70], eax
movzx eax, al
add eax, dword [esi + 0x74]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x74], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x101246f8]
mov dword [esi + 0x78], ecx
add ebx, 1
jne 0x10043180
mov eax, dword [ebp - 0xc]
add eax, 0x1e
add eax, dword [edi + 0x78]
mov dword [esi + 0x3c], eax
xor eax, eax
mov dword [esi + 8], 0
mov dword [edi + 0x7c], esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100435a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
jne 0x10043647
cmp dword [esi + 4], 0xffffffff
jne 0x10043647
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100435d2
sub ecx, edx
sar ecx, 1
movzx eax, word [esi + ecx*2 + 0x242]
cmp eax, 0x5c
je 0x10043609
cmp eax, 0x2f
je 0x10043609
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x100435f6
mov eax, dword [0x1012be54]
mov dword [edi], eax
lea eax, [ebp - 4]
push eax
push ecx
mov ecx, dword [ebp + 8]
call fcn.10042260
add esp, 8
test eax, eax
jne 0x10043628
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, eax
call fcn.10042670
xor ecx, ecx
mov dword [esi], eax
test eax, eax
mov edx, 0x200
cmove ecx, edx
mov eax, ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
pop edi
mov eax, 0x1000000
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10043c90
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x1017542c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
test esi, esi
je 0x10043cc2
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10043cc2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x10043dac
push edi
mov edi, ebx
mov ecx, ebx
cmp ax, 0x2f
je 0x10043cdf
cmp ax, 0x5c
jne 0x10043ce1
mov edi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x10043cd3
cmp edi, ebx
je 0x10043d2a
sub edi, ebx
lea eax, [ebp - 0x414]
and edi, 0xfffffffe
push edi
push ebx
push eax
call fcn.100bef40
add esp, 0xc
cmp edi, 0x208
jae 0x10043dbc
xor eax, eax
lea edx, [ebp - 0x414]
mov ecx, esi
mov word [ebp + edi - 0x414], ax
call fcn.10043c90
xor eax, eax
mov word [ebp - 0x20c], ax
test esi, esi
je 0x10043d50
lea ecx, [ebp - 0x20c]
sub ecx, esi
nop
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x10043d40
mov esi, ebx
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x10043d52
lea edi, [ebp - 0x20c]
sub ebx, esi
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x10043d70
mov ecx, ebx
lea eax, [ebp - 0x20c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
cmp eax, 0xffffffff
jne 0x10043dac
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.100c1de9
mov esp, ebp
pop ebp
ret
call fcn.100c2516
int3
Function at 0x10047c30
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
cmp ebx, 8
je 0x10047d94
cmp ebx, 0x201
je 0x10047d0a
cmp ebx, 0x203
je 0x10047d0a
cmp ebx, 0x2e0
jne 0x10047d9b
cmp dword [0x1017b974], 0xffffffff
je 0x10047c9e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, dword [0x1017b974]
cmp ecx, 0x64
jae 0x10047ca4
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
push ebx
call sym.UserAndPayClient.dll_public_virtual:_long_int___thiscall_xx_DuiLib::WindowImplBase::HandleMessage_unsigned_int__unsigned_int__long_int_
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1017b974], eax
lea ecx, [esi + 0x30]
mov eax, dword [ebp + 0xc]
movzx eax, ax
push eax
call sym.UserAndPayClient.dll_public:_void___thiscall_xx_DuiLib::CPaintManagerUI::SetDPI_int_
lea ecx, [esi + 0x30]
call sym.UserAndPayClient.dll_public:_void___thiscall_xx_DuiLib::CPaintManagerUI::ResetDPIAssets_void_
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0x10]
push 0x14
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov eax, dword [eax + 0xc]
sub eax, ecx
push eax
mov eax, dword [edi + 8]
sub eax, edx
push eax
push ecx
push edx
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
lea ecx, [esi + 0x30]
call sym.UserAndPayClient.dll_public:_class_xx_DuiLib::CControlUI____thiscall_xx_DuiLib::CPaintManagerUI::GetRoot_void_const
test eax, eax
je 0x10047d9e
lea ecx, [esi + 0x30]
call sym.UserAndPayClient.dll_public:_class_xx_DuiLib::CControlUI____thiscall_xx_DuiLib::CPaintManagerUI::GetRoot_void_const
mov ecx, eax
call sym.UserAndPayClient.dll_public:_void___thiscall_xx_DuiLib::CControlUI::NeedUpdate_void_
jmp 0x10047d9e
mov eax, dword [ebp + 0x10]
mov ecx, dword [esi + 0x74c]
movsx edi, ax
shr eax, 0x10
cwde
mov dword [ebp + 8], eax
test ecx, ecx
je 0x10047d80
cmp dword [esi + 0x750], 0
je 0x10047d80
mov eax, dword [ecx]
call dword [eax + 0x58]
mov ecx, dword [esi + 0x750]
movups xmm0, xmmword [eax]
mov eax, dword [ecx]
movups xmmword [ebp - 0x30], xmm0
movups xmmword [ebp - 0x20], xmm0
call dword [eax + 0x58]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x10], xmm0
movups xmm0, xmmword [ebp - 0x30]
movd eax, xmm0
cmp edi, eax
mov eax, dword [ebp + 8]
jl 0x10047d6a
cmp edi, dword [ebp - 0x18]
jg 0x10047d6a
cmp eax, dword [ebp - 0x1c]
jl 0x10047d6a
cmp edi, dword [ebp - 0x14]
jle 0x10047d9b
cmp edi, dword [ebp - 0x10]
jl 0x10047d92
cmp edi, dword [ebp - 8]
jg 0x10047d92
cmp eax, dword [ebp - 0xc]
jl 0x10047d92
cmp edi, dword [ebp - 4]
jle 0x10047d9b
jmp 0x10047d92
cmp dword [esi + 0x780], 0
je 0x10047d92
cmp dword [esi + 0x784], 0
jne 0x10047d9b
mov ecx, esi
push 1
call sym.UserAndPayClient.dll_public:_void___thiscall_xx_DuiLib::CWindowWnd::Close_unsigned_int_
mov edi, dword [ebp + 0x10]
push edi
push dword [ebp + 0xc]
mov ecx, esi
push ebx
call sym.UserAndPayClient.dll_public_virtual:_long_int___thiscall_xx_DuiLib::WindowImplBase::HandleMessage_unsigned_int__unsigned_int__long_int_
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10048860
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101040ed
mov eax, dword fs:[0]
push eax
sub esp, 0x190
mov eax, dword [0x1017542c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1017a5f8]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x1017b980]
cmp eax, dword [ecx + 4]
jle 0x100488ef
push 0x1017b980
call fcn.100c1fa0
add esp, 4
cmp dword [0x1017b980], 0xffffffff
jne 0x100488ef
mov dword [ebp - 4], 0
mov eax, dword [0x1017b424]
test eax, eax
jne 0x100488d4
mov byte [0x1017b984], al
jmp 0x100488db
call eax
mov byte [0x1017b984], al
push 0x1017b980
mov dword [ebp - 4], 0xffffffff
call fcn.100c1f61
add esp, 4
cmp byte [0x1017b984], 0
jne 0x10048998
lea eax, [ebp - 0x118]
push eax
call sym.UserAndPayClient.dll_public:_static_class_xx_DuiLib::CDuiString___cdecl_xx_DuiLib::CPaintManagerUI::GetInstancePath_void_
add esp, 4
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 1
call sym.UserAndPayClient.dll_public:_void___thiscall_xx_DuiLib::CDuiString::constructor_void_
push str.node.dll
lea eax, [ebp - 0x19c]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x118]
call sym.UserAndPayClient.dll_public:_class_xx_DuiLib::CDuiString___thiscall_xx_DuiLib::CDuiString::operator_wchar_t_const__
push eax
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 3
call fcn.10054fe4
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 2
call sym.UserAndPayClient.dll_public:_void___thiscall_xx_DuiLib::CDuiString::destructor_void_
lea ecx, [ebp - 0x94]
call sym.UserAndPayClient.dll_public:_wchar_t_const____thiscall_xx_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [ebp - 0x94]
test eax, eax
je 0x10048988
call sym.UserAndPayClient.dll_public:_wchar_t_const____thiscall_xx_DuiLib::CDuiString::operator_wchar_t_const__void_const
mov dword [str.node.dll], eax
call fcn.1004a7b0
lea ecx, [ebp - 0x94]
call sym.UserAndPayClient.dll_public:_void___thiscall_xx_DuiLib::CDuiString::destructor_void_
lea ecx, [ebp - 0x118]
call sym.UserAndPayClient.dll_public:_void___thiscall_xx_DuiLib::CDuiString::destructor_void_
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100c1de9
mov esp, ebp
pop ebp
ret
Function at 0x100493a0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push ecx
mov edi, edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100493d6
call dword [sym.imp.KERNEL32.dll_DebugBreak]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov dword [ebp - 4], 0
push ebx
mov ecx, edi
call fcn.10049790
mov ecx, dword [edi + 4]
mov eax, dword [edi]
sub ecx, eax
je 0x10049419
push 0
lea ecx, [ebp - 4]
push ecx
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push str.invalid_vector_T__subscript
call fcn.10051fa2
int3
Function at 0x10057cea
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1017542c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x214], 0
lea eax, [ebp - 0x210]
push esi
mov esi, dword [ebp + 8]
push 0x20a
push 0
push eax
call fcn.100bf4c0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0xffffffffffffffff
lea eax, [ebp - 0x210]
mov ecx, esi
push eax
call sym.UserAndPayClient.dll_public:_void___thiscall_xx_DuiLib::CDuiString::constructor_wchar_t_const___int_
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.100c1de9
mov esp, ebp
pop ebp
ret

Function at 0x100592ea
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
push 0x11
call edi
push 8
pop ecx
test ax, ax
push 2
cmovs esi, ecx
call edi
test ax, ax
jns 0x1005930d
or esi, 1
push 1
call edi
test ax, ax
jns 0x10059319
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x10059325
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x10059331
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret
Function at 0x1005d9a1
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov ebx, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [ebx + 0x12c]
mov esi, dword [ebp + 8]
cmp eax, ecx
je 0x1005d9cd
cmp esi, dword [ebx + 0x26c]
je 0x1005d9cd
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebx + 0x26c]
cmp esi, eax
je 0x1005daa4
push edi
test eax, eax
je 0x1005da2c
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0x17
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x26c]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x144]
xor edi, edi
mov ecx, ebx
push edi
push edi
push edi
push str.killfocus
push dword [ebx + 0x26c]
call sym.UserAndPayClient.dll_public:_void___thiscall_xx_DuiLib::CPaintManagerUI::SendNotify_class_xx_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
mov dword [ebx + 0x26c], edi
test esi, esi
je 0x1005daa3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
cmp eax, ebx
jne 0x1005daa3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x100]
test al, al
je 0x1005daa3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10c]
test al, al
je 0x1005daa3
push 7
pop ecx
xor eax, eax
mov dword [ebx + 0x26c], esi
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0x18
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x26c]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x144]
xor eax, eax
mov ecx, ebx
push eax
push eax
push eax
push str.setfocus
push dword [ebx + 0x26c]
call sym.UserAndPayClient.dll_public:_void___thiscall_xx_DuiLib::CPaintManagerUI::SendNotify_class_xx_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1006780d
Capabilities:
Log keystrokes via polling

Disassembly:
sub ecx, 0x778
jmp sym.UserAndPayClient.dll_public_virtual:_void___thiscall_xx_DuiLib::CListUI::DoEvent_struct_xx_DuiLib::tagTEventUI__

Function at 0x10067818
Capabilities:
Log keystrokes via polling

Disassembly:
sub ecx, 0x778
jmp sym.UserAndPayClient.dll_public_virtual:_void___thiscall_xx_DuiLib::CMenuUI::DoEvent_struct_xx_DuiLib::tagTEventUI__

Function at 0x10068b7c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10068bae
xor eax, eax
inc eax
cmp byte [ebp + 0xc], 0
push 4
pop edx
cmovne edx, eax
xor eax, eax
cmp byte [ebp + 8], al
cmovne eax, edx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8
Function at 0x10082001
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 8]
and edi, 7
je 0x10082025
cmp dword [esi + 8], edi
jge 0x1008201d
push esi
call fcn.1007d95e
pop ecx
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
mov edx, dword [esi + 8]
xor ecx, ecx
test edx, edx
jle 0x1008204e
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx + 8], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x10082031
mov dword [esi + 8], edx
cmp ecx, 4
jge 0x10082068
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jb 0x10082059
xor dl, dl
jmp 0x1008205e
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx + 8], dl
inc ecx
cmp ecx, 4
jl 0x10082050
mov eax, dword [ebp + 8]
movzx ecx, byte [ebp + 0xb]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp + 0xa]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x1008209d
push str.zlib_corrupt
call fcn.1007d887
add esp, 4
jmp 0x100820dd
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x100820ad
push str.read_past_buffer
jmp 0x10082093
mov ecx, dword [esi + 0x10]
lea eax, [ecx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x100820c7
push edi
push ecx
push esi
call fcn.10084bca
add esp, 0xc
test eax, eax
je 0x100820dd
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.100bef40
add dword [esi], edi
xor eax, eax
add dword [esi + 0x10], edi
add esp, 0xc
inc eax
pop edi
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x1017542c]
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 0x10087347
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10087347
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x100873f9
push esi
mov esi, ebx
mov ecx, ebx
cmp ax, 0x2f
je 0x10087364
cmp ax, 0x5c
jne 0x10087366
mov esi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x10087358
cmp esi, ebx
je 0x100873ac
sub esi, ebx
lea eax, [ebp - 0x414]
and esi, 0xfffffffe
push esi
push ebx
push eax
call fcn.100bef40
add esp, 0xc
cmp esi, 0x208
jae 0x10087409
xor eax, eax
mov word [ebp + esi - 0x414], ax
lea eax, [ebp - 0x414]
push eax
push edi
call fcn.10087313
pop ecx
pop ecx
xor eax, eax
mov word [ebp - 0x20c], ax
pop esi
test edi, edi
je 0x100873c9
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.100e7a38
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.100e79c7
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100873f9
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.100c1de9
mov esp, ebp
pop ebp
ret
call fcn.100c2516
int3
Function at 0x10087a2f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x10087adb
cmp dword [esi + 4], 0xffffffff
jne 0x10087adb
push edi
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push edi
call fcn.100e7a5a
pop ecx
movzx eax, word [esi + eax*2 + 0x242]
cmp eax, 0x5c
je 0x10087a82
cmp eax, 0x2f
je 0x10087a82
push 0x1012be54
push edi
call fcn.100e79c7
pop ecx
pop ecx
cmp dword [ebp + 0x10], 1
pop edi
jne 0x10087aa4
push 1
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x10087aa4
mov eax, 0x2000000
jmp 0x10087ae0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1008a159
add esp, 0x10
test eax, eax
jne 0x10087ac2
mov eax, dword [ebp - 4]
jmp 0x10087ae0
push eax
call fcn.1008a829
pop ecx
xor ecx, ecx
mov dword [esi], eax
test eax, eax
mov edx, 0x200
cmove ecx, edx
mov eax, ecx
jmp 0x10087ae0
mov eax, 0x1000000
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10087f8c
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 + 0x101165f0]
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 + 0x101165f0]
mov dword [edx + 8], ecx
pop ebp
ret

Function at 0x1008a258
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
imul esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
cmp byte [edi], 0
je 0x1008a28c
push 0
lea eax, [ebp + 0x10]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1008a287
mov byte [edi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x1008a2b3
mov edx, dword [edi + 0x1c]
lea eax, [edx + esi]
cmp eax, dword [edi + 0x18]
jbe 0x1008a29c
mov esi, dword [edi + 0x18]
sub esi, edx
mov ecx, dword [edi + 0x14]
push esi
add ecx, edx
push ecx
push dword [ebp + 8]
call fcn.100bef40
add esp, 0xc
mov eax, esi
add dword [edi + 0x1c], esi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x1008a3d9
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not ecx
cmp esi, 8
jb 0x1008a498
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 + 0x101165f0]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x101165f0]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x101165f0]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x101165f0]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x101165f0]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x101165f0]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x101165f0]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x101165f0]
sub edi, 1
jne 0x1008a3f1
pop edi
test esi, esi
je 0x1008a4b4
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x101165f0]
inc edx
sub esi, 1
jne 0x1008a49c
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x1008b98e
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov cl, byte [ebp + 8]
mov eax, dword [esi + 8]
mov byte [esi + 0x13], cl
test eax, eax
je 0x1008ba07
test cl, cl
je 0x1008b9b0
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x1008ba07
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, eax
mov edx, 0x10000000
test edx, ecx
jne 0x1008b9d1
mov byte [esi + 0x10], 1
jmp 0x1008b9e1
and eax, 0x21000000
neg eax
sbb al, al
and al, 0xfe
add al, 7
mov byte [esi + 0x10], al
and ecx, 0x31000000
cmp ecx, edx
jne 0x1008ba07
push 4
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetParent]
push eax
mov ecx, esi
call sym.UserAndPayClient.dll_protected:_void___thiscall_xx_DuiLib::CShadowUI::Update_struct_HWND____
pop esi
pop ebp
ret 4