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

Disassembly:
mov eax, dword [esp + 8]
sub eax, 1
jne 0x100019a3
mov ecx, dword [esp + 4]
cmp word [ecx], 0x5a4d
jne 0x100019a3
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x100019a3
cmp ecx, dword [eax + 0x34]
mov eax, 1
je 0x100019a8
mov dword [0x10152af4], eax
ret 0xc
mov eax, 1
ret 0xc

Function at 0x10001af0
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
mov eax, 0x108
call fcn.100d6420
mov eax, dword [0x10151618]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
test esi, esi
je 0x10001b77
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x10001b77
mov ecx, dword [esp + 0x110]
lea eax, [esp + 0x114]
push eax
push ecx
lea edx, [esp + 0x10]
push 0x100
push edx
call fcn.100d661d
add esp, 0x10
test eax, eax
jge 0x10001b4d
mov eax, 0x100
push 0
lea ecx, [esp + 8]
push ecx
push eax
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.100d6528
add esp, 0x108
ret
mov ecx, dword [esp + 0x110]
lea eax, [esp + 0x114]
push eax
push ecx
lea edx, [esp + 0x10]
push 0xff
push edx
call fcn.100d661d
add esp, 0x10
mov byte [esp + 0x107], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x10001c09
call sym.LIBEAY32.dll_OPENSSL_isservice
test eax, eax
jle 0x10001c09
push str.OpenSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
je 0x10001c1d
push 0
lea ecx, [esp + 8]
push ecx
push 0
push 1
push 0
push 0
push 0
push 1
lea eax, [esp + 0x28]
push esi
mov dword [esp + 0x28], eax
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.100d6528
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea edx, [esp + 0x10]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.100d6528
add esp, 0x108
ret

Function at 0x10001c80
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0x10]
xor cl, cl
test edi, edi
jbe 0x10001caa
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0x14]
sub esi, eax
mov dl, byte [esi + eax]
mov bl, byte [eax]
xor dl, bl
or cl, dl
add eax, 1
sub edi, 1
jne 0x10001c97
pop esi
pop ebx
movzx eax, cl
pop edi
ret
Function at 0x10004850
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, dword [esp + 8]
test ebp, ebp
push esi
je 0x10004a2a
mov esi, dword [esp + 0x10]
test esi, esi
je 0x10004a2a
push ebx
push edi
call fcn.100d81df
mov dword [eax], 0
mov eax, dword [ebp]
test eax, eax
jne 0x100049e3
mov eax, esi
xor ebx, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10004890
sub eax, edx
mov edi, eax
jne 0x100048b1
call fcn.100d81df
mov dword [eax], 2
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
ret
push 0x244
call fcn.100d7328
add esp, 4
test eax, eax
mov dword [ebp], eax
je 0x10004901
push 0x244
push 0
push eax
call fcn.100d7a80
add esp, 0xc
cmp byte [edi + esi - 1], 0x2a
je 0x10004994
lea eax, [edi + 3]
push eax
call fcn.100d7328
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10004913
mov ecx, dword [ebp]
push ecx
call fcn.100d6fb7
add esp, 4
mov dword [ebp], ebx
call fcn.100d81df
pop edi
pop ebx
pop esi
mov dword [eax], 0xc
xor eax, eax
pop ebp
ret
mov al, byte [edi + esi - 1]
cmp al, 0x2f
je 0x1000495f
cmp al, 0x5c
je 0x1000495f
mov edx, ebx
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x10004925
mov eax, ebx
add eax, 0xffffffff
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x10004940
mov dx, word [0x100eba48]
mov word [eax], dx
mov cl, byte [0x100eba4a]
mov byte [eax + 2], cl
jmp 0x10004994
mov edx, ebx
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x10004965
mov edi, ebx
add edi, 0xffffffff
lea esi, [edi + 1]
lea esp, [esp]
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x10004980
mov dx, word [0x100eba44]
mov word [edi], dx
mov eax, dword [ebp]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
test ebx, ebx
mov ecx, dword [ebp]
mov dword [ecx + 0x140], eax
je 0x100049b5
push ebx
call fcn.100d6fb7
add esp, 4
mov eax, dword [ebp]
cmp dword [eax + 0x140], 0xffffffff
jne 0x100049f9
push eax
call fcn.100d6fb7
add esp, 4
mov dword [ebp], 0
call fcn.100d81df
pop edi
pop ebx
pop esi
mov dword [eax], 0x16
xor eax, eax
pop ebp
ret
mov edx, dword [eax + 0x140]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x100048aa
mov eax, dword [ebp]
lea ecx, [eax + 0x2c]
push 0xff
push ecx
add eax, 0x144
push eax
call fcn.100d8080
mov edx, dword [ebp]
add esp, 0xc
pop edi
pop ebx
mov byte [edx + 0x243], 0
mov eax, dword [ebp]
pop esi
add eax, 0x144
pop ebp
ret
call fcn.100d81df
pop esi
mov dword [eax], 0x16
xor eax, eax
pop ebp
ret
Function at 0x10005510
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x5c
push 0
push esi
call fcn.100d7a80
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov eax, 1
pop esi
ret
Function at 0x100079b0
Capabilities:
Hash data using sha1

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

Function at 0x10009380
Capabilities:
Hash data using sha224

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x70
push 0
push esi
call fcn.100d7a80
add esp, 0xc
mov dword [esi], 0xc1059ed8
mov dword [esi + 4], 0x367cd507
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
mov eax, 1
pop esi
ret

Function at 0x100093e0
Capabilities:
Hash data using sha256

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x70
push 0
push esi
call fcn.100d7a80
add esp, 0xc
mov dword [esi], 0x6a09e667
mov dword [esi + 4], 0xbb67ae85
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
mov eax, 1
pop esi
ret
Function at 0x1000a9b0
Capabilities:
Hash data using sha224

Disassembly:
mov eax, 0x70
call fcn.100d6420
push esi
mov esi, dword [esp + 0x80]
test esi, esi
jne 0x1000a9cb
mov esi, 0x10152ba8
push 0x70
lea eax, [esp + 8]
push 0
push eax
call fcn.100d7a80
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x84]
push ecx
push edx
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], 0xc1059ed8
mov dword [esp + 0x20], 0x367cd507
mov dword [esp + 0x24], 0x3070dd17
mov dword [esp + 0x28], 0xf70e5939
mov dword [esp + 0x2c], 0xffc00b31
mov dword [esp + 0x30], 0x68581511
mov dword [esp + 0x34], 0x64f98fa7
mov dword [esp + 0x38], 0xbefa4fa4
mov dword [esp + 0x88], 0x1c
call sym.LIBEAY32.dll_SHA256_Update
lea ecx, [esp + 0x1c]
push ecx
push esi
call sym.LIBEAY32.dll_SHA256_Final
lea edx, [esp + 0x24]
push 0x70
push edx
call sym.LIBEAY32.dll_OPENSSL_cleanse
add esp, 0x28
mov eax, esi
pop esi
add esp, 0x70
ret

Function at 0x1000aa60
Capabilities:
Hash data using sha256

Disassembly:
mov eax, 0x70
call fcn.100d6420
push esi
mov esi, dword [esp + 0x80]
test esi, esi
jne 0x1000aa7b
mov esi, 0x10152b88
push 0x70
lea eax, [esp + 8]
push 0
push eax
call fcn.100d7a80
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x84]
push ecx
push edx
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], 0x6a09e667
mov dword [esp + 0x20], 0xbb67ae85
mov dword [esp + 0x24], 0x3c6ef372
mov dword [esp + 0x28], 0xa54ff53a
mov dword [esp + 0x2c], 0x510e527f
mov dword [esp + 0x30], 0x9b05688c
mov dword [esp + 0x34], 0x1f83d9ab
mov dword [esp + 0x38], 0x5be0cd19
mov dword [esp + 0x88], 0x20
call sym.LIBEAY32.dll_SHA256_Update
lea ecx, [esp + 0x1c]
push ecx
push esi
call sym.LIBEAY32.dll_SHA256_Final
lea edx, [esp + 0x24]
push 0x70
push edx
call sym.LIBEAY32.dll_OPENSSL_cleanse
add esp, 0x28
mov eax, esi
pop esi
add esp, 0x70
ret

Function at 0x1000ab30
Capabilities:
Hash data using sha224

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0xc1059ed8
mov dword [eax + 4], 0xcbbb9d5d
mov dword [eax + 8], 0x367cd507
mov dword [eax + 0xc], 0x629a292a
mov dword [eax + 0x10], 0x3070dd17
mov dword [eax + 0x14], 0x9159015a
mov dword [eax + 0x18], 0xf70e5939
mov dword [eax + 0x1c], 0x152fecd8
mov dword [eax + 0x20], 0xffc00b31
mov dword [eax + 0x24], 0x67332667
mov dword [eax + 0x28], 0x68581511
mov dword [eax + 0x2c], 0x8eb44a87
mov dword [eax + 0x30], 0x64f98fa7
mov dword [eax + 0x34], 0xdb0c2e0d
mov dword [eax + 0x38], 0xbefa4fa4
mov dword [eax + 0x3c], 0x47b5481d
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0xd0], ecx
mov dword [eax + 0xd4], 0x30
lea eax, [ecx + 1]
ret
Function at 0x1000abd0
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0xf3bcc908
mov dword [eax + 4], 0x6a09e667
mov dword [eax + 8], 0x84caa73b
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0xfe94f82b
mov dword [eax + 0x14], 0x3c6ef372
mov dword [eax + 0x18], 0x5f1d36f1
mov dword [eax + 0x1c], 0xa54ff53a
mov dword [eax + 0x20], 0xade682d1
mov dword [eax + 0x24], 0x510e527f
mov dword [eax + 0x28], 0x2b3e6c1f
mov dword [eax + 0x2c], 0x9b05688c
mov dword [eax + 0x30], 0xfb41bd6b
mov dword [eax + 0x34], 0x1f83d9ab
mov dword [eax + 0x38], 0x137e2179
mov dword [eax + 0x3c], 0x5be0cd19
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0xd0], ecx
mov dword [eax + 0xd4], 0x40
lea eax, [ecx + 1]
ret
Function at 0x1000bac0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xa0
call fcn.100d6420
mov eax, dword [0x10151618]
xor eax, esp
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0xa8]
test eax, eax
push ebp
mov ebp, dword [esp + 0xa8]
push esi
mov esi, ecx
jbe 0x1000bc7c
push ebx
add eax, 0xffffffff
push edi
lea edi, [ebp + 0xc]
shr eax, 3
add ebp, 0x14
add eax, 1
mov dword [esp + 0x18], eax
movzx ebx, byte [esi]
xor eax, eax
mov ah, byte [esi + 1]
add esi, 1
movzx ecx, byte [esi + 1]
add esi, 1
movzx edx, byte [esi + 1]
or ebx, eax
add esi, 1
movzx eax, byte [esi + 1]
shl ecx, 0x10
add esi, 1
or ebx, ecx
xor ecx, ecx
mov ch, byte [esi + 1]
add esi, 1
shl edx, 0x18
or ebx, edx
movzx edx, byte [esi + 1]
or eax, ecx
add esi, 1
movzx ecx, byte [esi + 1]
add esi, 1
shl edx, 0x10
or eax, edx
mov dl, byte [edi]
shl ecx, 0x18
or eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
mov al, byte [ebp]
and dl, 0xdf
and al, 0xbf
or dl, 0x40
or al, 0x20
push edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
add esi, 1
mov byte [edi], dl
mov byte [ebp], al
call sym.LIBEAY32.dll_DES_set_odd_parity
lea ecx, [esp + 0x30]
push ecx
push edi
call sym.LIBEAY32.dll_DES_set_key_unchecked
push 1
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x38]
push eax
call sym.LIBEAY32.dll_DES_encrypt1
push ebp
call sym.LIBEAY32.dll_DES_set_odd_parity
lea ecx, [esp + 0x48]
push ecx
push ebp
call sym.LIBEAY32.dll_DES_set_key_unchecked
push 1
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x48]
push eax
call sym.LIBEAY32.dll_DES_encrypt1
mov eax, dword [esp + 0x50]
xor eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x58]
xor dword [esp + 0x40], edx
xor ecx, ebx
xor ebx, dword [esp + 0x54]
mov dword [esp + 0x44], eax
mov eax, edi
mov byte [eax], bl
mov edx, ebx
add eax, 1
shr edx, 8
add esp, 0x30
mov byte [eax], dl
add eax, 1
add eax, 1
mov edx, ebx
shr edx, 0x10
mov byte [eax - 1], dl
mov edx, dword [esp + 0x14]
add eax, 1
shr ebx, 0x18
mov byte [eax - 1], bl
mov byte [eax], dl
mov ebx, edx
add eax, 1
add eax, 1
shr ebx, 8
mov byte [eax - 1], bl
mov ebx, edx
shr edx, 0x18
shr ebx, 0x10
mov byte [eax], bl
mov byte [eax + 1], dl
mov edx, ecx
shr edx, 8
mov eax, ebp
mov byte [eax], cl
mov byte [eax + 1], dl
add eax, 1
add eax, 1
mov edx, ecx
shr edx, 0x10
mov byte [eax], dl
add eax, 1
shr ecx, 0x18
mov byte [eax], cl
mov ecx, dword [esp + 0x10]
add eax, 1
mov byte [eax], cl
mov edx, ecx
shr edx, 8
add eax, 1
mov byte [eax], dl
mov edx, ecx
add eax, 1
shr edx, 0x10
shr ecx, 0x18
sub dword [esp + 0x18], 1
mov byte [eax], dl
mov byte [eax + 1], cl
jne 0x1000bb07
pop edi
pop ebx
mov ecx, dword [esp + 0xa4]
pop esi
pop ebp
xor ecx, esp
call fcn.100d6528
add esp, 0xa0
ret
Function at 0x1000be40
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x88
call fcn.100d6420
mov eax, dword [0x10151618]
xor eax, esp
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x9c]
push ebx
mov ebx, dword [esp + 0x9c]
push esi
mov esi, dword [esp + 0x94]
mov dword [esp + 8], eax
xor eax, eax
test ebx, ebx
push edi
mov edi, dword [esp + 0x9c]
je 0x1000beb5
cmp ebx, dword [esi]
je 0x1000beac
test edi, edi
je 0x1000be92
cmp dword [esp + 0xa0], eax
jge 0x1000beac
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.100d6528
add esp, 0x88
ret
mov eax, 1
mov dword [esi], ebx
jmp 0x1000bebb
mov ebx, dword [esi]
test ebx, ebx
je 0x1000be92
test edi, edi
push ebp
je 0x1000bf8d
push ebx
call sym.LIBEAY32.dll_ENGINE_get_ctrl_function
mov ebp, eax
add esp, 4
cmp ebp, 0x80
jle 0x1000beeb
push str.j____int_sizeof_ctx__key_
push 0x74
push 0x100ebee0
call sym.LIBEAY32.dll_OpenSSLDie
add esp, 0xc
mov eax, dword [esp + 0xa4]
cmp ebp, eax
jge 0x1000bf45
mov ecx, dword [esp + 0x10]
push ecx
lea ebp, [esi + 4]
push ebx
push ebp
call sym.LIBEAY32.dll_EVP_DigestInit_ex
add esp, 0xc
test eax, eax
je 0x1000c048
mov edx, dword [esp + 0xa4]
push edx
push edi
push ebp
call sym.LIBEAY32.dll_EVP_DigestUpdate
add esp, 0xc
test eax, eax
je 0x1000c048
lea edi, [esi + 0x4c]
push edi
lea eax, [esi + 0x50]
push eax
push ebp
call sym.LIBEAY32.dll_EVP_DigestFinal_ex
add esp, 0xc
test eax, eax
je 0x1000c048
jmp 0x1000bf6a
cmp eax, 0x80
ja 0x1000c048
push eax
lea ecx, [esi + 0x50]
push edi
push ecx
call fcn.100d73f0
mov edx, dword [esp + 0xb0]
lea edi, [esi + 0x4c]
add esp, 0xc
mov dword [edi], edx
mov edi, dword [edi]
cmp edi, 0x80
je 0x1000bf95
mov eax, 0x80
sub eax, edi
push eax
lea ecx, [edi + esi + 0x50]
push 0
push ecx
call fcn.100d7a80
add esp, 0xc
jmp 0x1000bf95
test eax, eax
je 0x1000c034
xor eax, eax
jmp 0x1000bfa0
mov dl, byte [esi + eax + 0x50]
xor dl, 0x36
mov byte [esp + eax + 0x14], dl
add eax, 1
cmp eax, 0x80
jl 0x1000bfa0
mov eax, dword [esp + 0x10]
push eax
lea ebp, [esi + 0x1c]
push ebx
push ebp
call sym.LIBEAY32.dll_EVP_DigestInit_ex
add esp, 0xc
test eax, eax
je 0x1000c048
push ebx
call sym.LIBEAY32.dll_ENGINE_get_ctrl_function
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebp
call sym.LIBEAY32.dll_EVP_DigestUpdate
add esp, 0x10
test eax, eax
je 0x1000c048
xor eax, eax
jmp 0x1000bff0
mov dl, byte [esi + eax + 0x50]
xor dl, 0x5c
mov byte [esp + eax + 0x14], dl
add eax, 1
cmp eax, 0x80
jl 0x1000bff0
mov eax, dword [esp + 0x10]
push eax
lea ebp, [esi + 0x34]
push ebx
push ebp
call sym.LIBEAY32.dll_EVP_DigestInit_ex
add esp, 0xc
test eax, eax
je 0x1000c048
push ebx
call sym.LIBEAY32.dll_ENGINE_get_ctrl_function
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebp
call sym.LIBEAY32.dll_EVP_DigestUpdate
add esp, 0x10
test eax, eax
je 0x1000c048
lea edx, [esi + 0x1c]
push edx
add esi, 4
push esi
call sym.LIBEAY32.dll_EVP_MD_CTX_copy_ex
add esp, 8
test eax, eax
jne 0x1000c04c
xor eax, eax
jmp 0x1000c051
mov eax, 1
mov ecx, dword [esp + 0x94]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100d6528
add esp, 0x88
ret
Function at 0x1000cca0
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp dword [edi + 0x10c], 0xffffffff
jne 0x1000ccb2
xor eax, eax
pop edi
ret
push ebx
push esi
push edi
call sym.LIBEAY32.dll_X509_get_serialNumber
mov ebx, dword [esp + 0x18]
mov esi, eax
mov eax, dword [esp + 0x1c]
add esp, 4
test ebx, ebx
mov dword [eax], esi
je 0x1000cd73
mov eax, dword [edi + 0x10c]
cmp eax, esi
push ebp
jne 0x1000cd04
test esi, esi
jle 0x1000cd52
mov ecx, ebx
lea eax, [edi + 0x8c]
mov ebp, esi
lea ebx, [ebx]
mov dl, byte [eax + 0x60]
xor dl, byte [eax]
add eax, 1
mov byte [ecx], dl
add ecx, 1
sub ebp, 1
jne 0x1000ccf0
jmp 0x1000cd52
mov ecx, esi
sub ecx, eax
cmp ecx, 1
mov byte [eax + edi + 0xec], 0x80
jle 0x1000cd2b
add ecx, 0xffffffff
push ecx
lea eax, [eax + edi + 0xed]
push 0
push eax
call fcn.100d7a80
add esp, 0xc
test esi, esi
jle 0x1000cd52
mov ecx, ebx
lea eax, [edi + 0xac]
mov ebp, esi
lea esp, [esp]
mov dl, byte [eax + 0x40]
xor dl, byte [eax]
add eax, 1
mov byte [ecx], dl
add ecx, 1
sub ebp, 1
jne 0x1000cd40
push esi
push ebx
push ebx
push edi
call sym.LIBEAY32.dll_EVP_Cipher
add esp, 0x10
test eax, eax
pop ebp
jne 0x1000cd73
push esi
push ebx
call sym.LIBEAY32.dll_OPENSSL_cleanse
add esp, 8
pop esi
pop ebx
xor eax, eax
pop edi
ret
pop esi
pop ebx
mov eax, 1
pop edi
ret
Function at 0x100114e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x28
call fcn.100d6420
mov eax, dword [0x10151618]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
push ebx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 8], eax
xor edx, edx
push ebp
push esi
mov esi, dword [eax]
push edi
mov edi, dword [esp + 0x4c]
mov dh, byte [edi + 1]
lea eax, [edi + 1]
mov dword [esp + 0x28], eax
add eax, 1
mov dword [esp + 0x18], ecx
movzx ecx, byte [edi]
or ecx, edx
movzx edx, byte [eax]
add eax, 1
shl edx, 0x10
or ecx, edx
movzx edx, byte [eax]
add eax, 1
shl edx, 0x18
or ecx, edx
movzx edx, byte [eax]
add eax, 1
xor ebx, ebx
mov bh, byte [eax]
add eax, 1
mov ebp, dword [esp + 0x40]
mov byte [esp + 0x2c], cl
mov dword [esp + 0x10], 0
or edx, ebx
xor ebx, ebx
mov bh, byte [eax + 1]
mov bl, byte [eax]
mov eax, ecx
shr eax, 8
mov byte [esp + 0x2d], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x2e], al
shl ebx, 0x10
or edx, ebx
mov ebx, ecx
shr ecx, 0x18
mov byte [esp + 0x2f], cl
mov ecx, edx
mov eax, edx
mov dword [esp + 0x20], edx
mov byte [esp + 0x30], dl
shr ecx, 8
shr eax, 0x10
shr edx, 0x18
cmp dword [esp + 0x44], 0
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x31], cl
mov byte [esp + 0x32], al
mov byte [esp + 0x33], dl
je 0x100116c1
sub dword [esp + 0x18], 1
test esi, esi
jne 0x1001161d
mov ecx, dword [esp + 0x24]
push 1
push ecx
lea edx, [esp + 0x24]
push edx
call sym.LIBEAY32.dll_DES_encrypt1
mov ebx, dword [esp + 0x28]
mov eax, ebx
shr eax, 8
mov ecx, ebx
shr ecx, 0x10
mov edx, ebx
shr edx, 0x18
mov byte [esp + 0x39], al
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x3a], cl
mov byte [esp + 0x3b], dl
mov ecx, eax
mov edx, eax
mov byte [esp + 0x3c], al
shr ecx, 8
shr edx, 0x10
shr eax, 0x18
add esp, 0xc
add dword [esp + 0x10], 1
mov byte [esp + 0x2c], bl
mov byte [esp + 0x31], cl
mov byte [esp + 0x32], dl
mov byte [esp + 0x33], al
mov cl, byte [esp + esi + 0x2c]
mov eax, dword [esp + 0x3c]
xor cl, byte [eax]
add esi, 1
mov byte [ebp], cl
add eax, 1
add ebp, 1
and esi, 7
cmp dword [esp + 0x18], 0
mov dword [esp + 0x3c], eax
jne 0x100115b7
cmp dword [esp + 0x10], 0
je 0x100116a8
mov eax, dword [esp + 0x28]
mov byte [edi], bl
mov edx, ebx
shr edx, 8
mov byte [eax], dl
add eax, 1
mov ecx, ebx
shr ecx, 0x10
mov byte [eax], cl
mov ecx, dword [esp + 0x20]
add eax, 1
shr ebx, 0x18
mov byte [eax], bl
mov byte [eax + 1], cl
add eax, 1
add eax, 1
mov edx, ecx
shr edx, 8
mov byte [eax], dl
add eax, 1
mov edx, ecx
shr edx, 0x10
mov byte [eax], dl
shr ecx, 0x18
mov byte [eax + 1], cl
mov eax, dword [esp + 0x14]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.100d6528
add esp, 0x28
ret
mov ecx, dword [esp + 0x14]
pop edi
mov dword [ecx], esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.100d6528
add esp, 0x28
ret
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
pop edi
mov dword [edx], esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100d6528
add esp, 0x28
ret
Function at 0x10013400
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, 8
call fcn.100d6420
mov eax, dword [esp + 0x10]
push ebx
push ebp
push esi
push edi
xor esi, esi
xor edi, edi
add eax, 8
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0x19
jmp 0x10013430
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x20], 8
lea esp, [esp]
mov edx, edi
shr edx, 0x10
xor edx, edi
mov eax, edx
and edx, dword [esp + 0x28]
and eax, dword [esp + 0x24]
mov ecx, eax
shl ecx, 0x10
xor ecx, dword [ebx - 8]
xor ecx, eax
mov eax, edx
shl eax, 0x10
xor eax, dword [ebx - 4]
xor ecx, edi
xor eax, edx
mov edx, ecx
shr edx, 0x12
and edx, 0x3f
mov edx, dword [edx*4 + 0x100ed008]
xor eax, edi
ror eax, 4
mov ebp, ecx
shr ebp, 0xa
and ebp, 0x3f
xor edx, dword [ebp*4 + 0x100ece08]
mov ebp, eax
shr ebp, 0x12
and ebp, 0x3f
xor edx, dword [ebp*4 + 0x100ed108]
mov ebp, ecx
shr ebp, 2
and ebp, 0x3f
xor edx, dword [ebp*4 + 0x100ecc08]
mov ebp, eax
shr ebp, 0xa
and ebp, 0x3f
xor edx, dword [ebp*4 + 0x100ecf08]
mov ebp, eax
shr ebp, 2
and ebp, 0x3f
xor edx, dword [ebp*4 + 0x100ecd08]
shr ecx, 0x1a
xor edx, dword [ecx*4 + 0x100ed208]
shr eax, 0x1a
xor edx, dword [eax*4 + 0x100ed308]
xor esi, edx
mov edx, esi
shr edx, 0x10
xor edx, esi
mov eax, edx
and eax, dword [esp + 0x24]
and edx, dword [esp + 0x28]
mov ecx, eax
shl ecx, 0x10
xor ecx, dword [ebx]
xor ecx, eax
mov eax, edx
shl eax, 0x10
xor eax, dword [ebx + 4]
xor ecx, esi
xor eax, edx
mov edx, ecx
shr edx, 0x12
and edx, 0x3f
mov edx, dword [edx*4 + 0x100ed008]
mov ebp, ecx
shr ebp, 0xa
and ebp, 0x3f
xor edx, dword [ebp*4 + 0x100ece08]
xor eax, esi
ror eax, 4
mov ebp, eax
shr ebp, 0x12
and ebp, 0x3f
xor edx, dword [ebp*4 + 0x100ed108]
mov ebp, ecx
shr ebp, 2
and ebp, 0x3f
xor edx, dword [ebp*4 + 0x100ecc08]
mov ebp, eax
shr ebp, 0xa
and ebp, 0x3f
xor edx, dword [ebp*4 + 0x100ecf08]
mov ebp, eax
shr ebp, 2
and ebp, 0x3f
xor edx, dword [ebp*4 + 0x100ecd08]
shr ecx, 0x1a
xor edx, dword [ecx*4 + 0x100ed208]
shr eax, 0x1a
xor edx, dword [eax*4 + 0x100ed308]
mov ecx, 1
xor edi, edx
add ebx, 0x10
sub dword [esp + 0x20], ecx
jne 0x10013440
sub dword [esp + 0x10], ecx
mov eax, esi
mov esi, edi
mov edi, eax
jne 0x10013430
ror esi, 3
mov ecx, esi
shr ecx, 1
ror eax, 3
xor ecx, eax
and ecx, 0x55555555
xor eax, ecx
add ecx, ecx
xor esi, ecx
mov ecx, eax
shr ecx, 8
xor ecx, esi
and ecx, 0xff00ff
xor esi, ecx
shl ecx, 8
xor eax, ecx
mov ecx, esi
shr ecx, 2
xor ecx, eax
and ecx, 0x33333333
xor eax, ecx
lea edx, [ecx*4]
xor esi, edx
mov ecx, eax
shr ecx, 0x10
xor ecx, esi
and ecx, 0xffff
xor esi, ecx
shl ecx, 0x10
xor eax, ecx
mov ecx, esi
shr ecx, 4
xor ecx, eax
and ecx, 0xf0f0f0f
mov edx, ecx
xor edx, eax
mov eax, dword [esp + 0x1c]
pop edi
shl ecx, 4
xor ecx, esi
pop esi
pop ebp
mov dword [eax], edx
mov dword [eax + 4], ecx
pop ebx
add esp, 8
ret