joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46ff51
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
push edi
push str.Microsoft_WinInet_
push dword [esi + 8]
call fcn.00478369
pop ecx
pop ecx
test eax, eax
je 0x46ffdd
mov edx, dword [esi + 0x18]
cmp edx, 0x14
jb 0x470111
mov edi, dword [esi + 0x1c]
mov ebx, 0x4a02d0
xor esi, esi
mov ecx, esi
mov eax, dword [edi + ecx*4 + 4]
cmp eax, dword [ebx + ecx*4]
jne 0x470111
inc ecx
cmp ecx, 4
jne 0x46ff87
lea eax, [ebp - 8]
mov dword [ebp - 0x10], edx
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x18]
mov dword [ebp - 0xc], edi
push eax
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x18], 0x4a
push eax
mov dword [ebp - 0x14], 0x49fb00
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x46ffd2
push str.___CredentialBlob:
jmp 0x4700da
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x470104
push str.AppSense_DataNow_
push dword [esi + 8]
call fcn.00478369
pop ecx
pop ecx
test eax, eax
je 0x470111
push str._Ivanti_FileDirector_credential_blob__n
call fcn.00403fb4
cmp dword [esi + 0x18], 0x14
pop ecx
jb 0x470111
mov edi, dword [esi + 0x1c]
mov edx, str.AppN_DN_Win
xor esi, esi
mov ecx, esi
movzx eax, byte [edx + ecx]
cmp al, byte [edi + ecx]
jne 0x470111
inc ecx
cmp ecx, 0xc
jne 0x470015
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [edi + 0xc], esi
je 0x47009d
push str.Decrypting_additional_blob_n
call fcn.00403fb4
mov eax, dword [edi + 0xc]
pop ecx
mov dword [ebp - 0x10], eax
lea eax, [edi + 0x14]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x47008e
push str.___CredentialBlob:
call fcn.00403fb4
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
call fcn.00408447
mov dword [esp], 0x49f578
call fcn.00403fb4
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x47009d
call ebx
push eax
push str.ERROR_kuhl_m_vault_cred_tryEncrypted___CryptUnprotectData__0x_08x__n
call fcn.00403fb4
pop ecx
pop ecx
cmp dword [edi + 0x10], esi
je 0x470111
push str.Decrypting_additional_blob_n
call fcn.00403fb4
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0xc]
add eax, 0x14
pop ecx
add eax, edi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x470102
push str.___UnkBlob_______:
call fcn.00403fb4
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
call fcn.00408447
mov dword [esp], 0x49f578
call fcn.00403fb4
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x470111
call ebx
push eax
push str.ERROR_kuhl_m_vault_cred_tryEncrypted___CryptUnprotectData__0x_08x__n
call fcn.00403fb4
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x472498
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
lea eax, [ebp - 4]
mov ebx, ecx
push eax
push dword [edx + 4]
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
test edi, edi
je 0x47251d
mov eax, dword [ebp - 4]
push esi
test eax, eax
jle 0x472508
xor esi, esi
test eax, eax
jle 0x472501
push 5
push str._HTC:
push dword [edi + esi*4]
call fcn.00488caa
add esp, 0xc
test eax, eax
je 0x4724df
inc esi
cmp esi, dword [ebp - 4]
jl 0x4724c1
jmp 0x472501
mov eax, dword [edi + esi*4]
push 0xa
add eax, 0xa
push 0
push eax
call fcn.00481834
add esp, 0xc
mov esi, eax
mov edx, esi
mov ecx, ebx
call fcn.00472534
test esi, esi
jne 0x472513
push str.__No_shared_memory__no_SSO_enabled___n
jmp 0x47250d
push str.ERROR_Citrix_SSO_Program_args___No_command_module_
call fcn.00403fb4
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
jmp 0x472530
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR_Citrix_SSO_Program_args___CommandLineToArgvW__0x_08x__n
call fcn.00403fb4
pop ecx
pop ecx
pop edi
pop ebx
leave
ret
Function at 0x472534
Capabilities:
Encode data using xor
Encrypt data using dpapi
Read file via mapping

Disassembly:
push ecx
push ecx
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [esp + 0xc]
push ebx
push ebx
push 4
push eax
mov esi, edx
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x47264f
push ebp
push 0x61c
push ebx
push ebx
push 4
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebp, eax
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x47262f
push 0x610
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x472626
push 1
push 0x610
lea esi, [ebp + 0xc]
mov ecx, 0x184
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
push ebx
call dword [sym.imp.ADVAPI32.dll_SystemFunction041]
test eax, eax
jne 0x472612
mov esi, dword [ebx + 0x400]
lea eax, [ebx + 0x404]
xor edx, edx
mov edi, edx
test esi, esi
je 0x4725f3
lea ebp, [ebx + 0x404]
mov cl, byte [edi + ebp]
mov al, cl
xor al, dl
mov dl, cl
xor al, 0x43
mov byte [edi + ebp], al
inc edi
cmp edi, esi
jb 0x4725d0
mov esi, dword [ebx + 0x400]
lea eax, [ebx + 0x404]
mov ebp, dword [esp + 0x14]
push dword [ebx + 0x604]
push eax
push esi
lea eax, [ebx + 0x200]
push eax
push ebx
push str._Username__:__s_n_Domain____:__s_n_Password__:__.s_n_flags_type:_0x_08x_n
call fcn.00403fb4
add esp, 0x18
jmp 0x47261f
push eax
push str.ERROR_Citrix_SSO_Program_FileMapping___RtlDecryptMemory:_0x_08x_n
call fcn.00403fb4
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
jmp 0x472642
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR_Citrix_SSO_Program_FileMapping___MapViewOfFile__0x_08x__n
call fcn.00403fb4
pop ecx
pop ecx
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
jmp 0x472662
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR_Citrix_SSO_Program_FileMapping___DuplicateHandle__0x_08x__n
call fcn.00403fb4
pop ecx
pop ecx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
ret
Function at 0x474f7a
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, edx
add eax, esi
mov dword [esp + 0xc], eax
push edi
mov edi, ecx
cmp esi, eax
jae 0x474fdf
push ebx
push ebp
mov ebp, dword [esp + 0x14]
sub ebp, esi
movzx edx, byte [edi + 0x100]
mov bl, byte [edx + edi]
add byte [edi + 0x101], bl
movzx eax, byte [edi + 0x101]
mov cl, byte [eax + edi]
mov byte [edx + edi], cl
movzx eax, byte [edi + 0x101]
movzx ecx, cl
mov byte [eax + edi], bl
movzx eax, bl
add ecx, eax
movzx eax, cl
mov al, byte [eax + edi]
xor al, byte [esi]
inc byte [edi + 0x100]
mov byte [esi + ebp], al
inc esi
cmp esi, dword [esp + 0x18]
jb 0x474f96
pop ebp
pop ebx
pop edi
pop esi
ret

Function at 0x4899a5
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4899e4
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4899e4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4899e4
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4899e4
cmp dword [ecx + 0x74], 0xe
jbe 0x4899e4
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x48c653
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x49c70c
push 0x49c704
push str.FlsAlloc
push 0x1f
call fcn.0048c531
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48c687
push dword [ebp + 8]
mov ecx, esi
call dword [0x4996dc]
call esi
jmp 0x48c68d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x48c6d1
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x49c71c
push 0x49c714
push str.FlsGetValue
push 0x21
call fcn.0048c531
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48c708
push dword [ebp + 8]
mov ecx, esi
call dword [0x4996dc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x48c710
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x49c724
push 0x49c71c
push str.FlsSetValue
push 0x22
call fcn.0048c531
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48c74a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4996dc]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x48e792
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4d2014]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x48e7dd
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0048e92d
test al, al
jne 0x48e7d7
sub edx, 2
cmp edx, edi
jne 0x48e7bd
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x48e7ff
lea eax, [edi + 2]
cmp edx, eax
je 0x48e7ff
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0048e6de
add esp, 0x10
jmp 0x48e8f9
push esi
lea ecx, [ebp - 0x255]
call fcn.0048e92d
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x48e842
push dword [ebp - 0x25c]
jmp 0x48e7ef
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x48e87f
cmp word [ebp - 0x226], 0
je 0x48e8a0
cmp word [ebp - 0x226], ax
jne 0x48e87f
cmp word [ebp - 0x224], 0
je 0x48e8a0
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0048e6de
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x48e8ec
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x48e859
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x48e8d4
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x48e8f9
push 0x48e50e
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00494270
add esp, 0x10
jmp 0x48e8c9
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00477c82
leave
ret

Function at 0x48f3b4
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x48f3c5
pop esi
ret
push ebx
push edi
push esi
call fcn.0048f37d
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0048a58f
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x48f3ed
push ebx
push esi
push edi
call fcn.004793b0
add esp, 0xc
push 0
call fcn.0048a555
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x48f7bd
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0048f402
Function at 0x492ac5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4d59c0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x492b05
cmp byte [ebx], 0xa
jne 0x492b05
or byte [edi + eax + 0x28], 4
jmp 0x492b0a
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x492c09
mov dl, byte [eax]
cmp dl, 0x1a
je 0x492bec
inc eax
cmp dl, 0xd
je 0x492b36
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x492b5c
cmp eax, ecx
jae 0x492b6a
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x492b1e
jmp 0x492c09
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x492be7
cmp dword [ebp - 0x10], 0
je 0x492be7
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4d59c0]
test byte [eax + edi + 0x28], 0x48
je 0x492bc1
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x492bac
mov byte [esi], dl
jmp 0x492bbd
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4d59c0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x492c09
cmp byte [ebp - 1], 0xa
jne 0x492bd0
cmp esi, ebx
jne 0x492bd0
mov byte [esi], 0xa
jmp 0x492c08
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00492a35
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x492c09
mov byte [esi], 0xd
jmp 0x492c08
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4d59c0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x492c06
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x492c09
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x492c12
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4d59c0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x492c58
cmp word [ebx], dx
jne 0x492c58
or byte [eax + edi + 0x28], 4
jmp 0x492c5d
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x492dc0
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x492da0
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x492c9e
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x492cd4
cmp eax, edx
jae 0x492ce2
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x492c79
jmp 0x492dc0
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x492d9b
cmp dword [ebp - 0x18], 0
je 0x492d9b
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4d59c0]
test byte [eax + edi + 0x28], 0x48
je 0x492d71
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x492d35
mov word [esi], cx
jmp 0x492d6c
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4d59c0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4d59c0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4d59c0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x492dc0
pop eax
cmp word [ebp - 4], ax
jne 0x492d81
cmp esi, ebx
jne 0x492d81
mov word [esi], ax
jmp 0x492dbd
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00492a35
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x492dc0
push 0xd
pop eax
jmp 0x492d7c
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4d59c0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x492dba
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x492dc0
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x495295
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00495211
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x495404
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x495404
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4953b9
jg 0x4952f1
test eax, eax
je 0x4953af
push 1
push 0x1000
call fcn.0048c3bb
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x495314
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4953a6
push 0x8000
push ebx
call fcn.00480200
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x49533d
jg 0x495338
cmp ecx, 0x1000
jb 0x49533d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0048d409
add esp, 0x10
cmp eax, 0xffffffff
je 0x495382
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x495338
jl 0x495369
test ecx, ecx
jne 0x49532a
push dword [ebp - 0xc]
push ebx
call fcn.00480200
push esi
call fcn.0048a555
add esp, 0xc
xor ebx, ebx
jmp 0x495412
cmp byte [edi + 0x24], 0
je 0x495399
cmp dword [edi + 0x20], 5
jne 0x495399
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4953a4
mov ebx, dword [edi + 0x18]
jmp 0x4953a6
xor ebx, ebx
push esi
call fcn.0048a555
pop ecx
jmp 0x495412
test ecx, ecx
jg 0x49537b
jl 0x4953b9
test eax, eax
jae 0x49537b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00492a35
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4953d9
cmp byte [edi + 0x1c], 0
je 0x49537b
jmp 0x49540a
push ebx
call fcn.0048dd59
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x49537b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x495412
cmp byte [edi + 0x1c], 0
je 0x49540f
mov ebx, dword [edi + 0x18]
jmp 0x495412
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00492a35
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401500
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
xor eax, eax
mov ebx, edx
push edi
and ecx, 3
je 0x40152b
mov edi, 4
sub edi, ecx
cmp edi, ebx
cmova edi, ebx
sub ebx, edi
lea ecx, [ecx]
movzx ecx, byte [esi]
xor eax, ecx
mov byte [esi], al
inc esi
dec edi
jne 0x401520
cmp ebx, 4
jb 0x40158b
mov edx, dword [0x413e58]
push ebp
add edx, 8
mov ebp, ebx
mov dword [esp + 0x10], edx
shr ebp, 2
xor eax, dword [esi]
xor ecx, ecx
lea edi, [ecx + 8]
lea ebx, [ebx]
test al, 1
je 0x401557
xor ecx, dword [edx - 8]
shr eax, 1
test al, 1
je 0x401560
xor ecx, dword [edx - 4]
shr eax, 1
test al, 1
je 0x401568
xor ecx, dword [edx]
shr eax, 1
test al, 1
je 0x401571
xor ecx, dword [edx + 4]
shr eax, 1
add edx, 0x10
dec edi
jne 0x401550
mov edx, dword [esp + 0x10]
sub ebx, 4
mov dword [esi], ecx
mov eax, ecx
add esi, 4
dec ebp
jne 0x401543
pop ebp
movzx ecx, al
test ebx, ebx
je 0x4015a0
movzx eax, byte [esi]
lea esi, [esi + 1]
xor ecx, eax
mov byte [esi - 1], cl
dec ebx
jne 0x401592
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x40508a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section.noname_3]
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.00401f2f
mov dword [ebp - 0x14], eax
cmp dword [0x413e00], esi
jne 0x40517d
push 0x800
push esi
push 0x40e368
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40510a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40525d
push esi
push esi
push 0x40e368
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40525d
push 0x40e380
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40525d
push eax
call ebx
push 0x40e38c
push edi
mov dword [0x413e00], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x40e39c
push edi
mov dword [0x413e04], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x40e3b0
push edi
mov dword [0x413e08], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x413e10], eax
test eax, eax
je 0x40517a
push 0x40e3cc
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x413e0c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4051a2
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x405195
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4051b7
push 4
pop eax
jmp 0x40525f
cmp dword [ebp - 0x14], esi
je 0x4051b7
push dword [0x413e00]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40519c
mov eax, dword [0x413e0c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x405215
cmp dword [0x413e10], edi
je 0x405215
push eax
call ebx
push dword [0x413e10]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x405215
test eax, eax
je 0x405215
call ecx
test eax, eax
je 0x40520a
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 0x40520a
test byte [ebp - 8], 1
jne 0x405215
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x405245
mov eax, dword [0x413e04]
cmp eax, edi
je 0x405242
push eax
call ebx
test eax, eax
je 0x405242
call eax
mov esi, eax
test esi, esi
je 0x405242
mov eax, dword [0x413e08]
cmp eax, edi
je 0x405242
push eax
call ebx
test eax, eax
je 0x405242
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x413e00]
call ebx
test eax, eax
je 0x40525d
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40525f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401ab4
mov esp, ebp
pop ebp
ret