joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100aa630
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x70
push ebx
mov eax, 0xd
push ebp
push esi
mov esi, dword [esp + 0x80]
mov dword [esp + 0xc], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x4c], eax
lea eax, [esp + 0xc]
push edi
mov ebp, ecx
push eax
mov ecx, dword [esi + 8]
push str.Names
call fcn.100ad0d0
cmp dword [eax], 6
jne 0x100aa703
mov ebp, dword [esp + 0x8c]
xor ebx, ebx
xor edi, edi
xor esi, esi
mov ecx, dword [esp + 0x18]
cmp esi, dword [ecx + 0xc]
jge 0x100aa6e3
lea edx, [esp + 0x40]
push edx
push esi
call fcn.100b2f80
cmp dword [eax], 3
jne 0x100aa6d3
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x88]
push eax
call fcn.10091170
test eax, eax
jne 0x100aa6cc
lea ecx, [esi + 1]
push ebp
push ecx
mov ecx, dword [esp + 0x20]
call fcn.100b2f80
mov ebx, 1
jmp 0x100aa6ce
jge 0x100aa6d3
mov edi, 1
lea ecx, [esp + 0x40]
call fcn.100986a0
add esi, 2
test edi, edi
je 0x100aa689
lea ecx, [esp + 0x10]
call fcn.100986a0
test ebx, ebx
jne 0x100aa6f7
mov dword [ebp], 5
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x70
ret 0xc
lea ecx, [esp + 0x10]
call fcn.100986a0
mov ecx, dword [esi + 8]
lea edx, [esp + 0x70]
push edx
push str.Kids
xor edi, edi
call fcn.100ad0d0
cmp dword [eax], 6
jne 0x100aa7fc
mov ebx, dword [esp + 0x88]
xor esi, esi
mov ecx, dword [esp + 0x78]
cmp esi, dword [ecx + 0xc]
jge 0x100aa7fc
lea eax, [esp + 0x30]
push eax
push esi
call fcn.100b2f80
cmp dword [eax], 7
jne 0x100aa7ea
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x3c]
push str.Limits
call fcn.100ad0d0
cmp dword [eax], 6
jne 0x100aa7e1
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x60]
push edx
push 0
call fcn.100b2f80
cmp dword [eax], 3
jne 0x100aa7d8
mov eax, dword [esp + 0x68]
mov ecx, ebx
push eax
call fcn.10091170
test eax, eax
jl 0x100aa7d8
lea ecx, [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x2c]
push 1
call fcn.100b2f80
cmp dword [eax], 3
jne 0x100aa7cf
mov edx, dword [esp + 0x58]
mov ecx, ebx
push edx
call fcn.10091170
test eax, eax
jg 0x100aa7cf
mov eax, dword [esp + 0x8c]
lea ecx, [esp + 0x30]
push eax
push ebx
push ecx
mov ecx, ebp
call fcn.100aa630
mov edi, 1
lea ecx, [esp + 0x50]
call fcn.100986a0
lea ecx, [esp + 0x60]
call fcn.100986a0
lea ecx, [esp + 0x20]
call fcn.100986a0
lea ecx, [esp + 0x30]
call fcn.100986a0
inc esi
test edi, edi
je 0x100aa732
lea ecx, [esp + 0x70]
call fcn.100986a0
test edi, edi
jne 0x100aa816
mov edx, dword [esp + 0x8c]
mov dword [edx], 5
mov eax, dword [esp + 0x8c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret 0xc
Function at 0x100b03d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push esi
mov esi, dword [esp + 8]
xor eax, eax
push edi
mov edx, dword [esi + 4]
mov esi, dword [esi]
test esi, esi
mov edi, ecx
jle 0x100b03fc
push ebx
mov cl, byte [edx]
mov ebx, eax
shl ebx, 4
and ecx, 0xff
add ebx, eax
add ecx, ebx
inc edx
dec esi
mov eax, ecx
jne 0x100b03e4
pop ebx
xor edx, edx
div dword [edi + 4]
pop edi
pop esi
mov eax, edx
ret 4

Function at 0x100b0410
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push esi
mov esi, dword [esp + 8]
xor eax, eax
mov dl, byte [esi]
test dl, dl
je 0x100b0437
push edi
mov edi, eax
and edx, 0xff
shl edi, 4
add edi, eax
add edx, edi
inc esi
mov eax, edx
mov dl, byte [esi]
test dl, dl
jne 0x100b041e
pop edi
xor edx, edx
pop esi
div dword [ecx + 4]
mov eax, edx
ret 4

Function at 0x100b2af0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push esi
mov esi, dword [esp + 8]
xor eax, eax
mov dl, byte [esi]
test dl, dl
je 0x100b2b17
push edi
mov edi, eax
and edx, 0xff
shl edi, 4
add edi, eax
add edx, edi
inc esi
mov eax, edx
mov dl, byte [esi]
test dl, dl
jne 0x100b2afe
pop edi
xor edx, edx
pop esi
div dword [ecx + 4]
mov eax, edx
ret 4
Function at 0x100cf210
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
xor ecx, ecx
push edi
xor eax, eax
mov byte [eax + esi], al
inc eax
cmp eax, 0x100
jl 0x100cf21d
mov byte [esp + 0x20], cl
xor edi, edi
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov dl, byte [edi + esi]
and eax, 0xff
xor ebx, ebx
mov bl, byte [eax + ebp]
mov ebp, edx
and ebp, 0xff
add ecx, ebx
add ecx, ebp
and ecx, 0x800000ff
jns 0x100cf25f
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
inc eax
mov bl, byte [ecx + esi]
mov byte [edi + esi], bl
mov byte [ecx + esi], dl
cdq
idiv dword [esp + 0x1c]
inc edi
cmp edi, 0x100
mov byte [esp + 0x20], dl
jl 0x100cf22e
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x100e3080
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push esi
mov esi, dword [esp + 8]
xor eax, eax
mov dl, byte [esi]
test dl, dl
je 0x100e30a7
push edi
mov edi, eax
and edx, 0xff
shl edi, 4
add edi, eax
add edx, edi
inc esi
mov eax, edx
mov dl, byte [esi]
test dl, dl
jne 0x100e308e
pop edi
xor edx, edx
pop esi
div dword [ecx + 4]
mov eax, edx
ret 4

Function at 0x100e7190
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1018e99b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
push 8
mov dword [esi], 0x10193f98
mov dword [esi + 0xa0], edi
call fcn.1005473e
add esp, 4
mov dword [esp + 8], eax
cmp eax, edi
mov dword [esp + 0x14], edi
je 0x100e71dc
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, eax
call fcn.1008f800
jmp 0x100e71de
xor eax, eax
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0xc]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 0x24], edi
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x30], edi
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x10
Function at 0x100efbe0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push edi
mov edi, dword [esp + 0xc]
cmp byte [edi], 0
je 0x100efca7
push esi
mov esi, dword [esp + 0xc]
mov cx, word [esi + 0xc]
mov dl, byte [edi]
xor eax, eax
push 1
mov al, ch
xor al, dl
mov byte [esp + 0x14], al
movzx ax, al
add eax, ecx
lea ecx, [eax + eax*2]
shl ecx, 4
sub ecx, eax
lea ecx, [ecx + ecx*2]
lea ecx, [ecx + ecx*4]
lea ecx, [ecx + ecx*8]
lea edx, [eax + ecx*2]
mov eax, 0x58bf
sub eax, edx
mov word [esi + 0xc], ax
mov eax, dword [esi + 8]
test eax, eax
je 0x100efc8c
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 4]
and ecx, 0xff
shr ecx, 4
add ecx, str.0123456789ABCDEF
push ecx
push edx
call dword [esi]
mov al, byte [esp + 0x1c]
mov ecx, dword [esi + 4]
and eax, 0xf
push 1
add eax, str.0123456789ABCDEF
push eax
push ecx
call dword [esi]
mov ecx, dword [esi + 0x10]
add esp, 0x18
add ecx, 2
mov eax, ecx
mov dword [esi + 0x10], ecx
cmp eax, 0x40
jne 0x100efc9a
mov edx, dword [esi + 4]
push 1
push 0x101bcce4
push edx
call dword [esi]
add esp, 0xc
mov dword [esi + 0x10], 0
jmp 0x100efc9a
mov ecx, dword [esi + 4]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [esi]
add esp, 0xc
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100efbf3
pop esi
pop edi
ret 8

Function at 0x100efcb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 0xc]
push edi
xor edi, edi
test eax, eax
jle 0x100efd80
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
mov cx, word [esi + 0xc]
mov dl, byte [edi + ebx]
xor eax, eax
push 1
mov al, ch
xor al, dl
mov byte [esp + 0x14], al
movzx ax, al
add eax, ecx
lea ecx, [eax + eax*2]
shl ecx, 4
sub ecx, eax
lea ecx, [ecx + ecx*2]
lea ecx, [ecx + ecx*4]
lea ecx, [ecx + ecx*8]
lea edx, [eax + ecx*2]
mov eax, 0x58bf
sub eax, edx
mov word [esi + 0xc], ax
mov eax, dword [esi + 8]
test eax, eax
je 0x100efd63
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 4]
and ecx, 0xff
shr ecx, 4
add ecx, str.0123456789ABCDEF
push ecx
push edx
call dword [esi]
mov al, byte [esp + 0x1c]
mov ecx, dword [esi + 4]
and eax, 0xf
push 1
add eax, str.0123456789ABCDEF
push eax
push ecx
call dword [esi]
mov ecx, dword [esi + 0x10]
add esp, 0x18
add ecx, 2
mov eax, ecx
mov dword [esi + 0x10], ecx
cmp eax, 0x40
jne 0x100efd71
mov edx, dword [esi + 4]
push 1
push 0x101bcce4
push edx
call dword [esi]
add esp, 0xc
mov dword [esi + 0x10], 0
jmp 0x100efd71
mov ecx, dword [esi + 4]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [esi]
add esp, 0xc
mov eax, dword [esp + 0x18]
inc edi
cmp edi, eax
jl 0x100efcc9
pop esi
pop ebx
pop edi
ret 0xc
Function at 0x1010bec0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x3ec
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
push esi
xor ebp, ebp
push edi
mov dword [0x101fa3f8], ebp
call ebx
mov dword [0x101fa400], eax
mov ecx, 0xf7
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
mov esi, dword [esp + 0x41c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp esi, ebp
stosb byte es:[edi], al
je 0x1010bffc
mov ecx, 0xf8
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.10112db0
mov esi, dword [esp + 0x408]
mov ebx, dword [esp + 0x414]
mov ebp, dword [esp + 0x410]
mov edi, dword [esp + 0x40c]
add esp, 4
mov dword [esp + 0x10], eax
test esi, esi
jne 0x1010bf65
test edi, edi
jne 0x1010bf65
test ebp, ebp
jne 0x1010bf65
test ebx, ebx
jne 0x1010bf65
mov ecx, dword [esp + 0x414]
test ecx, ecx
jne 0x1010bf65
mov ecx, dword [esp + 0x418]
test ecx, ecx
je 0x1010bff1
cmp eax, 3
jne 0x1010bff1
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 0x1c]
push ecx
push 0x30
push edx
call fcn.10145bf0
add esp, 0xc
test eax, eax
je 0x1010bfed
mov eax, dword [esp + 0x40]
test esi, esi
je 0x1010bf95
mov ecx, eax
and ecx, 1
mov dword [esi], ecx
test edi, edi
je 0x1010bfa0
mov edx, eax
and edx, 2
mov dword [edi], edx
test ebp, ebp
je 0x1010bfac
mov ecx, eax
and ecx, 4
mov dword [ebp], ecx
test ebx, ebx
je 0x1010bfcb
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [ebx], edx
mov edx, dword [esp + 0x34]
mov dword [ebx + 4], ecx
mov ecx, dword [esp + 0x38]
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], ecx
mov ecx, dword [esp + 0x414]
test ecx, ecx
je 0x1010bfdd
mov edx, eax
and edx, 8
mov dword [ecx], edx
mov ecx, dword [esp + 0x418]
test ecx, ecx
je 0x1010bfed
and eax, 0x10
mov dword [ecx], eax
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3ec
ret
mov esi, dword [esp + 0x400]
lea eax, [esp + 0x10]
push 1
push eax
mov dword [esp + 0x18], ebp
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call ebp
push 0
push 0
push 0
push esi
mov dword [esp + 0x28], eax
call ebp
cmp esi, 0xffffffff
je 0x1010c08d
lea ecx, [esp + 0x1c]
test ecx, ecx
je 0x1010c08d
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x1010c0a8
mov ecx, 0xd
xor eax, eax
lea edi, [esp + 0x1c]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
xor edi, edi
lea eax, [esp + 0x1c]
push edi
push edx
push 0x34
push eax
push esi
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1010c086
mov dword [0x101fa3f8], 0xd
mov dword [0x101fa3fc], 0x29f7
call ebx
mov dword [0x101fa400], eax
jmp 0x1010c0aa
mov edi, 1
jmp 0x1010c0aa
mov dword [0x101fa3f8], 1
mov dword [0x101fa3fc], 0x29ea
call ebx
mov dword [0x101fa400], eax
xor edi, edi
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push 0
push ecx
push edx
push esi
call ebp
test edi, edi
jne 0x1010bf0e
mov dword [0x101fa3f8], 0xf
mov dword [0x101fa3fc], 0x1b63
call ebx
pop edi
pop esi
mov dword [0x101fa400], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x3ec
ret
Function at 0x1010c200
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x3ec
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
push esi
push edi
xor edi, edi
mov dword [0x101fa3f8], edi
call ebx
mov esi, dword [esp + 0x400]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x101fa400], eax
lea eax, [esp + 0x10]
push 1
push eax
push edi
push esi
mov dword [esp + 0x20], edi
call ebp
push edi
push edi
push edi
push esi
mov dword [esp + 0x28], eax
call ebp
mov ecx, 0xf7
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp esi, 0xffffffff
stosb byte es:[edi], al
je 0x1010c2c5
lea ecx, [esp + 0x1c]
test ecx, ecx
je 0x1010c2c5
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x1010c2e0
mov ecx, 0xf8
xor eax, eax
lea edi, [esp + 0x1c]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
xor edi, edi
lea eax, [esp + 0x1c]
push edi
push edx
push 0x3e0
push eax
push esi
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1010c2be
mov dword [0x101fa3f8], 0xd
mov dword [0x101fa3fc], 0x29f7
call ebx
mov dword [0x101fa400], eax
jmp 0x1010c2e2
mov edi, 1
jmp 0x1010c2e2
mov dword [0x101fa3f8], 1
mov dword [0x101fa3fc], 0x29ea
call ebx
mov dword [0x101fa400], eax
xor edi, edi
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push 0
push ecx
push edx
push esi
call ebp
test edi, edi
jne 0x1010c31d
mov dword [0x101fa3f8], 0xf
mov dword [0x101fa3fc], 0x1bcd
call ebx
pop edi
pop esi
mov dword [0x101fa400], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x3ec
ret
lea eax, [esp + 0x1c]
push eax
call fcn.10112db0
add esp, 4
cmp eax, 3
jne 0x1010c394
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 0x1c]
push ecx
push 0x30
push edx
call fcn.10145bf0
add esp, 0xc
test eax, eax
je 0x1010c379
mov eax, dword [esp + 0x404]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
pop edi
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
pop esi
pop ebp
mov dword [eax + 4], edx
mov edx, dword [esp + 0x2c]
pop ebx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, 1
add esp, 0x3ec
ret
mov dword [0x101fa3f8], 0x1c
mov dword [0x101fa3fc], 0x1bdb
call ebx
mov dword [0x101fa400], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3ec
ret
Function at 0x10132530
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x1018f8f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push ebp
push esi
xor esi, esi
push edi
mov dword [0x101fab80], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [esp + 0x80]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x101fab88], eax
lea eax, [esp + 0x10]
push 1
push eax
push esi
push ebx
mov dword [esp + 0x20], esi
call edi
push esi
push esi
push 0x40
push ebx
mov dword [esp + 0x2c], eax
call edi
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 0x24]
mov dword [esp + 0x20], esi
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x80]
mov dword [esp + 0x14], esi
call fcn.10154da0
mov edx, dword [esp + 0x84]
xor ecx, ecx
push 0xffffffffffffffff
mov dword [esp + 0x7c], esi
mov cx, word [edx + 0x3e]
push ecx
lea ecx, [esp + 0x88]
call fcn.10154fb0
lea ecx, [esp + 0x80]
call fcn.10154fa0
lea ecx, [esp + 0x80]
mov esi, eax
call fcn.101556c0
cmp ebx, 0xffffffff
mov ebp, eax
je 0x101326c2
test ebp, ebp
je 0x101326c2
test esi, esi
je 0x101326c2
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x1013265b
mov ecx, esi
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
mov dword [esp + 0x1c], 0
rep stosb byte es:[edi], al
lea eax, [esp + 0x1c]
push eax
push esi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x101326db
mov dword [0x101fab80], 0xd
mov dword [0x101fab84], 0x222a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x101fab88], eax
lea ecx, [esp + 0x80]
mov dword [esp + 0x78], 0xffffffff
call fcn.10154f00
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push 0
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
test eax, eax
pop ebx
jne 0x10132792
mov dword [0x101fab80], 0xf
mov dword [0x101fab84], 0x2e06
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x101fab88], eax
xor eax, eax
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
add esp, 0x6c
ret
mov dword [0x101fab80], 1
mov dword [0x101fab84], 0x221d
jmp 0x10132650
lea ecx, [esp + 0x80]
call fcn.10154fa0
push eax
lea ecx, [esp + 0x84]
call fcn.101556c0
mov ecx, dword [esp + 0x88]
push eax
push ecx
call fcn.10133c40
add esp, 0xc
test eax, eax
je 0x1013265b
lea ecx, [esp + 0x80]
call fcn.101556a0
mov edx, 0x50
cmp word [eax + 4], dx
jne 0x1013265b
mov ecx, 0x14
mov esi, eax
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
cmp word [esp + 0x24], dx
jne 0x1013265b
cmp word [esp + 0x30], 0x38
jne 0x1013265b
mov esi, dword [esp + 0x20]
mov dword [esp + 0x20], 0
push esi
push edx
lea edx, [esp + 0x28]
push edx
call fcn.10145bf0
add esp, 0xc
mov dword [esp + 0x20], esi
test eax, eax
je 0x1013265b
mov edi, dword [esp + 0x88]
mov ecx, 0x14
lea esi, [esp + 0x20]
mov dword [esp + 0x14], 1
rep movsd dword es:[edi], dword [esi]
jmp 0x1013265b
mov ecx, dword [esp + 0x60]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x6c
ret
Function at 0x10138290
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov dword [0x101fb188], ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x101fb190], eax
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
mov esi, dword [esp + 0x3c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp esi, ebp
stosb byte es:[edi], al
je 0x101382d4
mov ecx, 8
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
jmp 0x1013833d
mov esi, dword [esp + 0x38]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x10]
push 1
push eax
push ebp
push esi
mov dword [esp + 0x20], ebp
call edi
push ebp
push ebp
push ebp
push esi
mov ebx, eax
call edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x1013832e
lea ecx, [esp + 0x3c]
push 0
push ecx
lea edx, [esp + 0x1c]
push 0x20
push edx
push esi
mov dword [esp + 0x50], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1013832e
cmp dword [esp + 0x3c], 0x20
jne 0x1013832e
mov ebp, 1
lea eax, [esp + 0x10]
push 0
push eax
push ebx
push esi
call edi
test ebp, ebp
je 0x10138371
lea ecx, [esp + 0x14]
push ecx
call fcn.10137e40
add esp, 4
test eax, eax
je 0x10138390
mov ecx, dword [esp + 0x40]
mov eax, 1
test ecx, ecx
je 0x10138392
mov bl, byte [esp + 0x1b]
xor edx, edx
cmp bl, 0xe
pop edi
setne dl
pop esi
pop ebp
mov dword [ecx], edx
pop ebx
add esp, 0x24
ret
mov dword [0x101fb188], 0xf
mov dword [0x101fb18c], 0x2f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x101fb190], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x10145abd
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x1018ff9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x1019175c]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea edi, [esi + 4]
mov dword [edi], eax
mov ebp, dword [esp + 0x24]
xor ebx, ebx
push ebp
mov ecx, edi
mov dword [esp + 0x20], ebx
mov dword [esi], 0x10194024
call fcn.100339e0
mov edi, dword [edi]
mov dword [esi + 8], ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
test bl, 1
je 0x10145b07
and ebx, 0xfffffffe
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x10145b07
mov dword [esi + 8], ebx
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x101469e0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x10146a0f
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
call fcn.10145040
add esp, 0x18
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
ret
Function at 0x10149030
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
mov eax, ebp
mov esi, dword [esp + 0x1c]
cdq
and edx, 7
push edi
add eax, edx
mov edi, ecx
mov ebx, eax
sar ebx, 3
test esi, esi
je 0x10149152
test ebx, ebx
jl 0x10149152
jle 0x10149124
mov eax, dword [esp + 0x1c]
push 0
push eax
call fcn.10149530
test ebx, ebx
jle 0x10149124
add esi, 6
mov ebp, ebx
xor eax, eax
xor ecx, ecx
mov al, byte [esi - 6]
mov cl, byte [esi - 5]
shl eax, 0x18
shl ecx, 0x10
xor edx, edx
or eax, ecx
mov dh, byte [esi - 4]
xor ecx, ecx
mov cl, byte [esi - 3]
or eax, edx
or eax, ecx
xor edx, edx
mov dl, byte [esi - 1]
mov dword [esp + 0x10], eax
xor eax, eax
xor ecx, ecx
mov al, byte [esi - 2]
mov ch, byte [esi]
shl eax, 0x18
shl edx, 0x10
or eax, edx
xor edx, edx
mov dl, byte [esi + 1]
or eax, ecx
or eax, edx
mov ecx, edi
mov dword [esp + 0x14], eax
lea eax, [edi + 4]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.101498d0
mov eax, dword [esp + 0x10]
add esi, 8
mov ecx, eax
mov edx, eax
shr ecx, 0x18
mov byte [esi - 0xe], cl
mov ecx, eax
shr edx, 0x10
shr ecx, 8
mov byte [esi - 0xd], dl
mov byte [esi - 0xc], cl
mov byte [esi - 0xb], al
mov eax, dword [esp + 0x14]
mov edx, eax
mov ecx, eax
shr edx, 0x18
mov byte [esi - 0xa], dl
mov edx, eax
shr ecx, 0x10
shr edx, 8
mov byte [esi - 9], cl
mov byte [esi - 8], dl
mov byte [esi - 7], al
dec ebp
jne 0x1014907d
mov esi, dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
shl ebx, 3
sub ebp, ebx
test ebp, ebp
lea eax, [ebx + esi]
jle 0x10149143
mov ecx, dword [esp + 0x1c]
sub ecx, eax
mov dl, byte [ecx + eax]
mov bl, byte [eax]
xor bl, dl
mov byte [eax], bl
inc eax
dec ebp
jne 0x10149136
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 0xc
Function at 0x10149160
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
mov eax, ebp
mov esi, dword [esp + 0x1c]
cdq
and edx, 7
push edi
add eax, edx
mov edi, ecx
mov ebx, eax
sar ebx, 3
test esi, esi
je 0x10149282
test ebx, ebx
jl 0x10149282
jle 0x10149254
mov eax, dword [esp + 0x1c]
push 1
push eax
call fcn.10149530
test ebx, ebx
jle 0x10149254
add esi, 6
mov ebp, ebx
xor eax, eax
xor ecx, ecx
mov al, byte [esi - 6]
mov cl, byte [esi - 5]
shl eax, 0x18
shl ecx, 0x10
xor edx, edx
or eax, ecx
mov dh, byte [esi - 4]
xor ecx, ecx
mov cl, byte [esi - 3]
or eax, edx
or eax, ecx
xor edx, edx
mov dl, byte [esi - 1]
mov dword [esp + 0x10], eax
xor eax, eax
xor ecx, ecx
mov al, byte [esi - 2]
mov ch, byte [esi]
shl eax, 0x18
shl edx, 0x10
or eax, edx
xor edx, edx
mov dl, byte [esi + 1]
or eax, ecx
or eax, edx
mov ecx, edi
mov dword [esp + 0x14], eax
lea eax, [edi + 4]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.101498d0
mov eax, dword [esp + 0x10]
add esi, 8
mov ecx, eax
mov edx, eax
shr ecx, 0x18
mov byte [esi - 0xe], cl
mov ecx, eax
shr edx, 0x10
shr ecx, 8
mov byte [esi - 0xd], dl
mov byte [esi - 0xc], cl
mov byte [esi - 0xb], al
mov eax, dword [esp + 0x14]
mov edx, eax
mov ecx, eax
shr edx, 0x18
mov byte [esi - 0xa], dl
mov edx, eax
shr ecx, 0x10
shr edx, 8
mov byte [esi - 9], cl
mov byte [esi - 8], dl
mov byte [esi - 7], al
dec ebp
jne 0x101491ad
mov esi, dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
shl ebx, 3
sub ebp, ebx
test ebp, ebp
lea eax, [ebx + esi]
jle 0x10149273
mov ecx, dword [esp + 0x1c]
sub ecx, eax
mov dl, byte [ecx + eax]
mov bl, byte [eax]
xor bl, dl
mov byte [eax], bl
inc eax
dec ebp
jne 0x10149266
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 0xc