joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10037dbc
Capabilities:
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, dword [eax]
push dword [esi + 0x74]
call sub.MSVCRT.dll_strlen
cmp eax, 0xff
pop ecx
jae 0x10037f5d
mov al, byte [0x100bebb0]
push 0x3f
mov byte [ebp - 0x118], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x117]
rep stosd dword es:[edi], eax
push dword [esi + 0x74]
xor ebx, ebx
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [ebp - 4], ebx
call edi
cmp eax, 0xffffffff
jne 0x10037e5b
lea eax, [ebp - 0x118]
push 0x100
push eax
push dword [esi + 0x74]
call fcn.10039a5a
add esp, 0xc
test eax, eax
je 0x10037e5b
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x118]
push ebx
push eax
push dword [ebp + 8]
call fcn.10024d42
add esp, 0x10
cmp eax, 1
jne 0x10037e56
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.1002cd1a
pop ecx
pop ecx
cmp dword [ebp - 4], ebx
jne 0x10037e97
lea eax, [ebp - 4]
push eax
push ebx
push dword [esi + 0x74]
push dword [ebp + 8]
call fcn.10024d42
add esp, 0x10
cmp eax, 1
jne 0x10037e81
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.1002cd1a
pop ecx
pop ecx
cmp dword [ebp - 4], ebx
je 0x10037e97
push dword [esi + 0x74]
lea eax, [ebp - 0x118]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
cmp byte [ebp - 0x118], bl
jne 0x10037eac
push dword [esi + 0x74]
push str.Couldnt_bind_to__s
jmp 0x10037f54
lea eax, [ebp - 0x118]
push eax
push str.We_bind_local_end_to__s_n
push esi
call fcn.1002d9fc
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call edi
cmp eax, 0xffffffff
je 0x10037f48
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x10037f48
mov edi, dword [eax]
push eax
push esi
call fcn.10024e98
pop ecx
pop ecx
push dword [edi + 0x10]
push dword [edi + 0x14]
push dword [ebp + 0xc]
call dword [sym.imp.WSOCK32.dll_bind]
test eax, eax
jl 0x10037f1f
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x10
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WSOCK32.dll_getsockname]
test eax, eax
jge 0x10037f44
push str.getsockname___failed
push esi
call fcn.1002da56
pop ecx
pop ecx
jmp 0x10037f5d
call sub.KERNEL32.dll_GetLastError
push eax
mov dword [esi + 0x8310], eax
push dword [ebp + 8]
call fcn.1002459e
push eax
push str.bind_failure:__s
push esi
call fcn.1002da56
add esp, 0x14
jmp 0x10037f5d
xor eax, eax
jmp 0x10037f60
lea eax, [ebp - 0x118]
push eax
push str.couldnt_find_my_own_IP_address___s_
push esi
call fcn.1002da56
add esp, 0xc
push 0x2d
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10037f65
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
push 4
mov esi, dword [edi]
movzx eax, byte [esi + 0x1ae]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 1
push 6
push dword [ebp + 0xc]
call dword [sym.imp.WSOCK32.dll_setsockopt]
test eax, eax
jge 0x10037fad
call sub.KERNEL32.dll_GetLastError
push eax
push edi
call fcn.1002459e
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.1002d9fc
add esp, 0x14
jmp 0x10037fba
push str.TCP_NODELAY_set_n
push esi
call fcn.1002d9fc
pop ecx
pop ecx
pop edi
pop esi
pop ebp
ret
Function at 0x10038d45
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x10039863
Capabilities:
Encode data using base64

Disassembly:
xor eax, eax
xor edx, edx
mov ecx, dword [esp + 8]
mov cl, byte [edx + ecx]
cmp cl, 0x41
jl 0x10039884
cmp cl, 0x5a
jg 0x10039884
movsx ecx, cl
shl eax, 6
lea eax, [eax + ecx - 0x41]
jmp 0x100398d2
cmp cl, 0x61
jl 0x1003989a
cmp cl, 0x7a
jg 0x1003989a
movsx ecx, cl
shl eax, 6
lea eax, [eax + ecx - 0x47]
jmp 0x100398d2
cmp cl, 0x30
jl 0x100398b0
cmp cl, 0x39
jg 0x100398b0
movsx ecx, cl
shl eax, 6
lea eax, [eax + ecx + 4]
jmp 0x100398d2
cmp cl, 0x2b
jne 0x100398bd
shl eax, 6
add eax, 0x3e
jmp 0x100398d2
cmp cl, 0x2f
jne 0x100398ca
shl eax, 6
add eax, 0x3f
jmp 0x100398d2
cmp cl, 0x3d
jne 0x100398d2
shl eax, 6
inc edx
cmp edx, 4
jl 0x10039867
mov ecx, dword [esp + 4]
mov byte [ecx + 2], al
shr eax, 8
mov byte [ecx + 1], al
shr eax, 8
mov byte [ecx], al
ret
Function at 0x1003a839
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 8], 0
jne 0x1003a862
mov eax, dword [esi]
push 0x100af2d4
push dword [eax + 8]
call dword [sym.imp.MSVCRT.dll_fopen]
pop ecx
mov dword [esi + 8], eax
test eax, eax
pop ecx
jne 0x1003a862
or eax, 0xffffffff
pop esi
ret
push edi
push dword [esi + 8]
push dword [esp + 0x18]
push 1
push dword [esp + 0x1c]
call dword [sym.imp.MSVCRT.dll_fread]
mov edi, eax
add esp, 0x10
cmp edi, dword [esp + 0x14]
je 0x1003a895
push dword [esi + 8]
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esi]
and dword [esi + 8], 0
pop ecx
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
ret
Function at 0x1003b8b0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [edx]
push edi
mov edi, dword [esp + 0x14]
mov ecx, esi
xor ecx, eax
and ecx, 0xff
shr esi, 8
mov ecx, dword [edi + ecx*4]
xor ecx, esi
mov esi, dword [edx + 4]
mov dword [edx], ecx
and ecx, 0xff
add ecx, esi
mov esi, dword [edx + 8]
imul ecx, ecx, 0x8088405
inc ecx
mov ebx, esi
mov dword [edx + 4], ecx
and ebx, 0xff
shr ecx, 0x18
xor ecx, ebx
shr esi, 8
mov ecx, dword [edi + ecx*4]
pop edi
xor ecx, esi
pop esi
mov dword [edx + 8], ecx
pop ebx
ret
Function at 0x1004143f
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
push 1
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x58], ecx
pop eax
ret
Function at 0x1004244a
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 4
pop eax
call fcn.1008bee0
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
jle 0x10042526
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x3f
pop edi
cmp ebx, 3
jl 0x100424c1
movzx eax, byte [esi + 2]
xor edx, edx
mov dh, byte [esi]
mov dl, byte [esi + 1]
shl edx, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, edi
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, edi
inc ecx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
mov eax, edx
shr eax, 6
and eax, edi
inc ecx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
inc ecx
and edx, edi
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
jmp 0x1004250f
movzx edx, byte [esi]
shl edx, 0x10
cmp ebx, 2
jne 0x100424d3
xor eax, eax
mov ah, byte [esi + 1]
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, edi
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, edi
inc ecx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
inc ecx
cmp ebx, 1
jne 0x100424fd
push 0x3d
pop edx
jmp 0x10042509
shr edx, 6
and edx, edi
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
inc ecx
mov byte [ecx], 0x3d
add dword [ebp - 4], 4
sub ebx, 3
inc ecx
add esi, 3
test ebx, ebx
jg 0x10042470
pop edi
pop esi
jmp 0x10042529
mov ecx, dword [ebp + 8]
and byte [ecx], 0
mov eax, dword [ebp - 4]
pop ebx
leave
ret
Function at 0x10044a7b
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x12c
call fcn.1008bee0
push ebx
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
xor ebx, ebx
cmp eax, ebx
je 0x10044ac1
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x10044ac1
lea eax, [ebp + 0xc]
push eax
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push dword [ebp + 8]
add eax, 0x40
push eax
call dword [sym.imp.MSVCRT.dll_vfprintf]
add esp, 0xc
jmp 0x10044b68
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x12c]
push dword [ebp + 8]
push 0xff
push eax
call dword [sym.imp.MSVCRT.dll__vsnprintf]
add esp, 0x10
mov byte [ebp - 0x2d], bl
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x10044b2a
call fcn.100449d4
test eax, eax
je 0x10044b2a
push str.OPENSSL
push ebx
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
lea eax, [ebp - 0x12c]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push ebx
push eax
push ebx
push 1
push ebx
push ebx
push ebx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
jmp 0x10044b68
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x2c], 0x28
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x1c], str.OpenSSL:_FATAL
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x14], 0x7f01
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], 0x409
call dword [sym.imp.USER32.dll_MessageBoxIndirectA]
lea esp, [ebp - 0x134]
pop esi
pop ebx
leave
ret

Function at 0x1004a915
Capabilities:
Check if file exists

Disassembly:
push esi
push edi
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
pop ecx
test edi, edi
pop ecx
jne 0x1004a98e
mov esi, str..crypto_bio_bss_file.c
push 0x7a
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.10043423
push 0x100964f4
push dword [esp + 0x28]
push 0x100964f0
push dword [esp + 0x2c]
push str.fopen_
push 5
call fcn.10043b11
add esp, 0x2c
call dword [sym.imp.MSVCRT.dll__errno]
cmp dword [eax], 2
jne 0x1004a97b
push 0x7d
push esi
push 0x80
jmp 0x1004a980
push 0x7f
push esi
push 2
push 0x6d
push 0x20
call fcn.10043423
add esp, 0x14
jmp 0x1004a9a0
call fcn.1004a9e3
push eax
call fcn.1003f33c
mov esi, eax
pop ecx
test esi, esi
jne 0x1004a9a4
xor eax, eax
jmp 0x1004a9b4
push edi
push 1
push 0x6a
push esi
call fcn.1003f755
add esp, 0x10
mov eax, esi
pop edi
pop esi
ret

Function at 0x1004aa9f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor eax, eax
cmp dword [ecx + 0xc], eax
je 0x1004aacc
cmp dword [ebp + 0xc], eax
je 0x1004aacc
push dword [ecx + 0x20]
push 1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
test eax, eax
je 0x1004aacc
mov eax, dword [ebp + 0x10]
pop ebp
ret
Function at 0x1004e06a
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
push 1
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x5c], ecx
pop eax
ret
Function at 0x10053f58
Capabilities:
Hash data using sha224

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
push 1
mov dword [eax], 0xc1059ed8
mov dword [eax + 4], 0x367cd507
mov dword [eax + 8], 0x3070dd17
mov dword [eax + 0xc], 0xf70e5939
mov dword [eax + 0x10], 0xffc00b31
mov dword [eax + 0x14], 0x68581511
mov dword [eax + 0x18], 0x64f98fa7
mov dword [eax + 0x1c], 0xbefa4fa4
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x68], ecx
mov dword [eax + 0x6c], 0x1c
pop eax
ret

Function at 0x10053fa9
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
push 1
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x68], ecx
mov dword [eax + 0x6c], 0x20
pop eax
ret
Function at 0x10056181
Capabilities:
Hash data using sha224

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

Function at 0x10056216
Capabilities:
Hash data using sha256

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

Disassembly:
push ebp
mov ebp, esp
push 8
pop eax
call fcn.1008bee0
and dword [ebp - 4], 0
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x1005af0b
mov al, byte [esi]
test al, al
je 0x1005af0b
push ebx
mov dword [ebp + 8], 0x100
movsx eax, al
or eax, dword [ebp + 8]
mov ebx, dword [ebp - 4]
push 0x20
add dword [ebp + 8], 0x100
mov edx, eax
mov ecx, eax
shr edx, 2
and edx, 0xf
and ecx, 0xf
xor edx, ecx
pop ecx
sub ecx, edx
shr ebx, cl
mov ecx, edx
mov edx, eax
imul edx, eax
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 4]
shl ebx, cl
mov ecx, dword [ebp - 8]
mov al, byte [esi + 1]
or ecx, ebx
xor ecx, edx
inc esi
test al, al
mov dword [ebp - 4], ecx
jne 0x1005aeba
mov eax, ecx
pop ebx
shr eax, 0x10
xor eax, ecx
jmp 0x1005af0d
xor eax, eax
pop esi
leave
ret
Function at 0x1006f2df
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0x18
pop eax
call fcn.1008bee0
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
lea edi, [eax - 1]
lea eax, [edi - 0x29]
cmp dword [ebp + 0x14], eax
jle 0x1006f315
push 0x2d
push str..crypto_rsa_rsa_oaep.c
push 0x6e
push 0x79
push 4
call fcn.10043423
add esp, 0x14
jmp 0x1006f3a9
cmp edi, 0x29
jge 0x1006f325
push 0x33
push str..crypto_rsa_rsa_oaep.c
push 0x78
jmp 0x1006f304
mov esi, str..crypto_rsa_rsa_oaep.c
lea eax, [edi - 0x14]
push 0x37
push esi
push eax
mov dword [ebp + 0xc], eax
call fcn.10042bdc
add esp, 0xc
mov dword [ebp - 4], eax
test eax, eax
jne 0x1006f34a
push 0x3a
push esi
push 0x41
jmp 0x1006f304
mov eax, dword [ebp + 8]
push 0
and byte [eax], 0
lea ebx, [eax + 1]
lea esi, [eax + 0x15]
call fcn.10042260
push eax
push 0
push esi
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
call fcn.1004213c
mov eax, edi
sub eax, dword [ebp + 0x14]
sub eax, 0x29
push eax
lea eax, [esi + 0x14]
push 0
push eax
call sub.MSVCRT.dll_memset
push dword [ebp + 0x14]
mov eax, esi
sub eax, dword [ebp + 0x14]
push dword [ebp + 0x10]
add eax, edi
mov byte [eax - 0x15], 1
add eax, 0xffffffec
push eax
call sub.MSVCRT.dll_memcpy
push 0x14
push ebx
call fcn.1005f69f
add esp, 0x38
test eax, eax
jg 0x1006f3ad
xor eax, eax
jmp 0x1006f403
mov edi, dword [ebp - 4]
push 0x14
push ebx
push dword [ebp + 0xc]
push edi
call fcn.1006f65d
add esp, 0x10
cmp dword [ebp + 0xc], 0
jle 0x1006f3d5
mov ecx, dword [ebp + 0xc]
mov eax, esi
sub edi, esi
mov dl, byte [edi + eax]
xor byte [eax], dl
inc eax
dec ecx
jne 0x1006f3cc
push dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push esi
push 0x14
pop esi
push esi
push eax
call fcn.1006f65d
lea eax, [ebp - 0x18]
add esp, 0x10
sub eax, ebx
mov cl, byte [eax + ebx]
xor byte [ebx], cl
inc ebx
dec esi
jne 0x1006f3ee
push dword [ebp - 4]
call fcn.10042d66
pop ecx
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1006f408
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0x2c
pop eax
call fcn.1008bee0
push ebx
push esi
push edi
mov edi, dword [ebp + 0x18]
xor ebx, ebx
dec edi
cmp edi, 0x29
mov dword [ebp - 4], ebx
jl 0x1006f554
mov eax, edi
sub eax, dword [ebp + 0x14]
mov dword [ebp + 0x18], eax
jns 0x1006f43e
mov dword [ebp - 4], 1
mov dword [ebp + 0x18], ebx
mov eax, ebx
mov esi, dword [ebp + 0x10]
add edi, 0xffffffec
push 0x7a
sub esi, eax
push str..crypto_rsa_rsa_oaep.c
push edi
add esi, 0x14
call fcn.10042bdc
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x1006f479
push 0x7d
push str..crypto_rsa_rsa_oaep.c
push 0x41
push 0x7a
push 4
call fcn.10043423
add esp, 0x14
jmp 0x1006f577
push edi
push esi
lea eax, [ebp - 0x18]
push 0x14
push eax
call fcn.1006f65d
mov eax, dword [ebp + 0x18]
add esp, 0x10
cmp eax, 0x14
jge 0x1006f4a3
mov edx, dword [ebp + 0x10]
mov ecx, eax
sub ecx, dword [ebp + 0x18]
mov cl, byte [ecx + edx]
xor byte [ebp + eax - 0x18], cl
inc eax
jmp 0x1006f48c
lea eax, [ebp - 0x18]
push 0x14
push eax
push edi
push ebx
call fcn.1006f65d
add esp, 0x10
test edi, edi
jle 0x1006f4c6
mov eax, ebx
sub esi, ebx
mov ecx, edi
mov dl, byte [esi + eax]
xor byte [eax], dl
inc eax
dec ecx
jne 0x1006f4bd
push 0
call fcn.10042260
push eax
lea eax, [ebp - 0x2c]
push 0
push eax
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
call fcn.1004213c
lea eax, [ebp - 0x2c]
push 0x14
push eax
push ebx
call sub.MSVCRT.dll_memcmp
add esp, 0x24
test eax, eax
jne 0x1006f554
cmp dword [ebp - 4], eax
jne 0x1006f554
push 0x14
pop eax
cmp edi, eax
jle 0x1006f509
cmp byte [eax + ebx], 0
jne 0x1006f509
inc eax
cmp eax, edi
jl 0x1006f4fe
cmp byte [eax + ebx], 1
jne 0x1006f554
mov ecx, eax
inc eax
cmp ecx, edi
jge 0x1006f554
sub edi, eax
cmp dword [ebp + 0xc], edi
jge 0x1006f53a
push 0x9b
push str..crypto_rsa_rsa_oaep.c
push 0x6d
push 0x7a
push 4
call fcn.10043423
add esp, 0x14
or edi, 0xffffffff
jmp 0x1006f549
add eax, ebx
push edi
push eax
push dword [ebp + 8]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push ebx
call fcn.10042d66
pop ecx
mov eax, edi
jmp 0x1006f57a
push 0xa8
push str..crypto_rsa_rsa_oaep.c
push 0x79
push 0x7a
push 4
call fcn.10043423
add esp, 0x14
test ebx, ebx
je 0x1006f577
push ebx
call fcn.10042d66
pop ecx
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1006f6f6
Capabilities:
Check for software breakpoints

Disassembly:
mov edx, dword [esp + 0x10]
push esi
cmp dword [esp + 0x18], edx
jne 0x1006f787
mov eax, dword [esp + 0x10]
mov cl, byte [eax]
cmp cl, 0x6a
je 0x1006f715
cmp cl, 0x6b
jne 0x1006f787
inc eax
cmp cl, 0x6b
jne 0x1006f75b
lea esi, [edx - 3]
xor ecx, ecx
test esi, esi
jle 0x1006f736
mov dl, byte [eax]
inc eax
cmp dl, 0xba
je 0x1006f736
cmp dl, 0xbb
jne 0x1006f74a
inc ecx
cmp ecx, esi
jl 0x1006f724
sub esi, ecx
test ecx, ecx
jne 0x1006f75e
mov eax, 0x8a
push eax
push str..crypto_rsa_rsa_x931.c
push eax
jmp 0x1006f793
push 0x81
push str..crypto_rsa_rsa_x931.c
push 0x8a
jmp 0x1006f793
lea esi, [edx - 2]
cmp byte [esi + eax], 0xcc
je 0x1006f775
push 0x93
push str..crypto_rsa_rsa_x931.c
push 0x8b
jmp 0x1006f793
push esi
push eax
push dword [esp + 0x10]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x72
push str..crypto_rsa_rsa_x931.c
push 0x89
push 0x80
push 4
call fcn.10043423
add esp, 0x14
or eax, 0xffffffff
pop esi
ret

Function at 0x10073030
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov ecx, dword [eax + 4]
push edi
cmp ecx, dword [ebx + 4]
jge 0x10073049
mov edi, ebx
mov ebx, eax
jmp 0x1007304b
mov edi, eax
mov esi, dword [esp + 0x10]
mov eax, dword [edi + 4]
cmp eax, dword [esi + 8]
jle 0x10073060
push eax
push esi
call fcn.1004b388
pop ecx
pop ecx
xor eax, eax
cmp dword [ebx + 4], eax
jle 0x1007307c
mov ecx, dword [edi]
mov edx, dword [ebx]
mov ecx, dword [ecx + eax*4]
xor ecx, dword [edx + eax*4]
mov edx, dword [esi]
mov dword [edx + eax*4], ecx
inc eax
cmp eax, dword [ebx + 4]
jl 0x10073067
cmp eax, dword [edi + 4]
jge 0x1007308e
mov ecx, dword [edi]
mov edx, dword [esi]
mov ecx, dword [ecx + eax*4]
mov dword [edx + eax*4], ecx
inc eax
jmp 0x1007307c
mov edi, dword [edi + 4]
test edi, edi
mov dword [esi + 4], edi
jle 0x100730af
mov eax, dword [esi]
lea eax, [eax + edi*4 - 4]
mov ecx, dword [eax]
sub eax, 4
test ecx, ecx
jne 0x100730af
dec dword [esi + 4]
cmp dword [esi + 4], ecx
jg 0x1007309e
push 1
pop eax
pop edi
pop esi
pop ebx
ret
Function at 0x10073368
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0x28
pop eax
call fcn.1008bee0
and dword [ebp - 0x14], 0
push ebx
mov ebx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
cmp edi, ebx
jne 0x1007339a
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push edi
push dword [ebp + 8]
call fcn.1007375e
add esp, 0x10
jmp 0x100734e4
push esi
push dword [ebp + 0x18]
call fcn.100621c4
push dword [ebp + 0x18]
call fcn.10062248
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x100734d7
mov eax, dword [ebx + 4]
mov ecx, dword [edi + 4]
lea edi, [eax + ecx + 4]
cmp edi, dword [esi + 8]
jg 0x100733ca
mov eax, esi
jmp 0x100733d3
push edi
push esi
call fcn.1004b388
pop ecx
pop ecx
test eax, eax
je 0x100734d7
xor eax, eax
mov dword [esi + 4], edi
test edi, edi
jle 0x100733ef
mov ecx, dword [esi]
and dword [ecx + eax*4], 0
inc eax
cmp eax, edi
jl 0x100733e4
mov ecx, dword [ebx + 4]
and dword [ebp - 4], 0
test ecx, ecx
jle 0x1007349f
mov edx, dword [ebp - 4]
mov eax, dword [ebx]
shl edx, 2
mov edi, dword [eax + edx]
mov dword [ebp - 0x18], edi
mov edi, dword [ebp - 4]
inc edi
cmp edi, ecx
jne 0x1007341a
and dword [ebp - 0xc], 0
jmp 0x10073421
mov eax, dword [eax + edx + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
mov ecx, dword [eax + 4]
test ecx, ecx
jle 0x1007348f
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0xc]
lea ebx, [edi + 1]
cmp ebx, ecx
mov eax, dword [eax]
mov edx, dword [eax + edi*4]
jne 0x10073443
xor eax, eax
jmp 0x10073447
mov eax, dword [eax + edi*4 + 4]
push dword [ebp - 0x18]
push dword [ebp - 0xc]
push edx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.100734e8
mov edx, dword [ebp - 8]
add esp, 0x14
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x10], 4
mov eax, dword [esi]
mov ebx, dword [ecx]
xor dword [eax + edx], ebx
add eax, edx
add ecx, 4
add edx, 4
dec dword [ebp - 0x10]
jne 0x10073468
mov eax, dword [ebp + 0xc]
add dword [ebp - 8], 8
inc edi
mov ecx, dword [eax + 4]
inc edi
cmp edi, ecx
jl 0x10073430
mov ebx, dword [ebp + 0x10]
add dword [ebp - 4], 2
mov ecx, dword [ebx + 4]
cmp dword [ebp - 4], ecx
jl 0x100733fe
mov eax, dword [esi + 4]
test eax, eax
jle 0x100734bd
mov ecx, dword [esi]
lea eax, [ecx + eax*4 - 4]
mov ecx, dword [eax]
sub eax, 4
test ecx, ecx
jne 0x100734bd
dec dword [esi + 4]
cmp dword [esi + 4], ecx
jg 0x100734ac
push dword [ebp + 0x14]
push esi
push dword [ebp + 8]
call fcn.100730b6
add esp, 0xc
test eax, eax
je 0x100734d7
mov dword [ebp - 0x14], 1
push dword [ebp + 0x18]
call fcn.1006220d
mov eax, dword [ebp - 0x14]
pop ecx
pop esi
pop edi
pop ebx
leave
ret