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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x442f19
cmp dword [eax], 0
je 0x442f19
cmp dword [eax + 4], 0x40
jb 0x442f19
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x442dff
mov dword [ecx], 0
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x442e0c
mov dword [ecx], 0
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x442e19
mov dword [ecx], 0
mov edx, dword [eax]
push esi
mov esi, dword [eax + 4]
mov eax, 0x5a4d
cmp word [edx], ax
jne 0x442f11
mov eax, dword [edx + 0x3c]
lea ecx, [eax + 0x14]
cmp ecx, esi
ja 0x442f11
add eax, edx
add ecx, 0x18
mov dword [ebp + 8], eax
cmp ecx, esi
ja 0x442f11
cmp dword [eax], 0x4550
jne 0x442f11
push edi
lea edx, [eax + 4]
mov edi, 0xe0
mov dword [ebp - 4], edx
cmp word [edx + 0x10], di
jne 0x442e6f
add ecx, edi
cmp ecx, esi
jbe 0x442e78
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 0x442e93
mov ebx, 0x20b
cmp ax, bx
jne 0x442f07
movzx ebx, word [edx + 2]
lea eax, [ebx + ebx*4]
lea eax, [ecx + eax*8]
cmp eax, esi
ja 0x442f07
cmp dword [edi + 0x3c], esi
ja 0x442f07
xor edx, edx
test ebx, ebx
je 0x442ece
lea ecx, [edi + 0xf0]
mov eax, dword [ecx + 4]
add eax, dword [ecx]
cmp eax, esi
ja 0x442f07
mov eax, dword [ecx - 8]
add eax, dword [ecx - 4]
cmp eax, dword [edi + 0x38]
ja 0x442f07
inc edx
add ecx, 0x28
cmp edx, ebx
jb 0x442eb2
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x442eda
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x442ee6
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x442eef
mov dword [eax], edi
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x442efe
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 0x442f20
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.0053fce5
mov ebx, dword [ebp + 0xc]
mov edi, eax
add esp, 8
mov eax, dword [ebx]
test eax, eax
je 0x442f51
push eax
call fcn.0053fcf0
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 0x442f6d
cmp eax, esi
jbe 0x442f7e
lea esi, [eax + esi*2]
push esi
push edi
call fcn.00545dc2
add esp, 8
mov edi, eax
jmp 0x442f51
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x442f87
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 0x446c90
Capabilities:
List tcp connections and listeners

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x5fbaa8]
push esi
mov esi, dword [ebp + 8]
push eax
mov dword [ebp - 4], eax
push dword [esi]
call fcn.00545dc2
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 0x446d1b
cmp eax, 0x7a
jne 0x446d1b
push edi
push dword [ebp - 4]
push dword [esi]
call fcn.00545dc2
mov edx, dword [0x5fbaa8]
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 [0x5fbaa8], edx
call sub.IPHLPAPI.DLL_GetExtendedTcpTable
mov edi, eax
test edi, edi
je 0x446d18
mov ecx, dword [esi]
test ecx, ecx
je 0x446d18
push ecx
call fcn.0053fcf0
add esp, 4
mov dword [esi], 0
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x44ab90
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.0053daa0
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 0x44acf0
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.0053daa0
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 0x44b040
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.0053daa0
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 0x44bca0
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.0053daa0
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 0x457790
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.0044b9e0
mov ebx, eax
push ebx
push esi
call fcn.0044b8c0
add esp, 0x10
mov dword [ebp - 8], eax
test eax, eax
je 0x457814
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 0x4577ed
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.0044b930
push esi
call fcn.0044ba60
mov edi, eax
add esp, 0x10
test edi, edi
je 0x457814
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
push esi
call fcn.0044b9e0
mov ebx, eax
push ebx
push esi
call fcn.0044b8c0
add esp, 0x10
mov dword [ebp - 8], eax
test eax, eax
je 0x457883
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 0x457869
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.0044b930
push esi
call fcn.0044ba60
add esp, 0x10
mov edi, eax
test edi, edi
jne 0x45780b
push esi
call fcn.0044ba60
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x457c70
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 0x457c97
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 0x457c86
pop edi
movzx eax, dl
pop esi
pop ebp
ret
Function at 0x457dd0
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 0x457e4a
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x457e4a
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.00418b60
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.00544879
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.00418b60
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.00544879
add esp, 0x1c
mov byte [ebp - 5], 0
call fcn.00457ce0
test eax, eax
jle 0x457ed0
push str.OpenSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
je 0x457ee6
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 0x457ec4
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 0x460b90
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 0x460be0
mov al, byte [esi]
test al, al
je 0x460be0
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 0x460bb0
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 0x460c80
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 0x460cda
mov al, byte [edi]
test al, al
je 0x460cda
push ebx
mov ebx, 0x100
nop word [eax + eax]
movsx eax, al
push eax
call fcn.0049efc0
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 0x460ca0
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 0x47dfa0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x84], 0xffffffff
jne 0x47dfb5
xor eax, eax
pop edi
pop ebp
ret
push ebx
push esi
push dword [edi]
call fcn.0044c610
mov ecx, dword [ebp + 0x10]
add esp, 4
mov ebx, dword [ebp + 0xc]
mov esi, eax
mov dword [ecx], esi
test ebx, ebx
je 0x47e069
mov ecx, dword [edi + 0x84]
cmp ecx, esi
jne 0x47e006
test esi, esi
jle 0x47e047
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 0x47dff0
jmp 0x47e044
sub eax, ecx
mov byte [ecx + edi + 0x64], 0x80
cmp eax, 1
jle 0x47e024
dec eax
push eax
lea eax, [edi + 0x65]
add eax, ecx
push 0
push eax
call fcn.0053daa0
add esp, 0xc
test esi, esi
jle 0x47e047
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 0x47e030
mov ebx, dword [ebp + 0xc]
push esi
push ebx
push ebx
push dword [edi]
call fcn.0044cc30
add esp, 0x10
test eax, eax
jne 0x47e069
push esi
push ebx
call fcn.00456130
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 0x48a6e0
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 0x48a707
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x48a70e
add edx, 4
add esi, 4
sub ecx, 4
jae 0x48a6f6
xor edi, edi
cmp ecx, 0xfffffffc
je 0x48a749
movzx edi, byte [edx]
movzx eax, byte [esi]
sub edi, eax
jne 0x48a749
cmp ecx, 0xfffffffd
je 0x48a749
movzx edi, byte [edx + 1]
movzx eax, byte [esi + 1]
sub edi, eax
jne 0x48a749
cmp ecx, 0xfffffffe
je 0x48a749
movzx edi, byte [edx + 2]
movzx eax, byte [esi + 2]
sub edi, eax
jne 0x48a749
cmp ecx, 0xffffffff
je 0x48a749
movzx edi, byte [edx + 3]
movzx eax, byte [esi + 3]
sub edi, eax
test edi, edi
jle case.0x48a7bd.2
mov edi, dword [ebp + 0xc]
xor ecx, ecx
test ebx, ebx
jle 0x48a76e
mov esi, dword [ebp + 8]
mov edx, edi
sub esi, edi
mov al, byte [esi + edx]
cmp al, byte [edx]
jne 0x48a76e
inc ecx
inc edx
cmp ecx, ebx
jl 0x48a761
lea edx, [ebx - 1]
mov ebx, dword [ebp + 8]
test edx, edx
js 0x48a791
mov esi, ebx
lea eax, [edx + edi]
sub esi, edi
nop
cmp byte [eax + esi], 0
jne 0x48a791
cmp byte [eax], 0xff
jne 0x48a791
dec eax
sub edx, 1
jns 0x48a780
cmp ecx, edx
jl case.0x48a7bd.2
jle 0x48a7a3
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.0x48a7bd.2
movzx eax, byte [eax + 0x48a830]
jmp dword [eax*4 + 0x48a810]
mov eax, 7
jmp 0x48a7f3
mov eax, 6
jmp 0x48a7f3
mov eax, 5
jmp 0x48a7f3
mov eax, 4
jmp 0x48a7f3
mov eax, 3
jmp 0x48a7f3
mov eax, 2
jmp 0x48a7f3
mov eax, 1
test dl, dh
jne case.0x48a7bd.2
and bl, dl
cmp bl, dl
jne case.0x48a7bd.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 0x48c770
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.004ce590
push 0x62
push esi
mov edi, eax
mov ebx, 1
call fcn.0053d970
add esp, 0x10
mov ecx, 0x11
test eax, eax
cmove ebx, ecx
test edi, edi
jne 0x48c816
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.00455e30
push 0x58d268
push esi
push 0x591250
push dword [ebp + 8]
push str.fopen_
push 5
call fcn.00455470
add esp, 0x2c
call fcn.0053fcd2
cmp dword [eax], 2
je 0x48c7f2
call fcn.0053fcd2
cmp dword [eax], 6
je 0x48c7f2
lea eax, [edi + 2]
lea ecx, [edi + 0x51]
jmp 0x48c7fc
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.00455e30
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
push 0x5911c8
call fcn.0044e4f0
mov esi, eax
add esp, 4
test esi, esi
jne 0x48c839
push edi
call fcn.00546936
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
push 0
push esi
call fcn.0044de60
push edi
push ebx
push 0x6a
push esi
call fcn.0044de90
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x499230
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 0x499271
cmp ecx, edx
jb 0x499271
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 0x499260
pop edi
jmp 0x49927e
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.0044d4b0
add esp, 0x14
pop esi
test eax, eax
je 0x4992a8
cmp dword [ebp - 4], 0x10
jne 0x4992a8
mov eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4993f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x499453
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x499453
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 0x499426
mov al, byte [ecx + esi]
xor byte [edi + ecx + 0x10], al
inc ecx
cmp ecx, ebx
jb 0x499417
mov eax, dword [edi + 0xc]
cmp edx, eax
jbe 0x499451
sub edx, eax
mov eax, 0x10
cmp edx, eax
cmova edx, eax
xor ecx, ecx
test edx, edx
je 0x499451
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 0x499440
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x4a9b50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0044ce50
add esp, 4
cmp eax, 0x72
jne 0x4a9cf5
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.00492200
push eax
call fcn.004a9930
add esp, 0x1c
test eax, eax
jne 0x4a9ba3
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.00456350
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x4a9bde
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.00455e30
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.00492770
push eax
call fcn.004a9930
add esp, 0x1c
test eax, eax
jne 0x4a9c1e
push 0x10a
push str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_kdf_tls1_prf.c
push esi
push ebx
call fcn.00456460
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 0x4a9cd5
mov edx, dword [ebp + 0x1c]
cmp esi, 0x40
jb 0x4a9cb0
lea eax, [esi - 1]
lea ecx, [edx - 1]
add eax, ebx
add ecx, esi
cmp edx, eax
ja 0x4a9c46
cmp ecx, ebx
jae 0x4a9cb0
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 0x4a9c60
mov edx, dword [ebp + 0x1c]
cmp edi, esi
jae 0x4a9cd5
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 0x4a9cc4
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.00456460
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.004a9930
add esp, 0x1c
neg eax
sbb eax, eax
neg eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4af7b0
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 0x4af7ee
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 0x4af7d0
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4bb750
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 0x4bb854
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4bb854
call fcn.0053fcd2
mov dword [eax], 0
mov eax, dword [ebx]
test eax, eax
jne 0x4bb87e
mov edi, esi
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x4bb786
sub edi, ecx
je 0x4bb869
cmp edi, 0x7ffffffc
ja 0x4bb869
push 0x244
call fcn.0053fcf5
add esp, 4
mov dword [ebx], eax
test eax, eax
jne 0x4bb7c9
call fcn.0053fcd2
mov dword [eax], 0xc
xor eax, eax
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
push 0x244
push 0
push eax
call fcn.0053daa0
add esp, 0xc
cmp byte [edi + esi - 1], 0x2a
je 0x4bb829
lea eax, [edi + 3]
call fcn.0053d160
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 0x4bb7f0
mov al, byte [edx + edi - 1]
cmp al, 0x2f
je 0x4bb81e
cmp al, 0x5c
je 0x4bb81e
mov ax, word [0x5adcd0]
mov word [edx + edi], ax
mov al, byte [0x5adcd2]
mov byte [edx + edi + 2], al
jmp 0x4bb827
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 0x4bb88f
push eax
call fcn.0053fcf0
add esp, 4
mov dword [ebx], 0
call fcn.0053fcd2
mov dword [eax], 0x16
xor eax, eax
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
call fcn.0053fcd2
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 0x4bb85f
mov ecx, dword [ebx]
push 0xff
lea eax, [ecx + 0x2c]
push eax
lea eax, [ecx + 0x144]
push eax
call fcn.0054f660
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