joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f4500
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x569518
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x5b3680]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.004f4470
mov edi, eax
mov dword [ebp - 0x24], edi
mov byte [ebp - 0x20], bl
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x20], 1
mov byte [ebp - 4], 1
cmp dword [0x5c4000], ebx
jne 0x4f45ab
push 0xf0000000
push 1
push ebx
push ebx
push 0x5c4000
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
call esi
test eax, eax
jne 0x4f45ab
push 8
push 1
push eax
push eax
push 0x5c4000
call esi
neg eax
sbb esi, esi
neg esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4f4596
movzx eax, ax
or eax, 0x80070000
test esi, esi
jne 0x4f45ab
mov dword [ebp - 0x14], eax
push 0x5afaa8
lea eax, [ebp - 0x14]
push eax
call fcn.00532408
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 0x20], 0
push dword [ebp - 0x18]
push 4
push dword [0x5c4000]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x18], eax
jne 0x4f45e7
mov dword [ebp - 0x1c], 0x80004005
push 0x5afaa8
lea eax, [ebp - 0x1c]
push eax
call fcn.00532408
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.0041c570
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
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 0x4f46e0
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x569578
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x5b3680]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.004f4650
mov edi, eax
mov dword [ebp - 0x24], edi
mov byte [ebp - 0x20], bl
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x20], 1
mov byte [ebp - 4], 1
cmp dword [0x5c4020], ebx
jne 0x4f478b
push 0xf0000000
push 1
push ebx
push ebx
push 0x5c4020
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
call esi
test eax, eax
jne 0x4f478b
push 8
push 1
push eax
push eax
push 0x5c4020
call esi
neg eax
sbb esi, esi
neg esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4f4776
movzx eax, ax
or eax, 0x80070000
test esi, esi
jne 0x4f478b
mov dword [ebp - 0x14], eax
push 0x5afaa8
lea eax, [ebp - 0x14]
push eax
call fcn.00532408
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 0x20], 0
push dword [ebp - 0x18]
push 2
push dword [0x5c4020]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x18], eax
jne 0x4f47c7
mov dword [ebp - 0x1c], 0x80004005
push 0x5afaa8
lea eax, [ebp - 0x1c]
push eax
call fcn.00532408
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.0041c570
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
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 0x4f48c0
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5695d8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x5b3680]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.004f4830
mov edi, eax
mov dword [ebp - 0x24], edi
mov byte [ebp - 0x20], bl
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x20], 1
mov byte [ebp - 4], 1
cmp dword [0x5c4040], ebx
jne 0x4f496b
push 0xf0000000
push 1
push ebx
push ebx
push 0x5c4040
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
call esi
test eax, eax
jne 0x4f496b
push 8
push 1
push eax
push eax
push 0x5c4040
call esi
neg eax
sbb esi, esi
neg esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4f4956
movzx eax, ax
or eax, 0x80070000
test esi, esi
jne 0x4f496b
mov dword [ebp - 0x14], eax
push 0x5afaa8
lea eax, [ebp - 0x14]
push eax
call fcn.00532408
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 0x20], 0
push dword [ebp - 0x18]
push 1
push dword [0x5c4040]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x18], eax
jne 0x4f49a7
mov dword [ebp - 0x1c], 0x80004005
push 0x5afaa8
lea eax, [ebp - 0x1c]
push eax
call fcn.00532408
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.0041c570
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
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 0x4f4bd0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi + 8], 0
jne 0x4f4be7
or eax, 0xffffffff
pop edi
mov esp, ebp
pop ebp
ret 4
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push esi
mov dword [edi + 0xc], 1
mov esi, 0xa
jmp 0x4f4c00
lea eax, [ebp - 4]
push eax
push dword [edi + 8]
call ebx
cmp dword [ebp - 4], 0x103
jne 0x4f4c1f
push 0x19
call dword [sym.imp.KERNEL32.dll_Sleep]
dec esi
test esi, esi
jg 0x4f4c00
lea eax, [ebp - 4]
push eax
push dword [edi + 8]
call ebx
cmp dword [ebp - 4], 0x103
jne 0x4f4c3c
push 0xffffffffffffffff
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea eax, [ebp - 4]
push eax
push dword [edi + 8]
call ebx
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x4f6c80
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, ecx
xor bl, bl
call edi
mov dword [ebp - 4], eax
test bl, bl
jne 0x4f6ca8
lea eax, [esi + 0xc]
mov ecx, 1
lock xadd dword [eax], ecx
mov ecx, dword [ebp + 8]
xor eax, eax
lock cmpxchg dword [esi], ecx
test eax, eax
je 0x4f6d12
call edi
sub eax, dword [ebp - 4]
cmp eax, 0x3e8
jae 0x4f6d07
mov ecx, 0x3e8
sub ecx, eax
mov eax, dword [esi + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4f6d03
cmp eax, 0x102
je 0x4f6cff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 1
push 0xc0000025
push 0xc20a018e
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov bl, 1
jmp 0x4f6c98
xor bl, bl
jmp 0x4f6c98
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4f73c0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x5c4130]
cmp dword [eax - 0xc], 0
jne 0x4f7479
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
mov esi, dword [ebp - 4]
test esi, esi
js 0x4f747d
mov edx, dword [0x5c4130]
mov ecx, 1
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, esi
or ecx, eax
jge 0x4f741c
push esi
mov ecx, 0x5c4130
call fcn.00402590
mov edx, dword [0x5c4130]
cmp esi, dword [edx - 8]
jg 0x4f747d
mov dword [edx - 0xc], esi
xor ecx, ecx
mov eax, dword [0x5c4130]
mov word [eax + esi*2], cx
lea eax, [ebp - 4]
push eax
push edx
push 3
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
mov eax, dword [0x5c4130]
pop esi
test eax, eax
jne 0x4f744a
xor ecx, ecx
jmp 0x4f7461
push dword [eax - 8]
push eax
call fcn.00529878
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x4f747d
mov eax, dword [0x5c4130]
cmp ecx, dword [eax - 8]
jg 0x4f747d
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [0x5c4130]
mov word [eax + ecx*2], dx
mov eax, dword [0x5c4130]
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004027b0
int3
Function at 0x4faa80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56a69d
mov eax, dword fs:[0]
push eax
sub esp, 0x80c
mov eax, dword [0x5b3680]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 0x810]
push eax
push 0x104
mov dword [ebp - 0x818], esi
mov dword [ebp - 0x814], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
call fcn.00402a00
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x4faaf3
push 0x80004005
call fcn.004027b0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x410]
push eax
push 0
push 0x581a44
lea eax, [ebp - 0x810]
mov dword [ebp - 0x814], 1
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4fab54
lea ecx, [ebp - 0x410]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4fab36
sub ecx, edx
lea eax, [ebp - 0x410]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00402600
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005295e2
mov esp, ebp
pop ebp
ret

Function at 0x4fab70
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, ecx
push edi
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
test edi, edi
js 0x4fabec
mov esi, dword [ebp + 8]
mov ecx, 1
mov eax, dword [esi]
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or ecx, eax
jge 0x4faba5
push edi
mov ecx, esi
call fcn.00402590
push edi
push dword [esi]
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edi, eax
mov ecx, edi
cmp edi, 0xffffffff
jne 0x4fabcd
mov ecx, dword [esi]
test ecx, ecx
je 0x4fabd1
push dword [ecx - 8]
push ecx
call fcn.00529878
add esp, 8
mov ecx, eax
test ecx, ecx
js 0x4fabec
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x4fabec
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov word [eax + ecx*2], dx
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 4
push 0x80070057
call fcn.004027b0
int3
Function at 0x4fb3e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x5b3680]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [esp + 0x10], ebx
cmp ebx, 0xffffffff
je 0x4fb439
push dword [esi + 4]
push ebx
call fcn.004fb5e0
test eax, eax
je 0x4fb453
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.005295e2
mov esp, ebp
pop ebp
ret 8
mov edi, dword [esi + 4]
xor ebx, ebx
mov dword [esp + 0x20], ebx
test edi, edi
je 0x4fb561
lea ecx, [esi + 0x1c]
mov dword [esp + 0x14], ecx
jmp 0x4fb470
movzx eax, byte [ecx - 0x14]
mov byte [esp + 0x24], al
movzx eax, byte [ecx - 0x10]
mov byte [esp + 0x25], al
mov eax, dword [ecx]
mov byte [esp + 0x27], 0
mov cx, word [eax + 0xc]
mov word [esp + 0x28], cx
mov ax, word [eax + 0xe]
movzx edx, ax
mov word [esp + 0x2a], ax
movzx eax, cx
imul edx, eax
cmp edx, 8
jl 0x4fb4ae
mov byte [esp + 0x26], 0
jmp 0x4fb4b8
mov al, 1
mov ecx, edx
shl al, cl
mov byte [esp + 0x26], al
mov eax, dword [esp + 0x14]
xor edx, edx
shl edi, 4
xor esi, esi
add edi, 6
mov eax, dword [eax - 4]
mov dword [esp + 0x2c], eax
xor eax, eax
cmp ebx, 2
jb 0x4fb4ff
mov eax, dword [esp + 0xc]
lea ecx, [ebx - 2]
shr ecx, 1
add eax, 0x18
inc ecx
lea ebx, [ecx + ecx]
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x20]
lea esp, [esp]
add edx, dword [eax]
lea eax, [eax + 0x40]
add esi, dword [eax - 0x20]
dec ecx
jne 0x4fb4f0
mov eax, dword [esp + 0x18]
cmp eax, ebx
jae 0x4fb50e
mov ecx, dword [esp + 0xc]
shl eax, 5
add edi, dword [eax + ecx + 0x18]
lea eax, [esi + edx]
add eax, edi
push 0
mov dword [esp + 0x34], eax
lea eax, [esp + 0x20]
push eax
push 0x10
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4fb439
cmp dword [esp + 0x1c], 0x10
jne 0x4fb439
mov esi, dword [esp + 0xc]
inc ebx
mov ecx, dword [esp + 0x14]
add ecx, 0x20
mov dword [esp + 0x20], ebx
mov dword [esp + 0x14], ecx
mov edi, dword [esi + 4]
cmp ebx, edi
jb 0x4fb470
mov ebx, dword [esp + 0xc]
xor edi, edi
cmp dword [ebx + 4], edi
jbe 0x4fb5be
lea esi, [ebx + 0x1c]
nop
mov eax, dword [esi]
push 0
mov ecx, dword [eax + 0x14]
mov dword [eax + 0x14], 0
lea eax, [esp + 0x20]
push eax
push dword [esi - 4]
mov dword [esp + 0x24], ecx
push dword [esi - 8]
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4fb439
mov eax, dword [esp + 0x1c]
cmp eax, dword [esi - 4]
jne 0x4fb439
mov eax, dword [esi]
inc edi
mov ecx, dword [esp + 0x18]
add esi, 0x20
mov dword [eax + 0x14], ecx
cmp edi, dword [ebx + 4]
jb 0x4fb570
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x34]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005295e2
mov esp, ebp
pop ebp
ret 8
Function at 0x4fb5e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push eax
push 2
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push esi
call edi
test eax, eax
jne 0x4fb619
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
cmp dword [ebp - 8], 2
jne 0x4fb60b
push 0
lea eax, [ebp - 8]
mov dword [ebp - 4], 1
push eax
push 2
lea eax, [ebp - 4]
push eax
push esi
call edi
test eax, eax
je 0x4fb60b
cmp dword [ebp - 8], 2
jne 0x4fb60b
mov eax, dword [ebp + 0xc]
movzx eax, ax
push 0
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 2
lea eax, [ebp - 4]
push eax
push esi
call edi
test eax, eax
je 0x4fb60b
cmp dword [ebp - 8], 2
jne 0x4fb60b
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4fcd60
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56aac0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x5b3680]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [edi], esi
je 0x4fcdb9
mov dword [ebp - 0x1c], 1
push 0x5afc8c
lea eax, [ebp - 0x1c]
push eax
call fcn.00532408
lea eax, [ebp - 0x18]
push eax
push 0x593140
push 1
push 0
push 0x593130
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x4fcdea
mov dword [ebp - 0x20], 2
push 0x5afc8c
lea eax, [ebp - 0x20]
push eax
call fcn.00532408
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push eax
call dword [ecx + 0x1c]
test eax, eax
jns 0x4fce10
mov dword [ebp - 0x24], 3
push 0x5afc8c
lea eax, [ebp - 0x24]
push eax
call fcn.00532408
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x1c]
test eax, eax
jns 0x4fce33
mov dword [ebp - 0x28], 4
push 0x5afc8c
lea eax, [ebp - 0x28]
push eax
call fcn.00532408
mov dword [ebp - 4], 0xffffffff
jmp 0x4fce52
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4fce5f
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov edx, dword [ebp - 0x18]
test edx, edx
je 0x4fce6c
mov ecx, dword [edx]
push edx
call dword [ecx + 8]
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 0x4fe5b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 4]
test eax, eax
jne 0x4fe5be
pop ebp
ret 0xc
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0052d4e2
add esp, 0x10
pop ebp
ret 0xc

Function at 0x4fe6d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 4]
test eax, eax
jne 0x4fe6de
pop ebp
ret 0xc
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0052b6e4
add esp, 0x10
pop ebp
ret 0xc
Function at 0x525290
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x24]
lea esp, [esp]
mov eax, dword [edi + 0x24]
mov ebx, dword [edi + 0x34]
add eax, 0xfffffefa
sub ebx, dword [edi + 0x6c]
add eax, esi
sub ebx, dword [edi + 0x64]
cmp dword [edi + 0x64], eax
jb 0x525319
mov ecx, dword [edi + 0x30]
push esi
lea eax, [ecx + esi]
push eax
push ecx
call fcn.00531580
mov edx, dword [edi + 0x44]
add esp, 0xc
mov eax, dword [edi + 0x3c]
sub dword [edi + 0x68], esi
sub dword [edi + 0x64], esi
sub dword [edi + 0x54], esi
lea ecx, [eax + edx*2]
jmp 0x5252e0
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x5252ef
sub eax, esi
jmp 0x5252f1
xor eax, eax
mov word [ecx], ax
dec edx
jne 0x5252e0
mov eax, dword [edi + 0x38]
mov edx, esi
lea ecx, [eax + esi*2]
nop
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x52530f
sub eax, esi
jmp 0x525311
xor eax, eax
mov word [ecx], ax
dec edx
jne 0x525300
add ebx, esi
mov ecx, dword [edi]
cmp dword [ecx + 4], 0
je 0x525371
mov eax, dword [edi + 0x6c]
add eax, dword [edi + 0x64]
add eax, dword [edi + 0x30]
push ebx
push eax
push ecx
call fcn.005256c0
add dword [edi + 0x6c], eax
add esp, 0xc
mov ebx, dword [edi + 0x6c]
cmp ebx, 3
jb 0x52535d
mov eax, dword [edi + 0x30]
add eax, dword [edi + 0x64]
mov ecx, dword [edi + 0x50]
movzx edx, byte [eax]
mov dword [edi + 0x40], edx
movzx eax, byte [eax + 1]
shl edx, cl
xor edx, eax
and edx, dword [edi + 0x4c]
mov dword [edi + 0x40], edx
cmp ebx, 0x106
jae 0x525371
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x5252a0
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x526e50
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
movzx ecx, si
shr esi, 0x10
test edi, edi
jne 0x526e6c
lea eax, [edi + 1]
pop edi
pop esi
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x526f6d
jmp 0x526e80
mov edx, 0x15b0
cmp ebx, edx
cmovb edx, ebx
sub ebx, edx
mov dword [ebp + 0x10], ebx
cmp edx, 0x10
jl 0x526f32
mov ebx, edx
shr ebx, 4
mov eax, ebx
neg eax
shl eax, 4
add edx, eax
movzx eax, byte [edi]
add ecx, eax
movzx eax, byte [edi + 1]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 2]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 3]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 4]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 5]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 6]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 7]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 8]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 9]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xa]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xb]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xc]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xd]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xe]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xf]
add esi, ecx
add edi, 0x10
add ecx, eax
add esi, ecx
dec ebx
jne 0x526ea6
mov ebx, dword [ebp + 0x10]
test edx, edx
je 0x526f41
movzx eax, byte [edi]
inc edi
add ecx, eax
add esi, ecx
dec edx
jne 0x526f36
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
mov eax, 0x80078071
mul esi
shr edx, 0xf
imul edx, edx, 0xffff000f
add esi, edx
test ebx, ebx
jne 0x526e80
shl esi, 0x10
pop ebx
or esi, ecx
pop edi
mov eax, esi
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x526f8c
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.00526fa0
Function at 0x550723
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5b3680]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00535c0a
mov dword [ebp - 0x14], eax
cmp dword [0x5b9bf8], esi
jne 0x550816
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x5507a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x5508f6
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x5508f6
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5508f6
push eax
call ebx
push 0x57e1ac
push edi
mov dword [0x5b9bf8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x5b9bfc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x5b9c00], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5b9c08], eax
test eax, eax
je 0x550813
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5b9c04], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x55083b
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x55082e
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x550850
push 4
pop eax
jmp 0x5508f8
cmp dword [ebp - 0x14], esi
je 0x550850
push dword [0x5b9bf8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x550835
mov eax, dword [0x5b9c04]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x5508ae
cmp dword [0x5b9c08], edi
je 0x5508ae
push eax
call ebx
push dword [0x5b9c08]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x5508ae
test eax, eax
je 0x5508ae
call ecx
test eax, eax
je 0x5508a3
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x5508a3
test byte [ebp - 8], 1
jne 0x5508ae
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x5508de
mov eax, dword [0x5b9bfc]
cmp eax, edi
je 0x5508db
push eax
call ebx
test eax, eax
je 0x5508db
call eax
mov esi, eax
test esi, esi
je 0x5508db
mov eax, dword [0x5b9c00]
cmp eax, edi
je 0x5508db
push eax
call ebx
test eax, eax
je 0x5508db
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x5b9bf8]
call ebx
test eax, eax
je 0x5508f6
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x5508f8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005295e2
mov esp, ebp
pop ebp
ret