joyce8/EMBER2024-capa huggingface dataset:
Function at 0x499690
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x4997d9
cmp dword [eax], 0
je 0x4997d9
cmp dword [eax + 4], 0x40
jb 0x4997d9
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4996bf
mov dword [ecx], 0
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x4996cc
mov dword [ecx], 0
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x4996d9
mov dword [ecx], 0
mov edx, dword [eax]
push esi
mov esi, dword [eax + 4]
mov eax, 0x5a4d
cmp word [edx], ax
jne 0x4997d1
mov eax, dword [edx + 0x3c]
lea ecx, [eax + 0x14]
cmp ecx, esi
ja 0x4997d1
add eax, edx
add ecx, 0x18
mov dword [ebp + 8], eax
cmp ecx, esi
ja 0x4997d1
cmp dword [eax], 0x4550
jne 0x4997d1
push edi
lea edx, [eax + 4]
mov edi, 0xe0
mov dword [ebp - 4], edx
cmp word [edx + 0x10], di
jne 0x49972f
add ecx, edi
cmp ecx, esi
jbe 0x499738
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
lea edi, [eax + 0x18]
movzx eax, word [edi]
push ebx
mov ebx, 0x10b
cmp ax, bx
je 0x499753
mov ebx, 0x20b
cmp ax, bx
jne 0x4997c7
movzx ebx, word [edx + 2]
lea eax, [ebx + ebx*4]
lea eax, [ecx + eax*8]
cmp eax, esi
ja 0x4997c7
cmp dword [edi + 0x3c], esi
ja 0x4997c7
xor edx, edx
test ebx, ebx
je 0x49978e
lea ecx, [edi + 0xf0]
mov eax, dword [ecx + 4]
add eax, dword [ecx]
cmp eax, esi
ja 0x4997c7
mov eax, dword [ecx - 8]
add eax, dword [ecx - 4]
cmp eax, dword [edi + 0x38]
ja 0x4997c7
inc edx
add ecx, 0x28
cmp edx, ebx
jb 0x499772
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x49979a
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4997a6
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4997af
mov dword [eax], edi
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x4997be
lea ecx, [edi + 0xe0]
mov dword [eax], ecx
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
pop ebx
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret

Function at 0x4997e0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, 0x1000
push 1
push esi
call fcn.00596ea3
mov ebx, dword [ebp + 0xc]
mov edi, eax
add esp, 8
mov eax, dword [ebx]
test eax, eax
je 0x499811
push eax
call fcn.00596eae
add esp, 4
mov dword [ebx], 0
lea eax, [ebp - 4]
push eax
push esi
push edi
push dword [ebp + 8]
call sub.ntdll.dll_NtQuerySystemInformation
cmp eax, 0xc0000004
mov eax, dword [ebp - 4]
je 0x49982d
cmp eax, esi
jbe 0x49983e
lea esi, [eax + esi*2]
push esi
push edi
call fcn.0059d341
add esp, 8
mov edi, eax
jmp 0x499811
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x499847
mov dword [ecx], eax
mov dword [ebx], edi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49dc80
Capabilities:
List tcp connections and listeners

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x665fa0]
push esi
mov esi, dword [ebp + 8]
push eax
mov dword [ebp - 4], eax
push dword [esi]
call fcn.0059d341
add esp, 8
mov dword [esi], eax
lea ecx, [ebp - 4]
push 0
push 5
push 2
push 0
push ecx
push eax
call sub.IPHLPAPI.DLL_GetExtendedTcpTable
test eax, eax
je 0x49dd0b
cmp eax, 0x7a
jne 0x49dd0b
push edi
push dword [ebp - 4]
push dword [esi]
call fcn.0059d341
mov edx, dword [0x665fa0]
lea ecx, [ebp - 4]
add esp, 8
mov dword [esi], eax
cmp edx, dword [ebp - 4]
cmovb edx, dword [ebp - 4]
push 0
push 5
push 2
push 0
push ecx
push eax
mov dword [0x665fa0], edx
call sub.IPHLPAPI.DLL_GetExtendedTcpTable
mov edi, eax
test edi, edi
je 0x49dd08
mov ecx, dword [esi]
test ecx, ecx
je 0x49dd08
push ecx
call fcn.00596eae
add esp, 4
mov dword [esi], 0
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4a1b80
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x60
push 0
push esi
call fcn.00594c60
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov eax, 1
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x10], 0xc3d2e1f0
pop esi
pop ebp
ret

Function at 0x4a1ce0
Capabilities:
Hash data using sha224

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x70
push 0
push esi
call fcn.00594c60
add esp, 0xc
mov dword [esi], 0xc1059ed8
mov dword [esi + 4], 0x367cd507
mov eax, 1
mov dword [esi + 8], 0x3070dd17
mov dword [esi + 0xc], 0xf70e5939
mov dword [esi + 0x10], 0xffc00b31
mov dword [esi + 0x14], 0x68581511
mov dword [esi + 0x18], 0x64f98fa7
mov dword [esi + 0x1c], 0xbefa4fa4
mov dword [esi + 0x6c], 0x1c
pop esi
pop ebp
ret

Function at 0x4a2030
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x70
push 0
push esi
call fcn.00594c60
add esp, 0xc
mov dword [esi], 0x6a09e667
mov dword [esi + 4], 0xbb67ae85
mov eax, 1
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
mov dword [esi + 0x6c], 0x20
pop esi
pop ebp
ret

Function at 0x4a2c90
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x5c
push 0
push esi
call fcn.00594c60
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov eax, 1
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
pop esi
pop ebp
ret
Function at 0x4ae770
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 1
push esi
xor edi, edi
call fcn.004a29d0
mov ebx, eax
push ebx
push esi
call fcn.004a28b0
add esp, 0x10
mov dword [ebp - 8], eax
test eax, eax
je 0x4ae7f4
push 0xf0000040
push 1
push edi
push edi
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x4ae7cd
push dword [ebp - 8]
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [ebp - 4]
test eax, eax
cmovne edi, ebx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [edi*8]
push eax
push edi
push esi
call fcn.004a2920
push esi
call fcn.004a2a50
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4ae7f4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
push esi
call fcn.004a29d0
mov ebx, eax
push ebx
push esi
call fcn.004a28b0
add esp, 0x10
mov dword [ebp - 8], eax
test eax, eax
je 0x4ae863
push 0xf0000040
push 0x16
push str.Intel_Hardware_Cryptographic_Service_Provider
xor edi, edi
lea eax, [ebp - 4]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x4ae849
push dword [ebp - 8]
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [ebp - 4]
test eax, eax
cmovne edi, ebx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [edi*8]
push eax
push edi
push esi
call fcn.004a2920
push esi
call fcn.004a2a50
add esp, 0x10
mov edi, eax
test edi, edi
jne 0x4ae7eb
push esi
call fcn.004a2a50
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4aec50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
xor dl, dl
test esi, esi
je 0x4aec77
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
mov cl, byte [edi + eax]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
or dl, cl
sub esi, 1
jne 0x4aec66
pop edi
movzx eax, dl
pop esi
pop ebp
ret
Function at 0x4aedb0
Capabilities:
Access the windows event log
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
test esi, esi
je 0x4aee2a
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x4aee2a
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.00418ac0
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.0059bd1f
add esp, 0x1c
or ecx, 0xffffffff
test eax, eax
cmovs eax, ecx
lea ecx, [ebp - 4]
push 0
push ecx
test eax, eax
mov ecx, 0x100
cmovs eax, ecx
push eax
lea eax, [ebp - 0x104]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push 0xff
push eax
call fcn.00418ac0
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.0059bd1f
add esp, 0x1c
mov byte [ebp - 5], 0
call fcn.004aecc0
test eax, eax
jle 0x4aeeb0
push str.OpenSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
je 0x4aeec6
push 0
lea eax, [ebp - 0x104]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
test eax, eax
jne 0x4aeea4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov esp, ebp
pop ebp
ret
push 0x10
push str.OpenSSL:_FATAL
lea eax, [ebp - 0x104]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4b7b70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
xor edx, edx
test esi, esi
je 0x4b7bc0
mov al, byte [esi]
test al, al
je 0x4b7bc0
push edi
mov edi, 0x100
nop dword [eax]
movsx eax, al
lea esi, [esi + 1]
or eax, edi
add edi, 0x100
mov ecx, eax
shr ecx, 2
xor ecx, eax
imul eax, eax
and ecx, 0xf
rol edx, cl
xor edx, eax
mov al, byte [esi]
test al, al
jne 0x4b7b90
mov eax, edx
shr eax, 0x10
pop edi
xor eax, edx
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x4b7c60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
test edi, edi
je 0x4b7cba
mov al, byte [edi]
test al, al
je 0x4b7cba
push ebx
mov ebx, 0x100
nop word [eax + eax]
movsx eax, al
push eax
call fcn.004f5fc0
or eax, ebx
lea edi, [edi + 1]
mov ecx, eax
add esp, 4
shr ecx, 2
add ebx, 0x100
xor ecx, eax
imul eax, eax
and ecx, 0xf
rol esi, cl
xor esi, eax
mov al, byte [edi]
test al, al
jne 0x4b7c80
mov eax, esi
pop ebx
shr eax, 0x10
pop edi
xor eax, esi
pop esi
pop ebp
ret
pop edi
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4d4fa0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x84], 0xffffffff
jne 0x4d4fb5
xor eax, eax
pop edi
pop ebp
ret
push ebx
push esi
push dword [edi]
call fcn.004a3600
mov ecx, dword [ebp + 0x10]
add esp, 4
mov ebx, dword [ebp + 0xc]
mov esi, eax
mov dword [ecx], esi
test ebx, ebx
je 0x4d5069
mov ecx, dword [edi + 0x84]
cmp ecx, esi
jne 0x4d5006
test esi, esi
jle 0x4d5047
mov edx, ebx
lea ecx, [edi + 4]
mov ebx, esi
nop dword [eax + eax]
mov al, byte [ecx + 0x60]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
lea edx, [edx + 1]
mov byte [edx - 1], al
sub ebx, 1
jne 0x4d4ff0
jmp 0x4d5044
sub eax, ecx
mov byte [ecx + edi + 0x64], 0x80
cmp eax, 1
jle 0x4d5024
dec eax
push eax
lea eax, [edi + 0x65]
add eax, ecx
push 0
push eax
call fcn.00594c60
add esp, 0xc
test esi, esi
jle 0x4d5047
mov edx, ebx
lea ecx, [edi + 0x24]
mov ebx, esi
nop
mov al, byte [ecx + 0x40]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
lea edx, [edx + 1]
mov byte [edx - 1], al
sub ebx, 1
jne 0x4d5030
mov ebx, dword [ebp + 0xc]
push esi
push ebx
push ebx
push dword [edi]
call fcn.004a3c20
add esp, 0x10
test eax, eax
jne 0x4d5069
push esi
push ebx
call fcn.004ad110
add esp, 8
xor eax, eax
pop esi
pop ebx
pop edi
pop ebp
ret
pop esi
pop ebx
mov eax, 1
pop edi
pop ebp
ret
Function at 0x4e16e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
mov ecx, ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
sub ecx, 4
jb 0x4e1707
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x4e170e
add edx, 4
add esi, 4
sub ecx, 4
jae 0x4e16f6
xor edi, edi
cmp ecx, 0xfffffffc
je 0x4e1749
movzx edi, byte [edx]
movzx eax, byte [esi]
sub edi, eax
jne 0x4e1749
cmp ecx, 0xfffffffd
je 0x4e1749
movzx edi, byte [edx + 1]
movzx eax, byte [esi + 1]
sub edi, eax
jne 0x4e1749
cmp ecx, 0xfffffffe
je 0x4e1749
movzx edi, byte [edx + 2]
movzx eax, byte [esi + 2]
sub edi, eax
jne 0x4e1749
cmp ecx, 0xffffffff
je 0x4e1749
movzx edi, byte [edx + 3]
movzx eax, byte [esi + 3]
sub edi, eax
test edi, edi
jle case.0x4e17bd.2
mov edi, dword [ebp + 0xc]
xor ecx, ecx
test ebx, ebx
jle 0x4e176e
mov esi, dword [ebp + 8]
mov edx, edi
sub esi, edi
mov al, byte [esi + edx]
cmp al, byte [edx]
jne 0x4e176e
inc ecx
inc edx
cmp ecx, ebx
jl 0x4e1761
lea edx, [ebx - 1]
mov ebx, dword [ebp + 8]
test edx, edx
js 0x4e1791
mov esi, ebx
lea eax, [edx + edi]
sub esi, edi
nop
cmp byte [eax + esi], 0
jne 0x4e1791
cmp byte [eax], 0xff
jne 0x4e1791
dec eax
sub edx, 1
jns 0x4e1780
cmp ecx, edx
jl case.0x4e17bd.2
jle 0x4e17a3
pop edi
pop esi
lea eax, [ecx*8]
pop ebx
pop ebp
ret
mov dh, byte [ecx + ebx]
mov bl, byte [ecx + edi]
mov dl, bl
xor dl, dh
movzx eax, dl
dec eax
cmp eax, 0x7e
ja case.0x4e17bd.2
movzx eax, byte [eax + 0x4e1830]
jmp dword [eax*4 + 0x4e1810]
mov eax, 7
jmp 0x4e17f3
mov eax, 6
jmp 0x4e17f3
mov eax, 5
jmp 0x4e17f3
mov eax, 4
jmp 0x4e17f3
mov eax, 3
jmp 0x4e17f3
mov eax, 2
jmp 0x4e17f3
mov eax, 1
test dl, dh
jne case.0x4e17bd.2
and bl, dl
cmp bl, dl
jne case.0x4e17bd.2
pop edi
pop esi
lea eax, [eax + ecx*8]
pop ebx
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret
Function at 0x4e3770
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push esi
push dword [ebp + 8]
call fcn.00525590
push 0x62
push esi
mov edi, eax
mov ebx, 1
call fcn.00594b30
add esp, 0x10
mov ecx, 0x11
test eax, eax
cmove ebx, ecx
test edi, edi
jne 0x4e3816
push 0x48
push str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.004ace10
push 0x5f6548
push esi
push 0x5fa528
push dword [ebp + 8]
push str.fopen_
push 5
call fcn.004ac450
add esp, 0x2c
call fcn.00596e90
cmp dword [eax], 2
je 0x4e37f2
call fcn.00596e90
cmp dword [eax], 6
je 0x4e37f2
lea eax, [edi + 2]
lea ecx, [edi + 0x51]
jmp 0x4e37fc
mov eax, 0x80
mov ecx, 0x4f
push ecx
push str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_bio_bss_file.c
push eax
push 0x6d
push 0x20
call fcn.004ace10
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
push 0x5fa4a0
call fcn.004a54e0
mov esi, eax
add esp, 4
test esi, esi
jne 0x4e3839
push edi
call fcn.0059e09e
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
push 0
push esi
call fcn.004a4e50
push edi
push ebx
push 0x6a
push esi
call fcn.004a4e80
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4f0230
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], 0x10
lea eax, [edx + 0xf]
lea ecx, [esi + 0xf]
cmp esi, eax
ja 0x4f0271
cmp ecx, edx
jb 0x4f0271
push edi
mov ecx, esi
sub edx, esi
mov edi, 0x10
nop word [eax + eax]
mov al, byte [edx + ecx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edi, 1
jne 0x4f0260
pop edi
jmp 0x4f027e
movups xmm1, xmmword [esi]
movups xmm0, xmmword [edx]
pxor xmm1, xmm0
movups xmmword [esi], xmm1
push 0x10
push esi
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push esi
push dword [eax + 4]
call fcn.004a44a0
add esp, 0x14
pop esi
test eax, eax
je 0x4f02a8
cmp dword [ebp - 4], 0x10
jne 0x4f02a8
mov eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4f03f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4f0453
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x4f0453
push ebx
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0xc]
cmp edx, eax
mov ebx, eax
cmovb ebx, edx
xor ecx, ecx
test ebx, ebx
je 0x4f0426
mov al, byte [ecx + esi]
xor byte [edi + ecx + 0x10], al
inc ecx
cmp ecx, ebx
jb 0x4f0417
mov eax, dword [edi + 0xc]
cmp edx, eax
jbe 0x4f0451
sub edx, eax
mov eax, 0x10
cmp edx, eax
cmova edx, eax
xor ecx, ecx
test edx, edx
je 0x4f0451
nop dword [eax]
mov eax, dword [edi + 0xc]
add eax, ecx
mov al, byte [eax + esi]
xor byte [edi + ecx + 0x30], al
inc ecx
cmp ecx, edx
jb 0x4f0440
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x500b50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.004a3e40
add esp, 4
cmp eax, 0x72
jne 0x500cf5
mov esi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x10]
push edi
push esi
push dword [ebp + 0x1c]
mov edi, eax
and eax, 1
push dword [ebp + 0x18]
shr edi, 1
push dword [ebp + 0x14]
add eax, edi
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call fcn.004e9200
push eax
call fcn.00500930
add esp, 0x1c
test eax, eax
jne 0x500ba3
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push 0x104
push str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_kdf_tls1_prf.c
push esi
call fcn.004ad330
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x500bde
push 0x105
push str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_kdf_tls1_prf.c
push 0x41
push 0x6f
push 0x34
call fcn.004ace10
add esp, 0x14
xor eax, eax
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
push esi
push ebx
push dword [ebp + 0x18]
add eax, edi
push dword [ebp + 0x14]
push dword [ebp - 4]
push eax
call fcn.004e9770
push eax
call fcn.00500930
add esp, 0x1c
test eax, eax
jne 0x500c1e
push 0x10a
push str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_kdf_tls1_prf.c
push esi
push ebx
call fcn.004ad440
add esp, 0x10
xor eax, eax
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor edi, edi
test esi, esi
je 0x500cd5
mov edx, dword [ebp + 0x1c]
cmp esi, 0x40
jb 0x500cb0
lea eax, [esi - 1]
lea ecx, [edx - 1]
add eax, ebx
add ecx, esi
cmp edx, eax
ja 0x500c46
cmp ecx, ebx
jae 0x500cb0
mov ecx, esi
mov eax, edx
mov esi, ebx
and ecx, 0xffffffc0
sub esi, edx
mov dword [ebp - 4], esi
mov esi, dword [ebp + 0x20]
mov edx, dword [ebp - 4]
nop word [eax + eax]
movups xmm0, xmmword [eax]
lea eax, [eax + 0x40]
movups xmm1, xmmword [edx + eax - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [ebx + edi + 0x10]
pxor xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
movups xmm0, xmmword [eax - 0x20]
movups xmm1, xmmword [ebx + edi + 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
movups xmm0, xmmword [eax - 0x10]
movups xmm1, xmmword [ebx + edi + 0x30]
add edi, 0x40
pxor xmm1, xmm0
movups xmmword [eax - 0x10], xmm1
cmp edi, ecx
jb 0x500c60
mov edx, dword [ebp + 0x1c]
cmp edi, esi
jae 0x500cd5
mov eax, ebx
lea ecx, [edi + edx]
sub eax, edx
mov edx, esi
mov dword [ebp - 4], eax
sub edx, edi
mov esi, eax
mov al, byte [ecx + esi]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edx, 1
jne 0x500cc4
mov esi, dword [ebp + 0x20]
push 0x10f
push str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_kdf_tls1_prf.c
push esi
push ebx
call fcn.004ad440
add esp, 0x10
mov eax, 1
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.00500930
add esp, 0x1c
neg eax
sbb eax, eax
neg eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x5067b0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov cl, byte [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
add ebx, esi
push edi
mov edi, dword [ebp + 8]
movzx eax, cl
add edi, esi
and eax, 1
test esi, esi
je 0x5067ee
movzx edx, byte [ebx - 1]
lea ebx, [ebx - 1]
movzx ecx, cl
lea edi, [edi - 1]
xor edx, ecx
mov cl, byte [ebp + 0x14]
add eax, edx
mov byte [edi], al
shr eax, 8
sub esi, 1
jne 0x5067d0
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x512750
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x512854
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x512854
call fcn.00596e90
mov dword [eax], 0
mov eax, dword [ebx]
test eax, eax
jne 0x51287e
mov edi, esi
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x512786
sub edi, ecx
je 0x512869
cmp edi, 0x7ffffffc
ja 0x512869
push 0x244
call fcn.00596eb3
add esp, 4
mov dword [ebx], eax
test eax, eax
jne 0x5127c9
call fcn.00596e90
mov dword [eax], 0xc
xor eax, eax
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
push 0x244
push 0
push eax
call fcn.00594c60
add esp, 0xc
cmp byte [edi + esi - 1], 0x2a
je 0x512829
lea eax, [edi + 3]
call fcn.005944e0
mov edx, esp
mov ecx, edx
sub ecx, esi
nop
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x5127f0
mov al, byte [edx + edi - 1]
cmp al, 0x2f
je 0x51281e
cmp al, 0x5c
je 0x51281e
mov ax, word [0x616fb0]
mov word [edx + edi], ax
mov al, byte [0x616fb2]
mov byte [edx + edi + 2], al
jmp 0x512827
mov eax, 0x2a
mov word [edx + edi], ax
mov esi, edx
push dword [ebx]
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ecx, dword [ebx]
mov dword [ecx + 0x140], eax
mov eax, dword [ebx]
cmp dword [eax + 0x140], 0xffffffff
jne 0x51288f
push eax
call fcn.00596eae
add esp, 4
mov dword [ebx], 0
call fcn.00596e90
mov dword [eax], 0x16
xor eax, eax
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
call fcn.00596e90
mov dword [eax], 2
xor eax, eax
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
push eax
push dword [eax + 0x140]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x51285f
mov ecx, dword [ebx]
push 0xff
lea eax, [ecx + 0x2c]
push eax
lea eax, [ecx + 0x144]
push eax
call fcn.0059d8b0
mov eax, dword [ebx]
add esp, 0xc
mov byte [eax + 0x243], 0
mov eax, dword [ebx]
add eax, 0x144
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret