joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10033340
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x40
call fcn.10084230
mov eax, dword [esp + 0x48]
push ebx
push ebp
push esi
lea ebp, [eax - 1]
mov eax, dword [esp + 0x68]
test eax, eax
push edi
mov dword [esp + 0x58], ebp
jne 0x1003336a
call fcn.10040e70
mov dword [esp + 0x6c], eax
mov ecx, dword [esp + 0x70]
test ecx, ecx
jne 0x10033376
mov dword [esp + 0x70], eax
push eax
call fcn.10030c30
mov ebx, eax
mov esi, dword [esp + 0x64]
mov edi, ebp
add esp, 4
lea eax, [ebx + ebx]
sub edi, eax
lea ecx, [edi - 1]
cmp esi, ecx
jle 0x100333a1
push 0x3a
push str..crypto_rsa_rsa_oaep.c
push 0x6e
jmp 0x1003346e
inc eax
cmp ebp, eax
jge 0x100333b4
push 0x40
push str..crypto_rsa_rsa_oaep.c
push 0x78
jmp 0x1003346e
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x68]
push 0
mov byte [eax], 0
lea edx, [eax + 1]
lea ebp, [ebx + eax + 1]
mov eax, dword [esp + 0x70]
push eax
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x6c]
push 0
push ebp
push ecx
push edx
call fcn.10049da0
add esp, 0x18
test eax, eax
jne 0x100333ee
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
mov ecx, edi
xor eax, eax
sub ecx, esi
lea edi, [ebx + ebp]
dec ecx
push ebx
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x5c]
mov eax, ebp
sub eax, ebx
sub eax, esi
lea edi, [eax + ecx]
mov ecx, esi
mov esi, dword [esp + 0x60]
mov edx, ecx
shr ecx, 2
mov byte [edi - 1], 1
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x64]
push edi
call fcn.10028550
add esp, 8
test eax, eax
jg 0x10033447
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret
mov esi, dword [esp + 0x58]
push 0x55
sub esi, ebx
push str..crypto_rsa_rsa_oaep.c
push esi
call fcn.100254a0
add esp, 0xc
mov dword [esp + 0x6c], eax
test eax, eax
jne 0x10033487
push 0x57
push str..crypto_rsa_rsa_oaep.c
push 0x41
push 0xa0
push 4
call fcn.10025e30
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
mov ecx, dword [esp + 0x70]
push ecx
push ebx
push edi
push esi
push eax
call fcn.100338b0
add esp, 0x14
test eax, eax
jl 0x100334d0
test esi, esi
jle 0x100334b7
mov edi, dword [esp + 0x6c]
mov eax, ebp
sub edi, ebp
mov ecx, esi
mov dl, byte [edi + eax]
xor byte [eax], dl
inc eax
dec ecx
jne 0x100334aa
mov edi, dword [esp + 0x60]
mov eax, dword [esp + 0x70]
lea ecx, [esp + 0x10]
push eax
push esi
push ebp
push ebx
push ecx
call fcn.100338b0
add esp, 0x14
test eax, eax
jge 0x100334e7
mov edx, dword [esp + 0x6c]
push edx
call fcn.10025720
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
test ebx, ebx
jle 0x10033502
lea ecx, [esp + 0x10]
mov eax, edi
sub ecx, edi
mov esi, ebx
mov dl, byte [ecx + eax]
mov bl, byte [eax]
xor bl, dl
mov byte [eax], bl
inc eax
dec esi
jne 0x100334f5
mov eax, dword [esp + 0x6c]
push eax
call fcn.10025720
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
Function at 0x10033ea0
Capabilities:
Check for software breakpoints

Disassembly:
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp eax, edx
push esi
jne 0x10033f72
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
cmp al, 0x6a
je 0x10033ec3
cmp al, 0x6b
jne 0x10033f72
cmp al, 0x6b
lea esi, [ecx + 1]
jne 0x10033f2e
lea eax, [edx - 3]
xor edx, edx
test eax, eax
jle 0x10033ee5
mov cl, byte [esi]
inc esi
cmp cl, 0xba
je 0x10033ee5
cmp cl, 0xbb
jne 0x10033f0e
inc edx
cmp edx, eax
jl 0x10033ed3
sub eax, edx
test edx, edx
jne 0x10033f31
push 0x83
push str..crypto_rsa_rsa_x931.c
push 0x8a
push 0x80
push 4
call fcn.10025e30
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push 0x7b
push str..crypto_rsa_rsa_x931.c
push 0x8a
push 0x80
push 4
call fcn.10025e30
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
lea eax, [edx - 2]
cmp byte [eax + esi], 0xcc
je 0x10033f5a
push 0x8b
push str..crypto_rsa_rsa_x931.c
push 0x8b
push 0x80
push 4
call fcn.10025e30
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
mov ecx, eax
push edi
mov edi, dword [esp + 0xc]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
ret
push 0x70
push str..crypto_rsa_rsa_x931.c
push 0x89
push 0x80
push 4
call fcn.10025e30
add esp, 0x14
or eax, 0xffffffff
pop esi
ret

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

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
xor esi, esi
test edi, edi
je 0x10034bc1
mov al, byte [edi]
test al, al
je 0x10034bc1
push ebx
push ebp
mov ebx, 0x100
movsx eax, al
or eax, ebx
mov ebp, esi
mov edx, eax
mov ecx, eax
shr edx, 2
and edx, 0xf
and ecx, 0xf
xor edx, ecx
mov ecx, 0x20
sub ecx, edx
add ebx, 0x100
shr ebp, cl
mov ecx, edx
mov edx, eax
imul edx, eax
shl esi, cl
mov al, byte [edi + 1]
or ebp, esi
xor ebp, edx
inc edi
test al, al
mov esi, ebp
jne 0x10034b79
mov eax, esi
pop ebp
shr eax, 0x10
pop ebx
xor eax, esi
pop edi
pop esi
ret
pop edi
xor eax, eax
pop esi
ret
Function at 0x1003daf0
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
push ebx
call fcn.1003dbe0
mov edi, eax
add esp, 8
test edi, edi
jne 0x1003db97
push 0xaf
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.10025e30
push 0x100a5630
push esi
push 0x100a562c
push ebx
push str.fopen_
push 5
call fcn.100265c0
add esp, 0x2c
call sub.MSVCRT.dll__errno
cmp dword [eax], 2
je 0x1003db76
call sub.MSVCRT.dll__errno
cmp dword [eax], 6
je 0x1003db76
push 0xb8
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.10025e30
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0xb6
push str..crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.10025e30
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x100c27d8
call fcn.10021ad0
mov esi, eax
add esp, 4
test esi, esi
jne 0x1003dbb9
push edi
call sub.MSVCRT.dll_fclose
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0
push esi
call fcn.10021c00
push edi
push 1
push 0x6a
push esi
call fcn.10021fb0
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
ret

Function at 0x1003f540
Capabilities:
Encode data using base64

Disassembly:
push ebp
push edi
mov edi, dword [esp + 0x14]
xor ebp, ebp
test edi, edi
jle 0x1003f626
mov ecx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x18]
cmp edi, 3
jl 0x1003f5b3
xor edx, edx
xor eax, eax
mov dh, byte [esi]
mov al, byte [esi + 2]
mov dl, byte [esi + 1]
shl edx, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
inc ecx
mov al, byte [eax + 0x100a57dc]
mov byte [ecx - 1], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
inc ecx
mov al, byte [eax + 0x100a57dc]
mov byte [ecx - 1], al
mov eax, edx
shr eax, 6
and eax, 0x3f
inc ecx
and edx, 0x3f
mov al, byte [eax + 0x100a57dc]
mov byte [ecx - 1], al
mov dl, byte [edx + 0x100a57dc]
mov byte [ecx], dl
jmp 0x1003f60a
xor edx, edx
mov dl, byte [esi]
shl edx, 0x10
cmp edi, 2
jne 0x1003f5c6
xor eax, eax
mov ah, byte [esi + 1]
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
inc ecx
mov al, byte [eax + 0x100a57dc]
mov byte [ecx - 1], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
inc ecx
cmp edi, 1
mov al, byte [eax + 0x100a57dc]
mov byte [ecx - 1], al
jne 0x1003f5f6
mov ebx, 0x3d
jmp 0x1003f604
shr edx, 6
and edx, 0x3f
xor ebx, ebx
mov bl, byte [edx + 0x100a57dc]
mov byte [ecx], bl
inc ecx
mov byte [ecx], 0x3d
sub edi, 3
inc ecx
add ebp, 4
add esi, 3
test edi, edi
jg 0x1003f55a
pop esi
pop ebx
mov eax, ebp
pop edi
mov byte [ecx], 0
pop ebp
ret
mov ecx, dword [esp + 0xc]
mov eax, ebp
pop edi
pop ebp
mov byte [ecx], 0
ret
Function at 0x10055200
Capabilities:
Hash data using sha1

Disassembly:
mov edx, dword [esp + 4]
push edi
mov ecx, 0x18
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [edx], 0x67452301
mov dword [edx + 4], 0xefcdab89
mov dword [edx + 8], 0x98badcfe
mov dword [edx + 0xc], 0x10325476
mov dword [edx + 0x10], 0xc3d2e1f0
mov eax, 1
pop edi
ret
Function at 0x10056b10
Capabilities:
Hash data using sha224

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

Function at 0x10056b70
Capabilities:
Hash data using sha256

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

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
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
mov eax, 1
ret

Function at 0x10058190
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
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
mov eax, 1
ret
Function at 0x10063c90
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
cmp dword [ebx + 0x10c], 0xffffffff
jne 0x10063ca6
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push ebx
call fcn.100415f0
mov ebp, dword [esp + 0x18]
mov esi, eax
mov eax, dword [esp + 0x1c]
add esp, 4
test ebp, ebp
mov dword [eax], esi
je 0x10063d6a
mov edx, dword [ebx + 0x10c]
push edi
cmp edx, esi
jne 0x10063cf5
test esi, esi
jle 0x10063d49
mov edi, ebp
mov ebp, 0xffffff74
lea eax, [ebx + 0x8c]
sub ebp, ebx
mov cl, byte [eax + 0x60]
mov dl, byte [eax]
xor cl, dl
inc eax
mov byte [edi], cl
inc edi
lea edx, [eax + ebp]
cmp edx, esi
jl 0x10063ce1
jmp 0x10063d45
mov eax, esi
mov byte [edx + ebx + 0xec], 0x80
sub eax, edx
cmp eax, 1
jle 0x10063d20
lea ecx, [eax - 1]
lea edi, [edx + ebx + 0xed]
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
test esi, esi
jle 0x10063d49
mov edi, ebp
mov ebp, 0xffffff54
lea eax, [ebx + 0xac]
sub ebp, ebx
mov cl, byte [eax + 0x40]
mov dl, byte [eax]
xor cl, dl
inc eax
mov byte [edi], cl
inc edi
lea edx, [eax + ebp]
cmp edx, esi
jl 0x10063d33
mov ebp, dword [esp + 0x18]
push esi
push ebp
push ebp
push ebx
call fcn.10030bf0
add esp, 0x10
test eax, eax
pop edi
jne 0x10063d6a
push esi
push ebp
call fcn.1002fc90
add esp, 8
xor eax, eax
pop esi
pop ebp
pop ebx
ret
pop esi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x1006dc10
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 0x1006dc29
mov esi, ebx
mov ebx, eax
jmp 0x1006dc2b
mov esi, eax
mov edi, dword [esp + 0x10]
mov eax, dword [esi + 4]
cmp eax, dword [edi + 8]
jg 0x1006dc3b
mov eax, edi
jmp 0x1006dc45
push eax
push edi
call fcn.10027030
add esp, 8
test eax, eax
jne 0x1006dc4d
pop edi
pop esi
pop ebx
ret
mov ecx, dword [ebx + 4]
xor eax, eax
test ecx, ecx
jle 0x1006dc71
push ebp
mov edx, dword [esi]
mov ecx, dword [ebx]
mov edx, dword [edx + eax*4]
mov ebp, dword [ecx + eax*4]
mov ecx, dword [edi]
xor edx, ebp
mov dword [ecx + eax*4], edx
mov ecx, dword [ebx + 4]
inc eax
cmp eax, ecx
jl 0x1006dc57
pop ebp
cmp eax, dword [esi + 4]
jge 0x1006dc88
mov edx, dword [esi]
mov ecx, dword [edi]
mov edx, dword [edx + eax*4]
mov dword [ecx + eax*4], edx
mov ecx, dword [esi + 4]
inc eax
cmp eax, ecx
jl 0x1006dc76
mov eax, dword [esi + 4]
test eax, eax
mov dword [edi + 4], eax
jle 0x1006dca9
mov ecx, dword [edi]
lea ecx, [ecx + eax*4 - 4]
mov edx, dword [ecx]
sub ecx, 4
test edx, edx
jne 0x1006dca6
dec eax
test eax, eax
jg 0x1006dc98
mov dword [edi + 4], eax
mov eax, dword [edi + 4]
test eax, eax
jne 0x1006dcb7
mov dword [edi + 0xc], 0
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x10073620
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x80
call fcn.10084230
push ebx
mov ebx, dword [esp + 0x88]
push ebp
mov ebp, dword [esp + 0x94]
mov eax, dword [ebx]
push esi
mov esi, dword [esp + 0x9c]
xor ecx, ecx
test esi, esi
push edi
je 0x1007366f
cmp esi, eax
je 0x10073666
mov eax, dword [esp + 0x98]
test eax, eax
je 0x10073820
test ebp, ebp
jl 0x10073820
mov ecx, 1
mov dword [ebx], esi
jmp 0x10073680
test eax, eax
je 0x10073820
mov dword [esp + 0xa0], eax
mov esi, eax
mov eax, dword [esp + 0x98]
test eax, eax
je 0x10073766
push esi
call fcn.100451e0
mov edi, eax
add esp, 4
cmp edi, 0x80
jle 0x100736b6
push str.j____int_sizeof_ctx__key_
push 0x74
push str..cryptohmachmac.c
call fcn.100280c0
add esp, 0xc
cmp edi, ebp
jge 0x1007370c
mov eax, dword [esp + 0xa4]
lea edi, [ebx + 4]
push eax
push esi
push edi
call fcn.100497a0
add esp, 0xc
test eax, eax
je 0x10073820
mov ecx, dword [esp + 0x98]
push ebp
push ecx
push edi
call fcn.10049960
add esp, 0xc
test eax, eax
je 0x10073820
lea esi, [ebx + 0x4c]
lea edx, [ebx + 0x50]
push esi
push edx
push edi
call fcn.10049a80
add esp, 0xc
test eax, eax
je 0x10073820
jmp 0x1007373f
test ebp, ebp
jl 0x10073820
cmp ebp, 0x80
jg 0x10073820
mov esi, dword [esp + 0x98]
mov ecx, ebp
mov eax, ecx
lea edi, [ebx + 0x50]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [ebx + 0x4c]
mov dword [esi], ebp
mov esi, dword [esi]
cmp esi, 0x80
je 0x1007376e
mov ecx, 0x80
xor eax, eax
sub ecx, esi
lea edi, [esi + ebx + 0x50]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x1007376e
test ecx, ecx
je 0x100737fc
xor eax, eax
mov cl, byte [ebx + eax + 0x50]
xor cl, 0x36
mov byte [esp + eax + 0x10], cl
inc eax
cmp eax, 0x80
jl 0x10073770
mov ebp, dword [esp + 0xa4]
mov edi, dword [esp + 0xa0]
lea esi, [ebx + 0x1c]
push ebp
push edi
push esi
call fcn.100497a0
add esp, 0xc
test eax, eax
je 0x10073820
push edi
call fcn.100451e0
lea edx, [esp + 0x14]
push eax
push edx
push esi
call fcn.10049960
add esp, 0x10
test eax, eax
je 0x10073820
xor eax, eax
mov cl, byte [ebx + eax + 0x50]
xor cl, 0x5c
mov byte [esp + eax + 0x10], cl
inc eax
cmp eax, 0x80
jl 0x100737be
lea esi, [ebx + 0x34]
push ebp
push edi
push esi
call fcn.100497a0
add esp, 0xc
test eax, eax
je 0x10073820
push edi
call fcn.100451e0
lea edx, [esp + 0x14]
push eax
push edx
push esi
call fcn.10049960
add esp, 0x10
test eax, eax
je 0x10073820
lea eax, [ebx + 0x1c]
add ebx, 4
push eax
push ebx
call fcn.10049b20
add esp, 8
test eax, eax
je 0x10073820
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x80
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x80
ret
Function at 0x10078660
Capabilities:
Query environment variable

Disassembly:
mov eax, 0xc
call fcn.10084230
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push edi
test ebp, ebp
jne 0x1007867e
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x1007872b
mov edi, dword [esp + 0x20]
test edi, edi
je 0x100786fc
mov ecx, dword [ebx + 8]
lea eax, [esp + 0xc]
push eax
push ecx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], edi
call fcn.10034a10
add esp, 8
test eax, eax
je 0x100786b9
mov eax, dword [eax + 8]
pop edi
pop ebp
pop ebx
add esp, 0xc
ret
push esi
mov esi, 0x100b4228
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x100786e5
test cl, cl
je 0x100786e1
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x100786e5
add eax, 2
add esi, 2
test cl, cl
jne 0x100786c1
xor eax, eax
jmp 0x100786ea
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
pop esi
jne 0x100786fc
push ebp
call sub.MSVCRT.dll_getenv
add esp, 4
test eax, eax
jne 0x10078734
mov ecx, dword [ebx + 8]
lea eax, [esp + 0xc]
push eax
push ecx
mov dword [esp + 0x14], str.default
mov dword [esp + 0x18], ebp
call fcn.10034a10
add esp, 8
test eax, eax
je 0x10078675
mov eax, dword [eax + 8]
pop edi
pop ebp
pop ebx
add esp, 0xc
ret
push ebp
call sub.MSVCRT.dll_getenv
add esp, 4
pop edi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x1007c200
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.10084230
mov eax, dword [esp + 0x10]
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
cmp eax, 0x10
push edi
jb 0x1007c274
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
shr eax, 4
mov dword [esp + 0x10], eax
mov ecx, esi
sub ebp, edi
mov eax, edi
sub ecx, edi
mov edx, 4
mov ebx, dword [eax + ebp]
xor ebx, dword [eax]
add eax, 4
dec edx
mov dword [ecx + eax - 4], ebx
jne 0x1007c237
mov eax, dword [esp + 0x24]
push eax
push esi
push esi
call dword [esp + 0x38]
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
mov ebp, esi
add esp, 0xc
sub ebx, 0x10
add edi, 0x10
add esi, 0x10
dec eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x10], eax
jne 0x1007c22a
jmp 0x1007c27c
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1007c2ff
mov edx, ebp
mov ebx, esi
xor eax, eax
sub edx, edi
sub ebx, edi
mov ecx, edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], ebx
jmp 0x1007c29e
mov edx, dword [esp + 0x1c]
cmp eax, dword [esp + 0x20]
jae 0x1007c2bb
mov dl, byte [ecx + edx]
mov bl, byte [ecx]
xor dl, bl
mov ebx, dword [esp + 0x18]
inc eax
mov byte [ecx + ebx], dl
inc ecx
cmp eax, 0x10
jb 0x1007c29a
jmp 0x1007c2d5
cmp eax, 0x10
jae 0x1007c2d5
mov ecx, 0x10
sub ebp, esi
lea edx, [eax + esi]
sub ecx, eax
mov al, byte [edx + ebp]
mov byte [edx], al
inc edx
dec ecx
jne 0x1007c2cc
mov ecx, dword [esp + 0x24]
push ecx
push esi
push esi
call dword [esp + 0x38]
mov eax, dword [esp + 0x2c]
add esp, 0xc
cmp eax, 0x10
mov ebp, esi
jbe 0x1007c2ff
sub eax, 0x10
add edi, 0x10
add esi, 0x10
mov dword [esp + 0x20], eax
test eax, eax
jne 0x1007c284
mov eax, dword [esp + 0x28]
mov edx, dword [ebp]
pop edi
pop esi
mov dword [eax], edx
mov ecx, dword [ebp + 4]
mov dword [eax + 4], ecx
mov edx, dword [ebp + 8]
mov dword [eax + 8], edx
mov ecx, dword [ebp + 0xc]
pop ebp
mov dword [eax + 0xc], ecx
pop ebx
pop ecx
ret
Function at 0x1007c320
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x14
call fcn.10084230
push ebx
push ebp
push esi
mov esi, dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x2c]
cmp esi, edi
je 0x1007c3ad
mov ebp, dword [esp + 0x30]
mov ebx, dword [esp + 0x38]
cmp ebp, 0x10
jb 0x1007c38e
mov eax, ebp
shr eax, 4
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x34]
push eax
push edi
push esi
call dword [esp + 0x48]
mov ecx, ebx
add esp, 0xc
mov eax, edi
sub ecx, edi
mov edx, 4
mov ebx, dword [ecx + eax]
xor dword [eax], ebx
add eax, 4
dec edx
jne 0x1007c369
mov eax, dword [esp + 0x30]
mov ebx, esi
sub ebp, 0x10
add esi, 0x10
add edi, 0x10
dec eax
mov dword [esp + 0x30], eax
jne 0x1007c350
mov dword [esp + 0x30], ebp
mov ecx, dword [esp + 0x38]
mov edx, dword [ebx]
mov dword [ecx], edx
mov eax, dword [ebx + 4]
mov dword [ecx + 4], eax
mov edx, dword [ebx + 8]
mov dword [ecx + 8], edx
mov eax, dword [ebx + 0xc]
mov dword [ecx + 0xc], eax
jmp 0x1007c43d
mov ebp, dword [esp + 0x30]
cmp ebp, 0x10
jb 0x1007c43d
shr ebp, 4
mov dword [esp + 0x2c], ebp
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x14]
push ecx
push edx
push esi
call dword [esp + 0x48]
mov edx, esi
lea ecx, [esp + 0x20]
sub edx, ecx
mov ebx, edi
lea ecx, [esp + 0x20]
lea ebp, [esp + 0x20]
sub ebx, ecx
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea eax, [esp + 0x14]
sub ecx, ebp
mov dword [esp + 0x28], 4
mov ebp, dword [edx + eax]
add eax, 4
mov dword [esp + 0x10], ebp
mov ebp, dword [ecx + eax - 4]
xor ebp, dword [eax - 4]
mov dword [ebx + eax - 4], ebp
mov ebp, dword [esp + 0x10]
mov dword [ecx + eax - 4], ebp
mov ebp, dword [esp + 0x28]
dec ebp
mov dword [esp + 0x28], ebp
jne 0x1007c3f9
mov ebp, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
sub ebp, 0x10
add esi, 0x10
add edi, 0x10
dec eax
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], eax
jne 0x1007c3c1
test ebp, ebp
je 0x1007c4f8
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x14]
push edx
push eax
push esi
call dword [esp + 0x48]
mov ebp, esi
lea ecx, [esp + 0x20]
sub ebp, ecx
mov edx, edi
lea ecx, [esp + 0x20]
lea ebx, [esp + 0x20]
sub edx, ecx
mov ecx, dword [esp + 0x44]
add esp, 0xc
xor eax, eax
sub ecx, ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0x2c], ecx
jmp 0x1007c485
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
cmp eax, dword [esp + 0x30]
jae 0x1007c4b4
lea ebx, [eax + ebp]
add ecx, eax
add edx, eax
mov bl, byte [esp + ebx + 0x14]
lea ecx, [esp + ecx + 0x14]
mov byte [esp + 0x28], bl
mov bl, byte [esp + eax + 0x14]
xor bl, byte [ecx]
inc eax
cmp eax, 0x10
mov byte [esp + edx + 0x14], bl
mov dl, byte [esp + 0x28]
mov byte [ecx], dl
jb 0x1007c47d
mov ecx, dword [esp + 0x30]
cmp ecx, 0x10
jbe 0x1007c4da
sub ecx, 0x10
add esi, 0x10
add edi, 0x10
mov dword [esp + 0x30], ecx
test ecx, ecx
jne 0x1007c445
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
cmp eax, 0x10
jae 0x1007c4f8
mov ecx, dword [esp + 0x38]
sub esi, ecx
lea edx, [eax + ecx]
mov ecx, 0x10
sub ecx, eax
mov al, byte [esi + edx]
mov byte [edx], al
inc edx
dec ecx
jne 0x1007c4ef
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret