joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48f760
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5645e8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x5b0070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x38]
mov edi, dword [ebp + 0xc]
push esi
push eax
call fcn.00490020
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
mov dword [ebp - 0x18], 0
mov word [ebp - 0x14], 0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x18]
call fcn.004a2780
xorps xmm0, xmm0
lea eax, [ebp - 0x18]
movlpd qword [ebp - 0x20], xmm0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
mov byte [ebp - 0x1c], 0
test eax, eax
jne 0x48f7e4
xor bl, bl
jmp 0x48f802
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x48f7fc
cmp eax, 0x80
je 0x48f7fc
xor bl, bl
jmp 0x48f802
mov byte [ebp - 0x14], 1
mov bl, 1
mov byte [ebp - 0x1c], bl
mov byte [ebp - 4], 2
lea eax, [ebp - 0x39]
push eax
push edi
push esi
mov byte [ebp - 0x39], 0
call fcn.0048f8f0
test al, al
jne 0x48f830
cmp byte [ebp - 0x39], al
je 0x48f830
cmp dword [esi + 0x14], 8
jb 0x48f829
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 1
test bl, bl
je 0x48f84a
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x48f846
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x48f86a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x24]
cmp edx, 8
jb 0x48f8ad
mov ecx, dword [ebp - 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48f8a3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48f8df
push edx
push ecx
call fcn.004e566f
add esp, 8
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e562e
mov esp, ebp
pop ebp
ret 8
call fcn.0050ac18
int3
Function at 0x492584
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x5b0070]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
mov esi, ecx
mov dword [esp + 4], 0x114
push 0x110
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov byte [esi], 0
call fcn.00500e00
add esp, 0xc
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x492607
cmp dword [esp + 8], 6
jb 0x492607
mov byte [esi], 1
mov ecx, dword [esp + 0x118]
pop esi
xor ecx, esp
call fcn.004e562e
add esp, 0x118
ret
Function at 0x492630
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x564950
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x5b0070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0xc
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x28]
push str.wintrust.dll
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00403570
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.00477d70
mov ecx, eax
call fcn.00477e40
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4926e5
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4926db
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49281e
push edx
push ecx
call fcn.004e566f
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
push 0xb
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], eax
push str.crypt32.dll
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.00403570
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
push eax
call fcn.00477d70
mov ecx, eax
call fcn.00477e40
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x49277a
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x49276d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x492823
push edx
push ecx
call fcn.004e566f
mov eax, dword [ebp - 0x10]
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], cx
test edi, edi
je 0x49280c
test eax, eax
je 0x49280c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptCATAdminCalcHashFromFileHandle
push edi
call esi
push str.CryptCATAdminAcquireContext
push edi
mov dword [ebx + 4], eax
call esi
push str.CryptCATAdminEnumCatalogFromHash
push edi
mov dword [ebx + 8], eax
call esi
push str.CryptCATCatalogInfoFromContext
push edi
mov dword [ebx + 0xc], eax
call esi
push str.CryptCATAdminReleaseCatalogContext
push edi
mov dword [ebx + 0x10], eax
call esi
push str.CryptCATAdminReleaseContext
push edi
mov dword [ebx + 0x14], eax
call esi
push str.WTHelperProvDataFromStateData
push edi
mov dword [ebx + 0x18], eax
call esi
push str.WTHelperGetProvSignerFromChain
push edi
mov dword [ebx + 0x1c], eax
call esi
push str.WinVerifyTrust
push edi
mov dword [ebx + 0x20], eax
call esi
push str.CertNameToStrW
push dword [ebp - 0x10]
mov dword [ebx + 0x24], eax
call esi
mov dword [ebx + 0x28], 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
call fcn.0050ac18
call fcn.0050ac18
int3
Function at 0x493bc0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x5b0070]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 8], eax
push esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
push edi
cmp dword [ebp + 0x10], 0xffffffff
mov edi, dword [esp + 0x20]
je 0x493c42
mov ecx, 0x100000
nop dword [eax]
nop word [eax + eax]
cmp esi, 0x100000
mov dword [esp + 0x14], 0
push 0
mov eax, esi
cmova eax, ecx
lea ecx, [esp + 0x18]
push ecx
push eax
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x14]
add ebx, ecx
test eax, eax
je 0x493c42
test ecx, ecx
je 0x493c3e
add edi, ecx
sub esi, ecx
mov ecx, 0x100000
jne 0x493c00
xor eax, eax
jmp 0x493c47
mov eax, 1
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x493c51
mov dword [ecx], ebx
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004e562e
add esp, 0xc
ret 0xc

Function at 0x493cd0
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x5b0070]
xor eax, esp
mov dword [esp + 4], eax
push esi
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x493cfe
mov eax, 1
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.004e562e
add esp, 8
ret 4
mov eax, dword [ecx + 0xc]
cmp eax, 0xffffffff
je 0x493ce7
push edi
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x493d44
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x493d44
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.004e562e
add esp, 8
ret 4
mov ecx, dword [esp + 8]
xor eax, eax
add eax, edi
mov dword [esi], eax
adc ecx, 0
xor eax, eax
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0xc]
pop edi
pop esi
xor ecx, esp
call fcn.004e562e
add esp, 8
ret 4

Function at 0x498c20
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x565a2f
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5b0070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, dword [ebp + 8]
mov ecx, edi
push esi
mov dword [ebp - 0x10], edi
call fcn.00407aa0
mov dword [ebp - 4], 0
lea eax, [esi + 0x18]
push eax
lea ecx, [edi + 0x18]
call fcn.00407aa0
mov byte [ebp - 4], 1
lea eax, [esi + 0x30]
push eax
lea ecx, [edi + 0x30]
call fcn.00407aa0
mov byte [ebp - 4], 2
lea eax, [esi + 0x48]
push eax
lea ecx, [edi + 0x48]
call fcn.00407aa0
mov byte [ebp - 4], 3
lea ecx, [edi + 0x64]
mov al, byte [esi + 0x60]
mov byte [edi + 0x60], al
lea eax, [esi + 0x64]
push eax
call fcn.00407aa0
mov byte [ebp - 4], 4
lea eax, [esi + 0x7c]
push eax
lea ecx, [edi + 0x7c]
call fcn.00407aa0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4a2780
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x567098
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x5b0070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x4a27c3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.00484c80
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x4a27ec
lea eax, [esi + 8]
jmp 0x4a27ee
xor eax, eax
cmp dword [ebx + 0x10], 0
je 0x4a27fe
cmp dword [ebx + 0x14], 8
jb 0x4a2800
mov ebx, dword [ebx]
jmp 0x4a2800
xor ebx, ebx
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x4a2821
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4a2821
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x4a284a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4a285f
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.004e566f
add esp, 8
mov dword [ebp - 0x14], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e562e
mov esp, ebp
pop ebp
ret 4
Function at 0x4a6d20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x567890
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x5b0070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov edi, dword [ebp + 8]
test eax, eax
je 0x4a6e07
cmp byte [eax + 0x54], 0
je 0x4a6e07
add eax, 0x1c
lea ecx, [ebp - 0x38]
push eax
call fcn.0048d020
push 0
mov edx, edi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00464f80
add esp, 4
mov byte [ebp - 4], 1
lea edi, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
mov eax, dword [esi]
cmovae edi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x1c]
cmp dword [eax + 0x14], 8
jb 0x4a6da2
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4a6dec
push 2
push 0
push 0
push esi
mov dword [ebp - 0x30], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x30]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.0041db80
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.0048d070
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004e562e
mov esp, ebp
pop ebp
ret 4
Function at 0x4e8d80
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [0x5b5218], 0
push ebx
push esi
push edi
jne 0x4e8e9f
mov edi, 1
mov dword [0x5b5220], 0
mov ebx, 0x80
mov eax, edi
mov dword [ebp - 4], ebx
and al, 1
lea esi, [ebx*8]
movzx eax, al
lea edx, [ebx*4 + 0x5b5220]
neg eax
sbb eax, eax
shr edi, 1
and eax, 0xedb88320
xor edi, eax
xor eax, eax
nop
mov ecx, dword [eax + 0x5b5220]
add eax, esi
xor ecx, edi
mov dword [edx], ecx
add edx, esi
cmp eax, 0x400
jb 0x4e8dd0
shr ebx, 1
cmp dword [ebp - 4], 2
jae 0x4e8da8
mov esi, 0x400
mov ecx, dword [esi + 0x5b4e20]
movzx eax, cl
shr ecx, 8
mov edx, dword [eax*4 + 0x5b5220]
xor edx, ecx
movzx eax, dl
mov dword [esi + 0x5b5220], edx
shr edx, 8
mov ecx, dword [eax*4 + 0x5b5220]
xor ecx, edx
movzx eax, cl
mov dword [esi + 0x5b5620], ecx
shr ecx, 8
mov edx, dword [eax*4 + 0x5b5220]
xor edx, ecx
movzx eax, dl
mov dword [esi + 0x5b5a20], edx
shr edx, 8
mov ecx, dword [eax*4 + 0x5b5220]
xor ecx, edx
movzx eax, cl
mov dword [esi + 0x5b5e20], ecx
shr ecx, 8
mov edx, dword [eax*4 + 0x5b5220]
xor edx, ecx
movzx eax, dl
mov dword [esi + 0x5b6220], edx
shr edx, 8
mov ecx, dword [eax*4 + 0x5b5220]
xor ecx, edx
movzx eax, cl
mov dword [esi + 0x5b6620], ecx
shr ecx, 8
xor ecx, dword [eax*4 + 0x5b5220]
mov dword [esi + 0x5b6a20], ecx
add esi, 4
cmp esi, 0x800
jb 0x4e8df2
mov byte [0x5b5218], 1
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
not esi
mov ebx, dword [ebp + 0xc]
cmp edi, 8
jb 0x4e8f85
mov eax, edi
lea ecx, [ebx + 6]
shr eax, 3
mov dword [ebp + 8], ecx
mov dword [ebp + 0x10], eax
movzx edx, byte [ecx - 3]
sub edi, 8
movzx eax, byte [ecx - 4]
shl edx, 8
or edx, eax
movzx eax, byte [ecx - 5]
shl edx, 8
or edx, eax
movzx eax, byte [ebx]
shl edx, 8
add ebx, 8
or edx, eax
xor edx, esi
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov esi, dword [ecx*4 + 0x5b6620]
mov ecx, dword [ebp + 8]
xor esi, dword [eax*4 + 0x5b6a20]
mov eax, edx
shr eax, 0x18
xor esi, dword [eax*4 + 0x5b6220]
movzx eax, dl
movzx edx, byte [ecx + 1]
shl edx, 8
xor esi, dword [eax*4 + 0x5b6e20]
movzx eax, byte [ecx]
or edx, eax
movzx eax, byte [ecx - 1]
shl edx, 8
or edx, eax
movzx eax, byte [ecx - 2]
shl edx, 8
or edx, eax
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x5b5620]
xor ecx, dword [eax*4 + 0x5b5a20]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x5b5220]
movzx eax, dl
xor ecx, dword [eax*4 + 0x5b5e20]
xor esi, ecx
mov ecx, dword [ebp + 8]
add ecx, 8
sub dword [ebp + 0x10], 1
mov dword [ebp + 8], ecx
jne 0x4e8ec1
test edi, edi
je 0x4e8faa
nop dword [eax]
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [eax*4 + 0x5b5220]
sub edi, 1
jne 0x4e8f90
not esi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f1fe0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x98
push 0
lea eax, [edi + 0x110]
push eax
call fcn.00500e00
mov eax, dword [edi + 0x30]
add esp, 0xc
add eax, dword [edi + 0x34]
mov ecx, dword [edi + 0x28]
mov dword [edi + 0x40], eax
mov dword [edi + 0x2c], 0
mov dword [edi + 0x14], 0
lea esi, [eax + ecx]
shr ecx, 3
mov eax, 0xaaaaaaab
mul ecx
mov ecx, 0xc
shr edx, 3
imul eax, edx, 0x54
mov edx, esi
sub edx, eax
mov eax, dword [edi + 0x18]
cmp eax, ecx
mov dword [edi + 0xc], eax
mov dword [edi + 0x44], edx
cmovb ecx, eax
mov dword [edi + 8], edx
not ecx
lea eax, [edx + 0x600]
mov dword [edi + 0x24], ecx
mov dword [edi + 0x20], ecx
lea ecx, [esi - 0xc]
mov dword [edi + 0x38], eax
xor eax, eax
mov dword [edi + 0x3c], ecx
mov dword [edi], ecx
mov dword [edi + 4], ecx
mov dword [ecx + 4], edx
add edx, 2
mov dword [ecx], 0x1010100
mov dword [ecx + 8], 0
mov byte [edx - 2], al
lea edx, [edx + 6]
xor ecx, ecx
mov byte [edx - 7], 1
inc eax
mov dword [edx - 6], ecx
cmp eax, 0x100
jb 0x4f2077
lea eax, [edi + 0x9fc]
push ebx
xor ebx, ebx
mov dword [ebp - 4], eax
nop word [eax + eax]
mov esi, eax
xor edi, edi
movzx eax, word [edi + 0x576890]
lea ecx, [ebx + 2]
xor edx, edx
div ecx
mov ecx, 0x4000
sub ecx, eax
xor eax, eax
movzx ecx, cx
nop
mov word [esi + eax*2], cx
add eax, 8
cmp eax, 0x40
jb 0x4f20c0
add edi, 2
add esi, 2
cmp edi, 0x10
jb 0x4f20a4
mov eax, dword [ebp - 4]
inc ebx
sub eax, 0xffffff80
mov dword [ebp - 4], eax
cmp ebx, 0x80
jb 0x4f20a0
mov edi, dword [ebp + 8]
mov edx, 0x50
pop ebx
lea esi, [edi + 0x3bc]
nop dword [eax + eax]
mov eax, esi
mov ecx, 0x10
nop word [eax + eax]
mov word [eax], dx
lea eax, [eax + 4]
mov word [eax - 2], 0x403
sub ecx, 1
jne 0x4f2110
add edx, 0x28
add esi, 0x40
cmp edx, 0x438
jb 0x4f2100
mov dword [edi + 0x3b8], 0x40070000
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4f9670
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x130
push 0
lea eax, [edi + 0x100]
push eax
call fcn.00500e00
mov eax, dword [edi + 0x30]
add esp, 0xc
add eax, dword [edi + 0x34]
mov ecx, dword [edi + 0x28]
mov dword [edi + 0x40], eax
mov dword [edi + 0x2c], 0
mov dword [edi + 0x14], 0
lea esi, [eax + ecx]
shr ecx, 3
mov eax, 0xaaaaaaab
mul ecx
mov ecx, 0xc
shr edx, 3
imul eax, edx, 0x54
mov edx, esi
sub edx, eax
mov eax, dword [edi + 0x18]
cmp eax, ecx
mov dword [edi + 0xc], eax
mov dword [edi + 0x44], edx
cmovb ecx, eax
mov dword [edi + 8], edx
not ecx
lea eax, [edx + 0x600]
mov dword [edi + 0x24], ecx
mov dword [edi + 0x20], ecx
lea ecx, [esi - 0xc]
mov dword [edi + 0x38], eax
xor eax, eax
mov dword [edi + 0x3c], ecx
mov dword [edi], ecx
mov dword [edi + 4], ecx
mov dword [ecx + 4], edx
add edx, 2
mov dword [ecx], 0x10100ff
mov dword [ecx + 8], 0
nop word [eax + eax]
mov byte [edx - 2], al
lea edx, [edx + 6]
xor ecx, ecx
mov byte [edx - 7], 1
inc eax
mov dword [edx - 6], ecx
cmp eax, 0x100
jb 0x4f9710
lea esi, [edi + 0x330]
xor edx, edx
xor ebx, ebx
mov dword [ebp - 4], edx
mov ecx, esi
mov dword [ebp - 0xc], ebx
add edi, 0x1048
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edi
movzx eax, byte [ecx]
cmp eax, edx
jne 0x4f9762
nop
inc ebx
movzx eax, byte [esi + ebx]
lea ecx, [esi + ebx]
mov dword [ebp - 0x10], ecx
cmp eax, edx
je 0x4f9750
mov dword [ebp - 0xc], ebx
lea eax, [ebx + 1]
mov esi, edi
mov dword [ebp - 0x14], eax
xor edi, edi
mov ebx, eax
nop
movzx eax, word [edi + 0x576af0]
xor edx, edx
div ebx
mov ecx, 0x4000
sub ecx, eax
xor eax, eax
movzx ecx, cx
nop word [eax + eax]
mov word [esi + eax*2], cx
add eax, 8
cmp eax, 0x40
jb 0x4f9790
add edi, 2
add esi, 2
cmp edi, 0x10
jb 0x4f9770
mov edx, dword [ebp - 4]
mov edi, dword [ebp - 8]
inc edx
mov ebx, dword [ebp - 0xc]
sub edi, 0xffffff80
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 4], edx
mov dword [ebp - 8], edi
cmp edx, 0x19
jb 0x4f9748
mov edi, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0xc], 0x18
lea esi, [edi + 0x333]
add edi, 0x448
mov dword [ebp - 0x18], esi
lea ebx, [ecx + 3]
mov edx, esi
mov dword [ebp - 0x10], edi
movzx eax, byte [edx]
cmp eax, ebx
jne 0x4f97fc
nop
inc ecx
movzx eax, byte [esi + ecx]
lea edx, [esi + ecx]
cmp eax, ebx
je 0x4f97f0
mov eax, edi
mov esi, 0x20
mov edi, ecx
shl edi, 4
add edi, 0x28
nop dword [eax + eax]
mov word [eax], di
lea eax, [eax + 4]
mov word [eax - 2], 0x703
sub esi, 1
jne 0x4f9810
mov edi, dword [ebp - 0x10]
inc ebx
mov esi, dword [ebp - 0x18]
sub edi, 0xffffff80
sub dword [ebp - 0xc], 1
mov dword [ebp - 0x10], edi
jne 0x4f97e8
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [eax + 0x444], 0x40070000
mov esp, ebp
pop ebp
ret
Function at 0x4fcb80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
push edi
xor edi, edi
mov esi, dword [esi]
and esi, 7
cmp eax, 5
jae 0x4fcba0
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
add dword [ebp + 0x10], 5
mov ecx, dword [ebp + 8]
push ebx
lea ebx, [eax - 4]
add ebx, ecx
mov dword [ebp - 4], ebx
lea eax, [edi + ecx]
cmp eax, ebx
jae 0x4fcbc9
mov cl, byte [eax]
and cl, 0xfe
cmp cl, 0xe8
je 0x4fcbc6
inc eax
cmp eax, ebx
jb 0x4fcbb7
mov ecx, dword [ebp + 8]
mov edx, eax
sub edx, edi
mov edi, eax
sub edx, ecx
sub edi, ecx
cmp eax, ebx
jae 0x4fcccd
cmp edx, 2
jbe 0x4fcc52
xor esi, esi
movzx edx, byte [eax + 4]
lea ecx, [edx + 1]
test cl, 0xfe
jne 0x4fccb9
movzx ecx, byte [eax + 3]
mov ebx, dword [ebp + 0x10]
shl edx, 8
add ebx, edi
or edx, ecx
movzx ecx, byte [eax + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax + 1]
shl edx, 8
or edx, ecx
mov ecx, edx
add edx, ebx
sub ecx, ebx
cmp dword [ebp + 0x18], 0
cmove edx, ecx
mov dword [ebp + 0xc], edx
mov ebx, edx
test esi, esi
je 0x4fcc89
and esi, 6
shl esi, 2
mov ecx, esi
shr edx, cl
inc edx
test dl, 0xfe
jne 0x4fcc87
mov ebx, 0x100
shl ebx, cl
mov ecx, dword [ebp + 0x10]
dec ebx
xor ebx, dword [ebp + 0xc]
add ecx, edi
cmp dword [ebp + 0x18], 0
je 0x4fcc85
add ebx, ecx
jmp 0x4fcc87
mov ecx, edx
shr esi, cl
test esi, esi
je 0x4fcbe2
cmp esi, 4
ja 0x4fcc77
cmp esi, 3
je 0x4fcc77
mov ecx, esi
shr ecx, 1
movzx ecx, byte [ecx + eax + 1]
inc ecx
test cl, 0xfe
jne 0x4fcbe2
mov ecx, dword [ebp + 8]
or esi, 8
shr esi, 1
inc edi
jmp 0x4fcbb0
sub ebx, ecx
xor esi, esi
mov ecx, ebx
mov byte [eax + 1], bl
shr ecx, 8
mov byte [eax + 2], cl
mov ecx, ebx
shr ebx, 0x18
and bl, 1
shr ecx, 0x10
neg bl
mov byte [eax + 3], cl
mov ecx, dword [ebp + 8]
mov byte [eax + 4], bl
mov eax, 5
mov ebx, dword [ebp - 4]
add edi, eax
jmp 0x4fcbb0
mov ecx, dword [ebp + 8]
or esi, 8
mov eax, 1
shr esi, 1
add edi, eax
jmp 0x4fcbb0
mov eax, dword [ebp + 0x14]
mov ecx, edx
shr esi, cl
xor ecx, ecx
cmp edx, 2
pop ebx
cmovbe ecx, esi
mov dword [eax], ecx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x5403dd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0053ffe2

Function at 0x5403e8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00540163

Function at 0x547345
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00546b1f

Function at 0x547350
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00546d5a

Function at 0x5478ca
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00547651