joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49b7a1
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x502d00]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x49b7ec
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0049bc63
test al, al
jne 0x49b7e6
sub edx, 2
cmp edx, edi
jne 0x49b7cc
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49b80e
lea eax, [edi + 2]
cmp edx, eax
je 0x49b80e
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0049b39a
add esp, 0x10
jmp 0x49b908
push esi
lea ecx, [ebp - 0x255]
call fcn.0049bc63
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x49b851
push dword [ebp - 0x25c]
jmp 0x49b7fe
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x49b88e
cmp word [ebp - 0x226], 0
je 0x49b8af
cmp word [ebp - 0x226], ax
jne 0x49b88e
cmp word [ebp - 0x224], 0
je 0x49b8af
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0049b39a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49b8fb
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x49b868
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x49b8e3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x49b908
push 0x49ad82
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00405592
add esp, 0x10
jmp 0x49b8d8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403085
leave
ret
Function at 0x4a747d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x506858]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4a74bd
cmp byte [ebx], 0xa
jne 0x4a74bd
or byte [eax + edi + 0x28], 4
jmp 0x4a74c2
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4a75c0
mov al, byte [edx]
cmp al, 0x1a
je 0x4a75a2
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4a74f1
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4a7516
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4a7520
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4a74d3
jmp 0x4a75c0
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a759d
cmp dword [ebp - 0xc], 0
je 0x4a759d
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x506858]
test byte [eax + edi + 0x28], 0x48
je 0x4a7577
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4a7562
mov byte [esi], dl
jmp 0x4a7573
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x506858]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4a75c0
cmp byte [ebp - 1], 0xa
jne 0x4a7586
cmp esi, ebx
jne 0x4a7586
mov byte [esi], 0xa
jmp 0x4a75bf
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040194c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4a75c0
mov byte [esi], 0xd
jmp 0x4a75bf
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x506858]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a75bc
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a75c0
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a761c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x506858]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4a765f
cmp word [esi], dx
jne 0x4a765f
or byte [edi + eax + 0x28], 4
jmp 0x4a7664
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4a77b7
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4a7797
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4a76a6
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4a76dc
cmp eax, edx
jae 0x4a76e8
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4a767e
jmp 0x4a77b7
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a7793
cmp dword [ebp - 0x14], 0
je 0x4a7793
mov eax, dword [ebx*4 + 0x506858]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4a776b
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4a7734
mov word [esi], cx
jmp 0x4a7767
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x506858]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x506858]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x506858]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4a77b7
pop ebx
cmp word [ebp - 4], bx
jne 0x4a777c
cmp esi, dword [ebp + 0xc]
jne 0x4a777c
mov word [esi], bx
jmp 0x4a77b4
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040194c
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4a77b7
push 0xd
jmp 0x4a77b0
mov ecx, dword [ebx*4 + 0x506858]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a77ae
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a77b7
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x407ef8
nop
mov ecx, 0x2c0e1fd0
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, section..data_1
mov ebx, 0x42cd70
nop
mov ecx, 0x216455d7
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x40690e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x42f764], 0
jne 0x40694c
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406922
mov dword [ecx*4 + 0x42f760], eax
inc ecx
cmp ecx, 0x100
jl 0x40691d
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406979
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x42f760]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x40695a
not eax
pop ebp
ret 0xc

Function at 0x401010
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 3
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 4
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
add eax, 5
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 6
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 7
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
add eax, 8
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 9
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 0xa
mov dword [ebp - 4], edx
push 0x4e20
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x409840
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov eax, dword [0x40e300]
cmp ebx, eax
jae 0x40986d
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x40e304]
test byte [edx + eax*8 + 4], 1
jne 0x40987f
mov dword [0x40d334], 9
or eax, 0xffffffff
jmp 0x40999c
push 1
push 0
push ebx
call fcn.00408af0
add esp, 0xc
mov esi, eax
cmp eax, 0xffffffff
je 0x4098a7
push 2
push 0
push ebx
call fcn.00408af0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x4098af
or eax, 0xffffffff
jmp 0x40999c
mov eax, dword [ebp + 0xc]
neg edi
add edi, eax
jle 0x409941
push 0x1000
push 1
call fcn.00409e10
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
je 0x40993b
push 0x8000
push ebx
call fcn.00409e70
add esp, 8
mov dword [ebp - 8], eax
mov eax, 0x1000
cmp edi, 0x1000
jge 0x4098f2
mov eax, edi
mov edx, eax
push edx
mov eax, dword [ebp - 4]
push eax
push ebx
call fcn.004074e0
add esp, 0xc
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
jne 0x409910
or dword [ebp - 0xc], 0xffffffff
jmp 0x409922
mov eax, edi
sub eax, dword [ebp + 0xc]
mov edi, eax
mov dword [ebp - 0xc], 0
test eax, eax
jg 0x4098e3
mov eax, dword [ebp - 8]
push eax
push ebx
call fcn.00409e70
add esp, 8
mov eax, dword [ebp - 4]
push eax
call fcn.004040b0
pop ecx
jmp 0x40998d
or dword [ebp - 0xc], 0xffffffff
jmp 0x40998d
mov dword [ebp - 0xc], 0
test edi, edi
jge 0x40998d
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00408af0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x409966
or dword [ebp - 0xc], 0xffffffff
jmp 0x40998d
push ebx
call fcn.00407980
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov dword [ebp - 0xc], 0
test eax, eax
jne 0x40998d
mov dword [0x40d334], 0xd
or dword [ebp - 0xc], 0xffffffff
push 0
push esi
push ebx
call fcn.00408af0
add esp, 0xc
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x61580ebc
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, section..tls
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x43e338d
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x10013080
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x9c
call fcn.10031300
mov eax, dword [0x10040dd0]
xor eax, esp
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0xa0]
push ebx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xa8]
push ebp
mov eax, dword [eax + 4]
push esi
mov esi, dword [esp + 0xb8]
push edi
mov edi, dword [esp + 0xb8]
mov dword [esp + 0x14], eax
sub eax, edi
xor ebx, ebx
mov dword [esp + 0x1c], eax
cmp esi, edi
jae 0x100130e6
push str.orig_len___md_size
push 0x113
push str.._ssl_s3_cbc.c
call sub.LIBEAY32.dll_Ordinal_3244
add esp, 0xc
cmp edi, 0x40
jbe 0x10013102
push str.md_size___EVP_MAX_MD_SIZE
push 0x114
push str.._ssl_s3_cbc.c
call sub.LIBEAY32.dll_Ordinal_3244
add esp, 0xc
lea eax, [esp + 0x28]
neg eax
and eax, 0x3f
lea ebp, [esp + 0x28]
add ebp, eax
lea eax, [edi + 0x100]
cmp esi, eax
jbe 0x10013125
mov ebx, esi
sub ebx, edi
sub ebx, 0x100
mov eax, edi
and eax, 0xfffffffe
shl eax, 0x17
sub eax, ebx
add eax, dword [esp + 0x1c]
xor edx, edx
div edi
push edi
push 0
push ebp
mov esi, edx
mov dword [esp + 0x2c], esi
call sub.MSVCR110.dll_memset
mov eax, dword [esp + 0xc8]
add esp, 0xc
cmp ebx, eax
jae 0x100131d0
mov ecx, dword [esp + 0xb4]
mov edx, dword [esp + 0x14]
mov ecx, dword [ecx + 0xc]
add ecx, ebx
mov dword [esp + 0x10], ecx
mov ecx, ebx
sub ecx, edx
sub edx, dword [esp + 0x1c]
sub eax, ebx
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
xor esi, esi
mov al, byte [eax]
lea ebx, [edx + ecx]
mov edx, ecx
not edx
sar edx, 0x1f
lea ecx, [esi + ebp]
not dl
and dl, al
inc esi
mov eax, esi
sub eax, edi
not ebx
sar ebx, 0x1f
sar eax, 0x1f
and dl, bl
or byte [ecx], dl
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
and esi, eax
mov eax, dword [esp + 0x10]
inc ecx
inc eax
dec dword [esp + 0xbc]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], eax
jne 0x10013187
mov esi, dword [esp + 0x20]
xor ecx, ecx
test edi, edi
je 0x100131ff
mov edx, dword [esp + 0x24]
lea ebx, [ebx]
mov eax, esi
xor eax, 0x20
inc esi
mov al, byte [eax + ebp]
movzx eax, byte [esi + ebp - 1]
mov byte [edx + ecx], al
mov eax, esi
sub eax, edi
sar eax, 0x1f
inc ecx
and esi, eax
cmp ecx, edi
jb 0x100131e0
mov ecx, dword [esp + 0xa8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10031346
add esp, 0x9c
ret
Function at 0x10013a40
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push ebp
mov ebp, dword [esp + 0x14]
mov eax, dword [edx]
push esi
inc ebp
push edi
cmp eax, 0x302
jge 0x10013a6b
cmp eax, 0x100
je 0x10013a6b
mov esi, dword [esp + 0x14]
cmp ebp, dword [esi + 4]
jbe 0x10013a88
pop edi
pop esi
xor eax, eax
pop ebp
ret
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edi, dword [esi + 4]
lea eax, [ecx + ebp]
cmp eax, edi
ja 0x10013a65
add dword [esi + 0xc], ecx
add dword [esi + 0x10], ecx
sub edi, ecx
mov dword [esi + 4], edi
test dword [edx + 0x100], 0x200
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 4]
push ebx
movzx ebx, byte [ecx + eax - 1]
je 0x10013acd
cmp dword [edx + 0x88], 0
jne 0x10013acd
mov eax, dword [edx + 0x58]
cmp dword [eax + 8], 0
jne 0x10013ac0
cmp dword [eax + 0xc], 0
jne 0x10013ac0
test bl, 1
jne 0x10013ac0
or dword [eax], 8
mov eax, dword [edx + 0x58]
test byte [eax], 8
je 0x10013acd
test ebx, ebx
je 0x10013acd
dec ebx
mov eax, dword [edx + 0x80]
push dword [eax]
call sub.LIBEAY32.dll_Ordinal_3857
add esp, 4
test eax, 0x200000
je 0x10013af6
or eax, 0xffffffff
sub eax, ebx
add dword [esi + 4], eax
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
ret
mov edi, dword [esi + 4]
mov edx, edi
sub edx, ebx
sub edx, ebp
not edx
mov ecx, 0xff
lea eax, [edi - 1]
sar edx, 0x1f
cmp eax, ecx
cmovb ecx, eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x10013b55
mov ebp, dword [esp + 0x20]
dec ebp
add ebp, dword [esi + 0xc]
mov edi, ebx
mov esi, ecx
lea esp, [esp]
mov eax, edi
not eax
sar eax, 0x1f
movzx ecx, al
movzx eax, byte [ebp]
xor eax, ebx
and ecx, eax
not ecx
and edx, ecx
dec edi
lea ebp, [ebp - 1]
dec esi
jne 0x10013b30
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x20]
mov eax, edx
shr eax, 4
and edx, eax
mov eax, edx
shr eax, 2
and edx, eax
mov ecx, edx
shr ecx, 1
and ecx, edx
shl ecx, 0x1f
sar ecx, 0x1f
lea eax, [ebx + 1]
and eax, ecx
sub edi, eax
shl eax, 8
or dword [esi], eax
pop ebx
mov dword [esi + 4], edi
mov eax, ecx
pop edi
and eax, 1
not ecx
pop esi
or eax, ecx
pop ebp
ret
Function at 0x100184f0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc
call fcn.10031300
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
xor esi, esi
push esi
xor edi, edi
call fcn.1002a3e0
mov ebx, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
je 0x10018544
lea ecx, [ecx]
mov eax, dword [esp + 0x10]
shl eax, 0xa
test ebx, eax
je 0x1001852c
inc edi
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
inc esi
push esi
call fcn.1002a3e0
add esp, 0xc
test eax, eax
jne 0x10018520
mov ecx, dword [esp + 0x50]
mov eax, ecx
cdq
idiv edi
mov ebp, dword [esp + 0x4c]
mov esi, eax
xor eax, eax
cmp edi, 1
mov edi, dword [esp + 0x5c]
push edi
push eax
push dword [esp + 0x5c]
cmove ecx, eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x5c], ecx
call sub.MSVCR110.dll_memset
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
push 0
mov dword [esp + 0x64], 0
call fcn.1002a3e0
add esp, 0x18
test eax, eax
je 0x10018637
mov eax, dword [esp + 0x10]
shl eax, 0xa
test ebx, eax
je 0x10018613
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x10018644
push edi
push dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
push dword [esp + 0x50]
and eax, 1
push dword [esp + 0x50]
add eax, esi
push dword [esp + 0x50]
push dword [esp + 0x50]
push dword [esp + 0x50]
push dword [esp + 0x50]
push dword [esp + 0x50]
push dword [esp + 0x50]
push dword [esp + 0x50]
push dword [esp + 0x50]
push eax
push ebp
push ecx
call fcn.10018670
add esp, 0x3c
test eax, eax
je 0x10018662
add ebp, esi
test edi, edi
jle 0x10018613
mov ecx, dword [esp + 0x54]
mov esi, dword [esp + 0x58]
sub esi, ecx
mov edx, edi
mov al, byte [esi + ecx]
xor byte [ecx], al
lea ecx, [ecx + 1]
dec edx
jne 0x10018604
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
inc eax
push ecx
push eax
mov dword [esp + 0x58], eax
call fcn.1002a3e0
add esp, 0xc
test eax, eax
jne 0x10018596
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret
push 0x114
push str.._ssl_t1_enc.c
push 0x146
push 0x11c
push 0x14
call sub.LIBEAY32.dll_Ordinal_252
add esp, 0x14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x973fe0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
push 0x3e8
call dword [0x9a625c]
push 0x9af1ec
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 4]
push ecx
call fcn.0098ffe2
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x974034
jmp 0x974156
push 2
push 0
mov edx, dword [ebp - 4]
push edx
call fcn.00990ccf
add esp, 0xc
mov eax, dword [ebp - 4]
push eax
call fcn.00990ef1
add esp, 4
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.009859fc
add esp, 4
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call fcn.00990ccf
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push 1
mov eax, dword [ebp - 8]
push eax
call fcn.00990858
add esp, 0x10
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 0x14]
je 0x9740a3
jmp 0x97412c
call dword [0x9a6248]
push eax
call fcn.00990c11
add esp, 4
push 0x32
push 0xa
call fcn.00973f10
add esp, 8
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 0x10]
jge 0x9740cd
jmp 0x97412c
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 8]
push ecx
call fcn.00973f60
add esp, 8
mov edx, dword [ebp - 4]
push edx
call fcn.00990290
add esp, 4
mov eax, dword [ebp + 8]
push eax
call dword [0x9a623c]
push 0x9af284
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.0098ffe2
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x974116
jmp 0x974156
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
push 1
mov edx, dword [ebp - 8]
push edx
call fcn.00990197
add esp, 0x10
cmp dword [ebp - 4], 0
je 0x97413e
mov eax, dword [ebp - 4]
push eax
call fcn.00990290
add esp, 4
cmp dword [ebp - 8], 0
je 0x974156
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.009859f1
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x9771f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x977225
cmp dword [ebp + 0xc], 0xa
jae 0x977236
mov dword [ebp - 0x10], 0xffffffff
jmp 0x97730d
mov eax, dword [ebp + 0xc]
shl eax, 2
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
add ecx, 1
push ecx
call fcn.0098fdc4
add esp, 4
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x14]
push edx
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00977130
add esp, 0x14
test eax, eax
je 0x977306
push 0x9ae27c
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.0098ffe2
add esp, 0xc
cmp dword [ebp - 0x14], 0
jne 0x97729b
mov dword [ebp - 0x10], 0xfffffffe
jmp 0x97730d
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 1
mov edx, dword [ebp - 4]
push edx
call fcn.00990197
add esp, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 8]
je 0x9772c7
mov dword [ebp - 0x10], 0xfffffffe
jmp 0x97730d
call dword [0x9a6248]
xor edx, edx
mov ecx, 0x1f4
div ecx
mov dword [ebp - 0x20], edx
call dword [0x9a6248]
xor edx, edx
mov ecx, 0x3e8
div ecx
add edx, dword [ebp - 4]
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x20]
push eax
push 1
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00990197
add esp, 0x10
jmp 0x97730d
mov dword [ebp - 0x10], 0xfffffffd
cmp dword [ebp - 0x14], 0
je 0x97731f
mov edx, dword [ebp - 0x14]
push edx
call fcn.00990290
add esp, 4
cmp dword [ebp - 4], 0
je 0x977331
mov eax, dword [ebp - 4]
push eax
call fcn.0098fe8e
add esp, 4
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret