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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x560d70
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x5be984]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x28], ebx
mov esi, dword [ebx]
mov dword [ebp - 4], 0
push dword [esi + 4]
call fcn.00467910
mov eax, dword [ebx]
mov dword [ebp - 4], 0xffffffff
mov dword [eax + 4], esi
mov eax, dword [ebx]
mov dword [eax], esi
mov eax, dword [ebx]
mov dword [eax + 8], esi
mov eax, dword [ebp + 8]
mov dword [ebx + 4], 0
test eax, eax
je 0x4675b5
push 0x574d18
push eax
call fcn.004fb1eb
mov edi, eax
add esp, 8
test edi, edi
je 0x4675b5
push edi
call fcn.0052419f
push eax
call fcn.00524492
push edi
push 1
mov esi, eax
lea eax, [ebp - 0x30]
push 8
push eax
call fcn.00522450
add esp, 0x18
xor bl, bl
cmp dword [ebp - 0x30], 0x78646972
jne 0x4676e8
cmp dword [ebp - 0x2c], 0x8000
jb 0x4675cb
push edi
call fcn.0050c934
add esp, 4
xor al, al
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
add esi, 0xfffffff8
push esi
call fcn.0050d832
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4676e8
push edi
push 1
push esi
push eax
call fcn.00522450
mov edx, dword [ebp - 0x10]
add esp, 0x10
mov ecx, edx
lea eax, [edx + esi]
xor esi, esi
mov dword [ebp - 0x14], eax
mov dword [ebp + 8], esi
cmp dword [ebp - 0x2c], esi
jle 0x4676d9
mov ebx, dword [ecx + 0xc]
add ebx, 0x12
add ebx, ecx
cmp ebx, dword [ebp - 0x14]
ja 0x4676d3
mov eax, dword [ecx + 8]
mov dword [ebp - 0x24], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x20], eax
mov eax, dword [ecx]
mov dword [ebp - 0x1c], eax
add ecx, 0x10
jne 0x467636
xor esi, esi
mov dword [ebp - 0x18], esi
jmp 0x46764a
push ecx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
je 0x467707
push esi
mov dword [ebp - 4], 1
call fcn.00466c30
mov ecx, dword [ebp - 0x1c]
add esp, 4
mov dword [ebp - 0x44], ecx
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x40], ecx
test eax, eax
jne 0x46766f
mov dword [ebp - 0x54], eax
jmp 0x467681
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x54], eax
test eax, eax
je 0x467707
movq xmm0, qword [ebp - 0x44]
mov eax, dword [ebp - 0x24]
movq qword [ebp - 0x50], xmm0
mov dword [ebp - 0x48], eax
push dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x54]
push eax
push 0
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 2
push eax
call fcn.00466ee0
push dword [ebp - 0x54]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push esi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov edx, dword [ebp + 8]
mov ecx, ebx
inc edx
mov dword [ebp + 8], edx
cmp edx, dword [ebp - 0x2c]
jl 0x467608
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp + 8]
push edx
call fcn.004faf71
add esp, 4
cmp esi, dword [ebp - 0x2c]
sete bl
push edi
call fcn.0050c934
add esp, 4
mov al, bl
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
push 0x8007000e
call fcn.00404ca0
int3
Function at 0x468070
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5be984]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 0x5c3274
mov esi, ecx
push 0x5c2c34
push 0
push dword [esi + 0x890]
call fcn.004f1375
add esp, 0x14
test eax, eax
je 0x4680aa
mov ecx, eax
call fcn.0045c5a0
lea eax, [ebp - 0x1c]
push eax
call fcn.004461a0
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x4680be
mov eax, dword [eax]
push eax
push dword [esi + 0x38]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov edx, dword [ebp - 8]
cmp edx, 8
jb 0x4680fe
mov ecx, dword [ebp - 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4680f4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x468136
push edx
push ecx
call fcn.004845fc
add esp, 8
push 0x80
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
test eax, eax
je 0x468127
push eax
push 1
push 0x80
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00484a0d
mov esp, ebp
pop ebp
ret
call fcn.004faed4
int3

Function at 0x48886c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x4888bb
mov esi, dword [ebp + 0x18]
lea eax, [ebp + 0x10]
push edi
push eax
push esi
push dword [ebp + 0x14]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4888bb
cmp esi, dword [ebp + 0x10]
je 0x4888b6
push 0x572268
push 1
push edi
push edi
call fcn.00487d50
jmp 0x4888c9
xor eax, eax
inc eax
jmp 0x4888ce
mov eax, 0x572268
push eax
push eax
push edi
push edi
call fcn.00487e67
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x4888d2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x488921
mov esi, dword [ebp + 0x18]
lea eax, [ebp + 0x10]
push edi
push eax
push esi
push dword [ebp + 0x14]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x488921
cmp esi, dword [ebp + 0x10]
je 0x48891c
push 0x572268
push 1
push edi
push edi
call fcn.00487d50
jmp 0x48892f
xor eax, eax
inc eax
jmp 0x488934
mov eax, 0x572268
push eax
push eax
push edi
push edi
call fcn.00487e67
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x48a1f2
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x48a21c
mov eax, 0x572268
push eax
push eax
push 0
push 0
call fcn.00487e67
add esp, 0x10
xor eax, eax
pop ebp
ret
xor eax, eax
inc eax
pop ebp
ret

Function at 0x48a221
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x48a248
mov eax, 0x572268
push eax
push eax
push 0
push 0
call fcn.00487e67
add esp, 0x10
xor eax, eax
pop ebp
ret
xor eax, eax
inc eax
pop ebp
ret

Function at 0x48b016
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret

Function at 0x48bdf3
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x20], 0
and dword [eax + 0x24], 0
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
pop ebp
ret

Function at 0x48c0b2
Capabilities:
Check mutex on windows

Disassembly:
push 0xa4
mov eax, 0x56348e
call fcn.00485802
mov esi, ecx
mov dword [ebp - 0xa0], esi
xor ebx, ebx
mov dword [esi], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.1830B7BD_F7A3_4c4d_989B_C004DE465EDE
push str._s__u
push 0x41
lea eax, [ebp - 0x98]
push eax
call fcn.0048c905
add esp, 0x14
xor eax, eax
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x98]
push eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
mov dword [ebp - 0x9c], edi
test edi, edi
je 0x48c1fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x48c12b
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], ebx
call fcn.0048c758
test eax, eax
je 0x48c160
mov dword [esi], eax
mov eax, dword [esi]
inc dword [eax + 0x5bc]
or dword [ebp - 4], 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test ebx, ebx
jne 0x48c1fe
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x48c1fe
push 0x5c0
call fcn.0048c3df
pop ecx
mov dword [ebp - 0xac], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x48c183
push edi
mov ecx, eax
call fcn.0048c23f
jmp 0x48c185
mov eax, ebx
mov byte [ebp - 4], bl
mov dword [esi], eax
test eax, eax
je 0x48c206
xor ebx, ebx
inc ebx
mov dword [ebp - 0xb0], ebx
push eax
call fcn.0048c8a4
pop ecx
test eax, eax
jne 0x48c139
mov dword [ebp - 0xa8], 3
push 0x5aee6c
lea eax, [ebp - 0xa8]
jmp 0x48c21b
mov eax, esi
call fcn.0048574f
ret
mov dword [ebp - 0xa4], 1
push 0x5aee6c
lea eax, [ebp - 0xa4]
push eax
call fcn.004f027a
int3
Function at 0x48c23f
Capabilities:
Allocate thread local storage

Disassembly:
push 4
mov eax, 0x5634c1
call fcn.00485760
mov esi, ecx
mov dword [ebp - 0x10], esi
and dword [esi], 0
lea ecx, [esi + 8]
or dword [esi + 4], 0xffffffff
call fcn.0048c083
and dword [ebp - 4], 0
and dword [esi + 0x5bc], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x48c28b
mov eax, dword [ebp + 8]
mov dword [esi], eax
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00485729
ret 4
push 0x5aee6c
lea eax, [ebp + 8]
mov dword [ebp + 8], 2
push eax
call fcn.004f027a
int3

Function at 0x48c4be
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [ebx]
add ecx, 8
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0x5a8]
mov dword [ecx + 0x5b0], eax
call fcn.0048c661
mov edi, eax
test edi, edi
je 0x48c549
mov eax, dword [ebp - 4]
cmp eax, dword [edi]
jne 0x48c4f9
mov esi, edi
jmp 0x48c535
push dword [edi]
push 1
push 0x40
call dword [sym.imp.KERNEL32.dll_OpenThread]
test eax, eax
jne 0x48c52e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x48c521
mov ecx, dword [ebx]
push edi
add ecx, 8
call fcn.0048c5fc
jmp 0x48c535
push 0x581e10
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x48c535
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebx]
add ecx, 8
call fcn.0048c661
mov edi, eax
test edi, edi
jne 0x48c4ee
test esi, esi
jne 0x48c55e
mov ecx, dword [ebx]
add ecx, 8
call fcn.0048c7f5
mov esi, eax
test esi, esi
je 0x48c55e
mov eax, dword [ebp - 4]
mov dword [esi], eax
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x491310
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 4]
cmp edi, 2
jae 0x491388
test edi, edi
je 0x49132d
mov eax, dword [esi]
mov ecx, dword [esi + 0x44]
mov al, byte [eax]
mov byte [ecx], al
call fcn.0050d70f
mov ecx, edi
mov dword [eax], 0
mov eax, 0x4000
push dword [esi + 0x40]
sar eax, cl
push eax
mov eax, dword [esi + 0x44]
add eax, edi
push 1
push eax
call fcn.00522450
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x491371
push dword [esi + 0x40]
call fcn.00523998
add esp, 4
test eax, eax
je 0x491371
mov dword [esi + 0x38], 0xffffffff
add dword [esi + 4], edi
mov edi, dword [esi + 4]
mov eax, dword [esi + 0x44]
mov dword [esi], eax
cmp edi, 2
jae 0x491388
mov dword [esi + 0x58], edi
pop edi
pop esi
pop ebp
ret
mov ecx, dword [esi]
cmp byte [ecx], 0x1f
jne 0x49147f
cmp byte [ecx + 1], 0x8b
jne 0x49147f
lea eax, [edi - 2]
mov dword [esi + 4], eax
lea eax, [ecx + 2]
push ebx
push esi
mov dword [esi], eax
call fcn.00491690
push esi
mov edi, eax
call fcn.00491690
add esp, 8
mov ebx, eax
cmp edi, 8
jne 0x491473
test bl, 0xe0
jne 0x491473
mov edi, 6
push esi
call fcn.00491690
add esp, 4
sub edi, 1
jne 0x4913d3
test bl, 4
je 0x491415
push esi
call fcn.00491690
push esi
mov edi, eax
call fcn.00491690
shl eax, 8
add esp, 8
add edi, eax
nop dword [eax]
mov eax, edi
dec edi
test eax, eax
je 0x491415
push esi
call fcn.00491690
add esp, 4
cmp eax, 0xffffffff
jne 0x491400
test bl, 8
je 0x491432
nop word [eax + eax]
push esi
call fcn.00491690
add esp, 4
test eax, eax
je 0x491432
cmp eax, 0xffffffff
jne 0x491420
test bl, 0x10
je 0x491449
push esi
call fcn.00491690
add esp, 4
test eax, eax
je 0x491449
cmp eax, 0xffffffff
jne 0x491437
test bl, 2
je 0x491461
mov edi, 2
push esi
call fcn.00491690
add esp, 4
sub edi, 1
jne 0x491453
mov eax, dword [esi + 0x3c]
neg eax
pop ebx
sbb eax, eax
and eax, 0xfffffffd
pop edi
mov dword [esi + 0x38], eax
pop esi
pop ebp
ret
pop ebx
pop edi
mov dword [esi + 0x38], 0xfffffffd
pop esi
pop ebp
ret
pop edi
mov dword [esi + 0x58], 1
pop esi
pop ebp
ret
Function at 0x491550
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
test esi, esi
je 0x491607
cmp byte [esi + 0x5c], 0x77
jne 0x491607
mov ecx, dword [esi + 0x10]
mov dword [esi + 4], ebx
push edi
mov edi, 0x4000
sub edi, ecx
je 0x4915a3
push dword [esi + 0x40]
push edi
push 1
push dword [esi + 0x48]
call fcn.0050d63e
add esp, 0x10
cmp eax, edi
jne 0x4915f8
mov eax, dword [esi + 0x48]
mov ecx, 0x4000
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0x4000
test ebx, ebx
jne 0x4915e9
push dword [ebp + 0xc]
add dword [esi + 0x68], ecx
push esi
call fcn.00495c70
mov ecx, dword [esi + 0x10]
add esp, 8
sub dword [esi + 0x68], ecx
mov dword [esi + 0x38], eax
test edi, edi
jne 0x4915cb
cmp eax, 0xfffffffb
jne 0x4915cb
mov dword [esi + 0x38], edi
mov eax, dword [esi + 0x38]
test ecx, ecx
jne 0x4915db
cmp eax, 1
je 0x4915db
xor ebx, ebx
jmp 0x4915e0
mov ebx, 1
test eax, eax
je 0x491573
cmp eax, 1
je 0x491573
xor eax, eax
cmp dword [esi + 0x38], 1
pop edi
cmovne eax, dword [esi + 0x38]
pop esi
pop ebx
pop ebp
ret
pop edi
mov dword [esi + 0x38], 0xffffffff
or eax, 0xffffffff
pop esi
pop ebx
pop ebp
ret
pop esi
mov eax, 0xfffffffe
pop ebx
pop ebp
ret

Function at 0x491690
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x3c], 0
jne 0x4916ea
mov ecx, dword [esi + 4]
test ecx, ecx
jne 0x4916f5
call fcn.0050d70f
mov dword [eax], 0
push dword [esi + 0x40]
push 0x4000
push 1
push dword [esi + 0x44]
call fcn.00522450
mov ecx, eax
add esp, 0x10
mov dword [esi + 4], ecx
test ecx, ecx
jne 0x4916f0
push dword [esi + 0x40]
mov dword [esi + 0x3c], 1
call fcn.00523998
add esp, 4
test eax, eax
je 0x4916ea
mov dword [esi + 0x38], 0xffffffff
or eax, 0xffffffff
pop esi
pop ebp
ret
mov eax, dword [esi + 0x44]
mov dword [esi], eax
lea eax, [ecx - 1]
mov dword [esi + 4], eax
mov eax, dword [esi]
mov cl, byte [eax]
inc eax
mov dword [esi], eax
movzx eax, cl
pop esi
pop ebp
ret
Function at 0x492680
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x492727
cmp byte [esi + 0x5c], 0x77
jne 0x492727
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [esi], ebx
mov dword [esi + 4], edi
test edi, edi
je 0x49270d
mov edx, dword [esi + 0x10]
mov ecx, edi
nop
test edx, edx
jne 0x4926dc
push dword [esi + 0x40]
mov eax, dword [esi + 0x48]
push 0x4000
push 1
push eax
mov dword [esi + 0xc], eax
call fcn.0050d63e
add esp, 0x10
cmp eax, 0x4000
jne 0x492706
mov ecx, dword [esi + 4]
mov edx, eax
mov dword [esi + 0x10], eax
add dword [esi + 0x64], ecx
add dword [esi + 0x68], edx
push 0
push esi
call fcn.00495c70
mov ecx, dword [esi + 4]
add esp, 8
mov edx, dword [esi + 0x10]
sub dword [esi + 0x64], ecx
sub dword [esi + 0x68], edx
mov dword [esi + 0x38], eax
test eax, eax
jne 0x49270d
test ecx, ecx
jne 0x4926b0
jmp 0x49270d
mov dword [esi + 0x38], 0xffffffff
push edi
push ebx
push dword [esi + 0x4c]
call fcn.004943b0
add esp, 0xc
mov dword [esi + 0x4c], eax
sub edi, dword [esi + 4]
mov eax, edi
pop edi
pop ebx
pop esi
pop ebp
ret
mov eax, 0xfffffffe
pop esi
pop ebp
ret
Function at 0x494030
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebx]
mov eax, ecx
xor eax, dword [ebp + 0x10]
mov edx, dword [ebx + 8]
movzx eax, al
shr ecx, 8
mov eax, dword [esi + eax*4]
xor eax, ecx
mov dword [ebx], eax
movzx eax, al
add eax, dword [ebx + 4]
imul ecx, eax, 0x8088405
mov eax, dword [ebp + 0x10]
inc ecx
mov dword [ebx + 4], ecx
shr ecx, 0x18
xor ecx, edx
shr edx, 8
movzx ecx, cl
xor edx, dword [esi + ecx*4]
pop esi
mov dword [ebx + 8], edx
pop ebx
pop ebp
ret
Function at 0x4943b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x4943bc
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.00494510
Function at 0x496ef0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x2c]
mov edx, dword [edi + 0x74]
mov eax, dword [edi + 0x2c]
mov ebx, dword [edi + 0x3c]
add eax, 0xfffffefa
sub ebx, dword [edi + 0x6c]
add eax, esi
sub ebx, edx
cmp dword [edi + 0x6c], eax
jb 0x496f98
mov ecx, dword [edi + 0x38]
push esi
lea eax, [ecx + esi]
push eax
push ecx
call fcn.004ef620
mov eax, dword [edi + 0x4c]
add esp, 0xc
sub dword [edi + 0x70], esi
sub dword [edi + 0x6c], esi
sub dword [edi + 0x5c], esi
mov dword [ebp - 4], eax
mov eax, dword [edi + 0x44]
mov edi, dword [ebp - 4]
lea edx, [eax + edi*2]
movzx ecx, word [edx - 2]
lea edx, [edx - 2]
mov eax, ecx
mov dword [ebp - 4], 0
sub eax, esi
cmp ecx, esi
movzx eax, ax
cmovb eax, dword [ebp - 4]
mov word [edx], ax
sub edi, 1
jne 0x496f42
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x40]
mov edi, esi
lea edx, [eax + esi*2]
movzx ecx, word [edx - 2]
lea edx, [edx - 2]
mov eax, ecx
mov dword [ebp - 4], 0
sub eax, esi
cmp ecx, esi
movzx eax, ax
cmovb eax, dword [ebp - 4]
mov word [edx], ax
sub edi, 1
jne 0x496f70
mov edi, dword [ebp + 8]
add ebx, esi
mov ecx, dword [edi]
mov dword [ebp - 4], ecx
mov eax, dword [ecx + 4]
test eax, eax
je 0x497056
mov ecx, dword [edi + 0x6c]
mov edx, dword [edi + 0x74]
add ecx, edx
add ecx, dword [edi + 0x38]
cmp eax, ebx
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 4]
cmovbe ebx, eax
test ebx, ebx
jne 0x496fc6
xor ebx, ebx
jmp 0x497015
sub eax, ebx
mov dword [ecx + 4], eax
mov eax, dword [ecx + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x496fe3
push ebx
push dword [ecx]
push dword [ecx + 0x30]
call fcn.00494080
jmp 0x496ff3
cmp eax, 2
jne 0x496ffc
push ebx
push dword [ecx]
push dword [ecx + 0x30]
call fcn.004943b0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov dword [ecx + 0x30], eax
push ebx
push dword [ecx]
push dword [ebp - 8]
call fcn.004ef620
mov eax, dword [ebp - 4]
add esp, 0xc
add dword [eax], ebx
add dword [eax + 8], ebx
mov edx, dword [edi + 0x74]
add edx, ebx
mov dword [ebp - 8], edx
mov dword [edi + 0x74], edx
cmp edx, 3
jb 0x497042
mov eax, dword [edi + 0x38]
add eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x58]
movzx edx, byte [eax]
mov dword [edi + 0x48], edx
movzx eax, byte [eax + 1]
shl edx, cl
xor edx, eax
and edx, dword [edi + 0x54]
mov dword [edi + 0x48], edx
mov edx, dword [ebp - 8]
cmp edx, 0x106
jae 0x497056
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x496f02
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49d000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x49d07f
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x49d07f
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x49d02c
shr eax, 4
pop edi
and al, 1
pop esi
pop ebp
ret
push esi
call fcn.0051f978
mov edi, eax
push 0x5c
push edi
call fcn.004f0a07
add esp, 0xc
test eax, eax
je 0x49d079
push ebx
xor ecx, ecx
push edi
mov word [eax], cx
call fcn.0049d000
push edi
mov bl, al
call fcn.004faf71
add esp, 8
test bl, bl
pop ebx
je 0x49d07f
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x49d079
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x49d07f
pop edi
mov al, 1
pop esi
pop ebp
ret
pop edi
xor al, al
pop esi
pop ebp
ret
Function at 0x49d890
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x563d69
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5be984]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov dword [ebp - 0x2c], eax
mov word [esi], cx
mov edx, 2
mov dword [ebp - 4], ecx
mul edx
mov dword [ebp - 0x34], 1
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048460a
mov edi, eax
add esp, 4
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x38], edi
test eax, eax
je 0x49d92f
mov ecx, eax
xor eax, eax
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x3c]
cmp dword [eax + 0x14], 8
jb 0x49d93a
mov eax, dword [eax]
mov ecx, dword [ebp - 0x40]
cmp dword [ecx + 0x14], 8
jb 0x49d945
mov ecx, dword [ecx]
mov edx, dword [ebp - 0x30]
cmp dword [edx + 0x14], 8
jb 0x49d950
mov edx, dword [edx]
push eax
push dword [ebp - 0x2c]
push edi
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49d964
sub ecx, edx
sar ecx, 1
je 0x49d9e4
mov ecx, edi
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49d990
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.004048f0
lea eax, [ebp - 0x28]
cmp esi, eax
je 0x49d9dc
mov ecx, esi
call fcn.00411840
movups xmm0, xmmword [ebp - 0x28]
xor eax, eax
mov word [ebp - 0x28], ax
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
lea ecx, [ebp - 0x28]
call fcn.004029d0
push edi
call fcn.00484613
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00484a0d
mov esp, ebp
pop ebp
ret