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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x444779
cmp dword [eax], 0
je 0x444779
cmp dword [eax + 4], 0x40
jb 0x444779
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x44465f
mov dword [ecx], 0
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x44466c
mov dword [ecx], 0
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x444679
mov dword [ecx], 0
mov edx, dword [eax]
push esi
mov esi, dword [eax + 4]
mov eax, 0x5a4d
cmp word [edx], ax
jne 0x444771
mov eax, dword [edx + 0x3c]
lea ecx, [eax + 0x14]
cmp ecx, esi
ja 0x444771
add eax, edx
add ecx, 0x18
mov dword [ebp + 8], eax
cmp ecx, esi
ja 0x444771
cmp dword [eax], 0x4550
jne 0x444771
push edi
lea edx, [eax + 4]
mov edi, 0xe0
mov dword [ebp - 4], edx
cmp word [edx + 0x10], di
jne 0x4446cf
add ecx, edi
cmp ecx, esi
jbe 0x4446d8
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 0x4446f3
mov ebx, 0x20b
cmp ax, bx
jne 0x444767
movzx ebx, word [edx + 2]
lea eax, [ebx + ebx*4]
lea eax, [ecx + eax*8]
cmp eax, esi
ja 0x444767
cmp dword [edi + 0x3c], esi
ja 0x444767
xor edx, edx
test ebx, ebx
je 0x44472e
lea ecx, [edi + 0xf0]
mov eax, dword [ecx + 4]
add eax, dword [ecx]
cmp eax, esi
ja 0x444767
mov eax, dword [ecx - 8]
add eax, dword [ecx - 4]
cmp eax, dword [edi + 0x38]
ja 0x444767
inc edx
add ecx, 0x28
cmp edx, ebx
jb 0x444712
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x44473a
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x444746
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x44474f
mov dword [eax], edi
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x44475e
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 0x444780
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.00541555
mov ebx, dword [ebp + 0xc]
mov edi, eax
add esp, 8
mov eax, dword [ebx]
test eax, eax
je 0x4447b1
push eax
call fcn.00541560
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 0x4447cd
cmp eax, esi
jbe 0x4447de
lea esi, [eax + esi*2]
push esi
push edi
call fcn.005479c7
add esp, 8
mov edi, eax
jmp 0x4447b1
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4447e7
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 0x4484f0
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.005479c7
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 0x44857b
cmp eax, 0x7a
jne 0x44857b
push edi
push dword [ebp - 4]
push dword [esi]
call fcn.005479c7
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 0x448578
mov ecx, dword [esi]
test ecx, ecx
je 0x448578
push ecx
call fcn.00541560
add esp, 4
mov dword [esi], 0
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x44c410
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.0053f310
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 0x44c570
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.0053f310
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 0x44c8c0
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.0053f310
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 0x44d520
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.0053f310
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 0x459000
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.0044d260
mov ebx, eax
push ebx
push esi
call fcn.0044d140
add esp, 0x10
mov dword [ebp - 8], eax
test eax, eax
je 0x459084
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 0x45905d
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.0044d1b0
push esi
call fcn.0044d2e0
mov edi, eax
add esp, 0x10
test edi, edi
je 0x459084
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
push esi
call fcn.0044d260
mov ebx, eax
push ebx
push esi
call fcn.0044d140
add esp, 0x10
mov dword [ebp - 8], eax
test eax, eax
je 0x4590f3
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 0x4590d9
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.0044d1b0
push esi
call fcn.0044d2e0
add esp, 0x10
mov edi, eax
test edi, edi
jne 0x45907b
push esi
call fcn.0044d2e0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4594e0
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 0x459507
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 0x4594f6
pop edi
movzx eax, dl
pop esi
pop ebp
ret
Function at 0x459640
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 0x4596ba
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x4596ba
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.005463d1
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.005463d1
add esp, 0x1c
mov byte [ebp - 5], 0
call fcn.00459550
test eax, eax
jle 0x459740
push str.OpenSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
je 0x459756
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 0x459734
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 0x462400
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 0x462450
mov al, byte [esi]
test al, al
je 0x462450
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 0x462420
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 0x4624f0
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 0x46254a
mov al, byte [edi]
test al, al
je 0x46254a
push ebx
mov ebx, 0x100
nop word [eax + eax]
movsx eax, al
push eax
call fcn.004a0830
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 0x462510
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 0x47f810
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x84], 0xffffffff
jne 0x47f825
xor eax, eax
pop edi
pop ebp
ret
push ebx
push esi
push dword [edi]
call fcn.0044de90
mov ecx, dword [ebp + 0x10]
add esp, 4
mov ebx, dword [ebp + 0xc]
mov esi, eax
mov dword [ecx], esi
test ebx, ebx
je 0x47f8d9
mov ecx, dword [edi + 0x84]
cmp ecx, esi
jne 0x47f876
test esi, esi
jle 0x47f8b7
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 0x47f860
jmp 0x47f8b4
sub eax, ecx
mov byte [ecx + edi + 0x64], 0x80
cmp eax, 1
jle 0x47f894
dec eax
push eax
lea eax, [edi + 0x65]
add eax, ecx
push 0
push eax
call fcn.0053f310
add esp, 0xc
test esi, esi
jle 0x47f8b7
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 0x47f8a0
mov ebx, dword [ebp + 0xc]
push esi
push ebx
push ebx
push dword [edi]
call fcn.0044e4b0
add esp, 0x10
test eax, eax
jne 0x47f8d9
push esi
push ebx
call fcn.004579a0
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 0x48bf50
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 0x48bf77
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x48bf7e
add edx, 4
add esi, 4
sub ecx, 4
jae 0x48bf66
xor edi, edi
cmp ecx, 0xfffffffc
je 0x48bfb9
movzx edi, byte [edx]
movzx eax, byte [esi]
sub edi, eax
jne 0x48bfb9
cmp ecx, 0xfffffffd
je 0x48bfb9
movzx edi, byte [edx + 1]
movzx eax, byte [esi + 1]
sub edi, eax
jne 0x48bfb9
cmp ecx, 0xfffffffe
je 0x48bfb9
movzx edi, byte [edx + 2]
movzx eax, byte [esi + 2]
sub edi, eax
jne 0x48bfb9
cmp ecx, 0xffffffff
je 0x48bfb9
movzx edi, byte [edx + 3]
movzx eax, byte [esi + 3]
sub edi, eax
test edi, edi
jle case.0x48c02d.2
mov edi, dword [ebp + 0xc]
xor ecx, ecx
test ebx, ebx
jle 0x48bfde
mov esi, dword [ebp + 8]
mov edx, edi
sub esi, edi
mov al, byte [esi + edx]
cmp al, byte [edx]
jne 0x48bfde
inc ecx
inc edx
cmp ecx, ebx
jl 0x48bfd1
lea edx, [ebx - 1]
mov ebx, dword [ebp + 8]
test edx, edx
js 0x48c001
mov esi, ebx
lea eax, [edx + edi]
sub esi, edi
nop
cmp byte [eax + esi], 0
jne 0x48c001
cmp byte [eax], 0xff
jne 0x48c001
dec eax
sub edx, 1
jns 0x48bff0
cmp ecx, edx
jl case.0x48c02d.2
jle 0x48c013
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.0x48c02d.2
movzx eax, byte [eax + 0x48c0a0]
jmp dword [eax*4 + 0x48c080]
mov eax, 7
jmp 0x48c063
mov eax, 6
jmp 0x48c063
mov eax, 5
jmp 0x48c063
mov eax, 4
jmp 0x48c063
mov eax, 3
jmp 0x48c063
mov eax, 2
jmp 0x48c063
mov eax, 1
test dl, dh
jne case.0x48c02d.2
and bl, dl
cmp bl, dl
jne case.0x48c02d.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 0x48dfe0
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.004cfe20
push 0x62
push esi
mov edi, eax
mov ebx, 1
call fcn.0053f1e0
add esp, 0x10
mov ecx, 0x11
test eax, eax
cmove ebx, ecx
test edi, edi
jne 0x48e086
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.004576a0
push 0x590858
push esi
push 0x594840
push dword [ebp + 8]
push str.fopen_
push 5
call fcn.00456ce0
add esp, 0x2c
call fcn.00541542
cmp dword [eax], 2
je 0x48e062
call fcn.00541542
cmp dword [eax], 6
je 0x48e062
lea eax, [edi + 2]
lea ecx, [edi + 0x51]
jmp 0x48e06c
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.004576a0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
push 0x5947b8
call fcn.0044fd70
mov esi, eax
add esp, 4
test esi, esi
jne 0x48e0a9
push edi
call fcn.00548536
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
push 0
push esi
call fcn.0044f6e0
push edi
push ebx
push 0x6a
push esi
call fcn.0044f710
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x49aaa0
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 0x49aae1
cmp ecx, edx
jb 0x49aae1
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 0x49aad0
pop edi
jmp 0x49aaee
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.0044ed30
add esp, 0x14
pop esi
test eax, eax
je 0x49ab18
cmp dword [ebp - 4], 0x10
jne 0x49ab18
mov eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x49ac60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x49acc3
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x49acc3
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 0x49ac96
mov al, byte [ecx + esi]
xor byte [edi + ecx + 0x10], al
inc ecx
cmp ecx, ebx
jb 0x49ac87
mov eax, dword [edi + 0xc]
cmp edx, eax
jbe 0x49acc1
sub edx, eax
mov eax, 0x10
cmp edx, eax
cmova edx, eax
xor ecx, ecx
test edx, edx
je 0x49acc1
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 0x49acb0
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x4ab3c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0044e6d0
add esp, 4
cmp eax, 0x72
jne 0x4ab565
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.00493a70
push eax
call fcn.004ab1a0
add esp, 0x1c
test eax, eax
jne 0x4ab413
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.00457bc0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x4ab44e
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.004576a0
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.00493fe0
push eax
call fcn.004ab1a0
add esp, 0x1c
test eax, eax
jne 0x4ab48e
push 0x10a
push str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_kdf_tls1_prf.c
push esi
push ebx
call fcn.00457cd0
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 0x4ab545
mov edx, dword [ebp + 0x1c]
cmp esi, 0x40
jb 0x4ab520
lea eax, [esi - 1]
lea ecx, [edx - 1]
add eax, ebx
add ecx, esi
cmp edx, eax
ja 0x4ab4b6
cmp ecx, ebx
jae 0x4ab520
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 0x4ab4d0
mov edx, dword [ebp + 0x1c]
cmp edi, esi
jae 0x4ab545
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 0x4ab534
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.00457cd0
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.004ab1a0
add esp, 0x1c
neg eax
sbb eax, eax
neg eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4b1030
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 0x4b106e
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 0x4b1050
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4bcfe0
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 0x4bd0e4
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4bd0e4
call fcn.00541542
mov dword [eax], 0
mov eax, dword [ebx]
test eax, eax
jne 0x4bd10e
mov edi, esi
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x4bd016
sub edi, ecx
je 0x4bd0f9
cmp edi, 0x7ffffffc
ja 0x4bd0f9
push 0x244
call fcn.00541565
add esp, 4
mov dword [ebx], eax
test eax, eax
jne 0x4bd059
call fcn.00541542
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.0053f310
add esp, 0xc
cmp byte [edi + esi - 1], 0x2a
je 0x4bd0b9
lea eax, [edi + 3]
call fcn.0053e9d0
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 0x4bd080
mov al, byte [edx + edi - 1]
cmp al, 0x2f
je 0x4bd0ae
cmp al, 0x5c
je 0x4bd0ae
mov ax, word [0x5b12c0]
mov word [edx + edi], ax
mov al, byte [0x5b12c2]
mov byte [edx + edi + 2], al
jmp 0x4bd0b7
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 0x4bd11f
push eax
call fcn.00541560
add esp, 4
mov dword [ebx], 0
call fcn.00541542
mov dword [eax], 0x16
xor eax, eax
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
call fcn.00541542
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 0x4bd0ef
mov ecx, dword [ebx]
push 0xff
lea eax, [ecx + 0x2c]
push eax
lea eax, [ecx + 0x144]
push eax
call fcn.00551300
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