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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x4446c9
cmp dword [eax], 0
je 0x4446c9
cmp dword [eax + 4], 0x40
jb 0x4446c9
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4445af
mov dword [ecx], 0
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x4445bc
mov dword [ecx], 0
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x4445c9
mov dword [ecx], 0
mov edx, dword [eax]
push esi
mov esi, dword [eax + 4]
mov eax, 0x5a4d
cmp word [edx], ax
jne 0x4446c1
mov eax, dword [edx + 0x3c]
lea ecx, [eax + 0x14]
cmp ecx, esi
ja 0x4446c1
add eax, edx
add ecx, 0x18
mov dword [ebp + 8], eax
cmp ecx, esi
ja 0x4446c1
cmp dword [eax], 0x4550
jne 0x4446c1
push edi
lea edx, [eax + 4]
mov edi, 0xe0
mov dword [ebp - 4], edx
cmp word [edx + 0x10], di
jne 0x44461f
add ecx, edi
cmp ecx, esi
jbe 0x444628
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 0x444643
mov ebx, 0x20b
cmp ax, bx
jne 0x4446b7
movzx ebx, word [edx + 2]
lea eax, [ebx + ebx*4]
lea eax, [ecx + eax*8]
cmp eax, esi
ja 0x4446b7
cmp dword [edi + 0x3c], esi
ja 0x4446b7
xor edx, edx
test ebx, ebx
je 0x44467e
lea ecx, [edi + 0xf0]
mov eax, dword [ecx + 4]
add eax, dword [ecx]
cmp eax, esi
ja 0x4446b7
mov eax, dword [ecx - 8]
add eax, dword [ecx - 4]
cmp eax, dword [edi + 0x38]
ja 0x4446b7
inc edx
add ecx, 0x28
cmp edx, ebx
jb 0x444662
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x44468a
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x444696
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x44469f
mov dword [eax], edi
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x4446ae
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 0x4446d0
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.005414c5
mov ebx, dword [ebp + 0xc]
mov edi, eax
add esp, 8
mov eax, dword [ebx]
test eax, eax
je 0x444701
push eax
call fcn.005414d0
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 0x44471d
cmp eax, esi
jbe 0x44472e
lea esi, [eax + esi*2]
push esi
push edi
call fcn.00547937
add esp, 8
mov edi, eax
jmp 0x444701
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x444737
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 0x448440
Capabilities:
List tcp connections and listeners

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x5feb00]
push esi
mov esi, dword [ebp + 8]
push eax
mov dword [ebp - 4], eax
push dword [esi]
call fcn.00547937
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 0x4484cb
cmp eax, 0x7a
jne 0x4484cb
push edi
push dword [ebp - 4]
push dword [esi]
call fcn.00547937
mov edx, dword [0x5feb00]
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 [0x5feb00], edx
call sub.IPHLPAPI.DLL_GetExtendedTcpTable
mov edi, eax
test edi, edi
je 0x4484c8
mov ecx, dword [esi]
test ecx, ecx
je 0x4484c8
push ecx
call fcn.005414d0
add esp, 4
mov dword [esi], 0
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x44c340
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.0053f280
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 0x44c4a0
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.0053f280
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 0x44c7f0
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.0053f280
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 0x44d450
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.0053f280
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 0x458f30
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.0044d190
mov ebx, eax
push ebx
push esi
call fcn.0044d070
add esp, 0x10
mov dword [ebp - 8], eax
test eax, eax
je 0x458fb4
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 0x458f8d
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.0044d0e0
push esi
call fcn.0044d210
mov edi, eax
add esp, 0x10
test edi, edi
je 0x458fb4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
push esi
call fcn.0044d190
mov ebx, eax
push ebx
push esi
call fcn.0044d070
add esp, 0x10
mov dword [ebp - 8], eax
test eax, eax
je 0x459023
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 0x459009
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.0044d0e0
push esi
call fcn.0044d210
add esp, 0x10
mov edi, eax
test edi, edi
jne 0x458fab
push esi
call fcn.0044d210
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x459410
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 0x459437
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 0x459426
pop edi
movzx eax, dl
pop esi
pop ebp
ret
Function at 0x459570
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 0x4595ea
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x4595ea
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.00418b10
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.00546341
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.00418b10
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.00546341
add esp, 0x1c
mov byte [ebp - 5], 0
call fcn.00459480
test eax, eax
jle 0x459670
push str.OpenSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
je 0x459686
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 0x459664
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 0x462340
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 0x462390
mov al, byte [esi]
test al, al
je 0x462390
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 0x462360
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 0x462430
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 0x46248a
mov al, byte [edi]
test al, al
je 0x46248a
push ebx
mov ebx, 0x100
nop word [eax + eax]
movsx eax, al
push eax
call fcn.004a0790
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 0x462450
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 0x47f760
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x84], 0xffffffff
jne 0x47f775
xor eax, eax
pop edi
pop ebp
ret
push ebx
push esi
push dword [edi]
call fcn.0044ddc0
mov ecx, dword [ebp + 0x10]
add esp, 4
mov ebx, dword [ebp + 0xc]
mov esi, eax
mov dword [ecx], esi
test ebx, ebx
je 0x47f829
mov ecx, dword [edi + 0x84]
cmp ecx, esi
jne 0x47f7c6
test esi, esi
jle 0x47f807
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 0x47f7b0
jmp 0x47f804
sub eax, ecx
mov byte [ecx + edi + 0x64], 0x80
cmp eax, 1
jle 0x47f7e4
dec eax
push eax
lea eax, [edi + 0x65]
add eax, ecx
push 0
push eax
call fcn.0053f280
add esp, 0xc
test esi, esi
jle 0x47f807
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 0x47f7f0
mov ebx, dword [ebp + 0xc]
push esi
push ebx
push ebx
push dword [edi]
call fcn.0044e3e0
add esp, 0x10
test eax, eax
jne 0x47f829
push esi
push ebx
call fcn.004578d0
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 0x48beb0
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 0x48bed7
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x48bede
add edx, 4
add esi, 4
sub ecx, 4
jae 0x48bec6
xor edi, edi
cmp ecx, 0xfffffffc
je 0x48bf19
movzx edi, byte [edx]
movzx eax, byte [esi]
sub edi, eax
jne 0x48bf19
cmp ecx, 0xfffffffd
je 0x48bf19
movzx edi, byte [edx + 1]
movzx eax, byte [esi + 1]
sub edi, eax
jne 0x48bf19
cmp ecx, 0xfffffffe
je 0x48bf19
movzx edi, byte [edx + 2]
movzx eax, byte [esi + 2]
sub edi, eax
jne 0x48bf19
cmp ecx, 0xffffffff
je 0x48bf19
movzx edi, byte [edx + 3]
movzx eax, byte [esi + 3]
sub edi, eax
test edi, edi
jle case.0x48bf8d.2
mov edi, dword [ebp + 0xc]
xor ecx, ecx
test ebx, ebx
jle 0x48bf3e
mov esi, dword [ebp + 8]
mov edx, edi
sub esi, edi
mov al, byte [esi + edx]
cmp al, byte [edx]
jne 0x48bf3e
inc ecx
inc edx
cmp ecx, ebx
jl 0x48bf31
lea edx, [ebx - 1]
mov ebx, dword [ebp + 8]
test edx, edx
js 0x48bf61
mov esi, ebx
lea eax, [edx + edi]
sub esi, edi
nop
cmp byte [eax + esi], 0
jne 0x48bf61
cmp byte [eax], 0xff
jne 0x48bf61
dec eax
sub edx, 1
jns 0x48bf50
cmp ecx, edx
jl case.0x48bf8d.2
jle 0x48bf73
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.0x48bf8d.2
movzx eax, byte [eax + 0x48c000]
jmp dword [eax*4 + 0x48bfe0]
mov eax, 7
jmp 0x48bfc3
mov eax, 6
jmp 0x48bfc3
mov eax, 5
jmp 0x48bfc3
mov eax, 4
jmp 0x48bfc3
mov eax, 3
jmp 0x48bfc3
mov eax, 2
jmp 0x48bfc3
mov eax, 1
test dl, dh
jne case.0x48bf8d.2
and bl, dl
cmp bl, dl
jne case.0x48bf8d.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 0x48df40
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.004cfd80
push 0x62
push esi
mov edi, eax
mov ebx, 1
call fcn.0053f150
add esp, 0x10
mov ecx, 0x11
test eax, eax
cmove ebx, ecx
test edi, edi
jne 0x48dfe6
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.004575d0
push 0x590728
push esi
push 0x594710
push dword [ebp + 8]
push str.fopen_
push 5
call fcn.00456c10
add esp, 0x2c
call fcn.005414b2
cmp dword [eax], 2
je 0x48dfc2
call fcn.005414b2
cmp dword [eax], 6
je 0x48dfc2
lea eax, [edi + 2]
lea ecx, [edi + 0x51]
jmp 0x48dfcc
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.004575d0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
push 0x594688
call fcn.0044fca0
mov esi, eax
add esp, 4
test esi, esi
jne 0x48e009
push edi
call fcn.005484a6
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
push 0
push esi
call fcn.0044f610
push edi
push ebx
push 0x6a
push esi
call fcn.0044f640
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x49aa00
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 0x49aa41
cmp ecx, edx
jb 0x49aa41
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 0x49aa30
pop edi
jmp 0x49aa4e
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.0044ec60
add esp, 0x14
pop esi
test eax, eax
je 0x49aa78
cmp dword [ebp - 4], 0x10
jne 0x49aa78
mov eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x49abc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x49ac23
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x49ac23
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 0x49abf6
mov al, byte [ecx + esi]
xor byte [edi + ecx + 0x10], al
inc ecx
cmp ecx, ebx
jb 0x49abe7
mov eax, dword [edi + 0xc]
cmp edx, eax
jbe 0x49ac21
sub edx, eax
mov eax, 0x10
cmp edx, eax
cmova edx, eax
xor ecx, ecx
test edx, edx
je 0x49ac21
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 0x49ac10
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x4ab310
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0044e600
add esp, 4
cmp eax, 0x72
jne 0x4ab4b5
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.004939d0
push eax
call fcn.004ab0f0
add esp, 0x1c
test eax, eax
jne 0x4ab363
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.00457af0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x4ab39e
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.004575d0
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.00493f40
push eax
call fcn.004ab0f0
add esp, 0x1c
test eax, eax
jne 0x4ab3de
push 0x10a
push str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_kdf_tls1_prf.c
push esi
push ebx
call fcn.00457c00
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 0x4ab495
mov edx, dword [ebp + 0x1c]
cmp esi, 0x40
jb 0x4ab470
lea eax, [esi - 1]
lea ecx, [edx - 1]
add eax, ebx
add ecx, esi
cmp edx, eax
ja 0x4ab406
cmp ecx, ebx
jae 0x4ab470
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 0x4ab420
mov edx, dword [ebp + 0x1c]
cmp edi, esi
jae 0x4ab495
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 0x4ab484
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.00457c00
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.004ab0f0
add esp, 0x1c
neg eax
sbb eax, eax
neg eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4b0f70
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 0x4b0fae
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 0x4b0f90
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4bcf30
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 0x4bd034
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4bd034
call fcn.005414b2
mov dword [eax], 0
mov eax, dword [ebx]
test eax, eax
jne 0x4bd05e
mov edi, esi
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x4bcf66
sub edi, ecx
je 0x4bd049
cmp edi, 0x7ffffffc
ja 0x4bd049
push 0x244
call fcn.005414d5
add esp, 4
mov dword [ebx], eax
test eax, eax
jne 0x4bcfa9
call fcn.005414b2
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.0053f280
add esp, 0xc
cmp byte [edi + esi - 1], 0x2a
je 0x4bd009
lea eax, [edi + 3]
call fcn.0053e940
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 0x4bcfd0
mov al, byte [edx + edi - 1]
cmp al, 0x2f
je 0x4bcffe
cmp al, 0x5c
je 0x4bcffe
mov ax, word [0x5b1190]
mov word [edx + edi], ax
mov al, byte [0x5b1192]
mov byte [edx + edi + 2], al
jmp 0x4bd007
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 0x4bd06f
push eax
call fcn.005414d0
add esp, 4
mov dword [ebx], 0
call fcn.005414b2
mov dword [eax], 0x16
xor eax, eax
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
call fcn.005414b2
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 0x4bd03f
mov ecx, dword [ebx]
push 0xff
lea eax, [ecx + 0x2c]
push eax
lea eax, [ecx + 0x144]
push eax
call fcn.00551270
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